YL
2021-05-25 9ddbc1ebeee86292fc65d73d7fa8df1fc3570bf6
nothing
3个文件已修改
66 ■■■■ 已修改文件
WebTM/views/模治具管理/模治具管理/Sc_Add_MouldConkBookBillList.html 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldConkBookBillList.html 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldRepairCheckBillList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_Add_MouldConkBookBillList.html
@@ -37,7 +37,7 @@
                                <li class="layui-this">基本信息</li>-->
                                <!--<li>其他信息</li>-->
                                <!--</ul>-->
                                <h1 style="text-align:center;"><b>模具维修验收单</b></h1>
                                <h1 style="text-align:center;"><b>模具故障登记表</b></h1>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
                                        <div class="layui-form-item">
@@ -72,10 +72,7 @@
                                            <div class="layui-inline">
                                                <label class="layui-form-label">故障类别</label>
                                                <div class="layui-input-inline">
                                                    <select name="HCheckResult" lay-filter="aihao" id="HCheckResult">
                                                        <option value="内部维修">内部维修</option>
                                                        <option value="委外维修">委外维修</option>
                                                    </select>
                                                    <input type="text" name="HConkTypeID" id="HConkTypeID" class="layui-input" value="0">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
@@ -87,13 +84,13 @@
                                            <div class="layui-inline">
                                                <label class="layui-form-label">故障发生日期</label>
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HCheckBeginDate" id="HCheckBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                    <input class="layui-input" name="HConkBeginDate" id="HConkBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">要求完善日期</label>
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HCheckBeginDate" id="HCheckBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                    <input class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                </div>
                                            </div>
                                          
@@ -191,10 +188,10 @@
            });
            laydate.render({
                elem: '#HRepairBeginDate'
                elem: '#HConkBeginDate'
            });
            laydate.render({
                elem: '#HRepairEndDate'
                elem: '#HEndDate'
            });
            //判断是否登录 æœªç™»å½•则跳到登录页
            //if (sessionStorage.login != "login") {
@@ -212,9 +209,9 @@
                , cols: [[ //表头
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                    , { field: 'HRepairCheckID', title: '验收项目代码', edit: 'text', event: "" }
                    , { field: 'HRepairCheckName', title: '验收项目', edit: 'text', event: "" }
                    , { field: 'HRepairCheckContent', title: '验收内容', edit: 'text' }
                    , { field: 'HConkReasonID', title: '故障原因代码', edit: 'text', event: "" }
                    , { field: 'HHConkReasonName', title: '故障原因', edit: 'text', event: "" }
                    , { field: 'HConkExplanation', title: '故障原因描述', edit: 'text' }
                    , { field: 'HManagerID', title: '负责人代码', edit: 'text' }
                    , { field: 'HManagerName', title: '负责人', edit: 'text' }
                    , { field: 'HRemark', title: '备注', event: "", edit: 'text' }
@@ -225,14 +222,14 @@
            //判断是否新增
            if (hID == null || hID == 0) {
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
                option.data = [{ "HRepairCheckID": 0, "HRepairCheckName": "  ", "HRepairCheckContent": "   ", "HManagerID": 0, "HManagerName": "  ", "HRemark": "  " }];
                option.data = [{ "HConkReasonID": 0, "HHConkReasonName": "", "HConkExplanation": "", "HManagerID": 0, "HManagerName": "", "HRemark": "" }];
                table.render(option);
            }
            else {
                $("#HInterID").val(hID);//修改时主表ID
                //编辑加载数据
                $.ajax({
                    url: GetWEBURL() + 'Sc_MouldRepairCheckBill/Sb_MouldRepairCheckBillListProjectDetai',
                    url: GetWEBURL() + 'Sc_MouldConkBookBill/Sb_MouldConkBookBillListProjectDetai',
                    type: "GET",
                    //data: { "sqlWhere": "and HInterID=" + hID },
                    data: { "sqlWhere": "and hmainid=" + hID },
@@ -261,7 +258,7 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;;
                var AddRow = table.cache['mainTable'];
                var NewRow = { "HRepairCheckID": 0, "HRepairCheckName": "  ", "HRepairCheckContent": "   ", "HManagerID": 0, "HManagerName": "  ", "HRemark": "  " };
                var NewRow = { "HConkReasonID": 0, "HHConkReasonName": "", "HConkExplanation": "", "HManagerID": 0, "HManagerName": "", "HRemark": "" };
                switch (obj.event) {
                    case 'btn-AddLine':
                        //table.cache["mainTable"].push(AddRow[rows]);
@@ -2256,25 +2253,26 @@
                alert(hID);
                //查询检验方案单是否存在
                $.ajax({
                    url: GetWEBURL() + "Sc_MouldRepairCheckBill/Sb_MouldRepairCheckBillListCheckDetai",
                    url: GetWEBURL() + "Sc_MouldConkBookBill/Sb_MouldConkBookBillListCheckDetai",
                    type: "GET",
                    data: {
                        "HID": hID
                    },
                    success: function (result) {
                        if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data.h_v_Sc_MouldRepairCheckBillList[0];
                            var data = result.data.h_v_Sc_MouldConkBookBillList[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HBillNo": data.单据号
                                , "HDate": data.日期
                                , "HInnerBillNo": data.内部单据号
                                , "HMouldID": data.HMouldID
                                , "HCheckResult": data.验收结论
                                , "HEmpID": data.HEmpID
                                , "HCheckBeginDate": data.维修日期
                                , "HDeptID": data.HDeptID
                                , "HManagerID": data.HManagerID
                                , "HExplanation": data.摘要
                                , "HConkTypeID": data.HConkTypeID //故障类别
                                , "HEmpID": data.HEmpID       //发现人
                                , "HConkBeginDate": data.故障发生日期
                                , "HEndDate": data.要求完善日期
                                , "HManagerID": data.HManagerID    //负责人
                                , "HDeptID": data.HDeptID      //使用部门
                                , "HExplanation": data.故障描述
                                , "HRemark": data.备注
                            });
@@ -2307,7 +2305,8 @@
                        //console.log(d.data);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HDate").val(shijian);
                        $("#HCheckBeginDate").val(shijian);
                        $("#HConkBeginDate").val(shijian);
                        $("#HEndDate").val(shijian);
                        $("#HInterID").val(0);
                    }
                });
@@ -2438,7 +2437,7 @@
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/Sc_MouldRepairCheckBill/SaveGetMouldRepairCheckBillList", //方法所在页面和方法名
                        url: GetWEBURL() + "/Sc_MouldConkBookBill/SaveGetMouldConkBookBillList", //方法所在页面和方法名
                        async: true,
                        data: { "msg": sMainSub },
                        dataType: "json",
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldConkBookBillList.html
@@ -125,7 +125,8 @@
                , page: true
                , cellMinWidth: 90
                , cols: [[
                    { field: 'hmainid', title: '单据ID', hide: true }
                    { type: 'checkbox', fixed: 'left' }
                    ,{ field: 'hmainid', title: '单据ID', hide: true }
                    , { field: '日期', title: '日期', width: 160 }
                    , { field: '单据号', title: '单据号', width: 160 }
                    , { field: '单据类型', title: '单据类型', width: 160, hide: true }
@@ -189,7 +190,7 @@
                        layer.open({
                            type: 2,
                            skin: 'layui-layer-rim', //加上边框
                            title: '新增模具维修单',
                            title: '新增模具故障登记单',
                            closeBtn: false,
                            shift: 2,
                            area: ['100%', '100%'],
@@ -213,7 +214,7 @@
                            layer.open({
                                type: 2
                                , area: ['100%', '100%']
                                , title: '编辑模具维修单'
                                , title: '编辑模具故障登记单'
                                , shade: 0.6 //遮罩透明度
                                , maxmin: true //允许全屏最小化
                                , anim: 0 //0-6的动画形式,-1不开启
@@ -241,8 +242,8 @@
                            //逻辑删除方法
                            layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                                $.ajax({
                                    type: "POST",
                                    url: GetWEBURL() + "/Sc_MouldRepairCheckBill/DeltetMouldRepairCheckBill", //方法所在页面和方法名
                                    type: "GET",
                                    url: GetWEBURL() + "/Sc_MouldConkBookBill/DeltetMouldConkBookBill", //方法所在页面和方法名
                                    data: { "HInterID": InterID },
                                    success: function (result) {
                                        if (result.count == 1) {
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldRepairCheckBillList.html
@@ -187,7 +187,7 @@
                        layer.open({
                            type: 2,
                            skin: 'layui-layer-rim', //加上边框
                            title: '新增模具维修单',
                            title: '新增模具维修验收单',
                            closeBtn: false,
                            shift: 2,
                            area: ['100%', '100%'],
@@ -211,7 +211,7 @@
                            layer.open({
                                type: 2
                                , area: ['100%', '100%']
                                , title: '编辑模具维修单'
                                , title: '编辑模具维修验收单'
                                , shade: 0.6 //遮罩透明度
                                , maxmin: true //允许全屏最小化
                                , anim: 0 //0-6的动画形式,-1不开启
@@ -239,7 +239,7 @@
                            //逻辑删除方法
                            layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                                $.ajax({
                                    type: "POST",
                                    type: "GET",
                                    url: GetWEBURL() + "/Sc_MouldRepairCheckBill/DeltetMouldRepairCheckBill", //方法所在页面和方法名
                                    data: { "HInterID": InterID },
                                    success: function (result) {