| | |
| | | var HSourceBillType = ""; //源单类型 |
| | | var HICMOInterID = ""; //生产订单主内码 |
| | | var HICMOEntryID = ""; //生产订单子内码 |
| | | var HProcID = ""; //工序ID |
| | | var HICMOBillNo = ""; //任务单号 |
| | | //注意:选项卡 依赖 element 模块,否则无法进行功能性操作 |
| | | layui.config({ |
| | |
| | | html1 += '<dd>'; |
| | | html1 += '<h1 style="display:none;"><span>资源ID:</span><span id="eqpid' + i + '">' + LoadData[i - 1].HSourceID + '</span></h1>'; |
| | | html1 += '<h1><span>设备编号:</span><span id="eqp' + i + '">' + LoadData[i - 1].HSourceName + '</span></h1>'; |
| | | html1 += '<h1><span>设备代码:</span><span id="eqp' + i + '">' + LoadData[i - 1].HSourceNumber + '</span></h1>'; |
| | | html1 += '<h1><span>操作员:</span><span id="eqp' + i + '">' + LoadData[i - 1].HUserName + '</span></h1>'; |
| | | html1 += '<h1><span>生产班组:</span><span id="eqp' + i + '">' + LoadData[i - 1].GroupName + '</span></h1>'; |
| | | //html1 += '<h1><span>当前工单:</span><span id="po' + i + '">' + (LoadData[i - 1].HSourceBillNo == null ? '' : LoadData[i - 1].HSourceBillNo) + '</span></h1>'; |
| | | //html1 += '<h1><span>产品名称:</span><span id="ptn' + i + '">' + (LoadData[i - 1].HName == null ? '' : LoadData[i - 1].HName) + '</span></h1>'; |
| | | //html1 += '<h1><span>产品规格:</span><span id="pts' + i + '">' + (LoadData[i - 1].HModel == null ? '' : LoadData[i - 1].HModel) + '</span></h1>'; |
| | |
| | | html1 += '<h1 style="display:none;"><span>源单类型:</span><span id="st' + (i + 1) + '">' + LoadData1[i].HSourceBillType + '</span></h1>'; |
| | | html1 += '<h1 style="display:none;"><span>生产订单号主ID:</span><span id="df' + (i + 1) + '">' + LoadData1[i].HICMOInterID + '</span></h1>'; |
| | | html1 += '<h1 style="display:none;"><span>生产订单子ID:</span><span id="ds' + (i + 1) + '">' + LoadData1[i].HICMOEntryID + '</span></h1>'; |
| | | |
| | | html1 += '<h1 style="display:none;"><span>工序ID:</span><span id="ps' + (i + 1) + '">' + LoadData1[i].HProcID + '</span></h1>'; |
| | | |
| | | html1 += '<h1><span>工单号:</span><span id="wk' + (i + 1) + '">' + LoadData1[i].HICMOBillNo + '</span></h1>'; |
| | | html1 += '<h1><span>产品名称:</span><span id="ptn' + (i + 1) + '">' + LoadData1[i].HMaterName + '</span></h1>'; |
| | |
| | | html1 += '<h1><span>计划数量:</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">汇报总数:</span><span>' + LoadData1[i].HDateFinishQty+'</span></h1>'; |
| | | switch (LoadData1[i].HICMOStatus) { |
| | | case "待生产": |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>'; |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">工序:</span><span>' + LoadData1[i].HProcName +'</span></h1>'; |
| | | break; |
| | | case "生产中": |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border2"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>'; |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border2"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">工序:</span><span>' + LoadData1[i].HProcName +'</span></h1>'; |
| | | break; |
| | | case "挂起": |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border1"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>'; |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border1"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">工序:</span><span>' + LoadData1[i].HProcName +'</span></h1>'; |
| | | break; |
| | | case "完工": |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>'; |
| | | html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">工序:</span><span>' + LoadData1[i].HProcName +'</span></h1>'; |
| | | break; |
| | | default: |
| | | } |
| | | html1 += '<span class="prs">生产进度:</span>'; |
| | | html1 += '<div class="layui-progress layui-progress-big" lay-showPercent="yes">'; |
| | | html1 += '<div class="layui-progress-bar" lay-percent="' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%" style="width:' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%;">'; |
| | | html1 += '<span class="layui-progress-text">' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%</span>'; |
| | | html1 += '<div class="layui-progress-bar" lay-percent="' + ((LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty) * 100).toFixed(2) + '%" style="width:' + ((LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty) * 100).toFixed(2) + '%;">'; |
| | | html1 += '<span class="layui-progress-text">' + ((LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty) * 100).toFixed(2) + '%</span>'; |
| | | html1 += '</div > '; |
| | | html1 += '</div>'; |
| | | html1 += '</dd>'; |
| | |
| | | html1 += '<h1><span>进度:</span><span>0%</span></h1>'; |
| | | } |
| | | else { |
| | | html1 += '<h1><span>进度:</span><span>' + (LoadData2[i].HRelationQty / LoadData2[i].HPlanQty) * 100 + '%</span></h1>'; |
| | | html1 += '<h1><span>进度:</span><span>' + ((LoadData2[i].HRelationQty / LoadData2[i].HPlanQty) * 100).toFixed(2) + '%</span></h1>'; |
| | | } |
| | | html1 += '<h1><span>本单运行时间:</span><span>' + getSeconds(LoadData2[i].HSumTimes) + '</span></h1>'; |
| | | html1 += '<h1><span>本资源运行时间:</span><span>' + getSeconds(LoadData2[i].HSourceWorkTime) + '</span></h1>'; |
| | | html1 += '<h1><span>当前工序:</span><span>' + LoadData2[i].HProcName + '</span></h1>'; |
| | | /*html1 += '<h1><span>本资源运行时间:</span><span>' + getSeconds(LoadData2[i].HSourceWorkTime) + '</span></h1>';*/ |
| | | html1 += '</dd>'; |
| | | html1 += '</dl>'; |
| | | html1 += '</div>'; |
| | |
| | | HSourceBillType = $("#st" + i + "").html(); //通过样式ID获取html内容(源单类型) |
| | | HICMOInterID = $("#df" + i + "").html(); //生产订单主内码 |
| | | HICMOEntryID = $("#ds" + i + "").html(); //生产订单子内码 |
| | | HProcID = $("#ps" + i + "").html(); //工序ID |
| | | |
| | | |
| | | if (workcode != "" && workcode != null) { |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/开工/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/开工/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType+'', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&workcode=' + workcode + '&HSourceID=' + HSourceID1 + '&HSourceName=' + HSourceName1 + '&HICMOInterID=' + HICMOInterID + '&HICMOEntryID=' + HICMOEntryID + '&HMaker=' + sessionStorage["HUserName"] + '&Czybm=' + sessionStorage["Czybm"] + '&HSourceInterID=' + HSourceInterID + '&HSourceBillType=' + HSourceBillType + '&HProcID=' + HProcID+'', |
| | | //content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "workcode": workcode, |
| | | "HSourceID": HSourceID1, |
| | | "HSourceName": HSourceName1, |
| | | "HICMOInterID": HICMOInterID, |
| | | "HICMOEntryID": HICMOEntryID, |
| | | "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | "Czybm": sessionStorage["Czybm"], |
| | | //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | //success: function (dom, index) { |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // var data = []; |
| | | // data.push({ |
| | | // "workcode": workcode, |
| | | // "HSourceID": HSourceID1, |
| | | // "HSourceName": HSourceName1, |
| | | // "HICMOInterID": HICMOInterID, |
| | | // "HICMOEntryID": HICMOEntryID, |
| | | // "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | // "Czybm": sessionStorage["Czybm"], |
| | | // //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceBillType": HSourceBillType, |
| | | // "HProcID": HProcID |
| | | // }); |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | //success: function (dom, index) { |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/上料防错单/Sc_Add_MaterToSourceBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | | //首检检验 |
| | | function OpenFistCheck(event, obj) { |
| | | if (wktag == 0) { |
| | | layer.alert("请选择工单列表", { icon: 5 }); |
| | | return false; |
| | | } |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: '首件检验单-编辑' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['质量管理/首件检验单/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | } |
| | | , end: function () { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //过程检验 |
| | | function OpenProcess(event, obj) { |
| | | if (wktag == 0) { |
| | | layer.alert("请选择工单列表", { icon: 5 }); |
| | | return false; |
| | | } |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: '工序检验单-编辑' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['质量管理/工序检验单/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | |
| | | } |
| | | , end: function () { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //不良采集 |
| | | function BadGather() { |
| | |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['生产管理/质量汇报单/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes'] |
| | | , content: ['生产管理/报工台工序/不良采集/Sc_QualityReportStepBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | // //通过索引获取到当前iframe弹出层 |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //调用iframe弹出层内的方法 |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | //单据状态验证 |
| | | function WorkStaus(HSourceID1, workcode, HSourceInterID, btn) { |
| | | var flag = false; |
| | | var sWhere = ""; |
| | | var sWhere = ""; //任务单状态(0待生产,1生产中,2挂起,3已完工) |
| | | switch (btn) { |
| | | case "开工": |
| | | sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('0','2')"; //是否有不为开工开工状态、停工状态 |
| | |
| | | <span class="imgtitle">返工申请</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md3" onclick="OpenFistCheck(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-search imgicon"></span> |
| | | <span class="imgtitle">首检</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md3"> |
| | | <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)"> |
| | | <span class="layui-icon layui-icon-search imgicon"></span> |
| | | <span class="imgtitle">巡检</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md3" onclick="OpenProcess(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-search imgicon"></span> |
| | | <span class="imgtitle">过程检验</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md3" onclick="OpenInSpection(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-release imgicon"></span> |
| | |
| | | <span class="imgtitle">不良采集</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md3" onclick="ExceFeedback(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-unlink imgicon"></span> |
| | | <span class="imgtitle">异常</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md3" onclick="Esc(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-close imgicon"></span> |