提交 bf3333b2 authored 作者: 钟是志's avatar 钟是志

22143 雅职那个 按钮运行公式那个 可以 搬到泸职版本。可以相应多种需求

上级 ce4392d8
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
import { uaaRequest } from '../utils/request'; import { uaaRequest } from '../utils/request';
import { Base16Encode } from '../Base16/index'; import { Base16Encode } from '../Base16/index';
import {deleteOtherKeyofSubmitData} from "@/webPublic/one_stop_public/models/callbackExamineProcess";
const api = '/UnifiedAppFormApi'; const api = '/UnifiedAppFormApi';
const myCollect = { const myCollect = {
...@@ -116,6 +117,7 @@ const myCollect = { ...@@ -116,6 +117,7 @@ const myCollect = {
* @param {examineMap} 审核内容 * @param {examineMap} 审核内容
*/ */
*getExamineProcess({ payload, callback }, { call, put }) { *getExamineProcess({ payload, callback }, { call, put }) {
payload = deleteOtherKeyofSubmitData(payload);
if (payload.taskForm) { if (payload.taskForm) {
payload.taskForm = Base16Encode(payload.taskForm); payload.taskForm = Base16Encode(payload.taskForm);
} }
......
export function submitProcessData({ payload, item, data }) {
let postData = {
...payload,
buttonInfo: item,
ssxRemark:
'examineMap 和 taskForm 都是json字符串 通过修改 examineMap, taskForm中的值 达到改变提交记录的效果',
apiData: data,
taskFormKey: data.taskFormKey,
};
return postData;
}
export function callbackSubmitData(infoData) {
if (window.callbackSubmitInfoZhiYong && typeof window.callbackSubmitInfoZhiYong === 'function') {
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;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论