@jeecg/online 3.8.2-beta → 3.9.0-beta

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 (114) hide show
  1. package/{AccountLoginForm-79fa7b01.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
  2. package/{AiModal-942b59ec.mjs → AiModal-5bec5218.mjs} +1 -1
  3. package/{AppForgetPassword-d762e5b3.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
  4. package/{AppLogin-41372985.mjs → AppLogin-786949d3.mjs} +9 -9
  5. package/{AppLoginHeader-3b6fa33d.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
  6. package/{AppNameEmail-8dfbad62.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
  7. package/{AppRegister-433c54db.mjs → AppRegister-29a00a9d.mjs} +3 -3
  8. package/{AppTenant-e49dfa9b.mjs → AppTenant-92890383.mjs} +2 -2
  9. package/{AppThirdForm-7b75b4fc.mjs → AppThirdForm-760064e5.mjs} +1 -1
  10. package/{AuthButtonConfig-a0f59cb5.mjs → AuthButtonConfig-78180aec.mjs} +1 -1
  11. package/{AuthButtonTree-f0a5cc0b.mjs → AuthButtonTree-62c8e70c.mjs} +1 -1
  12. package/{AuthDataConfig-647c4a27.mjs → AuthDataConfig-c978c469.mjs} +1 -1
  13. package/{AuthDataTree-b80a3ea5.mjs → AuthDataTree-0647a06c.mjs} +1 -1
  14. package/{AuthFieldConfig-d36a1b2d.mjs → AuthFieldConfig-558283bc.mjs} +1 -1
  15. package/{AuthFieldTree-dba6af79.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
  16. package/{AuthManagerDrawer-5acbd451.mjs → AuthManagerDrawer-ec5190d2.mjs} +4 -4
  17. package/{AuthSetterModal-95b5f616.mjs → AuthSetterModal-90a76886.mjs} +7 -7
  18. package/{CgformAddressModal-5d889870.mjs → CgformAddressModal-690b8940.mjs} +1 -1
  19. package/{CgformCopyList-cc5f76cd.mjs → CgformCopyList-af9c99a4.mjs} +40 -39
  20. package/{CgformModal-cebc698b.mjs → CgformModal-b04a492a.mjs} +10 -10
  21. package/{CgreportAigcModal-d1e62385.mjs → CgreportAigcModal-8fdcbd31.mjs} +1 -1
  22. package/{CgreportModal-2e4421e6.mjs → CgreportModal-da62724c.mjs} +143 -139
  23. package/{CheckDictTable-8fb7299c.mjs → CheckDictTable-7320189b.mjs} +1 -1
  24. package/{CodeFileListModal-25fad54f.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
  25. package/CodeFileViewModal-09053f3a.mjs +269 -0
  26. package/CodeGeneratorModal-aba790e3.mjs +298 -0
  27. package/{CustomButtonList-26490688.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
  28. package/{DBAttributeTable-dea8ab11.mjs → DBAttributeTable-4a65c897.mjs} +40 -39
  29. package/{DbToOnlineModal-60317a16.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
  30. package/{DetailForm-b92a5e9d.mjs → DetailForm-a2bf8c33.mjs} +165 -153
  31. package/{DropMenuItem-82213be6.mjs → DropMenuItem-884f9464.mjs} +1 -1
  32. package/{EnhanceJavaModal-6ebefc8b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
  33. package/{EnhanceJsHistory-8d9b86ca.mjs → EnhanceJsHistory-95ca545c.mjs} +1 -1
  34. package/{EnhanceJsModal-9439e6f8.mjs → EnhanceJsModal-742b0ee2.mjs} +2 -2
  35. package/{EnhanceSqlModal-ea4592bf.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
  36. package/{ExtendConfigModal-f509db46.mjs → ExtendConfigModal-74d657c7.mjs} +1 -1
  37. package/{FieldExtendJsonModal-73bab5b5.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
  38. package/{FileSelectModal-49d6dade.mjs → FileSelectModal-cf41604b.mjs} +1 -1
  39. package/{ForeignKeyTable-330963c1.mjs → ForeignKeyTable-4a59ded1.mjs} +1 -1
  40. package/{IndexTable-c0478faa.mjs → IndexTable-87d67830.mjs} +1 -1
  41. package/{JModalTip-b1d19eaa.mjs → JModalTip-5401f43d.mjs} +1 -1
  42. package/{JOnlineSearchSelect-97662e1b.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
  43. package/{LeftDepart-4b1003f0.mjs → LeftDepart-463bf432.mjs} +1 -1
  44. package/{LeftRole-8486ba4f.mjs → LeftRole-1631d3d4.mjs} +1 -1
  45. package/{LeftUser-09894a2f.mjs → LeftUser-5774a5db.mjs} +1 -1
  46. package/{LinkTableConfigModal-cd0980e9.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
  47. package/{LinkTableFieldConfigModal-f4106ab7.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
  48. package/{LinkTableListPiece-4187ad7d.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
  49. package/{ModalFormDemo-4ec79769.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
  50. package/OnlCgformErpList-35ad1d6e.mjs +528 -0
  51. package/{OnlCgformErpSubTable-421e2051.mjs → OnlCgformErpSubTable-5093d438.mjs} +43 -41
  52. package/{OnlCgformInnerSubTable-9616ebf2.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +106 -102
  53. package/{OnlCgformInnerTableList-5ed887e4.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +21 -19
  54. package/{OnlCgformTabList-c03a1d0a.mjs → OnlCgformTabList-d66d1261.mjs} +21 -19
  55. package/{OnlineAutoList-e5a61211.mjs → OnlineAutoList-fbba2a52.mjs} +20 -18
  56. package/{OnlineAutoModal-38f2d522.mjs → OnlineAutoModal-68909692.mjs} +10 -9
  57. package/{OnlineAutoTreeList-16fa962f.mjs → OnlineAutoTreeList-5153f09d.mjs} +20 -18
  58. package/OnlineCustomModal-b5f8c799.mjs +247 -0
  59. package/{OnlineDetailModal-79085ba8.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
  60. package/OnlineForm-20604e4f.mjs +1080 -0
  61. package/OnlineFormDetail-719118b6.mjs +350 -0
  62. package/{OnlineFormUrlAdd-2e05ba0f.mjs → OnlineFormUrlAdd-5b675f48.mjs} +12 -11
  63. package/{OnlineFormUrlDetail-06b2d9e6.mjs → OnlineFormUrlDetail-91156bf2.mjs} +15 -13
  64. package/{OnlineFormUrlEdit-77ac4bba.mjs → OnlineFormUrlEdit-fb810de6.mjs} +12 -11
  65. package/{OnlineFormUrlSuccess-cb3f7be4.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
  66. package/{OnlineQueryForm-528af6ed.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
  67. package/{OnlineSearchFormItem-51eefaf4.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
  68. package/{OnlineSelectCascade-b218691c.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
  69. package/{OnlineSubFormDetail-a1b7f33f.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
  70. package/{OnlineTabAutoModal-1c7c4ed2.mjs → OnlineTabAutoModal-c127ed50.mjs} +9 -8
  71. package/{OnlineTabDetailModal-7c45e727.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
  72. package/{OnlineTabForm-9682158f.mjs → OnlineTabForm-827e7089.mjs} +25 -24
  73. package/OnlineTabFormDetail-0f96377e.mjs +329 -0
  74. package/{PageAttributeTable-21314341.mjs → PageAttributeTable-5703e2f1.mjs} +5 -5
  75. package/{PhoneLoginForm-c3c16f16.mjs → PhoneLoginForm-15dc68ed.mjs} +18 -18
  76. package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
  77. package/{QueryTable-413d1366.mjs → QueryTable-26c9ee22.mjs} +1 -1
  78. package/{SetSwitchOptions-82fd6265.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
  79. package/{ShareAddView-a2dba2ef.mjs → ShareAddView-0512e884.mjs} +23 -21
  80. package/{ShareEditView-ecd590dc.mjs → ShareEditView-b89dfbd3.mjs} +23 -21
  81. package/{ShareView-84f333e7.mjs → ShareView-faf1a0ab.mjs} +21 -19
  82. package/{ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
  83. package/{SingleView-d4f29169.mjs → SingleView-21d3a558.mjs} +16 -14
  84. package/{SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
  85. package/{SuperQuery-290f5080.mjs → SuperQuery-c95f86ee.mjs} +41 -40
  86. package/TaskOpinionList-73ecb3c8.mjs +101 -0
  87. package/{aiModal-6e338c79.mjs → aiModal-b44fa135.mjs} +2 -2
  88. package/dayjs.min-eea532a3.mjs +301 -0
  89. package/{index-9bebbfe5.mjs → index-02f6dc7d.mjs} +2 -2
  90. package/{index-7890e2b4.mjs → index-22a99f2e.mjs} +1 -1
  91. package/{index-7bab525f.mjs → index-26940246.mjs} +3 -3
  92. package/{index-254a82b7.mjs → index-30da2fc0.mjs} +130 -123
  93. package/{index-c5737cbb.mjs → index-391aec04.mjs} +4 -4
  94. package/index-94b6319e.mjs +57 -0
  95. package/{index-bc0d747e.mjs → index-abbfd327.mjs} +2 -2
  96. package/main.index.js +1 -1
  97. package/package.json +1 -1
  98. package/style.css +1 -1
  99. package/useCgformList-aaa30c8c.mjs +410 -0
  100. package/useExtendComponent-ad499dff.mjs +4164 -0
  101. package/{useListButton-7f9674a0.mjs → useListButton-308458cd.mjs} +21 -21
  102. package/CodeFileViewModal-12299ab5.mjs +0 -253
  103. package/CodeGeneratorModal-791b1695.mjs +0 -281
  104. package/OnlCgformErpList-63089149.mjs +0 -498
  105. package/OnlineCustomModal-7e31297e.mjs +0 -232
  106. package/OnlineForm-0438f4bf.mjs +0 -1012
  107. package/OnlineFormDetail-76d243ed.mjs +0 -348
  108. package/OnlineTabFormDetail-b8650175.mjs +0 -327
  109. package/ProcessOnlineForm-d6113dec.mjs +0 -188
  110. package/README.md +0 -26
  111. package/index-30c0a14f.mjs +0 -57
  112. package/useCgformList-52631580.mjs +0 -395
  113. package/useExtendComponent-d1db211d.mjs +0 -4460
  114. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
@@ -1,1012 +0,0 @@
1
- var Qt = Object.defineProperty, Xt = Object.defineProperties;
2
- var Zt = Object.getOwnPropertyDescriptors;
3
- var Me = Object.getOwnPropertySymbols;
4
- var $t = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable;
5
- var De = (u, p, s) => p in u ? Qt(u, p, { enumerable: !0, configurable: !0, writable: !0, value: s }) : u[p] = s, w = (u, p) => {
6
- for (var s in p || (p = {}))
7
- $t.call(p, s) && De(u, s, p[s]);
8
- if (Me)
9
- for (var s of Me(p))
10
- en.call(p, s) && De(u, s, p[s]);
11
- return u;
12
- }, ce = (u, p) => Xt(u, Zt(p));
13
- var _ = (u, p, s) => new Promise((a, R) => {
14
- var E = (F) => {
15
- try {
16
- O(s.next(F));
17
- } catch (S) {
18
- R(S);
19
- }
20
- }, B = (F) => {
21
- try {
22
- O(s.throw(F));
23
- } catch (S) {
24
- R(S);
25
- }
26
- }, O = (F) => F.done ? a(F.value) : Promise.resolve(F.value).then(E, B);
27
- O((s = s.apply(u, p)).next());
28
- });
29
- import { useMessage as tn } from "/@/hooks/web/useMessage";
30
- import { ref as v, inject as nn, reactive as ln, watch as on, computed as an, resolveComponent as D, openBlock as V, createElementBlock as te, normalizeClass as rn, createVNode as H, createBlock as ne, withCtx as G, Fragment as sn, renderList as un, normalizeStyle as cn, createElementVNode as Ve, toDisplayString as Be, createCommentVNode as fe, renderSlot as fn, unref as Ie, nextTick as je, toRaw as J } from "vue";
31
- import { BasicForm as dn, useForm as mn } from "/@/components/Form/index";
32
- import { c as pn, O as gn, d as hn, e as bn, u as yn, l as Y, k as vn, g as Fn, V as z, S as Sn, f as wn, h as Ne, j as de } from "./useExtendComponent-d1db211d.mjs";
33
- import { defHttp as le } from "/@/utils/http/axios";
34
- import { pick as kn, omit as Je, debounce as Tn, cloneDeep as Cn } from "lodash-es";
35
- import { sleep as _n, goJmReportViewPage as On } from "/@/utils";
36
- import { Loading as Pn } from "/@/components/Loading";
37
- import "/@/components/jeecg/JVxeTable/types";
38
- import { getToken as An } from "/@/utils/auth";
39
- import { PrinterOutlined as Rn } from "@ant-design/icons-vue";
40
- import "/@/hooks/core/useContext";
41
- import "/@/utils/mitt";
42
- import { useModal as En } from "/@/components/Modal";
43
- import { u as xn, G as Mn } from "./useCustomHook-3a17a690.mjs";
44
- import { E as oe } from "./constant-fa63bd66.mjs";
45
- import { useAppInject as Dn } from "/@/hooks/web/useAppInject";
46
- import { isArray as Vn } from "/@/utils/is";
47
- import { usePermissionStore as Bn } from "/@/store/modules/permission";
48
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
49
- import { _ as In } from "./index-30c0a14f.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-4187ad7d.mjs";
64
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
65
- import "/@/api/common/api";
66
- import "/@/assets/images/placeholderImage.png";
67
- import "./OnlineSelectCascade-b218691c.mjs";
68
- import "./JModalTip-b1d19eaa.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
- }, jn = {
76
- name: "OnlineForm",
77
- components: {
78
- BasicForm: dn,
79
- Loading: Pn,
80
- OnlineSubForm: pn,
81
- PrinterOutlined: Rn,
82
- OnlinePopModal: gn
83
- },
84
- props: {
85
- id: {
86
- type: String,
87
- default: ""
88
- },
89
- formTemplate: {
90
- type: Number,
91
- default: 1
92
- },
93
- disabled: {
94
- type: Boolean,
95
- default: !1
96
- },
97
- isTree: {
98
- type: Boolean,
99
- default: !1
100
- },
101
- pidField: {
102
- type: String,
103
- default: ""
104
- },
105
- submitTip: {
106
- type: Boolean,
107
- default: !0
108
- },
109
- modalClass: {
110
- type: String,
111
- default: ""
112
- },
113
- themeTemplate: {
114
- type: String,
115
- default: ""
116
- },
117
- // update-begin--author:liaozhiyang---date:20231128---for:【QQYUN-7260】erp主表编辑时保存子表记录
118
- // erp风格会传来所有子表数据
119
- subTableSource: {
120
- default: () => ({})
121
- },
122
- // update-end-author:liaozhiyang---date:20231128---for:【QQYUN-7260】erp主表编辑时保存子表记录
123
- // -update-begin--author:liaozhiyang---date:20240613---for:【TV360X-1000】流程一对多走流程的接口
124
- // 流程会传taskId
125
- taskId: {
126
- type: String
127
- },
128
- // -update-end--author:liaozhiyang---date:20240613---for:【TV360X-1000】流程一对多走流程的接口
129
- cgBIBtnMap: Object,
130
- buttonSwitch: Object
131
- },
132
- emits: ["success", "rendered", "close"],
133
- setup(u, { emit: p }) {
134
- const { createMessage: s } = tn(), a = v(null), R = v(!0), E = v(!1), B = v(1), O = v(""), F = v(!1), S = v(!1), { getIsMobile: I } = Dn(), Q = v(!1), L = nn("foreignkey", { value: {} }), ae = v(!I.value), c = v(null);
135
- let U = null;
136
- const y = ln({
137
- reportPrintShow: 0,
138
- reportPrintUrl: "",
139
- joinQuery: 0,
140
- modelFullscreen: 0,
141
- modalMinWidth: "",
142
- commentStatus: 0
143
- }), {
144
- onlineFormContext: b,
145
- resetContext: Le,
146
- getSubAddBtnCfg: Ue,
147
- getSubRemoveBtnCfg: Ke,
148
- getSubOpenAddBtnCfg: Ye,
149
- getSubOpenEditBtnCfg: We
150
- } = hn(u), {
151
- formSchemas: X,
152
- defaultValueFields: W,
153
- changeDataIfArray2String: pe,
154
- tableName: x,
155
- dbData: M,
156
- checkOnlyFieldValue: qe,
157
- hasSubTable: He,
158
- subTabInfo: k,
159
- refMap: P,
160
- subDataSource: Z,
161
- baseColProps: Ge,
162
- createFormSchemas: ze,
163
- linkDownList: Un,
164
- fieldDisplayStatus: K,
165
- labelCol: Qe,
166
- wrapperCol: Xe,
167
- labelWidth: Ze
168
- } = bn(u, a);
169
- let { EnhanceJS: f, initCgEnhanceJs: $e } = yn(b, !1);
170
- on(
171
- [k, I],
172
- () => {
173
- I.value && k.value.length && k.value.forEach((e) => {
174
- e.relationType != 1 && e.columns.forEach((t) => {
175
- t.width = 100;
176
- });
177
- });
178
- },
179
- { immediate: !0 }
180
- );
181
- const { executeJsEnhanced: et } = xn({}, b), [tt, { setProps: nt, validate: ge, resetFields: he, clearValidate: lt, setFieldsValue: A, updateSchema: q, getFieldsValue: $, scrollToField: be }] = mn({
182
- schemas: X,
183
- showActionButtonGroup: !1,
184
- baseColProps: Ge,
185
- // update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
186
- labelWidth: Ze,
187
- // update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
188
- // update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
189
- labelCol: Qe,
190
- wrapperCol: Xe
191
- // update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
192
- }), ye = v(!1);
193
- function ot() {
194
- let e = u.disabled;
195
- ye.value = e, nt({ disabled: e });
196
- }
197
- function at(e, t, n) {
198
- return _(this, null, function* () {
199
- yield it(), O.value = "", yield he(), setTimeout(() => {
200
- lt();
201
- }, 0), M.value = "";
202
- let l = Ie(e);
203
- S.value = l, ct(), l ? yield Fe(t) : Se(), je(() => {
204
- var o;
205
- !l && n && A(n), rt(), ie("js", "loaded"), ot(), (o = c.value) != null && o.length && (c.value[0].scrollTop = 0);
206
- });
207
- });
208
- }
209
- function it() {
210
- return _(this, null, function* () {
211
- if (u.isTree === !0) {
212
- let e = u.pidField, t = X.value;
213
- t && t.length > 0 && t.filter((l) => l.field === e).length > 0 && (yield q({
214
- field: e,
215
- componentProps: {
216
- reload: (/* @__PURE__ */ new Date()).getTime(),
217
- // update-begin--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
218
- hiddenNodeKey: ""
219
- // update-end--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
220
- }
221
- }));
222
- }
223
- });
224
- }
225
- const j = {
226
- keys: [],
227
- map: /* @__PURE__ */ new Map(),
228
- calcFn: /* @__PURE__ */ new Map()
229
- };
230
- function rt() {
231
- let e = J(W[x.value]);
232
- Ie(S) === !1 && Y(e, (n) => {
233
- A(n);
234
- });
235
- const t = vn(e);
236
- j.keys = [...t.keys()], j.map = t, j.calcFn.clear();
237
- }
238
- function st(e, t) {
239
- if (j.keys.includes(e)) {
240
- let n = j.calcFn.get(e);
241
- typeof n != "function" && (n = Tn(() => {
242
- let l = J(W[x.value]);
243
- if (Array.isArray(l) && l.length > 0) {
244
- const o = j.map.get(e);
245
- l = l.filter((i) => o.includes(i.field));
246
- } else
247
- l = [];
248
- if (l.length > 0) {
249
- let o = $();
250
- Y(l, (i) => A(i), o);
251
- }
252
- }, 150), j.calcFn.set(e, n)), n(t);
253
- }
254
- }
255
- function ve(e, t) {
256
- let n = J(W[e.key]);
257
- Y(n, (l) => {
258
- const { row: o, target: i } = t;
259
- let d = [{ rowKey: o.id, values: w({}, l) }];
260
- i.setValues(d);
261
- });
262
- }
263
- function Fe(e) {
264
- return _(this, null, function* () {
265
- let t = yield dt(e.id);
266
- M.value = Object.assign({}, e, t);
267
- let n = ft.value, l = kn(t, ...n);
268
- u.disabled && Object.keys(l).map((o) => {
269
- !l[o] && l[o] !== 0 && l[o] !== "0" && delete l[o];
270
- }), yield A(l), ut(e.id), Se(t);
271
- });
272
- }
273
- function Se(e) {
274
- e || (e = {});
275
- let t = Object.keys(Z.value);
276
- if (t && t.length > 0) {
277
- let n = {};
278
- for (let l of t)
279
- n[l] = e[l] || [];
280
- Z.value = n;
281
- }
282
- }
283
- function ut(e) {
284
- var t;
285
- if (u.isTree === !0) {
286
- const { schema: n } = U, l = (t = n.properties) != null ? t : {}, o = Object.entries(l);
287
- if (o.length) {
288
- const i = o.find(([d, m]) => m.view === "sel_tree" && m.pidComponent != null);
289
- if (i) {
290
- const d = i[0];
291
- X.value.find((r) => r.field == d) && q({
292
- field: d,
293
- componentProps: {
294
- hiddenNodeKey: e
295
- }
296
- });
297
- }
298
- }
299
- }
300
- }
301
- function ct() {
302
- var e;
303
- (e = k.value) == null || e.forEach((t) => {
304
- t.relationType == 1 && P[t.key].value && P[t.key].value[0].resetFields();
305
- });
306
- }
307
- let ft = an(() => {
308
- let e = X.value, t = [];
309
- for (let n of e)
310
- t.push(n.field);
311
- return t;
312
- });
313
- function dt(e) {
314
- let t = `${me.optPre}${u.id}/${e}`;
315
- return new Promise((n, l) => {
316
- le.get({ url: t }, { isTransformResponse: !1 }).then((o) => {
317
- o.success ? n(o.result) : (l(), s.warning(o.message));
318
- }).catch(() => {
319
- l();
320
- });
321
- });
322
- }
323
- function mt(e) {
324
- return _(this, null, function* () {
325
- B.value = e.head.tableType, x.value = e.head.tableName, R.value = e.head.tableType == 1, ht(e.head.extConfigJson), ze(e.schema.properties, e.schema.required, qe, y), f = $e(e.enhanceJs), p("rendered", y);
326
- let t = yield Fn(a);
327
- t.$formValueChange = (n, l, o) => {
328
- Mt(n, l), o && A(o), pt(n, l, o), st(n, l);
329
- }, f && f.setup && Pe(f.setup), U = e;
330
- });
331
- }
332
- function pt(e, t, n) {
333
- b.changEvent(e, t, n);
334
- }
335
- function gt(e) {
336
- b.addObject2Context("changEvent", e);
337
- }
338
- function ht(e) {
339
- let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 0, modalMinWidth: "", commentStatus: 0, formLabelLength: null };
340
- e && (t = JSON.parse(e), I.value && (t.commentStatus = 0)), Q.value = !!t.formLabelLength, Object.keys(t).map((n) => {
341
- y[n] = t[n];
342
- });
343
- }
344
- function bt() {
345
- F.value = !0, we();
346
- }
347
- function we() {
348
- R.value === !0 ? wt() : yt();
349
- }
350
- function yt() {
351
- vt().then((e) => {
352
- Te(e);
353
- });
354
- }
355
- function vt() {
356
- let e = {};
357
- return new Promise((t, n) => {
358
- ge().then(
359
- (l) => t(l),
360
- ({ errorFields: l, values: o }) => {
361
- n({
362
- // update-begin--author:liaozhiyang---date:20240617---for:【TV360X-496】使用数值类型,金额校验,控件默认值得出的是小数导致校验过不去给提示
363
- errorFields: l,
364
- values: o,
365
- // update-end--author:liaozhiyang---date:20240617---for:【TV360X-496】使用数值类型,金额校验,控件默认值得出的是小数导致校验过不去给提示
366
- code: z,
367
- key: x.value,
368
- // 滚动到未通过校验的字段上
369
- scrollToField: () => l[0] && be(l[0].name, { behavior: "smooth", block: "center" })
370
- });
371
- }
372
- );
373
- }).then((t) => (Object.assign(e, pe(t)), u.themeTemplate === oe ? Promise.resolve({}) : St())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === z || (t == null ? void 0 : t.code) === z) && (ke(t.errorFields, t.values, R.value, t.key).then((n) => {
374
- n || s.warning("校验未通过");
375
- }), t.key && (Ft(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
376
- }
377
- function Ft(e) {
378
- let t = k.value;
379
- for (let n = 0; n < t.length; n++)
380
- if (e == t[n].key) {
381
- let l = n + "";
382
- if (ee.value === l)
383
- break;
384
- if (ee.value = l, t[n].relationType === 0) {
385
- let o = T(e);
386
- _n(300, () => o == null ? void 0 : o.validateTable());
387
- }
388
- break;
389
- }
390
- }
391
- function St() {
392
- return new Promise((e, t) => _(this, null, function* () {
393
- let n = {};
394
- try {
395
- let l = k.value;
396
- for (let o = 0; o < l.length; o++) {
397
- let i = l[o].key, d = T(i);
398
- if (l[o].relationType == 1)
399
- try {
400
- let m = yield d.getAll();
401
- n[i] = [], n[i].push(m);
402
- } catch (m) {
403
- return t(w({ code: z, key: i }, m));
404
- }
405
- else {
406
- if (yield d.fullValidateTable())
407
- return t({ code: z, key: i });
408
- n[i] = d.getTableData();
409
- }
410
- }
411
- } catch (l) {
412
- t(l);
413
- }
414
- e(n);
415
- }));
416
- }
417
- function wt() {
418
- return _(this, null, function* () {
419
- try {
420
- let e = yield ge();
421
- e = Object.assign({}, M.value, e), e = pe(e), E.value = !0, Te(e);
422
- } catch (e) {
423
- Array.isArray(e == null ? void 0 : e.errorFields) && e.errorFields[0] && (be(e.errorFields[0].name, { behavior: "smooth", block: "center" }), ke(e.errorFields, e.values, R.value));
424
- } finally {
425
- E.value = !1, p("close");
426
- }
427
- });
428
- }
429
- function ke(e, t, n, l = null) {
430
- return _(this, null, function* () {
431
- var i;
432
- let o = !1;
433
- if (e != null && e.length) {
434
- const d = (i = U.schema) != null ? i : {}, { properties: m = {} } = d, r = e[0].name[0];
435
- let h;
436
- if (n || l === x.value)
437
- h = m[r];
438
- else {
439
- const g = m[l], { properties: C = {} } = g;
440
- h = C[r];
441
- }
442
- h.type === "number" && h.view === "number" && h.defVal && (yield Y(
443
- [
444
- {
445
- field: r,
446
- type: h.type,
447
- value: h.defVal,
448
- view: h.view
449
- }
450
- ],
451
- (g) => {
452
- g[r] === t[r] && (s.warning(`${h.title}的默认值是:${t[r]},导致校验通不过,需要正确配置默认值!`), o = !0);
453
- }
454
- ));
455
- }
456
- return o;
457
- });
458
- }
459
- function Te(e) {
460
- u.themeTemplate === oe && S.value && Object.keys(u.subTableSource).length && (e = w(w({}, e), u.subTableSource)), Nt(xe, e).then(() => {
461
- Tt(e);
462
- }).catch((t) => {
463
- s.warning(t);
464
- });
465
- }
466
- const kt = (e) => {
467
- const { schema: t } = U, { properties: n } = t, l = (o, i) => {
468
- Object.entries(o).forEach(([d, m]) => {
469
- var h;
470
- const r = i[d];
471
- if (r) {
472
- if (r.view === "tab" && Vn(m)) {
473
- if (r.properties && m.forEach((g) => {
474
- l(g, r.properties);
475
- }), (h = r.columns) != null && h.length) {
476
- const g = Cn(r.columns.filter((C) => C.type === "date" && C.fieldExtendJson));
477
- if (g.length) {
478
- const C = {};
479
- g.forEach((N) => {
480
- C[N.key] = {
481
- view: "date",
482
- fieldExtendJson: N.fieldExtendJson
483
- };
484
- }), m.forEach((N) => {
485
- l(N, C);
486
- });
487
- }
488
- }
489
- } else if (r.view === "date" && typeof m == "string" && m !== "") {
490
- let g = r.fieldExtendJson;
491
- g && (g = JSON.parse(g), g.picker && g.picker !== "default" && (g.picker === "year" ? o[d] = de(m).set("month", 0).set("date", 1).format("YYYY-MM-DD") : g.picker === "month" ? o[d] = de(m).set("date", 1).format("YYYY-MM-DD") : g.picker === "week" && (o[d] = de(m).startOf("week").format("YYYY-MM-DD"))));
492
- }
493
- }
494
- });
495
- };
496
- l(e, n);
497
- };
498
- function Tt(e) {
499
- Object.keys(e).map((o) => {
500
- Array.isArray(e[o]) && e[o].length == 0 && (e[o] = "");
501
- }), kt(e);
502
- let t = O.value, n = `${me.optPre}${u.id}?tabletype=${B.value}`;
503
- t && (n = `${t}?tabletype=${B.value}`), F.value === !0 && (e[Sn] = 1), L.value.field && L.value.value && (e[L.value.field] = L.value.value);
504
- let l = S.value === !0 ? "put" : "post";
505
- le.request({ url: n, method: l, params: e }, { isTransformResponse: !1 }).then((o) => {
506
- o.success ? (o.result && (e[wn] = o.result), p("success", e), u.submitTip === !0 && s.success(o.message)) : s.warning(o.message);
507
- }).finally(() => {
508
- E.value = !1, p("close");
509
- });
510
- }
511
- function Ct(e, t, n) {
512
- t && n ? n.vxeProps ? n.setValues([
513
- {
514
- rowKey: t,
515
- values: e
516
- }
517
- ]) : n.setValues(e) : A(e);
518
- }
519
- function _t(e, t) {
520
- let n = {};
521
- n[e] = t, A(n);
522
- }
523
- const ee = v("0"), Ce = v(I.value ? "auto" : 500), _e = v(340);
524
- function Ot(e) {
525
- if (S.value === !0) {
526
- let t = M.value;
527
- return Pt(t, e);
528
- }
529
- return "";
530
- }
531
- function Pt(e, t) {
532
- if (e) {
533
- let n = e[t];
534
- return !n && n !== 0 && (n = e[t.toLowerCase()], !n && n !== 0 && (n = e[t.toUpperCase()])), n;
535
- }
536
- return "";
537
- }
538
- function At(e, t) {
539
- if (f && f[t + "_onlChange"]) {
540
- let n = f[t + "_onlChange"](), l = Object.keys(e)[0];
541
- if (n[l]) {
542
- let i = T(t).getFormEvent(), d = w({
543
- column: { key: l },
544
- value: e[l]
545
- }, i);
546
- n[l].call(b, b, d);
547
- }
548
- }
549
- }
550
- function Rt(e, t) {
551
- if (f && f[t + "_onlChange"]) {
552
- let n = f[t + "_onlChange"](b);
553
- if (e.column === "all") {
554
- let l = Object.keys(n);
555
- if (l.length > 0)
556
- for (let o of l)
557
- n[o].call(b, b, e);
558
- } else {
559
- let l = e.column.key || e.col.key;
560
- n[l] && e.row && e.row.id && n[l].call(b, b, e);
561
- }
562
- }
563
- }
564
- function Et(e, t) {
565
- var n;
566
- if (f && f[t + "_onlChange"]) {
567
- let l = f[t + "_onlChange"](b), o = Object.keys(l);
568
- if (o.length > 0)
569
- for (let i of o)
570
- (n = l[i]) == null || n.call(b, b, ce(w({}, e), { row: e.deleteRows }));
571
- }
572
- }
573
- function xt(e, t) {
574
- t.isModalData || ve(e, t);
575
- }
576
- function Oe(e) {
577
- return "online_" + e + ":";
578
- }
579
- function Mt(e, t) {
580
- return _(this, null, function* () {
581
- if (!f || !f.onlChange || !e)
582
- return !1;
583
- let n = f.onlChange();
584
- n[e] && setTimeout(() => _(this, null, function* () {
585
- let o = {
586
- row: yield $(),
587
- column: { key: e },
588
- value: t
589
- };
590
- n[e].call(b, b, o);
591
- }), 0);
592
- });
593
- }
594
- function Pe(e) {
595
- let n = e.toLocaleString().match(Mn);
596
- if (n.length > 1) {
597
- let l = n[1];
598
- et(l);
599
- }
600
- }
601
- function ie(e, t) {
602
- if (e == "js") {
603
- let n = t + "_hook";
604
- f && f[t] ? f[t].call(b, b) : f && f[n] && Pe(f[n]);
605
- } else if (e == "action") {
606
- let n = M.value, l = {
607
- formId: u.id,
608
- buttonCode: t,
609
- dataId: n.id,
610
- uiFormData: Object.assign({}, n)
611
- };
612
- le.post(
613
- {
614
- url: `${me.urlButtonAction}`,
615
- params: l
616
- },
617
- { isTransformResponse: !1 }
618
- ).then((o) => {
619
- o.success ? s.success("处理完成!") : s.warning("处理失败!");
620
- });
621
- }
622
- }
623
- function Ae(e) {
624
- let t = T(e), n = [...t.getNewDataWithId(), ...Z.value[e]];
625
- if (!n || n.length == 0)
626
- return !1;
627
- let l = [];
628
- for (let o of n)
629
- l.push(o.id);
630
- t.removeRowsById(l);
631
- }
632
- function Re(e, t) {
633
- if (!t)
634
- return !1;
635
- let n = T(e);
636
- typeof t == "object" ? n.addRows(t, !0) : this.$message.error("添加子表数据,参数不识别!");
637
- }
638
- function Dt(e, t) {
639
- Ae(e), Re(e, t);
640
- }
641
- function Vt(e, t) {
642
- !t && t.length <= 0 && (t = []), t.map((n) => {
643
- n.hasOwnProperty("label") || (n.label = n.text);
644
- }), q({
645
- field: e,
646
- componentProps: {
647
- options: t
648
- }
649
- });
650
- }
651
- function Bt({ field: e, dict: t, label: n, type: l, subTableName: o }) {
652
- var d, m;
653
- const i = t.split(",").map((r) => encodeURIComponent(r)).join(",");
654
- if (l == "subTable") {
655
- const r = k.value.find((h) => h.key === o);
656
- if (r) {
657
- const h = r.columns.findIndex((g) => g.key === e);
658
- h !== -1 && le.get({
659
- url: `/sys/dict/loadDict/${i}`,
660
- params: { keyword: "", pageSize: 1e3 }
661
- }).then((g) => {
662
- const C = t.split(","), N = { customOptions: !0, dictTable: C[0], dictCode: C[2], dictText: C[1], options: g };
663
- n && (N.title = n), r.columns[h] = w(w({}, r.columns[h]), N), window.findSubTableInfo = r;
664
- });
665
- }
666
- } else if (l == "subForm") {
667
- if ((m = (d = P[o]) == null ? void 0 : d.value) != null && m[0]) {
668
- const r = {
669
- field: e,
670
- componentProps: {
671
- dict: i
672
- }
673
- };
674
- n && (r.label = n), P[o].value[0].updateSchema(r);
675
- }
676
- } else {
677
- const r = {
678
- field: e,
679
- componentProps: {
680
- dict: i
681
- }
682
- };
683
- n && (r.label = n), q(r);
684
- }
685
- }
686
- function It(e, t, n) {
687
- const l = k.value.find((o) => o.key === e);
688
- if (l) {
689
- !n && n.length <= 0 && (n = []), n.map((i) => {
690
- i.hasOwnProperty("label") || (i.label = i.text);
691
- });
692
- const o = l.columns.findIndex((i) => i.key === t);
693
- o !== -1 && (l.columns[o] = ce(w({}, l.columns[o]), { options: n, dictCode: "" }));
694
- }
695
- }
696
- function jt(e, t, n) {
697
- var l, o;
698
- (o = (l = P[e]) == null ? void 0 : l.value) != null && o[0] && (!n && n.length <= 0 && (n = []), n.map((i) => {
699
- i.hasOwnProperty("label") || (i.label = i.text);
700
- }), P[e].value[0].updateSchema({
701
- field: t,
702
- componentProps: {
703
- dictCode: "",
704
- options: n
705
- }
706
- }));
707
- }
708
- function Nt(e, t) {
709
- return f && f.beforeSubmit ? f.beforeSubmit(e, t) : Promise.resolve();
710
- }
711
- function Jt(e, t) {
712
- let n = J(K);
713
- Object.keys(n).map((l) => {
714
- l.endsWith("_load") || l.endsWith("_disabled") || (K[l] = !0);
715
- }), e && e.length > 0 ? Object.keys(n).map((l) => {
716
- !l.endsWith("_load") && e.indexOf(l) < 0 && (K[l] = !1);
717
- }) : t && t.length > 0 && Object.keys(n).map((l) => {
718
- t.indexOf(l) >= 0 && (K[l] = !1);
719
- });
720
- }
721
- function Lt(e, t) {
722
- return _(this, null, function* () {
723
- O.value = t, yield he(), M.value = "", S.value = !0, yield Fe(e), yield je(() => {
724
- ie("js", "loaded");
725
- });
726
- });
727
- }
728
- function T(e) {
729
- let t = P[e].value;
730
- if (t instanceof Array && (t = t[0]), !t) {
731
- s.warning("子表ref找不到:" + e);
732
- return;
733
- }
734
- return t;
735
- }
736
- function Ut() {
737
- let e = y.reportPrintUrl, t = M.value.id, n = An();
738
- On(e, t, n);
739
- }
740
- const [Kt, { openModal: Ee }] = En(), re = v(""), se = v(""), ue = v(!0);
741
- function Yt(e) {
742
- re.value = e.id, se.value = e.key, ue.value = !1, Ee(!0, { isUpdate: !1, tableType: "3" });
743
- }
744
- function Wt(e) {
745
- let n = T(e.key).getSelectedData();
746
- if (n.length != 1) {
747
- s.warning("请选择一条数据");
748
- return;
749
- }
750
- re.value = e.id, se.value = e.key, ue.value = !1, Ee(!0, { isUpdate: !0, record: n[0] });
751
- }
752
- function qt(e) {
753
- const t = e[Ne];
754
- let n = Je(e, [Ne]);
755
- if (n.id) {
756
- let l = Je(w({}, n), "id"), o = [{ rowKey: n.id, values: l }];
757
- T(t).setValues(o);
758
- } else
759
- T(t).addRows(n, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
760
- }
761
- function Ht() {
762
- if (u.themeTemplate === oe)
763
- return;
764
- let e = k.value;
765
- if (e && e.length > 0) {
766
- for (let t of e)
767
- if (t.relationType != 1) {
768
- let n = T(t.key);
769
- n && n.clearSelection();
770
- }
771
- }
772
- }
773
- function Gt() {
774
- let e = $(), t = J(W[x.value]);
775
- Y(t, (n) => {
776
- A(n);
777
- }, e);
778
- }
779
- function zt(e, t) {
780
- let n = k.value;
781
- if (n && n.length > 0) {
782
- let l = n.filter((o) => o.key === e);
783
- if (l.length == 0)
784
- return;
785
- if (l[0].relationType == 1)
786
- T(e).executeFillRule();
787
- else {
788
- let o = J(W[e]), i = J(t.row);
789
- Y(o, (d) => {
790
- const { row: m, target: r } = t;
791
- let h = [{ rowKey: m.id, values: w({}, d) }];
792
- r.setValues(h);
793
- }, i);
794
- }
795
- }
796
- }
797
- let xe = {
798
- tableName: x,
799
- loading: E,
800
- subActiveKey: ee,
801
- onlineFormRef: a,
802
- getFieldsValue: $,
803
- setFieldsValue: A,
804
- submitFlowFlag: F,
805
- subFormHeight: Ce,
806
- subTableHeight: _e,
807
- refMap: P,
808
- triggleChangeValues: Ct,
809
- triggleChangeValue: _t,
810
- sh: K,
811
- clearSubRows: Ae,
812
- addSubRows: Re,
813
- clearThenAddRows: Dt,
814
- changeOptions: Vt,
815
- isUpdate: S,
816
- getSubTableInstance: T,
817
- updateSchema: q,
818
- executeMainFillRule: Gt,
819
- executeSubFillRule: zt,
820
- // update-begin--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
821
- changeSubTableOptions: It,
822
- changeSubFormbleOptions: jt,
823
- // update-end--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
824
- changeRemoteOptions: Bt,
825
- changEvent: () => {
826
- },
827
- onlineFormValueChange: gt,
828
- // update-begin--author:liaozhiyang---date:20240705---for:【TV360X-1754】js增强-提交表单并且发起流程
829
- submitFormAndFlow: bt
830
- // update-end--author:liaozhiyang---date:20240705---for:【TV360X-1754】js增强-提交表单并且发起流程
831
- };
832
- return Le(xe), {
833
- //主表
834
- tableName: x,
835
- onlineFormRef: a,
836
- registerForm: tt,
837
- loading: E,
838
- //子表
839
- subActiveKey: ee,
840
- hasSubTable: He,
841
- subTabInfo: k,
842
- refMap: P,
843
- //一对一子表
844
- subFormHeight: Ce,
845
- getSubTableForeignKeyValue: Ot,
846
- isUpdate: S,
847
- handleSubFormChange: At,
848
- //一对多子表
849
- subTableHeight: _e,
850
- onlineFormDisabled: ye,
851
- subDataSource: Z,
852
- getSubTableAuthPre: Oe,
853
- handleAdded: xt,
854
- handleSubTableDefaultValue: ve,
855
- handleValueChange: Rt,
856
- openSubFormModalForAdd: Yt,
857
- openSubFormModalForEdit: Wt,
858
- getBtnAuth: (e, t) => {
859
- const n = Oe(t);
860
- let o = Bn().getOnlineSubTableAuth(n);
861
- return o != null && o.length ? !o.find((d) => d === e) : !0;
862
- },
863
- handleRemoved: Et,
864
- //父组件调用
865
- show: at,
866
- createRootProperties: mt,
867
- handleSubmit: we,
868
- sh: K,
869
- handleCgButtonClick: ie,
870
- handleCustomFormSh: Jt,
871
- handleCustomFormEdit: Lt,
872
- //跳转
873
- dbData: M,
874
- onOpenReportPrint: Ut,
875
- onlineExtConfigJson: y,
876
- //一对多子表弹窗操作数据
877
- registerPopModal: Kt,
878
- popTableId: re,
879
- popTableName: se,
880
- getPopFormData: qt,
881
- popModalRequest: ue,
882
- onCloseModal: Ht,
883
- ERP: oe,
884
- rowNumber: ae,
885
- isSetFormLabelLength: Q,
886
- subFormWrapRef: c,
887
- getSubAddBtnCfg: Ue,
888
- getSubRemoveBtnCfg: Ke,
889
- getSubOpenAddBtnCfg: Ye,
890
- getSubOpenEditBtnCfg: We
891
- };
892
- }
893
- }, Nn = ["id"], Jn = { key: 1 };
894
- function Ln(u, p, s, a, R, E) {
895
- const B = D("BasicForm"), O = D("online-sub-form"), F = D("a-button"), S = D("JVxeTable"), I = D("a-tab-pane"), Q = D("a-tabs"), L = D("Loading"), ae = D("online-pop-modal");
896
- return V(), te("div", {
897
- id: a.tableName + "_form",
898
- class: rn(["onlineFormWrap", [`formTemplate_${s.formTemplate}`]])
899
- }, [
900
- H(B, {
901
- ref: "onlineFormRef",
902
- onRegister: a.registerForm,
903
- name: "online-form_" + a.tableName
904
- }, null, 8, ["onRegister", "name"]),
905
- s.themeTemplate !== a.ERP && a.hasSubTable ? (V(), ne(Q, {
906
- key: 0,
907
- activeKey: a.subActiveKey,
908
- "onUpdate:activeKey": p[0] || (p[0] = (c) => a.subActiveKey = c)
909
- }, {
910
- default: G(() => [
911
- (V(!0), te(sn, null, un(a.subTabInfo, (c, U) => (V(), ne(I, {
912
- tab: c.describe,
913
- key: U + "",
914
- forceRender: !0
915
- }, {
916
- default: G(() => [
917
- c.relationType == 1 ? (V(), te("div", {
918
- key: 0,
919
- ref_for: !0,
920
- ref: "subFormWrapRef",
921
- style: cn({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
922
- }, [
923
- H(O, {
924
- ref_for: !0,
925
- ref: a.refMap[c.key],
926
- table: c.key,
927
- disabled: a.onlineFormDisabled,
928
- "form-template": s.formTemplate,
929
- "main-id": a.getSubTableForeignKeyValue(c.foreignKey),
930
- properties: c.properties,
931
- "required-fields": c.requiredFields,
932
- "is-update": a.isUpdate,
933
- onFormChange: (y) => a.handleSubFormChange(y, c.key)
934
- }, null, 8, ["table", "disabled", "form-template", "main-id", "properties", "required-fields", "is-update", "onFormChange"])
935
- ], 4)) : (V(), te("div", Jn, [
936
- H(S, {
937
- ref_for: !0,
938
- ref: a.refMap[c.key],
939
- toolbar: "",
940
- "keep-source": "",
941
- "row-number": a.rowNumber,
942
- "row-selection": "",
943
- height: (
944
- // 【VUEN-803】一对多子表固定340高度,修复自定义列组件被遮挡的问题
945
- a.subTableHeight
946
- ),
947
- disabled: a.onlineFormDisabled,
948
- columns: c.columns,
949
- dataSource: a.subDataSource[c.key],
950
- addBtnCfg: a.getSubAddBtnCfg,
951
- removeBtnCfg: a.getSubRemoveBtnCfg,
952
- onValueChange: (y) => a.handleValueChange(y, c.key),
953
- onRemoved: (y) => a.handleRemoved(y, c.key),
954
- authPre: a.getSubTableAuthPre(c.key),
955
- onAdded: (y) => a.handleAdded(c, y),
956
- onExecuteFillRule: (y) => a.handleSubTableDefaultValue(c, y)
957
- }, {
958
- toolbarSuffix: G(() => [
959
- !a.onlineFormDisabled && a.getSubOpenAddBtnCfg.enabled && a.getBtnAuth("add", c.key) ? (V(), ne(F, {
960
- key: 0,
961
- type: "primary",
962
- preIcon: a.getSubOpenAddBtnCfg.buttonIcon,
963
- onClick: (y) => a.openSubFormModalForAdd(c)
964
- }, {
965
- default: G(() => [
966
- Ve("span", null, Be(a.getSubOpenAddBtnCfg.buttonName), 1)
967
- ]),
968
- _: 2
969
- }, 1032, ["preIcon", "onClick"])) : fe("", !0),
970
- !a.onlineFormDisabled && a.getSubOpenEditBtnCfg.enabled && a.getBtnAuth("update", c.key) ? (V(), ne(F, {
971
- key: 1,
972
- type: "primary",
973
- preIcon: a.getSubOpenEditBtnCfg.buttonIcon,
974
- onClick: (y) => a.openSubFormModalForEdit(c)
975
- }, {
976
- default: G(() => [
977
- Ve("span", null, Be(a.getSubOpenEditBtnCfg.buttonName), 1)
978
- ]),
979
- _: 2
980
- }, 1032, ["preIcon", "onClick"])) : fe("", !0)
981
- ]),
982
- _: 2
983
- }, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "addBtnCfg", "removeBtnCfg", "onValueChange", "onRemoved", "authPre", "onAdded", "onExecuteFillRule"])
984
- ]))
985
- ]),
986
- _: 2
987
- }, 1032, ["tab"]))), 128))
988
- ]),
989
- _: 1
990
- }, 8, ["activeKey"])) : fe("", !0),
991
- H(L, {
992
- loading: a.loading,
993
- absolute: !1
994
- }, null, 8, ["loading"]),
995
- fn(u.$slots, "bottom", {}, void 0, !0),
996
- H(ae, {
997
- formTableType: "3",
998
- request: a.popModalRequest,
999
- id: a.popTableId,
1000
- onRegister: a.registerPopModal,
1001
- onSuccess: a.getPopFormData,
1002
- taskId: s.taskId,
1003
- tableName: a.popTableName,
1004
- topTip: "",
1005
- isVxeTableData: ""
1006
- }, null, 8, ["request", "id", "onRegister", "onSuccess", "taskId", "tableName"])
1007
- ], 10, Nn);
1008
- }
1009
- const Dl = /* @__PURE__ */ In(jn, [["render", Ln], ["__scopeId", "data-v-3f26e7bd"]]);
1010
- export {
1011
- Dl as default
1012
- };