|
|
|
@ -168,9 +168,7 @@ |
|
|
|
:min="0" |
|
|
|
:min="0" |
|
|
|
:max="getMaxQuantity(scope.row)" |
|
|
|
:max="getMaxQuantity(scope.row)" |
|
|
|
style="width: 100%" |
|
|
|
style="width: 100%" |
|
|
|
:disabled=" |
|
|
|
disabled |
|
|
|
outDialogType != 'add' || scope.row.type === 'NY' |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@change=" |
|
|
|
@change=" |
|
|
|
(newValue) => |
|
|
|
(newValue) => |
|
|
|
handleQuantityChange(newValue, scope.$index) |
|
|
|
handleQuantityChange(newValue, scope.$index) |
|
|
|
@ -546,6 +544,18 @@ export default { |
|
|
|
if (this.sizeForm.ldTwoOutStorage.groupName != null) { |
|
|
|
if (this.sizeForm.ldTwoOutStorage.groupName != null) { |
|
|
|
getGroupMaterial(this.sizeForm.ldTwoOutStorage).then((res) => { |
|
|
|
getGroupMaterial(this.sizeForm.ldTwoOutStorage).then((res) => { |
|
|
|
this.groupTableData = res.data.result; |
|
|
|
this.groupTableData = res.data.result; |
|
|
|
|
|
|
|
this.groupTableData.forEach((group) => { |
|
|
|
|
|
|
|
// 初始化每个分组的选中项为当前已选的明细项 |
|
|
|
|
|
|
|
if (group.twoInventoryVOList.length > 0) { |
|
|
|
|
|
|
|
group.twoInventoryVOList.forEach((element) => { |
|
|
|
|
|
|
|
if(element.type === "NY"){ |
|
|
|
|
|
|
|
element.num = 1; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
element.num = group.applyNum; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|