Browse Source

翻包任务没有扫描,数量为0时校验 2024/8/8

pull/1/head
王志国 3 months ago
parent
commit
97fded5ac0
  1. 4
      src/pages/package/job/overPackageJobDetail.vue

4
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 tempHandleQty = detailSource.value[0].Items[0].Locations[0].Batchs[0].handleQty
const tempQty = detailSource.value[0].Items[0].Locations[0].Batchs[0].qty const tempQty = detailSource.value[0].Items[0].Locations[0].Batchs[0].qty
const { toPackQty } = detailSource.value[0].Items[0].Locations[0].Batchs[0] const { toPackQty } = detailSource.value[0].Items[0].Locations[0].Batchs[0]
if (tempHandleQty == 0) {
showErrorMessage("实际数量为0,请先扫描数据")
return
}
if (tempHandleQty > tempQty) { if (tempHandleQty > tempQty) {
// //
showCommitMessage(`实际数量【${tempHandleQty}】大于需求数量` + `${tempQty}】, 是否提交?`, tempHandleQty, toPackQty) showCommitMessage(`实际数量【${tempHandleQty}】大于需求数量` + `${tempQty}】, 是否提交?`, tempHandleQty, toPackQty)

Loading…
Cancel
Save