admin
2024-01-08 22f70cc8b2ba603e82bba058db320dced48f9470
提交 | 用户 | 时间
71e81e 1 @layout("/common/_form.html",{js:["/assets/modular/em/equipmentMaintainTask/equipmentMaintainTask_edit.js"]}){
2
3 <form class="layui-form" id="equipmentMaintainTaskForm" lay-filter="equipmentMaintainTaskForm">
4     <div class="layui-fluid" style="padding-bottom: 75px;">
5         <div class="layui-card">
6             <div class="layui-card-header">基本信息</div>
7             <div class="layui-card-body">
8                 <div class="layui-form-item layui-row">
9                     <input name="id" type="hidden"/>
10                     <input id="materialList" hidden/>
11
12
13                     <div class="layui-inline layui-col-md4">
14                         <label class="layui-form-label">设备编号<span style="color: red;">*</span></label>
15                         <div class="layui-input-block">
16 <!--                            <input id="code" name="code" type="text" class="layui-input layui-disabled" disabled="disabled" lay-verify="required" required/>-->
17                             <input id="equipmentNo" name="equipmentNo" placeholder="请输入设备编号"  type="text" class="layui-input layui-disabled" lay-verify="required" required/>
18                         </div>
19                     </div>
20                     <div class="layui-inline layui-col-md4">
21                         <label class="layui-form-label">设备名称<span style="color: red;">*</span></label>
22                         <div class="layui-input-block">
23                             <input id="equipmentName" name="equipmentName" placeholder="请输入设备名称" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
24                         </div>
25                     </div>
26                     <div class="layui-inline layui-col-md4">
27                         <label class="layui-form-label">任务编号<span style="color: red;">*</span></label>
28                         <div class="layui-input-block">
29                             <input id="taskNo" name="taskNo" placeholder="请输入任务编号" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
30                         </div>
31                     </div>
32                     <div class="layui-inline layui-col-md4">
33                         <label class="layui-form-label">计划编号<span style="color: red;">*</span></label>
34                         <div class="layui-input-block">
35                             <input id="planNo" name="planNo" placeholder="请输入计划编号" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
36                         </div>
37                     </div>
38                     <div class="layui-inline layui-col-md4">
39                         <label class="layui-form-label">计划名称<span style="color: red;">*</span></label>
40                         <div class="layui-input-block">
41                             <input id="planName" name="planName" placeholder="请输入计划名称" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
42                         </div>
43                     </div>
44                     <div class="layui-inline layui-col-md4">
45                         <label class="layui-form-label">保养类别<span style="color: red;">*</span></label>
46                         <div class="layui-input-block">
47                             <input id="maintainType" name="maintainType" placeholder="请输入保养类别(日常保养、一级保养、二级保养、三级保养)" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
48                         </div>
49                     </div>
50                     <div class="layui-inline layui-col-md4">
51                         <label class="layui-form-label">保养状态<span style="color: red;">*</span></label>
52                         <div class="layui-input-block">
53                             <input id="maintainState" name="maintainState" placeholder="请输入保养状态(待保养、保养中、已保养)" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
54                         </div>
55                     </div>
56                     <div class="layui-inline layui-col-md4">
57                         <label class="layui-form-label">保养人<span style="color: red;">*</span></label>
58                         <div class="layui-input-block">
59                             <input id="maintainUser" name="maintainUser" placeholder="请输入保养人" type="text" class="layui-input layui-disabled" lay-verify="required" required/>
60                         </div>
61                     </div>
62                     <div class="layui-inline layui-col-md4">
63                         <label class="layui-form-label">保养结果<span style="color: red;">*</span></label>
64                         <div class="layui-input-block">
65 <!--                            <input id="maintainResult" name="maintainResult" placeholder="请输入保养结果(通过、不通过)" type="text" class="layui-input" lay-verify="required" required/>-->
66                             <select id="maintainResult" name="maintainResult" lay-filter="maintainResult">
67                                 <option value="">请选择保养结果</option>
68                                 <option value="通过">通过</option>
69                                 <option value="不通过">不通过</option>
70                             </select>
71                         </div>
72                     </div>
73                     <div class="layui-inline layui-col-md4">
74                         <label class="layui-form-label">保养描述<span style="color: red;">*</span></label>
75                         <div class="layui-input-block">
76                             <input id="reason" name="reason" placeholder="请输入保养描述" type="text" class="layui-input" lay-verify="required" required/>
77                         </div>
78                     </div>
79                     <div class="layui-inline layui-col-md4">
80                         <label class="layui-form-label">保养价格<span style="color: red;">*</span></label>
81                         <div class="layui-input-block">
82                             <input id="maintainPrice" name="maintainPrice" placeholder="请输入保养价格" type="text" class="layui-input" lay-verify="required" required/>
83                         </div>
84                     </div>
85                     <div class="layui-inline layui-col-md4">
86                         <label class="layui-form-label">外部保养<span style="color: red;">*</span></label>
87                         <div class="layui-input-block">
88 <!--                            <input id="externalMaintain" name="externalMaintain" placeholder="请输入外部保养(是、否)" type="text" class="layui-input" lay-verify="required" required/>-->
89                             <select id="externalMaintain" name="externalMaintain" lay-filter="externalMaintain">
90                                 <option value="">请选择外部保养</option>
91                                 <option value="是">是</option>
92                                 <option value="否">否</option>
93                             </select>
94                         </div>
95                     </div>
96                     <div class="layui-row">
97                         <div class="layui-inline" style="margin-bottom: 10px">
98                             <button id="btnAdds" type="button" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>保养内容配置
99                             </button>
100                         </div>
101                     </div>
102                     <table class="layui-table" id="eqConfTable" lay-filter="eqConfTable"></table>
103 <!--                    <div class="layui-inline layui-col-md12">-->
104 <!--                        <label class="layui-form-label">预留字段1<span style="color: red;">*</span></label>-->
105 <!--                        <div class="layui-input-block">-->
106 <!--                            <input id="spareField1" name="spareField1" placeholder="请输入预留字段1" type="text" class="layui-input" lay-verify="required" required/>-->
107 <!--                        </div>-->
108 <!--                    </div>-->
109 <!--                    <div class="layui-inline layui-col-md12">-->
110 <!--                        <label class="layui-form-label">预留字段2<span style="color: red;">*</span></label>-->
111 <!--                        <div class="layui-input-block">-->
112 <!--                            <input id="spareField2" name="spareField2" placeholder="请输入预留字段2" type="text" class="layui-input" lay-verify="required" required/>-->
113 <!--                        </div>-->
114 <!--                    </div>-->
115 <!--                    <div class="layui-inline layui-col-md12">-->
116 <!--                        <label class="layui-form-label">保养时间<span style="color: red;">*</span></label>-->
117 <!--                        <div class="layui-input-block">-->
118 <!--                            <input id="finishTime" name="finishTime" placeholder="请输入保养时间" type="text" class="layui-input" lay-verify="required" required/>-->
119 <!--                        </div>-->
120 <!--                    </div>-->
121 <!--                    <div class="layui-inline layui-col-md12">-->
122 <!--                        <label class="layui-form-label">保养日期<span style="color: red;">*</span></label>-->
123 <!--                        <div class="layui-input-block">-->
124 <!--                            <input id="maintainTime" name="maintainTime" placeholder="请输入保养日期" type="text" class="layui-input" lay-verify="required" required/>-->
125 <!--                        </div>-->
126 <!--                    </div>-->
127 <!--                    <div class="layui-inline layui-col-md12">-->
128 <!--                        <label class="layui-form-label">备注<span style="color: red;">*</span></label>-->
129 <!--                        <div class="layui-input-block">-->
130 <!--                            <input id="remarks" name="remarks" placeholder="请输入备注" type="text" class="layui-input" lay-verify="required" required/>-->
131 <!--                        </div>-->
132 <!--                    </div>-->
133                 </div>
134             </div>
135         </div>
136     </div>
137     <div class="form-group-bottom text-center">
138         <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
139         <button id="cancel" type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
140     </div>
141
142 </form>
143 <script type="text/html" id="tableBar">
144     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
145 </script>
146
147 <script type="text/html" id="statusTpl">
148     <input type="checkbox" lay-filter="state" value="{{d.id}}" lay-skin="switch" lay-text="已保养|未保养" {{d.maintainResult=='已保养'?'checked':''}} />
149 </script>
150
151
152 @}