修改
This commit is contained in:
+5
-9
@@ -231,6 +231,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.form = res.result
|
this.form = res.result
|
||||||
|
this.form.otaId=''
|
||||||
if (this.$route.query.type == 1 && res.result.cxmb == null) {
|
if (this.$route.query.type == 1 && res.result.cxmb == null) {
|
||||||
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 {
|
||||||
@@ -261,17 +262,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
let otaId = localStorage.getItem('otaId')
|
|
||||||
if (otaId == null) {
|
|
||||||
otaId = ''
|
|
||||||
}
|
|
||||||
// if(this.form.bapc!=null && this.form.bapc!=undefined && this.form.bapc!=''){
|
|
||||||
// this.$nextTick(()=>{
|
|
||||||
// this.$refs.ruleForm.clearValidate('bapc')
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
let otaId = localStorage.getItem('otaId')
|
||||||
|
if (otaId == null|| otaId == undefined) {
|
||||||
|
otaId = ''
|
||||||
|
}
|
||||||
this.selectListPc.map(item => {
|
this.selectListPc.map(item => {
|
||||||
if (item.id == this.form.bapc) {
|
if (item.id == this.form.bapc) {
|
||||||
this.form.bapc = item.ggpc
|
this.form.bapc = item.ggpc
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ import { message } from 'ant-design-vue'
|
|||||||
if(otaId==null || otaId == undefined){
|
if(otaId==null || otaId == undefined){
|
||||||
otaId=''
|
otaId=''
|
||||||
}
|
}
|
||||||
|
|
||||||
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
|
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
|
|||||||
Reference in New Issue
Block a user