王 垚
2021-12-21 0df660569d77b0a409c88fac948a39ac5131a583
WebTM/views/IpadStepIndex.html
@@ -736,6 +736,46 @@
            });
        }
        //返工申请单按钮点击事件
        function OpenReturn(event, obj) {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "返工")) {
                layer.alert("单据状态不满足返工条件!", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2,
                skin: 'layui-layer-rim', //加上边框
                title: '新增返工单',
                closeBtn: 1,
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                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);
                },
            });
        }
        //上料防错单
        function OpenMaterToSource() {
            if (wktag == 0) {
@@ -860,6 +900,9 @@
                case "报检申请":
                    break;
                case "返工":
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('0','2')";   //是否有不为开工、停工挂起状态
                    break;
                default:
            }
@@ -981,7 +1024,7 @@
                            </div>
                        </div>
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-sm12 layui-col-md3" onclick="">
                            <div class="layui-col-sm12 layui-col-md3" onclick="OpenReturn(event,this)">
                                <div class="cnt bottomright">
                                    <span class="layui-icon layui-icon-return imgicon"></span>
                                    <span class="imgtitle">返工申请</span>