|
@@ -165,7 +165,7 @@
|
165
|
165
|
label="处方编号"
|
166
|
166
|
width="120">
|
167
|
167
|
<template slot-scope="scope">
|
168
|
|
- <span>处方 {{scope.$index + 1}}</span>
|
|
168
|
+ <span>{{getprescriptionName(scope.row)}}</span>
|
169
|
169
|
</template>
|
170
|
170
|
</el-table-column>
|
171
|
171
|
<el-table-column label="处方号">
|
|
@@ -194,7 +194,7 @@
|
194
|
194
|
label="治疗单编号"
|
195
|
195
|
width="120">
|
196
|
196
|
<template slot-scope="scope">
|
197
|
|
- <span>治疗 {{scope.$index + 1}}</span>
|
|
197
|
+ <span>治疗 {{getprescriptionName(scope.row)}}</span>
|
198
|
198
|
</template>
|
199
|
199
|
</el-table-column>
|
200
|
200
|
<el-table-column label="治疗单号">
|
|
@@ -223,7 +223,7 @@
|
223
|
223
|
label="处方编号"
|
224
|
224
|
width="120">
|
225
|
225
|
<template slot-scope="scope">
|
226
|
|
- <span>检验单1</span>
|
|
226
|
+ <span>检验单</span>
|
227
|
227
|
</template>
|
228
|
228
|
</el-table-column>
|
229
|
229
|
<el-table-column label="检验单号">
|
|
@@ -404,7 +404,7 @@ export default {
|
404
|
404
|
},
|
405
|
405
|
methods: {
|
406
|
406
|
getSunziValue(val){
|
407
|
|
-
|
|
407
|
+
|
408
|
408
|
this.getInitData()
|
409
|
409
|
},
|
410
|
410
|
editKeepLoad(data){
|
|
@@ -543,6 +543,16 @@ export default {
|
543
|
543
|
setData(val) {
|
544
|
544
|
this.prescriptions = val
|
545
|
545
|
|
|
546
|
+ },getprescriptionName(row){
|
|
547
|
+ console.log("~~~~~~")
|
|
548
|
+ console.log(row)
|
|
549
|
+ for(let i = 0;i < this.prescriptions.length;i++){
|
|
550
|
+ if(this.prescriptions[i].id == row.id){
|
|
551
|
+ return this.prescriptions[i].name
|
|
552
|
+ }
|
|
553
|
+ }
|
|
554
|
+
|
|
555
|
+
|
546
|
556
|
},
|
547
|
557
|
getDictionaryDataConfig(module, filed_name) {
|
548
|
558
|
return getDictionaryDataConfig(module, filed_name)
|
|
@@ -559,13 +569,13 @@ export default {
|
559
|
569
|
// console.log('3333',this.all_data);
|
560
|
570
|
for (let i = 0; i < this.all_data.length; i++) {
|
561
|
571
|
if(this.all_data[i].first_letter !=undefined){
|
562
|
|
- if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
|
572
|
+ if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
563
|
573
|
this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
|
564
|
574
|
this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
|
565
|
575
|
arr4 = arr4.concat(this.all_data[i])
|
566
|
576
|
}
|
567
|
577
|
}
|
568
|
|
-
|
|
578
|
+
|
569
|
579
|
}
|
570
|
580
|
this.patientTableData = arr4
|
571
|
581
|
break
|
|
@@ -574,13 +584,13 @@ export default {
|
574
|
584
|
// console.log('4444',this.all_data);
|
575
|
585
|
for (let i = 0; i < this.all_data.length; i++) {
|
576
|
586
|
if(this.all_data[i].first_letter !=undefined){
|
577
|
|
- if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
|
587
|
+ if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
578
|
588
|
this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
|
579
|
589
|
this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
|
580
|
590
|
arr2 = arr2.concat(this.all_data[i])
|
581
|
591
|
}
|
582
|
592
|
}
|
583
|
|
-
|
|
593
|
+
|
584
|
594
|
}
|
585
|
595
|
this.patientTableData = arr2
|
586
|
596
|
|
|
@@ -590,13 +600,13 @@ export default {
|
590
|
600
|
// console.log('5555',this.all_data);
|
591
|
601
|
for (let i = 0; i < this.all_data.length; i++) {
|
592
|
602
|
if(this.all_data[i].first_letter !=undefined){
|
593
|
|
- if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
594
|
|
- this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
|
|
603
|
+ if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
|
|
604
|
+ this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
|
595
|
605
|
this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
|
596
|
606
|
arr3 = arr3.concat(this.all_data[i])
|
597
|
607
|
}
|
598
|
608
|
}
|
599
|
|
-
|
|
609
|
+
|
600
|
610
|
}
|
601
|
611
|
this.patientTableData = arr3
|
602
|
612
|
break
|