1
wangbin
2024-07-08 3dfe7dfe993869c8a44e9ccf177849abe98ca8d0
WebTM/views/É豸¹ÜÀí/Sb_EquipDotCheckBill_PDA.html
@@ -466,7 +466,7 @@
            //退出-关闭页面方法
            $('#Cancel').on('click', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../../views/index_Mobile.html";
                    parent.location.href = "../../views/index_Mobile.html";
                });
            })
@@ -498,6 +498,7 @@
                            }
                        },
                        error: function (err) {
                            $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false);//保存按钮启用
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
@@ -544,7 +545,7 @@
            //#region é€€å‡ºæŒ‰é’®
            form.on('submit(Cancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../../views/index_Mobile.html";
                    parent.location.href = "../../views/index_Mobile.html";
                });
            })
            //#endregion
@@ -623,6 +624,10 @@
            //表头信息设备保养规程
            form.on('submit(HEquipDotCheckRuleInterist)', function () {
                if ($("#HEquipID").val() == 0 || $("#HEquipID").val() == null || $("#HEquipID").val() == "") {
                    layer.alert("请先扫描设备二维码带出设备信息");
                    return;
                }
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -632,7 +637,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../设备管理/设备规程单/Sb_EquipDotCheckRuleList_PDA.html', 'yes'],
                    content: ['../设备管理/设备规程单/Sb_EquipDotCheckRuleList_PDA.html?HEquipID=' + $("#HEquipID").val(), 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
                        //按钮【按钮一】的回调
@@ -676,7 +681,7 @@
                                        var checkrow = {
                                            "HDotCheckItemID": data[i].HDotCheckItemID, "HDotCheckCode": data[i].点检项目代码, "HDotCheckItem": data[i].点检项目,
                                            "HDotCheckPart": data[i].点检部位, "HClaim": data[i].具体要求, "HManagerID": data[i].负责人ID, "HManagerCode": data[i].负责人代码,
                                            "HManagerName": data[i].负责人名称, "HSourceInterID": data[i].点检计划ID == null ? 0 : data[i].点检计划ID, "HSourceEntryID": data[i].点检计划子ID == null ? 0 : data[i].点检计划子ID, "HSourceBillNo": data[i].点检计划单, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": data[i].默认结论
                                            "HManagerName": data[i].负责人名称, "HSourceInterID": data[i].点检计划ID == null ? 0 : data[i].点检计划ID, "HSourceEntryID": data[i].点检计划子ID == null ? 0 : data[i].点检计划子ID, "HSourceBillNo": data[i].点检计划单, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": data[i].默认结论 == 1 ? true : false
                                        };
                                        buttonArr.push(checkrow);  //将之前的数据存储
                                    }
@@ -702,7 +707,7 @@
                columns = [
                    //{ type: 'checkbox' }
                    { templet: '#xuhao', title: '序号', event: "qwe", width: 45 }
                    , { field: 'HDotCheckResult', title: '结果', templet: '#HDotCheckResult', width: 55 }
                    , { field: 'HDotCheckResult', title: '结果', templet: '#HDotCheckResult', width: 55, unresize: false }
                    , { field: 'HDotCheckItemID', title: '点检项目ID', edit: 'text', hide: true }
                    , { field: 'HDotCheckCode', title: '点检项目代码', edit: 'text', event: "HDotCheckCode", width: 115, hide: true }
                    , { field: 'HDotCheckItem', title: '点检项目', edit: 'text', event: "" }
@@ -732,7 +737,19 @@
                    , height: 'full-205'
                    , cols: [columns]
                    , done: function (res, curr, count) {
                        option.data = res.data;
                        //去掉下拉框失焦事件否则在下拉框里输入值
                        $('.layui-form-select').find('input').unbind("blur");
                        //表格重载回显下拉框里的数据
                        $('tr').each(function (e) {
                            var $cr = $(this);
                            var dataIndex = $cr.attr("data-index");
                            $.each(option.data, function (index, value) {
                                if (value.LAY_TNDEX == dataIndex) {
                                    //$cr.find('input').val(value.HResult);
                                }
                            });
                        });
                    }
                };
@@ -869,7 +886,7 @@
                            for (let i = 0; i < data.length; i++) {
                                rowdata.push(
                                    {
                                        "HDotCheckResult": data[i].默认结论, "HDotCheckItemID": data[i].点检项目ID, "HDotCheckCode": data[i].点检项目代码, "HDotCheckItem": data[i].点检项目名称,
                                        "HDotCheckResult": data[i].默认结论 == 1 ? true : false, "HDotCheckItemID": data[i].点检项目ID, "HDotCheckCode": data[i].点检项目代码, "HDotCheckItem": data[i].点检项目名称,
                                        "HDotCheckPart": data[i].点检部位, "HClaim": data[i].具体要求, "HManagerID": data[i].负责人ID, "HManagerCode": data[i].负责人代码,
                                        "HManagerName": data[i].负责人名称, "HSourceInterID": data[i].点检计划ID, "HSourceEntryID": data[i].点检计划子ID, "HSourceBillNo": data[i].点检计划单, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": ""
                                    }