WebTM/layuiadmin/Scripts/webConfig.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/IpadIndex.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/生产管理/产量汇报单/Sc_ProductReportBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/生产管理/生产停工单/Sc_Add_MESStopWorkBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/生产管理/生产完工单/Sc_Add_MESEndWorkBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/生产管理/生产开工单/Sc_Add_MESBeginWorkBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebTM/layuiadmin/Scripts/webConfig.js
@@ -1,12 +1,12 @@ function GetWEBURL() { //var WEBURL = "http://192.168.16.80:8011/"; //åå ¬å®¤æå¡å¨ //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å° var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° //var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° //var WEBURL = "http://192.168.2.21:8081/lubaoWebAPI/";//çæ°¸æ³¢æ¬å°é ç½®ï¼è¯·å¿æ´æ¹ //var WEBURL = "http://101.37.171.70/API/"; //å ¬å¸æå¡å¨ //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é ç½® //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é ç½® //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é ç½® var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é ç½® //var WEBURL = "http://10.1.4.154/API/"; //æ±ä¸°å®¢æ· //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ WebTM/views/IpadIndex.html
@@ -54,7 +54,6 @@ var mychart2 = echarts.init(document.getElementById('mychart2')); element.on('tab(TabTest)', function (data) { console.log(data); Mychart(mychart1, mychart2); mychart1.resize(); mychart2.resize(); @@ -144,6 +143,7 @@ data: { "HSourceID": HSourceID }, dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp success: function (data) { var LoadData1 = data.data.h_p_JIT_GetWorkBillListInfoBySource; var LoadData2 = data.data.h_p_JIT_GetWorkBillListInfoBySource1; if (LoadData1.length > 0) //å·¥ååè¡¨æ°æ® @@ -155,7 +155,8 @@ html1 += '<div class="cns" id="bs' + (i + 1) + '" onclick="CheckBtom(this,' + (i + 1)+ ')">'; html1 += '<dl>'; html1 += '<dd class="tcenter">'; html1 += '<h1 style="display:none;"><span>åæ®ç¶æï¼</span><span id="ty' + (i + 1) + '">' + LoadData1[i].HBillType + '</span></h1>'; html1 += '<h1 style="display:none;"><span>åæ®ç±»åï¼</span><span id="ty' + (i + 1) + '">' + LoadData1[i].HBillType + '</span></h1>'; //HSourceInterIDå®é åå¼ï¼Sc_ICMOBillStatus_Tmp HInterIDï¼åæ®ä¸»IDï¼ html1 += '<h1 style="display:none;"><span>æºå主å ç ï¼</span><span id="sm' + (i + 1) + '">' + LoadData1[i].HSourceInterID + '</span></h1>'; html1 += '<h1 style="display:none;"><span>æºååå ç ï¼</span><span id="sb' + (i + 1) + '">' + LoadData1[i].HSourceEntryID + '</span></h1>'; html1 += '<h1 style="display:none;"><span>æºååå·ï¼</span><span id="sw' + (i + 1) + '">' + LoadData1[i].HSourceBillNo + '</span></h1>'; @@ -531,7 +532,11 @@ layer.alert("è¯·éæ©å·¥åå表", {icon: 5 }); return false; } if (WorkStaus(HSourceID1, workcode, HSourceInterID, "å¼å·¥")) { layer.alert("åæ®ç¶æä¸æ»¡è¶³å¼å·¥æ¡ä»¶!", { icon: 5 }); return false; } layer.open({ type: 2, skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ @@ -603,6 +608,11 @@ layer.alert("è¯·éæ©å·¥åå表", { icon: 5 }); return false; } if (WorkStaus(HSourceID1, workcode, HSourceInterID, "å®å·¥")) { layer.alert("åæ®ç¶æä¸æ»¡è¶³å®å·¥æ¡ä»¶!", { icon: 5 }); return false; } layer.open({ type: 2, skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ @@ -636,6 +646,11 @@ function OpenStop(event, obj) { if (wktag == 0) { layer.alert("è¯·éæ©å·¥åå表", { icon: 5 }); return false; } if (WorkStaus(HSourceID1, workcode, HSourceInterID, "åå·¥")) { layer.alert("åæ®ç¶æä¸æ»¡è¶³åå·¥æ¡ä»¶!", { icon: 5 }); return false; } layer.open({ @@ -682,7 +697,7 @@ shift: 2, area: ['100%', '100%'], maxmin: true, content: 'ç产管ç/äº§éæ±æ¥/Sc_ProductReportBillList.html?hID=&Type=2', content: 'ç产管ç/äº§éæ±æ¥å/Sc_ProductReportBillList.html?hID=&Type=2', end: function () { }, @@ -701,7 +716,56 @@ }, }); } //åæ®ç¶æéªè¯ function WorkStaus(HSourceID1, workcode,HSourceInterID,btn) { var flag = false; var sWhere = ""; switch (btn) { case "å¼å·¥": sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID+"' and hicmostatus not in('0')"; //å¼å·¥ç¶æ break; case "å®å·¥": sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1','2')"; //å®å·¥ç¶æ break; case "åå·¥": sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')"; //åå·¥æèµ·ç¶æ break; case "æ±æ¥": html1 = ''; break; case "æ¥æ£ç³è¯·": break; default: } $.ajax({ url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkBillStaus", type: "GET", data: { "sWhere": sWhere}, dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp async: false, success: function (data) { if (data.count > 0) { flag = true; } else { flag =false; } }, error: function (err) { flag = false; } }); console.log(flag); return flag; } </script> </head> @@ -741,7 +805,7 @@ <div class="layui-tab layui-tab-card" lay-filter="TabTest"> <ul class="layui-tab-title"> <li class="layui-this">å·¥åå表</li> <li>æç/ä¸è¯åæ</li> <li style="pointer-events: none; background-color:rgb(0 0 0 / 10%);">æç/ä¸è¯åæ</li> </ul> <div class="layui-tab-content content3"> <div class="layui-tab-item layui-show"> WebTM/views/Éú²ú¹ÜÀí/²úÁ¿»ã±¨µ¥/Sc_ProductReportBillList.html
@@ -22,15 +22,16 @@ <div class="layui-fluid"> <div class="layui-col-md12"> <div class="layui-card" style="padding: 1px"> <div class="layui-card-header"> <button type="button" class="layui-btn" lay-submit="" lay-filter="Delete"><i class="layui-icon layui-icon-add"></i>å é¤</button> <button type="button" class="layui-btn" lay-submit="" lay-filter="AskReport"><i class="layui-icon layui-icon-add"></i>ç³è¯·æ£éª</button> <button type="button" class="layui-btn" lay-submit="" lay-filter="Exit"><i class="layui-icon layui-icon-add"></i>éåº</button> <span style="margin:0 30%;font-size:24px;font-weight:bold;">äº§éæ±æ¥</span> </div> <div class="layui-card-body" style="padding: 1px;"> <form class="layui-form" action="" lay-filter="component-form-group"> <form class="layui-form" action="" lay-filter="component-form-group"> <div class="layui-card-header"> <button type="button" class="layui-btn" lay-submit="" lay-filter="Delete"><i class="layui-icon layui-icon-add"></i>å é¤</button> <button type="button" class="layui-btn" lay-submit="" lay-filter="AskReport"><i class="layui-icon layui-icon-add"></i>ç³è¯·æ£éª</button> <button type="button" class="layui-btn" lay-submit="" lay-filter="Exit"><i class="layui-icon layui-icon-add"></i>éåº</button> <span style="margin:0 30%;font-size:24px;font-weight:bold;">äº§éæ±æ¥</span> </div> <div class="layui-card-body" style="padding: 1px;"> <div class="layui-collapse"> <div class="layui-colla-item"> <div class="layui-colla-title layui-inline"> @@ -63,7 +64,7 @@ <input type="text" class="layui-input" name="Part" id="Part" style="width:190px;"> </div> </div> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> </button> @@ -103,8 +104,8 @@ </div> </script> </form> </div> </div> </form> </div> </div> </div> @@ -193,7 +194,7 @@ var index = layer.load(0, { shade: false }); //ææºåæ°å¢ if (Type != 2) if (Type == 2) { sWhere = " where a.HSourceID='" + HSourceID + "' and a.HICMOBillNo='" + workcode + "'"; //è¿å ¥é¡µé¢æ¾ç¤ºçç¼åå表 @@ -257,6 +258,47 @@ } }) //ç³è¯·æ£éª form.on('submit(AskReport)', function (data) { var sSubStr = JSON.stringify(table.cache['mainTable']); //if (!AllowLoadData(sSubStr))//æ°æ®éªè¯ //{ // return false; //} $.ajax( { type: "POST", url: GetWEBURL() + "/Sc_ICMOReportBill/SaveGetICMOReportBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å async: true, data: { "msg": sMainSub }, dataType: "json", success: function (data) { if (data.count == 1) { // 说æéªè¯æåäºï¼ layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function (index) { layer.close(layer.index); window.parent.location.reload(); }); } else { layer.alert(data.Message, { icon: 5 }) } }, error: function (err) { layer.alert(data.Message, { icon: 5 }) } }); }) //éåº //å é¤æé® form.on('submit(Exit)', function (data) { var index = parent.layer.getFrameIndex(window.name); //å å¾å°å½åiframeå±çç´¢å¼ parent.layer.close(index); //åæ§è¡å ³é }) //éç½®æé® form.on('submit(btnReSearch)', function (data) { $("#HDate").val("");//å¼å§æ¥æ @@ -267,46 +309,48 @@ }); //æ¥è¯¢æé® form.on('submit(btnSearch)', function (data) { var HDate = $("#HDate").val();//å¼å§æ¥æ var HDate1 = $("#HDate1").val();//ç»ææ¥æ var HBillNo = $("#HBillNo").val(); //åæ®å· var Part = $("#Part").val(); //ç©æä¿¡æ¯ var Source = $("#Source").val(); //èµæº if (HDate) { sWhere += " and CONVERT(varchar(100),a.HDate, 23) >= '" + HDate + "'"; } if (HDate1) { sWhere += " and CONVERT(varchar(100),a.HDate, 23) <= '" + HDate1 + "'"; } if (HBillNo) { sWhere += " and a.HBillNo like '%" + HBillNo + "%'"; } if (Part) { sWhere += " and concat(m.HNumber,m.HName,m.HModel) like '%" + Part + "%'"; } if (Source) { sWhere += " and s.HName like '%" + Dept + "%'"; } $.ajax({ //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", url: GetWEBURL() + '/Sc_ICMOReportBill/list', type: "GET", data: { "sWhere": sWhere }, success: function (data1) { if (data1.count == 1) { option.data = data1.data; table.render(option); layer.alert("æ¥è¯¢æå", { icon: 1 }); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); if (Type == 2) { form.on('submit(btnSearch)', function (data) { var HDate = $("#HDate").val();//å¼å§æ¥æ var HDate1 = $("#HDate1").val();//ç»ææ¥æ var HBillNo = $("#HBillNo").val(); //åæ®å· var Part = $("#Part").val(); //ç©æä¿¡æ¯ var Source = $("#Source").val(); //èµæº if (HDate) { sWhere += " and CONVERT(varchar(100),a.HDate, 23) >= '" + HDate + "'"; } if (HDate1) { sWhere += " and CONVERT(varchar(100),a.HDate, 23) <= '" + HDate1 + "'"; } if (HBillNo) { sWhere += " and a.HBillNo like '%" + HBillNo + "%'"; } if (Part) { sWhere += " and concat(m.HNumber,m.HName,m.HModel) like '%" + Part + "%'"; } if (Source) { sWhere += " and s.HName like '%" + Dept + "%'"; } $.ajax({ //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", url: GetWEBURL() + '/Sc_ICMOReportBill/DeltetICMOReportBill', type: "GET", data: { "sWhere": sWhere }, success: function (data1) { if (data1.count == 1) { option.data = data1.data; table.render(option); layer.alert("æ¥è¯¢æå", { icon: 1 }); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); sWhere = "";//è°ç¨æ¥å£åæ¸ ç©ºsWhereç¼å }); sWhere = "";//è°ç¨æ¥å£åæ¸ ç©ºsWhereç¼å }); } //以䏿¯layui模å }); WebTM/views/Éú²ú¹ÜÀí/Éú²úÍ£¹¤µ¥/Sc_Add_MESStopWorkBillList.html
@@ -164,7 +164,7 @@ <div class="layui-inline"> <label class="layui-form-label">ç产订å:</label> <div class="layui-input-inline"> <input class="layui-input" name="HICMOBillNo " lay-verify="HICMOBillNo " id="HICMOBillNo " autocomplete="off"> <input class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" autocomplete="off"> <input id="HICMOInterID" name="HICMOInterID" type="hidden" /> <input id="HICMOEntryID" name="HICMOEntryID" type="hidden" /> </div> @@ -469,7 +469,7 @@ success: function (data) { if (data.count == 1)// 说æéªè¯æåäºï¼ { var LoadData = data.data.h_p_JIT_GetSourceInfoByUser; var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; $("#HProcID").val(LoadData[0].HProcID); //å½åå·¥åºID $("#HProcName").val(LoadData[0].HProcName); //å½åå·¥åº $("#HMaterID").val(LoadData[0].HMaterID); //产åID @@ -478,8 +478,8 @@ $("#HMaterSpec").val(LoadData[0].HModel); //产åè§æ ¼ $("#HSourceID").val(LoadData[0].HSourceID); //çäº§èµæºID $("#HSourceName").val(LoadData[0].HSourceName); //çäº§èµæº $("#HMainSourceBillNo").val(LoadData[0].HSourceBillNo); //æºååå· $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç (åå¼HInterID) $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå ç (æºåè¡å·) $("#HMainSourceBillType").val(HSourceBillType); //æºåç±»å $("#HDeptID").val(LoadData[0].HDeptID); //车é´ID WebTM/views/Éú²ú¹ÜÀí/Éú²úÍ깤µ¥/Sc_Add_MESEndWorkBillList.html
@@ -211,7 +211,7 @@ <div class="layui-inline"> <label class="layui-form-label">ç产订å:</label> <div class="layui-input-inline"> <input class="layui-input" name="HICMOBillNo " lay-verify="HICMOBillNo " id="HICMOBillNo " autocomplete="off"> <input class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" autocomplete="off"> <input id="HICMOInterID" name="HICMOInterID" type="hidden" /> <input id="HICMOEntryID" name="HICMOEntryID" type="hidden" /> </div> @@ -444,7 +444,7 @@ success: function (data) { if (data.count == 1)// 说æéªè¯æåäºï¼ { var LoadData = data.data.h_p_JIT_GetSourceInfoByUser; var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; $("#HProcID").val(LoadData[0].HProcID); //å½åå·¥åºID $("#HProcName").val(LoadData[0].HProcName); //å½åå·¥åº $("#HMaterID").val(LoadData[0].HMaterID); //产åID @@ -453,8 +453,8 @@ $("#HMaterSpec").val(LoadData[0].HModel); //产åè§æ ¼ $("#HSourceID").val(LoadData[0].HSourceID); //çäº§èµæºID $("#HSourceName").val(LoadData[0].HSourceName); //çäº§èµæº $("#HMainSourceBillNo").val(LoadData[0].HSourceBillNo); //æºååå· $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç (åå¼HInterID) $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå ç (æºåè¡å·) $("#HMainSourceBillType").val(HSourceBillType); //æºåç±»å $("#HDeptID").val(LoadData[0].HDeptID); //车é´ID WebTM/views/Éú²ú¹ÜÀí/Éú²ú¿ª¹¤µ¥/Sc_Add_MESBeginWorkBillList.html
@@ -86,7 +86,7 @@ <div class="layui-card-header"> <div class="layui-btn-group"> <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> </div> @@ -182,7 +182,7 @@ <label class="layui-form-label">æºåç±»å</label> <div class="layui-input-inline"> <select name="SourceType" lay-filter="SourceType" id="SourceType"> <option value="0" selected="selected">ç产任å¡å</option> <option value="2" selected="selected">ç产任å¡å</option> <option value="1">æå·¥å½å ¥</option> </select> </div> @@ -229,7 +229,7 @@ <div class="layui-inline"> <label class="layui-form-label">ç产订å:</label> <div class="layui-input-inline"> <input class="layui-input" name="HICMOBillNo " lay-verify="HICMOBillNo " id="HICMOBillNo " autocomplete="off"> <input class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" autocomplete="off"> <input id="HICMOInterID" name="HICMOInterID" type="hidden" /> <input id="HICMOEntryID" name="HICMOEntryID" type="hidden" /> </div> @@ -458,7 +458,7 @@ success: function (data) { if (data.count == 1)// 说æéªè¯æåäºï¼ { var LoadData = data.data.h_p_JIT_GetSourceInfoByUser; var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; $("#HProcID").val(LoadData[0].HProcID); //å½åå·¥åºID $("#HProcName").val(LoadData[0].HProcName); //å½åå·¥åº $("#HMaterID").val(LoadData[0].HMaterID); //产åID @@ -467,8 +467,8 @@ $("#HMaterSpec").val(LoadData[0].HModel); //产åè§æ ¼ $("#HSourceID").val(LoadData[0].HSourceID); //çäº§èµæºID $("#HSourceName").val(LoadData[0].HSourceName); //çäº§èµæº $("#HMainSourceBillNo").val(LoadData[0].HSourceBillNo); //æºååå· $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç (åå¼HInterID) $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå ç (æºåè¡å·) $("#HMainSourceBillType").val(HSourceBillType); //æºåç±»å $("#HDeptID").val(LoadData[0].HDeptID); //车é´ID @@ -491,6 +491,7 @@ //ä¿åæäº¤ form.on('submit(Saver)', function (data) { alert("aa"); var sMainStr = JSON.stringify(data.field); if (!AllowLoadData())//æ°æ®éªè¯ { @@ -498,7 +499,7 @@ } $.ajax({ type: "POST", url: GetWEBURL() + "/Sc_ICMOReportBill/SaveGetICMOReportBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å url: GetWEBURL() + "/Sc_MESBeginWorkBill/SaveGetMESBeginWorkFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å async: true, data: { "msg": sMainStr }, dataType: "json",