南骏 池
8 天以前 77a2d94762f81da09be82aeab75cdabbf95d2926
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();
                });
        }