|
@@ -149,13 +149,13 @@
|
149
|
149
|
|
150
|
150
|
<el-table-column label="患者名称" align="center">
|
151
|
151
|
<template slot-scope="scope">
|
152
|
|
- {{scope.row.patient_id}}
|
|
152
|
+ {{getPatientName(scope.row.patient_id)}}
|
153
|
153
|
</template>
|
154
|
154
|
</el-table-column>
|
155
|
155
|
|
156
|
156
|
<el-table-column label="制单人" align="center">
|
157
|
157
|
<template slot-scope="scope">
|
158
|
|
- {{scope.row.creater}}
|
|
158
|
+ {{getAdminUserName(scope.row.creater)}}
|
159
|
159
|
</template>
|
160
|
160
|
</el-table-column>
|
161
|
161
|
|
|
@@ -459,6 +459,7 @@ export default {
|
459
|
459
|
dealerList:[],
|
460
|
460
|
drugTypeList:[],
|
461
|
461
|
isShow:false,
|
|
462
|
+ doctorList:[],
|
462
|
463
|
};
|
463
|
464
|
},
|
464
|
465
|
|
|
@@ -480,6 +481,7 @@ export default {
|
480
|
481
|
console.log("list",list)
|
481
|
482
|
var total = response.data.data.total
|
482
|
483
|
this.total = total
|
|
484
|
+ this.doctorList = response.data.data.doctorList
|
483
|
485
|
console.log("total",total)
|
484
|
486
|
}
|
485
|
487
|
})
|
|
@@ -616,7 +618,7 @@ export default {
|
616
|
618
|
},
|
617
|
619
|
|
618
|
620
|
handleEdit: function (index, row) {
|
619
|
|
-
|
|
621
|
+
|
620
|
622
|
this.$router.push({path:"/stock/selfwarehouse/info/edit?id="+row.id+"&is_sys="+row.is_sys+"&is_check="+row.is_check})
|
621
|
623
|
|
622
|
624
|
},
|
|
@@ -957,6 +959,24 @@ export default {
|
957
|
959
|
}
|
958
|
960
|
}
|
959
|
961
|
return dealer_name
|
|
962
|
+ },
|
|
963
|
+ getPatientName(id){
|
|
964
|
+ var name = ""
|
|
965
|
+ for(let i=0;i<this.patientList.length;i++){
|
|
966
|
+ if(id == this.patientList[i].id){
|
|
967
|
+ name = this.patientList[i].name
|
|
968
|
+ }
|
|
969
|
+ }
|
|
970
|
+ return name
|
|
971
|
+ },
|
|
972
|
+ getAdminUserName(admin_user_id){
|
|
973
|
+ var user_name = ""
|
|
974
|
+ for(let i=0;i<this.doctorList.length;i++){
|
|
975
|
+ if(admin_user_id == this.doctorList[i].admin_user_id){
|
|
976
|
+ user_name = this.doctorList[i].user_name
|
|
977
|
+ }
|
|
978
|
+ }
|
|
979
|
+ return user_name
|
960
|
980
|
}
|
961
|
981
|
|
962
|
982
|
|