From 14ff5ada0e1b48056553755b1376fc509245ff86 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期四, 21 十月 2021 19:15:51 +0800 Subject: [PATCH] 测试器具加设备 --- WebTM/views/模治具管理/模治具仓库管理/Sc_Add_MouldProdOutBillList.html | 3 WebTM/views/设备管理/Sb_EqpRepairCheckBillList.html | 2 WebTM/views/基础资料/公用基础资料/Gy_EquipTypeEdit.html | 158 ++++++++++++++++++++++---------------- WebTM/layuiadmin/Scripts/webConfig.js | 4 WebTM/views/模治具管理/模治具管理/Sc_MouldMaintainBillList.html | 15 ++- WebTM/views/模治具管理/模治具仓库管理/Sc_MouldScrapOutBillList.html | 8 +- 6 files changed, 109 insertions(+), 81 deletions(-) diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js index c0f42d2..f6d4f0e 100644 --- a/WebTM/layuiadmin/Scripts/webConfig.js +++ b/WebTM/layuiadmin/Scripts/webConfig.js @@ -6,13 +6,13 @@ //var WEBURL = "http://localhost:8080/API/"; //棰滄檽鍐涙湰鍦伴厤缃� //var WEBURL = "http://localhost:8082/lubao"; //棰滄檽鍐涙湰鍦伴厤缃� //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //鏉ㄩ湶鏈湴閰嶇疆 - //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //绔犵传鏌旀湰鍦伴厤缃� + var WEBURL = "http://localhost:8082/LuBaoAPI/"; //绔犵传鏌旀湰鍦伴厤缃� //var WEBURL = "http://10.1.4.155/API/"; //姹熶赴瀹㈡埛NEW //var WEBURL = "http://47.96.97.237/API/"; //鏅轰簯鏈嶅姟鍣� //var WEBURL = "http://183.129.128.86:9090/API/"; //鍑礉濂堢壒瀹㈡埛鏈嶅姟鍣ㄥ缃� //var WEBURL = "http://192.168.1.253:8080/API/"; //鍑礉濂堢壒瀹㈡埛鏈嶅姟鍣ㄥ唴缃� //var WEBURL = "http://220.189.218.154:8092/API/"; //涓镐簳鍥涚淮灏旀湇鍔″櫒 - var WEBURL = "http://localhost/API/"; + //var WEBURL = "http://localhost/API/"; return WEBURL } diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipTypeEdit.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipTypeEdit.html" index d6dc014..52eed34 100644 --- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipTypeEdit.html" +++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipTypeEdit.html" @@ -2,7 +2,7 @@ <html> <head> <meta charset="utf-8" /> - <title>鏂板/缂栬緫妯℃不鍏峰垎绫�</title> + <title>鏂板/缂栬緫璁惧鍒嗙被</title> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> @@ -89,7 +89,6 @@ var OperationType = 1;//鎿嶄綔绫诲瀷 var closeType = 2; //鍏抽棴绫诲瀷 } else { - debugger; var OperationType = params[params[0]];//鎿嶄綔绫诲瀷 var linterid = params[params[1]];//婧愬崟id var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷 @@ -114,71 +113,6 @@ //甯歌鐢ㄦ硶 //#region 宸ュ叿鎸夐挳 - //閫�鍑烘寜閽� - form.on('submit(Exit)', function () { - Pub_Close(1); - }) - - //淇濆瓨 - form.on('submit(Saver)', function (data) {//淇濆瓨 - var refSav = ""; - if (linterid == "" || linterid == null) { - refSav = "Add"; - } - if (linterid != "" && linterid != null) { - refSav = "Update"; - } - //debugger; - var isEndCheck = document.getElementById("HStopflag").checked; - data.field.HStopflag = isEndCheck;//灏嗘暟缁勫悎骞舵垚瀛楃涓� - - data.field.HItemID = linterid == "" ? 0 : linterid; - - data.field.HParentID = 0; - data.field.HLevel = $("#HLevel").val() == "" ? 1 : $("#HLevel").val(); - - var oMain = JSON.stringify(data.field) - - var sMainSub = oMain + ';' + refSav ; - - $.ajax( - { - type: "POST", - url: GetWEBURL() + "/Gy_EquipType/SaveEquipTypeList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� - async: true, - data: { "msg": sMainSub }, - dataType: "json", - success: function (data) { - if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { - $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); - var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩 - parent.layer.close(index); //鍐嶆墽琛屽叧闂� 聽 聽 聽 聽 聽聽 聽聽聽 聽 - }); - } - else { - - f_alert(data.Message); - console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); - } - layer.closeAll("loading"); - }, - error: function (err) { - - f_alert("閿欒:" + err); - console.log("Reason" + sMainStr); - } - }); - }); - - //#endregion - - - function f_alert(sMsg) { - layer.alert(sMsg, { icon: 5 }); - - } - if (OperationType == 3) { $.ajax({ url: GetWEBURL() + "/Gy_EquipType/Gy_EquipTypeCheckDetai", @@ -204,6 +138,96 @@ }); } + //閫�鍑烘寜閽� + form.on('submit(Exit)', function () { + Pub_Close(1); + }) + + //淇濆瓨 + form.on('submit(Saver)', function (data) {//淇濆瓨 + //debugger; + var isEndCheck = document.getElementById("HStopflag").checked; + data.field.HStopflag = isEndCheck;//灏嗘暟缁勫悎骞舵垚瀛楃涓� + + data.field.HItemID = linterid == "" ? 0 : linterid; + + data.field.HParentID = 0; + data.field.HLevel = $("#HLevel").val() == "" ? 1 : $("#HLevel").val(); + + var oMain = JSON.stringify(data.field) + + var sMainSub = oMain + ';' + linterid ; + + if (OperationType == 3) { + //淇敼 + $.ajax( + { + type: "POST", + url: GetWEBURL() + "/Gy_EquipType/EditBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + async: true, + data: { "oMain": sMainSub }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 + layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { + $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); + var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩 + parent.layer.close(index); //鍐嶆墽琛屽叧闂� 聽 聽 聽 聽 聽聽 聽聽聽 聽 + }); + } + else { + + f_alert(data.Message); + console.log("Reason" + sMainSub + "sub:" + JSON.stringify(layui.table.cache.mainTable)); + } + layer.closeAll("loading"); + }, + error: function (err) { + + f_alert("閿欒:" + err); + console.log("Reason" + sMainStr); + } + }); + } + else { + //鏂板 + $.ajax( + { + type: "POST", + url: GetWEBURL() + "/Gy_EquipType/AddBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + async: true, + data: { "oMain": sMainSub }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 + layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { + $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); + var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩 + parent.layer.close(index); //鍐嶆墽琛屽叧闂� 聽 聽 聽 聽 聽聽 聽聽聽 聽 + }); + } + else { + f_alert(data.Message); + } + layer.closeAll("loading"); + }, + error: function (err) { + + f_alert("閿欒:" + err); + } + }); + } + }); + + //#endregion + + + function f_alert(sMsg) { + layer.alert(sMsg, { icon: 5 }); + + } + + }); </script> </body> diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldProdOutBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldProdOutBillList.html" index 4a242d9..5290bf5 100644 --- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldProdOutBillList.html" +++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldProdOutBillList.html" @@ -236,6 +236,7 @@ , { field: 'HSPCode', title: '浠撲綅浠g爜', edit: 'text', event: 'HSPCode', width: 100 } , { field: 'HSPName', title: '浠撲綅', edit: 'text', width: 100 } , { field: 'HRemark', title: '琛ㄤ綋澶囨敞', edit: 'text', width: 100 } + , { field: 'HStockOrgID', title: 'HStockOrgID', width: 100, hide: true } , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' } ]] , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲� @@ -243,7 +244,7 @@ //鍒ゆ柇鏄惁鏂板 if (OperationType == 1) { //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } - option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HRemark": "" }]; + option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }]; table.render(option); } else { diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldScrapOutBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldScrapOutBillList.html" index 06047df..7778f3c 100644 --- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldScrapOutBillList.html" +++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldScrapOutBillList.html" @@ -414,10 +414,10 @@ if (checkStatus.data.length === 1) { var InterID = data[0].hmainid.toString(); var HBillStatus = data[0].HBillStatus.toString(); - if (HBillStatus != "1") { - layer.msg('鍗曟嵁鐘舵�佷笉涓烘湭瀹℃牳鐘舵��,涓嶅厑璁稿垹闄わ紒'); - return false; - } + //if (HBillStatus != "1") { + // layer.msg('鍗曟嵁鐘舵�佷笉涓烘湭瀹℃牳鐘舵��,涓嶅厑璁稿垹闄わ紒'); + // return false; + //} //閫昏緫鍒犻櫎鏂规硶 layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { $.ajax({ diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainBillList.html" index 285de40..15182fc 100644 --- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainBillList.html" +++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainBillList.html" @@ -102,9 +102,9 @@ <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button> <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button> - <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button> - <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button> - <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>--> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>--> </div> </script> @@ -123,6 +123,9 @@ <script src="../../../layuiadmin/Scripts/json2.js"></script> <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> <script src="../../../layuiadmin/Scripts/webConfig.js"></script> + <script src="../../../layuiadmin/PubCustom.js"></script> + <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> + <script> layui.config({ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� @@ -187,14 +190,14 @@ //if (flag) { // obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); // obj.tr.next().find('.layui-form-checkbox').removeClass('layui-form-checked'); - //} + //} var datas = obj.data; //鑾峰緱褰撳墠琛屾暟鎹� var linterid = datas.hmainid; $.ajax({ url: GetWEBURL() + 'Sc_MouldMaintainBill/Sc_MouldMaintainBillListProjectDetaiNew', type: "GET", data: { "HInterID": linterid }, - success: function (data1) { + success: function (data1) { if (data1.count == 1) { option1.data = data1.list[0]; table1.render(option1); @@ -264,7 +267,7 @@ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 200 } , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" } , { field: '淇敼浜�', title: '淇敼浜�', width: 200 } - , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" } , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 200 } , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"} , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 200 } diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EqpRepairCheckBillList.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EqpRepairCheckBillList.html" index 1a01921..7c2248b 100644 --- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EqpRepairCheckBillList.html" +++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EqpRepairCheckBillList.html" @@ -286,7 +286,7 @@ $.ajax({ type: "GET", url: GetWEBURL() + "Sb_EqpRepairWorkBill/DeltetEqpRepairCheckBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� - data: { "HInterID": InterID }, + data: { "HInterID": HInterID }, success: function (result) { if (result.count == 1) { layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { -- Gitblit v1.9.1