@jeecg/online 3.7.4 → 3.9.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AccountLoginForm-d2fed52f.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
- package/{AiModal-fbe4b68a.mjs → AiModal-5bec5218.mjs} +1 -1
- package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
- package/{AppLogin-cd2e2a87.mjs → AppLogin-786949d3.mjs} +9 -9
- package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
- package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
- package/{AppRegister-7117b66a.mjs → AppRegister-29a00a9d.mjs} +3 -3
- package/{AppTenant-5817729b.mjs → AppTenant-92890383.mjs} +2 -2
- package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-760064e5.mjs} +1 -1
- package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-78180aec.mjs} +50 -46
- package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-62c8e70c.mjs} +2 -2
- package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-c978c469.mjs} +2 -2
- package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-0647a06c.mjs} +1 -1
- package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-558283bc.mjs} +2 -2
- package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
- package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-ec5190d2.mjs} +5 -5
- package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-90a76886.mjs} +8 -8
- package/CgformAddressModal-690b8940.mjs +263 -0
- package/CgformCopyList-af9c99a4.mjs +260 -0
- package/{CgformModal-12951453.mjs → CgformModal-b04a492a.mjs} +73 -70
- package/CgreportAigcModal-8fdcbd31.mjs +211 -0
- package/{CgreportModal-bfeb93ed.mjs → CgreportModal-da62724c.mjs} +123 -119
- package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-7320189b.mjs} +2 -2
- package/{CodeFileListModal-71752603.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
- package/CodeFileViewModal-09053f3a.mjs +269 -0
- package/CodeGeneratorModal-aba790e3.mjs +298 -0
- package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
- package/{DBAttributeTable-eb25565c.mjs → DBAttributeTable-4a65c897.mjs} +176 -131
- package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
- package/{DetailForm-c127c27f.mjs → DetailForm-a2bf8c33.mjs} +165 -153
- package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-884f9464.mjs} +1 -1
- package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
- package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-95ca545c.mjs} +2 -2
- package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-742b0ee2.mjs} +17 -16
- package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
- package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-74d657c7.mjs} +2 -2
- package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
- package/{FileSelectModal-04490919.mjs → FileSelectModal-cf41604b.mjs} +1 -1
- package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-4a59ded1.mjs} +2 -2
- package/{IndexTable-79bddd5c.mjs → IndexTable-87d67830.mjs} +2 -2
- package/{JModalTip-192fafa1.mjs → JModalTip-5401f43d.mjs} +1 -1
- package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
- package/{LeftDepart-35d78655.mjs → LeftDepart-463bf432.mjs} +1 -1
- package/{LeftRole-9d88976d.mjs → LeftRole-1631d3d4.mjs} +1 -1
- package/{LeftUser-04c89aea.mjs → LeftUser-5774a5db.mjs} +1 -1
- package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
- package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
- package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
- package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
- package/OnlCgformErpList-35ad1d6e.mjs +528 -0
- package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-5093d438.mjs} +45 -42
- package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +108 -103
- package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +163 -155
- package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-d66d1261.mjs} +163 -155
- package/OnlineAutoList-fbba2a52.mjs +559 -0
- package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-68909692.mjs} +11 -10
- package/OnlineAutoTreeList-5153f09d.mjs +533 -0
- package/OnlineCustomModal-b5f8c799.mjs +247 -0
- package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
- package/OnlineForm-20604e4f.mjs +1080 -0
- package/OnlineFormDetail-719118b6.mjs +350 -0
- package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-5b675f48.mjs} +14 -12
- package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-91156bf2.mjs} +22 -19
- package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-fb810de6.mjs} +14 -12
- package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
- package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
- package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
- package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
- package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
- package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-c127ed50.mjs} +10 -9
- package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
- package/{OnlineTabForm-89389384.mjs → OnlineTabForm-827e7089.mjs} +26 -25
- package/OnlineTabFormDetail-0f96377e.mjs +329 -0
- package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-5703e2f1.mjs} +6 -6
- package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-15dc68ed.mjs} +52 -52
- package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
- package/{QueryTable-f0a88d78.mjs → QueryTable-26c9ee22.mjs} +2 -2
- package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
- package/{ShareAddView-f713c0a5.mjs → ShareAddView-0512e884.mjs} +25 -22
- package/{ShareEditView-691764ad.mjs → ShareEditView-b89dfbd3.mjs} +25 -22
- package/{ShareView-df344a8d.mjs → ShareView-faf1a0ab.mjs} +23 -20
- package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
- package/{SingleView-ad0287d6.mjs → SingleView-21d3a558.mjs} +18 -15
- package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
- package/{SuperQuery-2b293e3b.mjs → SuperQuery-c95f86ee.mjs} +69 -67
- package/TaskOpinionList-73ecb3c8.mjs +101 -0
- package/aiModal-b44fa135.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/button.data-fe45d43b.mjs +12 -0
- package/dayjs.min-eea532a3.mjs +301 -0
- package/{index-d6f9ada7.mjs → index-02f6dc7d.mjs} +2 -2
- package/{index-bef7fe2d.mjs → index-22a99f2e.mjs} +1 -1
- package/{index-181f8344.mjs → index-26940246.mjs} +3 -3
- package/{index-3c7392a4.mjs → index-30da2fc0.mjs} +136 -128
- package/index-391aec04.mjs +268 -0
- package/index-94b6319e.mjs +57 -0
- package/{index-93341e02.mjs → index-abbfd327.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-aaa30c8c.mjs +410 -0
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/useExtendComponent-ad499dff.mjs +4164 -0
- package/useListButton-308458cd.mjs +765 -0
- package/{useSchemas-f1819e54.mjs → useSchemas-b074f3a1.mjs} +72 -72
- package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
- package/CgformAddressModal-1b9cbe19.mjs +0 -260
- package/CgformCopyList-580bba0f.mjs +0 -252
- package/CodeFileViewModal-eb803769.mjs +0 -253
- package/CodeGeneratorModal-2fe1e920.mjs +0 -281
- package/OnlCgformErpList-8fd15fc1.mjs +0 -488
- package/OnlineAutoList-36ec0957.mjs +0 -513
- package/OnlineAutoTreeList-1cd718be.mjs +0 -523
- package/OnlineCustomModal-661ee850.mjs +0 -232
- package/OnlineForm-c1fb38eb.mjs +0 -1012
- package/OnlineFormDetail-50186870.mjs +0 -342
- package/OnlineTabFormDetail-72173ae4.mjs +0 -327
- package/ProcessOnlineForm-485b5679.mjs +0 -188
- package/README.md +0 -26
- package/index-3ccda826.mjs +0 -239
- package/index-f3683351.mjs +0 -57
- package/useCgformList-13c8aab7.mjs +0 -378
- package/useExtendComponent-3f5734ca.mjs +0 -4459
- package/useListButton-ee23874a.mjs +0 -719
- /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
|
|
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 {
|
|
32
|
+
import { d as Ht, O as Gt, e as zt, f as Qt, u as Yt, l as q, g as Xt, V as j, S as Zt, i as $t, j as ke } from "./useExtendComponent-ad499dff.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";
|
|
@@ -37,9 +37,9 @@ import { Loading as lo } from "/@/components/Loading";
|
|
|
37
37
|
import { getToken as no } from "/@/utils/auth";
|
|
38
38
|
import { PrinterOutlined as ao } from "@ant-design/icons-vue";
|
|
39
39
|
import { useModal as ro } from "/@/components/Modal";
|
|
40
|
-
import { u as io, G as so } from "./useCustomHook-
|
|
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-
|
|
42
|
+
import { _ as co } from "./index-94b6319e.mjs";
|
|
43
43
|
import "/@/components/Form/src/componentMap";
|
|
44
44
|
import "/@/utils/propTypes";
|
|
45
45
|
import "./constant-fa63bd66.mjs";
|
|
@@ -47,6 +47,7 @@ import "/@/utils/common/compUtils";
|
|
|
47
47
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
48
48
|
import "/@/utils/is";
|
|
49
49
|
import "/@/views/system/user/user.api";
|
|
50
|
+
import "./dayjs.min-eea532a3.mjs";
|
|
50
51
|
import "/@/store/modules/user";
|
|
51
52
|
import "/@/utils/desform/customExpression";
|
|
52
53
|
import "/@/store/modules/permission";
|
|
@@ -56,15 +57,15 @@ import "/@/hooks/system/useListPage";
|
|
|
56
57
|
import "vue-router";
|
|
57
58
|
import "/@/components/Form/src/utils/Area";
|
|
58
59
|
import "/@/components/Preview/index";
|
|
59
|
-
import "./LinkTableListPiece-
|
|
60
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
61
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
60
62
|
import "/@/api/common/api";
|
|
61
63
|
import "/@/assets/images/placeholderImage.png";
|
|
62
|
-
import "./OnlineSelectCascade-
|
|
63
|
-
import "./JModalTip-
|
|
64
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
65
|
+
import "./JModalTip-5401f43d.mjs";
|
|
64
66
|
import "ant-design-vue";
|
|
65
67
|
import "@vueuse/core";
|
|
66
68
|
import "/@/utils/cache";
|
|
67
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
68
69
|
const oe = {
|
|
69
70
|
optPre: "/online/cgform/api/form/",
|
|
70
71
|
urlButtonAction: "/online/cgform/api/doButton"
|
|
@@ -135,7 +136,7 @@ const oe = {
|
|
|
135
136
|
getSubOpenEditBtnCfg: Pe
|
|
136
137
|
} = zt(i), {
|
|
137
138
|
formSchemas: G,
|
|
138
|
-
defaultValueFields:
|
|
139
|
+
defaultValueFields: I,
|
|
139
140
|
changeDataIfArray2String: le,
|
|
140
141
|
tableName: R,
|
|
141
142
|
dbData: _,
|
|
@@ -151,8 +152,8 @@ const oe = {
|
|
|
151
152
|
wrapperCol: De,
|
|
152
153
|
labelWidth: Ee
|
|
153
154
|
} = Qt(i, a);
|
|
154
|
-
let { EnhanceJS: s, initCgEnhanceJs:
|
|
155
|
-
const { executeJsEnhanced:
|
|
155
|
+
let { EnhanceJS: s, initCgEnhanceJs: je } = Yt(f, !1);
|
|
156
|
+
const { executeJsEnhanced: Ie } = io({}, f), [Ne, { setProps: Le, validate: ne, resetFields: ae, clearValidate: Je, setFieldsValue: C, updateSchema: Q, getFieldsValue: Y, scrollToField: re }] = Wt({
|
|
156
157
|
schemas: G,
|
|
157
158
|
showActionButtonGroup: !1,
|
|
158
159
|
baseColProps: Ve,
|
|
@@ -197,14 +198,14 @@ const oe = {
|
|
|
197
198
|
}
|
|
198
199
|
function We() {
|
|
199
200
|
if (Te(m) === !1) {
|
|
200
|
-
let e = M(
|
|
201
|
+
let e = M(I[R.value]);
|
|
201
202
|
q(e, (t) => {
|
|
202
203
|
C(t);
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
function se(e, t) {
|
|
207
|
-
let o = M(
|
|
208
|
+
let o = M(I[e.key]);
|
|
208
209
|
q(o, (l) => {
|
|
209
210
|
const { row: n, target: d } = t;
|
|
210
211
|
let F = [{ rowKey: n.id, values: P({}, l) }];
|
|
@@ -231,7 +232,7 @@ const oe = {
|
|
|
231
232
|
N.value = o;
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
|
-
let He =
|
|
235
|
+
let He = jt(() => {
|
|
235
236
|
let e = G.value, t = [];
|
|
236
237
|
for (let o of e)
|
|
237
238
|
t.push(o.field);
|
|
@@ -249,7 +250,7 @@ const oe = {
|
|
|
249
250
|
}
|
|
250
251
|
function ze(e) {
|
|
251
252
|
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 =
|
|
253
|
+
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
254
|
let t = yield Xt(a);
|
|
254
255
|
t.$formValueChange = (o, l, n) => {
|
|
255
256
|
gt(o, l), n && C(n), Qe(o, l, n);
|
|
@@ -283,14 +284,14 @@ const oe = {
|
|
|
283
284
|
(l) => t(l),
|
|
284
285
|
({ errorFields: l }) => {
|
|
285
286
|
o({
|
|
286
|
-
code:
|
|
287
|
+
code: j,
|
|
287
288
|
key: R.value,
|
|
288
289
|
// 滚动到未通过校验的字段上
|
|
289
290
|
scrollToField: () => l[0] && re(l[0].name, { behavior: "smooth", block: "center" })
|
|
290
291
|
});
|
|
291
292
|
}
|
|
292
293
|
);
|
|
293
|
-
}).then((t) => (Object.assign(e, le(t)), ot())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t ===
|
|
294
|
+
}).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
295
|
}
|
|
295
296
|
function tt(e) {
|
|
296
297
|
if (e === R.value) {
|
|
@@ -322,11 +323,11 @@ const oe = {
|
|
|
322
323
|
let B = yield F.getAll();
|
|
323
324
|
o[d] = [], o[d].push(B);
|
|
324
325
|
} catch (B) {
|
|
325
|
-
return t(P({ code:
|
|
326
|
+
return t(P({ code: j, key: d }, B));
|
|
326
327
|
}
|
|
327
328
|
else {
|
|
328
329
|
if (yield F.fullValidateTable())
|
|
329
|
-
return t({ code:
|
|
330
|
+
return t({ code: j, key: d });
|
|
330
331
|
o[d] = F.getTableData();
|
|
331
332
|
}
|
|
332
333
|
}
|
|
@@ -388,7 +389,7 @@ const oe = {
|
|
|
388
389
|
}
|
|
389
390
|
return "";
|
|
390
391
|
}
|
|
391
|
-
|
|
392
|
+
It(
|
|
392
393
|
() => i.tabIndex,
|
|
393
394
|
(e) => {
|
|
394
395
|
L.value = e;
|
|
@@ -464,7 +465,7 @@ const oe = {
|
|
|
464
465
|
let o = e.toLocaleString().match(so);
|
|
465
466
|
if (o.length > 1) {
|
|
466
467
|
let l = o[1];
|
|
467
|
-
|
|
468
|
+
Ie(l);
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
471
|
function X(e, t) {
|
|
@@ -579,7 +580,7 @@ const oe = {
|
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
582
|
function kt() {
|
|
582
|
-
let e = Y(), t = M(
|
|
583
|
+
let e = Y(), t = M(I[R.value]);
|
|
583
584
|
q(
|
|
584
585
|
t,
|
|
585
586
|
(o) => {
|
|
@@ -597,7 +598,7 @@ const oe = {
|
|
|
597
598
|
if (l[0].relationType == 1)
|
|
598
599
|
h(e).executeFillRule();
|
|
599
600
|
else {
|
|
600
|
-
let n = M(
|
|
601
|
+
let n = M(I[e]), d = M(t.row);
|
|
601
602
|
q(
|
|
602
603
|
n,
|
|
603
604
|
(F) => {
|
|
@@ -808,7 +809,7 @@ function bo(i, u, r, a, A, S) {
|
|
|
808
809
|
}, null, 8, ["request", "id", "onRegister", "onSuccess"])
|
|
809
810
|
], 10, mo);
|
|
810
811
|
}
|
|
811
|
-
const
|
|
812
|
+
const ll = /* @__PURE__ */ co(fo, [["render", bo], ["__scopeId", "data-v-968b4ce3"]]);
|
|
812
813
|
export {
|
|
813
|
-
|
|
814
|
+
ll as default
|
|
814
815
|
};
|
|
@@ -0,0 +1,329 @@
|
|
|
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-a2bf8c33.mjs";
|
|
35
|
+
import fe from "./OnlineSubFormDetail-4d64e7be.mjs";
|
|
36
|
+
import { k as de } from "./useExtendComponent-ad499dff.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-94b6319e.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 "./dayjs.min-eea532a3.mjs";
|
|
59
|
+
import "/@/store/modules/user";
|
|
60
|
+
import "/@/utils/desform/customExpression";
|
|
61
|
+
import "/@/store/modules/permission";
|
|
62
|
+
import "/@/components/Table";
|
|
63
|
+
import "/@/hooks/system/useListPage";
|
|
64
|
+
import "vue-router";
|
|
65
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
66
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
67
|
+
import "/@/assets/images/placeholderImage.png";
|
|
68
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
69
|
+
import "./JModalTip-5401f43d.mjs";
|
|
70
|
+
import "ant-design-vue";
|
|
71
|
+
import "@vueuse/core";
|
|
72
|
+
const Te = {
|
|
73
|
+
name: "OnlineTabFormDetail",
|
|
74
|
+
components: {
|
|
75
|
+
DetailForm: ce,
|
|
76
|
+
Loading: me,
|
|
77
|
+
PrinterOutlined: pe,
|
|
78
|
+
OnlineSubFormDetail: fe
|
|
79
|
+
},
|
|
80
|
+
props: {
|
|
81
|
+
id: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: ""
|
|
84
|
+
},
|
|
85
|
+
formTemplate: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 1
|
|
88
|
+
},
|
|
89
|
+
disabled: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
isTree: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !1
|
|
96
|
+
},
|
|
97
|
+
pidField: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: ""
|
|
100
|
+
},
|
|
101
|
+
submitTip: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !0
|
|
104
|
+
},
|
|
105
|
+
showSub: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !0
|
|
108
|
+
},
|
|
109
|
+
themeTemplate: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
113
|
+
tabIndex: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: ""
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
emits: ["success", "rendered"],
|
|
119
|
+
setup(l, { emit: i }) {
|
|
120
|
+
const { createMessage: r } = te(), { getIsMobile: o } = _e(), b = s(""), y = s(!0), g = s(!1), c = s(1), m = s({}), f = s("auto"), k = s(340), S = s("0"), w = s(!o.value), x = s(ye());
|
|
121
|
+
oe(
|
|
122
|
+
() => l.tabIndex,
|
|
123
|
+
(e, t) => {
|
|
124
|
+
S.value = e, t && B();
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
immediate: !0
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
const a = ne({
|
|
131
|
+
reportPrintShow: 0,
|
|
132
|
+
reportPrintUrl: "",
|
|
133
|
+
joinQuery: 0,
|
|
134
|
+
modelFullscreen: 0,
|
|
135
|
+
modalMinWidth: ""
|
|
136
|
+
}), { detailFormSchemas: P, hasSubTable: A, subTabInfo: E, refMap: M, showStatus: F, subDataSource: C, createFormSchemas: R, formSpan: U } = de(l);
|
|
137
|
+
function j(e) {
|
|
138
|
+
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
139
|
+
e && (t = JSON.parse(e)), Object.keys(t).map((n) => {
|
|
140
|
+
a[n] = t[n];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function H(e) {
|
|
144
|
+
return T(this, null, function* () {
|
|
145
|
+
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);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function L(e, t) {
|
|
149
|
+
return T(this, null, function* () {
|
|
150
|
+
yield Q(t), D(!0);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function z(e) {
|
|
154
|
+
let t = `/online/cgform/api/detail/${l.id}/${e}`;
|
|
155
|
+
return new Promise((n, d) => {
|
|
156
|
+
be.get({ url: t }, { isTransformResponse: !1 }).then((O) => {
|
|
157
|
+
O.success ? n(O.result) : (d(), r.warning(O.message));
|
|
158
|
+
}).catch(() => {
|
|
159
|
+
d();
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
function D(e) {
|
|
164
|
+
Object.keys(F).map((t) => {
|
|
165
|
+
F[t] = e;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function B() {
|
|
169
|
+
D(!1), setTimeout(() => {
|
|
170
|
+
D(!0);
|
|
171
|
+
}, 300);
|
|
172
|
+
}
|
|
173
|
+
function Q(e) {
|
|
174
|
+
return T(this, null, function* () {
|
|
175
|
+
let t = yield z(e.id);
|
|
176
|
+
m.value = N({}, t), W(t);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function W(e) {
|
|
180
|
+
e || (e = {});
|
|
181
|
+
let t = Object.keys(C.value);
|
|
182
|
+
if (t && t.length > 0) {
|
|
183
|
+
let n = {};
|
|
184
|
+
for (let d of t)
|
|
185
|
+
n[d] = e[d] || [];
|
|
186
|
+
C.value = n;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function q(e) {
|
|
190
|
+
return "online_" + e + ":";
|
|
191
|
+
}
|
|
192
|
+
function G() {
|
|
193
|
+
let e = a.reportPrintUrl, t = m.value;
|
|
194
|
+
if (t) {
|
|
195
|
+
let n = t.id, d = se();
|
|
196
|
+
ue(e, n, d);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function X(e) {
|
|
200
|
+
let t = m.value, n = Y(t, e);
|
|
201
|
+
return n && (n = n + "__" + x.value), n;
|
|
202
|
+
}
|
|
203
|
+
function Y(e, t) {
|
|
204
|
+
if (e) {
|
|
205
|
+
let n = e[t];
|
|
206
|
+
return !n && n !== 0 && (n = e[t.toLowerCase()], !n && n !== 0 && (n = e[t.toUpperCase()])), n;
|
|
207
|
+
}
|
|
208
|
+
return "";
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
detailFormSchemas: P,
|
|
212
|
+
formData: m,
|
|
213
|
+
formSpan: U,
|
|
214
|
+
//主表
|
|
215
|
+
tableName: b,
|
|
216
|
+
loading: g,
|
|
217
|
+
//子表
|
|
218
|
+
hasSubTable: A,
|
|
219
|
+
subTabInfo: E,
|
|
220
|
+
subFormHeight: f,
|
|
221
|
+
subTableHeight: k,
|
|
222
|
+
refMap: M,
|
|
223
|
+
onTabChange: B,
|
|
224
|
+
//一对多子表
|
|
225
|
+
subDataSource: C,
|
|
226
|
+
getSubTableAuthPre: q,
|
|
227
|
+
//父组件调用
|
|
228
|
+
show: L,
|
|
229
|
+
createRootProperties: H,
|
|
230
|
+
// 扩展配置
|
|
231
|
+
onOpenReportPrint: G,
|
|
232
|
+
onlineExtConfigJson: a,
|
|
233
|
+
getSubTableForeignKeyValue: X,
|
|
234
|
+
showStatus: F,
|
|
235
|
+
ERP: ge,
|
|
236
|
+
TAB: he,
|
|
237
|
+
subActiveKey: S,
|
|
238
|
+
rowNumber: w
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
const ve = ["id"], ke = {
|
|
243
|
+
key: 0,
|
|
244
|
+
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
245
|
+
}, we = { key: 1 };
|
|
246
|
+
function xe(l, i, r, o, b, y) {
|
|
247
|
+
const g = p("PrinterOutlined"), c = p("detail-form"), m = p("a-tab-pane"), f = p("online-sub-form-detail"), k = p("JVxeTable"), S = p("a-spin"), w = p("a-tabs"), x = p("Loading");
|
|
248
|
+
return u(), h("div", {
|
|
249
|
+
id: o.tableName + "_form"
|
|
250
|
+
}, [
|
|
251
|
+
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (u(), h("div", ke, [
|
|
252
|
+
_(g, {
|
|
253
|
+
title: "打印",
|
|
254
|
+
onClick: o.onOpenReportPrint,
|
|
255
|
+
style: { "font-size": "16px" }
|
|
256
|
+
}, null, 8, ["onClick"])
|
|
257
|
+
])) : V("", !0),
|
|
258
|
+
_(w, {
|
|
259
|
+
class: "tabTheme",
|
|
260
|
+
onChange: o.onTabChange,
|
|
261
|
+
activeKey: o.subActiveKey,
|
|
262
|
+
"onUpdate:activeKey": i[0] || (i[0] = (a) => o.subActiveKey = a)
|
|
263
|
+
}, {
|
|
264
|
+
default: K(() => [
|
|
265
|
+
(u(), v(m, {
|
|
266
|
+
tab: "主表",
|
|
267
|
+
key: "-1"
|
|
268
|
+
}, {
|
|
269
|
+
default: K(() => [
|
|
270
|
+
_(c, {
|
|
271
|
+
schemas: o.detailFormSchemas,
|
|
272
|
+
data: o.formData,
|
|
273
|
+
span: o.formSpan
|
|
274
|
+
}, null, 8, ["schemas", "data", "span"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
})),
|
|
278
|
+
o.hasSubTable && r.showSub ? (u(!0), h(re, { key: 0 }, ie(o.subTabInfo, (a, P) => (u(), v(m, {
|
|
279
|
+
tab: a.describe,
|
|
280
|
+
key: P + "",
|
|
281
|
+
forceRender: !0
|
|
282
|
+
}, {
|
|
283
|
+
default: K(() => [
|
|
284
|
+
a.relationType == 1 ? (u(), h("div", {
|
|
285
|
+
key: 0,
|
|
286
|
+
style: ae({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
|
|
287
|
+
}, [
|
|
288
|
+
_(f, {
|
|
289
|
+
table: a.key,
|
|
290
|
+
"form-template": r.formTemplate,
|
|
291
|
+
"main-id": o.getSubTableForeignKeyValue(a.foreignKey),
|
|
292
|
+
properties: a.properties
|
|
293
|
+
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
294
|
+
], 4)) : (u(), h("div", we, [
|
|
295
|
+
o.showStatus[a.key] ? (u(), v(k, {
|
|
296
|
+
key: 0,
|
|
297
|
+
ref_for: !0,
|
|
298
|
+
ref: o.refMap[a.key],
|
|
299
|
+
toolbar: "",
|
|
300
|
+
"keep-source": "",
|
|
301
|
+
"row-number": o.rowNumber,
|
|
302
|
+
"row-selection": "",
|
|
303
|
+
height: o.subTableHeight,
|
|
304
|
+
disabled: !0,
|
|
305
|
+
columns: a.columns,
|
|
306
|
+
dataSource: o.subDataSource[a.key],
|
|
307
|
+
authPre: o.getSubTableAuthPre(a.key)
|
|
308
|
+
}, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (u(), v(S, {
|
|
309
|
+
key: 1,
|
|
310
|
+
spinning: !0
|
|
311
|
+
}))
|
|
312
|
+
]))
|
|
313
|
+
]),
|
|
314
|
+
_: 2
|
|
315
|
+
}, 1032, ["tab"]))), 128)) : V("", !0)
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["onChange", "activeKey"]),
|
|
319
|
+
_(x, {
|
|
320
|
+
loading: o.loading,
|
|
321
|
+
absolute: !1
|
|
322
|
+
}, null, 8, ["loading"]),
|
|
323
|
+
le(l.$slots, "bottom", {}, void 0, !0)
|
|
324
|
+
], 8, ve);
|
|
325
|
+
}
|
|
326
|
+
const ht = /* @__PURE__ */ Se(Te, [["render", xe], ["__scopeId", "data-v-f0b22224"]]);
|
|
327
|
+
export {
|
|
328
|
+
ht as default
|
|
329
|
+
};
|
|
@@ -12,12 +12,12 @@ var N = (i, u, s) => u in i ? Z(i, u, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, I = (i, u) => ee(i, te(u));
|
|
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
|
-
import { u as ce } from "./useTableSync-
|
|
16
|
-
import me from "./LinkTableConfigModal-
|
|
17
|
-
import be from "./LinkTableFieldConfigModal-
|
|
18
|
-
import pe from "./FieldExtendJsonModal-
|
|
15
|
+
import { u as ce } from "./useTableSync-dbfba20e.mjs";
|
|
16
|
+
import me from "./LinkTableConfigModal-1bab1423.mjs";
|
|
17
|
+
import be from "./LinkTableFieldConfigModal-49470140.mjs";
|
|
18
|
+
import pe from "./FieldExtendJsonModal-fe7f7902.mjs";
|
|
19
19
|
import { useModal as S } from "/@/components/Modal";
|
|
20
|
-
import { _ as ye } from "./index-
|
|
20
|
+
import { _ as ye } from "./index-94b6319e.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-
|
|
29
|
+
import "./SetSwitchOptions-a3428177.mjs";
|
|
30
30
|
import "/@/utils/is";
|
|
31
31
|
import "./constant-fa63bd66.mjs";
|
|
32
32
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|