| | |
| | | |
| | | 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({ |