From 842b40ba0afed53b69cdb34b3e5ec27b8ca26f66 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 16 12月 2024 14:14:07 +0800
Subject: [PATCH] 22

---
 LA24030_LuLiPackageLine_Pda/pages/takeMaterial/orderpiece/orderpiece.vue |   49 ++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 38 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..81f043e 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,7 @@
 import {
   WmsOperationTaskSetNG,
   WmsOperationTaskCancelNG,
-  getBhbMaterialList,
+  querySingleUpiByUpi,
   getenumDataList,
 } from "@/api/putIn/artificial.js";
 
@@ -339,6 +346,8 @@
       gridable: true,
       kwbhAllowed: false,
       enumList: [],
+      areaCodeEnum: [],
+	  upiFlagEnum: [],
     };
   },
   components: {
@@ -351,6 +360,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 +378,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 +398,7 @@
         });
         return;
       }
-      getBhbMaterialList({
+      querySingleUpiByUpi({
         upi: this.warehouse.upi,
       }).then((res) => {
         const result = res.result;
@@ -379,7 +406,7 @@
           uni.showToast({
             title: "鏁版嵁涓嶅瓨鍦�",
             icon: "none",
-            duration: 2000,
+            duration: 5000,
           });
           this.singlist = [];
           return;

--
Gitblit v1.9.3