XMLWAN 4 years ago
parent
commit
5f8fb34878

+ 12 - 12
package-lock.json View File

477
     },
477
     },
478
     "async-validator": {
478
     "async-validator": {
479
       "version": "1.8.5",
479
       "version": "1.8.5",
480
-      "resolved": "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz",
481
-      "integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
480
+      "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz",
481
+      "integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==",
482
       "requires": {
482
       "requires": {
483
         "babel-runtime": "6.x"
483
         "babel-runtime": "6.x"
484
       }
484
       }
3187
     },
3187
     },
3188
     "deepmerge": {
3188
     "deepmerge": {
3189
       "version": "1.5.2",
3189
       "version": "1.5.2",
3190
-      "resolved": "https://registry.npm.taobao.org/deepmerge/download/deepmerge-1.5.2.tgz",
3191
-      "integrity": "sha1-EEmdhohEza1P7ghC34x/bwyVp1M="
3190
+      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
3191
+      "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
3192
     },
3192
     },
3193
     "define-properties": {
3193
     "define-properties": {
3194
       "version": "1.1.3",
3194
       "version": "1.1.3",
3515
       "dev": true
3515
       "dev": true
3516
     },
3516
     },
3517
     "element-ui": {
3517
     "element-ui": {
3518
-      "version": "2.12.0",
3519
-      "resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.12.0.tgz",
3520
-      "integrity": "sha1-qJO8Ea5Pfbt+nVQWBvI+ZD8THuQ=",
3518
+      "version": "2.13.0",
3519
+      "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.13.0.tgz",
3520
+      "integrity": "sha512-KYsHWsBXYbLELS8cdfvgJTOMSUby3UEjvsPV1V1VmgJ/DdkOAS4z3MiOrPxrT9w2Cc5lZ4eVSQiGhYFR5NVChw==",
3521
       "requires": {
3521
       "requires": {
3522
         "async-validator": "~1.8.1",
3522
         "async-validator": "~1.8.1",
3523
         "babel-helper-vue-jsx-merge-props": "^2.0.0",
3523
         "babel-helper-vue-jsx-merge-props": "^2.0.0",
7943
     },
7943
     },
7944
     "normalize-wheel": {
7944
     "normalize-wheel": {
7945
       "version": "1.0.1",
7945
       "version": "1.0.1",
7946
-      "resolved": "http://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
7946
+      "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
7947
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7947
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7948
     },
7948
     },
7949
     "normalize.css": {
7949
     "normalize.css": {
11900
     },
11900
     },
11901
     "resize-observer-polyfill": {
11901
     "resize-observer-polyfill": {
11902
       "version": "1.5.1",
11902
       "version": "1.5.1",
11903
-      "resolved": "http://registry.npm.taobao.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz",
11904
-      "integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
11903
+      "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
11904
+      "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
11905
     },
11905
     },
11906
     "resolve": {
11906
     "resolve": {
11907
       "version": "1.10.0",
11907
       "version": "1.10.0",
13556
     },
13556
     },
13557
     "throttle-debounce": {
13557
     "throttle-debounce": {
13558
       "version": "1.1.0",
13558
       "version": "1.1.0",
13559
-      "resolved": "http://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz",
13560
-      "integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0="
13559
+      "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
13560
+      "integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg=="
13561
     },
13561
     },
13562
     "through": {
13562
     "through": {
13563
       "version": "2.3.8",
13563
       "version": "2.3.8",

+ 1 - 1
package.json View File

46
     "driver.js": "0.5.2",
46
     "driver.js": "0.5.2",
47
     "dropzone": "5.2.0",
47
     "dropzone": "5.2.0",
48
     "echarts": "3.8.5",
48
     "echarts": "3.8.5",
49
-    "element-ui": "^2.12.0",
49
+    "element-ui": "^2.13.0",
50
     "file-saver": "1.3.3",
50
     "file-saver": "1.3.3",
51
     "font-awesome": "4.7.0",
51
     "font-awesome": "4.7.0",
52
     "js-cookie": "2.2.0",
52
     "js-cookie": "2.2.0",

+ 3 - 4
src/api/manage.js View File

150
 }
150
 }
151
 
151
 
152
 export function UpdatePlanInfo(data) {
152
 export function UpdatePlanInfo(data) {
153
+  console.log('data', data)
153
   return request({
154
   return request({
154
     url: '/api/manage/updateplaninfo',
155
     url: '/api/manage/updateplaninfo',
155
     method: 'Post',
156
     method: 'Post',
451
 }
452
 }
452
 
453
 
453
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
454
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
454
-  console.log('开始时间', startime)
455
-  console.log('结束时间', endtime)
456
-  console.log('床位好', bed)
457
   const params = {
455
   const params = {
458
     zone: zone,
456
     zone: zone,
459
     bed: bed,
457
     bed: bed,
462
     limit: limit,
460
     limit: limit,
463
     page: page
461
     page: page
464
   }
462
   }
463
+  console.log('params', params)
465
   return request({
464
   return request({
466
     url: '/api/manage/queryinfo',
465
     url: '/api/manage/queryinfo',
467
     method: 'Get',
466
     method: 'Get',
486
 }
485
 }
487
 
486
 
488
 export function getUserForm(id, limit, page) {
487
 export function getUserForm(id, limit, page) {
489
-  console.log('limit', limit)
490
   const params = {
488
   const params = {
491
     id: id,
489
     id: id,
492
     limit: limit,
490
     limit: limit,
508
 }
506
 }
509
 
507
 
510
 export function getBedForm(id, params) {
508
 export function getBedForm(id, params) {
509
+  console.log('设备-id', id)
511
   return request({
510
   return request({
512
     url: '/api/manage/getbedform?id=' + id,
511
     url: '/api/manage/getbedform?id=' + id,
513
     method: 'get',
512
     method: 'get',

+ 12 - 15
src/xt_pages/management/components/MultipleForm.vue View File

6
       width="95%"
6
       width="95%"
7
       center
7
       center
8
     >
8
     >
9
-      <el-form style="height:100%">
9
+      <el-form style="height: 100%;">
10
         <el-row :gutter="20">
10
         <el-row :gutter="20">
11
           <el-col :span="4">
11
           <el-col :span="4">
12
             <el-form-item label="透析分区:">
12
             <el-form-item label="透析分区:">
13
-              <el-select style="width:110px" v-model="form.zone">
13
+              <el-select style="width: 110px;" v-model="form.zone">
14
                 <el-option
14
                 <el-option
15
                   v-for="item in this.DeviceType"
15
                   v-for="item in this.DeviceType"
16
                   :key="item.id"
16
                   :key="item.id"
22
           </el-col>
22
           </el-col>
23
           <el-col :span="4">
23
           <el-col :span="4">
24
             <el-form-item label="机号:">
24
             <el-form-item label="机号:">
25
-              <el-select style="width:110px" v-model="form.device_number">
25
+              <el-select style="width: 110px;" v-model="form.device_number">
26
                 <el-option
26
                 <el-option
27
                   v-for="item in this.Numbers"
27
                   v-for="item in this.Numbers"
28
                   :key="item.id"
28
                   :key="item.id"
34
           </el-col>
34
           </el-col>
35
           <el-col :span="4">
35
           <el-col :span="4">
36
             <el-form-item label="设备类型:">
36
             <el-form-item label="设备类型:">
37
-              <el-select style="width:110px" v-model="form.device_type">
37
+              <el-select style="width: 110px;" v-model="form.device_type">
38
                 <el-option
38
                 <el-option
39
                   v-for="item in this.EquitmentType"
39
                   v-for="item in this.EquitmentType"
40
                   :key="item.id"
40
                   :key="item.id"
46
           </el-col>
46
           </el-col>
47
           <el-col :span="4">
47
           <el-col :span="4">
48
             <el-form-item label="设备型号:">
48
             <el-form-item label="设备型号:">
49
-              <el-select style="width:110px" v-model="form.device_model">
49
+              <el-select style="width: 110px;" v-model="form.device_model">
50
                 <el-option
50
                 <el-option
51
                   v-for="item in this.EquitmentName"
51
                   v-for="item in this.EquitmentName"
52
                   :key="item.id"
52
                   :key="item.id"
58
           </el-col>
58
           </el-col>
59
           <el-col :span="4">
59
           <el-col :span="4">
60
             <el-form-item label="使用年限:">
60
             <el-form-item label="使用年限:">
61
-              <el-select style="width:110px" v-model="form.user_year">
61
+              <el-select style="width: 110px;" v-model="form.user_year">
62
                 <el-option
62
                 <el-option
63
                   v-for="item in this.userYear"
63
                   v-for="item in this.userYear"
64
                   :key="item.id"
64
                   :key="item.id"
122
         <el-table
122
         <el-table
123
           :data="tableData"
123
           :data="tableData"
124
           border
124
           border
125
-          style="width:100%"
126
-          height="80%"
125
+          style="width: 100%;"
126
+          height="330"
127
           :row-style="{ color: '#303133' }"
127
           :row-style="{ color: '#303133' }"
128
           :header-cell-style="{
128
           :header-cell-style="{
129
             backgroundColor: 'rgb(245, 247, 250)',
129
             backgroundColor: 'rgb(245, 247, 250)',
184
             width="100"
184
             width="100"
185
             align="center"
185
             align="center"
186
           >
186
           >
187
-            <template slot-scope="scope">{{ scope.row.unit_type }}</template>
187
+            <template slot-scope="scope">{{ scope.row.device_mode }}</template>
188
           </el-table-column>
188
           </el-table-column>
189
           <el-table-column
189
           <el-table-column
190
             prop="address"
190
             prop="address"
328
       DeviceType: [{ id: 0, name: "不限" }],
328
       DeviceType: [{ id: 0, name: "不限" }],
329
       Numbers: [{ id: 0, number: "不限" }],
329
       Numbers: [{ id: 0, number: "不限" }],
330
       EquitmentName: [{ id: 0, equitment_name: "全部" }],
330
       EquitmentName: [{ id: 0, equitment_name: "全部" }],
331
-      runOptions: [
332
-        { value: "1", label: "正常" },
333
-        { value: "2", label: "故障" }
334
-      ]
331
+      runOptions: [{ value: "1", label: "正常" }, { value: "2", label: "故障" }]
335
     };
332
     };
336
   },
333
   },
337
   methods: {
334
   methods: {
384
       getComprehensive(params).then(response => {
381
       getComprehensive(params).then(response => {
385
         if (response.data.state === 1) {
382
         if (response.data.state === 1) {
386
           var macher = response.data.data.macher;
383
           var macher = response.data.data.macher;
387
-          console.log("设备型号5555", macher);
384
+
388
           for (let index = 0; index < macher.length; index++) {
385
           for (let index = 0; index < macher.length; index++) {
389
             if (macher[index].device_type === 1) {
386
             if (macher[index].device_type === 1) {
390
               macher[index].device_type = "透析机";
387
               macher[index].device_type = "透析机";
428
       getTotalCount().then(response => {
425
       getTotalCount().then(response => {
429
         if (response.data.state === 1) {
426
         if (response.data.state === 1) {
430
           var total = response.data.data.total;
427
           var total = response.data.data.total;
431
-          // console.log('total ========', total)
428
+
432
           this.failure_times = total;
429
           this.failure_times = total;
433
         }
430
         }
434
       });
431
       });

+ 20 - 23
src/xt_pages/management/components/UserForm.vue View File

1002
       limit: 10,
1002
       limit: 10,
1003
       page: 1,
1003
       page: 1,
1004
       total: 0,
1004
       total: 0,
1005
+      value: "",
1005
       classType: [
1006
       classType: [
1006
         { id: 1, name: "上午" },
1007
         { id: 1, name: "上午" },
1007
         { id: 2, name: "下午" },
1008
         { id: 2, name: "下午" },
1066
         { id: 8, name: "50%冰醋酸" },
1067
         { id: 8, name: "50%冰醋酸" },
1067
         { id: 9, name: "5%次氯酸钠" }
1068
         { id: 9, name: "5%次氯酸钠" }
1068
       ],
1069
       ],
1069
-      runOption: [
1070
-        { id: 1, name: "正常" },
1071
-        { id: 2, name: "故障" }
1072
-      ],
1073
-      runOptions: [
1074
-        { id: 1, name: "达标" },
1075
-        { id: 2, name: "未达标" }
1076
-      ],
1070
+      runOption: [{ id: 1, name: "正常" }, { id: 2, name: "故障" }],
1071
+      runOptions: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
1077
       faultPhase: [
1072
       faultPhase: [
1078
         { id: 1, name: "开机启动" },
1073
         { id: 1, name: "开机启动" },
1079
         { id: 2, name: "自检" },
1074
         { id: 2, name: "自检" },
1081
         { id: 4, name: "治疗" },
1076
         { id: 4, name: "治疗" },
1082
         { id: 5, name: "消毒" }
1077
         { id: 5, name: "消毒" }
1083
       ],
1078
       ],
1084
-      Disinfectant: [
1085
-        { id: 1, name: "有" },
1086
-        { id: 2, name: "无" }
1087
-      ],
1088
-      potency: [
1089
-        { id: 1, name: "达标" },
1090
-        { id: 2, name: "未达标" }
1091
-      ],
1079
+      Disinfectant: [{ id: 1, name: "有" }, { id: 2, name: "无" }],
1080
+      potency: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
1092
       disinfection: [
1081
       disinfection: [
1093
         { id: 1, name: "已消毒" },
1082
         { id: 1, name: "已消毒" },
1094
         { id: 2, name: "未消毒" },
1083
         { id: 2, name: "未消毒" },
1153
         germ_number: "", // 数量
1142
         germ_number: "", // 数量
1154
         clean: "", // 清洁
1143
         clean: "", // 清洁
1155
         sign_name: "", // 签名
1144
         sign_name: "", // 签名
1156
-        patient_id: ""
1145
+        patient_id: "",
1146
+        equiment_id: ""
1157
       },
1147
       },
1158
       hiddenShow: false,
1148
       hiddenShow: false,
1159
       searchArray: [],
1149
       searchArray: [],
1438
     },
1428
     },
1439
     handleSizeChange(limit) {
1429
     handleSizeChange(limit) {
1440
       this.limit = limit;
1430
       this.limit = limit;
1441
-      this.queryInfo();
1431
+      //this.queryInfo();
1432
+      this.getUserForm(this.value);
1442
     },
1433
     },
1443
     handleCurrentChange(page) {
1434
     handleCurrentChange(page) {
1444
       this.page = page;
1435
       this.page = page;
1445
-      this.queryInfo();
1436
+      // this.queryInfo();
1437
+      this.getUserForm(this.value);
1446
     },
1438
     },
1447
     getTime(time) {
1439
     getTime(time) {
1448
       return uParseTime(time, "{y}-{m}-{d}");
1440
       return uParseTime(time, "{y}-{m}-{d}");
1474
       EditUser(id, patientid).then(response => {
1466
       EditUser(id, patientid).then(response => {
1475
         if (response.data.state === 1) {
1467
         if (response.data.state === 1) {
1476
           var device = response.data.data.device;
1468
           var device = response.data.data.device;
1477
-          // console.log('device', device)
1469
+          console.log("device", device);
1478
           var patients = response.data.data.patients;
1470
           var patients = response.data.data.patients;
1479
           // console.log('patients', patients)
1471
           // console.log('patients', patients)
1480
           // eslint-disable-next-line no-sequences
1472
           // eslint-disable-next-line no-sequences
1485
             ));
1477
             ));
1486
           this.userform.patient_id = device.patient_id;
1478
           this.userform.patient_id = device.patient_id;
1487
           this.userform.classtype = device.class;
1479
           this.userform.classtype = device.class;
1488
-          this.userform.zone = device.zone;
1480
+          this.userform.zone = device.zone_id;
1489
           this.userform.bed_number = device.bed_number;
1481
           this.userform.bed_number = device.bed_number;
1490
           this.userform.contagion = device.contagion;
1482
           this.userform.contagion = device.contagion;
1491
           this.userform.patient_name = patients.name;
1483
           this.userform.patient_name = patients.name;
1531
           // )
1523
           // )
1532
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1524
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1533
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1525
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1526
+          this.userform.equiment_id = device.equiment_id;
1534
           if (device.dialysis_checked === 1) {
1527
           if (device.dialysis_checked === 1) {
1535
             this.userform.dialysis_checked = true;
1528
             this.userform.dialysis_checked = true;
1536
           }
1529
           }
1701
       ).then(response => {
1694
       ).then(response => {
1702
         if (response.data.state === 1) {
1695
         if (response.data.state === 1) {
1703
           var information = response.data.data.infor;
1696
           var information = response.data.data.infor;
1697
+          console.log("information", information);
1704
           for (let index = 0; index < information.length; index++) {
1698
           for (let index = 0; index < information.length; index++) {
1705
             if (information[index].class === 0) {
1699
             if (information[index].class === 0) {
1706
               information[index].class = "";
1700
               information[index].class = "";
2231
             // this.form.bed = information[index].bed_number
2225
             // this.form.bed = information[index].bed_number
2232
           }
2226
           }
2233
           var total = response.data.data.total;
2227
           var total = response.data.data.total;
2228
+          console.log("total", total);
2234
           this.tableData = information;
2229
           this.tableData = information;
2235
           this.total = total;
2230
           this.total = total;
2236
         }
2231
         }
2242
           var addmacher = response.data.data.addmacher;
2237
           var addmacher = response.data.data.addmacher;
2243
           console.log("addmacher=============", addmacher);
2238
           console.log("addmacher=============", addmacher);
2244
           var number = response.data.data.number;
2239
           var number = response.data.data.number;
2245
-          // console.log('number', number)
2246
-          this.form.zone = addmacher.zone_id;
2240
+          console.log("number", number);
2241
+          //改动
2242
+          this.form.zone = number[0].zone_id;
2247
           this.form.bed = addmacher.bed_id;
2243
           this.form.bed = addmacher.bed_id;
2248
 
2244
 
2249
           var bed = [{ id: 0, number: "全部" }];
2245
           var bed = [{ id: 0, number: "全部" }];
2360
       console.log("newvalue是什么", newvalue);
2356
       console.log("newvalue是什么", newvalue);
2361
       this.getUserForm(newvalue);
2357
       this.getUserForm(newvalue);
2362
       this.getBedForm(newvalue);
2358
       this.getBedForm(newvalue);
2359
+      this.value = newvalue;
2363
     }
2360
     }
2364
   }
2361
   }
2365
 };
2362
 };

+ 14 - 11
src/xt_pages/management/home.vue View File

493
                                         </el-select>
493
                                         </el-select>
494
                                      </el-form-item>
494
                                      </el-form-item>
495
                                 </el-col>
495
                                 </el-col>
496
-                                 <el-col :span="7">      
496
+                                 <el-col :span="7">
497
                                     <el-form-item label="使用年限(年):">
497
                                     <el-form-item label="使用年限(年):">
498
                                       <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
498
                                       <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
499
                                     </el-form-item>
499
                                     </el-form-item>
2685
                 this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2685
                 this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2686
                 break
2686
                 break
2687
               }
2687
               }
2688
-              
2688
+
2689
             }
2689
             }
2690
             // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2690
             // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2691
           }
2691
           }
3004
                       //   this.$forceUpdate()
3004
                       //   this.$forceUpdate()
3005
                     }
3005
                     }
3006
                   }
3006
                   }
3007
-  
3007
+
3008
                   this.tableDatatwo[i] = addmacher
3008
                   this.tableDatatwo[i] = addmacher
3009
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3009
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3010
                 }
3010
                 }
3013
               // this.getAllSubregion()
3013
               // this.getAllSubregion()
3014
               this.$refs.singleTable.setCurrentRow(addmacher)
3014
               this.$refs.singleTable.setCurrentRow(addmacher)
3015
               this.$forceUpdate()
3015
               this.$forceUpdate()
3016
+            }else{
3017
+             this.$message.error("修改失败");
3016
             }
3018
             }
3017
           })
3019
           })
3018
         })
3020
         })
3059
                       //   this.$forceUpdate()
3061
                       //   this.$forceUpdate()
3060
                       }
3062
                       }
3061
                     }
3063
                     }
3062
-  
3064
+
3063
                     this.tableDatatwo[i] = addmacher
3065
                     this.tableDatatwo[i] = addmacher
3064
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3066
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3065
                   }
3067
                   }
3103
                       //   this.$forceUpdate()
3105
                       //   this.$forceUpdate()
3104
                     }
3106
                     }
3105
                   }
3107
                   }
3106
-  
3108
+
3107
                   this.tableDatatwo[i] = addmacher
3109
                   this.tableDatatwo[i] = addmacher
3108
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3110
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3109
                 }
3111
                 }
3449
             this.machineform.machine_disinfectant = plan.machine_disinfectant
3451
             this.machineform.machine_disinfectant = plan.machine_disinfectant
3450
             this.machineform.disinfectant_way = plan.disinfectan_way
3452
             this.machineform.disinfectant_way = plan.disinfectan_way
3451
             this.machineform.disinfectant = plan.disinfectant
3453
             this.machineform.disinfectant = plan.disinfectant
3452
-            this.getPatientDetail(this.unitType, this.$route.query.bedid)
3454
+           // this.getPatientDetail(this.unitType, this.$route.query.bedid)
3453
           }
3455
           }
3454
         })
3456
         })
3455
       },
3457
       },
3457
         var devicetype = this.machineform.device_type
3459
         var devicetype = this.machineform.device_type
3458
         var devicetypes = parseInt(devicetype)
3460
         var devicetypes = parseInt(devicetype)
3459
         this.machineform.device_type = devicetypes
3461
         this.machineform.device_type = devicetypes
3460
-  
3462
+
3461
         if (this.machineform.disinfec_time === '') {
3463
         if (this.machineform.disinfec_time === '') {
3462
           this.machineform.disinfec_time = ''
3464
           this.machineform.disinfec_time = ''
3463
         }
3465
         }
3466
           var disinfectime = parseInt(disinfectimes)
3468
           var disinfectime = parseInt(disinfectimes)
3467
           this.machineform.disinfec_time = disinfectime
3469
           this.machineform.disinfec_time = disinfectime
3468
         }
3470
         }
3469
-  
3471
+
3470
         var times = this.machineform.time
3472
         var times = this.machineform.time
3471
         var time = parseInt(times)
3473
         var time = parseInt(times)
3472
         this.machineform.time = time
3474
         this.machineform.time = time
3874
         getUserRegister(id).then(response => {
3876
         getUserRegister(id).then(response => {
3875
           if (response.data.state === 1) {
3877
           if (response.data.state === 1) {
3876
             var information = response.data.data.information
3878
             var information = response.data.data.information
3877
-            // console.log('产讯使用登记', information)
3879
+             console.log('产讯使用登记', information)
3878
             // eslint-disable-next-line no-unused-vars
3880
             // eslint-disable-next-line no-unused-vars
3879
             var role = response.data.data.role
3881
             var role = response.data.data.role
3880
             // console.log('role', role)
3882
             // console.log('role', role)
3936
             this.userform.machine_run = information.machine_run
3938
             this.userform.machine_run = information.machine_run
3937
             this.userform.fluid_path = information.fluid_path
3939
             this.userform.fluid_path = information.fluid_path
3938
             this.userform.disinfectant = information.disinfectant
3940
             this.userform.disinfectant = information.disinfectant
3939
-            this.userform.disinfectant = information.disinfection_status
3941
+            this.userform.disinfection_status = information.disinfection_status
3940
             this.userform.disinfection_residue = information.disinfection_residue
3942
             this.userform.disinfection_residue = information.disinfection_residue
3941
             this.userform.longtime = information.long_time
3943
             this.userform.longtime = information.long_time
3942
             this.userform.starttime = this.updateTimes(information.disinfec_startime)
3944
             this.userform.starttime = this.updateTimes(information.disinfec_startime)
4386
             }
4388
             }
4387
 
4389
 
4388
             var timeDataThree = response.data.data.timeDataThree
4390
             var timeDataThree = response.data.data.timeDataThree
4389
-            console.log('timeDataThree', timeDataThree)
4391
+            //console.log('timeDataThree', timeDataThree)
4390
             if (timeDataThree.length === 0) {
4392
             if (timeDataThree.length === 0) {
4391
               this.warnShowThree = true
4393
               this.warnShowThree = true
4392
             }
4394
             }
4410
       getAllMode() {
4412
       getAllMode() {
4411
         getAllMode().then(response => {
4413
         getAllMode().then(response => {
4412
           var mode = response.data.data.mode
4414
           var mode = response.data.data.mode
4415
+
4413
           this.deviceMode = mode
4416
           this.deviceMode = mode
4414
         })
4417
         })
4415
       },
4418
       },