| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥ä½ä¸å¿</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMainCenterIDName" name="HMainCenterIDName" id="HMainCenterIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMainCenterID" lay-verify="HMainCenterID" id="HMainCenterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnWorkCenter" id="btnWorkCenter" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产çç»</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HGroupIDName" lay-verify="HGroupIDName" id="HGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HGroupID" lay-verify="HGroupID" id="HGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnGroup" id="" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <label class="layui-form-label" style="width: 85px;">å¤±ææ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥ä½ä¸å¿</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMainCenterIDName" name="HMainCenterIDName" id="HMainCenterIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMainCenterID" lay-verify="HMainCenterID" id="HMainCenterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnWorkCenter" id="btnWorkCenter" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产çç»</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HGroupIDName" lay-verify="HGroupIDName" id="HGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HGroupID" lay-verify="HGroupID" id="HGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnGroup" id="" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-inline"> |
| | |
| | | var rowdata = [{ |
| | | "HProcNo": "10", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "","工段":"" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HSortProcFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 1, "HSNCtrl": false, "HPassRate": 100, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | |
| | | , height: 400 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { type: 'numbers', field: 'åºå·', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | // , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { field: 'HProcID_S', title: '工段ID', hide: true }//, hide: true |
| | | , { field: '工段', title: '工段', edit: 'text', event: "CheckHProcMulID" }//f7 |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', event: "CheckHCenterID" }//ä¸å¡« |
| | | // , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿ID', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' }//f7 |
| | | , { field: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | // , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', edit: 'text', width: 110, event: "CheckHSupID" } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå' }//f7 |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: "#HSupFlag" }//checkbox |
| | |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBeginDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(2100,12,31), "yyyy-MM-dd")); |
| | | } |
| | | }); |
| | | } |
| | |
| | | var NewRow = { |
| | | "HProcNo": (table.cache["mainTable"].length + 1) * 10, "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "","工段":"" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HSortProcFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 1, "HSNCtrl": false, "HPassRate": 100, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | |
| | | option.data[i]["å·¥ä½ä¸å¿"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | | option.data[i]["å·¥ä½ä¸å¿ä»£ç "] = WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "]; |
| | | option.data[i]["HProcID_S"] = checkStatus.data[j]["HProcMulID"]; |
| | | option.data[i]["工段"] = checkStatus.data[j]["工段åç§°"]; |
| | | j++; |
| | | } |
| | | |
| | |
| | | option.data[i]["å·¥ä½ä¸å¿"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | | option.data[i]["å·¥ä½ä¸å¿ä»£ç "] = WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "]; |
| | | option.data[i]["HProcID_S"] = checkStatus.data[j]["HProcMulID"]; |
| | | option.data[i]["工段"] = checkStatus.data[j]["工段åç§°"]; |
| | | j++; |
| | | } |
| | | } |
| | |
| | | , "å·¥ä½ä¸å¿": OptionData[0].å·¥ä½ä¸å¿ |
| | | , "HCenterID": OptionData[0].HWorkCenterID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": OptionData[0].å·¥ä½ä¸å¿ä»£ç |
| | | , "HProcID_S": OptionData[0].HProcMulID |
| | | , "工段": OptionData[0].工段åç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | //工段 |
| | | if (obj.event == "CheckHProcMulID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "工段å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ProcMul.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "工段": checkStatus.data[0].工段åç§° |
| | | , "HProcID_S": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "工段": OptionData[0].工段åç§° |
| | | , "HProcID_S": OptionData[0].HItemID |
| | | }) |
| | | OptionData = []; |
| | | } |
| | |
| | | "HBillNo": OperationType == 2 ? "" : d.data[0].åæ®å· |
| | | , "HInterID": OperationType == 2 ? 0 : d.data[0].hmainid |
| | | , "HDate": Format(new Date(d.data[0].æ¥æ), "yyyy-MM-dd") |
| | | , "HBeginDate": Format(new Date(d.data[0].çææ¶é´), "yyyy-MM-dd") |
| | | , "HEndDate": Format(new Date(d.data[0].å¤±ææ¶é´), "yyyy-MM-dd") |
| | | , "HName": d.data[0].å·¥èºåç§° |
| | | , "HMaterNumber": OperationType == 2 ? "" : d.data[0].ç©æä»£ç |
| | | , "HMaterName": OperationType == 2 ? "" : d.data[0].ç©æåç§° |
| | | , "HMaterID": OperationType == 2 ? "" : d.data[0].HMaterID |
| | | , "HUnitName": d.data[0].计éåä½ |
| | | , "HUnitID": d.data[0].hunitid |
| | | , "HUnitID": d.data[0].HUnitID |
| | | , "HMainTimeUnit": d.data[0].è¿è¡æ¶é´åä½ |
| | | , "HMainProcIDName": d.data[0].å·¥åºåç§° |
| | | , "HMainProcID": d.data[0].HMainProcID |
| | |
| | | { |
| | | "HProcNo": d.data[i].å·¥åºå·, "HProcID_S": d.data[i].工段, "HProcType": d.data[i].å·¥åºç±»å, "HCenterID_S": d.data[i].HCenterID_S, "HCenterID_SName": d.data[i].产线ä¸å¿ |
| | | , "HWorkQty_S": d.data[i].产线产è½, "HSubStdEmpQty_S": d.data[i].产线人æ°, "HMouldNo": d.data[i].模å
·ç¼å·, "HChangeMould": d.data[i].æ¢æ¨¡æ¶é´, "HPackStd": d.data[i].å¨è½¬ç®±æ å |
| | | , "HPack": d.data[i].å¨è½¬ç®±, "HPutArea": d.data[i].ææ¾åº, "HMyWorkDays": d.data[i].çäº§å¨æ, "HMyFixWorkDays": d.data[i].åºå®ç产天æ°, "å·¥åº": d.data[i].å·¥åº |
| | | , "HProcID": d.data[i].hprocid, "å·¥ä½ä¸å¿ä»£ç ": d.data[i].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[i].HCenterID, "å·¥ä½ä¸å¿": d.data[i].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[i].HSupID |
| | | , "HPack": d.data[i].å¨è½¬ç®±, "HPutArea": d.data[i].ææ¾åº, "HMyWorkDays": d.data[i].çäº§å¨æ, "HMyFixWorkDays": d.data[i].åºå®ç产天æ°, "å·¥åº": d.data[i].å·¥åº, "工段": d.data[i].工段åç§° |
| | | , "HProcID": d.data[i].HProcID, "å·¥ä½ä¸å¿ä»£ç ": d.data[i].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[i].HCenterID, "å·¥ä½ä¸å¿": d.data[i].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[i].HSupID |
| | | , "ä¾åºå代ç ": d.data[i].ä¾åºå代ç , "ä¾åºå": d.data[i].ä¾åºå, "HSupFlag": d.data[i].å§å¤æ è®° == 0 ? false : true, "HSortProcFlag": d.data[i].æäº§å·¥åºæ è®° == 0 ? false : true, "HTimeUnit": d.data[i].æ¶é´åä½, "HUnitTime": d.data[i].è¿è¡æ¶é´ |
| | | , "HWorkQty": d.data[i].å å·¥æ°é, "HSNCtrl": d.data[i].SNè¿ç«æ§å¶ == 0 ? false : true, "HPassRate": d.data[i].è¯ç, "HOverRate": d.data[i].è¶
颿¯ä¾, "HReadyTime": d.data[i].å夿¶é´, "HQueueTime": d.data[i].æéæ¶é´ |
| | | , "HMoveTime": d.data[i].转移æ¶é´, "HNextProcFlag": d.data[i].HNextProcFlag == 0 ? false : true, "HFlowProc": d.data[i].æµè½¬å·¥åº == 0 ? false : true, "HSubStdEmpQty": d.data[i].æ å人æ°, "HSubCanUseSourceQty": d.data[i].坿ä½è®¾å¤æ° |
| | |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | colName += option.cols[0][i]["field"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | option.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | //è®¾ç½®è¡¨æ ¼title屿§æ¾ç¤ºå«å |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | option.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | } |
| | | |
| | |
| | | function GetHSupNameValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //ä¾åºå |
| | | function GetGyProcMulValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |