ch
2022-08-19 63e243c59cc9d1bf89d8b397c6da93f26062137a
WebTM/views/É豸¹ÜÀí/É豸µµ°¸/Gy_EquipFileMainEdit.html
@@ -71,19 +71,19 @@
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备编号</label>
                                                <label class="layui-form-label">设备编号<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HEquipFileNo" id="HEquipFileNo">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备名称</label>
                                                <label class="layui-form-label">设备名称<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HName" id="HName">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备规格</label>
                                                <label class="layui-form-label">设备规格<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HModel" id="HModel">
                                                </div>
@@ -97,7 +97,7 @@
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备代码</label>
                                                <label class="layui-form-label">设备代码<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HEquipFileNumber" id="HEquipFileNumber">
                                                </div>
@@ -125,7 +125,7 @@
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">对应ERP物料</label>
                                                <label class="layui-form-label">对应ERP物料<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" style="float:left;width:150px;">
@@ -135,7 +135,7 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备分类</label>
                                                <label class="layui-form-label">设备分类<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HEquipFileTypeName" id="HEquipFileTypeName" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HEquipFileTypeID" id="HEquipFileTypeID" style="float:left;width:150px;">
@@ -145,7 +145,7 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">单位</label>
                                                <label class="layui-form-label">单位<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HUnitID" id="HUnitID" style="float:left;width:150px;">
@@ -156,7 +156,7 @@
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">供应商</label>
                                                <label class="layui-form-label">供应商<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HSellSupName" id="HSellSupName" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HSellSupID" id="HSellSupID" style="float:left;width:150px;">
@@ -168,7 +168,7 @@
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">使用部门</label>
                                                <label class="layui-form-label">使用部门<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HDeptID" id="HDeptID" style="float:left;width:150px;">
@@ -178,7 +178,7 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">使用负责人</label>
                                                <label class="layui-form-label">使用负责人<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HUseEmpName" id="HUseEmpName" style="float:left;width:150px;">
                                                    <input type="hidden" class="layui-input" name="HUseEmpID" id="HUseEmpID" style="float:left;width:150px;">
@@ -188,7 +188,7 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">维护负责人</label>
                                                <label class="layui-form-label">维护负责人<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" class="layui-input" name="HRepairEmpName" id="HRepairEmpName" style="float:left;width:150px;" y>
                                                    <input type="hidden" class="layui-input" name="HRepairEmpID" id="HRepairEmpID" style="float:left;width:150px;">
@@ -255,7 +255,7 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">设备状态</label>
                                                <label class="layui-form-label">设备状态<label style="color:red"> * </label></label>
                                                <div class="layui-input-block"  style="margin-left: 125px;width:55%;">
                                                    <select name="HStatus" lay-filter="aihao" id="HStatus">
                                                        <option value="空闲" selected="selected">空闲</option>
@@ -848,7 +848,7 @@
                        $("#HUnitName").val(d.data[0].单位);
                        $("#HEquipFileTypeID").val(d.data[0].HEquipFileTypeID);
                        $("#HEquipFileTypeName").val(d.data[0].设备类型);
                        $("#HOutComDate").val(d.data[0].设备出厂日期);
                        $("#HOutComDate").val(formatDate(d.data[0].设备出厂日期));
                        $("#HSellSupID").val(d.data[0].HSellSupID);
                        $("#HSellSupName").val(d.data[0].供应商);
                        $("#HMakeSupID").val(d.data[0].HMakeSupID);
@@ -860,8 +860,8 @@
                        $("#HRepairEmpID").val(d.data[0].HRepairEmpID);
                        $("#HRepairEmpName").val(d.data[0].维护负责人);
                        $("#HAddress").val(d.data[0].安装地点);
                        $("#HSetupDate").val(d.data[0].安装日期);
                        $("#HStartupDate").val(d.data[0].运行开始日期);
                        $("#HSetupDate").val(formatDate(d.data[0].安装日期));
                        $("#HStartupDate").val(formatDate(d.data[0].运行开始日期));
                        $("#HStatus").val(d.data[0].当前状态);
                        $("#HEquipDotCheckRuleInterID").val(d.data[0].HEquipDotCheckRuleInterID);
                        $("#HEquipDotCheckRuleInterName").val(d.data[0].默认点检规程);
@@ -912,15 +912,13 @@
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) {
                                layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                layer.msg(data.Message, { time: 1 * 10000, icon: 1 }, function () {
                                    if (linterid == undefined) {
                                        $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);
                                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                        parent.layer.close(index); //再执行关闭
                                        location.reload();
                                    }
                                    else {
                                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                        parent.layer.close(index); //再执行关闭
                                        location.reload();
                                    }
                                });
                            }
@@ -949,10 +947,10 @@
                                layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                    if (linterid == undefined) {
                                        $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);
                                        location.reload();
                                    }
                                    else {
                                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                        parent.layer.close(index); //再执行关闭
                                        location.reload();
                                    }
                                });