Browse Source

设备管理

xiaoming_global 5 years ago
parent
commit
a20beac1d5

+ 8 - 1
src/api/manage.js View File

432
 }
432
 }
433
 
433
 
434
 export function UpdateForm(data) {
434
 export function UpdateForm(data) {
435
-  console.log("data", data);
436
   return request({
435
   return request({
437
     url: "/api/manage/updateform",
436
     url: "/api/manage/updateform",
438
     method: "post",
437
     method: "post",
485
     params: params
484
     params: params
486
   });
485
   });
487
 }
486
 }
487
+
488
+export function UpdateMacheineTwo(data) {
489
+  return request({
490
+    url: "/api/manage/updatemacheinettwo",
491
+    method: "post",
492
+    data: data
493
+  });
494
+}

+ 208 - 94
src/xt_pages/management/components/MultipleForm.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <el-dialog title="综合查询" :visible.sync="dialogVisible" width="95%" center>
3
+    <el-dialog
4
+      title="综合查询"
5
+      :visible.sync="dialogVisible"
6
+      width="95%"
7
+      center
8
+    >
4
       <el-form>
9
       <el-form>
5
         <el-row :gutter="20">
10
         <el-row :gutter="20">
6
           <el-col :span="6">
11
           <el-col :span="6">
102
           <el-col :span="5">
107
           <el-col :span="5">
103
             <el-form-item label="合计:">
108
             <el-form-item label="合计:">
104
               故障次数
109
               故障次数
105
-              <span>{{ failure_times }}</span>次
110
+              <span>{{ failure_times }}</span
111
+              >次
106
               <!-- <el-input style="width:90px"></el-input> -->
112
               <!-- <el-input style="width:90px"></el-input> -->
107
             </el-form-item>
113
             </el-form-item>
108
           </el-col>
114
           </el-col>
109
           <el-col :span="4">
115
           <el-col :span="4">
110
-            <el-button type="primary" size="medium" @click="getComprehensive()">查询</el-button>
116
+            <el-button type="primary" size="medium" @click="getComprehensive()"
117
+              >查询</el-button
118
+            >
111
           </el-col>
119
           </el-col>
112
         </el-row>
120
         </el-row>
113
         <el-row>
121
         <el-row>
114
-          <el-table :data="tableData" border style="width:1000">
115
-            <el-table-column prop="date" label="序号" width="60" align="center" type="index">
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
+            >
116
               <!-- <template slot-scope="scope">
130
               <!-- <template slot-scope="scope">
117
                 {{ scope.row.id }}
131
                 {{ scope.row.id }}
118
               </template>-->
132
               </template>-->
120
             <el-table-column prop="name" label="分区" width="60" align="center">
134
             <el-table-column prop="name" label="分区" width="60" align="center">
121
               <template slot-scope="scope">{{ scope.row.name }}</template>
135
               <template slot-scope="scope">{{ scope.row.name }}</template>
122
             </el-table-column>
136
             </el-table-column>
123
-            <el-table-column prop="address" label="序列号" width="80" align="center">
124
-              <template slot-scope="scope">{{ scope.row.serial_number }}</template>
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>
125
             </el-table-column>
146
             </el-table-column>
126
-            <el-table-column prop="address" label="设备类型" width="100" align="center">
127
-              <template slot-scope="scope">{{ scope.row.device_type }}</template>
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>
128
             </el-table-column>
156
             </el-table-column>
129
-            <el-table-column prop="address" label="机号" width="80" align="center">
157
+            <el-table-column
158
+              prop="address"
159
+              label="机号"
160
+              width="80"
161
+              align="center"
162
+            >
130
               <template slot-scope="scope">{{ scope.row.bed_number }}</template>
163
               <template slot-scope="scope">{{ scope.row.bed_number }}</template>
131
             </el-table-column>
164
             </el-table-column>
132
-            <el-table-column prop="address" label="设备名称" width="100" align="center">
133
-              <template slot-scope="scope">{{ scope.row.device_name }}</template>
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>
134
             </el-table-column>
174
             </el-table-column>
135
-            <el-table-column prop="address" label="设备型号" width="100" align="center">
136
-              <template slot-scope="scope">{{ scope.row.device_type }}</template>
175
+            <el-table-column
176
+              prop="address"
177
+              label="设备型号"
178
+              width="100"
179
+              align="center"
180
+            >
181
+              <template slot-scope="scope">{{
182
+                scope.row.device_type
183
+              }}</template>
137
             </el-table-column>
184
             </el-table-column>
138
-            <el-table-column prop="address" label="启用日期" width="100" align="center">
139
-              <template slot-scope="scope">{{ getTime(scope.row.start_date) }}</template>
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>
140
             </el-table-column>
194
             </el-table-column>
141
-            <el-table-column prop="address" label="保修期限" width="100" align="center">
142
-              <template slot-scope="scope">{{ scope.row.guarantee_date }}</template>
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>
143
             </el-table-column>
204
             </el-table-column>
144
-            <el-table-column prop="address" label="机器状态" width="100" align="center">
145
-              <template slot-scope="scope">{{ scope.row.machine_status }}</template>
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>
146
             </el-table-column>
214
             </el-table-column>
147
-            <el-table-column prop="address" label="报废日期" width="100" align="center">
148
-              <template slot-scope="scope">{{ getTime(scope.row.rubbish_date) }}</template>
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>
149
             </el-table-column>
224
             </el-table-column>
150
-            <el-table-column prop="address" label="报废原因" width="100" align="center">
151
-              <template slot-scope="scope">{{ scope.row.rubbish_reason }}</template>
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>
152
             </el-table-column>
234
             </el-table-column>
153
-            <el-table-column prop="address" label="使用年限" width="100" align="center">
235
+            <el-table-column
236
+              prop="address"
237
+              label="使用年限"
238
+              width="100"
239
+              align="center"
240
+            >
154
               <template slot-scope="scope">{{ scope.row.user_year }}</template>
241
               <template slot-scope="scope">{{ scope.row.user_year }}</template>
155
             </el-table-column>
242
             </el-table-column>
156
-            <el-table-column prop="address" label="工作时长" width="100" align="center">
243
+            <el-table-column
244
+              prop="address"
245
+              label="工作时长"
246
+              width="100"
247
+              align="center"
248
+            >
157
               <template slot-scope="scope">{{ scope.row.work_time }}</template>
249
               <template slot-scope="scope">{{ scope.row.work_time }}</template>
158
             </el-table-column>
250
             </el-table-column>
159
-            <el-table-column prop="address" label="使用次数" width="100" align="center">
251
+            <el-table-column
252
+              prop="address"
253
+              label="使用次数"
254
+              width="100"
255
+              align="center"
256
+            >
160
               <template slot-scope="scope">{{ scope.row.user_total }}</template>
257
               <template slot-scope="scope">{{ scope.row.user_total }}</template>
161
             </el-table-column>
258
             </el-table-column>
162
-            <el-table-column prop="address" label="故障次数" width="100" align="center">
259
+            <el-table-column
260
+              prop="address"
261
+              label="故障次数"
262
+              width="100"
263
+              align="center"
264
+            >
163
               <template slot-scope="scope">{{ failure_times }}</template>
265
               <template slot-scope="scope">{{ failure_times }}</template>
164
             </el-table-column>
266
             </el-table-column>
165
           </el-table>
267
           </el-table>
167
       </el-form>
269
       </el-form>
168
       <span slot="footer" class="dialog-footer">
270
       <span slot="footer" class="dialog-footer">
169
         <el-button @click="dialogVisible = false">取 消</el-button>
271
         <el-button @click="dialogVisible = false">取 消</el-button>
170
-        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
272
+        <el-button type="primary" @click="dialogVisible = false"
273
+          >确 定</el-button
274
+        >
171
       </span>
275
       </span>
172
     </el-dialog>
276
     </el-dialog>
173
   </div>
277
   </div>
178
   getAllSubregion,
282
   getAllSubregion,
179
   getAllEquimentName,
283
   getAllEquimentName,
180
   getComprehensive
284
   getComprehensive
181
-} from "@/api/manage";
182
-import { uParseTime } from "@/utils/tools";
285
+} from '@/api/manage'
286
+import { uParseTime } from '@/utils/tools'
183
 export default {
287
 export default {
184
-  name: "MultipleForm",
288
+  name: 'MultipleForm',
185
   data() {
289
   data() {
186
     return {
290
     return {
187
       failure_times: 0,
291
       failure_times: 0,
188
       dialogVisible: false,
292
       dialogVisible: false,
189
       form: {
293
       form: {
190
-        zone: "",
191
-        device_number: "",
192
-        device_type: "",
193
-        device_model: "",
194
-        user_year: "",
195
-        start_time: "",
196
-        end_time: ""
294
+        zone: '',
295
+        device_number: '',
296
+        device_type: '',
297
+        device_model: '',
298
+        user_year: '',
299
+        start_time: '',
300
+        end_time: ''
197
       },
301
       },
198
       userYear: [
302
       userYear: [
199
-        { id: 0, name: "全部" },
200
-        { id: 1, name: "0~1" },
201
-        { id: 2, name: "1~3" },
202
-        { id: 3, name: "3~10" },
203
-        { id: 4, name: "10年以上" }
303
+        { id: 0, name: '全部' },
304
+        { id: 1, name: '0~1' },
305
+        { id: 2, name: '1~3' },
306
+        { id: 3, name: '3~10' },
307
+        { id: 4, name: '10年以上' }
204
       ],
308
       ],
205
-      value1: "",
206
-      value2: "",
309
+      value1: '',
310
+      value2: '',
207
       tableData: [],
311
       tableData: [],
208
       EquitmentType: [
312
       EquitmentType: [
209
-        { id: 0, name: "全部" },
210
-        { id: 1, name: "透析机" },
211
-        { id: 2, name: "水处理机" },
212
-        { id: 3, name: "其他" }
313
+        { id: 0, name: '全部' },
314
+        { id: 1, name: '透析机' },
315
+        { id: 2, name: '水处理机' },
316
+        { id: 3, name: '报废机' },
317
+        { id: 4, name: '其他' }
213
       ],
318
       ],
214
-      DeviceType: [{ id: 0, name: "不限" }],
215
-      Numbers: [{ id: 0, number: "不限" }],
216
-      EquitmentName: [{ id: 0, equitment_name: "全部" }],
217
-      runOptions: [{ value: "1", label: "正常" }, { value: "2", label: "故障" }]
218
-    };
319
+      DeviceType: [{ id: 0, name: '不限' }],
320
+      Numbers: [{ id: 0, number: '不限' }],
321
+      EquitmentName: [{ id: 0, equitment_name: '全部' }],
322
+      runOptions: [
323
+        { value: '1', label: '正常' },
324
+        { value: '2', label: '故障' }
325
+      ]
326
+    }
219
   },
327
   },
220
   methods: {
328
   methods: {
221
     open: function() {
329
     open: function() {
222
-      this.dialogVisible = true;
330
+      this.dialogVisible = true
223
     },
331
     },
224
     getAllSubregion() {
332
     getAllSubregion() {
225
       getAllSubregion().then(response => {
333
       getAllSubregion().then(response => {
226
         if (response.data.state === 1) {
334
         if (response.data.state === 1) {
227
-          var zone = response.data.data.zones;
228
-          var zones = [{ id: 0, name: "不限" }];
335
+          var zone = response.data.data.zones
336
+          var zones = [{ id: 0, name: '不限' }]
229
           for (let i = 0; i < zone.length; i++) {
337
           for (let i = 0; i < zone.length; i++) {
230
-            const item = zone[i];
231
-            zones.push({ id: item.id, name: item.name });
338
+            const item = zone[i]
339
+            zones.push({ id: item.id, name: item.name })
232
           }
340
           }
233
-          this.DeviceType = zones;
234
-          console.log("zones是什么", zone);
235
-
236
-          var number = response.data.data.numbers;
237
-          var numbers = [{ id: 0, number: "不限" }];
341
+          this.DeviceType = zones
342
+          var number = response.data.data.numbers
343
+          var numbers = [{ id: 0, number: '不限' }]
238
           for (let index = 0; index < number.length; index++) {
344
           for (let index = 0; index < number.length; index++) {
239
-            const item = number[index];
240
-            numbers.push({ id: item.id, number: item.number });
345
+            const item = number[index]
346
+            numbers.push({ id: item.id, number: item.number })
241
           }
347
           }
242
-          this.Numbers = numbers;
243
-          console.log("numbers", number);
348
+          this.Numbers = numbers
349
+          console.log('numbers', number)
244
         }
350
         }
245
-      });
351
+      })
246
     },
352
     },
247
     getAllEquimentName() {
353
     getAllEquimentName() {
248
       getAllEquimentName().then(response => {
354
       getAllEquimentName().then(response => {
249
         if (response.data.state == 1) {
355
         if (response.data.state == 1) {
250
-          var equit = response.data.data.equit;
251
-          var equits = [{ id: 0, equitment_name: "全部" }];
356
+          var equit = response.data.data.equit
357
+          var equits = [{ id: 0, equitment_name: '全部' }]
252
           for (let index = 0; index < equit.length; index++) {
358
           for (let index = 0; index < equit.length; index++) {
253
-            const item = equit[index];
254
-            equits.push({ id: item.id, equitment_name: item.equitment_name });
359
+            const item = equit[index]
360
+            equits.push({ id: item.id, equitment_name: item.equitment_name })
255
           }
361
           }
256
-          this.EquitmentName = equits;
362
+          this.EquitmentName = equits
257
         }
363
         }
258
-      });
364
+      })
259
     },
365
     },
260
     getComprehensive() {
366
     getComprehensive() {
261
       const params = {
367
       const params = {
265
         year: this.form.user_year,
371
         year: this.form.user_year,
266
         starttime: this.form.start_time,
372
         starttime: this.form.start_time,
267
         endtime: this.form.end_time
373
         endtime: this.form.end_time
268
-      };
374
+      }
269
       getComprehensive(params).then(response => {
375
       getComprehensive(params).then(response => {
270
         if (response.data.state === 1) {
376
         if (response.data.state === 1) {
271
-          var macher = response.data.data.macher;
377
+          var macher = response.data.data.macher
272
           for (let index = 0; index < macher.length; index++) {
378
           for (let index = 0; index < macher.length; index++) {
273
             if (macher[index].device_type === 1) {
379
             if (macher[index].device_type === 1) {
274
-              macher[index].device_type = "透析机";
380
+              macher[index].device_type = '透析机'
275
             }
381
             }
276
             if (macher[index].device_type === 2) {
382
             if (macher[index].device_type === 2) {
277
-              macher[index].device_type = "水处理机";
383
+              macher[index].device_type = '水处理机'
278
             }
384
             }
279
             if (macher[index].device_type === 3) {
385
             if (macher[index].device_type === 3) {
280
-              macher[index].device_type = "其他";
386
+              macher[index].device_type = '其他'
281
             }
387
             }
282
 
388
 
283
             if (macher[index].machine_status === 1) {
389
             if (macher[index].machine_status === 1) {
284
-              macher[index].machine_status = "使用机";
390
+              macher[index].machine_status = '使用机'
285
             }
391
             }
286
             if (macher[index].machine_status === 2) {
392
             if (macher[index].machine_status === 2) {
287
-              macher[index].machine_status = "备用机";
393
+              macher[index].machine_status = '备用机'
288
             }
394
             }
289
             if (macher[index].machine_status === 3) {
395
             if (macher[index].machine_status === 3) {
290
-              macher[index].machine_status = "急诊机";
396
+              macher[index].machine_status = '急诊机'
291
             }
397
             }
292
             if (macher[index].machine_status === 4) {
398
             if (macher[index].machine_status === 4) {
293
-              macher[index].machine_status = "报废机";
399
+              macher[index].machine_status = '报废机'
294
             }
400
             }
295
             if (macher[index].rubbish_reason === 0) {
401
             if (macher[index].rubbish_reason === 0) {
296
-              macher[index].rubbish_reason = "";
402
+              macher[index].rubbish_reason = ''
297
             }
403
             }
298
           }
404
           }
299
-          console.log("macher", macher);
300
-          this.tableData = macher;
405
+          console.log('macher', macher)
406
+          this.tableData = macher
301
         }
407
         }
302
-      });
408
+      })
303
     },
409
     },
304
     getTime(time) {
410
     getTime(time) {
305
       if (time === 0) {
411
       if (time === 0) {
306
-        return "";
412
+        return ''
307
       } else {
413
       } else {
308
-        return uParseTime(time, "{y}-{m}-{d}");
414
+        return uParseTime(time, '{y}-{m}-{d}')
309
       }
415
       }
310
     }
416
     }
311
   },
417
   },
312
   created() {
418
   created() {
313
-    this.getAllSubregion();
314
-    this.getAllEquimentName();
419
+    this.getAllSubregion()
420
+    this.getAllEquimentName()
315
   }
421
   }
316
-};
422
+}
317
 </script>
423
 </script>
318
 
424
 
319
 <style scoped></style>
425
 <style scoped></style>
426
+<style lang="scss">
427
+.el-table__header {
428
+  width: 100% !important;
429
+}
430
+.el-table__body {
431
+  width: 100% !important;
432
+}
433
+</style>

+ 321 - 321
src/xt_pages/management/components/QualityForm.vue View File

74
       >
74
       >
75
         <el-table-column align="center" type="selection" width="55"></el-table-column>
75
         <el-table-column align="center" type="selection" width="55"></el-table-column>
76
         <el-table-column prop="date" label="机号" width="80" align="center">
76
         <el-table-column prop="date" label="机号" width="80" align="center">
77
-          <template slot-scope="scope">{{scope.row.bed_id}}</template>
77
+          <template slot-scope="scope">{{scope.row.bed}}</template>
78
         </el-table-column>
78
         </el-table-column>
79
         <el-table-column prop="name" label="取样日期" width="100" align="center">
79
         <el-table-column prop="name" label="取样日期" width="100" align="center">
80
           <template slot-scope="scope">{{getTime(scope.row.speling_date)}}</template>
80
           <template slot-scope="scope">{{getTime(scope.row.speling_date)}}</template>
140
       >
140
       >
141
         <el-table-column align="center" type="selection" width="55"></el-table-column>
141
         <el-table-column align="center" type="selection" width="55"></el-table-column>
142
         <el-table-column prop="date" label="机号" width="80" align="center">
142
         <el-table-column prop="date" label="机号" width="80" align="center">
143
-          <template slot-scope="scope">{{scope.row.bed_id}}</template>
143
+          <template slot-scope="scope">{{scope.row.bed}}</template>
144
         </el-table-column>
144
         </el-table-column>
145
         <el-table-column prop="name" label="取样日期" width="100" align="center">
145
         <el-table-column prop="name" label="取样日期" width="100" align="center">
146
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
146
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
206
       >
206
       >
207
         <el-table-column align="center" type="selection" width="55"></el-table-column>
207
         <el-table-column align="center" type="selection" width="55"></el-table-column>
208
         <el-table-column prop="date" label="机号" width="80" align="center">
208
         <el-table-column prop="date" label="机号" width="80" align="center">
209
-          <template slot-scope="scope">{{scope.row.bed_id}}</template>
209
+          <template slot-scope="scope">{{scope.row.bed}}</template>
210
         </el-table-column>
210
         </el-table-column>
211
         <el-table-column prop="name" label="取样日期" width="80" align="center">
211
         <el-table-column prop="name" label="取样日期" width="80" align="center">
212
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
212
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
386
     </el-dialog>
386
     </el-dialog>
387
 
387
 
388
     <!-- 编辑内霉素检测 -->
388
     <!-- 编辑内霉素检测 -->
389
-    <el-dialog title="内霉素检测" :visible.sync="dialogVisibleTwo" width="50%" center>
389
+    <el-dialog title="内霉素检测" :visible.sync="dialogVisibleTwo" width="60%" center>
390
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
390
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
391
         <el-row>
391
         <el-row>
392
           <el-col :span="8">
392
           <el-col :span="8">
640
   UpdateIon,
640
   UpdateIon,
641
   DeleteIon,
641
   DeleteIon,
642
   queryTable
642
   queryTable
643
-} from "@/api/manage";
644
-import { uParseTime } from "@/utils/tools";
643
+} from '@/api/manage'
644
+import { uParseTime } from '@/utils/tools'
645
 export default {
645
 export default {
646
-  name: "QualityForm",
646
+  name: 'QualityForm',
647
   data() {
647
   data() {
648
     return {
648
     return {
649
       isIndeterminate: false,
649
       isIndeterminate: false,
650
       checkAllStatus: false,
650
       checkAllStatus: false,
651
       beds: [],
651
       beds: [],
652
       forms: {
652
       forms: {
653
-        bed: "",
653
+        bed: '',
654
         sename: 1,
654
         sename: 1,
655
-        start_time: "",
656
-        end_time: ""
655
+        start_time: '',
656
+        end_time: ''
657
       },
657
       },
658
       tableData: [],
658
       tableData: [],
659
       table: [],
659
       table: [],
663
       showTwo: false,
663
       showTwo: false,
664
       bedNumber: [],
664
       bedNumber: [],
665
       tableTypes: [
665
       tableTypes: [
666
-        { id: 1, name: "细菌培养" },
667
-        { id: 2, name: "内霉素检测" },
668
-        { id: 3, name: "透析液离子浓度检测" }
666
+        { id: 1, name: '细菌培养' },
667
+        { id: 2, name: '内霉素检测' },
668
+        { id: 3, name: '透析液离子浓度检测' }
669
       ],
669
       ],
670
       dialogVisible: false,
670
       dialogVisible: false,
671
       dialogVisibleTwo: false,
671
       dialogVisibleTwo: false,
673
       disable: true,
673
       disable: true,
674
       diableTwo: true,
674
       diableTwo: true,
675
       form: {
675
       form: {
676
-        id: "",
677
-        date: "",
678
-        specimen: "",
679
-        concentrate_noa: "",
680
-        concentrate_nob: "",
681
-        sampling_locationa: "",
682
-        detection_unit: "",
683
-        sampler: "",
684
-        reporting_date: "",
685
-        detection_result: ""
676
+        id: '',
677
+        date: '',
678
+        specimen: '',
679
+        concentrate_noa: '',
680
+        concentrate_nob: '',
681
+        sampling_locationa: '',
682
+        detection_unit: '',
683
+        sampler: '',
684
+        reporting_date: '',
685
+        detection_result: ''
686
       },
686
       },
687
       diaForm: {
687
       diaForm: {
688
-        id: "",
689
-        sampling_date: "",
690
-        specimenb: "",
691
-        concentrate_noc: "",
692
-        concentrateb_nod: "",
693
-        sampling_locationb: "",
694
-        detection_unit: "",
695
-        samplerb: "",
696
-        reporting_dateb: "",
697
-        detection_resultb: ""
688
+        id: '',
689
+        sampling_date: '',
690
+        specimenb: '',
691
+        concentrate_noc: '',
692
+        concentrateb_nod: '',
693
+        sampling_locationb: '',
694
+        detection_unit: '',
695
+        samplerb: '',
696
+        reporting_dateb: '',
697
+        detection_resultb: ''
698
       },
698
       },
699
       sampling: [],
699
       sampling: [],
700
       samplingSpecimen: [
700
       samplingSpecimen: [
701
-        { id: 0, name: "请选择" },
702
-        { id: 1, name: "透析液" },
703
-        { id: 2, name: "A浓缩液" },
704
-        { id: 3, name: "B浓缩液" },
705
-        { id: 4, name: "置换液" },
706
-        { id: 5, name: "透析用水" }
701
+        { id: 0, name: '请选择' },
702
+        { id: 1, name: '透析液' },
703
+        { id: 2, name: 'A浓缩液' },
704
+        { id: 3, name: 'B浓缩液' },
705
+        { id: 4, name: '置换液' },
706
+        { id: 5, name: '透析用水' }
707
       ],
707
       ],
708
       samplingLocation: [
708
       samplingLocation: [
709
-        { id: 0, name: "请选择" },
710
-        { id: 1, name: "透析液入口" },
711
-        { id: 2, name: "透析液取样口" },
712
-        { id: 3, name: "置换液出口" },
713
-        { id: 4, name: "透析机反渗水入口" }
709
+        { id: 0, name: '请选择' },
710
+        { id: 1, name: '透析液入口' },
711
+        { id: 2, name: '透析液取样口' },
712
+        { id: 3, name: '置换液出口' },
713
+        { id: 4, name: '透析机反渗水入口' }
714
       ],
714
       ],
715
       rules: {
715
       rules: {
716
-        detection_unit: [{ required: true, message: "请填写检测单位" }],
717
-        sampler: [{ required: true, message: "请填写取样者" }]
716
+        detection_unit: [{ required: true, message: '请填写检测单位' }],
717
+        sampler: [{ required: true, message: '请填写取样者' }]
718
       },
718
       },
719
       diaRules: {
719
       diaRules: {
720
-        detection_unit: [{ required: true, message: "请填写检测单位" }],
721
-        samplerb: [{ required: true, message: "请填写取样者" }]
720
+        detection_unit: [{ required: true, message: '请填写检测单位' }],
721
+        samplerb: [{ required: true, message: '请填写取样者' }]
722
       },
722
       },
723
       ionrule: {
723
       ionrule: {
724
-        detection_unit: [{ required: true, message: "请填写检测单位" }],
725
-        samplerc: [{ required: true, message: "请填写取样者" }]
724
+        detection_unit: [{ required: true, message: '请填写检测单位' }],
725
+        samplerc: [{ required: true, message: '请填写取样者' }]
726
       },
726
       },
727
       selectCulture: [],
727
       selectCulture: [],
728
       ionForm: {
728
       ionForm: {
729
-        dateb: "",
730
-        samplerc: "",
731
-        detection_unit: "",
732
-        concentrate_nof: "",
733
-        concentrate_nog: "",
734
-        date_reportc: "",
735
-        actual_na: "",
736
-        actual_pna: "",
737
-        actual_k: "",
738
-        actual_ca: "",
739
-        actual_ci: "",
740
-        actual_hco: "",
741
-        actual_mg: "",
742
-        actual_ph: ""
729
+        dateb: '',
730
+        samplerc: '',
731
+        detection_unit: '',
732
+        concentrate_nof: '',
733
+        concentrate_nog: '',
734
+        date_reportc: '',
735
+        actual_na: '',
736
+        actual_pna: '',
737
+        actual_k: '',
738
+        actual_ca: '',
739
+        actual_ci: '',
740
+        actual_hco: '',
741
+        actual_mg: '',
742
+        actual_ph: ''
743
       }
743
       }
744
-    };
744
+    }
745
   },
745
   },
746
   methods: {
746
   methods: {
747
     changeCheck() {
747
     changeCheck() {
748
-      this.$refs.multipleTable.clearSelection();
748
+      this.$refs.multipleTable.clearSelection()
749
       if (this.checkAllStatus) {
749
       if (this.checkAllStatus) {
750
-        this.$refs.multipleTable.toggleAllSelection();
750
+        this.$refs.multipleTable.toggleAllSelection()
751
       }
751
       }
752
 
752
 
753
-      this.$refs.multipleTableOne.clearSelection();
753
+      this.$refs.multipleTableOne.clearSelection()
754
       if (this.checkAllStatus) {
754
       if (this.checkAllStatus) {
755
-        this.$refs.multipleTableOne.toggleAllSelection();
755
+        this.$refs.multipleTableOne.toggleAllSelection()
756
       }
756
       }
757
 
757
 
758
-      this.$refs.multipleTableTwo.clearSelection();
758
+      this.$refs.multipleTableTwo.clearSelection()
759
       if (this.checkAllStatus) {
759
       if (this.checkAllStatus) {
760
-        this.$refs.multipleTableTwo.toggleAllSelection();
760
+        this.$refs.multipleTableTwo.toggleAllSelection()
761
       }
761
       }
762
     },
762
     },
763
     handleSelectionChange(val) {
763
     handleSelectionChange(val) {
764
-      this.selectCulture = val;
764
+      this.selectCulture = val
765
     },
765
     },
766
     handleSelectionChangeOne(val) {
766
     handleSelectionChangeOne(val) {
767
-      this.selectCulture = val;
767
+      this.selectCulture = val
768
     },
768
     },
769
     handleSelectionChangeTwo(val) {
769
     handleSelectionChangeTwo(val) {
770
-      this.selectCulture = val;
770
+      this.selectCulture = val
771
     },
771
     },
772
     getAllSubregion() {
772
     getAllSubregion() {
773
       getAllSubregion().then(response => {
773
       getAllSubregion().then(response => {
774
-        var zones = response.data.data.zones;
775
-        var numbers = response.data.data.numbers;
776
-        var number = [{ id: 0, number: "全部" }];
774
+        var zones = response.data.data.zones
775
+        var numbers = response.data.data.numbers
776
+        var number = [{ id: 0, number: '全部' }]
777
         for (let index = 0; index < numbers.length; index++) {
777
         for (let index = 0; index < numbers.length; index++) {
778
-          const item = numbers[index];
779
-          number.push({ id: item.id, number: item.number });
778
+          const item = numbers[index]
779
+          number.push({ id: item.id, number: item.number })
780
         }
780
         }
781
-        this.bedNumber = number;
782
-      });
781
+        this.bedNumber = number
782
+      })
783
     },
783
     },
784
     getAllQulityInfo() {
784
     getAllQulityInfo() {
785
       getAllQulityInfo().then(response => {
785
       getAllQulityInfo().then(response => {
786
         if (response.data.state === 1) {
786
         if (response.data.state === 1) {
787
-          var cultures = response.data.data.cultures;
788
-          console.log("cultures", cultures);
787
+          var cultures = response.data.data.cultures
788
+          console.log('cultures', cultures)
789
 
789
 
790
           for (let index = 0; index < cultures.length; index++) {
790
           for (let index = 0; index < cultures.length; index++) {
791
             if (cultures[index].specimen === 0) {
791
             if (cultures[index].specimen === 0) {
792
-              cultures[index].specimen = "";
792
+              cultures[index].specimen = ''
793
             }
793
             }
794
             if (cultures[index].specimen === 1) {
794
             if (cultures[index].specimen === 1) {
795
-              cultures[index].specimen = "透析液";
795
+              cultures[index].specimen = '透析液'
796
             }
796
             }
797
             if (cultures[index].specimen === 2) {
797
             if (cultures[index].specimen === 2) {
798
-              cultures[index].specimen = "A浓缩液";
798
+              cultures[index].specimen = 'A浓缩液'
799
             }
799
             }
800
             if (cultures[index].specimen === 3) {
800
             if (cultures[index].specimen === 3) {
801
-              cultures[index].specimen = "B浓缩液";
801
+              cultures[index].specimen = 'B浓缩液'
802
             }
802
             }
803
             if (cultures[index].specimen === 4) {
803
             if (cultures[index].specimen === 4) {
804
-              cultures[index].specimen = "置换液";
804
+              cultures[index].specimen = '置换液'
805
             }
805
             }
806
             if (cultures[index].specimen === 5) {
806
             if (cultures[index].specimen === 5) {
807
-              cultures[index].specimen = "透析用水";
807
+              cultures[index].specimen = '透析用水'
808
             }
808
             }
809
 
809
 
810
             if (cultures[index].sampling_locationa === 0) {
810
             if (cultures[index].sampling_locationa === 0) {
811
-              cultures[index].sampling_locationa = "";
811
+              cultures[index].sampling_locationa = ''
812
             }
812
             }
813
 
813
 
814
             if (cultures[index].sampling_locationa === 1) {
814
             if (cultures[index].sampling_locationa === 1) {
815
-              cultures[index].sampling_locationa = "透析液入口";
815
+              cultures[index].sampling_locationa = '透析液入口'
816
             }
816
             }
817
             if (cultures[index].sampling_locationa === 2) {
817
             if (cultures[index].sampling_locationa === 2) {
818
-              cultures[index].sampling_locationa = "透析液取样口";
818
+              cultures[index].sampling_locationa = '透析液取样口'
819
             }
819
             }
820
             if (cultures[index].sampling_locationa === 3) {
820
             if (cultures[index].sampling_locationa === 3) {
821
-              cultures[index].sampling_locationa = "置换液出口";
821
+              cultures[index].sampling_locationa = '置换液出口'
822
             }
822
             }
823
             if (cultures[index].sampling_locationa === 4) {
823
             if (cultures[index].sampling_locationa === 4) {
824
-              cultures[index].sampling_locationa = "透析机反渗水入口";
824
+              cultures[index].sampling_locationa = '透析机反渗水入口'
825
             }
825
             }
826
           }
826
           }
827
-          this.tableData = cultures;
828
-          var dialyste = response.data.data.dialysate;
829
-          console.log("dialyste", dialyste);
827
+          this.tableData = cultures
828
+          var dialyste = response.data.data.dialysate
829
+          console.log('dialyste', dialyste)
830
           for (let index = 0; index < dialyste.length; index++) {
830
           for (let index = 0; index < dialyste.length; index++) {
831
             if (dialyste[index].specimenb === 0) {
831
             if (dialyste[index].specimenb === 0) {
832
-              dialyste[index].specimenb = "";
832
+              dialyste[index].specimenb = ''
833
             }
833
             }
834
             if (dialyste[index].specimenb === 1) {
834
             if (dialyste[index].specimenb === 1) {
835
-              dialyste[index].specimenb = "透析液";
835
+              dialyste[index].specimenb = '透析液'
836
             }
836
             }
837
             if (dialyste[index].specimenb === 2) {
837
             if (dialyste[index].specimenb === 2) {
838
-              dialyste[index].specimenb = "A浓缩液";
838
+              dialyste[index].specimenb = 'A浓缩液'
839
             }
839
             }
840
             if (dialyste[index].specimenb === 3) {
840
             if (dialyste[index].specimenb === 3) {
841
-              dialyste[index].specimenb = "B浓缩液";
841
+              dialyste[index].specimenb = 'B浓缩液'
842
             }
842
             }
843
             if (dialyste[index].specimenb === 4) {
843
             if (dialyste[index].specimenb === 4) {
844
-              dialyste[index].specimenb = "置换液";
844
+              dialyste[index].specimenb = '置换液'
845
             }
845
             }
846
             if (dialyste[index].specimenb === 5) {
846
             if (dialyste[index].specimenb === 5) {
847
-              dialyste[index].specimenb = "透析用水";
847
+              dialyste[index].specimenb = '透析用水'
848
             }
848
             }
849
 
849
 
850
             if (dialyste[index].sampling_locationb === 0) {
850
             if (dialyste[index].sampling_locationb === 0) {
851
-              dialyste[index].sampling_locationb = "";
851
+              dialyste[index].sampling_locationb = ''
852
             }
852
             }
853
 
853
 
854
             if (dialyste[index].sampling_locationb === 1) {
854
             if (dialyste[index].sampling_locationb === 1) {
855
-              dialyste[index].sampling_locationb = "透析液入口";
855
+              dialyste[index].sampling_locationb = '透析液入口'
856
             }
856
             }
857
             if (dialyste[index].sampling_locationb === 2) {
857
             if (dialyste[index].sampling_locationb === 2) {
858
-              dialyste[index].sampling_locationb = "透析液取样口";
858
+              dialyste[index].sampling_locationb = '透析液取样口'
859
             }
859
             }
860
             if (dialyste[index].sampling_locationb === 3) {
860
             if (dialyste[index].sampling_locationb === 3) {
861
-              dialyste[index].sampling_locationb = "置换液出口";
861
+              dialyste[index].sampling_locationb = '置换液出口'
862
             }
862
             }
863
             if (dialyste[index].sampling_locationb === 4) {
863
             if (dialyste[index].sampling_locationb === 4) {
864
-              dialyste[index].sampling_locationb = "透析机反渗水入口";
864
+              dialyste[index].sampling_locationb = '透析机反渗水入口'
865
             }
865
             }
866
           }
866
           }
867
-          this.table = dialyste;
868
-          var ions = response.data.data.ions;
869
-          console.log("ions", ions);
870
-          this.tableDatas = ions;
867
+          this.table = dialyste
868
+          var ions = response.data.data.ions
869
+          console.log('ions', ions)
870
+          this.tableDatas = ions
871
         }
871
         }
872
-      });
872
+      })
873
     },
873
     },
874
     changeSpecimen(val) {
874
     changeSpecimen(val) {
875
       if (val === 0) {
875
       if (val === 0) {
876
-        this.disable = false;
877
-        this.diableTwo = false;
876
+        this.disable = false
877
+        this.diableTwo = false
878
       }
878
       }
879
       if (val === 1) {
879
       if (val === 1) {
880
-        this.diableTwo = false;
881
-        this.disable = false;
880
+        this.diableTwo = false
881
+        this.disable = false
882
       }
882
       }
883
       if (val === 2) {
883
       if (val === 2) {
884
-        this.diableTwo = true;
885
-        this.disable = false;
884
+        this.diableTwo = true
885
+        this.disable = false
886
       }
886
       }
887
       if (val === 3) {
887
       if (val === 3) {
888
-        this.disable = true;
889
-        this.diableTwo = false;
888
+        this.disable = true
889
+        this.diableTwo = false
890
       }
890
       }
891
       if (val === 4) {
891
       if (val === 4) {
892
-        this.disable = false;
893
-        this.diableTwo = false;
892
+        this.disable = false
893
+        this.diableTwo = false
894
       }
894
       }
895
       if (val === 5) {
895
       if (val === 5) {
896
-        this.disable = false;
897
-        this.diableTwo = false;
896
+        this.disable = false
897
+        this.diableTwo = false
898
       }
898
       }
899
     },
899
     },
900
     changeSpeciment(val) {
900
     changeSpeciment(val) {
901
       if (val === 0) {
901
       if (val === 0) {
902
-        this.disable = false;
903
-        this.diableTwo = false;
902
+        this.disable = false
903
+        this.diableTwo = false
904
       }
904
       }
905
       if (val === 1) {
905
       if (val === 1) {
906
-        this.disable = false;
907
-        this.diableTwo = false;
906
+        this.disable = false
907
+        this.diableTwo = false
908
       }
908
       }
909
       if (val === 2) {
909
       if (val === 2) {
910
-        this.diableTwo = true;
911
-        this.disable = false;
910
+        this.diableTwo = true
911
+        this.disable = false
912
       }
912
       }
913
       if (val === 3) {
913
       if (val === 3) {
914
-        this.disable = true;
915
-        this.diableTwo = false;
914
+        this.disable = true
915
+        this.diableTwo = false
916
       }
916
       }
917
       if (val === 4) {
917
       if (val === 4) {
918
-        this.disable = false;
919
-        this.diableTwo = false;
918
+        this.disable = false
919
+        this.diableTwo = false
920
       }
920
       }
921
       if (val === 5) {
921
       if (val === 5) {
922
-        this.disable = false;
923
-        this.diableTwo = false;
922
+        this.disable = false
923
+        this.diableTwo = false
924
       }
924
       }
925
     },
925
     },
926
     changeTable(val) {
926
     changeTable(val) {
927
       if (val === 1) {
927
       if (val === 1) {
928
-        this.showOne = false;
929
-        this.showTwo = false;
930
-        this.show = true;
928
+        this.showOne = false
929
+        this.showTwo = false
930
+        this.show = true
931
       }
931
       }
932
       if (val === 2) {
932
       if (val === 2) {
933
-        this.showOne = true;
934
-        this.show = false;
935
-        this.showTwo = false;
933
+        this.showOne = true
934
+        this.show = false
935
+        this.showTwo = false
936
       }
936
       }
937
       if (val === 3) {
937
       if (val === 3) {
938
-        this.showTwo = true;
939
-        this.show = false;
940
-        this.showOne = false;
938
+        this.showTwo = true
939
+        this.show = false
940
+        this.showOne = false
941
       }
941
       }
942
     },
942
     },
943
     getTime(time) {
943
     getTime(time) {
944
-      return uParseTime(time, "{y}-{m}-{d}");
944
+      return uParseTime(time, '{y}-{m}-{d}')
945
     },
945
     },
946
     getAllOrganization() {
946
     getAllOrganization() {
947
       getAllOrganization().then(response => {
947
       getAllOrganization().then(response => {
948
         if (response.data.state === 1) {
948
         if (response.data.state === 1) {
949
-          var approle = response.data.data.approle;
950
-          this.sampling = approle;
949
+          var approle = response.data.data.approle
950
+          this.sampling = approle
951
         }
951
         }
952
-      });
952
+      })
953
     },
953
     },
954
     EditCulture(id, userid) {
954
     EditCulture(id, userid) {
955
-      this.dialogVisible = true;
955
+      this.dialogVisible = true
956
 
956
 
957
-      if (this.form.specimen === "") {
958
-        this.form.specimen = 0;
957
+      if (this.form.specimen === '') {
958
+        this.form.specimen = 0
959
       }
959
       }
960
-      var specimens = this.form.specimen;
961
-      var specimen = parseInt(specimens);
962
-      this.form.specimen = specimen;
960
+      var specimens = this.form.specimen
961
+      var specimen = parseInt(specimens)
962
+      this.form.specimen = specimen
963
 
963
 
964
-      if (this.form.locationa === "") {
965
-        this.form.specimen = 0;
964
+      if (this.form.locationa === '') {
965
+        this.form.specimen = 0
966
       }
966
       }
967
-      var locationa = this.form.sampling_locationa;
968
-      var location = parseInt(locationa);
969
-      this.form.locationa = location;
967
+      var locationa = this.form.sampling_locationa
968
+      var location = parseInt(locationa)
969
+      this.form.locationa = location
970
       EditCulture(id, userid).then(response => {
970
       EditCulture(id, userid).then(response => {
971
         if (response.data.state === 1) {
971
         if (response.data.state === 1) {
972
-          var culture = response.data.data.culture;
973
-          console.log("禁用", culture);
974
-          var role = response.data.data.role;
975
-          console.log("role", role);
976
-          this.form.id = culture.id;
977
-          this.form.date = uParseTime(culture.speling_date, "{y}-{m}-{d}");
978
-          this.form.specimen = culture.specimen;
972
+          var culture = response.data.data.culture
973
+          console.log('禁用', culture)
974
+          var role = response.data.data.role
975
+          console.log('role', role)
976
+          this.form.id = culture.id
977
+          this.form.date = uParseTime(culture.speling_date, '{y}-{m}-{d}')
978
+          this.form.specimen = culture.specimen
979
 
979
 
980
           if (this.form.specimen === 0) {
980
           if (this.form.specimen === 0) {
981
-            this.disable = false;
982
-            this.diableTwo = false;
981
+            this.disable = false
982
+            this.diableTwo = false
983
           }
983
           }
984
 
984
 
985
           if (this.form.specimen === 1) {
985
           if (this.form.specimen === 1) {
986
-            this.disable = false;
987
-            this.diableTwo = false;
986
+            this.disable = false
987
+            this.diableTwo = false
988
           }
988
           }
989
 
989
 
990
           if (this.form.specimen === 2) {
990
           if (this.form.specimen === 2) {
991
-            this.disable = false;
992
-            this.diableTwo = true;
991
+            this.disable = false
992
+            this.diableTwo = true
993
           }
993
           }
994
           if (this.form.specimen === 3) {
994
           if (this.form.specimen === 3) {
995
-            this.diableTwo = false;
996
-            this.disable = true;
995
+            this.diableTwo = false
996
+            this.disable = true
997
           }
997
           }
998
 
998
 
999
           if (this.form.specimen === 4) {
999
           if (this.form.specimen === 4) {
1000
-            this.disable = false;
1001
-            this.diableTwo = false;
1000
+            this.disable = false
1001
+            this.diableTwo = false
1002
           }
1002
           }
1003
           if (this.form.specimen === 5) {
1003
           if (this.form.specimen === 5) {
1004
-            this.disable = false;
1005
-            this.diableTwo = false;
1004
+            this.disable = false
1005
+            this.diableTwo = false
1006
           }
1006
           }
1007
 
1007
 
1008
-          this.form.concentrate_noa = culture.concentrate_noa;
1009
-          this.form.concentrate_nob = culture.concentrate_nob;
1010
-          this.form.sampling_locationa = culture.sampling_locationa;
1011
-          this.form.detection_unit = culture.detection_unit;
1012
-          this.form.sampler = culture.sampler;
1008
+          this.form.concentrate_noa = culture.concentrate_noa
1009
+          this.form.concentrate_nob = culture.concentrate_nob
1010
+          this.form.sampling_locationa = culture.sampling_locationa
1011
+          this.form.detection_unit = culture.detection_unit
1012
+          this.form.sampler = culture.sampler
1013
           this.form.reporting_date = uParseTime(
1013
           this.form.reporting_date = uParseTime(
1014
             culture.reporting_date,
1014
             culture.reporting_date,
1015
-            "{y}-{m}-{d}"
1016
-          );
1017
-          this.form.detection_result = culture.detection_result;
1015
+            '{y}-{m}-{d}'
1016
+          )
1017
+          this.form.detection_result = culture.detection_result
1018
         }
1018
         }
1019
-      });
1019
+      })
1020
     },
1020
     },
1021
 
1021
 
1022
     UpdateCulture(formName) {
1022
     UpdateCulture(formName) {
1024
         if (valid) {
1024
         if (valid) {
1025
           UpdateCulture(this.form).then(response => {
1025
           UpdateCulture(this.form).then(response => {
1026
             if (response.data.state === 1) {
1026
             if (response.data.state === 1) {
1027
-              var culture = response.data.data.culture;
1028
-              this.$message.success("修改成功");
1029
-              this.dialogVisible = false;
1030
-              this.getAllQulityInfo();
1027
+              var culture = response.data.data.culture
1028
+              this.$message.success('修改成功')
1029
+              this.dialogVisible = false
1030
+              this.getAllQulityInfo()
1031
             }
1031
             }
1032
-          });
1032
+          })
1033
         }
1033
         }
1034
-      });
1034
+      })
1035
     },
1035
     },
1036
     BatchDelete() {
1036
     BatchDelete() {
1037
       if (this.selectCulture.length == 0) {
1037
       if (this.selectCulture.length == 0) {
1038
-        this.$message.error("请选择要删除的信息");
1039
-        return false;
1038
+        this.$message.error('请选择要删除的信息')
1039
+        return false
1040
       }
1040
       }
1041
       this.$confirm(
1041
       this.$confirm(
1042
-        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1043
-        "删除提示",
1042
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1043
+        '删除提示',
1044
         {
1044
         {
1045
           dangerouslyUseHTMLString: true,
1045
           dangerouslyUseHTMLString: true,
1046
-          confirmButtonText: "确定",
1047
-          cancelButtonText: "取消",
1048
-          type: "warning"
1046
+          confirmButtonText: '确定',
1047
+          cancelButtonText: '取消',
1048
+          type: 'warning'
1049
         }
1049
         }
1050
       ).then(() => {
1050
       ).then(() => {
1051
-        var ids = [];
1052
-        var idMap = {};
1051
+        var ids = []
1052
+        var idMap = {}
1053
         for (const index in this.selectCulture) {
1053
         for (const index in this.selectCulture) {
1054
-          ids.push(this.selectCulture[index].id);
1055
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1054
+          ids.push(this.selectCulture[index].id)
1055
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1056
         }
1056
         }
1057
         DeleteCultrue({ ids: ids }).then(response => {
1057
         DeleteCultrue({ ids: ids }).then(response => {
1058
           if (response.data.state === 1) {
1058
           if (response.data.state === 1) {
1059
-            var msg = response.data.data.msg;
1060
-            var planDataLength = this.tableData.length;
1059
+            var msg = response.data.data.msg
1060
+            var planDataLength = this.tableData.length
1061
             for (let index = planDataLength - 1; index >= 0; index--) {
1061
             for (let index = planDataLength - 1; index >= 0; index--) {
1062
               if (this.tableData[index].id in idMap) {
1062
               if (this.tableData[index].id in idMap) {
1063
-                this.tableData.splice(index, 1);
1063
+                this.tableData.splice(index, 1)
1064
               }
1064
               }
1065
             }
1065
             }
1066
-            this.$message.success("删除成功");
1066
+            this.$message.success('删除成功')
1067
           }
1067
           }
1068
-        });
1069
-      });
1068
+        })
1069
+      })
1070
     },
1070
     },
1071
     EditDialyState(id) {
1071
     EditDialyState(id) {
1072
-      this.dialogVisibleTwo = true;
1072
+      this.dialogVisibleTwo = true
1073
       EditDialyState(id).then(response => {
1073
       EditDialyState(id).then(response => {
1074
         if (response.data.state === 1) {
1074
         if (response.data.state === 1) {
1075
-          var dialysate = response.data.data.dialysate;
1076
-          console.log("dialysate", dialysate);
1077
-          this.diaForm.id = dialysate.id;
1075
+          var dialysate = response.data.data.dialysate
1076
+          console.log('dialysate', dialysate)
1077
+          this.diaForm.id = dialysate.id
1078
           this.diaForm.sampling_date = uParseTime(
1078
           this.diaForm.sampling_date = uParseTime(
1079
             dialysate.sampling_date,
1079
             dialysate.sampling_date,
1080
-            "{y}-{m}-{d}"
1081
-          );
1082
-          this.diaForm.specimenb = dialysate.specimenb;
1080
+            '{y}-{m}-{d}'
1081
+          )
1082
+          this.diaForm.specimenb = dialysate.specimenb
1083
           if (this.diaForm.specimenb === 0) {
1083
           if (this.diaForm.specimenb === 0) {
1084
-            this.disable = false;
1085
-            this.diableTwo = false;
1084
+            this.disable = false
1085
+            this.diableTwo = false
1086
           }
1086
           }
1087
 
1087
 
1088
           if (this.diaForm.specimenb === 1) {
1088
           if (this.diaForm.specimenb === 1) {
1089
-            this.disable = false;
1090
-            this.diableTwo = false;
1089
+            this.disable = false
1090
+            this.diableTwo = false
1091
           }
1091
           }
1092
 
1092
 
1093
           if (this.diaForm.specimenb === 2) {
1093
           if (this.diaForm.specimenb === 2) {
1094
-            this.disable = false;
1095
-            this.diableTwo = true;
1094
+            this.disable = false
1095
+            this.diableTwo = true
1096
           }
1096
           }
1097
           if (this.diaForm.specimenb === 3) {
1097
           if (this.diaForm.specimenb === 3) {
1098
-            this.diableTwo = false;
1099
-            this.disable = true;
1098
+            this.diableTwo = false
1099
+            this.disable = true
1100
           }
1100
           }
1101
 
1101
 
1102
           if (this.diaForm.specimenb === 4) {
1102
           if (this.diaForm.specimenb === 4) {
1103
-            this.disable = false;
1104
-            this.diableTwo = false;
1103
+            this.disable = false
1104
+            this.diableTwo = false
1105
           }
1105
           }
1106
           if (this.diaForm.specimenb === 5) {
1106
           if (this.diaForm.specimenb === 5) {
1107
-            this.disable = false;
1108
-            this.diableTwo = false;
1107
+            this.disable = false
1108
+            this.diableTwo = false
1109
           }
1109
           }
1110
-          this.diaForm.concentrate_noc = dialysate.concentrate_noc;
1111
-          this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
1112
-          this.diaForm.sampling_locationb = dialysate.sampling_locationb;
1113
-          this.diaForm.detection_unit = dialysate.detection_unit;
1114
-          this.diaForm.samplerb = dialysate.samplerb;
1110
+          this.diaForm.concentrate_noc = dialysate.concentrate_noc
1111
+          this.diaForm.concentrateb_nod = dialysate.concentrateb_nod
1112
+          this.diaForm.sampling_locationb = dialysate.sampling_locationb
1113
+          this.diaForm.detection_unit = dialysate.detection_unit
1114
+          this.diaForm.samplerb = dialysate.samplerb
1115
           this.diaForm.reporting_dateb = uParseTime(
1115
           this.diaForm.reporting_dateb = uParseTime(
1116
             dialysate.reporting_dateb,
1116
             dialysate.reporting_dateb,
1117
-            "{y}-{m}-{d}"
1118
-          );
1119
-          this.diaForm.detection_resultb = dialysate.detection_resultb;
1117
+            '{y}-{m}-{d}'
1118
+          )
1119
+          this.diaForm.detection_resultb = dialysate.detection_resultb
1120
         }
1120
         }
1121
-      });
1121
+      })
1122
     },
1122
     },
1123
     UpdateDialyState(formName) {
1123
     UpdateDialyState(formName) {
1124
       this.$refs[formName].validate(valid => {
1124
       this.$refs[formName].validate(valid => {
1125
         if (valid) {
1125
         if (valid) {
1126
           UpdateDialyState(this.diaForm).then(response => {
1126
           UpdateDialyState(this.diaForm).then(response => {
1127
             if (response.data.state === 1) {
1127
             if (response.data.state === 1) {
1128
-              var dialyste = response.data.data.dialysate;
1129
-              console.log("dialyste", dialyste);
1130
-              this.dialogVisibleTwo = false;
1131
-              this.$message.success("修改成功");
1132
-              this.getAllQulityInfo();
1128
+              var dialyste = response.data.data.dialysate
1129
+              console.log('dialyste', dialyste)
1130
+              this.dialogVisibleTwo = false
1131
+              this.$message.success('修改成功')
1132
+              this.getAllQulityInfo()
1133
             }
1133
             }
1134
-          });
1134
+          })
1135
         }
1135
         }
1136
-      });
1136
+      })
1137
     },
1137
     },
1138
     BatchDeleteOne() {
1138
     BatchDeleteOne() {
1139
       if (this.selectCulture.length == 0) {
1139
       if (this.selectCulture.length == 0) {
1140
-        this.$message.error("请选择要删除的信息");
1141
-        return false;
1140
+        this.$message.error('请选择要删除的信息')
1141
+        return false
1142
       }
1142
       }
1143
       this.$confirm(
1143
       this.$confirm(
1144
-        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1145
-        "删除提示",
1144
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1145
+        '删除提示',
1146
         {
1146
         {
1147
           dangerouslyUseHTMLString: true,
1147
           dangerouslyUseHTMLString: true,
1148
-          confirmButtonText: "确定",
1149
-          cancelButtonText: "取消",
1150
-          type: "warning"
1148
+          confirmButtonText: '确定',
1149
+          cancelButtonText: '取消',
1150
+          type: 'warning'
1151
         }
1151
         }
1152
       ).then(() => {
1152
       ).then(() => {
1153
-        var ids = [];
1154
-        var idMap = {};
1153
+        var ids = []
1154
+        var idMap = {}
1155
         for (const index in this.selectCulture) {
1155
         for (const index in this.selectCulture) {
1156
-          ids.push(this.selectCulture[index].id);
1157
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1156
+          ids.push(this.selectCulture[index].id)
1157
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1158
         }
1158
         }
1159
         DeleteDialystate({ ids: ids }).then(response => {
1159
         DeleteDialystate({ ids: ids }).then(response => {
1160
           if (response.data.state === 1) {
1160
           if (response.data.state === 1) {
1161
-            var msg = response.data.data.msg;
1162
-            var planDataLength = this.table.length;
1161
+            var msg = response.data.data.msg
1162
+            var planDataLength = this.table.length
1163
             for (let index = planDataLength - 1; index >= 0; index--) {
1163
             for (let index = planDataLength - 1; index >= 0; index--) {
1164
               if (this.table[index].id in idMap) {
1164
               if (this.table[index].id in idMap) {
1165
-                this.table.splice(index, 1);
1165
+                this.table.splice(index, 1)
1166
               }
1166
               }
1167
             }
1167
             }
1168
-            this.$message.success("删除成功");
1168
+            this.$message.success('删除成功')
1169
           }
1169
           }
1170
-        });
1171
-      });
1170
+        })
1171
+      })
1172
     },
1172
     },
1173
     EditIon(id) {
1173
     EditIon(id) {
1174
-      this.dialogVisibleThree = true;
1174
+      this.dialogVisibleThree = true
1175
       EditIon(id).then(response => {
1175
       EditIon(id).then(response => {
1176
         if (response.data.state === 1) {
1176
         if (response.data.state === 1) {
1177
-          var ion = response.data.data.ion;
1178
-          console.log("ion", ion);
1179
-          this.ionForm.dateb = uParseTime(ion.sampling_date, "{y}-{m}-{d}");
1180
-          this.ionForm.samplerc = ion.samplerc;
1181
-          this.ionForm.detection_unit = ion.detection_unit;
1182
-          this.ionForm.samplerc = ion.samplerc;
1183
-          this.ionForm.concentrate_nof = ion.concentrate_nof;
1184
-          this.ionForm.concentrate_nog = ion.concentrate_nog;
1177
+          var ion = response.data.data.ion
1178
+          console.log('ion', ion)
1179
+          this.ionForm.dateb = uParseTime(ion.sampling_date, '{y}-{m}-{d}')
1180
+          this.ionForm.samplerc = ion.samplerc
1181
+          this.ionForm.detection_unit = ion.detection_unit
1182
+          this.ionForm.samplerc = ion.samplerc
1183
+          this.ionForm.concentrate_nof = ion.concentrate_nof
1184
+          this.ionForm.concentrate_nog = ion.concentrate_nog
1185
           this.ionForm.date_reportc = uParseTime(
1185
           this.ionForm.date_reportc = uParseTime(
1186
             ion.date_reportc,
1186
             ion.date_reportc,
1187
-            "{y}-{m}-{d}"
1188
-          );
1189
-          this.ionForm.id = ion.id;
1190
-          this.ionForm.actual_na = ion.actual_na;
1191
-          this.ionForm.actual_pna = ion.actual_pna;
1192
-          this.ionForm.actual_k = ion.actual_k;
1193
-          this.ionForm.actual_ca = ion.actual_ca;
1194
-          this.ionForm.actual_ci = ion.actual_ci;
1195
-          this.ionForm.actual_hco = ion.actual_hco;
1196
-          this.ionForm.actual_mg = ion.actual_mg;
1197
-          this.ionForm.actual_ph = ion.actual_ph;
1198
-          this.ionForm.remakes = ion.remakes;
1187
+            '{y}-{m}-{d}'
1188
+          )
1189
+          this.ionForm.id = ion.id
1190
+          this.ionForm.actual_na = ion.actual_na
1191
+          this.ionForm.actual_pna = ion.actual_pna
1192
+          this.ionForm.actual_k = ion.actual_k
1193
+          this.ionForm.actual_ca = ion.actual_ca
1194
+          this.ionForm.actual_ci = ion.actual_ci
1195
+          this.ionForm.actual_hco = ion.actual_hco
1196
+          this.ionForm.actual_mg = ion.actual_mg
1197
+          this.ionForm.actual_ph = ion.actual_ph
1198
+          this.ionForm.remakes = ion.remakes
1199
         }
1199
         }
1200
-      });
1200
+      })
1201
     },
1201
     },
1202
     UpdateIon(formName) {
1202
     UpdateIon(formName) {
1203
       this.$refs[formName].validate(valid => {
1203
       this.$refs[formName].validate(valid => {
1204
         if (valid) {
1204
         if (valid) {
1205
           UpdateIon(this.ionForm).then(response => {
1205
           UpdateIon(this.ionForm).then(response => {
1206
             if (response.data.state === 1) {
1206
             if (response.data.state === 1) {
1207
-              var ion = response.data.data.ion;
1208
-              console.log("ion", ion);
1209
-              this.dialogVisibleThree = false;
1210
-              this.$message.success("修改成功");
1211
-              this.getAllQulityInfo();
1207
+              var ion = response.data.data.ion
1208
+              console.log('ion', ion)
1209
+              this.dialogVisibleThree = false
1210
+              this.$message.success('修改成功')
1211
+              this.getAllQulityInfo()
1212
             }
1212
             }
1213
-          });
1213
+          })
1214
         }
1214
         }
1215
-      });
1215
+      })
1216
     },
1216
     },
1217
     BatchDeleteTwo() {
1217
     BatchDeleteTwo() {
1218
       if (this.selectCulture.length == 0) {
1218
       if (this.selectCulture.length == 0) {
1219
-        this.$message.error("请选择要删除的信息");
1220
-        return false;
1219
+        this.$message.error('请选择要删除的信息')
1220
+        return false
1221
       }
1221
       }
1222
       this.$confirm(
1222
       this.$confirm(
1223
-        "确认要删除所选的吗? <br>删除后,信息将无法恢复",
1224
-        "删除提示",
1223
+        '确认要删除所选的吗? <br>删除后,信息将无法恢复',
1224
+        '删除提示',
1225
         {
1225
         {
1226
           dangerouslyUseHTMLString: true,
1226
           dangerouslyUseHTMLString: true,
1227
-          confirmButtonText: "确定",
1228
-          cancelButtonText: "取消",
1229
-          type: "warning"
1227
+          confirmButtonText: '确定',
1228
+          cancelButtonText: '取消',
1229
+          type: 'warning'
1230
         }
1230
         }
1231
       ).then(() => {
1231
       ).then(() => {
1232
-        var ids = [];
1233
-        var idMap = {};
1232
+        var ids = []
1233
+        var idMap = {}
1234
         for (const index in this.selectCulture) {
1234
         for (const index in this.selectCulture) {
1235
-          ids.push(this.selectCulture[index].id);
1236
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1235
+          ids.push(this.selectCulture[index].id)
1236
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1237
         }
1237
         }
1238
         DeleteIon({ ids: ids }).then(response => {
1238
         DeleteIon({ ids: ids }).then(response => {
1239
           if (response.data.state === 1) {
1239
           if (response.data.state === 1) {
1240
-            var msg = response.data.data.msg;
1241
-            var planDataLength = this.tableDatas.length;
1240
+            var msg = response.data.data.msg
1241
+            var planDataLength = this.tableDatas.length
1242
             for (let index = planDataLength - 1; index >= 0; index--) {
1242
             for (let index = planDataLength - 1; index >= 0; index--) {
1243
               if (this.tableDatas[index].id in idMap) {
1243
               if (this.tableDatas[index].id in idMap) {
1244
-                this.tableDatas.splice(index, 1);
1244
+                this.tableDatas.splice(index, 1)
1245
               }
1245
               }
1246
             }
1246
             }
1247
-            this.$message.success("删除成功");
1247
+            this.$message.success('删除成功')
1248
           }
1248
           }
1249
-        });
1250
-      });
1249
+        })
1250
+      })
1251
     },
1251
     },
1252
     queryTable() {
1252
     queryTable() {
1253
       queryTable(
1253
       queryTable(
1256
         this.forms.end_time
1256
         this.forms.end_time
1257
       ).then(response => {
1257
       ).then(response => {
1258
         if (response.data.state === 1) {
1258
         if (response.data.state === 1) {
1259
-          var cultures = response.data.data.cultures;
1260
-          this.tableData = cultures;
1261
-          var dialysate = response.data.data.dialysate;
1262
-          this.table = dialysate;
1263
-          var ions = response.data.data.ions;
1264
-          this.tableDatas = ions;
1259
+          var cultures = response.data.data.cultures
1260
+          this.tableData = cultures
1261
+          var dialysate = response.data.data.dialysate
1262
+          this.table = dialysate
1263
+          var ions = response.data.data.ions
1264
+          this.tableDatas = ions
1265
         }
1265
         }
1266
-      });
1266
+      })
1267
     }
1267
     }
1268
   },
1268
   },
1269
   created() {
1269
   created() {
1270
-    this.getAllSubregion();
1271
-    this.getAllQulityInfo();
1272
-    this.getAllOrganization();
1270
+    this.getAllSubregion()
1271
+    this.getAllQulityInfo()
1272
+    this.getAllOrganization()
1273
   }
1273
   }
1274
-};
1274
+}
1275
 </script>
1275
 </script>
1276
 
1276
 
1277
 <style scoped>
1277
 <style scoped>

+ 18 - 9
src/xt_pages/management/components/UserForm.vue View File

69
       >
69
       >
70
         <el-table-column align="center" type="selection" width="55"></el-table-column>
70
         <el-table-column align="center" type="selection" width="55"></el-table-column>
71
         <el-table-column label="机号" align="center" width="50">
71
         <el-table-column label="机号" align="center" width="50">
72
-          <template slot-scope="scope">{{ scope.row.bed_number }}</template>
72
+          <template slot-scope="scope">{{scope.row.bed}}</template>
73
         </el-table-column>
73
         </el-table-column>
74
         <el-table-column label="日期" align="center" width="100">
74
         <el-table-column label="日期" align="center" width="100">
75
           <template slot-scope="scope">{{ getTime(scope.row.date) }}</template>
75
           <template slot-scope="scope">{{ getTime(scope.row.date) }}</template>
1145
               information[index].clean = ''
1145
               information[index].clean = ''
1146
             }
1146
             }
1147
           }
1147
           }
1148
-          var total = response.data.data.total
1149
-          console.log('total', total)
1150
-          this.tableData = information
1151
-          this.total = total
1148
+          // var total = response.data.data.total
1149
+          // console.log('total', total)
1150
+          // this.tableData = information
1151
+          // this.total = total
1152
         }
1152
         }
1153
       })
1153
       })
1154
     },
1154
     },
1349
             if (information[index].class === 3) {
1349
             if (information[index].class === 3) {
1350
               information[index].class = '晚上'
1350
               information[index].class = '晚上'
1351
             }
1351
             }
1352
+
1353
+            if (information[index].dialysis_mode === 0) {
1354
+              information[index].dialysis_mode = ''
1355
+            }
1356
+
1352
             if (information[index].dialysis_mode === 1) {
1357
             if (information[index].dialysis_mode === 1) {
1353
               information[index].dialysis_mode = 'HD'
1358
               information[index].dialysis_mode = 'HD'
1354
             }
1359
             }
1602
             if (information[index].class === 3) {
1607
             if (information[index].class === 3) {
1603
               information[index].class = '晚上'
1608
               information[index].class = '晚上'
1604
             }
1609
             }
1610
+            if (information[index].dialysis_mode === 0) {
1611
+              information[index].dialysis_mode = ''
1612
+            }
1613
+
1605
             if (information[index].dialysis_mode === 1) {
1614
             if (information[index].dialysis_mode === 1) {
1606
               information[index].dialysis_mode = 'HD'
1615
               information[index].dialysis_mode = 'HD'
1607
             }
1616
             }
1800
             this.form.zone = information[index].zone
1809
             this.form.zone = information[index].zone
1801
             this.form.bed = information[index].bed_number
1810
             this.form.bed = information[index].bed_number
1802
           }
1811
           }
1803
-          // var total = response.data.data.total
1804
-          // console.log('total', total)
1805
-          // this.tableData = information
1806
-          // this.total = total
1812
+          var total = response.data.data.total
1813
+          console.log('total', total)
1814
+          this.tableData = information
1815
+          this.total = total
1807
         }
1816
         }
1808
       })
1817
       })
1809
     }
1818
     }

+ 146 - 94
src/xt_pages/management/home.vue View File

113
                              <el-row>
113
                              <el-row>
114
                                <el-col :span="7">
114
                                <el-col :span="7">
115
                                  <el-form-item label="序列号:" required prop="serial_number">
115
                                  <el-form-item label="序列号:" required prop="serial_number">
116
-                                   <el-input style="width:150px" v-model="form.serial_number"></el-input>
116
+                                   <el-input style="width:150px" v-model="form.serial_number" :disabled="disableThree"></el-input>
117
                                  </el-form-item>
117
                                  </el-form-item>
118
                                </el-col>
118
                                </el-col>
119
                               <el-col :span="7">
119
                               <el-col :span="7">
125
                               </el-col>
125
                               </el-col>
126
                               <el-col :span="7">
126
                               <el-col :span="7">
127
                                   <el-form-item label="机位号:">
127
                                   <el-form-item label="机位号:">
128
-                                       <el-select style="width:150px" v-model="form.bed_number">
128
+                                       <el-select style="width:150px" v-model="form.bed_number" :disabled="disableThree">
129
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
129
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
130
                                        </el-select>
130
                                        </el-select>
131
                                   </el-form-item>
131
                                   </el-form-item>
134
                              <el-row>
134
                              <el-row>
135
                                <el-col :span="7">
135
                                <el-col :span="7">
136
                                  <el-form-item label="设备名称:" required prop="device_name">
136
                                  <el-form-item label="设备名称:" required prop="device_name">
137
-                                     <el-input style="width:150px" v-model="form.device_name"></el-input>
137
+                                     <el-input style="width:150px" v-model="form.device_name" :disabled="disableThree"></el-input>
138
                                 </el-form-item>
138
                                 </el-form-item>
139
                                </el-col>
139
                                </el-col>
140
                                <el-col :span="7">
140
                                <el-col :span="7">
141
                                   <el-form-item label="生产厂家:">
141
                                   <el-form-item label="生产厂家:">
142
-                                      <el-input style="width:150px" v-model="form.manufacture_factory"></el-input>
142
+                                      <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableThree"></el-input>
143
                                   </el-form-item>
143
                                   </el-form-item>
144
                                </el-col>
144
                                </el-col>
145
                                <el-col :span="7">
145
                                <el-col :span="7">
146
                                  <el-form-item label="维修厂家:">
146
                                  <el-form-item label="维修厂家:">
147
-                                   <el-input style="width:150px" v-model="form.service_manufacturer"></el-input>
147
+                                   <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableThree"></el-input>
148
                                  </el-form-item>
148
                                  </el-form-item>
149
                                </el-col>
149
                                </el-col>
150
                              </el-row>
150
                              </el-row>
151
                              <el-row>
151
                              <el-row>
152
                                <el-col :span="7">
152
                                <el-col :span="7">
153
                                    <el-form-item label="设备型号:" required prop="unit_type">
153
                                    <el-form-item label="设备型号:" required prop="unit_type">
154
-                                       <el-input style="width:150px" v-model="form.unit_type"></el-input>
154
+                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableThree"></el-input>
155
                                    </el-form-item>
155
                                    </el-form-item>
156
                                </el-col>
156
                                </el-col>
157
                                <el-col :span="7">
157
                                <el-col :span="7">
158
                                   <el-form-item label="使用科室:">
158
                                   <el-form-item label="使用科室:">
159
-                                       <el-input style="width:150px" v-model="form.use_section"></el-input>
159
+                                       <el-input style="width:150px" v-model="form.use_section" :disabled="disableThree"></el-input>
160
                                   </el-form-item>
160
                                   </el-form-item>
161
                                </el-col>
161
                                </el-col>
162
                                <el-col :span="7">
162
                                <el-col :span="7">
163
                                   <el-form-item label="科室编号:">
163
                                   <el-form-item label="科室编号:">
164
-                                     <el-input style="width:150px" v-model="form.section_number"></el-input>
164
+                                     <el-input style="width:150px" v-model="form.section_number" :disabled="disableThree"></el-input>
165
                                   </el-form-item>
165
                                   </el-form-item>
166
                                </el-col>
166
                                </el-col>
167
                              </el-row>
167
                              </el-row>
175
                                        placeholder="请选择"
175
                                        placeholder="请选择"
176
                                        format="yyyy-MM-dd"
176
                                        format="yyyy-MM-dd"
177
                                        value-format="yyyy-MM-dd"
177
                                        value-format="yyyy-MM-dd"
178
-                                       style="width:150px">
178
+                                       style="width:150px"
179
+                                       :disabled="disableThree">
179
                                       </el-date-picker>
180
                                       </el-date-picker>
180
                                 </el-form-item>
181
                                 </el-form-item>
181
                                </el-col>
182
                                </el-col>
188
                                        placeholder="请选择"
189
                                        placeholder="请选择"
189
                                        format="yyyy-MM-dd"
190
                                        format="yyyy-MM-dd"
190
                                         value-format="yyyy-MM-dd"
191
                                         value-format="yyyy-MM-dd"
191
-                                       style="width:150px">
192
+                                       style="width:150px"
193
+                                       :disabled="disableThree">
192
                                     </el-date-picker>
194
                                     </el-date-picker>
193
                                  </el-form-item>
195
                                  </el-form-item>
194
                                </el-col>
196
                                </el-col>
201
                                        placeholder="请选择"
203
                                        placeholder="请选择"
202
                                        format="yyyy-MM-dd"
204
                                        format="yyyy-MM-dd"
203
                                        value-format="yyyy-MM-dd"
205
                                        value-format="yyyy-MM-dd"
204
-                                       style="width:150px">
206
+                                       style="width:150px"
207
+                                       :disabled="disableThree">
205
                                          </el-date-picker>
208
                                          </el-date-picker>
206
                                   </el-form-item>
209
                                   </el-form-item>
207
                                 </el-col>
210
                                 </el-col>
208
                                 <el-col :span="7">
211
                                 <el-col :span="7">
209
                                    <el-form-item label="维修工程师:">
212
                                    <el-form-item label="维修工程师:">
210
-                                    <el-input style="width:150px" v-model="form.maintenance_engineer"></el-input>
213
+                                    <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableThree"></el-input>
211
                                    </el-form-item>
214
                                    </el-form-item>
212
                                 </el-col>
215
                                 </el-col>
213
                                 <el-col :span="7">
216
                                 <el-col :span="7">
214
                                    <el-form-item label="联系电话:">
217
                                    <el-form-item label="联系电话:">
215
-                                      <el-input style="width:150px" v-model="form.telephone"></el-input>
218
+                                      <el-input style="width:150px" v-model="form.telephone" :disabled="disableThree"></el-input>
216
                                    </el-form-item>
219
                                    </el-form-item>
217
                                 </el-col>
220
                                 </el-col>
218
                                 <el-col :span="7">
221
                                 <el-col :span="7">
219
                                   <el-form-item label="保修期限:">
222
                                   <el-form-item label="保修期限:">
220
-                                      <el-input style="width:150px" v-model="form.guarantee_date"></el-input>
223
+                                      <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableThree"></el-input>
221
                                   </el-form-item>
224
                                   </el-form-item>
222
                                 </el-col>
225
                                 </el-col>
223
                              </el-row>
226
                              </el-row>
225
                                <el-col :span="7">
228
                                <el-col :span="7">
226
                                   <el-form-item label="机器状态:">
229
                                   <el-form-item label="机器状态:">
227
                                     <el-select style="width:150px"  v-model="form.machine_status" @change="changeMachineStatus">
230
                                     <el-select style="width:150px"  v-model="form.machine_status" @change="changeMachineStatus">
228
-                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id"></el-option>
231
+                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
229
                                     </el-select>
232
                                     </el-select>
230
                                   </el-form-item>
233
                                   </el-form-item>
231
                                </el-col>
234
                                </el-col>
232
                                <el-col :span="7">
235
                                <el-col :span="7">
233
                                  <el-form-item label="初次使用次数:">
236
                                  <el-form-item label="初次使用次数:">
234
-                                    <el-input v-model="form.user_total" style="width:150px"></el-input>
237
+                                    <el-input v-model="form.user_total" style="width:150px" :disabled="disableThree"></el-input>
235
                                  </el-form-item>
238
                                  </el-form-item>
236
                                </el-col>
239
                                </el-col>
237
                                <el-col :span="7">
240
                                <el-col :span="7">
238
                                   <el-form-item label="备注:">
241
                                   <el-form-item label="备注:">
239
-                                      <el-input style="width:150px" v-model="form.remarks"></el-input>
242
+                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableThree"></el-input>
240
                                   </el-form-item>
243
                                   </el-form-item>
241
                                </el-col>
244
                                </el-col>
242
                              </el-row>
245
                              </el-row>
250
                                     placeholder="请选择"
253
                                     placeholder="请选择"
251
                                     format="yyyy-MM-dd"
254
                                     format="yyyy-MM-dd"
252
                                      value-format="yyyy-MM-dd"
255
                                      value-format="yyyy-MM-dd"
253
-                                     style="width:135px">
256
+                                     style="width:135px"
257
+                                     :disabled="disableThree">
254
                                    </el-date-picker>
258
                                    </el-date-picker>
255
                                  </el-form-item>
259
                                  </el-form-item>
256
                                 </el-col>
260
                                 </el-col>
257
                                 <el-col :span="7">
261
                                 <el-col :span="7">
258
                                    <el-form-item label="报废原因:">
262
                                    <el-form-item label="报废原因:">
259
                                      <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
263
                                      <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
260
-                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id"></el-option>
264
+                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
261
                                      </el-select>
265
                                      </el-select>
262
                                    </el-form-item>
266
                                    </el-form-item>
263
                                 </el-col>
267
                                 </el-col>
264
                                 <el-col :span="7">
268
                                 <el-col :span="7">
265
                                  <el-form-item label="使用年限(年):">
269
                                  <el-form-item label="使用年限(年):">
266
-                                      <el-input style="width:150px" v-model="form.user_year"></el-input>
270
+                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableThree"></el-input>
267
                                  </el-form-item>
271
                                  </el-form-item>
268
                                 </el-col>
272
                                 </el-col>
269
                              </el-row>
273
                              </el-row>
270
                              <el-row>
274
                              <el-row>
271
                                 <el-col :span="7">
275
                                 <el-col :span="7">
272
                                    <el-form-item label="工作时长(时):">
276
                                    <el-form-item label="工作时长(时):">
273
-                                       <el-input style="width:150px" v-model="form.work_time"></el-input>
277
+                                       <el-input style="width:150px" v-model="form.work_time" :disabled="disableThree"></el-input>
274
                                    </el-form-item>
278
                                    </el-form-item>
275
                                 </el-col>
279
                                 </el-col>
276
                              </el-row>
280
                              </el-row>
312
                              <el-row>
316
                              <el-row>
313
                                <el-col :span="7">
317
                                <el-col :span="7">
314
                                  <el-form-item label="序列号:" required prop="serial_number">
318
                                  <el-form-item label="序列号:" required prop="serial_number">
315
-                                   <el-input style="width:150px" v-model="form.serial_number"></el-input>
319
+                                   <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFour"></el-input>
316
                                  </el-form-item>
320
                                  </el-form-item>
317
                                </el-col>
321
                                </el-col>
318
                               <el-col :span="7">
322
                               <el-col :span="7">
319
                                  <el-form-item label="设备类型:" required prop="devicetype">
323
                                  <el-form-item label="设备类型:" required prop="devicetype">
320
                                    <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
324
                                    <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
321
-                                       <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
325
+                                       <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFour" ></el-option>
322
                                   </el-select>
326
                                   </el-select>
323
                                  </el-form-item>
327
                                  </el-form-item>
324
                               </el-col>
328
                               </el-col>
326
                              <el-row>
330
                              <el-row>
327
                                <el-col :span="7">
331
                                <el-col :span="7">
328
                                  <el-form-item label="设备名称:" required prop="device_name">
332
                                  <el-form-item label="设备名称:" required prop="device_name">
329
-                                     <el-input style="width:150px" v-model="form.device_name"></el-input>
333
+                                     <el-input style="width:150px" v-model="form.device_name" :disabled="disableFour"></el-input>
330
                                 </el-form-item>
334
                                 </el-form-item>
331
                                </el-col>
335
                                </el-col>
332
                                <el-col :span="7">
336
                                <el-col :span="7">
333
                                   <el-form-item label="生产厂家:">
337
                                   <el-form-item label="生产厂家:">
334
-                                      <el-input style="width:150px" v-model="form.manufacture_factory"></el-input>
338
+                                      <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFour"></el-input>
335
                                   </el-form-item>
339
                                   </el-form-item>
336
                                </el-col>
340
                                </el-col>
337
                                <el-col :span="7">
341
                                <el-col :span="7">
338
                                  <el-form-item label="维修厂家:">
342
                                  <el-form-item label="维修厂家:">
339
-                                   <el-input style="width:150px" v-model="form.service_manufacturer"></el-input>
343
+                                   <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFour"></el-input>
340
                                  </el-form-item>
344
                                  </el-form-item>
341
                                </el-col>
345
                                </el-col>
342
                              </el-row>
346
                              </el-row>
343
                              <el-row>
347
                              <el-row>
344
                                <el-col :span="7">
348
                                <el-col :span="7">
345
                                    <el-form-item label="设备型号:" required prop="unit_type">
349
                                    <el-form-item label="设备型号:" required prop="unit_type">
346
-                                       <el-input style="width:150px" v-model="form.unit_type"></el-input>
350
+                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableFour"></el-input>
347
                                    </el-form-item>
351
                                    </el-form-item>
348
                                </el-col>
352
                                </el-col>
349
                                <el-col :span="7">
353
                                <el-col :span="7">
350
                                   <el-form-item label="使用科室:">
354
                                   <el-form-item label="使用科室:">
351
-                                       <el-input style="width:150px" v-model="form.use_section"></el-input>
355
+                                       <el-input style="width:150px" v-model="form.use_section" :disabled="disableFour"></el-input>
352
                                   </el-form-item>
356
                                   </el-form-item>
353
                                </el-col>
357
                                </el-col>
354
                                <el-col :span="7">
358
                                <el-col :span="7">
355
                                   <el-form-item label="科室编号:">
359
                                   <el-form-item label="科室编号:">
356
-                                     <el-input style="width:150px" v-model="form.section_number"></el-input>
360
+                                     <el-input style="width:150px" v-model="form.section_number" :disabled="disableFour"></el-input>
357
                                   </el-form-item>
361
                                   </el-form-item>
358
                                </el-col>
362
                                </el-col>
359
                              </el-row>
363
                              </el-row>
367
                                        placeholder="请选择"
371
                                        placeholder="请选择"
368
                                        format="yyyy-MM-dd"
372
                                        format="yyyy-MM-dd"
369
                                        value-format="yyyy-MM-dd"
373
                                        value-format="yyyy-MM-dd"
370
-                                       style="width:150px">
374
+                                       style="width:150px"
375
+                                       :disabled="disableFour">
371
                                       </el-date-picker>
376
                                       </el-date-picker>
372
                                 </el-form-item>
377
                                 </el-form-item>
373
                                </el-col>
378
                                </el-col>
380
                                        placeholder="请选择"
385
                                        placeholder="请选择"
381
                                        format="yyyy-MM-dd"
386
                                        format="yyyy-MM-dd"
382
                                         value-format="yyyy-MM-dd"
387
                                         value-format="yyyy-MM-dd"
383
-                                       style="width:150px">
388
+                                       style="width:150px"
389
+                                       :disabled="disableFour">
384
                                     </el-date-picker>
390
                                     </el-date-picker>
385
                                  </el-form-item>
391
                                  </el-form-item>
386
                                </el-col>
392
                                </el-col>
393
                                        placeholder="请选择"
399
                                        placeholder="请选择"
394
                                        format="yyyy-MM-dd"
400
                                        format="yyyy-MM-dd"
395
                                        value-format="yyyy-MM-dd"
401
                                        value-format="yyyy-MM-dd"
396
-                                       style="width:150px">
402
+                                       style="width:150px"
403
+                                       :disabled="disableFour">
397
                                          </el-date-picker>
404
                                          </el-date-picker>
398
                                   </el-form-item>
405
                                   </el-form-item>
399
                                 </el-col>
406
                                 </el-col>
400
                                 <el-col :span="7">
407
                                 <el-col :span="7">
401
                                    <el-form-item label="维修工程师:">
408
                                    <el-form-item label="维修工程师:">
402
-                                    <el-input style="width:150px" v-model="form.maintenance_engineer"></el-input>
409
+                                    <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFour"></el-input>
403
                                    </el-form-item>
410
                                    </el-form-item>
404
                                 </el-col>
411
                                 </el-col>
405
                                 <el-col :span="7">
412
                                 <el-col :span="7">
406
                                    <el-form-item label="联系电话:">
413
                                    <el-form-item label="联系电话:">
407
-                                      <el-input style="width:150px" v-model="form.telephone"></el-input>
414
+                                      <el-input style="width:150px" v-model="form.telephone" :disabled="disableFour"></el-input>
408
                                    </el-form-item>
415
                                    </el-form-item>
409
                                 </el-col>
416
                                 </el-col>
410
                                 <el-col :span="7">
417
                                 <el-col :span="7">
411
                                   <el-form-item label="保修期限:">
418
                                   <el-form-item label="保修期限:">
412
-                                      <el-input style="width:150px" v-model="form.guarantee_date"></el-input>
419
+                                      <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFour"></el-input>
413
                                   </el-form-item>
420
                                   </el-form-item>
414
                                 </el-col>
421
                                 </el-col>
415
                              </el-row>
422
                              </el-row>
416
                              <el-row>
423
                              <el-row>
417
                                <el-col :span="7">
424
                                <el-col :span="7">
418
                                   <el-form-item label="机器状态:">
425
                                   <el-form-item label="机器状态:">
419
-                                    <el-select style="width:150px"  v-model="form.machine_status">
420
-                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id"></el-option>
426
+                                    <el-select style="width:150px"  v-model="form.machine_status" :disabled="disableFour">
427
+                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" ></el-option>
421
                                     </el-select>
428
                                     </el-select>
422
                                   </el-form-item>
429
                                   </el-form-item>
423
                                </el-col>
430
                                </el-col>
424
                                <el-col :span="7">
431
                                <el-col :span="7">
425
                                   <el-form-item label="备注:">
432
                                   <el-form-item label="备注:">
426
-                                      <el-input style="width:150px" v-model="form.remarks"></el-input>
433
+                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
427
                                   </el-form-item>
434
                                   </el-form-item>
428
                                </el-col>
435
                                </el-col>
429
                                <el-col :span="7">
436
                                <el-col :span="7">
435
                                     placeholder="请选择"
442
                                     placeholder="请选择"
436
                                     format="yyyy-MM-dd"
443
                                     format="yyyy-MM-dd"
437
                                      value-format="yyyy-MM-dd"
444
                                      value-format="yyyy-MM-dd"
438
-                                     style="width:135px">
445
+                                     style="width:135px"
446
+                                     :disabled="disableFour">
439
                                    </el-date-picker>
447
                                    </el-date-picker>
440
                                  </el-form-item>
448
                                  </el-form-item>
441
                                 </el-col>
449
                                 </el-col>
443
                              <el-row>
451
                              <el-row>
444
                                <el-col :span="7">
452
                                <el-col :span="7">
445
                                    <el-form-item label="报废原因:">
453
                                    <el-form-item label="报废原因:">
446
-                                     <el-select style="width:150px" v-model="form.rubbish_reason">
447
-                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id"></el-option>
454
+                                     <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
455
+                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
448
                                      </el-select>
456
                                      </el-select>
449
                                    </el-form-item>
457
                                    </el-form-item>
450
                                 </el-col>
458
                                 </el-col>
451
                                 <el-col :span="7">
459
                                 <el-col :span="7">
452
                                  <el-form-item label="使用年限(年):">
460
                                  <el-form-item label="使用年限(年):">
453
-                                      <el-input style="width:150px" v-model="form.user_year"></el-input>
461
+                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
454
                                  </el-form-item>
462
                                  </el-form-item>
455
                                 </el-col>
463
                                 </el-col>
456
                                  <el-col :span="7">
464
                                  <el-col :span="7">
457
-                                   <el-form-item label="工作时长():">
458
-                                       <el-input style="width:150px" v-model="form.work_time"></el-input>
465
+                                   <el-form-item label="工作时长(h):">
466
+                                       <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
459
                                    </el-form-item>
467
                                    </el-form-item>
460
                                 </el-col>
468
                                 </el-col>
461
                              </el-row>
469
                              </el-row>
484
                           <el-row>
492
                           <el-row>
485
                                <el-col :span="7">
493
                                <el-col :span="7">
486
                                  <el-form-item label="序列号:" required prop="serial_number">
494
                                  <el-form-item label="序列号:" required prop="serial_number">
487
-                                   <el-input style="width:150px" v-model="form.serial_number"></el-input>
495
+                                   <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFive"></el-input>
488
                                  </el-form-item>
496
                                  </el-form-item>
489
                                </el-col>
497
                                </el-col>
490
                               <el-col :span="7">
498
                               <el-col :span="7">
499
                                        <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
507
                                        <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
500
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
508
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
501
                                        </el-select> -->
509
                                        </el-select> -->
502
-                                       <el-input v-model="form.bed_number" style="width:150px"></el-input>
510
+                                       <el-input v-model="form.bed_number" style="width:150px" :disabled="disableFive"></el-input>
503
                                   </el-form-item>
511
                                   </el-form-item>
504
                               </el-col>
512
                               </el-col>
505
                              </el-row>
513
                              </el-row>
506
                               <el-row>
514
                               <el-row>
507
                                <el-col :span="7">
515
                                <el-col :span="7">
508
                                  <el-form-item label="设备名称:" required prop="device_name">
516
                                  <el-form-item label="设备名称:" required prop="device_name">
509
-                                     <el-input style="width:150px" v-model="form.device_name"></el-input>
517
+                                     <el-input style="width:150px" v-model="form.device_name" :disabled="disableFive"></el-input>
510
                                 </el-form-item>
518
                                 </el-form-item>
511
                                </el-col>
519
                                </el-col>
512
                                <el-col :span="7">
520
                                <el-col :span="7">
513
                                   <el-form-item label="生产厂家:">
521
                                   <el-form-item label="生产厂家:">
514
-                                      <el-input style="width:150px" v-model="form.manufacture_factory"></el-input>
522
+                                      <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFive"></el-input>
515
                                   </el-form-item>
523
                                   </el-form-item>
516
                                </el-col>
524
                                </el-col>
517
                                <el-col :span="7">
525
                                <el-col :span="7">
518
                                  <el-form-item label="维修厂家:">
526
                                  <el-form-item label="维修厂家:">
519
-                                   <el-input style="width:150px" v-model="form.service_manufacturer"></el-input>
527
+                                   <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFive"></el-input>
520
                                  </el-form-item>
528
                                  </el-form-item>
521
                                </el-col>
529
                                </el-col>
522
                              </el-row>
530
                              </el-row>
523
                               <el-row>
531
                               <el-row>
524
                                <el-col :span="7">
532
                                <el-col :span="7">
525
                                    <el-form-item label="设备型号:" required prop="unit_type">
533
                                    <el-form-item label="设备型号:" required prop="unit_type">
526
-                                       <el-input style="width:150px" v-model="form.unit_type"></el-input>
534
+                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableFive"></el-input>
527
                                    </el-form-item>
535
                                    </el-form-item>
528
                                </el-col>
536
                                </el-col>
529
                                <el-col :span="7">
537
                                <el-col :span="7">
530
                                   <el-form-item label="使用科室:">
538
                                   <el-form-item label="使用科室:">
531
-                                       <el-input style="width:150px" v-model="form.use_section"></el-input>
539
+                                       <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
532
                                   </el-form-item>
540
                                   </el-form-item>
533
                                </el-col>
541
                                </el-col>
534
                                <el-col :span="7">
542
                                <el-col :span="7">
535
                                   <el-form-item label="科室编号:">
543
                                   <el-form-item label="科室编号:">
536
-                                     <el-input style="width:150px" v-model="form.section_number"></el-input>
544
+                                     <el-input style="width:150px" v-model="form.section_number" :disabled="disableFive"></el-input>
537
                                   </el-form-item>
545
                                   </el-form-item>
538
                                </el-col>
546
                                </el-col>
539
                              </el-row>
547
                              </el-row>
547
                                        placeholder="请选择"
555
                                        placeholder="请选择"
548
                                        format="yyyy-MM-dd"
556
                                        format="yyyy-MM-dd"
549
                                        value-format="yyyy-MM-dd"
557
                                        value-format="yyyy-MM-dd"
550
-                                       style="width:150px">
558
+                                       style="width:150px"
559
+                                       :disabled="disableFive">
551
                                       </el-date-picker>
560
                                       </el-date-picker>
552
                                 </el-form-item>
561
                                 </el-form-item>
553
                                </el-col>
562
                                </el-col>
560
                                        placeholder="请选择"
569
                                        placeholder="请选择"
561
                                        format="yyyy-MM-dd"
570
                                        format="yyyy-MM-dd"
562
                                         value-format="yyyy-MM-dd"
571
                                         value-format="yyyy-MM-dd"
563
-                                       style="width:150px">
572
+                                       style="width:150px"
573
+                                       :disabled="disableFive">
564
                                     </el-date-picker>
574
                                     </el-date-picker>
565
                                  </el-form-item>
575
                                  </el-form-item>
566
                                </el-col>
576
                                </el-col>
573
                                        placeholder="请选择"
583
                                        placeholder="请选择"
574
                                        format="yyyy-MM-dd"
584
                                        format="yyyy-MM-dd"
575
                                        value-format="yyyy-MM-dd"
585
                                        value-format="yyyy-MM-dd"
576
-                                       style="width:150px">
586
+                                       style="width:150px"
587
+                                       :disabled="disableFive">
577
                                          </el-date-picker>
588
                                          </el-date-picker>
578
                                   </el-form-item>
589
                                   </el-form-item>
579
                                 </el-col>
590
                                 </el-col>
580
                                 <el-col :span="7">
591
                                 <el-col :span="7">
581
                                    <el-form-item label="维修工程师:">
592
                                    <el-form-item label="维修工程师:">
582
-                                    <el-input style="width:150px" v-model="form.maintenance_engineer"></el-input>
593
+                                    <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFive"></el-input>
583
                                    </el-form-item>
594
                                    </el-form-item>
584
                                 </el-col>
595
                                 </el-col>
585
                                 <el-col :span="7">
596
                                 <el-col :span="7">
586
                                    <el-form-item label="联系电话:">
597
                                    <el-form-item label="联系电话:">
587
-                                      <el-input style="width:150px" v-model="form.telephone"></el-input>
598
+                                      <el-input style="width:150px" v-model="form.telephone" :disabled="disableFive"></el-input>
588
                                    </el-form-item>
599
                                    </el-form-item>
589
                                 </el-col>
600
                                 </el-col>
590
                                 <el-col :span="7">
601
                                 <el-col :span="7">
591
                                   <el-form-item label="保修期限:">
602
                                   <el-form-item label="保修期限:">
592
-                                      <el-input style="width:150px" v-model="form.guarantee_date"></el-input>
603
+                                      <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFive"></el-input>
593
                                   </el-form-item>
604
                                   </el-form-item>
594
                                 </el-col>
605
                                 </el-col>
595
                              </el-row>
606
                              </el-row>
597
                                <el-col :span="7">
608
                                <el-col :span="7">
598
                                   <el-form-item label="机器状态:">
609
                                   <el-form-item label="机器状态:">
599
                                     <el-select style="width:150px"  v-model="form.machine_status" @change="changeMachineStatus">
610
                                     <el-select style="width:150px"  v-model="form.machine_status" @change="changeMachineStatus">
600
-                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id"></el-option>
611
+                                      <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
601
                                     </el-select>
612
                                     </el-select>
602
                                   </el-form-item>
613
                                   </el-form-item>
603
                                </el-col>
614
                                </el-col>
604
                                  <el-col :span="8">
615
                                  <el-col :span="8">
605
                                    <el-form-item label="消毒方式:">
616
                                    <el-form-item label="消毒方式:">
606
-                                       <el-select style="width:135px" v-model="form.Disinfection_mode">
617
+                                       <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFive">
607
                                          <el-option
618
                                          <el-option
608
                                           v-for="item in this.DisinfectionMode"
619
                                           v-for="item in this.DisinfectionMode"
609
                                          :key="item.id"
620
                                          :key="item.id"
615
                                 </el-col>
626
                                 </el-col>
616
                                  <el-col :span="8">
627
                                  <el-col :span="8">
617
                                   <el-form-item label="备注:">
628
                                   <el-form-item label="备注:">
618
-                                      <el-input style="width:150px" v-model="form.remarks"></el-input>
629
+                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFive"></el-input>
619
                                   </el-form-item>
630
                                   </el-form-item>
620
                                </el-col>
631
                                </el-col>
621
 
632
 
630
                                     placeholder="请选择"
641
                                     placeholder="请选择"
631
                                     format="yyyy-MM-dd"
642
                                     format="yyyy-MM-dd"
632
                                      value-format="yyyy-MM-dd"
643
                                      value-format="yyyy-MM-dd"
633
-                                     style="width:135px">
644
+                                     style="width:135px"
645
+                                     :disabled="disableFive">
634
                                    </el-date-picker>
646
                                    </el-date-picker>
635
                                  </el-form-item>
647
                                  </el-form-item>
636
                                 </el-col>
648
                                 </el-col>
637
                                  <el-col :span="7">
649
                                  <el-col :span="7">
638
                                    <el-form-item label="报废原因:">
650
                                    <el-form-item label="报废原因:">
639
                                      <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
651
                                      <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
640
-                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id"></el-option>
652
+                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
641
                                      </el-select>
653
                                      </el-select>
642
                                    </el-form-item>
654
                                    </el-form-item>
643
                                 </el-col>
655
                                 </el-col>
644
                                 <el-col :span="7">
656
                                 <el-col :span="7">
645
                                  <el-form-item label="使用年限(年):">
657
                                  <el-form-item label="使用年限(年):">
646
-                                      <el-input style="width:150px" v-model="form.user_year"></el-input>
658
+                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFive"></el-input>
647
                                  </el-form-item>
659
                                  </el-form-item>
648
                                 </el-col>
660
                                 </el-col>
649
                              </el-row>
661
                              </el-row>
650
                              <el-row>
662
                              <el-row>
651
                                 <el-col :span="7">
663
                                 <el-col :span="7">
652
                                    <el-form-item label="工作时长:">
664
                                    <el-form-item label="工作时长:">
653
-                                       <el-input style="width:150px" v-model="form.work_time"></el-input>
665
+                                       <el-input style="width:150px" v-model="form.work_time" :disabled="disableFive"></el-input>
654
                                    </el-form-item>
666
                                    </el-form-item>
655
                                 </el-col>
667
                                 </el-col>
656
                              </el-row>
668
                              </el-row>
660
                                    <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
672
                                    <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
661
                                  </el-col>  
673
                                  </el-col>  
662
                                  <el-col :span="8">
674
                                  <el-col :span="8">
663
-                                  <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
675
+                                  <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMacheineTwo('form')">保存</el-button>
664
                                   </el-col>
676
                                   </el-col>
665
                                </div>
677
                                </div>
666
                              </el-row>
678
                              </el-row>
1004
                                   </el-col>
1016
                                   </el-col>
1005
                                   <el-col :span="8">
1017
                                   <el-col :span="8">
1006
                                         <el-form-item label="运行:">
1018
                                         <el-form-item label="运行:">
1007
-                                           <el-radio-group v-model="userform.run">
1019
+                                           <el-radio-group v-model="userform.run" @change="changeRun">
1008
                                                 <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="index">{{gender.name}}</el-radio>
1020
                                                 <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="index">{{gender.name}}</el-radio>
1009
                                             </el-radio-group>
1021
                                             </el-radio-group>
1010
                                         </el-form-item> 
1022
                                         </el-form-item> 
1013
                                 <el-row>
1025
                                 <el-row>
1014
                                   <el-col>
1026
                                   <el-col>
1015
                                       <el-form-item label="故障发生阶段:">                                  
1027
                                       <el-form-item label="故障发生阶段:">                                  
1016
-                                        <!-- <el-radio-group v-model="userform.failure_stage">
1017
-                                          <el-radio v-for="item in faultPhase"  :label="item.label" :value="item.value" :key="item.value">{{item.label}}</el-radio>
1018
-                                       </el-radio-group>                            -->
1019
-                                        <el-radio-group v-model="userform.failure_stage">
1028
+                                        <el-radio-group v-model="userform.failure_stage" :disabled ="runDisable">
1020
                                              <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
1029
                                              <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
1021
                                         </el-radio-group>
1030
                                         </el-radio-group>
1022
                                      </el-form-item>
1031
                                      </el-form-item>
1966
   import { getAllSubregion, getAllMachine, getMachineDetailById,
1975
   import { getAllSubregion, getAllMachine, getMachineDetailById,
1967
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
1976
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
1968
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
1977
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
1969
-    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin,getAutoData,getAllEquitType } from '@/api/manage'
1978
+    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin,getAutoData,getAllEquitType,UpdateMacheineTwo } from '@/api/manage'
1970
   import { uParseTime } from '@/utils/tools'
1979
   import { uParseTime } from '@/utils/tools'
1971
   import { getToken } from '@/api/qiniu'
1980
   import { getToken } from '@/api/qiniu'
1972
   import PlanForm from './components/PlanForm'
1981
   import PlanForm from './components/PlanForm'
2033
           user_year: '',
2042
           user_year: '',
2034
           work_time: '',
2043
           work_time: '',
2035
           treat_mode: [],
2044
           treat_mode: [],
2036
-          treat_type: [] // 治疗模式
2045
+          treat_type: [],
2046
+          bed:'' // 治疗模式
2037
         },
2047
         },
2038
         activeName: 'first',
2048
         activeName: 'first',
2039
         activeNameTwo: 'first',
2049
         activeNameTwo: 'first',
2413
         restaurants: [],
2423
         restaurants: [],
2414
         state: '',
2424
         state: '',
2415
         userdata: 0,
2425
         userdata: 0,
2426
+        disableThree:true,
2427
+        disableFour:true,
2428
+        disableFive:true,
2429
+        runDisable:true,
2416
       }
2430
       }
2417
     },
2431
     },
2418
     methods: {
2432
     methods: {
2433
+      changeRun(val){
2434
+        if(val === 1){
2435
+          this.runDisable = true
2436
+          this.userform.failure_stage = ""
2437
+        }
2438
+        if(val===2){
2439
+           this.runDisable = false
2440
+        }
2441
+      },
2442
+
2419
       handleClick(tab, event) {
2443
       handleClick(tab, event) {
2420
         console.log(tab, event)
2444
         console.log(tab, event)
2421
       },
2445
       },
2490
         })
2514
         })
2491
       },
2515
       },
2492
       handleCurrentChange(val) {
2516
       handleCurrentChange(val) {
2493
-      
2494
         this.currentRow = val
2517
         this.currentRow = val
2495
         this.$forceUpdate()
2518
         this.$forceUpdate()
2496
         this.getMachineDetailById(val.id)
2519
         this.getMachineDetailById(val.id)
2655
       UpdateMachine() {
2678
       UpdateMachine() {
2656
         this.cancelShow = true
2679
         this.cancelShow = true
2657
         this.confirmShow = true
2680
         this.confirmShow = true
2681
+        this.disableThree = false
2682
+        this.disableFour = false
2683
+        this.disableFive = false
2658
       },
2684
       },
2659
       UpdateMachineInfo(formName) {
2685
       UpdateMachineInfo(formName) {
2660
         const arr2 = []
2686
         const arr2 = []
2725
         if (this.form.bed_number === '') {
2751
         if (this.form.bed_number === '') {
2726
           this.form.bed_number = 0
2752
           this.form.bed_number = 0
2727
         }
2753
         }
2728
-        var bed_numbers = this.form.bed_number
2729
-        var bed_numberss = parseInt(bed_numbers)
2730
-        this.form.bed_number = bed_numberss
2731
-
2732
-        console.log('购买日期', this.form.buy_date)
2754
+          
2755
+         var bed_numbers = this.form.bed_number
2756
+         var bed_numberss = parseInt(bed_numbers)
2757
+         this.form.bed_number = bed_numberss
2758
+                  
2733
         this.$refs[formName].validate(valid => {
2759
         this.$refs[formName].validate(valid => {
2734
           UpdateMachineInfo(this.form).then(response => {
2760
           UpdateMachineInfo(this.form).then(response => {
2735
             if (response.data.state === 1) {
2761
             if (response.data.state === 1) {
2736
               var addmacher = response.data.data.addmacher
2762
               var addmacher = response.data.data.addmacher
2737
-              console.log('addmacher', addmacher)
2738
               this.$message.success('修改成功')
2763
               this.$message.success('修改成功')
2739
               this.getAllMachine()
2764
               this.getAllMachine()
2740
               this.getAllSubregion()
2765
               this.getAllSubregion()
2742
           })
2767
           })
2743
         })
2768
         })
2744
       },
2769
       },
2770
+      UpdateMacheineTwo(formName){
2771
+        var device_type = this.form.devicetype
2772
+        var device_types = parseInt(device_type)
2773
+        this.form.devicetype = device_types
2774
+
2775
+        if (this.form.rubbish_reason === '') {
2776
+          this.form.rubbish_reason = 0
2777
+        }
2778
+        var rubbish_reason = this.form.rubbish_reason
2779
+        var rubbish_reasons = parseInt(rubbish_reason)
2780
+        this.form.rubbish_reason = rubbish_reasons
2781
+
2782
+        var machine_status = this.form.machine_status
2783
+        var machine_statuss = parseInt(machine_status)
2784
+        this.form.machine_status = machine_statuss
2785
+        this.$refs[formName].validate(valid =>{
2786
+          UpdateMacheineTwo(this.form).then(response=>{
2787
+             if(response.data.state === 1){
2788
+              var add =   response.data.data.addmacher
2789
+               this.$message.success('修改成功')
2790
+               this.getAllMachine()
2791
+               this.getAllSubregion()
2792
+             }   
2793
+          })
2794
+        })
2795
+        
2796
+      },
2745
       cleanMainchine(){
2797
       cleanMainchine(){
2746
         this.confirmShow = false
2798
         this.confirmShow = false
2747
         this.cancelShow = false
2799
         this.cancelShow = false
2748
-        this.form.manufacture_factory = ""
2749
-        this.form.service_manufacturer= ""
2750
-        this.form.use_section= ""
2751
-        this.form.buy_date= ""
2752
-        this.form.install_date= ""
2753
-        this.form.start_date= ""
2754
-        this.form.maintenance_engineer= ""
2755
-        this.form.telephone= ""
2756
-        this.form.guarantee_date= ""
2757
-        this.form.user_total= ""
2758
-        this.form.rubbish_date= ""
2759
-        this.form.user_year = ""
2760
-        this.form.work_time = ""
2761
-        this.form.treat_mode = ""
2800
+        // this.form.manufacture_factory = ""
2801
+        // this.form.service_manufacturer= ""
2802
+        // this.form.use_section= ""
2803
+        // this.form.buy_date= ""
2804
+        // this.form.install_date= ""
2805
+        // this.form.start_date= ""
2806
+        // this.form.maintenance_engineer= ""
2807
+        // this.form.telephone= ""
2808
+        // this.form.guarantee_date= ""
2809
+        // this.form.user_total= ""
2810
+        // this.form.rubbish_date= ""
2811
+        // this.form.user_year = ""
2812
+        // this.form.work_time = ""
2813
+        // this.form.treat_mode = ""
2762
       },
2814
       },
2763
       addPlan() {
2815
       addPlan() {
2764
         this.$refs.planForm.open()
2816
         this.$refs.planForm.open()