/* ******************* youhong.ai 转交任务提交状态修改 start ******************* */ $(() => { function api(requestOptions = { url: "", type: "GET", data: "", isAsync: true, success: () => { }, error: () => { }, complete: () => { }, contentType: 'application/json', beforeSend: () => { } }) { let options = Object.assign({ url: "", type: "GET", data: "", isAsync: true, success: () => { }, error: () => { }, complete: () => { }, contentType: 'application/json', beforeSend: () => { } }, requestOptions) return $.ajax(options) } WfForm.registerCheckEvent(WfForm.OPER_SUBMIT, callback => { let obj = {} obj.actionId = WfForm.getFieldValue(WfForm.convertFieldNameToId('actionid')) obj.userId = WfForm.getFieldValue(WfForm.convertFieldNameToId('zjr', 'detail_1') + "_0") api({ url: "/api/aiyh/ihg/task/submit-task", type: "POST", data: JSON.stringify(obj), isAsync: false, success(res) { if (res && res.code === 200) { callback() } }, complete() { callback() } }) }) }) /* ******************* youhong.ai 转交任务提交状态修改 end ******************* */