Browse Source

诊疗档案详情

newMaster
1747191978@qq.com 4 months ago
parent
commit
e803adbd36
  1. 1099
      acupuncture-后台/src/views/medicalFile/details.vue
  2. 51
      acupuncture-后台/src/views/medicalFile/index.vue

1099
acupuncture-后台/src/views/medicalFile/details.vue

File diff suppressed because it is too large

51
acupuncture-后台/src/views/medicalFile/index.vue

@ -1222,29 +1222,34 @@
},
/** 详情按钮操作 */
handleDetails(row) {
this.getDetailsForm() //
this.form = JSON.parse(JSON.stringify(row));
queryRecord({
treatmentId: row.id
}).then((res) => {
let arrList = ["JBXX_ZYZD", "PG_RTCF_TXLX", "PG_TZBS_JJTZ"];
let recordValDict = res.data.recordValDict;
for (let key in recordValDict) {
if (arrList.includes(key)) {
recordValDict[key] = recordValDict[key][0].answer;
} else {
recordValDict[key] = recordValDict[key][0].answer.join(",");
}
}
this.detailsForm = {
...this.detailsForm,
...recordValDict
};
console.log(" this.detailsForm", this.detailsForm);
this.$router.push({
path: `/medicalFile/details?treatmentId=${row.id}&data=${JSON.stringify(
row
)}`,
});
// this.getDetailsForm() //
// this.form = JSON.parse(JSON.stringify(row));
// queryRecord({
// treatmentId: row.id
// }).then((res) => {
// let arrList = ["JBXX_ZYZD", "PG_RTCF_TXLX", "PG_TZBS_JJTZ"];
// let recordValDict = res.data.recordValDict;
// for (let key in recordValDict) {
// if (arrList.includes(key)) {
// recordValDict[key] = recordValDict[key][0].answer;
// } else {
// recordValDict[key] = recordValDict[key][0].answer.join(",");
// }
// }
// this.detailsForm = {
// ...this.detailsForm,
// ...recordValDict
// };
// console.log(" this.detailsForm", this.detailsForm);
this.drawer = true;
this.title = "诊疗档案详情";
});
// this.drawer = true;
// this.title = "";
// });
},
getDetailsForm() {
this.detailsForm = {
@ -1455,4 +1460,4 @@
>>>.el-drawer.rtl {
width: 50% !important;
}
</style>
</style>

Loading…
Cancel
Save