From 2ace77c833ab4e37b76c644fbdf0f7ce366979cf Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期一, 11 三月 2024 10:58:42 +0800 Subject: [PATCH] 计划平台优化完善 报工平台 报检申请 生产汇报 功能优化完善 --- WebTM/views/生产管理/生产汇报单/Sc_Add_ICMOReportBillList.html | 13 +++--- WebTM/views/生产管理/生产计划平台/JIT_DayPlanPlatForm.html | 32 +++++++++------- WebTM/views/生产管理/产量汇报单/Sc_Add_ProductReportBillList.html | 20 +++++----- WebTM/views/生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList_Web.html | 4 +- WebTM/views/生产管理/生产计划平台/Sc_ShopCalendar.html | 2 WebTM/views/生产管理/生产开工单/Sc_Add_MESBeginWorkBillList.html | 17 ++++---- 6 files changed, 47 insertions(+), 41 deletions(-) diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html" index d20f59a..822c570 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html" @@ -891,17 +891,17 @@ success: function (data) { if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 $("#HInterID").val(data.HInterID);//鑾峰彇鎻愪氦鎴愬姛杩斿洖鐨勫崟鎹富ID - layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function () { - + layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function (index) { + if (data.Verify == "Y") //鑷姩瀹℃牳 + { + layer.close(index); + SaveVerify(); //瀹℃牳 + } + else { + layer.close(index); + } }); - if (data.Verify == "Y") //鑷姩瀹℃牳 - { - layer.close(index); - SaveVerify(); //瀹℃牳 - } - else { - layer.close(index); - } + //layer.confirm(data.Message, { // btn: ['纭'] //}, function (index) { diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\344\272\247\351\207\217\346\261\207\346\212\245/Sc_ProductReportStepBillList_Web.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\344\272\247\351\207\217\346\261\207\346\212\245/Sc_ProductReportStepBillList_Web.html" index 154313c..2fd01f3 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\344\272\247\351\207\217\346\261\207\346\212\245/Sc_ProductReportStepBillList_Web.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\344\272\247\351\207\217\346\261\207\346\212\245/Sc_ProductReportStepBillList_Web.html" @@ -585,8 +585,8 @@ if (checkStatus.data.length === 1) { console.log(data[0]); var HInterID = data[0].HInterID; - var HICMOInID = data[0].HSourceInterID; - var HICMOEnID = data[0].HSourceEntryID; + var HICMOInID = data[0].HICMOInterID; + var HICMOEnID = data[0].HICMOEntryID; var HRelationInterID = data[0].HRelationInterID; if (HRelationInterID == 1) { layer.msg('鍗曟嵁宸叉姤妫�瀹℃牳鏃犳硶淇敼锛�'); diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\274\200\345\267\245\345\215\225/Sc_Add_MESBeginWorkBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\274\200\345\267\245\345\215\225/Sc_Add_MESBeginWorkBillList.html" index 44c714c..250faf5 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\274\200\345\267\245\345\215\225/Sc_Add_MESBeginWorkBillList.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\274\200\345\267\245\345\215\225/Sc_Add_MESBeginWorkBillList.html" @@ -645,15 +645,16 @@ layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function (index) { //layer.close(layer.index); //window.parent.location.reload(); + if (data.Verify == "Y") //鑷姩瀹℃牳 + { + layer.close(index); + SaveVerify(); //瀹℃牳 + } + else { + layer.close(index); + } }); - if (data.Verify == "Y") //鑷姩瀹℃牳 - { - layer.close(index); - SaveVerify(); //瀹℃牳 - } - else { - layer.close(index); - } + //layer.confirm(data.Message, { // btn: ['纭'] //}, function (index) { diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" index defe5bd..310f872 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" @@ -453,7 +453,7 @@ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", - "HSourceBillType": 0 + "HSourceBillType": 0,"HICMOTempID":0 }]; table.render(option); //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟 @@ -484,7 +484,7 @@ table.cache["mainTable"].push({ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", - "HSourceBillType": 0 + "HSourceBillType": 0, "HICMOTempID": 0 }); option.data = table.cache["mainTable"]; table.render(option); @@ -903,6 +903,7 @@ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', edit: 'text', width: 100, hide: true } , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', edit: 'text', width: 100, hide: true } , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', edit: 'text', width: 100, hide: true } + , { field: 'HICMOTempID', title: 'HICMOTempID', edit: 'text', width: 100, hide: true } , { field: 'HRemark', title: '琛ㄤ綋澶囨敞', edit: 'text', width: 100 } , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 } @@ -997,7 +998,7 @@ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", - "HSourceBillType": 0 + "HSourceBillType": 0,"HICMOTempID":0 }]; table.render(option); } @@ -1030,7 +1031,7 @@ "HSourceName": data[i].鐢熶骇璧勬簮鍚嶇О, "HWorkerid": data[i].鎿嶄綔鍛業D, "HWorkerCode": data[i].鎿嶄綔鍛樹唬鐮�, "HWorkerName": data[i].鎿嶄綔鍛樺悕绉�, "HQty": data[i].浜ч噺, "HBadQty": data[i].涓嶈壇鏁伴噺 == '' ? 0 : data[i].涓嶈壇鏁伴噺, "HICMOBillNo": data[i].鐢熶骇璁㈠崟鍙�, "HICMOInterID": data[i].HICMOInterID, "HICMOEntryID": data[i].HICMOEntryID, "HRemark": "", "HSourceInterID": data[i].HICMOInterID, "HSourceEntryID": data[i].HICMOEntryID, "HSourceBillNo": data[i].鐢熶骇璁㈠崟鍙�, - "HSourceBillType": 3710 + "HSourceBillType": 3710, "HICMOTempID": data[i].HICMOTempID }); } @@ -1062,7 +1063,7 @@ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", - "HSourceBillType": 0 + "HSourceBillType": 0, "HICMOTempID": 0 }]; table.render(option); } @@ -1078,7 +1079,7 @@ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", - "HSourceBillType": 0 + "HSourceBillType": 0, "HICMOTempID": 0 }]; table.render(option); } diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html" index 9aff68b..215c28c 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html" @@ -749,6 +749,7 @@ columns.push({ field: '鐢熶骇璁㈠崟鍙�', title: '鐢熶骇璁㈠崟鍙�', width: 150, style: 'background-color: #f9f9f9;', sort: true }); columns.push({ field: '鐢熶骇璁㈠崟鏄庣粏琛屽彿', title: '鐢熶骇璁㈠崟鏄庣粏琛屽彿', width: 150, sort: true }); columns.push({ field: '鐢熶骇缁勭粐', title: '鐢熶骇缁勭粐', width: 150, sort: true }); + columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true }); columns.push({ field: '鐗╂枡浠g爜', title: '鐗╂枡缂栫爜', width: 150, sort: true }); columns.push({ field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 150, sort: true }); columns.push({ field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 150, sort: true }); @@ -916,7 +917,7 @@ columns.push({ field: 'HGroupName', title: 'HGroupName', width: 150, hide:true }); columns.push({ field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜', width: 150, hide: true }); columns.push({ field: 'HSourceID', title: 'HSourceID', hide: true }); - columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true }); + columns.push({ field: 'HWorkShopID', title: 'HWorkShopID', hide: true }); columns.push({ field: 'HUnitID', title: 'HUnitID', hide: true }); columns.push({ field: 'HProdORGID', title: 'HProdORGID', hide: true }); @@ -1572,20 +1573,23 @@ data: { "sWhere": sWhere }, success: function (data) { if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - var HInterID = data.data[0]["HInterID"]; + if (data.data.length == 0) { + return layer.msg("褰撳墠鐗╂枡娌℃湁宸ヨ壓璺嚎!"); + } else { + var HInterID = data.data[0]["HInterID"]; - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '宸ヨ壓璺嚎-缂栬緫' - , shift: 0//寮瑰嚭鍔ㄧ敾 - , content: '../../璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301' - , end: function () { - //鍒锋柊椤甸潰, - //location.reload(); - } - }) - + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '宸ヨ壓璺嚎-缂栬緫' + , shift: 0//寮瑰嚭鍔ㄧ敾 + , content: '../../璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301' + , end: function () { + //鍒锋柊椤甸潰, + //location.reload(); + } + }) + } } else { layer.msg(data.Message, { icon: 5 }); diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ShopCalendar.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ShopCalendar.html" index f98bced..23da22c 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ShopCalendar.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ShopCalendar.html" @@ -527,7 +527,7 @@ if (data.id == "0") { sql = " and 鏃ユ湡 like'%" + HDate + "%'"; } else { - sql = " and HSourceID='" + data.id + "' and (鏃ユ湡 like'%" + HDate +"%' or 鏃ユ湡 is null)"; + sql = " and HSourceID='" + data.id + "' and (鏃ユ湡 like'%" + HDate +"%' or 鏃ユ湡 is null or 鏃ユ湡 is not null)"; } get_Display(sql); } -- Gitblit v1.9.1