diff --git a/src/views/followupentry/components/followReview.vue b/src/views/followupentry/components/followReview.vue index 7482e9981120fa4f23c06b2b162233bb164632c8..1c1350526389377203c053dbfb134e8e35e2916f 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 b0ea9dc149d661d050529750dd91a2927f4e0118..e203c3dd0ed4ee999adfdd872981d95938d36252 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; + } + } +}