|
|
|
@ -304,6 +304,11 @@
|
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="list => selectionChange(list, 1)" |
|
|
|
|
> |
|
|
|
|
<template #default="{ scope }"> |
|
|
|
|
<template v-if="scope.column.label === '计划件数'"> |
|
|
|
|
<span class="w100">{{ scope.row.totalPlanNum }}</span> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
|
|
|
|
|
<!-- 分页 --> |
|
|
|
@ -359,6 +364,17 @@
|
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="list => selectionChange(list, 2)" |
|
|
|
|
> |
|
|
|
|
<template #default="{ scope }"> |
|
|
|
|
<template v-if="scope.column.label === '计划件数'"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="scope.row.planNum" |
|
|
|
|
:controls="false" |
|
|
|
|
:max="scope.row.totalPlanNum" |
|
|
|
|
:min="scope.row.realNum || 0" |
|
|
|
|
:precision="0" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
|
|
|
|
|
<!-- 统计行 --> |
|
|
|
@ -674,6 +690,12 @@ const initPage = async () => {
|
|
|
|
|
details.addInfo.newData = data.waybillList || []; |
|
|
|
|
details.waybillNosList = data.waybillList.map(item => item.waybillNo); |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.addInfo.newData.length; i++) { |
|
|
|
|
const value = details.addInfo.newData[i]; |
|
|
|
|
|
|
|
|
|
value.totalPlanNum = value.totalPlanNum + (value.planNum || 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
newInputsc('', { prop: 'aaa' }); |
|
|
|
|
|
|
|
|
|
// 节点 |
|
|
|
@ -1012,9 +1034,9 @@ const handleAddWaybill = () => {
|
|
|
|
|
|
|
|
|
|
for (let item of details.addInfo.oldSelectionList) { |
|
|
|
|
if (!details.waybillNosList.includes(item.waybillNo)) { |
|
|
|
|
item.planNum = item.stockNum; |
|
|
|
|
item.loadingNum = 0; |
|
|
|
|
_arr.push(item); |
|
|
|
|
item.planNum = item.totalPlanNum; |
|
|
|
|
// item.loadingNum = 0; |
|
|
|
|
_arr.push({ ...item }); |
|
|
|
|
details.waybillNosList.push(item.waybillNo); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1093,6 +1115,7 @@ const addSubmit = async nodeArr => {
|
|
|
|
|
_submitData.billladingWaybillList.push({ |
|
|
|
|
waybillId: item.waybillId, |
|
|
|
|
waybillNo: item.waybillNo, |
|
|
|
|
planNum: item.planNum, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1148,6 +1171,7 @@ const editSubmit = async nodeArr => {
|
|
|
|
|
_submitData.billladingWaybillList.push({ |
|
|
|
|
waybillId: item.waybillId, |
|
|
|
|
waybillNo: item.waybillNo, |
|
|
|
|
planNum: item.planNum, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|