WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Add_Edit_Gy_Process.html
@@ -83,6 +83,38 @@
                                                <input type="checkbox" name="checkboxHTProcessFlag" id="checkboxHTProcessFlag" lay-filter="checkboxHTProcessFlag" lay-skin="primary" value="true" title="是否转工序">
                                                <input type="hidden" value="false" name="HTProcessFlag" id="HTProcessFlag">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">首件检验方案</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="HQCSchemeName_Fst" id="HQCSchemeName_Fst" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <input type="hidden" name="HQCSchemeID_Fst" id="HQCSchemeID_Fst" value="0">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Fst-BT" style="width:40px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">转序检验方案</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="HQCSchemeName_Proc" id="HQCSchemeName_Proc" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <input type="hidden" name="HQCSchemeID_Proc" id="HQCSchemeID_Proc" value="0">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Proc-BT" style="width:40px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">巡检检验方案</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="HQCSchemeName_Patrol" id="HQCSchemeName_Patrol" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <input type="hidden" name="HQCSchemeID_Patrol" id="HQCSchemeID_Patrol" value="0">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Patrol-BT" style="width:40px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
@@ -94,7 +126,7 @@
                                        </div>
                                    </div>
                                    <div class="layui-col-xs8 layui-inline">
                                        <label class="layui-form-label"style="width: 12.5%;">组织*</label>
                                        <label class="layui-form-label" style="width: 12.5%;">组织*</label>
                                        <div class="layui-input-inline" style="margin-bottom: -15px;">
                                            <div class="layui-form">
                                                <div class="layui-form-item" style=" width: 375%;">
@@ -416,6 +448,21 @@
                get_checkDept();
            });
            //选择首件检验方案按钮
            form.on('submit(HQCSchemeID_Fst-BT)', function () {
                get_checkQCSchemeID_Fst();
            });
            //选择转序检验方案按钮
            form.on('submit(HQCSchemeID_Proc-BT)', function () {
                get_checkQCSchemeID_Proc();
            });
            //选择巡检检验方案按钮
            form.on('submit(HQCSchemeID_Patrol-BT)', function () {
                get_checkHQCSchemeID_Patrol();
            });
            //选择工作中心按钮
            form.on('submit(HWorkCenterID-BT)', function () {
                get_checkWorkCenter();
@@ -564,6 +611,12 @@
                                , "HWHName": data.HWHName
                                , "HWorkCenterID": data.HWorkCenterID
                                , "HWorkCenterName": data.HWorkCenterName
                                , "HQCSchemeID_Fst": data.HQCSchemeID_Fst
                                , "HQCSchemeName_Fst": data.首件检验方案
                                , "HQCSchemeID_Proc": data.HQCSchemeID_Proc
                                , "HQCSchemeName_Proc": data.转序检验方案
                                , "HQCSchemeID_Patrol": data.HQCSchemeID_Patrol
                                , "HQCSchemeName_Patrol": data.巡检检验方案
                            });
                            layer.close(ajaxLoad);
                        } else {
@@ -744,6 +797,81 @@
            }
            //#endregion
            //#region é€‰æ‹©é¦–件检验方案方法
            function get_checkQCSchemeID_Fst() {
                layer.open({
                    type: 2//弹窗类型
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['90%', '90%']//大小
                    , title: '检验方案列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_QCCheckProjectListView.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HQCSchemeName_Fst").val(checkStatus.data[0].方案名称);
                        $("#HQCSchemeID_Fst").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) { }
                })
            }
            //#endregion
            //#region é€‰æ‹©è½¬åºæ£€éªŒæ–¹æ¡ˆæ–¹æ³•
            function get_checkQCSchemeID_Proc() {
                layer.open({
                    type: 2//弹窗类型
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['90%', '90%']//大小
                    , title: '检验方案列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_QCCheckProjectListView.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HQCSchemeName_Proc").val(checkStatus.data[0].方案名称);
                        $("#HQCSchemeID_Proc").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) { }
                })
            }
            //#endregion
            //#region é€‰æ‹©å·¡æ£€æ£€éªŒæ–¹æ¡ˆæ–¹æ³•
            function get_checkHQCSchemeID_Patrol() {
                layer.open({
                    type: 2//弹窗类型
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['90%', '90%']//大小
                    , title: '检验方案列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_QCCheckProjectListView.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HQCSchemeName_Patrol").val(checkStatus.data[0].方案名称);
                        $("#HQCSchemeID_Patrol").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) { }
                })
            }
            //#endregion
            //#region é€‰æ‹©ç­ç»„方法
            function get_checkGroup() {
                layer.open({