From 18d2f40bbf40469b033de6f07ca8a8e3bc191132 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 26 四月 2025 19:21:40 +0800
Subject: [PATCH] 优化代码

---
 项目代码/芜湖三一PDA/pages/stash/index.vue |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\350\212\234\346\271\226\344\270\211\344\270\200PDA/pages/stash/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\350\212\234\346\271\226\344\270\211\344\270\200PDA/pages/stash/index.vue"
index 269109a..c56cd27 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\350\212\234\346\271\226\344\270\211\344\270\200PDA/pages/stash/index.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\350\212\234\346\271\226\344\270\211\344\270\200PDA/pages/stash/index.vue"
@@ -68,7 +68,7 @@
 				return this.datas.find(x => x.text == text);
 			},
 			clickCoupon(url) {
-				var _this=this;
+				var _this = this;
 				if (url == "鍑虹┖鎵�") {
 					uni.showModal({
 						title: '鎻愮ず锛�',
@@ -77,8 +77,20 @@
 							if (res.confirm) {
 								_this.PdaOutEmpty()
 								//console.log('纭')
-							} else if (res.cancel) 
-							{
+							} else if (res.cancel) {
+								// console.log('鍙栨秷')
+							}
+						}
+					})
+				} else if (url == "鍏ュ簱鏀捐揣瀹屾垚") {
+					uni.showModal({
+						title: '鎻愮ず锛�',
+						content: '鏄惁纭畾鏀捐揣瀹屾垚锛�',
+						success: function(res) {
+							if (res.confirm) {
+								_this.ReleaseCompleted()
+								//console.log('纭')
+							} else if (res.cancel) {
 								// console.log('鍙栨秷')
 							}
 						}
@@ -100,7 +112,7 @@
 					});
 				}
 			},
-			PdaOutEmpty(){
+			PdaOutEmpty() {
 				this.$u.post('/api/PDA/OutEmpty').then(
 					res => {
 						if (res.status) {
@@ -117,6 +129,23 @@
 						}
 					})
 			},
+			ReleaseCompleted() {
+				this.$u.post('http://192.168.10.88:8099/api/AGV/ReleaseCompleted').then(
+					res => {
+						if (res.status) {
+							this.$refs.uToast.show({
+								title: "鏀捐揣瀹屾垚鎴愬姛",
+								type: "success"
+							})
+							this.qty = "";
+						} else {
+							this.$refs.uToast.show({
+								title: res.message,
+								type: "error"
+							})
+						}
+					})
+			},
 			lock() {
 				console.log("lock")
 				if (this.hasLogin()) {

--
Gitblit v1.9.3