From bb56b2b6f21acb7c69c02585e5bc534d2f67715f Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 27 三月 2025 17:13:35 +0800 Subject: [PATCH] WMS首页优化,WCS优化AGV和产线、输送线交互逻辑 --- 项目代码/芜湖三一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..1d7ef24 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://127.0.0.1:9291/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