callbackExamineProcess.js 1.1 KB
Newer Older
1 2 3
/**
 * 审核回调函数.callbackSubmitInfoZhiYong;
 * */
4
export function callbackSubmitData(infoData) {
钟是志's avatar
钟是志 committed
5
  // console.log(infoData);
6
  if (window.callbackSubmitInfoZhiYong && typeof window.callbackSubmitInfoZhiYong === 'function') {
钟是志's avatar
钟是志 committed
7
    // console.log('审核回调开始执行', JSON.stringify(infoData));
8 9 10 11 12 13 14 15 16 17 18 19 20
    infoData = window.callbackSubmitInfoZhiYong({ // 返回新的值就行了.
      postData: infoData, //
    });
  }
  if (typeof infoData === 'object') {
    delete infoData.buttonInfo;
    delete infoData.ssxRemark;
    delete infoData.userNowInfo;
    delete infoData.apiData;
    delete infoData.taskFormKey;
  }
  return infoData;
}
21 22

export function callbackApplyData(infoData) { // 流程发起的回调函数
钟是志's avatar
钟是志 committed
23
  // console.log(infoData);
24 25 26 27
  if (window.callbackApplyDataInfoZhiYong && typeof window.callbackApplyDataInfoZhiYong === 'function') {
    infoData = window.callbackApplyDataInfoZhiYong({ // 返回新的值就行了.
      postData: infoData, //
    });
钟是志's avatar
钟是志 committed
28 29 30 31

  }
  if (typeof infoData === 'object') {
    delete infoData.userNowInfo;
32 33 34
  }
  return infoData;
}