阻断】政策征求意见流程:责任人(责任工程师)填写意见,填写回执说明后点击保存,然后转办给胡国锐,胡国锐点击提交后,控制台报500 52301
This commit is contained in:
@@ -287,7 +287,7 @@ export default {
|
||||
json.responUserAndInstitutionNameMap = this.form.responUserAndInstitutionNameMap;
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("prcType", "12");
|
||||
_formData.append("prcType", "laws2");
|
||||
_formData.append("taskIds", this.taskIds);
|
||||
_formData.append("json", JSON.stringify({
|
||||
form: json,
|
||||
|
||||
@@ -384,26 +384,7 @@ export default {
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
let _formData = new FormData();
|
||||
let json = this.form
|
||||
json.data = this.data
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("prcType", "3");
|
||||
_formData.append("taskIds", this.taskIds);
|
||||
_formData.append("json", JSON.stringify({
|
||||
form: json,
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
this.saveLoading = false;
|
||||
});
|
||||
},
|
||||
|
||||
handleAccept() {
|
||||
this.isSubmit = true
|
||||
execTask({
|
||||
@@ -416,6 +397,29 @@ export default {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
let json = this.json
|
||||
json.commentText = this.commentText
|
||||
json.info = this.data
|
||||
json.form = this.form
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("prcType", "laws2");
|
||||
_formData.append("taskIds", this.taskIds);
|
||||
_formData.append("json", JSON.stringify({
|
||||
form: json,
|
||||
dataList: this.data,
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
this.saveLoading = false;
|
||||
});
|
||||
},
|
||||
handleSubmit() {
|
||||
if (this.data.length < 1) {
|
||||
this.$message.warning('请输入征求意见')
|
||||
@@ -505,8 +509,11 @@ export default {
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
getFormFieldList(item) {
|
||||
console.log(item);
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item));
|
||||
this.form = item.form ? JSON.parse(JSON.stringify(item.form.form)) : JSON.parse(JSON.stringify(item));
|
||||
this.data = item.form ? item.dataList : []
|
||||
this.commentText = item.form ? item.commentText : ''
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user