Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | <Content Include="views\ç产管ç\ç产æç®±å\Sc_PackSplitBill_Fast.html" /> |
| | | <Content Include="views\ç产管ç\çäº§æ±æ¥å\Sc_ICMOReportBill_FastNew.html" /> |
| | | <Content Include="views\ç产管ç\çäº§æ±æ¥å\Sc_Add_ICMOReportBillList.html" /> |
| | | <Content Include="views\ç产管ç\çäº§ç©ææ¸
å\sc_Gy_ICBomBillMainList.html" /> |
| | | <Content Include="views\ç产管ç\ç产ç»è£
追溯å\Sc_AssemblyBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产éåºå\Sc_ProductionReturnList.html" /> |
| | | <Content Include="views\ç产管ç\ç»è£
å\Sc_GroupOrderBillList.html" /> |
| | |
| | | <dd> |
| | | <a>çäº§ç©ææ¸
å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="">ç©ææ¸
åç»´æ¤n</a></dd> |
| | | <dd><a lay-href="ç产管ç/çäº§ç©ææ¸
å/sc_Gy_ICBomBillMainList.html">ç©ææ¸
åç»´æ¤</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd><a lay-href="计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBillList.html">å·¥èºè·¯çº¿ç»´æ¤</a></dd> |
| | |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_WW_EntrustProcSendWorkBill_Json", |
| | | async: true, |
| | | data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"], |
| | | data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"] },//"HSupNo": sessionStorage["HUserName"], |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | |
| | | type: "get", |
| | | url: GetWEBURL()+"/Sc_ProcessMangement/MES_WW_EntrustProcessReportBill_Json", |
| | | async: true, |
| | | data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"], |
| | | data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"]},//"HSupNo": sessionStorage["HUserName"], |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | |
| | | |
| | | } |
| | | }); |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | } else { |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function (result) { |
| | | console.log(result); |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | var sql = " and HBillType='3740' "; |
| | | function getUrlVars() { |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | |
| | | $('#HDeptID-BT').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#HRemark').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json", |
| | | type: "GET", |
| | | data: { "HInterID": parseInt( HInterID) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HInterID").val(data1.data[0].HInterID);// |
| | | $("#HBillNo").val(data1.data[0].HBillNo);// |
| | | $("#HDate").val(data1.data[0].HDate); |
| | | $("#HDeptName").val(data1.data[0].HName); |
| | | $("#HDeptNumber").val(data1.data[0].HNumber); |
| | | $("#HICMOBillNo").val(data1.data[0].HICMOBillNo); |
| | | $("#HRemark").val(data1.data[0].HRemark); |
| | | $("#HPlanQty").val(data1.data[0].HPlanQty); |
| | | $("#HMaker").val(data1.data[0].HMaker); |
| | | $("#HMakeDate").val(data1.data[0].HMakeDate); |
| | | $("#HChecker").val(data1.data[0].HChecker); |
| | | $("#HCheckDate").val(data1.data[0].HCheckDate); |
| | | $("#HUpDater").val(data1.data[0].HUpDater); |
| | | $("#HUpDateDate").val(data1.data[0].HUpDateDate); |
| | | $("#HCloseMan").val(data1.data[0].HCloseMan); |
| | | $("#HCloseDate").val(data1.data[0].HCloseDate); |
| | | } else { |
| | | layer.msg(data1.Message); |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json", |
| | | type: "GET", |
| | | data: { "HInterID": parseInt(HInterID) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HInterID").val(data1.data[0].HInterID);// |
| | | $("#HBillNo").val(data1.data[0].HBillNo);// |
| | | $("#HDate").val(data1.data[0].HDate); |
| | | $("#HDeptName").val(data1.data[0].HName); |
| | | $("#HDeptNumber").val(data1.data[0].HNumber); |
| | | $("#HICMOBillNo").val(data1.data[0].HICMOBillNo); |
| | | $("#HRemark").val(data1.data[0].HRemark); |
| | | $("#HPlanQty").val(data1.data[0].HPlanQty); |
| | | $("#HMaker").val(data1.data[0].HMaker); |
| | | $("#HMakeDate").val(data1.data[0].HMakeDate); |
| | | $("#HChecker").val(data1.data[0].HChecker); |
| | | $("#HCheckDate").val(data1.data[0].HCheckDate); |
| | | $("#HUpDater").val(data1.data[0].HUpDater); |
| | | $("#HUpDateDate").val(data1.data[0].HUpDateDate); |
| | | $("#HCloseMan").val(data1.data[0].HCloseMan); |
| | | $("#HCloseDate").val(data1.data[0].HCloseDate); |
| | | } else { |
| | | layer.msg(data1.Message); |
| | | } |
| | | |
| | | }, error: function () { |
| | | layer.alert("è·åæ°æ®å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | layer.alert("è·åæ°æ®å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3741' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo);// |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HDate").val(shijian); |
| | | $('#HPlanBeginDate').val(shijian); |
| | | //HPlanEndDate |
| | | $('#HPlanEndDate').val(shijian); |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3741' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo);// |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HDate").val(shijian); |
| | | $('#HPlanBeginDate').val(shijian); |
| | | //HPlanEndDate |
| | | $('#HPlanEndDate').val(shijian); |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | |
| | | $("#HMaker").val(sessionStorage["HUserName"]);//å¶å人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]);//å¶å人 |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); |
| | | CurUserName = sessionStorage["HUserName"]; |
| | | |
| | | |
| | | //æ§è¡ä¸ä¸ªlaydateå®ä¾ |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | |
| | | |
| | | //å 载计åå䏿¨çæ°æ® |
| | | if (typeof (lentryid) == "undefined") { |
| | | |
| | | RoadHBillSub2(); |
| | | RoadHBillSub2(); |
| | | } else { |
| | | |
| | | RoadHBillSub(sql); |
| | | RoadHBillSub(sql); |
| | | } |
| | | table.render({ |
| | | elem: '#mainTable' |
| | |
| | | , limit: 1000 |
| | | , totalRow: true |
| | | , cols: [[ |
| | | { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'æ°é', title: 'æ°é', edit: 'text', event: "inputHPlanQty"} |
| | | , { field: 'æ°é', title: 'æ°é', edit: 'text', event: "inputHPlanQty" } |
| | | , { field: 'HDeptID ', title: 'HDeptID', width: 105 } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ' } |
| | | , { field: 'é¨é¨', title: 'é¨é¨' } |
| | |
| | | } |
| | | }); |
| | | }; |
| | | //å è½½æ¾ç¤ºæ°æ® |
| | | //å è½½æ¾ç¤ºæ°æ® |
| | | function RoadHBillSub2() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_h_v_Sc_ProcessSendWorkList_Json', |
| | |
| | | }); |
| | | }; |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() +"SaveWW_EntrustProcessSendOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: {"msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveWW_EntrustProcessSendOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("å§å¤æ´¾å·¥å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | f_alert(data.Message); |
| | | console.log("å§å¤æ´¾å·¥å䏿¨ä¿å" + sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("å§å¤æ´¾å·¥å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | console.log("å§å¤æ´¾å·¥å䏿¨ä¿å" + sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | form.on('submit(Exit)', function (data) {//éåº |
| | |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | //å
³é |
| | | form.on('submit(Closeing)', function (data) {// |
| | | //debugger; |
| | | form.on('submit(Closeing)', function (data) {// |
| | | //debugger; |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 0 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | //åå
³é |
| | | form.on("submit(BackClose)", function (data) { |
| | | layer.alert("ææ¯åå
³éæé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 1 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å®¡æ ¸Auditing |
| | | form.on("submit(Auditing)", function (data) { |
| | | layer.alert("ææ¯å®¡æ ¸æé®ï¼"); |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 0 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //åå®¡æ ¸BackAudit |
| | | //åå®¡æ ¸BackAudit |
| | | form.on("submit(BackAudit)", function (data) { |
| | | layer.alert("ææ¯åå®¡æ ¸æé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 1 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //æå°Printing |
| | | form.on("submit(Printing)", function (data) { |
| | | layer.alert("ææ¯æå°æé®ï¼åæ®ä¸»IDæ¯ï¼" + HInterID); |
| | | window.open("../å·¥åºæ±æ¥å/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport"+"&OpenTmp=a"); |
| | | window.open("../å·¥åºæ±æ¥å/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport" + "&OpenTmp=a"); |
| | | |
| | | }); |
| | | |
| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>å§å¤å·¥åºæ´¾å·¥åå表</title> |
| | | <title>å§å¤å·¥åºè®¡å转åºåå表</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | |
| | | type: "get", |
| | | url: GetWEBURL()+"/Sc_ProcessMangement/MES_WW_EntrustProcessSendOutBillList_Json", |
| | | async: true, |
| | | data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"], |
| | | data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"] },//"HSupNo": sessionStorage["HUserName"], |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | |
| | | |
| | | } |
| | | }); |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | } else { |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function (result) { |
| | | layer.close(index0); |
| | | //layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ°å¢æ´¾å·¥å</title> |
| | | <title>å·¥åºæ±æ¥åæ°å¢æ´¾å·¥å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | |
| | | function getUrlVars() { |
| | | |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | |
| | | } |
| | | var params = getUrlVars(); |
| | | var HInterID = params[params[0]]; |
| | | if (HInterID == null) { |
| | | HInterID = 0; |
| | | console.log(HInterID) |
| | | } |
| | | var lentryid = params[params[1]]; |
| | | var PlanBeginDate = params[params[2]]; |
| | | var PlanEndDate = params[params[3]]; |
| | | alert("çç" + HInterID + "lentryid" + lentryid); |
| | | //alert("çç" + HInterID + "lentryid" + lentryid); |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "-" + month + "-" + day; |
| | | var CurUserName; |
| | | if (typeof (lentryid) == "undefined") { |
| | | if (typeof (lentryid) != "undefined") { |
| | | $('#HDeptID-BT').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#HRemark').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json", |
| | | type: "GET", |
| | | data: { "HInterID": parseInt( HInterID) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HInterID").val(data1.data[0].HInterID);// |
| | | $("#HBillNo").val(data1.data[0].HBillNo);// |
| | | $("#HDate").val(data1.data[0].HDate); |
| | | $("#HDeptName").val(data1.data[0].HName); |
| | | $("#HDeptNumber").val(data1.data[0].HNumber); |
| | | $("#HICMOBillNo").val(data1.data[0].HICMOBillNo); |
| | | $("#HRemark").val(data1.data[0].HRemark); |
| | | $("#HPlanQty").val(data1.data[0].HPlanQty); |
| | | $("#HMaker").val(data1.data[0].HMaker); |
| | | $("#HMakeDate").val(data1.data[0].HMakeDate); |
| | | $("#HChecker").val(data1.data[0].HChecker); |
| | | $("#HCheckDate").val(data1.data[0].HCheckDate); |
| | | $("#HUpDater").val(data1.data[0].HUpDater); |
| | | $("#HUpDateDate").val(data1.data[0].HUpDateDate); |
| | | $("#HCloseMan").val(data1.data[0].HCloseMan); |
| | | $("#HCloseDate").val(data1.data[0].HCloseDate); |
| | | } else { |
| | | layer.msg(data1.Message); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json", |
| | | type: "GET", |
| | | data: { "HInterID": parseInt(HInterID) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HInterID").val(data1.data[0].HInterID);// |
| | | $("#HBillNo").val(data1.data[0].HBillNo);// |
| | | $("#HDate").val(data1.data[0].HDate); |
| | | $("#HDeptName").val(data1.data[0].HName); |
| | | $("#HDeptNumber").val(data1.data[0].HNumber); |
| | | $("#HICMOBillNo").val(data1.data[0].HICMOBillNo); |
| | | $("#HRemark").val(data1.data[0].HRemark); |
| | | $("#HPlanQty").val(data1.data[0].HPlanQty); |
| | | $("#HMaker").val(data1.data[0].HMaker); |
| | | $("#HMakeDate").val(data1.data[0].HMakeDate); |
| | | $("#HChecker").val(data1.data[0].HChecker); |
| | | $("#HCheckDate").val(data1.data[0].HCheckDate); |
| | | $("#HUpDater").val(data1.data[0].HUpDater); |
| | | $("#HUpDateDate").val(data1.data[0].HUpDateDate); |
| | | $("#HCloseMan").val(data1.data[0].HCloseMan); |
| | | $("#HCloseDate").val(data1.data[0].HCloseDate); |
| | | } else { |
| | | layer.msg(data1.Message); |
| | | } |
| | | |
| | | }, error: function () { |
| | | layer.alert("è·åæ°æ®å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | |
| | | }, error: function () { |
| | | layer.alert("è·åæ°æ®å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | } else { |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/api/newBill/getNewInterBillNo", |
| | | type: "GET", |
| | | data: { "billType": '3714' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data.HBillNo);// |
| | | $("#HDate").val(shijian); |
| | | $('#HPlanBeginDate').val(shijian); |
| | | //HPlanEndDate |
| | | $('#HPlanEndDate').val(shijian); |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/api/newBill/getNewInterBillNo", |
| | | type: "GET", |
| | | data: { "billType": '3714' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data.HBillNo);// |
| | | $("#HDate").val(shijian); |
| | | $('#HPlanBeginDate').val(shijian); |
| | | //HPlanEndDate |
| | | $('#HPlanEndDate').val(shijian); |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | |
| | | $("#HMaker").val(sessionStorage["HUserName"]);//å¶å人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]);//å¶å人 |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); |
| | | CurUserName = sessionStorage["HUserName"]; |
| | | |
| | | |
| | | |
| | | //æ§è¡ä¸ä¸ªlaydateå®ä¾ |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | |
| | | |
| | | //å 载计åå䏿¨çæ°æ® |
| | | if (typeof (lentryid) == "undefined") { |
| | | |
| | | RoadHBillSub2(); |
| | | |
| | | RoadHBillSub2(); |
| | | } else { |
| | | |
| | | RoadHBillSub(); |
| | | |
| | | RoadHBillSub(); |
| | | } |
| | | table.render({ |
| | | elem: '#mainTable' |
| | |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·' } |
| | | ,{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | ,{ field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100, edit: 'text', event: "inputHPlanQty", totalRow: true } |
| | | , { field: 'HDeptID ', title: 'HDeptID', width: 105 } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": "and hmainid in(" + lentryid + ")" }, |
| | | data: { "sWhere": "and hmainid in(" + lentryid + ")", "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | console.log(result); |
| | | //$("#HBillNo").val(result.data[0].HInterID); |
| | |
| | | } |
| | | }); |
| | | }; |
| | | //å è½½æ¾ç¤ºæ°æ® |
| | | //å è½½æ¾ç¤ºæ°æ® |
| | | function RoadHBillSub2() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_h_v_Sc_ProcessSendWorkList_Json', |
| | |
| | | }); |
| | | }; |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL()+"SaveProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: {"msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("派工å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("派工å䏿¨ä¿å" + sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("派工å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | console.log("派工å䏿¨ä¿å" + sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | form.on('submit(Exit)', function (data) {//éåº |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | //å
³é |
| | | form.on('submit(Closeing)', function (data) {// |
| | | //debugger; |
| | | form.on('submit(Closeing)', function (data) {// |
| | | //debugger; |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 0 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | //åå
³é |
| | | form.on("submit(BackClose)", function (data) { |
| | | layer.alert("ææ¯åå
³éæé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 1 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å®¡æ ¸Auditing |
| | | form.on("submit(Auditing)", function (data) { |
| | | layer.alert("ææ¯å®¡æ ¸æé®ï¼"); |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 0 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //åå®¡æ ¸BackAudit |
| | | //åå®¡æ ¸BackAudit |
| | | form.on("submit(BackAudit)", function (data) { |
| | | layer.alert("ææ¯åå®¡æ ¸æé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 1 |
| | | ,"CurUserName":CurUserName |
| | | , "CurUserName": CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //æå°Printing |
| | | form.on("submit(Printing)", function (data) { |
| | | layer.alert("ææ¯æå°æé®ï¼åæ®ä¸»IDæ¯ï¼" + HInterID); |
| | | window.open("../å·¥åºæ±æ¥å/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport"+"&OpenTmp=a"); |
| | | window.open("../å·¥åºæ±æ¥å/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport" + "&OpenTmp=a"); |
| | | |
| | | }); |
| | | |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessReportList_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ°å¢æ´¾å·¥å</title> |
| | | <title>æ°å¢æ´¾å·¥å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">ä»»å¡åå·ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HManagerName" id="HManagerName" autocomplete="off" disabled> |
| | | <input class="layui-input" name="HManagerName" id="HManagerName" autocomplete="off" disabled> |
| | | <input id="HManagerID" name="HManagerID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">车é´ä»£ç ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptNumber" id="HDeptNumber" lay-verify="HDeptNumber" readonly="readonly" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HDeptNumber" id="HDeptNumber" lay-verify="HDeptNumber" readonly="readonly" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | |
| | | |
| | | <div class="layui-col-xs6"> |
| | | <label class="layui-form-label"> å¤ æ³¨ï¼</label> |
| | | <div class="layui-input-block"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å¶ å 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaker" id="HMaker" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">审 æ ¸ 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HChecker" id="HChecker" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å æ´ 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HUpDater" id="HUpDater" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å¶ å 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaker" id="HMaker" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å¶åæ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMakeDate" id="HMakeDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCheckDate" id="HCheckDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">åæ´æ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HUpDateDate" id="HUpDateDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">审 æ ¸ 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HChecker" id="HChecker" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å æ´ 人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HUpDater" id="HUpDater" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å¶åæ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMakeDate" id="HMakeDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCheckDate" id="HCheckDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label">åæ´æ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HUpDateDate" id="HUpDateDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | |
| | | <blockquote class="layui-elem-quote">å·¥åºè®¡åå</blockquote> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | function getUrlVars() { |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | |
| | | var lentryid = params[params[1]]; |
| | | var PlanBeginDate = params[params[2]]; |
| | | var PlanEndDate = params[params[3]]; |
| | | alert(HInterID + '第äºä¸ªï¼' + lentryid); |
| | | //alert(HInterID + '第äºä¸ªï¼' + lentryid); |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | |
| | | |
| | | |
| | | //æ§è¡ä¸ä¸ªlaydateå®ä¾ |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | |
| | | |
| | | //å 载计åå䏿¨çæ°æ® |
| | |
| | | } |
| | | |
| | | }); |
| | | ///å è½½æ¾ç¤ºæ°æ® |
| | | ///ç¼è¾ å è½½æ¾ç¤ºæ°æ® |
| | | function RoadHBillSub() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": "and hmainid in(" + lentryid + ")" }, |
| | | data: { "sWhere": "and hmainid in('" + lentryid + "')", "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | console.log(result); |
| | | //$("#HBillNo").val(result.data[0].HInterID); |
| | |
| | | } |
| | | }); |
| | | }; |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL()+"SaveProcessSendWork", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: {"msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("bobo"+sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveProcessSendWork", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("bobo" + sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("bobo"+sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | console.log("bobo" + sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <title>çäº§å·¥åºæ±æ¥åå表</title> |
| | | <title>çäº§å·¥åºæ´¾å·¥åå表</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | |
| | | <div class="layui-btn-container"> |
| | | <!--<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" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Pushdown"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | |
| | | </div> |
| | |
| | | |
| | | } |
| | | break; |
| | | case 'add': |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "/" + month + "/" + day; |
| | | layer.msg(shijian); |
| | | //æ·»å |
| | | case 'btn-Add': |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å·¥åºè®¡åå', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '../../ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_Add_ProcessReportList.html?HInterID=-1&OperationType=1&linterid=0&HSouceBillType=0&linteridSub=-1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | break; |
| | | case '': |
| | | layer.msg(''); |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num); |
| | | var hentryid = linteridSub;//å表 æåºid |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + hentryid + ';' + OperationType; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + hentryid + ';' + OperationType + ";" + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | |
| | | //console.log(JSON.stringify(table.cache['mainTable'][0])) |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function () { |
| | | |
| | | var ModRightNameDelete = "";//å 餿é |
| | | var ModRightNameDelete = "Sc_ProcessPlan_Drop";//å 餿é |
| | | var HInterID = checkstatus.data[0].hmainid; |
| | | |
| | | $.ajax({ |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESStopStepWorkBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESStopStepWorkBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESBeginStepWorkBill/GetMESBeginStepWorkBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESBeginStepWorkBill/GetMESBeginStepWorkBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sSubStr1 = JSON.stringify(table.cache['mainTable1']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"]; |
| | | |
| | | if (!AllowLoadData(sSubStr, sSubStr1))//æ°æ®éªè¯ |
| | | { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MaterToSourceStepBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere,"user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>çäº§ç©ææ¸
åå表</title> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--<script src="../../../layuiadmin/layui/layui.js"></script>--> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | |
| | | |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HBeginDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HEndDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" 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> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-colla-content"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">é¨é¨</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HDeptID" id="HDeptID" style="width:190px;"> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="MaterialCode" id="MaterialCode" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <!--<hr />--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="MaterialName" id="MaterialName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è§æ ¼åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="SpecificationModel" id="SpecificationModel" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºååå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä»åº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="Warehouse" id="Warehouse" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="Hmaker" id="Hmaker" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></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="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-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-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> |
| | | </div> |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | |
| | | //#endregion |
| | | |
| | | //#region åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | //æ¸
ç©ºè¿æ»¤æ¡ä»¶ |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | // æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | // åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | //åå§åæ¥æ |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 200, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 160 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 160 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'hmaterid', title: 'hmaterid', width: 200, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 115 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115 } |
| | | , { field: 'hunitid', title: 'hunitid', width: 200, hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 115 } |
| | | , { field: 'ç¨é', title: 'ç¨é', width: 200 } |
| | | , { field: 'åç¨é', title: 'åç¨é', width: 200 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 125 } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', width: 125 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 125 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 125 } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 125 } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 125 } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 125 } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ICBomBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HDate1 = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | //var HDeptID = $("#HDeptID").val();//é¨é¨ |
| | | var MaterialCode = $("#MaterialCode").val();//ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val();//ç©æåç§° |
| | | var SpecificationModel = $("#SpecificationModel").val();//è§æ ¼åå· |
| | | var HSourceBillNo = $("#HSourceBillNo").val();//æºååå· |
| | | var Warehouse = $("#Warehouse").val();//ä»åº |
| | | var Hmaker = $("#Hmaker").val();//å¶å人 |
| | | |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | |
| | | //if (HDeptID) { |
| | | // sWhere += " and é¨é¨ like '%" + HDeptID + "%'"; |
| | | //} |
| | | if (MaterialCode) { |
| | | sWhere += " and ç©æä»£ç like '%" + MaterialCode + "%'"; |
| | | } |
| | | if (MaterialName) { |
| | | sWhere += " and ç©æåç§° like '%" + MaterialName + "%'"; |
| | | } |
| | | if (SpecificationModel) { |
| | | sWhere += " and è§æ ¼åå· like '%" + SpecificationModel + "%'"; |
| | | } |
| | | if (HSourceBillNo) { |
| | | sWhere += " and æºååå· like '%" + HSourceBillNo + "%'"; |
| | | } |
| | | if (Warehouse) { |
| | | sWhere += " and ä»åº like '%" + Warehouse + "%'"; |
| | | } |
| | | if (Hmaker) { |
| | | sWhere += " and å¶å人 like '%" + Hmaker + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | |
| | | // éç½®è¿æ»¤æ¡ä»¶ |
| | | function set_ClearQuery() { |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBillNo").val("");//åæ®å· |
| | | //$("#HDeptID").val("");//é¨é¨ |
| | | $("#MaterialCode").val("");//ç©æä»£ç |
| | | $("#MaterialName").val("");//ç©æåç§° |
| | | $("#SpecificationModel").val("");//è§æ ¼åå· |
| | | $("#HSourceBillNo").val("");//æºååå· |
| | | $("#Warehouse").val("");//ä»åº |
| | | $("#Hmaker").val("");//å¶å人 |
| | | |
| | | sWhere = ""; |
| | | } |
| | | |
| | | // å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | 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() + "/Kf_ICStockBillMain/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | 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 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() + "/Kf_ICStockBillMain/AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 2, "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_PrintReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | |
| | | if (checkStatus.data.length === 1) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=ICStockBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | } |
| | | |
| | | |
| | | //#endregion |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/GroupOrderBill/List', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //var tableData = data.field; |
| | | var oMain = data.field; |
| | | var oMain = data.field + ";" + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationEntrustInBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 0) { |
| | | option.data = []; |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } else { |
| | | option.data = data1.data; |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationEntrustOutBill/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 0) { |
| | | option.data = []; |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } else { |
| | | option.data = data1.data; |
| | | } |
| | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | var tableData = data.field; |
| | | var oMain = data.field; |
| | | var oMain = data.field + ";" + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationOutBill/get_Display', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 0) { |
| | | option.data = []; |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } else { |
| | | option.data = data1.data; |
| | | } |
| | |
| | | data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeBillQuery_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | layer.msg("æµæ°´å·æ²¡æéæ©ï¼è¯·è¾å
¥æµæ°´å·åå车ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | var oMain = data.field; |
| | | var oMain = data.field + ";" + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationInBill/get_Display', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 0) { |
| | | option.data = []; |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } else { |
| | | option.data = result.data; |
| | | } |