@jeecg/online 3.6.2-GA → 3.7.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 (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-f142147a.mjs +0 -125
  86. package/AuthDataConfig-8e5c7b0c.mjs +0 -212
  87. package/AuthFieldConfig-e9a45f94.mjs +0 -139
  88. package/AuthManagerDrawer-5b558c23.mjs +0 -114
  89. package/AuthSetterModal-0cc557cf.mjs +0 -267
  90. package/CgreportModal-2eb9c9e1.mjs +0 -13
  91. package/CheckDictTable-27102064.mjs +0 -211
  92. package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
  93. package/DetailForm-cdeb54e3.mjs +0 -462
  94. package/EnhanceJsModal-6158804c.mjs +0 -311
  95. package/ExtendConfigModal-0564ef83.mjs +0 -111
  96. package/FieldExtendJsonModal-40d961c1.mjs +0 -219
  97. package/LinkTableConfigModal-5edaa08d.mjs +0 -230
  98. package/OnlCgformErpList-4c51cdb3.mjs +0 -454
  99. package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
  100. package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
  101. package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
  102. package/OnlCgformTabList-c59c7cc7.mjs +0 -395
  103. package/OnlineAutoList-a7a9de5d.mjs +0 -479
  104. package/OnlineAutoModal-a33f1a63.mjs +0 -207
  105. package/OnlineForm-fb3a2379.mjs +0 -750
  106. package/OnlineFormDetail-52b1c303.mjs +0 -297
  107. package/OnlineQueryForm-7c70734e.mjs +0 -386
  108. package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
  109. package/OnlineTabForm-29ca07f7.mjs +0 -766
  110. package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
  111. package/PageAttributeTable-d82946c5.mjs +0 -404
  112. package/QueryTable-d4599fca.mjs +0 -115
  113. package/SuperQuery-07162778.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-73993b18.mjs +0 -56
  116. package/useCgformList-b135794d.mjs +0 -400
  117. package/useExtendComponent-f4e29152.mjs +0 -3926
  118. package/useListButton-4dd33e7a.mjs +0 -676
@@ -0,0 +1,59 @@
1
+ import { defineComponent as i, resolveComponent as _, openBlock as d, createElementBlock as m, normalizeClass as u, createElementVNode as e, createVNode as c, withCtx as r, createTextVNode as a, pushScopeId as v, popScopeId as f } from "vue";
2
+ import { useRouter as w } from "vue-router";
3
+ import { _ as x } from "./index-173949bb.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ const C = (o) => (v("data-v-a18c2961"), o = o(), f(), o), g = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "contentArea" }, [
7
+ /* @__PURE__ */ e("svg", {
8
+ t: "1709697840296",
9
+ class: "icon",
10
+ viewBox: "0 0 1024 1024",
11
+ version: "1.1",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ "p-id": "1485"
14
+ }, [
15
+ /* @__PURE__ */ e("path", {
16
+ 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",
17
+ fill: "currentColor",
18
+ "p-id": "1486"
19
+ })
20
+ ]),
21
+ /* @__PURE__ */ e("h1", null, "提交成功")
22
+ ], -1)), S = { class: "btnArea" }, h = /* @__PURE__ */ i({
23
+ __name: "OnlineFormUrlSuccess",
24
+ setup(o) {
25
+ const l = w(), n = () => {
26
+ l.go(-1);
27
+ };
28
+ return (k, t) => {
29
+ const s = _("a-button");
30
+ return d(), m("div", {
31
+ class: u([["p-2"], "online-wrap"])
32
+ }, [
33
+ g,
34
+ e("div", S, [
35
+ c(s, {
36
+ onClick: t[0] || (t[0] = (p) => n())
37
+ }, {
38
+ default: r(() => [
39
+ a("返回")
40
+ ]),
41
+ _: 1
42
+ }),
43
+ c(s, {
44
+ onClick: t[1] || (t[1] = (p) => n())
45
+ }, {
46
+ default: r(() => [
47
+ a("关闭")
48
+ ]),
49
+ _: 1
50
+ })
51
+ ])
52
+ ]);
53
+ };
54
+ }
55
+ });
56
+ const F = /* @__PURE__ */ x(h, [["__scopeId", "data-v-a18c2961"]]);
57
+ export {
58
+ F as default
59
+ };
@@ -0,0 +1,444 @@
1
+ var he = Object.defineProperty, _e = Object.defineProperties;
2
+ var ye = Object.getOwnPropertyDescriptors;
3
+ var $ = Object.getOwnPropertySymbols;
4
+ var be = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable;
5
+ var K = (h, m, f) => m in h ? he(h, m, { enumerable: !0, configurable: !0, writable: !0, value: f }) : h[m] = f, j = (h, m) => {
6
+ for (var f in m || (m = {}))
7
+ be.call(m, f) && K(h, f, m[f]);
8
+ if ($)
9
+ for (var f of $(m))
10
+ we.call(m, f) && K(h, f, m[f]);
11
+ return h;
12
+ }, B = (h, m) => _e(h, ye(m));
13
+ var D = (h, m, f) => new Promise((u, b) => {
14
+ var N = (w) => {
15
+ try {
16
+ F(f.next(w));
17
+ } catch (k) {
18
+ b(k);
19
+ }
20
+ }, v = (w) => {
21
+ try {
22
+ F(f.throw(w));
23
+ } catch (k) {
24
+ b(k);
25
+ }
26
+ }, F = (w) => w.done ? u(w.value) : Promise.resolve(w.value).then(N, v);
27
+ F((f = f.apply(h, m)).next());
28
+ });
29
+ import { BasicForm as Se, useForm as ke } from "/@/components/Form/index";
30
+ import { ref as Y, reactive as Oe, watch as Q, toRaw as q, resolveComponent as V, openBlock as z, createElementBlock as X, createVNode as O, withCtx as x, mergeProps as Z, createElementVNode as Fe, createTextVNode as T, toDisplayString as De, createCommentVNode as ee } from "vue";
31
+ import { defHttp as Ye } from "/@/utils/http/axios";
32
+ import { useMessage as xe } from "/@/hooks/web/useMessage";
33
+ import { i as Pe, g as ve, m as te, n as Ve, F as U, o as Le, p as je, q as oe, j as P } from "./useExtendComponent-bb7cca20.mjs";
34
+ import { L as Ee } from "./constant-fa63bd66.mjs";
35
+ import Me from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
36
+ import { _ as Ne } from "./index-173949bb.mjs";
37
+ import "/@/components/Form/src/componentMap";
38
+ import "/@/utils/propTypes";
39
+ import "@ant-design/icons-vue";
40
+ import "/@/components/Modal";
41
+ import "lodash-es";
42
+ import "/@/components/Form/src/jeecg/components/JUpload";
43
+ import "/@/utils/is";
44
+ import "/@/views/system/user/user.api";
45
+ import "/@/store/modules/user";
46
+ import "/@/utils";
47
+ import "/@/utils/desform/customExpression";
48
+ import "/@/store/modules/permission";
49
+ import "/@/utils/dict/JDictSelectUtil";
50
+ import "/@/utils/common/compUtils";
51
+ import "/@/components/Table";
52
+ import "/@/hooks/system/useListPage";
53
+ import "vue-router";
54
+ import "/@/components/Form/src/utils/Area";
55
+ import "/@/components/Preview/index";
56
+ import "./LinkTableListPiece-2660d709.mjs";
57
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
+ import "/@/utils/auth";
59
+ import "/@/api/common/api";
60
+ import "/@/hooks/web/useAppInject";
61
+ import "/@/assets/images/placeholderImage.png";
62
+ import "./OnlineSelectCascade-471fcc76.mjs";
63
+ import "/@/components/Loading";
64
+ import "./JModalTip-4a83aaed.mjs";
65
+ import "ant-design-vue";
66
+ import "@vueuse/core";
67
+ const Ie = {
68
+ name: "OnlineQueryForm",
69
+ components: {
70
+ BasicForm: Se,
71
+ JRangeNumber: Me
72
+ },
73
+ props: {
74
+ id: {
75
+ type: String,
76
+ default: ""
77
+ }
78
+ },
79
+ emits: ["search", "loaded"],
80
+ setup(h, { emit: m }) {
81
+ const f = "/online/cgform/api/getQueryInfoVue3/", u = Y(null), b = Y([]), N = Y({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), v = Y(!1), F = Y(!1), w = Y({}), k = Y([]), { createMessage: I } = xe(), { linkTableCard2Select: J } = Pe(), C = Y(80), c = Oe({
82
+ config: {},
83
+ cache: {},
84
+ param: {},
85
+ status: !1
86
+ });
87
+ Q(
88
+ () => c.status,
89
+ (e) => D(this, null, function* () {
90
+ const { config: t, cache: o, param: a } = q(c);
91
+ let n = Object.assign({}, t, o, a);
92
+ yield ne(n);
93
+ }),
94
+ { immediate: !0, deep: !0 }
95
+ );
96
+ function y(e, t) {
97
+ return D(this, null, function* () {
98
+ c.cache = j({}, e), c.param = j({}, t), c.status = !c.status;
99
+ });
100
+ }
101
+ Q(
102
+ () => h.id,
103
+ (e) => {
104
+ e ? re() : b.value = [];
105
+ },
106
+ { immediate: !0 }
107
+ );
108
+ function S(e) {
109
+ return D(this, null, function* () {
110
+ var s, g;
111
+ let t = [], o = {}, a = Object.keys(e), n = -1;
112
+ for (let i of a) {
113
+ const r = e[i];
114
+ i === "sys_org_code" && (r.fieldExtendJson || (r.fieldExtendJson = '{"store":"orgCode"}'));
115
+ let p = r.view;
116
+ if (r.originView = r.view, te[p] && (r.view = te[p]), yield Ve(i, r, o), r.mode == "group" && (p == "date" || p == "datetime" || p == "number" || p == "time")) {
117
+ let L = U.createSlotFormSchema(i, r);
118
+ t.push(L);
119
+ } else if (r.view === Le) {
120
+ let L = je(r, i);
121
+ for (let M of L) {
122
+ let H = U.createFormSchema(M.key, M), W = oe(t, M.key);
123
+ W == -1 ? t.push(H) : t[W] = H;
124
+ }
125
+ } else if (oe(t, i) == -1) {
126
+ let M = U.createFormSchema(i, r);
127
+ t.push(M);
128
+ }
129
+ let _ = r.fieldExtendJson;
130
+ _ && (_ = JSON.parse(_), _.labelLength && (n > -1 ? n = _.labelLength > n ? _.labelLength : n : n = _.labelLength));
131
+ }
132
+ n == -1 ? n = Ee : t.forEach((i) => {
133
+ i.labelLength = n;
134
+ }), t.sort(function(i, r) {
135
+ return i.order - r.order;
136
+ });
137
+ let l = [];
138
+ t.length > 2 && (v.value = !0);
139
+ let d = [];
140
+ for (let i = 0; i < t.length; i++) {
141
+ let r = t[i];
142
+ r.setFormRef(u), r.noChange(), r.asSearchForm(), i > 1 && (d.push(r.field), r.isHidden());
143
+ let p = r.getFormItemSchema();
144
+ if (r.slot == "groupDatetime" && t.length <= 3 && (p.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), p.component === "JSwitch") {
145
+ const _ = (s = p.componentProps) != null ? s : {};
146
+ p.componentProps = B(j({}, _), { query: !0 });
147
+ }
148
+ if (J(p), p.component === "LinkTableSelect") {
149
+ let _ = (g = p.componentProps) != null ? g : {};
150
+ p.componentProps = B(j({}, _), { editBtnShow: !1 });
151
+ }
152
+ l.push(p);
153
+ }
154
+ k.value = d, b.value = l, c.config = j({}, o), c.status = !c.status, setTimeout(() => {
155
+ const i = n * 14 + n + 24;
156
+ C.value = i;
157
+ }, 0);
158
+ });
159
+ }
160
+ const E = (e) => {
161
+ const t = e.properties;
162
+ t && Object.entries(t).forEach(([o, a]) => {
163
+ const n = a;
164
+ if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
165
+ const l = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
166
+ l.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(l), n.view = "date";
167
+ }
168
+ });
169
+ };
170
+ function re() {
171
+ return D(this, null, function* () {
172
+ let e = yield ie();
173
+ E(e);
174
+ let t = se(e);
175
+ m("loaded", e);
176
+ let { formProperties: o, hasField: a } = ae(t, e);
177
+ if (a == !1) {
178
+ b.value = [];
179
+ return;
180
+ }
181
+ yield S(o);
182
+ });
183
+ }
184
+ function ne(e) {
185
+ return D(this, null, function* () {
186
+ yield ve(u), yield A(e), Object.keys(e).length > 0 && R();
187
+ });
188
+ }
189
+ function ae(e, t) {
190
+ const { searchFieldList: o, joinQuery: a, table: n } = t;
191
+ let l = !1, d = {};
192
+ return e && Object.keys(e).map((s) => {
193
+ o.indexOf(s) >= 0 && (a == !0 ? s.indexOf("@") < 0 ? (d[n + "@" + s] = e[s], l = !0) : (d[s] = e[s], l = !0) : s.indexOf("@") < 0 && (d[s] = e[s], l = !0));
194
+ }), {
195
+ formProperties: d,
196
+ hasField: l
197
+ };
198
+ }
199
+ function se(e) {
200
+ const { properties: t, searchFieldList: o, joinQuery: a, table: n } = e;
201
+ let l = {}, d = 1;
202
+ return Object.keys(t).map((s) => {
203
+ let g = t[s];
204
+ if (g.view == "table") {
205
+ let i = g.properties, r = d * 100;
206
+ Object.keys(i).map((p) => {
207
+ let _ = i[p];
208
+ _.order = r + Number(_.order);
209
+ let L = s + "@" + p;
210
+ l[L] = _;
211
+ }), d++;
212
+ } else
213
+ g.order = Number(g.order), l[s] = g;
214
+ }), l;
215
+ }
216
+ function ie() {
217
+ let e = `${f}${h.id}`;
218
+ return new Promise((t) => {
219
+ Ye.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
220
+ o.success ? t(o.result) : (t(!1), I.warning(o.message));
221
+ }).catch(() => {
222
+ I.warning("获取查询条件失败!"), t(!1);
223
+ });
224
+ });
225
+ }
226
+ const [le, { resetFields: ce, setFieldsValue: A, updateSchema: me, getFieldsValue: pe }] = ke({
227
+ name: "online-query-form",
228
+ schemas: b,
229
+ showActionButtonGroup: !1,
230
+ baseColProps: N,
231
+ autoSubmitOnEnter: !0,
232
+ labelWidth: C,
233
+ wrapperCol: null,
234
+ submitFunc() {
235
+ R();
236
+ }
237
+ /* labelCol: ONL_QUERY_LABEL_COL,
238
+ wrapperCol: ONL_QUERY_WRAPPER_COL*/
239
+ });
240
+ function R() {
241
+ let e = pe();
242
+ ue(e), fe(e);
243
+ let t = Object.assign({}, q(c.param), ge(e));
244
+ m("search", t, !0);
245
+ }
246
+ const fe = (e) => {
247
+ if (e) {
248
+ const t = b.value.filter((o) => ["groupTime", "groupDatetime", "groupNumber"].includes(o.slot));
249
+ t.length && Object.keys(e).forEach((o) => {
250
+ let a;
251
+ if (t.find((l) => l.field === o ? (a = o, !0) : !1)) {
252
+ const d = e[a].split(",");
253
+ e[`${a}_begin`] = d[0], e[`${a}_end`] = d[1], delete e[a];
254
+ }
255
+ });
256
+ }
257
+ }, ue = (e) => {
258
+ const t = b.value.filter((o) => {
259
+ var a;
260
+ return ((a = o.componentProps) == null ? void 0 : a.picker) && o.componentProps.picker != "default";
261
+ });
262
+ t.length && Object.keys(e).forEach((o) => {
263
+ let a;
264
+ const n = t.find((l) => l.field === o || `${l.field}_begin` === o || `${l.field}_end` === o ? (a = o, !0) : !1);
265
+ if (n) {
266
+ const l = e[a];
267
+ if (l) {
268
+ const d = (s, g, i) => {
269
+ const r = n.componentProps.picker;
270
+ r === "year" ? i ? e[g] = P(s).endOf("year").format("YYYY-MM-DD") : e[g] = P(s).startOf("year").format("YYYY-MM-DD") : r === "month" ? i ? e[g] = P(s).endOf("month").format("YYYY-MM-DD") : e[g] = P(s).startOf("month").format("YYYY-MM-DD") : r === "week" ? i ? e[g] = P(s).endOf("week").format("YYYY-MM-DD") : e[g] = P(s).startOf("week").format("YYYY-MM-DD") : r === "quarter" && (i ? e[g] = P(s).endOf("quarter").format("YYYY-MM-DD") : e[g] = P(s).startOf("quarter").format("YYYY-MM-DD"));
271
+ };
272
+ if ((n == null ? void 0 : n.slot) === "groupDate") {
273
+ const s = l.split(",");
274
+ d(s[0], `${a}_begin`, !1), d(s[1], `${a}_end`, !0), delete e[a];
275
+ } else
276
+ d(l, a, !1);
277
+ }
278
+ }
279
+ });
280
+ };
281
+ function G() {
282
+ return D(this, null, function* () {
283
+ yield ce();
284
+ const { config: e, param: t } = q(c);
285
+ let o = Object.assign({}, e, t);
286
+ return Object.keys(o).length > 0 && (yield A(o)), o;
287
+ });
288
+ }
289
+ function de() {
290
+ return D(this, null, function* () {
291
+ const e = yield G();
292
+ m("search", e, !1);
293
+ });
294
+ }
295
+ function ge(e) {
296
+ return Object.keys(e).map((t) => {
297
+ e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
298
+ }), e;
299
+ }
300
+ return Q(
301
+ () => F.value,
302
+ (e) => {
303
+ let t = k.value;
304
+ if (t && t.length > 0) {
305
+ let o = [];
306
+ for (let a of t)
307
+ o.push({
308
+ field: a,
309
+ show: e
310
+ });
311
+ me(o);
312
+ }
313
+ },
314
+ { immediate: !1 }
315
+ ), {
316
+ onlineQueryFormRef: u,
317
+ registerForm: le,
318
+ initDefaultValues: y,
319
+ toggleButtonShow: v,
320
+ toggleSearchStatus: F,
321
+ doSearch: R,
322
+ resetSearch: de,
323
+ queryParams: w,
324
+ formSchemas: b,
325
+ clearSearch: G,
326
+ getGroupDatePlaceholder: (e) => {
327
+ let t = ["开始日期", "结束日期"];
328
+ if (e != null && e.picker)
329
+ switch (e == null ? void 0 : e.picker) {
330
+ case "year":
331
+ t = ["开始年份", "结束年份"];
332
+ break;
333
+ case "month":
334
+ t = ["开始月份", "结束月份"];
335
+ break;
336
+ case "week":
337
+ t = ["开始周", "结束周"];
338
+ break;
339
+ case "quarter":
340
+ t = ["开始季度", "结束季度"];
341
+ break;
342
+ default:
343
+ t = ["开始日期", "结束日期"];
344
+ }
345
+ return t;
346
+ }
347
+ };
348
+ }
349
+ }, Ce = {
350
+ key: 0,
351
+ class: "jeecg-basic-table-form-container online-query-form p-0"
352
+ }, Je = {
353
+ style: { float: "left", overflow: "hidden", "margin-left": "10px" },
354
+ class: "table-page-search-submitButtons"
355
+ };
356
+ function Re(h, m, f, u, b, N) {
357
+ const v = V("a-range-picker"), F = V("a-time-range-picker"), w = V("JRangeNumber"), k = V("a-button"), I = V("a-icon"), J = V("a-col"), C = V("BasicForm");
358
+ return u.formSchemas && u.formSchemas.length > 0 ? (z(), X("div", Ce, [
359
+ O(C, {
360
+ ref: "onlineQueryFormRef",
361
+ onRegister: u.registerForm
362
+ }, {
363
+ groupDate: x(({ model: c, field: y, schema: S }) => [
364
+ O(v, Z({
365
+ style: { width: "100%" },
366
+ value: c[y],
367
+ "onUpdate:value": (E) => c[y] = E
368
+ }, S.componentProps, {
369
+ placeholder: u.getGroupDatePlaceholder(S.componentProps)
370
+ }), null, 16, ["value", "onUpdate:value", "placeholder"])
371
+ ]),
372
+ groupDatetime: x(({ model: c, field: y }) => [
373
+ O(v, {
374
+ style: { width: "100%" },
375
+ value: c[y],
376
+ "onUpdate:value": (S) => c[y] = S,
377
+ "show-time": !0
378
+ }, null, 8, ["value", "onUpdate:value"])
379
+ ]),
380
+ groupTime: x(({ model: c, field: y }) => [
381
+ O(F, {
382
+ style: { width: "100%" },
383
+ value: c[y],
384
+ "onUpdate:value": (S) => c[y] = S,
385
+ "value-format": "HH:mm:ss"
386
+ }, null, 8, ["value", "onUpdate:value"])
387
+ ]),
388
+ groupNumber: x(({ model: c, field: y, schema: S }) => [
389
+ O(w, Z({
390
+ value: c[y],
391
+ "onUpdate:value": (E) => c[y] = E
392
+ }, S.componentProps), null, 16, ["value", "onUpdate:value"])
393
+ ]),
394
+ formFooter: x(() => [
395
+ O(J, {
396
+ md: 6,
397
+ sm: 8
398
+ }, {
399
+ default: x(() => [
400
+ Fe("span", Je, [
401
+ O(k, {
402
+ preIcon: "ant-design:search",
403
+ type: "primary",
404
+ onClick: u.doSearch
405
+ }, {
406
+ default: x(() => [
407
+ T("查询")
408
+ ]),
409
+ _: 1
410
+ }, 8, ["onClick"]),
411
+ O(k, {
412
+ preIcon: "ant-design:reload",
413
+ type: "primary",
414
+ onClick: u.resetSearch,
415
+ style: { "margin-left": "8px" }
416
+ }, {
417
+ default: x(() => [
418
+ T("重置")
419
+ ]),
420
+ _: 1
421
+ }, 8, ["onClick"]),
422
+ u.toggleButtonShow ? (z(), X("a", {
423
+ key: 0,
424
+ onClick: m[0] || (m[0] = (c) => u.toggleSearchStatus = !u.toggleSearchStatus),
425
+ style: { "margin-left": "8px" }
426
+ }, [
427
+ T(De(u.toggleSearchStatus ? "收起" : "展开") + " ", 1),
428
+ O(I, {
429
+ type: u.toggleSearchStatus ? "up" : "down"
430
+ }, null, 8, ["type"])
431
+ ])) : ee("", !0)
432
+ ])
433
+ ]),
434
+ _: 1
435
+ })
436
+ ]),
437
+ _: 1
438
+ }, 8, ["onRegister"])
439
+ ])) : ee("", !0);
440
+ }
441
+ const Yt = /* @__PURE__ */ Ne(Ie, [["render", Re], ["__scopeId", "data-v-e39ff2e6"]]);
442
+ export {
443
+ Yt as default
444
+ };
@@ -11,8 +11,8 @@ var N = (e, l, i) => l in e ? z(e, l, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  import { defineComponent as Q, ref as M, watch as C, useCssVars as R, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as X, withCtx as b, createElementVNode as w, toDisplayString as K, createElementBlock as p, Fragment as m, createVNode as c, renderList as Z, createTextVNode as _, mergeProps as $, pushScopeId as x, popScopeId as ee } from "vue";
13
13
  import { JDictSelectTag as le, JTreeSelect as te, JCategorySelect as ae, JSelectUser as ue, JSelectUserByDept as ne, JSelectDept as ie, JPopup as oe, JAreaLinkage as de, JAreaSelect as re, JSelectMultiple as se } from "/@/components/Form";
14
- import pe from "./JOnlineSearchSelect-9ea89e13.mjs";
15
- import { _ as me } from "./index-73993b18.mjs";
14
+ import pe from "./JOnlineSearchSelect-34a37ec9.mjs";
15
+ import { _ as me } from "./index-173949bb.mjs";
16
16
  import "@vueuse/core";
17
17
  import "/@/utils/http/axios";
18
18
  import "/@/hooks/web/useMessage";
@@ -17,7 +17,7 @@ var S = (t, a, o) => new Promise((d, l) => {
17
17
  import { defineComponent as w, ref as p, watch as y, resolveComponent as v, openBlock as _, createBlock as C, withCtx as x, createElementBlock as T, Fragment as k, renderList as B, createElementVNode as E, toDisplayString as N } from "vue";
18
18
  import { defHttp as F } from "/@/utils/http/axios";
19
19
  import { useMessage as V } from "/@/hooks/web/useMessage";
20
- import { _ as L } from "./index-73993b18.mjs";
20
+ import { _ as L } from "./index-173949bb.mjs";
21
21
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
22
22
  import "vue-router";
23
23
  const O = "/online/cgform/api/querySelectOptions", P = w({
@@ -2,14 +2,14 @@ var g = (t, i, r) => new Promise((o, m) => {
2
2
  var c = (e) => {
3
3
  try {
4
4
  n(r.next(e));
5
- } catch (s) {
6
- m(s);
5
+ } catch (p) {
6
+ m(p);
7
7
  }
8
8
  }, a = (e) => {
9
9
  try {
10
10
  n(r.throw(e));
11
- } catch (s) {
12
- m(s);
11
+ } catch (p) {
12
+ m(p);
13
13
  }
14
14
  }, n = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(c, a);
15
15
  n((r = r.apply(t, i)).next());
@@ -18,17 +18,18 @@ import { useMessage as F } from "/@/hooks/web/useMessage";
18
18
  import { ref as u, watch as d, resolveComponent as S, openBlock as v, createBlock as D } from "vue";
19
19
  import { BasicForm as w } from "/@/components/Form/index";
20
20
  import { defHttp as y } from "/@/utils/http/axios";
21
- import { i as $, g as x } from "./useExtendComponent-f4e29152.mjs";
22
- import { Loading as B } from "/@/components/Loading";
23
- import I from "./DetailForm-cdeb54e3.mjs";
24
- import { _ as O } from "./index-73993b18.mjs";
21
+ import { k as $, g as k } from "./useExtendComponent-bb7cca20.mjs";
22
+ import { Loading as x } from "/@/components/Loading";
23
+ import B from "./DetailForm-4aa2570b.mjs";
24
+ import { _ as I } from "./index-173949bb.mjs";
25
25
  import "/@/components/Form/src/componentMap";
26
26
  import "/@/utils/propTypes";
27
27
  import "@ant-design/icons-vue";
28
28
  import "/@/components/Modal";
29
29
  import "lodash-es";
30
- import "./constant-754f1a9d.mjs";
30
+ import "./constant-fa63bd66.mjs";
31
31
  import "/@/components/Form/src/jeecg/components/JUpload";
32
+ import "/@/utils/is";
32
33
  import "/@/views/system/user/user.api";
33
34
  import "/@/store/modules/user";
34
35
  import "/@/utils";
@@ -41,24 +42,25 @@ import "/@/hooks/system/useListPage";
41
42
  import "vue-router";
42
43
  import "/@/components/Form/src/utils/Area";
43
44
  import "/@/components/Preview/index";
44
- import "./LinkTableListPiece-46e8af51.mjs";
45
- import "./OnlineSelectCascade-abc345f9.mjs";
45
+ import "./LinkTableListPiece-2660d709.mjs";
46
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
46
47
  import "/@/utils/auth";
47
- import "./JModalTip-0413ad6a.mjs";
48
+ import "/@/api/common/api";
48
49
  import "/@/hooks/web/useAppInject";
50
+ import "/@/assets/images/placeholderImage.png";
51
+ import "./OnlineSelectCascade-471fcc76.mjs";
52
+ import "./JModalTip-4a83aaed.mjs";
49
53
  import "ant-design-vue";
50
54
  import "@vueuse/core";
51
55
  import "/@/utils/dict";
52
56
  import "/@/utils/dict/index";
53
- import "/@/api/common/api";
54
57
  import "/@/components/Markdown";
55
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
56
- const R = "/online/cgform/api/subform", T = {
58
+ const O = "/online/cgform/api/subform", R = {
57
59
  name: "OnlineSubFormDetail",
58
60
  components: {
59
61
  BasicForm: w,
60
- Loading: B,
61
- DetailForm: I
62
+ Loading: x,
63
+ DetailForm: B
62
64
  },
63
65
  props: {
64
66
  properties: {
@@ -104,22 +106,22 @@ const R = "/online/cgform/api/subform", T = {
104
106
  );
105
107
  function e() {
106
108
  return g(this, null, function* () {
107
- yield x(i), m.value = {};
108
- const { table: p, mainId: l } = t;
109
- if (!p || !l)
109
+ yield k(i), m.value = {};
110
+ const { table: s, mainId: l } = t;
111
+ if (!s || !l)
110
112
  return;
111
- let f = (yield s(p, l)) || {};
113
+ let f = (yield p(s, l)) || {};
112
114
  m.value = f;
113
115
  });
114
116
  }
115
- function s(p, l) {
116
- let f = `${R}/${p}/${l}`;
117
+ function p(s, l) {
118
+ let f = `${O}/${s}/${l}`;
117
119
  return new Promise((_, h) => {
118
120
  y.get({ url: f }, { isTransformResponse: !1 }).then((b) => {
119
121
  b.success ? _(b.result) : h();
120
122
  });
121
123
  }).catch(() => {
122
- r.warning("子表获取数据失败:" + p);
124
+ r.warning("子表获取数据失败:" + s);
123
125
  });
124
126
  }
125
127
  return {
@@ -129,7 +131,7 @@ const R = "/online/cgform/api/subform", T = {
129
131
  };
130
132
  }
131
133
  };
132
- function k(t, i, r, o, m, c) {
134
+ function T(t, i, r, o, m, c) {
133
135
  const a = S("detail-form");
134
136
  return v(), D(a, {
135
137
  schemas: o.detailFormSchemas,
@@ -137,7 +139,7 @@ function k(t, i, r, o, m, c) {
137
139
  span: o.formSpan
138
140
  }, null, 8, ["schemas", "data", "span"]);
139
141
  }
140
- const Ft = /* @__PURE__ */ O(T, [["render", k]]);
142
+ const vt = /* @__PURE__ */ I(R, [["render", T]]);
141
143
  export {
142
- Ft as default
144
+ vt as default
143
145
  };