ota查看修改

This commit is contained in:
zyx.net
2023-03-26 12:05:48 +08:00
parent a3307e4ac2
commit 9201b6d61c
9 changed files with 22 additions and 104 deletions
@@ -185,9 +185,9 @@
<span class="title-text-text" :title="$t('communicationTerminal')">{{$t('communicationTerminal')}}</span> <span class="title-text-text" :title="$t('communicationTerminal')">{{$t('communicationTerminal')}}</span>
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<j-dict-select-tag class="box-input" <j-multi-select-tag class="box-input"
:disabled="disabled" :disabled="disabled"
dictCode="communication_terminal" :dictCode="'communication_terminal'"
:placeholder="$t('PleaseSelect')" :placeholder="$t('PleaseSelect')"
:type="'select'" :type="'select'"
:triggerChange="false" :triggerChange="false"
@@ -242,7 +242,9 @@ import { message } from 'ant-design-vue'
exportData: '/ota/otaBaCxJbxx/exportData', exportData: '/ota/otaBaCxJbxx/exportData',
importZipUrl: '/ota/otaBaCxJbxx/importData',//导入 importZipUrl: '/ota/otaBaCxJbxx/importData',//导入
}, },
form:{}, form:{
txzd:''
},
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'], projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
projectNameList2:[], projectNameList2:[],
selectList:[], selectList:[],
@@ -270,9 +272,6 @@ import { message } from 'ant-design-vue'
localStorage.setItem('otaIdT',value) localStorage.setItem('otaIdT',value)
this.$forceUpdate() this.$forceUpdate()
if(this.$route.query.type == 1){
return
}
this.getData() this.getData()
}, },
// 模板下载 // 模板下载
@@ -299,9 +298,6 @@ import { message } from 'ant-design-vue'
}) })
}, },
getData(){ getData(){
if(this.$route.query.type == 1){
return
}
let otaIdT=localStorage.getItem('otaIdT') let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){ if(otaIdT==null){
otaIdT='' otaIdT=''
@@ -88,8 +88,8 @@
</span> </span>
</a-table> </a-table>
<div> <div>
<a-button @click="clickButtonToUpload('fileKey')" type="primary"> {{ (formInline.fileKey === 'null' || formInline.fileKey === '' || <a-button @click="clickButtonToUpload(fileList)" type="primary"> {{ (fileList === 'null' || fileList === '' ||
formInline.fileKey == null) ? $t('clickUpload') : $t('viewUploadedFiles') fileList == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}</a-button> }}</a-button>
<p>注:附件包括测试项目清单、测试报告.测试标准或技术规范</p> <p>注:附件包括测试项目清单、测试报告.测试标准或技术规范</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内</p>
@@ -296,39 +296,11 @@ import ImportFile from '@/components/ImportFileData/index'
handleModule() { handleModule() {
downloadFile('ota/otaBaCxKsjjsmccs/exportTemplate', '车型及功能备案' + '.zip', {}) downloadFile('ota/otaBaCxKsjjsmccs/exportTemplate', '车型及功能备案' + '.zip', {})
}, },
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...queryParam
}
this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.dataSource = res.result.records || []
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
this.uploadName = item this.uploadName = item
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => { getAction('sys/common/getFileInfos', { id: item }).then((res) => {
if (res.success) { if (res.success) {
this.$refs.uploadFile.perentHandleFunc(res.result) this.$refs.uploadFile.perentHandleFunc(res.result)
} else { } else {
@@ -81,6 +81,10 @@ export default {
}, },
submit(){ submit(){
this.save() this.save()
this.$router.push({
path: '/vehicleregistration',
query: {}
})
}, },
}, },
@@ -934,26 +934,6 @@ export default {
this.fileList.uploadName = attIdList this.fileList.uploadName = attIdList
this.fileList.certifyingmaterials = this.$t('viewFile') this.fileList.certifyingmaterials = this.$t('viewFile')
}, },
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
...queryParam
}
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.getList()
return
}
} else {
}
})
},
save(){ save(){
let arr =[] let arr =[]
this.dataSource.map(item=>{ this.dataSource.map(item=>{
@@ -22,12 +22,12 @@
style="margin-bottom: 20px" style="margin-bottom: 20px"
> >
<span slot="havemeasures" slot-scope="text,record"> <span slot="havemeasures" slot-scope="text,record">
<j-dict-select-tag class="box-input" <j-multi-select-tag class="box-input"
v-model="record.info" v-model="record.info"
@change="update" @change="update"
:placeholder="$t('PleaseSelect')" :placeholder="$t('PleaseSelect')"
:type="'select'" :type="'select'"
dictCode="driving_automation_level" :dictCode="record.dictCode"
:triggerChange="false"/> :triggerChange="false"/>
</span> </span>
<span slot="certifyingmaterials" slot-scope="text,record"> <span slot="certifyingmaterials" slot-scope="text,record">
@@ -190,9 +190,6 @@ import ImportFile from '@/components/ImportFileData/index'
downloadFile('ota/otaBaCxAqcs/exportTemplate', '车型及功能备案' + '.zip', {}) downloadFile('ota/otaBaCxAqcs/exportTemplate', '车型及功能备案' + '.zip', {})
}, },
getData(){ getData(){
if(this.$route.query.type == 1){
return
}
let otaIdT=localStorage.getItem('otaIdT') let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){ if(otaIdT==null){
otaIdT='' otaIdT=''
@@ -200,10 +197,11 @@ import ImportFile from '@/components/ImportFileData/index'
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
if(res.code == 200){ if(res.code == 200){
this.dataSource[0].info = Number(res.result.bhjz) == 0 ? undefined :Number(res.result.bhjz) this.dataSource[0].info = res.result.bhjz
this.dataSource[1].info =Number(res.result.fsxjz)== 0 ? undefined :Number(res.result.fsxjz) this.dataSource[1].info =res.result.fsxjz
this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs) // this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs)
this.dataSource[3].info=Number(res.result.xxaqjz)== 0 ? undefined :Number(res.result.xxaqjz) this.dataSource[2].info= res.result.sjsbcs
this.dataSource[3].info= res.result.xxaqjz
this.fileList.uploadName = res.result.zmclList this.fileList.uploadName = res.result.zmclList
this.fileList.certifyingmaterials = this.$t('viewFile') this.fileList.certifyingmaterials = this.$t('viewFile')
this.$refs.uploadFile.perentHandleFunc(this.fileList.uploadName) this.$refs.uploadFile.perentHandleFunc(this.fileList.uploadName)
@@ -236,32 +234,6 @@ import ImportFile from '@/components/ImportFileData/index'
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
}, },
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...queryParam
}
// this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.loading = false
} else {
this.loading = false
}
})
},
save(){ save(){
let obj={} let obj={}
obj.otaId=localStorage.getItem('otaId'), obj.otaId=localStorage.getItem('otaId'),
@@ -205,9 +205,6 @@ export default {
downloadFile('ota/otaBaCxZxsjyq/exportTemplate', '车型及功能备案' + '.zip', {}) downloadFile('ota/otaBaCxZxsjyq/exportTemplate', '车型及功能备案' + '.zip', {})
}, },
getData(){ getData(){
if(this.$route.query.type == 1){
return
}
console.log(localStorage.getItem('otaId')); console.log(localStorage.getItem('otaId'));
let otaIdT=localStorage.getItem('otaIdT') let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){ if(otaIdT==null){
@@ -305,9 +305,6 @@ import uploadFileOta from '@/components/uploadFileOta/file'
downloadFile('ota/otaBaCxKsjxtmccs/exportTemplate', '车型及功能备案' + '.zip', {}) downloadFile('ota/otaBaCxKsjxtmccs/exportTemplate', '车型及功能备案' + '.zip', {})
}, },
getData(){ getData(){
if(this.$route.query.type == 1){
return
}
let otaIdT=localStorage.getItem('otaIdT') let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){ if(otaIdT==null){
otaIdT='' otaIdT=''
@@ -179,6 +179,8 @@ export default {
}, },
bussLogList(val) { bussLogList(val) {
let query = { let query = {
pageNo: this.pageNohistory,
pageSize: this.pageSizehistory,
otaId:localStorage.getItem('otaId') otaId:localStorage.getItem('otaId')
} }
this.loading = true this.loading = true
@@ -383,9 +383,7 @@ export default {
localStorage.removeItem('otaIdT') localStorage.removeItem('otaIdT')
this.$router.push({ this.$router.push({
path: '/vehicleinformation', path: '/vehicleinformation',
query: { query: {}
type:1,
}
}) })
}, },
viewProcessClick(row) { viewProcessClick(row) {