fix: 企标制修订计划管控-计划更名传参

This commit is contained in:
gaosong
2023-12-09 17:21:15 +08:00
parent dfbd27f341
commit d5d6c6e9bd
5 changed files with 23 additions and 23 deletions
@@ -511,7 +511,7 @@ export default {
this.qbfsForm.area = this.selectList[0].area.split(',')
}
if(this.selectList[0].bussSort){
this.qbfsForm.bussSort = this.selectList[0].bussSort.split(',')
this.qbfsForm.bussSort = this.selectList[0].bussSort
}
this.qbfsForm.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -531,7 +531,7 @@ export default {
this.qbfsForm.area = this.selectList[0].area.split(',')
}
if(this.selectList[0].bussSort){
this.qbfsForm.bussSort = this.selectList[0].bussSort.split(',')
this.qbfsForm.bussSort = this.selectList[0].bussSort
}
this.qbfsForm.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -375,7 +375,7 @@ export default {
formLoading:false,
formRules: {
bussSort: [
{ required: true, message: "请选择企标类别", trigger: "blur" }
{ required: true, message: "请选择企标类别", trigger: "change" }
],
renameEs: [
{required: true, message: '请输入更名后企标名称', trigger:'blur'},
@@ -527,7 +527,7 @@ export default {
this.qbfsForm.area = this.selectList[0].area.split(',')
}
if(this.selectList[0].bussSort){
this.qbfsForm.bussSort = this.selectList[0].bussSort.split(',')
this.qbfsForm.bussSort = this.selectList[0].bussSort
}
this.qbfsForm.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -422,24 +422,24 @@ export default {
break
}
this.qbfsForm = item.qbfsForm || item;
if (this.qbfsForm.bussSort) {
if(this.qbfsForm.bussSort instanceof Array){
this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
}else {
let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
} else {
this.qbfsForm.bussSort = val
}
} else if (val === '') {
this.qbfsForm.bussSort = ""
}
}
} else {
this.qbfsForm.bussSort = ""
}
// if (this.qbfsForm.bussSort) {
// if(this.qbfsForm.bussSort instanceof Array){
// this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
// }else {
// let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
// if (val !== '' && val !== null && typeof (val) !== 'undefined') {
// if (val instanceof Array) {
// this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
// } else {
// this.qbfsForm.bussSort = val
// }
// } else if (val === '') {
// this.qbfsForm.bussSort = ""
// }
// }
// } else {
// this.qbfsForm.bussSort = ""
// }
this.formLoading = false;
// this.commentText = item.commentText
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
@@ -550,7 +550,7 @@ export default {
if(this.type !== '5'){
let params = {
json,
sort:this.qbfsForm.bussSort[0],
sort:this.qbfsForm.bussSort,
prcName:this.qbfsForm.esName
}