| ¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | var vm = new Vue({ |
| | | el: '#app', |
| | | data: function () { |
| | | return { |
| | | isLoading: false, |
| | | userInfo: { |
| | | "loginGuid": '', |
| | | "loginAccount": '', |
| | | }, |
| | | KbBar: "",//塿¿æ¡ç |
| | | LsBar: "",//åçæµæ°´æ¡ç |
| | | XBar: "",//ç®±æ¡ç |
| | | UserName: Cookies.get('loginName'),//ç¨æ·åç§° |
| | | KbBarInfo: [], |
| | | KbBarMxInfo: [], |
| | | GX: "G007:æ ¸å¯¹éæ£", |
| | | Xvalue:4, |
| | | XbarInfo: [ |
| | | //{ |
| | | // iteM_BARCODE: "", // æ¡ç |
| | | // item_no: "", // ç©æç¼å· |
| | | // item_name: "", // ç©æåç§° |
| | | // item_model: "", // è§æ ¼åå· |
| | | // quantity: 0, // æ°é |
| | | // is_hedui: "0", // æ¯å¦æ ¸å¯¹(1:å·²æ ¸å¯¹ 0:æªæ ¸å¯¹), |
| | | // weight: "" // 产åéé |
| | | //} |
| | | ], |
| | | DAA001: [], |
| | | show: false,//å表å±ç¤º |
| | | actions: [],//å表çå¼ |
| | | xtName: "",//线ä½åç§° |
| | | xtNum: "",//线ä½ç¼å· |
| | | AgvDw: "",//AGVç¹ä½ |
| | | agvChecked: false,//æ¯å¦å¾éAGV |
| | | showAgvDw: false,//ç¹ä½å±ç¤º |
| | | actionsAgvDw: [],//å表AGVç¹ä½ |
| | | itemNo: "", |
| | | itemName: "", |
| | | itemModel: "", |
| | | lineName: "" |
| | | } |
| | | }, |
| | | mounted() { |
| | | var that = this; |
| | | this.userInfo = { |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleAgvPositions(positionStr) { |
| | | if (!positionStr) return []; |
| | | |
| | | // æ£æ¥æ¯å¦åå¨éå·ï¼å¦æä¸åå¨åè¿å空æ°ç» |
| | | if (!positionStr.includes(',')) return []; |
| | | |
| | | // å°å符串æéå·åå²å¹¶è½¬æ¢ä¸ºé项æ°ç» |
| | | return positionStr.split(',').map(pos => ({ |
| | | name: pos.trim() // å»é¤å¯è½çç©ºæ ¼ |
| | | })); |
| | | }, |
| | | getKbBarInfo() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/getKbBarInfo', { |
| | | Xt: that.GX, |
| | | Kbbarcode: that.KbBar |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | |
| | | if (json.status == 0) { |
| | | console.log(json.data.tbBillList.kbBarInfo[0].agvPostion); |
| | | that.KbBarInfo = json.data.tbBillList.kbBarInfo[0]; |
| | | that.DAA001 = that.KbBarInfo.daA001; |
| | | // æ ¹æ®å端è¿åçç»æèµå¼ç©æä¿¡æ¯ |
| | | that.itemNo = that.KbBarInfo.item_no || ''; |
| | | that.itemName = that.KbBarInfo.item_name || ''; |
| | | that.itemModel = that.KbBarInfo.item_model || ''; |
| | | that.lineName = that.KbBarInfo.lineName || ''; |
| | | // that.KbBarMxInfo = json.data.tbBillList.kbBarMxInfo; |
| | | //that.$refs.XBar.focus(); |
| | | |
| | | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | that.KbBar = ""; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | that.KbBar = ""; |
| | | }); |
| | | }, |
| | | getXBarInfo() { |
| | | var that = this; |
| | | if (that.KbBar.length <= 0) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("塿¿æ¡ç ä¸è½ä¸ºç©ºï¼"); |
| | | that.$refs.KbBar.focus(); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | | |
| | | if (that.DAA001.length <= 0) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("æä»¤å·¥åä¸è½ä¸ºç©ºï¼"); |
| | | that.$refs.KbBar.focus(); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | | |
| | | // æ£æ¥æ¯å¦è¶
è¿è£
ç®±æ° |
| | | if (that.XbarInfo.length >= that.Xvalue) { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(`已达å°è£
ç®±æ°éå¶(${that.Xvalue})`); |
| | | that.$dialog.alert({ |
| | | message: `已达å°è£
ç®±æ°éå¶(${that.Xvalue})`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | | |
| | | //å¾
è£
æ° |
| | | var Dvalue = (that.KbBarInfo.quantity || 0) - +(that.KbBarInfo.ySum || 0) |
| | | // æ£æ¥æ¯å¦è¶
è¿è£
ç®±æ° |
| | | if (that.Xvalue > Dvalue) { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(`è£
ç®±æ°(${that.Xvalue}) ä¸è½å¤§äº 塿¿å¾
è£
æ°(${Dvalue})`); |
| | | that.$dialog.alert({ |
| | | message: `è£
ç®±æ°(${that.Xvalue}) ä¸è½å¤§äº 塿¿å¾
è£
æ°(${Dvalue})`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | | |
| | | // æ£æ¥æ¡ç æ¯å¦å·²åå¨ |
| | | const isExist = that.XbarInfo.some(item => item.iteM_BARCODE === that.XBar); |
| | | if (isExist) { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("该箱æ¡ç å·²åå¨ï¼è¯·å¿é夿«æ"); |
| | | that.$dialog.alert({ |
| | | message: "该箱æ¡ç å·²åå¨ï¼è¯·å¿é夿«æ", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.XBar = ""; |
| | | return; |
| | | } |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/getXBarInfo', { |
| | | KbBar: that.KbBar, |
| | | DAA001: that.DAA001, |
| | | userName: that.userInfo.loginAccount, |
| | | Xbarcode: that.XBar |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.XbarInfo.push(json.data.tbBillList.xBarInfo[0]); |
| | | that.$playSound('success'); |
| | | that.$refs.XBar.focus(); |
| | | that.XBar = ""; |
| | | |
| | | // æ£æ¥æ¯å¦è¶
è¿è£
ç®±æ° |
| | | if (that.XbarInfo.length >= that.Xvalue) { |
| | | that.$refs.LsBar.focus(); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.XBar = ""; |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.XBar = ""; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | }, |
| | | productBinding() { |
| | | |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | if (that.ZsBar.length <= 0) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("追溯ç ä¸è½ä¸ºç©ºï¼"); |
| | | return; |
| | | } |
| | | if (that.LsBar.length <= 0) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("åçç ä¸è½ä¸ºç©ºï¼"); |
| | | return; |
| | | } |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/ProductBinding', { |
| | | ZsBar: that.ZsBar, |
| | | LsBar: that.LsBar, |
| | | userName: that.userInfo.loginAccount, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | // that.scanInfo = json.data.tbBillList; |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.ZsBar = null; |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.ZsBar = null; |
| | | } |
| | | |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | | that.ZsBar = null; |
| | | }); |
| | | }, |
| | | checkProductBarcode() { |
| | | |
| | | var that = this; |
| | | if (!that.LsBar) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("请è¾å
¥äº§åæ¡ç "); |
| | | return; |
| | | } |
| | | |
| | | // å¨XbarInfo䏿¥æ¾å¹é
çæ¡ç |
| | | const matchedItem = that.XbarInfo.find(item => |
| | | item.iteM_BARCODE === that.LsBar |
| | | ); |
| | | |
| | | if (matchedItem) { |
| | | if (matchedItem.is_hedui === "1") { |
| | | that.$toast("å·²æ ¸å¯¹"); |
| | | } else { |
| | | |
| | | that.AxiosHttp("post", 'Womdaa/GetWeightByXt', { |
| | | LsBar: that.LsBar, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | var weigth = json.data.tbBillList.weight; |
| | | that.$set(matchedItem, 'is_hedui', "1"); |
| | | that.$set(matchedItem, 'weight', weigth); |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: "æ ¸å¯¹æå" }); |
| | | that.LsBar = ""; |
| | | // æ£æ¥æ¯å¦ææè¡é½å·²æ ¸å¯¹ |
| | | const allChecked = that.XbarInfo.every(item => item.is_hedui === "1"); |
| | | if (allChecked && that.XbarInfo.length > 0 && that.XbarInfo.length === that.Xvalue) { |
| | | that.submitAllChecked(); |
| | | } |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | } |
| | | } else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("æªæ¾å°å¹é
çç®±æ¡ç "); |
| | | that.$dialog.alert({ |
| | | message: "æªæ¾å°å¹é
çç®±æ¡ç ", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | |
| | | that.LsBar = ""; // æ¸
空è¾å
¥æ¡ |
| | | }, |
| | | |
| | | handleClear() { |
| | | this.KbBar = ""; |
| | | this.XBar = ""; |
| | | this.LsBar = ""; |
| | | this.DAA001 = []; |
| | | this.XbarInfo = []; |
| | | |
| | | }, |
| | | |
| | | // æ°å¢æ¹æ³ï¼æäº¤ææå·²æ ¸å¯¹çæ°æ® |
| | | submitAllChecked() { |
| | | |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | |
| | | that.AxiosHttp("post", 'Womdaa/submitAllChecked', { |
| | | XbarInfo: that.XbarInfo, |
| | | KbBar: that.KbBar, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.getKbBarInfo(); |
| | | } else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | // that.XbarInfo = []; |
| | | // that.XBar = ""; |
| | | that.KbBar = ""; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("ç»å®å¤±è´¥ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | }); |
| | | }, |
| | | handleSubmit() { |
| | | |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | if (!that.KbBar) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("请å
æ«æå¡æ¿æ¡ç "); |
| | | return; |
| | | } |
| | | |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/submitInspection', { |
| | | KbBar: that.KbBar, |
| | | 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 }); |
| | | // æ¸
ç©ºæ°æ® |
| | | that.KbBar = ""; |
| | | that.$refs.KbBar.focus(); |
| | | } else { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("æäº¤å¤±è´¥ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | }, |
| | | |
| | | onSelect(action) { |
| | | this.xtNum = action.lineNo; // ç»å®line_noå°xtNumåæ®µ |
| | | console.log("éæ©ç线ä½ç¼å·ï¼", this.xtNum); |
| | | this.xtName = action.name; // ç»å®nameå°xtNameåæ®µ |
| | | this.show = false; |
| | | }, |
| | | |
| | | onSelectAgvDw(action) { |
| | | this.AgvDw = action.name; |
| | | this.showAgvDw = false; |
| | | }, |
| | | |
| | | selectDW() { |
| | | this.showAgvDw = true; |
| | | }, |
| | | |
| | | //è·åå¯å¼å«AGVççº¿ä½ |
| | | selectXt() { |
| | | this.show = true; |
| | | var that = this; |
| | | that.actions = []; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetAgvXt', { |
| | | selectKey: that.selectKey, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | |
| | | if (json.data.tbBillList.length <= 0) { |
| | | that.$toast.fail("没æå¯ç¨çæ°æ®"); |
| | | that.$playSound('error'); |
| | | } else { |
| | | that.itemInfo = json.data.tbBillList; |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { |
| | | name: item.name, |
| | | lineNo: item.line_no // æ°å¢ |
| | | }; |
| | | }); |
| | | } |
| | | } |
| | | else { |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | //that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "ç½ç»é误ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | |
| | | //AGV鿣 |
| | | handleAGVInspection() { |
| | | |
| | | //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("请å
æ«æå¡æ¿æ¡ç "); |
| | | return; |
| | | } |
| | | |
| | | if (!that.AgvDw) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("请å
éæ©AGVç¹ä½"); |
| | | return; |
| | | } |
| | | |
| | | // 计ç®å¯è£
æ°åå·²è£
æ° |
| | | const oldqty = +(that.KbBarInfo.quantity || 0); |
| | | const ySum = +(that.KbBarInfo.ySum || 0); |
| | | |
| | | if (oldqty !== ySum) { |
| | | that.$playSound('error'); |
| | | //that.$toast.fail(`è£
æ¿æªå®æï¼å¾
è£
æ°ï¼${oldqty - ySum}`); |
| | | that.$dialog.alert({ |
| | | message: `è£
æ¿æªå®æï¼å¾
è£
æ°ï¼${oldqty - ySum}`, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/handleAGVInspection', { |
| | | KbBar: that.KbBar, |
| | | userAccount: that.userInfo.loginAccount, |
| | | AgvDw: that.AgvDw |
| | | }, 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.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("AGVéæ£å¤±è´¥ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "AGVéæ£å¤±è´¥ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | }, |
| | | |
| | | //AGVå¼å« |
| | | handleAGVCall() { |
| | | //this.$toast.fail("åè½å¼åæµè¯ä¸ï¼"); |
| | | //return; |
| | | |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | if (!that.xtNum) { |
| | | that.$playSound('error'); |
| | | 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.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | //that.$toast.fail("AGVå¼å«å¤±è´¥ï¼è¯·éè¯ï¼"); |
| | | that.$dialog.alert({ |
| | | message: "AGVå¼å«å¤±è´¥ï¼è¯·éè¯ï¼", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$refs.KbBar.focus(); |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |