From c0e20b1b0f1298cdc0af0037d60e74d51e364501 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 17 9月 2025 14:38:06 +0800
Subject: [PATCH] //去掉这个删除验证  【Editby shaocx,2025-09-17】

---
 LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue |   62 ++++++++++++++++++++++++++----
 1 files changed, 53 insertions(+), 9 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
index 2f92f0e..25852e7 100644
--- a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
+++ b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
@@ -94,6 +94,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">
@@ -130,13 +137,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">
@@ -291,8 +298,9 @@
     <button-modal
       :subShow="true"
       garmenTitle="閲嶇疆"
+	  subTitle="纭NG"
       @submit="rest"
-      @reset="rest"
+      @reset="do_UnlineForNGPackage"
     />
   </view>
 </template>
@@ -307,6 +315,7 @@
   onlyUpdateDutyCycle,
   getBhbMaterialList,
   getenumDataList,
+  UnlineForNGPackage
 } from "../../api/putIn/artificial.js";
 export default {
   data() {
@@ -346,6 +355,7 @@
       kwbhAllowed: false,
       enumList: [],
       areaCodeEnum: [],
+	  upiFlagEnum: [],
     };
   },
   components: {
@@ -364,7 +374,11 @@
     }).then((res) => {
       this.areaCodeEnum = res.result || [];
     });
-
+   getenumDataList({
+   	  EnumName: "UpiFlagEnum",
+   	}).then((res) => {
+   	  this.upiFlagEnum = res.result || [];
+   	});
   },
   onLoad() {
     this.operator = JSON.parse(uni.getStorageSync("userInfo")).name;
@@ -372,6 +386,31 @@
   mounted() {},
 
   methods: {
+	  do_UnlineForNGPackage() {
+		   //debugger
+	      const params = {
+			  PackageCode:this.singlist[0].packageCode,
+			  IsNG:true
+	      };
+		  //debugger
+	      uni.showModal({
+	        title: "鏁村寘NG涓嬬嚎",
+	        content: "鏄惁纭 鏁村寘NG涓嬬嚎锛�",
+	        showCancel: true,
+	        cancelColor: "#333333",
+	        success: (res) => {
+	          if (res.confirm) {
+	            UnlineForNGPackage(params).then((res) => {
+	              this.rescode = 200;
+	              this.$refs.resmodal.show = true;
+	              this.resmessage = "鏁村寘NG涓嬬嚎鎴愬姛";
+	            });
+	          } else if (res.cancel) {
+	          }
+	        },
+	      });
+	  
+	    },
     getEnumName(value) {
       const name = this.enumList.find((item) => item.value === value);
       return name ? name.name : "";
@@ -380,6 +419,10 @@
       const name = this.areaCodeEnum.find((item) => item.value === value);
       return name ? name.name : "";
     },
+	 getUpiFlagEnumName(value) {
+		  const name = this.upiFlagEnum.find((item) => item.value === value);
+		  return name ? name.name : "";
+		},
     // 濡傛灉鎵撳紑涓�涓殑鏃跺�欙紝涓嶉渶瑕佸叧闂叾浠栵紝鍒欐棤闇�瀹炵幇鏈柟娉�
     open(index) {
       // 鍏堝皢姝e湪琚搷浣滅殑swipeAction鏍囪涓烘墦寮�鐘舵�侊紝鍚﹀垯鐢变簬props鐨勭壒鎬ч檺鍒讹紝
@@ -399,6 +442,7 @@
     },
 
     rest() {
+		//alert(11)
       this.warehouse.upi = "";
       this.warehouse.upi = "";
       this.singlist = [];

--
Gitblit v1.9.3