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