feat: There is no way the, bug #55680 四个不回显数据问题 多选字段格式问题
This commit is contained in:
@@ -1190,6 +1190,16 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
filterObj(obj){
|
||||
if(obj && obj !== ''){
|
||||
if(obj instanceof Array){
|
||||
return obj;
|
||||
}else {
|
||||
return obj.split(",")
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
@@ -1198,10 +1208,10 @@ export default {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||
this.form.wssmr = wssmrName
|
||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz : ''
|
||||
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||
this.defaultCheckedKeys = [this.form.standSystem]
|
||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
||||
|
||||
@@ -1156,6 +1156,16 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
filterObj(obj){
|
||||
if(obj && obj !== ''){
|
||||
if(obj instanceof Array){
|
||||
return obj;
|
||||
}else {
|
||||
return obj.split(",")
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
@@ -1163,12 +1173,13 @@ export default {
|
||||
console.log(item);
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
console.log(this.form)
|
||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||
this.form.wssmr = wssmrName
|
||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz: ''
|
||||
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||
this.form.country = this.form.country && this.form.country !== [] ? this.form.country: ''
|
||||
this.defaultCheckedKeys = [this.form.standSystem]
|
||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||
|
||||
@@ -2649,6 +2649,16 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
filterObj(obj){
|
||||
if(obj && obj !== ''){
|
||||
if(obj instanceof Array){
|
||||
return obj;
|
||||
}else {
|
||||
return obj.split(",")
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
@@ -2662,6 +2672,10 @@ export default {
|
||||
this.initializeFileList(p, this.form[p]);
|
||||
}
|
||||
}
|
||||
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||
this.defaultCheckedKeys = [this.form.standSystem];
|
||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
||||
@@ -2789,6 +2803,7 @@ export default {
|
||||
//表单文件处理
|
||||
this.fileInfoHandle();
|
||||
this.form.commentText = this.commentText;
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let _formData = new FormData()
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -2805,11 +2820,13 @@ export default {
|
||||
// taskIds:this.taskIds
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle() {
|
||||
@@ -2869,6 +2886,7 @@ export default {
|
||||
if (res.ok) {
|
||||
this.fileInfoHandle();
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.form.submitType = this.submitType
|
||||
this.form.commentText = this.commentText
|
||||
this.form.approvalOpinion = this.approvalOpinion
|
||||
@@ -2887,7 +2905,8 @@ export default {
|
||||
} else {
|
||||
this.$message.success(res.message)
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('标准号重复')
|
||||
|
||||
@@ -1162,6 +1162,16 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
filterObj(obj){
|
||||
if(obj && obj !== ''){
|
||||
if(obj instanceof Array){
|
||||
return obj;
|
||||
}else {
|
||||
return obj.split(",")
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
@@ -1170,10 +1180,10 @@ export default {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||
this.form.wssmr = wssmrName
|
||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz : ''
|
||||
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||
this.defaultCheckedKeys = [this.form.standSystem]
|
||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
||||
|
||||
Reference in New Issue
Block a user