From 0740148a2a3642e79460a8180cb9436d9c5cff03 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 05 三月 2026 16:48:16 +0800
Subject: [PATCH] 更改装备发货的逻辑
---
pages/wareHouse/inventory/index.vue | 8 +++++---
pages/wareHouse/nuclearScale/index.vue | 10 +++++-----
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/pages/wareHouse/inventory/index.vue b/pages/wareHouse/inventory/index.vue
index 08944a5..e03e877 100644
--- a/pages/wareHouse/inventory/index.vue
+++ b/pages/wareHouse/inventory/index.vue
@@ -358,9 +358,10 @@
},
scanHandle(val) {
this.submitList = {};
+ const isZhuangBei = val.hasOwnProperty("part_no");
const { PN, BN, NW } = val;
this.$u.api.shiftingParking
- .selPartInfoPDA({ outBatchNo: BN })
+ .selPartInfoPDA({ outBatchNo: isZhuangBei ? val.sn_no : BN })
.then((res) => {
console.log("res", res);
this.submitList = res.data;
@@ -436,13 +437,14 @@
this.$u.toast("璇烽�夋嫨鐩樼偣鎶ュ憡鍙�");
return;
}
+ const isZhuangBei = this.getDifferentFields.hasOwnProperty("part_no");
const diff = this.getDifferentFields(
this.registerInfo,
this.scanHandleList,
{
- partNo: { fixed: this.scanHandleList.PN },
+ partNo: { fixed: isZhuangBei ? this.scanHandleList.part_no : this.scanHandleList.PN },
// qtyAvailable: { fixed: Number(this.scanHandleList.NW) },
- ifsBatchNo: { fixed: this.scanHandleList.BN },
+ ifsBatchNo: { fixed: isZhuangBei ? this.scanHandleList.sn_no : this.scanHandleList.BN },
}
);
console.log("宸紓瀛楁:", diff);
diff --git a/pages/wareHouse/nuclearScale/index.vue b/pages/wareHouse/nuclearScale/index.vue
index 105f046..2108d8f 100644
--- a/pages/wareHouse/nuclearScale/index.vue
+++ b/pages/wareHouse/nuclearScale/index.vue
@@ -337,14 +337,14 @@
});
return;
}
-
+ const isZhuangBei = codeInfo.hasOwnProperty("part_no");
let ScanCodeRecordList = {
- outBatchNo: codeInfo.BN,
- netWeight: codeInfo.NW,
+ outBatchNo: isZhuangBei ? codeInfo.sn_no : codeInfo.BN,
+ netWeight: isZhuangBei ? codeInfo.qty_arrived : codeInfo.NW,
tareWeight: codeInfo.TR, // 鐨噸
- partNo: codeInfo.PN,
+ partNo: isZhuangBei ? codeInfo.part_no : codeInfo.PN,
grossWeight: codeInfo.TW,
- partName: codeInfo.ST,
+ partName: isZhuangBei ? codeInfo.part_name : codeInfo.ST,
originalLength: codeInfo.LN, // 闀垮害
palletNo: codeInfo.PNO, // 鐩樺彿
waivDevRejNo: codeInfo.WDR ? codeInfo.WDR : "*", // wdr鍙�
--
Gitblit v1.9.3