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