Commit ca2ae4c1 authored by gengchunlei's avatar gengchunlei

医生端 v1.2 1、表单提交后返回上一步 调整 为replace()

            2、死亡表单校验调整
parent 15389dbf
......@@ -86,6 +86,7 @@
rows='2'
autosize
type='textarea'
:rules='rules.deathReasonOther'
/>
</van-form>
</div>
......@@ -118,6 +119,7 @@ export default {
deathDate: [{ required: true, message: '请选择' }],
reasonItem: [{ required: true, message: '请选择' }],
diseaseName: [{ required: true, message: '请选择' }],
deathReasonOther: [{ required: true, message: '请填写其他意外情况' }],
}
}
},
......
......@@ -105,7 +105,12 @@ export default {
}
saveResidentsDeath(params).then(res => {
this.store.onRefreshMark()
this.$router.back()
this.$router.replace({
path: '/doctor/patient-detail',
query: {
residentInfoId: this.routerDetail.residentInfoId
}
})
})
},
......
......@@ -242,7 +242,12 @@ export default {
fun(params, true).then(({ code }) => {
if (code == 'SUCCESS') {
this.store.onRefreshMark()
this.$router.back()
this.$router.replace({
path: '/doctor/patient-detail',
query: {
residentInfoId: this.routerDetail.residentInfoId
}
})
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment