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