diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue index 7422158b3..bdbaf46d0 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue @@ -35,6 +35,7 @@ @@ -134,12 +135,21 @@ export default { otaId='' } getAction('/ota/otaBaSjSjmbcl/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ - console.log(res); + if(res.code==200){ + this.formInline.zsl=res.result.zsl + this.formInline.vinList=res.result.vinList + this.formInline.dateofproduction=[] + this.formInline.dateofproduction.push(res.result.scrqks) + this.formInline.dateofproduction.push(res.result.scrqjs) + this.$forceUpdate() + + } }) }, save(){ let obj={} + obj.otaId=localStorage.getItem('otaId') obj.zsl = this.formInline.zsl if(this.formInline.dateofproduction){ obj.scrqks = this.formInline.dateofproduction[0] @@ -149,9 +159,9 @@ export default { obj.scrqjs ='' } - obj.VINcodelist = this.formInline.VINcodelist + obj.vinList = this.formInline.vinList postAction('/ota/otaBaSjSjmbcl/add',obj).then(res=>{ - console.log(res); + this.$message.success(this.$t('SavedSuccessfully')) }) }, next(){ @@ -162,6 +172,9 @@ export default { this.save() this.$emit('upgradeRequirementsup') }, + change(){ + this.$forceUpdate() + }, clickButtonToUpload(item) { this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.visible = true diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue index 52ab6db6b..b09c81b94 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue @@ -22,40 +22,54 @@ :columns="columns" style="margin-bottom: 20px" > - - - - {{ $t('yes') }} - {{ $t('not') }} - - - - - - {{ $t('yes') }} - {{ $t('not') }} - - - - - + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - {{$t('addcontroller')}} - {{$t('delete')}} + {{$t('addcontroller')}} + {{$t('delete')}}
@@ -85,8 +99,6 @@ export default { return { dataSource: [ { - key:1, - functionname:'ceshi', } ], loading: false, @@ -97,7 +109,9 @@ export default { align: 'left', dataIndex: 'systemname', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'systemname' }, + }, { title: this.$t('adjustmentofchangedBulletinparameters'), @@ -136,77 +150,89 @@ export default { align: 'left', dataIndex: 'nameoftheupgradedelectroniccontroller', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'nameoftheupgradedelectroniccontroller' }, + }, { title: this.$t('adaptivehardwareversion'), align: 'left', dataIndex: 'adaptivehardwareversion', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'adaptivehardwareversion' }, }, { title: this.$t('beforethesoftwareversionupgraded'), align: 'left', dataIndex: 'beforethesoftwareversionupgraded', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'beforethesoftwareversionupgraded' }, }, { title: this.$t('afterthesoftwareversionupgraded'), align: 'left', dataIndex: 'afterthesoftwareversionupgraded', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'afterthesoftwareversionupgraded' }, }, { title: this.$t('beforetheOSversionupgraded'), align: 'left', dataIndex: 'beforetheOSversionupgraded', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'beforetheOSversionupgraded' }, }, { title: this.$t('aftertheoperatingsystemversionupgraded'), align: 'left', dataIndex: 'aftertheoperatingsystemversionupgraded', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'aftertheoperatingsystemversionupgraded' }, }, { title: this.$t('softwaredevelopmententerprise'), align: 'left', dataIndex: 'softwaredevelopmententerprise', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'softwaredevelopmententerprise' }, }, { title: this.$t('initialpackageforintegrityinflammatorydata'), align: 'left', dataIndex: 'initialpackageforintegrityinflammatorydata', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'initialpackageforintegrityinflammatorydata' }, }, { title: this.$t('upgradepackageintegrityverificationdata'), align: 'left', dataIndex: 'upgradepackageintegrityverificationdata', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'upgradepackageintegrityverificationdata' }, }, { title: this.$t('upgradepackagesize'), align: 'left', dataIndex: 'upgradepackagesize', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'upgradepackagesize' }, }, { title: this.$t('differentialupgradeornot'), align: 'left', dataIndex: 'differentialupgradeornot', ellipsis: true, - width: 170 + width: 170, + scopedSlots: { customRender: 'differentialupgradeornot' }, }, ] }, @@ -278,6 +304,13 @@ export default { next(){ this.$emit('upgradedonlinedown') }, + addlineAtBot(){ + let obj={} + this.dataSource.push(obj) + }, + deleteData(record){ + this.dataSource.splice(this.dataSource.indexOf(record),1) + }, uploadSuccess(data) { let attIdList = [] if (data && data.length > 0) { diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue index 7a51eb5b3..cba9b95c1 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue @@ -16,10 +16,13 @@ {{$t('upgradePurpose')}} - @@ -35,25 +38,25 @@ - + {{ $t('yes') }} {{ $t('not') }} - + {{ $t('yes') }} {{ $t('not') }} - + {{ $t('yes') }} {{ $t('not') }} - + {{ $t('yes') }} {{ $t('not') }} @@ -75,7 +78,7 @@
- + {{ $t('yes') }} {{ $t('not') }} @@ -84,40 +87,46 @@ + + + - - - - + {{ $t('yes') }} {{ $t('not') }} - + {{ $t('yes') }} {{ $t('not') }} - - + {{ $t('yes') }} {{ $t('not') }} @@ -129,7 +138,7 @@
- {{$t('preservation')}} + {{$t('preservation')}} {{$t('last')}} {{$t('next')}}
@@ -289,12 +298,27 @@ export default { scopedSlots: { customRender: 'operation' } } ], + form:{ + sjmd:'', + fhgd:1, + zdjsxg:2, + sfyxaq:2, + yhqr:1, + aqkkx:1, + zxsj:2, + aqjz:'2', + sjbcs:'3,4' + } } }, mounted() { // this.getList() + this.getData() }, methods: { + update(){ +this.$forceUpdate() + }, // 模板下载 handleModule() { downloadFile('ota/otaBaSjSjyxpg/exportTemplate', '升级影响评估' + '.zip', {}) @@ -339,10 +363,45 @@ export default { } }) }, + getData(){ + let otaIdT=localStorage.getItem('otaIdT') + if(otaIdT==null){ + otaIdT='' + } + let otaId=localStorage.getItem('otaId') + if(otaId==null){ + otaId='' + } + getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ + if(res.code==200){ + this.form=res.result==null ? { + sjmd:'', + fhgd:1, + zdjsxg:2, + sfyxaq:2, + yhqr:1, + aqkkx:1, + zxsj:2, + aqjz:'2', + sjbcs:'3,4' + } : res.result + } + }) + }, + save(){ + + this.form.otaId=localStorage.getItem('otaId') + postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{ + this.$message.success(this.$t('SavedSuccessfully')) + console.log(res); + }) + }, last(){ + this.save() this.$emit('safetyPrecautionsup') }, next(){ + this.save() this.$emit('safetyPrecautionsdown') }, uploadSuccess(data) { diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 767ce71ac..586cc9396 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -19,7 +19,7 @@ {{$t('selectTheVehicleTemplate')}} - + {{ item.cpdjbh }} @@ -76,12 +76,8 @@ {{$t('producttrademark')}} - + + @@ -91,12 +87,8 @@ {{$t('productname')}} - + + @@ -106,12 +98,8 @@ {{$t('productModel')}} - + + @@ -174,7 +162,9 @@ import ImportFile from '@/components/ImportFileData/index' return { confirmLoading: false, disabled: false, - form:{}, + form:{ + qymc:'安徽江淮汽车集团股份有限公司' + }, url: { exportData: '/ota/otaBaSjSjmbcx/exportData', importZipUrl: '/ota/otaBaSjSjmbcx/importData',//导入 @@ -204,14 +194,19 @@ import ImportFile from '@/components/ImportFileData/index' if(otaId==null){ otaId='' } - getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ + getAction('/ota/otaBaSjSjmbcx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ if(res.code == 200){ - // this.form=res.result + this.form=res.result ==null?{}:res.result } }) }, save(){ - postAction('/ota/otaBaSjSjmbcx/add',this.form).then(res=>{ + let otaId=localStorage.getItem('otaId') + if(otaId==null){ + otaId='' + } + postAction('/ota/otaBaSjSjmbcx/add',{otaId:otaId,...this.form}).then(res=>{ + this.$message.success(this.$t('SavedSuccessfully')) localStorage.setItem('otaId', res.result.otaId) }) }, @@ -225,8 +220,7 @@ import ImportFile from '@/components/ImportFileData/index' this.selectListPc=[] res.result.forEach(item=>{ let obj={} - obj.id=item.id - obj.ggpc=item.ggpc + obj=item this.selectListPc.push(obj) }) } @@ -256,8 +250,16 @@ import ImportFile from '@/components/ImportFileData/index' } }, - changeId(value){ - this.$forceUpdate() + 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 + this.form.babh = item.cpdjbh + } + }) + this.$forceUpdate() }, update(){ this.$forceUpdate()