| | |
| | | var HEmpName = ""; //操作员 |
| | | var HManagerName = ""; //负责人 |
| | | var HGroupName = ""; //班组 |
| | | var HProcID = 0; //工序 |
| | | |
| | | //注意:选项卡 依赖 element 模块,否则无法进行功能性操作 |
| | | layui.config({ |
| | |
| | | HManagerName = $("#" + us + "").html(); //通过样式ID获取html内容(资源ID) |
| | | HGroupName = $("#" + gro + "").html(); //通过样式ID获取html内容(资源ID) |
| | | HManagerID = "HManagerID" + i; |
| | | HGroupID= "HGroupID" + i; |
| | | HGroupID = "HGroupID" + i; |
| | | HManagerID = $("#" + HManagerID + "").html(); |
| | | HGroupID = $("#" + HGroupID + "").html(); |
| | | |
| | |
| | | |
| | | html1 += '<h1><span>工单号:</span><span id="wk' + (i + 1) + '">' + LoadData1[i].HICMOBillNo + '</span><span style="margin-left:25px;">日期:</span><span>' + LoadData1[i].计划日期 + '</span></h1>'; |
| | | html1 += '<h1 style="display:none;"><span>产品ID:</span><span id="materid' + (i + 1) + '">' + LoadData1[i].HMaterID + '</span></h1>'; |
| | | html1 += '<h1 style="display:none;"><span>工序ID:</span><span id="procid' + (i + 1) + '">' + LoadData1[i].HProcID + '</span></h1>'; |
| | | html1 += '<h1><span>产品名称:</span><span id="ptn' + (i + 1) + '">[' + LoadData1[i].HMaterNumber + ']-[' + LoadData1[i].HMaterName + ']</span></h1>'; |
| | | html1 += '<h1><span>产品型号:</span><span id="pts' + (i + 1) + '">' + LoadData1[i].HModel + '</span></h1>'; |
| | | html1 += '<h1><span>计划数量:</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">汇报总数:</span><span>' + LoadData1[i].HDateFinishQty + '</span></h1>'; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/ReportPlatForm/DeleteGetLineBindBillList", |
| | | type: "GET", |
| | | data: { "HSourceID": HSourceID ,"user": sessionStorage["HUserName"]}, |
| | | data: { "HSourceID": HSourceID, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json",//数据类型可以为 text xml json script jsonp |
| | | success: function (data) { |
| | | if (data.count > 0) { |
| | |
| | | HICMOBillNo = $("#wk" + i + "").html(); //生产订单号 |
| | | HMaterName = $("#ptn" + i + "").html(); //产品名称 |
| | | HMaterID = $("#materid" + i + "").html(); //产品ID |
| | | HProcID = $("#procid" + i + "").html(); //工序ID |
| | | |
| | | if (workcode != "" && workcode != null) { |
| | | $('.cns').removeClass('check1'); //删除不同父级clss样式相同的所有元素 |
| | |
| | | shift: 2, |
| | | area: ['95%', '95%'], |
| | | maxmin: true, |
| | | content: '生产管理/作业指导书/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID, |
| | | content: '生产管理/作业指导书/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID + '&HProcID=' + HProcID, |
| | | end: function () { |
| | | |
| | | }, |
| | |
| | | } |
| | | |
| | | |
| | | //当前工单(赋码)按钮点击事件 |
| | | //当前工单(汇报)按钮点击事件 |
| | | function CodingReport(event, obj) { |
| | | if (wktag == 0) { |
| | | layer.alert("请选择工单列表", { icon: 5 }); |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '车间管理/工序出站汇报单/Cj_StationOutBill_CodingReport.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: '车间管理/工序出站汇报单/Cj_StationOutBill_CurrentWork.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | |
| | | |
| | | }); |
| | | } |
| | | |
| | | //设备启动点检按钮点击事件 |
| | | function BeginDotCheck(event, obj) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //加上边框 |
| | | title: '新增设备启动点检单', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '车间管理/启动点检单/Sc_WorkBeginDotCheckBill.html?OperationType=4&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HMaterID": HMaterID, |
| | | "HProcID": HProcID, |
| | | "HSourceID": HSourceID1, |
| | | "SCOrder": HSourceBillNo |
| | | }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | //防错验证清单按钮点击事件 |
| | | function PreventErrMouldCheck(event, obj) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //加上边框 |
| | | title: '新增防错验证', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '车间管理/防错验证/Qc_PreventErrMouldCheckBill.html?OperationType=4&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HMaterID": HMaterID, |
| | | "HProcID": HProcID, |
| | | "SCOrder": HSourceBillNo |
| | | }); |
| | | |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //调用iframe弹出层内的方法 |
| | | iframe.edit(data); |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | //退出 |
| | | function Esc(event, obj) { |
| | | parent.location.href = "index.html" |
| | |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="OpenMaterToSource(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-engine imgicon"></span> |
| | | <span class="imgtitle">上料防呆</span> |
| | | <span class="imgtitle">上料防错</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="BadGather(event,this)"> |
| | |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="CodingReport(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-console imgicon"></span> |
| | | <span class="imgtitle">当前工单(赋码)</span> |
| | | <span class="imgtitle">当前工单(汇报)</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="BeginDotCheck(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-md4" onclick="PreventErrMouldCheck(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-engine imgicon"></span> |
| | | <span class="imgtitle">防错验证</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </fieldset> |