Browse Source

fix:[预填表单]优化

ouqian
15881625488@163.com 1 month ago
parent
commit
2088a86270
4 changed files with 15 additions and 3 deletions
  1. +3
    -0
      src/views/business/study/comp/jhbd/Bj.vue
  2. +3
    -0
      src/views/business/study/comp/sqbd/Bj.vue
  3. +3
    -0
      src/views/business/study/comp/tbbd/Bj.vue
  4. +6
    -3
      src/views/business/study/comp/ytbd/Bj.vue

+ 3
- 0
src/views/business/study/comp/jhbd/Bj.vue View File

@ -245,6 +245,9 @@ export default {
this.form.bdnr = val.content this.form.bdnr = val.content
this.form.templateSn = val.sn this.form.templateSn = val.sn
this.templateData = deepClone(this.form) this.templateData = deepClone(this.form)
setTimeout(() => {
this.$refs["form"].validate()
}, 200)
}, },
cancel() { cancel() {
this.$emit('close') this.$emit('close')

+ 3
- 0
src/views/business/study/comp/sqbd/Bj.vue View File

@ -246,6 +246,9 @@ export default {
this.form.bdnr = val.content this.form.bdnr = val.content
this.form.templateSn = val.sn this.form.templateSn = val.sn
this.templateData = deepClone(this.form) this.templateData = deepClone(this.form)
setTimeout(() => {
this.$refs["form"].validate()
}, 200)
}, },
cancel() { cancel() {
this.$emit('close') this.$emit('close')

+ 3
- 0
src/views/business/study/comp/tbbd/Bj.vue View File

@ -774,6 +774,9 @@ export default {
this.form.bdmc = val.nameEn this.form.bdmc = val.nameEn
} }
this.form.templateSn = val.sn this.form.templateSn = val.sn
setTimeout(() => {
this.$refs["form"].validate()
}, 200)
}, },
cancel() { cancel() {
try { try {

+ 6
- 3
src/views/business/study/comp/ytbd/Bj.vue View File

@ -92,10 +92,10 @@
<el-radio-group v-model="form.fzrsh"> <el-radio-group v-model="form.fzrsh">
<el-radio :label="$t('page.business.study.studyFormPre.yes')">{{ <el-radio :label="$t('page.business.study.studyFormPre.yes')">{{
$t('page.business.study.studyFormPre.yes') $t('page.business.study.studyFormPre.yes')
}}</el-radio>
}}</el-radio>
<el-radio :label="$t('page.business.study.studyFormPre.no')">{{ <el-radio :label="$t('page.business.study.studyFormPre.no')">{{
$t('page.business.study.studyFormPre.no') $t('page.business.study.studyFormPre.no')
}}</el-radio>
}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -239,7 +239,7 @@ export default {
}, },
selectTemplateChange(val) { selectTemplateChange(val) {
this.form.bdnr = val.content this.form.bdnr = val.content
if ( this.$i18n.locale === 'zh_CN') {
if (this.$i18n.locale === 'zh_CN') {
this.form.templateMc = val.name this.form.templateMc = val.name
this.form.bdmc = val.name this.form.bdmc = val.name
} else { } else {
@ -248,6 +248,9 @@ export default {
} }
this.form.templateSn = val.sn this.form.templateSn = val.sn
this.templateData = deepClone(this.form) this.templateData = deepClone(this.form)
setTimeout(() => {
this.$refs["form"].validate()
}, 200)
}, },
cancel() { cancel() {
this.$emit('close') this.$emit('close')

Loading…
Cancel
Save