XMLWAN 4 years ago
parent
commit
5f8fb34878

+ 12 - 12
package-lock.json View File

@@ -477,8 +477,8 @@
477 477
     },
478 478
     "async-validator": {
479 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 482
       "requires": {
483 483
         "babel-runtime": "6.x"
484 484
       }
@@ -3187,8 +3187,8 @@
3187 3187
     },
3188 3188
     "deepmerge": {
3189 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 3193
     "define-properties": {
3194 3194
       "version": "1.1.3",
@@ -3515,9 +3515,9 @@
3515 3515
       "dev": true
3516 3516
     },
3517 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 3521
       "requires": {
3522 3522
         "async-validator": "~1.8.1",
3523 3523
         "babel-helper-vue-jsx-merge-props": "^2.0.0",
@@ -7943,7 +7943,7 @@
7943 7943
     },
7944 7944
     "normalize-wheel": {
7945 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 7947
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7948 7948
     },
7949 7949
     "normalize.css": {
@@ -11900,8 +11900,8 @@
11900 11900
     },
11901 11901
     "resize-observer-polyfill": {
11902 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 11906
     "resolve": {
11907 11907
       "version": "1.10.0",
@@ -13556,8 +13556,8 @@
13556 13556
     },
13557 13557
     "throttle-debounce": {
13558 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 13562
     "through": {
13563 13563
       "version": "2.3.8",

+ 1 - 1
package.json View File

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

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

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

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

@@ -6,11 +6,11 @@
6 6
       width="95%"
7 7
       center
8 8
     >
9
-      <el-form style="height:100%">
9
+      <el-form style="height: 100%;">
10 10
         <el-row :gutter="20">
11 11
           <el-col :span="4">
12 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 14
                 <el-option
15 15
                   v-for="item in this.DeviceType"
16 16
                   :key="item.id"
@@ -22,7 +22,7 @@
22 22
           </el-col>
23 23
           <el-col :span="4">
24 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 26
                 <el-option
27 27
                   v-for="item in this.Numbers"
28 28
                   :key="item.id"
@@ -34,7 +34,7 @@
34 34
           </el-col>
35 35
           <el-col :span="4">
36 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 38
                 <el-option
39 39
                   v-for="item in this.EquitmentType"
40 40
                   :key="item.id"
@@ -46,7 +46,7 @@
46 46
           </el-col>
47 47
           <el-col :span="4">
48 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 50
                 <el-option
51 51
                   v-for="item in this.EquitmentName"
52 52
                   :key="item.id"
@@ -58,7 +58,7 @@
58 58
           </el-col>
59 59
           <el-col :span="4">
60 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 62
                 <el-option
63 63
                   v-for="item in this.userYear"
64 64
                   :key="item.id"
@@ -122,8 +122,8 @@
122 122
         <el-table
123 123
           :data="tableData"
124 124
           border
125
-          style="width:100%"
126
-          height="80%"
125
+          style="width: 100%;"
126
+          height="330"
127 127
           :row-style="{ color: '#303133' }"
128 128
           :header-cell-style="{
129 129
             backgroundColor: 'rgb(245, 247, 250)',
@@ -184,7 +184,7 @@
184 184
             width="100"
185 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 188
           </el-table-column>
189 189
           <el-table-column
190 190
             prop="address"
@@ -328,10 +328,7 @@ export default {
328 328
       DeviceType: [{ id: 0, name: "不限" }],
329 329
       Numbers: [{ id: 0, number: "不限" }],
330 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 334
   methods: {
@@ -384,7 +381,7 @@ export default {
384 381
       getComprehensive(params).then(response => {
385 382
         if (response.data.state === 1) {
386 383
           var macher = response.data.data.macher;
387
-          console.log("设备型号5555", macher);
384
+
388 385
           for (let index = 0; index < macher.length; index++) {
389 386
             if (macher[index].device_type === 1) {
390 387
               macher[index].device_type = "透析机";
@@ -428,7 +425,7 @@ export default {
428 425
       getTotalCount().then(response => {
429 426
         if (response.data.state === 1) {
430 427
           var total = response.data.data.total;
431
-          // console.log('total ========', total)
428
+
432 429
           this.failure_times = total;
433 430
         }
434 431
       });

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

@@ -1002,6 +1002,7 @@ export default {
1002 1002
       limit: 10,
1003 1003
       page: 1,
1004 1004
       total: 0,
1005
+      value: "",
1005 1006
       classType: [
1006 1007
         { id: 1, name: "上午" },
1007 1008
         { id: 2, name: "下午" },
@@ -1066,14 +1067,8 @@ export default {
1066 1067
         { id: 8, name: "50%冰醋酸" },
1067 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 1072
       faultPhase: [
1078 1073
         { id: 1, name: "开机启动" },
1079 1074
         { id: 2, name: "自检" },
@@ -1081,14 +1076,8 @@ export default {
1081 1076
         { id: 4, name: "治疗" },
1082 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 1081
       disinfection: [
1093 1082
         { id: 1, name: "已消毒" },
1094 1083
         { id: 2, name: "未消毒" },
@@ -1153,7 +1142,8 @@ export default {
1153 1142
         germ_number: "", // 数量
1154 1143
         clean: "", // 清洁
1155 1144
         sign_name: "", // 签名
1156
-        patient_id: ""
1145
+        patient_id: "",
1146
+        equiment_id: ""
1157 1147
       },
1158 1148
       hiddenShow: false,
1159 1149
       searchArray: [],
@@ -1438,11 +1428,13 @@ export default {
1438 1428
     },
1439 1429
     handleSizeChange(limit) {
1440 1430
       this.limit = limit;
1441
-      this.queryInfo();
1431
+      //this.queryInfo();
1432
+      this.getUserForm(this.value);
1442 1433
     },
1443 1434
     handleCurrentChange(page) {
1444 1435
       this.page = page;
1445
-      this.queryInfo();
1436
+      // this.queryInfo();
1437
+      this.getUserForm(this.value);
1446 1438
     },
1447 1439
     getTime(time) {
1448 1440
       return uParseTime(time, "{y}-{m}-{d}");
@@ -1474,7 +1466,7 @@ export default {
1474 1466
       EditUser(id, patientid).then(response => {
1475 1467
         if (response.data.state === 1) {
1476 1468
           var device = response.data.data.device;
1477
-          // console.log('device', device)
1469
+          console.log("device", device);
1478 1470
           var patients = response.data.data.patients;
1479 1471
           // console.log('patients', patients)
1480 1472
           // eslint-disable-next-line no-sequences
@@ -1485,7 +1477,7 @@ export default {
1485 1477
             ));
1486 1478
           this.userform.patient_id = device.patient_id;
1487 1479
           this.userform.classtype = device.class;
1488
-          this.userform.zone = device.zone;
1480
+          this.userform.zone = device.zone_id;
1489 1481
           this.userform.bed_number = device.bed_number;
1490 1482
           this.userform.contagion = device.contagion;
1491 1483
           this.userform.patient_name = patients.name;
@@ -1531,6 +1523,7 @@ export default {
1531 1523
           // )
1532 1524
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1533 1525
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1526
+          this.userform.equiment_id = device.equiment_id;
1534 1527
           if (device.dialysis_checked === 1) {
1535 1528
             this.userform.dialysis_checked = true;
1536 1529
           }
@@ -1701,6 +1694,7 @@ export default {
1701 1694
       ).then(response => {
1702 1695
         if (response.data.state === 1) {
1703 1696
           var information = response.data.data.infor;
1697
+          console.log("information", information);
1704 1698
           for (let index = 0; index < information.length; index++) {
1705 1699
             if (information[index].class === 0) {
1706 1700
               information[index].class = "";
@@ -2231,6 +2225,7 @@ export default {
2231 2225
             // this.form.bed = information[index].bed_number
2232 2226
           }
2233 2227
           var total = response.data.data.total;
2228
+          console.log("total", total);
2234 2229
           this.tableData = information;
2235 2230
           this.total = total;
2236 2231
         }
@@ -2242,8 +2237,9 @@ export default {
2242 2237
           var addmacher = response.data.data.addmacher;
2243 2238
           console.log("addmacher=============", addmacher);
2244 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 2243
           this.form.bed = addmacher.bed_id;
2248 2244
 
2249 2245
           var bed = [{ id: 0, number: "全部" }];
@@ -2360,6 +2356,7 @@ export default {
2360 2356
       console.log("newvalue是什么", newvalue);
2361 2357
       this.getUserForm(newvalue);
2362 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,7 +493,7 @@
493 493
                                         </el-select>
494 494
                                      </el-form-item>
495 495
                                 </el-col>
496
-                                 <el-col :span="7">      
496
+                                 <el-col :span="7">
497 497
                                     <el-form-item label="使用年限(年):">
498 498
                                       <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
499 499
                                     </el-form-item>
@@ -2685,7 +2685,7 @@ export default {
2685 2685
                 this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2686 2686
                 break
2687 2687
               }
2688
-              
2688
+
2689 2689
             }
2690 2690
             // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2691 2691
           }
@@ -3004,7 +3004,7 @@ export default {
3004 3004
                       //   this.$forceUpdate()
3005 3005
                     }
3006 3006
                   }
3007
-  
3007
+
3008 3008
                   this.tableDatatwo[i] = addmacher
3009 3009
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3010 3010
                 }
@@ -3013,6 +3013,8 @@ export default {
3013 3013
               // this.getAllSubregion()
3014 3014
               this.$refs.singleTable.setCurrentRow(addmacher)
3015 3015
               this.$forceUpdate()
3016
+            }else{
3017
+             this.$message.error("修改失败");
3016 3018
             }
3017 3019
           })
3018 3020
         })
@@ -3059,7 +3061,7 @@ export default {
3059 3061
                       //   this.$forceUpdate()
3060 3062
                       }
3061 3063
                     }
3062
-  
3064
+
3063 3065
                     this.tableDatatwo[i] = addmacher
3064 3066
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3065 3067
                   }
@@ -3103,7 +3105,7 @@ export default {
3103 3105
                       //   this.$forceUpdate()
3104 3106
                     }
3105 3107
                   }
3106
-  
3108
+
3107 3109
                   this.tableDatatwo[i] = addmacher
3108 3110
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3109 3111
                 }
@@ -3449,7 +3451,7 @@ export default {
3449 3451
             this.machineform.machine_disinfectant = plan.machine_disinfectant
3450 3452
             this.machineform.disinfectant_way = plan.disinfectan_way
3451 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,7 +3459,7 @@ export default {
3457 3459
         var devicetype = this.machineform.device_type
3458 3460
         var devicetypes = parseInt(devicetype)
3459 3461
         this.machineform.device_type = devicetypes
3460
-  
3462
+
3461 3463
         if (this.machineform.disinfec_time === '') {
3462 3464
           this.machineform.disinfec_time = ''
3463 3465
         }
@@ -3466,7 +3468,7 @@ export default {
3466 3468
           var disinfectime = parseInt(disinfectimes)
3467 3469
           this.machineform.disinfec_time = disinfectime
3468 3470
         }
3469
-  
3471
+
3470 3472
         var times = this.machineform.time
3471 3473
         var time = parseInt(times)
3472 3474
         this.machineform.time = time
@@ -3874,7 +3876,7 @@ export default {
3874 3876
         getUserRegister(id).then(response => {
3875 3877
           if (response.data.state === 1) {
3876 3878
             var information = response.data.data.information
3877
-            // console.log('产讯使用登记', information)
3879
+             console.log('产讯使用登记', information)
3878 3880
             // eslint-disable-next-line no-unused-vars
3879 3881
             var role = response.data.data.role
3880 3882
             // console.log('role', role)
@@ -3936,7 +3938,7 @@ export default {
3936 3938
             this.userform.machine_run = information.machine_run
3937 3939
             this.userform.fluid_path = information.fluid_path
3938 3940
             this.userform.disinfectant = information.disinfectant
3939
-            this.userform.disinfectant = information.disinfection_status
3941
+            this.userform.disinfection_status = information.disinfection_status
3940 3942
             this.userform.disinfection_residue = information.disinfection_residue
3941 3943
             this.userform.longtime = information.long_time
3942 3944
             this.userform.starttime = this.updateTimes(information.disinfec_startime)
@@ -4386,7 +4388,7 @@ export default {
4386 4388
             }
4387 4389
 
4388 4390
             var timeDataThree = response.data.data.timeDataThree
4389
-            console.log('timeDataThree', timeDataThree)
4391
+            //console.log('timeDataThree', timeDataThree)
4390 4392
             if (timeDataThree.length === 0) {
4391 4393
               this.warnShowThree = true
4392 4394
             }
@@ -4410,6 +4412,7 @@ export default {
4410 4412
       getAllMode() {
4411 4413
         getAllMode().then(response => {
4412 4414
           var mode = response.data.data.mode
4415
+
4413 4416
           this.deviceMode = mode
4414 4417
         })
4415 4418
       },