|
@@ -119,7 +119,7 @@
|
119
|
119
|
size="mini"
|
120
|
120
|
type="primary"
|
121
|
121
|
icon="el-icon-delete"
|
122
|
|
- @click="BatchDelete(scope.row, scope.$index)"
|
|
122
|
+ @click="DeleteCultrues(scope.row.id, scope.$index)"
|
123
|
123
|
></el-button>
|
124
|
124
|
</el-tooltip>
|
125
|
125
|
</template>
|
|
@@ -185,7 +185,7 @@
|
185
|
185
|
size="mini"
|
186
|
186
|
type="primary"
|
187
|
187
|
icon="el-icon-delete"
|
188
|
|
- @click="BatchDeleteOne(scope.row, scope.$index)"
|
|
188
|
+ @click="DeleteDialystates(scope.row.id, scope.$index)"
|
189
|
189
|
></el-button>
|
190
|
190
|
</el-tooltip>
|
191
|
191
|
</template>
|
|
@@ -227,25 +227,25 @@
|
227
|
227
|
<template slot-scope="scope">{{getTime(scope.row.date_reportc)}}</template>
|
228
|
228
|
</el-table-column>
|
229
|
229
|
<el-table-column prop="address" label="检测结果" width="80" align="center">
|
230
|
|
- <el-table-column prop="address" label="实际Na+(mmol/L)" width="80" align="center">
|
|
230
|
+ <el-table-column prop="address" label="实际Na⁺(mmol/L)" width="80" align="center">
|
231
|
231
|
<template slot-scope="scope">{{scope.row.actual_na}}</template>
|
232
|
232
|
</el-table-column>
|
233
|
|
- <el-table-column prop="address" label="配方Na+(mmol/L)" width="80" align="center">
|
|
233
|
+ <el-table-column prop="address" label="配方Na⁺(mmol/L)" width="90" align="center">
|
234
|
234
|
<template slot-scope="scope">{{scope.row.actual_pna}}</template>
|
235
|
235
|
</el-table-column>
|
236
|
|
- <el-table-column prop="address" label="K+(mmol/L)" width="80" align="center">
|
|
236
|
+ <el-table-column prop="address" label="K⁺(mmol/L)" width="80" align="center">
|
237
|
237
|
<template slot-scope="scope">{{scope.row.actual_k}}</template>
|
238
|
238
|
</el-table-column>
|
239
|
|
- <el-table-column prop="address" label="Ca2+(mmol/L)" width="80" align="center">
|
|
239
|
+ <el-table-column prop="address" label="Ca2⁺(mmol/L)" width="80" align="center">
|
240
|
240
|
<template slot-scope="scope">{{scope.row.actual_ca}}</template>
|
241
|
241
|
</el-table-column>
|
242
|
|
- <el-table-column prop="address" label="Cl-(mmol/L)" width="80" align="center">
|
|
242
|
+ <el-table-column prop="address" label="Cl¯(mmol/L)" width="80" align="center">
|
243
|
243
|
<template slot-scope="scope">{{scope.row.actual_ci}}</template>
|
244
|
244
|
</el-table-column>
|
245
|
|
- <el-table-column prop="address" label="HCO3-(mmol/L)" width="80" align="center">
|
|
245
|
+ <el-table-column prop="address" label="HCO3¯(mmol/L)" width="80" align="center">
|
246
|
246
|
<template slot-scope="scope">{{scope.row.actual_hco}}</template>
|
247
|
247
|
</el-table-column>
|
248
|
|
- <el-table-column prop="address" label="Mg2+(mmol/L)" width="80" align="center">
|
|
248
|
+ <el-table-column prop="address" label="Mg2⁺(mmol/L)" width="80" align="center">
|
249
|
249
|
<template slot-scope="scope">{{scope.row.actual_mg}}</template>
|
250
|
250
|
</el-table-column>
|
251
|
251
|
<el-table-column prop="address" label="PH(mmol/L)" width="80" align="center">
|
|
@@ -271,7 +271,7 @@
|
271
|
271
|
size="mini"
|
272
|
272
|
type="primary"
|
273
|
273
|
icon="el-icon-delete"
|
274
|
|
- @click="BatchDeleteTwo(scope.row, scope.$index)"
|
|
274
|
+ @click="DeleteIons(scope.row.id, scope.$index)"
|
275
|
275
|
></el-button>
|
276
|
276
|
</el-tooltip>
|
277
|
277
|
</template>
|
|
@@ -558,41 +558,41 @@
|
558
|
558
|
</el-row>
|
559
|
559
|
<el-row>
|
560
|
560
|
<el-col :span="8">
|
561
|
|
- <el-form-item label="实际Na+(mmol/L):">
|
|
561
|
+ <el-form-item label="实际Na⁺(mmol/L):">
|
562
|
562
|
<el-input style="width:100px" v-model="ionForm.actual_na"></el-input>
|
563
|
563
|
</el-form-item>
|
564
|
564
|
</el-col>
|
565
|
565
|
<el-col :span="8">
|
566
|
|
- <el-form-item label="配方Na+(mmol/L):">
|
|
566
|
+ <el-form-item label="配方Na⁺(mmol/L):">
|
567
|
567
|
<el-input style="width:100px" v-model="ionForm.actual_pna"></el-input>
|
568
|
568
|
</el-form-item>
|
569
|
569
|
</el-col>
|
570
|
570
|
<el-col :span="8">
|
571
|
|
- <el-form-item label="K+ (mmol/L):">
|
|
571
|
+ <el-form-item label="K⁺ (mmol/L):">
|
572
|
572
|
<el-input style="width:100px" v-model="ionForm.actual_k"></el-input>
|
573
|
573
|
</el-form-item>
|
574
|
574
|
</el-col>
|
575
|
575
|
</el-row>
|
576
|
576
|
<el-row>
|
577
|
577
|
<el-col :span="8">
|
578
|
|
- <el-form-item label="Ca2+(mmol/L):">
|
|
578
|
+ <el-form-item label="Ca2⁺(mmol/L):">
|
579
|
579
|
<el-input style="width:100px" v-model="ionForm.actual_ca"></el-input>
|
580
|
580
|
</el-form-item>
|
581
|
581
|
</el-col>
|
582
|
582
|
<el-col :span="8">
|
583
|
|
- <el-form-item label="CI-(mmol/L):">
|
|
583
|
+ <el-form-item label="CI¯(mmol/L):">
|
584
|
584
|
<el-input style="width:100px" v-model="ionForm.actual_ci"></el-input>
|
585
|
585
|
</el-form-item>
|
586
|
586
|
</el-col>
|
587
|
587
|
<el-col :span="8">
|
588
|
|
- <el-form-item label="HCO3-(mmol/L):">
|
|
588
|
+ <el-form-item label="HCO3¯(mmol/L):">
|
589
|
589
|
<el-input style="width:100px" v-model="ionForm.actual_hco"></el-input>
|
590
|
590
|
</el-form-item>
|
591
|
591
|
</el-col>
|
592
|
592
|
</el-row>
|
593
|
593
|
<el-row>
|
594
|
594
|
<el-col :span="8">
|
595
|
|
- <el-form-item label="Mg2+(mmol/L):">
|
|
595
|
+ <el-form-item label="Mg2⁺(mmol/L):">
|
596
|
596
|
<el-input style="width:100px" v-model="ionForm.actual_mg"></el-input>
|
597
|
597
|
</el-form-item>
|
598
|
598
|
</el-col>
|
|
@@ -639,7 +639,10 @@ import {
|
639
|
639
|
EditIon,
|
640
|
640
|
UpdateIon,
|
641
|
641
|
DeleteIon,
|
642
|
|
- queryTable
|
|
642
|
+ queryTable,
|
|
643
|
+ DeleteCultrues,
|
|
644
|
+ DeleteDialystates,
|
|
645
|
+ DeleteIons
|
643
|
646
|
} from '@/api/manage'
|
644
|
647
|
import { uParseTime } from '@/utils/tools'
|
645
|
648
|
export default {
|
|
@@ -941,6 +944,9 @@ export default {
|
941
|
944
|
}
|
942
|
945
|
},
|
943
|
946
|
getTime(time) {
|
|
947
|
+ if (time < 0) {
|
|
948
|
+ return ''
|
|
949
|
+ }
|
944
|
950
|
return uParseTime(time, '{y}-{m}-{d}')
|
945
|
951
|
},
|
946
|
952
|
getAllOrganization() {
|
|
@@ -970,11 +976,13 @@ export default {
|
970
|
976
|
EditCulture(id, userid).then(response => {
|
971
|
977
|
if (response.data.state === 1) {
|
972
|
978
|
var culture = response.data.data.culture
|
|
979
|
+
|
973
|
980
|
console.log('禁用', culture)
|
974
|
981
|
var role = response.data.data.role
|
975
|
982
|
console.log('role', role)
|
976
|
983
|
this.form.id = culture.id
|
977
|
|
- this.form.date = uParseTime(culture.speling_date, '{y}-{m}-{d}')
|
|
984
|
+ // eslint-disable-next-line no-undef
|
|
985
|
+ this.form.date = this.getTime(culture.speling_date)
|
978
|
986
|
this.form.specimen = culture.specimen
|
979
|
987
|
|
980
|
988
|
if (this.form.specimen === 0) {
|
|
@@ -1010,10 +1018,7 @@ export default {
|
1010
|
1018
|
this.form.sampling_locationa = culture.sampling_locationa
|
1011
|
1019
|
this.form.detection_unit = culture.detection_unit
|
1012
|
1020
|
this.form.sampler = culture.sampler
|
1013
|
|
- this.form.reporting_date = uParseTime(
|
1014
|
|
- culture.reporting_date,
|
1015
|
|
- '{y}-{m}-{d}'
|
1016
|
|
- )
|
|
1021
|
+ this.form.reporting_date = this.getTime(culture.reporting_date)
|
1017
|
1022
|
this.form.detection_result = culture.detection_result
|
1018
|
1023
|
}
|
1019
|
1024
|
})
|
|
@@ -1068,6 +1073,25 @@ export default {
|
1068
|
1073
|
})
|
1069
|
1074
|
})
|
1070
|
1075
|
},
|
|
1076
|
+ DeleteCultrues(id, index) {
|
|
1077
|
+ this.$confirm(
|
|
1078
|
+ '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
|
|
1079
|
+ '删除提示',
|
|
1080
|
+ {
|
|
1081
|
+ dangerouslyUseHTMLString: true,
|
|
1082
|
+ confirmButtonText: '确定',
|
|
1083
|
+ cancelButtonText: '取消',
|
|
1084
|
+ type: 'warning'
|
|
1085
|
+ }
|
|
1086
|
+ ).then(() => {
|
|
1087
|
+ DeleteCultrues(id, index).then(response => {
|
|
1088
|
+ if (response.data.state === 1) {
|
|
1089
|
+ var msg = response.data.data.msg
|
|
1090
|
+ this.tableData.splice(index, 1)
|
|
1091
|
+ }
|
|
1092
|
+ })
|
|
1093
|
+ })
|
|
1094
|
+ },
|
1071
|
1095
|
EditDialyState(id) {
|
1072
|
1096
|
this.dialogVisibleTwo = true
|
1073
|
1097
|
EditDialyState(id).then(response => {
|
|
@@ -1075,10 +1099,8 @@ export default {
|
1075
|
1099
|
var dialysate = response.data.data.dialysate
|
1076
|
1100
|
console.log('dialysate', dialysate)
|
1077
|
1101
|
this.diaForm.id = dialysate.id
|
1078
|
|
- this.diaForm.sampling_date = uParseTime(
|
1079
|
|
- dialysate.sampling_date,
|
1080
|
|
- '{y}-{m}-{d}'
|
1081
|
|
- )
|
|
1102
|
+ // eslint-disable-next-line no-undef
|
|
1103
|
+ this.diaForm.sampling_date = this.getTime(dialysate.sampling_date)
|
1082
|
1104
|
this.diaForm.specimenb = dialysate.specimenb
|
1083
|
1105
|
if (this.diaForm.specimenb === 0) {
|
1084
|
1106
|
this.disable = false
|
|
@@ -1112,10 +1134,7 @@ export default {
|
1112
|
1134
|
this.diaForm.sampling_locationb = dialysate.sampling_locationb
|
1113
|
1135
|
this.diaForm.detection_unit = dialysate.detection_unit
|
1114
|
1136
|
this.diaForm.samplerb = dialysate.samplerb
|
1115
|
|
- this.diaForm.reporting_dateb = uParseTime(
|
1116
|
|
- dialysate.reporting_dateb,
|
1117
|
|
- '{y}-{m}-{d}'
|
1118
|
|
- )
|
|
1137
|
+ this.diaForm.reporting_dateb = this.getTime(dialysate.reporting_dateb)
|
1119
|
1138
|
this.diaForm.detection_resultb = dialysate.detection_resultb
|
1120
|
1139
|
}
|
1121
|
1140
|
})
|
|
@@ -1170,22 +1189,41 @@ export default {
|
1170
|
1189
|
})
|
1171
|
1190
|
})
|
1172
|
1191
|
},
|
|
1192
|
+ DeleteDialystates(id, index) {
|
|
1193
|
+ this.$confirm(
|
|
1194
|
+ '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
|
|
1195
|
+ '删除提示',
|
|
1196
|
+ {
|
|
1197
|
+ dangerouslyUseHTMLString: true,
|
|
1198
|
+ confirmButtonText: '确定',
|
|
1199
|
+ cancelButtonText: '取消',
|
|
1200
|
+ type: 'warning'
|
|
1201
|
+ }
|
|
1202
|
+ ).then(() => {
|
|
1203
|
+ DeleteDialystates(id, index).then(response => {
|
|
1204
|
+ if (response.data.state === 1) {
|
|
1205
|
+ var msg = response.data.data.msg
|
|
1206
|
+ this.table.splice(index, 1)
|
|
1207
|
+ }
|
|
1208
|
+ })
|
|
1209
|
+ })
|
|
1210
|
+ },
|
|
1211
|
+
|
1173
|
1212
|
EditIon(id) {
|
1174
|
1213
|
this.dialogVisibleThree = true
|
1175
|
1214
|
EditIon(id).then(response => {
|
1176
|
1215
|
if (response.data.state === 1) {
|
1177
|
1216
|
var ion = response.data.data.ion
|
1178
|
1217
|
console.log('ion', ion)
|
1179
|
|
- this.ionForm.dateb = uParseTime(ion.sampling_date, '{y}-{m}-{d}')
|
|
1218
|
+ // eslint-disable-next-line no-undef
|
|
1219
|
+ this.ionForm.dateb = this.getTime(ion.sampling_date)
|
1180
|
1220
|
this.ionForm.samplerc = ion.samplerc
|
1181
|
1221
|
this.ionForm.detection_unit = ion.detection_unit
|
1182
|
1222
|
this.ionForm.samplerc = ion.samplerc
|
1183
|
1223
|
this.ionForm.concentrate_nof = ion.concentrate_nof
|
1184
|
1224
|
this.ionForm.concentrate_nog = ion.concentrate_nog
|
1185
|
|
- this.ionForm.date_reportc = uParseTime(
|
1186
|
|
- ion.date_reportc,
|
1187
|
|
- '{y}-{m}-{d}'
|
1188
|
|
- )
|
|
1225
|
+ // eslint-disable-next-line no-undef
|
|
1226
|
+ this.ionForm.date_reportc = this.getTime(ion.date_reportc)
|
1189
|
1227
|
this.ionForm.id = ion.id
|
1190
|
1228
|
this.ionForm.actual_na = ion.actual_na
|
1191
|
1229
|
this.ionForm.actual_pna = ion.actual_pna
|
|
@@ -1249,6 +1287,25 @@ export default {
|
1249
|
1287
|
})
|
1250
|
1288
|
})
|
1251
|
1289
|
},
|
|
1290
|
+ DeleteIons(id, index) {
|
|
1291
|
+ this.$confirm(
|
|
1292
|
+ '确认要删除所选的吗? <br>删除后,信息将无法恢复',
|
|
1293
|
+ '删除提示',
|
|
1294
|
+ {
|
|
1295
|
+ dangerouslyUseHTMLString: true,
|
|
1296
|
+ confirmButtonText: '确定',
|
|
1297
|
+ cancelButtonText: '取消',
|
|
1298
|
+ type: 'warning'
|
|
1299
|
+ }
|
|
1300
|
+ ).then(() => {
|
|
1301
|
+ DeleteIons(id, index).then(response => {
|
|
1302
|
+ if (response.data.state === 1) {
|
|
1303
|
+ var msg = response.data.data.msg
|
|
1304
|
+ this.tableDatas.splice(index, 1)
|
|
1305
|
+ }
|
|
1306
|
+ })
|
|
1307
|
+ })
|
|
1308
|
+ },
|
1252
|
1309
|
queryTable() {
|
1253
|
1310
|
queryTable(
|
1254
|
1311
|
this.forms.bed,
|
|
@@ -1257,8 +1314,82 @@ export default {
|
1257
|
1314
|
).then(response => {
|
1258
|
1315
|
if (response.data.state === 1) {
|
1259
|
1316
|
var cultures = response.data.data.cultures
|
|
1317
|
+ for (let index = 0; index < cultures.length; index++) {
|
|
1318
|
+ if (cultures[index].specimen === 0) {
|
|
1319
|
+ cultures[index].specimen = ''
|
|
1320
|
+ }
|
|
1321
|
+ if (cultures[index].specimen === 1) {
|
|
1322
|
+ cultures[index].specimen = '透析液'
|
|
1323
|
+ }
|
|
1324
|
+ if (cultures[index].specimen === 2) {
|
|
1325
|
+ cultures[index].specimen = 'A浓缩液'
|
|
1326
|
+ }
|
|
1327
|
+ if (cultures[index].specimen === 3) {
|
|
1328
|
+ cultures[index].specimen = 'B浓缩液'
|
|
1329
|
+ }
|
|
1330
|
+ if (cultures[index].specimen === 4) {
|
|
1331
|
+ cultures[index].specimen = '置换液'
|
|
1332
|
+ }
|
|
1333
|
+ if (cultures[index].specimen === 5) {
|
|
1334
|
+ cultures[index].specimen = '透析用水'
|
|
1335
|
+ }
|
|
1336
|
+
|
|
1337
|
+ if (cultures[index].sampling_locationa === 0) {
|
|
1338
|
+ cultures[index].sampling_locationa = ''
|
|
1339
|
+ }
|
|
1340
|
+
|
|
1341
|
+ if (cultures[index].sampling_locationa === 1) {
|
|
1342
|
+ cultures[index].sampling_locationa = '透析液入口'
|
|
1343
|
+ }
|
|
1344
|
+ if (cultures[index].sampling_locationa === 2) {
|
|
1345
|
+ cultures[index].sampling_locationa = '透析液取样口'
|
|
1346
|
+ }
|
|
1347
|
+ if (cultures[index].sampling_locationa === 3) {
|
|
1348
|
+ cultures[index].sampling_locationa = '置换液出口'
|
|
1349
|
+ }
|
|
1350
|
+ if (cultures[index].sampling_locationa === 4) {
|
|
1351
|
+ cultures[index].sampling_locationa = '透析机反渗水入口'
|
|
1352
|
+ }
|
|
1353
|
+ }
|
1260
|
1354
|
this.tableData = cultures
|
1261
|
1355
|
var dialysate = response.data.data.dialysate
|
|
1356
|
+ for (let index = 0; index < dialyste.length; index++) {
|
|
1357
|
+ if (dialyste[index].specimenb === 0) {
|
|
1358
|
+ dialyste[index].specimenb = ''
|
|
1359
|
+ }
|
|
1360
|
+ if (dialyste[index].specimenb === 1) {
|
|
1361
|
+ dialyste[index].specimenb = '透析液'
|
|
1362
|
+ }
|
|
1363
|
+ if (dialyste[index].specimenb === 2) {
|
|
1364
|
+ dialyste[index].specimenb = 'A浓缩液'
|
|
1365
|
+ }
|
|
1366
|
+ if (dialyste[index].specimenb === 3) {
|
|
1367
|
+ dialyste[index].specimenb = 'B浓缩液'
|
|
1368
|
+ }
|
|
1369
|
+ if (dialyste[index].specimenb === 4) {
|
|
1370
|
+ dialyste[index].specimenb = '置换液'
|
|
1371
|
+ }
|
|
1372
|
+ if (dialyste[index].specimenb === 5) {
|
|
1373
|
+ dialyste[index].specimenb = '透析用水'
|
|
1374
|
+ }
|
|
1375
|
+
|
|
1376
|
+ if (dialyste[index].sampling_locationb === 0) {
|
|
1377
|
+ dialyste[index].sampling_locationb = ''
|
|
1378
|
+ }
|
|
1379
|
+
|
|
1380
|
+ if (dialyste[index].sampling_locationb === 1) {
|
|
1381
|
+ dialyste[index].sampling_locationb = '透析液入口'
|
|
1382
|
+ }
|
|
1383
|
+ if (dialyste[index].sampling_locationb === 2) {
|
|
1384
|
+ dialyste[index].sampling_locationb = '透析液取样口'
|
|
1385
|
+ }
|
|
1386
|
+ if (dialyste[index].sampling_locationb === 3) {
|
|
1387
|
+ dialyste[index].sampling_locationb = '置换液出口'
|
|
1388
|
+ }
|
|
1389
|
+ if (dialyste[index].sampling_locationb === 4) {
|
|
1390
|
+ dialyste[index].sampling_locationb = '透析机反渗水入口'
|
|
1391
|
+ }
|
|
1392
|
+ }
|
1262
|
1393
|
this.table = dialysate
|
1263
|
1394
|
var ions = response.data.data.ions
|
1264
|
1395
|
this.tableDatas = ions
|