From 5fad0ca355b398fdecc18edefb356c8d28f1fe70 Mon Sep 17 00:00:00 2001 From: Liuyujia <18050528999@163.com> Date: Wed, 8 Feb 2023 17:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../followupentry/components/followReview.vue | 21 ++++--- .../followupentry/components/publicDialog.vue | 8 +-- src/views/followupentry/followaudit.vue | 58 +++++++++++++++++-- 3 files changed, 67 insertions(+), 20 deletions(-) diff --git a/src/views/followupentry/components/followReview.vue b/src/views/followupentry/components/followReview.vue index 7482e99..1c13505 100644 --- a/src/views/followupentry/components/followReview.vue +++ b/src/views/followupentry/components/followReview.vue @@ -44,6 +44,9 @@ export default { ReadForm }, props: { + tabActive:{ + type:String, + }, formDataList: { type: Array, }, @@ -719,7 +722,7 @@ export default { }, // formEdit:{ // }, - activeTab:0, + activeTab:'0', screenList: [ { time: "2020-12-12 11:11:11", @@ -729,13 +732,13 @@ export default { ], } }, - // watch:{ - // form(val){ - // this.formEdit = val[this.activeTab] - // console.log("formReview",val) - // } - // }, + watch:{ + tabActive(val){ + this.activeTab = val + } + }, computed:{ + //当前随访数据 formEdit:{ get(){ return this.formDataList[this.activeTab] @@ -825,9 +828,9 @@ export default { height: 100%; background: #fafafa; li { - padding: 20px 30px; + padding: 16px; border-bottom: 1px solid #ccc; - cursor: pointer; + // cursor: pointer; .time { font-size: 14px; margin-bottom: 8px; diff --git a/src/views/followupentry/components/publicDialog.vue b/src/views/followupentry/components/publicDialog.vue index b0ea9dc..e203c3d 100644 --- a/src/views/followupentry/components/publicDialog.vue +++ b/src/views/followupentry/components/publicDialog.vue @@ -1,12 +1,6 @@ @@ -104,6 +114,7 @@ export default { medicalCombination:'无锡市人民医院医联体', mcCount:7, editStatus: false, //进入的状态是第一次审核还是修改审核,false为第一次,true为修改 + tabActive:'0', //当前随访病例 formEdit:[ { name:"djksh", @@ -120,7 +131,8 @@ export default { G_17:"6" }, ],//填报数据 - form: {}, + auditLoading:false, + form: {}, //审核表单 rules: { reson: [{ required: true, message: "请填写", trigger: "blur" }], }, @@ -142,6 +154,17 @@ export default { curBtn: 0, curComponent: "followReview", confirmStatus: false, + tagList:[ + { + text:"不合格原因" + }, + { + text:"不合格原因不合格原因" + }, + { + text:"不合格原因" + }, + ] } }, watch: {}, @@ -215,8 +238,13 @@ export default { this.$refs.publicDialog.dialogVisible = true }, nextExample() { + if(Number(this.tabActive) < this.formEdit.length - 1){ + this.tabActive=String(Number(this.tabActive) + 1) + } + console.log('tab激活',this.tabActive) this.onCancel() }, + //随访数据 async getDetail(){ this.loading = true let res = await getFollowUnCheckDetail(this.unionId) @@ -225,6 +253,21 @@ export default { } this.loading = false }, + //审核 + async getDetail(){ + this.auditLoading = true + let params={ + id: "1", + checkStatus: this.curBtn, + checkNote: this.form.reason, + patientId: this.unionId + } + let res = await putFollowCheck(params) + if(res.code==1){ + // this.formEdit=res.data[0] //调试注释 + } + this.auditLoading = false + }, }, } @@ -298,7 +341,7 @@ export default { .btn { margin-top: 20px; .el-button { - width: 100px; + // width: 100px; height: 32px; } } @@ -322,4 +365,11 @@ export default { padding-top: 20px; padding-bottom: 20px; } +.tag-form { + ::v-deep { + .el-tag { + margin-right: 12px; + } + } +} -- 2.22.0