| | |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | //通过索引获取到当前iframe弹出层 |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | var data = []; |
| | | data.push({ |
| | | "workcode": workcode, |
| | |
| | | "HSourceBillType": HSourceBillType, |
| | | "HProcID": HProcID |
| | | }); |
| | | |
| | | //通过索引获取到当前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, |
| | |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | |
| | | //通过索引获取到当前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')"; //是否有不为开工开工状态、停工状态 |