@byteluck-fe/runtime-engine 1.2.0 → 1.2.1

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.
@@ -4,11 +4,11 @@ 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 pe, CacheManager as li, path as ui, client as K, isArray as it, isString as se, isDef as pi, cacheManager as tt, formatDisplayData as di, isObject as Nr, isEmpty as ci } from "@byteluck-fe/global-shared";
8
- import yi, { get as Ne, debounce as hi, isEqual as Ur, cloneDeep as fi, isArray as le, mapValues as vi, keyBy as mi } from "lodash";
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";
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 ye, decamelizeKeys as j, CONTROL_BASE_TYPE as da, isPlainObject as jr, MultistageFillingItem as Ai, DisplayBoListItem as _i, TitleConfigEnum as fe, camelizeKeys as Je, DepartmentType as Ii, DataSourceParamItem as Ci, DataSourceOrderItem as Vi, logerror as Ei, EventLogic as Di, baseControls as ki, formControls as Ri, layoutControls as Mi, listControls as xi, columnControls as Bi, searchControls as Fi, registerCustomControls as Aa, registerByteluckControls as Li, VersionBuilder as Ni, upgradeCustomControlSchema as Ui } from "@byteluck-fe/model-driven-core-all";
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";
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";
@@ -42,20 +42,20 @@ function Zi() {
42
42
  const n = (r.data?.content?.button_groups ?? []).filter((q) => q.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 u = r.data.process_param || {}, { notice_id: l, process_instance_id: p, task_instance_id: d } = u, 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, c = 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(u).length ? c?.forEach(
51
+ Object.keys(l).length ? c?.forEach(
52
52
  (q) => {
53
53
  const y = {
54
54
  formKey: q.formKey,
55
55
  printUrl: e({
56
56
  path: `/print/${r.data.app_id}/${q.formKey}`,
57
57
  query: {
58
- notice_id: l,
58
+ notice_id: u,
59
59
  process_instance_id: p,
60
60
  task_instance_id: d,
61
61
  // 产品:不勾选优先访问流程表单时,调用processViewRender接口
@@ -10323,7 +10323,7 @@ function sn(s) {
10323
10323
  return Ki(s);
10324
10324
  }
10325
10325
  function nn(s) {
10326
- return pe(s);
10326
+ return de(s);
10327
10327
  }
10328
10328
  const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10329
10329
  __proto__: null,
@@ -10385,7 +10385,7 @@ function Jr(s, e, t) {
10385
10385
  }), ti(t) && ke(t, (f, v) => {
10386
10386
  !(a != null && a.value.isMounted) || Array.isArray(f) && Array.isArray(v) && f.length === v.length || o();
10387
10387
  });
10388
- const u = G(() => i.value.defaultState === "readonly"), l = G(() => i.value.placeholder), p = G(() => s?.pageStatus), d = G(() => [1, 3, 5].includes(p.value)), c = G(() => p.value === 2), q = G(() => p.value === 2 && !u.value), y = G(() => p.value == 5), b = G(() => e !== void 0), T = (f) => {
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) => {
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);
@@ -10412,8 +10412,8 @@ function Jr(s, e, t) {
10412
10412
  return {
10413
10413
  context: a,
10414
10414
  utils: r,
10415
- isDisabled: u,
10416
- placeholder: l,
10415
+ isDisabled: l,
10416
+ placeholder: u,
10417
10417
  updateValue: T,
10418
10418
  clearDisplay: m,
10419
10419
  pageStatus: p,
@@ -10486,7 +10486,7 @@ 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), u = Z(), l = G(
10489
+ ), o = Z(!1), l = Z(), u = G(
10490
10490
  () => s.instance.type === "select-multiple" || s.instance.type === "checkbox"
10491
10491
  ), p = G(
10492
10492
  () => s.instance.type === "select-multiple" || s.instance.type === "select"
@@ -10594,28 +10594,28 @@ function cn(s) {
10594
10594
  if (K.isPc() && (s.instance.type === "radio" || s.instance.type === "checkbox") && !s.rowIndex && s.rowIndex !== 0)
10595
10595
  return;
10596
10596
  s.value && b(
10597
- l.value ? (S = s.value) == null ? void 0 : S.join(",") : s.value
10597
+ u.value ? (S = s.value) == null ? void 0 : S.join(",") : s.value
10598
10598
  );
10599
10599
  }
10600
- E(), u.value = M(f).map((_) => _.label);
10600
+ E(), l.value = M(f).map((_) => _.label);
10601
10601
  }
10602
10602
  );
10603
10603
  const v = () => {
10604
10604
  var h;
10605
10605
  p.value && b(
10606
- l.value ? (h = s.value) == null ? void 0 : h.join(",") : s.value,
10606
+ u.value ? (h = s.value) == null ? void 0 : h.join(",") : s.value,
10607
10607
  !0
10608
10608
  );
10609
10609
  };
10610
10610
  Yr(s.instance, v), ke(
10611
10611
  f,
10612
10612
  () => {
10613
- u.value = M(f).map((h) => h.label);
10613
+ l.value = M(f).map((h) => h.label);
10614
10614
  },
10615
10615
  { deep: !0, immediate: !0 }
10616
10616
  ), Xr(() => {
10617
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" && (u.value = Array.isArray(s.display) ? s.display : [s.display]) : 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]) : b(
10619
10619
  Array.isArray(s.value) ? s.value.join(",") : s.value
10620
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(
10621
10621
  Array.isArray(s.value) ? s.value.join(",") : s.value
@@ -10641,14 +10641,14 @@ function cn(s) {
10641
10641
  value: s.value
10642
10642
  }
10643
10643
  ];
10644
- u.value = Array.isArray(s.display) ? s.display : [s.display];
10644
+ l.value = Array.isArray(s.display) ? s.display : [s.display];
10645
10645
  }
10646
10646
  };
10647
10647
  return i.value && E(), {
10648
10648
  options: e,
10649
10649
  searchHandle: q,
10650
10650
  searchLoading: c,
10651
- readerValue: u,
10651
+ readerValue: l,
10652
10652
  readOnlyOptions: f,
10653
10653
  filterOption: d,
10654
10654
  getDisplay: b,
@@ -10658,7 +10658,7 @@ function cn(s) {
10658
10658
  };
10659
10659
  }
10660
10660
  function yn(s) {
10661
- return pe(s);
10661
+ return de(s);
10662
10662
  }
10663
10663
  const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10664
10664
  __proto__: null,
@@ -10807,9 +10807,9 @@ var ss = function(e, t, a) {
10807
10807
  r = t.toString();
10808
10808
  else {
10809
10809
  var i = [];
10810
- ge.forEach(t, function(u, l) {
10811
- u === null || typeof u > "u" || (ge.isArray(u) ? l = l + "[]" : u = [u], ge.forEach(u, function(d) {
10812
- ge.isDate(d) ? d = d.toISOString() : ge.isObject(d) && (d = JSON.stringify(d)), i.push(Va(l) + "=" + Va(d));
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));
10813
10813
  }));
10814
10814
  }), r = i.join("&");
10815
10815
  }
@@ -10950,8 +10950,8 @@ function Gn() {
10950
10950
  return gt = function(a) {
10951
10951
  var r = {}, i, n, o;
10952
10952
  return a && s.forEach(a.split(`
10953
- `), function(l) {
10954
- if (o = l.indexOf(":"), i = s.trim(l.substr(0, o)).toLowerCase(), n = s.trim(l.substr(o + 1)), i) {
10953
+ `), function(u) {
10954
+ if (o = u.indexOf(":"), i = s.trim(u.substr(0, o)).toLowerCase(), n = s.trim(u.substr(o + 1)), i) {
10955
10955
  if (r[i] && e.indexOf(i) >= 0)
10956
10956
  return;
10957
10957
  i === "set-cookie" ? r[i] = (r[i] ? r[i] : []).concat([n]) : r[i] = r[i] ? r[i] + ", " + n : n;
@@ -10984,8 +10984,8 @@ function $n() {
10984
10984
  };
10985
10985
  }
10986
10986
  return r = i(window.location.href), function(o) {
10987
- var u = s.isString(o) ? i(o) : o;
10988
- return u.protocol === r.protocol && u.host === r.host;
10987
+ var l = s.isString(o) ? i(o) : o;
10988
+ return l.protocol === r.protocol && l.host === r.host;
10989
10989
  };
10990
10990
  }()
10991
10991
  ) : (
@@ -11007,9 +11007,9 @@ function jn() {
11007
11007
  // Standard browser envs support document.cookie
11008
11008
  function() {
11009
11009
  return {
11010
- write: function(a, r, i, n, o, u) {
11011
- var l = [];
11012
- l.push(a + "=" + encodeURIComponent(r)), s.isNumber(i) && l.push("expires=" + new Date(i).toGMTString()), s.isString(n) && l.push("path=" + n), s.isString(o) && l.push("domain=" + o), u === !0 && l.push("secure"), document.cookie = l.join("; ");
11010
+ write: function(a, r, i, n, o, l) {
11011
+ var u = [];
11012
+ u.push(a + "=" + encodeURIComponent(r)), s.isNumber(i) && u.push("expires=" + new Date(i).toGMTString()), s.isString(n) && u.push("path=" + n), s.isString(o) && u.push("domain=" + o), l === !0 && u.push("secure"), document.cookie = u.join("; ");
11013
11013
  },
11014
11014
  read: function(a) {
11015
11015
  var r = document.cookie.match(new RegExp("(^|;\\s*)(" + a + ")=([^;]*)"));
@@ -11041,54 +11041,54 @@ function Ga() {
11041
11041
  return Tt;
11042
11042
  Ua = 1;
11043
11043
  var s = ee, e = Fn(), t = ss, a = Un(), r = Gn(), i = $n(), n = ns();
11044
- return Tt = function(u) {
11044
+ return Tt = function(l) {
11045
11045
  return new Promise(function(p, d) {
11046
- var c = u.data, q = u.headers;
11046
+ var c = l.data, q = l.headers;
11047
11047
  s.isFormData(c) && delete q["Content-Type"];
11048
11048
  var y = new XMLHttpRequest();
11049
- if (u.auth) {
11050
- var b = u.auth.username || "", T = u.auth.password || "";
11049
+ if (l.auth) {
11050
+ var b = l.auth.username || "", T = l.auth.password || "";
11051
11051
  q.Authorization = "Basic " + btoa(b + ":" + T);
11052
11052
  }
11053
- var m = a(u.baseURL, u.url);
11054
- if (y.open(u.method.toUpperCase(), t(m, u.params, u.paramsSerializer), !0), y.timeout = u.timeout, y.onreadystatechange = function() {
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
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 = !u.responseType || u.responseType === "text" ? y.responseText : y.response, h = {
11056
+ var O = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, E = !l.responseType || l.responseType === "text" ? y.responseText : y.response, h = {
11057
11057
  data: E,
11058
11058
  status: y.status,
11059
11059
  statusText: y.statusText,
11060
11060
  headers: O,
11061
- config: u,
11061
+ config: l,
11062
11062
  request: y
11063
11063
  };
11064
11064
  e(p, d, h), y = null;
11065
11065
  }
11066
11066
  }, y.onabort = function() {
11067
- y && (d(n("Request aborted", u, "ECONNABORTED", y)), y = null);
11067
+ y && (d(n("Request aborted", l, "ECONNABORTED", y)), y = null);
11068
11068
  }, y.onerror = function() {
11069
- d(n("Network Error", u, null, y)), y = null;
11069
+ d(n("Network Error", l, null, y)), y = null;
11070
11070
  }, y.ontimeout = function() {
11071
- var O = "timeout of " + u.timeout + "ms exceeded";
11072
- u.timeoutErrorMessage && (O = u.timeoutErrorMessage), d(n(
11071
+ var O = "timeout of " + l.timeout + "ms exceeded";
11072
+ l.timeoutErrorMessage && (O = l.timeoutErrorMessage), d(n(
11073
11073
  O,
11074
- u,
11074
+ l,
11075
11075
  "ECONNABORTED",
11076
11076
  y
11077
11077
  )), y = null;
11078
11078
  }, s.isStandardBrowserEnv()) {
11079
- var A = jn(), f = (u.withCredentials || i(m)) && u.xsrfCookieName ? A.read(u.xsrfCookieName) : void 0;
11080
- f && (q[u.xsrfHeaderName] = f);
11079
+ var A = jn(), f = (l.withCredentials || i(m)) && l.xsrfCookieName ? A.read(l.xsrfCookieName) : void 0;
11080
+ f && (q[l.xsrfHeaderName] = f);
11081
11081
  }
11082
11082
  if ("setRequestHeader" in y && s.forEach(q, function(O, E) {
11083
11083
  typeof c > "u" && E.toLowerCase() === "content-type" ? delete q[E] : y.setRequestHeader(E, O);
11084
- }), s.isUndefined(u.withCredentials) || (y.withCredentials = !!u.withCredentials), u.responseType)
11084
+ }), s.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), l.responseType)
11085
11085
  try {
11086
- y.responseType = u.responseType;
11086
+ y.responseType = l.responseType;
11087
11087
  } catch (v) {
11088
- if (u.responseType !== "json")
11088
+ if (l.responseType !== "json")
11089
11089
  throw v;
11090
11090
  }
11091
- typeof u.onDownloadProgress == "function" && y.addEventListener("progress", u.onDownloadProgress), typeof u.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", u.onUploadProgress), u.cancelToken && u.cancelToken.promise.then(function(O) {
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
11092
  y && (y.abort(), d(O), y = null);
11093
11093
  }), c === void 0 && (c = null), y.send(c);
11094
11094
  });
@@ -11173,7 +11173,7 @@ var Qn = function(e) {
11173
11173
  e.transformResponse
11174
11174
  ))), Promise.reject(r);
11175
11175
  });
11176
- }, de = ee, ls = function(e, t) {
11176
+ }, ce = ee, ls = function(e, t) {
11177
11177
  t = t || {};
11178
11178
  var a = {}, r = ["url", "method", "params", "data"], i = ["headers", "auth", "proxy"], n = [
11179
11179
  "baseURL",
@@ -11197,17 +11197,17 @@ var Qn = function(e) {
11197
11197
  "cancelToken",
11198
11198
  "socketPath"
11199
11199
  ];
11200
- de.forEach(r, function(p) {
11200
+ ce.forEach(r, function(p) {
11201
11201
  typeof t[p] < "u" && (a[p] = t[p]);
11202
- }), de.forEach(i, function(p) {
11203
- de.isObject(t[p]) ? a[p] = de.deepMerge(e[p], t[p]) : typeof t[p] < "u" ? a[p] = t[p] : de.isObject(e[p]) ? a[p] = de.deepMerge(e[p]) : typeof e[p] < "u" && (a[p] = e[p]);
11204
- }), de.forEach(n, function(p) {
11202
+ }), ce.forEach(i, function(p) {
11203
+ ce.isObject(t[p]) ? a[p] = ce.deepMerge(e[p], t[p]) : typeof t[p] < "u" ? a[p] = t[p] : ce.isObject(e[p]) ? a[p] = ce.deepMerge(e[p]) : typeof e[p] < "u" && (a[p] = e[p]);
11204
+ }), ce.forEach(n, function(p) {
11205
11205
  typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
11206
11206
  });
11207
- var o = r.concat(i).concat(n), u = Object.keys(t).filter(function(p) {
11207
+ var o = r.concat(i).concat(n), l = Object.keys(t).filter(function(p) {
11208
11208
  return o.indexOf(p) === -1;
11209
11209
  });
11210
- return de.forEach(u, function(p) {
11210
+ return ce.forEach(l, function(p) {
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;
@@ -11304,20 +11304,20 @@ function ds(s) {
11304
11304
  var e = new Xe(s), t = to(Xe.prototype.request, e);
11305
11305
  return Ja.extend(t, Xe.prototype, e), Ja.extend(t, e), t;
11306
11306
  }
11307
- var ne = ds(ro);
11308
- ne.Axios = Xe;
11309
- ne.create = function(e) {
11310
- return ds(ao(ne.defaults, e));
11307
+ var oe = ds(ro);
11308
+ oe.Axios = Xe;
11309
+ oe.create = function(e) {
11310
+ return ds(ao(oe.defaults, e));
11311
11311
  };
11312
- ne.Cancel = ps();
11313
- ne.CancelToken = Zn();
11314
- ne.isCancel = is();
11315
- ne.all = function(e) {
11312
+ oe.Cancel = ps();
11313
+ oe.CancelToken = Zn();
11314
+ oe.isCancel = is();
11315
+ oe.all = function(e) {
11316
11316
  return Promise.all(e);
11317
11317
  };
11318
- ne.spread = eo();
11319
- ha.exports = ne;
11320
- ha.exports.default = ne;
11318
+ oe.spread = eo();
11319
+ ha.exports = oe;
11320
+ ha.exports.default = oe;
11321
11321
  var so = ha.exports, io = so;
11322
11322
  const no = /* @__PURE__ */ fn(io);
11323
11323
  function qe(s) {
@@ -11428,7 +11428,7 @@ 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) || se(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) || ie(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 ye.ADDRESS:
11439
+ case se.ADDRESS:
11440
11440
  t = s === void 0 || oo(s) ? "" : j(s);
11441
11441
  break;
11442
- case ye.BIGINT:
11442
+ case se.BIGINT:
11443
11443
  t = s || s === 0 || s === "0" ? Number(s) : null;
11444
11444
  break;
11445
11445
  }
@@ -11539,17 +11539,17 @@ function ys(s, e, t, a) {
11539
11539
  code: r,
11540
11540
  value: t?.uId
11541
11541
  });
11542
- const u = s?.externalParams?.url;
11543
- u?.dataOrigin === "sublist" && i.find(
11544
- (c) => c.code === u?.relation_key
11542
+ const l = s?.externalParams?.url;
11543
+ l?.dataOrigin === "sublist" && i.find(
11544
+ (c) => c.code === l?.relation_key
11545
11545
  ) === void 0 && i.push({
11546
- code: u?.relation_key,
11547
- value: u?.relation_uid
11546
+ code: l?.relation_key,
11547
+ value: l?.relation_uid
11548
11548
  }), i[i.length - 1]?.code !== r && i.push({
11549
11549
  code: r,
11550
11550
  value: t?.uId
11551
11551
  });
11552
- const l = s.getInstances().find((d) => s.assertInstance(d, g.TITLE)), p = {
11552
+ const u = s.getInstances().find((d) => s.assertInstance(d, g.TITLE)), p = {
11553
11553
  app_id: o.app_id ?? "",
11554
11554
  sapp_id: t.sappId,
11555
11555
  // ? 取自路由,是否合理
@@ -11557,7 +11557,7 @@ function ys(s, e, t, a) {
11557
11557
  data_code: o.data_code,
11558
11558
  values: i
11559
11559
  },
11560
- page_title: l?.props.caption,
11560
+ page_title: u?.props.caption,
11561
11561
  subtable_data_set: n,
11562
11562
  form_key: o.form_key,
11563
11563
  data_uid: t.isEditing ? t?.uId : "",
@@ -11663,28 +11663,28 @@ class pt {
11663
11663
  let n, o;
11664
11664
  if (r)
11665
11665
  if (this.cacheResult[i]) {
11666
- const l = this.cacheResult[i];
11667
- if (l instanceof Promise) {
11668
- const p = await l;
11666
+ const u = this.cacheResult[i];
11667
+ if (u instanceof Promise) {
11668
+ const p = await u;
11669
11669
  return te(p);
11670
11670
  }
11671
- return te(l);
11671
+ return te(u);
11672
11672
  } else
11673
- this.cacheResult[i] = new Promise((l, p) => {
11674
- n = l, o = p;
11673
+ this.cacheResult[i] = new Promise((u, p) => {
11674
+ n = u, o = p;
11675
11675
  });
11676
- const u = await e.call(this.service, {
11676
+ const l = await e.call(this.service, {
11677
11677
  payload: t
11678
11678
  });
11679
- if (u.code === N.SUCCESS) {
11680
- const l = a?.(u) ?? u;
11681
- return r && (n?.(l), this.cacheResult[i] = l), l;
11679
+ if (l.code === N.SUCCESS) {
11680
+ const u = a?.(l) ?? l;
11681
+ return r && (n?.(u), this.cacheResult[i] = u), u;
11682
11682
  } else
11683
- u.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L.config.globalProperties.$message.error({
11684
- content: u.message
11683
+ l.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L.config.globalProperties.$message.error({
11684
+ content: l.message
11685
11685
  }), setTimeout(() => {
11686
11686
  sessionStorage.setItem("flag", "true");
11687
- }, 3e3)) : L.config.globalProperties.$toast({ message: u.message })), o?.(u);
11687
+ }, 3e3)) : L.config.globalProperties.$toast({ message: l.message })), o?.(l);
11688
11688
  }
11689
11689
  }
11690
11690
  async function hs({
@@ -11695,7 +11695,7 @@ async function hs({
11695
11695
  orders: r,
11696
11696
  dataCode: i
11697
11697
  }) {
11698
- const n = he(), o = {}, u = {}, l = {}, p = {}, d = te(t);
11698
+ const n = he(), o = {}, l = {}, u = {}, p = {}, d = te(t);
11699
11699
  return delete d.process_param, await Promise.all(
11700
11700
  Object.keys(s.getControlIdMapping()).map(async (c) => {
11701
11701
  if (s.getControlIdMapping()[c].children !== void 0 && (!i || s.getControlIdMapping()[c]?.dataBind?.dataCode === i)) {
@@ -11725,11 +11725,11 @@ async function hs({
11725
11725
  }, f = await n.default.ListDataSubtablePagePrivateV1ApiAppsPOST({
11726
11726
  payload: A
11727
11727
  });
11728
- o[T] = [], u[T] = [], f.data?.rows?.map((O) => {
11728
+ o[T] = [], l[T] = [], f.data?.rows?.map((O) => {
11729
11729
  const E = O.row_data, h = {}, S = {};
11730
11730
  E?.map((_) => {
11731
11731
  h[_.code ?? "unknown"] = _.value, S[_.code ?? "unknown"] = _.display;
11732
- }), o[T].push(h), u[T].push(S);
11732
+ }), o[T].push(h), l[T].push(S);
11733
11733
  }), p[c] = f.data?.rows;
11734
11734
  const v = await s.emit("list-mounted", {
11735
11735
  instance: s.getInstances(c)[0],
@@ -11740,17 +11740,17 @@ async function hs({
11740
11740
  if (O[0] !== void 0) {
11741
11741
  o[T] = O[0];
11742
11742
  const E = o[T].map((h) => h.uid);
11743
- u[T] = u[T].filter(
11743
+ l[T] = l[T].filter(
11744
11744
  (h) => E.includes(h.uid)
11745
11745
  ), p[c] = p[c].filter(
11746
11746
  (h) => E.includes(h.uid)
11747
11747
  );
11748
11748
  }
11749
11749
  }
11750
- l.pagination = { [c]: f.data?.page };
11750
+ u.pagination = { [c]: f.data?.page };
11751
11751
  }
11752
11752
  })
11753
- ), { subDataSet: o, orginData: p, subDataDisplay: u, subDataPagination: l };
11753
+ ), { subDataSet: o, orginData: p, subDataDisplay: l, subDataPagination: u };
11754
11754
  }
11755
11755
  function fs(s) {
11756
11756
  let e = "";
@@ -11804,14 +11804,14 @@ async function uo(s) {
11804
11804
  a?.data_set.values,
11805
11805
  a?.data_set.data_code
11806
11806
  ), r && r.subDataDisplay && r.orginData) {
11807
- const l = Object.keys(
11807
+ const u = Object.keys(
11808
11808
  r.subDataDisplay
11809
11809
  ), p = Object.values(
11810
11810
  r.orginData
11811
11811
  );
11812
- for (let d = 0; d < l.length; d++)
11812
+ for (let d = 0; d < u.length; d++)
11813
11813
  for (const c of p[d])
11814
- tt.handleAllDisplayData(c.row_data, l[d]);
11814
+ tt.handleAllDisplayData(c.row_data, u[d]);
11815
11815
  }
11816
11816
  const i = a ?? {
11817
11817
  data_set: {}
@@ -11820,22 +11820,22 @@ async function uo(s) {
11820
11820
  const o = fa(
11821
11821
  M(e)?.externalParams?.data.data_code,
11822
11822
  i.data_set.values
11823
- ), u = Object.assign({}, { ...o.dataDisplay });
11823
+ ), l = Object.assign({}, { ...o.dataDisplay });
11824
11824
  if (r) {
11825
- const l = r;
11826
- Object.entries(l.subDataSet).forEach(([p, d]) => {
11825
+ const u = r;
11826
+ Object.entries(u.subDataSet).forEach(([p, d]) => {
11827
11827
  const c = d;
11828
- l.subDataSet[p] = c;
11829
- }), Object.assign(o.dataSet, l.subDataSet), Object.assign(
11830
- u,
11831
- l.subDataDisplay,
11828
+ u.subDataSet[p] = c;
11829
+ }), Object.assign(o.dataSet, u.subDataSet), Object.assign(
11830
+ l,
11831
+ u.subDataDisplay,
11832
11832
  // 明细表分页信息
11833
- l.subDataPagination
11834
- ), n = l.orginData, M(e).setState("FORMPARAMS", {
11833
+ u.subDataPagination
11834
+ ), n = u.orginData, M(e).setState("FORMPARAMS", {
11835
11835
  subtab_query: s.query
11836
11836
  });
11837
11837
  }
11838
- s.isCopyPage && (st.resetDataSet(o.dataSet), st.resetDataSet(u)), await M(e)?.emit("custom:setSearchCache", { value: !0 }), M(e).setData(o.dataSet), setTimeout(() => {
11838
+ s.isCopyPage && (st.resetDataSet(o.dataSet), st.resetDataSet(l)), await M(e)?.emit("custom:setSearchCache", { value: !0 }), M(e).setData(o.dataSet), setTimeout(() => {
11839
11839
  Oe(() => {
11840
11840
  M(e)?.emit("custom:setSearchCache", { value: !1 });
11841
11841
  });
@@ -11870,8 +11870,8 @@ async function co(s) {
11870
11870
  dataCode: s?.dataCode
11871
11871
  });
11872
11872
  Object.entries(a.subDataSet).forEach(([n, o]) => {
11873
- const u = o;
11874
- a.subDataSet[n] = u;
11873
+ const l = o;
11874
+ a.subDataSet[n] = l;
11875
11875
  }), t = a.orginData;
11876
11876
  const r = s.context?.getState("DISPLAY"), i = Object.assign({}, { ...r }, a.subDataDisplay);
11877
11877
  s.context?.setState("DISPLAY", Object.freeze(i)), await s.context?.emit("custom:setSearchCache", { value: !0 }), s.context?.setData(a.subDataSet), setTimeout(() => {
@@ -11895,14 +11895,14 @@ function Pe(s, e, t, a, r) {
11895
11895
  o.children,
11896
11896
  t,
11897
11897
  a
11898
- ).forEach((l) => {
11899
- n.includes(l.code) || i.push(l);
11898
+ ).forEach((u) => {
11899
+ n.includes(u.code) || i.push(u);
11900
11900
  });
11901
11901
  else {
11902
11902
  const {
11903
- rightVariableBo: { type: u, value: l }
11903
+ rightVariableBo: { type: l, value: u }
11904
11904
  } = o;
11905
- u === "form" && l.forEach((p) => {
11905
+ l === "form" && u.forEach((p) => {
11906
11906
  const d = s.getDataBind(p);
11907
11907
  if (!d)
11908
11908
  return;
@@ -12056,23 +12056,23 @@ function _o(s, e) {
12056
12056
  }
12057
12057
  function ar(s, e, t, a, r, i, n) {
12058
12058
  try {
12059
- var o = s[i](n), u = o.value;
12060
- } catch (l) {
12061
- t(l);
12059
+ var o = s[i](n), l = o.value;
12060
+ } catch (u) {
12061
+ t(u);
12062
12062
  return;
12063
12063
  }
12064
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12064
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12065
12065
  }
12066
12066
  function Io(s) {
12067
12067
  return function() {
12068
12068
  var e = this, t = arguments;
12069
12069
  return new Promise(function(a, r) {
12070
12070
  var i = s.apply(e, t);
12071
- function n(u) {
12072
- ar(i, a, r, n, o, "next", u);
12071
+ function n(l) {
12072
+ ar(i, a, r, n, o, "next", l);
12073
12073
  }
12074
- function o(u) {
12075
- ar(i, a, r, n, o, "throw", u);
12074
+ function o(l) {
12075
+ ar(i, a, r, n, o, "throw", l);
12076
12076
  }
12077
12077
  n(void 0);
12078
12078
  });
@@ -12117,75 +12117,75 @@ function Eo(s, e) {
12117
12117
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12118
12118
  return this;
12119
12119
  }), i;
12120
- function o(l) {
12120
+ function o(u) {
12121
12121
  return function(p) {
12122
- return u([
12123
- l,
12122
+ return l([
12123
+ u,
12124
12124
  p
12125
12125
  ]);
12126
12126
  };
12127
12127
  }
12128
- function u(l) {
12128
+ function l(u) {
12129
12129
  if (t)
12130
12130
  throw new TypeError("Generator is already executing.");
12131
12131
  for (; n; )
12132
12132
  try {
12133
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12133
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12134
12134
  return r;
12135
- switch (a = 0, r && (l = [
12136
- l[0] & 2,
12135
+ switch (a = 0, r && (u = [
12136
+ u[0] & 2,
12137
12137
  r.value
12138
- ]), l[0]) {
12138
+ ]), u[0]) {
12139
12139
  case 0:
12140
12140
  case 1:
12141
- r = l;
12141
+ r = u;
12142
12142
  break;
12143
12143
  case 4:
12144
12144
  return n.label++, {
12145
- value: l[1],
12145
+ value: u[1],
12146
12146
  done: !1
12147
12147
  };
12148
12148
  case 5:
12149
- n.label++, a = l[1], l = [
12149
+ n.label++, a = u[1], u = [
12150
12150
  0
12151
12151
  ];
12152
12152
  continue;
12153
12153
  case 7:
12154
- l = n.ops.pop(), n.trys.pop();
12154
+ u = n.ops.pop(), n.trys.pop();
12155
12155
  continue;
12156
12156
  default:
12157
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12157
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12158
12158
  n = 0;
12159
12159
  continue;
12160
12160
  }
12161
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12162
- n.label = l[1];
12161
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12162
+ n.label = u[1];
12163
12163
  break;
12164
12164
  }
12165
- if (l[0] === 6 && n.label < r[1]) {
12166
- n.label = r[1], r = l;
12165
+ if (u[0] === 6 && n.label < r[1]) {
12166
+ n.label = r[1], r = u;
12167
12167
  break;
12168
12168
  }
12169
12169
  if (r && n.label < r[2]) {
12170
- n.label = r[2], n.ops.push(l);
12170
+ n.label = r[2], n.ops.push(u);
12171
12171
  break;
12172
12172
  }
12173
12173
  r[2] && n.ops.pop(), n.trys.pop();
12174
12174
  continue;
12175
12175
  }
12176
- l = e.call(s, n);
12176
+ u = e.call(s, n);
12177
12177
  } catch (p) {
12178
- l = [
12178
+ u = [
12179
12179
  6,
12180
12180
  p
12181
12181
  ], a = 0;
12182
12182
  } finally {
12183
12183
  t = r = 0;
12184
12184
  }
12185
- if (l[0] & 5)
12186
- throw l[1];
12185
+ if (u[0] & 5)
12186
+ throw u[1];
12187
12187
  return {
12188
- value: l[0] ? l[1] : void 0,
12188
+ value: u[0] ? u[1] : void 0,
12189
12189
  done: !0
12190
12190
  };
12191
12191
  }
@@ -12204,8 +12204,8 @@ var ms = "FunctionExpression", ve = /* @__PURE__ */ function() {
12204
12204
  return Eo(this, function(o) {
12205
12205
  switch (o.label) {
12206
12206
  case 0:
12207
- return r = a.arguments.map(function(u) {
12208
- return u.handler(t, a.name);
12207
+ return r = a.arguments.map(function(l) {
12208
+ return l.handler(t, a.name);
12209
12209
  }), [
12210
12210
  4,
12211
12211
  Promise.all(r)
@@ -12351,23 +12351,23 @@ function Fo(s) {
12351
12351
  }
12352
12352
  function ur(s, e, t, a, r, i, n) {
12353
12353
  try {
12354
- var o = s[i](n), u = o.value;
12355
- } catch (l) {
12356
- t(l);
12354
+ var o = s[i](n), l = o.value;
12355
+ } catch (u) {
12356
+ t(u);
12357
12357
  return;
12358
12358
  }
12359
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12359
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12360
12360
  }
12361
12361
  function Lo(s) {
12362
12362
  return function() {
12363
12363
  var e = this, t = arguments;
12364
12364
  return new Promise(function(a, r) {
12365
12365
  var i = s.apply(e, t);
12366
- function n(u) {
12367
- ur(i, a, r, n, o, "next", u);
12366
+ function n(l) {
12367
+ ur(i, a, r, n, o, "next", l);
12368
12368
  }
12369
- function o(u) {
12370
- ur(i, a, r, n, o, "throw", u);
12369
+ function o(l) {
12370
+ ur(i, a, r, n, o, "throw", l);
12371
12371
  }
12372
12372
  n(void 0);
12373
12373
  });
@@ -12433,75 +12433,75 @@ function Ho(s, e) {
12433
12433
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12434
12434
  return this;
12435
12435
  }), i;
12436
- function o(l) {
12436
+ function o(u) {
12437
12437
  return function(p) {
12438
- return u([
12439
- l,
12438
+ return l([
12439
+ u,
12440
12440
  p
12441
12441
  ]);
12442
12442
  };
12443
12443
  }
12444
- function u(l) {
12444
+ function l(u) {
12445
12445
  if (t)
12446
12446
  throw new TypeError("Generator is already executing.");
12447
12447
  for (; n; )
12448
12448
  try {
12449
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12449
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12450
12450
  return r;
12451
- switch (a = 0, r && (l = [
12452
- l[0] & 2,
12451
+ switch (a = 0, r && (u = [
12452
+ u[0] & 2,
12453
12453
  r.value
12454
- ]), l[0]) {
12454
+ ]), u[0]) {
12455
12455
  case 0:
12456
12456
  case 1:
12457
- r = l;
12457
+ r = u;
12458
12458
  break;
12459
12459
  case 4:
12460
12460
  return n.label++, {
12461
- value: l[1],
12461
+ value: u[1],
12462
12462
  done: !1
12463
12463
  };
12464
12464
  case 5:
12465
- n.label++, a = l[1], l = [
12465
+ n.label++, a = u[1], u = [
12466
12466
  0
12467
12467
  ];
12468
12468
  continue;
12469
12469
  case 7:
12470
- l = n.ops.pop(), n.trys.pop();
12470
+ u = n.ops.pop(), n.trys.pop();
12471
12471
  continue;
12472
12472
  default:
12473
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12473
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12474
12474
  n = 0;
12475
12475
  continue;
12476
12476
  }
12477
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12478
- n.label = l[1];
12477
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12478
+ n.label = u[1];
12479
12479
  break;
12480
12480
  }
12481
- if (l[0] === 6 && n.label < r[1]) {
12482
- n.label = r[1], r = l;
12481
+ if (u[0] === 6 && n.label < r[1]) {
12482
+ n.label = r[1], r = u;
12483
12483
  break;
12484
12484
  }
12485
12485
  if (r && n.label < r[2]) {
12486
- n.label = r[2], n.ops.push(l);
12486
+ n.label = r[2], n.ops.push(u);
12487
12487
  break;
12488
12488
  }
12489
12489
  r[2] && n.ops.pop(), n.trys.pop();
12490
12490
  continue;
12491
12491
  }
12492
- l = e.call(s, n);
12492
+ u = e.call(s, n);
12493
12493
  } catch (p) {
12494
- l = [
12494
+ u = [
12495
12495
  6,
12496
12496
  p
12497
12497
  ], a = 0;
12498
12498
  } finally {
12499
12499
  t = r = 0;
12500
12500
  }
12501
- if (l[0] & 5)
12502
- throw l[1];
12501
+ if (u[0] & 5)
12502
+ throw u[1];
12503
12503
  return {
12504
- value: l[0] ? l[1] : void 0,
12504
+ value: u[0] ? u[1] : void 0,
12505
12505
  done: !0
12506
12506
  };
12507
12507
  }
@@ -12516,31 +12516,31 @@ var Ss = "Expressions", va = /* @__PURE__ */ function() {
12516
12516
  value: function(t) {
12517
12517
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, r = this;
12518
12518
  return Lo(function() {
12519
- var i, n, o, u, l;
12519
+ var i, n, o, l, u;
12520
12520
  return Ho(this, function(p) {
12521
12521
  switch (p.label) {
12522
12522
  case 0:
12523
- return i = this, n = "", o = [], u = [], r.value.forEach(function(d) {
12523
+ return i = this, n = "", o = [], l = [], r.value.forEach(function(d) {
12524
12524
  if (or(d)) {
12525
12525
  o.push(d.code);
12526
12526
  return;
12527
12527
  }
12528
- u.push(d.handler(t, a)), o.push("arguments[".concat(u.length - 1, "]"));
12528
+ l.push(d.handler(t, a)), o.push("arguments[".concat(l.length - 1, "]"));
12529
12529
  }), [
12530
12530
  4,
12531
- Promise.all(u)
12531
+ Promise.all(l)
12532
12532
  ];
12533
12533
  case 1:
12534
- l = p.sent();
12534
+ u = p.sent();
12535
12535
  try {
12536
12536
  return [
12537
12537
  2,
12538
- new Function("return ".concat(o.join(""))).apply(this, He(l))
12538
+ new Function("return ".concat(o.join(""))).apply(this, He(u))
12539
12539
  ];
12540
12540
  } catch {
12541
12541
  return o.forEach(function(c) {
12542
12542
  try {
12543
- n += new Function("return ".concat(c)).apply(i, He(l));
12543
+ n += new Function("return ".concat(c)).apply(i, He(u));
12544
12544
  } catch (q) {
12545
12545
  throw new Error('Error evaluating expressions "'.concat(c, '" error: ').concat(q.message));
12546
12546
  }
@@ -12561,20 +12561,20 @@ var Ss = "Expressions", va = /* @__PURE__ */ function() {
12561
12561
  key: "handlerSync",
12562
12562
  value: function(t) {
12563
12563
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, r = this, i = "", n = [], o = [];
12564
- this.value.forEach(function(l) {
12565
- if (or(l)) {
12566
- n.push(l.code);
12564
+ this.value.forEach(function(u) {
12565
+ if (or(u)) {
12566
+ n.push(u.code);
12567
12567
  return;
12568
12568
  }
12569
- o.push(l.handlerSync(t, a)), n.push("arguments[".concat(o.length - 1, "]"));
12569
+ o.push(u.handlerSync(t, a)), n.push("arguments[".concat(o.length - 1, "]"));
12570
12570
  });
12571
- var u = o;
12571
+ var l = o;
12572
12572
  try {
12573
- return new Function("return ".concat(n.join(""))).apply(this, He(u));
12573
+ return new Function("return ".concat(n.join(""))).apply(this, He(l));
12574
12574
  } catch {
12575
12575
  return n.forEach(function(p) {
12576
12576
  try {
12577
- i += new Function("return ".concat(p)).apply(r, He(u));
12577
+ i += new Function("return ".concat(p)).apply(r, He(l));
12578
12578
  } catch (d) {
12579
12579
  throw new Error('Error evaluating expressions "'.concat(p, '" error: ').concat(d.message));
12580
12580
  }
@@ -12592,24 +12592,24 @@ function Wo(s) {
12592
12592
  for (var e = function() {
12593
12593
  n && (i.push(n.trim()), n = "");
12594
12594
  }, t = 0, a = 0, r = 0, i = [], n = "", o = []; t < s.length; ) {
12595
- var u = s.charAt(t);
12596
- if (u === "(" && o.length === 0) {
12597
- a = t, o.push(u), t++;
12595
+ var l = s.charAt(t);
12596
+ if (l === "(" && o.length === 0) {
12597
+ a = t, o.push(l), t++;
12598
12598
  continue;
12599
12599
  }
12600
- if (u === "," && o.length === 1) {
12600
+ if (l === "," && o.length === 1) {
12601
12601
  e(), t++;
12602
12602
  continue;
12603
12603
  }
12604
- if (!n.length && Ko.test(u)) {
12604
+ if (!n.length && Ko.test(l)) {
12605
12605
  t++;
12606
12606
  continue;
12607
12607
  }
12608
- if (u === "(" ? o.push(u) : u === ")" && o.pop(), o.length === 0) {
12608
+ if (l === "(" ? o.push(l) : l === ")" && o.pop(), o.length === 0) {
12609
12609
  r = t, e();
12610
12610
  break;
12611
12611
  }
12612
- n += u, t++;
12612
+ n += l, t++;
12613
12613
  }
12614
12614
  if (o.length !== 0)
12615
12615
  throw new Error("The function is not closed: ".concat(s));
@@ -12637,8 +12637,8 @@ function Jo(s, e) {
12637
12637
  try {
12638
12638
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
12639
12639
  ;
12640
- } catch (u) {
12641
- i = !0, o = u;
12640
+ } catch (l) {
12641
+ i = !0, o = l;
12642
12642
  } finally {
12643
12643
  try {
12644
12644
  !r && t.return != null && t.return();
@@ -12680,7 +12680,7 @@ function ma(s) {
12680
12680
  }
12681
12681
  ), r = function(A) {
12682
12682
  t();
12683
- var f = It(Array.from(A.match(l)), 2), v = f[0], O = f[1];
12683
+ var f = It(Array.from(A.match(u)), 2), v = f[0], O = f[1];
12684
12684
  c.push(new Be(O)), d += v.length;
12685
12685
  }, i = function(A) {
12686
12686
  var f = It(Array.from(A.match(p)), 2), v = f[1];
@@ -12690,13 +12690,13 @@ function ma(s) {
12690
12690
  return new va(P);
12691
12691
  });
12692
12692
  c.push(new ve(v, S)), d += v.length + h + 1;
12693
- }, n = e.functionKeywords, o = n === void 0 ? [] : n, u = e.variableRegexp, l = u === void 0 ? Zo : u, p = new RegExp("^(".concat(o.join("|"), ")\\s*\\(.*?\\)")), d = 0, c = [], q = "", y = s.replaceAll(el, " "); d < y.length; ) {
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
12694
  var b = y.charAt(d), T = y.substring(d);
12695
12695
  if (yr.test(T)) {
12696
12696
  a(T);
12697
12697
  continue;
12698
12698
  }
12699
- if (l.test(T)) {
12699
+ if (u.test(T)) {
12700
12700
  r(T);
12701
12701
  continue;
12702
12702
  }
@@ -12710,23 +12710,23 @@ function ma(s) {
12710
12710
  }
12711
12711
  function hr(s, e, t, a, r, i, n) {
12712
12712
  try {
12713
- var o = s[i](n), u = o.value;
12714
- } catch (l) {
12715
- t(l);
12713
+ var o = s[i](n), l = o.value;
12714
+ } catch (u) {
12715
+ t(u);
12716
12716
  return;
12717
12717
  }
12718
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12718
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12719
12719
  }
12720
12720
  function tl(s) {
12721
12721
  return function() {
12722
12722
  var e = this, t = arguments;
12723
12723
  return new Promise(function(a, r) {
12724
12724
  var i = s.apply(e, t);
12725
- function n(u) {
12726
- hr(i, a, r, n, o, "next", u);
12725
+ function n(l) {
12726
+ hr(i, a, r, n, o, "next", l);
12727
12727
  }
12728
- function o(u) {
12729
- hr(i, a, r, n, o, "throw", u);
12728
+ function o(l) {
12729
+ hr(i, a, r, n, o, "throw", l);
12730
12730
  }
12731
12731
  n(void 0);
12732
12732
  });
@@ -12750,75 +12750,75 @@ function al(s, e) {
12750
12750
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12751
12751
  return this;
12752
12752
  }), i;
12753
- function o(l) {
12753
+ function o(u) {
12754
12754
  return function(p) {
12755
- return u([
12756
- l,
12755
+ return l([
12756
+ u,
12757
12757
  p
12758
12758
  ]);
12759
12759
  };
12760
12760
  }
12761
- function u(l) {
12761
+ function l(u) {
12762
12762
  if (t)
12763
12763
  throw new TypeError("Generator is already executing.");
12764
12764
  for (; n; )
12765
12765
  try {
12766
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12766
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12767
12767
  return r;
12768
- switch (a = 0, r && (l = [
12769
- l[0] & 2,
12768
+ switch (a = 0, r && (u = [
12769
+ u[0] & 2,
12770
12770
  r.value
12771
- ]), l[0]) {
12771
+ ]), u[0]) {
12772
12772
  case 0:
12773
12773
  case 1:
12774
- r = l;
12774
+ r = u;
12775
12775
  break;
12776
12776
  case 4:
12777
12777
  return n.label++, {
12778
- value: l[1],
12778
+ value: u[1],
12779
12779
  done: !1
12780
12780
  };
12781
12781
  case 5:
12782
- n.label++, a = l[1], l = [
12782
+ n.label++, a = u[1], u = [
12783
12783
  0
12784
12784
  ];
12785
12785
  continue;
12786
12786
  case 7:
12787
- l = n.ops.pop(), n.trys.pop();
12787
+ u = n.ops.pop(), n.trys.pop();
12788
12788
  continue;
12789
12789
  default:
12790
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12790
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12791
12791
  n = 0;
12792
12792
  continue;
12793
12793
  }
12794
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12795
- n.label = l[1];
12794
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12795
+ n.label = u[1];
12796
12796
  break;
12797
12797
  }
12798
- if (l[0] === 6 && n.label < r[1]) {
12799
- n.label = r[1], r = l;
12798
+ if (u[0] === 6 && n.label < r[1]) {
12799
+ n.label = r[1], r = u;
12800
12800
  break;
12801
12801
  }
12802
12802
  if (r && n.label < r[2]) {
12803
- n.label = r[2], n.ops.push(l);
12803
+ n.label = r[2], n.ops.push(u);
12804
12804
  break;
12805
12805
  }
12806
12806
  r[2] && n.ops.pop(), n.trys.pop();
12807
12807
  continue;
12808
12808
  }
12809
- l = e.call(s, n);
12809
+ u = e.call(s, n);
12810
12810
  } catch (p) {
12811
- l = [
12811
+ u = [
12812
12812
  6,
12813
12813
  p
12814
12814
  ], a = 0;
12815
12815
  } finally {
12816
12816
  t = r = 0;
12817
12817
  }
12818
- if (l[0] & 5)
12819
- throw l[1];
12818
+ if (u[0] & 5)
12819
+ throw u[1];
12820
12820
  return {
12821
- value: l[0] ? l[1] : void 0,
12821
+ value: u[0] ? u[1] : void 0,
12822
12822
  done: !0
12823
12823
  };
12824
12824
  }
@@ -13351,31 +13351,31 @@ function Ve(s) {
13351
13351
  function he() {
13352
13352
  if (Ct === void 0) {
13353
13353
  const s = Ve(
13354
- pe(process.env.VUE_APP_BASE_PATH ?? "/")
13354
+ de(process.env.VUE_APP_BASE_PATH ?? "/")
13355
13355
  );
13356
13356
  Ct = new en(s);
13357
13357
  }
13358
13358
  if (Vt === void 0) {
13359
13359
  const s = Ve(
13360
- pe(process.env.VUE_APP_API_PORTAL ?? "")
13360
+ de(process.env.VUE_APP_API_PORTAL ?? "")
13361
13361
  );
13362
13362
  Vt = new tn(s);
13363
13363
  }
13364
13364
  if (Et === void 0) {
13365
13365
  const s = Ve(
13366
- pe(process.env.VUE_APP_API_BASE ?? "")
13366
+ de(process.env.VUE_APP_API_BASE ?? "")
13367
13367
  );
13368
13368
  Et = new Ca(s);
13369
13369
  }
13370
13370
  if (kt === void 0) {
13371
13371
  const s = Ve(
13372
- pe(process.env.VUE_APP_API_INFO ?? "")
13372
+ de(process.env.VUE_APP_API_INFO ?? "")
13373
13373
  );
13374
13374
  kt = new Ca(s);
13375
13375
  }
13376
13376
  if (Dt === void 0) {
13377
13377
  const s = Ve(
13378
- pe(process.env.VUE_APP_WIDGETS_API_PATH ?? "")
13378
+ de(process.env.VUE_APP_WIDGETS_API_PATH ?? "")
13379
13379
  );
13380
13380
  Dt = new an(s);
13381
13381
  }
@@ -13422,9 +13422,9 @@ var Yl = (
13422
13422
  return this._messageCache.get(e);
13423
13423
  var t = this.getPathArray(e), a = t.reduce(function(r, i, n, o) {
13424
13424
  if (r !== void 0) {
13425
- var u = r[i];
13426
- if (!(n === o.length - 1 && !Jl(u)))
13427
- return u;
13425
+ var l = r[i];
13426
+ if (!(n === o.length - 1 && !Jl(l)))
13427
+ return l;
13428
13428
  }
13429
13429
  }, this.message);
13430
13430
  return this._messageCache.set(e, a), a;
@@ -13482,7 +13482,7 @@ function tu(s) {
13482
13482
  }
13483
13483
  };
13484
13484
  }
13485
- const qs = localStorage.getItem("locale") || "zh-CN", ie = tu({
13485
+ const qs = localStorage.getItem("locale") || "zh-CN", ne = tu({
13486
13486
  // zh en ja
13487
13487
  locale: qs
13488
13488
  // messages: {
@@ -13638,7 +13638,7 @@ function ou(s, e) {
13638
13638
  }
13639
13639
  function ra(s, e, t) {
13640
13640
  if (s !== void 0) {
13641
- if (se(t) && se(s[e]) && t !== "") {
13641
+ if (ie(t) && ie(s[e]) && t !== "") {
13642
13642
  s[e] = t;
13643
13643
  return;
13644
13644
  }
@@ -13659,30 +13659,30 @@ function uu(s, e, t = null) {
13659
13659
  );
13660
13660
  }
13661
13661
  function pu(s, e, t = []) {
13662
- if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== ye.RELATION_FIELD || !s.props.multistageFilling)
13662
+ if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== se.RELATION_FIELD || !s.props.multistageFilling)
13663
13663
  return;
13664
13664
  const a = lu(e, s.props.dataBind.dataCode);
13665
13665
  if (!a)
13666
13666
  return;
13667
13667
  const r = a.data_field_list?.filter(
13668
- (u) => u.field_type === ye.REFERENCE_FIELD && u.props.reference_relation_field_code === s.props.dataBind.fieldCode
13668
+ (l) => l.field_type === se.REFERENCE_FIELD && l.props.reference_relation_field_code === s.props.dataBind.fieldCode
13669
13669
  ) ?? [], i = t.find(
13670
- (u) => u.controlId === s.id
13671
- )?.parentId, n = r.map((u) => {
13672
- const l = uu(
13670
+ (l) => l.controlId === s.id
13671
+ )?.parentId, n = r.map((l) => {
13672
+ const u = uu(
13673
13673
  t,
13674
- u.field_code,
13674
+ l.field_code,
13675
13675
  i
13676
13676
  );
13677
- if (l)
13677
+ if (u)
13678
13678
  return new Ai({
13679
- controlId: l?.controlId,
13680
- fieldCode: u.props.reference_field_code
13679
+ controlId: u?.controlId,
13680
+ fieldCode: l.props.reference_field_code
13681
13681
  });
13682
13682
  }).filter(Boolean);
13683
13683
  s.props.multistageFilling.push(...n);
13684
13684
  const o = a.data_field_list?.find(
13685
- (u) => u.field_code === s.props.dataBind.fieldCode
13685
+ (l) => l.field_code === s.props.dataBind.fieldCode
13686
13686
  );
13687
13687
  s.props.datasourceBind && o && (s.props.datasourceBind.displayBoList = [
13688
13688
  new _i({
@@ -13721,23 +13721,23 @@ class yu {
13721
13721
  form_keys: e
13722
13722
  }
13723
13723
  }).then((o) => {
13724
- const u = o.data?.[a];
13725
- u?.rel_form_keys?.length && this.loadDependencyComponent(
13726
- u.rel_form_keys,
13724
+ const l = o.data?.[a];
13725
+ l?.rel_form_keys?.length && this.loadDependencyComponent(
13726
+ l.rel_form_keys,
13727
13727
  t
13728
13728
  );
13729
- const l = Ia(
13730
- u.custom,
13729
+ const u = Ia(
13730
+ l.custom,
13731
13731
  t,
13732
13732
  qe(K.isPc())
13733
13733
  );
13734
- u.style;
13734
+ l.style;
13735
13735
  {
13736
13736
  const p = document.createElement("style");
13737
- p.className = "component-css", p.innerHTML = u.style.compiled, document.head.appendChild(p);
13737
+ p.className = "component-css", p.innerHTML = l.style.compiled, document.head.appendChild(p);
13738
13738
  }
13739
13739
  i(
13740
- l ? l.variables[u.custom?.names[0]?.name] : null
13740
+ u ? u.variables[l.custom?.names[0]?.name] : null
13741
13741
  );
13742
13742
  });
13743
13743
  })
@@ -13761,12 +13761,12 @@ class yu {
13761
13761
  return;
13762
13762
  const n = {};
13763
13763
  e.names?.map((o) => {
13764
- const u = Oa(
13765
- () => new Promise((l, p) => {
13766
- l(i.variables[o.name]);
13764
+ const l = Oa(
13765
+ () => new Promise((u, p) => {
13766
+ u(i.variables[o.name]);
13767
13767
  })
13768
13768
  );
13769
- L.component("custom-vue-" + o.id, u), n["custom-vue-" + o.id] = u;
13769
+ L.component("custom-vue-" + o.id, l), n["custom-vue-" + o.id] = l;
13770
13770
  }), this.engine.getAction().sources = n;
13771
13771
  }
13772
13772
  }
@@ -13879,16 +13879,16 @@ class As {
13879
13879
  });
13880
13880
  const a = e.instance.props;
13881
13881
  t.filter((i) => {
13882
- const n = a.optionConfig === "custom" ? a.options : tt.getCacheDisplay(a.dataBind, i.option_ids).map((o, u) => ({
13883
- value: i.option_ids[u],
13882
+ const n = a.optionConfig === "custom" ? a.options : tt.getCacheDisplay(a.dataBind, i.option_ids).map((o, l) => ({
13883
+ value: i.option_ids[l],
13884
13884
  label: o,
13885
- id: i.option_ids[u]
13885
+ id: i.option_ids[l]
13886
13886
  }));
13887
13887
  return this.filterDisplayConfig(i, n, e);
13888
13888
  }).forEach((i) => this.applyDisplay(i, e)), await Promise.resolve();
13889
13889
  }
13890
13890
  handlerCacheInstanceIdDefaultIsHide(e) {
13891
- const t = se(e) ? this.getInstances(e) : [e];
13891
+ const t = ie(e) ? this.getInstances(e) : [e];
13892
13892
  t.map((a) => {
13893
13893
  if (!this.cacheDefaultIsHide.has(a)) {
13894
13894
  const r = this.engine.getInstanceRowIndex(a);
@@ -14135,7 +14135,7 @@ class _s {
14135
14135
  return this.displayConfigControlIds.includes(e.id);
14136
14136
  }
14137
14137
  }
14138
- const Pr = (s) => se(s) || it(s) ? s.length === 0 : !1;
14138
+ const Pr = (s) => ie(s) || it(s) ? s.length === 0 : !1;
14139
14139
  let hu = 0;
14140
14140
  class Is {
14141
14141
  pluginName = "MultistageFillingPlugin";
@@ -14158,12 +14158,12 @@ class Is {
14158
14158
  (r, i) => {
14159
14159
  const n = (r?.parent).children.findIndex((o) => o === r);
14160
14160
  r.children.map((o) => {
14161
- o.children.map(async (u) => {
14162
- const l = t.options?.data[i][u.id];
14163
- if (!Pr(l)) {
14161
+ o.children.map(async (l) => {
14162
+ const u = t.options?.data[i][l.id];
14163
+ if (!Pr(u)) {
14164
14164
  const p = {
14165
- instance: u,
14166
- value: l,
14165
+ instance: l,
14166
+ value: u,
14167
14167
  // rowIndex: this.engine.getInstanceRowIndex(control),
14168
14168
  rowIndex: n
14169
14169
  //qiyu 2023-6-8 在明细表数据行超过100行时,调用API消耗很大。
@@ -14201,20 +14201,20 @@ class Is {
14201
14201
  g.EMPLOYEE,
14202
14202
  g.EMPLOYEE2
14203
14203
  ])) {
14204
- const u = e.value;
14205
- let l;
14206
- if (u.length) {
14204
+ const l = e.value;
14205
+ let u;
14206
+ if (l.length) {
14207
14207
  if (this.engine.assertInstance(e.instance, g.EMPLOYEE))
14208
- l = await this.cacheRequest.request(
14208
+ u = await this.cacheRequest.request(
14209
14209
  this.service.default.ListUserInfoByIdsUserPrivateV1ApiAppsPOST,
14210
14210
  {
14211
- user_ids: u
14211
+ user_ids: l
14212
14212
  }
14213
14213
  );
14214
14214
  else if (this.engine.assertInstance(e.instance, g.EMPLOYEE2)) {
14215
14215
  const c = await this.engine.emit("search", {
14216
14216
  instance: e.instance,
14217
- value: u.join(","),
14217
+ value: l.join(","),
14218
14218
  rowIndex: e.rowIndex,
14219
14219
  options: {
14220
14220
  params: {
@@ -14225,15 +14225,15 @@ class Is {
14225
14225
  }
14226
14226
  }
14227
14227
  });
14228
- l = {
14228
+ u = {
14229
14229
  code: N.SUCCESS,
14230
14230
  data: c[0]
14231
14231
  };
14232
14232
  } else if (this.engine.assertInstance(e.instance, g.DEPARTMENT))
14233
- l = await this.cacheRequest.request(
14233
+ u = await this.cacheRequest.request(
14234
14234
  this.service.default.GetDepartmentsByIdsDeptPrivateV1ApiAppsPOST,
14235
14235
  {
14236
- department_ids: u,
14236
+ department_ids: l,
14237
14237
  display_level: e.instance.props.displayLevel
14238
14238
  }
14239
14239
  );
@@ -14243,7 +14243,7 @@ class Is {
14243
14243
  )) {
14244
14244
  const c = await this.engine.emit("search", {
14245
14245
  instance: e.instance,
14246
- value: u?.join(","),
14246
+ value: l?.join(","),
14247
14247
  rowIndex: e.rowIndex,
14248
14248
  options: {
14249
14249
  isNewRequset: !0,
@@ -14255,7 +14255,7 @@ class Is {
14255
14255
  }
14256
14256
  }
14257
14257
  });
14258
- l = {
14258
+ u = {
14259
14259
  code: N.SUCCESS,
14260
14260
  data: c[0]
14261
14261
  };
@@ -14282,8 +14282,8 @@ class Is {
14282
14282
  field_value: null,
14283
14283
  controlId: q
14284
14284
  };
14285
- if (l && l.code === N.SUCCESS) {
14286
- const b = l.data?.[0];
14285
+ if (u && u.code === N.SUCCESS) {
14286
+ const b = u.data?.[0];
14287
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]);
14288
14288
  } else
14289
14289
  y.display = null, y.field_value = null;
@@ -14295,27 +14295,27 @@ class Is {
14295
14295
  const T = this.engine.getInstance(b.controlId);
14296
14296
  return (e.instance?.props).dataBind?.fieldType === "relation-field" && T && T.props?.dataBind?.fieldType === "reference-field" ? `${b.controlId}&${T.props?.dataBind?.fieldCode}` : b.fieldCode;
14297
14297
  });
14298
- const u = e.instance.props.datasourceBind;
14299
- let l = this.engine.getInstanceRowIndex(e.instance);
14300
- l = l !== -1 ? l : void 0;
14298
+ const l = e.instance.props.datasourceBind;
14299
+ let u = this.engine.getInstanceRowIndex(e.instance);
14300
+ u = u !== -1 ? u : void 0;
14301
14301
  let p = "";
14302
14302
  const d = this.engine?.externalParams.data?.content?.model_bind_info_list;
14303
14303
  d && (p = JSON.stringify(d));
14304
14304
  const c = {
14305
- app_id: u.appId,
14306
- data_code: u.dataCode,
14307
- svc_code: u.svcCode,
14305
+ app_id: l.appId,
14306
+ data_code: l.dataCode,
14307
+ svc_code: l.svcCode,
14308
14308
  form_key: (this.engine?.externalParams).data.form_key,
14309
14309
  model_version: this.engine?.externalParams?.data?.content.schema_version,
14310
14310
  data_set: {
14311
- data_code: u.dataCode,
14311
+ data_code: l.dataCode,
14312
14312
  // 有数据过滤的话,需要把数据过滤的值都拿到
14313
- values: u.filters ? Pe(this.engine, u.filters, l) : []
14313
+ values: l.filters ? Pe(this.engine, l.filters, u) : []
14314
14314
  },
14315
14315
  // model_bind_info_list_str: modelBindInfoListStr,
14316
14316
  element_id: e.instance?.id,
14317
14317
  query_map: {
14318
- [u.valueFieldCode]: e.value
14318
+ [l.valueFieldCode]: e.value
14319
14319
  },
14320
14320
  fields: [...t]
14321
14321
  };
@@ -14351,12 +14351,11 @@ class Is {
14351
14351
  updateStore(e, t) {
14352
14352
  e.forEach((a) => {
14353
14353
  const { controlId: r, field_value: i } = a;
14354
- if (!r || i === "")
14355
- return;
14356
14354
  let n = i;
14357
- if (it(n)) {
14358
- const o = this.engine.getInstance(r, t);
14359
- (o?.fieldType === ye.EMPLOYEES || o?.fieldType === ye.DEPARTMENTS) && (n = o.props.multiple ? i : i.slice(0, 1));
14355
+ const o = this.engine.getInstance(r, t);
14356
+ if ((o?.fieldType === se.EMPLOYEES || o?.fieldType === se.DEPARTMENTS) && i === "" && (n = void 0), it(n)) {
14357
+ 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
14359
  }
14361
14360
  this.engine.setState(
14362
14361
  a.controlId,
@@ -14462,7 +14461,7 @@ function gu(s, e, t) {
14462
14461
  }
14463
14462
  function Su(s, e, t) {
14464
14463
  s = ae(s, 255), e = ae(e, 255), t = ae(t, 255);
14465
- var a = Math.max(s, e, t), r = Math.min(s, e, t), i = 0, n = a, o = a - r, u = a === 0 ? 0 : o / a;
14464
+ var a = Math.max(s, e, t), r = Math.min(s, e, t), i = 0, n = a, o = a - r, l = a === 0 ? 0 : o / a;
14466
14465
  if (a === r)
14467
14466
  i = 0;
14468
14467
  else {
@@ -14479,12 +14478,12 @@ function Su(s, e, t) {
14479
14478
  }
14480
14479
  i /= 6;
14481
14480
  }
14482
- return { h: i, s: u, v: n };
14481
+ return { h: i, s: l, v: n };
14483
14482
  }
14484
14483
  function bu(s, e, t) {
14485
14484
  s = ae(s, 360) * 6, e = ae(e, 100), t = ae(t, 100);
14486
- var a = Math.floor(s), r = s - a, i = t * (1 - e), n = t * (1 - r * e), o = t * (1 - (1 - r) * e), u = a % 6, l = [t, n, i, i, o, t][u], p = [o, t, t, n, i, i][u], d = [i, i, o, t, t, n][u];
14487
- return { r: l * 255, g: p * 255, b: d * 255 };
14485
+ var a = Math.floor(s), r = s - a, i = t * (1 - e), n = t * (1 - r * e), o = t * (1 - (1 - r) * e), l = a % 6, u = [t, n, i, i, o, t][l], p = [o, t, t, n, i, i][l], d = [i, i, o, t, t, n][l];
14486
+ return { r: u * 255, g: p * 255, b: d * 255 };
14488
14487
  }
14489
14488
  function Tu(s, e, t, a) {
14490
14489
  var r = [
@@ -14652,7 +14651,7 @@ var Sr = {
14652
14651
  };
14653
14652
  function Ee(s) {
14654
14653
  var e = { r: 0, g: 0, b: 0 }, t = 1, a = null, r = null, i = null, n = !1, o = !1;
14655
- return typeof s == "string" && (s = wu(s)), typeof s == "object" && (ue(s.r) && ue(s.g) && ue(s.b) ? (e = Pu(s.r, s.g, s.b), n = !0, o = String(s.r).substr(-1) === "%" ? "prgb" : "rgb") : ue(s.h) && ue(s.s) && ue(s.v) ? (a = ze(s.s), r = ze(s.v), e = bu(s.h, a, r), n = !0, o = "hsv") : ue(s.h) && ue(s.s) && ue(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), {
14654
+ 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), {
14656
14655
  ok: n,
14657
14656
  format: s.format || o,
14658
14657
  r: Math.min(255, Math.max(e.r, 0)),
@@ -14661,8 +14660,8 @@ function Ee(s) {
14661
14660
  a: t
14662
14661
  };
14663
14662
  }
14664
- var qu = "[-\\+]?\\d+%?", Ou = "[-\\+]?\\d*\\.\\d+%?", ce = "(?:".concat(Ou, ")|(?:").concat(qu, ")"), xt = "[\\s|\\(]+(".concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")\\s*\\)?"), Bt = "[\\s|\\(]+(".concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")[,|\\s]+(").concat(ce, ")\\s*\\)?"), re = {
14665
- CSS_UNIT: new RegExp(ce),
14663
+ 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 = {
14664
+ CSS_UNIT: new RegExp(ye),
14666
14665
  rgb: new RegExp("rgb" + xt),
14667
14666
  rgba: new RegExp("rgba" + Bt),
14668
14667
  hsl: new RegExp("hsl" + xt),
@@ -14707,7 +14706,7 @@ function wu(s) {
14707
14706
  format: e ? "name" : "hex"
14708
14707
  } : !1)))))))));
14709
14708
  }
14710
- function ue(s) {
14709
+ function pe(s) {
14711
14710
  return !!re.CSS_UNIT.exec(String(s));
14712
14711
  }
14713
14712
  var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15, Vs = 5, Es = 4, Cu = [{
@@ -14786,12 +14785,12 @@ function sa(s) {
14786
14785
  }
14787
14786
  t.push(We(a));
14788
14787
  for (var o = 1; o <= Es; o += 1) {
14789
- var u = Tr(a), l = We(Ee({
14790
- h: qr(u, o),
14791
- s: Or(u, o),
14792
- v: wr(u, o)
14788
+ var l = Tr(a), u = We(Ee({
14789
+ h: qr(l, o),
14790
+ s: Or(l, o),
14791
+ v: wr(l, o)
14793
14792
  }));
14794
- t.push(l);
14793
+ t.push(u);
14795
14794
  }
14796
14795
  return e.theme === "dark" ? Cu.map(function(p) {
14797
14796
  var d = p.index, c = p.opacity, q = We(Vu(Ee(e.backgroundColor || "#141414"), Ee(t[d]), c * 100));
@@ -14980,17 +14979,17 @@ function ju() {
14980
14979
  return Ze({}, Fe);
14981
14980
  }
14982
14981
  var Ie = function(e, t) {
14983
- var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), u = Fe;
14984
- if (i && (u = {
14982
+ var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), l = Fe;
14983
+ if (i && (l = {
14985
14984
  primaryColor: i,
14986
14985
  secondaryColor: n || Ds(i)
14987
14986
  }), Fu(), xu(Ir(r), "icon should be icon definiton, but got ".concat(r)), !Ir(r))
14988
14987
  return null;
14989
- var l = r;
14990
- return l && typeof l.icon == "function" && (l = Ze({}, l, {
14991
- icon: l.icon(u.primaryColor, u.secondaryColor)
14992
- })), ia(l.icon, "svg-".concat(l.name), Ze({}, o, {
14993
- "data-icon": l.name,
14988
+ var u = r;
14989
+ return u && typeof u.icon == "function" && (u = Ze({}, u, {
14990
+ icon: u.icon(l.primaryColor, l.secondaryColor)
14991
+ })), ia(u.icon, "svg-".concat(u.name), Ze({}, o, {
14992
+ "data-icon": u.name,
14994
14993
  width: "1em",
14995
14994
  height: "1em",
14996
14995
  fill: "currentColor",
@@ -15039,8 +15038,8 @@ function Wu(s, e) {
15039
15038
  try {
15040
15039
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
15041
15040
  ;
15042
- } catch (u) {
15043
- i = !0, o = u;
15041
+ } catch (l) {
15042
+ i = !0, o = l;
15044
15043
  } finally {
15045
15044
  try {
15046
15045
  !r && t.return != null && t.return();
@@ -15099,8 +15098,8 @@ function tp(s, e) {
15099
15098
  try {
15100
15099
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
15101
15100
  ;
15102
- } catch (u) {
15103
- i = !0, o = u;
15101
+ } catch (l) {
15102
+ i = !0, o = l;
15104
15103
  } finally {
15105
15104
  try {
15106
15105
  !r && t.return != null && t.return();
@@ -15151,13 +15150,13 @@ function sp(s, e) {
15151
15150
  }
15152
15151
  Rs("#1890ff");
15153
15152
  var Ce = function(e, t) {
15154
- var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, u = r.rotate, l = r.tabindex, p = r.twoToneColor, d = r.onClick, c = rp(r, Xu), q = (a = {
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 = {
15155
15154
  anticon: !0
15156
- }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), y = o === "" || o || n.name === "loading" ? "anticon-spin" : "", b = l;
15155
+ }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), y = o === "" || o || n.name === "loading" ? "anticon-spin" : "", b = u;
15157
15156
  b === void 0 && d && (b = -1, c.tabindex = b);
15158
- var T = u ? {
15159
- msTransform: "rotate(".concat(u, "deg)"),
15160
- transform: "rotate(".concat(u, "deg)")
15157
+ var T = l ? {
15158
+ msTransform: "rotate(".concat(l, "deg)"),
15159
+ transform: "rotate(".concat(l, "deg)")
15161
15160
  } : void 0, m = ks(p), A = Yu(m, 2), f = A[0], v = A[1];
15162
15161
  return Le("span", Dr({
15163
15162
  role: "img",
@@ -15284,9 +15283,9 @@ class xs {
15284
15283
  return this.config.language;
15285
15284
  }
15286
15285
  toast(e, t) {
15287
- const a = se(t) ? t : t?.type;
15286
+ const a = ie(t) ? t : t?.type;
15288
15287
  let r, i = 2e3;
15289
- t && !se(t) && (r = t.onClose, i = t.duration ?? 2e3);
15288
+ t && !ie(t) && (r = t.onClose, i = t.duration ?? 2e3);
15290
15289
  const n = r;
15291
15290
  if (r = function() {
15292
15291
  n?.(), setTimeout(() => {
@@ -15353,8 +15352,8 @@ class xs {
15353
15352
  title: e,
15354
15353
  content: t,
15355
15354
  icon: () => Gt(lp),
15356
- okText: ie.$t("common.confirm", "确定"),
15357
- cancelText: ie.$t("common.cancel", "取消"),
15355
+ okText: ne.$t("common.confirm", "确定"),
15356
+ cancelText: ne.$t("common.cancel", "取消"),
15358
15357
  onOk() {
15359
15358
  a(!0);
15360
15359
  },
@@ -15373,7 +15372,7 @@ class xs {
15373
15372
  }
15374
15373
  getHttp(e) {
15375
15374
  const t = process.env.VUE_APP_API_RUN;
15376
- return pe(e ?? t);
15375
+ return de(e ?? t);
15377
15376
  }
15378
15377
  getBasePath() {
15379
15378
  return process.env.VUE_APP_BASE_PATH || "";
@@ -15405,7 +15404,7 @@ class xs {
15405
15404
  emp_ids: i,
15406
15405
  org_type: Ii.INTERNAL
15407
15406
  })), this.engine.assertInstance(e, g.EMPLOYEE2)) {
15408
- const u = await this.engine.emit("search", {
15407
+ const l = await this.engine.emit("search", {
15409
15408
  instance: e,
15410
15409
  value: Array.isArray(i) ? i.join(",") : i,
15411
15410
  options: {
@@ -15418,7 +15417,7 @@ class xs {
15418
15417
  });
15419
15418
  o = {
15420
15419
  code: N.SUCCESS,
15421
- data: u[0]
15420
+ data: l[0]
15422
15421
  };
15423
15422
  }
15424
15423
  if (this.engine.assertInstance(e, [
@@ -15436,9 +15435,9 @@ class xs {
15436
15435
  g.SELECT_RELATION,
15437
15436
  g.AMOUNT
15438
15437
  ])) {
15439
- let u = "";
15440
- const l = this.engine?.externalParams.data?.content?.model_bind_info_list;
15441
- l && (u = JSON.stringify(l));
15438
+ let l = "";
15439
+ const u = this.engine?.externalParams.data?.content?.model_bind_info_list;
15440
+ u && (l = JSON.stringify(u));
15442
15441
  const { datasourceBind: p, dataBind: d, optionConfig: c, options: q } = e.props;
15443
15442
  if (c === "custom")
15444
15443
  o = {
@@ -15484,7 +15483,7 @@ class xs {
15484
15483
  limit: 100,
15485
15484
  query_mode: "VALUE"
15486
15485
  };
15487
- this.config.isPreview ? b.model_bind_info_list_str = u : b?.model_bind_info_list_str && delete b.model_bind_info_list_str, o = await this.getHttp().post(
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
15487
  "/v1/private/bizModel/getFieldsValueWithFilter",
15489
15488
  b
15490
15489
  );
@@ -15493,8 +15492,8 @@ class xs {
15493
15492
  if (o && o.code === N.SUCCESS)
15494
15493
  return o.data;
15495
15494
  {
15496
- const u = this.getDevice() === "desktop";
15497
- o?.code == "1201702" && (u ? L.config.globalProperties.$message.error(o?.message) : L.config.globalProperties.$toast.fail(o?.message));
15495
+ 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
15497
  }
15499
15498
  return null;
15500
15499
  }
@@ -15551,7 +15550,7 @@ class xs {
15551
15550
  }
15552
15551
  async validateInstance(e, t) {
15553
15552
  return await Hr(), !(await this.engine.emit("validateInstance", {
15554
- instance: se(e) ? this.engine.getInstance(e, t) : e,
15553
+ instance: ie(e) ? this.engine.getInstance(e, t) : e,
15555
15554
  rowIndex: t
15556
15555
  })).includes(!1);
15557
15556
  }
@@ -15605,7 +15604,7 @@ class Bs {
15605
15604
  (n) => n.type === "draft"
15606
15605
  )) {
15607
15606
  const o = e.data_model.data_field_list.some(
15608
- (u) => u.field_code === "process_status"
15607
+ (l) => l.field_code === "process_status"
15609
15608
  );
15610
15609
  a.props.saveAs.isShow === !1 && o && this.setSaveDraftButton(!0);
15611
15610
  }
@@ -15646,7 +15645,7 @@ class Bs {
15646
15645
  o
15647
15646
  ) ?? n;
15648
15647
  if (p === !1)
15649
- e.options?.fail(ie.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15648
+ e.options?.fail(ne.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15650
15649
  else {
15651
15650
  const d = he(), c = await rn.awaitWraper(
15652
15651
  i && !r && !a ? d.default.UpdateDataPagePrivateV1ApiAppsPOST({
@@ -15681,10 +15680,10 @@ class Bs {
15681
15680
  const r = te(e);
15682
15681
  if (!r.data_uid) {
15683
15682
  r.data_uid = t.data;
15684
- const o = bs(this.engine), u = r.data_set.values.find(
15685
- (l) => l.code === o
15683
+ const o = bs(this.engine), l = r.data_set.values.find(
15684
+ (u) => u.code === o
15686
15685
  );
15687
- u && (u.value = t.data);
15686
+ l && (l.value = t.data);
15688
15687
  }
15689
15688
  const i = await this.engine?.emit("engine-submitted", {
15690
15689
  // 统一engine-submitted事件value参数,都是uid
@@ -15747,8 +15746,8 @@ class Fs {
15747
15746
  t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ? ii.confirm({
15748
15747
  content: e.options.runTask.sureMessage,
15749
15748
  icon: Le(cp),
15750
- okText: ie.$t("common.confirm", "确定"),
15751
- cancelText: ie.$t("common.cancel", "取消"),
15749
+ okText: ne.$t("common.confirm", "确定"),
15750
+ cancelText: ne.$t("common.cancel", "取消"),
15752
15751
  okButtonProps: this.okButtonProps,
15753
15752
  onOk: () => (Ut(e, "ApprovalPlugin.ts, onOk, ~777~"), new Promise((r, i) => {
15754
15753
  this.okButtonProps.loading = !0, this.submitData(e, r, i);
@@ -15759,7 +15758,7 @@ class Fs {
15759
15758
  async submitData(e, t, a) {
15760
15759
  Ut(e, "ApprovalPlugin.ts, submitData, ~777~");
15761
15760
  const r = he(), i = await this.genApprovalSubmitPayload(e);
15762
- i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ie.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15761
+ i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ne.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15763
15762
  payload: i
15764
15763
  }).then((n) => {
15765
15764
  n.code === N.SUCCESS ? this.engine?.emit("engine-submitted", {
@@ -15855,40 +15854,40 @@ class Ns {
15855
15854
  async onDataSourceSearch(e, t = { page_size: 50, page_index: 1 }, a) {
15856
15855
  const { instance: r, value: i } = e, n = r.props, o = String(++yp);
15857
15856
  this.weakMap.set(r, o);
15858
- let u;
15857
+ let l;
15859
15858
  if (this.engine.assertInstance(r, g.EMPLOYEE))
15860
- u = (await this.getUserListByIds(i)).data;
15859
+ l = (await this.getUserListByIds(i)).data;
15861
15860
  else if (this.engine.assertInstance(r, [
15862
15861
  g.DEPARTMENT,
15863
15862
  g.DEPARTMENT_COLUMN
15864
15863
  ]))
15865
- u = Array.isArray(i) ? await this.getDepartmentsByIds(
15864
+ l = Array.isArray(i) ? await this.getDepartmentsByIds(
15866
15865
  i,
15867
15866
  r.props.displayLevel
15868
15867
  ) : await this.remoteHandle(e);
15869
15868
  else if (this.engine.assertInstance(r, g.TREE))
15870
- a ? u = await this.getScreenItem(e, {
15869
+ a ? l = await this.getScreenItem(e, {
15871
15870
  page_size: 500,
15872
15871
  page_index: 1
15873
- }) : u = await this.remoteTreeHandle(e);
15872
+ }) : l = await this.remoteTreeHandle(e);
15874
15873
  else if (this.engine.assertInstance(r, g.EMPLOYEE2))
15875
- u = await this.remoteHandle(e, t);
15874
+ l = await this.remoteHandle(e, t);
15876
15875
  else if (this.engine.assertInstance(r, g.DEPARTMENT2))
15877
- u = await this.remoteHandle(e, t);
15876
+ l = await this.remoteHandle(e, t);
15878
15877
  else if (this.engine.assertInstance(r, g.ORGANIZATION_SELECTION))
15879
- u = await this.remoteOrganizationHandle(e, t), console.log("搜索组织", u);
15878
+ l = await this.remoteOrganizationHandle(e, t), console.log("搜索组织", l);
15880
15879
  else if (this.isOptions(n))
15881
- u = n.options, u = this.differenceBy(u, e);
15880
+ l = n.options, l = this.differenceBy(l, e);
15882
15881
  else if (this.isDataSourceBind(n) && r?.type !== "list-view") {
15883
- u = await this.remoteHandle(e);
15884
- const p = u.map((d) => ({ label: d.label, value: d.value }));
15882
+ l = await this.remoteHandle(e);
15883
+ const p = l.map((d) => ({ label: d.label, value: d.value }));
15885
15884
  this.engine.setInstance(r, "options", p, e.rowIndex);
15886
15885
  }
15887
- const l = {
15886
+ const u = {
15888
15887
  ...e,
15889
- value: u
15888
+ value: l
15890
15889
  };
15891
- return await this.engine.emit("resolve", l), l.value;
15890
+ return await this.engine.emit("resolve", u), u.value;
15892
15891
  }
15893
15892
  async getUserListByIds(e) {
15894
15893
  if (e.length)
@@ -15909,10 +15908,10 @@ class Ns {
15909
15908
  const { options: a = {} } = e, { params: r = void 0 } = a;
15910
15909
  let i = "", n = [], o = "";
15911
15910
  e.options?.getInfoById ? n = e.value : e.options?.mobileTree ? o = e.value : i = e.value;
15912
- const u = e.instance, l = u.props?.datasourceBind;
15913
- if (!l)
15911
+ const l = e.instance, u = l.props?.datasourceBind;
15912
+ if (!u)
15914
15913
  return [];
15915
- const p = l.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], q = u.props?.dataBind?.fieldCode, y = e.value, b = Pe(
15914
+ const p = u.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], q = l.props?.dataBind?.fieldCode, y = e.value, b = Pe(
15916
15915
  this.engine,
15917
15916
  p,
15918
15917
  e.rowIndex,
@@ -15922,24 +15921,24 @@ class Ns {
15922
15921
  value: y
15923
15922
  }
15924
15923
  ],
15925
- u?.props
15924
+ l?.props
15926
15925
  );
15927
- l.displayBoList, "attributes" in l && l.attributes !== null && l.attributes[0].value, r?.isFilter || (Array.isArray(y) ? y.map((m) => m.trim()).join(",") : se(y) && y.trim());
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());
15928
15927
  const T = {
15929
- app_id: l.appId || this.engine?.externalParams?.data?.app_id,
15928
+ app_id: u.appId || this.engine?.externalParams?.data?.app_id,
15930
15929
  key_word: i,
15931
- org_schema_id: e.options?.organizationView || u?.props?.organizationView || "6",
15930
+ org_schema_id: e.options?.organizationView || l?.props?.organizationView || "6",
15932
15931
  ...t,
15933
15932
  parent_org_unit_id: o,
15934
15933
  org_unit_ids: n,
15935
15934
  data_set: {
15936
- data_code: l.dataCode,
15935
+ data_code: u.dataCode,
15937
15936
  values: b
15938
15937
  },
15939
- relation_form_key: l.formCode,
15938
+ relation_form_key: u.formCode,
15940
15939
  save_form_key: this.engine?.externalParams?.data?.form_key,
15941
15940
  filters: j(p),
15942
- orders: j(l.orders ?? [])
15941
+ orders: j(u.orders ?? [])
15943
15942
  };
15944
15943
  return await this.cacheRequest.request(
15945
15944
  this.service.default.SelectBizOrgUnitListFilterDeptPrivateV1ApiAppsPOST,
@@ -15957,7 +15956,7 @@ class Ns {
15957
15956
  i.orders?.forEach((d) => {
15958
15957
  o[d.columnName] = d.desc ? "desc" : "asc";
15959
15958
  });
15960
- const u = i.attributes.filter((d) => {
15959
+ const l = i.attributes.filter((d) => {
15961
15960
  if (d.key === "displayBoList")
15962
15961
  return d.value;
15963
15962
  });
@@ -15975,14 +15974,14 @@ class Ns {
15975
15974
  data_filters: j(i.filters)
15976
15975
  },
15977
15976
  save_datas: {},
15978
- response_display_bo_list: u[0]?.value ?? [],
15977
+ response_display_bo_list: l[0]?.value ?? [],
15979
15978
  response_fields: [],
15980
15979
  value_field_code: i.valueFieldCode,
15981
15980
  query_mode: "LABEL",
15982
15981
  filters: [
15983
15982
  {
15984
15983
  ctrl_value: e.value,
15985
- display_bo_list: u[0]?.value ?? [],
15984
+ display_bo_list: l[0]?.value ?? [],
15986
15985
  query_type: "LIKE"
15987
15986
  }
15988
15987
  ]
@@ -16000,10 +15999,10 @@ class Ns {
16000
15999
  // 临时限制3000条
16001
16000
  // --bug=1015867 --user=孟庆飞 【testqw环境-设计c态、运行态-人员组件】前后端做中间数据的懒加载,不能只限制50条 https://www.tapd.cn/67265839/s/1334587
16002
16001
  async remoteHandle(e, t = { page_size: 100, page_index: 1 }) {
16003
- const { instance: a, options: r = {} } = e, { params: i = void 0, isNewRequset: n } = r, o = e.value, u = a.id, l = a.props?.datasourceBind;
16004
- if (!l)
16002
+ const { instance: a, options: r = {} } = e, { params: i = void 0, isNewRequset: n } = r, o = e.value, l = a.id, u = a.props?.datasourceBind;
16003
+ if (!u)
16005
16004
  return [];
16006
- const p = l.filters ?? [];
16005
+ const p = u.filters ?? [];
16007
16006
  let d = "";
16008
16007
  this.engine.assertInstance(a, g.AMOUNT) ? d = a.props.dataBind.currency.fieldCode : d = a.props?.dataBind?.fieldCode;
16009
16008
  const c = Array.isArray(i) ? i : [i ?? {}], q = Pe(
@@ -16021,12 +16020,12 @@ class Ns {
16021
16020
  let y;
16022
16021
  const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16023
16022
  b && this.config.isPreviewMode && (y = JSON.stringify(b));
16024
- let T = l.displayBoList;
16025
- "attributes" in l && l.attributes !== null && (T = l.attributes[0].value);
16023
+ let T = u.displayBoList;
16024
+ "attributes" in u && u.attributes !== null && (T = u.attributes[0].value);
16026
16025
  let m = "";
16027
- i?.isFilter ? m = "" : Array.isArray(o) ? m = o.map((h) => h.trim()).join(",") : se(o) ? m = o.trim() : m = o;
16026
+ i?.isFilter ? m = "" : Array.isArray(o) ? m = o.map((h) => h.trim()).join(",") : ie(o) ? m = o.trim() : m = o;
16028
16027
  let A = [];
16029
- const f = l?.keywordMapping;
16028
+ const f = u?.keywordMapping;
16030
16029
  f !== void 0 && f !== "" ? A = [
16031
16030
  {
16032
16031
  ctrl_value: m,
@@ -16040,20 +16039,20 @@ class Ns {
16040
16039
  // 人员
16041
16040
  }));
16042
16041
  const v = {
16043
- app_id: l.appId || this.engine?.externalParams?.data?.app_id,
16044
- data_code: l.dataCode,
16045
- svc_code: l.svcCode,
16042
+ app_id: u.appId || this.engine?.externalParams?.data?.app_id,
16043
+ data_code: u.dataCode,
16044
+ svc_code: u.svcCode,
16046
16045
  field_code: d,
16047
16046
  data_set: {
16048
- data_code: l.dataCode,
16047
+ data_code: u.dataCode,
16049
16048
  values: q
16050
16049
  },
16051
- element_id: u,
16052
- value_field_code: i?.valueFieldCode ?? l.valueFieldCode,
16050
+ element_id: l,
16051
+ value_field_code: i?.valueFieldCode ?? u.valueFieldCode,
16053
16052
  filters: A,
16054
16053
  model: "",
16055
16054
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16056
- orders: j(l.orders ?? []),
16055
+ orders: j(u.orders ?? []),
16057
16056
  response_display_bo_list: j(T),
16058
16057
  form_key: this.engine?.externalParams?.data.form_key,
16059
16058
  ...t,
@@ -16099,10 +16098,10 @@ class Ns {
16099
16098
  const { instance: t, options: a = {} } = e, r = t?.props, { params: i = void 0 } = a, { selectFilterVlaue: n } = a;
16100
16099
  let o = e.value;
16101
16100
  e.value && (o = String(e.value).trim());
16102
- const u = t.id, l = t.props?.datasourceBind;
16103
- if (!l)
16101
+ const l = t.id, u = t.props?.datasourceBind;
16102
+ if (!u)
16104
16103
  return [];
16105
- const p = l.filters ?? [];
16104
+ const p = u.filters ?? [];
16106
16105
  let d = "";
16107
16106
  d = (t.props?.dataBind).fieldCode;
16108
16107
  const q = Pe(
@@ -16120,36 +16119,36 @@ class Ns {
16120
16119
  let y;
16121
16120
  const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16122
16121
  b && this.config.isPreviewMode && (y = JSON.stringify(b));
16123
- const T = l.attributes[0].value, m = () => {
16122
+ const T = u.attributes[0].value, m = () => {
16124
16123
  const P = {
16125
16124
  user_name: "employee_name",
16126
16125
  current_user_id: "employee_id",
16127
16126
  email: "email",
16128
16127
  phone: "phone",
16129
16128
  department_id: "department_id"
16130
- }, w = l.rootNode;
16129
+ }, w = u.rootNode;
16131
16130
  let I = w.value[0];
16132
16131
  if (w.type === "system") {
16133
16132
  const C = P[I];
16134
16133
  I = this.config.userInfo[C];
16135
16134
  }
16136
16135
  return I;
16137
- }, A = l?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16136
+ }, A = u?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16138
16137
  let O = [];
16139
16138
  n && (O = [
16140
16139
  {
16141
- column_name: l.filterCode,
16140
+ column_name: u.filterCode,
16142
16141
  column_name_list: [],
16143
16142
  query_type: 0,
16144
16143
  value: [n]
16145
16144
  }
16146
16145
  ]);
16147
16146
  let E = [];
16148
- const h = l?.keywordMapping;
16147
+ const h = u?.keywordMapping;
16149
16148
  h !== void 0 && h !== "" ? E = [
16150
16149
  {
16151
16150
  ctrl_value: i?.isFilter ? "" : o,
16152
- field_code: l.keywordMapping
16151
+ field_code: u.keywordMapping
16153
16152
  }
16154
16153
  ] : E = [
16155
16154
  {
@@ -16160,21 +16159,21 @@ class Ns {
16160
16159
  ];
16161
16160
  const S = {
16162
16161
  app_id: this.engine?.externalParams?.data?.app_id,
16163
- data_code: l.dataCode,
16164
- svc_code: l.svcCode,
16162
+ data_code: u.dataCode,
16163
+ svc_code: u.svcCode,
16165
16164
  field_code: d,
16166
16165
  custom_data: O,
16167
16166
  data_set: {
16168
- data_code: l.dataCode,
16167
+ data_code: u.dataCode,
16169
16168
  values: q
16170
16169
  },
16171
- element_id: u,
16172
- value_field_code: l.valueFieldCode,
16170
+ element_id: l,
16171
+ value_field_code: u.valueFieldCode,
16173
16172
  filters: E,
16174
16173
  model: "",
16175
16174
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16176
16175
  model_bind_info_list_str: y,
16177
- orders: j(l.orders ?? []),
16176
+ orders: j(u.orders ?? []),
16178
16177
  response_display_bo_list: j(T),
16179
16178
  form_key: this.engine?.externalParams?.data.form_key,
16180
16179
  query_mode: i?.queryMode || "LABLE",
@@ -16276,7 +16275,7 @@ class Us {
16276
16275
  r.map(async (i) => {
16277
16276
  const n = this.engine.getInstanceRowIndex(i), o = String(++hp);
16278
16277
  this.weakMap.set(i, o);
16279
- const u = await this.engine.emit("search", {
16278
+ const l = await this.engine.emit("search", {
16280
16279
  instance: i,
16281
16280
  rowIndex: n,
16282
16281
  value: this.engine.getState(i.id, n),
@@ -16288,15 +16287,15 @@ class Us {
16288
16287
  });
16289
16288
  if (this.weakMap.get(i) === o) {
16290
16289
  if (n !== void 0) {
16291
- const l = i.parent?.parent;
16292
- if (!(l?.parent).children.find((d) => d === l)) {
16290
+ const u = i.parent?.parent;
16291
+ if (!(u?.parent).children.find((d) => d === u)) {
16293
16292
  this.weakMap.delete(i);
16294
16293
  return;
16295
16294
  }
16296
16295
  }
16297
16296
  this.weakMap.delete(i), this.resetValue(
16298
16297
  i,
16299
- u,
16298
+ l,
16300
16299
  n
16301
16300
  );
16302
16301
  }
@@ -16311,20 +16310,20 @@ class Us {
16311
16310
  const i = this.engine.getState(e.id, a), n = e.props.options ?? [];
16312
16311
  if (Array.isArray(i)) {
16313
16312
  const o = [];
16314
- for (const u of n)
16315
- i.includes(u.value) && o.push(u.value);
16313
+ for (const l of n)
16314
+ i.includes(l.value) && o.push(l.value);
16316
16315
  i.slice().sort().toString() !== o.slice().sort().toString() && (r = o);
16317
16316
  } else
16318
- n.filter((u) => u.value === i).length || (r = "");
16317
+ n.filter((l) => l.value === i).length || (r = "");
16319
16318
  if (this.engine.assertInstance(e, g.TREE) && t[0].length && i.length) {
16320
16319
  r = [];
16321
- const o = Array.isArray(i) ? i : [i], u = (l, p, d) => {
16322
- if (l.forEach((c) => {
16323
- p.includes(c.value) ? d.push(c.value) : c.children.length && u(c.children, p, d);
16320
+ 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);
16324
16323
  }), d.length === p.length || d === p)
16325
16324
  return d;
16326
16325
  };
16327
- u(t[0], o, r);
16326
+ l(t[0], o, r);
16328
16327
  }
16329
16328
  r !== void 0 && i.length !== 0 && e.controlType === "form" && this.engine.setState(e.id, r, a);
16330
16329
  }
@@ -16370,7 +16369,7 @@ class Gs {
16370
16369
  if (e.props !== "defaultState" || e.value === "readonly")
16371
16370
  return;
16372
16371
  const t = e.instance.props.dataBind;
16373
- !t || ![ye.REFERENCE_FIELD, ye.CALC_FIELD].includes(
16372
+ !t || ![se.REFERENCE_FIELD, se.CALC_FIELD].includes(
16374
16373
  t.fieldType
16375
16374
  ) || this.engine.setInstance(e.instance, "defaultState", "readonly");
16376
16375
  });
@@ -16408,7 +16407,7 @@ class $s {
16408
16407
  return;
16409
16408
  const r = this.engine.rawStore.DELETE_IDS;
16410
16409
  r[t.id] === void 0 && (r[t.id] = []);
16411
- const i = a.map((n) => n?.uid).filter((n) => !Jt(n));
16410
+ const i = a.map((n) => n?.uid).filter((n) => !Jt(n)).filter((n) => !e.value.some((l) => l.uid === n));
16412
16411
  r[t.id] = r[t.id].concat(i);
16413
16412
  }
16414
16413
  }
@@ -16583,23 +16582,23 @@ class Ta {
16583
16582
  if (i === "new" && !this.engine?.externalParams?.data.data_set)
16584
16583
  return "";
16585
16584
  const n = this.engine?.externalParams?.data?.data_set?.values, o = n.find(
16586
- (l) => l.code === r
16585
+ (u) => u.code === r
16587
16586
  ).field_type;
16588
- let u = n.find((l) => l.code === r).display;
16587
+ let l = n.find((u) => u.code === r).display;
16589
16588
  switch (o) {
16590
16589
  case "people":
16591
- u = u.map((l) => l.employee_name).join("/");
16590
+ l = l.map((u) => u.employee_name).join("/");
16592
16591
  break;
16593
16592
  case "department":
16594
- u = u.map((l) => l.department_name).join("/");
16593
+ l = l.map((u) => u.department_name).join("/");
16595
16594
  break;
16596
16595
  case "timestamp":
16597
- u ? u = Gr(u).format("YYYY-MM-DD") : u = "";
16596
+ l ? l = Gr(l).format("YYYY-MM-DD") : l = "";
16598
16597
  break;
16599
16598
  default:
16600
- u = u;
16599
+ l = l;
16601
16600
  }
16602
- return u;
16601
+ return l;
16603
16602
  }
16604
16603
  }
16605
16604
  }
@@ -16649,20 +16648,20 @@ class Hs extends Ta {
16649
16648
  r,
16650
16649
  n
16651
16650
  );
16652
- let u = !1;
16651
+ let l = !1;
16653
16652
  Kl.eachExpressions(
16654
16653
  n,
16655
- (l) => {
16656
- if (Bo(l) && l.variableName === "__datasource__") {
16657
- u = !0;
16658
- const p = l.keys[0];
16654
+ (u) => {
16655
+ if (Bo(u) && u.variableName === "__datasource__") {
16656
+ l = !0;
16657
+ const p = u.keys[0];
16659
16658
  this.datasourceDependencyGraph.has(p) ? this.datasourceDependencyGraph.get(p).add(o) : this.datasourceDependencyGraph.set(
16660
16659
  p,
16661
16660
  /* @__PURE__ */ new Set([o])
16662
16661
  );
16663
16662
  }
16664
16663
  }
16665
- ), u || this.nonDatasourceDependencyGraph.add(o);
16664
+ ), l || this.nonDatasourceDependencyGraph.add(o);
16666
16665
  });
16667
16666
  });
16668
16667
  }
@@ -16763,19 +16762,19 @@ class zs extends Ta {
16763
16762
  default:
16764
16763
  n = i;
16765
16764
  }
16766
- const o = r.getTenant(), u = t.find((T) => T.type === n);
16767
- if (!u)
16765
+ const o = r.getTenant(), l = t.find((T) => T.type === n);
16766
+ if (!l)
16768
16767
  return;
16769
- let l = "";
16768
+ let u = "";
16770
16769
  const {
16771
16770
  props: { value: p, i18n: d, fx: c }
16772
- } = u;
16771
+ } = l;
16773
16772
  if (!p)
16774
16773
  return;
16775
16774
  let { data: q, url: y } = this.engine.externalParams;
16776
16775
  const b = qs.split("-")[0];
16777
16776
  if (d && Object.keys(d).length) {
16778
- l = d[b] || d.zh;
16777
+ u = d[b] || d.zh;
16779
16778
  const T = a.state.multipleTabs;
16780
16779
  T[y.sappId]?.panesList?.forEach((m) => {
16781
16780
  if (m.formKey === y.formId || m.formKey === y.processInstanceId) {
@@ -16785,16 +16784,16 @@ class zs extends Ta {
16785
16784
  m.title = A[0]?.props?.i18n[b] || d[b] || d.zh;
16786
16785
  }
16787
16786
  }), a.commit("setMultipleTabs", T), setTimeout(() => {
16788
- String(o.value).trim() !== "" ? document.title = l + "|" + o.value : document.title = l;
16787
+ String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16789
16788
  }, 1e3);
16790
16789
  return;
16791
16790
  }
16792
16791
  if (c && Object.keys(c).length) {
16793
16792
  const T = (A, f) => {
16794
- (f || f === 0) && (l = f), a.state.multipleTabs[y.sappId]?.panesList?.forEach((O) => {
16795
- (O.formKey === y.formId || O.formKey === y.processInstanceId) && (O.title = l);
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);
16796
16795
  }), setTimeout(() => {
16797
- String(o.value).trim() !== "" ? document.title = l + "|" + o.value : document.title = l;
16796
+ String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16798
16797
  }, 1e3);
16799
16798
  }, m = [...this.nonDatasourceDependencyGraph].find(
16800
16799
  (A) => A.type === n
@@ -16810,8 +16809,8 @@ class zs extends Ta {
16810
16809
  if (i === "fx" && n) {
16811
16810
  const o = n?.expression;
16812
16811
  if (o) {
16813
- const u = this.expressionParser.parser(o), l = new vp(a, u);
16814
- this.nonDatasourceDependencyGraph.add(l);
16812
+ const l = this.expressionParser.parser(o), u = new vp(a, l);
16813
+ this.nonDatasourceDependencyGraph.add(u);
16815
16814
  }
16816
16815
  }
16817
16816
  });
@@ -16926,11 +16925,11 @@ async function Tp({
16926
16925
  }, t, a, r, i) {
16927
16926
  function n() {
16928
16927
  const P = process.env.VUE_APP_API_RUN;
16929
- return pe(P);
16928
+ return de(P);
16930
16929
  }
16931
16930
  const {
16932
- service_name: { svc_code: o, data_svc_mode: u },
16933
- input_param: l,
16931
+ service_name: { svc_code: o, data_svc_mode: l },
16932
+ input_param: u,
16934
16933
  orders: p,
16935
16934
  filters: d,
16936
16935
  return_type: { return_name: c, return_num: q },
@@ -16942,10 +16941,10 @@ async function Tp({
16942
16941
  selectedRows: b === "list" ? a?.getState(Js(e))?.selectedRows ?? [] : [],
16943
16942
  engine: a
16944
16943
  });
16945
- if (u !== et.selectMore) {
16944
+ if (l !== et.selectMore) {
16946
16945
  const P = {};
16947
16946
  await Promise.all(
16948
- l.map(async (w) => {
16947
+ u.map(async (w) => {
16949
16948
  let I = "";
16950
16949
  const C = w.rightVariableBo.value;
16951
16950
  switch (w.rightVariableBo.type) {
@@ -17002,7 +17001,7 @@ async function Tp({
17002
17001
  }
17003
17002
  });
17004
17003
  const { mode: O, multiple: E, fillList: h } = y;
17005
- if (u == et.selectMore || u == et.selectOne) {
17004
+ if (l == et.selectMore || l == et.selectOne) {
17006
17005
  const P = c === "all" ? 999 : c === "num" ? q : 1;
17007
17006
  Object.assign(T?.query, {
17008
17007
  page_size: P,
@@ -17027,14 +17026,14 @@ async function Tp({
17027
17026
  options: I,
17028
17027
  isOptions: !!I.length
17029
17028
  };
17030
- }, _ = (P, w, I, C, R, V) => le(a.getState(P, V)) && !le(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];
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
17030
  try {
17032
17031
  const P = await n().post(
17033
17032
  "/v1/private/dataSvc/handleDataBySvcCode?",
17034
17033
  T
17035
17034
  );
17036
17035
  if (P.data && P.data?.value) {
17037
- const w = le(P.data?.value) ? P.data?.value : [P.data?.value];
17036
+ const w = ue(P.data?.value) ? P.data?.value : [P.data?.value];
17038
17037
  if (w.length) {
17039
17038
  const I = (V, F, H, B) => {
17040
17039
  const U = w.slice(0, 50);
@@ -17042,8 +17041,8 @@ async function Tp({
17042
17041
  const W = U.filter(
17043
17042
  (D, $) => $ == 0
17044
17043
  ), Q = W.map((D) => {
17045
- const $ = {}, oe = Object.keys(D).includes(F);
17046
- return le(
17044
+ const $ = {}, le = Object.keys(D).includes(F);
17045
+ return ue(
17047
17046
  _(
17048
17047
  V,
17049
17048
  F,
@@ -17052,7 +17051,7 @@ async function Tp({
17052
17051
  H,
17053
17052
  B
17054
17053
  )
17055
- ) && oe && Object.assign($, {
17054
+ ) && le && Object.assign($, {
17056
17055
  [F]: U.map(($e, dt) => _(
17057
17056
  V,
17058
17057
  F,
@@ -17071,7 +17070,7 @@ async function Tp({
17071
17070
  // 需要为空 因为altogether已经处理
17072
17071
  B
17073
17072
  );
17074
- return le(x) ? Array.from(new Set(x)) : x;
17073
+ return ue(x) ? Array.from(new Set(x)) : x;
17075
17074
  }
17076
17075
  return _(
17077
17076
  V,
@@ -17098,7 +17097,7 @@ async function Tp({
17098
17097
  V.fieldCode,
17099
17098
  V?.fieldType,
17100
17099
  i
17101
- ), W = le(U) && H ? U.filter(
17100
+ ), W = ue(U) && H ? U.filter(
17102
17101
  (Q) => B.includes(Q)
17103
17102
  ) : U;
17104
17103
  F[V.controlId] = W;
@@ -17126,9 +17125,9 @@ async function Tp({
17126
17125
  D,
17127
17126
  x.fieldType,
17128
17127
  Q
17129
- ), oe = le($) ? $ : [$], Ge = B[x.controlId].isOptions ? oe?.filter(
17128
+ ), le = ue($) ? $ : [$], Ge = B[x.controlId].isOptions ? le?.filter(
17130
17129
  ($e) => B[x.controlId].options?.includes($e)
17131
- ) ? oe : void 0 : $;
17130
+ ) ? le : void 0 : $;
17132
17131
  V[Q][x.controlId] = Ge;
17133
17132
  }
17134
17133
  );
@@ -17151,12 +17150,12 @@ async function Tp({
17151
17150
  V.fieldCode,
17152
17151
  V?.fieldType
17153
17152
  ), { isOptions: U, options: W } = S(V.controlId);
17154
- if (le(a.getState(V.controlId)))
17153
+ if (ue(a.getState(V.controlId)))
17155
17154
  H?.props?.optionConfig === "datasource" ? F = B : F = U ? B.filter(
17156
17155
  (Q) => W.includes(Q)
17157
17156
  ) : B;
17158
17157
  else {
17159
- const Q = ["radio", "select", "select-relation"], x = le(B) ? B[0] : B;
17158
+ const Q = ["radio", "select", "select-relation"], x = ue(B) ? B[0] : B;
17160
17159
  Q.includes(H?.type || "") ? H?.props?.optionConfig === "datasource" ? F = x : F = W.includes(x) ? x : "" : F = B;
17161
17160
  }
17162
17161
  a.setState(
@@ -17173,7 +17172,7 @@ async function Tp({
17173
17172
  output: P.data
17174
17173
  };
17175
17174
  {
17176
- const w = P.message || ie.$t("message.calledServiceFail", "调用服务失败");
17175
+ const w = P.message || ne.$t("message.calledServiceFail", "调用服务失败");
17177
17176
  return bp ? $t.error(w) : Ht.fail(w), {
17178
17177
  input: T,
17179
17178
  output: P.data,
@@ -17200,14 +17199,14 @@ async function qp(s) {
17200
17199
  s.params?.error
17201
17200
  );
17202
17201
  else {
17203
- const i = ie.$t(
17202
+ const i = ne.$t(
17204
17203
  "message.callJsFailed",
17205
17204
  "调用JS方法失败" + a.method + "方法不存在"
17206
17205
  );
17207
17206
  K.isPc() ? $t.error(i) : Ht.fail(i);
17208
17207
  }
17209
17208
  } catch (i) {
17210
- const n = ie.$t(
17209
+ const n = ne.$t(
17211
17210
  "message.callJsFailed",
17212
17211
  "调用JS方法失败" + a.method + "方法 " + i
17213
17212
  );
@@ -17259,31 +17258,31 @@ class Xs {
17259
17258
  let r;
17260
17259
  for (let i = 0; i < a.cases[0].handlers.length; i++) {
17261
17260
  const n = a.cases[0].handlers, o = n[i];
17262
- let u;
17261
+ let l;
17263
17262
  if (o.method === be.openLink)
17264
17263
  await Pp({
17265
17264
  engine: this.engine,
17266
17265
  handler: o,
17267
17266
  instance: t?.instance
17268
- }), e === "on_focus" && o.params.openMode === "newTab" && cs(), r = u;
17267
+ }), e === "on_focus" && o.params.openMode === "newTab" && cs(), r = l;
17269
17268
  else if (o.method === be.setInstance)
17270
17269
  await gp(o, this.engine);
17271
17270
  else if (o.method === be.querySvc) {
17272
- const l = await Tp(
17271
+ const u = await Tp(
17273
17272
  { handler: o, instance: t?.instance },
17274
17273
  this.app_id,
17275
17274
  this.engine,
17276
17275
  this.userInfo,
17277
17276
  t?.rowIndex
17278
17277
  );
17279
- l?.error && (u = !1), r = l;
17278
+ u?.error && (l = !1), r = u;
17280
17279
  } else
17281
- o.method === be.jsMethod && (u = await qp({
17280
+ o.method === be.jsMethod && (l = await qp({
17282
17281
  handler: o,
17283
17282
  engine: this.engine,
17284
17283
  params: r
17285
17284
  }), r = void 0);
17286
- if (u === !1 && n?.[i + 1]?.method !== be.jsMethod)
17285
+ if (l === !1 && n?.[i + 1]?.method !== be.jsMethod)
17287
17286
  break;
17288
17287
  }
17289
17288
  }
@@ -17294,21 +17293,21 @@ const Op = (s, e = "date") => {
17294
17293
  s = `${s}`;
17295
17294
  let t = /* @__PURE__ */ new Date();
17296
17295
  s.length > 9 && !/:|^[^-][-]+|\//.test(s) ? t = /* @__PURE__ */ new Date(+s) : t = new Date(`${s}`.replace(/-/g, "/"));
17297
- const a = t.getFullYear(), r = t.getMonth() + 1, i = t.getDate(), n = t.getHours(), o = t.getMinutes(), u = t.getSeconds();
17298
- let l = [0, 0];
17296
+ const a = t.getFullYear(), r = t.getMonth() + 1, i = t.getDate(), n = t.getHours(), o = t.getMinutes(), l = t.getSeconds();
17297
+ let u = [0, 0];
17299
17298
  switch (e) {
17300
17299
  case "datetime":
17301
- l = [
17300
+ u = [
17302
17301
  (/* @__PURE__ */ new Date(
17303
- `${a}/${r}/${i} ${n}:${o}:${u}`
17302
+ `${a}/${r}/${i} ${n}:${o}:${l}`
17304
17303
  )).valueOf(),
17305
17304
  (/* @__PURE__ */ new Date(
17306
- `${a}/${r}/${i} ${n}:${o}:${u + 1}`
17305
+ `${a}/${r}/${i} ${n}:${o}:${l + 1}`
17307
17306
  )).valueOf() - 1
17308
17307
  ];
17309
17308
  break;
17310
17309
  case "dateminutes":
17311
- l = [
17310
+ u = [
17312
17311
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:00`)).valueOf(),
17313
17312
  (/* @__PURE__ */ new Date(
17314
17313
  `${a}/${r}/${i} ${o === 59 ? n + 1 : n}:${o === 59 ? "00" : o + 1}:00`
@@ -17316,37 +17315,37 @@ const Op = (s, e = "date") => {
17316
17315
  ];
17317
17316
  break;
17318
17317
  case "datemin":
17319
- l = [
17318
+ u = [
17320
17319
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:00`)).valueOf(),
17321
17320
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:59`)).valueOf()
17322
17321
  ];
17323
17322
  break;
17324
17323
  case "datehour":
17325
- l = [
17324
+ u = [
17326
17325
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:00:00`)).valueOf(),
17327
17326
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:59:59`)).valueOf()
17328
17327
  ];
17329
17328
  break;
17330
17329
  case "date":
17331
- l = [
17330
+ u = [
17332
17331
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} 00:00:00`)).valueOf(),
17333
17332
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} 23:59:59`)).valueOf()
17334
17333
  ];
17335
17334
  break;
17336
17335
  case "month":
17337
- l = [
17336
+ u = [
17338
17337
  (/* @__PURE__ */ new Date(`${a}/${r}/01 00:00:00`)).valueOf(),
17339
17338
  +r == 12 ? (/* @__PURE__ */ new Date(`${a + 1}/01/01 00:00:00`)).valueOf() - 1 : (/* @__PURE__ */ new Date(`${a}/${r + 1}/01 00:00:00`)).valueOf() - 1
17340
17339
  ];
17341
17340
  break;
17342
17341
  case "year":
17343
- l = [
17342
+ u = [
17344
17343
  (/* @__PURE__ */ new Date(`${a}/01/01 00:00:00`)).valueOf(),
17345
17344
  (/* @__PURE__ */ new Date(`${a + 1}/01/01 00:00:00`)).valueOf() - 1
17346
17345
  ];
17347
17346
  break;
17348
17347
  }
17349
- return l.map((p) => `${p}`);
17348
+ return u.map((p) => `${p}`);
17350
17349
  }, wp = (s) => {
17351
17350
  const e = Op((/* @__PURE__ */ new Date()).valueOf(), s);
17352
17351
  return Number(e[0]);
@@ -17367,9 +17366,9 @@ function _p(s, e, t = {}, a) {
17367
17366
  pageStatus: i,
17368
17367
  descript: n,
17369
17368
  device: o,
17370
- engineOptionsBuilder: u,
17371
- parentEngine: l,
17372
- locale: p = ie.global.locale
17369
+ engineOptionsBuilder: l,
17370
+ parentEngine: u,
17371
+ locale: p = ne.global.locale
17373
17372
  } = s, {
17374
17373
  route: d = {},
17375
17374
  store: c = {},
@@ -17398,7 +17397,7 @@ function _p(s, e, t = {}, a) {
17398
17397
  ), I = [
17399
17398
  r.data.data_model,
17400
17399
  ...r.data.sub_data_model_list ?? []
17401
- ], C = r?.data?.content?.i18n, R = (D, $, oe = "zh") => $?.[oe]?.[D.id], V = G(
17400
+ ], C = r?.data?.content?.i18n, R = (D, $, le = "zh") => $?.[le]?.[D.id], V = G(
17402
17401
  () => c.state.tenant?.tenant_auth?.virtual_org || c.state.tenant?.tenant_auth?.virtual_org?.external_org
17403
17402
  ), F = (D) => {
17404
17403
  D = Ui(
@@ -17413,8 +17412,8 @@ function _p(s, e, t = {}, a) {
17413
17412
  events: v
17414
17413
  }
17415
17414
  ), st.isCopy(r.url.type) && st.setClearValueFieldCode(D), D.pageStatus = i;
17416
- const $ = iu(D, w), oe = R(D, C, p.split("-")[0]);
17417
- switch ($ && nu(D, $), oe && ou(D, oe), pu(
17415
+ const $ = iu(D, w), le = R(D, C, p.split("-")[0]);
17416
+ switch ($ && nu(D, $), le && ou(D, le), pu(
17418
17417
  D,
17419
17418
  I,
17420
17419
  w
@@ -17517,12 +17516,12 @@ function _p(s, e, t = {}, a) {
17517
17516
  externalParams: r
17518
17517
  };
17519
17518
  let W = U;
17520
- if (typeof u == "function") {
17521
- const D = u(U);
17519
+ if (typeof l == "function") {
17520
+ const D = l(U);
17522
17521
  D && (W = D);
17523
17522
  }
17524
17523
  const Q = new at(W), x = ai(Q);
17525
- return l && (x.parent = l), y && y.forEach((D, $) => {
17524
+ return u && (x.parent = u), y && y.forEach((D, $) => {
17526
17525
  x.setControlConfig($, D);
17527
17526
  }), x.rawStore.DELETE_IDS = {}, x.rawStore.UPDATE_IDS = {}, x.mount(), x.store = Fr(x.store), x;
17528
17527
  }
@@ -17530,7 +17529,7 @@ function Gp(s, e, t, a) {
17530
17529
  process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd = ri), window.byteluckVuePages || (window.byteluckVuePages = {});
17531
17530
  const r = ru(), { title: i, updateTitle: n } = su(s.isWatchTitle), o = Z({});
17532
17531
  pa("context", o);
17533
- const { printUrlList: u, setPrintUrlList: l } = Zi(), p = () => {
17532
+ const { printUrlList: l, setPrintUrlList: u } = Zi(), p = () => {
17534
17533
  const A = o.value.runtime.flatInstances.find(
17535
17534
  (f) => f.type === g.TITLE
17536
17535
  )?.props?.caption || s.state.data.name;
@@ -17548,7 +17547,7 @@ function Gp(s, e, t, a) {
17548
17547
  o.value instanceof at && (cu(o.value.id, e.path), o.value.destroy());
17549
17548
  }, y = async () => {
17550
17549
  if (s?.state?.data?.app_id) {
17551
- if (q(), l(s.state), Te = await Aa(
17550
+ if (q(), u(s.state), Te = await Aa(
17552
17551
  s.state.data.content.refer_component_id_list,
17553
17552
  s.state.data.content.refer_component_prop_list,
17554
17553
  qe(K.isPc()),
@@ -17585,7 +17584,7 @@ function Gp(s, e, t, a) {
17585
17584
  }
17586
17585
  return Te?.forEach(c), o.value = _p(
17587
17586
  s,
17588
- u.value,
17587
+ l.value,
17589
17588
  {
17590
17589
  store: t,
17591
17590
  route: e,