zzr99
2021-08-19 db8f382c0dfbdfd0e2a1e8a74b119f8e05d92f03
WebTM/views/IpadIndex.html
@@ -63,7 +63,7 @@
        });
        function TSLoad() {
            $("#topleft").html("");
            var HUserName = "Admin";  //sessionStorage["HUserName"];     //默认当前登录人员
            var HUserName = sessionStorage["HUserName"];  //sessionStorage["HUserName"];     //默认当前登录人员
            $.ajax({
                url: GetWEBURL() + "/ReportPlatForm/SearchGetLineBindBillList",
                type: "GET",
@@ -111,8 +111,13 @@
                        }
                    }
                    else {
                        layer.alert(data.Message, { icon: 5 });
                        return false;
                        var html1 = '';
                        html1 += '<div class="layui-col-sm12 layui-col-md3">';
                        html1 += '<div class="cnt ctop" id="ts1" onclick="Check(this,1)">';
                        html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,1)"></span>';
                        html1 += '</div>';
                        html1 += '</div>';
                        $("#topleft").append(html1);
                    }
                },
                error: function (err) {
@@ -208,7 +213,7 @@
                                        html1 += '<h1><span>当前订单:</span><span>' + LoadData2[i].HSourceBillNo + '</span></h1>';
                                        html1 += '<h1><span>物料名称:</span><span>' + LoadData2[i].HMaterName + '</span></h1>';
                                        html1 += '<h1><span>计划数量:</span><span>' + LoadData2[i].HPlanQty + '</span></h1>';
                                        html1 += '<h1><span>以汇报数量:</span><span>' + LoadData2[i].HRelationQty + '</span></h1>';
                                        html1 += '<h1><span>已汇报数量:</span><span>' + LoadData2[i].HRelationQty + '</span></h1>';
                                        if (LoadData2[i].HRelationQty == 0 || LoadData2[i].HRelationQty == null)
                                        {
                                            html1 += '<h1><span>进度:</span><span>0%</span></h1>';
@@ -257,7 +262,7 @@
                    {
                        return false;
                    }
                    var HUserName = "Admin";
                    var HUserName = sessionStorage["HUserName"];
                    var HSourceID = body.find("#HSourceID").val();
                    var HSourceCode = body.find("#HSourceCode").val();
                    var HSourceName = body.find("#HSourceName").val();
@@ -549,7 +554,7 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/生产开工单/Sc_Add_MESBeginWorkBillList.html?hID=&Type=2',
                content: '生产管理/生产开工单/Sc_Add_MESBeginWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                   
                },
@@ -589,7 +594,7 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/产量汇报单/Sc_Add_ProductReportBillList.html?hID=&Type=2',
                content: '生产管理/产量汇报单/Sc_Add_ProductReportBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
@@ -629,7 +634,7 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/生产完工单/Sc_Add_MESEndWorkBillList.html?hID=&Type=2',
                content: '生产管理/生产完工单/Sc_Add_MESEndWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
@@ -669,7 +674,7 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/生产停工单/Sc_Add_MESStopWorkBillList.html?hID=&Type=2',
                content: '生产管理/生产停工单/Sc_Add_MESStopWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
@@ -705,7 +710,7 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/产量汇报单/Sc_ProductReportBillList.html?hID=&Type=2',
                content: '生产管理/产量汇报单/Sc_ProductReportBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
@@ -717,7 +722,8 @@
                        "HSourceName": HSourceName1,
                        "HICMOInterID": HICMOInterID,
                        "HICMOEntryID": HICMOEntryID,
                        "HMaker": "Admin",    //sessionStorage["HUserName"]
                        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
                        "Czybm": sessionStorage["Czybm"],
                        //"HEmpID": "0",    //sessionStorage["HEmpID"]
                        "HSourceBillType": HSourceBillType
                    });
@@ -733,6 +739,10 @@
        //首检检验
        function OpenFistCheck(event, obj)
        {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2
                , area: ['100%', '100%']
@@ -745,14 +755,18 @@
                , cancel: function () {
                }
                , end: function () {
                    get_FastQuery(table, option);
                }
            })
        }
        //过程检验
        function OpenProcess(event, this)
        function OpenProcess(event, obj)
        {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2
                , area: ['100%', '100%']
@@ -760,15 +774,22 @@
                , shade: 0.6
                , maxmin: false
                , anim: 0
                , content: ['../../质量管理/工序检验单/QC_ProcessCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid, 'yes']
                , content: ['质量管理/工序检验单/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HSourceInterID +'&HSouceBillType=' + HBillType, 'yes']
                , resize: false
                , cancel: function () {
                    btnIs();
                }
                , end: function () {
                    get_FastQuery(table, option);
                }
            })
        }
        //退出
        function Esc(event, obj)
        {
            parent.location.href = "index.html"
        }
        //单据状态验证
@@ -778,16 +799,16 @@
            var sWhere = "";
            switch (btn) {
                case "开工":
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID+"' and hicmostatus not in('0')";   //开工状态
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID+"' and hicmostatus not in('0','2')";   //是否有不为开工开工状态、停工状态
                    break;
                case "完工":
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1','2')";   //完工状态
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1','2')";   //是否有不为开工、完工状态
                    break;
                case "停工":
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')";   //停工挂起状态
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')";   //是否有不为停工挂起状态
                    break;
                case "汇报":
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')";   //汇报状态
                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //是否有不为开工、停工挂起状态
                    break;
                case "报检申请":
                    
@@ -961,8 +982,8 @@
                                    <span class="imgtitle">异常</span>
                                </div>
                            </div>
                            <div class="layui-col-sm12 layui-col-md4">
                                <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)">
                            <div class="layui-col-sm12 layui-col-md4" onclick="Esc(event,this)">
                                <div class="cnt bottomright">
                                    <span class="layui-icon layui-icon-close imgicon"></span>
                                    <span class="imgtitle">退出</span>
                                </div>