模具模块功能完善(器具档案、器具分类、器具保养项目,器具保养规程、器具保养计划、器具保养记录
器具维修项目、器具故障登记、器具维修记录单、器具维修验收单
器具寿命调整单、器具寿命耗用单
产品器具清单)
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">代ç </label> |
| | | <label class="layui-form-label">代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber"> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åç§°</label> |
| | | <label class="layui-form-label">åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HName" lay-verify="HName" id="HName"> |
| | | </div> |
| | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | |
| | | if (!AllowLoadData()) { |
| | | return; |
| | | } |
| | | |
| | | var ModRightNameAdd = 'Gy_MouldType_Edit'; |
| | | var user = sessionStorage["HUserName"]; |
| | | var arr = new Array(); |
| | |
| | | |
| | | }); |
| | | } |
| | | |
| | | //æ°æ®éªè¯ |
| | | function AllowLoadData() { |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | |
| | | if (HNumber == null || HNumber == undefined || HNumber == "") { |
| | | layer.msg("请è¾å
¥ä»£ç ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | if (HName == null || HName == undefined || HName == "") { |
| | | |
| | | layer.msg("请è¾å
¥åç§°ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | |
| | | }) |
| | | //#endregion |
| | | |
| | | //代ç åè½¦æ¹æ³ |
| | | $('#HNumber').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | //åç§°åè½¦æ¹æ³ |
| | | $('#HName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | // åå§åçé¢ |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //代ç åè½¦æ¹æ³ |
| | | $('#HNumber').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | //åç§°åè½¦æ¹æ³ |
| | | $('#HName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | |
| | | function set_ClearBill() { |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <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="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | |
| | | </div> |
| | |
| | | case 'btn-view': |
| | | get_ViewReport(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-Audit': set_AuditBill(); |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(0); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(1); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ°å¢æ£éªé¡¹ç®', |
| | | title: 'æ°å¢æ¨¡æ²»å
·åç±»', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: ['../å
¬ç¨åºç¡èµæ/Add_Edit_Gy_MouldType.html?hID=' + TagId + '&Level=' + Level + ''], |
| | | end: function () { |
| | |
| | | } |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus > 0) { |
| | | layer.msg('åæ®ä¸ä¸ºæªå®¡æ ¸ç¶æï¼'); |
| | | return false; |
| | | } |
| | | var InterID = data[0].HItemID.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | url: GetWEBURL() + "/Gy_MouldType/AuditGy_MouldType", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus = 0) { |
| | | layer.msg('åæ®å·²ä¸ºæªå®¡æ ¸ç¶æ,æ éåå®¡æ ¸ï¼'); |
| | | return false; |
| | | } |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | | //ä¿®æ¹æé® |
| | | function set_ShowBill() { |
| | | if (TagId != "") { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç¼è¾æ¨¡æ²»å
·åç±»' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç¼è¾æ¨¡æ²»å
·åç±»' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //代ç åè½¦æ¹æ³ |
| | | $('#HNumber').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | //åç§°åè½¦æ¹æ³ |
| | | $('#HName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¬é¡µé¢ææè¢«è°ç¨çæ¹æ³ |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">代ç </label> |
| | | <label class="layui-form-label">代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber"> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åç§°</label> |
| | | <label class="layui-form-label">åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HName" lay-verify="HName" id="HName"> |
| | | </div> |
| | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | |
| | | if (!AllowLoadData()) { |
| | | return; |
| | | } |
| | | |
| | | var user = sessionStorage["HUserName"]; |
| | | var isEndCheck = document.getElementById("HStopflag").checked; |
| | | data.field.HStopflag = isEndCheck;//å°æ°ç»åå¹¶æå符串 |
| | |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //æ°æ®éªè¯ |
| | | function AllowLoadData() { |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | |
| | | if (HNumber == null || HNumber == undefined || HNumber == "") { |
| | | layer.msg("请è¾å
¥ä»£ç ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | if (HName == null || HName == undefined || HName == "") { |
| | | |
| | | layer.msg("请è¾å
¥åç§°ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <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="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | |
| | | case 'btn-view': |
| | | get_ViewReport(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-Audit': set_AuditBill(); |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(0); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(1); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | |
| | | title: 'æ°å¢ä¿å
»é¡¹ç®', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: ['../åºç¡èµæ/Gy_MaintainEdit.html?OperationType=1&linterid=&HSouceBillType='], |
| | | end: function () { |
| | |
| | | } |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus > 0) { |
| | | layer.msg('åæ®ä¸ä¸ºæªå®¡æ ¸ç¶æï¼'); |
| | | return false; |
| | | } |
| | | var InterID = data[0].HItemID.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | url: GetWEBURL() + "/Gy_Maintain/AuditGy_Maintain", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus = 0) { |
| | | layer.msg('åæ®å·²ä¸ºæªå®¡æ ¸ç¶æ,æ éåå®¡æ ¸ï¼'); |
| | | return false; |
| | | } |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">代ç </label> |
| | | <label class="layui-form-label">代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber"> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åç§°</label> |
| | | <label class="layui-form-label">åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HName" lay-verify="HName" id="HName"> |
| | | </div> |
| | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | |
| | | if (!AllowLoadData()) { |
| | | return; |
| | | } |
| | | |
| | | var user = sessionStorage["HUserName"]; |
| | | var isEndCheck = document.getElementById("HStopflag").checked; |
| | | data.field.HStopflag = isEndCheck;//å°æ°ç»åå¹¶æå符串 |
| | |
| | | |
| | | } |
| | | |
| | | //æ°æ®éªè¯ |
| | | function AllowLoadData() { |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | |
| | | if (HNumber == null || HNumber == undefined || HNumber == "") { |
| | | layer.msg("请è¾å
¥ä»£ç ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | if (HName == null || HName == undefined || HName == "") { |
| | | |
| | | layer.msg("请è¾å
¥åç§°ï¼", { icon: 5 }); |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <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="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>åå®¡æ ¸</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | |
| | | case 'btn-view': |
| | | get_ViewReport(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-Audit': set_AuditBill(); |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(0); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(1); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | |
| | | title: 'æ°å¢ç»´ä¿®é¡¹ç®', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: ['../åºç¡èµæ/Gy_RepairEdit.html?OperationType=1&linterid=&HSouceBillType='], |
| | | end: function () { |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var hID = data[0].HItemID.toString(); |
| | | var hID = data[0].hitemid.toString(); |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç¼è¾å¨å
·é¢ç¨å' |
| | | , title: 'ç¼è¾ç»´ä¿®é¡¹ç®' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_Repair/DeleteRepair', |
| | | type: "GET", |
| | | data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"] }, |
| | | data: { "HItemID": data[0].hitemid, "User": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | } |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus > 0) { |
| | | layer.msg('åæ®ä¸ä¸ºæªå®¡æ ¸ç¶æï¼'); |
| | | return false; |
| | | } |
| | | var InterID = data[0].hitemid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | url: GetWEBURL() + "/Gy_Repair/AuditGy_Repair", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus = 0) { |
| | | layer.msg('åæ®å·²ä¸ºæªå®¡æ ¸ç¶æ,æ éåå®¡æ ¸ï¼'); |
| | | return false; |
| | | } |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "å¨å
·": "", "HUnitID": 0, "计éåä½": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0,"HNewLeaveLife": 0, "HRemark": "" |
| | | "HMaterID": 0, "å¨å
·": "", "HUnitID": 0, "计éåä½": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HNewLeaveLife": 0, "HRemark": "" |
| | | }]; |
| | | |
| | | |
| | | var params = getUrlVars(); |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å 1æ·»å ä¿å 2å¤å¶ 3 ç¼è¾ |
| | | var linterid = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | |
| | | obj.update({ |
| | | HNewLeaveLife: parseFloat(HDesignLife).toFixed(2), //æ°å¢ç¶æä¸,æ¬æ¬¡å©ä½å¯¿å½ = è®¾è®¡å¯¿å½ |
| | | }); |
| | | } |
| | | } |
| | | |
| | | if ((HLeaveLife - HUseLife) < 0) { |
| | | layer.msg("å©ä½å¯¿å½ä¸è¶³ï¼è¯·éæ°è¾å
¥ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | , { field: 'å¨å
·', title: 'å¨å
·', edit: 'text', event: "HMaterID" }//f7 |
| | | , { field: 'HUnitID', title: 'HUnitID ', width: 100, hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', edit: 'text', event: "HUnitID" }//f7 |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', totalRow: true} |
| | | , { field: 'HLeaveLife', title: 'åå©ä½å¯¿å½', edit: 'text', totalRow: true}//f7 |
| | | , { field: 'HUseLife', title: 'æ¬æ¬¡èç¨', edit: 'text', totalRow: true}//f7 |
| | | , { field: 'HNewLeaveLife', title: 'æ¬æ¬¡å©ä½å¯¿å½', totalRow: true}//f7 |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', totalRow: true } |
| | | , { field: 'HLeaveLife', title: 'åå©ä½å¯¿å½', edit: 'text', totalRow: true }//f7 |
| | | , { field: 'HUseLife', title: 'æ¬æ¬¡èç¨', edit: 'text', totalRow: true }//f7 |
| | | , { field: 'HNewLeaveLife', title: 'æ¬æ¬¡å©ä½å¯¿å½', totalRow: true }//f7 |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text' }//f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 80 } |
| | | ]] |
| | |
| | | }) |
| | | } |
| | | |
| | | //è´è´£äºº |
| | | //è´è´£äºº |
| | | function get_btnHManger() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | |
| | | obj.update({ |
| | | "å¨å
·": checkStatus.data[0].模å
·åç§° |
| | | , "HMaterID": checkStatus.data[0].hmainid |
| | | , "HDesignLife": checkStatus.data[0].åå§è®¾è®¡å¯¿å½ |
| | | , "HLeaveLife": checkStatus.data[0].å©ä½å¯¿å½ |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | |
| | | , "HDate": Format(new Date(d.data[0].æ¥æ), "yyyy-MM-dd") |
| | | , "HRemark": d.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HMangerID": d.data[0].HMangerID |
| | | , "HMangerName": d.data[0].è´è´£äºº |
| | | , "HMangerName": d.data[0].è´è´£äºº |
| | | , "HDeptID": d.data[0].HDeptID |
| | | , "HDeptName": d.data[0].é¨é¨ |
| | | , "HReason": d.data[0].è°æ´åå |
| | |
| | | { |
| | | "HMaterID": d.data[i].HMaterID, "å¨å
·": d.data[i].å¨å
·, "HUnitID": d.data[i].HUnitID, "计éåä½": d.data[i].计éåä½, |
| | | "HDesignLife": d.data[i].设计寿å½, "HLeaveLife": d.data[i].æ¬æ¬¡å©ä½å¯¿å½, "HUseLife": 0, |
| | | "HNewLeaveLife": d.data[i].æ¬æ¬¡å©ä½å¯¿å½,"HRemark": d.data[i].表ä½å¤æ³¨ |
| | | "HNewLeaveLife": d.data[i].æ¬æ¬¡å©ä½å¯¿å½, "HRemark": d.data[i].表ä½å¤æ³¨ |
| | | } |
| | | ) |
| | | } |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideColumn" id="set_HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //var option = { |
| | | // elem: '#mainTable' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , height: 550 |
| | | // , page: true |
| | | // , cellMinWidth: 90 |
| | | // , limits: [50, 500, 5000, 20000] |
| | | // , limit: 50 |
| | | // , cols: [[ |
| | | // { type: 'checkbox', fixed: 'left' } |
| | | // ,{ field: 'hmainid', title: '忮ID', hide: true } |
| | | // , { field: 'æ¥æ', title: 'æ¥æ', width: 160, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>"} |
| | | // , { field: 'åæ®å·', title: 'åæ®å·', width: 160 } |
| | | // , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 160 } |
| | | // , { field: 'HEmID', title: 'HEmID', width: 200, hide: true } |
| | | // , { field: 'è°æ´äººä»£ç ', title: 'è°æ´äººä»£ç ', width: 200 } |
| | | // , { field: 'è°æ´äºº', title: 'è°æ´äºº', width: 200 } |
| | | // , { field: 'HMangerID', title: 'HEmID', width: 200, hide: true } |
| | | // , { field: 'è´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', width: 200 } |
| | | // , { field: 'è´è´£äºº', title: 'è´è´£äºº', width: 200 } |
| | | // , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | // , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | // , { field: 'é¨é¨', title: 'é¨é¨', width: 200 } |
| | | // , { field: 'è°æ´åå ', title: 'è°æ´åå ', width: 115 } |
| | | // , { field: 'æè¦', title: 'æè¦', width: 200 } |
| | | // , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | // , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | | // , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | // , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200 } |
| | | // , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200 } |
| | | // , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200 } |
| | | // , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200 } |
| | | // , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | // , { field: '模å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 200 } |
| | | // , { field: '模å
·', title: 'å¨å
·', width: 200 } |
| | | // , { field: 'HPropertyID', title: 'HPropertyID', width: 200, hide: true } |
| | | // , { field: 'è¾
å©å±æ§ä»£ç ', title: 'è¾
å©å±æ§ä»£ç ', width: 200 } |
| | | // , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 200 } |
| | | // , { field: 'HSecUnitID', title: 'HSecUnitID', width: 200, hide: true } |
| | | // , { field: 'è¾
å©è®¡éåä½ä»£ç ', title: 'è¾
å©è®¡éåä½ä»£ç ', width: 200 } |
| | | // , { field: 'è¾
å©è®¡éåä½', title: 'è¾
å©è®¡éåä½', width: 200 } |
| | | // , { field: 'æ¢ç®ç', title: 'æ¢ç®ç', width: 200 } |
| | | // , { field: 'Hunitid', title: 'Hunitid', 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: 'å¶å人', title: 'å¶å人', width: 200 } |
| | | // , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 200 } |
| | | // , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ? '':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 200 } |
| | | // , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'å
³é人', title: 'å
³é人', width: 200 } |
| | | // , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 200 } |
| | | // , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | // , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true } |
| | | // , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | // , { field: 'æºåç±»å', title: 'æºåç±»å', width: 200 } |
| | | // ]] |
| | | //}; |
| | | |
| | | |
| | | var HModName = "Sc_MouldLifeChangeBillList"; |
| | | var HBillType = "3824"; |
| | | var col = []; |
| | |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-Audit': set_AuditBill(); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | layer.alert("åå»äºä»¶", { icon: 1 }); |
| | | }); |
| | | |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MouldLifeChangeBill/AuditSc_MouldLifeChangeBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MouldLifeChangeBill/AuditSc_MouldLifeChangeBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®åå®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_DeleteBill" id="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Exit" id="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideColumn" id="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-Audit': set_AuditBill(); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].HMainID.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MouldLifeUseBill/AuditSc_MouldLifeUseBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].HMainID.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MouldLifeUseBill/AuditSc_MouldLifeUseBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®åå®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | |
| | | |
| | | var HModName = "Gy_MaterialMouldBillMain"; |
| | | //#endregion |
| | | |
| | |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å 1æ·»å ä¿å 2å¤å¶ 3 ç¼è¾ 4æ·»å åå·¥èºè·¯çº¿ |
| | | var linterid = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == null || OperationType == 1) { |
| | | |
| | | |
| | | OperationType = 1; |
| | | $("#HOrgID").attr("disabled", true); |
| | | //ç¦ç¨æé® |
| | |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | //else if (OperationType == 2) { |
| | | |
| | | |
| | | // RoadBillMain(linterid); |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HOrgID").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | RoadBillMain(linterid); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | |
| | | |
| | | // ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | |
| | | set_AddNew(data); |
| | | |
| | | |
| | | set_AddNew(data); |
| | | |
| | | }); |
| | | |
| | | // éåº |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HMouldID": "", |
| | | "HMouldNumber":"", |
| | | "HMouldNumber": "", |
| | | "HMouldName": "", |
| | | "HMouldType": "", |
| | | "HQty": "0", |
| | | "HMouldQty": "0", |
| | | "HRate": "0", |
| | | "HQty": "1", |
| | | "HMouldQty": "", |
| | | "HRate": "", |
| | | "HSourceBillNo": "0", |
| | | "HSourceBillType": "0", |
| | | "HSourceEntryID": "0", |
| | |
| | | option.data = table.cache["mainTable"]; |
| | | |
| | | table.render(option); |
| | | |
| | | |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | |
| | | |
| | | |
| | | } |
| | | break; |
| | |
| | | |
| | | //#region å¨å
·æ¸
ååå§å |
| | | function get_InitGrid() { |
| | | option = { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | |
| | | } |
| | | option.data = []; |
| | | table.render(option); |
| | | |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region è´è´£äººéæ©é¡µé¢ |
| | | function get_checkSearchHEmp() { |
| | |
| | | $("#HEquipNumber").val(checkStatus.data[0].设å¤ä»£ç );//设å¤ä»£ç |
| | | $("#HEquipName").val(checkStatus.data[0].设å¤åç§°);//设å¤åç§° |
| | | $("#HEquipModel").val(checkStatus.data[0].设å¤è§æ ¼);//设å¤åå· |
| | | |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | "HMouldID":checkStatus.data[0].hmainid, |
| | | "HMouldID": checkStatus.data[0].hmainid, |
| | | "HMouldNumber": checkStatus.data[0].模å
·ç¼å·, |
| | | "HMouldName":checkStatus.data[0].模å
·åç§°, |
| | | "HMouldName": checkStatus.data[0].模å
·åç§°, |
| | | "HMouldType": checkStatus.data[0].模å
·åå·, |
| | | "HMouldQty": checkStatus.data[0].ç©´æ°, |
| | | "HSourceInterID": checkStatus.data[0].hmainid, |
| | | "HSourceEntryID": checkStatus.data[0].hsubid, |
| | | "HSourceBillType": checkStatus.data[0].HBillType, |
| | | "HSourceBillNo": checkStatus.data[0].åæ®å· |
| | | "HSourceBillNo": checkStatus.data[0].åæ®å·, |
| | | "HQty": 1, |
| | | "HRate": 1 |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | |
| | | //#region ç¼è¾ 页é¢èµå¼ |
| | | function RoadBillMain(linterid)//å 载表头 |
| | |
| | | //#region ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | //è®°å½æä½ç±»å |
| | | var refSav = ""; |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4) { |
| | |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num); |
| | | |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"] ; |
| | | |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_MouldinventoryBill/SaveGy_MaterialMouldBillMain", |
| | | |
| | | |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | function AllowLoadData() { //é空éªè¯ |
| | | var Result = true; |
| | | if ($("#HMaterID").val() == 0 || $("#HMaterID").val() == null || $("#HMaterID").val() == "undefined") { |
| | | layer.msg("ç©æä¿¡æ¯ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | |
| | | return Result; |
| | | } |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = [ ];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = [];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | }); |
| | | |
| | |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | |
| | | $("#HBeginDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HBillNo").val(""); |
| | | $("#HBeginDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åæ®å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" readonly> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¼å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo" > |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName" > |
| | | <input type="text" class="layui-input" name="HName" id="HName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·è§æ ¼<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel" > |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç´å¾</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDiameter" id="HDiameter" > |
| | | <input type="text" class="layui-input" name="HDiameter" id="HDiameter"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¾
å©å±æ§</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSubjoin" id="HSubjoin" > |
| | | <input type="text" class="layui-input" name="HSubjoin" id="HSubjoin"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¾
å©å±æ§2</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2" > |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¾å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HPICNo" id="HPICNo" > |
| | | <input type="text" class="layui-input" name="HPICNo" id="HPICNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产产ååå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HWorkMaterModel" id="HWorkMaterModel" > |
| | | <input type="text" class="layui-input" name="HWorkMaterModel" id="HWorkMaterModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åºåæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HOutComDate" id="HOutComDate" > |
| | | <input type="text" class="layui-input" name="HOutComDate" id="HOutComDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HDeptID" id="HDeptID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptList" id="btnHDeptList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¶æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldStatus" id="HMouldStatus" > |
| | | <div class="layui-inline" style="margin-left:10px;"> |
| | | <label class="layui-form-label">å¨å
·ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldStatus" lay-filter="HMouldStatus" id="HMouldStatus"> |
| | | <option value="å¨åº" selected="selected">å¨åº</option> |
| | | <option value="å¨é">å¨é</option> |
| | | <option value="丢失">丢失</option> |
| | | <option value="éå®">éå®</option> |
| | | <option value="é¢åº">é¢åº</option> |
| | | <option value="æ¥åº">æ¥åº</option> |
| | | <option value="æªå¯ç¨">æªå¯ç¨</option> |
| | | <option value="ä½åº">ä½åº</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®å
¨å¯¿å½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSaveLife" id="HSaveLife" > |
| | | <input type="text" class="layui-input" name="HSaveLife" id="HSaveLife" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">çæ¬å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HVersion" id="HVersion" > |
| | | <input type="text" class="layui-input" name="HVersion" id="HVersion"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <input type="text" class="layui-input" name="HSPName" id="HSPName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSPID" id="HSPID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPIDList" id="btnHSPIDList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <!--<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="HRoutingName" id="HRoutingName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HRoutingID" id="HRoutingID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHRoutingList" id="btnHRoutingList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤BOM</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HBOMName" id="HBOMName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HBOMID" id="HBOMID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHBOMList" id="btnHBOMList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <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="HRoutingName" id="HRoutingName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HRoutingID" id="HRoutingID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHRoutingList" id="btnHRoutingList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤BOM</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HBOMName" id="HBOMName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HBOMID" id="HBOMID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHBOMList" id="btnHBOMList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | |
| | | <!--<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="HSPGroupName" id="HSPGroupName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HSPGroupID" id="HSPGroupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPGroupList" id="btnHSPGroupList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <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="HSPGroupName" id="HSPGroupName" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <input type="hidden" class="layui-input" name="HSPGroupID" id="HSPGroupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPGroupList" id="btnHSPGroupList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">设计寿å½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDesignLife" id="HDesignLife" > |
| | | <input type="text" class="layui-input" name="HDesignLife" id="HDesignLife"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">使ç¨å¯¿å½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUseLife" id="HUseLife" > |
| | | <input type="text" class="layui-input" name="HUseLife" id="HUseLife" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å©ä½å¯¿å½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HLeaveLife" id="HLeaveLife" > |
| | | <input type="text" class="layui-input" name="HLeaveLife" id="HLeaveLife" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å·²ç产æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProdQty" id="HProdQty" > |
| | | <input type="text" class="layui-input" name="HProdQty" id="HProdQty" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å·²ç产éé</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProdWeight" id="HProdWeight"> |
| | | <input type="text" class="layui-input" name="HProdWeight" id="HProdWeight" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç©´æ°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCaveQty" id="HCaveQty" > |
| | | <input type="text" class="layui-input" name="HCaveQty" id="HCaveQty"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">èæä»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HNowSupName" id="HNowSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSupID" id="HNowSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HNowSupList" id="HNowSupList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">èæä»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HNowSupName" id="HNowSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSupID" id="HNowSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HNowSupList" id="HNowSupList" 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-row"> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-left:10px;"> |
| | | <label class="layui-form-label">å¨å
·åç±»</label> |
| | | <label class="layui-form-label">å¨å
፱Ȍ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldClass" lay-filter="HMouldClass" id="HMouldClass"> |
| | | <option value="模å
·" selected="selected">模å
·</option> |
| | |
| | | <option value="å¨è½¬å¨å
·">å¨è½¬å¨å
·</option> |
| | | <option value="å
¶ä»">å
¶ä»</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HNowWHName" id="HNowWHName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowWHID" id="HNowWHID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHNowWHList" id="btnHNowWHList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <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="HNowSPName" id="HNowSPName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSPID" id="HNowSPID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHNowSPList" id="btnHNowSPList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }); |
| | | }); |
| | | |
| | | //å½åä»åº |
| | | form.on('submit(btnHNowWHList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»åºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Warehouse.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowWHName").val(checkStatus.data[0].ä»åºåç§°); |
| | | $("#HNowWHID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å·¥èºè·¯çº¿ |
| | | form.on('submit(btnHRoutingList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | } |
| | | $("#HSPName").val(checkStatus.data[0].ä»ä½åç§°); |
| | | $("#HSPID").val(checkStatus.data[0].HMainID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //å½åä»ä½ |
| | | form.on('submit(btnHNowSPList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»ä½å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_StockPlace_List.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSPName").val(checkStatus.data[0].ä»ä½åç§°); |
| | | $("#HNowSPID").val(checkStatus.data[0].HMainID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | }, |
| | | success: function (d) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(d)).data; |
| | | |
| | | |
| | | $("#HInterID").val(d.data[0].hmainid); |
| | | $("#HBillNo").val(d.data[0].åæ®å·); |
| | | $("#HDate").val(formatDate(d.data[0].æ¥æ)); |
| | |
| | | $("#HMouldClass").val(d.data[0].å¨å
·åç±»); |
| | | //$("#HNowSupID").val(d.data[0].HNowSupID); |
| | | //$("#HNowSupName").val(d.data[0].èæä»); |
| | | $("#HNowWHID").val(d.data[0].å½åä»åºID); |
| | | $("#HNowWHName").val(d.data[0].å½åä»åº); |
| | | $("#HNowSPID").val(d.data[0].å½åä»ä½ID); |
| | | $("#HNowSPName").val(d.data[0].å½åä»ä½); |
| | | $("#HMouldStatus").val(d.data[0].模å
·ç¶æ); |
| | | |
| | | var HCycleUnit = d.data[0].卿åä½; |
| | | var HCheckCycle = d.data[0].ä¿å
»å¨æ; |
| | | |
| | | if ( !(HCycleUnit == null || HCheckCycle == null ) ) { |
| | | if (!(HCycleUnit == null || HCheckCycle == null)) { |
| | | calculateHNextMainDate(d.data[0].hmainid, HCycleUnit, HCheckCycle); |
| | | } |
| | | |
| | |
| | | |
| | | //ä¿å |
| | | function set_btnSave(data) { |
| | | |
| | | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | var user = sessionStorage["HUserName"]; |
| | | var ModRightNameAdd = 'Gy_MouldFile_Edit'; |
| | |
| | | if ($("#HWHID").val() == '' || $("#HWHID").val() == null) { |
| | | layer.msg("é»è®¤ä»åºä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | } |
| | | if ($("#HCaveQty").val() == '' || $("#HCaveQty").val() == null) { |
| | | layer.msg("ç©´æ°ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | if (checkStatus.data.length === 1) { |
| | | var HBillStatus = data[0].HBillStatus.toString(); //åæ®ç¶æ |
| | | var HInterID = data[0].hmainid.toString(); |
| | | if (HBillStatus > 0) { |
| | | layer.msg('åæ®ä¸ä¸ºæªå®¡æ ¸ç¶æï¼'); |
| | | return false; |
| | | } |
| | | //if (HBillStatus > 0) { |
| | | // layer.msg('åæ®ä¸ä¸ºæªå®¡æ ¸ç¶æï¼'); |
| | | // return false; |
| | | //} |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | |
| | | |
| | | //ç¹å»ä¸»è¡¨å¸¦åºä»è¡¨æ°æ® |
| | | table.on('row(mainTable)', function (obj) { //注ï¼tool æ¯å·¥å
·æ¡äºä»¶åï¼test æ¯ table åå§å®¹å¨ç屿§ lay-filter="对åºçå¼" |
| | | ç¹å»è¡éä¸é«äº® |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | |
| | | |
| | | var datas = obj.data; //è·å¾å½åè¡æ°æ® |
| | | var linterid = datas.hmainid; |
| | | $.ajax({ |
| | |
| | | |
| | | //å¤æç©ææç»é¡¹ |
| | | if (typeof (sSubStr) == "undefined" || sSubStr == "" || sSubStr == "[]") { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("没ææ
éåå æç»è®°å½", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | sSubStr = JSON.parse(sSubStr); |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (sSubStr[i].HRepairCode == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,维修代ç ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | if (sSubStr[i].HConkReasonID == 0) { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æ
éåå ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sSubStr[i].HManagerCode == "") { |
| | |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»è®¡åç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanName" id="HPlanName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldMaintainPlanEntryID" id="HMouldMaintainPlanEntryID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldMaintainPlanInterID" id="HMouldMaintainPlanInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»è§ç¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMouldMaintainRuleInterID" id="HMouldMaintainRuleInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HMouldMaintainRuleInterNo" id="HMouldMaintainRuleInterNo" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldMaintainRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¨å
·ä¿å
»è§ç¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMouldMaintainRuleInterID" id="HMouldMaintainRuleInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HMouldMaintainRuleInterNo" id="HMouldMaintainRuleInterNo" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldMaintainRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | $("#HPlanNo").val(checkStatus.data[0].hmainid); |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HMaintainLevID); |
| | | $("#HBeginDate").val(Pub_Format(checkStatus.data[0].计åå¼å§æ¥æ, "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Pub_Format(checkStatus.data[0].计åç»ææ¥æ, "yyyy-MM-dd")); |
| | | $("#HMouldMaintainPlanInterID").val(checkStatus.data[0].hmainid); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_MaintainItem1(); |
| | | } |
| | |
| | | } |
| | | $("#HMouldName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldID").val(checkStatus.data[0].hmainid); |
| | | get_MaintainItem(); |
| | | //get_MaintainItem(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | } |
| | | |
| | | //ä¿å
»è®¡åç¼å· |
| | | window.get_MaintainItem1 = function() { |
| | | window.get_MaintainItem1 = function () { |
| | | var HPlanID = $("#HPlanNo").val() //ä¿å
»è®¡åID |
| | | var HDate = $("#HDate").val(); //å½å¤©æ¥æ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldMaintainPlanBill/Sc_MouldMaintainPlanBillListProjectDetai", |
| | | url: GetWEBURL() + "/Sc_MouldMaintainPlanBill/Sc_MouldMaintainPlanBill_PlanList", |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + $("#HPlanNo").val() }, |
| | | data: { "HInterID": HPlanID, "HDate": HDate }, |
| | | success: function (result) { |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result.list[0];//ä¿å
» |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var BYData = result.data[0];//ä¿å
» |
| | | var PJData = result.data[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | var rowdate2 = layui.table.cache["mainTable1"]; |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | |
| | | |
| | | if (BYData.length != 0) { |
| | | $("#HMouldMaintainRuleInterID").val(BYData[0].HMouldMaintainRuleID); |
| | | $("#HMouldMaintainRuleInterNo").val(BYData[0].HEquipDotCheckNo); |
| | | $("#HMouldMaintainRuleInterNo").val(BYData[0].ä¿å
»è§ç¨åå·); |
| | | } |
| | | else { |
| | | layer.msg("æ ä¿å
»è§ç¨!") |
| | |
| | | |
| | | if (BYData.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | | { |
| | | $("#HMouldMaintainPlanEntryID").val(BYData[0].HPlanEntryID); |
| | | 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].è´è´£äººID, "HManagerNumber": BYData[i].HManagerNumber, |
| | | "HManagerName": BYData[i].HManagerName, "HClaim": BYData[i].HClaim, "HRemark": BYData[i].HRemark |
| | | "HMaintainItemID": BYData[i].HMaintainItemID == null ? 0 : BYData[i].HMaintainItemID, "HMaintainItemNumber": BYData[i].ä¿å
»é¡¹ç®ä»£ç , "HMaintainItem": BYData[i].ä¿å
»é¡¹ç®, |
| | | "HMaintainPart": BYData[i].ä¿å
»é¨ä½, "HManagerID": BYData[i].HEmployeeID == null ? 0 : BYData[i].HEmployeeID, "HManagerNumber": BYData[i].è´è´£äººä»£ç , |
| | | "HManagerName": BYData[i].è´è´£äººåç§°, "HClaim": BYData[i].å
·ä½è¦æ±, "HRemark": "" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | } |
| | | |
| | | //å¨å
·ä¿å
»è§ç¨ |
| | | window.get_MaintainItem2 = function() { |
| | | window.get_MaintainItem2 = function () { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMouldMaintainItemtemByMaintainRuleID", |
| | | type: "GET", |
| | |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | |
| | | <input type="hidden" name="HMouldMaintainRuleID" id="HMouldMaintainRuleID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HMouldMaintainRuleNo" id="HMouldMaintainRuleNo" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEquipDotCheckRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»çº§å«</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMaintainLevID" id="HMaintainLevID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HMaintainLevName" id="HMaintainLevName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnMaintainLev" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»çº§å«</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMaintainLevID" id="HMaintainLevID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HMaintainLevName" id="HMaintainLevName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnMaintainLev" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ä¿å
»é¡¹ä¿¡æ¯</li> |
| | | <li>é
ä»¶ä¿¡æ¯</li> |
| | | <li>ä¿å
»è®¡å</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--ä¿å
»è®¡å--> |
| | | <table class="layui-hide" id="mainTable_plan" lay-filter="mainTable_plan"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | , element = layui.element; |
| | | var option = [];//ä¿å
» |
| | | var option1 = [];//é
ä»¶ |
| | | var option_plan = [];//计å |
| | | var sBillType = "3818"; |
| | | //var TabRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HRemark": " " }; |
| | | //#endregion |
| | |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_InitGrid1(); |
| | | set_InitGrid_Plan(); |
| | | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | |
| | | $("#HMouldMaintainRuleID").val(checkStatus.data[0].hmainid); |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HMaintainLevID); |
| | | $("#HCycleUnit").val(checkStatus.data[0].卿åä½); |
| | | $("#HCheckCycle").val(checkStatus.data[0].ä¿å
»å¨æ); |
| | | form.render('select'); |
| | | |
| | | get_DocCheckItem2(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | }; |
| | | |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid_Plan() { |
| | | //ç¹æ£è®¡å |
| | | columns_plan = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, event: "qwe" } |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹' } |
| | | , { field: 'HPlanEndTime', title: '计åç»ææ¶é´ç¹' } |
| | | , { field: 'HRelationFlag', title: 'å
³èæ è®°' } |
| | | , { field: 'DiffDate', title: 'ç¸å·®é´é' } |
| | | ]; |
| | | option_plan = { |
| | | id: 'mainTable_plan' |
| | | , elem: '#mainTable_plan' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , limits: [50, 200, 500, 1000, 3000] |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns_plan] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() { |
| | |
| | | table.render(option); |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": "0 ", "HUnitNumber": "", "HUnitName": "", "HQty": "0 ", "HQtyMust": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | |
| | | set_EditGrid_Plan(linterid); //ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | table.render(option_plan); |
| | | } |
| | | |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | |
| | | table.render(option); |
| | | option1.data = result.list[1]; |
| | | table.render(option1); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | function set_EditGrid_Plan(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldMaintainPlanBill/GetPlanList', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var rowdata = []; |
| | | var data = result.data; |
| | | for (let i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HPlanDate": Pub_Format(data[i].è®¡åæ¥æ, "yyyy-MM-dd"), "HPlanBeginTime": Pub_Format(data[i].计åå¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HPlanEndTime": Pub_Format(data[i].计åç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss") |
| | | , "HRelationFlag": data[i].å
³èæ è®°, "DiffDate": data[i].ç¸å·®é´é |
| | | } |
| | | ) |
| | | } |
| | | |
| | | option_plan.data = rowdata; |
| | | table.render(option_plan); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | |
| | | // ä¿å
»ä¿¡æ¯ é
ä»¶ä¿¡æ¯ |
| | | window.get_DocCheckItem2 = function(data) { |
| | | window.get_DocCheckItem2 = function (data) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldMaintainRuleBill/Sc_MouldMaintainRuleBillListProjectDetaiNew", |
| | | type: "GET", |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //åå§åçé¢ |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill" id="set_CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_AbandonCheck" lay-event="set_AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-view" id="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-print" id="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(1); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'set_AbandonCheck': set_CheckBill(2); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | |
| | | //å®¡æ ¸ [1 å®¡æ ¸ã2 åå®¡æ ¸] |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | |
| | | if (data.length == 1) { |
| | | layer.confirm("确认è¦å®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | var HInterID = data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldMaintainBill/CheckSc_MouldMaintainBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "user": sessionStorage["HUserName"], "HBillSubType": "3819" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | get_FastQuery(); |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | //å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-view" id="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-print" id="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(1); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'set_AbandonCheck': set_CheckBill(2); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | }); |
| | | } |
| | | //å®¡æ ¸ |
| | | function set_CheckBill() { |
| | | } |
| | | //åå®¡æ ¸ |
| | | function set_AbandonCheck() { |
| | | //å®¡æ ¸/åå®¡æ ¸ |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | |
| | | if (data.length == 1) { |
| | | layer.confirm("确认è¦å®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | var HInterID = data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldMaintainPlanBill/CheckSc_MouldMaintainPlanBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | get_FastQuery(); |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | //å·æ° |
| | | function btn_Refresh() { |
| | |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">卿åä½</label> |
| | | <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" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">卿åä½<label style="color:red"> * </label></label> |
| | | <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 style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCheckCycle" id="HCheckCycle" class="layui-input" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation"></textarea> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>åå®¡æ ¸</button> |
| | | <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="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | |
| | | case 'get_Refresh': |
| | | set_Refresh(); |
| | | break; |
| | | |
| | | //éåº |
| | | case 'get_Exit': |
| | | Pub_Close(2); |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(0); |
| | | break; |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(1); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | } |
| | | |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length == 1) { |
| | | var wait = layer.load(); |
| | | var HInterID = data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldMaintainRuleBill/CheckSc_MouldMaintainRuleBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "user": sessionStorage["HUserName"], "HBillSubType": "3833" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | get_FastQuery(); |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //é¢è§ |
| | | function get_ViewReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //设å¤ç¼å·åè½¦æ¹æ³ |
| | | $('#HNumber').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | //设å¤åç§°åè½¦æ¹æ³ |
| | | $('#HName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //åæ®å·åè½¦æ¹æ³ |
| | | $('#HBillNo').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | //#region åå»è¿åæ°æ® |
| | | table.on('rowDouble(mainTable)', function (obj) { |
| | | var data = []; |
| | |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//ä¿ååä¿åæé®ç¦ç¨ |
| | | |
| | | if ($("#lngBillSubKey").val() == 0) { |
| | | layer.msg("æµæ°´å·æ²¡æéæ©ï¼è¯·è¾å
¥æµæ°´å·åå车ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | if (sessionStorage["OrganizationID"] == 1) { |
| | | console.log("æ±æ¥åå·ï¼" + $("#HBillNo").val() + " " + "å·¥åºï¼" + $("#HProcName").val() + " " + "FirstEndHProcNo:" + FirstEndHProcNo); |
| | | if (FirstEndHProcNo == 1) { |
| | | //æ±æ¥ |
| | | GetInStorage(); |
| | |
| | | } |
| | | } |
| | | else { |
| | | $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false);//ä¿åæé®å¯ç¨ |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false);//ä¿åæé®å¯ç¨ |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | |
| | | function GetInStorage() { |
| | | var InterID = $("#HInterID").val(); |
| | | var BillNo = $("#HBillNo").val(); |
| | | if (InterID == "" || InterID == null || InterID == "undefined" || BillNo == "" || BillNo == null || BillNo == "undefined" || sessionStorage["HUserName"] == "" || sessionStorage["HUserName"] == null || sessionStorage["HUserName"] == "undefined" || sessionStorage["OrganizationID"] == "" || sessionStorage["OrganizationID"] == sessionStorage["OrganizationID"] || InterID == "undefined") { |
| | | layer.alert("æ±æ¥å忥忰åçå¼å¸¸"); |
| | | } |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/SaveICMOReportBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |