@jeecg/online 3.9.0-beta2 → 3.9.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 (170) hide show
  1. package/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
  9. package/AppThirdForm-NMob-JaS.mjs +185 -0
  10. package/AuthButtonConfig-zUioaGwn.mjs +155 -0
  11. package/AuthButtonTree-DYZwphe6.mjs +159 -0
  12. package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
  18. package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
  19. package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
  20. package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
  37. package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
  38. package/ErrorTip-BDS1uxkW.mjs +4 -0
  39. package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
  40. package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
  41. package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
  55. package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
  56. package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
  57. package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
  58. package/OnlCgformTabList-DCy3oudh.mjs +371 -0
  59. package/OnlineAutoList-C4pkORGb.mjs +500 -0
  60. package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
  61. package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
  65. package/OnlineFormDetail-KaD6cV31.mjs +321 -0
  66. package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
  67. package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
  68. package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
  69. package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
  71. package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
  73. package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
  74. package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
  75. package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
  76. package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
  82. package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
  83. package/ShareAddView-CxZuNTQB.mjs +11 -0
  84. package/ShareEditView-Dqdzjmpc.mjs +17 -0
  85. package/ShareView-B9TiMmkR.mjs +4 -0
  86. package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
  87. package/SingleView-BDXeMLV-.mjs +4 -0
  88. package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
  93. package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
  94. package/index-0kQBIHx0.mjs +58 -0
  95. package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
  102. package/main.index.js +8 -9
  103. package/online.css +1 -0
  104. package/package.json +1 -1
  105. package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
  108. package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
  109. package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
  110. package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
  111. package/AppLogin-bf783eab.mjs +0 -287
  112. package/AppLoginHeader-55594326.mjs +0 -27
  113. package/AppThirdForm-5e7e1144.mjs +0 -189
  114. package/AuthButtonConfig-4887be0d.mjs +0 -160
  115. package/AuthButtonTree-7e47b44b.mjs +0 -165
  116. package/AuthDataTree-714c259c.mjs +0 -139
  117. package/AuthManagerDrawer-dee39b07.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-4be1000f.mjs +0 -259
  120. package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
  121. package/DetailForm-7d4f630e.mjs +0 -497
  122. package/EnhanceJavaModal-469e645e.mjs +0 -264
  123. package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-7b00b49a.mjs +0 -117
  126. package/JModalTip-c3e6726c.mjs +0 -49
  127. package/LinkTableListPiece-0f4ca559.mjs +0 -34
  128. package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
  129. package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
  130. package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
  131. package/OnlCgformTabList-882a0e0c.mjs +0 -431
  132. package/OnlineAutoList-caedb54a.mjs +0 -558
  133. package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
  134. package/OnlineCustomModal-f4e17bed.mjs +0 -246
  135. package/OnlineDetailModal-35394778.mjs +0 -198
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-4b3ad130.mjs +0 -349
  138. package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
  139. package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
  140. package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
  141. package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
  142. package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
  143. package/OnlineTabDetailModal-401a26ad.mjs +0 -226
  144. package/OnlineTabFormDetail-2a28febf.mjs +0 -328
  145. package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
  146. package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
  147. package/ShareAddView-a5154da3.mjs +0 -88
  148. package/ShareEditView-cf761cf3.mjs +0 -94
  149. package/ShareView-3b2f5457.mjs +0 -82
  150. package/SingleView-3cab20a9.mjs +0 -70
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-60cf4080.mjs +0 -13
  153. package/index-740b2c4a.mjs +0 -57
  154. package/index-8fd12d0f.mjs +0 -219
  155. package/style.css +0 -1
  156. package/useExtendComponent-95ce0719.mjs +0 -4460
  157. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  158. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  159. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  160. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  161. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  162. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  163. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  164. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  165. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  166. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  167. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  168. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  169. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  170. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -0,0 +1,321 @@
1
+ var ie = Object.defineProperty;
2
+ var j = Object.getOwnPropertySymbols;
3
+ var le = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
4
+ var N = (r, i, a) => i in r ? ie(r, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[i] = a, V = (r, i) => {
5
+ for (var a in i || (i = {}))
6
+ le.call(i, a) && N(r, a, i[a]);
7
+ if (j)
8
+ for (var a of j(i))
9
+ se.call(i, a) && N(r, a, i[a]);
10
+ return r;
11
+ };
12
+ var w = (r, i, a) => new Promise((t, p) => {
13
+ var u = (s) => {
14
+ try {
15
+ b(a.next(s));
16
+ } catch (g) {
17
+ p(g);
18
+ }
19
+ }, c = (s) => {
20
+ try {
21
+ b(a.throw(s));
22
+ } catch (g) {
23
+ p(g);
24
+ }
25
+ }, b = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(u, c);
26
+ b((a = a.apply(r, i)).next());
27
+ });
28
+ import { useMessage as ce } from "/@/hooks/web/useMessage";
29
+ import { nextTick as me, ref as m, reactive as I, watch as ue, resolveComponent as h, createElementBlock as T, openBlock as d, createCommentVNode as B, createVNode as R, createBlock as x, renderSlot as fe, withCtx as M, Fragment as de, renderList as pe, normalizeStyle as he } from "vue";
30
+ import { Loading as be } from "/@/components/Loading";
31
+ import { getToken as ge } from "/@/utils/auth";
32
+ import { goJmReportViewPage as ye } from "/@/utils";
33
+ import { PrinterOutlined as _e } from "@ant-design/icons-vue";
34
+ import Se from "./DetailForm-CnfJBMys.mjs";
35
+ import Te from "./OnlineSubFormDetail-DcMpAk8Z.mjs";
36
+ import { m as xe, u as Ce } from "./useExtendComponent-P9wrWQwT.mjs";
37
+ import { defHttp as ke } from "/@/utils/http/axios";
38
+ import { E as we } from "./constant-DnbpmwZg.mjs";
39
+ import { useAppInject as Fe } from "/@/hooks/web/useAppInject";
40
+ import { _ as Pe } from "./index-0kQBIHx0.mjs";
41
+ function ve() {
42
+ const r = {}, i = {
43
+ setFieldsValue: "<m> 设置表单控件的值",
44
+ getFieldsValue: "<m> 获取表单控件的值",
45
+ sh: "<p> 表单控件的显示隐藏状态",
46
+ isUpdate: "<p> 判断是否为编辑模式",
47
+ isDetail: "<p> 判断是否为详情模式"
48
+ }, a = new Proxy(i, {
49
+ get(u, c) {
50
+ return Reflect.get(r, c);
51
+ }
52
+ });
53
+ function t(u, c) {
54
+ r[u] = c;
55
+ }
56
+ function p(u) {
57
+ Object.keys(u).map((c) => {
58
+ r[c] = u[c];
59
+ });
60
+ }
61
+ return t("$nextTick", me), t("addObject2Context", t), { onlineFormDetailContext: a, addObject2Context: t, resetContext: p };
62
+ }
63
+ const Oe = {
64
+ name: "OnlineFormDetail",
65
+ components: {
66
+ DetailForm: Se,
67
+ Loading: be,
68
+ PrinterOutlined: _e,
69
+ OnlineSubFormDetail: Te
70
+ },
71
+ props: {
72
+ id: {
73
+ type: String,
74
+ default: ""
75
+ },
76
+ formTemplate: {
77
+ type: Number,
78
+ default: 1
79
+ },
80
+ disabled: {
81
+ type: Boolean,
82
+ default: !1
83
+ },
84
+ isTree: {
85
+ type: Boolean,
86
+ default: !1
87
+ },
88
+ pidField: {
89
+ type: String,
90
+ default: ""
91
+ },
92
+ submitTip: {
93
+ type: Boolean,
94
+ default: !0
95
+ },
96
+ showSub: {
97
+ type: Boolean,
98
+ default: !0
99
+ },
100
+ themeTemplate: {
101
+ type: String,
102
+ default: ""
103
+ }
104
+ },
105
+ emits: ["success", "rendered"],
106
+ setup(r, { emit: i }) {
107
+ const { createMessage: a } = ce(), { getIsMobile: t } = Fe(), p = m(""), u = m(!0), c = m(!1), b = m(1), s = m({}), g = m(t.value ? "auto" : 300), C = m(0), F = m(340), P = m(!t.value);
108
+ let y = {};
109
+ const l = I({}), _ = I({
110
+ reportPrintShow: 0,
111
+ reportPrintUrl: "",
112
+ joinQuery: 0,
113
+ modelFullscreen: 0,
114
+ modalMinWidth: ""
115
+ }), { detailFormSchemas: v, hasSubTable: U, subTabInfo: H, refMap: K, showStatus: O, subDataSource: D, createFormSchemas: L, formSpan: z } = xe(r);
116
+ function A(e) {
117
+ let n = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
118
+ e && (n = JSON.parse(e)), Object.keys(n).map((o) => {
119
+ _[o] = n[o];
120
+ });
121
+ }
122
+ const { onlineFormDetailContext: E, resetContext: Q } = ve();
123
+ let { EnhanceJS: k, initCgEnhanceJs: W } = Ce(E, !1);
124
+ function X(e) {
125
+ return w(this, null, function* () {
126
+ b.value = e.head.tableType, p.value = e.head.tableName, u.value = e.head.tableType == 1, A(e.head.extConfigJson), L(e.schema.properties), k = W(e.enhanceJs), i("rendered", _);
127
+ });
128
+ }
129
+ function q(e, n) {
130
+ return w(this, null, function* () {
131
+ C.value++, yield Z(n), J(!0);
132
+ });
133
+ }
134
+ function G(e) {
135
+ let n = `/online/cgform/api/detail/${r.id}/${e}`;
136
+ return new Promise((o, f) => {
137
+ ke.get({ url: n }, { isTransformResponse: !1 }).then((S) => {
138
+ S.success ? o(S.result) : (f(), a.warning(S.message));
139
+ }).catch(() => {
140
+ f();
141
+ });
142
+ });
143
+ }
144
+ function J(e) {
145
+ Object.keys(O).map((n) => {
146
+ O[n] = e;
147
+ });
148
+ }
149
+ function Y() {
150
+ J(!1), setTimeout(() => {
151
+ J(!0);
152
+ }, 300);
153
+ }
154
+ function Z(e) {
155
+ return w(this, null, function* () {
156
+ y = yield G(e.id), v.value.filter((o) => o.hidden).forEach((o) => o.hidden = !1), Object.keys(l).forEach(function(o) {
157
+ delete l[o];
158
+ }), ae({ buttonCode: "loaded" }), s.value = V({}, y), $(y);
159
+ });
160
+ }
161
+ function $(e) {
162
+ e || (e = {});
163
+ let n = Object.keys(D.value);
164
+ if (n && n.length > 0) {
165
+ let o = {};
166
+ for (let f of n)
167
+ o[f] = e[f] || [];
168
+ D.value = o;
169
+ }
170
+ }
171
+ function ee(e) {
172
+ return "online_" + e + ":";
173
+ }
174
+ function te() {
175
+ let e = _.reportPrintUrl, n = s.value;
176
+ if (n) {
177
+ let o = n.id, f = ge();
178
+ ye(e, o, f);
179
+ }
180
+ }
181
+ function ne(e) {
182
+ let n = s.value;
183
+ return oe(n, e);
184
+ }
185
+ function oe(e, n) {
186
+ if (e) {
187
+ let o = e[n];
188
+ return !o && o !== 0 && (o = e[n.toLowerCase()], !o && o !== 0 && (o = e[n.toUpperCase()])), o;
189
+ }
190
+ return "";
191
+ }
192
+ function ae({ buttonCode: e }) {
193
+ k && k[e] && k[e].call(E, E);
194
+ }
195
+ ue(l, (e) => {
196
+ Object.entries(e).forEach(([n, o]) => {
197
+ if (o == !1) {
198
+ const f = v.value.find((S) => S.field === n);
199
+ f && (f.hidden = !0);
200
+ }
201
+ });
202
+ });
203
+ const re = {
204
+ setFieldsValue: (e) => {
205
+ Object.entries(e).forEach(([n, o]) => {
206
+ y[n] = o;
207
+ });
208
+ },
209
+ getFieldsValue: () => V({}, y),
210
+ sh: l,
211
+ isUpdate: m(!1),
212
+ isDetail: m(!0)
213
+ };
214
+ return Q(re), {
215
+ detailFormSchemas: v,
216
+ formData: s,
217
+ formSpan: z,
218
+ //主表
219
+ tableName: p,
220
+ loading: c,
221
+ //子表
222
+ hasSubTable: U,
223
+ subTabInfo: H,
224
+ subFormHeight: g,
225
+ subTableHeight: F,
226
+ refMap: K,
227
+ onTabChange: Y,
228
+ subReloadKey: C,
229
+ //一对多子表
230
+ subDataSource: D,
231
+ getSubTableAuthPre: ee,
232
+ //父组件调用
233
+ show: q,
234
+ createRootProperties: X,
235
+ // 扩展配置
236
+ onOpenReportPrint: te,
237
+ onlineExtConfigJson: _,
238
+ getSubTableForeignKeyValue: ne,
239
+ showStatus: O,
240
+ ERP: we,
241
+ rowNumber: P
242
+ };
243
+ }
244
+ }, De = ["id"], Ee = {
245
+ key: 0,
246
+ style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
247
+ }, Je = { key: 1 };
248
+ function Ve(r, i, a, t, p, u) {
249
+ const c = h("PrinterOutlined"), b = h("detail-form"), s = h("online-sub-form-detail"), g = h("JVxeTable"), C = h("a-spin"), F = h("a-tab-pane"), P = h("a-tabs"), y = h("Loading");
250
+ return d(), T("div", {
251
+ id: t.tableName + "_form"
252
+ }, [
253
+ t.formData.id && t.onlineExtConfigJson.reportPrintShow ? (d(), T("div", Ee, [
254
+ R(c, {
255
+ title: "打印",
256
+ onClick: t.onOpenReportPrint,
257
+ style: { "font-size": "16px" }
258
+ }, null, 8, ["onClick"])
259
+ ])) : B("", !0),
260
+ R(b, {
261
+ schemas: t.detailFormSchemas,
262
+ data: t.formData,
263
+ span: t.formSpan
264
+ }, null, 8, ["schemas", "data", "span"]),
265
+ a.themeTemplate !== t.ERP && t.hasSubTable && a.showSub ? (d(), x(P, {
266
+ key: 1,
267
+ onChange: t.onTabChange
268
+ }, {
269
+ default: M(() => [
270
+ (d(!0), T(de, null, pe(t.subTabInfo, (l, _) => (d(), x(F, {
271
+ tab: l.describe,
272
+ key: _ + "",
273
+ forceRender: !0
274
+ }, {
275
+ default: M(() => [
276
+ l.relationType == 1 ? (d(), T("div", {
277
+ key: 0,
278
+ style: he({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": t.subFormHeight + "px" })
279
+ }, [
280
+ (d(), x(s, {
281
+ key: t.subReloadKey,
282
+ table: l.key,
283
+ "form-template": a.formTemplate,
284
+ "main-id": t.getSubTableForeignKeyValue(l.foreignKey),
285
+ properties: l.properties
286
+ }, null, 8, ["table", "form-template", "main-id", "properties"]))
287
+ ], 4)) : (d(), T("div", Je, [
288
+ t.showStatus[l.key] ? (d(), x(g, {
289
+ key: 0,
290
+ ref_for: !0,
291
+ ref: t.refMap[l.key],
292
+ "keep-source": "",
293
+ "row-number": t.rowNumber,
294
+ "row-selection": "",
295
+ height: t.subTableHeight,
296
+ disabled: !0,
297
+ columns: l.columns,
298
+ dataSource: t.subDataSource[l.key],
299
+ authPre: t.getSubTableAuthPre(l.key)
300
+ }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (d(), x(C, {
301
+ key: 1,
302
+ spinning: !0
303
+ }))
304
+ ]))
305
+ ]),
306
+ _: 2
307
+ }, 1032, ["tab"]))), 128))
308
+ ]),
309
+ _: 1
310
+ }, 8, ["onChange"])) : B("", !0),
311
+ R(y, {
312
+ loading: t.loading,
313
+ absolute: !1
314
+ }, null, 8, ["loading"]),
315
+ fe(r.$slots, "bottom")
316
+ ], 8, De);
317
+ }
318
+ const Xe = /* @__PURE__ */ Pe(Oe, [["render", Ve]]);
319
+ export {
320
+ Xe as default
321
+ };
@@ -0,0 +1,86 @@
1
+ import { defineComponent as x, ref as r, unref as e, watch as E, createElementBlock as F, openBlock as p, normalizeClass as u, createVNode as c, withCtx as f, createElementVNode as R, createCommentVNode as d, createBlock as T } from "vue";
2
+ import { Card as b, Spin as A } from "ant-design-vue";
3
+ import { useMessage as B } from "/@/hooks/web/useMessage";
4
+ import "/@/components/Form/index";
5
+ import "/@/utils/http/axios";
6
+ import "lodash-es";
7
+ import "/@/utils";
8
+ import { u as I } from "./useExtendComponent-P9wrWQwT.mjs";
9
+ import "/@/components/Loading";
10
+ import "/@/components/jeecg/JVxeTable/types";
11
+ import "/@/utils/auth";
12
+ import "@ant-design/icons-vue";
13
+ import "/@/hooks/core/useContext";
14
+ import "/@/utils/mitt";
15
+ import "/@/components/Modal";
16
+ import "/@/utils/cache";
17
+ import "/@/utils/common/compUtils";
18
+ import "/@/store/modules/user";
19
+ import "/@/hooks/web/useAppInject";
20
+ import "/@/utils/is";
21
+ import "/@/store/modules/permission";
22
+ /* empty css */
23
+ import M from "./OnlineAutoModal-Cuf_wcbU.mjs";
24
+ import { u as O, a as S } from "./useListButton-DyOAscwT.mjs";
25
+ import { useRouter as U } from "vue-router";
26
+ import { u as y } from "./useFormUrl-D8ASmaz6.mjs";
27
+ import { _ as D } from "./index-0kQBIHx0.mjs";
28
+ const N = /* @__PURE__ */ x({
29
+ __name: "OnlineFormUrlAdd",
30
+ setup(V) {
31
+ const { ID: o, onlineTableContext: n, onlineExtConfigJson: g, handleFormConfig: h } = O(), { createMessage: _ } = B(), i = r(null), s = r(400), a = r(!0), C = U(), { token: m } = y();
32
+ if (!e(m))
33
+ throw new Error("token不存在~");
34
+ if (!o.value)
35
+ throw _.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
36
+ I(n), E(
37
+ () => i.value,
38
+ (t) => {
39
+ s.value = t.offsetHeight - 60;
40
+ }
41
+ );
42
+ const { registerModal: w, handleAdd: l } = S(n, g), v = (t) => document.querySelector(`.online-add-${o.value}`), k = () => {
43
+ setTimeout(() => {
44
+ l(!1), setTimeout(() => {
45
+ C.push({ path: "/online/formUrlSuccess" });
46
+ }, 1e3);
47
+ }, 0);
48
+ };
49
+ return setTimeout(() => {
50
+ l(!1), a.value = !1;
51
+ }, 1e3), (t, $) => (p(), F("div", {
52
+ class: u([["p-2"], "online-wrap"])
53
+ }, [
54
+ c(e(b), { bordered: !1 }, {
55
+ default: f(() => [
56
+ c(e(A), { spinning: a.value }, {
57
+ default: f(() => [
58
+ R("div", {
59
+ class: u(["wrap", `online-add-${e(o)}`]),
60
+ ref_key: "wrapRef",
61
+ ref: i
62
+ }, [
63
+ d("", !0),
64
+ e(m) ? (p(), T(M, {
65
+ key: 1,
66
+ id: e(o),
67
+ maskClosable: !1,
68
+ onRegister: e(w),
69
+ getContainer: v,
70
+ onFormConfig: e(h),
71
+ onSuccess: k,
72
+ height: s.value
73
+ }, null, 8, ["id", "onRegister", "onFormConfig", "height"])) : d("", !0)
74
+ ], 2)
75
+ ]),
76
+ _: 1
77
+ }, 8, ["spinning"])
78
+ ]),
79
+ _: 1
80
+ })
81
+ ]));
82
+ }
83
+ }), fe = /* @__PURE__ */ D(N, [["__scopeId", "data-v-4a0277d5"]]);
84
+ export {
85
+ fe as default
86
+ };
@@ -0,0 +1,85 @@
1
+ import { defineComponent as C, ref as r, unref as e, watch as k, createElementBlock as D, openBlock as p, normalizeClass as u, createVNode as c, withCtx as d, createElementVNode as b, createCommentVNode as f, createBlock as x } from "vue";
2
+ import { Card as E, Spin as I } from "ant-design-vue";
3
+ import { useMessage as M } from "/@/hooks/web/useMessage";
4
+ import "/@/components/Form/index";
5
+ import "/@/utils/http/axios";
6
+ import "lodash-es";
7
+ import "/@/utils";
8
+ import { u as R } from "./useExtendComponent-P9wrWQwT.mjs";
9
+ import "/@/components/Loading";
10
+ import "/@/components/jeecg/JVxeTable/types";
11
+ import "/@/utils/auth";
12
+ import "@ant-design/icons-vue";
13
+ import "/@/hooks/core/useContext";
14
+ import "/@/utils/mitt";
15
+ import "/@/components/Modal";
16
+ import "/@/utils/cache";
17
+ import "/@/utils/common/compUtils";
18
+ import "/@/store/modules/user";
19
+ import "/@/hooks/web/useAppInject";
20
+ import "/@/utils/is";
21
+ import "/@/store/modules/permission";
22
+ /* empty css */
23
+ import { useRoute as S } from "vue-router";
24
+ import B from "./OnlineDetailModal-So0YEah1.mjs";
25
+ import { u as O, a as U } from "./useListButton-DyOAscwT.mjs";
26
+ import { u as y } from "./useFormUrl-D8ASmaz6.mjs";
27
+ import { _ as F } from "./index-0kQBIHx0.mjs";
28
+ const N = /* @__PURE__ */ C({
29
+ __name: "OnlineFormUrlDetail",
30
+ setup(T) {
31
+ const n = S(), { ID: t, onlineTableContext: i, onlineExtConfigJson: g } = O(), { createMessage: _ } = M(), a = r(null), s = r(400), l = r(!0), { token: m } = y();
32
+ if (!e(m))
33
+ throw new Error("token不存在~");
34
+ if (!t.value || !n.params.dataId)
35
+ throw _.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
36
+ k(
37
+ () => a.value,
38
+ (o) => {
39
+ s.value = o.offsetHeight;
40
+ }
41
+ ), R(i);
42
+ const { registerDetailModal: h, openDetailModal: w } = U(i, g), v = (o) => document.querySelector(`.online-detail-${t.value}`);
43
+ return setTimeout(() => {
44
+ w(!0, {
45
+ isUpdate: !0,
46
+ disableSubmit: !0,
47
+ record: {
48
+ id: n.params.dataId
49
+ }
50
+ }), l.value = !1;
51
+ }, 1e3), (o, V) => (p(), D("div", {
52
+ class: u([["p-2"], "online-wrap"])
53
+ }, [
54
+ c(e(E), { bordered: !1 }, {
55
+ default: d(() => [
56
+ c(e(I), { spinning: l.value }, {
57
+ default: d(() => [
58
+ b("div", {
59
+ class: u(["wrap", `online-detail-${e(t)}`]),
60
+ ref_key: "wrapRef",
61
+ ref: a
62
+ }, [
63
+ f("", !0),
64
+ e(m) ? (p(), x(B, {
65
+ key: 1,
66
+ id: e(t),
67
+ maskClosable: !1,
68
+ onRegister: e(h),
69
+ onSuccess: o.success,
70
+ getContainer: v,
71
+ height: s.value
72
+ }, null, 8, ["id", "onRegister", "onSuccess", "height"])) : f("", !0)
73
+ ], 2)
74
+ ]),
75
+ _: 1
76
+ }, 8, ["spinning"])
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]));
81
+ }
82
+ }), ue = /* @__PURE__ */ F(N, [["__scopeId", "data-v-cea77271"]]);
83
+ export {
84
+ ue as default
85
+ };
@@ -0,0 +1,84 @@
1
+ import { defineComponent as x, ref as i, unref as e, watch as I, createElementBlock as F, openBlock as u, normalizeClass as c, createVNode as d, withCtx as f, createElementVNode as R, createCommentVNode as g, createBlock as b } from "vue";
2
+ import { Card as B, Spin as M } from "ant-design-vue";
3
+ import { useMessage as O } from "/@/hooks/web/useMessage";
4
+ import "/@/components/Form/index";
5
+ import "/@/utils/http/axios";
6
+ import "lodash-es";
7
+ import "/@/utils";
8
+ import { u as S } from "./useExtendComponent-P9wrWQwT.mjs";
9
+ import "/@/components/Loading";
10
+ import "/@/components/jeecg/JVxeTable/types";
11
+ import "/@/utils/auth";
12
+ import "@ant-design/icons-vue";
13
+ import "/@/hooks/core/useContext";
14
+ import "/@/utils/mitt";
15
+ import "/@/components/Modal";
16
+ import "/@/utils/cache";
17
+ import "/@/utils/common/compUtils";
18
+ import "/@/store/modules/user";
19
+ import "/@/hooks/web/useAppInject";
20
+ import "/@/utils/is";
21
+ import "/@/store/modules/permission";
22
+ /* empty css */
23
+ import { useRoute as T, useRouter as U } from "vue-router";
24
+ import y from "./OnlineAutoModal-Cuf_wcbU.mjs";
25
+ import { u as D, a as N } from "./useListButton-DyOAscwT.mjs";
26
+ import { u as V } from "./useFormUrl-D8ASmaz6.mjs";
27
+ import { _ as $ } from "./index-0kQBIHx0.mjs";
28
+ const H = /* @__PURE__ */ x({
29
+ __name: "OnlineFormUrlEdit",
30
+ setup(q) {
31
+ const { ID: o, onlineTableContext: a, onlineExtConfigJson: h, handleFormConfig: _ } = D(), { createMessage: C } = O(), t = T(), s = i(null), m = i(400), l = i(!0), w = U(), { token: r } = V();
32
+ if (!e(r))
33
+ throw new Error("token不存在~");
34
+ if (!o.value || !t.params.dataId)
35
+ throw C.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
36
+ S(a), I(
37
+ () => s.value,
38
+ (n) => {
39
+ m.value = n.offsetHeight - 60;
40
+ }
41
+ );
42
+ const { registerModal: v, handleEdit: p } = N(a, h), E = (n) => document.querySelector(`.online-edit-${o.value}`), k = () => {
43
+ setTimeout(() => {
44
+ p({ id: t.params.dataId }), w.push({ path: "/online/formUrlSuccess" });
45
+ }, 0);
46
+ };
47
+ return setTimeout(() => {
48
+ r && p({ id: t.params.dataId }), l.value = !1;
49
+ }, 1e3), (n, z) => (u(), F("div", {
50
+ class: c([["p-2"], "online-wrap"])
51
+ }, [
52
+ d(e(B), { bordered: !1 }, {
53
+ default: f(() => [
54
+ d(e(M), { spinning: l.value }, {
55
+ default: f(() => [
56
+ R("div", {
57
+ class: c(["wrap", `online-edit-${e(o)}`]),
58
+ ref_key: "wrapRef",
59
+ ref: s
60
+ }, [
61
+ g("", !0),
62
+ e(r) ? (u(), b(y, {
63
+ key: 1,
64
+ id: e(o),
65
+ maskClosable: !1,
66
+ onRegister: e(v),
67
+ getContainer: E,
68
+ onFormConfig: e(_),
69
+ onSuccess: k,
70
+ height: m.value
71
+ }, null, 8, ["id", "onRegister", "onFormConfig", "height"])) : g("", !0)
72
+ ], 2)
73
+ ]),
74
+ _: 1
75
+ }, 8, ["spinning"])
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]));
80
+ }
81
+ }), ge = /* @__PURE__ */ $(H, [["__scopeId", "data-v-0b4f6a76"]]);
82
+ export {
83
+ ge as default
84
+ };
@@ -1,21 +1,19 @@
1
- import { defineComponent as c, resolveComponent as p, openBlock as m, createElementBlock as _, normalizeClass as d, createElementVNode as t, createVNode as s, withCtx as r, createTextVNode as l } from "vue";
2
- import { useRouter as u } from "vue-router";
3
- import { _ as v } from "./index-740b2c4a.mjs";
4
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
- import "/@/hooks/web/useMessage";
6
- const f = { class: "btnArea" }, x = /* @__PURE__ */ c({
1
+ import { defineComponent as p, resolveComponent as c, createElementBlock as m, openBlock as d, normalizeClass as u, createElementVNode as o, createVNode as r, withCtx as s, createTextVNode as l } from "vue";
2
+ import { useRouter as v } from "vue-router";
3
+ import { _ as f } from "./index-0kQBIHx0.mjs";
4
+ const _ = { class: "btnArea" }, w = /* @__PURE__ */ p({
7
5
  __name: "OnlineFormUrlSuccess",
8
- setup(w) {
9
- const a = u(), o = () => {
6
+ setup(x) {
7
+ const a = v(), e = () => {
10
8
  a.go(-1);
11
9
  };
12
- return (C, e) => {
13
- const n = p("a-button");
14
- return m(), _("div", {
15
- class: d([["p-2"], "online-wrap"])
10
+ return (C, t) => {
11
+ const n = c("a-button");
12
+ return d(), m("div", {
13
+ class: u([["p-2"], "online-wrap"])
16
14
  }, [
17
- e[4] || (e[4] = t("div", { class: "contentArea" }, [
18
- t("svg", {
15
+ t[4] || (t[4] = o("div", { class: "contentArea" }, [
16
+ o("svg", {
19
17
  t: "1709697840296",
20
18
  class: "icon",
21
19
  viewBox: "0 0 1024 1024",
@@ -23,37 +21,36 @@ const f = { class: "btnArea" }, x = /* @__PURE__ */ c({
23
21
  xmlns: "http://www.w3.org/2000/svg",
24
22
  "p-id": "1485"
25
23
  }, [
26
- t("path", {
24
+ o("path", {
27
25
  d: "M874.119618 149.859922A510.816461 510.816461 0 0 0 511.997 0.00208a509.910462 509.910462 0 0 0-362.119618 149.857842c-199.817789 199.679789-199.817789 524.581447 0 724.260236a509.969462 509.969462 0 0 0 362.119618 149.857842A508.872463 508.872463 0 0 0 874.119618 874.120158c199.836789-199.679789 199.836789-524.581447 0-724.260236zM814.94268 378.210681L470.999043 744.132295a15.359984 15.359984 0 0 1-5.887994 4.095996c-1.751998 1.180999-2.913997 2.362998-5.276994 2.913997a34.499964 34.499964 0 0 1-13.469986 2.914997 45.547952 45.547952 0 0 1-12.897986-2.303998l-4.095996-2.363997a45.291952 45.291952 0 0 1-7.009992-4.095996l-196.902793-193.789796a34.126964 34.126964 0 0 1-10.555989-25.186973c0-9.37399 3.583996-18.74698 9.98399-25.186974a36.429962 36.429962 0 0 1 50.372947 0l169.98382 167.423824L763.389735 330.220732a37.059961 37.059961 0 0 1 50.371947-1.732998 33.647965 33.647965 0 0 1 11.165988 25.186973 35.544963 35.544963 0 0 1-9.98399 24.575974v-0.04z m0 0",
28
26
  fill: "currentColor",
29
27
  "p-id": "1486"
30
28
  })
31
29
  ]),
32
- t("h1", null, "提交成功")
30
+ o("h1", null, "提交成功")
33
31
  ], -1)),
34
- t("div", f, [
35
- s(n, {
36
- onClick: e[0] || (e[0] = (i) => o())
32
+ o("div", _, [
33
+ r(n, {
34
+ onClick: t[0] || (t[0] = (i) => e())
37
35
  }, {
38
- default: r(() => e[2] || (e[2] = [
39
- l("返回")
40
- ])),
36
+ default: s(() => [...t[2] || (t[2] = [
37
+ l("返回", -1)
38
+ ])]),
41
39
  _: 1
42
40
  }),
43
- s(n, {
44
- onClick: e[1] || (e[1] = (i) => o())
41
+ r(n, {
42
+ onClick: t[1] || (t[1] = (i) => e())
45
43
  }, {
46
- default: r(() => e[3] || (e[3] = [
47
- l("关闭")
48
- ])),
44
+ default: s(() => [...t[3] || (t[3] = [
45
+ l("关闭", -1)
46
+ ])]),
49
47
  _: 1
50
48
  })
51
49
  ])
52
50
  ]);
53
51
  };
54
52
  }
55
- });
56
- const z = /* @__PURE__ */ v(x, [["__scopeId", "data-v-a18c2961"]]);
53
+ }), B = /* @__PURE__ */ f(w, [["__scopeId", "data-v-a18c2961"]]);
57
54
  export {
58
- z as default
55
+ B as default
59
56
  };