|
@@ -108,16 +108,19 @@ export default { |
|
|
this.TOAST('请选择审核人') |
|
|
this.TOAST('请选择审核人') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let postData = this.taskParam.formreq |
|
|
|
|
|
const res = await this.HTTP_POST('learun/adms/newwf/instance', postData, `指派审核人时发生错误`) |
|
|
|
|
|
|
|
|
// let formdata = new FormData() |
|
|
|
|
|
// formdata.append("data",this.taskParam.formreq) |
|
|
|
|
|
const res = await this.HTTP_POST('learun/adms/newwf/instance', this.taskParam.formreq, `指派审核人时发生错误`) |
|
|
if(!res){ |
|
|
if(!res){ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.submitPostData.auditors = {} |
|
|
|
|
|
this.submitPostData.auditors[this.reviewerListId] = this.reviewer |
|
|
|
|
|
|
|
|
this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()}) |
|
|
|
|
|
delete this.submitPostData.formreq |
|
|
|
|
|
// this.submitPostData.auditors[this.reviewerListId] = this.reviewer |
|
|
|
|
|
console.log(this.submitPostData) |
|
|
const success = await this.HTTP_POST( |
|
|
const success = await this.HTTP_POST( |
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', |
|
|
|
|
|
|
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors', |
|
|
this.submitPostData, |
|
|
this.submitPostData, |
|
|
`提交[${this.typeText}]时发生错误` |
|
|
`提交[${this.typeText}]时发生错误` |
|
|
) |
|
|
) |
|
|