H5/Js/IPQC_XJ/Add.js
@@ -24,6 +24,7 @@
                mocode: "",
                boardStyle: ""
            },
            jyGw:"",//检验工位
            isShowTable: false,
            tableData: [],//返回的检验项目
            jymxData: [],//展示的检验项目
@@ -257,7 +258,7 @@
        //检验明细刷新
        refreshJYItem() {
            const that = this;
            return that.AxiosHttp("post", 'LLJ/getJYItem', {
            return that.AxiosHttp("post", 'Ipqc/getJYItem', {
                releaseNo: that.formData.releaseNo
            }, false).then(res1 => {
                const tableData = res1.data.tbBillList || [];
@@ -285,7 +286,7 @@
                        that.formData = data;
                        that.remarks = that.formData.fnGDesc;
                        that.lineId = data.lineId;
                        that.AxiosHttp("post", 'LLJ/getJYItem', {
                        that.AxiosHttp("post", 'Ipqc/getJYItem', {
                            //id: that.formData.guid,
                            releaseNo: that.formData.releaseNo
                        }, false).then(function (res1) {
@@ -534,5 +535,31 @@
                that.init();//刷新检验项目
            })
        },
        //检验项目扫描工位可做检验
        selIpqcItemsByGw() {
            const that = this;
            var guid1 = that.formData.guid;//主表id
            return that.AxiosHttp("post", 'Ipqc/selIpqcItemsByGw', {
                inOrderGuid1: guid1,
                userAccount: that.userInfo.loginAccount,
                gw: that.jyGw
            }, false).then(res => {
                var json = res;
                if (json.status == 0) {
                    that.init();//刷新
                }
                else {
                    that.$toast.fail(json.message);
                    that.$playSound('error');
                    that.jyGw = "";
                }
                that.isLoading = false;
            }).catch(error => {
                that.$toast.fail("网络错误,请重试!");
                console.error('Refresh error:', error);
            });
        },
    }
})