WebTM/views/É豸¹ÜÀí/Sb_EqpMaintenanceBill_PDA.html
@@ -163,7 +163,7 @@
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>部门</th>
                                            <th>部门<span style=" color:red">*</span></th>
                                            <td class="bz_td">
                                                <input type="text" name="HDeptName" class="layui-input" id="HDeptName" placeholder="选择部门" style="background-color:#efefef4d;">
                                                <input type="hidden" name="HDeptID" id="HDeptID" value="0" autocomplete="off" class="layui-input">
@@ -171,7 +171,7 @@
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>维修人</th>
                                            <th>维修人<span style=" color:red">*</span></th>
                                            <td class="bz_td">
                                                <input type="text" name="HEmpName" class="layui-input" id="HEmpName" placeholder="选择维修人" style="background-color:#efefef4d;">
                                                <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input">
@@ -179,7 +179,7 @@
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>维修项目</th>
                                            <th>维修项目<span style=" color:red">*</span></th>
                                            <td class="bz_td">
                                                <input type="text" name="HRepair" class="layui-input" id="HRepair" placeholder="选择维修项目" style="background-color:#efefef4d;">
                                                <input type="hidden" name="HRepairID" id="HRepairID" value="0" autocomplete="off" class="layui-input">
@@ -203,7 +203,7 @@
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>故障登记单</th>
                                            <th>故障登记单<span style=" color:red">*</span></th>
                                            <td class="bz_td">
                                                <input type="text" name="HMainSourceBillNo" class="layui-input" id="HMainSourceBillNo" placeholder="选择故障登记单" style="background-color:#efefef4d;">
                                                <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" value="0" autocomplete="off" class="layui-input">
@@ -212,7 +212,7 @@
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>负责人</th>
                                            <th>负责人<span style=" color:red">*</span></th>
                                            <td class="bz_td">
                                                <input type="text" name="HManagerName" class="layui-input" id="HManagerName" placeholder="选择负责人" style="background-color:#efefef4d;">
                                                <input type="hidden" name="HManagerID" id="HManagerID" value="0" autocomplete="off" class="layui-input">
@@ -238,6 +238,7 @@
                                            <th>设备名称</th>
                                            <td class="bz_td">
                                                <input type="text" name="HBarName" class="layui-input LineHeight" id="HBarName" style="border-radius: 50px;background-color:#EDEDED;" readonly>
                                                <input type="hidden" name="HNumber" id="HNumber" value="" autocomplete="off" class="layui-input">
                                                <input type="hidden" name="HEquipID" id="HEquipID" value="0" autocomplete="off" class="layui-input">
                                            </td>
                                        </tr>
@@ -454,7 +455,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";
                });
            })
@@ -534,7 +535,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
@@ -690,6 +691,7 @@
            //表头信息选择单据弹窗
            form.on('submit(XDHList)', function () {
                var hnumber = $("HNumber").val()
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -697,7 +699,7 @@
                    title: '设备维修登记单',
                    shift: 2,
                    area: ['90%', '90%'],
                    content: ['../设备管理/Sb_EqpConkBookBillList.html', 'yes'],
                    content: ['../设备管理/Sb_EqpConkBookBillList.html?type=2&HNumber='+hnumber, 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -708,6 +710,10 @@
                        $("#HMainSourceBillNo").val(checkStatus.data[0].单据号);
                        $("#HMainSourceInterID").val(checkStatus.data[0].hmainid);
                        $("#HMainSourceEntryID").val(checkStatus.data[0].hsubid);
                        $("#HEquipID").val(checkStatus.data[0].hmainid);
                        $("#HNumber").val(checkStatus.data[0].设备代码);
                        $("#HBarName").val(checkStatus.data[0].设备名称);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
@@ -851,6 +857,22 @@
            }
            //非空验证
            function AllowLoadData(sSubStr) {
                if ($("#HDeptID").val() == 0) {
                    layer.msg("部门没有选择!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                if ($("#HEmpID").val() == 0) {
                    layer.msg("维修人没有选择!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                if ($("#HRepairID").val() == 0) {
                    layer.msg("维修项目没有选择!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                if ($("#HMainSourceInterID").val() == 0) {
                    layer.msg("故障登记单没有选择!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                if ($("#HManagerID").val() == 0) {
                    layer.msg("负责人没有选择!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
@@ -894,6 +916,7 @@
                        if (result.count == 1) {
                            var data = result.data[0];
                            $("#HEquipID").val(data.HInterID);
                            $("#HNumber").val(data.HEquipFileNumber);
                            $("#HBarName").val(data.HName);
                            $("#HBarSpec").val(data.HModel);
                            $("#HBarModel").val(data.HModel2);
@@ -909,6 +932,7 @@
                            HProcExchBillNoFlag = true;
                            layer.close(index);
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        else {
                            $("#HBarCode").val("");