bug 67719

This commit is contained in:
zyx.net
2023-04-06 10:45:41 +08:00
parent 9d48ef0529
commit e3d1ef544d
2 changed files with 14 additions and 12 deletions
@@ -234,13 +234,14 @@ export default {
this.form = res.result this.form = res.result
this.form.otaId='' this.form.otaId=''
if (this.$route.query.type == 1 && res.result.cxmb == null && !item) { if(this.$route.query.type == 1 && res.result.cxmb == null && !item){
this.form.cxmb = this.form.babh + '-' + this.form.bapc + '-' + this.form.cpxh this.form.cxmb = this.form.babh+'-'+ this.form.bapc+'-'+this.form.cpxh
} else { }else {
if (this.$route.query.type == 2 && res.result.cxmb == null && !item) { if(this.$route.query.type == 2 && res.result.cxmb == null && !item){
this.form.cxmb = this.form.babh + '-' + this.form.bapc + '-' + this.form.cpxh // this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
} else {
this.form.cxmb = res.result.cxmb ? res.result.cxmb : undefined this.form.cxmb = res.result.cxmb ? res.result.cxmb : undefined
}else{
this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.babh+'-'+ this.form.bapc+'-'+this.form.cpxh
} }
} }
@@ -375,7 +376,7 @@ export default {
localStorage.removeItem('otaId') localStorage.removeItem('otaId')
localStorage.removeItem('otaIdT') localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT', val) localStorage.setItem('otaIdT', val)
this.getData() this.getData('qiehuan')
}, },
update2() { update2() {
this.$forceUpdate() this.$forceUpdate()
@@ -286,7 +286,7 @@ import { message } from 'ant-design-vue'
localStorage.removeItem('otaIdT') localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT',value) localStorage.setItem('otaIdT',value)
this.getData() this.getData('qiehuan')
}, },
// 模板下载 // 模板下载
handleModule() { handleModule() {
@@ -337,15 +337,16 @@ import { message } from 'ant-design-vue'
this.form.cxmb = this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh this.form.cxmb = this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
}else { }else {
if(this.$route.query.type == 2 && res.result.cxmb == null && !item){ if(this.$route.query.type == 2 && res.result.cxmb == null && !item){
this.form.cxmb = this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh // this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
}else{
this.form.cxmb = res.result.cxmb ? res.result.cxmb : undefined this.form.cxmb = res.result.cxmb ? res.result.cxmb : undefined
}else{
this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
} }
} }
if(res.result.dllx1 == '' ){ if(res.result.dllx1 == '' || res.result.dllx1 == null){
res.result.dllx1 = undefined res.result.dllx1 = undefined
} }
if(res.result.dllx2 == ''){ if(res.result.dllx2 == '' || res.result.dllx2 == null){
res.result.dllx2 = undefined res.result.dllx2 = undefined
} }