From a97a624c1fb269a059f97629076433c46b4e8b4c Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 13 8月 2025 14:42:08 +0800 Subject: [PATCH] //如果是连续打印,则不调用打印服务,解决重复打印的问题 【Editby shaocx,2025-08-13】 --- LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue | 50 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 39 insertions(+), 11 deletions(-) diff --git a/LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue b/LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue index dfd8031..9a1cd16 100644 --- a/LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue +++ b/LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue @@ -93,6 +93,13 @@ </text> </u-col> </u-row> + <u-row> + <u-col span="12"> + <text class="color_80 padding_left25rpx"> + <text class="color_80"> 娆″簭锛歿{ item.shelf }} </text> + </text> + </u-col> + </u-row> <u-row> <u-col span="12"> <text class="color_80 padding_left25rpx"> @@ -103,7 +110,7 @@ <u-row> <u-col span="12"> <text class="color_80 padding_left25rpx"> - 浣嶇疆锛歿{ item.areacode }} + 浣嶇疆锛歿{ getAreaCodeEnumName(item.areaCode) }} </text> </u-col> </u-row> @@ -129,13 +136,13 @@ </text> </u-col> </u-row> - <u-row> - <u-col span="12"> - <text class="color_80 padding_left25rpx"> - <text class="color_80"> 娆″簭锛歿{ item.shelf }} </text> - </text> - </u-col> - </u-row> + <u-row> + <u-col span="12"> + <text class="color_80 padding_left25rpx"> + 鏍囪锛歿{ getUpiFlagEnumName(item.upiFlag) }} + </text> + </u-col> + </u-row> <u-row> <u-col span="12"> <text class="color_80 padding_left25rpx"> @@ -304,7 +311,8 @@ import { WmsOperationTaskSetNG, WmsOperationTaskCancelNG, - getBhbMaterialList, + OneKeyClearUpiQueue, + querySingleUpiByUpi, getenumDataList, } from "@/api/putIn/artificial.js"; @@ -339,6 +347,8 @@ gridable: true, kwbhAllowed: false, enumList: [], + areaCodeEnum: [], + upiFlagEnum: [], }; }, components: { @@ -351,6 +361,16 @@ }).then((res) => { this.enumList = res.result || []; }); + getenumDataList({ + EnumName: "AreaCodeEnum", + }).then((res) => { + this.areaCodeEnum = res.result || []; + }); + getenumDataList({ + EnumName: "UpiFlagEnum", + }).then((res) => { + this.upiFlagEnum = res.result || []; + }); }, onLoad() { this.operator = JSON.parse(uni.getStorageSync("userInfo")).name; @@ -359,6 +379,14 @@ methods: { getEnumName(value) { const name = this.enumList.find((item) => item.value === value); + return name ? name.name : ""; + }, + getUpiFlagEnumName(value) { + const name = this.upiFlagEnum.find((item) => item.value === value); + return name ? name.name : ""; + }, + getAreaCodeEnumName(value) { + const name = this.areaCodeEnum.find((item) => item.value === value); return name ? name.name : ""; }, //鑾峰彇鐨勪俊鎭� @@ -371,7 +399,7 @@ }); return; } - getBhbMaterialList({ + querySingleUpiByUpi({ upi: this.warehouse.upi, }).then((res) => { const result = res.result; @@ -379,7 +407,7 @@ uni.showToast({ title: "鏁版嵁涓嶅瓨鍦�", icon: "none", - duration: 2000, + duration: 5000, }); this.singlist = []; return; -- Gitblit v1.9.3