仲国强
2021-08-27 a92a0f05a7e3cc8096a0658825f4ebe38b0a2655
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",
@@ -83,6 +83,8 @@
                                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="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><span>负责人:</span><span id="us' + i + '">' + LoadData[i - 1].HEmpName + '</span></h1>';
                                html1 += '</dd>';
                                html1 += '</dl>';
@@ -171,6 +173,8 @@
                                       
                                        
                                        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 id="pts' + (i + 1) + '">' + LoadData1[i].HModel + '</span></h1>';
                                        switch (LoadData1[i].HICMOStatus) {
                                            case "待生产":
                                                html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>';
@@ -213,7 +217,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>';
@@ -262,7 +266,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();
@@ -554,7 +558,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 () {
                   
                },
@@ -594,7 +598,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 () {
                },
@@ -634,7 +638,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 () {
                },
@@ -674,7 +678,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 () {
                },
@@ -710,7 +714,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 () {
                },
@@ -722,7 +726,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
                    });
@@ -738,6 +743,10 @@
        //首检检验
        function OpenFistCheck(event, obj)
        {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2
                , area: ['100%', '100%']
@@ -758,6 +767,10 @@
        //过程检验
        function OpenProcess(event, obj)
        {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2
                , area: ['100%', '100%']
@@ -790,16 +803,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 "报检申请":