diff --git a/src/views/distribution/turndelivery/devtmp.vue b/src/views/distribution/turndelivery/devtmp.vue index d076894b..8e5130ea 100644 --- a/src/views/distribution/turndelivery/devtmp.vue +++ b/src/views/distribution/turndelivery/devtmp.vue @@ -1908,7 +1908,7 @@ const QuantityEntry = val => { console.log(res, '编辑状态在库录入'); // 冻结数量-数量操作 =冻结数量 for (let item of res.data.data) { - item.deliveryQuantity = item.deliveryQuantity - item.number; + item.deliveryQuantity = item.deliveryQuantity - item.reservationNum; } isZeroTable.value = res.data.data; }); @@ -1957,12 +1957,17 @@ const SubmitLoad = () => { if (QuantityEntryStatus.value) { if (RouteId.value) { for (let item of isZeroTable.value) { - item.number > item.handQuantity - item.deliveryQuantity - item.outboundQuantity; - ElMessage({ - message: item.firsts + ':最大值:不能超过(可用数量)', - type: 'warning', - }); - return; + if ( + item.reservationNum > + item.handQuantity - item.deliveryQuantity - item.outboundQuantity + ) { + ElMessage({ + message: item.firsts + item.reservationNum + ':最大值:不能超过(可用数量)', + type: 'warning', + }); + + return; + } } } console.log(dataInfo.value[dataId.value], '当前零担信息'); @@ -2000,7 +2005,11 @@ const SubmitLoad = () => { }; // 零担数量操作 const isZeroNumber = val => { - val.reservationNum = val.number; + if (!QuantityEntry.value) { + val.reservationNum = val.reservationNum; + } else { + val.reservationNum = val.number; + } }; // 刷新功能触发事件 const refresh = () => {