From db1f4a084ed8f6ad16a60ad9ba0cb935083ba1ae Mon Sep 17 00:00:00 2001 From: yuekuo Date: Tue, 28 Mar 2023 17:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B+=E7=BB=93=E6=9D=9F=E5=8D=87?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradecompletion.vue | 73 ++++++++++--------- .../otamanagement/upgradeactivity/index.vue | 9 ++- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivity/components/upgradecompletion.vue b/jero-web/src/views/otamanagement/upgradeactivity/components/upgradecompletion.vue index ace445a90..2440d63b6 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/components/upgradecompletion.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/components/upgradecompletion.vue @@ -19,11 +19,11 @@ {{$t('implementedupgrade')}} - - + + {{$t('yes')}} - + {{$t('not')}} @@ -43,7 +43,7 @@ @@ -59,9 +59,9 @@ - {{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' || - formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles') + @click="clickButtonToUpload('csv')"> + {{ (formInline.csv === 'null' || formInline.csv === '' || + formInline.csv == null) ? $t('clickUpload') : $t('viewUploadedFiles') }}

{{$t('notecsv')}}

@@ -69,11 +69,11 @@ -
+
{{$t('vehicleshavenotcompletedonlineupgrade')}} -
@@ -86,7 +86,7 @@
@@ -96,13 +96,13 @@
{{$t('Quantity')}}
- +
@@ -114,15 +114,15 @@
- + - {{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' || - formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles') + @click="clickButtonToUpload('wwcfj')"> + {{ (formInline.wwcfj === 'null' || formInline.wwcfj === '' || + formInline.wwcfj == null) ? $t('clickUpload') : $t('viewUploadedFiles') }}

{{$t('format')}}

@@ -142,7 +142,7 @@ + :rows="2" v-model="formInline.ssjl"/>
@@ -155,9 +155,9 @@ - {{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' || - formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles') + @click="clickButtonToUpload('ssjlfj')"> + {{ (formInline.ssjlfj === 'null' || formInline.ssjlfj === '' || + formInline.ssjlfj == null) ? $t('clickUpload') : $t('viewUploadedFiles') }}

{{$t('format')}}

@@ -192,7 +192,9 @@ export default { visible: false, disabled: false, showButton:false, - formInline: {}, + formInline: { + list:[{}] + }, confirmLoading: false, acceptcode:'', projectNameList: [], @@ -237,6 +239,8 @@ export default { methods: { ...mapGetters(['userInfo']), addModel(record,flag) { + this.disabled=false + this.showButton=false if(flag=='1'){ this.disabled=true this.showButton=true @@ -244,12 +248,11 @@ export default { this.record=record this.visible = true this.confirmLoading = false - this.formInline = {} - this.formInline.dataList = [{}] + // this.formInline = {} + // this.formInline.list = [{}] this.$nextTick(() => { this.formInline = { ...this.formInline } this.$refs.ruleForm.clearValidate() - // this.$refs.codeNumber.number() }) }, handleCancel() { @@ -267,27 +270,27 @@ export default { this.formInline.authDummyInventoryBaseId = this.$route.query.id let query = JSON.parse(JSON.stringify(this.formInline)) this.confirmLoading = true - // postAction(this.url.addModel, query).then((res) => { - // if (res.success) { - // this.confirmLoading = false - // this.$message.success(this.$t('OperationSuccessful')) + postAction('/ota/otaBaSjJssj/add',{otaId:this.record.id,...this.formInline}).then((res) => { + if (res.success) { + this.confirmLoading = false + this.$message.success(this.$t('OperationSuccessful')) - // } else { - // this.$message.warning(res.message) - // this.confirmLoading = false - // } - // }) + } else { + this.$message.warning(res.message) + this.confirmLoading = false + } + }) this.visible = false this.$emit('addModelList',this.record) } }) }, addClick(index){ - this.formInline.dataList.splice(index + 1, 0, {}) + this.formInline.list.splice(index + 1, 0, {}) this.formInline = { ...this.formInline } }, deleteClick(index) { - this.formInline.dataList.splice(index, 1) + this.formInline.list.splice(index, 1) this.formInline = { ...this.formInline } }, getRegulationNo() { diff --git a/jero-web/src/views/otamanagement/upgradeactivity/index.vue b/jero-web/src/views/otamanagement/upgradeactivity/index.vue index 39f523d9c..b2330f285 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/index.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/index.vue @@ -444,11 +444,18 @@ export default { }, // 结束升级 endUpgrade(record,flag){ + console.log('model',record); this.$refs.upgradecompletionRef.addModel(record,flag) }, // 查看 detailclick(record){ - + localStorage.removeItem('otaIdT') + localStorage.removeItem('otaId') + localStorage.setItem('otaId',record.id) + this.$router.push({ + path: '/upgradeactivityrecord', + query: {} + }) }, // 维护 maintenanceClick(row){