diff --git a/src/pages/package/job/overPackageJobDetail.vue b/src/pages/package/job/overPackageJobDetail.vue index 43026db2..a05e0758 100644 --- a/src/pages/package/job/overPackageJobDetail.vue +++ b/src/pages/package/job/overPackageJobDetail.vue @@ -236,6 +236,10 @@ const checkSubmit = () => { const tempHandleQty = detailSource.value[0].Items[0].Locations[0].Batchs[0].handleQty const tempQty = detailSource.value[0].Items[0].Locations[0].Batchs[0].qty const { toPackQty } = detailSource.value[0].Items[0].Locations[0].Batchs[0] + if (tempHandleQty == 0) { + showErrorMessage("实际数量为0,请先扫描数据") + return + } if (tempHandleQty > tempQty) { // 大于需求数量 showCommitMessage(`实际数量【${tempHandleQty}】大于需求数量` + `【${tempQty}】, 是否提交?`, tempHandleQty, toPackQty)