|
@@ -256,16 +256,23 @@
|
256
|
256
|
</el-form-item>
|
257
|
257
|
</el-col>
|
258
|
258
|
<el-col :span="8">
|
259
|
|
- <el-form-item label="患者:">
|
260
|
|
- <el-select style="width:150px" v-model="userform.patient_name">
|
261
|
|
- <el-option
|
262
|
|
- v-for="item in this.patientName"
|
263
|
|
- :key="item.patient_id"
|
264
|
|
- :label="item.name"
|
265
|
|
- :value="item.patient_id"
|
266
|
|
- ></el-option>
|
267
|
|
- </el-select>
|
268
|
|
- </el-form-item>
|
|
259
|
+ <el-form-item label="患者:">
|
|
260
|
+ <el-autocomplete
|
|
261
|
+ popper-class="my-autocomplete"
|
|
262
|
+ v-model="userform.patient_name"
|
|
263
|
+ :fetch-suggestions="querySearchAsync"
|
|
264
|
+ placeholder="请输入内容"
|
|
265
|
+ @select="handleSelect">
|
|
266
|
+ <i
|
|
267
|
+ class="el-icon-search el-input__icon"
|
|
268
|
+ slot="suffix"
|
|
269
|
+ >
|
|
270
|
+ </i>
|
|
271
|
+ <template slot-scope="{ item }">
|
|
272
|
+ <span class="addr">{{ item.name }}</span>
|
|
273
|
+ </template>
|
|
274
|
+ </el-autocomplete>
|
|
275
|
+ </el-form-item>
|
269
|
276
|
<!-- <el-autocomplete
|
270
|
277
|
style="margin:16px 5px"
|
271
|
278
|
popper-class="my-autocomplete"
|
|
@@ -888,7 +895,8 @@ export default {
|
888
|
895
|
germ_name: '', // 名称
|
889
|
896
|
germ_number: '', // 数量
|
890
|
897
|
clean: '', // 清洁
|
891
|
|
- sign_name: '' // 签名
|
|
898
|
+ sign_name: '', // 签名
|
|
899
|
+ patient_id:''
|
892
|
900
|
},
|
893
|
901
|
hiddenShow: false,
|
894
|
902
|
searchArray: [],
|
|
@@ -1043,6 +1051,12 @@ export default {
|
1043
|
1051
|
if (information[index].disinfection === 3) {
|
1044
|
1052
|
information[index].disinfection = '消毒未完成'
|
1045
|
1053
|
}
|
|
1054
|
+
|
|
1055
|
+ // eslint-disable-next-line eqeqeq
|
|
1056
|
+ if (information[index].dialysis_concentration == 0) {
|
|
1057
|
+ information[index].dialysis_concentration = ''
|
|
1058
|
+ }
|
|
1059
|
+
|
1046
|
1060
|
if (information[index].dialysis_concentration === 1) {
|
1047
|
1061
|
information[index].dialysis_concentration = '达标'
|
1048
|
1062
|
}
|
|
@@ -1173,6 +1187,7 @@ export default {
|
1173
|
1187
|
EditUser(id, patientid).then(response => {
|
1174
|
1188
|
if (response.data.state === 1) {
|
1175
|
1189
|
var device = response.data.data.device
|
|
1190
|
+ console.log("device=======",device)
|
1176
|
1191
|
|
1177
|
1192
|
var patients = response.data.data.patients
|
1178
|
1193
|
console.log('patients', patients);
|
|
@@ -1181,6 +1196,7 @@ export default {
|
1181
|
1196
|
device.date,
|
1182
|
1197
|
'{y}-{m}-{d}'
|
1183
|
1198
|
))
|
|
1199
|
+ this.userform.patient_id = device.patient_id
|
1184
|
1200
|
this.userform.classtype = device.class
|
1185
|
1201
|
this.userform.zone = device.zone
|
1186
|
1202
|
this.userform.bed_number = device.bed_number
|
|
@@ -1317,6 +1333,7 @@ export default {
|
1317
|
1333
|
this.dialogVisible = false
|
1318
|
1334
|
this.$message.success('修改成功')
|
1319
|
1335
|
this.getInformationData()
|
|
1336
|
+ this.$forceUpdate()
|
1320
|
1337
|
}
|
1321
|
1338
|
})
|
1322
|
1339
|
}
|
|
@@ -1403,6 +1420,10 @@ export default {
|
1403
|
1420
|
information[index].dialysis_mode = 'HDF后置换'
|
1404
|
1421
|
}
|
1405
|
1422
|
|
|
1423
|
+ if (information[index].move === 0) {
|
|
1424
|
+ information[index].move = ''
|
|
1425
|
+ }
|
|
1426
|
+
|
1406
|
1427
|
if (information[index].move === 1) {
|
1407
|
1428
|
information[index].move = '正常'
|
1408
|
1429
|
}
|
|
@@ -1424,7 +1445,6 @@ export default {
|
1424
|
1445
|
if (information[index].disinfectant_type === 0) {
|
1425
|
1446
|
information[index].disinfectant_type = '/'
|
1426
|
1447
|
}
|
1427
|
|
-
|
1428
|
1448
|
if (information[index].disinfectant_type === 1) {
|
1429
|
1449
|
information[index].disinfectant_type = '0.22%季铵盐'
|
1430
|
1450
|
}
|
|
@@ -1432,12 +1452,15 @@ export default {
|
1432
|
1452
|
information[index].disinfectant_type = '500mg/l含氯消毒剂'
|
1433
|
1453
|
}
|
1434
|
1454
|
if (information[index].disinfectant_type === 3) {
|
1435
|
|
- information[idnex].disinfectant_type = '1000mg/l含氯消毒剂'
|
|
1455
|
+ information[index].disinfectant_type = '1000mg/l含氯消毒剂'
|
1436
|
1456
|
}
|
1437
|
1457
|
if (information[index].disinfectant_type === 4) {
|
1438
|
1458
|
information[index].disinfectant_type = '1500mg/l含氯消毒剂'
|
1439
|
1459
|
}
|
1440
|
1460
|
|
|
1461
|
+ if (information[index].disinfection === 0) {
|
|
1462
|
+ information[index].disinfection = ''
|
|
1463
|
+ }
|
1441
|
1464
|
if (information[index].disinfection === 1) {
|
1442
|
1465
|
information[index].disinfection = '已消毒'
|
1443
|
1466
|
}
|
|
@@ -1447,6 +1470,11 @@ export default {
|
1447
|
1470
|
if (information[index].disinfection === 3) {
|
1448
|
1471
|
information[index].disinfection = '消毒未完成'
|
1449
|
1472
|
}
|
|
1473
|
+
|
|
1474
|
+ if (information[index].dialysis_concentration === 0) {
|
|
1475
|
+ information[index].dialysis_concentration = ''
|
|
1476
|
+ }
|
|
1477
|
+
|
1450
|
1478
|
if (information[index].dialysis_concentration === 1) {
|
1451
|
1479
|
information[index].dialysis_concentration = '达标'
|
1452
|
1480
|
}
|
|
@@ -1519,6 +1547,11 @@ export default {
|
1519
|
1547
|
if (information[index].disinfection_status === 3) {
|
1520
|
1548
|
information[index].disinfection_status = '消毒未完成'
|
1521
|
1549
|
}
|
|
1550
|
+
|
|
1551
|
+ if (information[index].disinfection_residue === 0) {
|
|
1552
|
+ information[index].disinfection_residue = ''
|
|
1553
|
+ }
|
|
1554
|
+
|
1522
|
1555
|
if (information[index].disinfection_residue === 1) {
|
1523
|
1556
|
information[index].disinfection_residue = '有残留'
|
1524
|
1557
|
}
|
|
@@ -1830,12 +1863,46 @@ export default {
|
1830
|
1863
|
if (response.data.state === 1) {
|
1831
|
1864
|
var addmacher = response.data.data.addmacher
|
1832
|
1865
|
var number = response.data.data.number
|
|
1866
|
+ console.log('number-------', number)
|
1833
|
1867
|
this.form.zone = addmacher.zone_id
|
1834
|
|
- this.form.bed = addmacher.bed_number
|
1835
|
|
- this.bedNumberTwo = number
|
|
1868
|
+ this.form.bed = addmacher.bed_id
|
|
1869
|
+
|
|
1870
|
+ var bed = [{ id: 0, number: '全部' }]
|
|
1871
|
+ for (let i = 0; i < number.length; i++) {
|
|
1872
|
+ const item = number[i]
|
|
1873
|
+ bed.push({ id: item.id, number: item.number })
|
|
1874
|
+ }
|
|
1875
|
+ this.bedNumberTwo = bed
|
1836
|
1876
|
}
|
1837
|
1877
|
})
|
1838
|
|
- }
|
|
1878
|
+ },
|
|
1879
|
+ querySearchAsync(keyword, cb) {
|
|
1880
|
+ let key = ''
|
|
1881
|
+ if (keyword != undefined) {
|
|
1882
|
+ key = keyword
|
|
1883
|
+ }
|
|
1884
|
+ let searchArray = []
|
|
1885
|
+ PostSearch(key).then(response => {
|
|
1886
|
+ if (response.data.state == 1) {
|
|
1887
|
+ searchArray = response.data.data.patient
|
|
1888
|
+ // console.log("ser=================",searchArray)
|
|
1889
|
+
|
|
1890
|
+ cb(searchArray)
|
|
1891
|
+ }
|
|
1892
|
+ })
|
|
1893
|
+
|
|
1894
|
+ return searchArray
|
|
1895
|
+ },
|
|
1896
|
+ createFilter(queryString) {
|
|
1897
|
+ return (searchArray) => {
|
|
1898
|
+ return (searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
|
1899
|
+ };
|
|
1900
|
+ },
|
|
1901
|
+ handleSelect(item) {
|
|
1902
|
+ console.log('item====', item)
|
|
1903
|
+ this.userform.patient_id = item.id
|
|
1904
|
+ this.userform.patient_name = item.name
|
|
1905
|
+ },
|
1839
|
1906
|
},
|
1840
|
1907
|
created() {
|
1841
|
1908
|
this.getAllSubregion()
|