| | |
| | | } |
| | | 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("网络错误,请重试!"); |
| | | }); |
| | |
| | | //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("请先扫描卡板条码"); |
| | |
| | | .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; |
| | |
| | | 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(); |
| | | }); |
| | | } |
| | | |
| | | |