diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 9908fc679..e778df4c5 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -168,7 +168,8 @@ import ImportFile from '@/components/ImportFileData/index' confirmLoading: false, disabled: false, form:{ - qymc:'安徽江淮汽车集团股份有限公司' + qymc:'安徽江淮汽车集团股份有限公司', + bapc:undefined }, url: { exportData: '/ota/otaBaSjSjmbcx/exportData', @@ -336,17 +337,22 @@ import ImportFile from '@/components/ImportFileData/index' }, changeId(value,option){ - this.selectListPc.map(item=>{ - if(item.id==value){ - this.form.cpsb = item.cpsb - this.form.cpmc = item.cpmc - this.form.cpxh = item.cpxh - getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:'',otaId:item.id}).then(res=>{ - this.form.dllx1=res.result.dllx1 == null?undefined:res.result.dllx1 - this.form.dllx2=res.result.dllx2== null?undefined:res.result.dllx2 - }) - } - }) + + this.$nextTick(()=>{ + this.form={...this.form} + this.$refs.ruleForm.validateField('bapc') + }) + this.selectListPc.map(item=>{ + if(item.id==value){ + this.form.cpsb = item.cpsb + this.form.cpmc = item.cpmc + this.form.cpxh = item.cpxh + getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:'',otaId:item.id}).then(res=>{ + this.form.dllx1=res.result.dllx1 == null?undefined:res.result.dllx1 + this.form.dllx2=res.result.dllx2== null?undefined:res.result.dllx2 + }) + } + }) this.$forceUpdate() }, update(val){