|
@@ -408,7 +408,7 @@
|
408
|
408
|
<span>{{ scope.row.created_time | parseTime('{y}-{m}-{d}') }}</span>
|
409
|
409
|
</template>
|
410
|
410
|
</el-table-column>
|
411
|
|
-
|
|
411
|
+
|
412
|
412
|
<el-table-column label="转归" align="center">
|
413
|
413
|
<template slot-scope="scope">
|
414
|
414
|
<span>{{ LapsetoInfo(scope.row) }}</span>
|
|
@@ -416,12 +416,16 @@
|
416
|
416
|
</el-table-column>
|
417
|
417
|
<el-table-column label="转出(死亡)时间" min-width="134" align="center">
|
418
|
418
|
<template slot-scope="scope">
|
419
|
|
- <span>{{getTime(scope.row.death_time)}}</span>
|
|
419
|
+<!-- <span>{{getTime(scope.row.death_time)}}</span>-->
|
|
420
|
+ <span v-if="scope.row.lapseto == 1"> </span>
|
|
421
|
+ <span v-else >{{getTime(scope.row.death_time)}}</span>
|
420
|
422
|
</template>
|
421
|
423
|
</el-table-column>
|
422
|
424
|
<el-table-column label="转出(死亡)原因" align="center" min-width="150">
|
423
|
425
|
<template slot-scope="scope">
|
424
|
|
- <span>{{scope.row.out_reason}}</span>
|
|
426
|
+<!-- <span>{{scope.row.out_reason}}</span>-->
|
|
427
|
+ <span v-if="scope.row.lapseto == 1"> </span>
|
|
428
|
+ <span v-else >{{scope.row.out_reason}}</span>
|
425
|
429
|
</template>
|
426
|
430
|
</el-table-column>
|
427
|
431
|
<el-table-column label="操作" align="center" min-width="140">
|
|
@@ -507,7 +511,7 @@
|
507
|
511
|
>
|
508
|
512
|
</el-radio-group>
|
509
|
513
|
</el-form-item>
|
510
|
|
-
|
|
514
|
+
|
511
|
515
|
<el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
|
512
|
516
|
<el-date-picker
|
513
|
517
|
v-model="lapsetoForm.lapseto_time"
|
|
@@ -844,7 +848,7 @@
|
844
|
848
|
|
845
|
849
|
},
|
846
|
850
|
handleSuccess({ results, header }) {
|
847
|
|
-
|
|
851
|
+
|
848
|
852
|
if (header != undefined && header.length > 0) {
|
849
|
853
|
var isHasName = header.includes('*姓名')
|
850
|
854
|
var isHasGender = header.includes('*性别')
|
|
@@ -860,7 +864,7 @@
|
860
|
864
|
var isHasDryWeight = header.includes('干体重(kg)')
|
861
|
865
|
var isHasHeight = header.includes('身高(cm)')
|
862
|
866
|
var isHasHomeAddress = header.includes('家庭住址')
|
863
|
|
-
|
|
867
|
+
|
864
|
868
|
if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
|
865
|
869
|
this.dialogVisible = true
|
866
|
870
|
return
|
|
@@ -1070,12 +1074,12 @@
|
1070
|
1074
|
}
|
1071
|
1075
|
}
|
1072
|
1076
|
}
|
1073
|
|
-
|
|
1077
|
+
|
1074
|
1078
|
this.export_date.push(obj)
|
1075
|
1079
|
}
|
1076
|
1080
|
|
1077
|
1081
|
let index = 0
|
1078
|
|
-
|
|
1082
|
+
|
1079
|
1083
|
for (let i = 0; i < this.export_date.length; i++) {
|
1080
|
1084
|
if (this.export_date[i].dialysis_no == '') {
|
1081
|
1085
|
let new_dialysis_no = this.max_dialysis_no + index
|
|
@@ -1167,7 +1171,7 @@
|
1167
|
1171
|
'patients': this.export_date
|
1168
|
1172
|
}
|
1169
|
1173
|
console.log("export2222",this.export_date)
|
1170
|
|
-
|
|
1174
|
+
|
1171
|
1175
|
postExportPatients(params).then(
|
1172
|
1176
|
response => {
|
1173
|
1177
|
if (response.data.state === 1) {
|
|
@@ -1333,7 +1337,7 @@
|
1333
|
1337
|
return new Date(time).getTime() / 1000
|
1334
|
1338
|
},
|
1335
|
1339
|
search() {
|
1336
|
|
-
|
|
1340
|
+
|
1337
|
1341
|
this.listQuery.keywords = this.searchKey
|
1338
|
1342
|
this.getList()
|
1339
|
1343
|
},
|
|
@@ -1341,17 +1345,17 @@
|
1341
|
1345
|
this.getList()
|
1342
|
1346
|
},
|
1343
|
1347
|
getList() {
|
1344
|
|
-
|
|
1348
|
+
|
1345
|
1349
|
fetchList(this.listQuery).then(response => {
|
1346
|
1350
|
if (response.data.state === 0) {
|
1347
|
1351
|
this.$message.error(response.data.msg)
|
1348
|
1352
|
return false
|
1349
|
1353
|
} else {
|
1350
|
1354
|
this.tableData = response.data.data.patients
|
1351
|
|
-
|
|
1355
|
+
|
1352
|
1356
|
this.pageTotal = this.tableData.length
|
1353
|
1357
|
this.total = response.data.data.total
|
1354
|
|
-
|
|
1358
|
+
|
1355
|
1359
|
}
|
1356
|
1360
|
})
|
1357
|
1361
|
},
|
|
@@ -1515,7 +1519,7 @@
|
1515
|
1519
|
},
|
1516
|
1520
|
toExport(){
|
1517
|
1521
|
import('@/vendor/Export2Excel').then(excel => {
|
1518
|
|
-
|
|
1522
|
+
|
1519
|
1523
|
console.log("hhhh323223",this.tableData)
|
1520
|
1524
|
for(let i=0;i<this.tableData.length;i++){
|
1521
|
1525
|
if(this.tableData[i].gender == 1){
|
|
@@ -1554,11 +1558,11 @@
|
1554
|
1558
|
this.tableData[i].is_infectiouss = "阳性"
|
1555
|
1559
|
}
|
1556
|
1560
|
}
|
1557
|
|
-
|
|
1561
|
+
|
1558
|
1562
|
const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
|
1559
|
1563
|
const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
|
1560
|
1564
|
console.log("table",this.tableData)
|
1561
|
|
-
|
|
1565
|
+
|
1562
|
1566
|
const data = this.formatJson(filterVal, this.tableData)
|
1563
|
1567
|
excel.export_json_to_excel({
|
1564
|
1568
|
header: tHeader,
|