|
@@ -61,7 +61,7 @@
|
61
|
61
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
62
|
62
|
</el-table-column>
|
63
|
63
|
<el-table-column align="center" prop="name" label="就诊号" width="110">
|
64
|
|
- <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}
|
|
64
|
+ <template slot-scope="scope">{{ scope.row ?scope.row.number:''}}
|
65
|
65
|
</template>
|
66
|
66
|
</el-table-column>
|
67
|
67
|
</el-table>
|
|
@@ -869,11 +869,11 @@
|
869
|
869
|
let three_count = 0
|
870
|
870
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
871
|
871
|
this.all_table_data.push(response.data.data.list[i])
|
872
|
|
- if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
|
|
872
|
+ if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
|
873
|
873
|
one_count = one_count + 1
|
874
|
874
|
}
|
875
|
875
|
|
876
|
|
- if (response.data.data.list[i].his_patient.order.order_status == 2) {
|
|
876
|
+ if (response.data.data.list[i].order.order_status == 2) {
|
877
|
877
|
two_count = two_count + 1
|
878
|
878
|
}
|
879
|
879
|
|
|
@@ -895,16 +895,16 @@
|
895
|
895
|
this.patientTableData = []
|
896
|
896
|
|
897
|
897
|
for (let i = 0; i < this.all_table_data.length; i++) {
|
898
|
|
- if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
|
|
898
|
+ if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
|
899
|
899
|
this.patientTableData.push(this.all_table_data[i])
|
900
|
900
|
}
|
901
|
901
|
|
902
|
902
|
}
|
903
|
903
|
if (this.patientTableData.length > 0) {
|
904
|
904
|
for (let i = 0; i < this.patientTableData.length; i++) {
|
905
|
|
- if (this.patientTableData[i].id == this.patientInfo.id) {
|
|
905
|
+ if (this.patientTableData[i].patient_id == this.patientInfo.id) {
|
906
|
906
|
this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
907
|
|
- this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
|
|
907
|
+ this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
|
908
|
908
|
}
|
909
|
909
|
}
|
910
|
910
|
}
|
|
@@ -986,11 +986,11 @@
|
986
|
986
|
|
987
|
987
|
for (let i = 0; i < response.data.data.list_two.length; i++) {
|
988
|
988
|
this.hisPatientDatas.push(response.data.data.list_two[i])
|
989
|
|
- if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1 || response.data.data.list_two[i].his_patient.order.order_status == 3) {
|
|
989
|
+ if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1 || response.data.data.list_two[i].order.order_status == 3) {
|
990
|
990
|
one_count = one_count + 1
|
991
|
991
|
}
|
992
|
992
|
|
993
|
|
- if (response.data.data.list_two[i].his_patient.order.order_status == 2) {
|
|
993
|
+ if (response.data.data.list_two[i].order.order_status == 2) {
|
994
|
994
|
two_count = two_count + 1
|
995
|
995
|
}
|
996
|
996
|
|
|
@@ -1010,16 +1010,16 @@
|
1010
|
1010
|
this.patientTableData = []
|
1011
|
1011
|
|
1012
|
1012
|
for (let i = 0; i < this.hisPatientDatas.length; i++) {
|
1013
|
|
- if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1 || this.hisPatientDatas[i].his_patient.order.order_status == 3) {
|
|
1013
|
+ if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1 || this.hisPatientDatas[i].order.order_status == 3) {
|
1014
|
1014
|
this.patientTableData.push(this.hisPatientDatas[i])
|
1015
|
1015
|
}
|
1016
|
1016
|
|
1017
|
1017
|
}
|
1018
|
1018
|
if (this.patientTableData.length > 0) {
|
1019
|
1019
|
for (let i = 0; i < this.patientTableData.length; i++) {
|
1020
|
|
- if (this.patientTableData[i].id == this.patientInfo.id) {
|
|
1020
|
+ if (this.patientTableData[i].patient_id == this.patientInfo.id) {
|
1021
|
1021
|
this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
1022
|
|
- this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
|
|
1022
|
+ this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
|
1023
|
1023
|
}
|
1024
|
1024
|
}
|
1025
|
1025
|
}
|
|
@@ -2069,7 +2069,7 @@
|
2069
|
2069
|
|
2070
|
2070
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
2071
|
2071
|
this.all_table_data.push(response.data.data.list[i])
|
2072
|
|
- if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
|
|
2072
|
+ if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
|
2073
|
2073
|
one_count = one_count + 1
|
2074
|
2074
|
}
|
2075
|
2075
|
|
|
@@ -2085,16 +2085,16 @@
|
2085
|
2085
|
case 1:
|
2086
|
2086
|
this.patientTableData = []
|
2087
|
2087
|
for (let i = 0; i < this.all_table_data.length; i++) {
|
2088
|
|
- if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
|
|
2088
|
+ if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
|
2089
|
2089
|
this.patientTableData.push(this.all_table_data[i])
|
2090
|
2090
|
}
|
2091
|
2091
|
|
2092
|
2092
|
}
|
2093
|
2093
|
for (let i = 0; i < this.patientTableData.length; i++) {
|
2094
|
|
- if (this.patientInfo.id == this.patientTableData[i].id) {
|
|
2094
|
+ if (this.patientInfo.id == this.patientTableData[i].patient_id) {
|
2095
|
2095
|
this.current_index = i
|
2096
|
2096
|
this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
2097
|
|
- this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].his_patient.order.number, this.patientTableData[i].his_patient.id)
|
|
2097
|
+ this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
|
2098
|
2098
|
|
2099
|
2099
|
}
|
2100
|
2100
|
}
|
|
@@ -2199,7 +2199,7 @@
|
2199
|
2199
|
|
2200
|
2200
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
2201
|
2201
|
this.all_table_data.push(response.data.data.list[i])
|
2202
|
|
- if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
|
|
2202
|
+ if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
|
2203
|
2203
|
one_count = one_count + 1
|
2204
|
2204
|
}
|
2205
|
2205
|
|
|
@@ -2216,7 +2216,7 @@
|
2216
|
2216
|
|
2217
|
2217
|
for (let i = 0; i < response.data.data.list_two.length; i++) {
|
2218
|
2218
|
this.hisPatientDatas.push(response.data.data.list_two[i])
|
2219
|
|
- if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1) {
|
|
2219
|
+ if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1) {
|
2220
|
2220
|
one_count = one_count + 1
|
2221
|
2221
|
}
|
2222
|
2222
|
|
|
@@ -2243,7 +2243,7 @@
|
2243
|
2243
|
if (this.activeName == 'first') {
|
2244
|
2244
|
|
2245
|
2245
|
for (let i = 0; i < this.all_table_data.length; i++) {
|
2246
|
|
- if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
|
|
2246
|
+ if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
|
2247
|
2247
|
this.patientTableData.push(this.all_table_data[i])
|
2248
|
2248
|
}
|
2249
|
2249
|
|
|
@@ -2251,7 +2251,7 @@
|
2251
|
2251
|
|
2252
|
2252
|
} else {
|
2253
|
2253
|
for (let i = 0; i < this.hisPatientDatas.length; i++) {
|
2254
|
|
- if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1) {
|
|
2254
|
+ if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1) {
|
2255
|
2255
|
this.patientTableData.push(this.hisPatientDatas[i])
|
2256
|
2256
|
}
|
2257
|
2257
|
|
|
@@ -2261,7 +2261,7 @@
|
2261
|
2261
|
|
2262
|
2262
|
this.current_index = 0
|
2263
|
2263
|
this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
2264
|
|
- this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
|
|
2264
|
+ this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
|
2265
|
2265
|
|
2266
|
2266
|
break
|
2267
|
2267
|
case 2:
|
|
@@ -2363,7 +2363,7 @@
|
2363
|
2363
|
let three_count = 0
|
2364
|
2364
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
2365
|
2365
|
this.all_table_data.push(response.data.data.list[i])
|
2366
|
|
- if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
|
|
2366
|
+ if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
|
2367
|
2367
|
one_count = one_count + 1
|
2368
|
2368
|
}
|
2369
|
2369
|
|
|
@@ -2379,13 +2379,13 @@
|
2379
|
2379
|
case 1:
|
2380
|
2380
|
this.patientTableData = []
|
2381
|
2381
|
for (let i = 0; i < this.all_table_data.length; i++) {
|
2382
|
|
- if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1 || this.all_table_data[i].his_patient.order.order_status == 3) {
|
|
2382
|
+ if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1 || this.all_table_data[i].order.order_status == 3) {
|
2383
|
2383
|
this.patientTableData.push(this.all_table_data[i])
|
2384
|
2384
|
}
|
2385
|
2385
|
}
|
2386
|
2386
|
|
2387
|
2387
|
this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
2388
|
|
- this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
|
|
2388
|
+ this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
|
2389
|
2389
|
|
2390
|
2390
|
break
|
2391
|
2391
|
case 2:
|
|
@@ -2620,7 +2620,7 @@
|
2620
|
2620
|
this.prescriptions = []
|
2621
|
2621
|
this.month_prescriptions = []
|
2622
|
2622
|
if(this.radio == 1){
|
2623
|
|
- this.getPatientInformation(val.id, val.his_patient.order.number, val.his_patient.id)
|
|
2623
|
+ this.getPatientInformation(val.patient_id, val.order.number, val.id)
|
2624
|
2624
|
}else{
|
2625
|
2625
|
this.getPatientInformation(val.id, val.number, val.his_patient_id)
|
2626
|
2626
|
|