lyflowchart 1.0.115 → 1.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionsConfig-BuvSvRbv.js +395 -0
- package/dist/ActionsConfig-BuvSvRbv.js.map +1 -0
- package/dist/ApprovalEditorModal-suKPJ-vN.js +48 -0
- package/dist/ApprovalEditorModal-suKPJ-vN.js.map +1 -0
- package/dist/CancelModal-BUi3ieI8.js +61 -0
- package/dist/CancelModal-BUi3ieI8.js.map +1 -0
- package/dist/Cell_click_approve-Dr83RkI-.js +244 -0
- package/dist/Cell_click_approve-Dr83RkI-.js.map +1 -0
- package/dist/JsonTags-BbWLqghI.js +66 -0
- package/dist/JsonTags-BbWLqghI.js.map +1 -0
- package/dist/MyProcess-FWGEwQcv.js +26434 -0
- package/dist/MyProcess-FWGEwQcv.js.map +1 -0
- package/dist/MyProcess.vue.d.ts +991 -0
- package/dist/approval-BW2WjPxY.js +167 -0
- package/dist/approval-BW2WjPxY.js.map +1 -0
- package/dist/approval-BaVHder3.js +18 -0
- package/dist/approval-BaVHder3.js.map +1 -0
- package/dist/approvalHistory-B2gpQbFC.js +868 -0
- package/dist/approvalHistory-B2gpQbFC.js.map +1 -0
- package/dist/approvalHistoryViewModal-DgLpv2ot.js +114 -0
- package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +1 -0
- package/dist/approvalPageConfig-D0zPXOUf.js +2437 -0
- package/dist/approvalPageConfig-D0zPXOUf.js.map +1 -0
- package/dist/approveLeftConfig-BOU_UgHp.js +136 -0
- package/dist/approveLeftConfig-BOU_UgHp.js.map +1 -0
- package/dist/codeHistoryViewModal-BfSjIbEU.js +103 -0
- package/dist/codeHistoryViewModal-BfSjIbEU.js.map +1 -0
- package/dist/columnTables-DLwtgcC7.js +1272 -0
- package/dist/columnTables-DLwtgcC7.js.map +1 -0
- package/dist/components/Cell_click_approve.vue.d.ts +5 -0
- package/dist/components/Cell_click_data_source.vue.d.ts +6 -0
- package/dist/components/Process/common/bpmnUtils.d.ts +8 -0
- package/dist/components/Process/common/global.d.ts +16 -0
- package/dist/components/Process/common/index.d.ts +5 -0
- package/dist/components/Process/component/JsonTags2.vue.d.ts +60 -0
- package/dist/components/Process/component/ValueInput2.vue.d.ts +74 -0
- package/dist/components/Process/component/columnNameField2.vue.d.ts +51 -0
- package/dist/components/Process/component/data.d.ts +157 -0
- package/dist/components/Process/customPanel/CustomContextPad.d.ts +31 -0
- package/dist/components/Process/customPanel/CustomPalette.d.ts +89 -0
- package/dist/components/Process/customPanel/customTranslate.d.ts +1 -0
- package/dist/components/Process/customPanel/index.d.ts +8 -0
- package/dist/components/Process/designer.vue.d.ts +589 -0
- package/dist/components/Process/flowable/init.d.ts +1 -0
- package/dist/components/Process/index.vue.d.ts +812 -0
- package/dist/components/Process/lang/zh.d.ts +249 -0
- package/dist/components/Process/panel/ButtonsPanel.vue.d.ts +24 -0
- package/dist/components/Process/panel/PropertiesPanel.vue.d.ts +24 -0
- package/dist/components/Process/panel/commonPanel.vue.d.ts +40 -0
- package/dist/components/Process/panel/conditionPanel.vue.d.ts +271 -0
- package/dist/components/Process/panel/executionListener.vue.d.ts +66 -0
- package/dist/components/Process/panel/formPanel.vue.d.ts +7 -0
- package/dist/components/Process/panel/multiInstance.vue.d.ts +33 -0
- package/dist/components/Process/panel/otherPanel.vue.d.ts +17 -0
- package/dist/components/Process/panel/taskListener.vue.d.ts +64 -0
- package/dist/components/Process/panel/taskPanel.vue.d.ts +254 -0
- package/dist/components/Process/viewer/index.vue.d.ts +41 -0
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +26 -0
- package/dist/components/approval/CostCompanySelect.vue.d.ts +29 -0
- package/dist/components/approval/CostDepartmentSelect.vue.d.ts +35 -0
- package/dist/components/approval/CreateByCascader.vue.d.ts +27 -0
- package/dist/components/approval/CreateBySelect.vue.d.ts +35 -0
- package/dist/components/approval/PostionCascader.vue.d.ts +26 -0
- package/dist/components/approval/SystemTime.vue.d.ts +38 -0
- package/dist/components/approval/approvalViewId.d.ts +36 -0
- package/dist/components/approval/components/CancelModal.vue.d.ts +25 -0
- package/dist/components/approval/components/FormCodeInput.vue.d.ts +33 -0
- package/dist/components/approval/components/FormContextInput.vue.d.ts +33 -0
- package/dist/components/approval/components/FormFlowOrgInput.vue.d.ts +40 -0
- package/dist/components/approval/components/actionsBar.vue.d.ts +17 -0
- package/dist/components/approval/components/approvalHistory/approvalHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/dataStoreSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalHistory/dataStoreSettingHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/flowHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/flowSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalHistory/index.vue.d.ts +212 -0
- package/dist/components/approval/components/approvalHistory/pageSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +112 -0
- package/dist/components/approval/components/approvalPageConfig/BaseConditions.vue.d.ts +205 -0
- package/dist/components/approval/components/approvalPageConfig/CodeEditorWraper.vue.d.ts +51 -0
- package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +145 -0
- package/dist/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue.d.ts +137 -0
- package/dist/components/approval/components/approvalPageConfig/JsonInput.vue.d.ts +38 -0
- package/dist/components/approval/components/approvalPageConfig/JsonTags.vue.d.ts +26 -0
- package/dist/components/approval/components/approvalPageConfig/JsonText.vue.d.ts +36 -0
- package/dist/components/approval/components/approvalPageConfig/approveLeftConfig.vue.d.ts +6 -0
- package/dist/components/approval/components/approvalPageConfig/baseConfig.vue.d.ts +10 -0
- package/dist/components/approval/components/approvalPageConfig/cellEdit.vue.d.ts +23 -0
- package/dist/components/approval/components/approvalPageConfig/configSync.vue.d.ts +76 -0
- package/dist/components/approval/components/approvalPageConfig/confirmInput.vue.d.ts +26 -0
- package/dist/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue.d.ts +18 -0
- package/dist/components/approval/components/approvalPageConfig/index.vue.d.ts +11 -0
- package/dist/components/approval/components/approvalPageConfig/jsonConfig.vue.d.ts +16 -0
- package/dist/components/approval/components/approvalPageConfig/layoutSetting.vue.d.ts +9 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1184 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +145 -0
- package/dist/components/approval/components/approvalPageConfig/operatorSelect.vue.d.ts +18 -0
- package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +166 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +802 -0
- package/dist/components/approval/components/codeHistory/codeHistory.vue.d.ts +53 -0
- package/dist/components/approval/components/codeHistory/codeHistoryViewModal.vue.d.ts +32 -0
- package/dist/components/approval/components/columnDataList.vue.d.ts +454 -0
- package/dist/components/approval/components/columnForm.vue.d.ts +26 -0
- package/dist/components/approval/components/columnTables.vue.d.ts +502 -0
- package/dist/components/approval/components/columnUnknown.vue.d.ts +2 -0
- package/dist/components/approval/components/dataStoreConfig/ConditionConfig.vue.d.ts +199 -0
- package/dist/components/approval/components/dataStoreConfig/ValueInput.vue.d.ts +37 -0
- package/dist/components/approval/components/dataStoreConfig/dataSourceDetial.vue.d.ts +22 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreConfig.vue.d.ts +554 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreConfigItem.vue.d.ts +434 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreTest.vue.d.ts +39 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreTestsItem.vue.d.ts +17 -0
- package/dist/components/approval/components/dataStoreConfig/formField.vue.d.ts +28 -0
- package/dist/components/approval/components/dataStoreConfig/formFieldMulType.vue.d.ts +96 -0
- package/dist/components/approval/components/dataStoreConfig/selectExcelColumn.vue.d.ts +26 -0
- package/dist/components/approval/components/dataStoreConfig/selectExcelType.vue.d.ts +28 -0
- package/dist/components/approval/components/debugCode/debugCode.vue.d.ts +214 -0
- package/dist/components/approval/components/drawerDataList.vue.d.ts +504 -0
- package/dist/components/approval/components/drawerTablesList.vue.d.ts +551 -0
- package/dist/components/approval/components/flowConfig/flowConfig.vue.d.ts +1097 -0
- package/dist/components/approval/components/flowConfig/selectCcGroup.vue.d.ts +9 -0
- package/dist/components/approval/components/flowConfig/selectUsers.vue.d.ts +9 -0
- package/dist/components/approval/components/modelTablesList.vue.d.ts +551 -0
- package/dist/components/approval/components/pageConfigHistory.vue.d.ts +2 -0
- package/dist/components/approval/components/search.vue.d.ts +238 -0
- package/dist/components/approval/components/searchSummary.vue.d.ts +100 -0
- package/dist/components/approval/components/table.vue.d.ts +416 -0
- package/dist/components/approval/components/tableModal.vue.d.ts +84 -0
- package/dist/components/approval/configs/approval/default.d.ts +11 -0
- package/dist/components/approval/configs/approval/recordActions.d.ts +22 -0
- package/dist/components/approval/core.vue.d.ts +53 -0
- package/dist/components/approval/example_code/example_code.d.ts +11 -0
- package/dist/components/approval/index.d.ts +18 -0
- package/dist/components/approval/index.vue.d.ts +2 -0
- package/dist/components/approval/migrate/index.d.ts +1 -0
- package/dist/components/approval/migrate/v0001.d.ts +2 -0
- package/dist/components/approval/store/context.d.ts +48 -0
- package/dist/components/approval/store/debugCode.d.ts +7 -0
- package/dist/components/approval/store/settingsState.d.ts +15 -0
- package/dist/components/approval/typing.d.ts +210 -0
- package/dist/components/approval/useApprovalRecordActions.d.ts +83 -0
- package/dist/components/approval/utils.d.ts +164 -0
- package/dist/components/approval_for_details.vue.d.ts +9 -0
- package/dist/components/flow/ElInputTag/index.vue.d.ts +46 -0
- package/dist/components/flow/Expression/index.vue.d.ts +48 -0
- package/dist/components/flow/Role/index.vue.d.ts +68 -0
- package/dist/components/flow/User/index.vue.d.ts +76 -0
- package/dist/config/packed-config.d.ts +26 -0
- package/dist/constants.d.ts +1 -0
- package/dist/core-BOc9ch_5.js +1631 -0
- package/dist/core-BOc9ch_5.js.map +1 -0
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js +114 -0
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +1 -0
- package/dist/debugCode-Cm9-WiUG.js +565 -0
- package/dist/debugCode-Cm9-WiUG.js.map +1 -0
- package/dist/debugCode-dD1YnQSD.js +11 -0
- package/dist/debugCode-dD1YnQSD.js.map +1 -0
- package/dist/default-VdDMlY4e.js +560 -0
- package/dist/default-VdDMlY4e.js.map +1 -0
- package/dist/example_code-C_xF8RRG.js +129 -0
- package/dist/example_code-C_xF8RRG.js.map +1 -0
- package/dist/flowHistoryViewModal-D8DJP7Te.js +109 -0
- package/dist/flowHistoryViewModal-D8DJP7Te.js.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +507 -26691
- package/dist/index.js.map +1 -1
- package/dist/init-plugin-fQTSQzui.js +48 -0
- package/dist/init-plugin-fQTSQzui.js.map +1 -0
- package/dist/init-plugin.d.ts +57 -0
- package/dist/leftColumn-CsPjufue.js +209 -0
- package/dist/leftColumn-CsPjufue.js.map +1 -0
- package/dist/lyflowchart.css +1 -1
- package/dist/middleColumn-C7M6-eVo.js +107 -0
- package/dist/middleColumn-C7M6-eVo.js.map +1 -0
- package/dist/recordActions-BgFlNsGU.js +51 -0
- package/dist/recordActions-BgFlNsGU.js.map +1 -0
- package/dist/settingsState-CI81PG-i.js +19 -0
- package/dist/settingsState-CI81PG-i.js.map +1 -0
- package/dist/style.d.ts +3 -0
- package/dist/styles.d.ts +7 -0
- package/dist/tableConfig-uLXue-BS.js +2408 -0
- package/dist/tableConfig-uLXue-BS.js.map +1 -0
- package/dist/tableModal-BcYfVL02.js +124 -0
- package/dist/tableModal-BcYfVL02.js.map +1 -0
- package/dist/useApprovalRecordActions-BQ6MgV2L.js +843 -0
- package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +1 -0
- package/dist/utils/StrUtil.d.ts +52 -0
- package/dist/utils/function.d.ts +8 -0
- package/dist/utils-CLet2gLV.js +420 -0
- package/dist/utils-CLet2gLV.js.map +1 -0
- package/dist/v0001-OaBeBCXI.js +4 -0
- package/dist/v0001-OaBeBCXI.js.map +1 -0
- package/dist/{Cell_click_data_source-C8WEsBGB.js → viewer-Dv3kQsMf.js} +1839 -2724
- package/dist/viewer-Dv3kQsMf.js.map +1 -0
- package/dist/vue-print-next-HRweUmNi.js +683 -0
- package/dist/vue-print-next-HRweUmNi.js.map +1 -0
- package/package.json +39 -8
- package/dist/Cell_click_data_source-C8WEsBGB.js.map +0 -1
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
import { n as e, r as t } from "./recordActions-BgFlNsGU.js";
|
|
2
|
+
//#region src/components/approval/configs/approval/default.ts
|
|
3
|
+
var n = () => ({
|
|
4
|
+
type: "data_list",
|
|
5
|
+
table: {
|
|
6
|
+
actions: [{
|
|
7
|
+
danger: !1,
|
|
8
|
+
disableCode: {
|
|
9
|
+
code: "async function run({ context, settings }) {\n console.log('context', JSON.stringify(context));\n console.log('settings', JSON.stringify(settings));\n const { tables, formModel } = context;\n // const table = tables['approve-approve_record'];\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\n\n // try {\n // const res = await self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n return true;\n}\n",
|
|
10
|
+
enable: !1
|
|
11
|
+
},
|
|
12
|
+
label: "提交",
|
|
13
|
+
settings: {},
|
|
14
|
+
showCode: {
|
|
15
|
+
code: "async function run({ context, settings }) {\n console.log('context', JSON.stringify(context));\n console.log('settings', JSON.stringify(settings));\n const { tables, formModel } = context;\n // const table = tables['approve-approve_record'];\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\n\n // try {\n // const res = await self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n return true;\n}\n",
|
|
16
|
+
enable: !1
|
|
17
|
+
},
|
|
18
|
+
type: "primary",
|
|
19
|
+
action: "commit_approve",
|
|
20
|
+
code: "async function run({ table_id, context, settings }) {\n console.log('context', JSON.stringify(context));\n console.log('settings', JSON.stringify(settings));\n const { tables, formModel } = context;\n const table = tables['approve-approve_record'];\n const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\n if (!selectedRowKeys || selectedRowKeys.length == 0) {\n throw new Error('请选择未提交的审批数据');\n }\n for (const item of selectedRecord) {\n if (item.process_status != 'init') {\n throw new Error('仅能提交未提交的审批数据');\n }\n }\n // try {\n // const res = await self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n return { ids: selectedRowKeys };\n}\n"
|
|
21
|
+
}],
|
|
22
|
+
base_conditions: [[{
|
|
23
|
+
class_name: "bool",
|
|
24
|
+
field_name: "is_active",
|
|
25
|
+
format: "choices",
|
|
26
|
+
operator: "eq",
|
|
27
|
+
value: [!0],
|
|
28
|
+
value_type: "fixed"
|
|
29
|
+
}, {
|
|
30
|
+
class_name: "str",
|
|
31
|
+
field_name: "menu_flag",
|
|
32
|
+
format: "input",
|
|
33
|
+
operator: "eq",
|
|
34
|
+
value: ["{{menu_flag}}"],
|
|
35
|
+
value_type: "fixed"
|
|
36
|
+
}]],
|
|
37
|
+
columns: [
|
|
38
|
+
{
|
|
39
|
+
autoHeight: !1,
|
|
40
|
+
autoWidth: !1,
|
|
41
|
+
cellComponent: null,
|
|
42
|
+
dataIndex: "number",
|
|
43
|
+
ellipsis: !0,
|
|
44
|
+
resizable: !0,
|
|
45
|
+
title: "流水号",
|
|
46
|
+
width: 150
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
autoHeight: !1,
|
|
50
|
+
autoWidth: !1,
|
|
51
|
+
cellComponent: "click_approve",
|
|
52
|
+
dataIndex: "context",
|
|
53
|
+
ellipsis: !0,
|
|
54
|
+
resizable: !0,
|
|
55
|
+
title: "流程主题",
|
|
56
|
+
width: 150
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
autoHeight: !1,
|
|
60
|
+
autoWidth: !1,
|
|
61
|
+
cellComponent: null,
|
|
62
|
+
dataIndex: "send_person__realname",
|
|
63
|
+
ellipsis: !0,
|
|
64
|
+
resizable: !0,
|
|
65
|
+
title: "发起人",
|
|
66
|
+
width: 150
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
autoHeight: !1,
|
|
70
|
+
autoWidth: !1,
|
|
71
|
+
cellComponent: "json_tag",
|
|
72
|
+
dataIndex: "approve_persons_m2m_json",
|
|
73
|
+
ellipsis: !0,
|
|
74
|
+
resizable: !0,
|
|
75
|
+
title: "待审批人",
|
|
76
|
+
width: 150
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
autoHeight: !1,
|
|
80
|
+
autoWidth: !1,
|
|
81
|
+
cellComponent: "json_tag",
|
|
82
|
+
dataIndex: "approved_persons_m2m_json",
|
|
83
|
+
ellipsis: !0,
|
|
84
|
+
resizable: !0,
|
|
85
|
+
title: "已审批人",
|
|
86
|
+
width: 150
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
autoHeight: !1,
|
|
90
|
+
autoWidth: !1,
|
|
91
|
+
cellComponent: "datetime",
|
|
92
|
+
dataIndex: "start_time",
|
|
93
|
+
ellipsis: !0,
|
|
94
|
+
resizable: !0,
|
|
95
|
+
title: "开始时间",
|
|
96
|
+
width: 150
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
autoHeight: !1,
|
|
100
|
+
autoWidth: !1,
|
|
101
|
+
cellComponent: "datetime",
|
|
102
|
+
dataIndex: "finish_time",
|
|
103
|
+
ellipsis: !0,
|
|
104
|
+
resizable: !0,
|
|
105
|
+
title: "结束时间",
|
|
106
|
+
width: 150
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
autoHeight: !1,
|
|
110
|
+
autoWidth: !1,
|
|
111
|
+
cellComponent: "tag",
|
|
112
|
+
colorMap: {
|
|
113
|
+
待提交: "green",
|
|
114
|
+
审批中: "cyan",
|
|
115
|
+
审批通过: "blue",
|
|
116
|
+
驳回待提交: "purple",
|
|
117
|
+
已撤销: "pink"
|
|
118
|
+
},
|
|
119
|
+
contentMap: {
|
|
120
|
+
待提交: "待提交",
|
|
121
|
+
审批中: "审批中",
|
|
122
|
+
审批通过: "审批通过",
|
|
123
|
+
驳回待提交: "驳回待提交",
|
|
124
|
+
已撤销: "已撤销"
|
|
125
|
+
},
|
|
126
|
+
dataIndex: "display_process_status",
|
|
127
|
+
ellipsis: !0,
|
|
128
|
+
filterMultiple: !0,
|
|
129
|
+
filters: [
|
|
130
|
+
{
|
|
131
|
+
value: "待提交",
|
|
132
|
+
text: "待提交"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
value: "审批中",
|
|
136
|
+
text: "审批中"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
value: "审批通过",
|
|
140
|
+
text: "审批通过"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: "驳回待提交",
|
|
144
|
+
text: "驳回待提交"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
value: "已撤销",
|
|
148
|
+
text: "已撤销"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
resizable: !0,
|
|
152
|
+
title: "流程状态",
|
|
153
|
+
width: 150
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
autoHeight: !1,
|
|
157
|
+
autoWidth: !1,
|
|
158
|
+
cellComponent: "tag",
|
|
159
|
+
colorMap: {
|
|
160
|
+
ok: "green",
|
|
161
|
+
error: "cyan"
|
|
162
|
+
},
|
|
163
|
+
contentMap: {
|
|
164
|
+
ok: "通过",
|
|
165
|
+
error: "错误"
|
|
166
|
+
},
|
|
167
|
+
dataIndex: "data_check_status",
|
|
168
|
+
ellipsis: !0,
|
|
169
|
+
filterMultiple: !0,
|
|
170
|
+
filters: [{
|
|
171
|
+
value: "ok",
|
|
172
|
+
text: "通过"
|
|
173
|
+
}, {
|
|
174
|
+
value: "error",
|
|
175
|
+
text: "错误"
|
|
176
|
+
}],
|
|
177
|
+
resizable: !0,
|
|
178
|
+
title: "校验状态",
|
|
179
|
+
width: 150
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
autoHeight: !1,
|
|
183
|
+
autoWidth: !1,
|
|
184
|
+
cellComponent: "modal",
|
|
185
|
+
dataIndex: "message",
|
|
186
|
+
ellipsis: !0,
|
|
187
|
+
resizable: !0,
|
|
188
|
+
title: "校验信息",
|
|
189
|
+
width: 150
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
autoHeight: !1,
|
|
193
|
+
autoWidth: !1,
|
|
194
|
+
cellComponent: "datetime",
|
|
195
|
+
dataIndex: "cancel_time",
|
|
196
|
+
ellipsis: !0,
|
|
197
|
+
resizable: !0,
|
|
198
|
+
title: "删除时间",
|
|
199
|
+
width: 150
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
autoHeight: !1,
|
|
203
|
+
autoWidth: !1,
|
|
204
|
+
cellComponent: null,
|
|
205
|
+
dataIndex: "cancel_bz",
|
|
206
|
+
ellipsis: !0,
|
|
207
|
+
resizable: !0,
|
|
208
|
+
title: "删除原因",
|
|
209
|
+
width: 150
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
autoHeight: !1,
|
|
213
|
+
autoWidth: !1,
|
|
214
|
+
cellComponent: "tag",
|
|
215
|
+
colorMap: {
|
|
216
|
+
正常: "green",
|
|
217
|
+
已修改: "orange",
|
|
218
|
+
已删除: "red"
|
|
219
|
+
},
|
|
220
|
+
contentMap: {
|
|
221
|
+
正常: "正常",
|
|
222
|
+
已修改: "已修改",
|
|
223
|
+
已删除: "已删除"
|
|
224
|
+
},
|
|
225
|
+
dataIndex: "modify_status",
|
|
226
|
+
ellipsis: !0,
|
|
227
|
+
filterMultiple: !0,
|
|
228
|
+
filters: [
|
|
229
|
+
{
|
|
230
|
+
value: "正常",
|
|
231
|
+
text: "正常"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
value: "已修改",
|
|
235
|
+
text: "已修改"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
value: "已删除",
|
|
239
|
+
text: "已删除"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
resizable: !0,
|
|
243
|
+
title: "修改状态",
|
|
244
|
+
width: 120
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
autoHeight: !1,
|
|
248
|
+
autoWidth: !1,
|
|
249
|
+
cellComponent: null,
|
|
250
|
+
dataIndex: "modify_source__number",
|
|
251
|
+
ellipsis: !0,
|
|
252
|
+
resizable: !0,
|
|
253
|
+
title: "修改来源",
|
|
254
|
+
width: 150
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
autoHeight: !1,
|
|
258
|
+
autoWidth: !1,
|
|
259
|
+
cellComponent: "tag",
|
|
260
|
+
colorMap: {
|
|
261
|
+
true: "green",
|
|
262
|
+
false: "default"
|
|
263
|
+
},
|
|
264
|
+
contentMap: {
|
|
265
|
+
true: "可修改",
|
|
266
|
+
false: "不可修改"
|
|
267
|
+
},
|
|
268
|
+
dataIndex: "is_modifiable",
|
|
269
|
+
ellipsis: !0,
|
|
270
|
+
resizable: !0,
|
|
271
|
+
title: "是否可修改",
|
|
272
|
+
width: 120
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
id: "approve-approve_record",
|
|
276
|
+
is_normal_model: !0,
|
|
277
|
+
list_url: "/approve/query_approve_record_list",
|
|
278
|
+
modelType: "approve-approve_record",
|
|
279
|
+
query_params: { is_my_send: !0 },
|
|
280
|
+
row_actions: [
|
|
281
|
+
{
|
|
282
|
+
danger: !1,
|
|
283
|
+
disableCode: {
|
|
284
|
+
enable: !0,
|
|
285
|
+
code: "async function run({ table_id, record, context, settings }) {\n return record.process_status !== 'init' && record.result_status!=='reject';\n}\n"
|
|
286
|
+
},
|
|
287
|
+
is_dropdown: !0,
|
|
288
|
+
label: "提交",
|
|
289
|
+
settings: {},
|
|
290
|
+
type: "primary",
|
|
291
|
+
action: "commit_approve",
|
|
292
|
+
code: "async function run({ table_id, record, context, settings }) {\n // console.log('record', JSON.stringify(record));\n // console.log('context', JSON.stringify(context));\n // console.log('settings', JSON.stringify(settings));\n // const { tables, formModel } = context;\n // const currentTable = tables[table_id];\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = currentTable;\n\n // try {\n // const res = self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n if (record.process_status != 'init' && record.result_status != 'reject') {\n throw new Error('仅能提交未提交或驳回的审批数据');\n }\n return { ids: [record.id] };\n}\n"
|
|
293
|
+
},
|
|
294
|
+
t(),
|
|
295
|
+
{
|
|
296
|
+
danger: !1,
|
|
297
|
+
is_dropdown: !0,
|
|
298
|
+
label: "复制",
|
|
299
|
+
settings: {},
|
|
300
|
+
type: "default",
|
|
301
|
+
action: "copy_approve",
|
|
302
|
+
code: "async function run({ table_id, record, context, settings }) {\n // 复制为新审批:取数、清空只读动态值、重算单据编号/流水号等逻辑统一由 copy_approve handler 处理\n return { id: record.id };\n}\n"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
danger: !1,
|
|
306
|
+
disableCode: {
|
|
307
|
+
enable: !0,
|
|
308
|
+
code: "async function run({ table_id, record, context, settings }) {\n const cancellable = record.process_status === 'init'\n || record.result_status === 'reject'\n || record.process_status === 'approving';\n return !cancellable;\n}\n"
|
|
309
|
+
},
|
|
310
|
+
is_dropdown: !0,
|
|
311
|
+
label: "撤销",
|
|
312
|
+
settings: {},
|
|
313
|
+
type: "primary",
|
|
314
|
+
action: "cancel_approve",
|
|
315
|
+
code: "async function run({ table_id, record, context, settings }) {\n const cancellable = record.process_status === 'init'\n || record.result_status === 'reject'\n || record.process_status === 'approving';\n if (!cancellable) {\n throw new Error('仅能撤销未提交、驳回或审批中的审批数据');\n }\n return { ids: [record.id] };\n}"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
danger: !1,
|
|
319
|
+
disableCode: {
|
|
320
|
+
enable: !0,
|
|
321
|
+
code: "async function run({ table_id, record, context, settings }) {\n return record.process_status !== 'approving';\n}\n"
|
|
322
|
+
},
|
|
323
|
+
is_dropdown: !0,
|
|
324
|
+
label: "催办",
|
|
325
|
+
settings: {},
|
|
326
|
+
type: "primary",
|
|
327
|
+
action: "send_reminder",
|
|
328
|
+
code: "async function run({ table_id, record, context, settings }) {\n if (record.process_status != 'approving') {\n throw new Error('仅能催办审批中的审批');\n }\n return { ids: [record.process_instance_id] };\n}\n"
|
|
329
|
+
},
|
|
330
|
+
e()
|
|
331
|
+
],
|
|
332
|
+
search_config: [
|
|
333
|
+
{
|
|
334
|
+
allowClear: !0,
|
|
335
|
+
autocomplete: "off",
|
|
336
|
+
class_name: "str",
|
|
337
|
+
field_name: "number",
|
|
338
|
+
format: "input",
|
|
339
|
+
inputType: "text",
|
|
340
|
+
label: "流水号",
|
|
341
|
+
operator_list: [
|
|
342
|
+
"eq",
|
|
343
|
+
"contains",
|
|
344
|
+
"startswith",
|
|
345
|
+
"not_eq",
|
|
346
|
+
"is_or_not_blank_or_null"
|
|
347
|
+
],
|
|
348
|
+
type: "input"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
allowClear: !0,
|
|
352
|
+
autocomplete: "off",
|
|
353
|
+
class_name: "str",
|
|
354
|
+
field_name: "display_process_status",
|
|
355
|
+
format: "choices",
|
|
356
|
+
label: "流程状态",
|
|
357
|
+
mode: "tags",
|
|
358
|
+
operator_list: [
|
|
359
|
+
"eq",
|
|
360
|
+
"in",
|
|
361
|
+
"notin"
|
|
362
|
+
],
|
|
363
|
+
options: [
|
|
364
|
+
{
|
|
365
|
+
value: "待提交",
|
|
366
|
+
label: "待提交"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
value: "审批中",
|
|
370
|
+
label: "审批中"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
value: "审批通过",
|
|
374
|
+
label: "审批通过"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
value: "驳回待提交",
|
|
378
|
+
label: "驳回待提交"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: "已撤销",
|
|
382
|
+
label: "已撤销"
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
size: "small",
|
|
386
|
+
type: "select"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
allowClear: !0,
|
|
390
|
+
autocomplete: "off",
|
|
391
|
+
class_name: "datetime",
|
|
392
|
+
dateFormat: "YYYY-MM-DD",
|
|
393
|
+
field_name: "start_time",
|
|
394
|
+
format: "input",
|
|
395
|
+
label: "开始时间",
|
|
396
|
+
operator_list: [
|
|
397
|
+
"between",
|
|
398
|
+
"gt",
|
|
399
|
+
"lt",
|
|
400
|
+
"eq",
|
|
401
|
+
"gte",
|
|
402
|
+
"lte",
|
|
403
|
+
"notbetween",
|
|
404
|
+
"_eq",
|
|
405
|
+
"is_or_not_null",
|
|
406
|
+
"not_eq"
|
|
407
|
+
],
|
|
408
|
+
showTime: !1,
|
|
409
|
+
size: "small",
|
|
410
|
+
type: "datepicker",
|
|
411
|
+
valueFormat: "YYYY-MM-DD"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
allowClear: !0,
|
|
415
|
+
autocomplete: "off",
|
|
416
|
+
class_name: "datetime",
|
|
417
|
+
dateFormat: "YYYY-MM-DD",
|
|
418
|
+
field_name: "finish_time",
|
|
419
|
+
format: "input",
|
|
420
|
+
label: "结束时间",
|
|
421
|
+
operator_list: [
|
|
422
|
+
"between",
|
|
423
|
+
"gt",
|
|
424
|
+
"lt",
|
|
425
|
+
"eq",
|
|
426
|
+
"gte",
|
|
427
|
+
"lte",
|
|
428
|
+
"notbetween",
|
|
429
|
+
"_eq",
|
|
430
|
+
"is_or_not_null",
|
|
431
|
+
"not_eq"
|
|
432
|
+
],
|
|
433
|
+
showTime: !1,
|
|
434
|
+
size: "small",
|
|
435
|
+
type: "datepicker",
|
|
436
|
+
valueFormat: "YYYY-MM-DD"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
allowClear: !0,
|
|
440
|
+
autocomplete: "off",
|
|
441
|
+
class_name: "str",
|
|
442
|
+
field_name: "modify_status",
|
|
443
|
+
format: "choices",
|
|
444
|
+
label: "修改状态",
|
|
445
|
+
mode: "tags",
|
|
446
|
+
operator_list: [
|
|
447
|
+
"eq",
|
|
448
|
+
"in",
|
|
449
|
+
"notin"
|
|
450
|
+
],
|
|
451
|
+
options: [
|
|
452
|
+
{
|
|
453
|
+
value: "正常",
|
|
454
|
+
label: "正常"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
value: "已修改",
|
|
458
|
+
label: "已修改"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
value: "已删除",
|
|
462
|
+
label: "已删除"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
size: "small",
|
|
466
|
+
type: "select"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
allowClear: !0,
|
|
470
|
+
autocomplete: "off",
|
|
471
|
+
class_name: "str",
|
|
472
|
+
field_name: "modify_source__number",
|
|
473
|
+
format: "input",
|
|
474
|
+
inputType: "text",
|
|
475
|
+
label: "修改来源",
|
|
476
|
+
operator_list: [
|
|
477
|
+
"eq",
|
|
478
|
+
"contains",
|
|
479
|
+
"is_or_not_blank_or_null"
|
|
480
|
+
],
|
|
481
|
+
type: "input"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
allowClear: !0,
|
|
485
|
+
autocomplete: "off",
|
|
486
|
+
class_name: "bool",
|
|
487
|
+
field_name: "is_modifiable",
|
|
488
|
+
format: "choices",
|
|
489
|
+
label: "是否可修改",
|
|
490
|
+
mode: "tags",
|
|
491
|
+
operator_list: [
|
|
492
|
+
"eq",
|
|
493
|
+
"in",
|
|
494
|
+
"notin"
|
|
495
|
+
],
|
|
496
|
+
options: [{
|
|
497
|
+
value: !0,
|
|
498
|
+
label: "可修改"
|
|
499
|
+
}, {
|
|
500
|
+
value: !1,
|
|
501
|
+
label: "不可修改"
|
|
502
|
+
}],
|
|
503
|
+
size: "small",
|
|
504
|
+
type: "select"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
title: ""
|
|
508
|
+
}
|
|
509
|
+
}), r = () => ({
|
|
510
|
+
version: 1,
|
|
511
|
+
columns: [
|
|
512
|
+
{
|
|
513
|
+
type: "tables",
|
|
514
|
+
tables: []
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
type: "form",
|
|
518
|
+
title: "",
|
|
519
|
+
form: {
|
|
520
|
+
settings: {
|
|
521
|
+
labelAlign: "right",
|
|
522
|
+
layout: "vertical",
|
|
523
|
+
col: []
|
|
524
|
+
},
|
|
525
|
+
dynamicFieldList: [{
|
|
526
|
+
group_name: "",
|
|
527
|
+
children: []
|
|
528
|
+
}],
|
|
529
|
+
model: { update_field_list: [] },
|
|
530
|
+
rules: {},
|
|
531
|
+
options: {}
|
|
532
|
+
},
|
|
533
|
+
actions: [{
|
|
534
|
+
danger: !1,
|
|
535
|
+
label: "保存",
|
|
536
|
+
settings: {},
|
|
537
|
+
showCode: {
|
|
538
|
+
code: "async function run({ context, settings }) {\n const { isEdit } = context;\n return !isEdit;\n}\n",
|
|
539
|
+
enable: !1
|
|
540
|
+
},
|
|
541
|
+
type: "primary",
|
|
542
|
+
action: "save_approve",
|
|
543
|
+
code: "async function run({ context, settings }) {\n const { tables, formModel } = context;\n return { data: context.formModel };\n}\n"
|
|
544
|
+
}, {
|
|
545
|
+
danger: !1,
|
|
546
|
+
label: "新建",
|
|
547
|
+
settings: {},
|
|
548
|
+
showCode: {
|
|
549
|
+
enable: !0,
|
|
550
|
+
code: "async function run({ context, settings }) {\n const { isEdit } = context;\n return !!isEdit;\n}\n"
|
|
551
|
+
},
|
|
552
|
+
type: "default",
|
|
553
|
+
action: "clear_form"
|
|
554
|
+
}]
|
|
555
|
+
},
|
|
556
|
+
n()
|
|
557
|
+
]
|
|
558
|
+
});
|
|
559
|
+
//#endregion
|
|
560
|
+
export { r as default, n as getDataListConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-VdDMlY4e.js","names":[],"sources":["../src/components/approval/configs/approval/default.ts"],"sourcesContent":["import { ApprovalSetting, DataListSection } from '../../typing';\n// 修改/删除两个 action 的「判断 + 取数」片段抽到 recordActions.ts:\n// 列表页行按钮与详情页按钮共用同一份来源,避免两边逻辑漂移。\nimport { getCancelAgreeApproveAction, getEditApproveAction } from './recordActions';\n\n/**\n * 「审批列表」列的默认配置。\n *\n * 不带任何入参:配置里与节点相关的东西一律用 {{xxx}} 占位符表示(见 menu_flag 条件),\n * 实际值由执行查询处注入(src/views/approval/utils.ts::resolveParamValue)。\n * 这样同一份配置可以直接同步到其他节点,不需要按节点改写。\n */\nexport const getDataListConfig = (): DataListSection => {\n return {\n type: 'data_list',\n table: {\n actions: [\n {\n danger: false,\n disableCode: {\n code: \"async function run({ context, settings }) {\\n console.log('context', JSON.stringify(context));\\n console.log('settings', JSON.stringify(settings));\\n const { tables, formModel } = context;\\n // const table = tables['approve-approve_record'];\\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\\n\\n // try {\\n // const res = await self.callHost('getApiData')({}, '/test/');\\n // } catch (e) {\\n // console.error('call error', JSON.stringify(e));\\n // }\\n return true;\\n}\\n\",\n enable: false,\n },\n label: '提交',\n settings: {},\n showCode: {\n code: \"async function run({ context, settings }) {\\n console.log('context', JSON.stringify(context));\\n console.log('settings', JSON.stringify(settings));\\n const { tables, formModel } = context;\\n // const table = tables['approve-approve_record'];\\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\\n\\n // try {\\n // const res = await self.callHost('getApiData')({}, '/test/');\\n // } catch (e) {\\n // console.error('call error', JSON.stringify(e));\\n // }\\n return true;\\n}\\n\",\n enable: false,\n },\n type: 'primary',\n action: 'commit_approve',\n code: \"async function run({ table_id, context, settings }) {\\n console.log('context', JSON.stringify(context));\\n console.log('settings', JSON.stringify(settings));\\n const { tables, formModel } = context;\\n const table = tables['approve-approve_record'];\\n const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\\n if (!selectedRowKeys || selectedRowKeys.length == 0) {\\n throw new Error('请选择未提交的审批数据');\\n }\\n for (const item of selectedRecord) {\\n if (item.process_status != 'init') {\\n throw new Error('仅能提交未提交的审批数据');\\n }\\n }\\n // try {\\n // const res = await self.callHost('getApiData')({}, '/test/');\\n // } catch (e) {\\n // console.error('call error', JSON.stringify(e));\\n // }\\n return { ids: selectedRowKeys };\\n}\\n\",\n },\n ],\n base_conditions: [\n [\n {\n class_name: 'bool',\n field_name: 'is_active',\n format: 'choices',\n operator: 'eq',\n value: [true],\n value_type: 'fixed',\n },\n {\n class_name: 'str',\n field_name: 'menu_flag',\n format: 'input',\n operator: 'eq',\n value: ['{{menu_flag}}'],\n value_type: 'fixed',\n },\n ],\n ],\n columns: [\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: null,\n dataIndex: 'number',\n ellipsis: true,\n resizable: true,\n title: '流水号',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'click_approve',\n dataIndex: 'context',\n ellipsis: true,\n resizable: true,\n title: '流程主题',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: null,\n dataIndex: 'send_person__realname',\n ellipsis: true,\n resizable: true,\n title: '发起人',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'json_tag',\n dataIndex: 'approve_persons_m2m_json',\n ellipsis: true,\n resizable: true,\n title: '待审批人',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'json_tag',\n dataIndex: 'approved_persons_m2m_json',\n ellipsis: true,\n resizable: true,\n title: '已审批人',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'datetime',\n dataIndex: 'start_time',\n ellipsis: true,\n resizable: true,\n title: '开始时间',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'datetime',\n dataIndex: 'finish_time',\n ellipsis: true,\n resizable: true,\n title: '结束时间',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'tag',\n colorMap: {\n 待提交: 'green',\n 审批中: 'cyan',\n 审批通过: 'blue',\n 驳回待提交: 'purple',\n 已撤销: 'pink',\n },\n contentMap: {\n 待提交: '待提交',\n 审批中: '审批中',\n 审批通过: '审批通过',\n 驳回待提交: '驳回待提交',\n 已撤销: '已撤销',\n },\n dataIndex: 'display_process_status',\n ellipsis: true,\n filterMultiple: true,\n filters: [\n {\n value: '待提交',\n text: '待提交',\n },\n {\n value: '审批中',\n text: '审批中',\n },\n {\n value: '审批通过',\n text: '审批通过',\n },\n {\n value: '驳回待提交',\n text: '驳回待提交',\n },\n {\n value: '已撤销',\n text: '已撤销',\n },\n ],\n resizable: true,\n title: '流程状态',\n width: 150,\n },\n\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'tag',\n colorMap: {\n ok: 'green',\n error: 'cyan',\n },\n contentMap: {\n ok: '通过',\n error: '错误',\n },\n dataIndex: 'data_check_status',\n ellipsis: true,\n filterMultiple: true,\n filters: [\n {\n value: 'ok',\n text: '通过',\n },\n {\n value: 'error',\n text: '错误',\n },\n ],\n resizable: true,\n title: '校验状态',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'modal',\n dataIndex: 'message',\n ellipsis: true,\n resizable: true,\n title: '校验信息',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'datetime',\n dataIndex: 'cancel_time',\n ellipsis: true,\n resizable: true,\n title: '删除时间',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: null,\n dataIndex: 'cancel_bz',\n ellipsis: true,\n resizable: true,\n title: '删除原因',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'tag',\n colorMap: {\n 正常: 'green',\n 已修改: 'orange',\n 已删除: 'red',\n },\n contentMap: {\n 正常: '正常',\n 已修改: '已修改',\n 已删除: '已删除',\n },\n dataIndex: 'modify_status',\n ellipsis: true,\n filterMultiple: true,\n filters: [\n {\n value: '正常',\n text: '正常',\n },\n {\n value: '已修改',\n text: '已修改',\n },\n {\n value: '已删除',\n text: '已删除',\n },\n ],\n resizable: true,\n title: '修改状态',\n width: 120,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: null,\n dataIndex: 'modify_source__number',\n ellipsis: true,\n resizable: true,\n title: '修改来源',\n width: 150,\n },\n {\n autoHeight: false,\n autoWidth: false,\n cellComponent: 'tag',\n colorMap: {\n true: 'green',\n false: 'default',\n },\n contentMap: {\n true: '可修改',\n false: '不可修改',\n },\n dataIndex: 'is_modifiable',\n ellipsis: true,\n resizable: true,\n title: '是否可修改',\n width: 120,\n },\n ],\n id: 'approve-approve_record',\n is_normal_model: true,\n list_url: '/approve/query_approve_record_list',\n modelType: 'approve-approve_record',\n query_params: {\n is_my_send: true,\n },\n row_actions: [\n {\n danger: false,\n disableCode: {\n enable: true,\n code: \"async function run({ table_id, record, context, settings }) {\\n return record.process_status !== 'init' && record.result_status!=='reject';\\n}\\n\",\n },\n is_dropdown: true,\n label: '提交',\n settings: {},\n type: 'primary',\n action: 'commit_approve',\n code: \"async function run({ table_id, record, context, settings }) {\\n // console.log('record', JSON.stringify(record));\\n // console.log('context', JSON.stringify(context));\\n // console.log('settings', JSON.stringify(settings));\\n // const { tables, formModel } = context;\\n // const currentTable = tables[table_id];\\n // const { searchConditions, selectedRowKeys, selectedRecord, datasource } = currentTable;\\n\\n // try {\\n // const res = self.callHost('getApiData')({}, '/test/');\\n // } catch (e) {\\n // console.error('call error', JSON.stringify(e));\\n // }\\n if (record.process_status != 'init' && record.result_status != 'reject') {\\n throw new Error('仅能提交未提交或驳回的审批数据');\\n }\\n return { ids: [record.id] };\\n}\\n\",\n },\n getEditApproveAction(),\n {\n danger: false,\n is_dropdown: true,\n label: '复制',\n settings: {},\n type: 'default',\n action: 'copy_approve',\n code: 'async function run({ table_id, record, context, settings }) {\\n // 复制为新审批:取数、清空只读动态值、重算单据编号/流水号等逻辑统一由 copy_approve handler 处理\\n return { id: record.id };\\n}\\n',\n },\n {\n danger: false,\n disableCode: {\n enable: true,\n code: \"async function run({ table_id, record, context, settings }) {\\n const cancellable = record.process_status === 'init'\\n || record.result_status === 'reject'\\n || record.process_status === 'approving';\\n return !cancellable;\\n}\\n\",\n },\n is_dropdown: true,\n label: '撤销',\n settings: {},\n type: 'primary',\n action: 'cancel_approve',\n code: \"async function run({ table_id, record, context, settings }) {\\n const cancellable = record.process_status === 'init'\\n || record.result_status === 'reject'\\n || record.process_status === 'approving';\\n if (!cancellable) {\\n throw new Error('仅能撤销未提交、驳回或审批中的审批数据');\\n }\\n return { ids: [record.id] };\\n}\",\n },\n {\n danger: false,\n disableCode: {\n enable: true,\n code: \"async function run({ table_id, record, context, settings }) {\\n return record.process_status !== 'approving';\\n}\\n\",\n },\n is_dropdown: true,\n label: '催办',\n settings: {},\n type: 'primary',\n action: 'send_reminder',\n code: \"async function run({ table_id, record, context, settings }) {\\n if (record.process_status != 'approving') {\\n throw new Error('仅能催办审批中的审批');\\n }\\n return { ids: [record.process_instance_id] };\\n}\\n\",\n },\n getCancelAgreeApproveAction(),\n ],\n search_config: [\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'str',\n field_name: 'number',\n format: 'input',\n inputType: 'text',\n label: '流水号',\n operator_list: ['eq', 'contains', 'startswith', 'not_eq', 'is_or_not_blank_or_null'],\n type: 'input',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'str',\n field_name: 'display_process_status',\n format: 'choices',\n label: '流程状态',\n mode: 'tags',\n operator_list: ['eq', 'in', 'notin'],\n options: [\n {\n value: '待提交',\n label: '待提交',\n },\n {\n value: '审批中',\n label: '审批中',\n },\n {\n value: '审批通过',\n label: '审批通过',\n },\n {\n value: '驳回待提交',\n label: '驳回待提交',\n },\n {\n value: '已撤销',\n label: '已撤销',\n },\n ],\n size: 'small',\n type: 'select',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'datetime',\n dateFormat: 'YYYY-MM-DD',\n field_name: 'start_time',\n format: 'input',\n label: '开始时间',\n operator_list: [\n 'between',\n 'gt',\n 'lt',\n 'eq',\n 'gte',\n 'lte',\n 'notbetween',\n '_eq',\n 'is_or_not_null',\n 'not_eq',\n ],\n showTime: false,\n size: 'small',\n type: 'datepicker',\n valueFormat: 'YYYY-MM-DD',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'datetime',\n dateFormat: 'YYYY-MM-DD',\n field_name: 'finish_time',\n format: 'input',\n label: '结束时间',\n operator_list: [\n 'between',\n 'gt',\n 'lt',\n 'eq',\n 'gte',\n 'lte',\n 'notbetween',\n '_eq',\n 'is_or_not_null',\n 'not_eq',\n ],\n showTime: false,\n size: 'small',\n type: 'datepicker',\n valueFormat: 'YYYY-MM-DD',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'str',\n field_name: 'modify_status',\n format: 'choices',\n label: '修改状态',\n mode: 'tags',\n operator_list: ['eq', 'in', 'notin'],\n options: [\n {\n value: '正常',\n label: '正常',\n },\n {\n value: '已修改',\n label: '已修改',\n },\n {\n value: '已删除',\n label: '已删除',\n },\n ],\n size: 'small',\n type: 'select',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'str',\n field_name: 'modify_source__number',\n format: 'input',\n inputType: 'text',\n label: '修改来源',\n operator_list: ['eq', 'contains', 'is_or_not_blank_or_null'],\n type: 'input',\n },\n {\n allowClear: true,\n autocomplete: 'off',\n class_name: 'bool',\n field_name: 'is_modifiable',\n format: 'choices',\n label: '是否可修改',\n mode: 'tags',\n operator_list: ['eq', 'in', 'notin'],\n options: [\n {\n value: true,\n label: '可修改',\n },\n {\n value: false,\n label: '不可修改',\n },\n ],\n size: 'small',\n type: 'select',\n },\n ],\n title: '',\n },\n };\n};\n// 默认配置不带入参:配置内容必须与节点无关(与节点相关的东西一律用 {{xxx}} 占位符 +\n// 执行查询时注入),所以这里不再接收 menu_flag。\nexport default () => {\n const config: ApprovalSetting = {\n version: 1,\n columns: [\n {\n type: 'tables',\n tables: [],\n },\n {\n type: 'form',\n title: '',\n form: {\n settings: {\n labelAlign: 'right',\n layout: 'vertical',\n col: [],\n },\n dynamicFieldList: [\n {\n group_name: '',\n children: [],\n },\n ],\n model: {\n update_field_list: [],\n },\n rules: {},\n options: {},\n },\n actions: [\n {\n danger: false,\n label: '保存',\n settings: {},\n showCode: {\n code: 'async function run({ context, settings }) {\\n const { isEdit } = context;\\n return !isEdit;\\n}\\n',\n enable: false,\n },\n type: 'primary',\n action: 'save_approve',\n code: 'async function run({ context, settings }) {\\n const { tables, formModel } = context;\\n return { data: context.formModel };\\n}\\n',\n },\n {\n danger: false,\n label: '新建',\n settings: {},\n showCode: {\n enable: true,\n code: 'async function run({ context, settings }) {\\n const { isEdit } = context;\\n return !!isEdit;\\n}\\n',\n },\n type: 'default',\n action: 'clear_form',\n },\n ],\n },\n getDataListConfig(),\n ],\n };\n return config;\n};\n"],"mappings":";;AAYA,IAAa,WACJ;CACL,MAAM;CACN,OAAO;EACL,SAAS,CACP;GACE,QAAQ;GACR,aAAa;IACX,MAAM;IACN,QAAQ;IACT;GACD,OAAO;GACP,UAAU,EAAE;GACZ,UAAU;IACR,MAAM;IACN,QAAQ;IACT;GACD,MAAM;GACN,QAAQ;GACR,MAAM;GACP,CACF;EACD,iBAAiB,CACf,CACE;GACE,YAAY;GACZ,YAAY;GACZ,QAAQ;GACR,UAAU;GACV,OAAO,CAAC,GAAK;GACb,YAAY;GACb,EACD;GACE,YAAY;GACZ,YAAY;GACZ,QAAQ;GACR,UAAU;GACV,OAAO,CAAC,gBAAgB;GACxB,YAAY;GACb,CACF,CACF;EACD,SAAS;GACP;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,UAAU;KACR,KAAK;KACL,KAAK;KACL,MAAM;KACN,OAAO;KACP,KAAK;KACN;IACD,YAAY;KACV,KAAK;KACL,KAAK;KACL,MAAM;KACN,OAAO;KACP,KAAK;KACN;IACD,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,SAAS;KACP;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACF;IACD,WAAW;IACX,OAAO;IACP,OAAO;IACR;GAED;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,UAAU;KACR,IAAI;KACJ,OAAO;KACR;IACD,YAAY;KACV,IAAI;KACJ,OAAO;KACR;IACD,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,SAAS,CACP;KACE,OAAO;KACP,MAAM;KACP,EACD;KACE,OAAO;KACP,MAAM;KACP,CACF;IACD,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,UAAU;KACR,IAAI;KACJ,KAAK;KACL,KAAK;KACN;IACD,YAAY;KACV,IAAI;KACJ,KAAK;KACL,KAAK;KACN;IACD,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,SAAS;KACP;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACD;MACE,OAAO;MACP,MAAM;MACP;KACF;IACD,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,OAAO;IACR;GACD;IACE,YAAY;IACZ,WAAW;IACX,eAAe;IACf,UAAU;KACR,MAAM;KACN,OAAO;KACR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"}
|