@jeecg/online 3.7.1-RC → 3.7.4

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 (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -1,985 +0,0 @@
1
- var Ut = Object.defineProperty, Yt = Object.defineProperties;
2
- var qt = Object.getOwnPropertyDescriptors;
3
- var Ae = Object.getOwnPropertySymbols;
4
- var Kt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable;
5
- var De = (r, p, u) => p in r ? Ut(r, p, { enumerable: !0, configurable: !0, writable: !0, value: u }) : r[p] = u, S = (r, p) => {
6
- for (var u in p || (p = {}))
7
- Kt.call(p, u) && De(r, u, p[u]);
8
- if (Ae)
9
- for (var u of Ae(p))
10
- Wt.call(p, u) && De(r, u, p[u]);
11
- return r;
12
- }, ce = (r, p) => Yt(r, qt(p));
13
- var C = (r, p, u) => new Promise((a, R) => {
14
- var E = (w) => {
15
- try {
16
- P(u.next(w));
17
- } catch (v) {
18
- R(v);
19
- }
20
- }, M = (w) => {
21
- try {
22
- P(u.throw(w));
23
- } catch (v) {
24
- R(v);
25
- }
26
- }, P = (w) => w.done ? a(w.value) : Promise.resolve(w.value).then(E, M);
27
- P((u = u.apply(r, p)).next());
28
- });
29
- import { useMessage as Ht } from "/@/hooks/web/useMessage";
30
- import { ref as y, inject as zt, reactive as Gt, watch as Qt, computed as Xt, resolveComponent as O, openBlock as D, createElementBlock as ee, normalizeClass as Zt, createVNode as N, createBlock as te, withCtx as W, Fragment as $t, renderList as eo, normalizeStyle as to, createElementVNode as pe, createCommentVNode as fe, renderSlot as oo, unref as Me, nextTick as Ie, toRaw as U, pushScopeId as lo, popScopeId as no } from "vue";
31
- import { BasicForm as ao, useForm as io } from "/@/components/Form/index";
32
- import { c as ro, O as so, d as uo, e as co, u as fo, l as H, g as mo, V as z, S as po, f as ho, h as je, j as de } from "./useExtendComponent-dcae5c78.mjs";
33
- import { defHttp as oe } from "/@/utils/http/axios";
34
- import { pick as go, omit as Be, cloneDeep as bo } from "lodash-es";
35
- import { sleep as yo, goJmReportViewPage as vo } from "/@/utils";
36
- import { Loading as Fo } from "/@/components/Loading";
37
- import "/@/components/jeecg/JVxeTable/types";
38
- import { getToken as wo } from "/@/utils/auth";
39
- import { PrinterOutlined as So, DiffOutlined as To, FormOutlined as _o } from "@ant-design/icons-vue";
40
- import "/@/hooks/core/useContext";
41
- import "/@/utils/mitt";
42
- import { useModal as ko } from "/@/components/Modal";
43
- import { u as Co, G as Oo } from "./useCustomHook-acb00837.mjs";
44
- import { E as le } from "./constant-fa63bd66.mjs";
45
- import { useAppInject as Po } from "/@/hooks/web/useAppInject";
46
- import { isArray as xo } from "/@/utils/is";
47
- import { usePermissionStore as Ro } from "/@/store/modules/permission";
48
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
49
- import { _ as Eo } from "./index-1d1a6e56.mjs";
50
- import "/@/components/Form/src/componentMap";
51
- import "/@/utils/propTypes";
52
- import "/@/utils/common/compUtils";
53
- import "/@/components/Form/src/jeecg/components/JUpload";
54
- import "/@/views/system/user/user.api";
55
- import "/@/store/modules/user";
56
- import "/@/utils/desform/customExpression";
57
- import "/@/utils/dict/JDictSelectUtil";
58
- import "/@/components/Table";
59
- import "/@/hooks/system/useListPage";
60
- import "vue-router";
61
- import "/@/components/Form/src/utils/Area";
62
- import "/@/components/Preview/index";
63
- import "./LinkTableListPiece-f3a8e0d7.mjs";
64
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
65
- import "/@/api/common/api";
66
- import "/@/assets/images/placeholderImage.png";
67
- import "./OnlineSelectCascade-05c40fef.mjs";
68
- import "./JModalTip-b055ab60.mjs";
69
- import "ant-design-vue";
70
- import "@vueuse/core";
71
- import "/@/utils/cache";
72
- const me = {
73
- optPre: "/online/cgform/api/form/",
74
- urlButtonAction: "/online/cgform/api/doButton"
75
- }, Vo = {
76
- name: "OnlineForm",
77
- components: {
78
- BasicForm: ao,
79
- Loading: Fo,
80
- OnlineSubForm: ro,
81
- PrinterOutlined: So,
82
- DiffOutlined: To,
83
- FormOutlined: _o,
84
- OnlinePopModal: so
85
- },
86
- props: {
87
- id: {
88
- type: String,
89
- default: ""
90
- },
91
- formTemplate: {
92
- type: Number,
93
- default: 1
94
- },
95
- disabled: {
96
- type: Boolean,
97
- default: !1
98
- },
99
- isTree: {
100
- type: Boolean,
101
- default: !1
102
- },
103
- pidField: {
104
- type: String,
105
- default: ""
106
- },
107
- submitTip: {
108
- type: Boolean,
109
- default: !0
110
- },
111
- modalClass: {
112
- type: String,
113
- default: ""
114
- },
115
- themeTemplate: {
116
- type: String,
117
- default: ""
118
- },
119
- // update-begin--author:liaozhiyang---date:20231128---for:【QQYUN-7260】erp主表编辑时保存子表记录
120
- // erp风格会传来所有子表数据
121
- subTableSource: {
122
- default: () => ({})
123
- },
124
- // update-end-author:liaozhiyang---date:20231128---for:【QQYUN-7260】erp主表编辑时保存子表记录
125
- // -update-begin--author:liaozhiyang---date:20240613---for:【TV360X-1000】流程一对多走流程的接口
126
- // 流程会传taskId
127
- taskId: {
128
- type: String
129
- }
130
- // -update-end--author:liaozhiyang---date:20240613---for:【TV360X-1000】流程一对多走流程的接口
131
- },
132
- emits: ["success", "rendered", "close"],
133
- setup(r, { emit: p }) {
134
- const { createMessage: u } = Ht(), a = y(null), R = y(!0), E = y(!1), M = y(1), P = y(""), w = y(!1), v = y(!1), { getIsMobile: I } = Po(), G = y(!1), J = zt("foreignkey", { value: {} }), ne = y(!I.value), Y = y(null);
135
- let L = null;
136
- const c = Gt({
137
- reportPrintShow: 0,
138
- reportPrintUrl: "",
139
- joinQuery: 0,
140
- modelFullscreen: 0,
141
- modalMinWidth: "",
142
- commentStatus: 0
143
- }), { onlineFormContext: g, resetContext: F } = uo(), {
144
- formSchemas: Q,
145
- defaultValueFields: X,
146
- changeDataIfArray2String: he,
147
- tableName: j,
148
- dbData: V,
149
- checkOnlyFieldValue: Ne,
150
- hasSubTable: Je,
151
- subTabInfo: T,
152
- refMap: x,
153
- subDataSource: Z,
154
- baseColProps: Le,
155
- createFormSchemas: Ue,
156
- linkDownList: No,
157
- fieldDisplayStatus: q,
158
- labelCol: Ye,
159
- wrapperCol: qe,
160
- labelWidth: Ke
161
- } = co(r, a);
162
- let { EnhanceJS: f, initCgEnhanceJs: We } = fo(g, !1);
163
- Qt(
164
- [T, I],
165
- () => {
166
- I.value && T.value.length && T.value.forEach((e) => {
167
- e.relationType != 1 && e.columns.forEach((t) => {
168
- t.width = 100;
169
- });
170
- });
171
- },
172
- { immediate: !0 }
173
- );
174
- const { executeJsEnhanced: He } = Co({}, g), [ze, { setProps: Ge, validate: ge, resetFields: be, clearValidate: Qe, setFieldsValue: A, updateSchema: K, getFieldsValue: ae, scrollToField: ye }] = io({
175
- schemas: Q,
176
- showActionButtonGroup: !1,
177
- baseColProps: Le,
178
- // update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
179
- labelWidth: Ke,
180
- // update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
181
- // update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
182
- labelCol: Ye,
183
- wrapperCol: qe
184
- // update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
185
- }), ve = y(!1);
186
- function Xe() {
187
- let e = r.disabled;
188
- ve.value = e, Ge({ disabled: e });
189
- }
190
- function Ze(e, t, o) {
191
- return C(this, null, function* () {
192
- yield $e(), P.value = "", yield be(), setTimeout(() => {
193
- Qe();
194
- }, 0), V.value = "";
195
- let l = Me(e);
196
- v.value = l, ot(), l ? yield we(t) : Se(), Ie(() => {
197
- var n;
198
- !l && o && A(o), et(), ie("js", "loaded"), Xe(), (n = Y.value) != null && n.length && (Y.value[0].scrollTop = 0);
199
- });
200
- });
201
- }
202
- function $e() {
203
- return C(this, null, function* () {
204
- if (r.isTree === !0) {
205
- let e = r.pidField, t = Q.value;
206
- t && t.length > 0 && t.filter((l) => l.field === e).length > 0 && (yield K({
207
- field: e,
208
- componentProps: {
209
- reload: (/* @__PURE__ */ new Date()).getTime(),
210
- // update-begin--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
211
- hiddenNodeKey: ""
212
- // update-end--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
213
- }
214
- }));
215
- }
216
- });
217
- }
218
- function et() {
219
- if (Me(v) === !1) {
220
- let e = U(X[j.value]);
221
- H(e, (t) => {
222
- A(t);
223
- });
224
- }
225
- }
226
- function Fe(e, t) {
227
- let o = U(X[e.key]);
228
- H(o, (l) => {
229
- const { row: n, target: i } = t;
230
- let d = [{ rowKey: n.id, values: S({}, l) }];
231
- i.setValues(d);
232
- });
233
- }
234
- function we(e) {
235
- return C(this, null, function* () {
236
- let t = yield nt(e.id);
237
- V.value = Object.assign({}, e, t);
238
- let o = lt.value, l = go(t, ...o);
239
- r.disabled && Object.keys(l).map((n) => {
240
- !l[n] && l[n] !== 0 && l[n] !== "0" && delete l[n];
241
- }), yield A(l), tt(e.id), Se(t);
242
- });
243
- }
244
- function Se(e) {
245
- e || (e = {});
246
- let t = Object.keys(Z.value);
247
- if (t && t.length > 0) {
248
- let o = {};
249
- for (let l of t)
250
- o[l] = e[l] || [];
251
- Z.value = o;
252
- }
253
- }
254
- function tt(e) {
255
- var t;
256
- if (r.isTree === !0) {
257
- const { schema: o } = L, l = (t = o.properties) != null ? t : {}, n = Object.entries(l);
258
- if (n.length) {
259
- const i = n.find(([d, m]) => m.view === "sel_tree" && m.pidComponent != null);
260
- if (i) {
261
- const d = i[0];
262
- Q.value.find((s) => s.field == d) && K({
263
- field: d,
264
- componentProps: {
265
- hiddenNodeKey: e
266
- }
267
- });
268
- }
269
- }
270
- }
271
- }
272
- function ot() {
273
- var e;
274
- (e = T.value) == null || e.forEach((t) => {
275
- t.relationType == 1 && x[t.key].value && x[t.key].value[0].resetFields();
276
- });
277
- }
278
- let lt = Xt(() => {
279
- let e = Q.value, t = [];
280
- for (let o of e)
281
- t.push(o.field);
282
- return t;
283
- });
284
- function nt(e) {
285
- let t = `${me.optPre}${r.id}/${e}`;
286
- return new Promise((o, l) => {
287
- oe.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
288
- n.success ? o(n.result) : (l(), u.warning(n.message));
289
- }).catch(() => {
290
- l();
291
- });
292
- });
293
- }
294
- function at(e) {
295
- return C(this, null, function* () {
296
- M.value = e.head.tableType, j.value = e.head.tableName, R.value = e.head.tableType == 1, st(e.head.extConfigJson), Ue(e.schema.properties, e.schema.required, Ne, c), f = We(e.enhanceJs), p("rendered", c);
297
- let t = yield mo(a);
298
- t.$formValueChange = (o, l, n) => {
299
- kt(o, l), n && A(n), it(o, l, n);
300
- }, f && f.setup && Pe(f.setup), L = e;
301
- });
302
- }
303
- function it(e, t, o) {
304
- g.changEvent(e, t, o);
305
- }
306
- function rt(e) {
307
- g.addObject2Context("changEvent", e);
308
- }
309
- function st(e) {
310
- let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 0, modalMinWidth: "", commentStatus: 0, formLabelLength: null };
311
- e && (t = JSON.parse(e), I.value && (t.commentStatus = 0)), G.value = !!t.formLabelLength, Object.keys(t).map((o) => {
312
- c[o] = t[o];
313
- });
314
- }
315
- function ut() {
316
- R.value === !0 ? pt() : ct();
317
- }
318
- function ct() {
319
- ft().then((e) => {
320
- _e(e);
321
- });
322
- }
323
- function ft() {
324
- let e = {};
325
- return new Promise((t, o) => {
326
- ge().then(
327
- (l) => t(l),
328
- ({ errorFields: l, values: n }) => {
329
- o({
330
- // update-begin--author:liaozhiyang---date:20240617---for:【TV360X-496】使用数值类型,金额校验,控件默认值得出的是小数导致校验过不去给提示
331
- errorFields: l,
332
- values: n,
333
- // update-end--author:liaozhiyang---date:20240617---for:【TV360X-496】使用数值类型,金额校验,控件默认值得出的是小数导致校验过不去给提示
334
- code: z,
335
- key: j.value,
336
- // 滚动到未通过校验的字段上
337
- scrollToField: () => l[0] && ye(l[0].name, { behavior: "smooth", block: "center" })
338
- });
339
- }
340
- );
341
- }).then((t) => (Object.assign(e, he(t)), r.themeTemplate === le ? Promise.resolve({}) : mt())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === z || (t == null ? void 0 : t.code) === z) && (Te(t.errorFields, t.values, R.value, t.key).then((o) => {
342
- o || u.warning("校验未通过");
343
- }), t.key && (dt(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
344
- }
345
- function dt(e) {
346
- let t = T.value;
347
- for (let o = 0; o < t.length; o++)
348
- if (e == t[o].key) {
349
- let l = o + "";
350
- if ($.value === l)
351
- break;
352
- if ($.value = l, t[o].relationType === 0) {
353
- let n = _(e);
354
- yo(300, () => n == null ? void 0 : n.validateTable());
355
- }
356
- break;
357
- }
358
- }
359
- function mt() {
360
- return new Promise((e, t) => C(this, null, function* () {
361
- let o = {};
362
- try {
363
- let l = T.value;
364
- for (let n = 0; n < l.length; n++) {
365
- let i = l[n].key, d = _(i);
366
- if (l[n].relationType == 1)
367
- try {
368
- let m = yield d.getAll();
369
- o[i] = [], o[i].push(m);
370
- } catch (m) {
371
- return t(S({ code: z, key: i }, m));
372
- }
373
- else {
374
- if (yield d.fullValidateTable())
375
- return t({ code: z, key: i });
376
- o[i] = d.getTableData();
377
- }
378
- }
379
- } catch (l) {
380
- t(l);
381
- }
382
- e(o);
383
- }));
384
- }
385
- function pt() {
386
- return C(this, null, function* () {
387
- try {
388
- let e = yield ge();
389
- e = Object.assign({}, V.value, e), e = he(e), E.value = !0, _e(e);
390
- } catch (e) {
391
- Array.isArray(e == null ? void 0 : e.errorFields) && e.errorFields[0] && (ye(e.errorFields[0].name, { behavior: "smooth", block: "center" }), Te(e.errorFields, e.values, R.value));
392
- } finally {
393
- E.value = !1, p("close");
394
- }
395
- });
396
- }
397
- function Te(e, t, o, l = null) {
398
- return C(this, null, function* () {
399
- var i;
400
- let n = !1;
401
- if (e != null && e.length) {
402
- const d = (i = L.schema) != null ? i : {}, { properties: m = {} } = d, s = e[0].name[0];
403
- let b;
404
- if (o || l === j.value)
405
- b = m[s];
406
- else {
407
- const h = m[l], { properties: k = {} } = h;
408
- b = k[s];
409
- }
410
- b.type === "number" && b.view === "number" && b.defVal && (yield H(
411
- [
412
- {
413
- field: s,
414
- type: b.type,
415
- value: b.defVal,
416
- view: b.view
417
- }
418
- ],
419
- (h) => {
420
- h[s] === t[s] && (u.warning(`${b.title}的默认值是:${t[s]},导致校验通不过,需要正确配置默认值!`), n = !0);
421
- }
422
- ));
423
- }
424
- return n;
425
- });
426
- }
427
- function _e(e) {
428
- r.themeTemplate === le && v.value && Object.keys(r.subTableSource).length && (e = S(S({}, e), r.subTableSource)), Et(Ve, e).then(() => {
429
- gt(e);
430
- }).catch((t) => {
431
- u.warning(t);
432
- });
433
- }
434
- const ht = (e) => {
435
- const { schema: t } = L, { properties: o } = t, l = (n, i) => {
436
- Object.entries(n).forEach(([d, m]) => {
437
- var b;
438
- const s = i[d];
439
- if (s) {
440
- if (s.view === "tab" && xo(m)) {
441
- if (s.properties && m.forEach((h) => {
442
- l(h, s.properties);
443
- }), (b = s.columns) != null && b.length) {
444
- const h = bo(s.columns.filter((k) => k.type === "date" && k.fieldExtendJson));
445
- if (h.length) {
446
- const k = {};
447
- h.forEach((B) => {
448
- k[B.key] = {
449
- view: "date",
450
- fieldExtendJson: B.fieldExtendJson
451
- };
452
- }), m.forEach((B) => {
453
- l(B, k);
454
- });
455
- }
456
- }
457
- } else if (s.view === "date" && typeof m == "string" && m !== "") {
458
- let h = s.fieldExtendJson;
459
- h && (h = JSON.parse(h), h.picker && h.picker !== "default" && (h.picker === "year" ? n[d] = de(m).set("month", 0).set("date", 1).format("YYYY-MM-DD") : h.picker === "month" ? n[d] = de(m).set("date", 1).format("YYYY-MM-DD") : h.picker === "week" && (n[d] = de(m).startOf("week").format("YYYY-MM-DD"))));
460
- }
461
- }
462
- });
463
- };
464
- l(e, o);
465
- };
466
- function gt(e) {
467
- Object.keys(e).map((n) => {
468
- Array.isArray(e[n]) && e[n].length == 0 && (e[n] = "");
469
- }), ht(e);
470
- let t = P.value, o = `${me.optPre}${r.id}?tabletype=${M.value}`;
471
- t && (o = `${t}?tabletype=${M.value}`), w.value === !0 && (e[po] = 1), J.value.field && J.value.value && (e[J.value.field] = J.value.value);
472
- let l = v.value === !0 ? "put" : "post";
473
- oe.request({ url: o, method: l, params: e }, { isTransformResponse: !1 }).then((n) => {
474
- n.success ? (n.result && (e[ho] = n.result), p("success", e), r.submitTip === !0 && u.success(n.message)) : u.warning(n.message);
475
- }).finally(() => {
476
- E.value = !1, p("close");
477
- });
478
- }
479
- function bt(e, t, o) {
480
- t && o ? o.vxeProps ? o.setValues([
481
- {
482
- rowKey: t,
483
- values: e
484
- }
485
- ]) : o.setValues(e) : A(e);
486
- }
487
- function yt(e, t) {
488
- let o = {};
489
- o[e] = t, A(o);
490
- }
491
- const $ = y("0"), ke = y(I.value ? "auto" : 500), Ce = y(340);
492
- function vt(e) {
493
- if (v.value === !0) {
494
- let t = V.value;
495
- return Ft(t, e);
496
- }
497
- return "";
498
- }
499
- function Ft(e, t) {
500
- if (e) {
501
- let o = e[t];
502
- return !o && o !== 0 && (o = e[t.toLowerCase()], !o && o !== 0 && (o = e[t.toUpperCase()])), o;
503
- }
504
- return "";
505
- }
506
- function wt(e, t) {
507
- if (f && f[t + "_onlChange"]) {
508
- let o = f[t + "_onlChange"](), l = Object.keys(e)[0];
509
- if (o[l]) {
510
- let i = _(t).getFormEvent(), d = S({
511
- column: { key: l },
512
- value: e[l]
513
- }, i);
514
- o[l].call(g, g, d);
515
- }
516
- }
517
- }
518
- function St(e, t) {
519
- if (f && f[t + "_onlChange"]) {
520
- let o = f[t + "_onlChange"](g);
521
- if (e.column === "all") {
522
- let l = Object.keys(o);
523
- if (l.length > 0)
524
- for (let n of l)
525
- o[n].call(g, g, e);
526
- } else {
527
- let l = e.column.key || e.col.key;
528
- o[l] && e.row && e.row.id && o[l].call(g, g, e);
529
- }
530
- }
531
- }
532
- function Tt(e, t) {
533
- var o;
534
- if (f && f[t + "_onlChange"]) {
535
- let l = f[t + "_onlChange"](g), n = Object.keys(l);
536
- if (n.length > 0)
537
- for (let i of n)
538
- (o = l[i]) == null || o.call(g, g, ce(S({}, e), { row: e.deleteRows }));
539
- }
540
- }
541
- function _t(e, t) {
542
- t.isModalData || Fe(e, t);
543
- }
544
- function Oe(e) {
545
- return "online_" + e + ":";
546
- }
547
- function kt(e, t) {
548
- return C(this, null, function* () {
549
- if (!f || !f.onlChange || !e)
550
- return !1;
551
- let o = f.onlChange();
552
- if (o[e]) {
553
- let n = {
554
- row: yield ae(),
555
- column: { key: e },
556
- value: t
557
- };
558
- o[e].call(g, g, n);
559
- }
560
- });
561
- }
562
- function Pe(e) {
563
- let o = e.toLocaleString().match(Oo);
564
- if (o.length > 1) {
565
- let l = o[1];
566
- He(l);
567
- }
568
- }
569
- function ie(e, t) {
570
- if (e == "js") {
571
- let o = t + "_hook";
572
- f && f[t] ? f[t].call(g, g) : f && f[o] && Pe(f[o]);
573
- } else if (e == "action") {
574
- let o = V.value, l = {
575
- formId: r.id,
576
- buttonCode: t,
577
- dataId: o.id,
578
- uiFormData: Object.assign({}, o)
579
- };
580
- oe.post(
581
- {
582
- url: `${me.urlButtonAction}`,
583
- params: l
584
- },
585
- { isTransformResponse: !1 }
586
- ).then((n) => {
587
- n.success ? u.success("处理完成!") : u.warning("处理失败!");
588
- });
589
- }
590
- }
591
- function xe(e) {
592
- let t = _(e), o = [...t.getNewDataWithId(), ...Z.value[e]];
593
- if (!o || o.length == 0)
594
- return !1;
595
- let l = [];
596
- for (let n of o)
597
- l.push(n.id);
598
- t.removeRowsById(l);
599
- }
600
- function Re(e, t) {
601
- if (!t)
602
- return !1;
603
- let o = _(e);
604
- typeof t == "object" ? o.addRows(t, !0) : this.$message.error("添加子表数据,参数不识别!");
605
- }
606
- function Ct(e, t) {
607
- xe(e), Re(e, t);
608
- }
609
- function Ot(e, t) {
610
- !t && t.length <= 0 && (t = []), t.map((o) => {
611
- o.hasOwnProperty("label") || (o.label = o.text);
612
- }), K({
613
- field: e,
614
- componentProps: {
615
- options: t
616
- }
617
- });
618
- }
619
- function Pt({ field: e, dict: t, label: o, type: l, subTableName: n }) {
620
- var d, m;
621
- const i = t.split(",").map((s) => encodeURIComponent(s)).join(",");
622
- if (l == "subTable") {
623
- const s = T.value.find((b) => b.key === n);
624
- if (s) {
625
- const b = s.columns.findIndex((h) => h.key === e);
626
- b !== -1 && oe.get({
627
- url: `/sys/dict/loadDict/${i}`,
628
- params: { keyword: "", pageSize: 1e3 }
629
- }).then((h) => {
630
- const k = t.split(","), B = { customOptions: !0, dictTable: k[0], dictCode: k[2], dictText: k[1], options: h };
631
- o && (B.title = o), s.columns[b] = S(S({}, s.columns[b]), B), window.findSubTableInfo = s;
632
- });
633
- }
634
- } else if (l == "subForm") {
635
- if ((m = (d = x[n]) == null ? void 0 : d.value) != null && m[0]) {
636
- const s = {
637
- field: e,
638
- componentProps: {
639
- dict: i
640
- }
641
- };
642
- o && (s.label = o), x[n].value[0].updateSchema(s);
643
- }
644
- } else {
645
- const s = {
646
- field: e,
647
- componentProps: {
648
- dict: i
649
- }
650
- };
651
- o && (s.label = o), K(s);
652
- }
653
- }
654
- function xt(e, t, o) {
655
- const l = T.value.find((n) => n.key === e);
656
- if (l) {
657
- !o && o.length <= 0 && (o = []), o.map((i) => {
658
- i.hasOwnProperty("label") || (i.label = i.text);
659
- });
660
- const n = l.columns.findIndex((i) => i.key === t);
661
- n !== -1 && (l.columns[n] = ce(S({}, l.columns[n]), { options: o, dictCode: "" }));
662
- }
663
- }
664
- function Rt(e, t, o) {
665
- var l, n;
666
- (n = (l = x[e]) == null ? void 0 : l.value) != null && n[0] && (!o && o.length <= 0 && (o = []), o.map((i) => {
667
- i.hasOwnProperty("label") || (i.label = i.text);
668
- }), x[e].value[0].updateSchema({
669
- field: t,
670
- componentProps: {
671
- dictCode: "",
672
- options: o
673
- }
674
- }));
675
- }
676
- function Et(e, t) {
677
- return f && f.beforeSubmit ? f.beforeSubmit(e, t) : Promise.resolve();
678
- }
679
- function Vt(e, t) {
680
- let o = U(q);
681
- e && e.length > 0 ? Object.keys(o).map((l) => {
682
- !l.endsWith("_load") && e.indexOf(l) < 0 && (q[l] = !1);
683
- }) : t && t.length > 0 && Object.keys(o).map((l) => {
684
- t.indexOf(l) >= 0 && (q[l] = !1);
685
- });
686
- }
687
- function At(e, t) {
688
- return C(this, null, function* () {
689
- P.value = t, yield be(), V.value = "", v.value = !0, yield we(e), yield Ie(() => {
690
- ie("js", "loaded");
691
- });
692
- });
693
- }
694
- function _(e) {
695
- let t = x[e].value;
696
- if (t instanceof Array && (t = t[0]), !t) {
697
- u.warning("子表ref找不到:" + e);
698
- return;
699
- }
700
- return t;
701
- }
702
- function Dt() {
703
- let e = c.reportPrintUrl, t = V.value.id, o = wo();
704
- vo(e, t, o);
705
- }
706
- const [Mt, { openModal: Ee }] = ko(), re = y(""), se = y(""), ue = y(!0);
707
- function It(e) {
708
- re.value = e.id, se.value = e.key, ue.value = !1, Ee(!0, { isUpdate: !1, tableType: "3" });
709
- }
710
- function jt(e) {
711
- let o = _(e.key).getSelectedData();
712
- if (o.length != 1) {
713
- u.warning("请选择一条数据");
714
- return;
715
- }
716
- re.value = e.id, se.value = e.key, ue.value = !1, Ee(!0, { isUpdate: !0, record: o[0] });
717
- }
718
- function Bt(e) {
719
- const t = e[je];
720
- let o = Be(e, [je]);
721
- if (o.id) {
722
- let l = Be(S({}, o), "id"), n = [{ rowKey: o.id, values: l }];
723
- _(t).setValues(n);
724
- } else
725
- _(t).addRows(o, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
726
- }
727
- function Nt() {
728
- if (r.themeTemplate === le)
729
- return;
730
- let e = T.value;
731
- if (e && e.length > 0) {
732
- for (let t of e)
733
- if (t.relationType != 1) {
734
- let o = _(t.key);
735
- o && o.clearSelection();
736
- }
737
- }
738
- }
739
- function Jt() {
740
- let e = ae(), t = U(X[j.value]);
741
- H(t, (o) => {
742
- A(o);
743
- }, e);
744
- }
745
- function Lt(e, t) {
746
- let o = T.value;
747
- if (o && o.length > 0) {
748
- let l = o.filter((n) => n.key === e);
749
- if (l.length == 0)
750
- return;
751
- if (l[0].relationType == 1)
752
- _(e).executeFillRule();
753
- else {
754
- let n = U(X[e]), i = U(t.row);
755
- H(n, (d) => {
756
- const { row: m, target: s } = t;
757
- let b = [{ rowKey: m.id, values: S({}, d) }];
758
- s.setValues(b);
759
- }, i);
760
- }
761
- }
762
- }
763
- let Ve = {
764
- tableName: j,
765
- loading: E,
766
- subActiveKey: $,
767
- onlineFormRef: a,
768
- getFieldsValue: ae,
769
- setFieldsValue: A,
770
- submitFlowFlag: w,
771
- subFormHeight: ke,
772
- subTableHeight: Ce,
773
- refMap: x,
774
- triggleChangeValues: bt,
775
- triggleChangeValue: yt,
776
- sh: q,
777
- clearSubRows: xe,
778
- addSubRows: Re,
779
- clearThenAddRows: Ct,
780
- changeOptions: Ot,
781
- isUpdate: v,
782
- getSubTableInstance: _,
783
- updateSchema: K,
784
- executeMainFillRule: Jt,
785
- executeSubFillRule: Lt,
786
- // update-begin--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
787
- changeSubTableOptions: xt,
788
- changeSubFormbleOptions: Rt,
789
- // update-end--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
790
- changeRemoteOptions: Pt,
791
- changEvent: () => {
792
- },
793
- onlineFormValueChange: rt
794
- };
795
- return F(Ve), {
796
- //主表
797
- tableName: j,
798
- onlineFormRef: a,
799
- registerForm: ze,
800
- loading: E,
801
- //子表
802
- subActiveKey: $,
803
- hasSubTable: Je,
804
- subTabInfo: T,
805
- refMap: x,
806
- //一对一子表
807
- subFormHeight: ke,
808
- getSubTableForeignKeyValue: vt,
809
- isUpdate: v,
810
- handleSubFormChange: wt,
811
- //一对多子表
812
- subTableHeight: Ce,
813
- onlineFormDisabled: ve,
814
- subDataSource: Z,
815
- getSubTableAuthPre: Oe,
816
- handleAdded: _t,
817
- handleSubTableDefaultValue: Fe,
818
- handleValueChange: St,
819
- openSubFormModalForAdd: It,
820
- openSubFormModalForEdit: jt,
821
- getBtnAuth: (e, t) => {
822
- const o = Oe(t);
823
- let n = Ro().getOnlineSubTableAuth(o);
824
- return n != null && n.length ? !n.find((d) => d === e) : !0;
825
- },
826
- handleRemoved: Tt,
827
- //父组件调用
828
- show: Ze,
829
- createRootProperties: at,
830
- handleSubmit: ut,
831
- sh: q,
832
- handleCgButtonClick: ie,
833
- handleCustomFormSh: Vt,
834
- handleCustomFormEdit: At,
835
- //跳转
836
- dbData: V,
837
- onOpenReportPrint: Dt,
838
- onlineExtConfigJson: c,
839
- //一对多子表弹窗操作数据
840
- registerPopModal: Mt,
841
- popTableId: re,
842
- popTableName: se,
843
- getPopFormData: Bt,
844
- popModalRequest: ue,
845
- onCloseModal: Nt,
846
- ERP: le,
847
- rowNumber: ne,
848
- isSetFormLabelLength: G,
849
- subFormWrapRef: Y
850
- };
851
- }
852
- }, Ao = (r) => (lo("data-v-4657b304"), r = r(), no(), r), Do = ["id"], Mo = { key: 1 }, Io = { class: "add" }, jo = /* @__PURE__ */ Ao(() => /* @__PURE__ */ pe("svg", {
853
- t: "1714390025804",
854
- class: "icon",
855
- viewBox: "0 0 1024 1024",
856
- version: "1.1",
857
- xmlns: "http://www.w3.org/2000/svg",
858
- "p-id": "50960",
859
- width: "16",
860
- height: "16"
861
- }, [
862
- /* @__PURE__ */ pe("path", {
863
- d: "M469.333333 469.333333V170.666667h85.333334v298.666666h298.666666v85.333334h-298.666666v298.666666h-85.333334v-298.666666H170.666667v-85.333334h298.666666z",
864
- fill: "#fff",
865
- "p-id": "50961"
866
- })
867
- ], -1));
868
- function Bo(r, p, u, a, R, E) {
869
- const M = O("BasicForm"), P = O("online-sub-form"), w = O("diff-outlined"), v = O("a-button"), I = O("form-outlined"), G = O("JVxeTable"), J = O("a-tab-pane"), ne = O("a-tabs"), Y = O("Loading"), L = O("online-pop-modal");
870
- return D(), ee("div", {
871
- id: a.tableName + "_form",
872
- class: Zt(["onlineFormWrap", [`formTemplate_${u.formTemplate}`]])
873
- }, [
874
- N(M, {
875
- ref: "onlineFormRef",
876
- onRegister: a.registerForm,
877
- name: "online-form_" + a.tableName
878
- }, null, 8, ["onRegister", "name"]),
879
- u.themeTemplate !== a.ERP && a.hasSubTable ? (D(), te(ne, {
880
- key: 0,
881
- activeKey: a.subActiveKey,
882
- "onUpdate:activeKey": p[0] || (p[0] = (c) => a.subActiveKey = c)
883
- }, {
884
- default: W(() => [
885
- (D(!0), ee($t, null, eo(a.subTabInfo, (c, g) => (D(), te(J, {
886
- tab: c.describe,
887
- key: g + "",
888
- forceRender: !0
889
- }, {
890
- default: W(() => [
891
- c.relationType == 1 ? (D(), ee("div", {
892
- key: 0,
893
- ref_for: !0,
894
- ref: "subFormWrapRef",
895
- style: to({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
896
- }, [
897
- N(P, {
898
- ref_for: !0,
899
- ref: a.refMap[c.key],
900
- table: c.key,
901
- disabled: a.onlineFormDisabled,
902
- "form-template": u.formTemplate,
903
- "main-id": a.getSubTableForeignKeyValue(c.foreignKey),
904
- properties: c.properties,
905
- "required-fields": c.requiredFields,
906
- "is-update": a.isUpdate,
907
- onFormChange: (F) => a.handleSubFormChange(F, c.key)
908
- }, null, 8, ["table", "disabled", "form-template", "main-id", "properties", "required-fields", "is-update", "onFormChange"])
909
- ], 4)) : (D(), ee("div", Mo, [
910
- N(G, {
911
- ref_for: !0,
912
- ref: a.refMap[c.key],
913
- toolbar: "",
914
- "keep-source": "",
915
- "row-number": a.rowNumber,
916
- "row-selection": "",
917
- height: (
918
- // 【VUEN-803】一对多子表固定340高度,修复自定义列组件被遮挡的问题
919
- a.subTableHeight
920
- ),
921
- disabled: a.onlineFormDisabled,
922
- columns: c.columns,
923
- dataSource: a.subDataSource[c.key],
924
- onValueChange: (F) => a.handleValueChange(F, c.key),
925
- onRemoved: (F) => a.handleRemoved(F, c.key),
926
- authPre: a.getSubTableAuthPre(c.key),
927
- onAdded: (F) => a.handleAdded(c, F),
928
- onExecuteFillRule: (F) => a.handleSubTableDefaultValue(c, F)
929
- }, {
930
- toolbarSuffix: W(() => [
931
- !a.onlineFormDisabled && a.getBtnAuth("add", c.key) ? (D(), te(v, {
932
- key: 0,
933
- type: "primary",
934
- onClick: (F) => a.openSubFormModalForAdd(c)
935
- }, {
936
- default: W(() => [
937
- pe("div", Io, [
938
- jo,
939
- N(w)
940
- ])
941
- ]),
942
- _: 2
943
- }, 1032, ["onClick"])) : fe("", !0),
944
- !a.onlineFormDisabled && a.getBtnAuth("update", c.key) ? (D(), te(v, {
945
- key: 1,
946
- type: "primary",
947
- onClick: (F) => a.openSubFormModalForEdit(c)
948
- }, {
949
- default: W(() => [
950
- N(I)
951
- ]),
952
- _: 2
953
- }, 1032, ["onClick"])) : fe("", !0)
954
- ]),
955
- _: 2
956
- }, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "onValueChange", "onRemoved", "authPre", "onAdded", "onExecuteFillRule"])
957
- ]))
958
- ]),
959
- _: 2
960
- }, 1032, ["tab"]))), 128))
961
- ]),
962
- _: 1
963
- }, 8, ["activeKey"])) : fe("", !0),
964
- N(Y, {
965
- loading: a.loading,
966
- absolute: !1
967
- }, null, 8, ["loading"]),
968
- oo(r.$slots, "bottom", {}, void 0, !0),
969
- N(L, {
970
- formTableType: "3",
971
- request: a.popModalRequest,
972
- id: a.popTableId,
973
- onRegister: a.registerPopModal,
974
- onSuccess: a.getPopFormData,
975
- taskId: u.taskId,
976
- tableName: a.popTableName,
977
- topTip: "",
978
- isVxeTableData: ""
979
- }, null, 8, ["request", "id", "onRegister", "onSuccess", "taskId", "tableName"])
980
- ], 10, Do);
981
- }
982
- const El = /* @__PURE__ */ Eo(Vo, [["render", Bo], ["__scopeId", "data-v-4657b304"]]);
983
- export {
984
- El as default
985
- };