zrg
2024-07-03 9aee5998cdeb8568cd88ffb9583726b770b59ff8
巡检记录单增加默认值,安灯呼叫增加子表复选框
2个文件已修改
88 ■■■■ 已修改文件
WebTM/views/质量管理/安灯逐级呼叫规则/OA_AndengFlowRuleBillMain.html 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckOtherill.html 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/ÖÊÁ¿¹ÜÀí/°²µÆÖ𼶺ô½Ð¹æÔò/OA_AndengFlowRuleBillMain.html
@@ -225,7 +225,14 @@
            <option value="消息">消息</option>
            <option value="同时接收">同时接收</option>
        </select>
    </script>
    </script>
    <!--复选框 å®Œæˆæ ‡è®°-->
    <script type="text/html" id="HIsRece">
        <div class="layui-input-block" style="margin-left: 20px;">
            <input type="checkbox" name="HIsRece" lay-filter="HIsRece" id="HIsRece{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary">
        </div>
    </script>
    <script>
@@ -395,6 +402,8 @@
                    , "HDutyNumber": ""
                    , "HDutyName": ""
                    , "HTimes": ""
                    ,"HReceiveType":""
                    , "HIsRece": false
                    , "HRemark": ""
                    , "HReceiveType": ""
                    , "HSourceInterID": "0"
@@ -407,11 +416,19 @@
                        table.cache["mainTable"].push(NewRow);
                        option.data = table.cache["mainTable"];
                        table.render(option);
                        CheckedSet_tableSub();
                        for (var i = 1; i <= option.data.length; i++) {
                            $('#HReceiveType' + i + '').find("option[value='" + option.data[i - 1].HReceiveType + "']").attr("selected", true);
                            $('#HReceiveType' + i + '').find("option[value='" + option.data[i - 1].HReceiveType + "']").attr("selected", true);
                        }
                        for (var i = 1; i <= option.data.length; i++) {
                            //完成标记
                            if (option.data[i - 1].HIsRece) {
                                $('#HIsRece' + i + '').attr("checked", true);
                            }
                        }
                        form.render('select');
                        form.render('checkbox');
                        break;
                    case 'btn-CopyLine':
                        var copydata = JSON.stringify(data);
@@ -427,11 +444,19 @@
                            table.cache["mainTable"].push(JSON.parse(copyrow));//将复制的行强转成json追加到表格上
                            option.data = table.cache["mainTable"];//将数据绑定到data上
                            table.render(option);//将数据渲染到表格上
                            CheckedSet_tableSub();
                            for (var i = 1; i <= option.data.length; i++) {
                                $('#HReceiveType' + i + '').find("option[value='" + option.data[i - 1].HReceiveType + "']").attr("selected", true);
                            }
                            for (var i = 1; i <= option.data.length; i++) {
                                //完成标记
                                if (option.data[i - 1].HIsRece) {
                                    $('#HIsRece' + i + '').attr("checked", true);
                                }
                            }
                            form.render('select');
                            form.render('checkbox');
                        }
                        break;
                    //上一行
@@ -550,7 +575,7 @@
                        , { field: 'HDutyName', title: '职务名称', edit: 'text', event: "HDutyName", style: 'background-color: #f9f9f9;' } //f7
                        , { field: 'HTimes', title: '触发时间', edit: 'text', style: 'background-color: #f9f9f9;', }
                        , { field: 'HReceiveType', title: '接收模式', style: 'background-color: #f9f9f9;', templet: '#HReceiveType' }
                        , { field: 'HIsRece', title: '完成标记', templet: "#HIsRece" }//checkbox
                        , { field: 'HRemark', title: '备注', edit: 'text' }
                        , { field: 'HSourceInterID', title: '源单内码', hide: true, style: 'background-color: #f9f9f9;' }     //f7
                        , { field: 'HSourceEntryID', title: '源单子内码', hide: true, style: 'background-color: #f9f9f9;' }     //f7
@@ -568,7 +593,8 @@
                        , "HDutyName": ""
                        , "HTimes": ""
                        , "HRemark": ""
                        , "HReceiveType": "短信"
                        , "HReceiveType": "短信"
                        , "HIsRece": false
                        , "HSourceInterID": "0"
                        , "HSourceEntryID": "0"
                        , "HSourceBillNo": ""
@@ -590,6 +616,19 @@
                $.each(option.data, function (index, value) {
                    if (value.LAY_TABLE_INDEX == dataindex) {
                        value.HReceiveType = data.value;//把选中下拉框id值赋值给表格缓存
                    }
                });
            });
            //#endregion
            //#region å®Œæˆæ ‡è®°
            form.on('checkbox(HIsRece)', function (data) {
                //获取下拉框选中的值
                var elem = data.othis.parents('tr');
                var dataindex = elem.attr("data-index");
                $.each(option.data, function (index, value) {
                    if (value.LAY_TABLE_INDEX == dataindex) {
                        value.HIsRece = data.elem.checked;//把选中下拉框id值赋值给表格缓存
                    }
                });
            });
@@ -789,7 +828,7 @@
                                {
                                    "HSNO": tableSub[i].流程号, "HDutyID": tableSub[i].HDutyID, "HDutyNumber": tableSub[i].职务编码,
                                    "HDutyName": tableSub[i].职务, "HTimes": tableSub[i].触发时间, "HRemark": tableSub[i].备注,
                                    "HReceiveType": tableSub[i].接收模式
                                    "HReceiveType": tableSub[i].接收模式, "HIsRece": tableSub[i].是否发送
                                }
                            )
                        }
@@ -797,14 +836,14 @@
                        table.render(option);
                        for (var i = 0; i < rowdata.length; i++) {
                            $('#HReceiveType' + (i + 1)).find("option[value='" + tableSub[i].接收模式 + "']").attr("selected", true);
                            $('#HIsRece' + (i + 1)).attr("checked", true);
                        }
                        form.render('select');
                        form.render('checkbox');
                    }
                })
            }
            //#endregion
            //#endregion
            //#region å®¡æ ¸
@@ -956,6 +995,19 @@
            }
            //#endregion
            //#region åˆ·æ–°è®¾ç½®å¤é€‰æ¡†çŠ¶æ€
            function CheckedSet_tableSub() {
                var tableSub = option.data;
                //对子表中的复选框进行选中
                for (var i = 0; i < tableSub.length; i++) {
                    if (tableSub[i].HIsRece) {
                        $('#HIsRece' + (i + 1)).attr("checked", true);
                    }
                }
                form.render('checkbox');
            }
            //#endregion
            //#region éšè—åˆ—设置
            function get_HideColumn() {
@@ -1102,7 +1154,7 @@
                $("#HReceiveDeptName").val(obj[0].部门名称);
                $("#HReceiveDeptID").val(obj[0].HItemID);
            }
        }
        //异常呼叫类型
        function GetErrMsgBackTypeValue(obj) {
WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckOtherill.html
@@ -411,7 +411,7 @@
                                    <div class="layui-inline">
                                        <label class="layui-form-label" style="width: 85px;">拒绝数</label>
                                        <div class="layui-input-block" style="margin-left: 120px;">
                                            <input type="text" class="layui-input" name="HRejectQty" id="HRejectQty" style="background-color:#efefef4d;" readonly>
                                            <input type="text" class="layui-input" name="HRejectQty" id="HRejectQty"  value="0" style="background-color:#efefef4d;" readonly>
                                        </div>
                                    </div>
                                    <!--<div class="layui-inline">
@@ -1008,8 +1008,8 @@
                    "HQCCheckItemID": "", "检验项目": "", "HInspectInstruMentID": "0", "检验仪器": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "",
                    "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0,
                    "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0',
                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "",
                    "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": ""
                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0",
                    "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": ""
                };
                switch (obj.event) {
@@ -2235,7 +2235,7 @@
                    "HQCCheckItemID": "", "检验项目": "", "HInspectInstruMentID": "0", "检验仪器": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "",
                    "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0,
                    "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0',
                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "",
                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0",
                    "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": ""
                }];
                option = {
@@ -2681,16 +2681,16 @@
                    $("#HSampleQty2").val("")
                    $("#HAcceptQty").val("0")
                    $("#HInspectionLevel").val("")
                    $("#HRejectQty").val("")
                    $("#HRejectQty").val("0")
                    $("#HStrictness").val("")
                    $("#HSampleUnRightQty").val("")
                    $("#HSampleUnRightQty2").val("")
                    $("#HSampleUnRightQty").val("0")
                    $("#HSampleUnRightQty2").val("0")
                    $("#HAQL").val("")
                    $("#HSamplingType").val("")
                    $("#HSampleQty").val("0")
                    $("#HInspectResultToSee").val("")
                    $("#HInspectResultToSee2").val("")
                    $("#HSampleUnRightQty").val("")
                    $("#HSampleUnRightQty").val("0")
                    $("#HUnitID").val("0")
                    $("#HUnitName").val("")
                    $("#HInspectValB").val("0")