yusijie
2023-09-07 b59ef05c3fdd2e5e753ee9e59c0df3d18af40d0f
WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckBill.html
@@ -281,11 +281,11 @@
        var params = getUrlVars();
        if (typeof (params[params[0]]) == "undefined") {
            var OperationType = 1;//操作类型
            var closeType = 2;  //关闭类型
        } else {
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HEntryID = params[params[2]];//源单子id
            var HSouceBillType = params[params[3]];//源单类型
            var closeType = params[params[3]];  //关闭类型
        }
        layui.config({
@@ -320,7 +320,7 @@
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 75 }
                    , { field: '检验项目分类', title: '检验项目分类', event: "", width: 120 }
                    , { field: 'HQCCheckItemID', title: '检验项目ID', edit: 'text', hide: true }
                    , { field: 'HQCCheckItemName', title: '检验项目名称', edit: 'text', width: 120 }
                    , { field: 'HQCCheckItemName', title: '检验项目名称', edit: 'text', width: 480 }
                    , { field: 'HQCStd', title: '检验标准', edit: 'text', event: "", width: 95, hide: true }
                    , { field: 'HQCNote1', title: '检验记录1(08:00--12:00)', width: 185, templet: '#HQCNote1' }
                    , { field: 'HQCNote2', title: '检验记录2(13:00--17:00)', width: 185, templet: '#HQCNote2' }
@@ -1018,7 +1018,7 @@
            form.on('submit(HMainProcNumber-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , area: ['95%', '95%']
                    , title: '工序列表'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
@@ -1038,12 +1038,12 @@
                        $("#HMainProcNumber").val(checkStatus.data[0].工序代码);
                        $("#HMainProcName").val(checkStatus.data[0].工序名称);
                        var HQCSchemeID_Proc = checkStatus.data[0].HQCSchemeID_Proc;
                        var HQCSchemeID_Patrol = checkStatus.data[0].HQCSchemeID_Patrol;
                        $.ajax({
                            url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID",
                            type: "GET",
                            data: { "CheckProjectID": HQCSchemeID_Proc },
                            data: { "CheckProjectID": HQCSchemeID_Patrol },
                            success: function (result) {
                                if (result.code == 1) {
                                    var rowdata = [];
@@ -1259,15 +1259,18 @@
            form.on('submit(Cancel)', function () {
                //sessionStorage["SourceFlag"] = false;
                if (linterid == null || linterid == 0) {
                    parent.location.href = "../../../views/index.html"
                }
                else {
                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(index); //再执行关闭
                }
                //window.close();//关闭当前页
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    if (OperationType == 1) {
                        Pub_Close(closeType);
                    } else if (OperationType == 3) {
                        Pub_Close(1);
                    } else if (OperationType == 4) {
                        Pub_Close(1);
                    }
                    else if (OperationType == 2) {
                        Pub_Close(1);
                    }
                });
            })
            form.on('submit(Saver)', function (data) {//保存