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

Loading…
Cancel
Save