From ac5f3574affb06666b9f3a6b76a961ffa69802e4 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 23 12月 2024 15:30:18 +0800
Subject: [PATCH] 222

---
 LA24030_LuLiPackageLine_Pda/components/buttonModal.vue |    3 ++-
 LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js    |    8 ++++++++
 LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue      |   30 +++++++++++++++++++++++++++++-
 3 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js b/LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js
index cfa7484..209a4db 100644
--- a/LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js
+++ b/LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js
@@ -259,4 +259,12 @@
 		method: 'post',
 		data: data
 	 })
+}
+
+export function UnlineForNGPackage(data){ 
+	return request({
+		url: `/api/WmsOperationTask/UnlineForNGPackage`,
+		method: 'post',
+		data: data
+	 })
 }
\ No newline at end of file
diff --git a/LA24030_LuLiPackageLine_Pda/components/buttonModal.vue b/LA24030_LuLiPackageLine_Pda/components/buttonModal.vue
index dc92540..e2e5817 100644
--- a/LA24030_LuLiPackageLine_Pda/components/buttonModal.vue
+++ b/LA24030_LuLiPackageLine_Pda/components/buttonModal.vue
@@ -8,7 +8,8 @@
 
 		</view>
 		<view v-if="subShow" class="flex justify-around transition" style="padding-top: 10rpx;">
-			<button class="width95 bg-f18202" @click="$emit('submit')">{{garmenTitle}}</button>
+			<button class="width45 bg-f18202" @click="$emit('submit')">{{garmenTitle}}</button>
+			<button class="width45 bg-grey" @click="$emit('reset')">鏁村寘NG涓嬬嚎</button>
 		</view>
 		<view v-if="empTytowerShow" class="flex justify-around transition">
 			<button class="width45 bg-grey" @click="$emit('reset')">{{cleaningTitle}}</button>
diff --git a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
index 38fb9ea..25852e7 100644
--- a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
+++ b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
@@ -298,8 +298,9 @@
     <button-modal
       :subShow="true"
       garmenTitle="閲嶇疆"
+	  subTitle="纭NG"
       @submit="rest"
-      @reset="rest"
+      @reset="do_UnlineForNGPackage"
     />
   </view>
 </template>
@@ -314,6 +315,7 @@
   onlyUpdateDutyCycle,
   getBhbMaterialList,
   getenumDataList,
+  UnlineForNGPackage
 } from "../../api/putIn/artificial.js";
 export default {
   data() {
@@ -384,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 : "";
@@ -415,6 +442,7 @@
     },
 
     rest() {
+		//alert(11)
       this.warehouse.upi = "";
       this.warehouse.upi = "";
       this.singlist = [];

--
Gitblit v1.9.3