南骏 池
2025-11-24 dcc306696bd702d2b5092729d8dcf41e308a9251
H5/Js/IPQC_XJ/Add.js
@@ -1,4 +1,4 @@
var vm = new Vue({
var vm = new Vue({
    el: '#app',
    data: function () {
        return {
@@ -41,6 +41,8 @@
            okValue: '',//OK-数量
            ngValue: '',//NG-数量
            showDialog: false,//不良表述输入框
            checkItemDesc: '',//检验项目描述
            showCheckItemDescDialog: false,//检验项目描述输入框
            selectKey: "",//查询关键字
            actions: [],//列表的值
            daashow: false,//工单列表展示
@@ -117,6 +119,11 @@
                 input = "NG-1";
                this.addJyzIpqc(input);
            }
        },
        handleQualifiedCancel() {
            var input = "";
            input = "/";
            this.addJyzIpqc(input);
        },
        togglePopup(index) {
            // 切换指定索引的 popup 状态
@@ -404,6 +411,30 @@
        updateRemarks(guid) {
            this.showDialog= true
        },
        updateCheckItemDesc(guid) {
            this.showCheckItemDescDialog = true
        },
        checkItemDescConfirm() {
            const that = this;
            that.isLoading = true;
            var guid = that.jymxData.guid;
            that.AxiosHttp("post", 'Ipqc/updateCheckItemDesc', {
                gid: guid,
                CheckItemDesc: that.checkItemDesc
            }, true, 0).then(res1 => {
                if (res1.status == 0) {
                    that.$notify({ type: 'success', message: '输入成功' });
                    that.showCheckItemDescDialog = false;
                    that.refreshJYItem();//刷新检验项目
                } else {
                    that.$toast.fail(res1.rtnMsg);
                }
                that.isLoading = false;
            }).catch(error => {
                that.$toast.fail("网络错误,请重试!");
                that.isLoading = false;
            });
        },
        deleteDetail13(guid12) {
            const that = this;
            var guid1 = that.formData.guid;//主表id