@byteluck-fe/runtime-engine 1.1.5 → 1.2.0
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/dist/runtime-engine.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as Mr from "vue";
|
|
2
|
-
import { ref as Z, provide as pa, inject as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { useRoute as
|
|
2
|
+
import { ref as Z, provide as pa, inject as Ys, unref as M, onUnmounted as xr, onBeforeUnmount as Zs, shallowRef as ei, toRaw as qa, computed as G, isRef as ti, watch as ke, nextTick as Oe, getCurrentInstance as Br, defineAsyncComponent as Oa, h as Gt, createVNode as Le, reactive as Fr, shallowReactive as ai } from "vue";
|
|
3
|
+
import * as ri from "ant-design-vue";
|
|
4
|
+
import si, { Modal as ii, message as $t } from "ant-design-vue";
|
|
5
|
+
import { useRoute as Lr, useRouter as ni } from "vue-router";
|
|
6
6
|
import * as jt from "@byteluck-fe/global-shared";
|
|
7
|
-
import { getCustomRequestHeader as
|
|
8
|
-
import
|
|
7
|
+
import { getCustomRequestHeader as oi, getFetch as pe, CacheManager as li, path as ui, client as K, isArray as it, isString as se, isDef as pi, cacheManager as tt, formatDisplayData as di, isObject as Nr, isEmpty as ci } from "@byteluck-fe/global-shared";
|
|
8
|
+
import yi, { get as Ne, debounce as hi, isEqual as Ur, cloneDeep as fi, isArray as le, mapValues as vi, keyBy as mi } from "lodash";
|
|
9
9
|
import Gr from "moment";
|
|
10
10
|
import * as wa from "@byteluck-fe/model-driven-core-all";
|
|
11
|
-
import { loadRemoteControl as
|
|
11
|
+
import { loadRemoteControl as Pi, loadRemoteControls as gi, loadScriptFromFetch as Si, loadScriptFromTag as bi, nativeFetch as $r, debounce as Ti, CONTROL_TYPE as g, OptionSetting as qi, DataBind as Oi, ObjectDataBind as wi, PAGE_STATUS as Qe, isDataBind as xe, JSONCopy as te, FieldTypes as ye, decamelizeKeys as j, CONTROL_BASE_TYPE as da, isPlainObject as jr, MultistageFillingItem as Ai, DisplayBoListItem as _i, TitleConfigEnum as fe, camelizeKeys as Je, DepartmentType as Ii, DataSourceParamItem as Ci, DataSourceOrderItem as Vi, logerror as Ei, EventLogic as Di, baseControls as ki, formControls as Ri, layoutControls as Mi, listControls as xi, columnControls as Bi, searchControls as Fi, registerCustomControls as Aa, registerByteluckControls as Li, VersionBuilder as Ni, upgradeCustomControlSchema as Ui } from "@byteluck-fe/model-driven-core-all";
|
|
12
12
|
import * as _a from "@byteluck-fe/model-driven-engine";
|
|
13
13
|
import { loopDataViewControl as ca, parseModule as Ia, Engine as at, ES6ModulePlugin as Gi, LifecycleEventPlugin as $i, ControlsEventPlugin as ji, CalcPlugin as Hi, StylePlugin as zi } from "@byteluck-fe/model-driven-engine";
|
|
14
14
|
import { defineInstance as Ki, createBaseFields as Wi, createFormBaseFields as Qi } from "@byteluck-fe/model-driven-settings";
|
|
@@ -33,7 +33,7 @@ function Yi(s, e) {
|
|
|
33
33
|
}
|
|
34
34
|
var ya = /* @__PURE__ */ ((s) => (s.SAVE = "save", s.CANCEL = "cancel", s.SAVE_AS = "save_as", s.PRINT = "print", s.CHANGE_LOG = "change_log", s.DRAFT = "draft", s))(ya || {});
|
|
35
35
|
function Zi() {
|
|
36
|
-
const { name: s } =
|
|
36
|
+
const { name: s } = Lr(), { resolve: e } = ni(), t = Z([]);
|
|
37
37
|
return {
|
|
38
38
|
printUrlList: t,
|
|
39
39
|
setPrintUrlList: (r) => {
|
|
@@ -10222,7 +10222,7 @@ class an {
|
|
|
10222
10222
|
url: "/social/hasPermission",
|
|
10223
10223
|
method: "POST",
|
|
10224
10224
|
params: {},
|
|
10225
|
-
headers:
|
|
10225
|
+
headers: oi({
|
|
10226
10226
|
auth: t.auth,
|
|
10227
10227
|
href: a
|
|
10228
10228
|
}),
|
|
@@ -10230,13 +10230,13 @@ class an {
|
|
|
10230
10230
|
});
|
|
10231
10231
|
}
|
|
10232
10232
|
}
|
|
10233
|
-
function
|
|
10233
|
+
function Hr(s = 300) {
|
|
10234
10234
|
return new Promise((e) => {
|
|
10235
10235
|
setTimeout(e, s);
|
|
10236
10236
|
});
|
|
10237
10237
|
}
|
|
10238
10238
|
const zt = navigator.userAgent.toLowerCase();
|
|
10239
|
-
function
|
|
10239
|
+
function zr() {
|
|
10240
10240
|
const s = (a) => a.test(zt), [e = "unknow", t = "unknow"] = (/* @__PURE__ */ new Map([
|
|
10241
10241
|
[
|
|
10242
10242
|
s(/applewebkit/g),
|
|
@@ -10261,8 +10261,8 @@ function Wr() {
|
|
|
10261
10261
|
])).get(!0) || ["unknow", "unknow"];
|
|
10262
10262
|
return t;
|
|
10263
10263
|
}
|
|
10264
|
-
|
|
10265
|
-
|
|
10264
|
+
zr();
|
|
10265
|
+
zr();
|
|
10266
10266
|
zt.includes("dingtalk") && zt.includes("mobile safari");
|
|
10267
10267
|
const rn = {
|
|
10268
10268
|
oneOf(s, e) {
|
|
@@ -10327,23 +10327,23 @@ function nn(s) {
|
|
|
10327
10327
|
}
|
|
10328
10328
|
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10329
10329
|
__proto__: null,
|
|
10330
|
-
CacheManager:
|
|
10330
|
+
CacheManager: li,
|
|
10331
10331
|
createBaseFields: Wi,
|
|
10332
10332
|
createFormBaseFields: Qi,
|
|
10333
10333
|
defineInstance: sn,
|
|
10334
10334
|
getHttp: nn,
|
|
10335
|
-
loadRemoteControl:
|
|
10336
|
-
loadRemoteControls:
|
|
10337
|
-
loadScriptFromFetch:
|
|
10338
|
-
loadScriptFromTag:
|
|
10335
|
+
loadRemoteControl: Pi,
|
|
10336
|
+
loadRemoteControls: gi,
|
|
10337
|
+
loadScriptFromFetch: Si,
|
|
10338
|
+
loadScriptFromTag: bi,
|
|
10339
10339
|
nativeFetch: $r,
|
|
10340
|
-
path:
|
|
10340
|
+
path: ui
|
|
10341
10341
|
}, Symbol.toStringTag, { value: "Module" })), ln = "context";
|
|
10342
10342
|
function un(s) {
|
|
10343
10343
|
pa(ln, s);
|
|
10344
10344
|
}
|
|
10345
10345
|
function Ae() {
|
|
10346
|
-
return
|
|
10346
|
+
return Ys("context");
|
|
10347
10347
|
}
|
|
10348
10348
|
function nt(s, e) {
|
|
10349
10349
|
const t = Ae(), a = M(t);
|
|
@@ -10351,22 +10351,22 @@ function nt(s, e) {
|
|
|
10351
10351
|
a?.off(s, e);
|
|
10352
10352
|
}));
|
|
10353
10353
|
}
|
|
10354
|
-
function
|
|
10354
|
+
function Kr(s) {
|
|
10355
10355
|
var e;
|
|
10356
10356
|
const t = Ae();
|
|
10357
|
-
(e = M(t)) == null || e.on("schema-change", s),
|
|
10357
|
+
(e = M(t)) == null || e.on("schema-change", s), Zs(() => {
|
|
10358
10358
|
var a;
|
|
10359
10359
|
(a = M(t)) == null || a.off("schema-change", s);
|
|
10360
10360
|
});
|
|
10361
10361
|
}
|
|
10362
|
-
function
|
|
10363
|
-
const e =
|
|
10364
|
-
return
|
|
10362
|
+
function Wr(s) {
|
|
10363
|
+
const e = ei(s.props);
|
|
10364
|
+
return Kr((t) => {
|
|
10365
10365
|
qa(t.instance) === qa(s) && (e.value = { ...t.instance.props });
|
|
10366
10366
|
}), e;
|
|
10367
10367
|
}
|
|
10368
|
-
function
|
|
10369
|
-
const s = Z(), e =
|
|
10368
|
+
function Qr() {
|
|
10369
|
+
const s = Z(), e = Ti(() => {
|
|
10370
10370
|
var t, a;
|
|
10371
10371
|
(a = (t = s.value) == null ? void 0 : t.validateField) == null || a.call(t);
|
|
10372
10372
|
});
|
|
@@ -10375,14 +10375,14 @@ function Xr() {
|
|
|
10375
10375
|
formItemValidate: e
|
|
10376
10376
|
};
|
|
10377
10377
|
}
|
|
10378
|
-
function
|
|
10378
|
+
function Jr(s, e, t) {
|
|
10379
10379
|
const a = Ae(), r = G(() => {
|
|
10380
10380
|
var f;
|
|
10381
10381
|
return (f = M(a)) == null ? void 0 : f.getAction().actionUtils;
|
|
10382
|
-
}), i =
|
|
10382
|
+
}), i = Wr(s), { formItemRef: n, formItemValidate: o } = Qr();
|
|
10383
10383
|
nt("validateInstance", (f) => {
|
|
10384
10384
|
f.instance.id === s.id && e === f.rowIndex && o();
|
|
10385
|
-
}),
|
|
10385
|
+
}), ti(t) && ke(t, (f, v) => {
|
|
10386
10386
|
!(a != null && a.value.isMounted) || Array.isArray(f) && Array.isArray(v) && f.length === v.length || o();
|
|
10387
10387
|
});
|
|
10388
10388
|
const u = G(() => i.value.defaultState === "readonly"), l = G(() => i.value.placeholder), p = G(() => s?.pageStatus), d = G(() => [1, 3, 5].includes(p.value)), c = G(() => p.value === 2), q = G(() => p.value === 2 && !u.value), y = G(() => p.value == 5), b = G(() => e !== void 0), T = (f) => {
|
|
@@ -10393,11 +10393,11 @@ function Yr(s, e, t) {
|
|
|
10393
10393
|
var f, v, O, E, h;
|
|
10394
10394
|
const S = (f = M(a)) == null ? void 0 : f.getState("DISPLAY"), _ = (v = M(s).props) != null ? v : {};
|
|
10395
10395
|
if (_.dataBind !== void 0)
|
|
10396
|
-
if (_.dataBind instanceof
|
|
10396
|
+
if (_.dataBind instanceof Oi) {
|
|
10397
10397
|
const { dataCode: P, fieldCode: w } = _.dataBind;
|
|
10398
10398
|
e === void 0 ? (O = S[P]) != null && O[w] && (S[P][w] = void 0) : (h = (E = S[P]) == null ? void 0 : E[e]) != null && h[w] && (S[P][e][w] = void 0);
|
|
10399
10399
|
} else
|
|
10400
|
-
_.dataBind instanceof
|
|
10400
|
+
_.dataBind instanceof wi && (e === void 0 ? Object.keys(_.dataBind).map((P) => {
|
|
10401
10401
|
var w;
|
|
10402
10402
|
const I = _.dataBind[P], { dataCode: C, fieldCode: R } = I;
|
|
10403
10403
|
(w = S[C]) != null && w[R] && (S[C][R] = void 0);
|
|
@@ -10428,11 +10428,11 @@ function Yr(s, e, t) {
|
|
|
10428
10428
|
props: i
|
|
10429
10429
|
};
|
|
10430
10430
|
}
|
|
10431
|
-
function
|
|
10431
|
+
function Xr(s) {
|
|
10432
10432
|
const e = M(Ae());
|
|
10433
10433
|
e != null && e.isMounted ? s() : nt("engine-mounted", s);
|
|
10434
10434
|
}
|
|
10435
|
-
function
|
|
10435
|
+
function Yr(s, e) {
|
|
10436
10436
|
nt("forceUpdate", (t) => {
|
|
10437
10437
|
t.instance === M(s) && e(t);
|
|
10438
10438
|
});
|
|
@@ -10483,7 +10483,7 @@ function dn(s) {
|
|
|
10483
10483
|
}
|
|
10484
10484
|
var Kt = /* @__PURE__ */ ((s) => (s.DRAFT = "DRAFT", s.COMPLETE = "COMPLETE", s.TERMINATION = "TERMINATION", s.RUNNING = "RUNNING", s))(Kt || {});
|
|
10485
10485
|
function cn(s) {
|
|
10486
|
-
const e = Z([]), { updateValue: t, isEditable: a, props: r, isSubtable: i, context: n } =
|
|
10486
|
+
const e = Z([]), { updateValue: t, isEditable: a, props: r, isSubtable: i, context: n } = Jr(
|
|
10487
10487
|
s.instance,
|
|
10488
10488
|
s.rowIndex
|
|
10489
10489
|
), o = Z(!1), u = Z(), l = G(
|
|
@@ -10507,7 +10507,7 @@ function cn(s) {
|
|
|
10507
10507
|
));
|
|
10508
10508
|
}
|
|
10509
10509
|
}
|
|
10510
|
-
const c = Z(!1), q =
|
|
10510
|
+
const c = Z(!1), q = hi(async (h) => {
|
|
10511
10511
|
d.value || ((s.instance.type === "select" || s.instance.type === "select-multiple") && !h && !r.value.defaultShowOptions ? e.value = [] : (c.value = !0, await n?.value.emit("search", {
|
|
10512
10512
|
instance: s.instance,
|
|
10513
10513
|
value: h,
|
|
@@ -10534,7 +10534,7 @@ function cn(s) {
|
|
|
10534
10534
|
rowIndex: s.rowIndex,
|
|
10535
10535
|
options: {
|
|
10536
10536
|
params: {
|
|
10537
|
-
queryType: "
|
|
10537
|
+
queryType: "LIKE",
|
|
10538
10538
|
queryMode: "VALUE"
|
|
10539
10539
|
}
|
|
10540
10540
|
}
|
|
@@ -10581,7 +10581,7 @@ function cn(s) {
|
|
|
10581
10581
|
I.includes(w[C]) || (f.value.splice(
|
|
10582
10582
|
C,
|
|
10583
10583
|
0,
|
|
10584
|
-
new
|
|
10584
|
+
new qi({ label: w[C], value: w[C] })
|
|
10585
10585
|
), C < f.value.length - 1 && C++), C++;
|
|
10586
10586
|
}
|
|
10587
10587
|
},
|
|
@@ -10607,13 +10607,13 @@ function cn(s) {
|
|
|
10607
10607
|
!0
|
|
10608
10608
|
);
|
|
10609
10609
|
};
|
|
10610
|
-
|
|
10610
|
+
Yr(s.instance, v), ke(
|
|
10611
10611
|
f,
|
|
10612
10612
|
() => {
|
|
10613
10613
|
u.value = M(f).map((h) => h.label);
|
|
10614
10614
|
},
|
|
10615
10615
|
{ deep: !0, immediate: !0 }
|
|
10616
|
-
),
|
|
10616
|
+
), Xr(() => {
|
|
10617
10617
|
var h, S;
|
|
10618
10618
|
(Array.isArray(s.value) ? s.value.length : s.value && s.instance.type !== "amount") && ((!a.value || s.rowIndex !== void 0) && (Array.isArray(s.display) ? s.display.length : s.display) ? s.instance.props.optionConfig !== "custom" && (u.value = Array.isArray(s.display) ? s.display : [s.display]) : b(
|
|
10619
10619
|
Array.isArray(s.value) ? s.value.join(",") : s.value
|
|
@@ -10665,29 +10665,29 @@ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10665
10665
|
PAGE_STATUS: Qe,
|
|
10666
10666
|
getHttp: yn,
|
|
10667
10667
|
onEngineEvent: nt,
|
|
10668
|
-
useBaseForm:
|
|
10668
|
+
useBaseForm: Jr,
|
|
10669
10669
|
useEngine: Ae,
|
|
10670
|
-
useEngineMounted:
|
|
10670
|
+
useEngineMounted: Xr,
|
|
10671
10671
|
useEngineProvider: un,
|
|
10672
|
-
useForceUpdate:
|
|
10672
|
+
useForceUpdate: Yr,
|
|
10673
10673
|
useFormEvents: pn,
|
|
10674
|
-
useFormItemValidate:
|
|
10674
|
+
useFormItemValidate: Qr,
|
|
10675
10675
|
useI18n: dn,
|
|
10676
|
-
useInstanceProps:
|
|
10677
|
-
useInstanceSchemaChange:
|
|
10676
|
+
useInstanceProps: Wr,
|
|
10677
|
+
useInstanceSchemaChange: Kr,
|
|
10678
10678
|
useOptions: cn
|
|
10679
10679
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10680
10680
|
function fn(s) {
|
|
10681
10681
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
10682
10682
|
}
|
|
10683
|
-
var ha = { exports: {} },
|
|
10683
|
+
var ha = { exports: {} }, Zr = function(e, t) {
|
|
10684
10684
|
return function() {
|
|
10685
10685
|
for (var r = new Array(arguments.length), i = 0; i < r.length; i++)
|
|
10686
10686
|
r[i] = arguments[i];
|
|
10687
10687
|
return e.apply(t, r);
|
|
10688
10688
|
};
|
|
10689
|
-
}, vn =
|
|
10690
|
-
function
|
|
10689
|
+
}, vn = Zr, _e = Object.prototype.toString;
|
|
10690
|
+
function es(s) {
|
|
10691
10691
|
return _e.call(s) === "[object Array]";
|
|
10692
10692
|
}
|
|
10693
10693
|
function Wt(s) {
|
|
@@ -10712,7 +10712,7 @@ function bn(s) {
|
|
|
10712
10712
|
function Tn(s) {
|
|
10713
10713
|
return typeof s == "number";
|
|
10714
10714
|
}
|
|
10715
|
-
function
|
|
10715
|
+
function ts(s) {
|
|
10716
10716
|
return s !== null && typeof s == "object";
|
|
10717
10717
|
}
|
|
10718
10718
|
function qn(s) {
|
|
@@ -10724,11 +10724,11 @@ function On(s) {
|
|
|
10724
10724
|
function wn(s) {
|
|
10725
10725
|
return _e.call(s) === "[object Blob]";
|
|
10726
10726
|
}
|
|
10727
|
-
function
|
|
10727
|
+
function as(s) {
|
|
10728
10728
|
return _e.call(s) === "[object Function]";
|
|
10729
10729
|
}
|
|
10730
10730
|
function An(s) {
|
|
10731
|
-
return
|
|
10731
|
+
return ts(s) && as(s.pipe);
|
|
10732
10732
|
}
|
|
10733
10733
|
function _n(s) {
|
|
10734
10734
|
return typeof URLSearchParams < "u" && s instanceof URLSearchParams;
|
|
@@ -10741,17 +10741,17 @@ function Cn() {
|
|
|
10741
10741
|
}
|
|
10742
10742
|
function ot(s, e) {
|
|
10743
10743
|
if (!(s === null || typeof s > "u"))
|
|
10744
|
-
if (typeof s != "object" && (s = [s]),
|
|
10744
|
+
if (typeof s != "object" && (s = [s]), es(s))
|
|
10745
10745
|
for (var t = 0, a = s.length; t < a; t++)
|
|
10746
10746
|
e.call(null, s[t], t, s);
|
|
10747
10747
|
else
|
|
10748
10748
|
for (var r in s)
|
|
10749
10749
|
Object.prototype.hasOwnProperty.call(s, r) && e.call(null, s[r], r, s);
|
|
10750
10750
|
}
|
|
10751
|
-
function
|
|
10751
|
+
function rs() {
|
|
10752
10752
|
var s = {};
|
|
10753
10753
|
function e(r, i) {
|
|
10754
|
-
typeof s[i] == "object" && typeof r == "object" ? s[i] =
|
|
10754
|
+
typeof s[i] == "object" && typeof r == "object" ? s[i] = rs(s[i], r) : s[i] = r;
|
|
10755
10755
|
}
|
|
10756
10756
|
for (var t = 0, a = arguments.length; t < a; t++)
|
|
10757
10757
|
ot(arguments[t], e);
|
|
@@ -10772,24 +10772,24 @@ function Vn(s, e, t) {
|
|
|
10772
10772
|
}), s;
|
|
10773
10773
|
}
|
|
10774
10774
|
var ee = {
|
|
10775
|
-
isArray:
|
|
10775
|
+
isArray: es,
|
|
10776
10776
|
isArrayBuffer: Pn,
|
|
10777
10777
|
isBuffer: mn,
|
|
10778
10778
|
isFormData: gn,
|
|
10779
10779
|
isArrayBufferView: Sn,
|
|
10780
10780
|
isString: bn,
|
|
10781
10781
|
isNumber: Tn,
|
|
10782
|
-
isObject:
|
|
10782
|
+
isObject: ts,
|
|
10783
10783
|
isUndefined: Wt,
|
|
10784
10784
|
isDate: qn,
|
|
10785
10785
|
isFile: On,
|
|
10786
10786
|
isBlob: wn,
|
|
10787
|
-
isFunction:
|
|
10787
|
+
isFunction: as,
|
|
10788
10788
|
isStream: An,
|
|
10789
10789
|
isURLSearchParams: _n,
|
|
10790
10790
|
isStandardBrowserEnv: Cn,
|
|
10791
10791
|
forEach: ot,
|
|
10792
|
-
merge:
|
|
10792
|
+
merge: rs,
|
|
10793
10793
|
deepMerge: Qt,
|
|
10794
10794
|
extend: Vn,
|
|
10795
10795
|
trim: In
|
|
@@ -10797,7 +10797,7 @@ var ee = {
|
|
|
10797
10797
|
function Va(s) {
|
|
10798
10798
|
return encodeURIComponent(s).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
10799
10799
|
}
|
|
10800
|
-
var
|
|
10800
|
+
var ss = function(e, t, a) {
|
|
10801
10801
|
if (!t)
|
|
10802
10802
|
return e;
|
|
10803
10803
|
var r;
|
|
@@ -10841,7 +10841,7 @@ var Dn = lt, kn = ee, Rn = function(e, t, a) {
|
|
|
10841
10841
|
e = i(e, t);
|
|
10842
10842
|
}), e;
|
|
10843
10843
|
}, ct, Ea;
|
|
10844
|
-
function
|
|
10844
|
+
function is() {
|
|
10845
10845
|
return Ea || (Ea = 1, ct = function(e) {
|
|
10846
10846
|
return !!(e && e.__CANCEL__);
|
|
10847
10847
|
}), ct;
|
|
@@ -10874,7 +10874,7 @@ function Bn() {
|
|
|
10874
10874
|
}), yt;
|
|
10875
10875
|
}
|
|
10876
10876
|
var ht, ka;
|
|
10877
|
-
function
|
|
10877
|
+
function ns() {
|
|
10878
10878
|
if (ka)
|
|
10879
10879
|
return ht;
|
|
10880
10880
|
ka = 1;
|
|
@@ -10889,7 +10889,7 @@ function Fn() {
|
|
|
10889
10889
|
if (Ra)
|
|
10890
10890
|
return ft;
|
|
10891
10891
|
Ra = 1;
|
|
10892
|
-
var s =
|
|
10892
|
+
var s = ns();
|
|
10893
10893
|
return ft = function(t, a, r) {
|
|
10894
10894
|
var i = r.config.validateStatus;
|
|
10895
10895
|
!i || i(r.status) ? t(r) : a(s(
|
|
@@ -10902,13 +10902,13 @@ function Fn() {
|
|
|
10902
10902
|
}, ft;
|
|
10903
10903
|
}
|
|
10904
10904
|
var vt, Ma;
|
|
10905
|
-
function
|
|
10905
|
+
function Ln() {
|
|
10906
10906
|
return Ma || (Ma = 1, vt = function(e) {
|
|
10907
10907
|
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);
|
|
10908
10908
|
}), vt;
|
|
10909
10909
|
}
|
|
10910
10910
|
var mt, xa;
|
|
10911
|
-
function
|
|
10911
|
+
function Nn() {
|
|
10912
10912
|
return xa || (xa = 1, mt = function(e, t) {
|
|
10913
10913
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
10914
10914
|
}), mt;
|
|
@@ -10918,7 +10918,7 @@ function Un() {
|
|
|
10918
10918
|
if (Ba)
|
|
10919
10919
|
return Pt;
|
|
10920
10920
|
Ba = 1;
|
|
10921
|
-
var s =
|
|
10921
|
+
var s = Ln(), e = Nn();
|
|
10922
10922
|
return Pt = function(a, r) {
|
|
10923
10923
|
return a && !s(r) ? e(a, r) : r;
|
|
10924
10924
|
}, Pt;
|
|
@@ -10959,11 +10959,11 @@ function Gn() {
|
|
|
10959
10959
|
}), r;
|
|
10960
10960
|
}, gt;
|
|
10961
10961
|
}
|
|
10962
|
-
var St,
|
|
10962
|
+
var St, La;
|
|
10963
10963
|
function $n() {
|
|
10964
|
-
if (
|
|
10964
|
+
if (La)
|
|
10965
10965
|
return St;
|
|
10966
|
-
|
|
10966
|
+
La = 1;
|
|
10967
10967
|
var s = ee;
|
|
10968
10968
|
return St = s.isStandardBrowserEnv() ? (
|
|
10969
10969
|
// Standard browser envs have full support of the APIs needed to test
|
|
@@ -10997,11 +10997,11 @@ function $n() {
|
|
|
10997
10997
|
}()
|
|
10998
10998
|
), St;
|
|
10999
10999
|
}
|
|
11000
|
-
var bt,
|
|
11000
|
+
var bt, Na;
|
|
11001
11001
|
function jn() {
|
|
11002
|
-
if (
|
|
11002
|
+
if (Na)
|
|
11003
11003
|
return bt;
|
|
11004
|
-
|
|
11004
|
+
Na = 1;
|
|
11005
11005
|
var s = ee;
|
|
11006
11006
|
return bt = s.isStandardBrowserEnv() ? (
|
|
11007
11007
|
// Standard browser envs support document.cookie
|
|
@@ -11040,7 +11040,7 @@ function Ga() {
|
|
|
11040
11040
|
if (Ua)
|
|
11041
11041
|
return Tt;
|
|
11042
11042
|
Ua = 1;
|
|
11043
|
-
var s = ee, e = Fn(), t =
|
|
11043
|
+
var s = ee, e = Fn(), t = ss, a = Un(), r = Gn(), i = $n(), n = ns();
|
|
11044
11044
|
return Tt = function(u) {
|
|
11045
11045
|
return new Promise(function(p, d) {
|
|
11046
11046
|
var c = u.data, q = u.headers;
|
|
@@ -11140,7 +11140,7 @@ J.forEach(["delete", "get", "head"], function(e) {
|
|
|
11140
11140
|
J.forEach(["post", "put", "patch"], function(e) {
|
|
11141
11141
|
ut.headers[e] = J.merge(Hn);
|
|
11142
11142
|
});
|
|
11143
|
-
var
|
|
11143
|
+
var os = ut, Ha = ee, qt = Rn, Kn = is(), Wn = os;
|
|
11144
11144
|
function Ot(s) {
|
|
11145
11145
|
s.cancelToken && s.cancelToken.throwIfRequested();
|
|
11146
11146
|
}
|
|
@@ -11173,7 +11173,7 @@ var Qn = function(e) {
|
|
|
11173
11173
|
e.transformResponse
|
|
11174
11174
|
))), Promise.reject(r);
|
|
11175
11175
|
});
|
|
11176
|
-
},
|
|
11176
|
+
}, de = ee, ls = function(e, t) {
|
|
11177
11177
|
t = t || {};
|
|
11178
11178
|
var a = {}, r = ["url", "method", "params", "data"], i = ["headers", "auth", "proxy"], n = [
|
|
11179
11179
|
"baseURL",
|
|
@@ -11197,20 +11197,20 @@ var Qn = function(e) {
|
|
|
11197
11197
|
"cancelToken",
|
|
11198
11198
|
"socketPath"
|
|
11199
11199
|
];
|
|
11200
|
-
|
|
11200
|
+
de.forEach(r, function(p) {
|
|
11201
11201
|
typeof t[p] < "u" && (a[p] = t[p]);
|
|
11202
|
-
}),
|
|
11203
|
-
|
|
11204
|
-
}),
|
|
11202
|
+
}), de.forEach(i, function(p) {
|
|
11203
|
+
de.isObject(t[p]) ? a[p] = de.deepMerge(e[p], t[p]) : typeof t[p] < "u" ? a[p] = t[p] : de.isObject(e[p]) ? a[p] = de.deepMerge(e[p]) : typeof e[p] < "u" && (a[p] = e[p]);
|
|
11204
|
+
}), de.forEach(n, function(p) {
|
|
11205
11205
|
typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
|
|
11206
11206
|
});
|
|
11207
11207
|
var o = r.concat(i).concat(n), u = Object.keys(t).filter(function(p) {
|
|
11208
11208
|
return o.indexOf(p) === -1;
|
|
11209
11209
|
});
|
|
11210
|
-
return
|
|
11210
|
+
return de.forEach(u, function(p) {
|
|
11211
11211
|
typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
|
|
11212
11212
|
}), a;
|
|
11213
|
-
}, rt = ee, Jn =
|
|
11213
|
+
}, rt = ee, Jn = ss, za = Dn, Xn = Qn, us = ls;
|
|
11214
11214
|
function Ue(s) {
|
|
11215
11215
|
this.defaults = s, this.interceptors = {
|
|
11216
11216
|
request: new za(),
|
|
@@ -11218,7 +11218,7 @@ function Ue(s) {
|
|
|
11218
11218
|
};
|
|
11219
11219
|
}
|
|
11220
11220
|
Ue.prototype.request = function(e) {
|
|
11221
|
-
typeof e == "string" ? (e = arguments[1] || {}, e.url = arguments[0]) : e = e || {}, e =
|
|
11221
|
+
typeof e == "string" ? (e = arguments[1] || {}, e.url = arguments[0]) : e = e || {}, e = us(this.defaults, e), e.method ? e.method = e.method.toLowerCase() : this.defaults.method ? e.method = this.defaults.method.toLowerCase() : e.method = "get";
|
|
11222
11222
|
var t = [Xn, void 0], a = Promise.resolve(e);
|
|
11223
11223
|
for (this.interceptors.request.forEach(function(i) {
|
|
11224
11224
|
t.unshift(i.fulfilled, i.rejected);
|
|
@@ -11229,7 +11229,7 @@ Ue.prototype.request = function(e) {
|
|
|
11229
11229
|
return a;
|
|
11230
11230
|
};
|
|
11231
11231
|
Ue.prototype.getUri = function(e) {
|
|
11232
|
-
return e =
|
|
11232
|
+
return e = us(this.defaults, e), Jn(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
|
|
11233
11233
|
};
|
|
11234
11234
|
rt.forEach(["delete", "get", "head", "options"], function(e) {
|
|
11235
11235
|
Ue.prototype[e] = function(t, a) {
|
|
@@ -11249,7 +11249,7 @@ rt.forEach(["post", "put", "patch"], function(e) {
|
|
|
11249
11249
|
};
|
|
11250
11250
|
});
|
|
11251
11251
|
var Yn = Ue, wt, Ka;
|
|
11252
|
-
function
|
|
11252
|
+
function ps() {
|
|
11253
11253
|
if (Ka)
|
|
11254
11254
|
return wt;
|
|
11255
11255
|
Ka = 1;
|
|
@@ -11265,7 +11265,7 @@ function Zn() {
|
|
|
11265
11265
|
if (Wa)
|
|
11266
11266
|
return At;
|
|
11267
11267
|
Wa = 1;
|
|
11268
|
-
var s =
|
|
11268
|
+
var s = ps();
|
|
11269
11269
|
function e(t) {
|
|
11270
11270
|
if (typeof t != "function")
|
|
11271
11271
|
throw new TypeError("executor must be a function.");
|
|
@@ -11299,19 +11299,19 @@ function eo() {
|
|
|
11299
11299
|
};
|
|
11300
11300
|
}), _t;
|
|
11301
11301
|
}
|
|
11302
|
-
var Ja = ee, to =
|
|
11303
|
-
function
|
|
11302
|
+
var Ja = ee, to = Zr, Xe = Yn, ao = ls, ro = os;
|
|
11303
|
+
function ds(s) {
|
|
11304
11304
|
var e = new Xe(s), t = to(Xe.prototype.request, e);
|
|
11305
11305
|
return Ja.extend(t, Xe.prototype, e), Ja.extend(t, e), t;
|
|
11306
11306
|
}
|
|
11307
|
-
var ne =
|
|
11307
|
+
var ne = ds(ro);
|
|
11308
11308
|
ne.Axios = Xe;
|
|
11309
11309
|
ne.create = function(e) {
|
|
11310
|
-
return
|
|
11310
|
+
return ds(ao(ne.defaults, e));
|
|
11311
11311
|
};
|
|
11312
|
-
ne.Cancel =
|
|
11312
|
+
ne.Cancel = ps();
|
|
11313
11313
|
ne.CancelToken = Zn();
|
|
11314
|
-
ne.isCancel =
|
|
11314
|
+
ne.isCancel = is();
|
|
11315
11315
|
ne.all = function(e) {
|
|
11316
11316
|
return Promise.all(e);
|
|
11317
11317
|
};
|
|
@@ -11329,7 +11329,7 @@ function qe(s) {
|
|
|
11329
11329
|
"@byteluck-fe/model-driven-engine": _a,
|
|
11330
11330
|
"@byteluck/model-driven-engine": _a,
|
|
11331
11331
|
moment: Gr,
|
|
11332
|
-
lodash:
|
|
11332
|
+
lodash: yi,
|
|
11333
11333
|
axios: no,
|
|
11334
11334
|
decimal: we,
|
|
11335
11335
|
"@byteluck-fe/custom-control-sdk/main": on,
|
|
@@ -11337,7 +11337,7 @@ function qe(s) {
|
|
|
11337
11337
|
"@byteluck-fe/global-shared": jt,
|
|
11338
11338
|
"@byteluck/global-shared": jt
|
|
11339
11339
|
},
|
|
11340
|
-
s ? { "ant-design-vue":
|
|
11340
|
+
s ? { "ant-design-vue": si, vant: {} } : { "ant-design-vue": {}, vant: Ji }
|
|
11341
11341
|
);
|
|
11342
11342
|
}
|
|
11343
11343
|
const Xa = [
|
|
@@ -11420,8 +11420,8 @@ Ya.concat(
|
|
|
11420
11420
|
Ya.map((s) => s.toLocaleUpperCase())
|
|
11421
11421
|
);
|
|
11422
11422
|
let Se = null;
|
|
11423
|
-
async function
|
|
11424
|
-
Se || (Se = document.createElement("input"), Se.style.display = "none", document.body.appendChild(Se)), document.activeElement?.blur?.(), window.tinyMCE?.activeEditor && window.tinyMCE?.activeEditor.save?.(), document.body.click(), Se.focus(), Se.blur(), await
|
|
11423
|
+
async function cs() {
|
|
11424
|
+
Se || (Se = document.createElement("input"), Se.style.display = "none", document.body.appendChild(Se)), document.activeElement?.blur?.(), window.tinyMCE?.activeEditor && window.tinyMCE?.activeEditor.save?.(), document.body.click(), Se.focus(), Se.blur(), await Hr();
|
|
11425
11425
|
}
|
|
11426
11426
|
var z = /* @__PURE__ */ ((s) => (s[s.NONE = 0] = "NONE", s[s.HIDDEN = 1] = "HIDDEN", s[s.READONLY = 2] = "READONLY", s[s.EDIT = 6] = "EDIT", s[s.READONLY_NOT_REQUIRED = 8] = "READONLY_NOT_REQUIRED", s[s.EDIT_NOT_REQUIRED = 24] = "EDIT_NOT_REQUIRED", s[s.EDIT_REQUIRE = 56] = "EDIT_REQUIRE", s))(z || {});
|
|
11427
11427
|
function Za(s, e) {
|
|
@@ -11436,24 +11436,24 @@ function oo(s) {
|
|
|
11436
11436
|
function je(s, e) {
|
|
11437
11437
|
let t = s;
|
|
11438
11438
|
switch (e) {
|
|
11439
|
-
case
|
|
11439
|
+
case ye.ADDRESS:
|
|
11440
11440
|
t = s === void 0 || oo(s) ? "" : j(s);
|
|
11441
11441
|
break;
|
|
11442
|
-
case
|
|
11442
|
+
case ye.BIGINT:
|
|
11443
11443
|
t = s || s === 0 || s === "0" ? Number(s) : null;
|
|
11444
11444
|
break;
|
|
11445
11445
|
}
|
|
11446
11446
|
return t;
|
|
11447
11447
|
}
|
|
11448
|
-
function
|
|
11449
|
-
const r =
|
|
11448
|
+
function ys(s, e, t, a) {
|
|
11449
|
+
const r = bs(s), i = [], n = [];
|
|
11450
11450
|
Object.keys(s.getControlIdMapping()).map((d) => {
|
|
11451
11451
|
const c = s.getControlIdMapping()[d], q = s.getInstance(d);
|
|
11452
11452
|
if (c.children === void 0) {
|
|
11453
11453
|
const y = s.getState(e);
|
|
11454
11454
|
if (!Za(d, a))
|
|
11455
11455
|
return;
|
|
11456
|
-
if (c.dataBind
|
|
11456
|
+
if (xe(c.dataBind)) {
|
|
11457
11457
|
const T = c.dataBind.fieldCode, m = c.dataBind.fieldType, A = {
|
|
11458
11458
|
code: T,
|
|
11459
11459
|
field_type: "",
|
|
@@ -11504,7 +11504,7 @@ function fs(s, e, t, a) {
|
|
|
11504
11504
|
Object.keys(c.children ?? {}).map((h) => {
|
|
11505
11505
|
const S = s.getInstance(h), _ = f[h], P = c.children[h].dataBind;
|
|
11506
11506
|
if (Za(h, a))
|
|
11507
|
-
if (P
|
|
11507
|
+
if (xe(P)) {
|
|
11508
11508
|
const I = P.fieldCode, C = P.fieldType || S.fieldType, R = {
|
|
11509
11509
|
code: I,
|
|
11510
11510
|
value: je(
|
|
@@ -11514,7 +11514,7 @@ function fs(s, e, t, a) {
|
|
|
11514
11514
|
};
|
|
11515
11515
|
er(s, R.value, S) && E.push(I), O.row_data.push(R);
|
|
11516
11516
|
} else
|
|
11517
|
-
P
|
|
11517
|
+
xe(P) || Object.keys(P).map((I) => {
|
|
11518
11518
|
const C = P[I].fieldCode, R = P[I].fieldType || S.fieldType, V = {
|
|
11519
11519
|
code: C,
|
|
11520
11520
|
value: je(
|
|
@@ -11632,11 +11632,11 @@ const st = {
|
|
|
11632
11632
|
});
|
|
11633
11633
|
}
|
|
11634
11634
|
};
|
|
11635
|
-
var
|
|
11636
|
-
let
|
|
11635
|
+
var N = /* @__PURE__ */ ((s) => (s.SUCCESS = "000000", s.NO_AUTH = "1202106", s.NOT_AUTH = "617000", s.NOT_AUTH_EXTERNAL = "617033", s.NOT_FOUND = "617001", s.FORM_NOT_FOUND = "617011", s.FORM_NOT_ENABLE = "617035", s.FORM_NOT_IN_TIME = "617037", s.TABLE_NO_DELETE = "617039", s.LIGHT_APP_STOPPED = "501", s))(N || {});
|
|
11636
|
+
let L;
|
|
11637
11637
|
const lo = {
|
|
11638
11638
|
install(s) {
|
|
11639
|
-
|
|
11639
|
+
L = s;
|
|
11640
11640
|
}
|
|
11641
11641
|
};
|
|
11642
11642
|
class pt {
|
|
@@ -11676,18 +11676,18 @@ class pt {
|
|
|
11676
11676
|
const u = await e.call(this.service, {
|
|
11677
11677
|
payload: t
|
|
11678
11678
|
});
|
|
11679
|
-
if (u.code ===
|
|
11679
|
+
if (u.code === N.SUCCESS) {
|
|
11680
11680
|
const l = a?.(u) ?? u;
|
|
11681
11681
|
return r && (n?.(l), this.cacheResult[i] = l), l;
|
|
11682
11682
|
} else
|
|
11683
|
-
u.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (
|
|
11683
|
+
u.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L.config.globalProperties.$message.error({
|
|
11684
11684
|
content: u.message
|
|
11685
11685
|
}), setTimeout(() => {
|
|
11686
11686
|
sessionStorage.setItem("flag", "true");
|
|
11687
|
-
}, 3e3)) :
|
|
11687
|
+
}, 3e3)) : L.config.globalProperties.$toast({ message: u.message })), o?.(u);
|
|
11688
11688
|
}
|
|
11689
11689
|
}
|
|
11690
|
-
async function
|
|
11690
|
+
async function hs({
|
|
11691
11691
|
context: s,
|
|
11692
11692
|
uId: e,
|
|
11693
11693
|
queryInfo: t,
|
|
@@ -11695,7 +11695,7 @@ async function vs({
|
|
|
11695
11695
|
orders: r,
|
|
11696
11696
|
dataCode: i
|
|
11697
11697
|
}) {
|
|
11698
|
-
const n =
|
|
11698
|
+
const n = he(), o = {}, u = {}, l = {}, p = {}, d = te(t);
|
|
11699
11699
|
return delete d.process_param, await Promise.all(
|
|
11700
11700
|
Object.keys(s.getControlIdMapping()).map(async (c) => {
|
|
11701
11701
|
if (s.getControlIdMapping()[c].children !== void 0 && (!i || s.getControlIdMapping()[c]?.dataBind?.dataCode === i)) {
|
|
@@ -11752,7 +11752,7 @@ async function vs({
|
|
|
11752
11752
|
})
|
|
11753
11753
|
), { subDataSet: o, orginData: p, subDataDisplay: u, subDataPagination: l };
|
|
11754
11754
|
}
|
|
11755
|
-
function
|
|
11755
|
+
function fs(s) {
|
|
11756
11756
|
let e = "";
|
|
11757
11757
|
return s?.map((t) => {
|
|
11758
11758
|
if (t.code === "uid") {
|
|
@@ -11771,9 +11771,9 @@ function fa(s, e) {
|
|
|
11771
11771
|
t[s][r.code ?? "unknown"] = r.value, a[s][r.code ?? "unknown"] = r.display;
|
|
11772
11772
|
}), { dataSet: t, dataDisplay: a };
|
|
11773
11773
|
}
|
|
11774
|
-
function
|
|
11774
|
+
function vs(s, e, t) {
|
|
11775
11775
|
ca(s.runtime.instance, (a) => {
|
|
11776
|
-
s.getState(a.id).uid =
|
|
11776
|
+
s.getState(a.id).uid = fs(
|
|
11777
11777
|
e ?? []
|
|
11778
11778
|
), t !== void 0 && Object.keys(t).map((r) => {
|
|
11779
11779
|
const i = s.getState(r);
|
|
@@ -11787,7 +11787,7 @@ async function uo(s) {
|
|
|
11787
11787
|
s.setLoading && s.setLoading(!0);
|
|
11788
11788
|
const e = s.context;
|
|
11789
11789
|
let t = Promise.resolve();
|
|
11790
|
-
|
|
11790
|
+
pi(s.uId) && s.uId !== "" && (t = hs({
|
|
11791
11791
|
context: e,
|
|
11792
11792
|
uId: s.uId,
|
|
11793
11793
|
queryInfo: s.query
|
|
@@ -11839,7 +11839,7 @@ async function uo(s) {
|
|
|
11839
11839
|
Oe(() => {
|
|
11840
11840
|
M(e)?.emit("custom:setSearchCache", { value: !1 });
|
|
11841
11841
|
});
|
|
11842
|
-
}, 1e3),
|
|
11842
|
+
}, 1e3), vs(e, i.data_set.values, n), s.setLoading && setTimeout(() => s.setLoading(!1), 300), await M(e)?.emit("custom:beforeEngineMounted", {
|
|
11843
11843
|
value: te(o.dataSet)
|
|
11844
11844
|
}), await M(e)?.emit("engine-mounted", {
|
|
11845
11845
|
value: te(o.dataSet)
|
|
@@ -11859,7 +11859,7 @@ async function co(s) {
|
|
|
11859
11859
|
s.setLoading && s.setLoading(!0);
|
|
11860
11860
|
const e = s.context?.getState("FORMPARAMS")?.subtab_query;
|
|
11861
11861
|
let t = {};
|
|
11862
|
-
const a = await
|
|
11862
|
+
const a = await hs({
|
|
11863
11863
|
context: s.context,
|
|
11864
11864
|
uId: e?.main_uid,
|
|
11865
11865
|
queryInfo: e,
|
|
@@ -11881,7 +11881,10 @@ async function co(s) {
|
|
|
11881
11881
|
}, 1e3), po(s.context, t), s.setLoading && setTimeout(() => s.setLoading(!1), 300);
|
|
11882
11882
|
}
|
|
11883
11883
|
function yo(s) {
|
|
11884
|
-
return
|
|
11884
|
+
return (
|
|
11885
|
+
// filterCondition instanceof FieldFilterConditions ||
|
|
11886
|
+
s.type === "conditions"
|
|
11887
|
+
);
|
|
11885
11888
|
}
|
|
11886
11889
|
function Pe(s, e, t, a, r) {
|
|
11887
11890
|
const i = a ?? [], n = [];
|
|
@@ -11904,7 +11907,7 @@ function Pe(s, e, t, a, r) {
|
|
|
11904
11907
|
if (!d)
|
|
11905
11908
|
return;
|
|
11906
11909
|
let c;
|
|
11907
|
-
if (s.getInstance(p)?.parent?.type === "subtable-column" ? c = s.getState(p, t) : c = s.getState(p), d
|
|
11910
|
+
if (s.getInstance(p)?.parent?.type === "subtable-column" ? c = s.getState(p, t) : c = s.getState(p), xe(d)) {
|
|
11908
11911
|
if (n.includes(d.fieldCode))
|
|
11909
11912
|
return;
|
|
11910
11913
|
i.push({ code: d.fieldCode, value: c }), n.push(d.fieldCode);
|
|
@@ -12187,9 +12190,9 @@ function Eo(s, e) {
|
|
|
12187
12190
|
};
|
|
12188
12191
|
}
|
|
12189
12192
|
}
|
|
12190
|
-
var
|
|
12193
|
+
var ms = "FunctionExpression", ve = /* @__PURE__ */ function() {
|
|
12191
12194
|
function s(e, t) {
|
|
12192
|
-
Co(this, s), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "arguments", void 0), this.name = e, this.type =
|
|
12195
|
+
Co(this, s), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "arguments", void 0), this.name = e, this.type = ms, this.arguments = t;
|
|
12193
12196
|
}
|
|
12194
12197
|
return Vo(s, [
|
|
12195
12198
|
{
|
|
@@ -12234,7 +12237,7 @@ var gs = "FunctionExpression", ve = /* @__PURE__ */ function() {
|
|
|
12234
12237
|
}();
|
|
12235
12238
|
Ye(ve, "HandlerMap", /* @__PURE__ */ new Map());
|
|
12236
12239
|
function Do(s) {
|
|
12237
|
-
return s.type ===
|
|
12240
|
+
return s.type === ms;
|
|
12238
12241
|
}
|
|
12239
12242
|
function ko(s, e) {
|
|
12240
12243
|
if (!(s instanceof e))
|
|
@@ -12257,9 +12260,9 @@ function ir(s, e, t) {
|
|
|
12257
12260
|
writable: !0
|
|
12258
12261
|
}) : s[e] = t, s;
|
|
12259
12262
|
}
|
|
12260
|
-
var
|
|
12263
|
+
var Ps = "StaticExpression", nr = /* @__PURE__ */ function() {
|
|
12261
12264
|
function s(e) {
|
|
12262
|
-
ko(this, s), ir(this, "code", void 0), ir(this, "type", void 0), this.code = e, this.type =
|
|
12265
|
+
ko(this, s), ir(this, "code", void 0), ir(this, "type", void 0), this.code = e, this.type = Ps;
|
|
12263
12266
|
}
|
|
12264
12267
|
return Ro(s, [
|
|
12265
12268
|
{
|
|
@@ -12281,7 +12284,7 @@ var Ss = "StaticExpression", nr = /* @__PURE__ */ function() {
|
|
|
12281
12284
|
]), s;
|
|
12282
12285
|
}();
|
|
12283
12286
|
function or(s) {
|
|
12284
|
-
return s.type ===
|
|
12287
|
+
return s.type === Ps;
|
|
12285
12288
|
}
|
|
12286
12289
|
function Mo(s, e) {
|
|
12287
12290
|
if (!(s instanceof e))
|
|
@@ -12304,9 +12307,9 @@ function Re(s, e, t) {
|
|
|
12304
12307
|
writable: !0
|
|
12305
12308
|
}) : s[e] = t, s;
|
|
12306
12309
|
}
|
|
12307
|
-
var
|
|
12310
|
+
var gs = "VariableExpression", Be = /* @__PURE__ */ function() {
|
|
12308
12311
|
function s(e) {
|
|
12309
|
-
Mo(this, s), Re(this, "name", void 0), Re(this, "type", void 0), Re(this, "variableName", void 0), Re(this, "keys", void 0), this.name = e, this.type =
|
|
12312
|
+
Mo(this, s), Re(this, "name", void 0), Re(this, "type", void 0), Re(this, "variableName", void 0), Re(this, "keys", void 0), this.name = e, this.type = gs;
|
|
12310
12313
|
var t = e.split(".");
|
|
12311
12314
|
this.variableName = t.shift(), this.keys = t;
|
|
12312
12315
|
}
|
|
@@ -12332,9 +12335,9 @@ var bs = "VariableExpression", xe = /* @__PURE__ */ function() {
|
|
|
12332
12335
|
}
|
|
12333
12336
|
]), s;
|
|
12334
12337
|
}();
|
|
12335
|
-
Re(
|
|
12338
|
+
Re(Be, "HandlerMap", /* @__PURE__ */ new Map());
|
|
12336
12339
|
function Bo(s) {
|
|
12337
|
-
return s.type ===
|
|
12340
|
+
return s.type === gs;
|
|
12338
12341
|
}
|
|
12339
12342
|
function Zt(s, e) {
|
|
12340
12343
|
(e == null || e > s.length) && (e = s.length);
|
|
@@ -12355,7 +12358,7 @@ function ur(s, e, t, a, r, i, n) {
|
|
|
12355
12358
|
}
|
|
12356
12359
|
o.done ? e(u) : Promise.resolve(u).then(a, r);
|
|
12357
12360
|
}
|
|
12358
|
-
function
|
|
12361
|
+
function Lo(s) {
|
|
12359
12362
|
return function() {
|
|
12360
12363
|
var e = this, t = arguments;
|
|
12361
12364
|
return new Promise(function(a, r) {
|
|
@@ -12370,7 +12373,7 @@ function No(s) {
|
|
|
12370
12373
|
});
|
|
12371
12374
|
};
|
|
12372
12375
|
}
|
|
12373
|
-
function
|
|
12376
|
+
function No(s, e) {
|
|
12374
12377
|
if (!(s instanceof e))
|
|
12375
12378
|
throw new TypeError("Cannot call a class as a function");
|
|
12376
12379
|
}
|
|
@@ -12503,16 +12506,16 @@ function Ho(s, e) {
|
|
|
12503
12506
|
};
|
|
12504
12507
|
}
|
|
12505
12508
|
}
|
|
12506
|
-
var
|
|
12509
|
+
var Ss = "Expressions", va = /* @__PURE__ */ function() {
|
|
12507
12510
|
function s(e) {
|
|
12508
|
-
|
|
12511
|
+
No(this, s), dr(this, "value", void 0), dr(this, "type", void 0), this.value = e, this.type = Ss;
|
|
12509
12512
|
}
|
|
12510
12513
|
return Uo(s, [
|
|
12511
12514
|
{
|
|
12512
12515
|
key: "handler",
|
|
12513
12516
|
value: function(t) {
|
|
12514
12517
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, r = this;
|
|
12515
|
-
return
|
|
12518
|
+
return Lo(function() {
|
|
12516
12519
|
var i, n, o, u, l;
|
|
12517
12520
|
return Ho(this, function(p) {
|
|
12518
12521
|
switch (p.label) {
|
|
@@ -12582,7 +12585,7 @@ var Ts = "Expressions", va = /* @__PURE__ */ function() {
|
|
|
12582
12585
|
]), s;
|
|
12583
12586
|
}();
|
|
12584
12587
|
function zo(s) {
|
|
12585
|
-
return s.type ===
|
|
12588
|
+
return s.type === Ss;
|
|
12586
12589
|
}
|
|
12587
12590
|
var Ko = /\s+/;
|
|
12588
12591
|
function Wo(s) {
|
|
@@ -12678,7 +12681,7 @@ function ma(s) {
|
|
|
12678
12681
|
), r = function(A) {
|
|
12679
12682
|
t();
|
|
12680
12683
|
var f = It(Array.from(A.match(l)), 2), v = f[0], O = f[1];
|
|
12681
|
-
c.push(new
|
|
12684
|
+
c.push(new Be(O)), d += v.length;
|
|
12682
12685
|
}, i = function(A) {
|
|
12683
12686
|
var f = It(Array.from(A.match(p)), 2), v = f[1];
|
|
12684
12687
|
t();
|
|
@@ -12996,19 +12999,19 @@ var k = /* @__PURE__ */ function() {
|
|
|
12996
12999
|
{
|
|
12997
13000
|
key: "addVariable",
|
|
12998
13001
|
value: function(t, a) {
|
|
12999
|
-
|
|
13002
|
+
Be.HandlerMap.set(t, a);
|
|
13000
13003
|
}
|
|
13001
13004
|
},
|
|
13002
13005
|
{
|
|
13003
13006
|
key: "deleteVariable",
|
|
13004
13007
|
value: function(t) {
|
|
13005
|
-
|
|
13008
|
+
Be.HandlerMap.delete(t);
|
|
13006
13009
|
}
|
|
13007
13010
|
},
|
|
13008
13011
|
{
|
|
13009
13012
|
key: "clearVariables",
|
|
13010
13013
|
value: function() {
|
|
13011
|
-
|
|
13014
|
+
Be.HandlerMap.clear();
|
|
13012
13015
|
}
|
|
13013
13016
|
},
|
|
13014
13017
|
{
|
|
@@ -13147,10 +13150,10 @@ function Bl(s, e, t) {
|
|
|
13147
13150
|
function Fl(s) {
|
|
13148
13151
|
return s.length;
|
|
13149
13152
|
}
|
|
13150
|
-
function
|
|
13153
|
+
function Ll(s) {
|
|
13151
13154
|
return s.trim();
|
|
13152
13155
|
}
|
|
13153
|
-
function
|
|
13156
|
+
function Nl(s) {
|
|
13154
13157
|
return Array.from(new Set(s));
|
|
13155
13158
|
}
|
|
13156
13159
|
function Ul(s, e, t, a) {
|
|
@@ -13224,8 +13227,8 @@ k.addFunction("LEFT", Ml);
|
|
|
13224
13227
|
k.addFunction("RIGHT", xl);
|
|
13225
13228
|
k.addFunction("MID", Bl);
|
|
13226
13229
|
k.addFunction("LEN", Fl);
|
|
13227
|
-
k.addFunction("TRIM",
|
|
13228
|
-
k.addFunction("UNION",
|
|
13230
|
+
k.addFunction("TRIM", Ll);
|
|
13231
|
+
k.addFunction("UNION", Nl);
|
|
13229
13232
|
k.addFunction("REPLACE", Ul);
|
|
13230
13233
|
k.addFunction("UPPER", Gl);
|
|
13231
13234
|
k.addFunction("LOWER", $l);
|
|
@@ -13289,7 +13292,7 @@ class Wl {
|
|
|
13289
13292
|
return sessionStorage.getItem(t);
|
|
13290
13293
|
}
|
|
13291
13294
|
}
|
|
13292
|
-
const
|
|
13295
|
+
const Np = /* @__PURE__ */ Yi({
|
|
13293
13296
|
__proto__: null,
|
|
13294
13297
|
CacheRequest: pt,
|
|
13295
13298
|
ExpressionTools: Wl,
|
|
@@ -13298,9 +13301,9 @@ const Lp = /* @__PURE__ */ Yi({
|
|
|
13298
13301
|
buildFiltersToDataSetValues: Pe,
|
|
13299
13302
|
divide: go,
|
|
13300
13303
|
getCurrentProxy: bo,
|
|
13301
|
-
getFormDataUID:
|
|
13304
|
+
getFormDataUID: fs,
|
|
13302
13305
|
getMasterData: fa,
|
|
13303
|
-
handleFillDataSet:
|
|
13306
|
+
handleFillDataSet: vs,
|
|
13304
13307
|
multiply: Po,
|
|
13305
13308
|
setFormDataNew: uo,
|
|
13306
13309
|
setSubtableData: co,
|
|
@@ -13308,7 +13311,7 @@ const Lp = /* @__PURE__ */ Yi({
|
|
|
13308
13311
|
toFixed: So,
|
|
13309
13312
|
vueApp: lo
|
|
13310
13313
|
}, [jt]);
|
|
13311
|
-
function
|
|
13314
|
+
function bs(s) {
|
|
13312
13315
|
return s?.externalParams?.data?.data_model?.data_field_list?.find(
|
|
13313
13316
|
(e) => e.is_primary === 1
|
|
13314
13317
|
)?.field_code ?? "uid";
|
|
@@ -13345,7 +13348,7 @@ class me {
|
|
|
13345
13348
|
function Ve(s) {
|
|
13346
13349
|
return s.requestFilters.push(me.request), s.responseFilters.push(me.response), s;
|
|
13347
13350
|
}
|
|
13348
|
-
function
|
|
13351
|
+
function he() {
|
|
13349
13352
|
if (Ct === void 0) {
|
|
13350
13353
|
const s = Ve(
|
|
13351
13354
|
pe(process.env.VUE_APP_BASE_PATH ?? "/")
|
|
@@ -13385,14 +13388,14 @@ function de() {
|
|
|
13385
13388
|
};
|
|
13386
13389
|
}
|
|
13387
13390
|
var Ql = Object.prototype.toString;
|
|
13388
|
-
function
|
|
13391
|
+
function Ts(s, e) {
|
|
13389
13392
|
return Ql.call(s) === "[object " + e + "]";
|
|
13390
13393
|
}
|
|
13391
13394
|
function Jl(s) {
|
|
13392
|
-
return
|
|
13395
|
+
return Ts(s, "String");
|
|
13393
13396
|
}
|
|
13394
13397
|
function Xl(s) {
|
|
13395
|
-
return
|
|
13398
|
+
return Ts(s, "Promise");
|
|
13396
13399
|
}
|
|
13397
13400
|
var Yl = (
|
|
13398
13401
|
/** @class */
|
|
@@ -13479,9 +13482,9 @@ function tu(s) {
|
|
|
13479
13482
|
}
|
|
13480
13483
|
};
|
|
13481
13484
|
}
|
|
13482
|
-
const
|
|
13485
|
+
const qs = localStorage.getItem("locale") || "zh-CN", ie = tu({
|
|
13483
13486
|
// zh en ja
|
|
13484
|
-
locale:
|
|
13487
|
+
locale: qs
|
|
13485
13488
|
// messages: {
|
|
13486
13489
|
// enUS,
|
|
13487
13490
|
// jaJP,
|
|
@@ -13489,45 +13492,45 @@ const ws = localStorage.getItem("locale") || "zh-CN", ie = tu({
|
|
|
13489
13492
|
});
|
|
13490
13493
|
function mr(s = "page") {
|
|
13491
13494
|
const e = eu(), t = (r) => {
|
|
13492
|
-
|
|
13493
|
-
}, a =
|
|
13495
|
+
L.config.globalProperties.$warning !== void 0 ? L.config.globalProperties.$warning({ content: r }) : L.config.globalProperties.$toast(r);
|
|
13496
|
+
}, a = he().default;
|
|
13494
13497
|
a.ExportRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13495
13498
|
return {
|
|
13496
|
-
code:
|
|
13499
|
+
code: N.SUCCESS
|
|
13497
13500
|
};
|
|
13498
13501
|
}, a.ExportPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13499
13502
|
return {
|
|
13500
|
-
code:
|
|
13503
|
+
code: N.SUCCESS
|
|
13501
13504
|
};
|
|
13502
13505
|
}, a.TemplateExportDataPrivateV1ApiAppsGET = function(r) {
|
|
13503
13506
|
return {
|
|
13504
|
-
code:
|
|
13507
|
+
code: N.SUCCESS
|
|
13505
13508
|
};
|
|
13506
13509
|
}, a.DataImportDataPrivateV1ApiAppsPOST = function(r) {
|
|
13507
13510
|
return {
|
|
13508
|
-
code:
|
|
13511
|
+
code: N.SUCCESS
|
|
13509
13512
|
};
|
|
13510
13513
|
}, a.BatchSubmitPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13511
13514
|
return {
|
|
13512
|
-
code:
|
|
13515
|
+
code: N.SUCCESS
|
|
13513
13516
|
};
|
|
13514
13517
|
}, a.ProcessRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13515
13518
|
return {
|
|
13516
|
-
code:
|
|
13519
|
+
code: N.SUCCESS
|
|
13517
13520
|
};
|
|
13518
13521
|
}, s === "page" && (a.ListDataPagePrivateV1ApiAppsPOST = function(r) {
|
|
13519
13522
|
return new Promise((i, n) => {
|
|
13520
13523
|
i({
|
|
13521
|
-
code:
|
|
13524
|
+
code: N.SUCCESS
|
|
13522
13525
|
});
|
|
13523
13526
|
});
|
|
13524
13527
|
}), a.GetViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13525
13528
|
return {
|
|
13526
|
-
code:
|
|
13529
|
+
code: N.SUCCESS
|
|
13527
13530
|
};
|
|
13528
13531
|
}, a.SaveViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
|
|
13529
13532
|
return {
|
|
13530
|
-
code:
|
|
13533
|
+
code: N.SUCCESS
|
|
13531
13534
|
};
|
|
13532
13535
|
}, a.ApplySubmitPagePrivateV1ApiAppsPOST = function(r) {
|
|
13533
13536
|
return new Promise((i, n) => {
|
|
@@ -13608,7 +13611,7 @@ function mr(s = "page") {
|
|
|
13608
13611
|
}
|
|
13609
13612
|
const au = Symbol("isPreview");
|
|
13610
13613
|
function ru() {
|
|
13611
|
-
const s =
|
|
13614
|
+
const s = Lr(), e = Z(!1);
|
|
13612
13615
|
return s?.query?.isPreview === "true" || s?.name === "Preview" ? (e.value = !0, mr()) : window.location.host === "preview.baiteda.com" && (e.value = !0, mr("site")), pa(au, e), e;
|
|
13613
13616
|
}
|
|
13614
13617
|
function su(s) {
|
|
@@ -13641,7 +13644,7 @@ function ra(s, e, t) {
|
|
|
13641
13644
|
}
|
|
13642
13645
|
Array.isArray(t) && t.forEach((a, r) => {
|
|
13643
13646
|
ra(s[e], r, a);
|
|
13644
|
-
}),
|
|
13647
|
+
}), jr(t) && Object.keys(t).forEach((a) => {
|
|
13645
13648
|
ra(s[e], a, t[a]);
|
|
13646
13649
|
});
|
|
13647
13650
|
}
|
|
@@ -13656,13 +13659,13 @@ function uu(s, e, t = null) {
|
|
|
13656
13659
|
);
|
|
13657
13660
|
}
|
|
13658
13661
|
function pu(s, e, t = []) {
|
|
13659
|
-
if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !==
|
|
13662
|
+
if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== ye.RELATION_FIELD || !s.props.multistageFilling)
|
|
13660
13663
|
return;
|
|
13661
13664
|
const a = lu(e, s.props.dataBind.dataCode);
|
|
13662
13665
|
if (!a)
|
|
13663
13666
|
return;
|
|
13664
13667
|
const r = a.data_field_list?.filter(
|
|
13665
|
-
(u) => u.field_type ===
|
|
13668
|
+
(u) => u.field_type === ye.REFERENCE_FIELD && u.props.reference_relation_field_code === s.props.dataBind.fieldCode
|
|
13666
13669
|
) ?? [], i = t.find(
|
|
13667
13670
|
(u) => u.controlId === s.id
|
|
13668
13671
|
)?.parentId, n = r.map((u) => {
|
|
@@ -13687,20 +13690,20 @@ function pu(s, e, t = []) {
|
|
|
13687
13690
|
})
|
|
13688
13691
|
]);
|
|
13689
13692
|
}
|
|
13690
|
-
const
|
|
13693
|
+
const Os = /* @__PURE__ */ new Map();
|
|
13691
13694
|
function du(s, e) {
|
|
13692
13695
|
const t = e + ":" + s.id;
|
|
13693
|
-
return
|
|
13696
|
+
return Os.set(t, s);
|
|
13694
13697
|
}
|
|
13695
13698
|
function cu(s, e) {
|
|
13696
13699
|
const t = e + ":" + s;
|
|
13697
|
-
|
|
13700
|
+
Os.delete(t);
|
|
13698
13701
|
}
|
|
13699
13702
|
class yu {
|
|
13700
13703
|
pluginName = "CustomVueControlPlugin";
|
|
13701
13704
|
engine;
|
|
13702
13705
|
config;
|
|
13703
|
-
service =
|
|
13706
|
+
service = he();
|
|
13704
13707
|
byteluckVuePages = {};
|
|
13705
13708
|
constructor(e) {
|
|
13706
13709
|
this.config = e;
|
|
@@ -13763,12 +13766,12 @@ class yu {
|
|
|
13763
13766
|
l(i.variables[o.name]);
|
|
13764
13767
|
})
|
|
13765
13768
|
);
|
|
13766
|
-
|
|
13769
|
+
L.component("custom-vue-" + o.id, u), n["custom-vue-" + o.id] = u;
|
|
13767
13770
|
}), this.engine.getAction().sources = n;
|
|
13768
13771
|
}
|
|
13769
13772
|
}
|
|
13770
|
-
var
|
|
13771
|
-
class
|
|
13773
|
+
var ws = /* @__PURE__ */ ((s) => (s.EQ = "EQ", s.IN = "IN", s))(ws || {});
|
|
13774
|
+
class As {
|
|
13772
13775
|
pluginName = "DisplayPlugin";
|
|
13773
13776
|
config;
|
|
13774
13777
|
behaviors;
|
|
@@ -13925,7 +13928,7 @@ class Is {
|
|
|
13925
13928
|
// ? displayItem.option_ids.includes(item.id)
|
|
13926
13929
|
// : displayItem.condition.includes(item.value)
|
|
13927
13930
|
).map((o) => o.value) : e.condition;
|
|
13928
|
-
return e.type ===
|
|
13931
|
+
return e.type === ws.EQ ? Array.isArray(r) ? n.every((o) => r.includes(o)) && n.length === r.length : n[0] === r : Array.isArray(r) ? n.some((o) => r.includes(o)) : n.includes(r);
|
|
13929
13932
|
}
|
|
13930
13933
|
/**
|
|
13931
13934
|
* @description 执行显隐操作逻辑
|
|
@@ -14052,7 +14055,7 @@ class Is {
|
|
|
14052
14055
|
);
|
|
14053
14056
|
}
|
|
14054
14057
|
}
|
|
14055
|
-
class
|
|
14058
|
+
class _s {
|
|
14056
14059
|
pluginName = "JurisdictionPlugin";
|
|
14057
14060
|
engine;
|
|
14058
14061
|
behaviors;
|
|
@@ -14134,10 +14137,10 @@ class Cs {
|
|
|
14134
14137
|
}
|
|
14135
14138
|
const Pr = (s) => se(s) || it(s) ? s.length === 0 : !1;
|
|
14136
14139
|
let hu = 0;
|
|
14137
|
-
class
|
|
14140
|
+
class Is {
|
|
14138
14141
|
pluginName = "MultistageFillingPlugin";
|
|
14139
14142
|
engine;
|
|
14140
|
-
service =
|
|
14143
|
+
service = he();
|
|
14141
14144
|
cacheRequest = new pt(this.service.default);
|
|
14142
14145
|
weakMap = /* @__PURE__ */ new WeakMap();
|
|
14143
14146
|
config;
|
|
@@ -14223,7 +14226,7 @@ class Vs {
|
|
|
14223
14226
|
}
|
|
14224
14227
|
});
|
|
14225
14228
|
l = {
|
|
14226
|
-
code:
|
|
14229
|
+
code: N.SUCCESS,
|
|
14227
14230
|
data: c[0]
|
|
14228
14231
|
};
|
|
14229
14232
|
} else if (this.engine.assertInstance(e.instance, g.DEPARTMENT))
|
|
@@ -14253,7 +14256,7 @@ class Vs {
|
|
|
14253
14256
|
}
|
|
14254
14257
|
});
|
|
14255
14258
|
l = {
|
|
14256
|
-
code:
|
|
14259
|
+
code: N.SUCCESS,
|
|
14257
14260
|
data: c[0]
|
|
14258
14261
|
};
|
|
14259
14262
|
}
|
|
@@ -14279,7 +14282,7 @@ class Vs {
|
|
|
14279
14282
|
field_value: null,
|
|
14280
14283
|
controlId: q
|
|
14281
14284
|
};
|
|
14282
|
-
if (l && l.code ===
|
|
14285
|
+
if (l && l.code === N.SUCCESS) {
|
|
14283
14286
|
const b = l.data?.[0];
|
|
14284
14287
|
b && (y.display = b?.fieldValue ? b?.fieldValue[c.fieldCode] : b[c.fieldCode], y.field_value = b?.fieldValue ? b?.fieldValue[c.fieldCode] : b[c.fieldCode]);
|
|
14285
14288
|
} else
|
|
@@ -14323,7 +14326,7 @@ class Vs {
|
|
|
14323
14326
|
c
|
|
14324
14327
|
)), this.weakMap.get(e.instance) !== o)
|
|
14325
14328
|
return;
|
|
14326
|
-
if (this.weakMap.delete(e.instance), y && y.code ===
|
|
14329
|
+
if (this.weakMap.delete(e.instance), y && y.code === N.SUCCESS) {
|
|
14327
14330
|
const b = this.engine.getInstanceRowIndex(
|
|
14328
14331
|
e.instance
|
|
14329
14332
|
), m = y.data.field_value_list, A = e.instance.props.multistageFilling.map((f) => {
|
|
@@ -14353,7 +14356,7 @@ class Vs {
|
|
|
14353
14356
|
let n = i;
|
|
14354
14357
|
if (it(n)) {
|
|
14355
14358
|
const o = this.engine.getInstance(r, t);
|
|
14356
|
-
(o?.fieldType ===
|
|
14359
|
+
(o?.fieldType === ye.EMPLOYEES || o?.fieldType === ye.DEPARTMENTS) && (n = o.props.multiple ? i : i.slice(0, 1));
|
|
14357
14360
|
}
|
|
14358
14361
|
this.engine.setState(
|
|
14359
14362
|
a.controlId,
|
|
@@ -14371,7 +14374,7 @@ class Vs {
|
|
|
14371
14374
|
return r.id;
|
|
14372
14375
|
}
|
|
14373
14376
|
}
|
|
14374
|
-
class
|
|
14377
|
+
class Cs {
|
|
14375
14378
|
pluginName = "TitlePlugin";
|
|
14376
14379
|
headerData;
|
|
14377
14380
|
dataSet;
|
|
@@ -14391,7 +14394,7 @@ class Es {
|
|
|
14391
14394
|
init() {
|
|
14392
14395
|
this.engine?.externalParams?.data.header_data && (this.headerData = this.engine?.externalParams?.data.header_data, this.headerData.printUrlList = this.printUrlList, this.dataSet = this.engine?.externalParams?.data.data_set, Array.isArray(this.buttonGroups) ? this.headerData.canCopyDocument = !!this.buttonGroups.find(
|
|
14393
14396
|
(e) => e.type === ya.SAVE_AS
|
|
14394
|
-
)?.props.value :
|
|
14397
|
+
)?.props.value : jr(this.buttonGroups) && (this.headerData.canCopyDocument = !!this.buttonGroups.save_as), this.initTitle());
|
|
14395
14398
|
}
|
|
14396
14399
|
initTitle() {
|
|
14397
14400
|
const e = this.engine.runtime.flatInstances.find(
|
|
@@ -14658,8 +14661,8 @@ function Ee(s) {
|
|
|
14658
14661
|
a: t
|
|
14659
14662
|
};
|
|
14660
14663
|
}
|
|
14661
|
-
var qu = "[-\\+]?\\d+%?", Ou = "[-\\+]?\\d*\\.\\d+%?",
|
|
14662
|
-
CSS_UNIT: new RegExp(
|
|
14664
|
+
var qu = "[-\\+]?\\d+%?", Ou = "[-\\+]?\\d*\\.\\d+%?", ce = "(?:".concat(Ou, ")|(?:").concat(qu, ")"), xt = "[\\s|\\(]+(".concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")\\s*\\)?"), Bt = "[\\s|\\(]+(".concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")\\s*\\)?"), re = {
|
|
14665
|
+
CSS_UNIT: new RegExp(ce),
|
|
14663
14666
|
rgb: new RegExp("rgb" + xt),
|
|
14664
14667
|
rgba: new RegExp("rgba" + Bt),
|
|
14665
14668
|
hsl: new RegExp("hsl" + xt),
|
|
@@ -14707,7 +14710,7 @@ function wu(s) {
|
|
|
14707
14710
|
function ue(s) {
|
|
14708
14711
|
return !!re.CSS_UNIT.exec(String(s));
|
|
14709
14712
|
}
|
|
14710
|
-
var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15,
|
|
14713
|
+
var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15, Vs = 5, Es = 4, Cu = [{
|
|
14711
14714
|
index: 7,
|
|
14712
14715
|
opacity: 0.15
|
|
14713
14716
|
}, {
|
|
@@ -14766,14 +14769,14 @@ function Or(s, e, t) {
|
|
|
14766
14769
|
if (s.h === 0 && s.s === 0)
|
|
14767
14770
|
return s.s;
|
|
14768
14771
|
var a;
|
|
14769
|
-
return t ? a = s.s - br * e : e ===
|
|
14772
|
+
return t ? a = s.s - br * e : e === Es ? a = s.s + br : a = s.s + Au * e, a > 1 && (a = 1), t && e === Vs && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
|
14770
14773
|
}
|
|
14771
14774
|
function wr(s, e, t) {
|
|
14772
14775
|
var a;
|
|
14773
14776
|
return t ? a = s.v + _u * e : a = s.v - Iu * e, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
14774
14777
|
}
|
|
14775
14778
|
function sa(s) {
|
|
14776
|
-
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Ee(s), r =
|
|
14779
|
+
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Ee(s), r = Vs; r > 0; r -= 1) {
|
|
14777
14780
|
var i = Tr(a), n = We(Ee({
|
|
14778
14781
|
h: qr(i, r, !0),
|
|
14779
14782
|
s: Or(i, r, !0),
|
|
@@ -14782,7 +14785,7 @@ function sa(s) {
|
|
|
14782
14785
|
t.push(n);
|
|
14783
14786
|
}
|
|
14784
14787
|
t.push(We(a));
|
|
14785
|
-
for (var o = 1; o <=
|
|
14788
|
+
for (var o = 1; o <= Es; o += 1) {
|
|
14786
14789
|
var u = Tr(a), l = We(Ee({
|
|
14787
14790
|
h: qr(u, o),
|
|
14788
14791
|
s: Or(u, o),
|
|
@@ -14809,12 +14812,12 @@ var Ft = {
|
|
|
14809
14812
|
purple: "#722ED1",
|
|
14810
14813
|
magenta: "#EB2F96",
|
|
14811
14814
|
grey: "#666666"
|
|
14812
|
-
},
|
|
14815
|
+
}, Lt = {}, Nt = {};
|
|
14813
14816
|
Object.keys(Ft).forEach(function(s) {
|
|
14814
|
-
|
|
14817
|
+
Lt[s] = sa(Ft[s]), Lt[s].primary = Lt[s][5], Nt[s] = sa(Ft[s], {
|
|
14815
14818
|
theme: "dark",
|
|
14816
14819
|
backgroundColor: "#141414"
|
|
14817
|
-
}),
|
|
14820
|
+
}), Nt[s].primary = Nt[s][5];
|
|
14818
14821
|
});
|
|
14819
14822
|
var Ar = [], De = [], Eu = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
14820
14823
|
function Du() {
|
|
@@ -14863,10 +14866,10 @@ function ia(s, e, t) {
|
|
|
14863
14866
|
return ia(a, "".concat(e, "-").concat(s.tag, "-").concat(r));
|
|
14864
14867
|
}));
|
|
14865
14868
|
}
|
|
14866
|
-
function
|
|
14869
|
+
function Ds(s) {
|
|
14867
14870
|
return sa(s)[0];
|
|
14868
14871
|
}
|
|
14869
|
-
function
|
|
14872
|
+
function ks(s) {
|
|
14870
14873
|
return s ? Array.isArray(s) ? s : [s] : [];
|
|
14871
14874
|
}
|
|
14872
14875
|
var Bu = `
|
|
@@ -14930,8 +14933,8 @@ var Bu = `
|
|
|
14930
14933
|
prepend: !0
|
|
14931
14934
|
}), Cr = !0);
|
|
14932
14935
|
});
|
|
14933
|
-
},
|
|
14934
|
-
function
|
|
14936
|
+
}, Lu = ["icon", "primaryColor", "secondaryColor"];
|
|
14937
|
+
function Nu(s, e) {
|
|
14935
14938
|
if (s == null)
|
|
14936
14939
|
return {};
|
|
14937
14940
|
var t = Uu(s, e), a, r;
|
|
@@ -14964,23 +14967,23 @@ function Ze(s) {
|
|
|
14964
14967
|
function Gu(s, e, t) {
|
|
14965
14968
|
return e in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
|
|
14966
14969
|
}
|
|
14967
|
-
var
|
|
14970
|
+
var Fe = {
|
|
14968
14971
|
primaryColor: "#333",
|
|
14969
14972
|
secondaryColor: "#E6E6E6",
|
|
14970
14973
|
calculated: !1
|
|
14971
14974
|
};
|
|
14972
14975
|
function $u(s) {
|
|
14973
14976
|
var e = s.primaryColor, t = s.secondaryColor;
|
|
14974
|
-
|
|
14977
|
+
Fe.primaryColor = e, Fe.secondaryColor = t || Ds(e), Fe.calculated = !!t;
|
|
14975
14978
|
}
|
|
14976
14979
|
function ju() {
|
|
14977
|
-
return Ze({},
|
|
14980
|
+
return Ze({}, Fe);
|
|
14978
14981
|
}
|
|
14979
14982
|
var Ie = function(e, t) {
|
|
14980
|
-
var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o =
|
|
14983
|
+
var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), u = Fe;
|
|
14981
14984
|
if (i && (u = {
|
|
14982
14985
|
primaryColor: i,
|
|
14983
|
-
secondaryColor: n ||
|
|
14986
|
+
secondaryColor: n || Ds(i)
|
|
14984
14987
|
}), Fu(), xu(Ir(r), "icon should be icon definiton, but got ".concat(r)), !Ir(r))
|
|
14985
14988
|
return null;
|
|
14986
14989
|
var l = r;
|
|
@@ -15053,8 +15056,8 @@ function Qu(s) {
|
|
|
15053
15056
|
if (Array.isArray(s))
|
|
15054
15057
|
return s;
|
|
15055
15058
|
}
|
|
15056
|
-
function
|
|
15057
|
-
var e =
|
|
15059
|
+
function Rs(s) {
|
|
15060
|
+
var e = ks(s), t = Hu(e, 2), a = t[0], r = t[1];
|
|
15058
15061
|
return ga.setTwoToneColors({
|
|
15059
15062
|
primaryColor: a,
|
|
15060
15063
|
secondaryColor: r
|
|
@@ -15146,7 +15149,7 @@ function sp(s, e) {
|
|
|
15146
15149
|
r = a[i], !(e.indexOf(r) >= 0) && (t[r] = s[r]);
|
|
15147
15150
|
return t;
|
|
15148
15151
|
}
|
|
15149
|
-
|
|
15152
|
+
Rs("#1890ff");
|
|
15150
15153
|
var Ce = function(e, t) {
|
|
15151
15154
|
var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, u = r.rotate, l = r.tabindex, p = r.twoToneColor, d = r.onClick, c = rp(r, Xu), q = (a = {
|
|
15152
15155
|
anticon: !0
|
|
@@ -15155,14 +15158,14 @@ var Ce = function(e, t) {
|
|
|
15155
15158
|
var T = u ? {
|
|
15156
15159
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
15157
15160
|
transform: "rotate(".concat(u, "deg)")
|
|
15158
|
-
} : void 0, m =
|
|
15159
|
-
return
|
|
15161
|
+
} : void 0, m = ks(p), A = Yu(m, 2), f = A[0], v = A[1];
|
|
15162
|
+
return Le("span", Dr({
|
|
15160
15163
|
role: "img",
|
|
15161
15164
|
"aria-label": n.name
|
|
15162
15165
|
}, c, {
|
|
15163
15166
|
onClick: d,
|
|
15164
15167
|
class: q
|
|
15165
|
-
}), [
|
|
15168
|
+
}), [Le(ga, {
|
|
15166
15169
|
class: y,
|
|
15167
15170
|
icon: n,
|
|
15168
15171
|
primaryColor: f,
|
|
@@ -15179,8 +15182,8 @@ Ce.props = {
|
|
|
15179
15182
|
Ce.displayName = "AntdIcon";
|
|
15180
15183
|
Ce.inheritAttrs = !1;
|
|
15181
15184
|
Ce.getTwoToneColor = Ju;
|
|
15182
|
-
Ce.setTwoToneColor =
|
|
15183
|
-
const
|
|
15185
|
+
Ce.setTwoToneColor = Rs;
|
|
15186
|
+
const Ms = Ce;
|
|
15184
15187
|
var ip = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
|
|
15185
15188
|
const np = ip;
|
|
15186
15189
|
function kr(s) {
|
|
@@ -15199,7 +15202,7 @@ function op(s, e, t) {
|
|
|
15199
15202
|
}
|
|
15200
15203
|
var Sa = function(e, t) {
|
|
15201
15204
|
var a = kr({}, e, t.attrs);
|
|
15202
|
-
return
|
|
15205
|
+
return Le(Ms, kr({}, a, {
|
|
15203
15206
|
icon: np
|
|
15204
15207
|
}), null);
|
|
15205
15208
|
};
|
|
@@ -15224,14 +15227,14 @@ function dp(s, e, t) {
|
|
|
15224
15227
|
}
|
|
15225
15228
|
var ba = function(e, t) {
|
|
15226
15229
|
var a = Rr({}, e, t.attrs);
|
|
15227
|
-
return
|
|
15230
|
+
return Le(Ms, Rr({}, a, {
|
|
15228
15231
|
icon: pp
|
|
15229
15232
|
}), null);
|
|
15230
15233
|
};
|
|
15231
15234
|
ba.displayName = "QuestionCircleOutlined";
|
|
15232
15235
|
ba.inheritAttrs = !1;
|
|
15233
15236
|
const cp = ba;
|
|
15234
|
-
class
|
|
15237
|
+
class xs {
|
|
15235
15238
|
pluginName = "ActionUtilsPlugin";
|
|
15236
15239
|
engine;
|
|
15237
15240
|
config;
|
|
@@ -15289,38 +15292,38 @@ class Fs {
|
|
|
15289
15292
|
n?.(), setTimeout(() => {
|
|
15290
15293
|
document.body.style.overflow = "";
|
|
15291
15294
|
}, 500);
|
|
15292
|
-
}, console.log(
|
|
15295
|
+
}, console.log(L.config.globalProperties), this.getDevice() === "desktop") {
|
|
15293
15296
|
switch (a) {
|
|
15294
15297
|
case "success":
|
|
15295
|
-
|
|
15298
|
+
L.config.globalProperties.$success({
|
|
15296
15299
|
class: "bl-modal-content-pre bl-clear-active",
|
|
15297
15300
|
content: e,
|
|
15298
15301
|
onOk: r
|
|
15299
15302
|
});
|
|
15300
15303
|
break;
|
|
15301
15304
|
case "error":
|
|
15302
|
-
|
|
15305
|
+
L.config.globalProperties.$error({
|
|
15303
15306
|
class: "bl-modal-content-pre bl-clear-active",
|
|
15304
15307
|
content: e,
|
|
15305
15308
|
onOk: r
|
|
15306
15309
|
});
|
|
15307
15310
|
break;
|
|
15308
15311
|
case "warning":
|
|
15309
|
-
|
|
15312
|
+
L.config.globalProperties.$warning({
|
|
15310
15313
|
class: "bl-modal-content-pre bl-clear-active",
|
|
15311
15314
|
content: e,
|
|
15312
15315
|
onOk: r
|
|
15313
15316
|
});
|
|
15314
15317
|
break;
|
|
15315
15318
|
default:
|
|
15316
|
-
|
|
15319
|
+
L.config.globalProperties.$info({
|
|
15317
15320
|
class: "bl-modal-content-pre bl-clear-active",
|
|
15318
15321
|
content: e,
|
|
15319
15322
|
onOk: r
|
|
15320
15323
|
});
|
|
15321
15324
|
break;
|
|
15322
15325
|
}
|
|
15323
|
-
|
|
15326
|
+
cs();
|
|
15324
15327
|
} else {
|
|
15325
15328
|
let o = { message: e, onClose: r, duration: i };
|
|
15326
15329
|
if (a === "warning")
|
|
@@ -15341,12 +15344,12 @@ class Fs {
|
|
|
15341
15344
|
o = { type: "loading", ...o };
|
|
15342
15345
|
break;
|
|
15343
15346
|
}
|
|
15344
|
-
|
|
15347
|
+
L.config.globalProperties.$toast(o);
|
|
15345
15348
|
}
|
|
15346
15349
|
}
|
|
15347
15350
|
confirm(e, t) {
|
|
15348
15351
|
return new Promise((a) => {
|
|
15349
|
-
this.getDevice() === "desktop" ?
|
|
15352
|
+
this.getDevice() === "desktop" ? L.config.globalProperties.$confirm({
|
|
15350
15353
|
title: e,
|
|
15351
15354
|
content: t,
|
|
15352
15355
|
icon: () => Gt(lp),
|
|
@@ -15358,7 +15361,7 @@ class Fs {
|
|
|
15358
15361
|
onCancel() {
|
|
15359
15362
|
a(!1);
|
|
15360
15363
|
}
|
|
15361
|
-
}) :
|
|
15364
|
+
}) : L.config.globalProperties.$dialog.confirm({
|
|
15362
15365
|
title: e,
|
|
15363
15366
|
message: t
|
|
15364
15367
|
}).then(() => {
|
|
@@ -15414,7 +15417,7 @@ class Fs {
|
|
|
15414
15417
|
}
|
|
15415
15418
|
});
|
|
15416
15419
|
o = {
|
|
15417
|
-
code:
|
|
15420
|
+
code: N.SUCCESS,
|
|
15418
15421
|
data: u[0]
|
|
15419
15422
|
};
|
|
15420
15423
|
}
|
|
@@ -15487,11 +15490,11 @@ class Fs {
|
|
|
15487
15490
|
);
|
|
15488
15491
|
}
|
|
15489
15492
|
}
|
|
15490
|
-
if (o && o.code ===
|
|
15493
|
+
if (o && o.code === N.SUCCESS)
|
|
15491
15494
|
return o.data;
|
|
15492
15495
|
{
|
|
15493
15496
|
const u = this.getDevice() === "desktop";
|
|
15494
|
-
o?.code == "1201702" && (u ?
|
|
15497
|
+
o?.code == "1201702" && (u ? L.config.globalProperties.$message.error(o?.message) : L.config.globalProperties.$toast.fail(o?.message));
|
|
15495
15498
|
}
|
|
15496
15499
|
return null;
|
|
15497
15500
|
}
|
|
@@ -15511,7 +15514,7 @@ class Fs {
|
|
|
15511
15514
|
return i = n.value, i;
|
|
15512
15515
|
{
|
|
15513
15516
|
const o = await this.getDisplay(e, t);
|
|
15514
|
-
return i =
|
|
15517
|
+
return i = di(o), i;
|
|
15515
15518
|
}
|
|
15516
15519
|
}
|
|
15517
15520
|
getPageStatus() {
|
|
@@ -15537,7 +15540,7 @@ class Fs {
|
|
|
15537
15540
|
), JSON.parse(JSON.stringify(this.engine.externalParams?.url || {}));
|
|
15538
15541
|
}
|
|
15539
15542
|
getRouter() {
|
|
15540
|
-
const e =
|
|
15543
|
+
const e = L.config.globalProperties.$router;
|
|
15541
15544
|
return {
|
|
15542
15545
|
push: e.push,
|
|
15543
15546
|
replace: e.replace,
|
|
@@ -15547,13 +15550,13 @@ class Fs {
|
|
|
15547
15550
|
};
|
|
15548
15551
|
}
|
|
15549
15552
|
async validateInstance(e, t) {
|
|
15550
|
-
return await
|
|
15553
|
+
return await Hr(), !(await this.engine.emit("validateInstance", {
|
|
15551
15554
|
instance: se(e) ? this.engine.getInstance(e, t) : e,
|
|
15552
15555
|
rowIndex: t
|
|
15553
15556
|
})).includes(!1);
|
|
15554
15557
|
}
|
|
15555
15558
|
}
|
|
15556
|
-
class
|
|
15559
|
+
class Bs {
|
|
15557
15560
|
pluginName = "DataViewPlugin";
|
|
15558
15561
|
engine;
|
|
15559
15562
|
buttonGroups;
|
|
@@ -15617,7 +15620,7 @@ class Ns {
|
|
|
15617
15620
|
async handlerFormSubmit(e) {
|
|
15618
15621
|
const t = e.options?.type, a = this.engine?.externalParams?.data?.form_process_param.draft, r = t === "saveAs", i = !!this.uId;
|
|
15619
15622
|
e.options?.changeSubmitStatus("disable");
|
|
15620
|
-
const n =
|
|
15623
|
+
const n = ys(
|
|
15621
15624
|
this.engine,
|
|
15622
15625
|
e.instance.id,
|
|
15623
15626
|
{
|
|
@@ -15645,14 +15648,14 @@ class Ns {
|
|
|
15645
15648
|
if (p === !1)
|
|
15646
15649
|
e.options?.fail(ie.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
|
|
15647
15650
|
else {
|
|
15648
|
-
const d =
|
|
15651
|
+
const d = he(), c = await rn.awaitWraper(
|
|
15649
15652
|
i && !r && !a ? d.default.UpdateDataPagePrivateV1ApiAppsPOST({
|
|
15650
15653
|
payload: p
|
|
15651
15654
|
}) : d.default.ApplySubmitPagePrivateV1ApiAppsPOST({
|
|
15652
15655
|
payload: p
|
|
15653
15656
|
})
|
|
15654
15657
|
);
|
|
15655
|
-
c && c.code ===
|
|
15658
|
+
c && c.code === N.SUCCESS ? await this.onAfterSubmit(p, c, o) ? await e.options?.success() : e.options?.changeSubmitStatus("reset") : (await e.options?.fail(c.message), e.options?.changeSubmitStatus("reset"));
|
|
15656
15659
|
}
|
|
15657
15660
|
}
|
|
15658
15661
|
async onBeforeSubmit(e, t = {}) {
|
|
@@ -15672,13 +15675,13 @@ class Ns {
|
|
|
15672
15675
|
options: t
|
|
15673
15676
|
}
|
|
15674
15677
|
);
|
|
15675
|
-
return a?.[0] === !1 ? !1 : a?.[0]?.find((i) =>
|
|
15678
|
+
return a?.[0] === !1 ? !1 : a?.[0]?.find((i) => Nr(i)) || void 0;
|
|
15676
15679
|
}
|
|
15677
15680
|
async onAfterSubmit(e, t, a = {}) {
|
|
15678
15681
|
const r = te(e);
|
|
15679
15682
|
if (!r.data_uid) {
|
|
15680
15683
|
r.data_uid = t.data;
|
|
15681
|
-
const o =
|
|
15684
|
+
const o = bs(this.engine), u = r.data_set.values.find(
|
|
15682
15685
|
(l) => l.code === o
|
|
15683
15686
|
);
|
|
15684
15687
|
u && (u.value = t.data);
|
|
@@ -15715,7 +15718,7 @@ class Ns {
|
|
|
15715
15718
|
function Ut(...s) {
|
|
15716
15719
|
console.log(...s);
|
|
15717
15720
|
}
|
|
15718
|
-
class
|
|
15721
|
+
class Fs {
|
|
15719
15722
|
pluginName = "ApprovalPlugin";
|
|
15720
15723
|
engine;
|
|
15721
15724
|
behaviors;
|
|
@@ -15741,9 +15744,9 @@ class Ls {
|
|
|
15741
15744
|
// 审批确认提示框
|
|
15742
15745
|
approvalConfirm(e) {
|
|
15743
15746
|
const t = e.options.runTask.command_type, a = e.options.hiddenModal;
|
|
15744
|
-
t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ?
|
|
15747
|
+
t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ? ii.confirm({
|
|
15745
15748
|
content: e.options.runTask.sureMessage,
|
|
15746
|
-
icon:
|
|
15749
|
+
icon: Le(cp),
|
|
15747
15750
|
okText: ie.$t("common.confirm", "确定"),
|
|
15748
15751
|
cancelText: ie.$t("common.cancel", "取消"),
|
|
15749
15752
|
okButtonProps: this.okButtonProps,
|
|
@@ -15755,11 +15758,11 @@ class Ls {
|
|
|
15755
15758
|
// 审批提交数据
|
|
15756
15759
|
async submitData(e, t, a) {
|
|
15757
15760
|
Ut(e, "ApprovalPlugin.ts, submitData, ~777~");
|
|
15758
|
-
const r =
|
|
15761
|
+
const r = he(), i = await this.genApprovalSubmitPayload(e);
|
|
15759
15762
|
i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ie.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
|
|
15760
15763
|
payload: i
|
|
15761
15764
|
}).then((n) => {
|
|
15762
|
-
n.code ===
|
|
15765
|
+
n.code === N.SUCCESS ? this.engine?.emit("engine-submitted", {
|
|
15763
15766
|
value: n.data,
|
|
15764
15767
|
options: {
|
|
15765
15768
|
payload: i
|
|
@@ -15773,7 +15776,7 @@ class Ls {
|
|
|
15773
15776
|
async genApprovalSubmitPayload(e) {
|
|
15774
15777
|
const t = [];
|
|
15775
15778
|
ca(this.engine?.runtime.instance, (i) => {
|
|
15776
|
-
const n =
|
|
15779
|
+
const n = ys(
|
|
15777
15780
|
this.engine,
|
|
15778
15781
|
i.id,
|
|
15779
15782
|
{
|
|
@@ -15785,7 +15788,7 @@ class Ls {
|
|
|
15785
15788
|
n.run_task = e.options.runTask, t.push(n);
|
|
15786
15789
|
});
|
|
15787
15790
|
const r = await this.onBeforeSubmitFormatParams(t[0]) ?? t[0];
|
|
15788
|
-
return
|
|
15791
|
+
return fi(r);
|
|
15789
15792
|
}
|
|
15790
15793
|
async onBeforeSubmitFormatParams(e) {
|
|
15791
15794
|
const t = await this.engine?.emit(
|
|
@@ -15794,10 +15797,10 @@ class Ls {
|
|
|
15794
15797
|
value: te(e)
|
|
15795
15798
|
}
|
|
15796
15799
|
);
|
|
15797
|
-
return t?.[0] === !1 ? !1 : t?.[0]?.find((r) =>
|
|
15800
|
+
return t?.[0] === !1 ? !1 : t?.[0]?.find((r) => Nr(r)) || void 0;
|
|
15798
15801
|
}
|
|
15799
15802
|
}
|
|
15800
|
-
class
|
|
15803
|
+
class Ls {
|
|
15801
15804
|
pluginName = "FormRelationFieldPlugin";
|
|
15802
15805
|
engine;
|
|
15803
15806
|
apply(e) {
|
|
@@ -15806,7 +15809,7 @@ class Us {
|
|
|
15806
15809
|
if (t?.dataOrigin === "sublist") {
|
|
15807
15810
|
const r = e.getControlIdMapping();
|
|
15808
15811
|
Object.keys(r).map((i) => {
|
|
15809
|
-
if (r[i].dataBind
|
|
15812
|
+
if (xe(r[i].dataBind) && r[i].dataBind.fieldCode === t?.relation_key && t?.relation_key) {
|
|
15810
15813
|
const n = e.getInstance(i);
|
|
15811
15814
|
n !== void 0 && n.controlType !== "list" && (e.setFields(a, {
|
|
15812
15815
|
[t.relation_key]: t.relation_uid
|
|
@@ -15818,10 +15821,10 @@ class Us {
|
|
|
15818
15821
|
}
|
|
15819
15822
|
}
|
|
15820
15823
|
let yp = 0;
|
|
15821
|
-
class
|
|
15824
|
+
class Ns {
|
|
15822
15825
|
pluginName = "DataSourceSearchPlugin";
|
|
15823
15826
|
engine;
|
|
15824
|
-
service =
|
|
15827
|
+
service = he();
|
|
15825
15828
|
cacheRequest = new pt(this.service.default);
|
|
15826
15829
|
config;
|
|
15827
15830
|
weakMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -15925,7 +15928,7 @@ class Gs {
|
|
|
15925
15928
|
const T = {
|
|
15926
15929
|
app_id: l.appId || this.engine?.externalParams?.data?.app_id,
|
|
15927
15930
|
key_word: i,
|
|
15928
|
-
org_schema_id: e.options?.organizationView || u?.props
|
|
15931
|
+
org_schema_id: e.options?.organizationView || u?.props?.organizationView || "6",
|
|
15929
15932
|
...t,
|
|
15930
15933
|
parent_org_unit_id: o,
|
|
15931
15934
|
org_unit_ids: n,
|
|
@@ -16229,7 +16232,7 @@ class Gs {
|
|
|
16229
16232
|
}
|
|
16230
16233
|
}
|
|
16231
16234
|
let hp = 0;
|
|
16232
|
-
class
|
|
16235
|
+
class Us {
|
|
16233
16236
|
pluginName = "DataFilterPlugin";
|
|
16234
16237
|
engine;
|
|
16235
16238
|
// 缓存控件change会影响哪些控件的数据过滤
|
|
@@ -16346,11 +16349,17 @@ class $s {
|
|
|
16346
16349
|
getFiltersImpactInstanceIds(e) {
|
|
16347
16350
|
const t = [];
|
|
16348
16351
|
return e.forEach((a) => {
|
|
16349
|
-
|
|
16352
|
+
if (a.type === "conditions") {
|
|
16353
|
+
const r = a;
|
|
16354
|
+
t.push(...this.getFiltersImpactInstanceIds(r.children));
|
|
16355
|
+
} else {
|
|
16356
|
+
const r = a;
|
|
16357
|
+
r?.rightVariableBo?.type === "form" && t.push(...r.rightVariableBo.value[0].split(","));
|
|
16358
|
+
}
|
|
16350
16359
|
}), t;
|
|
16351
16360
|
}
|
|
16352
16361
|
}
|
|
16353
|
-
class
|
|
16362
|
+
class Gs {
|
|
16354
16363
|
pluginName = "ReferenceAndCalcFieldPlugin";
|
|
16355
16364
|
engine;
|
|
16356
16365
|
apply(e) {
|
|
@@ -16361,13 +16370,13 @@ class js {
|
|
|
16361
16370
|
if (e.props !== "defaultState" || e.value === "readonly")
|
|
16362
16371
|
return;
|
|
16363
16372
|
const t = e.instance.props.dataBind;
|
|
16364
|
-
!t || ![
|
|
16373
|
+
!t || ![ye.REFERENCE_FIELD, ye.CALC_FIELD].includes(
|
|
16365
16374
|
t.fieldType
|
|
16366
16375
|
) || this.engine.setInstance(e.instance, "defaultState", "readonly");
|
|
16367
16376
|
});
|
|
16368
16377
|
}
|
|
16369
16378
|
}
|
|
16370
|
-
class
|
|
16379
|
+
class $s {
|
|
16371
16380
|
pluginName = "SubtableChangePlugin";
|
|
16372
16381
|
engine;
|
|
16373
16382
|
apply(e) {
|
|
@@ -16403,13 +16412,13 @@ class Hs {
|
|
|
16403
16412
|
r[t.id] = r[t.id].concat(i);
|
|
16404
16413
|
}
|
|
16405
16414
|
}
|
|
16406
|
-
class
|
|
16415
|
+
class js {
|
|
16407
16416
|
pluginName = "DataSourceManagePlugin";
|
|
16408
16417
|
engine;
|
|
16409
16418
|
configs;
|
|
16410
16419
|
content;
|
|
16411
16420
|
isPreviewMode = !1;
|
|
16412
|
-
service =
|
|
16421
|
+
service = he();
|
|
16413
16422
|
cacheRequest = new pt(this.service.default);
|
|
16414
16423
|
constructor(e, t) {
|
|
16415
16424
|
this.content = e, this.configs = e.datasources, this.isPreviewMode = t;
|
|
@@ -16599,7 +16608,7 @@ let fp = class {
|
|
|
16599
16608
|
this.controlId = e, this.property = t, this.expression = a;
|
|
16600
16609
|
}
|
|
16601
16610
|
};
|
|
16602
|
-
class
|
|
16611
|
+
class Hs extends Ta {
|
|
16603
16612
|
constructor(e) {
|
|
16604
16613
|
super(), this.options = e, this.parserFXConfig();
|
|
16605
16614
|
}
|
|
@@ -16719,7 +16728,7 @@ class vp {
|
|
|
16719
16728
|
this.type = e, this.expression = t;
|
|
16720
16729
|
}
|
|
16721
16730
|
}
|
|
16722
|
-
class
|
|
16731
|
+
class zs extends Ta {
|
|
16723
16732
|
constructor(e) {
|
|
16724
16733
|
super(), this.options = e, this.parserFXConfig();
|
|
16725
16734
|
}
|
|
@@ -16764,7 +16773,7 @@ class Ws extends Ta {
|
|
|
16764
16773
|
if (!p)
|
|
16765
16774
|
return;
|
|
16766
16775
|
let { data: q, url: y } = this.engine.externalParams;
|
|
16767
|
-
const b =
|
|
16776
|
+
const b = qs.split("-")[0];
|
|
16768
16777
|
if (d && Object.keys(d).length) {
|
|
16769
16778
|
l = d[b] || d.zh;
|
|
16770
16779
|
const T = a.state.multipleTabs;
|
|
@@ -16819,8 +16828,8 @@ const mp = {
|
|
|
16819
16828
|
belong_dept_all: "belong_dept_all",
|
|
16820
16829
|
current_dept_id: "current_dept_id"
|
|
16821
16830
|
};
|
|
16822
|
-
var
|
|
16823
|
-
class
|
|
16831
|
+
var Ks = /* @__PURE__ */ ((s) => (s.subtable = "subtable", s.current = "current", s))(Ks || {}), Y = /* @__PURE__ */ ((s) => (s.source = "source", s.url = "url", s.local = "local", s.fileId = "fileId", s))(Y || {});
|
|
16832
|
+
class Ws extends Ta {
|
|
16824
16833
|
constructor(e) {
|
|
16825
16834
|
super(), this.options = e, this.selectedRows = e.selectedRows ?? [], this.engine = e.engine;
|
|
16826
16835
|
}
|
|
@@ -16878,15 +16887,15 @@ class Js extends Ta {
|
|
|
16878
16887
|
}
|
|
16879
16888
|
}
|
|
16880
16889
|
let la = 0;
|
|
16881
|
-
const
|
|
16890
|
+
const Qs = (s) => {
|
|
16882
16891
|
if (la += 1, !(la >= 10 || !s?.parent))
|
|
16883
|
-
return s?.type === g.LIST_VIEW ? s.id :
|
|
16892
|
+
return s?.type === g.LIST_VIEW ? s.id : Qs(s?.parent);
|
|
16884
16893
|
};
|
|
16885
16894
|
async function Pp(s) {
|
|
16886
16895
|
const { engine: e, handler: t, instance: a } = s;
|
|
16887
16896
|
let r;
|
|
16888
|
-
return t.params.fx.expression ? r = new
|
|
16889
|
-
selectedRows: e?.getState(
|
|
16897
|
+
return t.params.fx.expression ? r = new Ws({
|
|
16898
|
+
selectedRows: e?.getState(Qs(a))?.selectedRows ?? [],
|
|
16890
16899
|
engine: e
|
|
16891
16900
|
}).parserFXConfig(t.params.fx) : r = t.params.url, t.params.openMode === oa.newTab ? window.open(r) : t.params.openMode === oa.currentTab && (window.location.href = r), la = 0, {
|
|
16892
16901
|
url: r
|
|
@@ -16908,7 +16917,7 @@ async function gp(s, e) {
|
|
|
16908
16917
|
), i === Y.url && (e?.setInstance(r, Y.local, ""), e?.setInstance(r, Y.fileId, "")), i === Y.local && e?.setInstance(r, Y.url, "");
|
|
16909
16918
|
});
|
|
16910
16919
|
}
|
|
16911
|
-
const
|
|
16920
|
+
const Js = (s) => s?.type === g.LIST_VIEW ? s.id : Js(s?.parent), ua = Z({}), Sp = (s, e) => {
|
|
16912
16921
|
Object.assign(ua.value, { [s]: e });
|
|
16913
16922
|
}, bp = K.isPc();
|
|
16914
16923
|
async function Tp({
|
|
@@ -16929,8 +16938,8 @@ async function Tp({
|
|
|
16929
16938
|
page_type: b
|
|
16930
16939
|
} = s.params, T = {
|
|
16931
16940
|
app_id: t
|
|
16932
|
-
}, m = new
|
|
16933
|
-
selectedRows: b === "list" ? a?.getState(
|
|
16941
|
+
}, m = new Ws({
|
|
16942
|
+
selectedRows: b === "list" ? a?.getState(Js(e))?.selectedRows ?? [] : [],
|
|
16934
16943
|
engine: a
|
|
16935
16944
|
});
|
|
16936
16945
|
if (u !== et.selectMore) {
|
|
@@ -17135,7 +17144,7 @@ async function Tp({
|
|
|
17135
17144
|
});
|
|
17136
17145
|
}
|
|
17137
17146
|
else
|
|
17138
|
-
O ===
|
|
17147
|
+
O === Ks.current && R.forEach((V) => {
|
|
17139
17148
|
let F;
|
|
17140
17149
|
const H = a.getInstance(V.controlId), B = I(
|
|
17141
17150
|
V.controlId,
|
|
@@ -17206,7 +17215,7 @@ async function qp(s) {
|
|
|
17206
17215
|
}
|
|
17207
17216
|
}
|
|
17208
17217
|
}
|
|
17209
|
-
class
|
|
17218
|
+
class Xs {
|
|
17210
17219
|
config;
|
|
17211
17220
|
events;
|
|
17212
17221
|
engine;
|
|
@@ -17224,9 +17233,9 @@ class Zs {
|
|
|
17224
17233
|
}
|
|
17225
17234
|
// 格式化事件数据,eg. sLvHxjkRTN: {on_blur: ControlsEvent}
|
|
17226
17235
|
formatConfig(e) {
|
|
17227
|
-
return
|
|
17236
|
+
return ci(e) ? {} : vi(
|
|
17228
17237
|
e,
|
|
17229
|
-
(t) =>
|
|
17238
|
+
(t) => mi(t, "eventKey")
|
|
17230
17239
|
);
|
|
17231
17240
|
}
|
|
17232
17241
|
engineAddEventListener(e, t) {
|
|
@@ -17256,7 +17265,7 @@ class Zs {
|
|
|
17256
17265
|
engine: this.engine,
|
|
17257
17266
|
handler: o,
|
|
17258
17267
|
instance: t?.instance
|
|
17259
|
-
}), e === "on_focus" && o.params.openMode === "newTab" &&
|
|
17268
|
+
}), e === "on_focus" && o.params.openMode === "newTab" && cs(), r = u;
|
|
17260
17269
|
else if (o.method === be.setInstance)
|
|
17261
17270
|
await gp(o, this.engine);
|
|
17262
17271
|
else if (o.method === be.querySvc) {
|
|
@@ -17368,7 +17377,7 @@ function _p(s, e, t = {}, a) {
|
|
|
17368
17377
|
registeredConfigs: y
|
|
17369
17378
|
} = t, {
|
|
17370
17379
|
query: { enginedebug: b = !1, chn: T }
|
|
17371
|
-
} = d, m = M(q), A = JSON.parse(r?.data.content?.model || "[]"), f = new
|
|
17380
|
+
} = d, m = M(q), A = JSON.parse(r?.data.content?.model || "[]"), f = new Ni(
|
|
17372
17381
|
r?.data?.content?.schema_version
|
|
17373
17382
|
), v = r?.data.content?.events;
|
|
17374
17383
|
let O = r?.data.content?.control_events;
|
|
@@ -17431,7 +17440,7 @@ function _p(s, e, t = {}, a) {
|
|
|
17431
17440
|
}, H = te(
|
|
17432
17441
|
r.data?.content?.button_groups ?? r.data?.button_group ?? []
|
|
17433
17442
|
), B = [
|
|
17434
|
-
new
|
|
17443
|
+
new xs({
|
|
17435
17444
|
// env: '',
|
|
17436
17445
|
userInfo: c.state.userInfo,
|
|
17437
17446
|
tenant: c.state.tenant,
|
|
@@ -17440,26 +17449,26 @@ function _p(s, e, t = {}, a) {
|
|
|
17440
17449
|
pageStatus: i,
|
|
17441
17450
|
isPreview: m
|
|
17442
17451
|
}),
|
|
17443
|
-
new
|
|
17452
|
+
new Bs({
|
|
17444
17453
|
buttonGroups: r.data?.content?.button_groups,
|
|
17445
17454
|
behaviors: S,
|
|
17446
17455
|
showDataViewOperationBtn: s.showDataViewOperationBtn,
|
|
17447
17456
|
channelParamId: T
|
|
17448
17457
|
}),
|
|
17449
|
-
new
|
|
17450
|
-
new
|
|
17451
|
-
new
|
|
17452
|
-
new
|
|
17458
|
+
new Gs(),
|
|
17459
|
+
new _s(S, h),
|
|
17460
|
+
new As(h, S),
|
|
17461
|
+
new Ns({
|
|
17453
17462
|
userInfo: c.state.userInfo,
|
|
17454
17463
|
isPreviewMode: m
|
|
17455
17464
|
}),
|
|
17456
|
-
new
|
|
17457
|
-
new
|
|
17465
|
+
new Us(),
|
|
17466
|
+
new Cs({
|
|
17458
17467
|
descript: n,
|
|
17459
17468
|
printUrlList: e,
|
|
17460
17469
|
buttonGroups: H
|
|
17461
17470
|
}),
|
|
17462
|
-
new
|
|
17471
|
+
new Is({
|
|
17463
17472
|
isPreviewMode: m
|
|
17464
17473
|
}),
|
|
17465
17474
|
new Gi(
|
|
@@ -17468,7 +17477,7 @@ function _p(s, e, t = {}, a) {
|
|
|
17468
17477
|
),
|
|
17469
17478
|
new $i(v ?? {}),
|
|
17470
17479
|
new ji(O ?? {}),
|
|
17471
|
-
new
|
|
17480
|
+
new Xs(
|
|
17472
17481
|
E ?? {},
|
|
17473
17482
|
s?.state?.data?.app_id || "",
|
|
17474
17483
|
c.state.userInfo || {}
|
|
@@ -17478,15 +17487,15 @@ function _p(s, e, t = {}, a) {
|
|
|
17478
17487
|
behavior: Je(S)
|
|
17479
17488
|
}),
|
|
17480
17489
|
new zi(r?.data?.content?.style ?? {}),
|
|
17481
|
-
new
|
|
17482
|
-
new
|
|
17483
|
-
new
|
|
17484
|
-
new
|
|
17485
|
-
new
|
|
17490
|
+
new Fs({ behaviors: S }),
|
|
17491
|
+
new Ls(),
|
|
17492
|
+
new $s(),
|
|
17493
|
+
new js(r?.data?.content, m),
|
|
17494
|
+
new Hs({
|
|
17486
17495
|
config: r?.data?.content?.fx ?? {},
|
|
17487
17496
|
datasources: r?.data?.content?.datasources ?? {}
|
|
17488
17497
|
}),
|
|
17489
|
-
new
|
|
17498
|
+
new zs({
|
|
17490
17499
|
config: r?.data?.content?.title_setting ?? [],
|
|
17491
17500
|
store: c
|
|
17492
17501
|
})
|
|
@@ -17512,13 +17521,13 @@ function _p(s, e, t = {}, a) {
|
|
|
17512
17521
|
const D = u(U);
|
|
17513
17522
|
D && (W = D);
|
|
17514
17523
|
}
|
|
17515
|
-
const Q = new at(W), x =
|
|
17524
|
+
const Q = new at(W), x = ai(Q);
|
|
17516
17525
|
return l && (x.parent = l), y && y.forEach((D, $) => {
|
|
17517
17526
|
x.setControlConfig($, D);
|
|
17518
17527
|
}), x.rawStore.DELETE_IDS = {}, x.rawStore.UPDATE_IDS = {}, x.mount(), x.store = Fr(x.store), x;
|
|
17519
17528
|
}
|
|
17520
17529
|
function Gp(s, e, t, a) {
|
|
17521
|
-
process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd =
|
|
17530
|
+
process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd = ri), window.byteluckVuePages || (window.byteluckVuePages = {});
|
|
17522
17531
|
const r = ru(), { title: i, updateTitle: n } = su(s.isWatchTitle), o = Z({});
|
|
17523
17532
|
pa("context", o);
|
|
17524
17533
|
const { printUrlList: u, setPrintUrlList: l } = Zi(), p = () => {
|
|
@@ -17530,7 +17539,7 @@ function Gp(s, e, t, a) {
|
|
|
17530
17539
|
function c(m) {
|
|
17531
17540
|
at.register(m.control);
|
|
17532
17541
|
const A = m.props?.config;
|
|
17533
|
-
A && d.set(m.control.Runtime.controlType, A),
|
|
17542
|
+
A && d.set(m.control.Runtime.controlType, A), L.component(
|
|
17534
17543
|
`rok-${m.control.Runtime.controlType}`,
|
|
17535
17544
|
K.isPc() ? m.control?.Views?.Desktop : m.control?.Views?.Mobile
|
|
17536
17545
|
);
|
|
@@ -17548,7 +17557,7 @@ function Gp(s, e, t, a) {
|
|
|
17548
17557
|
type: "runtime"
|
|
17549
17558
|
}
|
|
17550
17559
|
), s.state.data.form_type === 5) {
|
|
17551
|
-
const m = await
|
|
17560
|
+
const m = await Li(
|
|
17552
17561
|
process.env.VUE_APP_BYTELUCK_CONTROLS,
|
|
17553
17562
|
{
|
|
17554
17563
|
type: "runtime",
|
|
@@ -17603,26 +17612,25 @@ function Gp(s, e, t, a) {
|
|
|
17603
17612
|
title: i,
|
|
17604
17613
|
getState: b,
|
|
17605
17614
|
createEngine: y,
|
|
17606
|
-
|
|
17607
|
-
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
EventListenerPlugin: Zs
|
|
17615
|
+
ActionUtilsPlugin: xs,
|
|
17616
|
+
ApprovalPlugin: Fs,
|
|
17617
|
+
DataFilterPlugin: Us,
|
|
17618
|
+
DatasourceSearchPlugin: Ns,
|
|
17619
|
+
DataViewPlugin: Bs,
|
|
17620
|
+
DisplayPlugin: As,
|
|
17621
|
+
FormRelationFieldPlugin: Ls,
|
|
17622
|
+
JurisdictionPlugin: _s,
|
|
17623
|
+
MultistageFillingPlugin: Is,
|
|
17624
|
+
ReferenceAndCalcFieldPlugin: Gs,
|
|
17625
|
+
TitlePlugin: Cs,
|
|
17626
|
+
SubtableChangePlugin: $s,
|
|
17627
|
+
DataSourceManagePlugin: js,
|
|
17628
|
+
ExpressionPlugin: Hs,
|
|
17629
|
+
TitleSettingPlugin: zs,
|
|
17630
|
+
EventListenerPlugin: Xs
|
|
17623
17631
|
};
|
|
17624
17632
|
}
|
|
17625
17633
|
export {
|
|
17626
|
-
|
|
17634
|
+
Np as core,
|
|
17627
17635
|
Gp as useRuntimeEngine
|
|
17628
17636
|
};
|