物料新增事业部字段下拉框,器具寿命报表修改查询条件,设备工艺参数点检,是设备采集 的给锁,完成全程质量追溯报表
5个文件已修改
976 ■■■■■ 已修改文件
WebTM/views/基础资料/公用基础资料/Add_Edit_Gy_Material.html 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/器具报表/Sc_MouldLifeUsePicReport.html 290 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/计划管理/工艺路线/Gy_MaterialTechParamBillMain.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/设备管理/设备工艺参数订单点检表/SB_EquipICMOTechParamBillEdit.html 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/质量管理/质量报表/QC_FiveMenOneRingList.html 562 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Add_Edit_Gy_Material.html
@@ -101,15 +101,15 @@
                                                        </div>
                                                    </div>
                                                    <!--<div class="layui-inline">
                        <label class="layui-form-label">主计量单位:</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly>
                            <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;">
                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                            </button>
                        </div>
                    </div>-->
                                                        <label class="layui-form-label">主计量单位:</label>
                                                        <div class="layui-input-inline">
                                                            <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly>
                                                            <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly>
                                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;">
                                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                            </button>
                                                        </div>
                                                    </div>-->
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">克重</label>
@@ -229,7 +229,7 @@
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">一次合格<br/>率标准值</label>
                                                    <label class="layui-form-label">一次合格<br />率标准值</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HOnceRightRate" id="HOnceRightRate" autocomplete="off" onfocus="this.select();" value="0" style="margin-top:10px;">
                                                    </div>
@@ -332,8 +332,8 @@
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HSecUnitRate" lay-verify="HSecUnitRate" id="HSecUnitRate" autocomplete="off" value="0">
                                                        <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HDormID-BT">
                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                </button>-->
                                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                        </button>-->
                                                        <!--<input id="HDormID" name="HDormID" type="hidden" />-->
                                                    </div>
                                                </div>
@@ -432,9 +432,9 @@
                                            </div>
                                            <div class="layui-inline">
                                                <!--<label class="layui-form-label"> è®¡é‡å•位组:</label>
        <div class="layui-input-inline">
            <input class="layui-input" name="HUnitGroupID" lay-verify="HUnitGroupID" id="HUnitGroupID">
        </div>-->
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HUnitGroupID" lay-verify="HUnitGroupID" id="HUnitGroupID">
                                                </div>-->
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">计量单位组</label>
                                                    <div class="layui-input-inline">
@@ -503,14 +503,25 @@
                                                    </button>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">事业部:</label>
                                                <div class="layui-input-inline">
                                                    <div class="layui-form-item">
                                                        <select name="HDivisionID" id="HDivisionID" lay-verify="HDivisionID">
                                                            <option value="0" selected>请选择</option>
                                                            <option value="3" selected>注塑事业部</option>
                                                            <option value="4">软磁事业部</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layui-row">
                                                <div class="layui-inline">
                                                    <!--<label class="layui-form-label"> è¾…助计量单位:</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="HSecUnitID" lay-verify="HSecUnitID" id="HSecUnitID" autocomplete="off" value="0">
            </div>-->
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HSecUnitID" lay-verify="HSecUnitID" id="HSecUnitID" autocomplete="off" value="0">
                                                    </div>-->
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">辅助计量单位</label>
                                                        <div class="layui-input-inline">
@@ -790,7 +801,7 @@
            if (OperationType == 4) {
                $("#HNumber").attr("readonly", true);
                setHNumber(HMaterTypeID);
            }
            $(this).removeAttr("lay-key");
@@ -907,8 +918,8 @@
                } else {
                    var TaxRate = $("#HTaxRate").val();
                    var HProfitRate = $("#HProfitRate").val();
                    var HTaxCost = Number((value * (100 + TaxRate*1) / 100).toFixed(4))   //含税成本价 = ä¸å«ç¨Žæˆæœ¬ * ï¼ˆ100 + ç¨ŽçŽ‡ï¼‰/100
                    var HFootPrice = Number((HTaxCost * (100 + HProfitRate*1) / 100).toFixed(4))// ç»“ç®—ä»· = å«ç¨Žæˆæœ¬ä»· * ï¼ˆ100+ åˆ©æ¶¦çŽ‡ï¼‰/100
                    var HTaxCost = Number((value * (100 + TaxRate * 1) / 100).toFixed(4))   //含税成本价 = ä¸å«ç¨Žæˆæœ¬ * ï¼ˆ100 + ç¨ŽçŽ‡ï¼‰/100
                    var HFootPrice = Number((HTaxCost * (100 + HProfitRate * 1) / 100).toFixed(4))// ç»“ç®—ä»· = å«ç¨Žæˆæœ¬ä»· * ï¼ˆ100+ åˆ©æ¶¦çŽ‡ï¼‰/100
                    $("#HTaxCost").val(HTaxCost);
                    $("#HFootPrice").val(HFootPrice);
                }
@@ -923,8 +934,8 @@
                } else {
                    var TaxRate = $("#HTaxRate").val();
                    var HProfitRate = $("#HProfitRate").val();
                    var HNoTaxCost = Number((value / (100 + TaxRate*1) * 100).toFixed(4))//不含税成本价 = å«ç¨Žæˆæœ¬/ ï¼ˆ100 + ç¨ŽçŽ‡ï¼‰/100 ç»“ç®—ä»·
                    var HFootPrice = Number((value * (100 + HProfitRate*1) / 100).toFixed(4))
                    var HNoTaxCost = Number((value / (100 + TaxRate * 1) * 100).toFixed(4))//不含税成本价 = å«ç¨Žæˆæœ¬/ ï¼ˆ100 + ç¨ŽçŽ‡ï¼‰/100 ç»“ç®—ä»·
                    var HFootPrice = Number((value * (100 + HProfitRate * 1) / 100).toFixed(4))
                    $("#HNoTaxCost").val(HNoTaxCost);
                    $("#HFootPrice").val(HFootPrice);
                }
@@ -1074,6 +1085,9 @@
                                , "HTela_M": data.毛纱名称及规格
                                , "HUnderTela_M": data.底丝
                                , "HSizing_M": data.定型浆料
                                , "HProjectBillMainID": data.HProjectBillMainID
                                , "HProjectName": data.项目名称
                                , "HDivisionID": data.HDivisionID
                            });
@@ -1099,7 +1113,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Gy_Material/getMaxNum',
                    type: "GET",
                    data: { "HMaterTypeID": TypeID, "user": sessionStorage["HUserName"], "Organization": sessionStorage["Organization"]},
                    data: { "HMaterTypeID": TypeID, "user": sessionStorage["HUserName"], "Organization": sessionStorage["Organization"] },
                    success: function (data1) {
                        if (data1.data != null) {
                            layer.close(ajaxLoad);
@@ -1656,8 +1670,6 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        console.log(checkStatus.data[0].项目组);
                        console.log(checkStatus.data[0].HInterID);
                        $("#HProjectName").val(checkStatus.data[0].项目组);
                        $("#HProjectBillMainID ").val(checkStatus.data[0].HInterID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
WebTM/views/Ä£Öξ߹ÜÀí/Æ÷¾ß±¨±í/Sc_MouldLifeUsePicReport.html
@@ -32,13 +32,6 @@
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">日期间隔</label>
                                    <div class="layui-input-block">
                                        <select name="HInitTimeCycle" id="HInitTimeCycle" class="ForFilteringSchemes" lay-filter="HInitTimeCycle" style="width:190px;">
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">开始日期</label>
                                    <div class="layui-input-block">
                                        <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;">
@@ -51,11 +44,14 @@
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">模具编号</label>
                                    <label class="layui-form-label" >模具编号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input ForFilteringSchemes" name="HMouldNo" id="HMouldNo" style="width:190px;">
                                        <input type="text" class="layui-input" lay-verify="HMouldNo" name="HMouldNo" id="HMouldNo" value="" style="background-color: #efefef4d; width: 75%; display: inline-block;" readonly>
                                        <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMouldNo" id="btnHMouldNo" style="padding: 0 10px;float: right;margin-right: 3px;">
                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                        </button>
                                    </div>
                                </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">模具名称</label>
                                    <div class="layui-input-block">
@@ -65,90 +61,7 @@
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                                <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;">
                                    <div class="layui-row" style="margin-top:5px">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">过滤</label>
                                            <div class="layui-input-block">
                                                <select name="ColName" id="ColName" class="ForFilteringSchemes" lay-filter="ColName" style="width:190px;">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <select name="Comparator" id="Comparator" class="ForFilteringSchemes" lay-filter="Comparator" style="width:190px;">
                                                <option value="0" selected="selected"></option>
                                                <option value="=">=</option>
                                                <option value=">=">>=</option>
                                                <option value=">">></option>
                                                <option value="<="><=</option>
                                                <option value="<"><</option>
                                                <option value="<>"><></option>
                                                <option value="7">包含</option>
                                                <option value="8">左包含</option>
                                                <option value="9">右包含</option>
                                                <option value="10">不包含</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline">
                                            <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent" id="ColContent">
                                        </div>
                                    </div>
                                    <div class="layui-row" style="margin-top:5px">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">过滤</label>
                                            <div class="layui-input-block">
                                                <select name="ColName1" id="ColName1" lay-filter="ColName1" style="width:190px;">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <select name="Comparator1" id="Comparator1" lay-filter="Comparator1" style="width:190px;">
                                                <option value="0" selected="selected"></option>
                                                <option value="=">=</option>
                                                <option value=">=">>=</option>
                                                <option value=">">></option>
                                                <option value="<="><=</option>
                                                <option value="<"><</option>
                                                <option value="<>"><></option>
                                                <option value="7">包含</option>
                                                <option value="8">左包含</option>
                                                <option value="9">右包含</option>
                                                <option value="10">不包含</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline">
                                            <input type="text" class="layui-input" value="" name="ColContent1" id="ColContent1">
                                        </div>
                                    </div>
                                    <div class="layui-row" style="margin-top:5px">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">过滤</label>
                                            <div class="layui-input-block">
                                                <select name="ColName2" id="ColName2" lay-filter="ColName2" style="width:190px;">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <select name="Comparator2" id="Comparator2" lay-filter="Comparator2" style="width:190px;">
                                                <option value="0" selected="selected"></option>
                                                <option value="=">=</option>
                                                <option value=">=">>=</option>
                                                <option value=">">></option>
                                                <option value="<="><=</option>
                                                <option value="<"><</option>
                                                <option value="<>"><></option>
                                                <option value="7">包含</option>
                                                <option value="8">左包含</option>
                                                <option value="9">右包含</option>
                                                <option value="10">不包含</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline">
                                            <input type="text" class="layui-input" value="" name="ColContent2" id="ColContent2">
                                        </div>
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                            </div>
                        </div>
                        <div>
@@ -159,13 +72,7 @@
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="RefreshButton"><i class="layui-icon layui-icon-refresh-3"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导出</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>列设置</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>按钮设置</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="ExitButton"><i class="layui-icon layui-icon-logout"></i>退出</button>
                            </div>
                        </script>
                    </form>
@@ -238,6 +145,43 @@
            form.on('submit(btnReSearch)', function (data) {
                set_ClearQuery();
            });
            //工序
            form.on('submit(btnHMouldNo)', function () {
                //页面层-自定义
                layer.open({
                    type: 2,
                    skin: 'layui-layer-rim', //加上边框
                    title: '模具列表',
                    closeBtn: 1,
                    shift: 2,
                    area: ['90%', '90%'],
                    maxmin: true,
                    content: ['../../模治具管理/模治具管理/Gy_MouldFileList.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('请选择数据');
                        }
                        $("#HMouldNo").val(checkStatus.data[0].模具编号);
                        $("#HName").val(checkStatus.data[0].模具名称);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                    },
                    end: function () {
                    },
                    success: function (layero, index) {
                    }
                });
            });
            //#endregion
            //#region ç‚¹å‡»è¡Œé€‰ä¸­é«˜äº®
@@ -260,43 +204,14 @@
                });
            })
            //#endregion
            //日期间隔下拉列表监听
            form.on('select(HInitTimeCycle)', function (data) {
                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
                //若日期间隔不为 ä»»æ„é—´éš”,则禁用开始日期与结束日期的选择
                if (HInitTimeCycle != -1) {
                    $('#HBeginDate').prop('disabled', true);
                    $('#HEndDate').prop('disabled', true);
                    $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
                    $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                    //执行查询方法
                    get_FastQuery();
                } else {
                    $('#HBeginDate').prop('disabled', false);
                    $('#HEndDate').prop('disabled', false);
                }
            });
            //#region æ­¤é¡µé¢æ‰€æœ‰æ–¹æ³•
            // åˆå§‹åŒ–界面
            function set_ClearBill() {
                //初始化日期间隔、开始日期、结束日期
                setSelect_HInitTimeCycle();
                //若日期间隔不为 ä»»æ„é—´éš”,则禁用开始日期与结束日期的选择
                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
                if (HInitTimeCycle != -1) {
                    $('#HBeginDate').prop('disabled', true);
                    $('#HEndDate').prop('disabled', true);
                } else {
                    $('#HBeginDate').prop('disabled', false);
                    $('#HEndDate').prop('disabled', false);
                }
                //根据日期间隔设置开始时间与结束时间
                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
                $("#HBeginDate").val(Format(new Date(new Date().setMonth(new Date().getMonth() - 3)), "yyyy-MM-dd"));
                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                //初始化表
                set_InitGrid();
@@ -397,82 +312,7 @@
                var HBeginDate = $("#HBeginDate").val();
                var HEndDate = $("#HEndDate").val();
                var HMouldNo = $("#HMouldNo").val();
                var HName = $("#HName").val();
                var ColName = $("#ColName").val();//复选框
                var Comparator = $("#Comparator").val()
                var ColContent = $("#ColContent").val();
                var ColName1 = $("#ColName1").val();//复选框
                var Comparator1 = $("#Comparator1").val()
                var ColContent1 = $("#ColContent1").val();
                var ColName2 = $("#ColName2").val();//复选框
                var Comparator2 = $("#Comparator2").val()
                var ColContent2 = $("#ColContent2").val();
                if (ColName != 0 && Comparator != 0) {
                    var com = "";
                    switch (Comparator) {
                        case "7":
                            com = "like'%" + ColContent + "%'";
                            break;
                        case "8":
                            com = "like'%" + ColContent + "'";
                            break;
                        case "9":
                            com = "like'" + ColContent + "%'";
                            break;
                        case "10":
                            com = "not like'%" + ColContent + "%'";
                            break;
                        default:
                            com = "" + Comparator + "'" + ColContent + "'";
                            break;
                    }
                    sWhere += " and " + ColName + " " + com;
                }
                if (ColName1 != 0 && Comparator1 != 0) {
                    var com1 = "";
                    switch (Comparator1) {
                        case "7":
                            com1 = "like'%" + ColContent1 + "%'";
                            break;
                        case "8":
                            com1 = "like'%" + ColContent1 + "'";
                            break;
                        case "9":
                            com1 = "like'" + ColContent1 + "%'";
                            break;
                        case "10":
                            com1 = "not like'%" + ColContent1 + "%'";
                            break;
                        default:
                            com1 = "" + Comparator1 + "'" + ColContent1 + "'";
                            break;
                    }
                    sWhere += " and " + ColName1 + " " + com1;
                }
                if (ColName2 != 0 && Comparator2 != 0) {
                    var com2 = "";
                    switch (Comparator2) {
                        case "7":
                            com2 = "like'%" + ColContent2 + "%'";
                            break;
                        case "8":
                            com2 = "like'%" + ColContent2 + "'";
                            break;
                        case "9":
                            com2 = "like'" + ColContent2 + "%'";
                            break;
                        case "10":
                            com2 = "not like'%" + ColContent2 + "%'";
                            break;
                        default:
                            com2 = "" + Comparator + "'" + ColContent + "'";
                            break;
                    }
                    sWhere += " and " + ColName2 + " " + com2;
                }
                var HName = $("#HName").val();
                if (HBeginDate) {
                    sWhere += " and CONVERT(varchar(7),日期, 23) >= '" + HBeginDate + "'";
@@ -506,41 +346,15 @@
            }
            //重置快速查询
            function set_ClearQuery() {
                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd")); //开始日期
                $("#HBeginDate").val(Format(new Date(new Date().setMonth(new Date().getMonth() - 3)), "yyyy-MM-dd"));
                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));  //结束日期          
                $("#btnSearch").click();
                $("#ColContent").val("");
                $("#ColName").val("0");
                $("#Comparator").val("0");
                $("#ColContent2").val("");
                $("#ColName2").val("0");
                $("#Comparator2").val("0");
                $("#ColContent1").val("");
                $("#ColName1").val("0");
                $("#Comparator1").val("0");
                $("#btnSearch").click();
                form.render('select');
                sWhere = "";
            }
            //#region åˆå§‹æ—¥æœŸé—´éš” ä¸‹æ‹‰åˆ—表
            function setSelect_HInitTimeCycle() {
                var valueList = [0, 1, 2, 3, 4, 5, 6, 29];
                var titleList = ["今天", "近两天", "近三天", "近四天", "近五天", "近六天", "近七天", "近30天"];
                var HInitTimeCycle_ArrayList = '<option  value="-1" selected="selected" >任意间隔</option>';
                for (var i = 0; i < valueList.length; i++) {
                    HInitTimeCycle_ArrayList += '<option  style="color:blue;" value="' + valueList[i] + '">' + titleList[i] + '</option>';
                }
                $("#HInitTimeCycle").empty();
                $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList);
                form.render('select');
                $("#HInitTimeCycle").val("29");
            }
            //#endregion
            //刷新
            function get_Refresh() {
                $("#btnSearch").trigger('click');
WebTM/views/¼Æ»®¹ÜÀí/¹¤ÒÕ·Ïß/Gy_MaterialTechParamBillMain.html
@@ -974,7 +974,7 @@
                                            "HStd": "0",
                                            "HMax": "0",
                                            "HMin": "0",
                                            "HDataForm": "手工录入",
                                            "HDataForm": "设备采集",
                                            "HDataUnit": "秒",
                                            "HDataTimes": "0",
                                            "HTechParamClassID": "0",
WebTM/views/É豸¹ÜÀí/É豸¹¤ÒÕ²ÎÊý¶©µ¥µã¼ì±í/SB_EquipICMOTechParamBillEdit.html
@@ -592,11 +592,11 @@
                    , cols: [[
                        { type: 'checkbox', totalRowText: '合计行' }
                        , { type: 'numbers', title: '序号', width: 100 }
                        , { field: 'HTechParamClassID', title: '工艺参数大类', width: 100 ,hide: true,}
                        , { field: 'HTechParamClassName', title: '工艺参数名称', width: 120, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamClassID', title: '工艺参数大类', width: 100, hide: true, }
                        , { field: 'HTechParamClassName', title: '工艺参数大类名称', width: 120, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamID', title: 'HTechParamID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamNumber', title: '工艺参数代码', width: 110, edit: 'text', event: "HTechParamNumber" }                 //F7
                        , { field: 'HTechParamName', title: '工艺参数名称', width: 110, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamName', title: '工艺参数名称', width: 110, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamUnitID', title: 'HTechParamUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamUnitNumber', title: '工艺参数单位代码', width: 130, edit: 'text', event: "HTechParamUnitNumber" }         //F7
                        , { field: 'HTechParamUnitName', title: '工艺参数单位名称', width: 130, style: 'background-color:#efefef4d;' }
@@ -604,14 +604,14 @@
                        , { field: 'HTechParamIDStd', title: 'HTechParamIDStd', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HTechParamIDStdName', title: '设备设定值工艺参数', width: 130, edit: 'text', event: "HTechParamIDStdName" }
                        , { field: 'HResultStd', title: '设备设定值', width: 130, edit: 'text' }
                        , { field: 'HVaule', title: '工艺参数值', width: 100, edit: 'text' }
                        , { field: 'HVaule', title: '工艺参数值', width: 100, edit: 'text', event: "HVaule"  }
                        , { field: 'HStd', title: '标准值', width: 100, edit: 'text' }
                        , { field: 'HMax', title: '上限', width: 100, edit: 'text' }
                        , { field: 'HMin', title: '下限', width: 100, edit: 'text' }
                        , { field: 'HResult', title: '检测结果', width: 100, templet: "#HResult" }
                        , { field: 'HResult', title: '检测结果', width: 100, templet: "#HResult" }
                        , { field: 'HRemark', title: '备注', width: 100, edit: 'text' }
                        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                    ]]
                    ]]
                }
                var rowdata = [{
@@ -1230,21 +1230,28 @@
                set_GridDelete(obj);    //行内删除
                set_GridCellCheck(obj); //行内快捷键筛选
                var data = obj.data;
                if (obj.event == 'HDate') {
                var data = obj.data;
                if (obj.event == 'HVaule') {
                    var field = $(this).data('field');
                    laydate.render({
                        elem: this.firstChild
                        , show: true //直接显示
                        , closeStop: this
                        , done: function (nowDate) {
                            //时间选择完成,行数据更新
                            data[field] = nowDate;
                            obj.update(data);
                        }
                    });
                    var row = obj.data; // èŽ·å–å½“å‰è¡Œæ•°æ®
                    if (row['HRemark'] === '设备采集') {
                        layer.msg('此单元格的值为“设备采集”,无法编辑'); // æç¤ºä¿¡æ¯
                    } else {
                        // å…è®¸ç¼–辑单元格
                        $(this).attr('contenteditable', 'true'); // ä½¿å•元格可编辑
                        $(this).focus(); // èšç„¦åˆ°ç¼–辑的单元格
                    }
                }
            });
                // ç›‘听单元格编辑结束事件
                $(document).on('blur', '[contenteditable]', function () {
                    var newValue = $(this).text(); // èŽ·å–æ–°å€¼
                    var field = $(this).data('field');
                    var row = obj.data; // èŽ·å–å½“å‰è¡Œæ•°æ®
                    row[field] = newValue; // æ›´æ–°æ•°æ®
                    obj.update(row); // æ›´æ–°è¡Œæ•°æ®
                    $(this).removeAttr('contenteditable'); // å–消编辑状态
                });
            });
            //#endregion
            //#region è¡Œå†…删除
@@ -1423,20 +1430,21 @@
                                    {
                                        "HTechParamClassID": result.data[i]["HTechParamClassID"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                        "HTechParamClassName": result.data[i]["工艺参数大类名称"],
                                        "HTechParamID": result.data[i]["HTechParamID"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                        "HTechParamID": result.data[i]["HTechParamID"] == null ? 0 : result.data[i]["HTechParamID"],
                                        "HTechParamNumber": result.data[i]["工艺参数代码"],
                                        "HTechParamName": result.data[i]["工艺参数名称"],
                                        "HTechParamUnitID": result.data[i]["HTechParamUnitID"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                        "HTechParamUnitID": result.data[i]["HTechParamUnitID"] == null ? 0 : result.data[i]["HTechParamUnitID"],
                                        "HTechParamUnitNumber": result.data[i]["工艺参数单位代码"],
                                        "HTechParamUnitName": result.data[i]["工艺参数单位名称"] ,
                                        "HSNO": result.data[i]["工艺次序"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                        "HTechParamIDStd": result.data[i]["HTechParamIDStd"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                        "HSNO": result.data[i]["工艺次序"] == null ? 0 : result.data[i]["工艺次序"],
                                        "HTechParamIDStd": result.data[i]["HTechParamIDStd"] == null ? 0 : result.data[i]["HTechParamIDStd"],
                                        "HTechParamIDStdName": result.data[i]["对应设定值工艺参数"],
                                        "HResultStd": "",
                                        "HVaule": result.data[i]["数采值"],
                                        "HStd": result.data[i]["标准值"],
                                        "HMax": result.data[i]["上限值"],
                                        "HMin": result.data[i]["下限值"],
                                        "HRemark": result.data[i]["采集来源"]
                                    }
                                );
                            }
@@ -1455,7 +1463,7 @@
                })
            }
            //#endregion
            //#region åŠŸèƒ½æŽ§ä»¶
            //#region æäº¤
WebTM/views/ÖÊÁ¿¹ÜÀí/ÖÊÁ¿±¨±í/QC_FiveMenOneRingList.html
@@ -88,41 +88,43 @@
                                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                            </div>
                            <div  class="layui-col-xs7 layui-inline"  style="margin-top:20px;">
                                <ul class="layui-tab-title">
                                    <li class="layui-this">人</li>
                                    <li>机</li>
                                    <li>料</li>
                                    <li>法</li>
                                    <li>环</li>
                                    <li>测</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
                                        <!--人-->
                                        <table class="layui-hide" id="mainTable_Man" lay-filter="mainTable_Man"></table>
                            <div class="layui-col-xs7 layui-inline" style="margin-top:20px;">
                                <div class="layui-tab layui-tab-card">
                                    <ul class="layui-tab-title">
                                        <li class="layui-this">人</li>
                                        <li>机</li>
                                        <li>料</li>
                                        <li>法</li>
                                        <li>环</li>
                                        <li>测</li>
                                    </ul>
                                    <div class="layui-tab-content">
                                        <div class="layui-tab-item layui-show">
                                            <!--人-->
                                            <table class="layui-hide" id="mainTable_Man" lay-filter="mainTable_Man"></table>
                                        </div>
                                        <div class="layui-tab-item">
                                            <!--机-->
                                            <table class="layui-hide" id="mainTable_Machine" lay-filter="mainTable_Machine"></table>
                                        </div>
                                        <div class="layui-tab-item">
                                            <!--料-->
                                            <table class="layui-hide" id="mainTable_Material" lay-filter="mainTable_Material"></table>
                                        </div>
                                        <div class="layui-tab-item">
                                            <!--法-->
                                            <table class="layui-hide" id="mainTable_Method" lay-filter="mainTable_Method"></table>
                                        </div>
                                        <div class="layui-tab-item">
                                            <!--环-->
                                            <table class="layui-hide" id="mainTable_Environments" lay-filter="mainTable_Environments"></table>
                                        </div>
                                        <div class="layui-tab-item">
                                            <!--测-->
                                            <table class="layui-hide" id="mainTable_Measure" lay-filter="mainTable_Measure"></table>
                                        </div>
                                    </div>
                                    <div class="layui-tab-item">
                                        <!--机-->
                                        <table class="layui-hide" id="mainTable_Machine" lay-filter="mainTable_Machine"></table>
                                    </div>
                                    <div class="layui-tab-item">
                                        <!--料-->
                                        <table class="layui-hide" id="mainTable_Material" lay-filter="mainTable_Material"></table>
                                    </div>
                                    <div class="layui-tab-item">
                                        <!--法-->
                                        <table class="layui-hide" id="mainTable_Method" lay-filter="mainTable_Method"></table>
                                    </div>
                                    <div class="layui-tab-item">
                                        <!--环-->
                                        <table class="layui-hide" id="mainTable_Environments" lay-filter="mainTable_Environments"></table>
                                    </div>
                                    <div class="layui-tab-item">
                                        <!--测-->
                                        <table class="layui-hide" id="mainTable_Measure" lay-filter="mainTable_Measure"></table>
                                    </div>
                                </div>
                                </div>
                            </div>
                        </div>                       
                        <script type="text/html" id="toolbarDemo">
@@ -166,7 +168,7 @@
            //
            var HModName = "QC_FiveMenOneRingList";
            //不需要显示的字段 å¯æ‰©å±• ï¼ˆäººï¼‰
            var titleData = ["主流转卡id", "配件流转卡id", "成品物料id", "配件物料id", "主生产订单", "配件生产订单", "成品物料代码", "成品规格型号", "配件物料代码", "配件规格型号", "单据主id"];
            var titleData = ["主流转卡id", "配件流转卡id", "成品物料id", "配件物料id", "主生产订单", "配件生产订单", "成品物料代码", "成品规格型号", "配件物料代码", "配件规格型号", "单据主id","物料id","生产资源id","职员id","模具id"];
            //初始化界面
            set_ClearBill();
            //#endregion
@@ -190,7 +192,7 @@
            //#endregion
             //#region  SN码回车方法
            $('#HICNumber').on('keydown', function (event) {
            $('#SN').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    get_FastQuery();//查询
                }
@@ -363,25 +365,7 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '主流转卡id', title: '主流转卡id', sort: true, hide: true }
                        //    , { field: '主流转卡', title: '主流转卡', sort: true }
                        //    , { field: '主生产订单', title: '主生产订单', sort: true }
                        //    , { field: '配件流转卡id ', title: '配件流转卡id ', sort: true, hide: true }
                        //    , { field: '配件流转卡 ', title: '配件流转卡 ', sort: true }
                        //    , { field: '配件生产订单 ', title: '配件生产订单 ', sort: true }
                        //    , { field: '成品物料id ', title: '成品物料id ', sort: true, hide: true }
                        //    , { field: '成品物料代码 ', title: '成品物料代码 ', sort: true }
                        //    , { field: '成品物料 ', title: '成品物料 ', sort: true }
                        //    , { field: '成品规格型号 ', title: '成品规格型号 ', sort: true }
                        //    , { field: '配件物料id ', title: '配件物料id ', sort: true, hide: true }
                        //    , { field: '配件物料代码 ', title: '配件物料代码 ', sort: true }
                        //    , { field: '配件物料 ', title: '配件物料 ', sort: true }
                        //    , { field: '配件规格型号 ', title: '配件规格型号 ', sort: true }
                        //]
                    ]
                    , cols: []
                    ,data:[]
                };
            }
@@ -397,15 +381,7 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };                
            }
@@ -421,15 +397,7 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };
            }
@@ -445,15 +413,7 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };
            }
@@ -469,15 +429,7 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };
            }
@@ -491,15 +443,7 @@
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: Number.MAX_VALUE//默认显示全部
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };
            }
@@ -513,15 +457,7 @@
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: Number.MAX_VALUE//默认显示全部
                    , cols: [
                        //[
                        //    { type: 'checkbox', totalRowText: '合计行' }
                        //    , { field: '单据类型', title: '单据类型', sort: true }
                        //    , { field: '单据号', title: '单据号', sort: true }
                        //    , { field: '单据主id', title: '单据主id', sort: true, hide: true }
                        //    , { field: '模块名称 ', title: '模块名称 ', sort: true }
                        //]
                    ]
                    , cols: []
                    , data: []
                };
            }
@@ -551,14 +487,28 @@
                                    if ($.inArray(data[j].name, titleData) > -1) {
                                        col.push({ field: data[j].id, title: data[j].name, align: 'center', hide: true }); //隐藏id列
                                    }
                                    else if (data[j].name == '配件流转卡') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '配件流转卡', templet: function (d) {
                                                return '<span style="color: blue;">' + d.配件流转卡 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else if (data[j].name == '主流转卡') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '主流转卡', templet: function (d) {
                                                return '<span style="color: blue;">' + d.主流转卡 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else {
                                        switch (data[i].Type) {
                                        switch (data[j].Type) {
                                            //int
                                            case 'DateTime':
                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, templet: "<div>{{d." + data[j].name + " ==null ?'':layui.util.toDateString(d." + data[j].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                                break;
                                            default:
                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200 });
                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200});
                                        }
                                    }
                                }
@@ -657,32 +607,386 @@
            }
            //#endregion                 
            // èŽ·å–æ ‡ç­¾
            function getActiveTab() {
                var tabs = document.getElementsByClassName("layui-tab-title")[0].getElementsByTagName("li");
                var activeTab;
                for (var i = 0; i < tabs.length; i++) {
                    if (tabs[i].classList.contains("layui-this")) {
                        activeTab = tabs[i].innerText;
                        break;
                    }
                }
                return activeTab;
            }
            //主表格  é…ä»¶æµè½¬å¡ç‚¹å‡»æ—¶é—´
            //#endregion  ç›‘听网格表体事件
             //#region  ä¸»è¡¨æ ¼  æµè½¬å¡ç‚¹å‡»æ—¶é—´
            table.on('tool(mainTable)', function (obj) {
                var data = obj.data;
                var ajaxLoad = layer.load();
                var linterid;
                //单据号超链接
                if (obj.event == '配件流转卡') {                  //检查 obj.event æ˜¯å¦ç­‰äºŽå­—符串 '单据号'。如果等于,则执行if循环
                    var linterid = data.配件流转卡id;    //声明变量linterid ä¸º data.hmainid
                    linterid = data.配件流转卡id;
                } else if (obj.event == '主流转卡') {
                    linterid = data.主流转卡id;
                }
                $.ajax({
                    url: GetWEBURL() + '/QC_CustomerAppealReport/Get_QC_FiveMenOneRingList_Right',
                    type: "GET",
                    data: { "linterid": linterid, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            var Listcol = [];
                            for (var i = 0; i < data1.list.length; i++) {
                                var data = [];
                                //给空的数组赋值
                                for (var key in data1.list[i].Columns) {
                                    data.push({ "id": data1.list[i].Columns[key].ColmCols, "name": data1.list[i].Columns[key].ColmCols, "Type": data1.list[i].Columns[key].ColmType });
                                }
                                var col = [];
                                col.push({ type: 'checkbox', fixed: 'left' });
                                for (var j = 0; j < data.length; j++) {
                                    if ($.inArray(data[j].name, titleData) > -1) {
                                        col.push({ field: data[j].id, title: data[j].name, align: 'center', hide: true }); //隐藏id列
                                    }
                                    else if (data[j].name == '单据号') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '单据号', templet: function (d) {
                                                return '<span style="color: blue;">' + d.单据号 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else if (data[j].name == '职员') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '职员', templet: function (d) {
                                                return '<span style="color: blue;">' + d.职员 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else if (data[j].name == '模具名称') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '模具名称', templet: function (d) {
                                                return '<span style="color: blue;">' + d.模具名称 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else if (data[j].name == '设备名称') {//添加超链接
                                        col.push({
                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '设备名称', templet: function (d) {
                                                return '<span style="color: blue;">' + d.设备名称 + '</span>'
                                            }, style: 'cursor: pointer;'
                                        });
                                    }
                                    else {
                                        switch (data[j].Type) {
                                            //int
                                            case 'DateTime':
                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, templet: "<div>{{d." + data[j].name + " ==null ?'':layui.util.toDateString(d." + data[j].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                                break;
                                            default:
                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: data[j].name });
                                        }
                                    }
                                }
                                Listcol.push(col);
                            }
                            //人
                            option_Man = {
                                elem: '#mainTable_Man'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[0]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Man);
                            //机
                            option_Machine = {
                                elem: '#mainTable_Machine'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[1]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query1
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Machine);
                            //料
                            option_Material = {
                                elem: '#mainTable_Material'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[2]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query2
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Material);
                            //法
                            option_Method = {
                                elem: '#mainTable_Method'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[3]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query3
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Method);
                            //环
                            option_Environments = {
                                elem: '#mainTable_Environments'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[4]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query4
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Environments);
                            //测
                            option_Measure = {
                                elem: '#mainTable_Measure'
                                , toolbar: '#toolbarDemo'
                                , cols: [Listcol[5]]
                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query5
                                , height: 'full-80'
                                , cellMinWidth: 90
                            }
                            table.render(option_Measure);
                            layer.close(ajaxLoad);
                        } else {
                            layer.close(ajaxLoad);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.close(ajaxLoad);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            });
            //#endregion
            //#region副表格
            //人
            table.on('tool(mainTable_Man)', function (obj) {
                var data = obj.data;
                if (obj.event == '单据号') {
                    var linterid = data.单据主id;
                    var HBillNo = data.单据号;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看出站单'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../车间管理/工序出站汇报单/Cj_StationOutBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&HBillNo=' + HBillNo + '&closeType=1'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '职员') {
                    var linterid = data.职员id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看职员档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../基础资料/公用基础资料/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                }
            });
            //机
            table.on('tool(mainTable_Machine)', function (obj) {
                var data = obj.data;
                if (obj.event == '单据号') {
                    var linterid = data.单据主id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看设备启动点检清单'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../车间管理/启动点检单/Sc_WorkBeginDotCheckBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '模具名称') {
                    var linterid = data.模具id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看模具档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../模治具管理/模治具管理/Gy_MouldFile.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '设备名称') {
                    var linterid = data.设备id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看设备档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../设备管理/设备档案/Gy_EquipFileMainEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '职员') {
                    var linterid = data.职员id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看职员档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../基础资料/公用基础资料/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                }
            });
            //料
            table.on('tool(mainTable_Material)', function (obj) {
                var data = obj.data;
                if (obj.event == '单据号') {
                    var linterid = data.单据主id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看上料防错单'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '职员') {
                    var linterid = data.职员id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看职员档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../基础资料/公用基础资料/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                }
            });
            //法
            table.on('tool(mainTable_Method)', function (obj) {
                var data = obj.data;
                if (obj.event == '单据号') {
                    var linterid = data.单据主id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看设备工艺参数点检'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../设备管理/设备工艺参数订单点检表/SB_EquipICMOTechParamBillEdit.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '职员') {
                    var linterid = data.职员id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看职员档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../基础资料/公用基础资料/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '模具名称') {
                    var linterid = data.模具id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看模具档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../模治具管理/模治具管理/Gy_MouldFile.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                } else if (obj.event == '设备名称') {
                    var linterid = data.设备id;
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '查看设备档案'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../../设备管理/设备档案/Gy_EquipFileMainEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
                        , resize: false,
                        end: function () {
                        }
                        , cancel: function () {
                        }
                    })
                }
            });
            //#endregion
            //#region éšè—åˆ—设置
            function get_HideColumn() {
                var colName = "";