WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/质量管理/工作联系单/OA_Add_Edit_WorkLinkBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/质量管理/工作联系单/OA_Reply_WorkLinkBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebTM/views/采购管理/采购订单/Cg_POOrderBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebTM/views/Éú²ú¹ÜÀí/Éú²úÈÎÎñµ¥/Sc_ICMOBillList.html
@@ -268,6 +268,7 @@ <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-PushProductInBill" id="btn-PushProductInBill"><i class="layui-icon layui-icon-delete"></i>䏿¨(çäº§å ¥åºå)</button> <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-PushQualityReportBill" id="btn-PushQualityReportBill"><i class="layui-icon layui-icon-delete"></i>䏿¨(çäº§è´¨éæ±æ¥å)</button> <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-PushProductionReturnBill" id="btn-PushProductionReturnBill"><i class="layui-icon layui-icon-delete"></i>䏿¨(ç产éåºå)</button> <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-PushWorkLinkBill" id="btn-PushWorkLinkBill"><i class="layui-icon layui-icon-delete"></i>èç³»å</button> <!--<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AddNew" id="AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_Edit" id="Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_copy" id="copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> @@ -413,6 +414,9 @@ break; //䏿¨(ç产订ååæ´å) case 'btn-PushICMOChangeBill': set_PushICMOChangeBill(); break; //èç³»å case 'btn-PushWorkLinkBill': set_PushWorkLinkBill(); break; //䏿¨(çäº§å ¥åºå) case 'btn-PushProductInBill': set_PushProductInBill(); @@ -1246,6 +1250,7 @@ //#endregion //#region 䏿¨ï¼çäº§å ¥åºåï¼ function set_PushProductInBill() { var checkStatus = table.checkStatus('mainTable') @@ -1368,7 +1373,7 @@ return; } if (data[i].è¡ç¶æ != "" ) { if (data[i].è¡ç¶æ != "") { var err = "䏿¨å¤±è´¥!åæ®ã" + data[i].åæ®å· + "ãçç¶æä¸ºâ" + data[0].è¡ç¶æ + "â,ä¸å è®¸ä¸æ¨ï¼"; layer.alert(err, { icon: 5 }); return; @@ -1399,6 +1404,73 @@ } //#endregion //#region èç³»å function set_PushWorkLinkBill() { var checkStatus = table.checkStatus('mainTable') , data = checkStatus.data; if (checkStatus.data.length === 1) { var temp = { "HRelationInterID":data[0].hmainid, "HRelationEntryID":data[0].hsubid, "HRelationBillNo":data[0].åæ®å·, "HRelationBillType":"3710" } var HRelationInterID = data[0].hmainid; var HRelationEntryID = data[0].hsubid; $.ajax({ url: GetWEBURL() + '/Sc_MESTransFerWorkBill/GetOA_WorkLinkBillListBySourceID', type: "GET", data: { "HRelationInterID": HRelationInterID.toString(), "HRelationEntryID": HRelationEntryID.toString() }, success: function (result) { if (result.count == 1) { var HInterID = result.data[0].HInterID; var HEntryID = result.data[0].HEntryID; var url = encodeURI('../../è´¨é管ç/å·¥ä½èç³»å/OA_Reply_WorkLinkBill.html?OperationType=2&linterid=' + HInterID + '&HEntryID=' + HEntryID + '&HSouceBillType=3710&res=' + JSON.stringify(temp)); layer.open({ type: 2 , area: ['100%', '100%'] , title: 'ç产订ååå¤å·¥ä½èç³»å' , closeBtn: 1 , shade: 0.6 //é®ç½©éæåº¦ , maxmin: true //å è®¸å ¨å±æå°å , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ , content: url , resize: false, end: function () { get_FastQuery(table, option); } , cancel: function () { //$(".layui-btn").removeClass("layui-btn-disabled"); } }) } else { var url = encodeURI('../../è´¨é管ç/å·¥ä½èç³»å/OA_Add_Edit_WorkLinkBill.html?OperationType=2&linterid=&HEntryID=&HSouceBillType=3710&res=' + JSON.stringify(temp)) layer.open({ type: 2, skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ title: '䏿¨æ°å¢å·¥ä½èç³»å', closeBtn: 1, shift: 2, area: ['100%', '100%'], maxmin: true, content: url, end: function () { //å·æ°é¡µé¢, get_FastQuery(table, option); }, }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); layer.close(wait); } }); } else { layer.msg('è¯·éæ©æ°æ®èç³»ï¼'); } } //#endregion //æ°å¢ function set_AddNew() { layer.open({ WebTM/views/ÖÊÁ¿¹ÜÀí/¹¤×÷ÁªÏµµ¥/OA_Add_Edit_WorkLinkBill.html
@@ -16,6 +16,7 @@ <script src="../../../layuiadmin/Scripts/webConfig.js"></script> <script src="../../../layuiadmin/PubCustom.js"></script> <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> <script src="../../../layuiadmin/PageTitle.js"></script> <style type="text/css"> .layui-form-label { width: 85px; @@ -233,15 +234,15 @@ <div class="layui-inline"> <label class="layui-form-label">å ³èåå·:</label> <div class="layui-input-inline"> <input class="layui-input" name="HRelationBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off"> <input id="HMainSourceInterID" name="HRelationInterID" value="0" type="hidden" /> <input id="HMainSourceEntryID" name="HRelationEntryID" value="0" type="hidden" /> <input class="layui-input" name="HRelationBillNo" lay-verify="HRelationBillNo" id="HRelationBillNo" disabled autocomplete="off"> <input id="HRelationInterID" name="HRelationInterID" value="0" type="hidden" /> <input id="HRelationEntryID" name="HRelationEntryID" value="0" type="hidden" /> </div> </div> <div class="layui-inline"> <label class="layui-form-label">å ³èç±»å:</label> <div class="layui-input-inline"> <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HMainSourceBillType" disabled autocomplete="off"> <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HRelationBillType" disabled autocomplete="off"> </div> </div> <div class="layui-inline"> @@ -378,15 +379,16 @@ set_AddFNew(); } else if (OperationType == 2) { //èååå§å var HRelationInterID = params[params[1]]; var HRelationEntryID = params[params[2]]; var HRelationBillNo = params[params[3]]; var HRelationBillType = params[params[4]]; $("#HRelationInterID").val(HRelationInterID); //èç³»ååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ $("#HRelationEntryID").val(HRelationEntryID); //èç³»å主å ç (åå¼HInterID) $("#HRelationBillNo").val(HRelationBillNo); //èç³»ååå ç (æºåè¡å·) $("#HRelationBillType").val(HRelationBillType); //èç³»åç±»å //æºåæ°å¢ var datajson; var str = window.location.search; //è·å龿¥ä¸ä¼ éçåæ° var arr = str.substring(str.lastIndexOf("=") + 1); datajson = $.parseJSON(decodeURI(arr)); $("#HRelationInterID").val(datajson.HRelationInterID); $("#HRelationEntryID").val(datajson.HRelationEntryID); $("#HRelationBillNo").val(datajson.HRelationBillNo); $("#HRelationBillType").val(datajson.HRelationBillType); set_AddFNew(); } else if (OperationType == 3) {//ç¼è¾ @@ -437,54 +439,6 @@ $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ } //#region ææºåæ°å¢æ ç¨ //function set_AddNew() { // refSav = "Add"; // //åå§åºæ¬ä¿¡æ¯èµå¼ // $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ // $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //å¶åæ¥æ // $("#HMaker").val(sessionStorage["HUserName"]); //å¶å人 // $("#HSendMan").val(sessionStorage["HUserName"]); //åé人 // $("#HDeptID").val(sessionStorage["HDeptID"]); //é¨é¨ID // $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ // $.ajax( // { // type: "GET", // url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å // async: true, // data: { // "HRelationInterID": HRelationInterID, // "HSourceEntryID": HMainSourceEntryID, // "HSourceBillNo": HMainSourceBillNo, // "HSourceBillType": HBillType // }, // dataType: "json", // success: function (data) { // if (data.count == 1)// 说æéªè¯æåäºï¼ // { // var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; // $("#HMaterName").val(LoadData[0].HMaterName); //产ååç§° // $("#HMaterModel").val(LoadData[0].HModel); //产åè§æ ¼ // $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ // $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç (åå¼HInterID) // $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå ç (æºåè¡å·) // $("#HMainSourceBillType").val(LoadData[0].HSourceBillType); //æºåç±»å // $("#HQty").val(LoadData[0].HDatePlanQty); //è®¡åæ°é // Qty = LoadData[0].HDatePlanQty; // } // else { // layer.alert(data.Message, { icon: 5 }); // } // }, // error: function (err) { // layer.alert(err, { icon: 5 }); // } // }); //} //#endregion //ç¼è¾ function set_EditFromGrid() { WebTM/views/ÖÊÁ¿¹ÜÀí/¹¤×÷ÁªÏµµ¥/OA_Reply_WorkLinkBill.html
@@ -15,6 +15,7 @@ <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/PageTitle.js"></script> <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> <style type="text/css"> .layui-form-label { @@ -109,7 +110,7 @@ <div class="layui-input-inline"> <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" disabled autocomplete="off" style="background-color: #f7f4f4; "> <input id="HInterID" name="HInterID" type="hidden" /> <input id="HEntryID" name="HEntryID" type="hidden" /> <input id="HEntryID" name="HEntryID" value="0" type="hidden" /> </div> </div> <div class="layui-inline"> @@ -259,6 +260,14 @@ <label class="layui-form-label">å¬ä¿æ¬¡æ°:</label> <div class="layui-input-inline"> <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off" value="0" disabled> </div> </div> <div class="layui-inline"> <div class="layui-input-inline"> <input class="layui-input" name="HSourceBillNo" lay-verify="HSourceBillNo" id="HSourceBillNo" disabled autocomplete="off" type="hidden"> <input id="HSourceInterID" name="HSourceInterID" value="0" type="hidden" /> <input id="HSourceEntryID" name="HSourceEntryID" value="0" type="hidden" /> <input id="HSourceBillType" name="HSourceBillType" value="0" type="hidden" /> </div> </div> </div> @@ -417,9 +426,19 @@ set_AddFNew(); } else if (OperationType == 2) {//ææºå /*set_AddNew();*/ var datajson; var str = window.location.search; //è·å龿¥ä¸ä¼ éçåæ° var arr = str.substring(str.lastIndexOf("=") + 1); datajson = $.parseJSON(decodeURI(arr)); $("#HSourceInterID").val(datajson.HRelationInterID); $("#HSourceEntryID").val(datajson.HRelationEntryID); $("#HSourceBillNo").val(datajson.HRelationBillNo); $("#HSourceBillType").val(datajson.HRelationBillType); set_EditFromGrid(); get_Display(sWhere); } else if (OperationType == 3) {//ç¼è¾/åå¤ï¼è¿éæ¯åå¤ set_EditFromGrid(); get_Display(sWhere); } @@ -493,55 +512,6 @@ $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ } //#region ææºåæ°å¢ //function set_AddNew() { // refSav = "Add"; // //åå§åºæ¬ä¿¡æ¯èµå¼ // $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ // $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //å¶åæ¥æ // $("#HMaker").val(sessionStorage["HUserName"]); //å¶å人 // $("#HSendMan").val(sessionStorage["HUserName"]); //åé人 // $("#HDeptID").val(sessionStorage["HDeptID"]); //é¨é¨ID // $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ // $.ajax( // { // type: "GET", // url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å // async: true, // data: { // "HSourceInterID": HMainSourceInterID, // "HSourceEntryID": HMainSourceEntryID, // "HSourceBillNo": HMainSourceBillNo, // "HSourceBillType": HBillType // }, // dataType: "json", // success: function (data) { // if (data.count == 1)// 说æéªè¯æåäºï¼ // { // var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; // $("#HMaterName").val(LoadData[0].HMaterName); //产ååç§° // $("#HMaterModel").val(LoadData[0].HModel); //产åè§æ ¼ // $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ // $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å ç (åå¼HInterID) // $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå ç (æºåè¡å·) // $("#HMainSourceBillType").val(LoadData[0].HSourceBillType); //æºåç±»å // $("#HQty").val(LoadData[0].HDatePlanQty); //è®¡åæ°é // Qty = LoadData[0].HDatePlanQty; // } // else { // layer.alert(data.Message, { icon: 5 }); // } // }, // error: function (err) { // layer.alert(err, { icon: 5 }); // } // }); //} //#endregion //ç¼è¾ function set_EditFromGrid() { refSav = "Update"; @@ -558,7 +528,7 @@ var data = result.data[0]; form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å ç´ å±æ§ lay-filter="" 对åºçå¼ "HInterID": data.HInterID , "HEntryID": data.HEntryID /* , "HEntryID": data.HEntryID*/ , "HBillNo": data.HBillNo , "HDate": formatDate(data.HDate) , "HContext": data.HContext @@ -577,6 +547,10 @@ , "HRelationEntryID": data.HRelationEntryID //å ³èååID , "HRelationBillNo": data.HRelationBillNo //å ³èååå· , "HRelationBillType": data.HRelationBillType //å ³èåç±»å //, "HSourceInterID": data.HSourceInterID //æºåID //, "HSourceEntryID": data.HSourceEntryID //æºååID //, "HSourceBillNo": data.HSourceBillNo //æºååå· //, "HSourceBillType": data.HSourceBillType //æºåç±»å , "HMaker": data.HMaker //å¶å人 , "HMakeDate": data.HMakeDate //å¶åæ¥æ , "HUpDater": sessionStorage["HUserName"] //ä¿®æ¹äºº WebTM/views/²É¹º¹ÜÀí/²É¹º¶©µ¥/Cg_POOrderBillList.html
@@ -713,8 +713,12 @@ } else if ($.inArray(data[i].name, totalArray) > -1) { //计ç®å col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); } else if (data[i].name == 'åæ®å·') { col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event:'åæ®å·' }); } else if (data[i].name == 'åæ®å·') {//æ·»å è¶ é¾æ¥ col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { return '<span style="color: blue;">' + d.åæ®å· + '</span>' }, style: 'cursor: pointer;' }); }else { switch (data[i].Type) { //int