xiaoming_global 5 år sedan
förälder
incheckning
a20beac1d5

+ 8 - 1
src/api/manage.js Visa fil

@@ -432,7 +432,6 @@ export function DeleteUserform(data) {
432 432
 }
433 433
 
434 434
 export function UpdateForm(data) {
435
-  console.log("data", data);
436 435
   return request({
437 436
     url: "/api/manage/updateform",
438 437
     method: "post",
@@ -485,3 +484,11 @@ export function getUserForm(id, limit, page) {
485 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 Visa fil

@@ -1,6 +1,11 @@
1 1
 <template>
2 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 9
       <el-form>
5 10
         <el-row :gutter="20">
6 11
           <el-col :span="6">
@@ -102,17 +107,26 @@
102 107
           <el-col :span="5">
103 108
             <el-form-item label="合计:">
104 109
               故障次数
105
-              <span>{{ failure_times }}</span>次
110
+              <span>{{ failure_times }}</span
111
+              >次
106 112
               <!-- <el-input style="width:90px"></el-input> -->
107 113
             </el-form-item>
108 114
           </el-col>
109 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 119
           </el-col>
112 120
         </el-row>
113 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 130
               <!-- <template slot-scope="scope">
117 131
                 {{ scope.row.id }}
118 132
               </template>-->
@@ -120,46 +134,134 @@
120 134
             <el-table-column prop="name" label="分区" width="60" align="center">
121 135
               <template slot-scope="scope">{{ scope.row.name }}</template>
122 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 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 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 163
               <template slot-scope="scope">{{ scope.row.bed_number }}</template>
131 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 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 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 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 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 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 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 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 241
               <template slot-scope="scope">{{ scope.row.user_year }}</template>
155 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 249
               <template slot-scope="scope">{{ scope.row.work_time }}</template>
158 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 257
               <template slot-scope="scope">{{ scope.row.user_total }}</template>
161 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 265
               <template slot-scope="scope">{{ failure_times }}</template>
164 266
             </el-table-column>
165 267
           </el-table>
@@ -167,7 +269,9 @@
167 269
       </el-form>
168 270
       <span slot="footer" class="dialog-footer">
169 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 275
       </span>
172 276
     </el-dialog>
173 277
   </div>
@@ -178,84 +282,86 @@ import {
178 282
   getAllSubregion,
179 283
   getAllEquimentName,
180 284
   getComprehensive
181
-} from "@/api/manage";
182
-import { uParseTime } from "@/utils/tools";
285
+} from '@/api/manage'
286
+import { uParseTime } from '@/utils/tools'
183 287
 export default {
184
-  name: "MultipleForm",
288
+  name: 'MultipleForm',
185 289
   data() {
186 290
     return {
187 291
       failure_times: 0,
188 292
       dialogVisible: false,
189 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 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 311
       tableData: [],
208 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 328
   methods: {
221 329
     open: function() {
222
-      this.dialogVisible = true;
330
+      this.dialogVisible = true
223 331
     },
224 332
     getAllSubregion() {
225 333
       getAllSubregion().then(response => {
226 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 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 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 353
     getAllEquimentName() {
248 354
       getAllEquimentName().then(response => {
249 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 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 366
     getComprehensive() {
261 367
       const params = {
@@ -265,55 +371,63 @@ export default {
265 371
         year: this.form.user_year,
266 372
         starttime: this.form.start_time,
267 373
         endtime: this.form.end_time
268
-      };
374
+      }
269 375
       getComprehensive(params).then(response => {
270 376
         if (response.data.state === 1) {
271
-          var macher = response.data.data.macher;
377
+          var macher = response.data.data.macher
272 378
           for (let index = 0; index < macher.length; index++) {
273 379
             if (macher[index].device_type === 1) {
274
-              macher[index].device_type = "透析机";
380
+              macher[index].device_type = '透析机'
275 381
             }
276 382
             if (macher[index].device_type === 2) {
277
-              macher[index].device_type = "水处理机";
383
+              macher[index].device_type = '水处理机'
278 384
             }
279 385
             if (macher[index].device_type === 3) {
280
-              macher[index].device_type = "其他";
386
+              macher[index].device_type = '其他'
281 387
             }
282 388
 
283 389
             if (macher[index].machine_status === 1) {
284
-              macher[index].machine_status = "使用机";
390
+              macher[index].machine_status = '使用机'
285 391
             }
286 392
             if (macher[index].machine_status === 2) {
287
-              macher[index].machine_status = "备用机";
393
+              macher[index].machine_status = '备用机'
288 394
             }
289 395
             if (macher[index].machine_status === 3) {
290
-              macher[index].machine_status = "急诊机";
396
+              macher[index].machine_status = '急诊机'
291 397
             }
292 398
             if (macher[index].machine_status === 4) {
293
-              macher[index].machine_status = "报废机";
399
+              macher[index].machine_status = '报废机'
294 400
             }
295 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 410
     getTime(time) {
305 411
       if (time === 0) {
306
-        return "";
412
+        return ''
307 413
       } else {
308
-        return uParseTime(time, "{y}-{m}-{d}");
414
+        return uParseTime(time, '{y}-{m}-{d}')
309 415
       }
310 416
     }
311 417
   },
312 418
   created() {
313
-    this.getAllSubregion();
314
-    this.getAllEquimentName();
419
+    this.getAllSubregion()
420
+    this.getAllEquimentName()
315 421
   }
316
-};
422
+}
317 423
 </script>
318 424
 
319 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 Visa fil

@@ -74,7 +74,7 @@
74 74
       >
75 75
         <el-table-column align="center" type="selection" width="55"></el-table-column>
76 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 78
         </el-table-column>
79 79
         <el-table-column prop="name" label="取样日期" width="100" align="center">
80 80
           <template slot-scope="scope">{{getTime(scope.row.speling_date)}}</template>
@@ -140,7 +140,7 @@
140 140
       >
141 141
         <el-table-column align="center" type="selection" width="55"></el-table-column>
142 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 144
         </el-table-column>
145 145
         <el-table-column prop="name" label="取样日期" width="100" align="center">
146 146
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
@@ -206,7 +206,7 @@
206 206
       >
207 207
         <el-table-column align="center" type="selection" width="55"></el-table-column>
208 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 210
         </el-table-column>
211 211
         <el-table-column prop="name" label="取样日期" width="80" align="center">
212 212
           <template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
@@ -386,7 +386,7 @@
386 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 390
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
391 391
         <el-row>
392 392
           <el-col :span="8">
@@ -640,20 +640,20 @@ import {
640 640
   UpdateIon,
641 641
   DeleteIon,
642 642
   queryTable
643
-} from "@/api/manage";
644
-import { uParseTime } from "@/utils/tools";
643
+} from '@/api/manage'
644
+import { uParseTime } from '@/utils/tools'
645 645
 export default {
646
-  name: "QualityForm",
646
+  name: 'QualityForm',
647 647
   data() {
648 648
     return {
649 649
       isIndeterminate: false,
650 650
       checkAllStatus: false,
651 651
       beds: [],
652 652
       forms: {
653
-        bed: "",
653
+        bed: '',
654 654
         sename: 1,
655
-        start_time: "",
656
-        end_time: ""
655
+        start_time: '',
656
+        end_time: ''
657 657
       },
658 658
       tableData: [],
659 659
       table: [],
@@ -663,9 +663,9 @@ export default {
663 663
       showTwo: false,
664 664
       bedNumber: [],
665 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 670
       dialogVisible: false,
671 671
       dialogVisibleTwo: false,
@@ -673,350 +673,350 @@ export default {
673 673
       disable: true,
674 674
       diableTwo: true,
675 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 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 699
       sampling: [],
700 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 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 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 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 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 727
       selectCulture: [],
728 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 746
   methods: {
747 747
     changeCheck() {
748
-      this.$refs.multipleTable.clearSelection();
748
+      this.$refs.multipleTable.clearSelection()
749 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 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 759
       if (this.checkAllStatus) {
760
-        this.$refs.multipleTableTwo.toggleAllSelection();
760
+        this.$refs.multipleTableTwo.toggleAllSelection()
761 761
       }
762 762
     },
763 763
     handleSelectionChange(val) {
764
-      this.selectCulture = val;
764
+      this.selectCulture = val
765 765
     },
766 766
     handleSelectionChangeOne(val) {
767
-      this.selectCulture = val;
767
+      this.selectCulture = val
768 768
     },
769 769
     handleSelectionChangeTwo(val) {
770
-      this.selectCulture = val;
770
+      this.selectCulture = val
771 771
     },
772 772
     getAllSubregion() {
773 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 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 784
     getAllQulityInfo() {
785 785
       getAllQulityInfo().then(response => {
786 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 790
           for (let index = 0; index < cultures.length; index++) {
791 791
             if (cultures[index].specimen === 0) {
792
-              cultures[index].specimen = "";
792
+              cultures[index].specimen = ''
793 793
             }
794 794
             if (cultures[index].specimen === 1) {
795
-              cultures[index].specimen = "透析液";
795
+              cultures[index].specimen = '透析液'
796 796
             }
797 797
             if (cultures[index].specimen === 2) {
798
-              cultures[index].specimen = "A浓缩液";
798
+              cultures[index].specimen = 'A浓缩液'
799 799
             }
800 800
             if (cultures[index].specimen === 3) {
801
-              cultures[index].specimen = "B浓缩液";
801
+              cultures[index].specimen = 'B浓缩液'
802 802
             }
803 803
             if (cultures[index].specimen === 4) {
804
-              cultures[index].specimen = "置换液";
804
+              cultures[index].specimen = '置换液'
805 805
             }
806 806
             if (cultures[index].specimen === 5) {
807
-              cultures[index].specimen = "透析用水";
807
+              cultures[index].specimen = '透析用水'
808 808
             }
809 809
 
810 810
             if (cultures[index].sampling_locationa === 0) {
811
-              cultures[index].sampling_locationa = "";
811
+              cultures[index].sampling_locationa = ''
812 812
             }
813 813
 
814 814
             if (cultures[index].sampling_locationa === 1) {
815
-              cultures[index].sampling_locationa = "透析液入口";
815
+              cultures[index].sampling_locationa = '透析液入口'
816 816
             }
817 817
             if (cultures[index].sampling_locationa === 2) {
818
-              cultures[index].sampling_locationa = "透析液取样口";
818
+              cultures[index].sampling_locationa = '透析液取样口'
819 819
             }
820 820
             if (cultures[index].sampling_locationa === 3) {
821
-              cultures[index].sampling_locationa = "置换液出口";
821
+              cultures[index].sampling_locationa = '置换液出口'
822 822
             }
823 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 830
           for (let index = 0; index < dialyste.length; index++) {
831 831
             if (dialyste[index].specimenb === 0) {
832
-              dialyste[index].specimenb = "";
832
+              dialyste[index].specimenb = ''
833 833
             }
834 834
             if (dialyste[index].specimenb === 1) {
835
-              dialyste[index].specimenb = "透析液";
835
+              dialyste[index].specimenb = '透析液'
836 836
             }
837 837
             if (dialyste[index].specimenb === 2) {
838
-              dialyste[index].specimenb = "A浓缩液";
838
+              dialyste[index].specimenb = 'A浓缩液'
839 839
             }
840 840
             if (dialyste[index].specimenb === 3) {
841
-              dialyste[index].specimenb = "B浓缩液";
841
+              dialyste[index].specimenb = 'B浓缩液'
842 842
             }
843 843
             if (dialyste[index].specimenb === 4) {
844
-              dialyste[index].specimenb = "置换液";
844
+              dialyste[index].specimenb = '置换液'
845 845
             }
846 846
             if (dialyste[index].specimenb === 5) {
847
-              dialyste[index].specimenb = "透析用水";
847
+              dialyste[index].specimenb = '透析用水'
848 848
             }
849 849
 
850 850
             if (dialyste[index].sampling_locationb === 0) {
851
-              dialyste[index].sampling_locationb = "";
851
+              dialyste[index].sampling_locationb = ''
852 852
             }
853 853
 
854 854
             if (dialyste[index].sampling_locationb === 1) {
855
-              dialyste[index].sampling_locationb = "透析液入口";
855
+              dialyste[index].sampling_locationb = '透析液入口'
856 856
             }
857 857
             if (dialyste[index].sampling_locationb === 2) {
858
-              dialyste[index].sampling_locationb = "透析液取样口";
858
+              dialyste[index].sampling_locationb = '透析液取样口'
859 859
             }
860 860
             if (dialyste[index].sampling_locationb === 3) {
861
-              dialyste[index].sampling_locationb = "置换液出口";
861
+              dialyste[index].sampling_locationb = '置换液出口'
862 862
             }
863 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 874
     changeSpecimen(val) {
875 875
       if (val === 0) {
876
-        this.disable = false;
877
-        this.diableTwo = false;
876
+        this.disable = false
877
+        this.diableTwo = false
878 878
       }
879 879
       if (val === 1) {
880
-        this.diableTwo = false;
881
-        this.disable = false;
880
+        this.diableTwo = false
881
+        this.disable = false
882 882
       }
883 883
       if (val === 2) {
884
-        this.diableTwo = true;
885
-        this.disable = false;
884
+        this.diableTwo = true
885
+        this.disable = false
886 886
       }
887 887
       if (val === 3) {
888
-        this.disable = true;
889
-        this.diableTwo = false;
888
+        this.disable = true
889
+        this.diableTwo = false
890 890
       }
891 891
       if (val === 4) {
892
-        this.disable = false;
893
-        this.diableTwo = false;
892
+        this.disable = false
893
+        this.diableTwo = false
894 894
       }
895 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 900
     changeSpeciment(val) {
901 901
       if (val === 0) {
902
-        this.disable = false;
903
-        this.diableTwo = false;
902
+        this.disable = false
903
+        this.diableTwo = false
904 904
       }
905 905
       if (val === 1) {
906
-        this.disable = false;
907
-        this.diableTwo = false;
906
+        this.disable = false
907
+        this.diableTwo = false
908 908
       }
909 909
       if (val === 2) {
910
-        this.diableTwo = true;
911
-        this.disable = false;
910
+        this.diableTwo = true
911
+        this.disable = false
912 912
       }
913 913
       if (val === 3) {
914
-        this.disable = true;
915
-        this.diableTwo = false;
914
+        this.disable = true
915
+        this.diableTwo = false
916 916
       }
917 917
       if (val === 4) {
918
-        this.disable = false;
919
-        this.diableTwo = false;
918
+        this.disable = false
919
+        this.diableTwo = false
920 920
       }
921 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 926
     changeTable(val) {
927 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 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 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 943
     getTime(time) {
944
-      return uParseTime(time, "{y}-{m}-{d}");
944
+      return uParseTime(time, '{y}-{m}-{d}')
945 945
     },
946 946
     getAllOrganization() {
947 947
       getAllOrganization().then(response => {
948 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 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 970
       EditCulture(id, userid).then(response => {
971 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 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 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 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 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 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 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 1013
           this.form.reporting_date = uParseTime(
1014 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 1022
     UpdateCulture(formName) {
@@ -1024,230 +1024,230 @@ export default {
1024 1024
         if (valid) {
1025 1025
           UpdateCulture(this.form).then(response => {
1026 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 1036
     BatchDelete() {
1037 1037
       if (this.selectCulture.length == 0) {
1038
-        this.$message.error("请选择要删除的信息");
1039
-        return false;
1038
+        this.$message.error('请选择要删除的信息')
1039
+        return false
1040 1040
       }
1041 1041
       this.$confirm(
1042
-        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1043
-        "删除提示",
1042
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1043
+        '删除提示',
1044 1044
         {
1045 1045
           dangerouslyUseHTMLString: true,
1046
-          confirmButtonText: "确定",
1047
-          cancelButtonText: "取消",
1048
-          type: "warning"
1046
+          confirmButtonText: '确定',
1047
+          cancelButtonText: '取消',
1048
+          type: 'warning'
1049 1049
         }
1050 1050
       ).then(() => {
1051
-        var ids = [];
1052
-        var idMap = {};
1051
+        var ids = []
1052
+        var idMap = {}
1053 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 1057
         DeleteCultrue({ ids: ids }).then(response => {
1058 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 1061
             for (let index = planDataLength - 1; index >= 0; index--) {
1062 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 1071
     EditDialyState(id) {
1072
-      this.dialogVisibleTwo = true;
1072
+      this.dialogVisibleTwo = true
1073 1073
       EditDialyState(id).then(response => {
1074 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 1078
           this.diaForm.sampling_date = uParseTime(
1079 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 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 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 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 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 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 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 1115
           this.diaForm.reporting_dateb = uParseTime(
1116 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 1123
     UpdateDialyState(formName) {
1124 1124
       this.$refs[formName].validate(valid => {
1125 1125
         if (valid) {
1126 1126
           UpdateDialyState(this.diaForm).then(response => {
1127 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 1138
     BatchDeleteOne() {
1139 1139
       if (this.selectCulture.length == 0) {
1140
-        this.$message.error("请选择要删除的信息");
1141
-        return false;
1140
+        this.$message.error('请选择要删除的信息')
1141
+        return false
1142 1142
       }
1143 1143
       this.$confirm(
1144
-        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1145
-        "删除提示",
1144
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1145
+        '删除提示',
1146 1146
         {
1147 1147
           dangerouslyUseHTMLString: true,
1148
-          confirmButtonText: "确定",
1149
-          cancelButtonText: "取消",
1150
-          type: "warning"
1148
+          confirmButtonText: '确定',
1149
+          cancelButtonText: '取消',
1150
+          type: 'warning'
1151 1151
         }
1152 1152
       ).then(() => {
1153
-        var ids = [];
1154
-        var idMap = {};
1153
+        var ids = []
1154
+        var idMap = {}
1155 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 1159
         DeleteDialystate({ ids: ids }).then(response => {
1160 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 1163
             for (let index = planDataLength - 1; index >= 0; index--) {
1164 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 1173
     EditIon(id) {
1174
-      this.dialogVisibleThree = true;
1174
+      this.dialogVisibleThree = true
1175 1175
       EditIon(id).then(response => {
1176 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 1185
           this.ionForm.date_reportc = uParseTime(
1186 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 1202
     UpdateIon(formName) {
1203 1203
       this.$refs[formName].validate(valid => {
1204 1204
         if (valid) {
1205 1205
           UpdateIon(this.ionForm).then(response => {
1206 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 1217
     BatchDeleteTwo() {
1218 1218
       if (this.selectCulture.length == 0) {
1219
-        this.$message.error("请选择要删除的信息");
1220
-        return false;
1219
+        this.$message.error('请选择要删除的信息')
1220
+        return false
1221 1221
       }
1222 1222
       this.$confirm(
1223
-        "确认要删除所选的吗? <br>删除后,信息将无法恢复",
1224
-        "删除提示",
1223
+        '确认要删除所选的吗? <br>删除后,信息将无法恢复',
1224
+        '删除提示',
1225 1225
         {
1226 1226
           dangerouslyUseHTMLString: true,
1227
-          confirmButtonText: "确定",
1228
-          cancelButtonText: "取消",
1229
-          type: "warning"
1227
+          confirmButtonText: '确定',
1228
+          cancelButtonText: '取消',
1229
+          type: 'warning'
1230 1230
         }
1231 1231
       ).then(() => {
1232
-        var ids = [];
1233
-        var idMap = {};
1232
+        var ids = []
1233
+        var idMap = {}
1234 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 1238
         DeleteIon({ ids: ids }).then(response => {
1239 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 1242
             for (let index = planDataLength - 1; index >= 0; index--) {
1243 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 1252
     queryTable() {
1253 1253
       queryTable(
@@ -1256,22 +1256,22 @@ export default {
1256 1256
         this.forms.end_time
1257 1257
       ).then(response => {
1258 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 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 1275
 </script>
1276 1276
 
1277 1277
 <style scoped>

+ 18 - 9
src/xt_pages/management/components/UserForm.vue Visa fil

@@ -69,7 +69,7 @@
69 69
       >
70 70
         <el-table-column align="center" type="selection" width="55"></el-table-column>
71 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 73
         </el-table-column>
74 74
         <el-table-column label="日期" align="center" width="100">
75 75
           <template slot-scope="scope">{{ getTime(scope.row.date) }}</template>
@@ -1145,10 +1145,10 @@ export default {
1145 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,6 +1349,11 @@ export default {
1349 1349
             if (information[index].class === 3) {
1350 1350
               information[index].class = '晚上'
1351 1351
             }
1352
+
1353
+            if (information[index].dialysis_mode === 0) {
1354
+              information[index].dialysis_mode = ''
1355
+            }
1356
+
1352 1357
             if (information[index].dialysis_mode === 1) {
1353 1358
               information[index].dialysis_mode = 'HD'
1354 1359
             }
@@ -1602,6 +1607,10 @@ export default {
1602 1607
             if (information[index].class === 3) {
1603 1608
               information[index].class = '晚上'
1604 1609
             }
1610
+            if (information[index].dialysis_mode === 0) {
1611
+              information[index].dialysis_mode = ''
1612
+            }
1613
+
1605 1614
             if (information[index].dialysis_mode === 1) {
1606 1615
               information[index].dialysis_mode = 'HD'
1607 1616
             }
@@ -1800,10 +1809,10 @@ export default {
1800 1809
             this.form.zone = information[index].zone
1801 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 Visa fil

@@ -113,7 +113,7 @@
113 113
                              <el-row>
114 114
                                <el-col :span="7">
115 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 117
                                  </el-form-item>
118 118
                                </el-col>
119 119
                               <el-col :span="7">
@@ -125,7 +125,7 @@
125 125
                               </el-col>
126 126
                               <el-col :span="7">
127 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 129
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
130 130
                                        </el-select>
131 131
                                   </el-form-item>
@@ -134,34 +134,34 @@
134 134
                              <el-row>
135 135
                                <el-col :span="7">
136 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 138
                                 </el-form-item>
139 139
                                </el-col>
140 140
                                <el-col :span="7">
141 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 143
                                   </el-form-item>
144 144
                                </el-col>
145 145
                                <el-col :span="7">
146 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 148
                                  </el-form-item>
149 149
                                </el-col>
150 150
                              </el-row>
151 151
                              <el-row>
152 152
                                <el-col :span="7">
153 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 155
                                    </el-form-item>
156 156
                                </el-col>
157 157
                                <el-col :span="7">
158 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 160
                                   </el-form-item>
161 161
                                </el-col>
162 162
                                <el-col :span="7">
163 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 165
                                   </el-form-item>
166 166
                                </el-col>
167 167
                              </el-row>
@@ -175,7 +175,8 @@
175 175
                                        placeholder="请选择"
176 176
                                        format="yyyy-MM-dd"
177 177
                                        value-format="yyyy-MM-dd"
178
-                                       style="width:150px">
178
+                                       style="width:150px"
179
+                                       :disabled="disableThree">
179 180
                                       </el-date-picker>
180 181
                                 </el-form-item>
181 182
                                </el-col>
@@ -188,7 +189,8 @@
188 189
                                        placeholder="请选择"
189 190
                                        format="yyyy-MM-dd"
190 191
                                         value-format="yyyy-MM-dd"
191
-                                       style="width:150px">
192
+                                       style="width:150px"
193
+                                       :disabled="disableThree">
192 194
                                     </el-date-picker>
193 195
                                  </el-form-item>
194 196
                                </el-col>
@@ -201,23 +203,24 @@
201 203
                                        placeholder="请选择"
202 204
                                        format="yyyy-MM-dd"
203 205
                                        value-format="yyyy-MM-dd"
204
-                                       style="width:150px">
206
+                                       style="width:150px"
207
+                                       :disabled="disableThree">
205 208
                                          </el-date-picker>
206 209
                                   </el-form-item>
207 210
                                 </el-col>
208 211
                                 <el-col :span="7">
209 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 214
                                    </el-form-item>
212 215
                                 </el-col>
213 216
                                 <el-col :span="7">
214 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 219
                                    </el-form-item>
217 220
                                 </el-col>
218 221
                                 <el-col :span="7">
219 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 224
                                   </el-form-item>
222 225
                                 </el-col>
223 226
                              </el-row>
@@ -225,18 +228,18 @@
225 228
                                <el-col :span="7">
226 229
                                   <el-form-item label="机器状态:">
227 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 232
                                     </el-select>
230 233
                                   </el-form-item>
231 234
                                </el-col>
232 235
                                <el-col :span="7">
233 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 238
                                  </el-form-item>
236 239
                                </el-col>
237 240
                                <el-col :span="7">
238 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 243
                                   </el-form-item>
241 244
                                </el-col>
242 245
                              </el-row>
@@ -250,27 +253,28 @@
250 253
                                     placeholder="请选择"
251 254
                                     format="yyyy-MM-dd"
252 255
                                      value-format="yyyy-MM-dd"
253
-                                     style="width:135px">
256
+                                     style="width:135px"
257
+                                     :disabled="disableThree">
254 258
                                    </el-date-picker>
255 259
                                  </el-form-item>
256 260
                                 </el-col>
257 261
                                 <el-col :span="7">
258 262
                                    <el-form-item label="报废原因:">
259 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 265
                                      </el-select>
262 266
                                    </el-form-item>
263 267
                                 </el-col>
264 268
                                 <el-col :span="7">
265 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 271
                                  </el-form-item>
268 272
                                 </el-col>
269 273
                              </el-row>
270 274
                              <el-row>
271 275
                                 <el-col :span="7">
272 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 278
                                    </el-form-item>
275 279
                                 </el-col>
276 280
                              </el-row>
@@ -312,13 +316,13 @@
312 316
                              <el-row>
313 317
                                <el-col :span="7">
314 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 320
                                  </el-form-item>
317 321
                                </el-col>
318 322
                               <el-col :span="7">
319 323
                                  <el-form-item label="设备类型:" required prop="devicetype">
320 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 326
                                   </el-select>
323 327
                                  </el-form-item>
324 328
                               </el-col>
@@ -326,34 +330,34 @@
326 330
                              <el-row>
327 331
                                <el-col :span="7">
328 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 334
                                 </el-form-item>
331 335
                                </el-col>
332 336
                                <el-col :span="7">
333 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 339
                                   </el-form-item>
336 340
                                </el-col>
337 341
                                <el-col :span="7">
338 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 344
                                  </el-form-item>
341 345
                                </el-col>
342 346
                              </el-row>
343 347
                              <el-row>
344 348
                                <el-col :span="7">
345 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 351
                                    </el-form-item>
348 352
                                </el-col>
349 353
                                <el-col :span="7">
350 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 356
                                   </el-form-item>
353 357
                                </el-col>
354 358
                                <el-col :span="7">
355 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 361
                                   </el-form-item>
358 362
                                </el-col>
359 363
                              </el-row>
@@ -367,7 +371,8 @@
367 371
                                        placeholder="请选择"
368 372
                                        format="yyyy-MM-dd"
369 373
                                        value-format="yyyy-MM-dd"
370
-                                       style="width:150px">
374
+                                       style="width:150px"
375
+                                       :disabled="disableFour">
371 376
                                       </el-date-picker>
372 377
                                 </el-form-item>
373 378
                                </el-col>
@@ -380,7 +385,8 @@
380 385
                                        placeholder="请选择"
381 386
                                        format="yyyy-MM-dd"
382 387
                                         value-format="yyyy-MM-dd"
383
-                                       style="width:150px">
388
+                                       style="width:150px"
389
+                                       :disabled="disableFour">
384 390
                                     </el-date-picker>
385 391
                                  </el-form-item>
386 392
                                </el-col>
@@ -393,37 +399,38 @@
393 399
                                        placeholder="请选择"
394 400
                                        format="yyyy-MM-dd"
395 401
                                        value-format="yyyy-MM-dd"
396
-                                       style="width:150px">
402
+                                       style="width:150px"
403
+                                       :disabled="disableFour">
397 404
                                          </el-date-picker>
398 405
                                   </el-form-item>
399 406
                                 </el-col>
400 407
                                 <el-col :span="7">
401 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 410
                                    </el-form-item>
404 411
                                 </el-col>
405 412
                                 <el-col :span="7">
406 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 415
                                    </el-form-item>
409 416
                                 </el-col>
410 417
                                 <el-col :span="7">
411 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 420
                                   </el-form-item>
414 421
                                 </el-col>
415 422
                              </el-row>
416 423
                              <el-row>
417 424
                                <el-col :span="7">
418 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 428
                                     </el-select>
422 429
                                   </el-form-item>
423 430
                                </el-col>
424 431
                                <el-col :span="7">
425 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 434
                                   </el-form-item>
428 435
                                </el-col>
429 436
                                <el-col :span="7">
@@ -435,7 +442,8 @@
435 442
                                     placeholder="请选择"
436 443
                                     format="yyyy-MM-dd"
437 444
                                      value-format="yyyy-MM-dd"
438
-                                     style="width:135px">
445
+                                     style="width:135px"
446
+                                     :disabled="disableFour">
439 447
                                    </el-date-picker>
440 448
                                  </el-form-item>
441 449
                                 </el-col>
@@ -443,19 +451,19 @@
443 451
                              <el-row>
444 452
                                <el-col :span="7">
445 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 456
                                      </el-select>
449 457
                                    </el-form-item>
450 458
                                 </el-col>
451 459
                                 <el-col :span="7">
452 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 462
                                  </el-form-item>
455 463
                                 </el-col>
456 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 467
                                    </el-form-item>
460 468
                                 </el-col>
461 469
                              </el-row>
@@ -484,7 +492,7 @@
484 492
                           <el-row>
485 493
                                <el-col :span="7">
486 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 496
                                  </el-form-item>
489 497
                                </el-col>
490 498
                               <el-col :span="7">
@@ -499,41 +507,41 @@
499 507
                                        <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
500 508
                                           <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
501 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 511
                                   </el-form-item>
504 512
                               </el-col>
505 513
                              </el-row>
506 514
                               <el-row>
507 515
                                <el-col :span="7">
508 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 518
                                 </el-form-item>
511 519
                                </el-col>
512 520
                                <el-col :span="7">
513 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 523
                                   </el-form-item>
516 524
                                </el-col>
517 525
                                <el-col :span="7">
518 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 528
                                  </el-form-item>
521 529
                                </el-col>
522 530
                              </el-row>
523 531
                               <el-row>
524 532
                                <el-col :span="7">
525 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 535
                                    </el-form-item>
528 536
                                </el-col>
529 537
                                <el-col :span="7">
530 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 540
                                   </el-form-item>
533 541
                                </el-col>
534 542
                                <el-col :span="7">
535 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 545
                                   </el-form-item>
538 546
                                </el-col>
539 547
                              </el-row>
@@ -547,7 +555,8 @@
547 555
                                        placeholder="请选择"
548 556
                                        format="yyyy-MM-dd"
549 557
                                        value-format="yyyy-MM-dd"
550
-                                       style="width:150px">
558
+                                       style="width:150px"
559
+                                       :disabled="disableFive">
551 560
                                       </el-date-picker>
552 561
                                 </el-form-item>
553 562
                                </el-col>
@@ -560,7 +569,8 @@
560 569
                                        placeholder="请选择"
561 570
                                        format="yyyy-MM-dd"
562 571
                                         value-format="yyyy-MM-dd"
563
-                                       style="width:150px">
572
+                                       style="width:150px"
573
+                                       :disabled="disableFive">
564 574
                                     </el-date-picker>
565 575
                                  </el-form-item>
566 576
                                </el-col>
@@ -573,23 +583,24 @@
573 583
                                        placeholder="请选择"
574 584
                                        format="yyyy-MM-dd"
575 585
                                        value-format="yyyy-MM-dd"
576
-                                       style="width:150px">
586
+                                       style="width:150px"
587
+                                       :disabled="disableFive">
577 588
                                          </el-date-picker>
578 589
                                   </el-form-item>
579 590
                                 </el-col>
580 591
                                 <el-col :span="7">
581 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 594
                                    </el-form-item>
584 595
                                 </el-col>
585 596
                                 <el-col :span="7">
586 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 599
                                    </el-form-item>
589 600
                                 </el-col>
590 601
                                 <el-col :span="7">
591 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 604
                                   </el-form-item>
594 605
                                 </el-col>
595 606
                              </el-row>
@@ -597,13 +608,13 @@
597 608
                                <el-col :span="7">
598 609
                                   <el-form-item label="机器状态:">
599 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 612
                                     </el-select>
602 613
                                   </el-form-item>
603 614
                                </el-col>
604 615
                                  <el-col :span="8">
605 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 618
                                          <el-option
608 619
                                           v-for="item in this.DisinfectionMode"
609 620
                                          :key="item.id"
@@ -615,7 +626,7 @@
615 626
                                 </el-col>
616 627
                                  <el-col :span="8">
617 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 630
                                   </el-form-item>
620 631
                                </el-col>
621 632
 
@@ -630,27 +641,28 @@
630 641
                                     placeholder="请选择"
631 642
                                     format="yyyy-MM-dd"
632 643
                                      value-format="yyyy-MM-dd"
633
-                                     style="width:135px">
644
+                                     style="width:135px"
645
+                                     :disabled="disableFive">
634 646
                                    </el-date-picker>
635 647
                                  </el-form-item>
636 648
                                 </el-col>
637 649
                                  <el-col :span="7">
638 650
                                    <el-form-item label="报废原因:">
639 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 653
                                      </el-select>
642 654
                                    </el-form-item>
643 655
                                 </el-col>
644 656
                                 <el-col :span="7">
645 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 659
                                  </el-form-item>
648 660
                                 </el-col>
649 661
                              </el-row>
650 662
                              <el-row>
651 663
                                 <el-col :span="7">
652 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 666
                                    </el-form-item>
655 667
                                 </el-col>
656 668
                              </el-row>
@@ -660,7 +672,7 @@
660 672
                                    <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
661 673
                                  </el-col>  
662 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 676
                                   </el-col>
665 677
                                </div>
666 678
                              </el-row>
@@ -1004,7 +1016,7 @@
1004 1016
                                   </el-col>
1005 1017
                                   <el-col :span="8">
1006 1018
                                         <el-form-item label="运行:">
1007
-                                           <el-radio-group v-model="userform.run">
1019
+                                           <el-radio-group v-model="userform.run" @change="changeRun">
1008 1020
                                                 <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="index">{{gender.name}}</el-radio>
1009 1021
                                             </el-radio-group>
1010 1022
                                         </el-form-item> 
@@ -1013,10 +1025,7 @@
1013 1025
                                 <el-row>
1014 1026
                                   <el-col>
1015 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 1029
                                              <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
1021 1030
                                         </el-radio-group>
1022 1031
                                      </el-form-item>
@@ -1966,7 +1975,7 @@
1966 1975
   import { getAllSubregion, getAllMachine, getMachineDetailById,
1967 1976
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
1968 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 1979
   import { uParseTime } from '@/utils/tools'
1971 1980
   import { getToken } from '@/api/qiniu'
1972 1981
   import PlanForm from './components/PlanForm'
@@ -2033,7 +2042,8 @@ export default {
2033 2042
           user_year: '',
2034 2043
           work_time: '',
2035 2044
           treat_mode: [],
2036
-          treat_type: [] // 治疗模式
2045
+          treat_type: [],
2046
+          bed:'' // 治疗模式
2037 2047
         },
2038 2048
         activeName: 'first',
2039 2049
         activeNameTwo: 'first',
@@ -2413,9 +2423,23 @@ export default {
2413 2423
         restaurants: [],
2414 2424
         state: '',
2415 2425
         userdata: 0,
2426
+        disableThree:true,
2427
+        disableFour:true,
2428
+        disableFive:true,
2429
+        runDisable:true,
2416 2430
       }
2417 2431
     },
2418 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 2443
       handleClick(tab, event) {
2420 2444
         console.log(tab, event)
2421 2445
       },
@@ -2490,7 +2514,6 @@ export default {
2490 2514
         })
2491 2515
       },
2492 2516
       handleCurrentChange(val) {
2493
-      
2494 2517
         this.currentRow = val
2495 2518
         this.$forceUpdate()
2496 2519
         this.getMachineDetailById(val.id)
@@ -2655,6 +2678,9 @@ export default {
2655 2678
       UpdateMachine() {
2656 2679
         this.cancelShow = true
2657 2680
         this.confirmShow = true
2681
+        this.disableThree = false
2682
+        this.disableFour = false
2683
+        this.disableFive = false
2658 2684
       },
2659 2685
       UpdateMachineInfo(formName) {
2660 2686
         const arr2 = []
@@ -2725,16 +2751,15 @@ export default {
2725 2751
         if (this.form.bed_number === '') {
2726 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 2759
         this.$refs[formName].validate(valid => {
2734 2760
           UpdateMachineInfo(this.form).then(response => {
2735 2761
             if (response.data.state === 1) {
2736 2762
               var addmacher = response.data.data.addmacher
2737
-              console.log('addmacher', addmacher)
2738 2763
               this.$message.success('修改成功')
2739 2764
               this.getAllMachine()
2740 2765
               this.getAllSubregion()
@@ -2742,23 +2767,50 @@ export default {
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 2797
       cleanMainchine(){
2746 2798
         this.confirmShow = false
2747 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 2815
       addPlan() {
2764 2816
         this.$refs.planForm.open()