@jeecg/online 3.7.0-beta → 3.7.1-RC

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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,985 @@
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
+ };