Ver código fonte

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 4 anos atrás
pai
commit
994a110c1b

+ 188 - 208
src/api/advice.js Ver arquivo

@@ -1,271 +1,255 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function getAdviceConfig(type){
4
-    return request({
5
-        url:'/api/getadviceconfigs?type='+type,
6
-        method:'get',
7
-    })
3
+export function getAdviceConfig(type) {
4
+  return request({
5
+    url: '/api/getadviceconfigs?type=' + type,
6
+    method: 'get'
7
+  })
8 8
 }
9 9
 
10
-export function getAllAdviceConfig(){
10
+export function getAllAdviceConfig() {
11 11
   return request({
12
-    url:'/api/getalladviceconfig',
13
-    method:'get',
12
+    url: '/api/getalladviceconfig',
13
+    method: 'get'
14 14
   })
15 15
 }
16 16
 
17
-
18
-
19
-
20
-
21
-export function CreateDoctorAdvice(id, advice){
22
-    return request({
23
-        url:'/api/patients/advice/create?id='+id,
24
-        method:'post',
25
-        data:advice,
26
-    })
17
+export function CreateDoctorAdvice(id, advice) {
18
+  return request({
19
+    url: '/api/patients/advice/create?id=' + id,
20
+    method: 'post',
21
+    data: advice
22
+  })
27 23
 }
28 24
 
29
-
30
-export function EditDoctorAdvice(patient, id, advice){
31
-    return request({
32
-        url:'/api/patients/advice/edit?id='+id + "&patient=" + patient,
33
-        method:'Put',
34
-        data:advice,
35
-    })
25
+export function EditDoctorAdvice(patient, id, advice) {
26
+  return request({
27
+    url: '/api/patients/advice/edit?id=' + id + '&patient=' + patient,
28
+    method: 'Put',
29
+    data: advice
30
+  })
36 31
 }
37 32
 
38
-
39
-export function ExecDoctorAdvice(patient, id, time){
40
-    var params = {
41
-        id:id,
42
-        patient:patient,
43
-        execution_time: time,
44
-    }
45
-    return request({
46
-        url:'/api/patients/advice/exec',
47
-        method:'Post',
48
-        params:params,
49
-    })
33
+export function ExecDoctorAdvice(patient, id, time) {
34
+  var params = {
35
+    id: id,
36
+    patient: patient,
37
+    execution_time: time
38
+  }
39
+  return request({
40
+    url: '/api/patients/advice/exec',
41
+    method: 'Post',
42
+    params: params
43
+  })
50 44
 }
51
-export function CheckDoctorAdvice(patient, id){
52
-    var params = {
53
-        id:id,
54
-        patient:patient,
55
-        // execution_time: time,
56
-    }
57
-    return request({
58
-        url:'/api/patients/advice/check',
59
-        method:'Post',
60
-        params:params,
61
-    })
45
+export function CheckDoctorAdvice(patient, id) {
46
+  var params = {
47
+    id: id,
48
+    patient: patient
49
+    // execution_time: time,
50
+  }
51
+  return request({
52
+    url: '/api/patients/advice/check',
53
+    method: 'Post',
54
+    params: params
55
+  })
62 56
 }
63
-export function CheckGroupAdvice(groupno){
64
-    var params = {
65
-        groupno:groupno,
66
-    }
67
-    return request({
68
-        url:'/api/patients/advice/checkgroup',
69
-        method:'Post',
70
-        params:params,
71
-    })
57
+export function CheckGroupAdvice(groupno) {
58
+  var params = {
59
+    groupno: groupno
60
+  }
61
+  return request({
62
+    url: '/api/patients/advice/checkgroup',
63
+    method: 'Post',
64
+    params: params
65
+  })
72 66
 }
73 67
 
74
-
75
-export function getDoctorAdviceList(params){
76
-    return request({
77
-        url:'/api/patients/advices',
78
-        method:'Get',
79
-        params:params,
80
-    })
68
+export function getDoctorAdviceList(params) {
69
+  return request({
70
+    url: '/api/patients/advices',
71
+    method: 'Get',
72
+    params: params
73
+  })
81 74
 }
82 75
 
83
-
84
-export function StopDoctorAdvice(id, reason){
85
-    return request({
86
-        url:'/api/patients/advice/stop?id='+id,
87
-        method:'Post',
88
-        data:reason,
89
-    })
76
+export function StopDoctorAdvice(id, reason) {
77
+  return request({
78
+    url: '/api/patients/advice/stop?id=' + id,
79
+    method: 'Post',
80
+    data: reason
81
+  })
90 82
 }
91 83
 
92
-export function StopGroupAdvice(groupno, reason){
93
-    return request({
94
-        url:'/api/patients/advice/stopgroup?groupno='+groupno,
95
-        method:'Post',
96
-        data:reason,
97
-    })
84
+export function StopGroupAdvice(groupno, reason) {
85
+  return request({
86
+    url: '/api/patients/advice/stopgroup?groupno=' + groupno,
87
+    method: 'Post',
88
+    data: reason
89
+  })
98 90
 }
99 91
 
100
-export function ExecGroupAdvice(groupno, time){
101
-    return request({
102
-        url:'/api/patients/advice/execgroup?groupno='+groupno +'&execution_time='+time,
103
-        method:'Post',
104
-    })
92
+export function ExecGroupAdvice(groupno, time) {
93
+  return request({
94
+    url: '/api/patients/advice/execgroup?groupno=' + groupno + '&execution_time=' + time,
95
+    method: 'Post'
96
+  })
105 97
 }
106 98
 
107
-export function DeleteDoctorAdvice(id){
108
-    return request({
109
-        url:'/api/patients/advice/delete?id='+id,
110
-        method:'Delete',
111
-    })
99
+export function DeleteDoctorAdvice(id) {
100
+  return request({
101
+    url: '/api/patients/advice/delete?id=' + id,
102
+    method: 'Delete'
103
+  })
112 104
 }
113 105
 
114
-export function CreateDrugDic(data){
115
-    return request({
116
-        url:'/api/drugdic/create',
117
-        method:'post',
118
-        data:data,
119
-    })
106
+export function CreateDrugDic(data) {
107
+  return request({
108
+    url: '/api/drugdic/create',
109
+    method: 'post',
110
+    data: data
111
+  })
120 112
 }
121
-export function UpdateDrugDic(id, data){
122
-    return request({
123
-        url:'/api/drugdic/update?id=' + id,
124
-        method:'put',
125
-        data:data,
126
-    })
113
+export function UpdateDrugDic(id, data) {
114
+  return request({
115
+    url: '/api/drugdic/update?id=' + id,
116
+    method: 'put',
117
+    data: data
118
+  })
127 119
 }
128
-export function DeleteDrugDic(id){
129
-    return request({
130
-        url:'/api/drugdic/delete?id=' + id,
131
-        method:'delete',
132
-    })
120
+export function DeleteDrugDic(id) {
121
+  return request({
122
+    url: '/api/drugdic/delete?id=' + id,
123
+    method: 'delete'
124
+  })
133 125
 }
134 126
 
135
-export function CreateDrugWay(data){
136
-    return request({
137
-        url:'/api/drugway/create',
138
-        method:'post',
139
-        data:data,
140
-    })
127
+export function CreateDrugWay(data) {
128
+  return request({
129
+    url: '/api/drugway/create',
130
+    method: 'post',
131
+    data: data
132
+  })
141 133
 }
142 134
 
143
-export function UpdateDrugWay(id, data){
144
-    return request({
145
-        url:'/api/drugway/update?id=' + id,
146
-        method:'put',
147
-        data:data,
148
-    })
135
+export function UpdateDrugWay(id, data) {
136
+  return request({
137
+    url: '/api/drugway/update?id=' + id,
138
+    method: 'put',
139
+    data: data
140
+  })
149 141
 }
150
-export function DeleteDrugWay(id){
151
-    return request({
152
-        url:'/api/drugway/delete?id=' + id,
153
-        method:'delete',
154
-    })
142
+export function DeleteDrugWay(id) {
143
+  return request({
144
+    url: '/api/drugway/delete?id=' + id,
145
+    method: 'delete'
146
+  })
155 147
 }
156 148
 
157
-export function CreateExecutionFrequency(data){
158
-    return request({
159
-        url:'/api/executionfrequency/create',
160
-        method:'post',
161
-        data:data,
162
-    })
149
+export function CreateExecutionFrequency(data) {
150
+  return request({
151
+    url: '/api/executionfrequency/create',
152
+    method: 'post',
153
+    data: data
154
+  })
163 155
 }
164 156
 
165
-export function UpdateExecutionFrequency(id, data){
166
-    return request({
167
-        url:'/api/executionfrequency/update?id=' + id,
168
-        method:'put',
169
-        data:data,
170
-    })
157
+export function UpdateExecutionFrequency(id, data) {
158
+  return request({
159
+    url: '/api/executionfrequency/update?id=' + id,
160
+    method: 'put',
161
+    data: data
162
+  })
171 163
 }
172
-export function DeleteExecutionFrequency(id){
173
-    return request({
174
-        url:'/api/executionfrequency/delete?id=' + id,
175
-        method:'delete',
176
-    })
164
+export function DeleteExecutionFrequency(id) {
165
+  return request({
166
+    url: '/api/executionfrequency/delete?id=' + id,
167
+    method: 'delete'
168
+  })
177 169
 }
178
-export function CreateAdviceTemplate(data){
179
-    return request({
180
-        url:'/api/advicetemplate/create',
181
-        method:'post',
182
-        data:data,
183
-    })
170
+export function CreateAdviceTemplate(data) {
171
+  return request({
172
+    url: '/api/advicetemplate/create',
173
+    method: 'post',
174
+    data: data
175
+  })
184 176
 }
185 177
 
186
-export function UpdateAdviceTemplate(id, data){
187
-    return request({
188
-        url:'/api/advicetemplate/update?id=' + id,
189
-        method:'put',
190
-        data:data,
191
-    })
178
+export function UpdateAdviceTemplate(id, data) {
179
+  return request({
180
+    url: '/api/advicetemplate/update?id=' + id,
181
+    method: 'put',
182
+    data: data
183
+  })
192 184
 }
193
-export function DeleteAdviceTemplate(id,template_id,parent_id){
194
-    return request({
195
-        url:'/api/advicetemplate/delete?id=' + id+"&template_id="+template_id+"&parent_id="+parent_id,
196
-        method:'delete',
197
-    })
185
+export function DeleteAdviceTemplate(id, template_id, parent_id) {
186
+  return request({
187
+    url: '/api/advicetemplate/delete?id=' + id + '&template_id=' + template_id + '&parent_id=' + parent_id,
188
+    method: 'delete'
189
+  })
198 190
 }
199 191
 
200
-
201
-export function postAdviceTemplate(params,name,advice_type){
192
+export function postAdviceTemplate(params, name, advice_type) {
202 193
   return request({
203
-    url:'/api/advicetemplate/create?template_name='+name+"&advice_type="+advice_type,
204
-    method:'post',
205
-    data:params
194
+    url: '/api/advicetemplate/create?template_name=' + name + '&advice_type=' + advice_type,
195
+    method: 'post',
196
+    data: params
206 197
   })
207 198
 }
208 199
 
209
-export function CreateGroupAdvice(id, groupno, advices){
210
-  if(advices.remind > 0){
200
+export function CreateGroupAdvice(id, groupno, advices) {
201
+  if (advices.remind > 0) {
211 202
     return request({
212
-      url:'/api/patients/advice/creategroup?id='+id + '&groupno=' + groupno,
213
-      method:'post',
214
-      data:advices,
203
+      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno,
204
+      method: 'post',
205
+      data: advices
215 206
     })
216
-
217
-  }else{
207
+  } else {
218 208
     return request({
219
-      url:'/api/patients/advice/creategroup?id='+id + '&groupno=' + groupno,
220
-      method:'post',
221
-      data:advices,
209
+      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno,
210
+      method: 'post',
211
+      data: advices
222 212
     })
223
-
224 213
   }
225
-
226 214
 }
227
-export function DeleteGroupAdvice(groupno){
215
+export function DeleteGroupAdvice(groupno) {
228 216
   return request({
229
-      url:'/api/patients/advice/deletegroup?groupno='+groupno,
230
-      method:'delete',
217
+    url: '/api/patients/advice/deletegroup?groupno=' + groupno,
218
+    method: 'delete'
231 219
   })
232 220
 }
233 221
 
234
-
235
-
236
-export function getAllAdviceTemplate(){
222
+export function getAllAdviceTemplate() {
237 223
   return request({
238
-    url:'/api/advicetemplate/list',
239
-    method:'get',
224
+    url: '/api/advicetemplate/list',
225
+    method: 'get'
240 226
   })
241 227
 }
242 228
 
243
-
244
-export function CreateSingleAdviceTemplate(advices){
229
+export function CreateSingleAdviceTemplate(advices) {
245 230
   return request({
246
-    url:'/api/advicetemplate/add',
247
-    method:'post',
248
-    params:advices,
231
+    url: '/api/advicetemplate/add',
232
+    method: 'post',
233
+    params: advices
249 234
 
250 235
   })
251 236
 }
252
-export function DeleteParentAdviceTemplate(id){
237
+export function DeleteParentAdviceTemplate(id) {
253 238
   return request({
254
-    url:'/api/adviceparenttemplate/delete?template_id='+id,
255
-    method:'delete',
239
+    url: '/api/adviceparenttemplate/delete?template_id=' + id,
240
+    method: 'delete'
256 241
 
257 242
   })
258 243
 }
259 244
 
260
-export function CreateSubAdvice(params){
245
+export function CreateSubAdvice(params) {
261 246
   return request({
262
-    url:'/api/subadvice/create',
263
-    method:'post',
264
-    params:params,
247
+    url: '/api/subadvice/create',
248
+    method: 'post',
249
+    params: params
265 250
   })
266 251
 }
267 252
 
268
-
269 253
 export function updateTemplateName(params) {
270 254
   return request({
271 255
     url: '/api/template/modify',
@@ -277,42 +261,38 @@ export function updateTemplateName(params) {
277 261
 export function getDoctorAdviceConfig() {
278 262
   return request({
279 263
     url: '/api/adviceconfig/get',
280
-    method: 'get',
264
+    method: 'get'
281 265
   })
282 266
 }
283 267
 
284
-
285 268
 export function postDoctorAdviceConfig(params) {
286 269
   return request({
287 270
     url: '/api/adviceconfig/isopen',
288 271
     method: 'post',
289
-    params:params,
272
+    params: params
290 273
   })
291 274
 }
292 275
 
293
-
294
-
295
-
296
-
297
-
298
-
299 276
 export function getDoctorInitConfig() {
300 277
   return request({
301 278
     url: '/api/advicetemplate/init/get',
302
-    method: 'get',
279
+    method: 'get'
303 280
   })
304 281
 }
305 282
 
306
-
307 283
 export function PostInitAdviceTemplate(params) {
308 284
   return request({
309 285
     url: '/api/advicetemplate/init/commit',
310 286
     method: 'post',
311
-    params:params
287
+    params: params
312 288
 
313 289
   })
314 290
 }
315 291
 
316
-
317
-
318
-
292
+export function getPrintInfo(id, params) {
293
+  return request({
294
+    url: '/api/advicetemplate/getprintinfo?id=' + id,
295
+    method: 'get',
296
+    params: params
297
+  })
298
+}

+ 10 - 0
src/styles/index.scss Ver arquivo

@@ -532,3 +532,13 @@ code {
532 532
 .el-checkbox__inner {
533 533
   border: 1px solid #696969 !important;
534 534
 }
535
+
536
+.el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
537
+.el-table__body tr.current-row > td {
538
+  background-color: #409eff;
539
+  color: #fff;
540
+}
541
+
542
+.el-table__body tr:hover > td {
543
+  background-color: #409eff !important;
544
+}

Diferenças do arquivo suprimidas por serem muito extensas
+ 418 - 2012
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


+ 244 - 232
src/xt_pages/management/components/MultipleForm.vue Ver arquivo

@@ -1,16 +1,16 @@
1 1
 <template>
2
-  <div>
2
+  <div class="allDialog">
3 3
     <el-dialog
4 4
       title="综合查询"
5 5
       :visible.sync="dialogVisible"
6 6
       width="95%"
7 7
       center
8 8
     >
9
-      <el-form>
9
+      <el-form style="height:100%">
10 10
         <el-row :gutter="20">
11
-          <el-col :span="6">
11
+          <el-col :span="4">
12 12
             <el-form-item label="透析分区:">
13
-              <el-select style="width:120px" v-model="form.zone">
13
+              <el-select style="width:110px" v-model="form.zone">
14 14
                 <el-option
15 15
                   v-for="item in this.DeviceType"
16 16
                   :key="item.id"
@@ -20,9 +20,9 @@
20 20
               </el-select>
21 21
             </el-form-item>
22 22
           </el-col>
23
-          <el-col :span="6">
23
+          <el-col :span="4">
24 24
             <el-form-item label="机号:">
25
-              <el-select style="width:120px" v-model="form.device_number">
25
+              <el-select style="width:110px" v-model="form.device_number">
26 26
                 <el-option
27 27
                   v-for="item in this.Numbers"
28 28
                   :key="item.id"
@@ -32,9 +32,9 @@
32 32
               </el-select>
33 33
             </el-form-item>
34 34
           </el-col>
35
-          <el-col :span="6">
35
+          <el-col :span="4">
36 36
             <el-form-item label="设备类型:">
37
-              <el-select style="width:120px" v-model="form.device_type">
37
+              <el-select style="width:110px" v-model="form.device_type">
38 38
                 <el-option
39 39
                   v-for="item in this.EquitmentType"
40 40
                   :key="item.id"
@@ -44,9 +44,9 @@
44 44
               </el-select>
45 45
             </el-form-item>
46 46
           </el-col>
47
-          <el-col :span="6">
47
+          <el-col :span="4">
48 48
             <el-form-item label="设备型号:">
49
-              <el-select style="width:120px" v-model="form.device_model">
49
+              <el-select style="width:110px" v-model="form.device_model">
50 50
                 <el-option
51 51
                   v-for="item in this.EquitmentName"
52 52
                   :key="item.id"
@@ -56,11 +56,9 @@
56 56
               </el-select>
57 57
             </el-form-item>
58 58
           </el-col>
59
-        </el-row>
60
-        <el-row>
61
-          <el-col :span="7">
59
+          <el-col :span="4">
62 60
             <el-form-item label="使用年限:">
63
-              <el-select style="width:120px" v-model="form.user_year">
61
+              <el-select style="width:110px" v-model="form.user_year">
64 62
                 <el-option
65 63
                   v-for="item in this.userYear"
66 64
                   :key="item.id"
@@ -70,7 +68,9 @@
70 68
               </el-select>
71 69
             </el-form-item>
72 70
           </el-col>
73
-          <el-col :span="7">
71
+        </el-row>
72
+        <el-row>
73
+          <el-col :span="8">
74 74
             <div class="cell clearfix">
75 75
               <label class="title">
76 76
                 <span class="name">日期查询</span> :
@@ -104,7 +104,7 @@
104 104
               ></el-date-picker>
105 105
             </div>
106 106
           </el-col>
107
-          <el-col :span="5">
107
+          <el-col :span="4">
108 108
             <el-form-item label="合计:">
109 109
               故障次数
110 110
               <span>{{ failure_times }}</span
@@ -118,161 +118,165 @@
118 118
             >
119 119
           </el-col>
120 120
         </el-row>
121
-        <el-row>
122
-          <el-table :data="tableData" border style="width:100%">
123
-            <el-table-column
124
-              prop="date"
125
-              label="序号"
126
-              width="60"
127
-              align="center"
128
-              type="index"
129
-            >
130
-              <!-- <template slot-scope="scope">
121
+        <!-- <el-row> -->
122
+        <el-table
123
+          :data="tableData"
124
+          border
125
+          style="width:100%"
126
+          height="80%"
127
+          :row-style="{ color: '#303133' }"
128
+          :header-cell-style="{
129
+            backgroundColor: 'rgb(245, 247, 250)',
130
+            color: '#606266'
131
+          }"
132
+        >
133
+          <el-table-column
134
+            prop="date"
135
+            label="序号"
136
+            width="60"
137
+            align="center"
138
+            type="index"
139
+          >
140
+            <!-- <template slot-scope="scope">
131 141
                 {{ scope.row.id }}
132 142
               </template>-->
133
-            </el-table-column>
134
-            <el-table-column prop="name" label="分区" width="60" align="center">
135
-              <template slot-scope="scope">{{ scope.row.name }}</template>
136
-            </el-table-column>
137
-            <el-table-column
138
-              prop="address"
139
-              label="序列号"
140
-              width="80"
141
-              align="center"
142
-            >
143
-              <template slot-scope="scope">{{
144
-                scope.row.serial_number
145
-              }}</template>
146
-            </el-table-column>
147
-            <el-table-column
148
-              prop="address"
149
-              label="设备类型"
150
-              width="100"
151
-              align="center"
152
-            >
153
-              <template slot-scope="scope">{{
154
-                scope.row.device_type
155
-              }}</template>
156
-            </el-table-column>
157
-            <el-table-column
158
-              prop="address"
159
-              label="机号"
160
-              width="80"
161
-              align="center"
162
-            >
163
-              <template slot-scope="scope">{{ scope.row.bed_number }}</template>
164
-            </el-table-column>
165
-            <el-table-column
166
-              prop="address"
167
-              label="设备名称"
168
-              width="100"
169
-              align="center"
170
-            >
171
-              <template slot-scope="scope">{{
172
-                scope.row.device_name
173
-              }}</template>
174
-            </el-table-column>
175
-            <el-table-column
176
-              prop="address"
177
-              label="设备型号"
178
-              width="100"
179
-              align="center"
180
-            >
181
-              <template slot-scope="scope">{{
182
-                scope.row.unit_type
183
-              }}</template>
184
-            </el-table-column>
185
-            <el-table-column
186
-              prop="address"
187
-              label="启用日期"
188
-              width="100"
189
-              align="center"
190
-            >
191
-              <template slot-scope="scope">{{
192
-                getTime(scope.row.start_date)
193
-              }}</template>
194
-            </el-table-column>
195
-            <el-table-column
196
-              prop="address"
197
-              label="保修期限"
198
-              width="100"
199
-              align="center"
200
-            >
201
-              <template slot-scope="scope">{{
202
-                scope.row.guarantee_date
203
-              }}</template>
204
-            </el-table-column>
205
-            <el-table-column
206
-              prop="address"
207
-              label="机器状态"
208
-              width="100"
209
-              align="center"
210
-            >
211
-              <template slot-scope="scope">{{
212
-                scope.row.machine_status
213
-              }}</template>
214
-            </el-table-column>
215
-            <el-table-column
216
-              prop="address"
217
-              label="报废日期"
218
-              width="100"
219
-              align="center"
220
-            >
221
-              <template slot-scope="scope">{{
222
-                getTime(scope.row.rubbish_date)
223
-              }}</template>
224
-            </el-table-column>
225
-            <el-table-column
226
-              prop="address"
227
-              label="报废原因"
228
-              width="100"
229
-              align="center"
230
-            >
231
-              <template slot-scope="scope">{{
232
-                scope.row.rubbish_reason
233
-              }}</template>
234
-            </el-table-column>
235
-            <el-table-column
236
-              prop="address"
237
-              label="使用年限"
238
-              width="100"
239
-              align="center"
240
-            >
241
-              <template slot-scope="scope">{{ scope.row.user_year }}</template>
242
-            </el-table-column>
243
-            <el-table-column
244
-              prop="address"
245
-              label="工作时长"
246
-              width="100"
247
-              align="center"
248
-            >
249
-              <template slot-scope="scope">{{ scope.row.work_time }}</template>
250
-            </el-table-column>
251
-            <el-table-column
252
-              prop="address"
253
-              label="使用次数"
254
-              width="100"
255
-              align="center"
256
-            >
257
-              <template slot-scope="scope">{{ scope.row.user_total }}</template>
258
-            </el-table-column>
259
-            <el-table-column
260
-              prop="address"
261
-              label="故障次数"
262
-              width="100"
263
-              align="center"
264
-            >
265
-              <template slot-scope="scope">{{ failure }}</template>
266
-            </el-table-column>
267
-          </el-table>
268
-        </el-row>
143
+          </el-table-column>
144
+          <el-table-column prop="name" label="分区" width="60" align="center">
145
+            <template slot-scope="scope">{{ scope.row.name }}</template>
146
+          </el-table-column>
147
+          <el-table-column
148
+            prop="address"
149
+            label="序列号"
150
+            width="80"
151
+            align="center"
152
+          >
153
+            <template slot-scope="scope">{{
154
+              scope.row.serial_number
155
+            }}</template>
156
+          </el-table-column>
157
+          <el-table-column
158
+            prop="address"
159
+            label="设备类型"
160
+            width="100"
161
+            align="center"
162
+          >
163
+            <template slot-scope="scope">{{ scope.row.device_type }}</template>
164
+          </el-table-column>
165
+          <el-table-column
166
+            prop="address"
167
+            label="机号"
168
+            width="80"
169
+            align="center"
170
+          >
171
+            <template slot-scope="scope">{{ scope.row.bed_number }}</template>
172
+          </el-table-column>
173
+          <el-table-column
174
+            prop="address"
175
+            label="设备名称"
176
+            width="100"
177
+            align="center"
178
+          >
179
+            <template slot-scope="scope">{{ scope.row.device_name }}</template>
180
+          </el-table-column>
181
+          <el-table-column
182
+            prop="address"
183
+            label="设备型号"
184
+            width="100"
185
+            align="center"
186
+          >
187
+            <template slot-scope="scope">{{ scope.row.unit_type }}</template>
188
+          </el-table-column>
189
+          <el-table-column
190
+            prop="address"
191
+            label="启用日期"
192
+            width="100"
193
+            align="center"
194
+          >
195
+            <template slot-scope="scope">{{
196
+              getTime(scope.row.start_date)
197
+            }}</template>
198
+          </el-table-column>
199
+          <el-table-column
200
+            prop="address"
201
+            label="保修期限"
202
+            width="100"
203
+            align="center"
204
+          >
205
+            <template slot-scope="scope">{{
206
+              scope.row.guarantee_date
207
+            }}</template>
208
+          </el-table-column>
209
+          <el-table-column
210
+            prop="address"
211
+            label="机器状态"
212
+            width="100"
213
+            align="center"
214
+          >
215
+            <template slot-scope="scope">{{
216
+              scope.row.machine_status
217
+            }}</template>
218
+          </el-table-column>
219
+          <el-table-column
220
+            prop="address"
221
+            label="报废日期"
222
+            width="100"
223
+            align="center"
224
+          >
225
+            <template slot-scope="scope">{{
226
+              getTime(scope.row.rubbish_date)
227
+            }}</template>
228
+          </el-table-column>
229
+          <el-table-column
230
+            prop="address"
231
+            label="报废原因"
232
+            width="100"
233
+            align="center"
234
+          >
235
+            <template slot-scope="scope">{{
236
+              scope.row.rubbish_reason
237
+            }}</template>
238
+          </el-table-column>
239
+          <el-table-column
240
+            prop="address"
241
+            label="使用年限"
242
+            width="100"
243
+            align="center"
244
+          >
245
+            <template slot-scope="scope">{{ scope.row.user_year }}</template>
246
+          </el-table-column>
247
+          <el-table-column
248
+            prop="address"
249
+            label="工作时长"
250
+            width="100"
251
+            align="center"
252
+          >
253
+            <template slot-scope="scope">{{ scope.row.work_time }}</template>
254
+          </el-table-column>
255
+          <el-table-column
256
+            prop="address"
257
+            label="使用次数"
258
+            width="100"
259
+            align="center"
260
+          >
261
+            <template slot-scope="scope">{{ scope.row.user_total }}</template>
262
+          </el-table-column>
263
+          <el-table-column
264
+            prop="address"
265
+            label="故障次数"
266
+            width="100"
267
+            align="center"
268
+          >
269
+            <template slot-scope="scope">{{ failure }}</template>
270
+          </el-table-column>
271
+        </el-table>
272
+        <!-- </el-row> -->
269 273
       </el-form>
270
-      <span slot="footer" class="dialog-footer">
274
+      <!-- <span slot="footer" class="dialog-footer">
271 275
         <el-button @click="dialogVisible = false">取 消</el-button>
272 276
         <el-button type="primary" @click="dialogVisible = false"
273 277
           >确 定</el-button
274 278
         >
275
-      </span>
279
+      </span> -->
276 280
     </el-dialog>
277 281
   </div>
278 282
 </template>
@@ -283,10 +287,10 @@ import {
283 287
   getAllEquimentName,
284 288
   getComprehensive,
285 289
   getTotalCount
286
-} from '@/api/manage'
287
-import { uParseTime } from '@/utils/tools'
290
+} from "@/api/manage";
291
+import { uParseTime } from "@/utils/tools";
288 292
 export default {
289
-  name: 'MultipleForm',
293
+  name: "MultipleForm",
290 294
   props: {
291 295
     equimentid: Number
292 296
   },
@@ -296,77 +300,77 @@ export default {
296 300
       failure: 0,
297 301
       dialogVisible: false,
298 302
       form: {
299
-        zone: '',
300
-        device_number: '',
301
-        device_type: '',
302
-        device_model: '',
303
-        user_year: '',
304
-        start_time: '',
305
-        end_time: ''
303
+        zone: "",
304
+        device_number: "",
305
+        device_type: "",
306
+        device_model: "",
307
+        user_year: "",
308
+        start_time: "",
309
+        end_time: ""
306 310
       },
307 311
       userYear: [
308
-        { id: 0, name: '全部' },
309
-        { id: 1, name: '0~1' },
310
-        { id: 2, name: '1~3' },
311
-        { id: 3, name: '3~10' },
312
-        { id: 4, name: '10年以上' }
312
+        { id: 0, name: "全部" },
313
+        { id: 1, name: "0~1" },
314
+        { id: 2, name: "1~3" },
315
+        { id: 3, name: "3~10" },
316
+        { id: 4, name: "10年以上" }
313 317
       ],
314
-      value1: '',
315
-      value2: '',
318
+      value1: "",
319
+      value2: "",
316 320
       tableData: [],
317 321
       EquitmentType: [
318
-        { id: 0, name: '全部' },
319
-        { id: 1, name: '透析机' },
320
-        { id: 2, name: '水处理机' },
321
-        { id: 3, name: '报废机' },
322
-        { id: 4, name: '其他' }
322
+        { id: 0, name: "全部" },
323
+        { id: 1, name: "透析机" },
324
+        { id: 2, name: "水处理机" },
325
+        { id: 3, name: "报废机" },
326
+        { id: 4, name: "其他" }
323 327
       ],
324
-      DeviceType: [{ id: 0, name: '不限' }],
325
-      Numbers: [{ id: 0, number: '不限' }],
326
-      EquitmentName: [{ id: 0, equitment_name: '全部' }],
328
+      DeviceType: [{ id: 0, name: "不限" }],
329
+      Numbers: [{ id: 0, number: "不限" }],
330
+      EquitmentName: [{ id: 0, equitment_name: "全部" }],
327 331
       runOptions: [
328
-        { value: '1', label: '正常' },
329
-        { value: '2', label: '故障' }
332
+        { value: "1", label: "正常" },
333
+        { value: "2", label: "故障" }
330 334
       ]
331
-    }
335
+    };
332 336
   },
333 337
   methods: {
334 338
     open: function() {
335
-      this.dialogVisible = true
339
+      this.dialogVisible = true;
336 340
     },
337 341
     getAllSubregion() {
338 342
       getAllSubregion().then(response => {
339 343
         if (response.data.state === 1) {
340
-          var zone = response.data.data.zones
341
-          var zones = [{ id: 0, name: '不限' }]
344
+          var zone = response.data.data.zones;
345
+          var zones = [{ id: 0, name: "不限" }];
342 346
           for (let i = 0; i < zone.length; i++) {
343
-            const item = zone[i]
344
-            zones.push({ id: item.id, name: item.name })
347
+            const item = zone[i];
348
+            zones.push({ id: item.id, name: item.name });
345 349
           }
346
-          this.DeviceType = zones
347
-          var number = response.data.data.numbers
348
-          var numbers = [{ id: 0, number: '不限' }]
350
+          this.DeviceType = zones;
351
+          var number = response.data.data.numbers;
352
+          var numbers = [{ id: 0, number: "不限" }];
349 353
           for (let index = 0; index < number.length; index++) {
350
-            const item = number[index]
351
-            numbers.push({ id: item.id, number: item.number })
354
+            const item = number[index];
355
+            numbers.push({ id: item.id, number: item.number });
352 356
           }
353
-          this.Numbers = numbers
357
+          this.Numbers = numbers;
354 358
           // console.log('numbers', number)
355 359
         }
356
-      })
360
+      });
357 361
     },
358 362
     getAllEquimentName() {
359 363
       getAllEquimentName().then(response => {
360 364
         if (response.data.state == 1) {
361
-          var equit = response.data.data.equit
362
-          var equits = [{ id: 0, equitment_name: '全部' }]
365
+          var equit = response.data.data.equit;
366
+          var equits = [{ id: 0, equitment_name: "全部" }];
363 367
           for (let index = 0; index < equit.length; index++) {
364
-            const item = equit[index]
365
-            equits.push({ id: item.id, equitment_name: item.equitment_name })
368
+            const item = equit[index];
369
+            equits.push({ id: item.id, equitment_name: item.equitment_name });
366 370
           }
367
-          this.EquitmentName = equits
371
+          this.EquitmentName = equits;
368 372
         }
369
-      })
373
+      });
370 374
     },
371 375
     getComprehensive() {
372 376
       const params = {
@@ -376,66 +380,66 @@ export default {
376 380
         year: this.form.user_year,
377 381
         starttime: this.form.start_time,
378 382
         endtime: this.form.end_time
379
-      }
383
+      };
380 384
       getComprehensive(params).then(response => {
381 385
         if (response.data.state === 1) {
382
-          var macher = response.data.data.macher
383
-          console.log('设备型号5555', macher)
386
+          var macher = response.data.data.macher;
387
+          console.log("设备型号5555", macher);
384 388
           for (let index = 0; index < macher.length; index++) {
385 389
             if (macher[index].device_type === 1) {
386
-              macher[index].device_type = '透析机'
390
+              macher[index].device_type = "透析机";
387 391
             }
388 392
             if (macher[index].device_type === 2) {
389
-              macher[index].device_type = '水处理机'
393
+              macher[index].device_type = "水处理机";
390 394
             }
391 395
             if (macher[index].device_type === 3) {
392
-              macher[index].device_type = '其他'
396
+              macher[index].device_type = "其他";
393 397
             }
394 398
 
395 399
             if (macher[index].machine_status === 1) {
396
-              macher[index].machine_status = '使用机'
400
+              macher[index].machine_status = "使用机";
397 401
             }
398 402
             if (macher[index].machine_status === 2) {
399
-              macher[index].machine_status = '备用机'
403
+              macher[index].machine_status = "备用机";
400 404
             }
401 405
             if (macher[index].machine_status === 3) {
402
-              macher[index].machine_status = '急诊机'
406
+              macher[index].machine_status = "急诊机";
403 407
             }
404 408
             if (macher[index].machine_status === 4) {
405
-              macher[index].machine_status = '报废机'
409
+              macher[index].machine_status = "报废机";
406 410
             }
407 411
             if (macher[index].rubbish_reason === 0) {
408
-              macher[index].rubbish_reason = ''
412
+              macher[index].rubbish_reason = "";
409 413
             }
410 414
           }
411 415
           // console.log('macher', macher)
412
-          this.tableData = macher
416
+          this.tableData = macher;
413 417
         }
414
-      })
418
+      });
415 419
     },
416 420
     getTime(time) {
417 421
       if (time === 0) {
418
-        return ''
422
+        return "";
419 423
       } else {
420
-        return uParseTime(time, '{y}-{m}-{d}')
424
+        return uParseTime(time, "{y}-{m}-{d}");
421 425
       }
422 426
     },
423 427
     getTotalCount() {
424 428
       getTotalCount().then(response => {
425 429
         if (response.data.state === 1) {
426
-          var total = response.data.data.total
430
+          var total = response.data.data.total;
427 431
           // console.log('total ========', total)
428
-          this.failure_times = total
432
+          this.failure_times = total;
429 433
         }
430
-      })
434
+      });
431 435
     }
432 436
   },
433 437
   created() {
434
-    this.getAllSubregion()
435
-    this.getAllEquimentName()
436
-    this.getTotalCount()
438
+    this.getAllSubregion();
439
+    this.getAllEquimentName();
440
+    this.getTotalCount();
437 441
   }
438
-}
442
+};
439 443
 </script>
440 444
 
441 445
 <style scoped></style>
@@ -446,4 +450,12 @@ export default {
446 450
 .el-table__body {
447 451
   width: 100% !important;
448 452
 }
453
+.allDialog {
454
+  .el-dialog {
455
+    height: 90%;
456
+  }
457
+  .el-dialog__body {
458
+    max-height: calc(100vh - 200px) !important;
459
+  }
460
+}
449 461
 </style>

+ 12 - 3
src/xt_pages/management/components/PlanForm.vue Ver arquivo

@@ -40,7 +40,7 @@
40 40
                 allow-create
41 41
                 default-first-option
42 42
                 placeholder="请选择时间"
43
-                style="width: 140px;"
43
+                style="width: 135px;"
44 44
               >
45 45
                 <el-option
46 46
                   v-for="item in this.timeType"
@@ -60,7 +60,7 @@
60 60
                 allow-create
61 61
                 default-first-option
62 62
                 placeholder="请选择时间"
63
-                style="width: 140px;"
63
+                style="width: 135px;"
64 64
               >
65 65
                 <el-option
66 66
                   v-for="item in this.classType"
@@ -281,4 +281,13 @@ export default {
281 281
 };
282 282
 </script>
283 283
 
284
-<style scoped></style>
284
+<style lang="scss">
285
+#plan-form {
286
+  .el-form-item__label {
287
+    width: 100px;
288
+  }
289
+  .el-dialog__footer {
290
+    text-align: right;
291
+  }
292
+}
293
+</style>

+ 58 - 53
src/xt_pages/management/components/QualityForm.vue Ver arquivo

@@ -13,8 +13,9 @@
13 13
         </el-select>
14 14
       </el-col>
15 15
       <el-col :span="6">
16
+        <span class="machineClass">取样标本:</span>
16 17
         <el-select
17
-          style="width:175px"
18
+          style="width:130px"
18 19
           v-model="forms.sename"
19 20
           @change="changeTable"
20 21
         >
@@ -49,19 +50,19 @@
49 50
         ></el-date-picker>
50 51
       </el-col>
51 52
       <el-col :span="2">
52
-        <el-button @click="queryTable()">查询</el-button>
53
+        <el-button type="primary" @click="queryTable()">查询</el-button>
53 54
       </el-col>
54 55
       <!-- <el-col :span="2">
55 56
         <el-button>打印</el-button>
56 57
       </el-col>-->
57 58
     </el-row>
58
-    <el-row>
59
+    <el-row style="display: flex;align-items: center;">
59 60
       <el-col :span="2">
60 61
         <el-checkbox v-model="checkAllStatus" @change="changeCheck"
61 62
           >全选</el-checkbox
62 63
         >
63 64
       </el-col>
64
-      <el-col :span="3" class="a">
65
+      <el-col :span="3">
65 66
         <el-button size="small" @click="BatchDelete" v-show="show"
66 67
           >批量删除</el-button
67 68
         >
@@ -78,7 +79,11 @@
78 79
       <el-table
79 80
         ref="multipleTable"
80 81
         @selection-change="handleSelectionChange"
81
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
82
+        :row-style="{ color: '#303133' }"
83
+        :header-cell-style="{
84
+          backgroundColor: 'rgb(245, 247, 250)',
85
+          color: '#606266'
86
+        }"
82 87
         :data="tableData"
83 88
         border
84 89
         fit
@@ -100,9 +105,9 @@
100 105
           width="100"
101 106
           align="center"
102 107
         >
103
-          <template slot-scope="scope">{{
104
-            getTime(scope.row.speling_date)
105
-          }}</template>
108
+          <template slot-scope="scope">
109
+            {{ getTime(scope.row.speling_date) }}
110
+          </template>
106 111
         </el-table-column>
107 112
         <el-table-column
108 113
           prop="address"
@@ -118,9 +123,9 @@
118 123
           width="80"
119 124
           align="center"
120 125
         >
121
-          <template slot-scope="scope">{{
122
-            scope.row.concentrate_noa
123
-          }}</template>
126
+          <template slot-scope="scope">
127
+            {{ scope.row.concentrate_noa }}
128
+          </template>
124 129
         </el-table-column>
125 130
         <el-table-column
126 131
           prop="address"
@@ -128,9 +133,9 @@
128 133
           width="80"
129 134
           align="center"
130 135
         >
131
-          <template slot-scope="scope">{{
132
-            scope.row.concentrate_nob
133
-          }}</template>
136
+          <template slot-scope="scope">
137
+            {{ scope.row.concentrate_nob }}
138
+          </template>
134 139
         </el-table-column>
135 140
         <el-table-column
136 141
           prop="address"
@@ -138,9 +143,9 @@
138 143
           width="100"
139 144
           align="center"
140 145
         >
141
-          <template slot-scope="scope">{{
142
-            scope.row.sampling_locationa
143
-          }}</template>
146
+          <template slot-scope="scope">
147
+            {{ scope.row.sampling_locationa }}
148
+          </template>
144 149
         </el-table-column>
145 150
         <el-table-column
146 151
           prop="address"
@@ -164,9 +169,9 @@
164 169
           width="110"
165 170
           align="center"
166 171
         >
167
-          <template slot-scope="scope">{{
168
-            getTime(scope.row.reporting_date)
169
-          }}</template>
172
+          <template slot-scope="scope">
173
+            {{ getTime(scope.row.reporting_date) }}
174
+          </template>
170 175
         </el-table-column>
171 176
         <el-table-column
172 177
           prop="address"
@@ -174,9 +179,9 @@
174 179
           width="140"
175 180
           align="center"
176 181
         >
177
-          <template slot-scope="scope">{{
178
-            scope.row.detection_result
179
-          }}</template>
182
+          <template slot-scope="scope">
183
+            {{ scope.row.detection_result }}
184
+          </template>
180 185
         </el-table-column>
181 186
         <el-table-column label="操作" align="center" min-width="150px">
182 187
           <template slot-scope="scope">
@@ -239,9 +244,9 @@
239 244
           width="100"
240 245
           align="center"
241 246
         >
242
-          <template slot-scope="scope">{{
243
-            getTime(scope.row.sampling_date)
244
-          }}</template>
247
+          <template slot-scope="scope">
248
+            {{ getTime(scope.row.sampling_date) }}
249
+          </template>
245 250
         </el-table-column>
246 251
         <el-table-column
247 252
           prop="address"
@@ -257,9 +262,9 @@
257 262
           width="80"
258 263
           align="center"
259 264
         >
260
-          <template slot-scope="scope">{{
261
-            scope.row.concentrate_noc
262
-          }}</template>
265
+          <template slot-scope="scope">
266
+            {{ scope.row.concentrate_noc }}
267
+          </template>
263 268
         </el-table-column>
264 269
         <el-table-column
265 270
           prop="address"
@@ -267,9 +272,9 @@
267 272
           width="80"
268 273
           align="center"
269 274
         >
270
-          <template slot-scope="scope">{{
271
-            scope.row.concentrateb_nod
272
-          }}</template>
275
+          <template slot-scope="scope">
276
+            {{ scope.row.concentrateb_nod }}
277
+          </template>
273 278
         </el-table-column>
274 279
         <el-table-column
275 280
           prop="address"
@@ -277,9 +282,9 @@
277 282
           width="100"
278 283
           align="center"
279 284
         >
280
-          <template slot-scope="scope">{{
281
-            scope.row.sampling_locationb
282
-          }}</template>
285
+          <template slot-scope="scope">
286
+            {{ scope.row.sampling_locationb }}
287
+          </template>
283 288
         </el-table-column>
284 289
         <el-table-column
285 290
           prop="address"
@@ -303,9 +308,9 @@
303 308
           width="110"
304 309
           align="center"
305 310
         >
306
-          <template slot-scope="scope">{{
307
-            getTime(scope.row.reporting_dateb)
308
-          }}</template>
311
+          <template slot-scope="scope">
312
+            {{ getTime(scope.row.reporting_dateb) }}
313
+          </template>
309 314
         </el-table-column>
310 315
         <el-table-column
311 316
           prop="address"
@@ -313,9 +318,9 @@
313 318
           width="100"
314 319
           align="center"
315 320
         >
316
-          <template slot-scope="scope">{{
317
-            scope.row.detection_resultb
318
-          }}</template>
321
+          <template slot-scope="scope">
322
+            {{ scope.row.detection_resultb }}
323
+          </template>
319 324
         </el-table-column>
320 325
         <el-table-column label="操作" align="center" min-width="150px">
321 326
           <template slot-scope="scope">
@@ -371,9 +376,9 @@
371 376
           <template slot-scope="scope">{{ scope.row.bed }}</template>
372 377
         </el-table-column>
373 378
         <el-table-column prop="name" label="取样日期" width="80" align="center">
374
-          <template slot-scope="scope">{{
375
-            getTime(scope.row.sampling_date)
376
-          }}</template>
379
+          <template slot-scope="scope">
380
+            {{ getTime(scope.row.sampling_date) }}
381
+          </template>
377 382
         </el-table-column>
378 383
         <el-table-column
379 384
           prop="address"
@@ -397,9 +402,9 @@
397 402
           width="80"
398 403
           align="center"
399 404
         >
400
-          <template slot-scope="scope">{{
401
-            scope.row.concentrate_nof
402
-          }}</template>
405
+          <template slot-scope="scope">
406
+            {{ scope.row.concentrate_nof }}
407
+          </template>
403 408
         </el-table-column>
404 409
         <el-table-column
405 410
           prop="address"
@@ -407,9 +412,9 @@
407 412
           width="80"
408 413
           align="center"
409 414
         >
410
-          <template slot-scope="scope">{{
411
-            scope.row.concentrate_nog
412
-          }}</template>
415
+          <template slot-scope="scope">
416
+            {{ scope.row.concentrate_nog }}
417
+          </template>
413 418
         </el-table-column>
414 419
         <el-table-column
415 420
           prop="address"
@@ -417,9 +422,9 @@
417 422
           width="80"
418 423
           align="center"
419 424
         >
420
-          <template slot-scope="scope">{{
421
-            getTime(scope.row.date_reportc)
422
-          }}</template>
425
+          <template slot-scope="scope">
426
+            {{ getTime(scope.row.date_reportc) }}
427
+          </template>
423 428
         </el-table-column>
424 429
         <el-table-column
425 430
           prop="address"

+ 207 - 203
src/xt_pages/management/components/RepairForm.vue Ver arquivo

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-row class="row">
4
-      <el-col :span="4">
4
+      <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -38,13 +38,13 @@
38 38
         <el-button @click="queryRepair()">查询</el-button>
39 39
       </el-col>
40 40
     </el-row>
41
-    <el-row>
42
-        <el-col :span="2">
41
+    <el-row style="display: flex;align-items: center;">
42
+      <el-col :span="2">
43 43
         <el-checkbox v-model="checkAllStatus" @change="changeCheck"
44 44
           >全选</el-checkbox
45 45
         >
46 46
       </el-col>
47
-      <el-col :span="2" class="a">
47
+      <el-col :span="2">
48 48
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49 49
       </el-col>
50 50
     </el-row>
@@ -52,7 +52,11 @@
52 52
       <el-table
53 53
         ref="multipleTable"
54 54
         @selection-change="handleSelectionChange"
55
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
55
+        :row-style="{ color: '#303133' }"
56
+        :header-cell-style="{
57
+          backgroundColor: 'rgb(245, 247, 250)',
58
+          color: '#606266'
59
+        }"
56 60
         :data="tableData"
57 61
         border
58 62
         fit
@@ -73,9 +77,9 @@
73 77
           width="100"
74 78
           align="center"
75 79
         >
76
-          <template slot-scope="scope">{{
77
-            getTime(scope.row.guarantee_date)
78
-          }}</template>
80
+          <template slot-scope="scope">
81
+            {{ getTime(scope.row.guarantee_date) }}
82
+          </template>
79 83
         </el-table-column>
80 84
         <el-table-column
81 85
           prop="address"
@@ -83,9 +87,9 @@
83 87
           width="100"
84 88
           align="center"
85 89
         >
86
-          <template slot-scope="scope">{{
87
-            getTimes(scope.row.start_time)
88
-          }}</template>
90
+          <template slot-scope="scope">
91
+            {{ getTimes(scope.row.start_time) }}
92
+          </template>
89 93
         </el-table-column>
90 94
         <el-table-column
91 95
           prop="address"
@@ -93,9 +97,9 @@
93 97
           width="100"
94 98
           align="center"
95 99
         >
96
-          <template slot-scope="scope">{{
97
-            getTimes(scope.row.arrive_time)
98
-          }}</template>
100
+          <template slot-scope="scope">
101
+            {{ getTimes(scope.row.arrive_time) }}
102
+          </template>
99 103
         </el-table-column>
100 104
         <el-table-column
101 105
           prop="address"
@@ -103,9 +107,9 @@
103 107
           width="100"
104 108
           align="center"
105 109
         >
106
-          <template slot-scope="scope">{{
107
-            getTimes(scope.row.finish_time)
108
-          }}</template>
110
+          <template slot-scope="scope">
111
+            {{ getTimes(scope.row.finish_time) }}
112
+          </template>
109 113
         </el-table-column>
110 114
         <el-table-column
111 115
           prop="address"
@@ -129,9 +133,9 @@
129 133
           width="120"
130 134
           align="center"
131 135
         >
132
-          <template slot-scope="scope">{{
133
-            scope.row.code_information
134
-          }}</template>
136
+          <template slot-scope="scope">
137
+            {{ scope.row.code_information }}
138
+          </template>
135 139
         </el-table-column>
136 140
         <el-table-column
137 141
           prop="address"
@@ -139,9 +143,9 @@
139 143
           width="100"
140 144
           align="center"
141 145
         >
142
-          <template slot-scope="scope">{{
143
-            scope.row.fault_description
144
-          }}</template>
146
+          <template slot-scope="scope">
147
+            {{ scope.row.fault_description }}
148
+          </template>
145 149
         </el-table-column>
146 150
         <el-table-column
147 151
           prop="address"
@@ -157,9 +161,9 @@
157 161
           width="100"
158 162
           align="center"
159 163
         >
160
-          <template slot-scope="scope">{{
161
-            scope.row.treatment_process
162
-          }}</template>
164
+          <template slot-scope="scope">
165
+            {{ scope.row.treatment_process }}
166
+          </template>
163 167
         </el-table-column>
164 168
         <el-table-column
165 169
           prop="address"
@@ -198,7 +202,7 @@
198 202
             >
199 203
               <el-button
200 204
                 size="mini"
201
-                type="primary"
205
+                type="danger"
202 206
                 icon="el-icon-delete"
203 207
                 @click="DeleteRepairs(scope.row.id, scope.$index)"
204 208
               ></el-button>
@@ -366,9 +370,9 @@
366 370
               </el-upload>
367 371
             </el-form-item>
368 372
             <a class="el-upload-list__item-name">
369
-              <i
370
-                ><a @click="toLink()">{{ filename }}</a></i
371
-              >
373
+              <i>
374
+                <a @click="toLink()">{{ filename }}</a>
375
+              </i>
372 376
             </a>
373 377
           </el-col>
374 378
         </el-row>
@@ -420,141 +424,141 @@ import {
420 424
   DeleteRepair,
421 425
   queryRepair,
422 426
   DeleteRepairs
423
-} from '@/api/manage'
424
-import { uParseTime } from '@/utils/tools'
425
-import { getFileExtension } from '@/utils/tools'
427
+} from "@/api/manage";
428
+import { uParseTime } from "@/utils/tools";
429
+import { getFileExtension } from "@/utils/tools";
426 430
 export default {
427
-  name: 'RepairForm',
431
+  name: "RepairForm",
428 432
   data() {
429 433
     return {
430 434
       dialogVisible: false,
431 435
       selectCulture: [],
432 436
       forms: {
433
-        bed: '',
437
+        bed: "",
434 438
         sename: 1,
435
-        start_time: '',
436
-        end_time: ''
439
+        start_time: "",
440
+        end_time: ""
437 441
       },
438 442
       guaForm: {
439
-        id: '',
440
-        guarantee_date: '',
441
-        start_time: '',
442
-        arrive_time: '',
443
-        finish_time: '',
444
-        total_distance: '',
445
-        failure_stage: '',
446
-        fault_description: '',
447
-        cause_analysis: '',
448
-        treatment_process: '',
449
-        images: '',
450
-        exclude: '',
451
-        reason: '',
452
-        code_information: '',
453
-        image_name: ''
443
+        id: "",
444
+        guarantee_date: "",
445
+        start_time: "",
446
+        arrive_time: "",
447
+        finish_time: "",
448
+        total_distance: "",
449
+        failure_stage: "",
450
+        fault_description: "",
451
+        cause_analysis: "",
452
+        treatment_process: "",
453
+        images: "",
454
+        exclude: "",
455
+        reason: "",
456
+        code_information: "",
457
+        image_name: ""
454 458
       },
455 459
       isIndeterminate: false,
456 460
       checkAllStatus: false,
457 461
       bedNumber: [],
458 462
       tableData: [],
459
-      qiniuDomain: 'https://images.shengws.com/',
460
-      uploadFileData: { token: '', key: '' },
463
+      qiniuDomain: "https://images.shengws.com/",
464
+      uploadFileData: { token: "", key: "" },
461 465
       faultPhase: [
462
-        { id: 1, name: '开机启动' },
463
-        { id: 2, name: '自检' },
464
-        { id: 3, name: '准备' },
465
-        { id: 4, name: '治疗' },
466
-        { id: 5, name: '消毒' }
466
+        { id: 1, name: "开机启动" },
467
+        { id: 2, name: "自检" },
468
+        { id: 3, name: "准备" },
469
+        { id: 4, name: "治疗" },
470
+        { id: 5, name: "消毒" }
467 471
       ],
468 472
       breakDown: [
469
-        { id: 1, name: '是' },
470
-        { id: 2, name: '待观察' },
471
-        { id: 3, name: '未解决' }
473
+        { id: 1, name: "是" },
474
+        { id: 2, name: "待观察" },
475
+        { id: 3, name: "未解决" }
472 476
       ],
473 477
       repirRules: {
474
-        guarantee_date: [{ required: true, message: '请填写保修日期' }],
475
-        fault_description: [{ required: true, message: '请填写故障描述' }]
478
+        guarantee_date: [{ required: true, message: "请填写保修日期" }],
479
+        fault_description: [{ required: true, message: "请填写故障描述" }]
476 480
       },
477
-      filename: '',
481
+      filename: "",
478 482
       limit: 10,
479 483
       page: 1,
480 484
       total: 0,
481
-      filename: ''
482
-    }
485
+      filename: ""
486
+    };
483 487
   },
484 488
   methods: {
485 489
     changeCheck() {
486
-      this.$refs.multipleTable.clearSelection()
490
+      this.$refs.multipleTable.clearSelection();
487 491
       if (this.checkAllStatus) {
488
-        this.$refs.multipleTable.toggleAllSelection()
492
+        this.$refs.multipleTable.toggleAllSelection();
489 493
       }
490 494
     },
491 495
     getAllSubregion() {
492 496
       getAllSubregion().then(response => {
493
-        var zones = response.data.data.zones
494
-        var numbers = response.data.data.numbers
495
-        var number = [{ id: 0, number: '全部' }]
497
+        var zones = response.data.data.zones;
498
+        var numbers = response.data.data.numbers;
499
+        var number = [{ id: 0, number: "全部" }];
496 500
         for (let index = 0; index < numbers.length; index++) {
497
-          const item = numbers[index]
498
-          number.push({ id: item.id, number: item.number })
501
+          const item = numbers[index];
502
+          number.push({ id: item.id, number: item.number });
499 503
         }
500
-        this.bedNumber = number
501
-      })
504
+        this.bedNumber = number;
505
+      });
502 506
     },
503 507
     handleSelectionChange(val) {
504
-      this.selectCulture = val
508
+      this.selectCulture = val;
505 509
     },
506 510
     getAllRepair() {
507 511
       getAllRepair(this.limit, this.page).then(response => {
508 512
         if (response.data.state === 1) {
509
-          var repair = response.data.data.repair
513
+          var repair = response.data.data.repair;
510 514
           // console.log('repair是', repair)
511 515
           // eslint-disable-next-line no-unused-vars
512
-          var total = response.data.data.total
513
-          this.total = total
516
+          var total = response.data.data.total;
517
+          this.total = total;
514 518
           for (let index = 0; index < repair.length; index++) {
515 519
             if (repair[index].failure_stage === 0) {
516
-              repair[index].failure_stage = ''
520
+              repair[index].failure_stage = "";
517 521
             }
518 522
 
519 523
             if (repair[index].failure_stage === 1) {
520
-              repair[index].failure_stage = '开机启动'
524
+              repair[index].failure_stage = "开机启动";
521 525
             }
522 526
             if (repair[index].failure_stage === 2) {
523
-              repair[index].failure_stage = '自检'
527
+              repair[index].failure_stage = "自检";
524 528
             }
525 529
             if (repair[index].failure_stage === 3) {
526
-              repair[index].failure_stage = '准备'
530
+              repair[index].failure_stage = "准备";
527 531
             }
528 532
             if (repair[index].failure_stage === 4) {
529
-              repair[index].failure_stage = '治疗'
533
+              repair[index].failure_stage = "治疗";
530 534
             }
531 535
             if (repair[index].failure_stage === 5) {
532
-              repair[index].failure_stage = '消毒'
536
+              repair[index].failure_stage = "消毒";
533 537
             }
534 538
 
535 539
             if (repair[index].exclude === 0) {
536
-              repair[index].exclude = ''
540
+              repair[index].exclude = "";
537 541
             }
538 542
 
539 543
             if (repair[index].exclude === 1) {
540
-              repair[index].exclude = '是'
544
+              repair[index].exclude = "是";
541 545
             }
542 546
             if (repair[index].exclude === 2) {
543
-              repair[index].exclude = '待观察'
547
+              repair[index].exclude = "待观察";
544 548
             }
545 549
             if (repair[index].exclude === 3) {
546
-              repair[index].exclude = '未解决'
550
+              repair[index].exclude = "未解决";
547 551
             }
548 552
           }
549
-          this.tableData = repair
553
+          this.tableData = repair;
550 554
         }
551
-      })
555
+      });
552 556
     },
553 557
     getTime(time) {
554
-      return uParseTime(time, '{y}-{m}-{d}')
558
+      return uParseTime(time, "{y}-{m}-{d}");
555 559
     },
556 560
     getTimes(time) {
557
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
561
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
558 562
     },
559 563
     handleExceed(file) {
560 564
       // console.log(file)
@@ -563,62 +567,62 @@ export default {
563 567
       // console.log(file)
564 568
     },
565 569
     EditRepair(id) {
566
-      this.dialogVisible = true
570
+      this.dialogVisible = true;
567 571
       EditRepair(id).then(response => {
568 572
         if (response.data.state === 1) {
569
-          var repair = response.data.data.repair
570
-          console.log('repair', repair)
573
+          var repair = response.data.data.repair;
574
+          console.log("repair", repair);
571 575
           this.guaForm.guarantee_date = uParseTime(
572 576
             repair.guarantee_date,
573
-            '{y}-{m}-{d}'
574
-          )
577
+            "{y}-{m}-{d}"
578
+          );
575 579
           this.guaForm.start_time = uParseTime(
576 580
             repair.start_time,
577
-            '{y}-{m}-{d} {h}:{i}'
578
-          )
581
+            "{y}-{m}-{d} {h}:{i}"
582
+          );
579 583
           this.guaForm.arrive_time = uParseTime(
580 584
             repair.arrive_time,
581
-            '{y}-{m}-{d} {h}:{i}'
582
-          )
585
+            "{y}-{m}-{d} {h}:{i}"
586
+          );
583 587
           this.guaForm.finish_time = uParseTime(
584 588
             repair.finish_time,
585
-            '{y}-{m}-{d} {h}:{i}'
586
-          )
587
-          this.guaForm.total_distance = repair.total_distance
588
-          this.guaForm.failure_stage = repair.failure_stage
589
-          this.guaForm.fault_description = repair.fault_description
590
-          this.guaForm.cause_analysis = repair.cause_analysis
591
-          this.guaForm.treatment_process = repair.treatment_process
592
-          this.guaForm.images = repair.images
593
-          this.guaForm.exclude = repair.exclude
594
-          this.guaForm.reason = repair.reason
595
-          this.guaForm.code_information = repair.code_information
596
-          this.guaForm.id = repair.id
597
-          this.filename = repair.image_name
589
+            "{y}-{m}-{d} {h}:{i}"
590
+          );
591
+          this.guaForm.total_distance = repair.total_distance;
592
+          this.guaForm.failure_stage = repair.failure_stage;
593
+          this.guaForm.fault_description = repair.fault_description;
594
+          this.guaForm.cause_analysis = repair.cause_analysis;
595
+          this.guaForm.treatment_process = repair.treatment_process;
596
+          this.guaForm.images = repair.images;
597
+          this.guaForm.exclude = repair.exclude;
598
+          this.guaForm.reason = repair.reason;
599
+          this.guaForm.code_information = repair.code_information;
600
+          this.guaForm.id = repair.id;
601
+          this.filename = repair.image_name;
598 602
         }
599
-      })
603
+      });
600 604
     },
601 605
     handleSuccess(res, file, fileList) {
602
-      this.guaForm.images = this.qiniuDomain + res.url
603
-      console.log('图片上传', this.guaForm.images)
604
-      this.$refs.upload.clearFiles()
605
-      this.filename = file.name
606
-      this.guaForm.image_name = file.name
606
+      this.guaForm.images = this.qiniuDomain + res.url;
607
+      console.log("图片上传", this.guaForm.images);
608
+      this.$refs.upload.clearFiles();
609
+      this.filename = file.name;
610
+      this.guaForm.image_name = file.name;
607 611
     },
608 612
     beforeUploadFile(file) {
609
-      this.filename = file.name
610
-      this.guaForm.image_name = file.name
611
-      const isLt2M = file.size / 1024 / 1024 <= 2048
612
-      console.log('filename', file)
613
+      this.filename = file.name;
614
+      this.guaForm.image_name = file.name;
615
+      const isLt2M = file.size / 1024 / 1024 <= 2048;
616
+      console.log("filename", file);
613 617
       // console.log('视频大小', file.size / 1024 / 1024)
614 618
       // console.log('isLt2M是什么', isLt2M)
615 619
 
616 620
       if (!isLt2M) {
617
-        this.$message.error('上传视频大小不能超过 2G!')
618
-        return false
621
+        this.$message.error("上传视频大小不能超过 2G!");
622
+        return false;
619 623
       }
620
-      var date = new Date()
621
-      var ext = getFileExtension(file.name)
624
+      var date = new Date();
625
+      var ext = getFileExtension(file.name);
622 626
       var key =
623 627
         date.getFullYear() +
624 628
         (date.getMonth() + 1) +
@@ -626,104 +630,104 @@ export default {
626 630
         date.getHours() +
627 631
         date.getMinutes() +
628 632
         date.getSeconds() +
629
-        '_o_' +
633
+        "_o_" +
630 634
         file.uid +
631
-        '.' +
632
-        ext
633
-      const _self = this
635
+        "." +
636
+        ext;
637
+      const _self = this;
634 638
       return new Promise((resolve, reject) => {
635 639
         // eslint-disable-next-line no-undef
636 640
         getToken()
637 641
           .then(response => {
638
-            const token = response.data.data.uptoken
639
-            console.log('token2是什么?', token)
640
-            _self._data.uploadFileData.token = token
641
-            _self._data.uploadFileData.key = key
642
-            resolve(true)
642
+            const token = response.data.data.uptoken;
643
+            console.log("token2是什么?", token);
644
+            _self._data.uploadFileData.token = token;
645
+            _self._data.uploadFileData.key = key;
646
+            resolve(true);
643 647
           })
644 648
           // eslint-disable-next-line handle-callback-err
645 649
           .catch(err => {
646
-            reject(false)
647
-          })
648
-      })
650
+            reject(false);
651
+          });
652
+      });
649 653
     },
650 654
     toLink() {
651
-      window.location.href = this.guaForm.images
655
+      window.location.href = this.guaForm.images;
652 656
     },
653 657
     UpdateRepair(formName) {
654 658
       this.$refs[formName].validate(valid => {
655 659
         this.guaForm.start_time = uParseTime(
656 660
           this.guaForm.start_time,
657
-          '{y}-{m}-{d} {h}:{i}'
658
-        )
661
+          "{y}-{m}-{d} {h}:{i}"
662
+        );
659 663
         this.guaForm.arrive_time = uParseTime(
660 664
           this.guaForm.arrive_time,
661
-          '{y}-{m}-{d} {h}:{i}'
662
-        )
665
+          "{y}-{m}-{d} {h}:{i}"
666
+        );
663 667
         this.guaForm.finish_time = uParseTime(
664 668
           this.guaForm.finish_time,
665
-          '{y}-{m}-{d} {h}:{i}'
666
-        )
669
+          "{y}-{m}-{d} {h}:{i}"
670
+        );
667 671
 
668
-        if (this.guaForm.failure_stage === '') {
669
-          this.guaForm.failure_stage = 0
672
+        if (this.guaForm.failure_stage === "") {
673
+          this.guaForm.failure_stage = 0;
670 674
         }
671 675
 
672
-        var failurestages = this.guaForm.failure_stage
673
-        var falur = parseInt(failurestages)
674
-        this.guaForm.failure_stage = falur
676
+        var failurestages = this.guaForm.failure_stage;
677
+        var falur = parseInt(failurestages);
678
+        this.guaForm.failure_stage = falur;
675 679
 
676
-        if (this.guaForm.exclude === '') {
677
-          this.guaForm.exclude = 0
680
+        if (this.guaForm.exclude === "") {
681
+          this.guaForm.exclude = 0;
678 682
         }
679
-        var excludes = this.guaForm.exclude
680
-        var exclude = parseInt(excludes)
681
-        this.guaForm.exclude = exclude
683
+        var excludes = this.guaForm.exclude;
684
+        var exclude = parseInt(excludes);
685
+        this.guaForm.exclude = exclude;
682 686
         if (valid) {
683 687
           UpdateRepair(this.guaForm).then(response => {
684 688
             if (response.data.state === 1) {
685
-              var repair = response.data.data.repair
686
-              this.dialogVisible = false
687
-              this.$message.success('修改成功')
689
+              var repair = response.data.data.repair;
690
+              this.dialogVisible = false;
691
+              this.$message.success("修改成功");
688 692
             }
689
-          })
693
+          });
690 694
         }
691
-      })
695
+      });
692 696
     },
693 697
     BatchDelete() {
694 698
       if (this.selectCulture.length == 0) {
695
-        this.$message.error('请选择要删除的信息')
696
-        return false
699
+        this.$message.error("请选择要删除的信息");
700
+        return false;
697 701
       }
698 702
       this.$confirm(
699
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
700
-        '删除提示',
703
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
704
+        "删除提示",
701 705
         {
702 706
           dangerouslyUseHTMLString: true,
703
-          confirmButtonText: '确定',
704
-          cancelButtonText: '取消',
705
-          type: 'warning'
707
+          confirmButtonText: "确定",
708
+          cancelButtonText: "取消",
709
+          type: "warning"
706 710
         }
707 711
       ).then(() => {
708
-        var ids = []
709
-        var idMap = {}
712
+        var ids = [];
713
+        var idMap = {};
710 714
         for (const index in this.selectCulture) {
711
-          ids.push(this.selectCulture[index].id)
712
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
715
+          ids.push(this.selectCulture[index].id);
716
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
713 717
         }
714 718
         DeleteRepair({ ids: ids }).then(response => {
715 719
           if (response.data.state === 1) {
716
-            var msg = response.data.data.msg
717
-            var planDataLength = this.tableData.length
720
+            var msg = response.data.data.msg;
721
+            var planDataLength = this.tableData.length;
718 722
             for (let index = planDataLength - 1; index >= 0; index--) {
719 723
               if (this.tableData[index].id in idMap) {
720
-                this.tableData.splice(index, 1)
724
+                this.tableData.splice(index, 1);
721 725
               }
722 726
             }
723
-            this.$message.success('删除成功')
727
+            this.$message.success("删除成功");
724 728
           }
725
-        })
726
-      })
729
+        });
730
+      });
727 731
     },
728 732
     queryRepair() {
729 733
       queryRepair(
@@ -732,48 +736,48 @@ export default {
732 736
         this.forms.end_time
733 737
       ).then(response => {
734 738
         if (response.data.state === 1) {
735
-          var repair = response.data.data.repair
736
-          this.tableData = repair
739
+          var repair = response.data.data.repair;
740
+          this.tableData = repair;
737 741
         }
738
-      })
742
+      });
739 743
     },
740 744
     handleSizeChange(limit) {
741
-      this.limit = limit
742
-      this.getAllRepair()
745
+      this.limit = limit;
746
+      this.getAllRepair();
743 747
     },
744 748
     handleCurrentChange(page) {
745
-      this.page = page
746
-      this.getAllRepair()
749
+      this.page = page;
750
+      this.getAllRepair();
747 751
     },
748 752
     DeleteRepairs(id, index) {
749 753
       this.$confirm(
750
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
751
-        '删除提示',
754
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
755
+        "删除提示",
752 756
         {
753 757
           dangerouslyUseHTMLString: true,
754
-          confirmButtonText: '确定',
755
-          cancelButtonText: '取消',
756
-          type: 'warning'
758
+          confirmButtonText: "确定",
759
+          cancelButtonText: "取消",
760
+          type: "warning"
757 761
         }
758 762
       ).then(() => {
759 763
         DeleteRepairs(id, index).then(response => {
760 764
           if (response.data.state === 1) {
761
-            var msg = response.data.data.msg
762
-            this.tableData.splice(index, 1)
765
+            var msg = response.data.data.msg;
766
+            this.tableData.splice(index, 1);
763 767
           }
764
-        })
765
-      })
768
+        });
769
+      });
766 770
     }
767 771
   },
768 772
   created() {
769
-    this.getAllSubregion()
770
-    this.getAllRepair()
773
+    this.getAllSubregion();
774
+    this.getAllRepair();
771 775
   }
772
-}
776
+};
773 777
 </script>
774 778
 
775 779
 <style scoped>
776
-  .row{
777
-    margin-bottom:10px;
778
-  }
780
+.row {
781
+  margin-bottom: 10px;
782
+}
779 783
 </style>

+ 46 - 38
src/xt_pages/management/components/UserForm.vue Ver arquivo

@@ -23,9 +23,9 @@
23 23
           style="width:145px"
24 24
         ></el-date-picker>
25 25
       </el-col>
26
-      <el-col :span="4">
26
+      <el-col :span="5">
27 27
         <span class="machineClass">分区:</span>
28
-        <el-select style="width:90px" v-model="form.zone" @change="changeBed">
28
+        <el-select style="width:110px" v-model="form.zone" @change="changeBed">
29 29
           <el-option
30 30
             v-for="item in this.zones"
31 31
             :key="item.id"
@@ -34,9 +34,9 @@
34 34
           ></el-option>
35 35
         </el-select>
36 36
       </el-col>
37
-      <el-col :span="4">
37
+      <el-col :span="6">
38 38
         <span class="machineClass">机位号:</span>
39
-        <el-select style="width:80px" v-model="form.bed">
39
+        <el-select style="width:145px" v-model="form.bed">
40 40
           <el-option
41 41
             v-for="item in this.bedNumberTwo"
42 42
             :key="item.id"
@@ -45,11 +45,11 @@
45 45
           ></el-option>
46 46
         </el-select>
47 47
       </el-col>
48
-      <el-col :span="5">
49
-        <el-button @click="queryInfo()">查询</el-button>
48
+      <el-col :span="2">
49
+        <el-button type="primary" @click="queryInfo()">查询</el-button>
50 50
       </el-col>
51 51
     </el-row>
52
-    <el-row :span="24">
52
+    <el-row :span="24" style="display: flex;align-items: center;">
53 53
       <el-col :span="2">
54 54
         <el-checkbox
55 55
           :indeterminate="isIndeterminate"
@@ -61,15 +61,19 @@
61 61
       <el-col :span="3">
62 62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63 63
       </el-col>
64
-      <el-col :span="6" class="a">
65
-        <el-button @click="printCard">打印</el-button>
64
+      <el-col :span="6">
65
+        <el-button type="primary" @click="printCard">打印</el-button>
66 66
       </el-col>
67 67
     </el-row>
68 68
     <el-row>
69 69
       <el-table
70 70
         ref="multipleTable"
71 71
         @selection-change="handleSelectionChange"
72
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
72
+        :row-style="{ color: '#303133' }"
73
+        :header-cell-style="{
74
+          backgroundColor: 'rgb(245, 247, 250)',
75
+          color: '#606266'
76
+        }"
73 77
         :data="tableData"
74 78
         border
75 79
         fit
@@ -104,22 +108,22 @@
104 108
         </el-table-column>
105 109
         <el-table-column label="机表消毒" align="center" min-width="110px">
106 110
           <el-table-column label="消毒方式" align="center" min-width="110px">
107
-            <template slot-scope="scope">
108
-              {{ scope.row.disinfect_type }}
109
-            </template>
111
+            <template slot-scope="scope">{{
112
+              scope.row.disinfect_type
113
+            }}</template>
110 114
           </el-table-column>
111 115
           <el-table-column label="消毒液" align="center" min-width="110px">
112
-            <template slot-scope="scope">
113
-              {{ scope.row.disinfectant_type }}
114
-            </template>
116
+            <template slot-scope="scope">{{
117
+              scope.row.disinfectant_type
118
+            }}</template>
115 119
           </el-table-column>
116 120
           <el-table-column label="消毒状态" align="center" min-width="110px">
117 121
             <template slot-scope="scope">{{ scope.row.disinfection }}</template>
118 122
           </el-table-column>
119 123
           <el-table-column label="消毒液浓度" align="center" min-width="110px">
120
-            <template slot-scope="scope">
121
-              {{ scope.row.dialysis_concentration }}
122
-            </template>
124
+            <template slot-scope="scope">{{
125
+              scope.row.dialysis_concentration
126
+            }}</template>
123 127
           </el-table-column>
124 128
         </el-table-column>
125 129
         <el-table-column label="液路消毒" align="center" min-width="110px">
@@ -134,18 +138,18 @@
134 138
             align="center"
135 139
             min-width="110px"
136 140
           >
137
-            <template slot-scope="scope">{{
138
-              getTimes(scope.row.disinfec_startime)
139
-            }}</template>
141
+            <template slot-scope="scope">
142
+              {{ getTimes(scope.row.disinfec_startime) }}
143
+            </template>
140 144
           </el-table-column>
141 145
           <el-table-column
142 146
             label="结束消毒时间"
143 147
             align="center"
144 148
             min-width="110px"
145 149
           >
146
-            <template slot-scope="scope">
147
-              {{ getTimes(scope.row.disinfec_endtime) }}
148
-            </template>
150
+            <template slot-scope="scope">{{
151
+              getTimes(scope.row.disinfec_endtime)
152
+            }}</template>
149 153
           </el-table-column>
150 154
           <el-table-column
151 155
             label="消毒时长/min"
@@ -155,14 +159,14 @@
155 159
             <template slot-scope="scope">{{ scope.row.long_time }}</template>
156 160
           </el-table-column>
157 161
           <el-table-column label="消毒状态" align="center" min-width="110px">
158
-            <template slot-scope="scope">
159
-              {{ scope.row.disinfection_status }}
160
-            </template>
162
+            <template slot-scope="scope">{{
163
+              scope.row.disinfection_status
164
+            }}</template>
161 165
           </el-table-column>
162 166
           <el-table-column label="消毒液残留" align="center" min-width="110px">
163
-            <template slot-scope="scope">
164
-              {{ scope.row.disinfection_residue }}
165
-            </template>
167
+            <template slot-scope="scope">{{
168
+              scope.row.disinfection_residue
169
+            }}</template>
166 170
           </el-table-column>
167 171
         </el-table-column>
168 172
         <el-table-column
@@ -170,9 +174,9 @@
170 174
           align="center"
171 175
           min-width="110px"
172 176
         >
173
-          <template slot-scope="scope">
174
-            {{ scope.row.dialysis_checked }}
175
-          </template>
177
+          <template slot-scope="scope">{{
178
+            scope.row.dialysis_checked
179
+          }}</template>
176 180
         </el-table-column>
177 181
         <el-table-column
178 182
           label="细菌过滤器(更换)"
@@ -213,7 +217,7 @@
213 217
             >
214 218
               <el-button
215 219
                 size="mini"
216
-                type="primary"
220
+                type="danger"
217 221
                 icon="el-icon-delete"
218 222
                 @click="DeleteUserLogin(scope.row.id, scope.$index)"
219 223
               ></el-button>
@@ -306,7 +310,7 @@
306 310
                 placeholder="请输入内容"
307 311
                 @select="handleSelect"
308 312
               >
309
-                <i class="el-icon-search el-input__icon" slot="suffix"> </i>
313
+                <i class="el-icon-search el-input__icon" slot="suffix"></i>
310 314
                 <template slot-scope="{ item }">
311 315
                   <span class="addr">{{ item.name }}</span>
312 316
                 </template>
@@ -2225,10 +2229,10 @@ export default {
2225 2229
 </script>
2226 2230
 <style scoped>
2227 2231
 .a {
2228
-  .el-col-2 {
2232
+  /* .el-col-2 {
2229 2233
     width: 8.33333%;
2230 2234
     margin-bottom: 20px;
2231
-  }
2235
+  } */
2232 2236
 }
2233 2237
 .print_main_content {
2234 2238
   background-color: white;
@@ -2240,8 +2244,12 @@ export default {
2240 2244
 <style lang="scss">
2241 2245
 .machineClass {
2242 2246
   font-size: 14px;
2247
+  color: #606266;
2243 2248
 }
2244 2249
 .c {
2245 2250
   margin-bottom: 10px;
2251
+  .el-input--prefix .el-input__inner {
2252
+    margin-left: 15px;
2253
+  }
2246 2254
 }
2247 2255
 </style>

Diferenças do arquivo suprimidas por serem muito extensas
+ 254 - 187
src/xt_pages/management/home.vue


+ 90 - 82
src/xt_pages/upload/config/City.vue Ver arquivo

@@ -1,95 +1,86 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <div class="cell clearfix">
4
-      <el-row :gutter="20">
5
-        <el-col :span="24" :offset="6">
6
-          <!--<div>质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。</div>-->
7
-          <div class="titleOne">
8
-            质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。<br />&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;微信:kuyicloud
9
-            电话:18682074632
10
-          </div>
11
-        </el-col>
12
-      </el-row>
13
-    </div>
14
-    <div class="cell clearfix">
15
-      <el-row :gutter="20">
16
-        <el-col :span="24" :offset="20">
17
-          <el-form
18
-            :model="form"
19
-            :rules="rules"
20
-            ref="ruleForm"
21
-            label-width="120px"
22
-            class="demo-ruleForm"
23
-            style="text-align: center"
24
-          >
25
-            <el-form-item label="省" prop="province">
26
-              <el-select
27
-                v-model="form.province"
28
-                clearable
29
-                filterable
30
-                placeholder="请选择"
31
-                @change="changeProvince"
3
+    <div>
4
+      <div class="titleOne">
5
+        质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。
6
+      </div>
7
+      <div class="titleOne">微信:kuyicloud 电话:18682074632</div>
8
+      <div class="formBox">
9
+        <el-form
10
+          :model="form"
11
+          :rules="rules"
12
+          ref="ruleForm"
13
+          label-width="120px"
14
+          class="demo-ruleForm"
15
+          style="text-align: center"
16
+        >
17
+          <el-form-item label="省" prop="province">
18
+            <el-select
19
+              v-model="form.province"
20
+              clearable
21
+              filterable
22
+              placeholder="请选择"
23
+              @change="changeProvince"
24
+            >
25
+              <el-option
26
+                v-for="item in provinces"
27
+                :key="item.id"
28
+                :label="item.name"
29
+                :value="item.id"
32 30
               >
33
-                <el-option
34
-                  v-for="item in provinces"
35
-                  :key="item.id"
36
-                  :label="item.name"
37
-                  :value="item.id"
38
-                >
39
-                </el-option>
40
-              </el-select>
41
-            </el-form-item>
31
+              </el-option>
32
+            </el-select>
33
+          </el-form-item>
42 34
 
43
-            <el-form-item label="市" prop="city">
44
-              <el-select
45
-                v-model="form.city"
46
-                clearable
47
-                filterable
48
-                placeholder="请选择"
49
-                @change="changeCity"
35
+          <el-form-item label="市" prop="city">
36
+            <el-select
37
+              v-model="form.city"
38
+              clearable
39
+              filterable
40
+              placeholder="请选择"
41
+              @change="changeCity"
42
+            >
43
+              <el-option
44
+                v-for="item in citys"
45
+                :key="item.id"
46
+                :label="item.name"
47
+                :value="item.id"
50 48
               >
51
-                <el-option
52
-                  v-for="item in citys"
53
-                  :key="item.id"
54
-                  :label="item.name"
55
-                  :value="item.id"
56
-                >
57
-                </el-option>
58
-              </el-select>
59
-            </el-form-item>
49
+              </el-option>
50
+            </el-select>
51
+          </el-form-item>
60 52
 
61
-            <el-form-item label="网关地址" prop="gateway_address">
62
-              <el-input v-model="form.gateway_address"></el-input>
63
-            </el-form-item>
53
+          <el-form-item label="网关地址" prop="gateway_address">
54
+            <el-input v-model="form.gateway_address"></el-input>
55
+          </el-form-item>
64 56
 
65
-            <el-form-item label="AppID" prop="app_id">
66
-              <el-input v-model="form.app_id"></el-input>
67
-            </el-form-item>
57
+          <el-form-item label="AppID" prop="app_id">
58
+            <el-input v-model="form.app_id"></el-input>
59
+          </el-form-item>
68 60
 
69
-            <el-form-item label="密钥" prop="key">
70
-              <el-input v-model="form.key"></el-input>
71
-            </el-form-item>
61
+          <el-form-item label="密钥" prop="key">
62
+            <el-input v-model="form.key"></el-input>
63
+          </el-form-item>
72 64
 
73
-            <el-form-item label="自动上传周期" prop="time_type">
74
-              <el-radio-group v-model="form.time_type">
75
-                <el-radio label="1">一周</el-radio>
76
-                <el-radio label="2">二周</el-radio>
77
-                <el-radio label="3">一个月</el-radio>
78
-                <el-radio label="4">三个月</el-radio>
79
-              </el-radio-group>
80
-            </el-form-item>
65
+          <el-form-item label="自动上传周期" prop="time_type">
66
+            <el-radio-group v-model="form.time_type">
67
+              <el-radio label="1">一周</el-radio>
68
+              <el-radio label="2">二周</el-radio>
69
+              <el-radio label="3">一个月</el-radio>
70
+              <el-radio label="4">三个月</el-radio>
71
+            </el-radio-group>
72
+          </el-form-item>
81 73
 
82
-            <el-form-item>
83
-              <el-button
84
-                type="primary"
85
-                @click="submitForm('ruleForm')"
86
-                class="changeLeft"
87
-                >保存</el-button
88
-              >
89
-            </el-form-item>
90
-          </el-form>
91
-        </el-col>
92
-      </el-row>
74
+          <el-form-item>
75
+            <el-button
76
+              type="primary"
77
+              @click="submitForm('ruleForm')"
78
+              class="changeLeft"
79
+              >保存</el-button
80
+            >
81
+          </el-form-item>
82
+        </el-form>
83
+      </div>
93 84
     </div>
94 85
   </div>
95 86
 </template>
@@ -260,5 +251,22 @@ export default {
260 251
 }
261 252
 .titleOne {
262 253
   line-height: 30px;
254
+  margin: 0 auto;
255
+  width: 100%;
256
+  text-align: center;
257
+}
258
+.formBox {
259
+  width: 46%;
260
+  margin: 0 auto;
261
+}
262
+</style>
263
+<style lang="scss">
264
+.formBox {
265
+  .el-select {
266
+    width: 100%;
267
+  }
268
+  .el-input__inner {
269
+    width: 90%;
270
+  }
263 271
 }
264 272
 </style>

+ 45 - 48
src/xt_pages/upload/config/Country.vue Ver arquivo

@@ -1,58 +1,48 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <div class="cell clearfix">
4
-      <el-row :gutter="20">
5
-        <el-col :span="24" :offset="6">
6
-          <div class="titleOne">
7
-            质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。<br />&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;微信:kuyicloud
8
-            电话:18682074632
9
-          </div>
10
-        </el-col>
11
-      </el-row>
3
+    <div class="titleOne">
4
+      质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。
12 5
     </div>
13
-    <div class="cell clearfix">
14
-      <el-row :gutter="20">
15
-        <el-col :span="24" :offset="22">
16
-          <el-form
17
-            :model="form"
18
-            ref="ruleForm"
19
-            :rules="rules"
20
-            label-width="120px"
21
-            class="demo-ruleForm"
22
-            style="text-align: center"
23
-          >
24
-            <el-form-item label="网关地址" prop="gateway_address">
25
-              <el-input v-model="form.gateway_address"></el-input>
26
-            </el-form-item>
6
+    <div class="titleOne">微信:kuyicloud 电话:18682074632</div>
7
+    <div class="formBox">
8
+      <el-form
9
+        :model="form"
10
+        ref="ruleForm"
11
+        :rules="rules"
12
+        label-width="120px"
13
+        class="demo-ruleForm"
14
+        style="text-align: center"
15
+      >
16
+        <el-form-item label="网关地址" prop="gateway_address">
17
+          <el-input v-model="form.gateway_address"></el-input>
18
+        </el-form-item>
27 19
 
28
-            <el-form-item label="AppID" prop="app_id">
29
-              <el-input v-model="form.app_id"></el-input>
30
-            </el-form-item>
20
+        <el-form-item label="AppID" prop="app_id">
21
+          <el-input v-model="form.app_id"></el-input>
22
+        </el-form-item>
31 23
 
32
-            <el-form-item label="密钥" prop="key">
33
-              <el-input v-model="form.key"></el-input>
34
-            </el-form-item>
24
+        <el-form-item label="密钥" prop="key">
25
+          <el-input v-model="form.key"></el-input>
26
+        </el-form-item>
35 27
 
36
-            <el-form-item label="自动上传周期" prop="time_type">
37
-              <el-radio-group v-model="form.time_type">
38
-                <el-radio label="1">一周</el-radio>
39
-                <el-radio label="2">二周</el-radio>
40
-                <el-radio label="3">一个月</el-radio>
41
-                <el-radio label="4">三个月</el-radio>
42
-              </el-radio-group>
43
-            </el-form-item>
28
+        <el-form-item label="自动上传周期" prop="time_type">
29
+          <el-radio-group v-model="form.time_type">
30
+            <el-radio label="1">一周</el-radio>
31
+            <el-radio label="2">二周</el-radio>
32
+            <el-radio label="3">一个月</el-radio>
33
+            <el-radio label="4">三个月</el-radio>
34
+          </el-radio-group>
35
+        </el-form-item>
44 36
 
45
-            <el-form-item>
46
-              <el-button
47
-                type="primary"
48
-                @click="submitForm('ruleForm')"
49
-                class="changeLeft"
50
-                >保存</el-button
51
-              >
52
-            </el-form-item>
53
-          </el-form>
54
-        </el-col>
55
-      </el-row>
37
+        <el-form-item>
38
+          <el-button
39
+            type="primary"
40
+            @click="submitForm('ruleForm')"
41
+            class="changeLeft"
42
+            >保存</el-button
43
+          >
44
+        </el-form-item>
45
+      </el-form>
56 46
     </div>
57 47
   </div>
58 48
 </template>
@@ -149,5 +139,12 @@ export default {
149 139
 }
150 140
 .titleOne {
151 141
   line-height: 30px;
142
+  margin: 0 auto;
143
+  width: 100%;
144
+  text-align: center;
145
+}
146
+.formBox {
147
+  width: 46%;
148
+  margin: 0 auto;
152 149
 }
153 150
 </style>

+ 84 - 81
src/xt_pages/upload/config/Province.vue Ver arquivo

@@ -1,93 +1,82 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <div class="cell clearfix">
4
-      <el-row :gutter="20">
5
-        <el-col :span="24" :offset="6">
6
-          <!--<div>质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。</div>-->
7
-          <div class="titleOne">
8
-            质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。<br />&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;微信:kuyicloud
9
-            电话:18682078150
10
-          </div>
11
-        </el-col>
12
-      </el-row>
3
+    <div class="titleOne">
4
+      质控平台的上报对接,是为了解决手工录入的效率和易出错的问题,对接涉及各种技术,请勿随意配置,联系酷医云客服协助处理。
13 5
     </div>
14
-    <div class="cell clearfix">
15
-      <el-row :gutter="20">
16
-        <el-col :span="24" :offset="18">
17
-          <el-form
18
-            :model="form"
19
-            :rules="rules"
20
-            ref="ruleForm"
21
-            label-width="120px"
22
-            class="demo-ruleForm"
23
-            style="text-align: center"
6
+    <div class="titleOne">微信:kuyicloud 电话:18682074632</div>
7
+    <div class="formBox1">
8
+      <el-form
9
+        :model="form"
10
+        :rules="rules"
11
+        ref="ruleForm"
12
+        label-width="120px"
13
+        class="demo-ruleForm"
14
+        style="text-align: center"
15
+      >
16
+        <el-form-item label="省份" prop="province">
17
+          <el-select
18
+            v-model="form.province"
19
+            clearable
20
+            filterable
21
+            placeholder="请选择"
22
+            @change="changeProvince"
24 23
           >
25
-            <el-form-item label="省份" prop="province">
26
-              <el-select
27
-                v-model="form.province"
28
-                clearable
29
-                filterable
30
-                placeholder="请选择"
31
-                @change="changeProvince"
32
-              >
33
-                <el-option
34
-                  v-for="item in provinces"
35
-                  :key="item.id"
36
-                  :label="item.name"
37
-                  :value="item.id"
38
-                >
39
-                </el-option>
40
-              </el-select>
41
-              <el-select
42
-                v-model="form.city"
43
-                clearable
44
-                filterable
45
-                disabled
46
-                placeholder="请选择"
47
-                @change="changeCity"
48
-              >
49
-                <el-option
50
-                  v-for="item in citys"
51
-                  :key="item.id"
52
-                  :label="item.name"
53
-                  :value="item.id"
54
-                >
55
-                </el-option>
56
-              </el-select>
57
-            </el-form-item>
24
+            <el-option
25
+              v-for="item in provinces"
26
+              :key="item.id"
27
+              :label="item.name"
28
+              :value="item.id"
29
+            >
30
+            </el-option>
31
+          </el-select>
32
+          <el-select
33
+            v-model="form.city"
34
+            clearable
35
+            filterable
36
+            disabled
37
+            placeholder="请选择"
38
+            @change="changeCity"
39
+          >
40
+            <el-option
41
+              v-for="item in citys"
42
+              :key="item.id"
43
+              :label="item.name"
44
+              :value="item.id"
45
+            >
46
+            </el-option>
47
+          </el-select>
48
+        </el-form-item>
58 49
 
59
-            <el-form-item label="网关地址" prop="gateway_address">
60
-              <el-input v-model="form.gateway_address"></el-input>
61
-            </el-form-item>
50
+        <el-form-item label="网关地址" prop="gateway_address">
51
+          <el-input v-model="form.gateway_address"></el-input>
52
+        </el-form-item>
62 53
 
63
-            <el-form-item label="AppID" prop="app_id">
64
-              <el-input v-model="form.app_id"></el-input>
65
-            </el-form-item>
54
+        <el-form-item label="AppID" prop="app_id">
55
+          <el-input v-model="form.app_id"></el-input>
56
+        </el-form-item>
66 57
 
67
-            <el-form-item label="密钥" prop="key">
68
-              <el-input v-model="form.key"></el-input>
69
-            </el-form-item>
58
+        <el-form-item label="密钥" prop="key">
59
+          <el-input v-model="form.key"></el-input>
60
+        </el-form-item>
70 61
 
71
-            <el-form-item label="自动上传周期" prop="time_type">
72
-              <el-radio-group v-model="form.time_type">
73
-                <el-radio label="1">一周</el-radio>
74
-                <el-radio label="2">二周</el-radio>
75
-                <el-radio label="3">一个月</el-radio>
76
-                <el-radio label="4">三个月</el-radio>
77
-              </el-radio-group>
78
-            </el-form-item>
62
+        <el-form-item label="自动上传周期" prop="time_type">
63
+          <el-radio-group v-model="form.time_type">
64
+            <el-radio label="1">一周</el-radio>
65
+            <el-radio label="2">二周</el-radio>
66
+            <el-radio label="3">一个月</el-radio>
67
+            <el-radio label="4">三个月</el-radio>
68
+          </el-radio-group>
69
+        </el-form-item>
79 70
 
80
-            <el-form-item>
81
-              <el-button
82
-                type="primary"
83
-                @click="submitForm('ruleForm')"
84
-                class="changeLeft"
85
-                >保存</el-button
86
-              >
87
-            </el-form-item>
88
-          </el-form>
89
-        </el-col>
90
-      </el-row>
71
+        <el-form-item>
72
+          <el-button
73
+            type="primary"
74
+            @click="submitForm('ruleForm')"
75
+            class="changeLeft"
76
+            >保存</el-button
77
+          >
78
+        </el-form-item>
79
+      </el-form>
91 80
     </div>
92 81
   </div>
93 82
 </template>
@@ -238,5 +227,19 @@ export default {
238 227
 }
239 228
 .titleOne {
240 229
   line-height: 30px;
230
+  margin: 0 auto;
231
+  width: 100%;
232
+  text-align: center;
233
+}
234
+.formBox1 {
235
+  width: 46%;
236
+  margin: 0 auto;
237
+}
238
+</style>
239
+<style lang="scss">
240
+.formBox1 {
241
+  .el-select {
242
+    width: 49%;
243
+  }
241 244
 }
242 245
 </style>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1003 - 688
src/xt_pages/upload/fast/Two.vue


Diferenças do arquivo suprimidas por serem muito extensas
+ 817 - 790
src/xt_pages/user/doctorAdvice.vue


Diferenças do arquivo suprimidas por serem muito extensas
+ 940 - 684
src/xt_pages/user/patients.vue