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: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -1198,10 +1208,10 @@ export default {
|
|||||||
this.form = JSON.parse(JSON.stringify(item))
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||||
this.form.wssmr = wssmrName
|
this.form.wssmr = wssmrName
|
||||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz : ''
|
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||||
this.defaultCheckedKeys = [this.form.standSystem]
|
this.defaultCheckedKeys = [this.form.standSystem]
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
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: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -1163,12 +1173,13 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = JSON.parse(JSON.stringify(item))
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
console.log(this.form)
|
||||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||||
this.form.wssmr = wssmrName
|
this.form.wssmr = wssmrName
|
||||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz: ''
|
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||||
this.form.country = this.form.country && this.form.country !== [] ? this.form.country: ''
|
this.form.country = this.form.country && this.form.country !== [] ? this.form.country: ''
|
||||||
this.defaultCheckedKeys = [this.form.standSystem]
|
this.defaultCheckedKeys = [this.form.standSystem]
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
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: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -2662,6 +2672,10 @@ export default {
|
|||||||
this.initializeFileList(p, this.form[p]);
|
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.defaultCheckedKeys = [this.form.standSystem];
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
||||||
@@ -2789,6 +2803,7 @@ export default {
|
|||||||
//表单文件处理
|
//表单文件处理
|
||||||
this.fileInfoHandle();
|
this.fileInfoHandle();
|
||||||
this.form.commentText = this.commentText;
|
this.form.commentText = this.commentText;
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
@@ -2805,11 +2820,13 @@ export default {
|
|||||||
// taskIds:this.taskIds
|
// taskIds:this.taskIds
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.isSubmit = false
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fileInfoHandle() {
|
fileInfoHandle() {
|
||||||
@@ -2869,6 +2886,7 @@ export default {
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.fileInfoHandle();
|
this.fileInfoHandle();
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.form.submitType = this.submitType
|
this.form.submitType = this.submitType
|
||||||
this.form.commentText = this.commentText
|
this.form.commentText = this.commentText
|
||||||
this.form.approvalOpinion = this.approvalOpinion
|
this.form.approvalOpinion = this.approvalOpinion
|
||||||
@@ -2887,7 +2905,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('标准号重复')
|
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: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -1170,10 +1180,10 @@ export default {
|
|||||||
this.form = JSON.parse(JSON.stringify(item))
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
let wssmrName = this.form.wssmrname || this.form.wssmr
|
let wssmrName = this.form.wssmrname || this.form.wssmr
|
||||||
this.form.wssmr = wssmrName
|
this.form.wssmr = wssmrName
|
||||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
this.form['sycpx'] = this.filterObj(this.form['sycpx'])
|
||||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
this.form['nylx'] = this.filterObj(this.form['nylx'])
|
||||||
this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx: ''
|
this.form['cllx'] = this.filterObj(this.form['cllx'])
|
||||||
this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz : ''
|
this.form['syrz'] = this.filterObj(this.form['syrz'])
|
||||||
this.defaultCheckedKeys = [this.form.standSystem]
|
this.defaultCheckedKeys = [this.form.standSystem]
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
||||||
|
|||||||
Reference in New Issue
Block a user