From bc48cefb6c1288444f928dd5eb68c573f55c024a Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期三, 12 十一月 2025 17:11:57 +0800
Subject: [PATCH] 优化装箱单
---
manifest.json | 4 ++--
pages/zhuangxiangdan/form.vue | 14 ++++++++++----
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/manifest.json b/manifest.json
index 53123f8..44c6034 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "鏅轰簯LMES",
"appid" : "__UNI__B002F49",
"description" : "",
- "versionName" : "2.0.12",
- "versionCode" : 212,
+ "versionName" : "2.0.15",
+ "versionCode" : 215,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
diff --git a/pages/zhuangxiangdan/form.vue b/pages/zhuangxiangdan/form.vue
index 101667e..4f65fa3 100644
--- a/pages/zhuangxiangdan/form.vue
+++ b/pages/zhuangxiangdan/form.vue
@@ -145,7 +145,7 @@
<!-- 寮圭獥缁勪欢 -->
<BillListPopupVue ref="billList" :HBillType="HBillType" :HSourceBillType="hform.HMainSourceBillType || 3710"
:HStockOrgID="hform.HStockOrgID"></BillListPopupVue>
-
+
</view>
</template>
<script>
@@ -303,7 +303,9 @@
this.HBarCode_Pack = ''
this.HBarCodePackFocus = false
await this.$nextTick()
- this.HBarCodePackFocus = true
+ setTimeout(() => {
+ this.HBarCodePackFocus = true
+ }, 60)
},
// 鎵弿绠辨潯鐮�
@@ -340,7 +342,7 @@
this.HMaterNumber_Pack = data[0].HMaterNumber
this.hform.HMaterName = data[0].HMaterName
// 璁剧疆鎬绘暟锛屽綋鍓嶆壂鎻忔暟閲忛�氳繃DisBillEntryList鏇存柊
- const totalQty = data[0].HBarcodeQtys || 0
+ const totalQty = data[0].HQty || 0
this.hform.HQtySum = `0/${totalQty}`
//澶勭悊鎴愬姛鍚庤仛鐒﹀埌浜у搧鐮佽緭鍏ユ
this.HBarCodeFocusRefresh()
@@ -810,7 +812,7 @@
}) => {
if (confirm) {
uni.redirectTo({
- url: "/pages/zhuangxiangdan/form"
+ url: `/pages/zhuangxiangdan/form?HSourceBillNo=${encodeURIComponent(this.hform.HSourceBillNo)}`
})
}
if (cancel) {
@@ -874,6 +876,7 @@
},
onLoad(e) {
+ console.log('onLoad params:', e)
// 鍒濆鍖栧弬鏁�
this.BarCodeType = e.BarCodeType || 1
this.OperationType = e.OperationType || 1
@@ -885,6 +888,9 @@
this.getMaxNo() // 鏂板妯″紡锛氳幏鍙栨柊鍗曟嵁鍙�
// 鍒濆鍖栨椂鑱氱劍鍒版簮鍗曞崟鍙�
this.HSourcebillNoFocus = true
+ if (this.hform.HSourceBillNo != "" && this.hform.HSourceBillNo != undefined) {
+ this.getSourceBarCodeData(this.hform.HSourceBillNo)
+ }
} else if (this.OperationType == 2) {
this.disableBarCodePack = false
this.disableBarCode = false
--
Gitblit v1.9.1