修改丸井项目提出的问题+模具保养单选器具以后带出默认保养规程信息
8个文件已修改
335 ■■■■ 已修改文件
WebTM/WebTM.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/PublicPage/MouldMaintainRuleInterList.html 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldOtherOutBillEdit.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldRepairChangeBillList.html 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Gy_MouldFile.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_Add_MouldMaintainBillList.html 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldMaintainRuleBillEdit.html 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldMaintainRuleBillList.html 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj.user
@@ -2,7 +2,7 @@
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile>
    <ProjectView>ShowAllFiles</ProjectView>
    <ProjectView>ProjectFiles</ProjectView>
    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
    <UseIISExpress>true</UseIISExpress>
    <Use64BitIISExpress />
WebTM/views/PublicPage/MouldMaintainRuleInterList.html
@@ -87,8 +87,8 @@
                , laydate = layui.laydate
                , util = layui.util
                , tree = layui.tree
            var sWhere = " where HStopFlag=0 and HEndFlag<>'1' "; //树型100046  sessionStorage["OrganizationID"]
            var sWhere1 = " where HStopFlag=0 and HEndFlag=1 ";  //列表
            var sWhere = " "; //树型100046  sessionStorage["OrganizationID"]
            var sWhere1 = "";  //列表
            var option = {
                elem: '#mainTable'
@@ -98,16 +98,15 @@
                , cellMinWidth: 90
                , cols: [[
                    { type: 'radio', fixed: 'left' }
                    , { field: 'hmainid', title: 'HInterID', sort: true, hide: true }
                    , { field: 'hmainid', title: 'HInterID' }
                    , { field: '单据号', title: '单据号' }
                    , { field: 'HCycleUnit', title: '周期单位' }
                ]]
            };
            var index = layer.load(0, { shade: false });
            //进入页面显示的缓存列表
            $.ajax({
                url: GetWEBURL() + '/Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList',
                url: GetWEBURL() + '/Sc_MouldMaintainRuleBill/GetMouldMaintainRuleList',
                type: "GET",
                data: { "sWhere": SeachFilter(sWhere1) },
                success: function (data1) {
@@ -130,7 +129,7 @@
            form.on('submit(btnSearch)', function (data) {
                $.ajax({
                    url: GetWEBURL() + '/Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList',
                    url: GetWEBURL() + '/Sc_MouldMaintainRuleBill/GetMouldMaintainRuleList',
                    type: "GET",
                    data: { "sWhere": SeachFilter(sWhere1) },
                    success: function (data1) {
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldOtherOutBillEdit.html
@@ -47,6 +47,7 @@
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off">
                                                    <input id="HInterID" name="HInterID" type="hidden" />
                                                    <input id="HYear" name="HYear"  type="hidden"/>
                                                    <input id="HMaker" name="HMaker" type="hidden" /><!--制单人-->
                                                </div>
                                            </div>
@@ -481,7 +482,7 @@
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = JSON.stringify(table.cache['mainTable']);
                var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"];
                if (AllowLoadData()) {
                if (AllowLoadData(sSubStr)) {
                    $.ajax(
                        {
                            type: "POST",
@@ -681,6 +682,7 @@
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
                        $("#HInterID").val(0);
                        $("#HYear").val(Pub_Format(new Date(), "yyyy"));
                    }
                });
            }
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldRepairChangeBillList.html
@@ -178,26 +178,35 @@
                        , { field: '开始日期', title: '开始日期', width: 125, templet: "<div>{{d.开始日期 ==null ?'':layui.util.toDateString(d.开始日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '结束日期', title: '结束日期', width: 125, templet: "<div>{{d.结束日期 ==null ?'':layui.util.toDateString(d.结束日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据类型', title: '单据类型', width: 110, hide: true }
                        , { field: '物料代码', title: '物料代码', width: 110 }
                        , { field: '模具代码', title: '器具代码', width: 125 }
                        , { field: '模具名称', title: '器具名称', width: 125 }
                        , { field: '规格型号', title: '规格型号', width: 125 }
                        , { field: '计划工时', title: '计划工时', width: 125 }
                        , { field: '实际工时', title: '实际工时', width: 125 }
                        , { field: '改制数量', title: '改制数量', width: 125 }
                        , { field: 'HNewMaterID', title: 'HNewMaterID', width: 200, hide: true }
                        , { field: '新物料代码', title: '新物料代码', width: 115 }
                        , { field: '新物料', title: '新物料', width: 125 }
                        , { field: 'HRepairID', title: 'HRepairID', width: 200, hide: true }
                        , { field: '改制项目代码', title: '改制项目代码', width: 115 }
                        , { field: '改制项目', title: '改制项目', width: 125 }
                        , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
                        , { field: '部门代码', title: '部门代码', width: 115 }
                        , { field: '部门', title: '部门', width: 125 }
                        , { field: 'HEmpID', title: '申请人ID', width: 125,hide: true }
                        , { field: '部门代码', title: '改制部门代码', width: 115 }
                        , { field: '部门', title: '改制部门', width: 125 }
                        , { field: 'HSupID', title: 'HDeptID', width: 200, hide: true }
                        , { field: '供应商代码', title: '供应商代码', width: 115 }
                        , { field: '供应商', title: '供应商', width: 125 }
                        , { field: 'HEmpID', title: '申请人ID', width: 125, hide: true }
                        , { field: '申请人', title: '申请人', width: 125 }
                        , { field: 'HManagerID', title: '负责人ID', width: 125, hide: true }
                        , { field: '负责人', title: '负责人', width: 125 }
                        , { field: '改制类型', title: '改制类型', width: 125 }
                        , { field: 'HNewMaterID', title: 'HNewMaterID', width: 125,hide: true }
                        , { field: '新物料代码', title: '新物料代码', width: 125 }
                        , { field: '新物料', title: '新物料', width: 125 }
                        , { field: '新名称', title: '新名称', width: 125 }
                        , { field: '新规格', title: '新规格', width: 125 }
                        , { field: '新型号', title: '新型号', width: 125 }
                        , { field: '计划工时', title: '计划工时', width: 125 }
                        , { field: '实际工时', title: '实际工时', width: 125 }
                        , { field: '改制数量', title: '改制数量', width: 125 }
                        , { field: '改制要求', title: '改制要求', width: 125 }
                        , { field: '改制内容', title: '改制内容', width: 125 }
                        , { field: '备注', title: '备注', width: 125 }
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Gy_MouldFile.html
@@ -315,7 +315,7 @@
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                        <!--<div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">默认点检规程</label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HMouldDotCheckRuleInterName" id="HMouldDotCheckRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
@@ -324,7 +324,7 @@
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
                                                </button>
                                            </div>
                                        </div>
                                        </div>-->
                                    </div>
                                </div>
                            </div>
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_Add_MouldMaintainBillList.html
@@ -233,7 +233,7 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;;
                var AddRow = table.cache['mainTable'];
                var NewRow = TabRow;
                var NewRow = { "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " };
                switch (obj.event) {
                    //新增一行
                    case 'btn-AddLine': btnAddLine(NewRow);
@@ -250,7 +250,7 @@
                var checkStatus = table.checkStatus('mainTable1')
                    , data = checkStatus.data;;
                var AddRow = table.cache['mainTable1'];
                var NewRow = TabRow1;
                var NewRow = { "HMaterID": 0, "HMaterNumber": " ", "HMaterName": " ", "HMaterSpec": " ", "HUnitID": "0", "HUnitNumber": " ", "HUnitName": " ", "HQty": "0", "HQtyMust": "0", "HManagerID": "0", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " };
                switch (obj.event) {
                    //新增一行
                    case 'btn-AddLine1': btnAddLine1(NewRow);
@@ -349,14 +349,126 @@
            });
            function get_MaintainItem() {
                $.ajax({
                 $.ajax({
                    url: GetWEBURL() + "/Web/GetMaintainItemtemByMouldProjectID",
                    type: "GET",
                    data: { "MouldProjectID": $("#HMouldID").val() },
                    success: function (result) {
                        if (result!=null) {
                            option.data = result.data;
                            table.render(option);
                        if (result != null) {
                            if (result.count == 1) {
                                var BYData = result.list[0];//保养
                                var PJData = result.list[1];//配件
                                var rowdate1 = layui.table.cache["mainTable"];
                                var rowdate2 = layui.table.cache["mainTable1"];
                                if (rowdate1.length == 0)  //表体数据为空时
                                {
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < BYData.length; i++) {
                                        var checkrow = {
                                            "HMaintainItemID": BYData[i].HMaintainItemID, "HMaintainItemNumber": BYData[i].HMaintainItemNumber, "HMaintainItem": BYData[i].HMaintainItem,
                                            "HMaintainPart": BYData[i].HMaintainPart, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerNumber,
                                            "HManagerName": BYData[i].HManagerName, "HClaim": rowdate1[i].HClaim, "HRemark": rowdate1[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    table.reload("mainTable", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                                if (rowdate1.length > 0 && rowdate1.length <= BYData.length) //表体数据不为空,且表体数据行数小于等于选中带回数据行数
                                {
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < rowdate1.length; i++) {
                                        var checkrow = {
                                            "HMaintainItemID": BYData[i].HMaintainItemID, "HMaintainItemNumber": BYData[i].HMaintainItemNumber, "HMaintainItem": BYData[i].HMaintainItem,
                                            "HMaintainPart": BYData[i].HMaintainPart, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerNumber,
                                            "HManagerName": BYData[i].HManagerName, "HClaim": rowdate1[i].HClaim, "HRemark": rowdate1[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    //buttonArr.push(NewRow);  //在尾部加一行
                                    table.reload("mainTable", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                                if (rowdate1.length > 0 && rowdate1.length > BYData.length) //表体数据不为空,且表体数据行数大于选中带回数据行数
                                {
                                    console.log(checkStatus.data.length);
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < rowdate.length; i++) {
                                        var checkrow = {
                                            "HMaintainItemID": BYData[i].HMaintainItemID, "HMaintainItemNumber": BYData[i].HMaintainItemNumber, "HMaintainItem": BYData[i].HMaintainItem,
                                            "HMaintainPart": BYData[i].HMaintainPart, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerNumber,
                                            "HManagerName": BYData[i].HManagerName, "HClaim": rowdate1[i].HClaim, "HRemark": rowdate1[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    //buttonArr.push(NewRow);  //在尾部加一行
                                    table.reload("mainTable", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                                if (rowdate2.length == 0)  //表体数据为空时
                                {
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < PJData.length; i++) {
                                        var checkrow = {
                                            "HMaterID": PJData[i].HMaterID, "HMaterNumber": PJData[i].HMaterNumber, "HMaterName": PJData[i].HMaterName,
                                            "HMaterSpec": PJData[i].HMaterSpec, "HUnitID": PJData[i].HUnitID, "HUnitNumber": PJData[i].HUnitNumber,
                                            "HUnitName": PJData[i].HUnitName, "HQty": PJData[i].HQty, "HQtyMust": PJData[i].HQtyMust,
                                            "HManagerID": rowdate2[i].HManagerID, "HManagerNumber": rowdate2[i].HManagerNumber, "HManagerName": rowdate2[i].HManagerName,
                                            "HRemark": rowdate2[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    table.reload("mainTable1", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                                if (rowdate2.length > 0 && rowdate2.length <= PJData.length) //表体数据不为空,且表体数据行数小于等于选中带回数据行数
                                {
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < rowdate2.length; i++) {
                                        var checkrow = {
                                            "HMaterID": PJData[i].HMaterID, "HMaterNumber": PJData[i].HMaterNumber, "HMaterName": PJData[i].HMaterName,
                                            "HMaterSpec": PJData[i].HMaterSpec, "HUnitID": PJData[i].HUnitID, "HUnitNumber": PJData[i].HUnitNumber,
                                            "HUnitName": PJData[i].HUnitName, "HQty": PJData[i].HQty, "HQtyMust": PJData[i].HQtyMust,
                                            "HManagerID": rowdate2[i].HManagerID, "HManagerNumber": rowdate2[i].HManagerNumber, "HManagerName": rowdate2[i].HManagerName,
                                            "HRemark": rowdate2[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    //buttonArr.push(NewRow);  //在尾部加一行
                                    table.reload("mainTable1", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                                if (rowdate2.length > 0 && rowdate2.length > PJData.length) //表体数据不为空,且表体数据行数大于选中带回数据行数
                                {
                                    console.log(checkStatus.data.length);
                                    buttonArr = [];//清空数组
                                    for (var i = 0; i < rowdate.length; i++) {
                                        var checkrow = {
                                            "HMaterID": PJData[i].HMaterID, "HMaterNumber": PJData[i].HMaterNumber, "HMaterName": PJData[i].HMaterName,
                                            "HMaterSpec": PJData[i].HMaterSpec, "HUnitID": PJData[i].HUnitID, "HUnitNumber": PJData[i].HUnitNumber,
                                            "HUnitName": PJData[i].HUnitName, "HQty": PJData[i].HQty, "HQtyMust": PJData[i].HQtyMust,
                                            "HManagerID": rowdate2[i].HManagerID, "HManagerNumber": rowdate2[i].HManagerNumber, "HManagerName": rowdate2[i].HManagerName,
                                            "HRemark": rowdate2[i].HRemark
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
                                    table.reload("mainTable1", {
                                        data: buttonArr    //将数据重新载入表格
                                    })
                                }
                            } else {
                                layer.alert(result.code + result.Message, { icon: 5 });
                            }
                        }
                    }
                })
@@ -756,8 +868,8 @@
            function set_AddFNew() {
                //获取最大单据号
                get_MAXNum();
                option.data = [];
                option2.data = [];
                option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }];
                option2.data = [{ "HMaterID": 0, "HMaterNumber": " ", "HMaterName": " ", "HMaterSpec": " ", "HUnitID": "0", "HUnitNumber": " ", "HUnitName": " ", "HQty": "0", "HQtyMust": "0", "HManagerID": "0", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }];
                table.render(option);
                table.render(option2);
            }
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldMaintainRuleBillEdit.html
@@ -12,6 +12,11 @@
        .layui-form-label {
            width: 85px;
        }
        .layui-input-block {
            margin-left: 123px;
            min-height: 36px;
        }
    </style>
</head>
<body>
@@ -33,10 +38,6 @@
                        </div>
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                                <!--<ul class="layui-tab-title">
                                <li class="layui-this">基本信息</li>-->
                                <!--<li>其他信息</li>-->
                                <!--</ul>-->
                                <h1 style="text-align:center;"><b>器具保养规程单</b></h1>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
@@ -46,7 +47,7 @@
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo">
                                                    <input id="HInterID" name="HInterID" type="hidden" />
                                                    <input id="HMaker" name="HMaker" type="hidden" /><!--制单人-->
                                                    <input id="HMaker" name="HMaker" type="hidden" />
                                                </div>
                                            </div>
                                            <div class="layui-inline">
@@ -65,18 +66,18 @@
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">周期单位</label>
                                                <div class="layui-input-block">
                                                    <select name="HCycleUnit" lay-filter="HCycleUnit" id="HCycleUnit">
                                                        <option value="天" selected="selected">天</option>
                                                        <option value="周">周</option>
                                                <div class="layui-input-inline">
                                                    <select name="HCycleUnit" lay-filter="aihao" id="HCycleUnit">
                                                        <option value="天">天</option>
                                                        <option value="月">月</option>
                                                        <option value="周">周</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">保养周期</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="HCheckCycle" id="HCheckCycle" class="layui-input">
                                                    <input type="text" name="HCheckCycle" id="HCheckCycle" class="layui-input" value="0">
                                                </div>
                                            </div>
                                        </div>
@@ -98,7 +99,6 @@
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">保养项信息</li>
@@ -162,7 +162,7 @@
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
@@ -350,14 +350,15 @@
                columns = [
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                    , { field: '保养项目ID', title: '保养项目ID', width: 200, hide: true }
                    , { field: '保养项目', title: '保养项目', width: 200 }
                    , { field: '保养部位', title: '保养部位', width: 200 }
                    , { field: '具体要求', title: '具体要求', width: 200 }
                    , { field: '负责人ID', title: '负责人ID', width: 200, hide: true }
                    , { field: '负责人代码', title: '负责人代码', width: 200 }
                    , { field: '负责人', title: '负责人', width: 200 }
                    , { field: '表体备注', title: '备注', width: 200 }
                    , { field: 'HMaintainItemID', title: '保养项目ID', edit: 'text', hide: true }
                    , { field: 'HMaintainItemNumber', title: '保养项目代码', edit: 'text', event: 'HMaintainItemNumber' }
                    , { field: 'HMaintainItem', title: '保养项目', edit: 'text' }
                    , { field: 'HMaintainPart', title: '保养部位', edit: 'text' }
                    , { field: 'HClaim', title: '具体要求', edit: 'text' }
                    , { field: 'HManagerID', title: '负责人ID', edit: 'text', hide: true }
                    , { field: 'HManagerNumber', title: '负责人代码', edit: 'text', event: 'HManagerNumber' }
                    , { field: 'HManagerName', title: '负责人', edit: 'text' }
                    , { field: 'HRemark', title: '备注', edit: 'text' }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                ];
                option = {
@@ -369,6 +370,7 @@
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
@@ -377,16 +379,15 @@
                //表头
                columns = [
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao1', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                    , { field: '配件ID', title: '配件ID', width: 200, hide: true }
                    , { field: '配件代码', title: '配件代码', width: 200 }
                    , { field: '配件名称', title: '配件名称', width: 200 }
                    , { field: '单位ID', title: '单位ID', width: 200, hide: true }
                    , { field: '计量单位代码', title: '计量单位代码', width: 200 }
                    , { field: '计量单位名称', title: '计量单位名称', width: 200 }
                    , { field: '用量', title: '用量', width: 200 }
                    , { field: '标准用量', title: '标准用量', width: 200 }
                    , { field: '子备注', title: '备注', width: 200 }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                    , { field: 'HMaterID', title: '配件ID', edit: 'text', hide: true }
                    , { field: 'HMaterNumber', title: '配件代码', edit: 'text', event: "HMaterCode" }
                    , { field: 'HMaterName', title: '配件名称', edit: 'text', event: "" }
                    , { field: 'HUnitID', title: '单位ID', edit: 'text', hide: true }
                    , { field: 'HUnitNumber', title: '单位代码', edit: 'text', event: "HUnitCode" }
                    , { field: 'HUnitName', title: '单位名称', edit: 'text', event: "" }
                    , { field: 'HQty', title: '用量', edit: 'text' }
                    , { field: 'HRemark', title: '备注', edit: 'text' }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 150 }
                ];
                option1 = {
@@ -409,7 +410,7 @@
                //获取最大单据号
                get_MAXNum();
                option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }];
                option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "",  "HQty": "", "HRemark": "" }];
                option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HRemark": "" }];
                table.render(option);
                table.render(option1);
            }
@@ -437,7 +438,7 @@
                set_EditGrid(linterid);  //编辑获取表体
                option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }];
                table.render(option);
                option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "", "HRemark": "" }];
                option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HQty": "0", "HRemark": "" }];
                table.render(option1);
            }
            //编辑获取表头
@@ -452,15 +453,15 @@
                        //console.log(result.code)
                        if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            //console.log(result)
                            var data = result.data.h_v_Sb_EquipMaintainBillList[0];
                            var data = result.data.Sc_MouldMaintainRuleBillMain[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HBillNo": data.单据号
                                , "HDate": formatDate(data.日期)
                                , "HInnerBillNo": data.内部单据号
                                , "HExplanation": data.摘要               //摘要
                                , "HRemark": data.备注                //备注
                                , "HCycleUnit": data.周期单位
                                , "HCheckCycle": data.保养周期
                                "HBillNo": data.HBillNo
                                , "HDate": formatDate(data.HDate)
                                , "HInnerBillNo": data.HInnerBillNo
                                , "HExplanation": data.HExplanation               //摘要
                                , "HRemark": data.HRemark
                                , "HCycleUnit": data.HCycleUnit
                                , "HCheckCycle": data.HCheckCycle
                            });
                        } else {
@@ -476,7 +477,7 @@
                $("#HInterID").val(linterid);//修改时主表ID
                //编辑加载数据
                $.ajax({
                    url: GetWEBURL() + 'Sc_MouldMaintainRuleBill/Sc_MouldMaintainRuleBillListProjectDetaiNew',
                    url: GetWEBURL() + 'Sc_MouldMaintainRuleBill/Sc_MouldMaintainRuleBillSubAndSubItem',
                    type: "GET",
                    data: { "HInterID": linterid },
                    success: function (result) {
@@ -496,6 +497,7 @@
                    }
                });
            }
            //日期格式化
            function formatDate(date) {
                var d = new Date(date),
@@ -520,7 +522,7 @@
                    data: buttonArr    //将数据重新载入表格
                })
            }
            //增加一行1
            //增加一行
            function btnAddLine1(NewRow) {
                var tableBak = table.cache["mainTable1"]; //获取之前编辑过的表格数据
                buttonArr = [];//清空数组
@@ -549,7 +551,7 @@
                    table.render(option);//将数据渲染到表格上
                }
            }
            //复制一行1
            //复制一行
            function btnCopyLine1(data) {
                var copydata = JSON.stringify(data);
                if (data.length <= 0) {
@@ -586,7 +588,7 @@
                    });
                }
            }
            // è¡¨æ ¼è¡Œå†…事件删除1
            // è¡¨æ ¼è¡Œå†…事件删除
            function set_GridDelete1(obj) {
                var data = obj.data;
                var rowIndex = $(obj.tr).attr("data-index");
@@ -606,12 +608,13 @@
                    });
                }
            }
            //表格行内事件快捷键筛选
            //表格行内事件快捷键筛选--保养
            function set_GridCellCheck(obj) {
                $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                    if (event.key == "F7") {
                        if (obj.event === 'HMaintainItemNumber')  //保养项目信息
                        {
                        //保养项目信息
                        if (obj.event === 'HMaintainItemNumber') {
                            //页面层-自定义
                            layer.open({
                                type: 2,
@@ -621,7 +624,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../PublicPage/Gy_Maintain.html', 'yes'],
                                content: ['../../PublicPage/Gy_Maintain.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -647,8 +650,8 @@
                                }
                            });
                        }
                        if (obj.event === 'HManagerNumber')  //责任人信息
                        {
                        //责任人信息
                        if (obj.event === 'HManagerNumber') {
                            //页面层-自定义
                            layer.open({
                                type: 2,
@@ -658,7 +661,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../PublicPage/UserInformation.html', 'yes'],
                                content: ['../../PublicPage/UserInformation.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -693,7 +696,7 @@
                    }
                })
            }
            // è¡¨æ ¼è¡Œå†…事件快捷键筛选1
            // è¡¨æ ¼è¡Œå†…事件快捷键筛选--配件
            function set_GridCellCheck1(obj) {
                $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                    if (event.key == "F7") {
@@ -708,7 +711,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../PublicPage/UnitInformation.html', 'yes'],
                                content: ['../../PublicPage/UnitInformation.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -744,7 +747,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../PublicPage/PartInformation.html', 'yes'],
                                content: ['../../PublicPage/PartInformation.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -775,9 +778,18 @@
                    }
                })
            }
            //非空验证
            function AllowLoadData(sSubStr) {
                var Result = true;
                if ($("#HCheckCycle").val() == '' || $("#HCheckCycle").val() == '0') {
                    layer.msg("请输入保养周期", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return Result = false;
                }
                if (typeof (sSubStr) == "undefined" || sSubStr == "" || sSubStr == "[]") {
                    layer.msg("保养项明细记录不能为空", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return Result = false;
                }
                if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") {
                    sSubStr = JSON.parse(sSubStr);
                    for (var i = 0; i < sSubStr.length; i++) {
@@ -790,7 +802,7 @@
                            return Result = false;
                        }
                        if (sSubStr[i].HManagerNumber == "") {
                            layer.msg("保养项明细记录第" + (i + 1) + "行,责任人信息为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg("保养项明细记录第" + (i + 1) + "行,负责人信息为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            return Result = false;
                        }
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldMaintainRuleBillList.html
@@ -114,7 +114,7 @@
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script>
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
@@ -237,18 +237,19 @@
                        , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据号', title: '单据号', width: 160 }
                        , { field: '单据类型', title: '单据类型', width: 160, hide: true }
                        , { field: '周期单位', title: '设备代码', width: 200 }
                        , { field: '保养周期', title: '设备名称', width: 200 }
                        , { field: '周期单位', title: '周期单位', width: 200 }
                        , { field: '保养周期', title: '保养周期', width: 200 }
                        , { field: '配件ID', title: '配件ID', width: 200, hide: true }
                        , { field: '配件代码', title: '配件代码', width: 200 }
                        , { field: '配件名称', title: '配件名称', width: 200 }
                        , { field: '摘要', title: '摘要', width: 200 }
                        , { field: '内部单据号', title: '内部单据号', width: 200 }
                        , { field: '备注', title: '备注', width: 200 }
                        , { field: 'hsubid', title: 'hsubid', width: 200,hide: true }
                        , { field: '模具代码', title: '器具代码', width: 115,  }
                        , { field: '模具名称', title: '器具名称', width: 200 }
                        , { field: '计量单位', title: '计量单位', width: 200 }
                        , { field: '单位ID', title: '单位ID', width: 200, hide: true }
                        , { field: '计量单位名称', title: '计量单位名称', width: 200 }
                        , { field: '用量', title: '用量', width: 200 }
                        , { field: '子备注', title: '子备注', width: 200 }
                        , { field: '保养项目', title: '保养项目', width: 115}
                        , { field: '保养项目', title: '保养项目', width: 115 }
                        , { field: '保养部位', title: '保养部位', width: 200 }
                        , { field: '具体要求', title: '具体要求', width: 200 }
                        , { field: '负责人代码', title: '负责人代码', width: 200, hide: true }
@@ -292,7 +293,7 @@
                        , { field: '具体要求', title: '具体要求', width: 200 }
                        , { field: '负责人ID', title: '负责人ID', width: 200, hide: true }
                        , { field: '负责人代码', title: '负责人代码', width: 200 }
                        , { field: '负责人', title: '负责人', width: 200 }
                        , { field: '负责人名称', title: '负责人', width: 200 }
                        , { field: '表体备注', title: '备注', width: 200 }
                    ]]
                };
@@ -341,6 +342,8 @@
                            table.render(option);
                            layer.close(index);
                        } else {
                            option.data = data1.data;
                            table.render(option);
                            layer.close(index);
                            layer.alert("没有数据记录!", { icon: 5 });
                        }
@@ -358,12 +361,12 @@
                layer.open({
                    type: 2,
                    skin: 'layui-layer-rim', //加上边框
                    title: '新增设备保养记录单 ',
                    title: '新增器具保养规程单 ',
                    closeBtn: false,
                    shift: 2,
                    area: ['100%', '100%'],
                    maxmin: true,
                    content: '../模治具管理/模治具管理/Sc_MouldMaintainRuleBillEdit.html?OperationType=1&linterid=&HSouceBillType=',
                    content: '../模治具管理/Sc_MouldMaintainRuleBillEdit.html?OperationType=1&linterid=&HSouceBillType=',
                    end: function () {
                        //刷新页面,
                        location.reload();
@@ -382,11 +385,11 @@
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '编辑设备保养记录单 '
                        , title: '编辑器具保养规程单 '
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../模治具管理/模治具管理/Sc_MouldMaintainRuleBillEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , content: '../模治具管理/Sc_MouldMaintainRuleBillEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , resize: false,
                        end: function () {
                            //刷新页面,