|
|
|
@ -504,11 +504,20 @@ export default { |
|
|
|
this.inInit(); |
|
|
|
this.inInit(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.sizeForm.userInfoVO = this.userInfo; |
|
|
|
this.sizeForm.userInfoVO = this.userInfo; |
|
|
|
console.log(this.userInfo,'userInfo'); |
|
|
|
console.log(this.userInfo, "userInfo"); |
|
|
|
this.getDetailedItems(); |
|
|
|
this.getDetailedItems(); |
|
|
|
this.getOutGroupName(); |
|
|
|
this.getOutGroupName(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
isRowSelectable(row) { |
|
|
|
|
|
|
|
// 确保 materialName 是非空字符串,materialId 是非空值(字符串或数字) |
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
(row.materialName && |
|
|
|
|
|
|
|
row.materialName.trim() !== "" && |
|
|
|
|
|
|
|
row.materialId != null && |
|
|
|
|
|
|
|
row.materialId !== "")||(rowinventory<row.num) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
// 监听嵌套表格的勾选事件 |
|
|
|
// 监听嵌套表格的勾选事件 |
|
|
|
handleSelectionChange(selection, parentRow) { |
|
|
|
handleSelectionChange(selection, parentRow) { |
|
|
|
// 使用 parentRow 的唯一标识作为 key,例如 materialId 或 materialCode |
|
|
|
// 使用 parentRow 的唯一标识作为 key,例如 materialId 或 materialCode |
|
|
|
@ -549,7 +558,8 @@ export default { |
|
|
|
// 初始化每个分组的选中项为当前已选的明细项 |
|
|
|
// 初始化每个分组的选中项为当前已选的明细项 |
|
|
|
if (group.twoInventoryVOList.length > 0) { |
|
|
|
if (group.twoInventoryVOList.length > 0) { |
|
|
|
group.twoInventoryVOList.forEach((element) => { |
|
|
|
group.twoInventoryVOList.forEach((element) => { |
|
|
|
if(element.type === "NY"){ |
|
|
|
element.applyNum = group.applyNum; |
|
|
|
|
|
|
|
if (element.type === "NY") { |
|
|
|
element.num = 1; |
|
|
|
element.num = 1; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
element.num = group.applyNum; |
|
|
|
element.num = group.applyNum; |
|
|
|
@ -737,6 +747,9 @@ export default { |
|
|
|
this.sizeForm.ldTwoOutStorage.departmentInfo = |
|
|
|
this.sizeForm.ldTwoOutStorage.departmentInfo = |
|
|
|
departmentArr.length > 0 ? departmentArr[0] : {}; |
|
|
|
departmentArr.length > 0 ? departmentArr[0] : {}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.sizeForm.groupName!='自由出库'){ |
|
|
|
|
|
|
|
this.groupTableData = res.data.result.ldTwoOutStorageDetailList |
|
|
|
|
|
|
|
} |
|
|
|
// this.sizeForm.ldTwoOutStorage.proposerInfo={} |
|
|
|
// this.sizeForm.ldTwoOutStorage.proposerInfo={} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|