1
yangle
2025-02-28 50e8da1b9afd39f32f5c73a1cbcdb7f6c6de8adb
WebTM/views/IpadIndex.html
@@ -102,7 +102,7 @@
                                html1 += '<h1><span>生产班组:</span><span id="HGroupName' + i + '">' + LoadData[i - 1].GroupName + '</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="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>';
                                switch (LoadData[i - 1].HStatus) {
                                    case "空闲":
@@ -125,7 +125,7 @@
                                        break;
                                    case "维修终止":
                                        html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border1"></span><span>' + LoadData[i - 1].HStatus + '</span></h1>';
                                        break;
                                        break;
                                    default:
                                }
                                html1 += '<h1 hidden> <span id="HGroupID' + i + '">' + LoadData[i - 1].HGroupID + '</span></h1>';
@@ -163,7 +163,7 @@
                        html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,1)"></span>';
                        html1 += '</div>';
                        html1 += '</div>';
                        $("#topleft").append(html1);
                        $("#topleft").append(html1);
                    }
                },
                error: function (err) {
@@ -187,10 +187,10 @@
                        $("#button-container").empty();
                        var colClass = ''; // 动态设置列的样式
                        let largestColClass = 'layui-col-md4';  // 默认新增按钮大小(假设最多是 3 个按钮一排)
                        // 遍历每个按钮数据并生成对应的 HTML
                        data1.data.forEach(function (buttonData, index) {
                            // 根据 defaultSize 字段选择合适的列宽
                            // 根据 defaultSize 字段选择合适的列宽
                            switch (buttonData.按钮大小) {
                                case '小':
                                    colClass = 'layui-col-md3'; // 一排4个
@@ -233,7 +233,7 @@
                        html1 += '        <span class="layui-icon layui-icon-addition imgtitle" onclick="Add_Buttton(event,this,1)"></span>';
                        html1 += '    </div>';
                        html1 += '</div>';
                        $("#button-container").append(html1);
                    } else {
                        // 如果没有按钮数据,展示默认的空白新增按钮
@@ -299,7 +299,7 @@
                    //按钮【按钮一】的回调
                    var body = layer.getChildFrame('body', index); //得到iframe页的body内容
                    var HUserName = sessionStorage["HUserName"];
                    var HButtonID = body.find("#HButtonID").val();
                    var HButtonName = body.find("#HName").val();
@@ -395,7 +395,7 @@
                        var LoadData1 = data.data.h_p_JIT_GetWorkBillListInfoBySource;
                        var LoadData2 = data.data.h_p_JIT_GetWorkBillListInfoBySource1;
                        var LoadData3 = data.data.h_p_JIT_GetWorkBillListInfoBySource2; //时间点产量
                        var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //不良分析
                        var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //不良分析
                        if (LoadData1.length > 0)  //工单列表数据
                        {
@@ -439,7 +439,7 @@
                                        break;
                                    case "完工":
                                        html1 += '<h1><span>当前状态:</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:5px;">领料状态:</span><span>' + LoadData1[i].领料状态 + '</span></h1>';
                                        break;
                                        break;
                                }
                                html1 += '<span class="prs">生产进度:</span>';
                                html1 += '<div class="layui-progress layui-progress-big" lay-showPercent="yes">';
@@ -470,7 +470,7 @@
                                html1 += '<h1><span>当前订单:</span><span>' + LoadData2[i].HSourceBillNo + '</span><div style="margin-left:25px;float:right"><span >巡检次数:</span><span>' + LoadData2[i].巡检次数 + '</span></div></h1>';
                                html1 += '<h1><span>物料名称:</span><span>' + LoadData2[i].HMaterName + '</span><div style="margin-left:25px;float:right"><span >过程检次数:</span><span>' + LoadData2[i].过程检次数 + '</span></div></h1>';
                                html1 += '<h1><span>计划数量:</span><span>' + LoadData2[i].HPlanQty + '</span><div style="margin-left:25px;float:right"><span >当日点检时间:</span><span>' + LoadData2[i].当日点检时间 + '</span></div></h1>';
                                html1 += '<h1><span>已汇报数量:</span><span>' + LoadData2[i].HRelationQty + '</span><div style="margin-left:25px;float:right"><span >最后保养时间:</span><span>' + LoadData2[i].最后保养时间 + '</span></div></h1>';
                                html1 += '<h1><span>已汇报数量:</span><span>' + LoadData2[i].HRelationQty + '</span><div style="margin-left:25px;float:right"><span >最后保养时间:</span><span>' + LoadData2[i].最后保养时间 + '</span></div></h1>';
                                if (LoadData2[i].HRelationQty == 0 || LoadData2[i].HRelationQty == null) {
                                    html1 += '<h1><span>进度:</span><span>0%</span><div style="margin-left:25px;float:right"><span >点检完成情况:</span><span>' + LoadData2[i].当日点检完成情况 + '</span></div></h1>';
                                }
@@ -610,8 +610,8 @@
                }
            });
        }
        }
        //删除资源
        function Delete(event, obj, i) {
            event.stopPropagation();  //阻止冒泡
@@ -1165,7 +1165,7 @@
                , shade: 0.6
                , maxmin: false
                , anim: 0
                , content: ['质量管理/首件检验单/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID+'', 'yes']
                , content: ['质量管理/首件检验单/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                , resize: false
                , cancel: function () {
                }
@@ -1188,7 +1188,7 @@
                , shade: 0.6
                , maxmin: false
                , anim: 0
                , content: ['质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID+ '&HSourceEntryID=' + HSourceEntryID+'', 'yes']
                , content: ['质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                , resize: false
                , cancel: function () {
@@ -1217,6 +1217,35 @@
                , maxmin: false
                , anim: 0
                , content: ['生产管理/质量汇报单/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
                , resize: false
                , cancel: function () {
                }
                , end: function () {
                }
            })
        }
        //微瑕品汇报
        function SubtleFlaw() {
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "微瑕品汇报")) {
                layer.alert("单据状态不满足微瑕品汇报条件!", { icon: 5 });
                return false;
            }
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '微瑕品汇报单-编辑'
                , shade: 0.6
                , maxmin: false
                , anim: 0
                , content: ['生产管理/质量汇报单/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID + '&HBillSubType=微瑕品', 'yes']
                , resize: false
                , cancel: function () {
@@ -1330,7 +1359,7 @@
        }
        //设备启动点检按钮点击事件
        function BeginDotCheck(event, obj) {
        function BeginDotCheck(event, obj) {
            layer.open({
                type: 2,
                skin: 'layui-layer-rim', //加上边框
@@ -1361,7 +1390,7 @@
        }
        //异常按钮点击事件
        function Abnormal (event, obj) {
        function Abnormal(event, obj) {
            layer.open({
                type: 2,
                skin: 'layui-layer-rim', //加上边框
@@ -1408,7 +1437,7 @@
                    var data = [];
                    data.push({
                        "HMaterID": HMaterID,
                        "HProcID": HProcID,
                        "HProcID": HProcID,
                        "SCOrder": HSourceBillNo
                    });
@@ -1425,7 +1454,7 @@
            if (wktag == 0) {
                layer.alert("请选择工单列表", { icon: 5 });
                return false;
            }
            }
            layer.open({
                type: 2,
                skin: 'layui-layer-rim', //加上边框
@@ -1509,7 +1538,7 @@
                content: '生产管理/异常反馈单/OA_ErrMsgBackSignBill_BrushCard.html?OperationType=2',
                end: function () {
                }
                }
            });
        }
@@ -1664,7 +1693,7 @@
            <div class="layui-col-sm12 layui-col-md4">
                <fieldset style="border: 1px solid #eee;box-shadow: 0 2px 5px 0 rgb(0 0 0 / 10%);">
                    <legend style="color: #5FB878">操作台</legend>
                    <div class="content4" >
                    <div class="content4">
                        <!--<div class="layui-row layui-col-space10">
                            <div class="layui-col-sm12 layui-col-md4" onclick="OpenWork(event,this)">
                                <div class="cnt bottomright">
@@ -1813,7 +1842,16 @@
                                    <span class="imgtitle">异常验收</span>
                                </div>
                            </div>
                            <div class="layui-col-sm12 layui-col-md4" onclick="SubtleFlaw(event,this)">
                                <div class="cnt bottomright">
                                    <span class="layui-icon layui-icon-log imgicon"></span>
                                    <span class="imgtitle">微瑕品汇报</span>
                                </div>
                            </div>
                        </div>-->
                        <!--数据插入动态按钮SQL,然后此页面写点击事件即可,网页绑定新按钮即可使用-->
                        <!--insert into Gy_BGButtons (HNumber,HName,HIcno,HOnclick,HSize,HOrder) values ('按钮代码','按钮名字','按钮图标','按钮点击事件','按钮默认大小,默认是中(大,中,小)','按钮默认排序 默认0')-->
                        <div class="layui-row layui-col-space10" id="button-container">
                        </div>