diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue index ee265b623..a2aa8ff73 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue @@ -132,8 +132,14 @@ export default { let obj={} obj.zsl = this.formInline.zsl - obj.scrqks = this.formInline.dateofproduction[0] - obj.scrqjs = this.formInline.dateofproduction[1] + if(this.formInline.dateofproduction){ + obj.scrqks = this.formInline.dateofproduction[0] + obj.scrqjs = this.formInline.dateofproduction[1] + }else{ + obj.scrqks='' + obj.scrqjs ='' + } + obj.VINcodelist = this.formInline.VINcodelist postAction('/ota/otaBaSjSjmbcl/add',obj).then(res=>{ console.log(res); diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 703fbcf2f..9991e4c15 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -20,12 +20,17 @@ {{$t('selectTheVehicleTemplate')}} - + + {{ item.cpdjbh }} + + + @@ -36,7 +41,7 @@
- +
@@ -47,7 +52,7 @@
- +
@@ -58,12 +63,11 @@ {{$t('Modelandfunctionrecord')}} - + + + {{ item.ggpc }} + + @@ -152,7 +156,7 @@
- {{$t('preservation')}} + {{$t('preservation')}} {{$t('next')}}
@@ -172,10 +176,13 @@ form:{}, projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'], projectNameList2:[], + selectListPc:[], + selectListMb:[], } }, mounted() { - // this.getData() + this.getSelect() + this.getData() }, methods: { @@ -188,17 +195,45 @@ if(otaId==null){ otaId='' } - getAction('/ota/otaBaSjSjmbcl/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ - console.log(res); + getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ + if(res.code == 200){ + // this.form=res.result + } }) }, save(){ - + postAction('/ota/otaBaSjSjmbcx/add',this.form).then(res=>{ + localStorage.setItem('otaId', res.result.otaId) + }) }, next(){ this.save() this.$emit('basicInformationForm') }, + getSelect(){ + getAction('/ota/otaBaCxList/list').then(res=>{ + if(res.code==200){ + this.selectListPc=[] + res.result.forEach(item=>{ + let obj={} + obj.id=item.id + obj.ggpc=item.ggpc + this.selectListPc.push(obj) + }) + } + }) + getAction('/ota/otaBaSjList/list').then(res=>{ + if(res.code==200){ + this.selectListMb=[] + res.result.forEach(item=>{ + let obj={} + obj.id=item.id + obj.cpdjbh=item.cpdjbh + this.selectListMb.push(obj) + }) + } + }) + }, changeSelect(target){ this.form.dllx2=undefined if(target =='传统动力汽车'){ @@ -212,6 +247,9 @@ } }, + changeId(value){ + this.$forceUpdate() + }, update(){ this.$forceUpdate() }