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.
Files changed (198) hide show
  1. package/dist/ActionsConfig-BuvSvRbv.js +395 -0
  2. package/dist/ActionsConfig-BuvSvRbv.js.map +1 -0
  3. package/dist/ApprovalEditorModal-suKPJ-vN.js +48 -0
  4. package/dist/ApprovalEditorModal-suKPJ-vN.js.map +1 -0
  5. package/dist/CancelModal-BUi3ieI8.js +61 -0
  6. package/dist/CancelModal-BUi3ieI8.js.map +1 -0
  7. package/dist/Cell_click_approve-Dr83RkI-.js +244 -0
  8. package/dist/Cell_click_approve-Dr83RkI-.js.map +1 -0
  9. package/dist/JsonTags-BbWLqghI.js +66 -0
  10. package/dist/JsonTags-BbWLqghI.js.map +1 -0
  11. package/dist/MyProcess-FWGEwQcv.js +26434 -0
  12. package/dist/MyProcess-FWGEwQcv.js.map +1 -0
  13. package/dist/MyProcess.vue.d.ts +991 -0
  14. package/dist/approval-BW2WjPxY.js +167 -0
  15. package/dist/approval-BW2WjPxY.js.map +1 -0
  16. package/dist/approval-BaVHder3.js +18 -0
  17. package/dist/approval-BaVHder3.js.map +1 -0
  18. package/dist/approvalHistory-B2gpQbFC.js +868 -0
  19. package/dist/approvalHistory-B2gpQbFC.js.map +1 -0
  20. package/dist/approvalHistoryViewModal-DgLpv2ot.js +114 -0
  21. package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +1 -0
  22. package/dist/approvalPageConfig-D0zPXOUf.js +2437 -0
  23. package/dist/approvalPageConfig-D0zPXOUf.js.map +1 -0
  24. package/dist/approveLeftConfig-BOU_UgHp.js +136 -0
  25. package/dist/approveLeftConfig-BOU_UgHp.js.map +1 -0
  26. package/dist/codeHistoryViewModal-BfSjIbEU.js +103 -0
  27. package/dist/codeHistoryViewModal-BfSjIbEU.js.map +1 -0
  28. package/dist/columnTables-DLwtgcC7.js +1272 -0
  29. package/dist/columnTables-DLwtgcC7.js.map +1 -0
  30. package/dist/components/Cell_click_approve.vue.d.ts +5 -0
  31. package/dist/components/Cell_click_data_source.vue.d.ts +6 -0
  32. package/dist/components/Process/common/bpmnUtils.d.ts +8 -0
  33. package/dist/components/Process/common/global.d.ts +16 -0
  34. package/dist/components/Process/common/index.d.ts +5 -0
  35. package/dist/components/Process/component/JsonTags2.vue.d.ts +60 -0
  36. package/dist/components/Process/component/ValueInput2.vue.d.ts +74 -0
  37. package/dist/components/Process/component/columnNameField2.vue.d.ts +51 -0
  38. package/dist/components/Process/component/data.d.ts +157 -0
  39. package/dist/components/Process/customPanel/CustomContextPad.d.ts +31 -0
  40. package/dist/components/Process/customPanel/CustomPalette.d.ts +89 -0
  41. package/dist/components/Process/customPanel/customTranslate.d.ts +1 -0
  42. package/dist/components/Process/customPanel/index.d.ts +8 -0
  43. package/dist/components/Process/designer.vue.d.ts +589 -0
  44. package/dist/components/Process/flowable/init.d.ts +1 -0
  45. package/dist/components/Process/index.vue.d.ts +812 -0
  46. package/dist/components/Process/lang/zh.d.ts +249 -0
  47. package/dist/components/Process/panel/ButtonsPanel.vue.d.ts +24 -0
  48. package/dist/components/Process/panel/PropertiesPanel.vue.d.ts +24 -0
  49. package/dist/components/Process/panel/commonPanel.vue.d.ts +40 -0
  50. package/dist/components/Process/panel/conditionPanel.vue.d.ts +271 -0
  51. package/dist/components/Process/panel/executionListener.vue.d.ts +66 -0
  52. package/dist/components/Process/panel/formPanel.vue.d.ts +7 -0
  53. package/dist/components/Process/panel/multiInstance.vue.d.ts +33 -0
  54. package/dist/components/Process/panel/otherPanel.vue.d.ts +17 -0
  55. package/dist/components/Process/panel/taskListener.vue.d.ts +64 -0
  56. package/dist/components/Process/panel/taskPanel.vue.d.ts +254 -0
  57. package/dist/components/Process/viewer/index.vue.d.ts +41 -0
  58. package/dist/components/approval/ApprovalEditorModal.vue.d.ts +26 -0
  59. package/dist/components/approval/CostCompanySelect.vue.d.ts +29 -0
  60. package/dist/components/approval/CostDepartmentSelect.vue.d.ts +35 -0
  61. package/dist/components/approval/CreateByCascader.vue.d.ts +27 -0
  62. package/dist/components/approval/CreateBySelect.vue.d.ts +35 -0
  63. package/dist/components/approval/PostionCascader.vue.d.ts +26 -0
  64. package/dist/components/approval/SystemTime.vue.d.ts +38 -0
  65. package/dist/components/approval/approvalViewId.d.ts +36 -0
  66. package/dist/components/approval/components/CancelModal.vue.d.ts +25 -0
  67. package/dist/components/approval/components/FormCodeInput.vue.d.ts +33 -0
  68. package/dist/components/approval/components/FormContextInput.vue.d.ts +33 -0
  69. package/dist/components/approval/components/FormFlowOrgInput.vue.d.ts +40 -0
  70. package/dist/components/approval/components/actionsBar.vue.d.ts +17 -0
  71. package/dist/components/approval/components/approvalHistory/approvalHistoryViewModal.vue.d.ts +41 -0
  72. package/dist/components/approval/components/approvalHistory/dataStoreSettingHistory.vue.d.ts +55 -0
  73. package/dist/components/approval/components/approvalHistory/dataStoreSettingHistoryViewModal.vue.d.ts +41 -0
  74. package/dist/components/approval/components/approvalHistory/flowHistoryViewModal.vue.d.ts +41 -0
  75. package/dist/components/approval/components/approvalHistory/flowSettingHistory.vue.d.ts +55 -0
  76. package/dist/components/approval/components/approvalHistory/index.vue.d.ts +212 -0
  77. package/dist/components/approval/components/approvalHistory/pageSettingHistory.vue.d.ts +55 -0
  78. package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +112 -0
  79. package/dist/components/approval/components/approvalPageConfig/BaseConditions.vue.d.ts +205 -0
  80. package/dist/components/approval/components/approvalPageConfig/CodeEditorWraper.vue.d.ts +51 -0
  81. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +145 -0
  82. package/dist/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue.d.ts +137 -0
  83. package/dist/components/approval/components/approvalPageConfig/JsonInput.vue.d.ts +38 -0
  84. package/dist/components/approval/components/approvalPageConfig/JsonTags.vue.d.ts +26 -0
  85. package/dist/components/approval/components/approvalPageConfig/JsonText.vue.d.ts +36 -0
  86. package/dist/components/approval/components/approvalPageConfig/approveLeftConfig.vue.d.ts +6 -0
  87. package/dist/components/approval/components/approvalPageConfig/baseConfig.vue.d.ts +10 -0
  88. package/dist/components/approval/components/approvalPageConfig/cellEdit.vue.d.ts +23 -0
  89. package/dist/components/approval/components/approvalPageConfig/configSync.vue.d.ts +76 -0
  90. package/dist/components/approval/components/approvalPageConfig/confirmInput.vue.d.ts +26 -0
  91. package/dist/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue.d.ts +18 -0
  92. package/dist/components/approval/components/approvalPageConfig/index.vue.d.ts +11 -0
  93. package/dist/components/approval/components/approvalPageConfig/jsonConfig.vue.d.ts +16 -0
  94. package/dist/components/approval/components/approvalPageConfig/layoutSetting.vue.d.ts +9 -0
  95. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1184 -0
  96. package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +145 -0
  97. package/dist/components/approval/components/approvalPageConfig/operatorSelect.vue.d.ts +18 -0
  98. package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +166 -0
  99. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +802 -0
  100. package/dist/components/approval/components/codeHistory/codeHistory.vue.d.ts +53 -0
  101. package/dist/components/approval/components/codeHistory/codeHistoryViewModal.vue.d.ts +32 -0
  102. package/dist/components/approval/components/columnDataList.vue.d.ts +454 -0
  103. package/dist/components/approval/components/columnForm.vue.d.ts +26 -0
  104. package/dist/components/approval/components/columnTables.vue.d.ts +502 -0
  105. package/dist/components/approval/components/columnUnknown.vue.d.ts +2 -0
  106. package/dist/components/approval/components/dataStoreConfig/ConditionConfig.vue.d.ts +199 -0
  107. package/dist/components/approval/components/dataStoreConfig/ValueInput.vue.d.ts +37 -0
  108. package/dist/components/approval/components/dataStoreConfig/dataSourceDetial.vue.d.ts +22 -0
  109. package/dist/components/approval/components/dataStoreConfig/dataStoreConfig.vue.d.ts +554 -0
  110. package/dist/components/approval/components/dataStoreConfig/dataStoreConfigItem.vue.d.ts +434 -0
  111. package/dist/components/approval/components/dataStoreConfig/dataStoreTest.vue.d.ts +39 -0
  112. package/dist/components/approval/components/dataStoreConfig/dataStoreTestsItem.vue.d.ts +17 -0
  113. package/dist/components/approval/components/dataStoreConfig/formField.vue.d.ts +28 -0
  114. package/dist/components/approval/components/dataStoreConfig/formFieldMulType.vue.d.ts +96 -0
  115. package/dist/components/approval/components/dataStoreConfig/selectExcelColumn.vue.d.ts +26 -0
  116. package/dist/components/approval/components/dataStoreConfig/selectExcelType.vue.d.ts +28 -0
  117. package/dist/components/approval/components/debugCode/debugCode.vue.d.ts +214 -0
  118. package/dist/components/approval/components/drawerDataList.vue.d.ts +504 -0
  119. package/dist/components/approval/components/drawerTablesList.vue.d.ts +551 -0
  120. package/dist/components/approval/components/flowConfig/flowConfig.vue.d.ts +1097 -0
  121. package/dist/components/approval/components/flowConfig/selectCcGroup.vue.d.ts +9 -0
  122. package/dist/components/approval/components/flowConfig/selectUsers.vue.d.ts +9 -0
  123. package/dist/components/approval/components/modelTablesList.vue.d.ts +551 -0
  124. package/dist/components/approval/components/pageConfigHistory.vue.d.ts +2 -0
  125. package/dist/components/approval/components/search.vue.d.ts +238 -0
  126. package/dist/components/approval/components/searchSummary.vue.d.ts +100 -0
  127. package/dist/components/approval/components/table.vue.d.ts +416 -0
  128. package/dist/components/approval/components/tableModal.vue.d.ts +84 -0
  129. package/dist/components/approval/configs/approval/default.d.ts +11 -0
  130. package/dist/components/approval/configs/approval/recordActions.d.ts +22 -0
  131. package/dist/components/approval/core.vue.d.ts +53 -0
  132. package/dist/components/approval/example_code/example_code.d.ts +11 -0
  133. package/dist/components/approval/index.d.ts +18 -0
  134. package/dist/components/approval/index.vue.d.ts +2 -0
  135. package/dist/components/approval/migrate/index.d.ts +1 -0
  136. package/dist/components/approval/migrate/v0001.d.ts +2 -0
  137. package/dist/components/approval/store/context.d.ts +48 -0
  138. package/dist/components/approval/store/debugCode.d.ts +7 -0
  139. package/dist/components/approval/store/settingsState.d.ts +15 -0
  140. package/dist/components/approval/typing.d.ts +210 -0
  141. package/dist/components/approval/useApprovalRecordActions.d.ts +83 -0
  142. package/dist/components/approval/utils.d.ts +164 -0
  143. package/dist/components/approval_for_details.vue.d.ts +9 -0
  144. package/dist/components/flow/ElInputTag/index.vue.d.ts +46 -0
  145. package/dist/components/flow/Expression/index.vue.d.ts +48 -0
  146. package/dist/components/flow/Role/index.vue.d.ts +68 -0
  147. package/dist/components/flow/User/index.vue.d.ts +76 -0
  148. package/dist/config/packed-config.d.ts +26 -0
  149. package/dist/constants.d.ts +1 -0
  150. package/dist/core-BOc9ch_5.js +1631 -0
  151. package/dist/core-BOc9ch_5.js.map +1 -0
  152. package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js +114 -0
  153. package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +1 -0
  154. package/dist/debugCode-Cm9-WiUG.js +565 -0
  155. package/dist/debugCode-Cm9-WiUG.js.map +1 -0
  156. package/dist/debugCode-dD1YnQSD.js +11 -0
  157. package/dist/debugCode-dD1YnQSD.js.map +1 -0
  158. package/dist/default-VdDMlY4e.js +560 -0
  159. package/dist/default-VdDMlY4e.js.map +1 -0
  160. package/dist/example_code-C_xF8RRG.js +129 -0
  161. package/dist/example_code-C_xF8RRG.js.map +1 -0
  162. package/dist/flowHistoryViewModal-D8DJP7Te.js +109 -0
  163. package/dist/flowHistoryViewModal-D8DJP7Te.js.map +1 -0
  164. package/dist/index.d.ts +81 -0
  165. package/dist/index.js +507 -26691
  166. package/dist/index.js.map +1 -1
  167. package/dist/init-plugin-fQTSQzui.js +48 -0
  168. package/dist/init-plugin-fQTSQzui.js.map +1 -0
  169. package/dist/init-plugin.d.ts +57 -0
  170. package/dist/leftColumn-CsPjufue.js +209 -0
  171. package/dist/leftColumn-CsPjufue.js.map +1 -0
  172. package/dist/lyflowchart.css +1 -1
  173. package/dist/middleColumn-C7M6-eVo.js +107 -0
  174. package/dist/middleColumn-C7M6-eVo.js.map +1 -0
  175. package/dist/recordActions-BgFlNsGU.js +51 -0
  176. package/dist/recordActions-BgFlNsGU.js.map +1 -0
  177. package/dist/settingsState-CI81PG-i.js +19 -0
  178. package/dist/settingsState-CI81PG-i.js.map +1 -0
  179. package/dist/style.d.ts +3 -0
  180. package/dist/styles.d.ts +7 -0
  181. package/dist/tableConfig-uLXue-BS.js +2408 -0
  182. package/dist/tableConfig-uLXue-BS.js.map +1 -0
  183. package/dist/tableModal-BcYfVL02.js +124 -0
  184. package/dist/tableModal-BcYfVL02.js.map +1 -0
  185. package/dist/useApprovalRecordActions-BQ6MgV2L.js +843 -0
  186. package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +1 -0
  187. package/dist/utils/StrUtil.d.ts +52 -0
  188. package/dist/utils/function.d.ts +8 -0
  189. package/dist/utils-CLet2gLV.js +420 -0
  190. package/dist/utils-CLet2gLV.js.map +1 -0
  191. package/dist/v0001-OaBeBCXI.js +4 -0
  192. package/dist/v0001-OaBeBCXI.js.map +1 -0
  193. package/dist/{Cell_click_data_source-C8WEsBGB.js → viewer-Dv3kQsMf.js} +1839 -2724
  194. package/dist/viewer-Dv3kQsMf.js.map +1 -0
  195. package/dist/vue-print-next-HRweUmNi.js +683 -0
  196. package/dist/vue-print-next-HRweUmNi.js.map +1 -0
  197. package/package.json +39 -8
  198. package/dist/Cell_click_data_source-C8WEsBGB.js.map +0 -1
@@ -0,0 +1,2437 @@
1
+ import { t as e } from "./viewer-Dv3kQsMf.js";
2
+ import { t } from "./MyProcess-FWGEwQcv.js";
3
+ import { _ as n, g as r, o as i, v as a } from "./init-plugin-fQTSQzui.js";
4
+ import { n as o, r as s, t as c } from "./approval-BW2WjPxY.js";
5
+ import { D as l, S as u, d, v as f } from "./utils-CLet2gLV.js";
6
+ import { n as p, t as m } from "./debugCode-dD1YnQSD.js";
7
+ import { t as h } from "./approveLeftConfig-BOU_UgHp.js";
8
+ import { t as g } from "./JsonTags-BbWLqghI.js";
9
+ import { Fragment as _, Transition as v, TransitionGroup as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineAsyncComponent as D, defineComponent as O, h as k, mergeModels as A, normalizeStyle as j, onMounted as M, onUnmounted as N, openBlock as P, reactive as F, ref as I, renderList as L, resolveComponent as R, resolveDynamicComponent as ee, toDisplayString as z, unref as B, useModel as V, watch as H, withCtx as U } from "vue";
10
+ import { ExperimentOutlined as te, ExportOutlined as ne, ImportOutlined as re, SaveOutlined as ie } from "@ant-design/icons-vue";
11
+ import { Modal as ae, Tooltip as oe, message as W } from "ant-design-vue";
12
+ import { cloneDeep as G, debounce as K } from "lodash";
13
+ import se from "mitt";
14
+ //#region src/components/approval/components/approvalPageConfig/jsonConfig.vue?vue&type=script&lang.ts
15
+ var ce = O({
16
+ name: "tableConfig",
17
+ components: {},
18
+ props: { dataSource: {
19
+ type: Object,
20
+ required: !0
21
+ } },
22
+ emits: ["update:dataSource"],
23
+ setup(e, { emit: t }) {
24
+ return { handleUpdate: (e) => {
25
+ t("update:dataSource", e);
26
+ } };
27
+ }
28
+ });
29
+ //#endregion
30
+ //#region src/components/approval/components/approvalPageConfig/jsonConfig.vue
31
+ function le(e, t, n, r, i, a) {
32
+ let o = R("json-obj");
33
+ return P(), x(o, {
34
+ value: e.dataSource,
35
+ "onUpdate:value": e.handleUpdate,
36
+ mainMenuBar: !0,
37
+ mode: "text",
38
+ fullWidthButton: !0,
39
+ darkTheme: !0
40
+ }, null, 8, ["value", "onUpdate:value"]);
41
+ }
42
+ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
43
+ name: "ViewSettings",
44
+ components: {
45
+ MyProcess: t,
46
+ MyProcessViewer: e,
47
+ selectUsers: /* @__PURE__ */ O({
48
+ name: "selectUsers",
49
+ __name: "selectUsers",
50
+ props: {
51
+ modelValue: {},
52
+ modelModifiers: {}
53
+ },
54
+ emits: /* @__PURE__ */ A([], ["update:modelValue"]),
55
+ setup(e, { emit: t }) {
56
+ let n = V(e, "modelValue"), r = I([]), a = async () => {
57
+ r.value = (await i({ is_active: !0 }, "/org/query_person_list")).data;
58
+ }, o = (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0;
59
+ return M(() => {
60
+ a();
61
+ }), (e, t) => {
62
+ let i = R("a-select-option"), a = R("a-select");
63
+ return P(), x(a, {
64
+ value: n.value,
65
+ "onUpdate:value": t[0] ||= (e) => n.value = e,
66
+ allowClear: "",
67
+ placeholder: "请选择",
68
+ "show-search": "",
69
+ "filter-option": o,
70
+ size: "small",
71
+ mode: "multiple"
72
+ }, {
73
+ default: U(() => [(P(!0), C(_, null, L(r.value, (e) => (P(), x(i, {
74
+ key: e.id,
75
+ value: e.id,
76
+ name: e.realname
77
+ }, {
78
+ default: U(() => [T(z(e.realname), 1)]),
79
+ _: 2
80
+ }, 1032, ["value", "name"]))), 128))]),
81
+ _: 1
82
+ }, 8, ["value"]);
83
+ };
84
+ }
85
+ }),
86
+ selectCcGroup: /* @__PURE__ */ O({
87
+ name: "selectCcGroup",
88
+ __name: "selectCcGroup",
89
+ props: {
90
+ modelValue: {},
91
+ modelModifiers: {}
92
+ },
93
+ emits: /* @__PURE__ */ A([], ["update:modelValue"]),
94
+ setup(e, { emit: t }) {
95
+ let n = V(e, "modelValue"), r = I([]), a = async () => {
96
+ r.value = (await i({ is_active: !0 }, "/lyapprove/query_approval_position_list")).data;
97
+ }, o = (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0;
98
+ return M(() => {
99
+ a();
100
+ }), (e, t) => {
101
+ let i = R("a-select-option"), a = R("a-select");
102
+ return P(), x(a, {
103
+ value: n.value,
104
+ "onUpdate:value": t[0] ||= (e) => n.value = e,
105
+ allowClear: "",
106
+ placeholder: "请选择",
107
+ "show-search": "",
108
+ "filter-option": o,
109
+ size: "small"
110
+ }, {
111
+ default: U(() => [(P(!0), C(_, null, L(r.value, (e) => (P(), x(i, {
112
+ key: e.id,
113
+ value: e.id,
114
+ name: e.name
115
+ }, {
116
+ default: U(() => [T(z(e.name), 1)]),
117
+ _: 2
118
+ }, 1032, ["value", "name"]))), 128))]),
119
+ _: 1
120
+ }, 8, ["value"]);
121
+ };
122
+ }
123
+ })
124
+ },
125
+ props: {
126
+ value: {
127
+ type: Object,
128
+ default: {}
129
+ },
130
+ menuFlag: {
131
+ type: String,
132
+ default: ""
133
+ },
134
+ dataSource: {
135
+ type: Object,
136
+ default: {}
137
+ }
138
+ },
139
+ emits: ["update:value", "update:flow_name"],
140
+ setup(e, { emit: t }) {
141
+ let i = r(), a = n(), o = I(window.innerHeight - 260), s = (n) => {
142
+ let r = e.value || {};
143
+ r.content = n, t("update:value", r);
144
+ }, c = (n) => {
145
+ let r = e.value || {};
146
+ r.name = n, t("update:value", r);
147
+ }, l = (n) => {
148
+ let r = e.value || {};
149
+ r.enable_flow = n, t("update:value", r);
150
+ }, u = async (e) => {
151
+ console.log("xxxx handleFetchUsers params:", e);
152
+ let t = await i.post("/sys/query_person_detail_list", {
153
+ current: e.pageNum,
154
+ pageSize: e.pageSize,
155
+ name: e.userName,
156
+ org_id: a.currentOrg.id,
157
+ aim_org_id: a.currentOrg.id,
158
+ is_active: !0,
159
+ is_pagination: !0
160
+ });
161
+ return {
162
+ data: t.data,
163
+ total: t.total
164
+ };
165
+ }, d = K(() => {
166
+ o.value = window.innerHeight - 260;
167
+ }, 200), p = async (e) => {
168
+ console.log("xxxx handleFetchRoles params:", e);
169
+ let t = await i.post("/lyapprove/query_approval_position_list", {
170
+ current: e.pageNum,
171
+ pageSize: e.pageSize,
172
+ org_id: a.currentOrg.id,
173
+ aim_org_id: a.currentOrg.id
174
+ });
175
+ return {
176
+ data: t.data,
177
+ total: t.total
178
+ };
179
+ }, m = async () => {
180
+ console.log("handleFetchRoles");
181
+ let e = {
182
+ data: [{
183
+ id: "1",
184
+ name: "公司总部",
185
+ children: [{
186
+ id: "2",
187
+ name: "技术部",
188
+ children: [{
189
+ id: "4",
190
+ name: "技术部1"
191
+ }, {
192
+ id: "5",
193
+ name: "人事部2"
194
+ }]
195
+ }, {
196
+ id: "3",
197
+ name: "人事部"
198
+ }]
199
+ }],
200
+ total: 3
201
+ };
202
+ return {
203
+ data: e.data,
204
+ total: e.total
205
+ };
206
+ }, h = b(() => e.dataSource.columns.find((e) => e.type == "form")?.form);
207
+ return M(() => {
208
+ window.addEventListener("resize", d), d();
209
+ }), N(() => {
210
+ window.removeEventListener("resize", d);
211
+ }), {
212
+ flowData: F({
213
+ nodeData: [
214
+ {
215
+ key: "开始",
216
+ completed: !0
217
+ },
218
+ {
219
+ key: "节点1",
220
+ completed: !0
221
+ },
222
+ {
223
+ key: "节点2",
224
+ completed: !1
225
+ }
226
+ ],
227
+ xmlData: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:bioc=\"http://bpmn.io/schema/bpmn/biocolor/1.0\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"http://www.flowable.org/processdef\">\n <process id=\"flow_1noqmzzb\" name=\"并行网关流程回滚测试\" flowable:processCategory=\"leave\">\n <startEvent id=\"start_event\" name=\"开始\">\n <outgoing>Flow_1vdap9h</outgoing>\n </startEvent>\n <userTask id=\"Activity_1yr5v2c\" name=\"节点1\" flowable:assignee=\"${INITIATOR}\" flowable:dataType=\"fixed\" flowable:expId=\"1\">\n <incoming>Flow_1vdap9h</incoming>\n <outgoing>Flow_0h5bvp8</outgoing>\n </userTask>\n <sequenceFlow id=\"Flow_1vdap9h\" sourceRef=\"start_event\" targetRef=\"Activity_1yr5v2c\" />\n <userTask id=\"Activity_0hzne0c\" name=\"节点2\" flowable:assignee=\"1\" flowable:dataType=\"fixed\">\n <incoming>Flow_0h5bvp8</incoming>\n <outgoing>Flow_138vugq</outgoing>\n </userTask>\n <sequenceFlow id=\"Flow_0h5bvp8\" sourceRef=\"Activity_1yr5v2c\" targetRef=\"Activity_0hzne0c\" />\n <parallelGateway id=\"Gateway_1f8o1fq\">\n <incoming>Flow_138vugq</incoming>\n <outgoing>Flow_0038zow</outgoing>\n <outgoing>Flow_0ggd8de</outgoing>\n <outgoing>Flow_10j69qn</outgoing>\n </parallelGateway>\n <sequenceFlow id=\"Flow_138vugq\" sourceRef=\"Activity_0hzne0c\" targetRef=\"Gateway_1f8o1fq\" />\n <userTask id=\"Activity_1pqbtb0\" name=\"节点3-1\" flowable:assignee=\"1\" flowable:dataType=\"fixed\">\n <incoming>Flow_0038zow</incoming>\n <outgoing>Flow_1joskka</outgoing>\n </userTask>\n <sequenceFlow id=\"Flow_0038zow\" sourceRef=\"Gateway_1f8o1fq\" targetRef=\"Activity_1pqbtb0\" />\n <userTask id=\"Activity_0woqnpk\" name=\"节点3-2\" flowable:assignee=\"1\" flowable:dataType=\"fixed\">\n <incoming>Flow_0ggd8de</incoming>\n <outgoing>Flow_0jp678o</outgoing>\n </userTask>\n <sequenceFlow id=\"Flow_0ggd8de\" sourceRef=\"Gateway_1f8o1fq\" targetRef=\"Activity_0woqnpk\" />\n <userTask id=\"Activity_1pzy12o\" name=\"节点3-3\" flowable:assignee=\"1\" flowable:dataType=\"fixed\">\n <incoming>Flow_10j69qn</incoming>\n <outgoing>Flow_0fbofr5</outgoing>\n </userTask>\n <sequenceFlow id=\"Flow_10j69qn\" sourceRef=\"Gateway_1f8o1fq\" targetRef=\"Activity_1pzy12o\" />\n <parallelGateway id=\"Gateway_1bmfkgx\">\n <incoming>Flow_1joskka</incoming>\n <incoming>Flow_0jp678o</incoming>\n <incoming>Flow_0fbofr5</incoming>\n <outgoing>Flow_03jndts</outgoing>\n </parallelGateway>\n <sequenceFlow id=\"Flow_1joskka\" sourceRef=\"Activity_1pqbtb0\" targetRef=\"Gateway_1bmfkgx\" />\n <sequenceFlow id=\"Flow_0jp678o\" sourceRef=\"Activity_0woqnpk\" targetRef=\"Gateway_1bmfkgx\" />\n <sequenceFlow id=\"Flow_0fbofr5\" sourceRef=\"Activity_1pzy12o\" targetRef=\"Gateway_1bmfkgx\" />\n <userTask id=\"Activity_0u70xd8\" name=\"节点4\" flowable:assignee=\"1\" flowable:dataType=\"fixed\">\n <incoming>Flow_03jndts</incoming>\n </userTask>\n <sequenceFlow id=\"Flow_03jndts\" sourceRef=\"Gateway_1bmfkgx\" targetRef=\"Activity_0u70xd8\" />\n </process>\n <bpmndi:BPMNDiagram id=\"BPMNDiagram_flow\">\n <bpmndi:BPMNPlane id=\"BPMNPlane_flow\" bpmnElement=\"flow_1noqmzzb\">\n <bpmndi:BPMNShape id=\"BPMNShape_start_event\" bpmnElement=\"start_event\" bioc:stroke=\"\">\n <omgdc:Bounds x=\"-235\" y=\"95\" width=\"30\" height=\"30\" />\n <bpmndi:BPMNLabel>\n <omgdc:Bounds x=\"-232\" y=\"132\" width=\"22\" height=\"14\" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_1yr5v2c_di\" bpmnElement=\"Activity_1yr5v2c\">\n <omgdc:Bounds x=\"-150\" y=\"70\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_0hzne0c_di\" bpmnElement=\"Activity_0hzne0c\">\n <omgdc:Bounds x=\"10\" y=\"70\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Gateway_1f8o1fq_di\" bpmnElement=\"Gateway_1f8o1fq\">\n <omgdc:Bounds x=\"175\" y=\"85\" width=\"50\" height=\"50\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_1pqbtb0_di\" bpmnElement=\"Activity_1pqbtb0\">\n <omgdc:Bounds x=\"280\" y=\"-60\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_0woqnpk_di\" bpmnElement=\"Activity_0woqnpk\">\n <omgdc:Bounds x=\"280\" y=\"70\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_1pzy12o_di\" bpmnElement=\"Activity_1pzy12o\">\n <omgdc:Bounds x=\"280\" y=\"210\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Gateway_1bmfkgx_di\" bpmnElement=\"Gateway_1bmfkgx\">\n <omgdc:Bounds x=\"445\" y=\"85\" width=\"50\" height=\"50\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Activity_0u70xd8_di\" bpmnElement=\"Activity_0u70xd8\">\n <omgdc:Bounds x=\"560\" y=\"70\" width=\"100\" height=\"80\" />\n <bpmndi:BPMNLabel />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id=\"Flow_1vdap9h_di\" bpmnElement=\"Flow_1vdap9h\">\n <di:waypoint x=\"-205\" y=\"110\" />\n <di:waypoint x=\"-150\" y=\"110\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_0h5bvp8_di\" bpmnElement=\"Flow_0h5bvp8\">\n <di:waypoint x=\"-50\" y=\"110\" />\n <di:waypoint x=\"10\" y=\"110\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_138vugq_di\" bpmnElement=\"Flow_138vugq\">\n <di:waypoint x=\"110\" y=\"110\" />\n <di:waypoint x=\"175\" y=\"110\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_0038zow_di\" bpmnElement=\"Flow_0038zow\">\n <di:waypoint x=\"200\" y=\"85\" />\n <di:waypoint x=\"200\" y=\"-20\" />\n <di:waypoint x=\"280\" y=\"-20\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_0ggd8de_di\" bpmnElement=\"Flow_0ggd8de\">\n <di:waypoint x=\"225\" y=\"110\" />\n <di:waypoint x=\"280\" y=\"110\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_10j69qn_di\" bpmnElement=\"Flow_10j69qn\">\n <di:waypoint x=\"200\" y=\"135\" />\n <di:waypoint x=\"200\" y=\"250\" />\n <di:waypoint x=\"280\" y=\"250\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_1joskka_di\" bpmnElement=\"Flow_1joskka\">\n <di:waypoint x=\"380\" y=\"-20\" />\n <di:waypoint x=\"470\" y=\"-20\" />\n <di:waypoint x=\"470\" y=\"85\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_0jp678o_di\" bpmnElement=\"Flow_0jp678o\">\n <di:waypoint x=\"380\" y=\"110\" />\n <di:waypoint x=\"445\" y=\"110\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_0fbofr5_di\" bpmnElement=\"Flow_0fbofr5\">\n <di:waypoint x=\"380\" y=\"250\" />\n <di:waypoint x=\"470\" y=\"250\" />\n <di:waypoint x=\"470\" y=\"135\" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"Flow_03jndts_di\" bpmnElement=\"Flow_03jndts\">\n <di:waypoint x=\"495\" y=\"110\" />\n <di:waypoint x=\"560\" y=\"110\" />\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</definitions>\n"
228
+ }),
229
+ formData: h,
230
+ change: s,
231
+ handleFetchUsers: u,
232
+ handleFetchRoles: p,
233
+ handleFetchDepts: m,
234
+ update_name: c,
235
+ update_enable: l,
236
+ height: o,
237
+ globalOptions: f
238
+ };
239
+ }
240
+ }), de = { class: "flow-config-wrap" };
241
+ function fe(e, t, n, r, i, a) {
242
+ let o = R("a-switch"), s = R("a-form-item"), c = R("a-col"), l = R("a-input"), u = R("a-row"), d = R("a-select-option"), f = R("a-select"), p = R("select-cc-group"), m = R("select-users"), h = R("a-form"), g = R("my-process");
243
+ return P(), C("div", de, [E(h, {
244
+ layout: "horizontal",
245
+ size: "small"
246
+ }, {
247
+ default: U(() => [E(u, { gutter: 10 }, {
248
+ default: U(() => [E(c, { span: 3 }, {
249
+ default: U(() => [E(s, { label: "开启流程" }, {
250
+ default: U(() => [E(o, {
251
+ checked: e.value.enable_flow,
252
+ onChange: e.update_enable,
253
+ size: "small"
254
+ }, null, 8, ["checked", "onChange"])]),
255
+ _: 1
256
+ })]),
257
+ _: 1
258
+ }), e.value.enable_flow ? (P(), x(c, {
259
+ key: 0,
260
+ span: 21
261
+ }, {
262
+ default: U(() => [E(s, { label: "名称" }, {
263
+ default: U(() => [E(l, {
264
+ value: e.value.name,
265
+ "onUpdate:value": e.update_name,
266
+ size: "small"
267
+ }, null, 8, ["value", "onUpdate:value"])]),
268
+ _: 1
269
+ })]),
270
+ _: 1
271
+ })) : S("", !0)]),
272
+ _: 1
273
+ }), e.value.enable_flow ? (P(), x(u, {
274
+ key: 0,
275
+ gutter: 10
276
+ }, {
277
+ default: U(() => [
278
+ E(c, { span: 5 }, {
279
+ default: U(() => [E(s, { label: "抄送位置" }, {
280
+ default: U(() => [E(f, {
281
+ value: e.value.cc_position,
282
+ "onUpdate:value": t[0] ||= (t) => e.value.cc_position = t,
283
+ size: "small"
284
+ }, {
285
+ default: U(() => [
286
+ E(d, { value: "start" }, {
287
+ default: U(() => [...t[3] ||= [T("审批发起时", -1)]]),
288
+ _: 1
289
+ }),
290
+ E(d, { value: "finish" }, {
291
+ default: U(() => [...t[4] ||= [T("审批通过后", -1)]]),
292
+ _: 1
293
+ }),
294
+ E(d, { value: "start_finish" }, {
295
+ default: U(() => [...t[5] ||= [T("审批发起时和审批通过后", -1)]]),
296
+ _: 1
297
+ })
298
+ ]),
299
+ _: 1
300
+ }, 8, ["value"])]),
301
+ _: 1
302
+ })]),
303
+ _: 1
304
+ }),
305
+ E(c, { span: 5 }, {
306
+ default: U(() => [E(s, { label: "抄送组" }, {
307
+ default: U(() => [E(p, {
308
+ value: e.value.cc_approval_position,
309
+ "onUpdate:value": t[1] ||= (t) => e.value.cc_approval_position = t
310
+ }, null, 8, ["value"])]),
311
+ _: 1
312
+ })]),
313
+ _: 1
314
+ }),
315
+ E(c, { span: 14 }, {
316
+ default: U(() => [E(s, { label: "抄送人" }, {
317
+ default: U(() => [E(m, {
318
+ value: e.value.cc_users,
319
+ "onUpdate:value": t[2] ||= (t) => e.value.cc_users = t
320
+ }, null, 8, ["value"])]),
321
+ _: 1
322
+ })]),
323
+ _: 1
324
+ })
325
+ ]),
326
+ _: 1
327
+ })) : S("", !0)]),
328
+ _: 1
329
+ }), e.value.enable_flow ? (P(), C("div", {
330
+ key: 0,
331
+ class: "process-wrap",
332
+ style: j({ height: e.height + "px" })
333
+ }, [E(g, {
334
+ value: e.value.content,
335
+ "onUpdate:value": e.change,
336
+ "fetch-users": e.handleFetchUsers,
337
+ "user-row-key": "id",
338
+ "user-row-label": "realname",
339
+ "show-save-button": !1,
340
+ "fetch-roles": e.handleFetchRoles,
341
+ "role-row-key": "id",
342
+ "role-row-label": "name",
343
+ "fetch-depts": e.handleFetchDepts,
344
+ "dept-row-key": "id",
345
+ "dept-row-label": "name",
346
+ label: "流程设计",
347
+ "process-id": e.menuFlag,
348
+ "process-name": e.value.name,
349
+ "form-data": e.formData,
350
+ "global-options": e.globalOptions
351
+ }, null, 8, [
352
+ "value",
353
+ "onUpdate:value",
354
+ "fetch-users",
355
+ "fetch-roles",
356
+ "fetch-depts",
357
+ "process-id",
358
+ "process-name",
359
+ "form-data",
360
+ "global-options"
361
+ ])], 4)) : S("", !0)]);
362
+ }
363
+ var pe = /* @__PURE__ */ a(q, [["render", fe], ["__scopeId", "data-v-96383b9e"]]), me = O({
364
+ name: "FormField",
365
+ components: {},
366
+ props: {
367
+ value: {
368
+ type: Array,
369
+ default: () => []
370
+ },
371
+ options: {
372
+ type: Array,
373
+ default: () => []
374
+ }
375
+ },
376
+ emits: ["update:value"],
377
+ setup(e, { emit: t }) {
378
+ return { handleChange: (e) => {
379
+ e?.length > 0 ? t("update:value", e) : t("update:value", null);
380
+ } };
381
+ }
382
+ });
383
+ //#endregion
384
+ //#region src/components/approval/components/dataStoreConfig/formField.vue
385
+ function he(e, t, n, r, i, a) {
386
+ let o = R("a-cascader");
387
+ return P(), x(o, {
388
+ value: e.value,
389
+ "field-names": {
390
+ label: "label",
391
+ value: "key",
392
+ children: "children"
393
+ },
394
+ options: e.options,
395
+ placeholder: "请选择字段",
396
+ size: "small",
397
+ onChange: e.handleChange
398
+ }, null, 8, [
399
+ "value",
400
+ "options",
401
+ "onChange"
402
+ ]);
403
+ }
404
+ var J = /* @__PURE__ */ a(me, [["render", he]]), Y = O({
405
+ name: "selectExcelType",
406
+ components: {},
407
+ props: {
408
+ value: { type: Object },
409
+ excel_type_id: { type: Number }
410
+ },
411
+ emits: ["update:value", "change"],
412
+ setup(e, { emit: t }) {
413
+ let n = [
414
+ "column_index",
415
+ "column_name",
416
+ "data_type",
417
+ "data_length",
418
+ "column_is_null",
419
+ "char_column",
420
+ "zero_column",
421
+ "number_column",
422
+ "is_method_column",
423
+ "is_sid_column"
424
+ ], r = I([]), a = I(e.value), o = async () => {
425
+ if (!e.excel_type_id) {
426
+ r.value = [], a.value = null, t("update:value", null);
427
+ return;
428
+ }
429
+ r.value = (await i({
430
+ is_pagination: !1,
431
+ column_fields: [
432
+ "column_index",
433
+ "column_name",
434
+ "data_type",
435
+ "is_method_column",
436
+ "is_sid_column"
437
+ ],
438
+ sort_fields: ["-id"],
439
+ conditions: [[
440
+ {
441
+ field_name: "excel_type_id",
442
+ operator: "eq",
443
+ value: [e.excel_type_id],
444
+ format: "input",
445
+ class_name: "str"
446
+ },
447
+ {
448
+ field_name: "is_active",
449
+ operator: "eq",
450
+ value: [!0],
451
+ format: "input",
452
+ class_name: "str"
453
+ },
454
+ {
455
+ field_name: "is_import_column",
456
+ operator: "eq",
457
+ value: [!0],
458
+ format: "input",
459
+ class_name: "str"
460
+ }
461
+ ]]
462
+ }, "/costexcel/query_excel_column_config_list")).data, s(e.value?.column_index, !0);
463
+ }, s = (e, i = !1) => {
464
+ if (!e) {
465
+ a.value = null, t("update:value", null), i || t("change", null);
466
+ return;
467
+ }
468
+ let o = r.value.find((t) => t.column_index === e);
469
+ if (o.column_index !== a.value?.column_index && (a.value = o.column_index), !o) {
470
+ a.value = null, t("update:value", null), i || t("change", null);
471
+ return;
472
+ }
473
+ let s = {};
474
+ for (let e of n) s[e] = o[e];
475
+ t("update:value", s), i || t("change", s);
476
+ };
477
+ return H(() => e.value, (e, t) => {
478
+ e?.column_index !== t?.column_index && s(e?.column_index, !0);
479
+ }), H(() => e.excel_type_id, (e, t) => {
480
+ e !== t && o();
481
+ }, { immediate: !0 }), {
482
+ excelColumnList: r,
483
+ selectValue: a,
484
+ getExcelColumnList: o,
485
+ handleChange: s
486
+ };
487
+ }
488
+ });
489
+ //#endregion
490
+ //#region src/components/approval/components/dataStoreConfig/selectExcelColumn.vue
491
+ function X(e, t, n, r, i, a) {
492
+ let o = R("a-select-option"), s = R("a-select");
493
+ return P(), x(s, {
494
+ value: e.selectValue,
495
+ "onUpdate:value": t[0] ||= (t) => e.selectValue = t,
496
+ onChange: t[1] ||= (t) => e.handleChange(t, !1),
497
+ placeholder: "请选择数据字段",
498
+ "allow-clear": ""
499
+ }, {
500
+ default: U(() => [(P(!0), C(_, null, L(e.excelColumnList, (e) => (P(), x(o, {
501
+ key: e.column_index,
502
+ value: e.column_index
503
+ }, {
504
+ default: U(() => [T(" [" + z(e.column_index) + "] " + z(e.column_name), 1)]),
505
+ _: 2
506
+ }, 1032, ["value"]))), 128))]),
507
+ _: 1
508
+ }, 8, ["value"]);
509
+ }
510
+ var Z = /* @__PURE__ */ a(Y, [["render", X]]), ge = O({
511
+ name: "selectExcelType",
512
+ components: {},
513
+ props: { value: { type: Object } },
514
+ emits: ["update:value", "update:excelColumnList"],
515
+ setup(e, { emit: t }) {
516
+ let n = I([]), r = I(null), a = async (e) => {
517
+ t("update:excelColumnList", (await i({
518
+ is_pagination: !1,
519
+ sort_fields: ["column_index"],
520
+ conditions: [[
521
+ {
522
+ field_name: "excel_type_id",
523
+ operator: "eq",
524
+ value: [e],
525
+ format: "input",
526
+ class_name: "str"
527
+ },
528
+ {
529
+ field_name: "is_active",
530
+ operator: "eq",
531
+ value: [!0],
532
+ format: "input",
533
+ class_name: "str"
534
+ },
535
+ {
536
+ field_name: "is_import_column",
537
+ operator: "eq",
538
+ value: [!0],
539
+ format: "input",
540
+ class_name: "str"
541
+ }
542
+ ]]
543
+ }, "/costexcel/query_excel_column_config_list")).data);
544
+ }, o = async () => {
545
+ n.value = (await i({ is_active: !0 }, "/costexcel/query_excel_type_list")).data, s(e.value?.id, !0);
546
+ }, s = (e, i = !1) => {
547
+ if (!e) {
548
+ r.value = null, t("update:value", null), i || t("update:excelColumnList", null);
549
+ return;
550
+ }
551
+ let o = n.value.find((t) => t.id === e);
552
+ if (o.id !== r.value && (r.value = o.id), !o) {
553
+ t("update:value", null), i || t("update:excelColumnList", null);
554
+ return;
555
+ }
556
+ let s = {
557
+ id: o.id,
558
+ name: o.name,
559
+ flag: o.flag
560
+ };
561
+ t("update:value", s), i || a(s.id);
562
+ };
563
+ return H(() => e.value, (e, t) => {
564
+ e?.id !== t?.id && s(e?.id, !0);
565
+ }), M(() => {
566
+ o();
567
+ }), {
568
+ excelTypeList: n,
569
+ selectValue: r,
570
+ getExcelTypeList: o,
571
+ handleChange: s,
572
+ filterOption: (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0
573
+ };
574
+ }
575
+ });
576
+ //#endregion
577
+ //#region src/components/approval/components/dataStoreConfig/selectExcelType.vue
578
+ function Q(e, t, n, r, i, a) {
579
+ let o = R("a-select-option"), s = R("a-select");
580
+ return P(), x(s, {
581
+ value: e.selectValue,
582
+ "onUpdate:value": t[0] ||= (t) => e.selectValue = t,
583
+ onChange: t[1] ||= (t) => e.handleChange(t, !1),
584
+ allowClear: "",
585
+ placeholder: "请选择",
586
+ "show-search": "",
587
+ "filter-option": e.filterOption,
588
+ size: "small"
589
+ }, {
590
+ default: U(() => [(P(!0), C(_, null, L(e.excelTypeList, (e) => (P(), x(o, {
591
+ key: e.id,
592
+ value: e.id,
593
+ name: e.name
594
+ }, {
595
+ default: U(() => [T(z(e.name), 1)]),
596
+ _: 2
597
+ }, 1032, ["value", "name"]))), 128))]),
598
+ _: 1
599
+ }, 8, ["value", "filter-option"]);
600
+ }
601
+ var $ = /* @__PURE__ */ a(ge, [["render", Q]]), _e = O({
602
+ name: "ValueInput",
603
+ components: {},
604
+ props: {
605
+ value: {
606
+ type: Object,
607
+ required: !0
608
+ },
609
+ placeholder: {
610
+ type: String,
611
+ default: ""
612
+ },
613
+ style: {
614
+ type: Object,
615
+ default: () => ({})
616
+ }
617
+ },
618
+ emits: ["update:value"],
619
+ setup(e, { emit: t }) {
620
+ return {
621
+ innerValue: b(() => {
622
+ if (typeof e.value == "string") return e.value;
623
+ try {
624
+ return JSON.stringify(e.value);
625
+ } catch {
626
+ return e.value;
627
+ }
628
+ }),
629
+ updateValue: (e) => {
630
+ try {
631
+ t("update:value", JSON.parse(e));
632
+ } catch {
633
+ t("update:value", e);
634
+ }
635
+ },
636
+ valueType: b(() => typeof e.value)
637
+ };
638
+ }
639
+ }), ve = { style: { color: "gray" } };
640
+ function ye(e, t, n, r, i, a) {
641
+ let o = R("a-input");
642
+ return P(), x(o, {
643
+ value: e.innerValue,
644
+ placeholder: e.placeholder,
645
+ style: j(e.style),
646
+ "onUpdate:value": e.updateValue
647
+ }, {
648
+ addonAfter: U(() => [w("span", ve, z(e.valueType), 1)]),
649
+ _: 1
650
+ }, 8, [
651
+ "value",
652
+ "placeholder",
653
+ "style",
654
+ "onUpdate:value"
655
+ ]);
656
+ }
657
+ var be = /* @__PURE__ */ a(_e, [["render", ye]]), xe = O({
658
+ name: "FormFieldMulType",
659
+ components: { ValueInput: be },
660
+ props: {
661
+ value: {
662
+ type: Array,
663
+ default: () => []
664
+ },
665
+ batch_form_key_path: {
666
+ type: Array,
667
+ default: []
668
+ },
669
+ source_type: {
670
+ type: String,
671
+ default: null
672
+ },
673
+ formData: {
674
+ type: Object,
675
+ default: () => ({})
676
+ },
677
+ style: {
678
+ type: Object,
679
+ default: () => ({})
680
+ }
681
+ },
682
+ emits: ["update:value"],
683
+ setup(e, { emit: t }) {
684
+ let n = b(() => e.value?.length ? e.value[0] : ""), r = (e) => {
685
+ e?.length > 0 ? t("update:value", e) : t("update:value", null);
686
+ }, i = (e) => {
687
+ l(e) ? t("update:value", []) : t("update:value", [e]);
688
+ };
689
+ H(() => e.source_type, (e) => {
690
+ e === "operation" && t("update:value", []);
691
+ });
692
+ let a = (e, t) => {
693
+ if (!e) return [];
694
+ let n = 0, r = [];
695
+ for (let i of e) {
696
+ n += 1;
697
+ let e = {
698
+ key: i.key,
699
+ label: i.group_name || "分组" + n,
700
+ children: []
701
+ }, o = null;
702
+ t[0] === i.key && (o = t.slice(1));
703
+ for (let t of i.children) {
704
+ if (!t.key) continue;
705
+ let n = {
706
+ key: t.key,
707
+ label: t.label
708
+ };
709
+ if (t.type === "remotetablepro") {
710
+ if (o && o[0] === t.key) {
711
+ let r = a(t.children, o.slice(1));
712
+ r.length > 0 && (n.children = r, e.children.push(n));
713
+ }
714
+ } else if (t.type === "formtemplate") {
715
+ if (o && o[0] === t.key) {
716
+ let r = a(t.form?.dynamicFieldList, o.slice(1));
717
+ r.length > 0 && (n.children = r, e.children.push(n));
718
+ }
719
+ } else e.children.push(n);
720
+ }
721
+ e.children.length > 0 && r.push(e);
722
+ }
723
+ return r;
724
+ };
725
+ return {
726
+ handleSelectChange: r,
727
+ options: b(() => {
728
+ if (e.source_type === "global") return f;
729
+ if (e.source_type === "form") return a(e.formData?.dynamicFieldList || [], e.batch_form_key_path || []);
730
+ }),
731
+ inputValue: n,
732
+ handleInputChange: i
733
+ };
734
+ }
735
+ });
736
+ //#endregion
737
+ //#region src/components/approval/components/dataStoreConfig/formFieldMulType.vue
738
+ function Se(e, t, n, r, i, a) {
739
+ let o = R("a-alert"), s = R("a-cascader"), c = R("value-input");
740
+ return e.source_type === "operation" ? (P(), x(o, {
741
+ key: 0,
742
+ type: "info",
743
+ "show-icon": "",
744
+ message: "操作类型列:保存时自动填充「添加/修改」,无需配置",
745
+ style: j(e.style),
746
+ size: "small",
747
+ banner: ""
748
+ }, null, 8, ["style"])) : e.source_type && e.source_type !== "fixed" ? (P(), x(s, {
749
+ key: 1,
750
+ value: e.value,
751
+ "field-names": {
752
+ label: "label",
753
+ value: "key",
754
+ children: "children"
755
+ },
756
+ options: e.options,
757
+ placeholder: "请选择字段",
758
+ onChange: e.handleSelectChange,
759
+ onClear: t[0] ||= (t) => e.handleSelectChange(null),
760
+ "default-value": [],
761
+ style: j(e.style),
762
+ size: "small"
763
+ }, null, 8, [
764
+ "value",
765
+ "options",
766
+ "onChange",
767
+ "style"
768
+ ])) : e.source_type === "fixed" ? (P(), x(c, {
769
+ key: 2,
770
+ value: e.inputValue,
771
+ "onUpdate:value": e.handleInputChange,
772
+ style: j(e.style),
773
+ size: "small",
774
+ placeholder: "输入值"
775
+ }, null, 8, [
776
+ "value",
777
+ "onUpdate:value",
778
+ "style"
779
+ ])) : S("", !0);
780
+ }
781
+ var Ce = /* @__PURE__ */ a(xe, [["render", Se]]), we = O({
782
+ name: "ConditionConfig",
783
+ components: {
784
+ formFieldMulType: Ce,
785
+ ValueInput: be,
786
+ JsonTags: g
787
+ },
788
+ props: {
789
+ value: {
790
+ type: Object,
791
+ required: !0
792
+ },
793
+ batch_form_key_path: {
794
+ type: Array,
795
+ default: []
796
+ },
797
+ formData: {
798
+ type: Object,
799
+ default: () => ({})
800
+ }
801
+ },
802
+ emits: ["update:value"],
803
+ setup(e, { emit: t }) {
804
+ return M(() => {
805
+ e.value || t("update:value", {
806
+ conditions: [],
807
+ type: "and"
808
+ });
809
+ }), {
810
+ operators: [
811
+ {
812
+ label: "等于",
813
+ value: "="
814
+ },
815
+ {
816
+ label: "不等于",
817
+ value: "!="
818
+ },
819
+ {
820
+ label: "大于",
821
+ value: ">"
822
+ },
823
+ {
824
+ label: "大于或等于",
825
+ value: ">="
826
+ },
827
+ {
828
+ label: "小于",
829
+ value: "<"
830
+ },
831
+ {
832
+ label: "小于或等于",
833
+ value: "<="
834
+ },
835
+ {
836
+ label: "包含",
837
+ value: "in"
838
+ },
839
+ {
840
+ label: "模糊匹配",
841
+ value: "like"
842
+ },
843
+ {
844
+ label: "介于",
845
+ value: "between"
846
+ },
847
+ {
848
+ label: "非空",
849
+ value: "is_not_blank"
850
+ },
851
+ {
852
+ label: "为空",
853
+ value: "is_blank"
854
+ }
855
+ ],
856
+ addRule: () => {
857
+ let n = G(e.value);
858
+ n.conditions = n.conditions || [], n.conditions.push({
859
+ source_type: null,
860
+ source_value: null,
861
+ op: "=",
862
+ value: ""
863
+ }), t("update:value", n);
864
+ },
865
+ addGroup: () => {
866
+ let n = G(e.value);
867
+ n.conditions = n.conditions || [], n.conditions.push({
868
+ type: "and",
869
+ conditions: []
870
+ }), t("update:value", n);
871
+ },
872
+ removeAt: (n) => {
873
+ let r = G(e.value);
874
+ r.conditions = r.conditions || [], r.conditions.splice(n, 1), t("update:value", r);
875
+ },
876
+ updateBetween: (e, t, n) => {
877
+ let r = Array.isArray(e.value) ? e.value : [void 0, void 0];
878
+ r[t] = n, e.value = r;
879
+ }
880
+ };
881
+ }
882
+ }), Te = { class: "qb-group" }, Ee = { class: "qb-group-head" }, De = {
883
+ key: 0,
884
+ class: "qb-group-body"
885
+ }, Oe = {
886
+ key: 0,
887
+ class: "qb-subgroup"
888
+ }, ke = {
889
+ key: 1,
890
+ class: "qb-rule"
891
+ }, Ae = {
892
+ key: 2,
893
+ style: { "min-width": "220px" }
894
+ };
895
+ function je(e, t, n, r, i, a) {
896
+ let o = R("a-button"), s = R("a-select"), c = R("ConditionConfig", !0), l = R("a-select-option"), u = R("form-field-mul-type"), d = R("JsonTags"), f = R("value-input"), p = R("a-space");
897
+ return P(), C("div", Te, [w("div", Ee, [E(o, {
898
+ size: "small",
899
+ onClick: e.addRule
900
+ }, {
901
+ default: U(() => [...t[1] ||= [T(" 添加条件 ", -1)]]),
902
+ _: 1
903
+ }, 8, ["onClick"]), E(o, {
904
+ size: "small",
905
+ style: { "margin-left": "8px" },
906
+ onClick: e.addGroup
907
+ }, {
908
+ default: U(() => [...t[2] ||= [T(" 添加分组 ", -1)]]),
909
+ _: 1
910
+ }, 8, ["onClick"])]), e.value?.conditions ? (P(), C("div", De, [(P(!0), C(_, null, L(e.value.conditions, (n, r) => (P(), C("div", {
911
+ class: "condition-item",
912
+ key: r
913
+ }, [w("span", null, [r > 0 ? (P(), x(s, {
914
+ key: 0,
915
+ style: { width: "110px" },
916
+ value: e.value?.type || "and",
917
+ options: [{
918
+ label: "并且",
919
+ value: "and"
920
+ }, {
921
+ label: "或者",
922
+ value: "or"
923
+ }],
924
+ "onUpdate:value": t[0] ||= (t) => e.value.type = t
925
+ }, null, 8, ["value"])) : S("", !0)]), n && typeof n == "object" && "type" in n ? (P(), C("div", Oe, [E(c, {
926
+ value: e.value.conditions[r],
927
+ "onUpdate:value": (t) => e.value.conditions[r] = t,
928
+ formData: e.formData,
929
+ batch_form_key_path: e.batch_form_key_path
930
+ }, null, 8, [
931
+ "value",
932
+ "onUpdate:value",
933
+ "formData",
934
+ "batch_form_key_path"
935
+ ]), E(o, {
936
+ danger: "",
937
+ size: "small",
938
+ style: { margin: "4px 0" },
939
+ onClick: (t) => e.removeAt(r)
940
+ }, {
941
+ default: U(() => [...t[3] ||= [T(" 删除分组 ", -1)]]),
942
+ _: 1
943
+ }, 8, ["onClick"])])) : (P(), C("div", ke, [
944
+ E(s, {
945
+ value: n.source_type,
946
+ "onUpdate:value": (e) => n.source_type = e,
947
+ placeholder: "请选择",
948
+ style: { width: "150px" }
949
+ }, {
950
+ default: U(() => [E(l, { value: "global" }, {
951
+ default: U(() => [...t[4] ||= [T("全局字段", -1)]]),
952
+ _: 1
953
+ }), E(l, { value: "form" }, {
954
+ default: U(() => [...t[5] ||= [T("表单字段", -1)]]),
955
+ _: 1
956
+ })]),
957
+ _: 1
958
+ }, 8, ["value", "onUpdate:value"]),
959
+ E(u, {
960
+ value: n.source_value,
961
+ "onUpdate:value": (e) => n.source_value = e,
962
+ batch_form_key_path: e.batch_form_key_path,
963
+ source_type: n.source_type,
964
+ "form-data": e.formData
965
+ }, null, 8, [
966
+ "value",
967
+ "onUpdate:value",
968
+ "batch_form_key_path",
969
+ "source_type",
970
+ "form-data"
971
+ ]),
972
+ E(s, {
973
+ value: n.op,
974
+ style: { width: "300px" },
975
+ options: e.operators,
976
+ "onUpdate:value": (e) => n.op = e
977
+ }, null, 8, [
978
+ "value",
979
+ "options",
980
+ "onUpdate:value"
981
+ ]),
982
+ n.op === "in" ? (P(), x(d, {
983
+ key: 0,
984
+ value: n.value,
985
+ "onUpdate:value": (e) => n.value = e,
986
+ style: { "min-width": "220px" },
987
+ placeholder: "输入多个值后回车"
988
+ }, null, 8, ["value", "onUpdate:value"])) : n.op === "between" ? (P(), x(p, {
989
+ key: 1,
990
+ size: 4
991
+ }, {
992
+ default: U(() => [
993
+ E(f, {
994
+ style: { width: "120px" },
995
+ value: Array.isArray(n.value) ? n.value?.[0] : void 0,
996
+ placeholder: "起始值",
997
+ "onUpdate:value": (t) => e.updateBetween(n, 0, t)
998
+ }, null, 8, ["value", "onUpdate:value"]),
999
+ t[6] ||= w("span", { style: {
1000
+ padding: "0 4px",
1001
+ color: "#999"
1002
+ } }, "~", -1),
1003
+ E(f, {
1004
+ style: { width: "120px" },
1005
+ value: Array.isArray(n.value) ? n.value?.[1] : void 0,
1006
+ placeholder: "结束值",
1007
+ "onUpdate:value": (t) => e.updateBetween(n, 1, t)
1008
+ }, null, 8, ["value", "onUpdate:value"])
1009
+ ]),
1010
+ _: 2
1011
+ }, 1024)) : ["is_blank", "is_not_blank"].includes(n.op) ? (P(), C("span", Ae)) : (P(), x(f, {
1012
+ key: 3,
1013
+ style: { "min-width": "220px" },
1014
+ value: n.value,
1015
+ placeholder: "输入值",
1016
+ "onUpdate:value": (e) => n.value = e
1017
+ }, null, 8, ["value", "onUpdate:value"])),
1018
+ E(o, {
1019
+ danger: "",
1020
+ size: "small",
1021
+ onClick: (t) => e.removeAt(r)
1022
+ }, {
1023
+ default: U(() => [...t[7] ||= [T(" 删除 ", -1)]]),
1024
+ _: 1
1025
+ }, 8, ["onClick"])
1026
+ ]))]))), 128))])) : S("", !0)]);
1027
+ }
1028
+ var Me = /* @__PURE__ */ a(we, [["render", je], ["__scopeId", "data-v-ee518ace"]]), Ne = O({
1029
+ name: "dataSourceDetial",
1030
+ components: {},
1031
+ props: { value: {
1032
+ type: Object,
1033
+ default: () => []
1034
+ } },
1035
+ emits: ["update:value"],
1036
+ setup(e, { emit: t }) {
1037
+ return { params: [
1038
+ {
1039
+ title: "数据类型",
1040
+ key: "data_type"
1041
+ },
1042
+ {
1043
+ title: "数据长度",
1044
+ key: "data_length"
1045
+ },
1046
+ {
1047
+ title: "是否可为空",
1048
+ key: "column_is_null"
1049
+ },
1050
+ {
1051
+ title: "字符规则",
1052
+ key: "char_column"
1053
+ },
1054
+ {
1055
+ title: "数字规则",
1056
+ key: "zero_column"
1057
+ },
1058
+ {
1059
+ title: "整数与实数",
1060
+ key: "number_column"
1061
+ }
1062
+ ] };
1063
+ }
1064
+ });
1065
+ //#endregion
1066
+ //#region src/components/approval/components/dataStoreConfig/dataSourceDetial.vue
1067
+ function Pe(e, t, n, r, i, a) {
1068
+ let o = R("a-tag");
1069
+ return P(), C(_, null, [
1070
+ e.value.is_sid_column ? (P(), x(o, {
1071
+ key: 0,
1072
+ color: "purple",
1073
+ size: "small",
1074
+ style: {
1075
+ "font-size": "10px",
1076
+ display: "inline-block"
1077
+ }
1078
+ }, {
1079
+ default: U(() => [...t[0] ||= [T(" 覆盖ID ", -1)]]),
1080
+ _: 1
1081
+ })) : S("", !0),
1082
+ e.value.is_method_column ? (P(), x(o, {
1083
+ key: 1,
1084
+ color: "orange",
1085
+ size: "small",
1086
+ style: {
1087
+ "font-size": "10px",
1088
+ display: "inline-block"
1089
+ }
1090
+ }, {
1091
+ default: U(() => [...t[1] ||= [T(" 操作类型 ", -1)]]),
1092
+ _: 1
1093
+ })) : S("", !0),
1094
+ e.value.is_modifiable ? (P(), x(o, {
1095
+ key: 2,
1096
+ color: "blue",
1097
+ size: "small",
1098
+ style: {
1099
+ "font-size": "10px",
1100
+ display: "inline-block"
1101
+ }
1102
+ }, {
1103
+ default: U(() => [...t[2] ||= [T(" 可修改 ", -1)]]),
1104
+ _: 1
1105
+ })) : S("", !0),
1106
+ (P(!0), C(_, null, L(e.params, (t) => (P(), C(_, { key: t.key }, [e.value[t.key] === "不判断" ? S("", !0) : (P(), x(o, {
1107
+ key: 0,
1108
+ size: "small",
1109
+ style: {
1110
+ "font-size": "10px",
1111
+ display: "inline-block"
1112
+ }
1113
+ }, {
1114
+ default: U(() => [T(z(t.title) + ":" + z(e.value[t.key]), 1)]),
1115
+ _: 2
1116
+ }, 1024))], 64))), 128))
1117
+ ], 64);
1118
+ }
1119
+ //#endregion
1120
+ //#region src/components/approval/components/dataStoreConfig/dataStoreConfigItem.vue?vue&type=script&lang.ts
1121
+ var Fe = O({
1122
+ name: "DataStoreConfig",
1123
+ components: {
1124
+ selectExcelType: $,
1125
+ formField: J,
1126
+ selectExcelColumn: Z,
1127
+ formFieldMulType: Ce,
1128
+ ConditionConfig: Me,
1129
+ dataSourceDetial: /* @__PURE__ */ a(Ne, [["render", Pe]])
1130
+ },
1131
+ props: {
1132
+ rule: {
1133
+ type: Object,
1134
+ default: () => {}
1135
+ },
1136
+ formData: {
1137
+ type: Object,
1138
+ default: () => ({})
1139
+ }
1140
+ },
1141
+ emits: ["removeRule", "copyRule"],
1142
+ setup(e, { emit: t }) {
1143
+ let n = I(!0), r = [
1144
+ {
1145
+ title: "#",
1146
+ key: "column_index",
1147
+ width: 80
1148
+ },
1149
+ {
1150
+ title: "列名",
1151
+ key: "column_name",
1152
+ width: 140
1153
+ },
1154
+ {
1155
+ title: "数据源类型",
1156
+ key: "source_type",
1157
+ width: 140
1158
+ },
1159
+ {
1160
+ title: "数据源",
1161
+ key: "source_value",
1162
+ width: 500
1163
+ },
1164
+ {
1165
+ title: "数据源详情",
1166
+ key: "detial",
1167
+ width: 300,
1168
+ autoHeight: !0
1169
+ }
1170
+ ], i = () => {
1171
+ t("removeRule");
1172
+ }, a = (e, t) => {
1173
+ let n = e;
1174
+ return t.forEach((e) => {
1175
+ !Array.isArray(n) && n.children && (n = n.children), n = n[e];
1176
+ }), n;
1177
+ }, o = () => {
1178
+ n.value = !n.value;
1179
+ }, s = (t) => {
1180
+ let n = a(e.rule.fields, t);
1181
+ n && (n.config_hint &&= null, n.config_hint_cleared &&= !1, n.config_hint_detail &&= null);
1182
+ }, c = (t) => {
1183
+ let n = a(e.rule.fields, t) || {}, r = n.data_column || {}, i = [`#${r.column_index ?? n.column_index}${r.column_name ? ` ${r.column_name}` : ""}`];
1184
+ return Array.isArray(n.config_hint_detail) && n.config_hint_detail.length ? i.push(...n.config_hint_detail) : n.config_hint !== "added" && i.push("列属性已变更"), i.push(n.config_hint_cleared ? "数据源配置已清空,需要重新配置" : "原数据源配置已保留,无需重新配置"), i.join("\n");
1185
+ }, l = (t) => {
1186
+ if (!t) {
1187
+ e.rule.fields = [];
1188
+ return;
1189
+ }
1190
+ let n = [];
1191
+ for (let e of t) n.push({
1192
+ column_index: e.column_index,
1193
+ source_type: null,
1194
+ source_value: [],
1195
+ data_column: e
1196
+ });
1197
+ e.rule.fields = n;
1198
+ }, u = (e) => {
1199
+ if (!e) return [];
1200
+ let t = 0, n = [];
1201
+ for (let r of e) {
1202
+ t += 1;
1203
+ let e = !1, i = {
1204
+ key: r.key,
1205
+ label: r.group_name || "分组" + t,
1206
+ children: []
1207
+ };
1208
+ for (let t of r.children) {
1209
+ let n = {
1210
+ key: t.key,
1211
+ label: t.label
1212
+ };
1213
+ if (t.type === "remotetablepro") {
1214
+ e = !0, i.children.push(n);
1215
+ let r = u(t.children);
1216
+ r.length > 0 && (n.children = r);
1217
+ } else if (t.type === "formtemplate") {
1218
+ e = !0, i.children.push(n);
1219
+ let r = u(t.form?.dynamicFieldList);
1220
+ r.length > 0 && (n.children = r);
1221
+ }
1222
+ }
1223
+ e && n.push(i);
1224
+ }
1225
+ return n;
1226
+ };
1227
+ return {
1228
+ removeRule: i,
1229
+ toggleCollapse: o,
1230
+ collapsedState: n,
1231
+ columns: r,
1232
+ handleChangeExcelColumnList: l,
1233
+ getRawRecord: a,
1234
+ batchFieldList: b(() => u(e.formData?.dynamicFieldList || [])),
1235
+ handleCopyRule: () => {
1236
+ t("copyRule", e.rule);
1237
+ },
1238
+ clearConfigHint: s,
1239
+ getConfigHintTitle: c
1240
+ };
1241
+ }
1242
+ }), Ie = { class: "rule-header" }, Le = { class: "rule-header-left" }, Re = { class: "rule-header-right" }, ze = {
1243
+ key: 0,
1244
+ class: "rule-collapse-content"
1245
+ }, Be = { class: "rule-middle" }, Ve = { class: "rule-content" }, He = { style: { "white-space": "pre-line" } }, Ue = { key: 4 };
1246
+ function We(e, t, n, r, i, a) {
1247
+ let o = R("down-outlined"), s = R("up-outlined"), c = R("a-button"), l = R("a-input"), u = R("a-form-item"), d = R("a-select-option"), f = R("a-select"), p = R("a-input-number"), m = R("a-form"), h = R("CopyOutlined"), g = R("delete-outlined"), y = R("select-excel-type"), b = R("form-field"), D = R("condition-config"), O = R("a-tag"), k = R("a-tooltip"), A = R("form-field-mul-type"), j = R("data-source-detial"), M = R("s-table");
1248
+ return P(), C(_, null, [w("div", Ie, [w("div", Le, [E(c, {
1249
+ type: "text",
1250
+ onClick: e.toggleCollapse,
1251
+ class: "collapse-btn"
1252
+ }, {
1253
+ icon: U(() => [e.collapsedState ? (P(), x(o, { key: 0 })) : (P(), x(s, { key: 1 }))]),
1254
+ _: 1
1255
+ }, 8, ["onClick"]), E(m, {
1256
+ layout: "inline",
1257
+ size: "small"
1258
+ }, {
1259
+ default: U(() => [
1260
+ E(u, { label: "规则名称" }, {
1261
+ default: U(() => [E(l, {
1262
+ value: e.rule.name,
1263
+ "onUpdate:value": t[0] ||= (t) => e.rule.name = t
1264
+ }, null, 8, ["value"])]),
1265
+ _: 1
1266
+ }),
1267
+ E(u, { label: "导入方式" }, {
1268
+ default: U(() => [E(f, {
1269
+ style: { width: "150px" },
1270
+ value: e.rule.import_type,
1271
+ "onUpdate:value": t[1] ||= (t) => e.rule.import_type = t,
1272
+ "default-value": "pass_import"
1273
+ }, {
1274
+ default: U(() => [E(d, { value: "pass_import" }, {
1275
+ default: U(() => [...t[6] ||= [T("审批通过后导入", -1)]]),
1276
+ _: 1
1277
+ }), E(d, { value: "immediately_import" }, {
1278
+ default: U(() => [...t[7] ||= [T("提交立即导入", -1)]]),
1279
+ _: 1
1280
+ })]),
1281
+ _: 1
1282
+ }, 8, ["value"])]),
1283
+ _: 1
1284
+ }),
1285
+ E(u, { label: "处理顺序" }, {
1286
+ default: U(() => [E(p, {
1287
+ value: e.rule.order,
1288
+ "onUpdate:value": t[2] ||= (t) => e.rule.order = t
1289
+ }, null, 8, ["value"])]),
1290
+ _: 1
1291
+ })
1292
+ ]),
1293
+ _: 1
1294
+ })]), w("div", Re, [E(c, {
1295
+ type: "text",
1296
+ onClick: e.handleCopyRule
1297
+ }, {
1298
+ icon: U(() => [E(h)]),
1299
+ _: 1
1300
+ }, 8, ["onClick"]), E(c, {
1301
+ type: "text",
1302
+ danger: "",
1303
+ onClick: e.removeRule
1304
+ }, {
1305
+ icon: U(() => [E(g)]),
1306
+ _: 1
1307
+ }, 8, ["onClick"])])]), E(v, { name: "collapse" }, {
1308
+ default: U(() => [e.collapsedState ? (P(), C("div", ze, [w("div", Be, [E(m, null, {
1309
+ default: U(() => [
1310
+ E(u, { label: "数据类型" }, {
1311
+ default: U(() => [E(y, {
1312
+ value: e.rule.excel_type,
1313
+ "onUpdate:value": t[3] ||= (t) => e.rule.excel_type = t,
1314
+ "onUpdate:excelColumnList": e.handleChangeExcelColumnList
1315
+ }, null, 8, ["value", "onUpdate:excelColumnList"])]),
1316
+ _: 1
1317
+ }),
1318
+ E(u, { label: "字段路径" }, {
1319
+ default: U(() => [E(b, {
1320
+ value: e.rule.batch_form_key_path,
1321
+ "onUpdate:value": t[4] ||= (t) => e.rule.batch_form_key_path = t,
1322
+ options: e.batchFieldList
1323
+ }, null, 8, ["value", "options"])]),
1324
+ _: 1
1325
+ }),
1326
+ E(u, { label: "条件" }, {
1327
+ default: U(() => [E(D, {
1328
+ value: e.rule.conditions,
1329
+ "onUpdate:value": t[5] ||= (t) => e.rule.conditions = t,
1330
+ formData: e.formData,
1331
+ batch_form_key_path: e.rule.batch_form_key_path
1332
+ }, null, 8, [
1333
+ "value",
1334
+ "formData",
1335
+ "batch_form_key_path"
1336
+ ])]),
1337
+ _: 1
1338
+ })
1339
+ ]),
1340
+ _: 1
1341
+ })]), w("div", Ve, [E(M, {
1342
+ columns: e.columns,
1343
+ "data-source": e.rule.fields,
1344
+ "row-key": "column_index",
1345
+ pagination: !1,
1346
+ "range-selection": !1,
1347
+ size: "small"
1348
+ }, {
1349
+ bodyCell: U(({ column: n, record: r, recordIndexs: i }) => [n.key === "column_index" ? (P(), C(_, { key: 0 }, [w("span", null, z(r.data_column?.column_index), 1), e.getRawRecord(e.rule.fields, i).config_hint ? (P(), x(k, {
1350
+ key: 0,
1351
+ placement: "top"
1352
+ }, {
1353
+ title: U(() => [w("div", He, z(e.getConfigHintTitle(i)), 1)]),
1354
+ default: U(() => [E(O, {
1355
+ color: e.getRawRecord(e.rule.fields, i).config_hint_cleared ? "orange" : void 0,
1356
+ style: {
1357
+ "font-size": "10px",
1358
+ "margin-left": "4px",
1359
+ cursor: "help"
1360
+ }
1361
+ }, {
1362
+ default: U(() => [T(z(e.getRawRecord(e.rule.fields, i).config_hint === "added" ? "新增" : "变更"), 1)]),
1363
+ _: 2
1364
+ }, 1032, ["color"])]),
1365
+ _: 2
1366
+ }, 1024)) : S("", !0)], 64)) : n.key === "source_type" ? (P(), x(f, {
1367
+ key: 1,
1368
+ value: e.getRawRecord(e.rule.fields, i).source_type,
1369
+ "onUpdate:value": (t) => e.getRawRecord(e.rule.fields, i).source_type = t,
1370
+ placeholder: "请选择",
1371
+ style: { width: "100px" },
1372
+ size: "small",
1373
+ allowClear: "",
1374
+ onChange: (t) => e.clearConfigHint(i)
1375
+ }, {
1376
+ default: U(() => [
1377
+ E(d, { value: "global" }, {
1378
+ default: U(() => [...t[8] ||= [T("全局字段", -1)]]),
1379
+ _: 1
1380
+ }),
1381
+ E(d, { value: "form" }, {
1382
+ default: U(() => [...t[9] ||= [T("表单字段", -1)]]),
1383
+ _: 1
1384
+ }),
1385
+ E(d, { value: "fixed" }, {
1386
+ default: U(() => [...t[10] ||= [T("固定值", -1)]]),
1387
+ _: 1
1388
+ }),
1389
+ r.data_column && r.data_column.is_method_column ? (P(), x(d, {
1390
+ key: 0,
1391
+ value: "operation"
1392
+ }, {
1393
+ default: U(() => [...t[11] ||= [T("操作类型", -1)]]),
1394
+ _: 1
1395
+ })) : S("", !0)
1396
+ ]),
1397
+ _: 2
1398
+ }, 1032, [
1399
+ "value",
1400
+ "onUpdate:value",
1401
+ "onChange"
1402
+ ])) : n.key === "source_value" ? (P(), x(A, {
1403
+ key: 2,
1404
+ value: e.getRawRecord(e.rule.fields, i).source_value,
1405
+ "onUpdate:value": [(t) => e.getRawRecord(e.rule.fields, i).source_value = t, (t) => e.clearConfigHint(i)],
1406
+ batch_form_key_path: e.rule.batch_form_key_path,
1407
+ source_type: e.getRawRecord(e.rule.fields, i).source_type,
1408
+ "form-data": e.formData,
1409
+ style: { width: "480px" }
1410
+ }, null, 8, [
1411
+ "value",
1412
+ "onUpdate:value",
1413
+ "batch_form_key_path",
1414
+ "source_type",
1415
+ "form-data"
1416
+ ])) : n.key === "detial" ? (P(), x(j, {
1417
+ key: 3,
1418
+ value: r.data_column
1419
+ }, null, 8, ["value"])) : (P(), C("span", Ue, z(r.data_column[n.key]), 1))]),
1420
+ _: 1
1421
+ }, 8, ["columns", "data-source"])])])) : S("", !0)]),
1422
+ _: 1
1423
+ })], 64);
1424
+ }
1425
+ //#endregion
1426
+ //#region src/components/approval/components/dataStoreConfig/dataStoreConfig.vue?vue&type=script&lang.ts
1427
+ var Ge = O({
1428
+ name: "DataStoreConfig",
1429
+ components: {
1430
+ selectExcelType: $,
1431
+ formField: J,
1432
+ selectExcelColumn: Z,
1433
+ dataStoreConfigItem: /* @__PURE__ */ a(Fe, [["render", We], ["__scopeId", "data-v-3c5c9436"]])
1434
+ },
1435
+ props: {
1436
+ value: {
1437
+ type: Array,
1438
+ default: () => []
1439
+ },
1440
+ menuFlag: {
1441
+ type: String,
1442
+ default: ""
1443
+ },
1444
+ formData: {
1445
+ type: Object,
1446
+ default: () => ({})
1447
+ }
1448
+ },
1449
+ emits: ["update:value"],
1450
+ setup(e, { emit: t }) {
1451
+ let n = I(!1), r = b(() => (e.value || []).filter((e) => {
1452
+ if (!e.excel_type?.flag || !(e.fields || []).length) return !1;
1453
+ let t = e.fields || [], n = t.some((e) => e.data_column?.is_sid_column), r = t.some((e) => e.data_column?.is_method_column);
1454
+ return !(n && r);
1455
+ }).map((e) => e.name)), a = () => {
1456
+ n.value = !1;
1457
+ }, o = I(!1), s = [
1458
+ {
1459
+ key: "column_name",
1460
+ label: "列名"
1461
+ },
1462
+ {
1463
+ key: "data_type",
1464
+ label: "列类型"
1465
+ },
1466
+ {
1467
+ key: "data_length",
1468
+ label: "数据长度"
1469
+ },
1470
+ {
1471
+ key: "column_is_null",
1472
+ label: "是否可为空",
1473
+ on: "可为空",
1474
+ off: "不可为空"
1475
+ },
1476
+ {
1477
+ key: "is_children_column",
1478
+ label: "是否为子表列",
1479
+ on: "是",
1480
+ off: "否"
1481
+ },
1482
+ {
1483
+ key: "char_column",
1484
+ label: "字符规则"
1485
+ },
1486
+ {
1487
+ key: "zero_column",
1488
+ label: "数字规则"
1489
+ },
1490
+ {
1491
+ key: "number_column",
1492
+ label: "整数与实数"
1493
+ },
1494
+ {
1495
+ key: "is_import_column",
1496
+ label: "是否为导入列",
1497
+ on: "是",
1498
+ off: "否"
1499
+ },
1500
+ {
1501
+ key: "is_method_column",
1502
+ label: "是否为操作列",
1503
+ on: "是",
1504
+ off: "否"
1505
+ },
1506
+ {
1507
+ key: "is_sid_column",
1508
+ label: "是否为覆盖ID",
1509
+ on: "是",
1510
+ off: "否"
1511
+ },
1512
+ {
1513
+ key: "is_modifiable",
1514
+ label: "是否可修改",
1515
+ on: "可修改",
1516
+ off: "不可修改"
1517
+ }
1518
+ ], c = ["column_index", ...s.map((e) => e.key)], l = ["is_modifiable"], u = (e) => {
1519
+ let t = {};
1520
+ for (let n of c) {
1521
+ let r = e ? e[n] : void 0;
1522
+ t[n] = l.includes(n) ? !!r : r;
1523
+ }
1524
+ return t;
1525
+ }, f = (e) => {
1526
+ let t = u(e);
1527
+ return JSON.stringify(c.map((e) => t[e]));
1528
+ }, p = (e, t) => f(e) !== f(t), m = (e, t) => t == null || t === "" ? "空" : typeof t == "boolean" ? t ? e.on || "是" : e.off || "否" : String(t), h = (e, t) => {
1529
+ let n = u(e), r = u(t), i = [];
1530
+ for (let e of s) n?.[e.key] !== r?.[e.key] && i.push(`${e.label}:${m(e, n?.[e.key])} → ${m(e, r?.[e.key])}`);
1531
+ return i;
1532
+ }, g = (e, t, n = []) => ({
1533
+ index: e,
1534
+ title: [`#${e}${t?.column_name ? ` ${t.column_name}` : ""}`, ...n].join("\n")
1535
+ }), _ = async (e) => (await i({
1536
+ is_pagination: !1,
1537
+ sort_fields: ["column_index"],
1538
+ conditions: [[
1539
+ {
1540
+ field_name: "excel_type_id",
1541
+ operator: "eq",
1542
+ value: [e],
1543
+ format: "input",
1544
+ class_name: "str"
1545
+ },
1546
+ {
1547
+ field_name: "is_active",
1548
+ operator: "eq",
1549
+ value: [!0],
1550
+ format: "input",
1551
+ class_name: "str"
1552
+ },
1553
+ {
1554
+ field_name: "is_import_column",
1555
+ operator: "eq",
1556
+ value: [!0],
1557
+ format: "input",
1558
+ class_name: "str"
1559
+ }
1560
+ ]]
1561
+ }, "/costexcel/query_excel_column_config_list")).data || [], v = async (e) => {
1562
+ let t = /* @__PURE__ */ new Map();
1563
+ for (let n of e) {
1564
+ let e = n.excel_type.id;
1565
+ t.has(e) || t.set(e, await _(e));
1566
+ }
1567
+ return t;
1568
+ }, y = (e, t) => {
1569
+ let n = t.get(e.excel_type.id) || [], r = new Map(n.map((e) => [e.column_index, e])), i = new Map((e.fields || []).map((e) => [e.column_index, e]));
1570
+ return {
1571
+ newMap: r,
1572
+ oldMap: i,
1573
+ added: [...r.keys()].filter((e) => !i.has(e)),
1574
+ removed: [...i.keys()].filter((e) => !r.has(e)),
1575
+ changed: [...i.keys()].filter((e) => r.has(e) && p(i.get(e)?.data_column, r.get(e)))
1576
+ };
1577
+ }, x = I(!1), S = async () => {
1578
+ let t = (e.value || []).filter((e) => e.excel_type?.id);
1579
+ if (t.length) try {
1580
+ let e = await v(t);
1581
+ x.value = t.some((t) => {
1582
+ let { added: n, removed: r, changed: i } = y(t, e);
1583
+ return n.length || r.length || i.length;
1584
+ });
1585
+ } catch (e) {
1586
+ console.error("自动校验规则字段变更失败:", e);
1587
+ }
1588
+ }, C = !1, w = () => {
1589
+ C || (e.value || []).some((e) => e.excel_type?.id) && (C = !0, S());
1590
+ };
1591
+ M(w), H(() => e.value, w);
1592
+ let T = async () => {
1593
+ let t = (e.value || []).filter((e) => e.excel_type?.id);
1594
+ if (!t.length) {
1595
+ W.warning("暂无已选择数据类型的规则");
1596
+ return;
1597
+ }
1598
+ o.value = !0;
1599
+ try {
1600
+ let e = await v(t), n = [], r = [], i = !1;
1601
+ for (let a of t) {
1602
+ let { newMap: t, oldMap: o, added: s, removed: c, changed: l } = y(a, e);
1603
+ if (!s.length && !c.length && !l.length) continue;
1604
+ let u = l.filter((e) => o.get(e)?.data_column?.column_name !== t.get(e)?.column_name), d = l.filter((e) => !u.includes(e));
1605
+ (s.length || u.length) && (i = !0), r.push({
1606
+ name: a.name,
1607
+ added: s.map((e) => g(e, t.get(e), ["新增列"])),
1608
+ removed: c.map((e) => g(e, o.get(e)?.data_column, ["该列已从数据类型中删除"])),
1609
+ renamed: u.map((e) => g(e, void 0, [`列名变更:${o.get(e)?.data_column?.column_name || "—"} → ${t.get(e)?.column_name || "—"}`, "数据源配置会被清空,需重新配置"])),
1610
+ changed: d.map((e) => {
1611
+ let n = h(o.get(e)?.data_column, t.get(e));
1612
+ return g(e, t.get(e), n.length ? n : ["列属性已变更"]);
1613
+ })
1614
+ });
1615
+ let f = [
1616
+ ...(a.fields || []).filter((e) => t.has(e.column_index) && !l.includes(e.column_index)).map((e) => ({
1617
+ ...G(e),
1618
+ data_column: G(t.get(e.column_index))
1619
+ })),
1620
+ ...d.map((e) => ({
1621
+ ...G(o.get(e)),
1622
+ data_column: G(t.get(e)),
1623
+ config_hint: "changed",
1624
+ config_hint_cleared: !1,
1625
+ config_hint_detail: h(o.get(e)?.data_column, t.get(e))
1626
+ })),
1627
+ ...u.map((e) => ({
1628
+ column_index: e,
1629
+ source_type: null,
1630
+ source_value: [],
1631
+ data_column: G(t.get(e)),
1632
+ config_hint: "changed",
1633
+ config_hint_cleared: !0,
1634
+ config_hint_detail: [`列名变更:${o.get(e)?.data_column?.column_name || "—"} → ${t.get(e)?.column_name || "—"}`]
1635
+ })),
1636
+ ...s.map((e) => ({
1637
+ column_index: e,
1638
+ source_type: null,
1639
+ source_value: [],
1640
+ data_column: G(t.get(e)),
1641
+ config_hint: "added",
1642
+ config_hint_cleared: !0,
1643
+ config_hint_detail: []
1644
+ }))
1645
+ ].sort((e, t) => e.column_index - t.column_index);
1646
+ n.push({
1647
+ rule: a,
1648
+ nextFields: f
1649
+ });
1650
+ }
1651
+ if (!n.length) {
1652
+ W.success("所有规则字段均无变更");
1653
+ return;
1654
+ }
1655
+ ae.confirm({
1656
+ title: "检测到规则字段变更",
1657
+ width: 560,
1658
+ content: () => {
1659
+ let e = (e, t, n, r) => e.map((e) => k(oe, {
1660
+ placement: "top",
1661
+ title: k("div", { style: "white-space: pre-line" }, e.title)
1662
+ }, { default: () => k("span", { style: `display:inline-block;margin:0 4px 2px 0;padding:0 6px;font-size:12px;line-height:20px;border-radius:4px;cursor:help;color:${t};background:${n};border:1px solid ${r}` }, `#${e.index}`) })), t = [];
1663
+ i && t.push(k("div", { style: "background:#fffbe6;border:1px solid #ffe58f;border-radius:4px;padding:6px 10px;margin-bottom:8px;color:#d48806;font-size:12px" }, "注意:新增列与列名发生变更的列,其数据源配置会被清空,确定后需要重新配置;其余仅属性变更的列保留原配置。"));
1664
+ for (let n of r) {
1665
+ let r = [`${n.name}:新增列 `];
1666
+ n.added.length ? r.push(...e(n.added, "#389e0d", "#f6ffed", "#b7eb8f")) : r.push("无"), r.push(",删除列 "), n.removed.length ? r.push(...e(n.removed, "#cf1322", "#fff1f0", "#ffa39e")) : r.push("无"), r.push(",列名变更(需重新配置)"), n.renamed.length ? r.push(...e(n.renamed, "#d46b08", "#fff7e6", "#ffd591")) : r.push("无"), r.push(",其他变更(保留配置)"), n.changed.length ? r.push(...e(n.changed, "#0958d9", "#f0f5ff", "#adc6ff")) : r.push("无"), t.push(k("div", { style: "margin-bottom: 4px" }, r));
1667
+ }
1668
+ return k("div", { style: "max-height: 300px; overflow: auto;" }, t);
1669
+ },
1670
+ okText: "确定更新",
1671
+ cancelText: "取消",
1672
+ onOk: () => {
1673
+ for (let e of n) e.rule.fields = e.nextFields;
1674
+ x.value = !1, W.success("规则字段已更新");
1675
+ }
1676
+ });
1677
+ } finally {
1678
+ o.value = !1;
1679
+ }
1680
+ }, E = () => {
1681
+ n.value = !1;
1682
+ }, D = () => {
1683
+ let t = 0;
1684
+ for (let n of e.value) n.order > t && (t = n.order);
1685
+ return {
1686
+ excel_type: {
1687
+ id: 0,
1688
+ name: "",
1689
+ flag: ""
1690
+ },
1691
+ batch_form_key_path: [],
1692
+ fields: [],
1693
+ conditions: {
1694
+ type: "and",
1695
+ conditions: []
1696
+ },
1697
+ version: 1,
1698
+ name: `规则${e.value?.length + 1}`,
1699
+ import_type: "pass_import",
1700
+ order: t + 1,
1701
+ key: d()
1702
+ };
1703
+ };
1704
+ return H(() => e.value, (e) => {
1705
+ let t = 0;
1706
+ if (e?.length) for (let n of e) t++, n.name ||= `规则${t}`;
1707
+ }, { immediate: !0 }), {
1708
+ addRule: () => {
1709
+ let n = [...e.value];
1710
+ n.push(D()), t("update:value", n);
1711
+ },
1712
+ removeRule: (n) => {
1713
+ t("update:value", e.value.filter((e) => e.key !== n));
1714
+ },
1715
+ showModal: n,
1716
+ handleOk: a,
1717
+ handleCancel: E,
1718
+ copyRule: (t) => {
1719
+ let n = G(t);
1720
+ n.name = `${n.name} - 副本`, e.value.push(n);
1721
+ },
1722
+ unmodifiableRuleNames: r,
1723
+ hasFieldChange: x,
1724
+ updateRules: T,
1725
+ updating: o
1726
+ };
1727
+ }
1728
+ }), Ke = { class: "data-store-config" }, qe = { style: { "text-align": "right" } };
1729
+ function Je(e, t, n, r, i, a) {
1730
+ let o = R("a-alert"), s = R("a-button"), c = R("a-empty"), l = R("data-store-config-item");
1731
+ return P(), C("div", Ke, [
1732
+ e.unmodifiableRuleNames.length ? (P(), x(o, {
1733
+ key: 0,
1734
+ type: "warning",
1735
+ "show-icon": "",
1736
+ class: "modify-warning"
1737
+ }, {
1738
+ message: U(() => [T(" 以下规则未同时配置覆盖ID列与操作类型列,此审批将不支持修改:" + z(e.unmodifiableRuleNames.join("、")), 1)]),
1739
+ _: 1
1740
+ })) : S("", !0),
1741
+ e.hasFieldChange ? (P(), x(o, {
1742
+ key: 1,
1743
+ type: "warning",
1744
+ "show-icon": "",
1745
+ class: "modify-warning"
1746
+ }, {
1747
+ message: U(() => [t[1] ||= T(" 检测到规则字段已变更,请 ", -1), w("a", {
1748
+ class: "update-rules-link",
1749
+ onClick: t[0] ||= (...t) => e.updateRules && e.updateRules(...t)
1750
+ }, "执行规则更新")]),
1751
+ _: 1
1752
+ })) : S("", !0),
1753
+ w("div", qe, [E(s, {
1754
+ style: { "margin-right": "8px" },
1755
+ loading: e.updating,
1756
+ onClick: e.updateRules
1757
+ }, {
1758
+ default: U(() => [...t[2] ||= [T(" 规则更新 ", -1)]]),
1759
+ _: 1
1760
+ }, 8, ["loading", "onClick"]), E(s, {
1761
+ type: "primary",
1762
+ onClick: e.addRule
1763
+ }, {
1764
+ default: U(() => [...t[3] ||= [T(" 添加规则 ", -1)]]),
1765
+ _: 1
1766
+ }, 8, ["onClick"])]),
1767
+ e.value?.length ? S("", !0) : (P(), x(c, { key: 2 }, {
1768
+ description: U(() => [...t[4] ||= [w("span", null, "未配置任何规则", -1)]]),
1769
+ default: U(() => [E(s, {
1770
+ type: "primary",
1771
+ onClick: e.addRule
1772
+ }, {
1773
+ default: U(() => [...t[5] ||= [T(" 点击创建 ", -1)]]),
1774
+ _: 1
1775
+ }, 8, ["onClick"])]),
1776
+ _: 1
1777
+ })),
1778
+ E(y, {
1779
+ name: "rule-list",
1780
+ tag: "div",
1781
+ class: "rule-list-container"
1782
+ }, {
1783
+ default: U(() => [(P(!0), C(_, null, L(e.value, (t) => (P(), C("div", {
1784
+ key: t.key,
1785
+ class: "rule-block"
1786
+ }, [E(l, {
1787
+ rule: t,
1788
+ "form-data": e.formData,
1789
+ onRemoveRule: (n) => e.removeRule(t.key),
1790
+ onCopyRule: e.copyRule
1791
+ }, null, 8, [
1792
+ "rule",
1793
+ "form-data",
1794
+ "onRemoveRule",
1795
+ "onCopyRule"
1796
+ ])]))), 128))]),
1797
+ _: 1
1798
+ })
1799
+ ]);
1800
+ }
1801
+ var Ye = /* @__PURE__ */ a(Ge, [["render", Je], ["__scopeId", "data-v-031ac33c"]]), Xe = O({
1802
+ name: "dataStoreTest",
1803
+ components: {},
1804
+ props: { item: {
1805
+ type: Object,
1806
+ required: !0
1807
+ } },
1808
+ emits: ["update:value"],
1809
+ setup(e, { emit: t }) {
1810
+ let n = b(() => {
1811
+ let e = r.value.length * 200;
1812
+ return e < 1e3 ? 1e3 : e;
1813
+ }), r = b(() => {
1814
+ let t = [];
1815
+ for (let n of e.item.columns) t.push({
1816
+ ...n,
1817
+ dataIndex: n.key,
1818
+ autoHeight: !0
1819
+ });
1820
+ return t;
1821
+ });
1822
+ return {
1823
+ columns: r,
1824
+ width: n
1825
+ };
1826
+ }
1827
+ }), Ze = { class: "header-cell" }, Qe = { class: "header-info" }, $e = { class: "header-index" }, et = ["title"];
1828
+ function tt(e, t, n, r, i, a) {
1829
+ let o = R("a-tag"), s = R("s-table");
1830
+ return P(), x(s, {
1831
+ columns: e.columns,
1832
+ "data-source": e.item.data_list,
1833
+ pagination: !1,
1834
+ "range-selection": !1,
1835
+ scroll: { x: e.width },
1836
+ "row-key": "index",
1837
+ "header-height": 70
1838
+ }, {
1839
+ headerCell: U(({ title: e, column: n }) => [w("div", Ze, [w("div", Qe, [w("span", $e, z(n.index), 1), n.is_import_column ? S("", !0) : (P(), x(o, {
1840
+ key: 0,
1841
+ color: "red",
1842
+ class: "no-import-tag"
1843
+ }, {
1844
+ default: U(() => [...t[0] ||= [T(" 不导入 ", -1)]]),
1845
+ _: 1
1846
+ }))]), w("div", {
1847
+ class: "header-title",
1848
+ title: e
1849
+ }, z(e), 9, et)])]),
1850
+ _: 1
1851
+ }, 8, [
1852
+ "columns",
1853
+ "data-source",
1854
+ "scroll"
1855
+ ]);
1856
+ }
1857
+ //#endregion
1858
+ //#region src/components/approval/components/dataStoreConfig/dataStoreTest.vue?vue&type=script&lang.ts
1859
+ var nt = O({
1860
+ name: "dataStoreTest",
1861
+ components: { dataStoreTestsItem: /* @__PURE__ */ a(Xe, [["render", tt], ["__scopeId", "data-v-04b579b9"]]) },
1862
+ props: { modelType: {
1863
+ type: String,
1864
+ default: null
1865
+ } },
1866
+ emits: ["update:value"],
1867
+ setup(e, { emit: t }) {
1868
+ let n = I([]), r = I(null), a = I(null), o = I(!1), s = async () => {
1869
+ n.value = (await i({
1870
+ is_my_send: !0,
1871
+ current: 1,
1872
+ pageSize: 50,
1873
+ sort_fields: ["-id"],
1874
+ conditions: [[
1875
+ {
1876
+ class_name: "bool",
1877
+ field_name: "is_active",
1878
+ format: "choices",
1879
+ operator: "eq",
1880
+ value: [!0]
1881
+ },
1882
+ {
1883
+ class_name: "str",
1884
+ field_name: "menu_flag",
1885
+ format: "input",
1886
+ operator: "eq",
1887
+ value: [e.modelType]
1888
+ },
1889
+ {
1890
+ class_name: "str",
1891
+ field_name: "process_status",
1892
+ format: "input",
1893
+ operator: "eq",
1894
+ value: ["init"]
1895
+ }
1896
+ ]],
1897
+ column_fields: ["number", "context"]
1898
+ }, "/approve/query_approve_record_list")).data;
1899
+ };
1900
+ return M(() => {
1901
+ s();
1902
+ }), {
1903
+ approveRecordList: n,
1904
+ recordID: r,
1905
+ dataStoreResult: a,
1906
+ loading: o,
1907
+ getTestData: async () => {
1908
+ if (r.value) {
1909
+ o.value = !0;
1910
+ try {
1911
+ a.value = await i({ approve_record_id: r.value }, "/approve/test_approve_data_store");
1912
+ } finally {
1913
+ o.value = !1;
1914
+ }
1915
+ }
1916
+ }
1917
+ };
1918
+ }
1919
+ }), rt = { class: "data-store-test" }, it = { class: "item-wrapper" }, at = { class: "item-number" }, ot = { class: "item-context help-text" }, st = {
1920
+ key: 0,
1921
+ class: "result-wrapper"
1922
+ }, ct = { class: "result-item-title" }, lt = {
1923
+ key: 0,
1924
+ class: "error-text"
1925
+ }, ut = { class: "result-item-content" };
1926
+ function dt(e, t, n, r, i, a) {
1927
+ let o = R("a-select-option"), s = R("a-select"), c = R("a-form-item"), l = R("a-col"), u = R("a-button"), d = R("a-row"), f = R("a-form"), p = R("a-card"), m = R("a-alert"), h = R("data-store-tests-item"), g = R("a-empty"), v = R("a-spin");
1928
+ return P(), C("div", rt, [E(p, { class: "test-form-card" }, {
1929
+ default: U(() => [E(f, { layout: "vertical" }, {
1930
+ default: U(() => [E(d, { gutter: 16 }, {
1931
+ default: U(() => [E(l, { span: 18 }, {
1932
+ default: U(() => [E(c, { label: "测试数据" }, {
1933
+ default: U(() => [E(s, {
1934
+ value: e.recordID,
1935
+ "onUpdate:value": t[0] ||= (t) => e.recordID = t,
1936
+ placeholder: "请选择测试数据",
1937
+ "show-search": "",
1938
+ "option-filter-prop": "children"
1939
+ }, {
1940
+ default: U(() => [(P(!0), C(_, null, L(e.approveRecordList, (e) => (P(), x(o, {
1941
+ key: e.id,
1942
+ value: e.id
1943
+ }, {
1944
+ default: U(() => [w("div", it, [w("div", at, z(e.number), 1), w("div", ot, z(e.context), 1)])]),
1945
+ _: 2
1946
+ }, 1032, ["value"]))), 128))]),
1947
+ _: 1
1948
+ }, 8, ["value"])]),
1949
+ _: 1
1950
+ })]),
1951
+ _: 1
1952
+ }), E(l, { span: 6 }, {
1953
+ default: U(() => [E(c, { label: " " }, {
1954
+ default: U(() => [E(u, {
1955
+ type: "primary",
1956
+ onClick: e.getTestData,
1957
+ loading: e.loading,
1958
+ block: "",
1959
+ disabled: !e.recordID
1960
+ }, {
1961
+ default: U(() => [...t[1] ||= [T(" 获取测试结果 ", -1)]]),
1962
+ _: 1
1963
+ }, 8, [
1964
+ "onClick",
1965
+ "loading",
1966
+ "disabled"
1967
+ ])]),
1968
+ _: 1
1969
+ })]),
1970
+ _: 1
1971
+ })]),
1972
+ _: 1
1973
+ })]),
1974
+ _: 1
1975
+ })]),
1976
+ _: 1
1977
+ }), E(v, { spinning: e.loading }, {
1978
+ default: U(() => [e.dataStoreResult && e.dataStoreResult.length > 0 ? (P(), C("div", st, [E(d, { gutter: 16 }, {
1979
+ default: U(() => [(P(!0), C(_, null, L(e.dataStoreResult, (e, t) => (P(), x(l, {
1980
+ span: 24,
1981
+ key: t,
1982
+ style: { "margin-bottom": "16px" }
1983
+ }, {
1984
+ default: U(() => [E(p, {
1985
+ bordered: !0,
1986
+ class: "result-card"
1987
+ }, {
1988
+ title: U(() => [w("span", ct, z(e.excel_type_flag), 1)]),
1989
+ default: U(() => [e.errors ? (P(), C("div", lt, [E(m, {
1990
+ type: "error",
1991
+ banner: ""
1992
+ }, {
1993
+ message: U(() => [w("pre", null, z(e.errors), 1)]),
1994
+ _: 2
1995
+ }, 1024)])) : S("", !0), w("div", ut, [E(h, { item: e }, null, 8, ["item"])])]),
1996
+ _: 2
1997
+ }, 1024)]),
1998
+ _: 2
1999
+ }, 1024))), 128))]),
2000
+ _: 1
2001
+ })])) : e.dataStoreResult && e.dataStoreResult.length === 0 ? (P(), x(g, {
2002
+ key: 1,
2003
+ description: "暂无测试结果"
2004
+ })) : S("", !0)]),
2005
+ _: 1
2006
+ }, 8, ["spinning"])]);
2007
+ }
2008
+ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]]), pt = /* @__PURE__ */ O({
2009
+ __name: "baseConfig",
2010
+ props: {
2011
+ config: {},
2012
+ configModifiers: {}
2013
+ },
2014
+ emits: ["update:config"],
2015
+ setup(e) {
2016
+ let t = V(e, "config"), n = b(() => {
2017
+ let e = [];
2018
+ e.push(1), e.push(211), e.push(7555);
2019
+ for (let n = 0; n < 3; n++) e.push(Math.floor(Math.random() * 10 ** t.value.number_digit_place));
2020
+ for (let n = 0; n < 3; n++) e.push(Math.floor(Math.random() * 10 ** (t.value.number_digit_place + 3)));
2021
+ return e.map((e) => t.value.number_prefix + String(e).padStart(t.value.number_digit_place, "0") + t.value.number_suffix).join("\n");
2022
+ });
2023
+ return (e, r) => {
2024
+ let i = R("a-input"), a = R("a-form-item"), o = R("a-textarea"), s = R("a-form");
2025
+ return P(), x(s, null, {
2026
+ default: U(() => [
2027
+ E(a, { label: " 流水号前缀" }, {
2028
+ default: U(() => [E(i, {
2029
+ value: t.value.number_prefix,
2030
+ "onUpdate:value": r[0] ||= (e) => t.value.number_prefix = e
2031
+ }, null, 8, ["value"])]),
2032
+ _: 1
2033
+ }),
2034
+ E(a, { label: "流水号后缀" }, {
2035
+ default: U(() => [E(i, {
2036
+ value: t.value.number_suffix,
2037
+ "onUpdate:value": r[1] ||= (e) => t.value.number_suffix = e
2038
+ }, null, 8, ["value"])]),
2039
+ _: 1
2040
+ }),
2041
+ E(a, { label: "流水号示例" }, {
2042
+ default: U(() => [E(o, {
2043
+ value: n.value,
2044
+ "onUpdate:value": r[2] ||= (e) => n.value = e,
2045
+ disabled: "",
2046
+ "auto-size": "",
2047
+ style: {
2048
+ width: "100%",
2049
+ "font-family": "monospace"
2050
+ }
2051
+ }, null, 8, ["value"])]),
2052
+ _: 1
2053
+ }),
2054
+ E(a, { label: "单据编号前缀" }, {
2055
+ default: U(() => [E(i, {
2056
+ value: t.value.form_code_prefix,
2057
+ "onUpdate:value": r[3] ||= (e) => t.value.form_code_prefix = e
2058
+ }, null, 8, ["value"])]),
2059
+ _: 1
2060
+ })
2061
+ ]),
2062
+ _: 1
2063
+ });
2064
+ };
2065
+ }
2066
+ }), mt = /* @__PURE__ */ a(/* @__PURE__ */ O({
2067
+ __name: "index",
2068
+ props: {
2069
+ sideTreeData: {},
2070
+ height: {}
2071
+ },
2072
+ setup(e) {
2073
+ let t = e, r = I(!1), a = se(), l = n(), f = I("tables"), g = I([]), v = I(null), y = I(null), O = I([]), k = I(!1), A = I(!1), N = I(!1), F = p(), z = I(null), V = b(() => t.height + 45), ae = [
2074
+ {
2075
+ title: "左侧栏",
2076
+ key: "tables",
2077
+ component: D(() => import("./leftColumn-CsPjufue.js"))
2078
+ },
2079
+ {
2080
+ title: "中间栏",
2081
+ key: "form",
2082
+ component: D(() => import("./middleColumn-C7M6-eVo.js"))
2083
+ },
2084
+ {
2085
+ title: "右侧栏",
2086
+ key: "data_list",
2087
+ sectionType: "data_list",
2088
+ component: D(() => import("./tableConfig-uLXue-BS.js").then((e) => e.n))
2089
+ }
2090
+ ], oe = b(() => {
2091
+ let e = K("form");
2092
+ if (e) return e.form;
2093
+ }), K = (e) => v.value?.columns ? v.value.columns.find((t) => t.type === e) : null, ce = (e) => {
2094
+ let t = K(e);
2095
+ return e === "data_list" ? t.table : t;
2096
+ }, le = (e, t) => {
2097
+ let n = K(e);
2098
+ n && Object.assign(e === "data_list" ? n.table : n, {
2099
+ ...t,
2100
+ type: e
2101
+ });
2102
+ }, q = (e) => {
2103
+ for (let t of e) t.component === "../index.vue" ? t.disabled = !1 : t.disabled = !0, t.children && t.children.length > 0 && q(t.children);
2104
+ }, de = () => {
2105
+ let e = G(t.sideTreeData.treeData);
2106
+ q(e), g.value = e, fe(), me(), he();
2107
+ }, fe = async () => {
2108
+ if (z.value) {
2109
+ r.value = !0;
2110
+ try {
2111
+ let { config: e } = await c(z.value.state);
2112
+ v.value = e;
2113
+ } finally {
2114
+ r.value = !1;
2115
+ }
2116
+ }
2117
+ }, me = async () => {
2118
+ z.value && (r.value = !0, y.value = await s(z.value.state), y.value.name || (y.value.name = z.value.name));
2119
+ }, he = async () => {
2120
+ if (!z.value) return;
2121
+ r.value = !0;
2122
+ let { config: e } = await o(z.value.state);
2123
+ O.value = e;
2124
+ }, J = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2125
+ e.children && Y(e.children, t, {
2126
+ clear_code: n,
2127
+ clear_action_code_id: r
2128
+ }), e.custom_btn_list && Z(e.custom_btn_list, t, {
2129
+ clear_code: n,
2130
+ clear_action_code_id: r
2131
+ });
2132
+ }, Y = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2133
+ for (let i of e) if (Z(i.custom_btn_list || [], t, {
2134
+ clear_code: n,
2135
+ clear_action_code_id: r
2136
+ }), i.children) for (let e of i.children) e.type === "remotetablepro" ? J(e, t, {
2137
+ clear_code: n,
2138
+ clear_action_code_id: r
2139
+ }) : e.type === "button" ? X(e, t, {
2140
+ clear_code: n,
2141
+ clear_action_code_id: r
2142
+ }) : e.type === "formtemplate" ? (e.form?.dynamicFieldList && Y(e.form.dynamicFieldList, t, {
2143
+ clear_code: n,
2144
+ clear_action_code_id: r
2145
+ }), e.custom_btn_list && Z(e.custom_btn_list, t, {
2146
+ clear_code: n,
2147
+ clear_action_code_id: r
2148
+ }), e.dynamicTitle?.enable && X(e.dynamicTitle, t, {
2149
+ clear_code: n,
2150
+ clear_action_code_id: r
2151
+ })) : e.type === "dynamicvaluefield" && X(e, t, {
2152
+ clear_code: n,
2153
+ clear_action_code_id: r
2154
+ });
2155
+ }, X = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2156
+ !e.action_code_id && !r && (e.action_code_id = d()), e.action_code_id && r && delete e.action_code_id, (e.code || e.action) && t != null && (t[e.action_code_id] = {
2157
+ action: e.action,
2158
+ code: e.code
2159
+ }), n && (delete e.action, delete e.code), e.showCode?.enable && (!e.showCode.action_code_id && !r && (e.showCode.action_code_id = d()), e.showCode.action_code_id && r && delete e.showCode.action_code_id, t != null && (t[e.showCode.action_code_id] = {
2160
+ action: null,
2161
+ code: e.showCode.code
2162
+ }), n && delete e.showCode.code), e.disableCode?.enable && (!e.disableCode.action_code_id && !r && (e.disableCode.action_code_id = d()), e.disableCode.action_code_id && r && delete e.disableCode.action_code_id, t != null && (t[e.disableCode.action_code_id] = {
2163
+ action: null,
2164
+ code: e.disableCode.code
2165
+ }), n && delete e.disableCode.code);
2166
+ }, Z = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2167
+ for (let i of e) X(i, t, {
2168
+ clear_code: n,
2169
+ clear_action_code_id: r
2170
+ });
2171
+ }, ge = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2172
+ if (e.tables) for (let i of e.tables) i.actions && Z(i.actions, t, {
2173
+ clear_code: n,
2174
+ clear_action_code_id: r
2175
+ }), i.row_actions && Z(i.row_actions, t, {
2176
+ clear_code: n,
2177
+ clear_action_code_id: r
2178
+ });
2179
+ }, Q = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
2180
+ if (!e) return e;
2181
+ n && (e = G(e));
2182
+ let i = e?.columns || [];
2183
+ for (let e of i) e.type === "tables" ? ge(e, t, {
2184
+ clear_code: n,
2185
+ clear_action_code_id: r
2186
+ }) : e.type === "form" ? (e.actions && Z(e.actions, t, {
2187
+ clear_code: n,
2188
+ clear_action_code_id: r
2189
+ }), e.form?.dynamicFieldList && Y(e.form.dynamicFieldList, t, {
2190
+ clear_code: n,
2191
+ clear_action_code_id: r
2192
+ })) : e.type === "data_list" && (e.table?.actions && Z(e.table.actions, t, {
2193
+ clear_code: n,
2194
+ clear_action_code_id: r
2195
+ }), e.table?.row_actions && Z(e.table.row_actions, t, {
2196
+ clear_code: n,
2197
+ clear_action_code_id: r
2198
+ }));
2199
+ return e;
2200
+ }, $ = async () => {
2201
+ try {
2202
+ k.value = !0;
2203
+ let e = {};
2204
+ Q(v.value, e, { clear_code: !1 });
2205
+ let t = {
2206
+ menu_flag: z.value.state,
2207
+ content: Q(v.value, e, { clear_code: !0 })
2208
+ };
2209
+ await i({
2210
+ menu_flag: z.value.state,
2211
+ allCodes: e
2212
+ }, "/approve/set_action_code_for_menu"), await i(t, "/approve/set_page_setting"), O.value.sort((e, t) => (e.order || 0) - (t.order || 0)), await i({
2213
+ menu_flag: z.value.state,
2214
+ content: u(G(O.value))
2215
+ }, "/approve/set_data_store_setting"), y.value && await i({
2216
+ ...y.value,
2217
+ menu_flag: z.value.state
2218
+ }, "/approve/set_flow_setting"), W.success("保存成功");
2219
+ } finally {
2220
+ k.value = !1;
2221
+ }
2222
+ }, _e = () => {
2223
+ if (!v.value && !O.value) {
2224
+ W.warning("没有可以导出的配置");
2225
+ return;
2226
+ }
2227
+ Q(v.value, null, {
2228
+ clear_code: !1,
2229
+ clear_action_code_id: !0
2230
+ });
2231
+ let e = {
2232
+ dataSource: v.value,
2233
+ dataSorteConfig: u(G(O.value))
2234
+ }, t = JSON.stringify(e, null, 2), n = new Blob([t], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
2235
+ i.href = r, i.download = z.value ? `${z.value.name}_config.json` : "config.json", document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r), W.success("导出成功");
2236
+ }, ve = () => {
2237
+ let e = document.createElement("input");
2238
+ e.type = "file", e.accept = "application/json", e.onchange = (e) => {
2239
+ let t = e.target.files?.[0];
2240
+ if (!t) return;
2241
+ let n = new FileReader();
2242
+ n.onload = async (e) => {
2243
+ try {
2244
+ let t = e.target?.result, n = JSON.parse(t);
2245
+ if (n.dataSource) {
2246
+ let e = [];
2247
+ for (let t of n.dataSource.columns || []) e.push(t);
2248
+ n.dataSource.columns = e, v.value = n.dataSource;
2249
+ }
2250
+ n.dataSorteConfig && (O.value = u(n.dataSorteConfig)), await $();
2251
+ } catch (e) {
2252
+ console.error("Import failed", e), W.error("导入失败,请检查文件格式");
2253
+ }
2254
+ }, n.readAsText(t);
2255
+ }, e.click();
2256
+ }, ye = async () => {
2257
+ A.value = !0;
2258
+ }, be = () => {
2259
+ A.value = !1;
2260
+ }, xe = () => {
2261
+ A.value = !1;
2262
+ }, Se = (e) => {
2263
+ F[m](e);
2264
+ }, Ce = (e) => {
2265
+ z.value = e;
2266
+ };
2267
+ return M(() => {
2268
+ N.value = l.CHECK_AUTH("approve/debug_code", "开启代码调试"), de(), a.on("saveConfig", $);
2269
+ }), H(() => z.value, () => {
2270
+ de();
2271
+ }, { immediate: !0 }), (e, t) => {
2272
+ let n = R("a-layout-sider"), i = R("a-switch"), o = R("a-form-item"), s = R("a-button"), c = R("a-button-group"), l = R("a-form"), u = R("a-tab-pane"), d = R("a-tabs"), p = R("a-spin"), m = R("a-layout-content"), g = R("a-layout"), b = R("a-modal");
2273
+ return P(), C(_, null, [w("div", null, [E(g, { style: j({ height: V.value + "px" }) }, {
2274
+ default: U(() => [E(n, {
2275
+ class: "approve-config-left",
2276
+ style: { width: "500px" },
2277
+ width: 220
2278
+ }, {
2279
+ default: U(() => [E(h, { onChange: Ce })]),
2280
+ _: 1
2281
+ }), E(m, { class: "setting-container" }, {
2282
+ default: U(() => [E(p, { spinning: r.value }, {
2283
+ default: U(() => [v.value ? (P(), x(d, {
2284
+ key: 0,
2285
+ activeKey: f.value,
2286
+ "onUpdate:activeKey": t[4] ||= (e) => f.value = e
2287
+ }, {
2288
+ rightExtra: U(() => [E(l, { layout: "inline" }, {
2289
+ default: U(() => [N.value ? (P(), x(o, {
2290
+ key: 0,
2291
+ label: "开启代码调试"
2292
+ }, {
2293
+ default: U(() => [E(i, {
2294
+ checked: B(F).enable,
2295
+ onChange: Se
2296
+ }, null, 8, ["checked"])]),
2297
+ _: 1
2298
+ })) : S("", !0), E(c, null, {
2299
+ default: U(() => [
2300
+ E(s, {
2301
+ type: "default",
2302
+ onClick: _e
2303
+ }, {
2304
+ default: U(() => [t[6] ||= T(" 导出 ", -1), E(B(ne))]),
2305
+ _: 1
2306
+ }),
2307
+ E(s, {
2308
+ type: "default",
2309
+ onClick: ve,
2310
+ loading: k.value
2311
+ }, {
2312
+ default: U(() => [t[7] ||= T(" 导入 ", -1), E(B(re))]),
2313
+ _: 1
2314
+ }, 8, ["loading"]),
2315
+ E(s, {
2316
+ type: "default",
2317
+ onClick: ye,
2318
+ loading: k.value
2319
+ }, {
2320
+ default: U(() => [t[8] ||= T(" 数据测试 ", -1), E(B(te))]),
2321
+ _: 1
2322
+ }, 8, ["loading"]),
2323
+ E(s, {
2324
+ type: "primary",
2325
+ onClick: $,
2326
+ loading: k.value
2327
+ }, {
2328
+ default: U(() => [t[9] ||= T(" 保存 ", -1), E(B(ie))]),
2329
+ _: 1
2330
+ }, 8, ["loading"])
2331
+ ]),
2332
+ _: 1
2333
+ })]),
2334
+ _: 1
2335
+ })]),
2336
+ default: U(() => [
2337
+ E(u, {
2338
+ tab: "基础配置",
2339
+ key: "base_config"
2340
+ }, {
2341
+ default: U(() => [f.value === "base_config" ? (P(), x(pt, {
2342
+ key: 0,
2343
+ config: v.value,
2344
+ "onUpdate:config": t[0] ||= (e) => v.value = e
2345
+ }, null, 8, ["config"])) : S("", !0)]),
2346
+ _: 1
2347
+ }),
2348
+ (P(), C(_, null, L(ae, (e) => E(u, {
2349
+ key: e.key,
2350
+ tab: e.title
2351
+ }, {
2352
+ default: U(() => [e.component ? (P(), x(ee(e.component), {
2353
+ key: 0,
2354
+ dataSource: ce(e.key),
2355
+ rootData: v.value,
2356
+ formData: oe.value,
2357
+ tableType: e.sectionType,
2358
+ "onUpdate:dataSource": (t) => le(e.key, t),
2359
+ eventBus: B(a)
2360
+ }, null, 40, [
2361
+ "dataSource",
2362
+ "rootData",
2363
+ "formData",
2364
+ "tableType",
2365
+ "onUpdate:dataSource",
2366
+ "eventBus"
2367
+ ])) : S("", !0)]),
2368
+ _: 2
2369
+ }, 1032, ["tab"])), 64)),
2370
+ E(u, {
2371
+ tab: "页面代码配置",
2372
+ key: "json_edit"
2373
+ }, {
2374
+ default: U(() => [f.value === "json_edit" ? (P(), x(ue, {
2375
+ key: 0,
2376
+ dataSource: v.value,
2377
+ "onUpdate:dataSource": t[1] ||= (e) => v.value = e
2378
+ }, null, 8, ["dataSource"])) : S("", !0)]),
2379
+ _: 1
2380
+ }),
2381
+ E(u, {
2382
+ tab: "流程配置",
2383
+ key: "flow_config"
2384
+ }, {
2385
+ default: U(() => [E(pe, {
2386
+ value: y.value,
2387
+ "onUpdate:value": t[2] ||= (e) => y.value = e,
2388
+ "menu-flag": z.value?.state,
2389
+ "data-source": v.value
2390
+ }, null, 8, [
2391
+ "value",
2392
+ "menu-flag",
2393
+ "data-source"
2394
+ ])]),
2395
+ _: 1
2396
+ }),
2397
+ E(u, {
2398
+ tab: "数据存储配置",
2399
+ key: "data_store_config"
2400
+ }, {
2401
+ default: U(() => [E(Ye, {
2402
+ value: O.value,
2403
+ "onUpdate:value": t[3] ||= (e) => O.value = e,
2404
+ "menu-flag": z.value?.state,
2405
+ formData: oe.value
2406
+ }, null, 8, [
2407
+ "value",
2408
+ "menu-flag",
2409
+ "formData"
2410
+ ])]),
2411
+ _: 1
2412
+ })
2413
+ ]),
2414
+ _: 1
2415
+ }, 8, ["activeKey"])) : S("", !0)]),
2416
+ _: 1
2417
+ }, 8, ["spinning"])]),
2418
+ _: 1
2419
+ })]),
2420
+ _: 1
2421
+ }, 8, ["style"])]), A.value ? (P(), x(b, {
2422
+ key: 0,
2423
+ open: A.value,
2424
+ "onUpdate:open": t[5] ||= (e) => A.value = e,
2425
+ title: "数据测试",
2426
+ onOk: be,
2427
+ onCancel: xe,
2428
+ width: "100%"
2429
+ }, {
2430
+ default: U(() => [E(ft, { "model-type": z.value.state }, null, 8, ["model-type"])]),
2431
+ _: 1
2432
+ }, 8, ["open"])) : S("", !0)], 64);
2433
+ };
2434
+ }
2435
+ }), [["__scopeId", "data-v-47ad85d5"]]);
2436
+ //#endregion
2437
+ export { mt as default };