@jeecg/online 3.8.2-beta → 3.9.0-beta2

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 (112) hide show
  1. package/{AccountLoginForm-79fa7b01.mjs → AccountLoginForm-634a76b1.mjs} +1 -1
  2. package/{AiModal-942b59ec.mjs → AiModal-204a2146.mjs} +1 -1
  3. package/{AppForgetPassword-d762e5b3.mjs → AppForgetPassword-f9a6258a.mjs} +2 -2
  4. package/{AppLogin-41372985.mjs → AppLogin-bf783eab.mjs} +9 -9
  5. package/{AppLoginHeader-3b6fa33d.mjs → AppLoginHeader-55594326.mjs} +1 -1
  6. package/{AppNameEmail-8dfbad62.mjs → AppNameEmail-54026ea8.mjs} +2 -2
  7. package/{AppRegister-433c54db.mjs → AppRegister-043efc45.mjs} +3 -3
  8. package/{AppTenant-e49dfa9b.mjs → AppTenant-c7bb8700.mjs} +2 -2
  9. package/{AppThirdForm-7b75b4fc.mjs → AppThirdForm-5e7e1144.mjs} +1 -1
  10. package/{AuthButtonConfig-a0f59cb5.mjs → AuthButtonConfig-4887be0d.mjs} +1 -1
  11. package/{AuthButtonTree-f0a5cc0b.mjs → AuthButtonTree-7e47b44b.mjs} +1 -1
  12. package/{AuthDataConfig-647c4a27.mjs → AuthDataConfig-3cd10ca2.mjs} +1 -1
  13. package/{AuthDataTree-b80a3ea5.mjs → AuthDataTree-714c259c.mjs} +1 -1
  14. package/{AuthFieldConfig-d36a1b2d.mjs → AuthFieldConfig-bb65f78b.mjs} +1 -1
  15. package/{AuthFieldTree-dba6af79.mjs → AuthFieldTree-3e38b12b.mjs} +1 -1
  16. package/{AuthManagerDrawer-5acbd451.mjs → AuthManagerDrawer-dee39b07.mjs} +4 -4
  17. package/{AuthSetterModal-95b5f616.mjs → AuthSetterModal-f176c221.mjs} +7 -7
  18. package/{CgformAddressModal-5d889870.mjs → CgformAddressModal-a3903b24.mjs} +1 -1
  19. package/{CgformCopyList-cc5f76cd.mjs → CgformCopyList-4be1000f.mjs} +37 -37
  20. package/{CgformModal-cebc698b.mjs → CgformModal-115710a6.mjs} +10 -10
  21. package/{CgreportAigcModal-d1e62385.mjs → CgreportAigcModal-3bef8abe.mjs} +1 -1
  22. package/{CgreportModal-2e4421e6.mjs → CgreportModal-0cc48587.mjs} +143 -139
  23. package/{CheckDictTable-8fb7299c.mjs → CheckDictTable-65157c48.mjs} +1 -1
  24. package/{CodeFileListModal-25fad54f.mjs → CodeFileListModal-305c1a62.mjs} +2 -2
  25. package/CodeFileViewModal-320d7acf.mjs +269 -0
  26. package/CodeGeneratorModal-2ba18bd1.mjs +298 -0
  27. package/{CustomButtonList-26490688.mjs → CustomButtonList-98db8fd2.mjs} +1 -1
  28. package/{DBAttributeTable-dea8ab11.mjs → DBAttributeTable-56701599.mjs} +40 -39
  29. package/{DbToOnlineModal-60317a16.mjs → DbToOnlineModal-a82cdeb5.mjs} +1 -1
  30. package/{DetailForm-b92a5e9d.mjs → DetailForm-7d4f630e.mjs} +163 -152
  31. package/{DropMenuItem-82213be6.mjs → DropMenuItem-b3a9cd6a.mjs} +1 -1
  32. package/{EnhanceJavaModal-6ebefc8b.mjs → EnhanceJavaModal-469e645e.mjs} +1 -1
  33. package/{EnhanceJsHistory-8d9b86ca.mjs → EnhanceJsHistory-bb6ba865.mjs} +1 -1
  34. package/{EnhanceJsModal-9439e6f8.mjs → EnhanceJsModal-b0527cbf.mjs} +2 -2
  35. package/{EnhanceSqlModal-ea4592bf.mjs → EnhanceSqlModal-c6e8bce1.mjs} +1 -1
  36. package/{ExtendConfigModal-f509db46.mjs → ExtendConfigModal-7b00b49a.mjs} +1 -1
  37. package/{FieldExtendJsonModal-73bab5b5.mjs → FieldExtendJsonModal-536e6d5b.mjs} +2 -2
  38. package/{FileSelectModal-49d6dade.mjs → FileSelectModal-eb026170.mjs} +1 -1
  39. package/{ForeignKeyTable-330963c1.mjs → ForeignKeyTable-97a5827f.mjs} +1 -1
  40. package/{IndexTable-c0478faa.mjs → IndexTable-4d350e4e.mjs} +1 -1
  41. package/{JModalTip-b1d19eaa.mjs → JModalTip-c3e6726c.mjs} +1 -1
  42. package/{JOnlineSearchSelect-97662e1b.mjs → JOnlineSearchSelect-ffeac61d.mjs} +1 -1
  43. package/{LeftDepart-4b1003f0.mjs → LeftDepart-a727aab7.mjs} +1 -1
  44. package/{LeftRole-8486ba4f.mjs → LeftRole-b533dcf6.mjs} +1 -1
  45. package/{LeftUser-09894a2f.mjs → LeftUser-aaac52cb.mjs} +1 -1
  46. package/{LinkTableConfigModal-cd0980e9.mjs → LinkTableConfigModal-4053b62d.mjs} +1 -1
  47. package/{LinkTableFieldConfigModal-f4106ab7.mjs → LinkTableFieldConfigModal-93552099.mjs} +1 -1
  48. package/{LinkTableListPiece-4187ad7d.mjs → LinkTableListPiece-0f4ca559.mjs} +1 -1
  49. package/{ModalFormDemo-4ec79769.mjs → ModalFormDemo-b8478356.mjs} +1 -1
  50. package/OnlCgformErpList-b0605798.mjs +527 -0
  51. package/{OnlCgformErpSubTable-421e2051.mjs → OnlCgformErpSubTable-89699bc9.mjs} +42 -41
  52. package/{OnlCgformInnerSubTable-9616ebf2.mjs → OnlCgformInnerSubTable-f2722f77.mjs} +105 -102
  53. package/{OnlCgformInnerTableList-5ed887e4.mjs → OnlCgformInnerTableList-992aa7e9.mjs} +20 -19
  54. package/{OnlCgformTabList-c03a1d0a.mjs → OnlCgformTabList-882a0e0c.mjs} +20 -19
  55. package/{OnlineAutoList-e5a61211.mjs → OnlineAutoList-caedb54a.mjs} +19 -18
  56. package/{OnlineAutoModal-38f2d522.mjs → OnlineAutoModal-a0d1a6b8.mjs} +7 -7
  57. package/{OnlineAutoTreeList-16fa962f.mjs → OnlineAutoTreeList-624106c1.mjs} +19 -18
  58. package/OnlineCustomModal-f4e17bed.mjs +246 -0
  59. package/{OnlineDetailModal-79085ba8.mjs → OnlineDetailModal-35394778.mjs} +44 -43
  60. package/OnlineForm-86b5966d.mjs +1079 -0
  61. package/OnlineFormDetail-4b3ad130.mjs +349 -0
  62. package/{OnlineFormUrlAdd-2e05ba0f.mjs → OnlineFormUrlAdd-708c91fb.mjs} +9 -9
  63. package/{OnlineFormUrlDetail-06b2d9e6.mjs → OnlineFormUrlDetail-5c8efaeb.mjs} +14 -13
  64. package/{OnlineFormUrlEdit-77ac4bba.mjs → OnlineFormUrlEdit-8f08474e.mjs} +9 -9
  65. package/{OnlineFormUrlSuccess-cb3f7be4.mjs → OnlineFormUrlSuccess-0c2431a4.mjs} +1 -1
  66. package/{OnlineQueryForm-528af6ed.mjs → OnlineQueryForm-3017a4ca.mjs} +119 -120
  67. package/{OnlineSearchFormItem-51eefaf4.mjs → OnlineSearchFormItem-1b54585f.mjs} +2 -2
  68. package/{OnlineSelectCascade-b218691c.mjs → OnlineSelectCascade-fab4426d.mjs} +61 -55
  69. package/{OnlineSubFormDetail-a1b7f33f.mjs → OnlineSubFormDetail-bbc48c3e.mjs} +48 -45
  70. package/{OnlineTabAutoModal-1c7c4ed2.mjs → OnlineTabAutoModal-b0f9fce8.mjs} +6 -6
  71. package/{OnlineTabDetailModal-7c45e727.mjs → OnlineTabDetailModal-401a26ad.mjs} +38 -37
  72. package/{OnlineTabForm-9682158f.mjs → OnlineTabForm-5c04cbc5.mjs} +22 -22
  73. package/OnlineTabFormDetail-2a28febf.mjs +328 -0
  74. package/{PageAttributeTable-21314341.mjs → PageAttributeTable-18aabf81.mjs} +5 -5
  75. package/{PhoneLoginForm-c3c16f16.mjs → PhoneLoginForm-4a9d7869.mjs} +18 -18
  76. package/ProcessOnlineForm-0ddce4fb.mjs +218 -0
  77. package/{QueryTable-413d1366.mjs → QueryTable-342fd89a.mjs} +1 -1
  78. package/{SetSwitchOptions-82fd6265.mjs → SetSwitchOptions-e1d5a6b4.mjs} +1 -1
  79. package/{ShareAddView-a2dba2ef.mjs → ShareAddView-a5154da3.mjs} +22 -21
  80. package/{ShareEditView-ecd590dc.mjs → ShareEditView-cf761cf3.mjs} +22 -21
  81. package/{ShareView-84f333e7.mjs → ShareView-3b2f5457.mjs} +20 -19
  82. package/{ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs → ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs} +2 -2
  83. package/{SingleView-d4f29169.mjs → SingleView-3cab20a9.mjs} +15 -14
  84. package/{SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs → SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs} +4 -4
  85. package/{SuperQuery-290f5080.mjs → SuperQuery-270b0968.mjs} +39 -39
  86. package/TaskOpinionList-60cf4080.mjs +13 -0
  87. package/{aiModal-6e338c79.mjs → aiModal-e7362c3f.mjs} +2 -2
  88. package/{index-bc0d747e.mjs → index-6d1a78e2.mjs} +2 -2
  89. package/index-740b2c4a.mjs +57 -0
  90. package/{index-7bab525f.mjs → index-8fd12d0f.mjs} +3 -3
  91. package/{index-7890e2b4.mjs → index-b5fe9bd4.mjs} +1 -1
  92. package/{index-9bebbfe5.mjs → index-b811abb9.mjs} +2 -2
  93. package/{index-c5737cbb.mjs → index-d95bb7c2.mjs} +4 -4
  94. package/{index-254a82b7.mjs → index-e2c3e6f3.mjs} +129 -123
  95. package/main.index.js +1 -1
  96. package/package.json +1 -1
  97. package/style.css +1 -1
  98. package/useCgformList-6d5547ff.mjs +410 -0
  99. package/{useExtendComponent-d1db211d.mjs → useExtendComponent-95ce0719.mjs} +405 -405
  100. package/{useListButton-7f9674a0.mjs → useListButton-73071548.mjs} +21 -21
  101. package/CodeFileViewModal-12299ab5.mjs +0 -253
  102. package/CodeGeneratorModal-791b1695.mjs +0 -281
  103. package/OnlCgformErpList-63089149.mjs +0 -498
  104. package/OnlineCustomModal-7e31297e.mjs +0 -232
  105. package/OnlineForm-0438f4bf.mjs +0 -1012
  106. package/OnlineFormDetail-76d243ed.mjs +0 -348
  107. package/OnlineTabFormDetail-b8650175.mjs +0 -327
  108. package/ProcessOnlineForm-d6113dec.mjs +0 -188
  109. package/README.md +0 -26
  110. package/index-30c0a14f.mjs +0 -57
  111. package/useCgformList-52631580.mjs +0 -395
  112. /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
@@ -27,9 +27,9 @@ var v = (i, u, r) => new Promise((a, A) => {
27
27
  y((r = r.apply(i, u)).next());
28
28
  });
29
29
  import { useMessage as Dt } from "/@/hooks/web/useMessage";
30
- import { ref as g, reactive as Et, computed as It, watch as jt, resolveComponent as T, openBlock as w, createElementBlock as J, normalizeClass as Nt, createVNode as V, withCtx as x, createBlock as U, Fragment as Lt, renderList as Jt, normalizeStyle as Ut, createElementVNode as _e, toDisplayString as Ce, createCommentVNode as ee, renderSlot as qt, unref as Te, nextTick as we, toRaw as M } from "vue";
30
+ import { ref as g, reactive as Et, computed as jt, watch as It, resolveComponent as T, openBlock as w, createElementBlock as J, normalizeClass as Nt, createVNode as V, withCtx as x, createBlock as U, Fragment as Lt, renderList as Jt, normalizeStyle as Ut, createElementVNode as _e, toDisplayString as Ce, createCommentVNode as ee, renderSlot as qt, unref as Te, nextTick as we, toRaw as M } from "vue";
31
31
  import { BasicForm as Kt, useForm as Wt } from "/@/components/Form/index";
32
- import { c as Ht, O as Gt, d as zt, e as Qt, u as Yt, l as q, g as Xt, V as I, S as Zt, f as $t, h as ke } from "./useExtendComponent-d1db211d.mjs";
32
+ import { e as Ht, O as Gt, f as zt, h as Qt, u as Yt, l as q, g as Xt, V as j, S as Zt, j as $t, k as ke } from "./useExtendComponent-95ce0719.mjs";
33
33
  import { defHttp as te } from "/@/utils/http/axios";
34
34
  import { pick as eo, omit as Oe } from "lodash-es";
35
35
  import { sleep as to, goJmReportViewPage as oo } from "/@/utils";
@@ -39,7 +39,7 @@ import { PrinterOutlined as ao } from "@ant-design/icons-vue";
39
39
  import { useModal as ro } from "/@/components/Modal";
40
40
  import { u as io, G as so } from "./useCustomHook-3a17a690.mjs";
41
41
  import { useAppInject as uo } from "/@/hooks/web/useAppInject";
42
- import { _ as co } from "./index-30c0a14f.mjs";
42
+ import { _ as co } from "./index-740b2c4a.mjs";
43
43
  import "/@/components/Form/src/componentMap";
44
44
  import "/@/utils/propTypes";
45
45
  import "./constant-fa63bd66.mjs";
@@ -56,15 +56,15 @@ import "/@/hooks/system/useListPage";
56
56
  import "vue-router";
57
57
  import "/@/components/Form/src/utils/Area";
58
58
  import "/@/components/Preview/index";
59
- import "./LinkTableListPiece-4187ad7d.mjs";
59
+ import "./LinkTableListPiece-0f4ca559.mjs";
60
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
60
61
  import "/@/api/common/api";
61
62
  import "/@/assets/images/placeholderImage.png";
62
- import "./OnlineSelectCascade-b218691c.mjs";
63
- import "./JModalTip-b1d19eaa.mjs";
63
+ import "./OnlineSelectCascade-fab4426d.mjs";
64
+ import "./JModalTip-c3e6726c.mjs";
64
65
  import "ant-design-vue";
65
66
  import "@vueuse/core";
66
67
  import "/@/utils/cache";
67
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
68
68
  const oe = {
69
69
  optPre: "/online/cgform/api/form/",
70
70
  urlButtonAction: "/online/cgform/api/doButton"
@@ -135,7 +135,7 @@ const oe = {
135
135
  getSubOpenEditBtnCfg: Pe
136
136
  } = zt(i), {
137
137
  formSchemas: G,
138
- defaultValueFields: j,
138
+ defaultValueFields: I,
139
139
  changeDataIfArray2String: le,
140
140
  tableName: R,
141
141
  dbData: _,
@@ -151,8 +151,8 @@ const oe = {
151
151
  wrapperCol: De,
152
152
  labelWidth: Ee
153
153
  } = Qt(i, a);
154
- let { EnhanceJS: s, initCgEnhanceJs: Ie } = Yt(f, !1);
155
- const { executeJsEnhanced: je } = io({}, f), [Ne, { setProps: Le, validate: ne, resetFields: ae, clearValidate: Je, setFieldsValue: C, updateSchema: Q, getFieldsValue: Y, scrollToField: re }] = Wt({
154
+ let { EnhanceJS: s, initCgEnhanceJs: je } = Yt(f, !1);
155
+ const { executeJsEnhanced: Ie } = io({}, f), [Ne, { setProps: Le, validate: ne, resetFields: ae, clearValidate: Je, setFieldsValue: C, updateSchema: Q, getFieldsValue: Y, scrollToField: re }] = Wt({
156
156
  schemas: G,
157
157
  showActionButtonGroup: !1,
158
158
  baseColProps: Ve,
@@ -197,14 +197,14 @@ const oe = {
197
197
  }
198
198
  function We() {
199
199
  if (Te(m) === !1) {
200
- let e = M(j[R.value]);
200
+ let e = M(I[R.value]);
201
201
  q(e, (t) => {
202
202
  C(t);
203
203
  });
204
204
  }
205
205
  }
206
206
  function se(e, t) {
207
- let o = M(j[e.key]);
207
+ let o = M(I[e.key]);
208
208
  q(o, (l) => {
209
209
  const { row: n, target: d } = t;
210
210
  let F = [{ rowKey: n.id, values: P({}, l) }];
@@ -231,7 +231,7 @@ const oe = {
231
231
  N.value = o;
232
232
  }
233
233
  }
234
- let He = It(() => {
234
+ let He = jt(() => {
235
235
  let e = G.value, t = [];
236
236
  for (let o of e)
237
237
  t.push(o.field);
@@ -249,7 +249,7 @@ const oe = {
249
249
  }
250
250
  function ze(e) {
251
251
  return v(this, null, function* () {
252
- k.value = e.head.tableType, R.value = e.head.tableName, A.value = e.head.tableType == 1, Xe(e.head.extConfigJson), xe(e.schema.properties, e.schema.required, Ae, O), s = Ie(e.enhanceJs), u("rendered", O);
252
+ k.value = e.head.tableType, R.value = e.head.tableName, A.value = e.head.tableType == 1, Xe(e.head.extConfigJson), xe(e.schema.properties, e.schema.required, Ae, O), s = je(e.enhanceJs), u("rendered", O);
253
253
  let t = yield Xt(a);
254
254
  t.$formValueChange = (o, l, n) => {
255
255
  gt(o, l), n && C(n), Qe(o, l, n);
@@ -283,14 +283,14 @@ const oe = {
283
283
  (l) => t(l),
284
284
  ({ errorFields: l }) => {
285
285
  o({
286
- code: I,
286
+ code: j,
287
287
  key: R.value,
288
288
  // 滚动到未通过校验的字段上
289
289
  scrollToField: () => l[0] && re(l[0].name, { behavior: "smooth", block: "center" })
290
290
  });
291
291
  }
292
292
  );
293
- }).then((t) => (Object.assign(e, le(t)), ot())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === I || (t == null ? void 0 : t.code) === I) && (r.warning("校验未通过"), t.key && (tt(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
293
+ }).then((t) => (Object.assign(e, le(t)), ot())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === j || (t == null ? void 0 : t.code) === j) && (r.warning("校验未通过"), t.key && (tt(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
294
294
  }
295
295
  function tt(e) {
296
296
  if (e === R.value) {
@@ -322,11 +322,11 @@ const oe = {
322
322
  let B = yield F.getAll();
323
323
  o[d] = [], o[d].push(B);
324
324
  } catch (B) {
325
- return t(P({ code: I, key: d }, B));
325
+ return t(P({ code: j, key: d }, B));
326
326
  }
327
327
  else {
328
328
  if (yield F.fullValidateTable())
329
- return t({ code: I, key: d });
329
+ return t({ code: j, key: d });
330
330
  o[d] = F.getTableData();
331
331
  }
332
332
  }
@@ -388,7 +388,7 @@ const oe = {
388
388
  }
389
389
  return "";
390
390
  }
391
- jt(
391
+ It(
392
392
  () => i.tabIndex,
393
393
  (e) => {
394
394
  L.value = e;
@@ -464,7 +464,7 @@ const oe = {
464
464
  let o = e.toLocaleString().match(so);
465
465
  if (o.length > 1) {
466
466
  let l = o[1];
467
- je(l);
467
+ Ie(l);
468
468
  }
469
469
  }
470
470
  function X(e, t) {
@@ -579,7 +579,7 @@ const oe = {
579
579
  }
580
580
  }
581
581
  function kt() {
582
- let e = Y(), t = M(j[R.value]);
582
+ let e = Y(), t = M(I[R.value]);
583
583
  q(
584
584
  t,
585
585
  (o) => {
@@ -597,7 +597,7 @@ const oe = {
597
597
  if (l[0].relationType == 1)
598
598
  h(e).executeFillRule();
599
599
  else {
600
- let n = M(j[e]), d = M(t.row);
600
+ let n = M(I[e]), d = M(t.row);
601
601
  q(
602
602
  n,
603
603
  (F) => {
@@ -0,0 +1,328 @@
1
+ var Z = Object.defineProperty;
2
+ var I = Object.getOwnPropertySymbols;
3
+ var $ = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
4
+ var J = (l, i, r) => i in l ? Z(l, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[i] = r, N = (l, i) => {
5
+ for (var r in i || (i = {}))
6
+ $.call(i, r) && J(l, r, i[r]);
7
+ if (I)
8
+ for (var r of I(i))
9
+ ee.call(i, r) && J(l, r, i[r]);
10
+ return l;
11
+ };
12
+ var T = (l, i, r) => new Promise((o, b) => {
13
+ var y = (m) => {
14
+ try {
15
+ c(r.next(m));
16
+ } catch (f) {
17
+ b(f);
18
+ }
19
+ }, g = (m) => {
20
+ try {
21
+ c(r.throw(m));
22
+ } catch (f) {
23
+ b(f);
24
+ }
25
+ }, c = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(y, g);
26
+ c((r = r.apply(l, i)).next());
27
+ });
28
+ import { useMessage as te } from "/@/hooks/web/useMessage";
29
+ import { ref as s, watch as oe, reactive as ne, resolveComponent as p, openBlock as u, createElementBlock as h, createVNode as _, createCommentVNode as V, withCtx as K, createBlock as v, Fragment as re, renderList as ie, normalizeStyle as ae, renderSlot as le } from "vue";
30
+ import { Loading as me } from "/@/components/Loading";
31
+ import { getToken as se } from "/@/utils/auth";
32
+ import { goJmReportViewPage as ue } from "/@/utils";
33
+ import { PrinterOutlined as pe } from "@ant-design/icons-vue";
34
+ import ce from "./DetailForm-7d4f630e.mjs";
35
+ import fe from "./OnlineSubFormDetail-bbc48c3e.mjs";
36
+ import { m as de } from "./useExtendComponent-95ce0719.mjs";
37
+ import { defHttp as be } from "/@/utils/http/axios";
38
+ import { E as ge, T as he } from "./constant-fa63bd66.mjs";
39
+ import { useAppInject as _e } from "/@/hooks/web/useAppInject";
40
+ import { buildShortUUID as ye } from "/@/utils/uuid";
41
+ import { _ as Se } from "./index-740b2c4a.mjs";
42
+ import "/@/utils/propTypes";
43
+ import "/@/utils/dict";
44
+ import "/@/utils/dict/JDictSelectUtil";
45
+ import "/@/utils/dict/index";
46
+ import "/@/api/common/api";
47
+ import "/@/components/Form/src/utils/Area";
48
+ import "/@/utils/common/compUtils";
49
+ import "/@/components/Preview/index";
50
+ import "/@/components/Markdown";
51
+ import "/@/components/Form/src/componentMap";
52
+ import "/@/components/Modal";
53
+ import "/@/components/Form/index";
54
+ import "lodash-es";
55
+ import "/@/components/Form/src/jeecg/components/JUpload";
56
+ import "/@/utils/is";
57
+ import "/@/views/system/user/user.api";
58
+ import "/@/store/modules/user";
59
+ import "/@/utils/desform/customExpression";
60
+ import "/@/store/modules/permission";
61
+ import "/@/components/Table";
62
+ import "/@/hooks/system/useListPage";
63
+ import "vue-router";
64
+ import "./LinkTableListPiece-0f4ca559.mjs";
65
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
66
+ import "/@/assets/images/placeholderImage.png";
67
+ import "./OnlineSelectCascade-fab4426d.mjs";
68
+ import "./JModalTip-c3e6726c.mjs";
69
+ import "ant-design-vue";
70
+ import "@vueuse/core";
71
+ const Te = {
72
+ name: "OnlineTabFormDetail",
73
+ components: {
74
+ DetailForm: ce,
75
+ Loading: me,
76
+ PrinterOutlined: pe,
77
+ OnlineSubFormDetail: fe
78
+ },
79
+ props: {
80
+ id: {
81
+ type: String,
82
+ default: ""
83
+ },
84
+ formTemplate: {
85
+ type: Number,
86
+ default: 1
87
+ },
88
+ disabled: {
89
+ type: Boolean,
90
+ default: !1
91
+ },
92
+ isTree: {
93
+ type: Boolean,
94
+ default: !1
95
+ },
96
+ pidField: {
97
+ type: String,
98
+ default: ""
99
+ },
100
+ submitTip: {
101
+ type: Boolean,
102
+ default: !0
103
+ },
104
+ showSub: {
105
+ type: Boolean,
106
+ default: !0
107
+ },
108
+ themeTemplate: {
109
+ type: String,
110
+ default: ""
111
+ },
112
+ tabIndex: {
113
+ type: String,
114
+ default: ""
115
+ }
116
+ },
117
+ emits: ["success", "rendered"],
118
+ setup(l, { emit: i }) {
119
+ const { createMessage: r } = te(), { getIsMobile: o } = _e(), b = s(""), y = s(!0), g = s(!1), c = s(1), m = s({}), f = s("auto"), w = s(340), S = s("0"), k = s(!o.value), x = s(ye());
120
+ oe(
121
+ () => l.tabIndex,
122
+ (e, t) => {
123
+ S.value = e, t && B();
124
+ },
125
+ {
126
+ immediate: !0
127
+ }
128
+ );
129
+ const a = ne({
130
+ reportPrintShow: 0,
131
+ reportPrintUrl: "",
132
+ joinQuery: 0,
133
+ modelFullscreen: 0,
134
+ modalMinWidth: ""
135
+ }), { detailFormSchemas: P, hasSubTable: A, subTabInfo: E, refMap: M, showStatus: F, subDataSource: C, createFormSchemas: R, formSpan: U } = de(l);
136
+ function j(e) {
137
+ let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
138
+ e && (t = JSON.parse(e)), Object.keys(t).map((n) => {
139
+ a[n] = t[n];
140
+ });
141
+ }
142
+ function H(e) {
143
+ return T(this, null, function* () {
144
+ c.value = e.head.tableType, b.value = e.head.tableName, y.value = e.head.tableType == 1, j(e.head.extConfigJson), R(e.schema.properties), i("rendered", a);
145
+ });
146
+ }
147
+ function L(e, t) {
148
+ return T(this, null, function* () {
149
+ yield Q(t), D(!0);
150
+ });
151
+ }
152
+ function z(e) {
153
+ let t = `/online/cgform/api/detail/${l.id}/${e}`;
154
+ return new Promise((n, d) => {
155
+ be.get({ url: t }, { isTransformResponse: !1 }).then((O) => {
156
+ O.success ? n(O.result) : (d(), r.warning(O.message));
157
+ }).catch(() => {
158
+ d();
159
+ });
160
+ });
161
+ }
162
+ function D(e) {
163
+ Object.keys(F).map((t) => {
164
+ F[t] = e;
165
+ });
166
+ }
167
+ function B() {
168
+ D(!1), setTimeout(() => {
169
+ D(!0);
170
+ }, 300);
171
+ }
172
+ function Q(e) {
173
+ return T(this, null, function* () {
174
+ let t = yield z(e.id);
175
+ m.value = N({}, t), W(t);
176
+ });
177
+ }
178
+ function W(e) {
179
+ e || (e = {});
180
+ let t = Object.keys(C.value);
181
+ if (t && t.length > 0) {
182
+ let n = {};
183
+ for (let d of t)
184
+ n[d] = e[d] || [];
185
+ C.value = n;
186
+ }
187
+ }
188
+ function q(e) {
189
+ return "online_" + e + ":";
190
+ }
191
+ function G() {
192
+ let e = a.reportPrintUrl, t = m.value;
193
+ if (t) {
194
+ let n = t.id, d = se();
195
+ ue(e, n, d);
196
+ }
197
+ }
198
+ function X(e) {
199
+ let t = m.value, n = Y(t, e);
200
+ return n && (n = n + "__" + x.value), n;
201
+ }
202
+ function Y(e, t) {
203
+ if (e) {
204
+ let n = e[t];
205
+ return !n && n !== 0 && (n = e[t.toLowerCase()], !n && n !== 0 && (n = e[t.toUpperCase()])), n;
206
+ }
207
+ return "";
208
+ }
209
+ return {
210
+ detailFormSchemas: P,
211
+ formData: m,
212
+ formSpan: U,
213
+ //主表
214
+ tableName: b,
215
+ loading: g,
216
+ //子表
217
+ hasSubTable: A,
218
+ subTabInfo: E,
219
+ subFormHeight: f,
220
+ subTableHeight: w,
221
+ refMap: M,
222
+ onTabChange: B,
223
+ //一对多子表
224
+ subDataSource: C,
225
+ getSubTableAuthPre: q,
226
+ //父组件调用
227
+ show: L,
228
+ createRootProperties: H,
229
+ // 扩展配置
230
+ onOpenReportPrint: G,
231
+ onlineExtConfigJson: a,
232
+ getSubTableForeignKeyValue: X,
233
+ showStatus: F,
234
+ ERP: ge,
235
+ TAB: he,
236
+ subActiveKey: S,
237
+ rowNumber: k
238
+ };
239
+ }
240
+ };
241
+ const ve = ["id"], we = {
242
+ key: 0,
243
+ style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
244
+ }, ke = { key: 1 };
245
+ function xe(l, i, r, o, b, y) {
246
+ const g = p("PrinterOutlined"), c = p("detail-form"), m = p("a-tab-pane"), f = p("online-sub-form-detail"), w = p("JVxeTable"), S = p("a-spin"), k = p("a-tabs"), x = p("Loading");
247
+ return u(), h("div", {
248
+ id: o.tableName + "_form"
249
+ }, [
250
+ o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (u(), h("div", we, [
251
+ _(g, {
252
+ title: "打印",
253
+ onClick: o.onOpenReportPrint,
254
+ style: { "font-size": "16px" }
255
+ }, null, 8, ["onClick"])
256
+ ])) : V("", !0),
257
+ _(k, {
258
+ class: "tabTheme",
259
+ onChange: o.onTabChange,
260
+ activeKey: o.subActiveKey,
261
+ "onUpdate:activeKey": i[0] || (i[0] = (a) => o.subActiveKey = a)
262
+ }, {
263
+ default: K(() => [
264
+ (u(), v(m, {
265
+ tab: "主表",
266
+ key: "-1"
267
+ }, {
268
+ default: K(() => [
269
+ _(c, {
270
+ schemas: o.detailFormSchemas,
271
+ data: o.formData,
272
+ span: o.formSpan
273
+ }, null, 8, ["schemas", "data", "span"])
274
+ ]),
275
+ _: 1
276
+ })),
277
+ o.hasSubTable && r.showSub ? (u(!0), h(re, { key: 0 }, ie(o.subTabInfo, (a, P) => (u(), v(m, {
278
+ tab: a.describe,
279
+ key: P + "",
280
+ forceRender: !0
281
+ }, {
282
+ default: K(() => [
283
+ a.relationType == 1 ? (u(), h("div", {
284
+ key: 0,
285
+ style: ae({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
286
+ }, [
287
+ _(f, {
288
+ table: a.key,
289
+ "form-template": r.formTemplate,
290
+ "main-id": o.getSubTableForeignKeyValue(a.foreignKey),
291
+ properties: a.properties
292
+ }, null, 8, ["table", "form-template", "main-id", "properties"])
293
+ ], 4)) : (u(), h("div", ke, [
294
+ o.showStatus[a.key] ? (u(), v(w, {
295
+ key: 0,
296
+ ref_for: !0,
297
+ ref: o.refMap[a.key],
298
+ toolbar: "",
299
+ "keep-source": "",
300
+ "row-number": o.rowNumber,
301
+ "row-selection": "",
302
+ height: o.subTableHeight,
303
+ disabled: !0,
304
+ columns: a.columns,
305
+ dataSource: o.subDataSource[a.key],
306
+ authPre: o.getSubTableAuthPre(a.key)
307
+ }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (u(), v(S, {
308
+ key: 1,
309
+ spinning: !0
310
+ }))
311
+ ]))
312
+ ]),
313
+ _: 2
314
+ }, 1032, ["tab"]))), 128)) : V("", !0)
315
+ ]),
316
+ _: 1
317
+ }, 8, ["onChange", "activeKey"]),
318
+ _(x, {
319
+ loading: o.loading,
320
+ absolute: !1
321
+ }, null, 8, ["loading"]),
322
+ le(l.$slots, "bottom", {}, void 0, !0)
323
+ ], 8, ve);
324
+ }
325
+ const gt = /* @__PURE__ */ Se(Te, [["render", xe], ["__scopeId", "data-v-f0b22224"]]);
326
+ export {
327
+ gt as default
328
+ };
@@ -13,11 +13,11 @@ var N = (i, u, s) => u in i ? Z(i, u, { enumerable: !0, configurable: !0, writab
13
13
  import { defineComponent as ae, ref as oe, resolveComponent as g, openBlock as O, createElementBlock as se, Fragment as de, createVNode as T, mergeProps as ne, withCtx as P, createBlock as ue, createTextVNode as re, createCommentVNode as fe } from "vue";
14
14
  import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
15
  import { u as ce } from "./useTableSync-dbfba20e.mjs";
16
- import me from "./LinkTableConfigModal-cd0980e9.mjs";
17
- import be from "./LinkTableFieldConfigModal-f4106ab7.mjs";
18
- import pe from "./FieldExtendJsonModal-73bab5b5.mjs";
16
+ import me from "./LinkTableConfigModal-4053b62d.mjs";
17
+ import be from "./LinkTableFieldConfigModal-93552099.mjs";
18
+ import pe from "./FieldExtendJsonModal-536e6d5b.mjs";
19
19
  import { useModal as S } from "/@/components/Modal";
20
- import { _ as ye } from "./index-30c0a14f.mjs";
20
+ import { _ as ye } from "./index-740b2c4a.mjs";
21
21
  import "./cgform.data-0ca62d09.mjs";
22
22
  import "/@/utils/dict";
23
23
  import "/@/utils/dict/JDictSelectUtil";
@@ -26,7 +26,7 @@ import "lodash-es";
26
26
  import "/@/components/Form/index";
27
27
  import "/@/utils/http/axios";
28
28
  import "/@/hooks/web/useMessage";
29
- import "./SetSwitchOptions-82fd6265.mjs";
29
+ import "./SetSwitchOptions-e1d5a6b4.mjs";
30
30
  import "/@/utils/is";
31
31
  import "./constant-fa63bd66.mjs";
32
32
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
@@ -1,29 +1,29 @@
1
1
  var _ = (M, x, d) => new Promise((t, s) => {
2
- var p = (a) => {
2
+ var p = (i) => {
3
3
  try {
4
- n(d.next(a));
4
+ n(d.next(i));
5
5
  } catch (u) {
6
6
  s(u);
7
7
  }
8
- }, g = (a) => {
8
+ }, g = (i) => {
9
9
  try {
10
- n(d.throw(a));
10
+ n(d.throw(i));
11
11
  } catch (u) {
12
12
  s(u);
13
13
  }
14
- }, n = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(p, g);
14
+ }, n = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(p, g);
15
15
  n((d = d.apply(M, x)).next());
16
16
  });
17
17
  import { defineComponent as ee, ref as r, reactive as A, computed as c, unref as o, resolveComponent as C, openBlock as h, createElementBlock as V, Fragment as oe, createVNode as m, withKeys as te, withCtx as k, createElementVNode as v, normalizeClass as I, toDisplayString as R, createBlock as H, createTextVNode as ne, createCommentVNode as le, toRaw as se } from "vue";
18
- import { useUserStore as ae } from "/@/store/modules/user";
19
- import { SmsEnum as ie } from "/@/views/sys/login/useLogin";
18
+ import { useUserStore as ie } from "/@/store/modules/user";
19
+ import { SmsEnum as ae } from "/@/views/sys/login/useLogin";
20
20
  import { useI18n as re } from "/@/hooks/web/useI18n";
21
21
  import { getCaptcha as ue } from "/@/api/sys/user";
22
22
  import { useMessage as K } from "/@/hooks/web/useMessage";
23
23
  import ce from "/@/components/jeecg/captcha/CaptchaModal.vue";
24
24
  import { useModal as me } from "/@/components/Modal";
25
25
  import { ExceptionEnum as de } from "/@/enums/exceptionEnum";
26
- import { _ as fe } from "./index-30c0a14f.mjs";
26
+ import { _ as fe } from "./index-740b2c4a.mjs";
27
27
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
28
  import "vue-router";
29
29
  const pe = /* @__PURE__ */ ee({
@@ -40,7 +40,7 @@ const pe = /* @__PURE__ */ ee({
40
40
  const n = A({
41
41
  mobile: "",
42
42
  sms: ""
43
- }), a = ae(), u = x;
43
+ }), i = ie(), u = x;
44
44
  r(!1);
45
45
  const q = c(() => n.mobile != "" || o(s) === "mobile" ? "current-active" : ""), $ = c(() => n.sms != "" || o(s) === "sms" ? "current-active" : ""), { notification: z, createErrorModal: ve } = K(), T = r(!0), f = r(60), b = r(null), E = r(), L = r(), G = c(() => N(t("sys.login.accountPlaceholder"))), j = c(() => N(t("sys.login.smsPlaceholder"))), J = c(() => ({
46
46
  mobile: o(G),
@@ -69,7 +69,7 @@ const pe = /* @__PURE__ */ ee({
69
69
  else
70
70
  try {
71
71
  p.value = !0;
72
- const { userInfo: e } = yield a.phoneLogin(
72
+ const { userInfo: e } = yield i.phoneLogin(
73
73
  se({
74
74
  mobile: l.mobile,
75
75
  captcha: l.sms,
@@ -97,7 +97,7 @@ const pe = /* @__PURE__ */ ee({
97
97
  d.warn(t("sys.login.mobilePlaceholder"));
98
98
  return;
99
99
  }
100
- (yield ue({ mobile: n.mobile, smsmode: ie.LOGIN }).catch((e) => {
100
+ (yield ue({ mobile: n.mobile, smsmode: ae.LOGIN }).catch((e) => {
101
101
  e.code === de.PHONE_SMS_FAIL_CODE && W(!0, {});
102
102
  })) && (o(b) || (f.value = 60, T.value = !1, b.value = setInterval(() => {
103
103
  o(f) > 0 && o(f) <= 60 ? f.value = f.value - 1 : (T.value = !0, clearInterval(o(b)), b.value = null);
@@ -120,7 +120,7 @@ const pe = /* @__PURE__ */ ee({
120
120
  default: k(() => [
121
121
  v("div", {
122
122
  class: I(["content-item", q.value]),
123
- onClick: e[1] || (e[1] = (i) => P("mobile"))
123
+ onClick: e[1] || (e[1] = (a) => P("mobile"))
124
124
  }, [
125
125
  m(D, { name: "mobile" }, {
126
126
  default: k(() => [
@@ -128,7 +128,7 @@ const pe = /* @__PURE__ */ ee({
128
128
  ref_key: "mobileRef",
129
129
  ref: L,
130
130
  value: n.mobile,
131
- "onUpdate:value": e[0] || (e[0] = (i) => n.mobile = i),
131
+ "onUpdate:value": e[0] || (e[0] = (a) => n.mobile = a),
132
132
  style: { height: "40px" },
133
133
  onBlur: B
134
134
  }, null, 8, ["value"]),
@@ -144,7 +144,7 @@ const pe = /* @__PURE__ */ ee({
144
144
  }, [
145
145
  m(D, {
146
146
  name: "sms",
147
- onClick: e[3] || (e[3] = (i) => P("sms"))
147
+ onClick: e[3] || (e[3] = (a) => P("sms"))
148
148
  }, {
149
149
  default: k(() => [
150
150
  m(y, {
@@ -152,7 +152,7 @@ const pe = /* @__PURE__ */ ee({
152
152
  ref: E,
153
153
  maxLength: 6,
154
154
  value: n.sms,
155
- "onUpdate:value": e[2] || (e[2] = (i) => n.sms = i),
155
+ "onUpdate:value": e[2] || (e[2] = (a) => n.sms = a),
156
156
  style: { height: "40px" },
157
157
  onBlur: B
158
158
  }, null, 8, ["value"]),
@@ -169,14 +169,14 @@ const pe = /* @__PURE__ */ ee({
169
169
  bordered: !1,
170
170
  onClick: O,
171
171
  value: w.value,
172
- "onUpdate:value": e[4] || (e[4] = (i) => w.value = i)
172
+ "onUpdate:value": e[4] || (e[4] = (a) => w.value = a)
173
173
  }, null, 8, ["value"])) : (h(), H(y, {
174
174
  key: 1,
175
175
  type: "button",
176
176
  class: "aui-code-line disabled-btn",
177
177
  bordered: !1,
178
178
  value: S.value,
179
- "onUpdate:value": e[5] || (e[5] = (i) => S.value = i)
179
+ "onUpdate:value": e[5] || (e[5] = (a) => S.value = a)
180
180
  }, null, 8, ["value"]))
181
181
  ], 2),
182
182
  v("div", null, [
@@ -208,7 +208,7 @@ const pe = /* @__PURE__ */ ee({
208
208
  };
209
209
  }
210
210
  });
211
- const Le = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-1d2a1349"]]);
211
+ const Le = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-1c0e5266"]]);
212
212
  export {
213
213
  Le as default
214
214
  };