@ -1222,29 +1222,34 @@
},
/** 详情按钮操作 */
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() {