diff --git a/acupuncture-后台/src/views/medicalFile/details.vue b/acupuncture-后台/src/views/medicalFile/details.vue new file mode 100644 index 00000000..98b00a00 --- /dev/null +++ b/acupuncture-后台/src/views/medicalFile/details.vue @@ -0,0 +1,1099 @@ + + + + + + diff --git a/acupuncture-后台/src/views/medicalFile/index.vue b/acupuncture-后台/src/views/medicalFile/index.vue index ff356648..d37577a7 100644 --- a/acupuncture-后台/src/views/medicalFile/index.vue +++ b/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; } - \ No newline at end of file +