@byteluck-fe/runtime-engine 1.2.3 → 1.3.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.
@@ -1,18 +1,18 @@
1
1
  import * as Mr from "vue";
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";
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 U, isRef as ti, watch as Me, nextTick as Ae, getCurrentInstance as Br, defineAsyncComponent as Oa, h as Gt, createVNode as Ue, reactive as Fr, shallowReactive as ai } from "vue";
3
3
  import * as ri from "ant-design-vue";
4
4
  import si, { Modal as ii, message as $t } from "ant-design-vue";
5
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 oi, getFetch as de, CacheManager as li, path as ui, client as K, isArray as it, isString as ie, 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 ue, mapValues as vi, keyBy as mi } from "lodash";
7
+ import { getCustomRequestHeader as oi, getFetch as de, CacheManager as li, path as ui, client as K, isArray as it, isString as ne, 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 Ge, debounce as hi, isEqual as Ur, cloneDeep as fi, isArray as ue, 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 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 se, 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";
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 Fe, JSONCopy as te, FieldTypes as ie, decamelizeKeys as $, CONTROL_BASE_TYPE as da, isPlainObject as jr, MultistageFillingItem as Ai, DisplayBoListItem as _i, TitleConfigEnum as ve, 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";
15
- import we from "decimal.js";
15
+ import _e from "decimal.js";
16
16
  import Ji, { Toast as Ht } from "vant";
17
17
  import { useStore as Xi } from "vuex";
18
18
  function Yi(s, e) {
@@ -39,21 +39,21 @@ function Zi() {
39
39
  setPrintUrlList: (r) => {
40
40
  if (s === "Print" || s === "Preview" || !r.uId || r.data.form_process_param?.draft)
41
41
  return;
42
- const n = (r.data?.content?.button_groups ?? []).filter((q) => q.type === ya.PRINT)[0], o = r?.uId || r.data?.process_param.biz_key;
42
+ const n = (r.data?.content?.button_groups ?? []).filter((m) => m.type === ya.PRINT)[0], o = r?.uId || r.data?.process_param.biz_key;
43
43
  if (!n?.props.value || !o)
44
44
  return;
45
- const l = r.data.process_param || {}, { notice_id: u, process_instance_id: p, task_instance_id: d } = l, c = n.props.formKey && !n.props.formKeyList?.length ? [
45
+ const l = r.data.process_param || {}, { notice_id: u, process_instance_id: p, task_instance_id: d } = l, y = n.props.formKey && !n.props.formKeyList?.length ? [
46
46
  {
47
47
  formKey: n.props.formKey,
48
48
  formKeyName: "系统模版"
49
49
  }
50
50
  ] : n.props.formKeyList ?? [];
51
- Object.keys(l).length ? c?.forEach(
52
- (q) => {
53
- const y = {
54
- formKey: q.formKey,
51
+ Object.keys(l).length ? y?.forEach(
52
+ (m) => {
53
+ const c = {
54
+ formKey: m.formKey,
55
55
  printUrl: e({
56
- path: `/print/${r.data.app_id}/${q.formKey}`,
56
+ path: `/print/${r.data.app_id}/${m.formKey}`,
57
57
  query: {
58
58
  notice_id: u,
59
59
  process_instance_id: p,
@@ -63,20 +63,20 @@ function Zi() {
63
63
  }
64
64
  }).href
65
65
  };
66
- t.value.push(y);
66
+ t.value.push(c);
67
67
  }
68
- ) : c?.forEach(
69
- (q) => {
70
- const y = {
71
- formKey: q.formKey,
68
+ ) : y?.forEach(
69
+ (m) => {
70
+ const c = {
71
+ formKey: m.formKey,
72
72
  printUrl: e({
73
- path: `/print/${r.data.app_id}/${q.formKey}`,
73
+ path: `/print/${r.data.app_id}/${m.formKey}`,
74
74
  query: {
75
75
  uId: o
76
76
  }
77
77
  }).href
78
78
  };
79
- t.value.push(y);
79
+ t.value.push(c);
80
80
  }
81
81
  );
82
82
  }
@@ -10342,18 +10342,18 @@ const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10342
10342
  function un(s) {
10343
10343
  pa(ln, s);
10344
10344
  }
10345
- function Ae() {
10345
+ function Ie() {
10346
10346
  return Ys("context");
10347
10347
  }
10348
10348
  function nt(s, e) {
10349
- const t = Ae(), a = M(t);
10349
+ const t = Ie(), a = M(t);
10350
10350
  !a || (a?.on(s, e), console.log("ceshi"), xr(() => {
10351
10351
  a?.off(s, e);
10352
10352
  }));
10353
10353
  }
10354
10354
  function Kr(s) {
10355
10355
  var e;
10356
- const t = Ae();
10356
+ const t = Ie();
10357
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);
@@ -10376,37 +10376,37 @@ function Qr() {
10376
10376
  };
10377
10377
  }
10378
10378
  function Jr(s, e, t) {
10379
- const a = Ae(), r = G(() => {
10379
+ const a = Ie(), r = U(() => {
10380
10380
  var f;
10381
10381
  return (f = M(a)) == null ? void 0 : f.getAction().actionUtils;
10382
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
- }), ti(t) && ke(t, (f, v) => {
10385
+ }), ti(t) && Me(t, (f, v) => {
10386
10386
  !(a != null && a.value.isMounted) || Array.isArray(f) && Array.isArray(v) && f.length === v.length || o();
10387
10387
  });
10388
- const l = G(() => i.value.defaultState === "readonly"), u = 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 && !l.value), y = G(() => p.value == 5), b = G(() => e !== void 0), T = (f) => {
10388
+ const l = U(() => i.value.defaultState === "readonly"), u = U(() => i.value.placeholder), p = U(() => s?.pageStatus), d = U(() => [1, 3, 5].includes(p.value)), y = U(() => p.value === 2), m = U(() => p.value === 2 && !l.value), c = U(() => p.value == 5), T = U(() => e !== void 0), q = (f) => {
10389
10389
  var v;
10390
10390
  const O = (v = M(a)) == null ? void 0 : v.getState(s.id, e);
10391
10391
  Ur(O, f) || a == null || a.value.setState(s.id, f, e);
10392
- }, m = () => {
10393
- var f, v, O, E, h;
10394
- const S = (f = M(a)) == null ? void 0 : f.getState("DISPLAY"), _ = (v = M(s).props) != null ? v : {};
10395
- if (_.dataBind !== void 0)
10396
- if (_.dataBind instanceof Oi) {
10397
- const { dataCode: P, fieldCode: w } = _.dataBind;
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);
10392
+ }, _ = () => {
10393
+ var f, v, O, D, h;
10394
+ const b = (f = M(a)) == null ? void 0 : f.getState("DISPLAY"), w = (v = M(s).props) != null ? v : {};
10395
+ if (w.dataBind !== void 0)
10396
+ if (w.dataBind instanceof Oi) {
10397
+ const { dataCode: P, fieldCode: A } = w.dataBind;
10398
+ e === void 0 ? (O = b[P]) != null && O[A] && (b[P][A] = void 0) : (h = (D = b[P]) == null ? void 0 : D[e]) != null && h[A] && (b[P][e][A] = void 0);
10399
10399
  } else
10400
- _.dataBind instanceof wi && (e === void 0 ? Object.keys(_.dataBind).map((P) => {
10401
- var w;
10402
- const I = _.dataBind[P], { dataCode: C, fieldCode: R } = I;
10403
- (w = S[C]) != null && w[R] && (S[C][R] = void 0);
10404
- }) : Object.keys(_.dataBind).map((P) => {
10405
- var w, I;
10406
- const C = _.dataBind[P], { dataCode: R, fieldCode: V } = C;
10407
- (I = (w = S[R]) == null ? void 0 : w[e]) != null && I[V] && (S[R][e][V] = void 0);
10400
+ w.dataBind instanceof wi && (e === void 0 ? Object.keys(w.dataBind).map((P) => {
10401
+ var A;
10402
+ const I = w.dataBind[P], { dataCode: C, fieldCode: R } = I;
10403
+ (A = b[C]) != null && A[R] && (b[C][R] = void 0);
10404
+ }) : Object.keys(w.dataBind).map((P) => {
10405
+ var A, I;
10406
+ const C = w.dataBind[P], { dataCode: R, fieldCode: V } = C;
10407
+ (I = (A = b[R]) == null ? void 0 : A[e]) != null && I[V] && (b[R][e][V] = void 0);
10408
10408
  }));
10409
- }, A = G(
10409
+ }, S = U(
10410
10410
  () => s.rules
10411
10411
  );
10412
10412
  return {
@@ -10414,22 +10414,22 @@ function Jr(s, e, t) {
10414
10414
  utils: r,
10415
10415
  isDisabled: l,
10416
10416
  placeholder: u,
10417
- updateValue: T,
10418
- clearDisplay: m,
10417
+ updateValue: q,
10418
+ clearDisplay: _,
10419
10419
  pageStatus: p,
10420
10420
  isReadonly: d,
10421
- isEditable: c,
10422
- rules: A,
10421
+ isEditable: y,
10422
+ rules: S,
10423
10423
  formItemRef: n,
10424
10424
  formItemValidate: o,
10425
- isPrint: y,
10426
- isSubtable: b,
10427
- isMobileEditable: q,
10425
+ isPrint: c,
10426
+ isSubtable: T,
10427
+ isMobileEditable: m,
10428
10428
  props: i
10429
10429
  };
10430
10430
  }
10431
10431
  function Xr(s) {
10432
- const e = M(Ae());
10432
+ const e = M(Ie());
10433
10433
  e != null && e.isMounted ? s() : nt("engine-mounted", s);
10434
10434
  }
10435
10435
  function Yr(s, e) {
@@ -10438,11 +10438,11 @@ function Yr(s, e) {
10438
10438
  });
10439
10439
  }
10440
10440
  function pn(s) {
10441
- const e = Ae(), t = Z(!1);
10441
+ const e = Ie(), t = Z(!1);
10442
10442
  return {
10443
10443
  isFocusing: t,
10444
10444
  onBlur: (a, r) => {
10445
- Oe(() => {
10445
+ Ae(() => {
10446
10446
  t.value = !1;
10447
10447
  }), e?.value.emit("blur", {
10448
10448
  instance: s.instance,
@@ -10479,52 +10479,52 @@ function pn(s) {
10479
10479
  }
10480
10480
  function dn(s) {
10481
10481
  const e = Z("zh");
10482
- return { $t: (t, a) => Ne(s, [M(e), t], a), locale: e };
10482
+ return { $t: (t, a) => Ge(s, [M(e), t], a), locale: e };
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
10486
  const e = Z([]), { updateValue: t, isEditable: a, props: r, isSubtable: i, context: n } = Jr(
10487
10487
  s.instance,
10488
10488
  s.rowIndex
10489
- ), o = Z(!1), l = Z(), u = G(
10489
+ ), o = Z(!1), l = Z(), u = U(
10490
10490
  () => s.instance.type === "select-multiple" || s.instance.type === "checkbox"
10491
- ), p = G(
10491
+ ), p = U(
10492
10492
  () => s.instance.type === "select-multiple" || s.instance.type === "select"
10493
- ), d = G(() => r.value.optionConfig === "custom");
10493
+ ), d = U(() => r.value.optionConfig === "custom");
10494
10494
  if (d.value) {
10495
10495
  const h = r.value.options;
10496
10496
  if (e.value = h, s.instance.parent) {
10497
- const S = n?.value.assertInstance(
10497
+ const b = n?.value.assertInstance(
10498
10498
  s.instance.parent,
10499
10499
  g.SIMPLE_SEARCH
10500
- ), _ = s.instance.props.dataBind.fieldCode === "process_status", P = !(n != null && n.value.externalParams.data.data_model.data_field_list.some(
10501
- (w) => w.field_code === "process_instance_id"
10500
+ ), w = s.instance.props.dataBind.fieldCode === "process_status", P = !(n != null && n.value.externalParams.data.data_model.data_field_list.some(
10501
+ (A) => A.field_code === "process_instance_id"
10502
10502
  ));
10503
- S && _ && P && (e.value = h.filter(
10504
- (w) => [Kt.DRAFT, Kt.COMPLETE].includes(
10505
- w.value
10503
+ b && w && P && (e.value = h.filter(
10504
+ (A) => [Kt.DRAFT, Kt.COMPLETE].includes(
10505
+ A.value
10506
10506
  )
10507
10507
  ));
10508
10508
  }
10509
10509
  }
10510
- const c = Z(!1), q = hi(async (h) => {
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", {
10510
+ const y = Z(!1), m = hi(async (h) => {
10511
+ d.value || ((s.instance.type === "select" || s.instance.type === "select-multiple") && !h && !r.value.defaultShowOptions ? e.value = [] : (y.value = !0, await n?.value.emit("search", {
10512
10512
  instance: s.instance,
10513
10513
  value: h,
10514
10514
  rowIndex: s.rowIndex,
10515
10515
  options: {
10516
- displayOptions: m.value
10516
+ displayOptions: _.value
10517
10517
  }
10518
- }), await Oe(), c.value = !1));
10519
- }, 400), y = () => Array.isArray(s.value) ? s.value.every(
10518
+ }), await Ae(), y.value = !1));
10519
+ }, 400), c = () => Array.isArray(s.value) ? s.value.every(
10520
10520
  (h) => {
10521
- var S;
10522
- return (S = s.instance.props.options) == null ? void 0 : S.find((_) => _.value === h);
10521
+ var b;
10522
+ return (b = s.instance.props.options) == null ? void 0 : b.find((w) => w.value === h);
10523
10523
  }
10524
10524
  ) : s.instance.props.options.some(
10525
10525
  (h) => h.value === s.value
10526
- ), b = async (h, S = !1) => {
10527
- if (y() && !S) {
10526
+ ), T = async (h, b = !1) => {
10527
+ if (c() && !b) {
10528
10528
  e.value = s.instance.props.options;
10529
10529
  return;
10530
10530
  }
@@ -10539,101 +10539,101 @@ function cn(s) {
10539
10539
  }
10540
10540
  }
10541
10541
  });
10542
- }, T = (h) => {
10543
- o.value = !0, t(h), Oe(() => {
10542
+ }, q = (h) => {
10543
+ o.value = !0, t(h), Ae(() => {
10544
10544
  o.value = !1;
10545
10545
  });
10546
10546
  };
10547
- ke(
10547
+ Me(
10548
10548
  () => r.value.options,
10549
10549
  (h) => {
10550
10550
  e.value = h;
10551
10551
  }
10552
10552
  );
10553
- const m = G(() => {
10553
+ const _ = U(() => {
10554
10554
  var h;
10555
- const S = [];
10555
+ const b = [];
10556
10556
  if (s.value && ((h = e.value) != null && h.length))
10557
- for (const _ of e.value)
10558
- Array.isArray(s.value) ? s.value.includes(_.id) && S.push(_) : _.id === s.value && S.push(_);
10559
- return S;
10560
- }), A = (h, S) => S && (Array.isArray(h) ? h.includes(S) : h === S), f = Z([]);
10561
- ke(
10557
+ for (const w of e.value)
10558
+ Array.isArray(s.value) ? s.value.includes(w.id) && b.push(w) : w.id === s.value && b.push(w);
10559
+ return b;
10560
+ }), S = (h, b) => b && (Array.isArray(h) ? h.includes(b) : h === b), f = Z([]);
10561
+ Me(
10562
10562
  [e, () => s.value],
10563
10563
  () => {
10564
- var h, S, _, P;
10564
+ var h, b, w, P;
10565
10565
  if (s.instance.type === "amount")
10566
- f.value = (S = (h = M(e)) == null ? void 0 : h.filter((w) => {
10566
+ f.value = (b = (h = M(e)) == null ? void 0 : h.filter((A) => {
10567
10567
  var I;
10568
- return A((I = s.value) == null ? void 0 : I.currency, w.value);
10569
- })) != null ? S : [];
10568
+ return S((I = s.value) == null ? void 0 : I.currency, A.value);
10569
+ })) != null ? b : [];
10570
10570
  else {
10571
10571
  if (!s.value) {
10572
10572
  f.value = [];
10573
10573
  return;
10574
10574
  }
10575
- f.value = (P = (_ = M(e)) == null ? void 0 : _.filter((R) => A(s.value, R.value))) != null ? P : [];
10576
- const w = Array.isArray(s.value) ? s.value : [s.value], I = f.value.map(
10575
+ f.value = (P = (w = M(e)) == null ? void 0 : w.filter((R) => S(s.value, R.value))) != null ? P : [];
10576
+ const A = Array.isArray(s.value) ? s.value : [s.value], I = f.value.map(
10577
10577
  (R) => R.value
10578
10578
  );
10579
10579
  let C = 0;
10580
- for (; C < w.length; )
10581
- I.includes(w[C]) || (f.value.splice(
10580
+ for (; C < A.length; )
10581
+ I.includes(A[C]) || (f.value.splice(
10582
10582
  C,
10583
10583
  0,
10584
- new qi({ label: w[C], value: w[C] })
10584
+ new qi({ label: A[C], value: A[C] })
10585
10585
  ), C < f.value.length - 1 && C++), C++;
10586
10586
  }
10587
10587
  },
10588
10588
  { immediate: !0 }
10589
- ), ke(
10589
+ ), Me(
10590
10590
  () => s.value,
10591
10591
  (h) => {
10592
- var S;
10592
+ var b;
10593
10593
  if (!o.value && s.instance.type !== "amount") {
10594
10594
  if (K.isPc() && (s.instance.type === "radio" || s.instance.type === "checkbox") && !s.rowIndex && s.rowIndex !== 0)
10595
10595
  return;
10596
- s.value && b(
10597
- u.value ? (S = s.value) == null ? void 0 : S.join(",") : s.value
10596
+ s.value && T(
10597
+ u.value ? (b = s.value) == null ? void 0 : b.join(",") : s.value
10598
10598
  );
10599
10599
  }
10600
- E(), l.value = M(f).map((_) => _.label);
10600
+ D(), l.value = M(f).map((w) => w.label);
10601
10601
  }
10602
10602
  );
10603
10603
  const v = () => {
10604
10604
  var h;
10605
- p.value && b(
10605
+ p.value && T(
10606
10606
  u.value ? (h = s.value) == null ? void 0 : h.join(",") : s.value,
10607
10607
  !0
10608
10608
  );
10609
10609
  };
10610
- Yr(s.instance, v), ke(
10610
+ Yr(s.instance, v), Me(
10611
10611
  f,
10612
10612
  () => {
10613
10613
  l.value = M(f).map((h) => h.label);
10614
10614
  },
10615
10615
  { deep: !0, immediate: !0 }
10616
10616
  ), Xr(() => {
10617
- var h, S;
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" && (l.value = Array.isArray(s.display) ? s.display : [s.display]) : b(
10617
+ var h, b;
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" && (l.value = Array.isArray(s.display) ? s.display : [s.display]) : T(
10619
10619
  Array.isArray(s.value) ? s.value.join(",") : s.value
10620
- )), a.value && ((S = (h = s.instance) == null ? void 0 : h.props) != null && S.defaultShowOptions) && ((Array.isArray(s.value) ? s.value.length : s.value) && p.value ? b(
10620
+ )), a.value && ((b = (h = s.instance) == null ? void 0 : h.props) != null && b.defaultShowOptions) && ((Array.isArray(s.value) ? s.value.length : s.value) && p.value ? T(
10621
10621
  Array.isArray(s.value) ? s.value.join(",") : s.value
10622
- ) : q(""));
10622
+ ) : m(""));
10623
10623
  });
10624
10624
  const O = (h) => {
10625
- h && !d.value && q("");
10626
- }, E = () => {
10625
+ h && !d.value && m("");
10626
+ }, D = () => {
10627
10627
  var h;
10628
10628
  if (!(d.value || n?.value.isMounted) && (s.instance.type === "select" || s.instance.type === "select-multiple") && s.value && s.display) {
10629
10629
  if (Array.isArray(s.value)) {
10630
- const S = [];
10631
- for (let _ = 0; _ < s.value.length; _++)
10632
- s.display[_] && S.push({
10633
- label: (h = s.display) == null ? void 0 : h[_],
10634
- value: s.value[_]
10630
+ const b = [];
10631
+ for (let w = 0; w < s.value.length; w++)
10632
+ s.display[w] && b.push({
10633
+ label: (h = s.display) == null ? void 0 : h[w],
10634
+ value: s.value[w]
10635
10635
  });
10636
- e.value = S;
10636
+ e.value = b;
10637
10637
  } else
10638
10638
  e.value = [
10639
10639
  {
@@ -10644,15 +10644,15 @@ function cn(s) {
10644
10644
  l.value = Array.isArray(s.display) ? s.display : [s.display];
10645
10645
  }
10646
10646
  };
10647
- return i.value && E(), {
10647
+ return i.value && D(), {
10648
10648
  options: e,
10649
- searchHandle: q,
10650
- searchLoading: c,
10649
+ searchHandle: m,
10650
+ searchLoading: y,
10651
10651
  readerValue: l,
10652
10652
  readOnlyOptions: f,
10653
10653
  filterOption: d,
10654
- getDisplay: b,
10655
- updateValueChange: T,
10654
+ getDisplay: T,
10655
+ updateValueChange: q,
10656
10656
  isChange: o,
10657
10657
  dropdownVisibleChange: O
10658
10658
  };
@@ -10666,7 +10666,7 @@ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10666
10666
  getHttp: yn,
10667
10667
  onEngineEvent: nt,
10668
10668
  useBaseForm: Jr,
10669
- useEngine: Ae,
10669
+ useEngine: Ie,
10670
10670
  useEngineMounted: Xr,
10671
10671
  useEngineProvider: un,
10672
10672
  useForceUpdate: Yr,
@@ -10686,9 +10686,9 @@ var ha = { exports: {} }, Zr = function(e, t) {
10686
10686
  r[i] = arguments[i];
10687
10687
  return e.apply(t, r);
10688
10688
  };
10689
- }, vn = Zr, _e = Object.prototype.toString;
10689
+ }, vn = Zr, Ce = Object.prototype.toString;
10690
10690
  function es(s) {
10691
- return _e.call(s) === "[object Array]";
10691
+ return Ce.call(s) === "[object Array]";
10692
10692
  }
10693
10693
  function Wt(s) {
10694
10694
  return typeof s > "u";
@@ -10697,7 +10697,7 @@ function mn(s) {
10697
10697
  return s !== null && !Wt(s) && s.constructor !== null && !Wt(s.constructor) && typeof s.constructor.isBuffer == "function" && s.constructor.isBuffer(s);
10698
10698
  }
10699
10699
  function Pn(s) {
10700
- return _e.call(s) === "[object ArrayBuffer]";
10700
+ return Ce.call(s) === "[object ArrayBuffer]";
10701
10701
  }
10702
10702
  function gn(s) {
10703
10703
  return typeof FormData < "u" && s instanceof FormData;
@@ -10716,16 +10716,16 @@ function ts(s) {
10716
10716
  return s !== null && typeof s == "object";
10717
10717
  }
10718
10718
  function qn(s) {
10719
- return _e.call(s) === "[object Date]";
10719
+ return Ce.call(s) === "[object Date]";
10720
10720
  }
10721
10721
  function On(s) {
10722
- return _e.call(s) === "[object File]";
10722
+ return Ce.call(s) === "[object File]";
10723
10723
  }
10724
10724
  function wn(s) {
10725
- return _e.call(s) === "[object Blob]";
10725
+ return Ce.call(s) === "[object Blob]";
10726
10726
  }
10727
10727
  function as(s) {
10728
- return _e.call(s) === "[object Function]";
10728
+ return Ce.call(s) === "[object Function]";
10729
10729
  }
10730
10730
  function An(s) {
10731
10731
  return ts(s) && as(s.pipe);
@@ -10793,7 +10793,7 @@ var ee = {
10793
10793
  deepMerge: Qt,
10794
10794
  extend: Vn,
10795
10795
  trim: In
10796
- }, ge = ee;
10796
+ }, be = 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
  }
@@ -10803,13 +10803,13 @@ var ss = function(e, t, a) {
10803
10803
  var r;
10804
10804
  if (a)
10805
10805
  r = a(t);
10806
- else if (ge.isURLSearchParams(t))
10806
+ else if (be.isURLSearchParams(t))
10807
10807
  r = t.toString();
10808
10808
  else {
10809
10809
  var i = [];
10810
- ge.forEach(t, function(l, u) {
10811
- l === null || typeof l > "u" || (ge.isArray(l) ? u = u + "[]" : l = [l], ge.forEach(l, function(d) {
10812
- ge.isDate(d) ? d = d.toISOString() : ge.isObject(d) && (d = JSON.stringify(d)), i.push(Va(u) + "=" + Va(d));
10810
+ be.forEach(t, function(l, u) {
10811
+ l === null || typeof l > "u" || (be.isArray(l) ? u = u + "[]" : l = [l], be.forEach(l, function(d) {
10812
+ be.isDate(d) ? d = d.toISOString() : be.isObject(d) && (d = JSON.stringify(d)), i.push(Va(u) + "=" + Va(d));
10813
10813
  }));
10814
10814
  }), r = i.join("&");
10815
10815
  }
@@ -11043,54 +11043,54 @@ function Ga() {
11043
11043
  var s = ee, e = Fn(), t = ss, a = Un(), r = Gn(), i = $n(), n = ns();
11044
11044
  return Tt = function(l) {
11045
11045
  return new Promise(function(p, d) {
11046
- var c = l.data, q = l.headers;
11047
- s.isFormData(c) && delete q["Content-Type"];
11048
- var y = new XMLHttpRequest();
11046
+ var y = l.data, m = l.headers;
11047
+ s.isFormData(y) && delete m["Content-Type"];
11048
+ var c = new XMLHttpRequest();
11049
11049
  if (l.auth) {
11050
- var b = l.auth.username || "", T = l.auth.password || "";
11051
- q.Authorization = "Basic " + btoa(b + ":" + T);
11050
+ var T = l.auth.username || "", q = l.auth.password || "";
11051
+ m.Authorization = "Basic " + btoa(T + ":" + q);
11052
11052
  }
11053
- var m = a(l.baseURL, l.url);
11054
- if (y.open(l.method.toUpperCase(), t(m, l.params, l.paramsSerializer), !0), y.timeout = l.timeout, y.onreadystatechange = function() {
11055
- if (!(!y || y.readyState !== 4) && !(y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0))) {
11056
- var O = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, E = !l.responseType || l.responseType === "text" ? y.responseText : y.response, h = {
11057
- data: E,
11058
- status: y.status,
11059
- statusText: y.statusText,
11053
+ var _ = a(l.baseURL, l.url);
11054
+ if (c.open(l.method.toUpperCase(), t(_, l.params, l.paramsSerializer), !0), c.timeout = l.timeout, c.onreadystatechange = function() {
11055
+ if (!(!c || c.readyState !== 4) && !(c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0))) {
11056
+ var O = "getAllResponseHeaders" in c ? r(c.getAllResponseHeaders()) : null, D = !l.responseType || l.responseType === "text" ? c.responseText : c.response, h = {
11057
+ data: D,
11058
+ status: c.status,
11059
+ statusText: c.statusText,
11060
11060
  headers: O,
11061
11061
  config: l,
11062
- request: y
11062
+ request: c
11063
11063
  };
11064
- e(p, d, h), y = null;
11064
+ e(p, d, h), c = null;
11065
11065
  }
11066
- }, y.onabort = function() {
11067
- y && (d(n("Request aborted", l, "ECONNABORTED", y)), y = null);
11068
- }, y.onerror = function() {
11069
- d(n("Network Error", l, null, y)), y = null;
11070
- }, y.ontimeout = function() {
11066
+ }, c.onabort = function() {
11067
+ c && (d(n("Request aborted", l, "ECONNABORTED", c)), c = null);
11068
+ }, c.onerror = function() {
11069
+ d(n("Network Error", l, null, c)), c = null;
11070
+ }, c.ontimeout = function() {
11071
11071
  var O = "timeout of " + l.timeout + "ms exceeded";
11072
11072
  l.timeoutErrorMessage && (O = l.timeoutErrorMessage), d(n(
11073
11073
  O,
11074
11074
  l,
11075
11075
  "ECONNABORTED",
11076
- y
11077
- )), y = null;
11076
+ c
11077
+ )), c = null;
11078
11078
  }, s.isStandardBrowserEnv()) {
11079
- var A = jn(), f = (l.withCredentials || i(m)) && l.xsrfCookieName ? A.read(l.xsrfCookieName) : void 0;
11080
- f && (q[l.xsrfHeaderName] = f);
11079
+ var S = jn(), f = (l.withCredentials || i(_)) && l.xsrfCookieName ? S.read(l.xsrfCookieName) : void 0;
11080
+ f && (m[l.xsrfHeaderName] = f);
11081
11081
  }
11082
- if ("setRequestHeader" in y && s.forEach(q, function(O, E) {
11083
- typeof c > "u" && E.toLowerCase() === "content-type" ? delete q[E] : y.setRequestHeader(E, O);
11084
- }), s.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), l.responseType)
11082
+ if ("setRequestHeader" in c && s.forEach(m, function(O, D) {
11083
+ typeof y > "u" && D.toLowerCase() === "content-type" ? delete m[D] : c.setRequestHeader(D, O);
11084
+ }), s.isUndefined(l.withCredentials) || (c.withCredentials = !!l.withCredentials), l.responseType)
11085
11085
  try {
11086
- y.responseType = l.responseType;
11086
+ c.responseType = l.responseType;
11087
11087
  } catch (v) {
11088
11088
  if (l.responseType !== "json")
11089
11089
  throw v;
11090
11090
  }
11091
- typeof l.onDownloadProgress == "function" && y.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", l.onUploadProgress), l.cancelToken && l.cancelToken.promise.then(function(O) {
11092
- y && (y.abort(), d(O), y = null);
11093
- }), c === void 0 && (c = null), y.send(c);
11091
+ typeof l.onDownloadProgress == "function" && c.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", l.onUploadProgress), l.cancelToken && l.cancelToken.promise.then(function(O) {
11092
+ c && (c.abort(), d(O), c = null);
11093
+ }), y === void 0 && (y = null), c.send(y);
11094
11094
  });
11095
11095
  }, Tt;
11096
11096
  }
@@ -11211,13 +11211,13 @@ var Qn = function(e) {
11211
11211
  typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
11212
11212
  }), a;
11213
11213
  }, rt = ee, Jn = ss, za = Dn, Xn = Qn, us = ls;
11214
- function Ue(s) {
11214
+ function $e(s) {
11215
11215
  this.defaults = s, this.interceptors = {
11216
11216
  request: new za(),
11217
11217
  response: new za()
11218
11218
  };
11219
11219
  }
11220
- Ue.prototype.request = function(e) {
11220
+ $e.prototype.request = function(e) {
11221
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) {
@@ -11228,11 +11228,11 @@ Ue.prototype.request = function(e) {
11228
11228
  a = a.then(t.shift(), t.shift());
11229
11229
  return a;
11230
11230
  };
11231
- Ue.prototype.getUri = function(e) {
11231
+ $e.prototype.getUri = function(e) {
11232
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
- Ue.prototype[e] = function(t, a) {
11235
+ $e.prototype[e] = function(t, a) {
11236
11236
  return this.request(rt.merge(a || {}, {
11237
11237
  method: e,
11238
11238
  url: t
@@ -11240,7 +11240,7 @@ rt.forEach(["delete", "get", "head", "options"], function(e) {
11240
11240
  };
11241
11241
  });
11242
11242
  rt.forEach(["post", "put", "patch"], function(e) {
11243
- Ue.prototype[e] = function(t, a, r) {
11243
+ $e.prototype[e] = function(t, a, r) {
11244
11244
  return this.request(rt.merge(r || {}, {
11245
11245
  method: e,
11246
11246
  url: t,
@@ -11248,7 +11248,7 @@ rt.forEach(["post", "put", "patch"], function(e) {
11248
11248
  }));
11249
11249
  };
11250
11250
  });
11251
- var Yn = Ue, wt, Ka;
11251
+ var Yn = $e, wt, Ka;
11252
11252
  function ps() {
11253
11253
  if (Ka)
11254
11254
  return wt;
@@ -11304,23 +11304,23 @@ 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 oe = ds(ro);
11308
- oe.Axios = Xe;
11309
- oe.create = function(e) {
11310
- return ds(ao(oe.defaults, e));
11307
+ var le = ds(ro);
11308
+ le.Axios = Xe;
11309
+ le.create = function(e) {
11310
+ return ds(ao(le.defaults, e));
11311
11311
  };
11312
- oe.Cancel = ps();
11313
- oe.CancelToken = Zn();
11314
- oe.isCancel = is();
11315
- oe.all = function(e) {
11312
+ le.Cancel = ps();
11313
+ le.CancelToken = Zn();
11314
+ le.isCancel = is();
11315
+ le.all = function(e) {
11316
11316
  return Promise.all(e);
11317
11317
  };
11318
- oe.spread = eo();
11319
- ha.exports = oe;
11320
- ha.exports.default = oe;
11318
+ le.spread = eo();
11319
+ ha.exports = le;
11320
+ ha.exports.default = le;
11321
11321
  var so = ha.exports, io = so;
11322
11322
  const no = /* @__PURE__ */ fn(io);
11323
- function qe(s) {
11323
+ function we(s) {
11324
11324
  return Object.assign(
11325
11325
  {
11326
11326
  vue: Mr,
@@ -11331,7 +11331,7 @@ function qe(s) {
11331
11331
  moment: Gr,
11332
11332
  lodash: yi,
11333
11333
  axios: no,
11334
- decimal: we,
11334
+ decimal: _e,
11335
11335
  "@byteluck-fe/custom-control-sdk/main": on,
11336
11336
  "@byteluck-fe/custom-control-sdk/runtime": hn,
11337
11337
  "@byteluck-fe/global-shared": jt,
@@ -11419,16 +11419,16 @@ const Ya = [
11419
11419
  Ya.concat(
11420
11420
  Ya.map((s) => s.toLocaleUpperCase())
11421
11421
  );
11422
- let Se = null;
11422
+ let Te = null;
11423
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();
11424
+ Te || (Te = document.createElement("input"), Te.style.display = "none", document.body.appendChild(Te)), document.activeElement?.blur?.(), window.tinyMCE?.activeEditor && window.tinyMCE?.activeEditor.save?.(), document.body.click(), Te.focus(), Te.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) {
11428
11428
  return e?.length ? e.find((t) => t.ctrl_id === s)?.ctrl_behavior !== z.HIDDEN : !0;
11429
11429
  }
11430
11430
  function er(s, e, t, a) {
11431
- return s.assertInstance(t, g.SCORE) && e === t.props.defaultValue ? !0 : s.assertInstance(t, g.CALC) ? a === "unit" || a === "result" && e === 0 : s.assertInstance(t, g.AMOUNT) && a === "currency" ? !0 : it(e) || ie(e) ? e.length === 0 : !1;
11431
+ return s.assertInstance(t, g.SCORE) && e === t.props.defaultValue ? !0 : s.assertInstance(t, g.CALC) ? a === "unit" || a === "result" && e === 0 : s.assertInstance(t, g.AMOUNT) && a === "currency" ? !0 : it(e) || ne(e) ? e.length === 0 : !1;
11432
11432
  }
11433
11433
  function oo(s) {
11434
11434
  return s.city === "" && s.district === "" && s.province === "";
@@ -11436,10 +11436,10 @@ function oo(s) {
11436
11436
  function je(s, e) {
11437
11437
  let t = s;
11438
11438
  switch (e) {
11439
- case se.ADDRESS:
11440
- t = s === void 0 || oo(s) ? "" : j(s);
11439
+ case ie.ADDRESS:
11440
+ t = s === void 0 || oo(s) ? "" : $(s);
11441
11441
  break;
11442
- case se.BIGINT:
11442
+ case ie.BIGINT:
11443
11443
  t = s || s === 0 || s === "0" ? Number(s) : null;
11444
11444
  break;
11445
11445
  }
@@ -11448,90 +11448,90 @@ function je(s, e) {
11448
11448
  function ys(s, e, t, a) {
11449
11449
  const r = bs(s), i = [], n = [];
11450
11450
  Object.keys(s.getControlIdMapping()).map((d) => {
11451
- const c = s.getControlIdMapping()[d], q = s.getInstance(d);
11452
- if (c.children === void 0) {
11453
- const y = s.getState(e);
11451
+ const y = s.getControlIdMapping()[d], m = s.getInstance(d);
11452
+ if (y.children === void 0) {
11453
+ const c = s.getState(e);
11454
11454
  if (!Za(d, a))
11455
11455
  return;
11456
- if (xe(c.dataBind)) {
11457
- const T = c.dataBind.fieldCode, m = c.dataBind.fieldType, A = {
11458
- code: T,
11456
+ if (Fe(y.dataBind)) {
11457
+ const q = y.dataBind.fieldCode, _ = y.dataBind.fieldType, S = {
11458
+ code: q,
11459
11459
  field_type: "",
11460
11460
  value: je(
11461
- y[d],
11462
- m || q.fieldType
11461
+ c[d],
11462
+ _ || m.fieldType
11463
11463
  )
11464
11464
  };
11465
- i.push(A);
11465
+ i.push(S);
11466
11466
  } else
11467
- Object.keys(c.dataBind).map((T) => {
11468
- const m = c.dataBind[T], A = m.fieldCode, f = m.fieldType;
11467
+ Object.keys(y.dataBind).map((q) => {
11468
+ const _ = y.dataBind[q], S = _.fieldCode, f = _.fieldType;
11469
11469
  let v;
11470
- const O = y[d];
11470
+ const O = c[d];
11471
11471
  try {
11472
11472
  v = je(
11473
- O[T],
11474
- f || q.fieldType
11473
+ O[q],
11474
+ f || m.fieldType
11475
11475
  );
11476
11476
  } catch {
11477
11477
  debugger;
11478
11478
  }
11479
- const E = {
11480
- code: A,
11479
+ const D = {
11480
+ code: S,
11481
11481
  field_type: "",
11482
11482
  value: v
11483
11483
  };
11484
- i.push(E);
11484
+ i.push(D);
11485
11485
  });
11486
11486
  } else {
11487
- const y = !!s?.externalParams?.uId && K.isPc(), b = s.rawStore.DELETE_IDS, T = s.rawStore.UPDATE_IDS, m = {
11488
- data_code: c.dataBind.dataCode.toString(),
11489
- delete_ids: b[d] ?? [],
11487
+ const c = !!s?.externalParams?.uId && K.isPc(), T = s.rawStore.DELETE_IDS, q = s.rawStore.UPDATE_IDS, _ = {
11488
+ data_code: y.dataBind.dataCode.toString(),
11489
+ delete_ids: T[d] ?? [],
11490
11490
  values: []
11491
11491
  };
11492
- let A = s.getState(d);
11493
- y && (A = A.filter((f) => {
11492
+ let S = s.getState(d);
11493
+ c && (S = S.filter((f) => {
11494
11494
  const v = String(f.uid ?? "");
11495
- return (T[d] ?? []).includes(v) || v.startsWith("new:uid");
11496
- })), A.map((f) => {
11495
+ return (q[d] ?? []).includes(v) || v.startsWith("new:uid");
11496
+ })), S.map((f) => {
11497
11497
  let v = String(f.uid ?? "");
11498
11498
  v.startsWith("new:uid") && (v = "");
11499
11499
  const O = {
11500
11500
  row_data: [],
11501
11501
  uid: v,
11502
11502
  subtable_data_set: []
11503
- }, E = [];
11504
- Object.keys(c.children ?? {}).map((h) => {
11505
- const S = s.getInstance(h), _ = f[h], P = c.children[h].dataBind;
11503
+ }, D = [];
11504
+ Object.keys(y.children ?? {}).map((h) => {
11505
+ const b = s.getInstance(h), w = f[h], P = y.children[h].dataBind;
11506
11506
  if (Za(h, a))
11507
- if (xe(P)) {
11508
- const I = P.fieldCode, C = P.fieldType || S.fieldType, R = {
11507
+ if (Fe(P)) {
11508
+ const I = P.fieldCode, C = P.fieldType || b.fieldType, R = {
11509
11509
  code: I,
11510
11510
  value: je(
11511
- _,
11512
- C || S.fieldType
11511
+ w,
11512
+ C || b.fieldType
11513
11513
  )
11514
11514
  };
11515
- er(s, R.value, S) && E.push(I), O.row_data.push(R);
11515
+ er(s, R.value, b) && D.push(I), O.row_data.push(R);
11516
11516
  } else
11517
- xe(P) || Object.keys(P).map((I) => {
11518
- const C = P[I].fieldCode, R = P[I].fieldType || S.fieldType, V = {
11517
+ Fe(P) || Object.keys(P).map((I) => {
11518
+ const C = P[I].fieldCode, R = P[I].fieldType || b.fieldType, V = {
11519
11519
  code: C,
11520
11520
  value: je(
11521
- _[I],
11522
- R || S.fieldType
11521
+ w[I],
11522
+ R || b.fieldType
11523
11523
  )
11524
11524
  };
11525
- er(s, V.value, S, I) && E.push(C), O.row_data.push(V);
11525
+ er(s, V.value, b, I) && D.push(C), O.row_data.push(V);
11526
11526
  });
11527
- }), !(!O.uid && E.length === O.row_data.length) && (f.virtualStore && (f.virtualStore.data_set.values.map(
11527
+ }), !(!O.uid && D.length === O.row_data.length) && (f.virtualStore && (f.virtualStore.data_set.values.map(
11528
11528
  (h) => {
11529
11529
  O.row_data.find(
11530
- (_) => _.code === h.code
11530
+ (w) => w.code === h.code
11531
11531
  ) === void 0 && O.row_data.push(h);
11532
11532
  }
11533
- ), O.subtable_data_set = f.virtualStore.subtable_data_set), m.values?.push(O));
11534
- }), n.push(m);
11533
+ ), O.subtable_data_set = f.virtualStore.subtable_data_set), _.values?.push(O));
11534
+ }), n.push(_);
11535
11535
  }
11536
11536
  });
11537
11537
  const o = s?.externalParams?.data;
@@ -11541,7 +11541,7 @@ function ys(s, e, t, a) {
11541
11541
  });
11542
11542
  const l = s?.externalParams?.url;
11543
11543
  l?.dataOrigin === "sublist" && i.find(
11544
- (c) => c.code === l?.relation_key
11544
+ (y) => y.code === l?.relation_key
11545
11545
  ) === void 0 && i.push({
11546
11546
  code: l?.relation_key,
11547
11547
  value: l?.relation_uid
@@ -11632,11 +11632,13 @@ const st = {
11632
11632
  });
11633
11633
  }
11634
11634
  };
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;
11635
+ var F = /* @__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))(F || {});
11636
+ function L() {
11637
+ return window.VUE_APP;
11638
+ }
11637
11639
  const lo = {
11638
11640
  install(s) {
11639
- L = s;
11641
+ window.VUE_APP = s;
11640
11642
  }
11641
11643
  };
11642
11644
  class pt {
@@ -11676,15 +11678,15 @@ class pt {
11676
11678
  const l = await e.call(this.service, {
11677
11679
  payload: t
11678
11680
  });
11679
- if (l.code === N.SUCCESS) {
11681
+ if (l.code === F.SUCCESS) {
11680
11682
  const u = a?.(l) ?? l;
11681
11683
  return r && (n?.(u), this.cacheResult[i] = u), u;
11682
11684
  } else
11683
- l.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L.config.globalProperties.$message.error({
11685
+ l.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L().config.globalProperties.$message.error({
11684
11686
  content: l.message
11685
11687
  }), setTimeout(() => {
11686
11688
  sessionStorage.setItem("flag", "true");
11687
- }, 3e3)) : L.config.globalProperties.$toast({ message: l.message })), o?.(l);
11689
+ }, 3e3)) : L().config.globalProperties.$toast({ message: l.message })), o?.(l);
11688
11690
  }
11689
11691
  }
11690
11692
  async function hs({
@@ -11697,57 +11699,57 @@ async function hs({
11697
11699
  }) {
11698
11700
  const n = he(), o = {}, l = {}, u = {}, p = {}, d = te(t);
11699
11701
  return delete d.process_param, await Promise.all(
11700
- Object.keys(s.getControlIdMapping()).map(async (c) => {
11701
- if (s.getControlIdMapping()[c].children !== void 0 && (!i || s.getControlIdMapping()[c]?.dataBind?.dataCode === i)) {
11702
- let q = JSON.parse(JSON.stringify(d.query_conditions));
11703
- const y = await s.emit("list-search", {
11704
- instance: s.getInstances(c)[0],
11705
- value: q
11702
+ Object.keys(s.getControlIdMapping()).map(async (y) => {
11703
+ if (s.getControlIdMapping()[y].children !== void 0 && (!i || s.getControlIdMapping()[y]?.dataBind?.dataCode === i)) {
11704
+ let m = JSON.parse(JSON.stringify(d.query_conditions));
11705
+ const c = await s.emit("list-search", {
11706
+ instance: s.getInstances(y)[0],
11707
+ value: m
11706
11708
  });
11707
- if (y.length > 0 && y[0].length > 0) {
11708
- const O = y[0];
11709
- O[0] !== void 0 && (q = O[0]);
11709
+ if (c.length > 0 && c[0].length > 0) {
11710
+ const O = c[0];
11711
+ O[0] !== void 0 && (m = O[0]);
11710
11712
  }
11711
- const b = s.getInstance(c)?.props, T = b.datasourceBind.dataCode;
11712
- d.sub_data_code = T, d.main_uid = e;
11713
- const A = {
11714
- orders: j(
11715
- b.datasourceBind.orders
11713
+ const T = s.getInstance(y)?.props, q = T.datasourceBind.dataCode;
11714
+ d.sub_data_code = q, d.main_uid = e;
11715
+ const S = {
11716
+ orders: $(
11717
+ T.datasourceBind.orders
11716
11718
  ),
11717
11719
  query: {
11718
11720
  ...d,
11719
- query_conditions: q
11721
+ query_conditions: m
11720
11722
  },
11721
11723
  page: {
11722
11724
  page_index: a?.page_index ?? 1,
11723
- page_size: a?.page_size ?? (b?.serverPagination ? 10 : 2e3)
11725
+ page_size: a?.page_size ?? (T?.serverPagination ? 10 : 2e3)
11724
11726
  }
11725
11727
  }, f = await n.default.ListDataSubtablePagePrivateV1ApiAppsPOST({
11726
- payload: A
11728
+ payload: S
11727
11729
  });
11728
- o[T] = [], l[T] = [], f.data?.rows?.map((O) => {
11729
- const E = O.row_data, h = {}, S = {};
11730
- E?.map((_) => {
11731
- h[_.code ?? "unknown"] = _.value, S[_.code ?? "unknown"] = _.display;
11732
- }), o[T].push(h), l[T].push(S);
11733
- }), p[c] = f.data?.rows;
11730
+ o[q] = [], l[q] = [], f.data?.rows?.map((O) => {
11731
+ const D = O.row_data, h = {}, b = {};
11732
+ D?.map((w) => {
11733
+ h[w.code ?? "unknown"] = w.value, b[w.code ?? "unknown"] = w.display;
11734
+ }), o[q].push(h), l[q].push(b);
11735
+ }), p[y] = f.data?.rows;
11734
11736
  const v = await s.emit("list-mounted", {
11735
- instance: s.getInstances(c)[0],
11736
- value: o[T]
11737
+ instance: s.getInstances(y)[0],
11738
+ value: o[q]
11737
11739
  });
11738
11740
  if (v.length > 0 && v[0].length > 0) {
11739
11741
  const O = v[0];
11740
11742
  if (O[0] !== void 0) {
11741
- o[T] = O[0];
11742
- const E = o[T].map((h) => h.uid);
11743
- l[T] = l[T].filter(
11744
- (h) => E.includes(h.uid)
11745
- ), p[c] = p[c].filter(
11746
- (h) => E.includes(h.uid)
11743
+ o[q] = O[0];
11744
+ const D = o[q].map((h) => h.uid);
11745
+ l[q] = l[q].filter(
11746
+ (h) => D.includes(h.uid)
11747
+ ), p[y] = p[y].filter(
11748
+ (h) => D.includes(h.uid)
11747
11749
  );
11748
11750
  }
11749
11751
  }
11750
- u.pagination = { [c]: f.data?.page };
11752
+ u.pagination = { [y]: f.data?.page };
11751
11753
  }
11752
11754
  })
11753
11755
  ), { subDataSet: o, orginData: p, subDataDisplay: l, subDataPagination: u };
@@ -11810,8 +11812,8 @@ async function uo(s) {
11810
11812
  r.orginData
11811
11813
  );
11812
11814
  for (let d = 0; d < u.length; d++)
11813
- for (const c of p[d])
11814
- tt.handleAllDisplayData(c.row_data, u[d]);
11815
+ for (const y of p[d])
11816
+ tt.handleAllDisplayData(y.row_data, u[d]);
11815
11817
  }
11816
11818
  const i = a ?? {
11817
11819
  data_set: {}
@@ -11824,8 +11826,8 @@ async function uo(s) {
11824
11826
  if (r) {
11825
11827
  const u = r;
11826
11828
  Object.entries(u.subDataSet).forEach(([p, d]) => {
11827
- const c = d;
11828
- u.subDataSet[p] = c;
11829
+ const y = d;
11830
+ u.subDataSet[p] = y;
11829
11831
  }), Object.assign(o.dataSet, u.subDataSet), Object.assign(
11830
11832
  l,
11831
11833
  u.subDataDisplay,
@@ -11836,7 +11838,7 @@ async function uo(s) {
11836
11838
  });
11837
11839
  }
11838
11840
  s.isCopyPage && (st.resetDataSet(o.dataSet), st.resetDataSet(l)), await M(e)?.emit("custom:setSearchCache", { value: !0 }), M(e).setData(o.dataSet), setTimeout(() => {
11839
- Oe(() => {
11841
+ Ae(() => {
11840
11842
  M(e)?.emit("custom:setSearchCache", { value: !1 });
11841
11843
  });
11842
11844
  }, 1e3), vs(e, i.data_set.values, n), s.setLoading && setTimeout(() => s.setLoading(!1), 300), await M(e)?.emit("custom:beforeEngineMounted", {
@@ -11875,7 +11877,7 @@ async function co(s) {
11875
11877
  }), t = a.orginData;
11876
11878
  const r = s.context?.getState("DISPLAY"), i = Object.assign({}, { ...r }, a.subDataDisplay);
11877
11879
  s.context?.setState("DISPLAY", Object.freeze(i)), await s.context?.emit("custom:setSearchCache", { value: !0 }), s.context?.setData(a.subDataSet), setTimeout(() => {
11878
- Oe(() => {
11880
+ Ae(() => {
11879
11881
  s.context?.emit("custom:setSearchCache", { value: !1 });
11880
11882
  });
11881
11883
  }, 1e3), po(s.context, t), s.setLoading && setTimeout(() => s.setLoading(!1), 300);
@@ -11886,11 +11888,11 @@ function yo(s) {
11886
11888
  s.type === "conditions"
11887
11889
  );
11888
11890
  }
11889
- function Pe(s, e, t, a, r) {
11891
+ function ge(s, e, t, a, r) {
11890
11892
  const i = a ?? [], n = [];
11891
11893
  return e.forEach((o) => {
11892
11894
  if (yo(o))
11893
- Pe(
11895
+ ge(
11894
11896
  s,
11895
11897
  o.children,
11896
11898
  t,
@@ -11906,18 +11908,18 @@ function Pe(s, e, t, a, r) {
11906
11908
  const d = s.getDataBind(p);
11907
11909
  if (!d)
11908
11910
  return;
11909
- let c;
11910
- if (s.getInstance(p)?.parent?.type === "subtable-column" ? c = s.getState(p, t) : c = s.getState(p), xe(d)) {
11911
+ let y;
11912
+ if (s.getInstance(p)?.parent?.type === "subtable-column" ? y = s.getState(p, t) : y = s.getState(p), Fe(d)) {
11911
11913
  if (n.includes(d.fieldCode))
11912
11914
  return;
11913
- i.push({ code: d.fieldCode, value: c }), n.push(d.fieldCode);
11915
+ i.push({ code: d.fieldCode, value: y }), n.push(d.fieldCode);
11914
11916
  } else
11915
- Object.keys(d).map((y) => {
11916
- const b = d[y];
11917
- n.includes(b.fieldCode) || (i.push({
11918
- code: b.fieldCode,
11919
- value: c[y]
11920
- }), n.push(b.fieldCode));
11917
+ Object.keys(d).map((c) => {
11918
+ const T = d[c];
11919
+ n.includes(T.fieldCode) || (i.push({
11920
+ code: T.fieldCode,
11921
+ value: y[c]
11922
+ }), n.push(T.fieldCode));
11921
11923
  });
11922
11924
  });
11923
11925
  }
@@ -11944,15 +11946,15 @@ Number.prototype.toFixed = function(s = 0) {
11944
11946
  return s > 0 ? `${a}.${fo(r, s)}` : a;
11945
11947
  };
11946
11948
  const vo = function(s, e) {
11947
- return new we(s).plus(e).valueOf();
11949
+ return new _e(s).plus(e).valueOf();
11948
11950
  }, mo = function(s, e) {
11949
- return new we(s).minus(e).valueOf();
11951
+ return new _e(s).minus(e).valueOf();
11950
11952
  }, Po = function(s, e) {
11951
- return new we(s).times(e).valueOf();
11953
+ return new _e(s).times(e).valueOf();
11952
11954
  }, go = function(s, e) {
11953
- return new we(s).div(e).valueOf();
11955
+ return new _e(s).div(e).valueOf();
11954
11956
  }, So = function(s, e) {
11955
- return new we(s).toFixed(e);
11957
+ return new _e(s).toFixed(e);
11956
11958
  };
11957
11959
  function bo() {
11958
11960
  const { proxy: s } = Br();
@@ -12190,7 +12192,7 @@ function Eo(s, e) {
12190
12192
  };
12191
12193
  }
12192
12194
  }
12193
- var ms = "FunctionExpression", ve = /* @__PURE__ */ function() {
12195
+ var ms = "FunctionExpression", me = /* @__PURE__ */ function() {
12194
12196
  function s(e, t) {
12195
12197
  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;
12196
12198
  }
@@ -12235,7 +12237,7 @@ var ms = "FunctionExpression", ve = /* @__PURE__ */ function() {
12235
12237
  }
12236
12238
  ]), s;
12237
12239
  }();
12238
- Ye(ve, "HandlerMap", /* @__PURE__ */ new Map());
12240
+ Ye(me, "HandlerMap", /* @__PURE__ */ new Map());
12239
12241
  function Do(s) {
12240
12242
  return s.type === ms;
12241
12243
  }
@@ -12299,7 +12301,7 @@ function lr(s, e) {
12299
12301
  function xo(s, e, t) {
12300
12302
  return e && lr(s.prototype, e), t && lr(s, t), s;
12301
12303
  }
12302
- function Re(s, e, t) {
12304
+ function xe(s, e, t) {
12303
12305
  return e in s ? Object.defineProperty(s, e, {
12304
12306
  value: t,
12305
12307
  enumerable: !0,
@@ -12307,9 +12309,9 @@ function Re(s, e, t) {
12307
12309
  writable: !0
12308
12310
  }) : s[e] = t, s;
12309
12311
  }
12310
- var gs = "VariableExpression", Be = /* @__PURE__ */ function() {
12312
+ var gs = "VariableExpression", Le = /* @__PURE__ */ function() {
12311
12313
  function s(e) {
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;
12314
+ Mo(this, s), xe(this, "name", void 0), xe(this, "type", void 0), xe(this, "variableName", void 0), xe(this, "keys", void 0), this.name = e, this.type = gs;
12313
12315
  var t = e.split(".");
12314
12316
  this.variableName = t.shift(), this.keys = t;
12315
12317
  }
@@ -12335,7 +12337,7 @@ var gs = "VariableExpression", Be = /* @__PURE__ */ function() {
12335
12337
  }
12336
12338
  ]), s;
12337
12339
  }();
12338
- Re(Be, "HandlerMap", /* @__PURE__ */ new Map());
12340
+ xe(Le, "HandlerMap", /* @__PURE__ */ new Map());
12339
12341
  function Bo(s) {
12340
12342
  return s.type === gs;
12341
12343
  }
@@ -12538,11 +12540,11 @@ var Ss = "Expressions", va = /* @__PURE__ */ function() {
12538
12540
  new Function("return ".concat(o.join(""))).apply(this, He(u))
12539
12541
  ];
12540
12542
  } catch {
12541
- return o.forEach(function(c) {
12543
+ return o.forEach(function(y) {
12542
12544
  try {
12543
- n += new Function("return ".concat(c)).apply(i, He(u));
12544
- } catch (q) {
12545
- throw new Error('Error evaluating expressions "'.concat(c, '" error: ').concat(q.message));
12545
+ n += new Function("return ".concat(y)).apply(i, He(u));
12546
+ } catch (m) {
12547
+ throw new Error('Error evaluating expressions "'.concat(y, '" error: ').concat(m.message));
12546
12548
  }
12547
12549
  }), [
12548
12550
  2,
@@ -12670,43 +12672,43 @@ function Yo(s, e) {
12670
12672
  var Zo = /^\$\{([_a-zA-Z][_a-zA-Z.\d]+)}/, el = /\n+\s*/g, yr = /^\".*?\"/;
12671
12673
  function ma(s) {
12672
12674
  for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = function() {
12673
- q && (c.push(new nr(q)), q = "");
12675
+ m && (y.push(new nr(m)), m = "");
12674
12676
  }, a = (
12675
12677
  // STRING_REGEXP
12676
- function(A) {
12678
+ function(S) {
12677
12679
  t();
12678
- var f = It(Array.from(A.match(yr)), 1), v = f[0];
12679
- c.push(new nr(v)), d += v.length;
12680
+ var f = It(Array.from(S.match(yr)), 1), v = f[0];
12681
+ y.push(new nr(v)), d += v.length;
12680
12682
  }
12681
- ), r = function(A) {
12683
+ ), r = function(S) {
12682
12684
  t();
12683
- var f = It(Array.from(A.match(u)), 2), v = f[0], O = f[1];
12684
- c.push(new Be(O)), d += v.length;
12685
- }, i = function(A) {
12686
- var f = It(Array.from(A.match(p)), 2), v = f[1];
12685
+ var f = It(Array.from(S.match(u)), 2), v = f[0], O = f[1];
12686
+ y.push(new Le(O)), d += v.length;
12687
+ }, i = function(S) {
12688
+ var f = It(Array.from(S.match(p)), 2), v = f[1];
12687
12689
  t();
12688
- var O = Wo(A.slice(v.length)), E = O.argsExpression, h = O.end, S = E.map(function(_) {
12689
- var P = ma(_, e);
12690
+ var O = Wo(S.slice(v.length)), D = O.argsExpression, h = O.end, b = D.map(function(w) {
12691
+ var P = ma(w, e);
12690
12692
  return new va(P);
12691
12693
  });
12692
- c.push(new ve(v, S)), d += v.length + h + 1;
12693
- }, n = e.functionKeywords, o = n === void 0 ? [] : n, l = e.variableRegexp, u = l === void 0 ? Zo : l, p = new RegExp("^(".concat(o.join("|"), ")\\s*\\(.*?\\)")), d = 0, c = [], q = "", y = s.replaceAll(el, " "); d < y.length; ) {
12694
- var b = y.charAt(d), T = y.substring(d);
12695
- if (yr.test(T)) {
12696
- a(T);
12694
+ y.push(new me(v, b)), d += v.length + h + 1;
12695
+ }, n = e.functionKeywords, o = n === void 0 ? [] : n, l = e.variableRegexp, u = l === void 0 ? Zo : l, p = new RegExp("^(".concat(o.join("|"), ")\\s*\\(.*?\\)")), d = 0, y = [], m = "", c = s.replaceAll(el, " "); d < c.length; ) {
12696
+ var T = c.charAt(d), q = c.substring(d);
12697
+ if (yr.test(q)) {
12698
+ a(q);
12697
12699
  continue;
12698
12700
  }
12699
- if (u.test(T)) {
12700
- r(T);
12701
+ if (u.test(q)) {
12702
+ r(q);
12701
12703
  continue;
12702
12704
  }
12703
- if (o.length && p.test(T)) {
12704
- i(T);
12705
+ if (o.length && p.test(q)) {
12706
+ i(q);
12705
12707
  continue;
12706
12708
  }
12707
- q += b, d++;
12709
+ m += T, d++;
12708
12710
  }
12709
- return t(), c;
12711
+ return t(), y;
12710
12712
  }
12711
12713
  function hr(s, e, t, a, r, i, n) {
12712
12714
  try {
@@ -12929,7 +12931,7 @@ var k = /* @__PURE__ */ function() {
12929
12931
  {
12930
12932
  key: "parser",
12931
12933
  value: function(t) {
12932
- var a = _o(ve.HandlerMap, this.handlers.FunctionExpression);
12934
+ var a = _o(me.HandlerMap, this.handlers.FunctionExpression);
12933
12935
  return ma(t, {
12934
12936
  functionKeywords: a
12935
12937
  });
@@ -12999,43 +13001,43 @@ var k = /* @__PURE__ */ function() {
12999
13001
  {
13000
13002
  key: "addVariable",
13001
13003
  value: function(t, a) {
13002
- Be.HandlerMap.set(t, a);
13004
+ Le.HandlerMap.set(t, a);
13003
13005
  }
13004
13006
  },
13005
13007
  {
13006
13008
  key: "deleteVariable",
13007
13009
  value: function(t) {
13008
- Be.HandlerMap.delete(t);
13010
+ Le.HandlerMap.delete(t);
13009
13011
  }
13010
13012
  },
13011
13013
  {
13012
13014
  key: "clearVariables",
13013
13015
  value: function() {
13014
- Be.HandlerMap.clear();
13016
+ Le.HandlerMap.clear();
13015
13017
  }
13016
13018
  },
13017
13019
  {
13018
13020
  key: "addFunction",
13019
13021
  value: function(t, a) {
13020
- ve.HandlerMap.set(t, a);
13022
+ me.HandlerMap.set(t, a);
13021
13023
  }
13022
13024
  },
13023
13025
  {
13024
13026
  key: "deleteFunction",
13025
13027
  value: function(t) {
13026
- ve.HandlerMap.delete(t);
13028
+ me.HandlerMap.delete(t);
13027
13029
  }
13028
13030
  },
13029
13031
  {
13030
13032
  key: "clearFunctions",
13031
13033
  value: function() {
13032
- ve.HandlerMap.clear();
13034
+ me.HandlerMap.clear();
13033
13035
  }
13034
13036
  }
13035
13037
  ]), s;
13036
13038
  }();
13037
13039
  Pa(k, "parser", function(s) {
13038
- var e = ul(ve.HandlerMap.keys());
13040
+ var e = ul(me.HandlerMap.keys());
13039
13041
  return ma(s, {
13040
13042
  functionKeywords: e
13041
13043
  });
@@ -13298,7 +13300,7 @@ const Np = /* @__PURE__ */ Yi({
13298
13300
  ExpressionTools: Wl,
13299
13301
  Mitt: To,
13300
13302
  add: vo,
13301
- buildFiltersToDataSetValues: Pe,
13303
+ buildFiltersToDataSetValues: ge,
13302
13304
  divide: go,
13303
13305
  getCurrentProxy: bo,
13304
13306
  getFormDataUID: fs,
@@ -13317,7 +13319,7 @@ function bs(s) {
13317
13319
  )?.field_code ?? "uid";
13318
13320
  }
13319
13321
  let Ct, Vt, Et, Dt, kt;
13320
- class me {
13322
+ class Pe {
13321
13323
  static _running = /* @__PURE__ */ new Set();
13322
13324
  static getIsRunning() {
13323
13325
  return this._running.size !== 0;
@@ -13330,51 +13332,51 @@ class me {
13330
13332
  }
13331
13333
  static request = {
13332
13334
  onFulfilled(e, t) {
13333
- return me.addRunning(t), e;
13335
+ return Pe.addRunning(t), e;
13334
13336
  },
13335
13337
  onRejected(e, t) {
13336
- me.removeRunning(t);
13338
+ Pe.removeRunning(t);
13337
13339
  }
13338
13340
  };
13339
13341
  static response = {
13340
13342
  onFulfilled(e, t) {
13341
- return me.removeRunning(t), e;
13343
+ return Pe.removeRunning(t), e;
13342
13344
  },
13343
13345
  onRejected(e, t) {
13344
- me.removeRunning(t);
13346
+ Pe.removeRunning(t);
13345
13347
  }
13346
13348
  };
13347
13349
  }
13348
- function Ve(s) {
13349
- return s.requestFilters.push(me.request), s.responseFilters.push(me.response), s;
13350
+ function De(s) {
13351
+ return s.requestFilters.push(Pe.request), s.responseFilters.push(Pe.response), s;
13350
13352
  }
13351
13353
  function he() {
13352
13354
  if (Ct === void 0) {
13353
- const s = Ve(
13355
+ const s = De(
13354
13356
  de(process.env.VUE_APP_BASE_PATH ?? "/")
13355
13357
  );
13356
13358
  Ct = new en(s);
13357
13359
  }
13358
13360
  if (Vt === void 0) {
13359
- const s = Ve(
13361
+ const s = De(
13360
13362
  de(process.env.VUE_APP_API_PORTAL ?? "")
13361
13363
  );
13362
13364
  Vt = new tn(s);
13363
13365
  }
13364
13366
  if (Et === void 0) {
13365
- const s = Ve(
13367
+ const s = De(
13366
13368
  de(process.env.VUE_APP_API_BASE ?? "")
13367
13369
  );
13368
13370
  Et = new Ca(s);
13369
13371
  }
13370
13372
  if (kt === void 0) {
13371
- const s = Ve(
13373
+ const s = De(
13372
13374
  de(process.env.VUE_APP_API_INFO ?? "")
13373
13375
  );
13374
13376
  kt = new Ca(s);
13375
13377
  }
13376
13378
  if (Dt === void 0) {
13377
- const s = Ve(
13379
+ const s = De(
13378
13380
  de(process.env.VUE_APP_WIDGETS_API_PATH ?? "")
13379
13381
  );
13380
13382
  Dt = new an(s);
@@ -13482,7 +13484,7 @@ function tu(s) {
13482
13484
  }
13483
13485
  };
13484
13486
  }
13485
- const qs = localStorage.getItem("locale") || "zh-CN", ne = tu({
13487
+ const qs = localStorage.getItem("locale") || "zh-CN", oe = tu({
13486
13488
  // zh en ja
13487
13489
  locale: qs
13488
13490
  // messages: {
@@ -13492,45 +13494,45 @@ const qs = localStorage.getItem("locale") || "zh-CN", ne = tu({
13492
13494
  });
13493
13495
  function mr(s = "page") {
13494
13496
  const e = eu(), t = (r) => {
13495
- L.config.globalProperties.$warning !== void 0 ? L.config.globalProperties.$warning({ content: r }) : L.config.globalProperties.$toast(r);
13497
+ L().config.globalProperties.$warning !== void 0 ? L().config.globalProperties.$warning({ content: r }) : L().config.globalProperties.$toast(r);
13496
13498
  }, a = he().default;
13497
13499
  a.ExportRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
13498
13500
  return {
13499
- code: N.SUCCESS
13501
+ code: F.SUCCESS
13500
13502
  };
13501
13503
  }, a.ExportPageOprPrivateV1ApiAppsPOST = function(r) {
13502
13504
  return {
13503
- code: N.SUCCESS
13505
+ code: F.SUCCESS
13504
13506
  };
13505
13507
  }, a.TemplateExportDataPrivateV1ApiAppsGET = function(r) {
13506
13508
  return {
13507
- code: N.SUCCESS
13509
+ code: F.SUCCESS
13508
13510
  };
13509
13511
  }, a.DataImportDataPrivateV1ApiAppsPOST = function(r) {
13510
13512
  return {
13511
- code: N.SUCCESS
13513
+ code: F.SUCCESS
13512
13514
  };
13513
13515
  }, a.BatchSubmitPageOprPrivateV1ApiAppsPOST = function(r) {
13514
13516
  return {
13515
- code: N.SUCCESS
13517
+ code: F.SUCCESS
13516
13518
  };
13517
13519
  }, a.ProcessRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
13518
13520
  return {
13519
- code: N.SUCCESS
13521
+ code: F.SUCCESS
13520
13522
  };
13521
13523
  }, s === "page" && (a.ListDataPagePrivateV1ApiAppsPOST = function(r) {
13522
13524
  return new Promise((i, n) => {
13523
13525
  i({
13524
- code: N.SUCCESS
13526
+ code: F.SUCCESS
13525
13527
  });
13526
13528
  });
13527
13529
  }), a.GetViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
13528
13530
  return {
13529
- code: N.SUCCESS
13531
+ code: F.SUCCESS
13530
13532
  };
13531
13533
  }, a.SaveViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
13532
13534
  return {
13533
- code: N.SUCCESS
13535
+ code: F.SUCCESS
13534
13536
  };
13535
13537
  }, a.ApplySubmitPagePrivateV1ApiAppsPOST = function(r) {
13536
13538
  return new Promise((i, n) => {
@@ -13638,7 +13640,7 @@ function ou(s, e) {
13638
13640
  }
13639
13641
  function ra(s, e, t) {
13640
13642
  if (s !== void 0) {
13641
- if (ie(t) && ie(s[e]) && t !== "") {
13643
+ if (ne(t) && ne(s[e]) && t !== "") {
13642
13644
  s[e] = t;
13643
13645
  return;
13644
13646
  }
@@ -13659,13 +13661,13 @@ function uu(s, e, t = null) {
13659
13661
  );
13660
13662
  }
13661
13663
  function pu(s, e, t = []) {
13662
- if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== se.RELATION_FIELD || !s.props.multistageFilling)
13664
+ if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== ie.RELATION_FIELD || !s.props.multistageFilling)
13663
13665
  return;
13664
13666
  const a = lu(e, s.props.dataBind.dataCode);
13665
13667
  if (!a)
13666
13668
  return;
13667
13669
  const r = a.data_field_list?.filter(
13668
- (l) => l.field_type === se.REFERENCE_FIELD && l.props.reference_relation_field_code === s.props.dataBind.fieldCode
13670
+ (l) => l.field_type === ie.REFERENCE_FIELD && l.props.reference_relation_field_code === s.props.dataBind.fieldCode
13669
13671
  ) ?? [], i = t.find(
13670
13672
  (l) => l.controlId === s.id
13671
13673
  )?.parentId, n = r.map((l) => {
@@ -13729,7 +13731,7 @@ class yu {
13729
13731
  const u = Ia(
13730
13732
  l.custom,
13731
13733
  t,
13732
- qe(K.isPc())
13734
+ we(K.isPc())
13733
13735
  );
13734
13736
  l.style;
13735
13737
  {
@@ -13754,7 +13756,7 @@ class yu {
13754
13756
  vueComRegister(e, t) {
13755
13757
  const a = t.externalParams?.data?.rel_form_keys ?? [];
13756
13758
  this.loadDependencyComponent(a, t);
13757
- const r = Object.assign(qe(K.isPc()), {
13759
+ const r = Object.assign(we(K.isPc()), {
13758
13760
  byteluckVuePages: this.byteluckVuePages
13759
13761
  }), i = Ia(e, t, r);
13760
13762
  if (!i)
@@ -13766,7 +13768,7 @@ class yu {
13766
13768
  u(i.variables[o.name]);
13767
13769
  })
13768
13770
  );
13769
- L.component("custom-vue-" + o.id, l), n["custom-vue-" + o.id] = l;
13771
+ L().component("custom-vue-" + o.id, l), n["custom-vue-" + o.id] = l;
13770
13772
  }), this.engine.getAction().sources = n;
13771
13773
  }
13772
13774
  }
@@ -13888,7 +13890,7 @@ class As {
13888
13890
  }).forEach((i) => this.applyDisplay(i, e)), await Promise.resolve();
13889
13891
  }
13890
13892
  handlerCacheInstanceIdDefaultIsHide(e) {
13891
- const t = ie(e) ? this.getInstances(e) : [e];
13893
+ const t = ne(e) ? this.getInstances(e) : [e];
13892
13894
  t.map((a) => {
13893
13895
  if (!this.cacheDefaultIsHide.has(a)) {
13894
13896
  const r = this.engine.getInstanceRowIndex(a);
@@ -14135,7 +14137,7 @@ class _s {
14135
14137
  return this.displayConfigControlIds.includes(e.id);
14136
14138
  }
14137
14139
  }
14138
- const Pr = (s) => ie(s) || it(s) ? s.length === 0 : !1;
14140
+ const Pr = (s) => ne(s) || it(s) ? s.length === 0 : !1;
14139
14141
  let hu = 0;
14140
14142
  class Is {
14141
14143
  pluginName = "MultistageFillingPlugin";
@@ -14212,7 +14214,7 @@ class Is {
14212
14214
  }
14213
14215
  );
14214
14216
  else if (this.engine.assertInstance(e.instance, g.EMPLOYEE2)) {
14215
- const c = await this.engine.emit("search", {
14217
+ const y = await this.engine.emit("search", {
14216
14218
  instance: e.instance,
14217
14219
  value: l.join(","),
14218
14220
  rowIndex: e.rowIndex,
@@ -14226,8 +14228,8 @@ class Is {
14226
14228
  }
14227
14229
  });
14228
14230
  u = {
14229
- code: N.SUCCESS,
14230
- data: c[0]
14231
+ code: F.SUCCESS,
14232
+ data: y[0]
14231
14233
  };
14232
14234
  } else if (this.engine.assertInstance(e.instance, g.DEPARTMENT))
14233
14235
  u = await this.cacheRequest.request(
@@ -14241,7 +14243,7 @@ class Is {
14241
14243
  e.instance,
14242
14244
  g.DEPARTMENT2
14243
14245
  )) {
14244
- const c = await this.engine.emit("search", {
14246
+ const y = await this.engine.emit("search", {
14245
14247
  instance: e.instance,
14246
14248
  value: l?.join(","),
14247
14249
  rowIndex: e.rowIndex,
@@ -14256,44 +14258,44 @@ class Is {
14256
14258
  }
14257
14259
  });
14258
14260
  u = {
14259
- code: N.SUCCESS,
14260
- data: c[0]
14261
+ code: F.SUCCESS,
14262
+ data: y[0]
14261
14263
  };
14262
14264
  }
14263
14265
  }
14264
14266
  if (this.weakMap.get(e.instance) !== o)
14265
14267
  return;
14266
14268
  if (e.rowIndex !== void 0) {
14267
- const c = e.instance.parent?.parent;
14268
- if (!(c?.parent).children.find((y) => y === c)) {
14269
+ const y = e.instance.parent?.parent;
14270
+ if (!(y?.parent).children.find((c) => c === y)) {
14269
14271
  this.weakMap.delete(e.instance);
14270
14272
  return;
14271
14273
  }
14272
14274
  }
14273
14275
  this.weakMap.delete(e.instance);
14274
- const p = this.engine.getInstanceRowIndex(e.instance), d = e.instance.props.multistageFilling.map((c) => {
14275
- const q = this.checkFill(
14276
+ const p = this.engine.getInstanceRowIndex(e.instance), d = e.instance.props.multistageFilling.map((y) => {
14277
+ const m = this.checkFill(
14276
14278
  n,
14277
- c.controlId,
14279
+ y.controlId,
14278
14280
  p
14279
- ), y = {
14280
- ...c,
14281
+ ), c = {
14282
+ ...y,
14281
14283
  display: "",
14282
14284
  field_value: null,
14283
- controlId: q
14285
+ controlId: m
14284
14286
  };
14285
- if (u && u.code === N.SUCCESS) {
14286
- const b = u.data?.[0];
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]);
14287
+ if (u && u.code === F.SUCCESS) {
14288
+ const T = u.data?.[0];
14289
+ T && (c.display = T?.fieldValue ? T?.fieldValue[y.fieldCode] : T[y.fieldCode], c.field_value = T?.fieldValue ? T?.fieldValue[y.fieldCode] : T[y.fieldCode]);
14288
14290
  } else
14289
- y.display = null, y.field_value = null;
14290
- return y;
14291
+ c.display = null, c.field_value = null;
14292
+ return c;
14291
14293
  });
14292
14294
  this.updateStore(d, p);
14293
14295
  } else {
14294
- t = e.instance.props.multistageFilling.map((b) => {
14295
- const T = this.engine.getInstance(b.controlId);
14296
- return (e.instance?.props).dataBind?.fieldType === "relation-field" && T && T.props?.dataBind?.fieldType === "reference-field" ? `${b.controlId}&${T.props?.dataBind?.fieldCode}` : b.fieldCode;
14296
+ t = e.instance.props.multistageFilling.map((T) => {
14297
+ const q = this.engine.getInstance(T.controlId);
14298
+ return (e.instance?.props).dataBind?.fieldType === "relation-field" && q && q.props?.dataBind?.fieldType === "reference-field" ? `${T.controlId}&${q.props?.dataBind?.fieldCode}` : T.fieldCode;
14297
14299
  });
14298
14300
  const l = e.instance.props.datasourceBind;
14299
14301
  let u = this.engine.getInstanceRowIndex(e.instance);
@@ -14301,7 +14303,7 @@ class Is {
14301
14303
  let p = "";
14302
14304
  const d = this.engine?.externalParams.data?.content?.model_bind_info_list;
14303
14305
  d && (p = JSON.stringify(d));
14304
- const c = {
14306
+ const y = {
14305
14307
  app_id: l.appId,
14306
14308
  data_code: l.dataCode,
14307
14309
  svc_code: l.svcCode,
@@ -14310,7 +14312,7 @@ class Is {
14310
14312
  data_set: {
14311
14313
  data_code: l.dataCode,
14312
14314
  // 有数据过滤的话,需要把数据过滤的值都拿到
14313
- values: l.filters ? Pe(this.engine, l.filters, u) : []
14315
+ values: l.filters ? ge(this.engine, l.filters, u) : []
14314
14316
  },
14315
14317
  // model_bind_info_list_str: modelBindInfoListStr,
14316
14318
  element_id: e.instance?.id,
@@ -14319,31 +14321,31 @@ class Is {
14319
14321
  },
14320
14322
  fields: [...t]
14321
14323
  };
14322
- this.config.isPreviewMode ? c.model_bind_info_list_str = p : c?.model_bind_info_list_str && delete c.model_bind_info_list_str;
14323
- let y = e?.options?.multistageFilledCacheData;
14324
- if (y || (y = await this.cacheRequest.request(
14324
+ this.config.isPreviewMode ? y.model_bind_info_list_str = p : y?.model_bind_info_list_str && delete y.model_bind_info_list_str;
14325
+ let c = e?.options?.multistageFilledCacheData;
14326
+ if (c || (c = await this.cacheRequest.request(
14325
14327
  this.service.default.GetFieldsValueBizModelPrivateV1ApiAppsPOST,
14326
- c
14328
+ y
14327
14329
  )), this.weakMap.get(e.instance) !== o)
14328
14330
  return;
14329
- if (this.weakMap.delete(e.instance), y && y.code === N.SUCCESS) {
14330
- const b = this.engine.getInstanceRowIndex(
14331
+ if (this.weakMap.delete(e.instance), c && c.code === F.SUCCESS) {
14332
+ const T = this.engine.getInstanceRowIndex(
14331
14333
  e.instance
14332
- ), m = y.data.field_value_list, A = e.instance.props.multistageFilling.map((f) => {
14334
+ ), _ = c.data.field_value_list, S = e.instance.props.multistageFilling.map((f) => {
14333
14335
  let v = {};
14334
14336
  const O = this.engine.getInstance(f.controlId);
14335
- (e.instance?.props).dataBind?.fieldType === "relation-field" && O && O.props?.dataBind?.fieldType === "reference-field" ? v = m.find((h) => h.field_code === `${f.controlId}&${O.props?.dataBind?.fieldCode}`) : v = m.find((h) => h.field_code === f.fieldCode);
14336
- const E = this.checkFill(
14337
+ (e.instance?.props).dataBind?.fieldType === "relation-field" && O && O.props?.dataBind?.fieldType === "reference-field" ? v = _.find((h) => h.field_code === `${f.controlId}&${O.props?.dataBind?.fieldCode}`) : v = _.find((h) => h.field_code === f.fieldCode);
14338
+ const D = this.checkFill(
14337
14339
  n,
14338
14340
  f.controlId,
14339
- b
14341
+ T
14340
14342
  );
14341
14343
  return !e.value && v && (v.field_value = null), {
14342
14344
  ...v,
14343
- controlId: E
14345
+ controlId: D
14344
14346
  };
14345
14347
  });
14346
- this.updateStore(A, b);
14348
+ this.updateStore(S, T);
14347
14349
  }
14348
14350
  }
14349
14351
  }
@@ -14353,9 +14355,9 @@ class Is {
14353
14355
  const { controlId: r, field_value: i } = a;
14354
14356
  let n = i;
14355
14357
  const o = this.engine.getInstance(r, t);
14356
- if ((o?.fieldType === se.EMPLOYEES || o?.fieldType === se.DEPARTMENTS) && i === "" && (n = void 0), it(n)) {
14358
+ if ((o?.fieldType === ie.EMPLOYEES || o?.fieldType === ie.DEPARTMENTS) && i === "" && (n = void 0), it(n)) {
14357
14359
  const l = this.engine.getInstance(r, t);
14358
- (l?.fieldType === se.EMPLOYEES || l?.fieldType === se.DEPARTMENTS) && (n = l.props.multiple ? i : i.slice(0, 1));
14360
+ (l?.fieldType === ie.EMPLOYEES || l?.fieldType === ie.DEPARTMENTS) && (n = l.props.multiple ? i : i.slice(0, 1));
14359
14361
  }
14360
14362
  this.engine.setState(
14361
14363
  a.controlId,
@@ -14408,13 +14410,13 @@ class Cs {
14408
14410
  n && (this.headerData.bizKey = n.value);
14409
14411
  }
14410
14412
  const r = this.engine?.externalParams?.data;
14411
- this.showDescript ? this.headerData.descript = r?.descript ?? "" : this.headerData.descript = "", r?.process_param?.process_instance_id || (e.props.config.indexOf(fe.ShowBizKey) > -1 ? e.props.config.indexOf(fe.ShowTitle) > -1 ? this.engine.setInstance(e, "config", [
14412
- fe.ShowBizKey,
14413
- fe.ShowTitle
14413
+ this.showDescript ? this.headerData.descript = r?.descript ?? "" : this.headerData.descript = "", r?.process_param?.process_instance_id || (e.props.config.indexOf(ve.ShowBizKey) > -1 ? e.props.config.indexOf(ve.ShowTitle) > -1 ? this.engine.setInstance(e, "config", [
14414
+ ve.ShowBizKey,
14415
+ ve.ShowTitle
14414
14416
  ]) : this.engine.setInstance(e, "config", [
14415
- fe.ShowBizKey
14416
- ]) : e.props.config.indexOf(fe.ShowTitle) > -1 ? this.engine.setInstance(e, "config", [
14417
- fe.ShowTitle
14417
+ ve.ShowBizKey
14418
+ ]) : e.props.config.indexOf(ve.ShowTitle) > -1 ? this.engine.setInstance(e, "config", [
14419
+ ve.ShowTitle
14418
14420
  ]) : this.engine.setInstance(e, "config", [])), this.engine.setState(t, this.headerData);
14419
14421
  }
14420
14422
  }
@@ -14649,7 +14651,7 @@ var Sr = {
14649
14651
  yellow: "#ffff00",
14650
14652
  yellowgreen: "#9acd32"
14651
14653
  };
14652
- function Ee(s) {
14654
+ function ke(s) {
14653
14655
  var e = { r: 0, g: 0, b: 0 }, t = 1, a = null, r = null, i = null, n = !1, o = !1;
14654
14656
  return typeof s == "string" && (s = wu(s)), typeof s == "object" && (pe(s.r) && pe(s.g) && pe(s.b) ? (e = Pu(s.r, s.g, s.b), n = !0, o = String(s.r).substr(-1) === "%" ? "prgb" : "rgb") : pe(s.h) && pe(s.s) && pe(s.v) ? (a = ze(s.s), r = ze(s.v), e = bu(s.h, a, r), n = !0, o = "hsv") : pe(s.h) && pe(s.s) && pe(s.l) && (a = ze(s.s), i = ze(s.l), e = gu(s.h, a, i), n = !0, o = "hsl"), Object.prototype.hasOwnProperty.call(s, "a") && (t = s.a)), t = mu(t), {
14655
14657
  ok: n,
@@ -14660,7 +14662,7 @@ function Ee(s) {
14660
14662
  a: t
14661
14663
  };
14662
14664
  }
14663
- var qu = "[-\\+]?\\d+%?", Ou = "[-\\+]?\\d*\\.\\d+%?", ye = "(?:".concat(Ou, ")|(?:").concat(qu, ")"), xt = "[\\s|\\(]+(".concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")\\s*\\)?"), Bt = "[\\s|\\(]+(".concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")\\s*\\)?"), re = {
14665
+ var qu = "[-\\+]?\\d+%?", Ou = "[-\\+]?\\d*\\.\\d+%?", ye = "(?:".concat(Ou, ")|(?:").concat(qu, ")"), xt = "[\\s|\\(]+(".concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")\\s*\\)?"), Bt = "[\\s|\\(]+(".concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")[,|\\s]+(").concat(ye, ")\\s*\\)?"), se = {
14664
14666
  CSS_UNIT: new RegExp(ye),
14665
14667
  rgb: new RegExp("rgb" + xt),
14666
14668
  rgba: new RegExp("rgba" + Bt),
@@ -14681,25 +14683,25 @@ function wu(s) {
14681
14683
  s = Sr[s], e = !0;
14682
14684
  else if (s === "transparent")
14683
14685
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
14684
- var t = re.rgb.exec(s);
14685
- return t ? { r: t[1], g: t[2], b: t[3] } : (t = re.rgba.exec(s), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = re.hsl.exec(s), t ? { h: t[1], s: t[2], l: t[3] } : (t = re.hsla.exec(s), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = re.hsv.exec(s), t ? { h: t[1], s: t[2], v: t[3] } : (t = re.hsva.exec(s), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = re.hex8.exec(s), t ? {
14686
+ var t = se.rgb.exec(s);
14687
+ return t ? { r: t[1], g: t[2], b: t[3] } : (t = se.rgba.exec(s), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = se.hsl.exec(s), t ? { h: t[1], s: t[2], l: t[3] } : (t = se.hsla.exec(s), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = se.hsv.exec(s), t ? { h: t[1], s: t[2], v: t[3] } : (t = se.hsva.exec(s), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = se.hex8.exec(s), t ? {
14686
14688
  r: X(t[1]),
14687
14689
  g: X(t[2]),
14688
14690
  b: X(t[3]),
14689
14691
  a: gr(t[4]),
14690
14692
  format: e ? "name" : "hex8"
14691
- } : (t = re.hex6.exec(s), t ? {
14693
+ } : (t = se.hex6.exec(s), t ? {
14692
14694
  r: X(t[1]),
14693
14695
  g: X(t[2]),
14694
14696
  b: X(t[3]),
14695
14697
  format: e ? "name" : "hex"
14696
- } : (t = re.hex4.exec(s), t ? {
14698
+ } : (t = se.hex4.exec(s), t ? {
14697
14699
  r: X(t[1] + t[1]),
14698
14700
  g: X(t[2] + t[2]),
14699
14701
  b: X(t[3] + t[3]),
14700
14702
  a: gr(t[4] + t[4]),
14701
14703
  format: e ? "name" : "hex8"
14702
- } : (t = re.hex3.exec(s), t ? {
14704
+ } : (t = se.hex3.exec(s), t ? {
14703
14705
  r: X(t[1] + t[1]),
14704
14706
  g: X(t[2] + t[2]),
14705
14707
  b: X(t[3] + t[3]),
@@ -14707,7 +14709,7 @@ function wu(s) {
14707
14709
  } : !1)))))))));
14708
14710
  }
14709
14711
  function pe(s) {
14710
- return !!re.CSS_UNIT.exec(String(s));
14712
+ return !!se.CSS_UNIT.exec(String(s));
14711
14713
  }
14712
14714
  var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15, Vs = 5, Es = 4, Cu = [{
14713
14715
  index: 7,
@@ -14775,8 +14777,8 @@ function wr(s, e, t) {
14775
14777
  return t ? a = s.v + _u * e : a = s.v - Iu * e, a > 1 && (a = 1), Number(a.toFixed(2));
14776
14778
  }
14777
14779
  function sa(s) {
14778
- for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Ee(s), r = Vs; r > 0; r -= 1) {
14779
- var i = Tr(a), n = We(Ee({
14780
+ for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = ke(s), r = Vs; r > 0; r -= 1) {
14781
+ var i = Tr(a), n = We(ke({
14780
14782
  h: qr(i, r, !0),
14781
14783
  s: Or(i, r, !0),
14782
14784
  v: wr(i, r, !0)
@@ -14785,7 +14787,7 @@ function sa(s) {
14785
14787
  }
14786
14788
  t.push(We(a));
14787
14789
  for (var o = 1; o <= Es; o += 1) {
14788
- var l = Tr(a), u = We(Ee({
14790
+ var l = Tr(a), u = We(ke({
14789
14791
  h: qr(l, o),
14790
14792
  s: Or(l, o),
14791
14793
  v: wr(l, o)
@@ -14793,8 +14795,8 @@ function sa(s) {
14793
14795
  t.push(u);
14794
14796
  }
14795
14797
  return e.theme === "dark" ? Cu.map(function(p) {
14796
- var d = p.index, c = p.opacity, q = We(Vu(Ee(e.backgroundColor || "#141414"), Ee(t[d]), c * 100));
14797
- return q;
14798
+ var d = p.index, y = p.opacity, m = We(Vu(ke(e.backgroundColor || "#141414"), ke(t[d]), y * 100));
14799
+ return m;
14798
14800
  }) : t;
14799
14801
  }
14800
14802
  var Ft = {
@@ -14818,7 +14820,7 @@ Object.keys(Ft).forEach(function(s) {
14818
14820
  backgroundColor: "#141414"
14819
14821
  }), Nt[s].primary = Nt[s][5];
14820
14822
  });
14821
- var Ar = [], De = [], Eu = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
14823
+ var Ar = [], Re = [], Eu = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
14822
14824
  function Du() {
14823
14825
  var s = document.createElement("style");
14824
14826
  return s.setAttribute("type", "text/css"), s;
@@ -14827,9 +14829,9 @@ function ku(s, e) {
14827
14829
  if (e = e || {}, s === void 0)
14828
14830
  throw new Error(Eu);
14829
14831
  var t = e.prepend === !0 ? "prepend" : "append", a = e.container !== void 0 ? e.container : document.querySelector("head"), r = Ar.indexOf(a);
14830
- r === -1 && (r = Ar.push(a) - 1, De[r] = {});
14832
+ r === -1 && (r = Ar.push(a) - 1, Re[r] = {});
14831
14833
  var i;
14832
- return De[r] !== void 0 && De[r][t] !== void 0 ? i = De[r][t] : (i = De[r][t] = Du(), t === "prepend" ? a.insertBefore(i, a.childNodes[0]) : a.appendChild(i)), s.charCodeAt(0) === 65279 && (s = s.substr(1, s.length)), i.styleSheet ? i.styleSheet.cssText += s : i.textContent += s, i;
14834
+ return Re[r] !== void 0 && Re[r][t] !== void 0 ? i = Re[r][t] : (i = Re[r][t] = Du(), t === "prepend" ? a.insertBefore(i, a.childNodes[0]) : a.appendChild(i)), s.charCodeAt(0) === 65279 && (s = s.substr(1, s.length)), i.styleSheet ? i.styleSheet.cssText += s : i.textContent += s, i;
14833
14835
  }
14834
14836
  function _r(s) {
14835
14837
  for (var e = 1; e < arguments.length; e++) {
@@ -14927,7 +14929,7 @@ var Bu = `
14927
14929
  }
14928
14930
  `, Cr = !1, Fu = function() {
14929
14931
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Bu;
14930
- Oe(function() {
14932
+ Ae(function() {
14931
14933
  Cr || (typeof window < "u" && window.document && window.document.documentElement && ku(e, {
14932
14934
  prepend: !0
14933
14935
  }), Cr = !0);
@@ -14966,20 +14968,20 @@ function Ze(s) {
14966
14968
  function Gu(s, e, t) {
14967
14969
  return e in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
14968
14970
  }
14969
- var Fe = {
14971
+ var Ne = {
14970
14972
  primaryColor: "#333",
14971
14973
  secondaryColor: "#E6E6E6",
14972
14974
  calculated: !1
14973
14975
  };
14974
14976
  function $u(s) {
14975
14977
  var e = s.primaryColor, t = s.secondaryColor;
14976
- Fe.primaryColor = e, Fe.secondaryColor = t || Ds(e), Fe.calculated = !!t;
14978
+ Ne.primaryColor = e, Ne.secondaryColor = t || Ds(e), Ne.calculated = !!t;
14977
14979
  }
14978
14980
  function ju() {
14979
- return Ze({}, Fe);
14981
+ return Ze({}, Ne);
14980
14982
  }
14981
- var Ie = function(e, t) {
14982
- var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), l = Fe;
14983
+ var Ve = function(e, t) {
14984
+ var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), l = Ne;
14983
14985
  if (i && (l = {
14984
14986
  primaryColor: i,
14985
14987
  secondaryColor: n || Ds(i)
@@ -14996,17 +14998,17 @@ var Ie = function(e, t) {
14996
14998
  "aria-hidden": "true"
14997
14999
  }));
14998
15000
  };
14999
- Ie.props = {
15001
+ Ve.props = {
15000
15002
  icon: Object,
15001
15003
  primaryColor: String,
15002
15004
  secondaryColor: String,
15003
15005
  focusable: String
15004
15006
  };
15005
- Ie.inheritAttrs = !1;
15006
- Ie.displayName = "IconBase";
15007
- Ie.getTwoToneColors = ju;
15008
- Ie.setTwoToneColors = $u;
15009
- const ga = Ie;
15007
+ Ve.inheritAttrs = !1;
15008
+ Ve.displayName = "IconBase";
15009
+ Ve.getTwoToneColors = ju;
15010
+ Ve.setTwoToneColors = $u;
15011
+ const ga = Ve;
15010
15012
  function Hu(s, e) {
15011
15013
  return Qu(s) || Wu(s, e) || Ku(s, e) || zu();
15012
15014
  }
@@ -15149,40 +15151,40 @@ function sp(s, e) {
15149
15151
  return t;
15150
15152
  }
15151
15153
  Rs("#1890ff");
15152
- var Ce = function(e, t) {
15153
- var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, l = r.rotate, u = r.tabindex, p = r.twoToneColor, d = r.onClick, c = rp(r, Xu), q = (a = {
15154
+ var Ee = function(e, t) {
15155
+ var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, l = r.rotate, u = r.tabindex, p = r.twoToneColor, d = r.onClick, y = rp(r, Xu), m = (a = {
15154
15156
  anticon: !0
15155
- }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), y = o === "" || o || n.name === "loading" ? "anticon-spin" : "", b = u;
15156
- b === void 0 && d && (b = -1, c.tabindex = b);
15157
- var T = l ? {
15157
+ }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), c = o === "" || o || n.name === "loading" ? "anticon-spin" : "", T = u;
15158
+ T === void 0 && d && (T = -1, y.tabindex = T);
15159
+ var q = l ? {
15158
15160
  msTransform: "rotate(".concat(l, "deg)"),
15159
15161
  transform: "rotate(".concat(l, "deg)")
15160
- } : void 0, m = ks(p), A = Yu(m, 2), f = A[0], v = A[1];
15161
- return Le("span", Dr({
15162
+ } : void 0, _ = ks(p), S = Yu(_, 2), f = S[0], v = S[1];
15163
+ return Ue("span", Dr({
15162
15164
  role: "img",
15163
15165
  "aria-label": n.name
15164
- }, c, {
15166
+ }, y, {
15165
15167
  onClick: d,
15166
- class: q
15167
- }), [Le(ga, {
15168
- class: y,
15168
+ class: m
15169
+ }), [Ue(ga, {
15170
+ class: c,
15169
15171
  icon: n,
15170
15172
  primaryColor: f,
15171
15173
  secondaryColor: v,
15172
- style: T
15174
+ style: q
15173
15175
  }, null)]);
15174
15176
  };
15175
- Ce.props = {
15177
+ Ee.props = {
15176
15178
  spin: Boolean,
15177
15179
  rotate: Number,
15178
15180
  icon: Object,
15179
15181
  twoToneColor: String
15180
15182
  };
15181
- Ce.displayName = "AntdIcon";
15182
- Ce.inheritAttrs = !1;
15183
- Ce.getTwoToneColor = Ju;
15184
- Ce.setTwoToneColor = Rs;
15185
- const Ms = Ce;
15183
+ Ee.displayName = "AntdIcon";
15184
+ Ee.inheritAttrs = !1;
15185
+ Ee.getTwoToneColor = Ju;
15186
+ Ee.setTwoToneColor = Rs;
15187
+ const Ms = Ee;
15186
15188
  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" };
15187
15189
  const np = ip;
15188
15190
  function kr(s) {
@@ -15201,7 +15203,7 @@ function op(s, e, t) {
15201
15203
  }
15202
15204
  var Sa = function(e, t) {
15203
15205
  var a = kr({}, e, t.attrs);
15204
- return Le(Ms, kr({}, a, {
15206
+ return Ue(Ms, kr({}, a, {
15205
15207
  icon: np
15206
15208
  }), null);
15207
15209
  };
@@ -15226,7 +15228,7 @@ function dp(s, e, t) {
15226
15228
  }
15227
15229
  var ba = function(e, t) {
15228
15230
  var a = Rr({}, e, t.attrs);
15229
- return Le(Ms, Rr({}, a, {
15231
+ return Ue(Ms, Rr({}, a, {
15230
15232
  icon: pp
15231
15233
  }), null);
15232
15234
  };
@@ -15263,7 +15265,7 @@ class xs {
15263
15265
  getRouter: this.getRouter.bind(this),
15264
15266
  validateInstance: this.validateInstance.bind(this),
15265
15267
  camelizeKeys: Je.bind(this),
15266
- decamelizeKeys: j.bind(this)
15268
+ decamelizeKeys: $.bind(this)
15267
15269
  };
15268
15270
  this.engine.getAction().actionUtils = e;
15269
15271
  }
@@ -15283,39 +15285,39 @@ class xs {
15283
15285
  return this.config.language;
15284
15286
  }
15285
15287
  toast(e, t) {
15286
- const a = ie(t) ? t : t?.type;
15288
+ const a = ne(t) ? t : t?.type;
15287
15289
  let r, i = 2e3;
15288
- t && !ie(t) && (r = t.onClose, i = t.duration ?? 2e3);
15290
+ t && !ne(t) && (r = t.onClose, i = t.duration ?? 2e3);
15289
15291
  const n = r;
15290
15292
  if (r = function() {
15291
15293
  n?.(), setTimeout(() => {
15292
15294
  document.body.style.overflow = "";
15293
15295
  }, 500);
15294
- }, console.log(L.config.globalProperties), this.getDevice() === "desktop") {
15296
+ }, console.log(L().config.globalProperties), this.getDevice() === "desktop") {
15295
15297
  switch (a) {
15296
15298
  case "success":
15297
- L.config.globalProperties.$success({
15299
+ L().config.globalProperties.$success({
15298
15300
  class: "bl-modal-content-pre bl-clear-active",
15299
15301
  content: e,
15300
15302
  onOk: r
15301
15303
  });
15302
15304
  break;
15303
15305
  case "error":
15304
- L.config.globalProperties.$error({
15306
+ L().config.globalProperties.$error({
15305
15307
  class: "bl-modal-content-pre bl-clear-active",
15306
15308
  content: e,
15307
15309
  onOk: r
15308
15310
  });
15309
15311
  break;
15310
15312
  case "warning":
15311
- L.config.globalProperties.$warning({
15313
+ L().config.globalProperties.$warning({
15312
15314
  class: "bl-modal-content-pre bl-clear-active",
15313
15315
  content: e,
15314
15316
  onOk: r
15315
15317
  });
15316
15318
  break;
15317
15319
  default:
15318
- L.config.globalProperties.$info({
15320
+ L().config.globalProperties.$info({
15319
15321
  class: "bl-modal-content-pre bl-clear-active",
15320
15322
  content: e,
15321
15323
  onOk: r
@@ -15343,24 +15345,24 @@ class xs {
15343
15345
  o = { type: "loading", ...o };
15344
15346
  break;
15345
15347
  }
15346
- L.config.globalProperties.$toast(o);
15348
+ L().config.globalProperties.$toast(o);
15347
15349
  }
15348
15350
  }
15349
15351
  confirm(e, t) {
15350
15352
  return new Promise((a) => {
15351
- this.getDevice() === "desktop" ? L.config.globalProperties.$confirm({
15353
+ this.getDevice() === "desktop" ? L().config.globalProperties.$confirm({
15352
15354
  title: e,
15353
15355
  content: t,
15354
15356
  icon: () => Gt(lp),
15355
- okText: ne.$t("common.confirm", "确定"),
15356
- cancelText: ne.$t("common.cancel", "取消"),
15357
+ okText: oe.$t("common.confirm", "确定"),
15358
+ cancelText: oe.$t("common.cancel", "取消"),
15357
15359
  onOk() {
15358
15360
  a(!0);
15359
15361
  },
15360
15362
  onCancel() {
15361
15363
  a(!1);
15362
15364
  }
15363
- }) : L.config.globalProperties.$dialog.confirm({
15365
+ }) : L().config.globalProperties.$dialog.confirm({
15364
15366
  title: e,
15365
15367
  message: t
15366
15368
  }).then(() => {
@@ -15416,7 +15418,7 @@ class xs {
15416
15418
  }
15417
15419
  });
15418
15420
  o = {
15419
- code: N.SUCCESS,
15421
+ code: F.SUCCESS,
15420
15422
  data: l[0]
15421
15423
  };
15422
15424
  }
@@ -15438,26 +15440,26 @@ class xs {
15438
15440
  let l = "";
15439
15441
  const u = this.engine?.externalParams.data?.content?.model_bind_info_list;
15440
15442
  u && (l = JSON.stringify(u));
15441
- const { datasourceBind: p, dataBind: d, optionConfig: c, options: q } = e.props;
15442
- if (c === "custom")
15443
+ const { datasourceBind: p, dataBind: d, optionConfig: y, options: m } = e.props;
15444
+ if (y === "custom")
15443
15445
  o = {
15444
15446
  // 从options中取出来符合值的每一项
15445
- data: q.filter(
15446
- (y) => Array.isArray(t) ? t.includes(y.value) : y.value === t
15447
+ data: m.filter(
15448
+ (c) => Array.isArray(t) ? t.includes(c.value) : c.value === t
15447
15449
  )
15448
15450
  };
15449
- else if (c === "datasource") {
15450
- let y = d.fieldCode;
15451
- this.engine.assertInstance(e, g.AMOUNT) ? y = d.currency.fieldCode : this.engine.assertInstance(e, g.SELECT_RELATION) && (y = p.valueFieldCode);
15452
- const b = {
15451
+ else if (y === "datasource") {
15452
+ let c = d.fieldCode;
15453
+ this.engine.assertInstance(e, g.AMOUNT) ? c = d.currency.fieldCode : this.engine.assertInstance(e, g.SELECT_RELATION) && (c = p.valueFieldCode);
15454
+ const T = {
15453
15455
  app_id: p.appId || this.engine?.externalParams?.data?.app_id,
15454
15456
  data_code: p.dataCode,
15455
15457
  svc_code: p.svcCode,
15456
- field_code: y,
15458
+ field_code: c,
15457
15459
  data_set: {
15458
15460
  data_code: p.dataCode,
15459
15461
  // 有数据过滤的话,需要把数据过滤的值都拿到
15460
- values: p.filters ? Pe(
15462
+ values: p.filters ? ge(
15461
15463
  this.engine,
15462
15464
  p.filters,
15463
15465
  a
@@ -15468,32 +15470,32 @@ class xs {
15468
15470
  filters: [
15469
15471
  {
15470
15472
  ctrl_value: n,
15471
- display_bo_list: j(p.displayBoList),
15473
+ display_bo_list: $(p.displayBoList),
15472
15474
  query_type: "IN"
15473
15475
  }
15474
15476
  ],
15475
15477
  model: "",
15476
15478
  model_version: this.engine?.externalParams?.data?.content.schema_version,
15477
15479
  // model_bind_info_list_str: modelBindInfoListStr,
15478
- orders: j(p.orders ?? []),
15479
- response_display_bo_list: j(
15480
+ orders: $(p.orders ?? []),
15481
+ response_display_bo_list: $(
15480
15482
  p.displayBoList
15481
15483
  ),
15482
15484
  form_key: (this.engine?.externalParams).data.form_key,
15483
15485
  limit: 100,
15484
15486
  query_mode: "VALUE"
15485
15487
  };
15486
- this.config.isPreview ? b.model_bind_info_list_str = l : b?.model_bind_info_list_str && delete b.model_bind_info_list_str, o = await this.getHttp().post(
15488
+ this.config.isPreview ? T.model_bind_info_list_str = l : T?.model_bind_info_list_str && delete T.model_bind_info_list_str, o = await this.getHttp().post(
15487
15489
  "/v1/private/bizModel/getFieldsValueWithFilter",
15488
- b
15490
+ T
15489
15491
  );
15490
15492
  }
15491
15493
  }
15492
- if (o && o.code === N.SUCCESS)
15494
+ if (o && o.code === F.SUCCESS)
15493
15495
  return o.data;
15494
15496
  {
15495
15497
  const l = this.getDevice() === "desktop";
15496
- o?.code == "1201702" && (l ? L.config.globalProperties.$message.error(o?.message) : L.config.globalProperties.$toast.fail(o?.message));
15498
+ o?.code == "1201702" && (l ? L().config.globalProperties.$message.error(o?.message) : L().config.globalProperties.$toast.fail(o?.message));
15497
15499
  }
15498
15500
  return null;
15499
15501
  }
@@ -15506,7 +15508,7 @@ class xs {
15506
15508
  a !== -1 ? a : void 0
15507
15509
  );
15508
15510
  let i;
15509
- const n = G(
15511
+ const n = U(
15510
15512
  () => tt.getCacheDisplay(e.props?.dataBind, r)
15511
15513
  );
15512
15514
  if (n.value.length > 0)
@@ -15539,7 +15541,7 @@ class xs {
15539
15541
  ), JSON.parse(JSON.stringify(this.engine.externalParams?.url || {}));
15540
15542
  }
15541
15543
  getRouter() {
15542
- const e = L.config.globalProperties.$router;
15544
+ const e = L().config.globalProperties.$router;
15543
15545
  return {
15544
15546
  push: e.push,
15545
15547
  replace: e.replace,
@@ -15550,7 +15552,7 @@ class xs {
15550
15552
  }
15551
15553
  async validateInstance(e, t) {
15552
15554
  return await Hr(), !(await this.engine.emit("validateInstance", {
15553
- instance: ie(e) ? this.engine.getInstance(e, t) : e,
15555
+ instance: ne(e) ? this.engine.getInstance(e, t) : e,
15554
15556
  rowIndex: t
15555
15557
  })).includes(!1);
15556
15558
  }
@@ -15645,16 +15647,16 @@ class Bs {
15645
15647
  o
15646
15648
  ) ?? n;
15647
15649
  if (p === !1)
15648
- e.options?.fail(ne.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15650
+ e.options?.fail(oe.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15649
15651
  else {
15650
- const d = he(), c = await rn.awaitWraper(
15652
+ const d = he(), y = await rn.awaitWraper(
15651
15653
  i && !r && !a ? d.default.UpdateDataPagePrivateV1ApiAppsPOST({
15652
15654
  payload: p
15653
15655
  }) : d.default.ApplySubmitPagePrivateV1ApiAppsPOST({
15654
15656
  payload: p
15655
15657
  })
15656
15658
  );
15657
- 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"));
15659
+ y && y.code === F.SUCCESS ? await this.onAfterSubmit(p, y, o) ? await e.options?.success() : e.options?.changeSubmitStatus("reset") : (await e.options?.fail(y.message), e.options?.changeSubmitStatus("reset"));
15658
15660
  }
15659
15661
  }
15660
15662
  async onBeforeSubmit(e, t = {}) {
@@ -15745,9 +15747,9 @@ class Fs {
15745
15747
  const t = e.options.runTask.command_type, a = e.options.hiddenModal;
15746
15748
  t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ? ii.confirm({
15747
15749
  content: e.options.runTask.sureMessage,
15748
- icon: Le(cp),
15749
- okText: ne.$t("common.confirm", "确定"),
15750
- cancelText: ne.$t("common.cancel", "取消"),
15750
+ icon: Ue(cp),
15751
+ okText: oe.$t("common.confirm", "确定"),
15752
+ cancelText: oe.$t("common.cancel", "取消"),
15751
15753
  okButtonProps: this.okButtonProps,
15752
15754
  onOk: () => (Ut(e, "ApprovalPlugin.ts, onOk, ~777~"), new Promise((r, i) => {
15753
15755
  this.okButtonProps.loading = !0, this.submitData(e, r, i);
@@ -15758,10 +15760,10 @@ class Fs {
15758
15760
  async submitData(e, t, a) {
15759
15761
  Ut(e, "ApprovalPlugin.ts, submitData, ~777~");
15760
15762
  const r = he(), i = await this.genApprovalSubmitPayload(e);
15761
- i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ne.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15763
+ i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(oe.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15762
15764
  payload: i
15763
15765
  }).then((n) => {
15764
- n.code === N.SUCCESS ? this.engine?.emit("engine-submitted", {
15766
+ n.code === F.SUCCESS ? this.engine?.emit("engine-submitted", {
15765
15767
  value: n.data,
15766
15768
  options: {
15767
15769
  payload: i
@@ -15808,7 +15810,7 @@ class Ls {
15808
15810
  if (t?.dataOrigin === "sublist") {
15809
15811
  const r = e.getControlIdMapping();
15810
15812
  Object.keys(r).map((i) => {
15811
- if (xe(r[i].dataBind) && r[i].dataBind.fieldCode === t?.relation_key && t?.relation_key) {
15813
+ if (Fe(r[i].dataBind) && r[i].dataBind.fieldCode === t?.relation_key && t?.relation_key) {
15812
15814
  const n = e.getInstance(i);
15813
15815
  n !== void 0 && n.controlType !== "list" && (e.setFields(a, {
15814
15816
  [t.relation_key]: t.relation_uid
@@ -15911,20 +15913,20 @@ class Ns {
15911
15913
  const l = e.instance, u = l.props?.datasourceBind;
15912
15914
  if (!u)
15913
15915
  return [];
15914
- const p = u.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], q = l.props?.dataBind?.fieldCode, y = e.value, b = Pe(
15916
+ const p = u.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], m = l.props?.dataBind?.fieldCode, c = e.value, T = ge(
15915
15917
  this.engine,
15916
15918
  p,
15917
15919
  e.rowIndex,
15918
15920
  d[0]?.isFilter ? void 0 : [
15919
15921
  {
15920
- code: q,
15921
- value: y
15922
+ code: m,
15923
+ value: c
15922
15924
  }
15923
15925
  ],
15924
15926
  l?.props
15925
15927
  );
15926
- u.displayBoList, "attributes" in u && u.attributes !== null && u.attributes[0].value, r?.isFilter || (Array.isArray(y) ? y.map((m) => m.trim()).join(",") : ie(y) && y.trim());
15927
- const T = {
15928
+ u.displayBoList, "attributes" in u && u.attributes !== null && u.attributes[0].value, r?.isFilter || (Array.isArray(c) ? c.map((_) => _.trim()).join(",") : ne(c) && c.trim());
15929
+ const q = {
15928
15930
  app_id: u.appId || this.engine?.externalParams?.data?.app_id,
15929
15931
  key_word: i,
15930
15932
  org_schema_id: e.options?.organizationView || l?.props?.organizationView || "6",
@@ -15933,17 +15935,17 @@ class Ns {
15933
15935
  org_unit_ids: n,
15934
15936
  data_set: {
15935
15937
  data_code: u.dataCode,
15936
- values: b
15938
+ values: T
15937
15939
  },
15938
15940
  relation_form_key: u.formCode,
15939
15941
  save_form_key: this.engine?.externalParams?.data?.form_key,
15940
- filters: j(p),
15941
- orders: j(u.orders ?? [])
15942
+ filters: $(p),
15943
+ orders: $(u.orders ?? [])
15942
15944
  };
15943
15945
  return await this.cacheRequest.request(
15944
15946
  this.service.default.SelectBizOrgUnitListFilterDeptPrivateV1ApiAppsPOST,
15945
- T,
15946
- (m) => (m?.data?.map((v) => ({
15947
+ q,
15948
+ (_) => (_?.data?.map((v) => ({
15947
15949
  label: v.org_unit_name,
15948
15950
  value: v.org_unit_id,
15949
15951
  ...v
@@ -15971,7 +15973,7 @@ class Ns {
15971
15973
  ...t,
15972
15974
  query_criteria: [],
15973
15975
  sort_criteria: o,
15974
- data_filters: j(i.filters)
15976
+ data_filters: $(i.filters)
15975
15977
  },
15976
15978
  save_datas: {},
15977
15979
  response_display_bo_list: l[0]?.value ?? [],
@@ -16005,11 +16007,11 @@ class Ns {
16005
16007
  const p = u.filters ?? [];
16006
16008
  let d = "";
16007
16009
  this.engine.assertInstance(a, g.AMOUNT) ? d = a.props.dataBind.currency.fieldCode : d = a.props?.dataBind?.fieldCode;
16008
- const c = Array.isArray(i) ? i : [i ?? {}], q = Pe(
16010
+ const y = Array.isArray(i) ? i : [i ?? {}], m = ge(
16009
16011
  this.engine,
16010
16012
  p,
16011
16013
  e.rowIndex,
16012
- c[0]?.isFilter ? void 0 : [
16014
+ y[0]?.isFilter ? void 0 : [
16013
16015
  {
16014
16016
  code: d,
16015
16017
  value: o
@@ -16017,23 +16019,23 @@ class Ns {
16017
16019
  ],
16018
16020
  a?.props
16019
16021
  );
16020
- let y;
16021
- const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16022
- b && this.config.isPreviewMode && (y = JSON.stringify(b));
16023
- let T = u.displayBoList;
16024
- "attributes" in u && u.attributes !== null && (T = u.attributes[0].value);
16025
- let m = "";
16026
- i?.isFilter ? m = "" : Array.isArray(o) ? m = o.map((h) => h.trim()).join(",") : ie(o) ? m = o.trim() : m = o;
16027
- let A = [];
16022
+ let c;
16023
+ const T = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16024
+ T && this.config.isPreviewMode && (c = JSON.stringify(T));
16025
+ let q = u.displayBoList;
16026
+ "attributes" in u && u.attributes !== null && (q = u.attributes[0].value);
16027
+ let _ = "";
16028
+ i?.isFilter ? _ = "" : Array.isArray(o) ? _ = o.map((h) => h.trim()).join(",") : ne(o) ? _ = o.trim() : _ = o;
16029
+ let S = [];
16028
16030
  const f = u?.keywordMapping;
16029
- f !== void 0 && f !== "" ? A = [
16031
+ f !== void 0 && f !== "" ? S = [
16030
16032
  {
16031
- ctrl_value: m,
16033
+ ctrl_value: _,
16032
16034
  field_code: f
16033
16035
  }
16034
- ] : A = c.map((h) => ({
16035
- ctrl_value: "value" in h ? h.value : m,
16036
- display_bo_list: h?.displayBoList || j(T),
16036
+ ] : S = y.map((h) => ({
16037
+ ctrl_value: "value" in h ? h.value : _,
16038
+ display_bo_list: h?.displayBoList || $(q),
16037
16039
  query_type: h?.queryType || "LIKE",
16038
16040
  field_code: h?.fieldCode
16039
16041
  // 人员
@@ -16045,21 +16047,21 @@ class Ns {
16045
16047
  field_code: d,
16046
16048
  data_set: {
16047
16049
  data_code: u.dataCode,
16048
- values: q
16050
+ values: m
16049
16051
  },
16050
16052
  element_id: l,
16051
16053
  value_field_code: i?.valueFieldCode ?? u.valueFieldCode,
16052
- filters: A,
16054
+ filters: S,
16053
16055
  model: "",
16054
16056
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16055
- orders: j(u.orders ?? []),
16056
- response_display_bo_list: j(T),
16057
+ orders: $(u.orders ?? []),
16058
+ response_display_bo_list: $(q),
16057
16059
  form_key: this.engine?.externalParams?.data.form_key,
16058
16060
  ...t,
16059
16061
  // limit: limit,
16060
- query_mode: c[0]?.queryMode || "LABEL"
16062
+ query_mode: y[0]?.queryMode || "LABEL"
16061
16063
  };
16062
- this.config.isPreviewMode && (v.model_bind_info_list_str = y);
16064
+ this.config.isPreviewMode && (v.model_bind_info_list_str = c);
16063
16065
  const O = await this.engine.emit("onSearch", {
16064
16066
  value: {
16065
16067
  filters: v.filters,
@@ -16067,18 +16069,18 @@ class Ns {
16067
16069
  orders: v.orders,
16068
16070
  query_mode: v.query_mode
16069
16071
  }
16070
- }), E = this.engine.assertInstance(a, [
16072
+ }), D = this.engine.assertInstance(a, [
16071
16073
  g.DEPARTMENT2,
16072
16074
  g.DEPARTMENT_COLUMN
16073
16075
  ]) ? "GetDeptTreeWithFilterBizModelPrivateV1ApiAppsPOST" : "GetFieldsValueWithFilterBizModelPrivateV1ApiAppsPOST";
16074
16076
  return await this.cacheRequest.request(
16075
- this.service.default[E],
16077
+ this.service.default[D],
16076
16078
  {
16077
16079
  ...v,
16078
16080
  ...O[0]?.value
16079
16081
  },
16080
16082
  (h) => {
16081
- const S = h?.data?.field_value_list?.map((P) => ({
16083
+ const b = h?.data?.field_value_list?.map((P) => ({
16082
16084
  label: P.text,
16083
16085
  value: P.value,
16084
16086
  id: P.data_id,
@@ -16087,7 +16089,7 @@ class Ns {
16087
16089
  return this.engine.assertInstance(a, [
16088
16090
  g.DEPARTMENT2,
16089
16091
  g.DEPARTMENT_COLUMN
16090
- ]) ? S : S.filter((P) => P.label);
16092
+ ]) ? b : b.filter((P) => P.label);
16091
16093
  }
16092
16094
  );
16093
16095
  }
@@ -16104,7 +16106,7 @@ class Ns {
16104
16106
  const p = u.filters ?? [];
16105
16107
  let d = "";
16106
16108
  d = (t.props?.dataBind).fieldCode;
16107
- const q = Pe(
16109
+ const m = ge(
16108
16110
  this.engine,
16109
16111
  p,
16110
16112
  e.rowIndex,
@@ -16116,24 +16118,24 @@ class Ns {
16116
16118
  ],
16117
16119
  t?.props
16118
16120
  );
16119
- let y;
16120
- const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16121
- b && this.config.isPreviewMode && (y = JSON.stringify(b));
16122
- const T = u.attributes[0].value, m = () => {
16121
+ let c;
16122
+ const T = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16123
+ T && this.config.isPreviewMode && (c = JSON.stringify(T));
16124
+ const q = u.attributes[0].value, _ = () => {
16123
16125
  const P = {
16124
16126
  user_name: "employee_name",
16125
16127
  current_user_id: "employee_id",
16126
16128
  email: "email",
16127
16129
  phone: "phone",
16128
16130
  department_id: "department_id"
16129
- }, w = u.rootNode;
16130
- let I = w.value[0];
16131
- if (w.type === "system") {
16131
+ }, A = u.rootNode;
16132
+ let I = A.value[0];
16133
+ if (A.type === "system") {
16132
16134
  const C = P[I];
16133
16135
  I = this.config.userInfo[C];
16134
16136
  }
16135
16137
  return I;
16136
- }, A = u?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16138
+ }, S = u?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16137
16139
  let O = [];
16138
16140
  n && (O = [
16139
16141
  {
@@ -16143,21 +16145,21 @@ class Ns {
16143
16145
  value: [n]
16144
16146
  }
16145
16147
  ]);
16146
- let E = [];
16148
+ let D = [];
16147
16149
  const h = u?.keywordMapping;
16148
- h !== void 0 && h !== "" ? E = [
16150
+ h !== void 0 && h !== "" ? D = [
16149
16151
  {
16150
16152
  ctrl_value: i?.isFilter ? "" : o,
16151
16153
  field_code: u.keywordMapping
16152
16154
  }
16153
- ] : E = [
16155
+ ] : D = [
16154
16156
  {
16155
16157
  ctrl_value: i?.isFilter ? "" : o,
16156
- display_bo_list: j(T),
16158
+ display_bo_list: $(q),
16157
16159
  query_type: i?.queryType || "LIKE"
16158
16160
  }
16159
16161
  ];
16160
- const S = {
16162
+ const b = {
16161
16163
  app_id: this.engine?.externalParams?.data?.app_id,
16162
16164
  data_code: u.dataCode,
16163
16165
  svc_code: u.svcCode,
@@ -16165,43 +16167,43 @@ class Ns {
16165
16167
  custom_data: O,
16166
16168
  data_set: {
16167
16169
  data_code: u.dataCode,
16168
- values: q
16170
+ values: m
16169
16171
  },
16170
16172
  element_id: l,
16171
16173
  value_field_code: u.valueFieldCode,
16172
- filters: E,
16174
+ filters: D,
16173
16175
  model: "",
16174
16176
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16175
- model_bind_info_list_str: y,
16176
- orders: j(u.orders ?? []),
16177
- response_display_bo_list: j(T),
16177
+ model_bind_info_list_str: c,
16178
+ orders: $(u.orders ?? []),
16179
+ response_display_bo_list: $(q),
16178
16180
  form_key: this.engine?.externalParams?.data.form_key,
16179
16181
  query_mode: i?.queryMode || "LABLE",
16180
- root_field_values: i.rootFieldValues ?? m(),
16182
+ root_field_values: i.rootFieldValues ?? _(),
16181
16183
  // 根节点Id
16182
- parent_field_code: A,
16184
+ parent_field_code: S,
16183
16185
  unfold_grade: i?.unfoldGrade ?? f,
16184
16186
  // 展开层级
16185
16187
  query_all_node: i.queryAllNode ?? v,
16186
16188
  // 是否展示全部
16187
16189
  contain_cur_node: i.containCurNode ?? 0
16188
16190
  // 是否包含当前
16189
- }, _ = await this.engine.emit("onSearch", {
16191
+ }, w = await this.engine.emit("onSearch", {
16190
16192
  instance: t,
16191
16193
  rowIndex: e.rowIndex,
16192
16194
  options: e.options,
16193
16195
  value: {
16194
- filters: S.filters,
16195
- data_set: S.data_set,
16196
- orders: S.orders,
16197
- query_mode: S.query_mode
16196
+ filters: b.filters,
16197
+ data_set: b.data_set,
16198
+ orders: b.orders,
16199
+ query_mode: b.query_mode
16198
16200
  }
16199
16201
  });
16200
16202
  return await this.cacheRequest.request(
16201
16203
  this.service.default.TreeListDataPagePrivateV1ApiAppsPOST,
16202
16204
  {
16203
- ...S,
16204
- ..._[0]?.value
16205
+ ...b,
16206
+ ...w[0]?.value
16205
16207
  },
16206
16208
  (P) => (this.formaResult(P?.data?.field_value_list || []), (P?.data?.field_value_list ?? []).filter((C) => C?.label))
16207
16209
  );
@@ -16318,8 +16320,8 @@ class Us {
16318
16320
  if (this.engine.assertInstance(e, g.TREE) && t[0].length && i.length) {
16319
16321
  r = [];
16320
16322
  const o = Array.isArray(i) ? i : [i], l = (u, p, d) => {
16321
- if (u.forEach((c) => {
16322
- p.includes(c.value) ? d.push(c.value) : c.children.length && l(c.children, p, d);
16323
+ if (u.forEach((y) => {
16324
+ p.includes(y.value) ? d.push(y.value) : y.children.length && l(y.children, p, d);
16323
16325
  }), d.length === p.length || d === p)
16324
16326
  return d;
16325
16327
  };
@@ -16369,7 +16371,7 @@ class Gs {
16369
16371
  if (e.props !== "defaultState" || e.value === "readonly")
16370
16372
  return;
16371
16373
  const t = e.instance.props.dataBind;
16372
- !t || ![se.REFERENCE_FIELD, se.CALC_FIELD].includes(
16374
+ !t || ![ie.REFERENCE_FIELD, ie.CALC_FIELD].includes(
16373
16375
  t.fieldType
16374
16376
  ) || this.engine.setInstance(e.instance, "defaultState", "readonly");
16375
16377
  });
@@ -16553,7 +16555,7 @@ class Ta {
16553
16555
  getDatasourceValue(e, t) {
16554
16556
  const a = e.shift(), r = this.engine.getDataManager()?.get(a) ?? [];
16555
16557
  let i = [];
16556
- return Array.isArray(r) ? i = r.map((n) => e.length ? Ne(n, e) : n) : e.length ? i = [Ne(r, e)] : i = Object.values(r), t ? i : i.filter(Boolean).join(",");
16558
+ return Array.isArray(r) ? i = r.map((n) => e.length ? Ge(n, e) : n) : e.length ? i = [Ge(r, e)] : i = Object.values(r), t ? i : i.filter(Boolean).join(",");
16557
16559
  }
16558
16560
  getFormVariables(e) {
16559
16561
  const a = this.engine.getAction().actionUtils.getPageStatus(), r = e[0];
@@ -16719,7 +16721,7 @@ class Hs extends Ta {
16719
16721
  getDatasourceValue(e, t) {
16720
16722
  const a = e.shift(), r = this.engine.getDataManager()?.get(a) ?? [];
16721
16723
  let i = [];
16722
- return Array.isArray(r) ? i = r.map((n) => e.length ? Ne(n, e) : n) : e.length ? i = [Ne(r, e)] : i = Object.values(r), t ? i : i.filter(Boolean).join(",");
16724
+ return Array.isArray(r) ? i = r.map((n) => e.length ? Ge(n, e) : n) : e.length ? i = [Ge(r, e)] : i = Object.values(r), t ? i : i.filter(Boolean).join(",");
16723
16725
  }
16724
16726
  }
16725
16727
  class vp {
@@ -16762,43 +16764,43 @@ class zs extends Ta {
16762
16764
  default:
16763
16765
  n = i;
16764
16766
  }
16765
- const o = r.getTenant(), l = t.find((T) => T.type === n);
16767
+ const o = r.getTenant(), l = t.find((q) => q.type === n);
16766
16768
  if (!l)
16767
16769
  return;
16768
16770
  let u = "";
16769
16771
  const {
16770
- props: { value: p, i18n: d, fx: c }
16772
+ props: { value: p, i18n: d, fx: y }
16771
16773
  } = l;
16772
16774
  if (!p)
16773
16775
  return;
16774
- let { data: q, url: y } = this.engine.externalParams;
16775
- const b = qs.split("-")[0];
16776
+ let { data: m, url: c } = this.engine.externalParams;
16777
+ const T = qs.split("-")[0];
16776
16778
  if (d && Object.keys(d).length) {
16777
- u = d[b] || d.zh;
16778
- const T = a.state.multipleTabs;
16779
- T[y.sappId]?.panesList?.forEach((m) => {
16780
- if (m.formKey === y.formId || m.formKey === y.processInstanceId) {
16781
- let A = q.content.title_setting.filter(
16782
- (f) => f.type === m.type
16779
+ u = d[T] || d.zh;
16780
+ const q = a.state.multipleTabs;
16781
+ q[c.sappId]?.panesList?.forEach((_) => {
16782
+ if (_.formKey === c.formId || _.formKey === c.processInstanceId) {
16783
+ let S = m.content.title_setting.filter(
16784
+ (f) => f.type === _.type
16783
16785
  );
16784
- m.title = A[0]?.props?.i18n[b] || d[b] || d.zh;
16786
+ _.title = S[0]?.props?.i18n[T] || d[T] || d.zh;
16785
16787
  }
16786
- }), a.commit("setMultipleTabs", T), setTimeout(() => {
16788
+ }), a.commit("setMultipleTabs", q), setTimeout(() => {
16787
16789
  String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16788
16790
  }, 1e3);
16789
16791
  return;
16790
16792
  }
16791
- if (c && Object.keys(c).length) {
16792
- const T = (A, f) => {
16793
- (f || f === 0) && (u = f), a.state.multipleTabs[y.sappId]?.panesList?.forEach((O) => {
16794
- (O.formKey === y.formId || O.formKey === y.processInstanceId) && (O.title = u);
16793
+ if (y && Object.keys(y).length) {
16794
+ const q = (S, f) => {
16795
+ (f || f === 0) && (u = f), a.state.multipleTabs[c.sappId]?.panesList?.forEach((O) => {
16796
+ (O.formKey === c.formId || O.formKey === c.processInstanceId) && (O.title = u);
16795
16797
  }), setTimeout(() => {
16796
16798
  String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16797
16799
  }, 1e3);
16798
- }, m = [...this.nonDatasourceDependencyGraph].find(
16799
- (A) => A.type === n
16800
+ }, _ = [...this.nonDatasourceDependencyGraph].find(
16801
+ (S) => S.type === n
16800
16802
  );
16801
- m && this.runnerExpressionAndUpdate(m, T);
16803
+ _ && this.runnerExpressionAndUpdate(_, q);
16802
16804
  }
16803
16805
  });
16804
16806
  }
@@ -16817,7 +16819,7 @@ class zs extends Ta {
16817
16819
  });
16818
16820
  }
16819
16821
  }
16820
- var be = /* @__PURE__ */ ((s) => (s.openLink = "openLink", s.setInstance = "setInstance", s.setInstances = "setInstances", s.setState = "setState", s.triggerEvent = "triggerEvent", s.querySvc = "querySvc", s.unknown = "unknown", s.jsMethod = "jsMethod", s))(be || {}), et = /* @__PURE__ */ ((s) => (s.batch_save = "batch_save", s.batch_modify = "batch_modify", s.batch_remove = "batch_remove", s.insert = "insert", s.update = "update", s.delete = "delete", s.selectOne = "selectOne", s.selectMore = "selectMore", s.count = "count", s.other = "other", s))(et || {}), Me = /* @__PURE__ */ ((s) => (s.custom = "custom", s.form = "form", s.system = "system", s.fx = "fx", s))(Me || {}), oa = /* @__PURE__ */ ((s) => (s.newTab = "newTab", s.currentTab = "currentTab", s))(oa || {});
16822
+ var qe = /* @__PURE__ */ ((s) => (s.openLink = "openLink", s.setInstance = "setInstance", s.setInstances = "setInstances", s.setState = "setState", s.triggerEvent = "triggerEvent", s.querySvc = "querySvc", s.unknown = "unknown", s.jsMethod = "jsMethod", s))(qe || {}), et = /* @__PURE__ */ ((s) => (s.batch_save = "batch_save", s.batch_modify = "batch_modify", s.batch_remove = "batch_remove", s.insert = "insert", s.update = "update", s.delete = "delete", s.selectOne = "selectOne", s.selectMore = "selectMore", s.count = "count", s.other = "other", s))(et || {}), Be = /* @__PURE__ */ ((s) => (s.custom = "custom", s.form = "form", s.system = "system", s.fx = "fx", s))(Be || {}), oa = /* @__PURE__ */ ((s) => (s.newTab = "newTab", s.currentTab = "currentTab", s))(oa || {});
16821
16823
  const mp = {
16822
16824
  user_name: "employee_name",
16823
16825
  current_user_id: "employee_id",
@@ -16932,93 +16934,93 @@ async function Tp({
16932
16934
  input_param: u,
16933
16935
  orders: p,
16934
16936
  filters: d,
16935
- return_type: { return_name: c, return_num: q },
16936
- fillBack: y,
16937
- page_type: b
16938
- } = s.params, T = {
16937
+ return_type: { return_name: y, return_num: m },
16938
+ fillBack: c,
16939
+ page_type: T
16940
+ } = s.params, q = {
16939
16941
  app_id: t
16940
- }, m = new Ws({
16941
- selectedRows: b === "list" ? a?.getState(Js(e))?.selectedRows ?? [] : [],
16942
+ }, _ = new Ws({
16943
+ selectedRows: T === "list" ? a?.getState(Js(e))?.selectedRows ?? [] : [],
16942
16944
  engine: a
16943
16945
  });
16944
16946
  if (l !== et.selectMore) {
16945
16947
  const P = {};
16946
16948
  await Promise.all(
16947
- u.map(async (w) => {
16949
+ u.map(async (A) => {
16948
16950
  let I = "";
16949
- const C = w.rightVariableBo.value;
16950
- switch (w.rightVariableBo.type) {
16951
- case Me.custom:
16951
+ const C = A.rightVariableBo.value;
16952
+ switch (A.rightVariableBo.type) {
16953
+ case Be.custom:
16952
16954
  I = C?.length > 1 ? C : C[0];
16953
16955
  break;
16954
- case Me.form:
16956
+ case Be.form:
16955
16957
  I = C.length ? M(a.getState(C[0], i)) : "";
16956
16958
  break;
16957
- case Me.system:
16959
+ case Be.system:
16958
16960
  const R = C.length ? mp[C[0]] : "";
16959
16961
  I = r[R];
16960
16962
  break;
16961
- case Me.fx:
16962
- I = await m?.parserFXConfig(C[0]);
16963
+ case Be.fx:
16964
+ I = await _?.parserFXConfig(C[0]);
16963
16965
  break;
16964
16966
  }
16965
16967
  Object.assign(P, {
16966
- [w.id]: I
16968
+ [A.id]: I
16967
16969
  });
16968
16970
  })
16969
- ), Object.assign(T, {
16971
+ ), Object.assign(q, {
16970
16972
  svc_code: o,
16971
16973
  save_datas: P
16972
16974
  });
16973
16975
  }
16974
- const A = {};
16976
+ const S = {};
16975
16977
  p?.forEach((P) => {
16976
- Object.assign(A, {
16978
+ Object.assign(S, {
16977
16979
  [P.columnName]: P.desc ? "desc" : "asc"
16978
16980
  });
16979
16981
  });
16980
- const f = (P) => P.map((w) => {
16981
- if ("children" in w)
16982
+ const f = (P) => P.map((A) => {
16983
+ if ("children" in A)
16982
16984
  return {
16983
- ...w,
16984
- children: f(w.children || [])
16985
+ ...A,
16986
+ children: f(A.children || [])
16985
16987
  };
16986
- const { type: I, value: C, ...R } = w.right_variable_bo;
16988
+ const { type: I, value: C, ...R } = A.right_variable_bo;
16987
16989
  return {
16988
- ...w,
16990
+ ...A,
16989
16991
  right_variable_bo: {
16990
16992
  type: I === "form" ? "custom" : I,
16991
16993
  value: I === "form" ? [a.getState(C[0], i)] : C,
16992
16994
  ...R
16993
16995
  }
16994
16996
  };
16995
- }), v = f(j(d || []));
16996
- Object.assign(T, {
16997
+ }), v = f($(d || []));
16998
+ Object.assign(q, {
16997
16999
  svc_code: o,
16998
17000
  query: {
16999
- sort_criteria: A,
17001
+ sort_criteria: S,
17000
17002
  data_filters: v
17001
17003
  }
17002
17004
  });
17003
- const { mode: O, multiple: E, fillList: h } = y;
17005
+ const { mode: O, multiple: D, fillList: h } = c;
17004
17006
  if (l == et.selectMore || l == et.selectOne) {
17005
- const P = c === "all" ? 999 : c === "num" ? q : 1;
17006
- Object.assign(T?.query, {
17007
+ const P = y === "all" ? 999 : y === "num" ? m : 1;
17008
+ Object.assign(q?.query, {
17007
17009
  page_size: P,
17008
17010
  page_index: 1
17009
17011
  });
17010
17012
  }
17011
- const S = (P, w) => {
17013
+ const b = (P, A) => {
17012
17014
  let I = [];
17013
17015
  if (P in M(ua))
17014
17016
  I = M(ua)[P];
17015
17017
  else if ((a?.getInstance(
17016
17018
  P,
17017
- w
17019
+ A
17018
17020
  )).props.optionConfig === "custom") {
17019
17021
  const R = a?.getInstance(
17020
17022
  P,
17021
- w
17023
+ A
17022
17024
  )?.props?.options;
17023
17025
  R && R.length && (I = R?.map((V) => V.value) ?? [], I.length && Sp(P, I));
17024
17026
  }
@@ -17026,58 +17028,58 @@ async function Tp({
17026
17028
  options: I,
17027
17029
  isOptions: !!I.length
17028
17030
  };
17029
- }, _ = (P, w, I, C, R, V) => ue(a.getState(P, V)) && !ue(C[I][w]) ? R === "relation-field" ? [C[I][w]?.value || ""] : C[I][w] ? C[I][w]?.split(",") : [] : R === "relation-field" ? C[I][w]?.value || "" : C[I][w];
17031
+ }, w = (P, A, I, C, R, V) => ue(a.getState(P, V)) && !ue(C[I][A]) ? R === "relation-field" ? [C[I][A]?.value || ""] : C[I][A] ? C[I][A]?.split(",") : [] : R === "relation-field" ? C[I][A]?.value || "" : C[I][A];
17030
17032
  try {
17031
17033
  const P = await n().post(
17032
17034
  "/v1/private/dataSvc/handleDataBySvcCode?",
17033
- T
17035
+ q
17034
17036
  );
17035
17037
  if (P.data && P.data?.value) {
17036
- const w = ue(P.data?.value) ? P.data?.value : [P.data?.value];
17037
- if (w.length) {
17038
- const I = (V, F, H, B) => {
17039
- const U = w.slice(0, 50);
17040
- if (U.length > 1 && E) {
17041
- const W = U.filter(
17042
- (D, $) => $ == 0
17043
- ), Q = W.map((D) => {
17044
- const $ = {}, le = Object.keys(D).includes(F);
17038
+ const A = ue(P.data?.value) ? P.data?.value : [P.data?.value];
17039
+ if (A.length) {
17040
+ const I = (V, x, j, B) => {
17041
+ const N = A.slice(0, 50);
17042
+ if (N.length > 1 && D) {
17043
+ const W = N.filter(
17044
+ (Q, E) => E == 0
17045
+ ), H = W.map((Q) => {
17046
+ const E = {}, re = Object.keys(Q).includes(x);
17045
17047
  return ue(
17046
- _(
17048
+ w(
17047
17049
  V,
17048
- F,
17050
+ x,
17049
17051
  0,
17050
17052
  W,
17051
- H,
17053
+ j,
17052
17054
  B
17053
17055
  )
17054
- ) && le && Object.assign($, {
17055
- [F]: U.map(($e, dt) => _(
17056
+ ) && re && Object.assign(E, {
17057
+ [x]: N.map((Se, dt) => w(
17056
17058
  V,
17057
- F,
17059
+ x,
17058
17060
  dt,
17059
- U,
17060
- H,
17061
+ N,
17062
+ j,
17061
17063
  B
17062
- )).reduce(($e = [], dt = []) => $e?.concat(dt), [])
17063
- }), { ...D, ...$ };
17064
- }), x = _(
17064
+ )).reduce((Se = [], dt = []) => Se?.concat(dt), [])
17065
+ }), { ...Q, ...E };
17066
+ }), G = w(
17065
17067
  V,
17066
- F,
17068
+ x,
17067
17069
  0,
17068
- Q,
17070
+ H,
17069
17071
  void 0,
17070
17072
  // 需要为空 因为altogether已经处理
17071
17073
  B
17072
17074
  );
17073
- return ue(x) ? Array.from(new Set(x)) : x;
17075
+ return ue(G) ? Array.from(new Set(G)) : G;
17074
17076
  }
17075
- return _(
17077
+ return w(
17076
17078
  V,
17077
- F,
17079
+ x,
17078
17080
  0,
17079
- U,
17080
- H,
17081
+ N,
17082
+ j,
17081
17083
  B
17082
17084
  );
17083
17085
  }, C = (V) => typeof a.getInstance(V) > "u" ? !0 : typeof a.getInstanceRowIndex(
@@ -17085,96 +17087,96 @@ async function Tp({
17085
17087
  ) == "number", R = h.filter(
17086
17088
  (V) => V.fieldCode
17087
17089
  );
17088
- if (b === "page")
17090
+ if (T === "page")
17089
17091
  if (C(R[0]?.controlId))
17090
17092
  if (i !== void 0)
17091
17093
  R.forEach((V) => {
17092
- const F = a.getField(y.dataCode)[i], { isOptions: H, options: B } = S(
17094
+ const x = a.getField(c.dataCode)[i], { isOptions: j, options: B } = b(
17093
17095
  V.controlId,
17094
17096
  i
17095
- ), U = I(
17097
+ ), N = I(
17096
17098
  V.controlId,
17097
17099
  V.fieldCode,
17098
17100
  V?.fieldType,
17099
17101
  i
17100
- ), W = ue(U) && H ? U.filter(
17101
- (Q) => B.includes(Q)
17102
- ) : U;
17103
- F[V.controlId] = W;
17102
+ ), W = ue(N) && j ? N.filter(
17103
+ (H) => B.includes(H)
17104
+ ) : N;
17105
+ x[V.controlId] = W;
17104
17106
  });
17105
17107
  else {
17106
17108
  const V = te(
17107
- a.getField(y.dataCode)
17108
- ), F = V?.length ?? 0, H = w.slice(0, 200);
17109
- H?.forEach(() => V.push({}));
17109
+ a.getField(c.dataCode)
17110
+ ), x = V?.length ?? 0, j = A.slice(0, 200);
17111
+ j?.forEach(() => V.push({}));
17110
17112
  const B = {};
17111
17113
  R.map((W) => {
17112
17114
  Object.assign(B, {
17113
- [W.controlId]: S(W?.controlId, -1)
17115
+ [W.controlId]: b(W?.controlId, -1)
17114
17116
  });
17115
- }), new Array(V?.length ?? 0).fill(1).forEach((W, Q) => {
17116
- F <= Q && H.forEach(() => {
17117
+ }), new Array(V?.length ?? 0).fill(1).forEach((W, H) => {
17118
+ x <= H && j.forEach(() => {
17117
17119
  R.forEach(
17118
- (x) => {
17119
- const D = [
17120
- H[Q - F]
17121
- ], $ = _(
17122
- x.controlId,
17123
- x.fieldCode,
17120
+ (G) => {
17121
+ const Q = [
17122
+ j[H - x]
17123
+ ], E = w(
17124
+ G.controlId,
17125
+ G.fieldCode,
17124
17126
  0,
17125
- D,
17126
- x.fieldType,
17127
- Q
17128
- ), le = ue($) ? $ : [$], Ge = B[x.controlId].isOptions ? le?.filter(
17129
- ($e) => B[x.controlId].options?.includes($e)
17130
- ) ? le : void 0 : $;
17131
- V[Q][x.controlId] = Ge;
17127
+ Q,
17128
+ G.fieldType,
17129
+ H
17130
+ ), re = ue(E) ? E : [E], fe = B[G.controlId].isOptions ? re?.filter(
17131
+ (Se) => B[G.controlId].options?.includes(Se)
17132
+ ) ? re : void 0 : E;
17133
+ V[H][G.controlId] = fe;
17132
17134
  }
17133
17135
  );
17134
17136
  });
17135
17137
  });
17136
- const U = a.getInstance(
17138
+ const N = a.getInstance(
17137
17139
  R[0]?.controlId,
17138
17140
  -1
17139
17141
  )?.parent?.parent?.id;
17140
- a.setState(U, V, void 0, {
17142
+ a.setState(N, V, void 0, {
17141
17143
  disableMultistageFillingPluginListChange: !0,
17142
17144
  disableMultistageFillingPluginChange: !1
17143
17145
  });
17144
17146
  }
17145
17147
  else
17146
17148
  O === Ks.current && R.forEach((V) => {
17147
- let F;
17148
- const H = a.getInstance(V.controlId), B = I(
17149
+ let x;
17150
+ const j = a.getInstance(V.controlId), B = I(
17149
17151
  V.controlId,
17150
17152
  V.fieldCode,
17151
17153
  V?.fieldType
17152
- ), { isOptions: U, options: W } = S(V.controlId);
17154
+ ), { isOptions: N, options: W } = b(V.controlId);
17153
17155
  if (ue(a.getState(V.controlId)))
17154
- H?.props?.optionConfig === "datasource" ? F = B : F = U ? B.filter(
17155
- (Q) => W.includes(Q)
17156
+ j?.props?.optionConfig === "datasource" ? x = B : x = N ? B.filter(
17157
+ (H) => W.includes(H)
17156
17158
  ) : B;
17157
17159
  else {
17158
- const Q = ["radio", "select", "select-relation"], x = ue(B) ? B[0] : B;
17159
- Q.includes(H?.type || "") ? H?.props?.optionConfig === "datasource" ? F = x : F = W.includes(x) ? x : "" : F = B;
17160
+ const H = ["radio", "select", "select-relation"], G = ue(B) ? B[0] : B;
17161
+ H.includes(j?.type || "") ? j?.props?.optionConfig === "datasource" ? x = G : x = W.includes(G) ? G : "" : x = B;
17160
17162
  }
17161
17163
  a.setState(
17162
17164
  V.controlId,
17163
17165
  //处理控件值为数组类型时 拼接每一项 处理单选多选的情况
17164
- F || void 0
17166
+ x || void 0
17165
17167
  );
17166
17168
  });
17167
17169
  }
17168
17170
  }
17169
17171
  if (P.code == "000000")
17170
17172
  return {
17171
- input: T,
17173
+ input: q,
17172
17174
  output: P.data
17173
17175
  };
17174
17176
  {
17175
- const w = P.message || ne.$t("message.calledServiceFail", "调用服务失败");
17176
- return bp ? $t.error(w) : Ht.fail(w), {
17177
- input: T,
17177
+ const A = P.message || oe.$t("message.calledServiceFail", "调用服务失败");
17178
+ return bp ? $t.error(A) : Ht.fail(A), {
17179
+ input: q,
17178
17180
  output: P.data,
17179
17181
  error: P
17180
17182
  };
@@ -17199,14 +17201,14 @@ async function qp(s) {
17199
17201
  s.params?.error
17200
17202
  );
17201
17203
  else {
17202
- const i = ne.$t(
17204
+ const i = oe.$t(
17203
17205
  "message.callJsFailed",
17204
17206
  "调用JS方法失败" + a.method + "方法不存在"
17205
17207
  );
17206
17208
  K.isPc() ? $t.error(i) : Ht.fail(i);
17207
17209
  }
17208
17210
  } catch (i) {
17209
- const n = ne.$t(
17211
+ const n = oe.$t(
17210
17212
  "message.callJsFailed",
17211
17213
  "调用JS方法失败" + a.method + "方法 " + i
17212
17214
  );
@@ -17259,15 +17261,15 @@ class Xs {
17259
17261
  for (let i = 0; i < a.cases[0].handlers.length; i++) {
17260
17262
  const n = a.cases[0].handlers, o = n[i];
17261
17263
  let l;
17262
- if (o.method === be.openLink)
17264
+ if (o.method === qe.openLink)
17263
17265
  await Pp({
17264
17266
  engine: this.engine,
17265
17267
  handler: o,
17266
17268
  instance: t?.instance
17267
17269
  }), e === "on_focus" && o.params.openMode === "newTab" && cs(), r = l;
17268
- else if (o.method === be.setInstance)
17270
+ else if (o.method === qe.setInstance)
17269
17271
  await gp(o, this.engine);
17270
- else if (o.method === be.querySvc) {
17272
+ else if (o.method === qe.querySvc) {
17271
17273
  const u = await Tp(
17272
17274
  { handler: o, instance: t?.instance },
17273
17275
  this.app_id,
@@ -17277,12 +17279,12 @@ class Xs {
17277
17279
  );
17278
17280
  u?.error && (l = !1), r = u;
17279
17281
  } else
17280
- o.method === be.jsMethod && (l = await qp({
17282
+ o.method === qe.jsMethod && (l = await qp({
17281
17283
  handler: o,
17282
17284
  engine: this.engine,
17283
17285
  params: r
17284
17286
  }), r = void 0);
17285
- if (l === !1 && n?.[i + 1]?.method !== be.jsMethod)
17287
+ if (l === !1 && n?.[i + 1]?.method !== qe.jsMethod)
17286
17288
  break;
17287
17289
  }
17288
17290
  }
@@ -17350,7 +17352,7 @@ const Op = (s, e = "date") => {
17350
17352
  const e = Op((/* @__PURE__ */ new Date()).valueOf(), s);
17351
17353
  return Number(e[0]);
17352
17354
  };
17353
- let Te;
17355
+ let Oe;
17354
17356
  const Ap = [
17355
17357
  ki,
17356
17358
  Ri,
@@ -17360,257 +17362,259 @@ const Ap = [
17360
17362
  Fi
17361
17363
  ].reduce((s, e) => (Object.keys(e).forEach((t) => s.push(e[t])), s), []);
17362
17364
  Ap.map((s) => at.register(s));
17363
- function _p(s, e, t = {}, a) {
17365
+ function _p(s, e, t = {}, a, r) {
17364
17366
  const {
17365
- state: r,
17366
- pageStatus: i,
17367
- descript: n,
17368
- device: o,
17369
- engineOptionsBuilder: l,
17370
- parentEngine: u,
17371
- locale: p = ne.global.locale
17367
+ state: i,
17368
+ pageStatus: n,
17369
+ descript: o,
17370
+ device: l,
17371
+ engineOptionsBuilder: u,
17372
+ parentEngine: p,
17373
+ locale: d = oe.global.locale
17372
17374
  } = s, {
17373
- route: d = {},
17374
- store: c = {},
17375
- isPreview: q = !1,
17376
- registeredConfigs: y
17375
+ route: y = {},
17376
+ store: m = {},
17377
+ isPreview: c = !1,
17378
+ registeredConfigs: T
17377
17379
  } = t, {
17378
- query: { enginedebug: b = !1, chn: T }
17379
- } = d, m = M(q), A = JSON.parse(r?.data.content?.model || "[]"), f = new Ni(
17380
- r?.data?.content?.schema_version
17381
- ), v = r?.data.content?.events;
17382
- let O = r?.data.content?.control_events;
17383
- O || (O = {});
17384
- let E = r?.data.content?.listeners;
17385
- E || (E = {});
17386
- const h = JSON.parse(r?.data.display_conf ?? "[]"), S = r?.data?.content?.permission_maps?.behaviors ?? [], _ = r?.data?.data_code;
17387
- let P = f.dataCleaner(A, {
17388
- displayBoList: h,
17389
- dataCode: _,
17390
- behaviors: S,
17391
- control_events: O,
17392
- events: v
17380
+ query: { enginedebug: q = !1, chn: _ }
17381
+ } = y, S = M(c), f = JSON.parse(i?.data.content?.model || "[]"), v = new Ni(
17382
+ i?.data?.content?.schema_version
17383
+ ), O = i?.data.content?.events;
17384
+ let D = i?.data.content?.control_events;
17385
+ D || (D = {});
17386
+ let h = i?.data.content?.listeners;
17387
+ h || (h = {});
17388
+ const b = JSON.parse(i?.data.display_conf ?? "[]"), w = i?.data?.content?.permission_maps?.behaviors ?? [], P = i?.data?.data_code;
17389
+ let A = v.dataCleaner(f, {
17390
+ displayBoList: b,
17391
+ dataCode: P,
17392
+ behaviors: w,
17393
+ control_events: D,
17394
+ events: O
17393
17395
  });
17394
- P = Je(P);
17395
- const w = Je(
17396
- r?.data?.content?.model_bind_info_list ?? []
17397
- ), I = [
17398
- r.data.data_model,
17399
- ...r.data.sub_data_model_list ?? []
17400
- ], C = r?.data?.content?.i18n, R = (D, $, le = "zh") => $?.[le]?.[D.id], V = G(
17401
- () => c.state.tenant?.tenant_auth?.virtual_org || c.state.tenant?.tenant_auth?.virtual_org?.external_org
17402
- ), F = (D) => {
17403
- D = Ui(
17404
- D,
17405
- Te,
17406
- r.content?.refer_component_id_list,
17396
+ A = Je(A);
17397
+ const I = Je(
17398
+ i?.data?.content?.model_bind_info_list ?? []
17399
+ ), C = [
17400
+ i.data.data_model,
17401
+ ...i.data.sub_data_model_list ?? []
17402
+ ], R = i?.data?.content?.i18n, V = (E, re, fe = "zh") => re?.[fe]?.[E.id], x = U(
17403
+ () => m.state.tenant?.tenant_auth?.virtual_org || m.state.tenant?.tenant_auth?.virtual_org?.external_org
17404
+ ), j = (E) => {
17405
+ E = Ui(
17406
+ E,
17407
+ Oe,
17408
+ i.content?.refer_component_id_list,
17407
17409
  {
17408
- displayBoList: h,
17409
- dataCode: _,
17410
- behaviors: S,
17411
- control_events: O,
17412
- events: v
17410
+ displayBoList: b,
17411
+ dataCode: P,
17412
+ behaviors: w,
17413
+ control_events: D,
17414
+ events: O
17413
17415
  }
17414
- ), st.isCopy(r.url.type) && st.setClearValueFieldCode(D), D.pageStatus = i;
17415
- const $ = iu(D, w), le = R(D, C, p.split("-")[0]);
17416
- switch ($ && nu(D, $), le && ou(D, le), pu(
17417
- D,
17418
- I,
17419
- w
17420
- ), D.type) {
17416
+ ), st.isCopy(i.url.type) && st.setClearValueFieldCode(E), E.pageStatus = n;
17417
+ const re = iu(E, I), fe = V(E, R, d.split("-")[0]);
17418
+ switch (re && nu(E, re), fe && ou(E, fe), pu(
17419
+ E,
17420
+ C,
17421
+ I
17422
+ ), E.type) {
17421
17423
  case "employee":
17422
17424
  case "employee2":
17423
- D.props.defaultValueType === "current" && (D.props.defaultValue = [c.state.userInfo.employee_id]);
17425
+ E.props.defaultValueType === "current" && (E.props.defaultValue = [m.state.userInfo.employee_id]);
17424
17426
  break;
17425
17427
  case "department":
17426
17428
  case "department2":
17427
- D.props.defaultValueType === "current" ? D.props.defaultValue = [c.state.userInfo.department_id] : D.props.defaultValueType === "current_dept_id" && (D.props.defaultValue = V.value && c.state.userInfo.current_dept_id ? [c.state.userInfo.current_dept_id] : [c.state.userInfo.department_id]);
17429
+ E.props.defaultValueType === "current" ? E.props.defaultValue = [m.state.userInfo.department_id] : E.props.defaultValueType === "current_dept_id" && (E.props.defaultValue = x.value && m.state.userInfo.current_dept_id ? [m.state.userInfo.current_dept_id] : [m.state.userInfo.department_id]);
17428
17430
  break;
17429
17431
  case "organization-selection":
17430
- D.props.defaultValueType === "current" ? D.props.defaultValue = c.state.userInfo.department_id : D.props.defaultValueType === "current_dept_id" && (D.props.defaultValue = c.state.userInfo.current_dept_id);
17432
+ E.props.defaultValueType === "current" ? E.props.defaultValue = m.state.userInfo.department_id : E.props.defaultValueType === "current_dept_id" && (E.props.defaultValue = m.state.userInfo.current_dept_id);
17431
17433
  break;
17432
17434
  case "date-picker":
17433
- if (D.props.setValueType === "now") {
17434
- const Ge = wp(D.props.dateType);
17435
- D.props.defaultValue = new Date(Ge).valueOf();
17435
+ if (E.props.setValueType === "now") {
17436
+ const Se = wp(E.props.dateType);
17437
+ E.props.defaultValue = new Date(Se).valueOf();
17436
17438
  }
17437
17439
  break;
17438
17440
  }
17439
- }, H = te(
17440
- r.data?.content?.button_groups ?? r.data?.button_group ?? []
17441
- ), B = [
17441
+ }, B = te(
17442
+ i.data?.content?.button_groups ?? i.data?.button_group ?? []
17443
+ ), N = [
17442
17444
  new xs({
17443
17445
  // env: '',
17444
- userInfo: c.state.userInfo,
17445
- tenant: c.state.tenant,
17446
- device: o,
17447
- language: p,
17448
- pageStatus: i,
17449
- isPreview: m
17446
+ userInfo: m.state.userInfo,
17447
+ tenant: m.state.tenant,
17448
+ device: l,
17449
+ language: d,
17450
+ pageStatus: n,
17451
+ isPreview: S
17450
17452
  }),
17451
17453
  new Bs({
17452
- buttonGroups: r.data?.content?.button_groups,
17453
- behaviors: S,
17454
+ buttonGroups: i.data?.content?.button_groups,
17455
+ behaviors: w,
17454
17456
  showDataViewOperationBtn: s.showDataViewOperationBtn,
17455
- channelParamId: T
17457
+ channelParamId: _
17456
17458
  }),
17457
17459
  new Gs(),
17458
- new _s(S, h),
17459
- new As(h, S),
17460
+ new _s(w, b),
17461
+ new As(b, w),
17460
17462
  new Ns({
17461
- userInfo: c.state.userInfo,
17462
- isPreviewMode: m
17463
+ userInfo: m.state.userInfo,
17464
+ isPreviewMode: S
17463
17465
  }),
17464
17466
  new Us(),
17465
17467
  new Cs({
17466
- descript: n,
17468
+ descript: o,
17467
17469
  printUrlList: e,
17468
- buttonGroups: H
17470
+ buttonGroups: B
17469
17471
  }),
17470
17472
  new Is({
17471
- isPreviewMode: m
17473
+ isPreviewMode: S
17472
17474
  }),
17473
17475
  new Gi(
17474
- r?.data?.content?.action ?? {},
17475
- qe(K.isPc())
17476
+ i?.data?.content?.action ?? {},
17477
+ we(K.isPc()),
17478
+ r
17476
17479
  ),
17477
- new $i(v ?? {}),
17478
- new ji(O ?? {}),
17480
+ new $i(O ?? {}),
17481
+ new ji(D ?? {}),
17479
17482
  new Xs(
17480
- E ?? {},
17483
+ h ?? {},
17481
17484
  s?.state?.data?.app_id || "",
17482
- c.state.userInfo || {}
17485
+ m.state.userInfo || {}
17483
17486
  ),
17484
17487
  new Hi({
17485
- displayBoList: h,
17486
- behavior: Je(S)
17488
+ displayBoList: b,
17489
+ behavior: Je(w)
17487
17490
  }),
17488
- new zi(r?.data?.content?.style ?? {}),
17489
- new Fs({ behaviors: S }),
17491
+ new zi(i?.data?.content?.style ?? {}),
17492
+ new Fs({ behaviors: w }),
17490
17493
  new Ls(),
17491
17494
  new $s(),
17492
- new js(r?.data?.content, m),
17495
+ new js(i?.data?.content, S),
17493
17496
  new Hs({
17494
- config: r?.data?.content?.fx ?? {},
17495
- datasources: r?.data?.content?.datasources ?? {}
17497
+ config: i?.data?.content?.fx ?? {},
17498
+ datasources: i?.data?.content?.datasources ?? {}
17496
17499
  }),
17497
17500
  new zs({
17498
- config: r?.data?.content?.title_setting ?? [],
17499
- store: c
17501
+ config: i?.data?.content?.title_setting ?? [],
17502
+ store: m
17500
17503
  })
17501
17504
  ];
17502
17505
  if (console.log(a, "isStatic"), !a) {
17503
- let D = new yu(r?.data?.content?.custom ?? {});
17504
- B.push(D);
17506
+ let E = new yu(i?.data?.content?.custom ?? {});
17507
+ N.push(E);
17505
17508
  }
17506
- const U = {
17507
- schema: P,
17508
- beforeCreateInstance: F,
17509
- language: p,
17509
+ const W = {
17510
+ schema: A,
17511
+ beforeCreateInstance: j,
17512
+ language: d,
17510
17513
  // 操作schema和操作data
17511
- plugins: B,
17514
+ plugins: N,
17512
17515
  // 取消自动挂载,如果自动挂载的话,这里存在一个问题,由于reactive前后是两个对象,只不过是通过Proxy造成引用,所以不能在reactive之前初始化插件
17513
17516
  autoMount: !1,
17514
17517
  // 是否开启engine调试,
17515
- debug: !!b,
17516
- externalParams: r
17518
+ debug: !!q,
17519
+ externalParams: i
17517
17520
  };
17518
- let W = U;
17519
- if (typeof l == "function") {
17520
- const D = l(U);
17521
- D && (W = D);
17521
+ let H = W;
17522
+ if (typeof u == "function") {
17523
+ const E = u(W);
17524
+ E && (H = E);
17522
17525
  }
17523
- const Q = new at(W), x = ai(Q);
17524
- return u && (x.parent = u), y && y.forEach((D, $) => {
17525
- x.setControlConfig($, D);
17526
- }), x.rawStore.DELETE_IDS = {}, x.rawStore.UPDATE_IDS = {}, x.mount(), x.store = Fr(x.store), x;
17526
+ const G = new at(H), Q = ai(G);
17527
+ return p && (Q.parent = p), T && T.forEach((E, re) => {
17528
+ Q.setControlConfig(re, E);
17529
+ }), Q.rawStore.DELETE_IDS = {}, Q.rawStore.UPDATE_IDS = {}, Q.mount(), Q.store = Fr(Q.store), Q;
17527
17530
  }
17528
- function Gp(s, e, t, a) {
17531
+ function Gp(s, e, t, a, r) {
17529
17532
  process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd = ri), window.byteluckVuePages || (window.byteluckVuePages = {});
17530
- const r = ru(), { title: i, updateTitle: n } = su(s.isWatchTitle), o = Z({});
17531
- pa("context", o);
17532
- const { printUrlList: l, setPrintUrlList: u } = Zi(), p = () => {
17533
- const A = o.value.runtime.flatInstances.find(
17534
- (f) => f.type === g.TITLE
17533
+ const i = ru(), { title: n, updateTitle: o } = su(s.isWatchTitle), l = Z({});
17534
+ pa("context", l);
17535
+ const { printUrlList: u, setPrintUrlList: p } = Zi(), d = () => {
17536
+ const f = l.value.runtime.flatInstances.find(
17537
+ (v) => v.type === g.TITLE
17535
17538
  )?.props?.caption || s.state.data.name;
17536
- return s.isWatchTitle ? A : document.title;
17537
- }, d = /* @__PURE__ */ new Map();
17538
- function c(m) {
17539
- at.register(m.control);
17540
- const A = m.props?.config;
17541
- A && d.set(m.control.Runtime.controlType, A), L.component(
17542
- `rok-${m.control.Runtime.controlType}`,
17543
- K.isPc() ? m.control?.Views?.Desktop : m.control?.Views?.Mobile
17539
+ return s.isWatchTitle ? f : document.title;
17540
+ }, y = /* @__PURE__ */ new Map();
17541
+ function m(S) {
17542
+ at.register(S.control);
17543
+ const f = S.props?.config;
17544
+ f && y.set(S.control.Runtime.controlType, f), L().component(
17545
+ `rok-${S.control.Runtime.controlType}`,
17546
+ K.isPc() ? S.control?.Views?.Desktop : S.control?.Views?.Mobile
17544
17547
  );
17545
17548
  }
17546
- const q = () => {
17547
- o.value instanceof at && (cu(o.value.id, e.path), o.value.destroy());
17548
- }, y = async () => {
17549
+ const c = () => {
17550
+ l.value instanceof at && (cu(l.value.id, e.path), l.value.destroy());
17551
+ }, T = async () => {
17549
17552
  if (s?.state?.data?.app_id) {
17550
- if (q(), u(s.state), Te = await Aa(
17553
+ if (c(), p(s.state), Oe = await Aa(
17551
17554
  s.state.data.content.refer_component_id_list,
17552
17555
  s.state.data.content.refer_component_prop_list,
17553
- qe(K.isPc()),
17556
+ we(K.isPc()),
17554
17557
  {
17555
17558
  tipMessage: "控件加载异常,请联系管理员",
17556
17559
  type: "runtime"
17557
17560
  }
17558
17561
  ), s.state.data.form_type === 5) {
17559
- const m = await Li(
17562
+ const S = await Li(
17560
17563
  process.env.VUE_APP_BYTELUCK_CONTROLS,
17561
17564
  {
17562
17565
  type: "runtime",
17563
17566
  version: process.env.VUE_APP_BYTELUCK_CONTROLS_VERSION,
17564
- globalModules: qe(K.isPc())
17567
+ globalModules: we(K.isPc())
17565
17568
  }
17566
17569
  );
17567
- Te.forEach((A, f) => {
17568
- Array.from(m.keys()).includes(f) && Te.delete(f);
17569
- }), m.forEach(c);
17570
+ Oe.forEach((f, v) => {
17571
+ Array.from(S.keys()).includes(v) && Oe.delete(v);
17572
+ }), S.forEach(m);
17570
17573
  }
17571
17574
  if (e.query.debug_port) {
17572
- const m = await $r(
17575
+ const S = await $r(
17573
17576
  "http://localhost:" + e.query.debug_port
17574
- ), A = JSON.parse(m), f = await Aa(
17575
- [A.component_bo_list[0].component_props.id],
17576
- [A.component_bo_list[0].component_props],
17577
- qe(K.isPc()),
17577
+ ), f = JSON.parse(S), v = await Aa(
17578
+ [f.component_bo_list[0].component_props.id],
17579
+ [f.component_bo_list[0].component_props],
17580
+ we(K.isPc()),
17578
17581
  {
17579
17582
  tipMessage: "控件加载异常,请联系管理员",
17580
17583
  type: "runtime"
17581
17584
  }
17582
- ), v = [...f.keys()][0];
17583
- Te.set(v, f.get(v));
17585
+ ), O = [...v.keys()][0];
17586
+ Oe.set(O, v.get(O));
17584
17587
  }
17585
- return Te?.forEach(c), o.value = _p(
17588
+ return Oe?.forEach(m), l.value = _p(
17586
17589
  s,
17587
- l.value,
17590
+ u.value,
17588
17591
  {
17589
17592
  store: t,
17590
17593
  route: e,
17591
- isPreview: M(r),
17592
- registeredConfigs: d
17594
+ isPreview: M(i),
17595
+ registeredConfigs: y
17593
17596
  },
17594
- a
17595
- ), du(o.value, e.path), n(p()), {
17596
- title: i,
17597
- context: o
17597
+ a,
17598
+ r
17599
+ ), du(l.value, e.path), o(d()), {
17600
+ title: n,
17601
+ context: l
17598
17602
  };
17599
17603
  }
17600
17604
  };
17601
17605
  xr(() => {
17602
- q();
17606
+ c();
17603
17607
  });
17604
- const b = (m) => o?.value?.getState?.(m) ?? "", T = G(() => {
17605
- const m = o?.value?.runtime?.instance;
17606
- return o.value ? Array.isArray(m) ? m : m ? [m] : [] : [];
17608
+ const q = (S) => l?.value?.getState?.(S) ?? "", _ = U(() => {
17609
+ const S = l?.value?.runtime?.instance;
17610
+ return l.value ? Array.isArray(S) ? S : S ? [S] : [] : [];
17607
17611
  });
17608
17612
  return {
17609
- context: o,
17610
- runtimeInstances: T,
17611
- title: i,
17612
- getState: b,
17613
- createEngine: y,
17613
+ context: l,
17614
+ runtimeInstances: _,
17615
+ title: n,
17616
+ getState: q,
17617
+ createEngine: T,
17614
17618
  ActionUtilsPlugin: xs,
17615
17619
  ApprovalPlugin: Fs,
17616
17620
  DataFilterPlugin: Us,