From 77a2d94762f81da09be82aeab75cdabbf95d2926 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期一, 25 八月 2025 10:28:10 +0800 Subject: [PATCH] 1.核对送检优化 2.样式优化 --- H5/Js/Cpbdsj.js | 43 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 38 insertions(+), 5 deletions(-) diff --git a/H5/Js/Cpbdsj.js b/H5/Js/Cpbdsj.js index dd9009b..e2fa8a3 100644 --- a/H5/Js/Cpbdsj.js +++ b/H5/Js/Cpbdsj.js @@ -144,12 +144,14 @@ } else { that.$playSound('error'); + that.XBar = ""; that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; + that.XBar = ""; that.$playSound('error'); that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); }); @@ -412,14 +414,22 @@ //AGV閫佹 handleAGVInspection() { - this.$toast.fail("鍔熻兘寮�鍙戞祴璇曚腑锛�"); - return; + //this.$toast.fail("鍔熻兘寮�鍙戞祴璇曚腑锛�"); + //return; if (this.isLoading) { return; } + var that = this; + if (that.agvChecked === false) + { + that.$playSound('error'); + that.$toast.fail("AGV閫佹璇峰厛鍕鹃�� AGV"); + return; + } + if (!that.KbBar) { that.$playSound('error'); that.$toast.fail("璇峰厛鎵弿鍗℃澘鏉$爜"); @@ -455,15 +465,15 @@ .catch(function (error) { that.isLoading = false; that.$playSound('error'); - that.$toast.fail("閫佹澶辫触锛岃閲嶈瘯锛�"); + that.$toast.fail("AGV閫佹澶辫触锛岃閲嶈瘯锛�"); that.$refs.KbBar.focus(); }); }, //AGV鍛煎彨 handleAGVCall() { - this.$toast.fail("鍔熻兘寮�鍙戞祴璇曚腑锛�"); - return; + //this.$toast.fail("鍔熻兘寮�鍙戞祴璇曚腑锛�"); + //return; if (this.isLoading) { return; @@ -475,6 +485,29 @@ that.$toast.fail("璇峰厛閫夋嫨绾夸綋"); return; } + + that.isLoading = true; + that.AxiosHttp("post", 'Womdaa/handleAGVCall', { + XtNum: that.xtNum, + userAccount: that.userInfo.loginAccount + }, false) + .then(function (res) { + var json = res; + if (json.status == 0) { + that.$playSound('success'); + that.$notify({ type: 'success', message: json.message }); + } else { + that.$playSound('error'); + that.$toast.fail(json.message); + } + that.isLoading = false; + }) + .catch(function (error) { + that.isLoading = false; + that.$playSound('error'); + that.$toast.fail("AGV鍛煎彨澶辫触锛岃閲嶈瘯锛�"); + that.$refs.KbBar.focus(); + }); } -- Gitblit v1.9.3