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(',') this.qbfsForm.area = this.selectList[0].area.split(',')
} }
if(this.selectList[0].bussSort){ 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.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -531,7 +531,7 @@ export default {
this.qbfsForm.area = this.selectList[0].area.split(',') this.qbfsForm.area = this.selectList[0].area.split(',')
} }
if(this.selectList[0].bussSort){ 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.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -375,7 +375,7 @@ export default {
formLoading:false, formLoading:false,
formRules: { formRules: {
bussSort: [ bussSort: [
{ required: true, message: "请选择企标类别", trigger: "blur" } { required: true, message: "请选择企标类别", trigger: "change" }
], ],
renameEs: [ renameEs: [
{required: true, message: '请输入更名后企标名称', trigger:'blur'}, {required: true, message: '请输入更名后企标名称', trigger:'blur'},
@@ -527,7 +527,7 @@ export default {
this.qbfsForm.area = this.selectList[0].area.split(',') this.qbfsForm.area = this.selectList[0].area.split(',')
} }
if(this.selectList[0].bussSort){ 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.rqbName = this.selectList[0].rqbName
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
@@ -422,24 +422,24 @@ export default {
break break
} }
this.qbfsForm = item.qbfsForm || item; this.qbfsForm = item.qbfsForm || item;
if (this.qbfsForm.bussSort) { // if (this.qbfsForm.bussSort) {
if(this.qbfsForm.bussSort instanceof Array){ // if(this.qbfsForm.bussSort instanceof Array){
this.qbfsForm.bussSort = this.qbfsForm.bussSort[0] // this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
}else { // }else {
let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString() // let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
if (val !== '' && val !== null && typeof (val) !== 'undefined') { // if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) { // if (val instanceof Array) {
this.qbfsForm.bussSort = this.form.bussSort.join(",")[0]; // this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
} else { // } else {
this.qbfsForm.bussSort = val // this.qbfsForm.bussSort = val
} // }
} else if (val === '') { // } else if (val === '') {
this.qbfsForm.bussSort = "" // this.qbfsForm.bussSort = ""
} // }
} // }
} else { // } else {
this.qbfsForm.bussSort = "" // this.qbfsForm.bussSort = ""
} // }
this.formLoading = false; this.formLoading = false;
// this.commentText = item.commentText // this.commentText = item.commentText
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser; this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
@@ -550,7 +550,7 @@ export default {
if(this.type !== '5'){ if(this.type !== '5'){
let params = { let params = {
json, json,
sort:this.qbfsForm.bussSort[0], sort:this.qbfsForm.bussSort,
prcName:this.qbfsForm.esName prcName:this.qbfsForm.esName
} }