@ -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() {
@ -1455,4 +1460,4 @@
>>>.el-drawer.rtl {
width: 50% !important;
</style>