@jeecg/online 3.6.0-beta → 3.6.2-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/{AuthButtonConfig-b6a674fa.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-09e57bc4.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-6e7e61ec.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-e83286c5.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-f1ec2708.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-bb72e21f.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-28a2d108.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-2990d553.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-36a4cbf0.mjs → CgformCopyList-14b76108.mjs} +39 -37
- package/{CgformModal-7399a5ac.mjs → CgformModal-eccfc38e.mjs} +90 -90
- package/{CgreportModal-2eb9c9e1.mjs → CgreportModal-2065f5a9.mjs} +1 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +131 -131
- package/{CheckDictTable-3a8a54b3.mjs → CheckDictTable-134cbb83.mjs} +1 -1
- package/{CodeFileListModal-72f0d3bb.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-9eb88c47.mjs → CodeFileViewModal-373e8058.mjs} +1 -1
- package/{CodeGeneratorModal-a89958f5.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -5
- package/{CustomButtonList-c44aec5a.mjs → CustomButtonList-02e3d897.mjs} +1 -1
- package/{DBAttributeTable-7d285e8d.mjs → DBAttributeTable-370de07b.mjs} +1 -1
- package/{DbToOnlineModal-d23cbeb1.mjs → DbToOnlineModal-9f13956f.mjs} +1 -1
- package/{DetailForm-2901d215.mjs → DetailForm-424638eb.mjs} +32 -31
- package/{EnhanceJavaModal-153899a9.mjs → EnhanceJavaModal-f63aa2d3.mjs} +1 -1
- package/{EnhanceJsHistory-7f5db3b1.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/{EnhanceJsModal-c2fb75b8.mjs → EnhanceJsModal-05c73a59.mjs} +2 -2
- package/{EnhanceSqlModal-965e9b0a.mjs → EnhanceSqlModal-5e4ae84f.mjs} +1 -1
- package/{ExtendConfigModal-8f08466f.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/{FieldExtendJsonModal-adfcf5a7.mjs → FieldExtendJsonModal-a70a9ccd.mjs} +1 -1
- package/{FileSelectModal-432d4521.mjs → FileSelectModal-9a02560b.mjs} +1 -1
- package/{ForeignKeyTable-faab7ccf.mjs → ForeignKeyTable-6a843c4b.mjs} +1 -1
- package/{IndexTable-0a2d3718.mjs → IndexTable-f8af9d44.mjs} +1 -1
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-7e908492.mjs → JOnlineSearchSelect-c287af12.mjs} +1 -1
- package/{LeftDepart-54f245b3.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-c138f892.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-9c812f8a.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-c2c5c7e6.mjs → LinkTableConfigModal-d4fbdef2.mjs} +1 -1
- package/{LinkTableFieldConfigModal-a3553b1f.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +1 -1
- package/{LinkTableListPiece-7f793b08.mjs → LinkTableListPiece-8499a318.mjs} +1 -1
- package/{ModalFormDemo-65685b0e.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/{OnlCgformErpList-52c87ed3.mjs → OnlCgformErpList-db45e22b.mjs} +59 -54
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/{OnlCgformInnerSubTable-f0727b8f.mjs → OnlCgformInnerSubTable-fbca73e0.mjs} +46 -41
- package/{OnlCgformInnerTableList-9f89c173.mjs → OnlCgformInnerTableList-782eaf04.mjs} +156 -142
- package/{OnlCgformTabList-15516315.mjs → OnlCgformTabList-a9e1e36a.mjs} +47 -42
- package/{OnlineAutoList-63a0224f.mjs → OnlineAutoList-0583a910.mjs} +185 -180
- package/{OnlineAutoModal-ffe19c3f.mjs → OnlineAutoModal-510991eb.mjs} +14 -13
- package/{OnlineAutoTreeList-317c7105.mjs → OnlineAutoTreeList-89265688.mjs} +24 -19
- package/{OnlineCustomModal-3939ce78.mjs → OnlineCustomModal-518ad33c.mjs} +9 -8
- package/{OnlineDetailModal-bfb1375f.mjs → OnlineDetailModal-9675390d.mjs} +13 -12
- package/{OnlineForm-069f6092.mjs → OnlineForm-1fa2d893.mjs} +8 -7
- package/{OnlineFormDetail-ad5735fb.mjs → OnlineFormDetail-0e7294ca.mjs} +10 -9
- package/{OnlineQueryForm-0771c80f.mjs → OnlineQueryForm-1bfc8320.mjs} +8 -7
- package/{OnlineSearchFormItem-0db5834f.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +2 -2
- package/{OnlineSelectCascade-a05c30f4.mjs → OnlineSelectCascade-4265c95d.mjs} +1 -1
- package/{OnlineSubFormDetail-583d01eb.mjs → OnlineSubFormDetail-f0d2c016.mjs} +19 -18
- package/{OnlineTabAutoModal-747e071d.mjs → OnlineTabAutoModal-6f636ee2.mjs} +20 -19
- package/{OnlineTabDetailModal-887f0174.mjs → OnlineTabDetailModal-7356d3a8.mjs} +36 -35
- package/{OnlineTabForm-b1dcd4b4.mjs → OnlineTabForm-512d3951.mjs} +132 -131
- package/{OnlineTabFormDetail-8e494a96.mjs → OnlineTabFormDetail-5a70219d.mjs} +36 -35
- package/{PageAttributeTable-5966b201.mjs → PageAttributeTable-965dc58e.mjs} +4 -4
- package/{ProcessOnlineForm-4382bea7.mjs → ProcessOnlineForm-67558898.mjs} +23 -22
- package/{QueryTable-6e8053ad.mjs → QueryTable-eb9a5b21.mjs} +1 -1
- package/README.md +4 -2
- package/{SuperQuery-78db6998.mjs → SuperQuery-5d1ca957.mjs} +243 -241
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-0a93652b.mjs → index-49508cad.mjs} +1 -1
- package/{index-7e9a23f2.mjs → index-b7a05eef.mjs} +43 -41
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-0c603af1.mjs → useCgformList-423282b7.mjs} +81 -105
- package/{useExtendComponent-aa1cdfc8.mjs → useExtendComponent-325fe3f1.mjs} +1558 -1549
- package/useListButton-cdbab702.mjs +676 -0
- package/{useSchemas-43429d80.mjs → useSchemas-0433a403.mjs} +94 -90
- package/JModalTip-e1938b49.mjs +0 -46
- package/OnlCgformErpSubTable-6e7fb17b.mjs +0 -398
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/index-b70302f2.mjs +0 -56
- package/useListButton-0f18bf6a.mjs +0 -671
|
@@ -28,7 +28,7 @@ var v = (s, c, r) => new Promise((a, P) => {
|
|
|
28
28
|
import { useMessage as Ft } from "/@/hooks/web/useMessage";
|
|
29
29
|
import { ref as g, reactive as _t, computed as vt, watch as St, resolveComponent as y, openBlock as S, createElementBlock as N, createVNode as w, createCommentVNode as q, withCtx as V, createBlock as K, Fragment as wt, renderList as Tt, normalizeStyle as Ct, renderSlot as kt, unref as ye, nextTick as Fe, toRaw as D } from "vue";
|
|
30
30
|
import { BasicForm as Ot, useForm as Pt } from "/@/components/Form/index";
|
|
31
|
-
import { c as xt, O as Rt, d as Vt, e as Dt, u as At, l as H, g as Mt, V as J, S as Et, f as jt, h as _e } from "./useExtendComponent-
|
|
31
|
+
import { c as xt, O as Rt, d as Vt, e as Dt, u as At, l as H, g as Mt, V as J, S as Et, f as jt, h as _e } from "./useExtendComponent-325fe3f1.mjs";
|
|
32
32
|
import { defHttp as ee } from "/@/utils/http/axios";
|
|
33
33
|
import { pick as Bt, omit as ve } from "lodash-es";
|
|
34
34
|
import { sleep as It, goJmReportViewPage as Nt } from "/@/utils";
|
|
@@ -37,7 +37,7 @@ import { getToken as Ut } from "/@/utils/auth";
|
|
|
37
37
|
import { PrinterOutlined as Lt, DiffOutlined as qt, FormOutlined as Kt } from "@ant-design/icons-vue";
|
|
38
38
|
import { useModal as Ht } from "/@/components/Modal";
|
|
39
39
|
import { u as Wt, G as Gt } from "./useCustomHook-acb00837.mjs";
|
|
40
|
-
import { _ as zt } from "./index-
|
|
40
|
+
import { _ as zt } from "./index-0e3ab3af.mjs";
|
|
41
41
|
import "/@/components/Form/src/componentMap";
|
|
42
42
|
import "/@/utils/propTypes";
|
|
43
43
|
import "./constant-754f1a9d.mjs";
|
|
@@ -53,9 +53,10 @@ import "/@/hooks/system/useListPage";
|
|
|
53
53
|
import "vue-router";
|
|
54
54
|
import "/@/components/Form/src/utils/Area";
|
|
55
55
|
import "/@/components/Preview/index";
|
|
56
|
-
import "./LinkTableListPiece-
|
|
57
|
-
import "./OnlineSelectCascade-
|
|
58
|
-
import "./JModalTip-
|
|
56
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
57
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
58
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
59
|
+
import "/@/hooks/web/useAppInject";
|
|
59
60
|
import "ant-design-vue";
|
|
60
61
|
import "@vueuse/core";
|
|
61
62
|
import "/@/utils/cache";
|
|
@@ -137,7 +138,7 @@ const te = {
|
|
|
137
138
|
fieldDisplayStatus: E
|
|
138
139
|
} = Dt(s, a);
|
|
139
140
|
let { EnhanceJS: u, initCgEnhanceJs: Te } = At(f, !1);
|
|
140
|
-
const { executeJsEnhanced: Ce } = Wt({}, f), [ke, { setProps: Oe, validate:
|
|
141
|
+
const { executeJsEnhanced: Ce } = Wt({}, f), [ke, { setProps: Oe, validate: oe, resetFields: le, setFieldsValue: C, updateSchema: Q, getFieldsValue: Y, scrollToField: Pe }] = Pt({
|
|
141
142
|
schemas: A,
|
|
142
143
|
showActionButtonGroup: !1,
|
|
143
144
|
baseColProps: Se
|
|
@@ -146,12 +147,12 @@ const te = {
|
|
|
146
147
|
let e = s.disabled;
|
|
147
148
|
ne.value = e, Oe({ disabled: e });
|
|
148
149
|
}
|
|
149
|
-
function Re(e, t,
|
|
150
|
+
function Re(e, t, o) {
|
|
150
151
|
return v(this, null, function* () {
|
|
151
|
-
yield Ve(), F.value = "", yield
|
|
152
|
-
let
|
|
153
|
-
m.value =
|
|
154
|
-
!
|
|
152
|
+
yield Ve(), F.value = "", yield le(), i.value = "";
|
|
153
|
+
let l = ye(e);
|
|
154
|
+
m.value = l, l ? yield ie(t) : re(), Fe(() => {
|
|
155
|
+
!l && o && C(o), De(), X("js", "loaded"), xe();
|
|
155
156
|
});
|
|
156
157
|
});
|
|
157
158
|
}
|
|
@@ -159,7 +160,7 @@ const te = {
|
|
|
159
160
|
return v(this, null, function* () {
|
|
160
161
|
if (s.isTree === !0) {
|
|
161
162
|
let e = s.pidField, t = A.value;
|
|
162
|
-
t && t.length > 0 && t.filter((
|
|
163
|
+
t && t.length > 0 && t.filter((l) => l.field === e).length > 0 && (yield Q({
|
|
163
164
|
field: e,
|
|
164
165
|
componentProps: {
|
|
165
166
|
reload: (/* @__PURE__ */ new Date()).getTime()
|
|
@@ -177,10 +178,10 @@ const te = {
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
function ae(e, t) {
|
|
180
|
-
let
|
|
181
|
-
H(
|
|
181
|
+
let o = D(R[e.key]);
|
|
182
|
+
H(o, (l) => {
|
|
182
183
|
const { row: n, target: p } = t;
|
|
183
|
-
let _ = [{ rowKey: n.id, values: I({},
|
|
184
|
+
let _ = [{ rowKey: n.id, values: I({}, l) }];
|
|
184
185
|
p.setValues(_);
|
|
185
186
|
});
|
|
186
187
|
}
|
|
@@ -188,35 +189,35 @@ const te = {
|
|
|
188
189
|
return v(this, null, function* () {
|
|
189
190
|
let t = yield Me(e.id);
|
|
190
191
|
i.value = Object.assign({}, e, t);
|
|
191
|
-
let
|
|
192
|
-
s.disabled && Object.keys(
|
|
193
|
-
!
|
|
194
|
-
}), yield C(
|
|
192
|
+
let o = Ae.value, l = Bt(t, ...o);
|
|
193
|
+
s.disabled && Object.keys(l).map((n) => {
|
|
194
|
+
!l[n] && l[n] !== 0 && l[n] !== "0" && delete l[n];
|
|
195
|
+
}), yield C(l), re(t);
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
198
|
function re(e) {
|
|
198
199
|
e || (e = {});
|
|
199
200
|
let t = Object.keys(L.value);
|
|
200
201
|
if (t && t.length > 0) {
|
|
201
|
-
let
|
|
202
|
-
for (let
|
|
203
|
-
l
|
|
204
|
-
L.value =
|
|
202
|
+
let o = {};
|
|
203
|
+
for (let l of t)
|
|
204
|
+
o[l] = e[l] || [];
|
|
205
|
+
L.value = o;
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
let Ae = vt(() => {
|
|
208
209
|
let e = A.value, t = [];
|
|
209
|
-
for (let
|
|
210
|
-
t.push(
|
|
210
|
+
for (let o of e)
|
|
211
|
+
t.push(o.field);
|
|
211
212
|
return t;
|
|
212
213
|
});
|
|
213
214
|
function Me(e) {
|
|
214
215
|
let t = `${te.optPre}${s.id}/${e}`;
|
|
215
|
-
return new Promise((
|
|
216
|
+
return new Promise((o, l) => {
|
|
216
217
|
ee.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
|
|
217
|
-
n.success ?
|
|
218
|
+
n.success ? o(n.result) : (l(), r.warning(n.message));
|
|
218
219
|
}).catch(() => {
|
|
219
|
-
|
|
220
|
+
l();
|
|
220
221
|
});
|
|
221
222
|
});
|
|
222
223
|
}
|
|
@@ -224,21 +225,21 @@ const te = {
|
|
|
224
225
|
return v(this, null, function* () {
|
|
225
226
|
k.value = e.head.tableType, O.value = e.head.tableName, P.value = e.head.tableType == 1, Ie(e.head.extConfigJson), we(e.schema.properties, e.schema.required, G), u = Te(e.enhanceJs), c("rendered", x);
|
|
226
227
|
let t = yield Mt(a);
|
|
227
|
-
t.$formValueChange = (
|
|
228
|
-
et(
|
|
228
|
+
t.$formValueChange = (o, l, n) => {
|
|
229
|
+
et(o, l), n && C(n), je(o, l, n);
|
|
229
230
|
}, u && u.setup && fe(u.setup);
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
|
-
function je(e, t,
|
|
233
|
-
f.changEvent(e, t,
|
|
233
|
+
function je(e, t, o) {
|
|
234
|
+
f.changEvent(e, t, o);
|
|
234
235
|
}
|
|
235
236
|
function Be(e) {
|
|
236
237
|
f.addObject2Context("changEvent", e);
|
|
237
238
|
}
|
|
238
239
|
function Ie(e) {
|
|
239
240
|
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 0, modalMinWidth: "", commentStatus: 0 };
|
|
240
|
-
e && (t = JSON.parse(e)), Object.keys(t).map((
|
|
241
|
-
x[
|
|
241
|
+
e && (t = JSON.parse(e)), Object.keys(t).map((o) => {
|
|
242
|
+
x[o] = t[o];
|
|
242
243
|
});
|
|
243
244
|
}
|
|
244
245
|
function Ne() {
|
|
@@ -251,23 +252,23 @@ const te = {
|
|
|
251
252
|
}
|
|
252
253
|
function Ue() {
|
|
253
254
|
let e = {};
|
|
254
|
-
return new Promise((t,
|
|
255
|
-
|
|
256
|
-
(
|
|
257
|
-
({ errorFields:
|
|
258
|
-
|
|
255
|
+
return new Promise((t, o) => {
|
|
256
|
+
oe().then(
|
|
257
|
+
(l) => t(l),
|
|
258
|
+
({ errorFields: l }) => {
|
|
259
|
+
l && l.length > 0 && Pe(l[0][0]), o(J);
|
|
259
260
|
}
|
|
260
261
|
);
|
|
261
262
|
}).then((t) => (Object.assign(e, U(t)), qe())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === J || (t == null ? void 0 : t.code) === J) && (r.warning("校验未通过"), t.key && Le(t.key)), Promise.reject(null)));
|
|
262
263
|
}
|
|
263
264
|
function Le(e) {
|
|
264
265
|
let t = M.value;
|
|
265
|
-
for (let
|
|
266
|
-
if (e == t[
|
|
267
|
-
let
|
|
268
|
-
if (j.value ===
|
|
266
|
+
for (let o = 0; o < t.length; o++)
|
|
267
|
+
if (e == t[o].key) {
|
|
268
|
+
let l = o + "";
|
|
269
|
+
if (j.value === l)
|
|
269
270
|
break;
|
|
270
|
-
if (j.value =
|
|
271
|
+
if (j.value = l, t[o].relationType === 0) {
|
|
271
272
|
let n = b(e);
|
|
272
273
|
It(300, () => n == null ? void 0 : n.validateTable());
|
|
273
274
|
}
|
|
@@ -276,34 +277,34 @@ const te = {
|
|
|
276
277
|
}
|
|
277
278
|
function qe() {
|
|
278
279
|
return new Promise((e, t) => v(this, null, function* () {
|
|
279
|
-
let
|
|
280
|
+
let o = {};
|
|
280
281
|
try {
|
|
281
|
-
let
|
|
282
|
-
for (let n = 0; n <
|
|
283
|
-
let p =
|
|
284
|
-
if (
|
|
282
|
+
let l = M.value;
|
|
283
|
+
for (let n = 0; n < l.length; n++) {
|
|
284
|
+
let p = l[n].key, _ = b(p);
|
|
285
|
+
if (l[n].relationType == 1)
|
|
285
286
|
try {
|
|
286
287
|
let B = yield _.getAll();
|
|
287
|
-
|
|
288
|
+
o[p] = [], o[p].push(B);
|
|
288
289
|
} catch (B) {
|
|
289
290
|
throw { code: J, key: p };
|
|
290
291
|
}
|
|
291
292
|
else {
|
|
292
293
|
if (yield _.fullValidateTable())
|
|
293
294
|
throw { code: J, key: p };
|
|
294
|
-
|
|
295
|
+
o[p] = _.getTableData();
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
|
-
} catch (
|
|
298
|
-
t(
|
|
298
|
+
} catch (l) {
|
|
299
|
+
t(l);
|
|
299
300
|
}
|
|
300
|
-
e(
|
|
301
|
+
e(o);
|
|
301
302
|
}));
|
|
302
303
|
}
|
|
303
304
|
function Ke() {
|
|
304
305
|
return v(this, null, function* () {
|
|
305
306
|
try {
|
|
306
|
-
let e = yield
|
|
307
|
+
let e = yield oe();
|
|
307
308
|
e = Object.assign({}, i.value, e), e = U(e), T.value = !0, se(e);
|
|
308
309
|
} finally {
|
|
309
310
|
T.value = !1;
|
|
@@ -311,7 +312,7 @@ const te = {
|
|
|
311
312
|
});
|
|
312
313
|
}
|
|
313
314
|
function se(e) {
|
|
314
|
-
|
|
315
|
+
lt(ge, e).then(() => {
|
|
315
316
|
He(e);
|
|
316
317
|
}).catch((t) => {
|
|
317
318
|
r.warning(t);
|
|
@@ -321,26 +322,26 @@ const te = {
|
|
|
321
322
|
Object.keys(e).map((n) => {
|
|
322
323
|
Array.isArray(e[n]) && e[n].length == 0 && (e[n] = "");
|
|
323
324
|
});
|
|
324
|
-
let t = F.value,
|
|
325
|
-
t && (
|
|
326
|
-
let
|
|
327
|
-
ee.request({ url:
|
|
325
|
+
let t = F.value, o = `${te.optPre}${s.id}?tabletype=${k.value}`;
|
|
326
|
+
t && (o = `${t}?tabletype=${k.value}`), d.value === !0 && (e[Et] = 1);
|
|
327
|
+
let l = m.value === !0 ? "put" : "post";
|
|
328
|
+
ee.request({ url: o, method: l, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
328
329
|
n.success ? (n.result && (e[jt] = n.result), c("success", e), s.submitTip === !0 && r.success(n.message)) : r.warning(n.message);
|
|
329
330
|
}).finally(() => {
|
|
330
331
|
T.value = !1;
|
|
331
332
|
});
|
|
332
333
|
}
|
|
333
|
-
function We(e, t,
|
|
334
|
-
t &&
|
|
334
|
+
function We(e, t, o) {
|
|
335
|
+
t && o ? o.vxeProps ? o.setValues([
|
|
335
336
|
{
|
|
336
337
|
rowKey: t,
|
|
337
338
|
values: e
|
|
338
339
|
}
|
|
339
|
-
]) :
|
|
340
|
+
]) : o.setValues(e) : C(e);
|
|
340
341
|
}
|
|
341
342
|
function Ge(e, t) {
|
|
342
|
-
let
|
|
343
|
-
|
|
343
|
+
let o = {};
|
|
344
|
+
o[e] = t, C(o);
|
|
344
345
|
}
|
|
345
346
|
const j = g("0"), ue = g(300), ce = g(340);
|
|
346
347
|
function ze(e) {
|
|
@@ -361,34 +362,34 @@ const te = {
|
|
|
361
362
|
);
|
|
362
363
|
function Qe(e, t) {
|
|
363
364
|
if (e) {
|
|
364
|
-
let
|
|
365
|
-
return !
|
|
365
|
+
let o = e[t];
|
|
366
|
+
return !o && o !== 0 && (o = e[t.toLowerCase()], !o && o !== 0 && (o = e[t.toUpperCase()])), o;
|
|
366
367
|
}
|
|
367
368
|
return "";
|
|
368
369
|
}
|
|
369
370
|
function Ye(e, t) {
|
|
370
371
|
if (u && u[t + "_onlChange"]) {
|
|
371
|
-
let
|
|
372
|
-
if (l
|
|
372
|
+
let o = u[t + "_onlChange"](), l = Object.keys(e)[0];
|
|
373
|
+
if (o[l]) {
|
|
373
374
|
let p = b(t).getFormEvent(), _ = I({
|
|
374
|
-
column: { key:
|
|
375
|
-
value: e[
|
|
375
|
+
column: { key: l },
|
|
376
|
+
value: e[l]
|
|
376
377
|
}, p);
|
|
377
|
-
l
|
|
378
|
+
o[l].call(f, f, _);
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
382
|
function Xe(e, t) {
|
|
382
383
|
if (u && u[t + "_onlChange"]) {
|
|
383
|
-
let
|
|
384
|
+
let o = u[t + "_onlChange"](f);
|
|
384
385
|
if (e.column === "all") {
|
|
385
|
-
let
|
|
386
|
-
if (
|
|
387
|
-
for (let n of
|
|
388
|
-
|
|
386
|
+
let l = Object.keys(o);
|
|
387
|
+
if (l.length > 0)
|
|
388
|
+
for (let n of l)
|
|
389
|
+
o[n].call(f, f, e);
|
|
389
390
|
} else {
|
|
390
|
-
let
|
|
391
|
-
l
|
|
391
|
+
let l = e.column.key || e.col.key;
|
|
392
|
+
o[l] && e.row && e.row.id && o[l].call(f, f, e);
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
}
|
|
@@ -402,39 +403,39 @@ const te = {
|
|
|
402
403
|
return v(this, null, function* () {
|
|
403
404
|
if (!u || !u.onlChange || !e)
|
|
404
405
|
return !1;
|
|
405
|
-
let
|
|
406
|
-
if (
|
|
406
|
+
let o = u.onlChange();
|
|
407
|
+
if (o[e]) {
|
|
407
408
|
let n = {
|
|
408
409
|
row: yield Y(),
|
|
409
410
|
column: { key: e },
|
|
410
411
|
value: t
|
|
411
412
|
};
|
|
412
|
-
|
|
413
|
+
o[e].call(f, f, n);
|
|
413
414
|
}
|
|
414
415
|
});
|
|
415
416
|
}
|
|
416
417
|
function fe(e) {
|
|
417
|
-
let
|
|
418
|
-
if (
|
|
419
|
-
let
|
|
420
|
-
Ce(
|
|
418
|
+
let o = e.toLocaleString().match(Gt);
|
|
419
|
+
if (o.length > 1) {
|
|
420
|
+
let l = o[1];
|
|
421
|
+
Ce(l);
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
424
|
function X(e, t) {
|
|
424
425
|
if (e == "js") {
|
|
425
|
-
let
|
|
426
|
-
u && u[t] ? u[t].call(f, f) : u && u[
|
|
426
|
+
let o = t + "_hook";
|
|
427
|
+
u && u[t] ? u[t].call(f, f) : u && u[o] && fe(u[o]);
|
|
427
428
|
} else if (e == "action") {
|
|
428
|
-
let
|
|
429
|
+
let o = i.value, l = {
|
|
429
430
|
formId: s.id,
|
|
430
431
|
buttonCode: t,
|
|
431
|
-
dataId:
|
|
432
|
-
uiFormData: Object.assign({},
|
|
432
|
+
dataId: o.id,
|
|
433
|
+
uiFormData: Object.assign({}, o)
|
|
433
434
|
};
|
|
434
435
|
ee.post(
|
|
435
436
|
{
|
|
436
437
|
url: `${te.urlButtonAction}`,
|
|
437
|
-
params:
|
|
438
|
+
params: l
|
|
438
439
|
},
|
|
439
440
|
{ isTransformResponse: !1 }
|
|
440
441
|
).then((n) => {
|
|
@@ -443,26 +444,26 @@ const te = {
|
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
function de(e) {
|
|
446
|
-
let t = b(e),
|
|
447
|
-
if (!
|
|
447
|
+
let t = b(e), o = [...t.getNewDataWithId(), ...L.value[e]];
|
|
448
|
+
if (!o || o.length == 0)
|
|
448
449
|
return !1;
|
|
449
|
-
let
|
|
450
|
-
for (let n of
|
|
451
|
-
|
|
452
|
-
t.removeRowsById(
|
|
450
|
+
let l = [];
|
|
451
|
+
for (let n of o)
|
|
452
|
+
l.push(n.id);
|
|
453
|
+
t.removeRowsById(l);
|
|
453
454
|
}
|
|
454
455
|
function me(e, t) {
|
|
455
456
|
if (!t)
|
|
456
457
|
return !1;
|
|
457
|
-
let
|
|
458
|
-
typeof t == "object" ?
|
|
458
|
+
let o = b(e);
|
|
459
|
+
typeof t == "object" ? o.addRows(t, !0) : this.$message.error("添加子表数据,参数不识别!");
|
|
459
460
|
}
|
|
460
461
|
function tt(e, t) {
|
|
461
462
|
de(e), me(e, t);
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
-
!t && t.length <= 0 && (t = []), t.map((
|
|
465
|
-
|
|
464
|
+
function ot(e, t) {
|
|
465
|
+
!t && t.length <= 0 && (t = []), t.map((o) => {
|
|
466
|
+
o.hasOwnProperty("label") || (o.label = o.text);
|
|
466
467
|
}), Q({
|
|
467
468
|
field: e,
|
|
468
469
|
componentProps: {
|
|
@@ -470,20 +471,20 @@ const te = {
|
|
|
470
471
|
}
|
|
471
472
|
});
|
|
472
473
|
}
|
|
473
|
-
function
|
|
474
|
+
function lt(e, t) {
|
|
474
475
|
return u && u.beforeSubmit ? u.beforeSubmit(e, t) : Promise.resolve();
|
|
475
476
|
}
|
|
476
477
|
function nt(e, t) {
|
|
477
|
-
let
|
|
478
|
-
e && e.length > 0 ? Object.keys(
|
|
479
|
-
!
|
|
480
|
-
}) : t && t.length > 0 && Object.keys(
|
|
481
|
-
t.indexOf(
|
|
478
|
+
let o = D(E);
|
|
479
|
+
e && e.length > 0 ? Object.keys(o).map((l) => {
|
|
480
|
+
!l.endsWith("_load") && e.indexOf(l) < 0 && (E[l] = !1);
|
|
481
|
+
}) : t && t.length > 0 && Object.keys(o).map((l) => {
|
|
482
|
+
t.indexOf(l) >= 0 && (E[l] = !1);
|
|
482
483
|
});
|
|
483
484
|
}
|
|
484
485
|
function at(e, t) {
|
|
485
486
|
return v(this, null, function* () {
|
|
486
|
-
F.value = t, yield
|
|
487
|
+
F.value = t, yield le(), i.value = "", m.value = !0, yield ie(e), yield Fe(() => {
|
|
487
488
|
X("js", "loaded");
|
|
488
489
|
});
|
|
489
490
|
});
|
|
@@ -497,37 +498,37 @@ const te = {
|
|
|
497
498
|
return t;
|
|
498
499
|
}
|
|
499
500
|
function it() {
|
|
500
|
-
let e = x.reportPrintUrl, t = i.value.id,
|
|
501
|
-
Nt(e, t,
|
|
501
|
+
let e = x.reportPrintUrl, t = i.value.id, o = Ut();
|
|
502
|
+
Nt(e, t, o);
|
|
502
503
|
}
|
|
503
504
|
const [rt, { openModal: pe }] = Ht(), Z = g(""), $ = g(!0);
|
|
504
505
|
function st(e) {
|
|
505
506
|
Z.value = e.id, $.value = !1, pe(!0, { isUpdate: !1, tableType: "3" });
|
|
506
507
|
}
|
|
507
508
|
function ut(e) {
|
|
508
|
-
let
|
|
509
|
-
if (
|
|
509
|
+
let o = b(e.key).getSelectedData();
|
|
510
|
+
if (o.length != 1) {
|
|
510
511
|
r.warning("请选择一条数据");
|
|
511
512
|
return;
|
|
512
513
|
}
|
|
513
|
-
Z.value = e.id, $.value = !1, pe(!0, { isUpdate: !0, record:
|
|
514
|
+
Z.value = e.id, $.value = !1, pe(!0, { isUpdate: !0, record: o[0] });
|
|
514
515
|
}
|
|
515
516
|
function ct(e) {
|
|
516
517
|
const t = e[_e];
|
|
517
|
-
let
|
|
518
|
-
if (
|
|
519
|
-
let
|
|
518
|
+
let o = ve(e, [_e]);
|
|
519
|
+
if (o.id) {
|
|
520
|
+
let l = ve(I({}, o), "id"), n = [{ rowKey: o.id, values: l }];
|
|
520
521
|
b(t).setValues(n);
|
|
521
522
|
} else
|
|
522
|
-
b(t).addRows(
|
|
523
|
+
b(t).addRows(o, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
|
|
523
524
|
}
|
|
524
525
|
function ft() {
|
|
525
526
|
let e = M.value;
|
|
526
527
|
if (e && e.length > 0) {
|
|
527
528
|
for (let t of e)
|
|
528
529
|
if (t.relationType != 1) {
|
|
529
|
-
let
|
|
530
|
-
|
|
530
|
+
let o = b(t.key);
|
|
531
|
+
o && o.clearSelection();
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
}
|
|
@@ -535,19 +536,19 @@ const te = {
|
|
|
535
536
|
let e = Y(), t = D(R[O.value]);
|
|
536
537
|
H(
|
|
537
538
|
t,
|
|
538
|
-
(
|
|
539
|
-
C(
|
|
539
|
+
(o) => {
|
|
540
|
+
C(o);
|
|
540
541
|
},
|
|
541
542
|
e
|
|
542
543
|
);
|
|
543
544
|
}
|
|
544
545
|
function mt(e, t) {
|
|
545
|
-
let
|
|
546
|
-
if (
|
|
547
|
-
let
|
|
548
|
-
if (
|
|
546
|
+
let o = M.value;
|
|
547
|
+
if (o && o.length > 0) {
|
|
548
|
+
let l = o.filter((n) => n.key === e);
|
|
549
|
+
if (l.length == 0)
|
|
549
550
|
return;
|
|
550
|
-
if (
|
|
551
|
+
if (l[0].relationType == 1)
|
|
551
552
|
b(e).executeFillRule();
|
|
552
553
|
else {
|
|
553
554
|
let n = D(R[e]), p = D(t.row);
|
|
@@ -580,7 +581,7 @@ const te = {
|
|
|
580
581
|
clearSubRows: de,
|
|
581
582
|
addSubRows: me,
|
|
582
583
|
clearThenAddRows: tt,
|
|
583
|
-
changeOptions:
|
|
584
|
+
changeOptions: ot,
|
|
584
585
|
isUpdate: m,
|
|
585
586
|
getSubTableInstance: b,
|
|
586
587
|
updateSchema: Q,
|
|
@@ -759,7 +760,7 @@ function $t(s, c, r, a, P, T) {
|
|
|
759
760
|
}, null, 8, ["request", "id", "onRegister", "onSuccess"])
|
|
760
761
|
], 8, Yt);
|
|
761
762
|
}
|
|
762
|
-
const
|
|
763
|
+
const Io = /* @__PURE__ */ zt(Qt, [["render", $t], ["__scopeId", "data-v-52a8d605"]]);
|
|
763
764
|
export {
|
|
764
|
-
|
|
765
|
+
Io as default
|
|
765
766
|
};
|