From 59a863a9e682733f836fec0ca8289385f2b3932c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 28 Aug 2024 16:06:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E6=A8=A1=E5=9D=97fromInvento?= =?UTF-8?q?ryStatus2024/6/14=2019:01:24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/package/packageCard.vue | 194 +++++++++--------- src/mycomponents/recommend/recommend.vue | 2 +- .../scan/winScanPackAndLocation.vue | 6 +- .../record/productPutawayRecord.vue | 2 + .../job/fgProductReceiptDetail.vue | 2 + src/pages/putaway/job/putawayDetail.vue | 1 + src/pages/putaway/record/putawayRecord.vue | 2 + 7 files changed, 106 insertions(+), 103 deletions(-) diff --git a/src/mycomponents/package/packageCard.vue b/src/mycomponents/package/packageCard.vue index 3e0aee10..607e3f39 100644 --- a/src/mycomponents/package/packageCard.vue +++ b/src/mycomponents/package/packageCard.vue @@ -1,112 +1,104 @@ - \ No newline at end of file + diff --git a/src/mycomponents/recommend/recommend.vue b/src/mycomponents/recommend/recommend.vue index ca861123..29654fd7 100644 --- a/src/mycomponents/recommend/recommend.vue +++ b/src/mycomponents/recommend/recommend.vue @@ -14,7 +14,7 @@ - + diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index 935649ba..fa8e25ea 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -241,7 +241,11 @@ const afterQueryBalance = (datas) => { if (props.allowNullBalance) { allowNoneBalance(datas) } else if (props.noShowBalanceMessage) { - countCallBack(datas) + if (Array.isArray(datas)) { + countCallBack(datas[0]) + } else { + countCallBack(datas) + } } else { mustHavaBalance(datas) } diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue index 7debdb69..9f49fcf0 100644 --- a/src/pages/productPutaway/record/productPutawayRecord.vue +++ b/src/pages/productPutaway/record/productPutawayRecord.vue @@ -114,6 +114,7 @@ const getScanResult = (result) => { if (item == undefined) { const itemp = createItemInfo(balance, pack) const newDetail = createDetailInfo(balance, pack) // + newDetail.fromInventoryStatus = balance.inventoryStatus itemp.subList.push(newDetail) detailSource.value.push(itemp) } else { @@ -124,6 +125,7 @@ const getScanResult = (result) => { }) if (detail == undefined) { const newDetail = createDetailInfo(balance, pack) + newDetail.fromInventoryStatus = balance.inventoryStatus item.subList.push(newDetail) } else if (detail.scaned == true) { showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`) diff --git a/src/pages/productReceipt/job/fgProductReceiptDetail.vue b/src/pages/productReceipt/job/fgProductReceiptDetail.vue index 05cab35f..9d0e35e2 100644 --- a/src/pages/productReceipt/job/fgProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/fgProductReceiptDetail.vue @@ -316,6 +316,8 @@ const print = () => { barcodeString: item.barcodeString, // 标签 itemCode: item.itemCode || '', // 物品代码 itemName: item.itemName || '', // 物品名称 + packName: item.packName || '', // 包装名称 + itemType: item.itemType || '', // 物料类型 itemDesc1: item.itemDesc1 || '', // 物品描述 relateNumber: item.relateNumber || '', // relateNumber包装号 batch: item.batch || '', // 批次 diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue index 9ee26f36..05491938 100644 --- a/src/pages/putaway/job/putawayDetail.vue +++ b/src/pages/putaway/job/putawayDetail.vue @@ -293,6 +293,7 @@ const getScanResult = (result) => { scanedLength++ } }) + itemDetail.fromInventoryStatus = result.balance.inventoryStatus if (itemDetail.scaned && scanedLength == itemDetail.packList.length) { showMessage(`箱码【${packingNumber}】已经扫描`) } else { diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 41270871..10fa7887 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -128,6 +128,7 @@ const getScanResult = (result) => { newDetail.poLine = poLine newDetail.poNumber = poNumber newDetail.supplierCode = supplierCode + newDetail.fromInventoryStatus = balance.inventoryStatus itemp.subList.push(newDetail) detailSource.value.push(itemp) calcHandleQty(detailSource.value) @@ -145,6 +146,7 @@ const getScanResult = (result) => { newDetail.toWarehouseCode = toLocation.toWarehouseCode newDetail.poLine = poLine newDetail.poNumber = poNumber + newDetail.fromInventoryStatus = balance.inventoryStatus newDetail.supplierCode = supplierCode item.subList.push(newDetail) calcHandleQty(detailSource.value)