Commit 4c4a66a7 authored by songrui's avatar songrui

筛查校验方法修改

parent 788e79c8
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = '210a0035-82a1-4979-a2eb-74130a292a9f' token = '599c5ba1-d338-4569-a245-681566a79098'
} }
} }
if (token) { if (token) {
......
...@@ -302,7 +302,13 @@ export default { ...@@ -302,7 +302,13 @@ export default {
this.$refs.form.validate().then(() => { this.$refs.form.validate().then(() => {
this.recordForm.base = {...this.form} this.recordForm.base = {...this.form}
this.$parent.onNext() this.$parent.onNext()
}).catch(err => console.warn(err)) }).catch(err => {
console.warn(err)
const array = err || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
}, },
// 性别 // 性别
genderConfirm({ selectedValues, selectedOptions }) { genderConfirm({ selectedValues, selectedOptions }) {
......
...@@ -466,13 +466,20 @@ export default { ...@@ -466,13 +466,20 @@ export default {
})).then(() => { })).then(() => {
this.$parent.onNext() this.$parent.onNext()
}) })
}).catch(err => console.warn(err)) }).catch(err => {
console.warn(err)
const array = err || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
}, },
onPrev() { onPrev() {
this.$refs.form.validate().then(() => {
this.recordForm.screen = {...this.form}
this.$parent.onBack() this.$parent.onBack()
}).catch(err => console.warn(err)) // this.$refs.form.validate().then(() => {
// this.recordForm.screen = {...this.form}
// this.$parent.onBack()
// }).catch(err => console.warn(err))
}, },
// 既往史 // 既往史
medicalConfirm() { medicalConfirm() {
......
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