@gct-paas/word 0.1.74-beta.28 → 0.1.74-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.1.74-beta.28 */
1
+ /*! @gct-paas/word v0.1.74-beta.29 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import Mt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -9468,7 +9468,7 @@ function preloadDocumentFonts() {
9468
9468
  //#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
9469
9469
  var init_style = __esmMin((() => {}));
9470
9470
  //#endregion
9471
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.4_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_a70a2309eb5e599042566f018756ef53/node_modules/@gct-paas/form-base/dist/index.es.js
9471
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.6_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_a83aae1719616f47df09ee4ef05b8654/node_modules/@gct-paas/form-base/dist/index.es.js
9472
9472
  function Sa() {
9473
9473
  if (typeof globalThis < "u") {
9474
9474
  const e = globalThis._api;
@@ -9503,10 +9503,10 @@ function nl(e) {
9503
9503
  });
9504
9504
  }
9505
9505
  }
9506
- function Ot(e, o) {
9506
+ function At(e, o) {
9507
9507
  ol || (e.__resizeListeners__ || (e.__resizeListeners__ = [], e.__ro__ = new index$1(nl), e.__ro__.observe(e)), e.__resizeListeners__.push(o));
9508
9508
  }
9509
- function At(e, o) {
9509
+ function Ot(e, o) {
9510
9510
  !e || !e.__resizeListeners__ || (e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(o), 1), e.__resizeListeners__.length || e.__ro__.disconnect());
9511
9511
  }
9512
9512
  function sl({ move: e, size: o, bar: t }) {
@@ -9626,66 +9626,66 @@ async function Ht(e, o, t, a, n) {
9626
9626
  bsKey: e,
9627
9627
  modelKey: o,
9628
9628
  modelCategory: t
9629
- }, a, n);
9629
+ }, n, a);
9630
9630
  }
9631
9631
  function Cs(e) {
9632
9632
  const o = e.modelCategory ?? _s, t = ref([]), a = ref(/* @__PURE__ */ new Map());
9633
- function n(d) {
9634
- var _d$children;
9635
- d.rawValue && a.value.set(String(d.rawValue), d), (_d$children = d.children) === null || _d$children === void 0 || _d$children.forEach(n);
9633
+ function n(h) {
9634
+ var _h$children;
9635
+ h.rawValue && a.value.set(String(h.rawValue), h), (_h$children = h.children) === null || _h$children === void 0 || _h$children.forEach(n);
9636
9636
  }
9637
- function l(d, v, M) {
9638
- const w = M.__LABEL__ || M.version_, V = `${v}:${M.id_}`, D = {
9637
+ function l(h, p, _) {
9638
+ const w = _.__LABEL__ || _.version_, V = `${p}:${_.id_}`, D = {
9639
9639
  key: V,
9640
9640
  title: w,
9641
- displayLabel: `${d}:${w}`,
9641
+ displayLabel: `${h}:${w}`,
9642
9642
  rawValue: V,
9643
- _info: M,
9644
- isDefault: !!M.default_
9643
+ _info: _,
9644
+ isDefault: !!_.default_
9645
9645
  };
9646
9646
  return n(D), D;
9647
9647
  }
9648
- function s(d = []) {
9649
- return d.map((v) => {
9650
- var _v$__CHILDREN__;
9651
- const M = v.__LABEL__ || v.name_, w = (_v$__CHILDREN__ = v.__CHILDREN__) === null || _v$__CHILDREN__ === void 0 ? void 0 : _v$__CHILDREN__.find((D) => D.default_), V = {
9652
- key: v.id_,
9653
- title: M,
9654
- displayLabel: M,
9655
- rawValue: v.id_,
9648
+ function s(h = []) {
9649
+ return h.map((p) => {
9650
+ var _p$__CHILDREN__;
9651
+ const _ = p.__LABEL__ || p.name_, w = (_p$__CHILDREN__ = p.__CHILDREN__) === null || _p$__CHILDREN__ === void 0 ? void 0 : _p$__CHILDREN__.find((D) => D.default_), V = {
9652
+ key: p.id_,
9653
+ title: _,
9654
+ displayLabel: _,
9655
+ rawValue: p.id_,
9656
9656
  _info: w,
9657
9657
  showDefaultTag: !!w,
9658
9658
  disabled: !0,
9659
- children: (v.__CHILDREN__ || []).map((D) => l(M, v.id_, D))
9659
+ children: (p.__CHILDREN__ || []).map((D) => l(_, p.id_, D))
9660
9660
  };
9661
9661
  return n(V), V;
9662
9662
  });
9663
9663
  }
9664
- async function c(d = {}) {
9665
- var _d$keyword, _e$getQueryData;
9666
- const v = d.pageNo ?? 1, M = d.pageSize ?? 30, w = ((_d$keyword = d.keyword) === null || _d$keyword === void 0 ? void 0 : _d$keyword.trim()) || void 0, V = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), D = await zt.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9667
- pageNo: v,
9668
- pageSize: M,
9664
+ async function c(h = {}) {
9665
+ var _h$keyword, _e$getQueryData;
9666
+ const p = h.pageNo ?? 1, _ = h.pageSize ?? 30, w = ((_h$keyword = h.keyword) === null || _h$keyword === void 0 ? void 0 : _h$keyword.trim()) || void 0, V = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), D = await zt.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9667
+ pageNo: p,
9668
+ pageSize: _,
9669
9669
  modelCategory: o,
9670
9670
  keyword: w,
9671
9671
  queryData: V
9672
9672
  }, () => ks(e.modelKey, o, {
9673
- pageNo: v,
9674
- pageSize: M,
9673
+ pageNo: p,
9674
+ pageSize: _,
9675
9675
  keyword: w,
9676
9676
  queryData: V
9677
9677
  }), 3e5);
9678
9678
  return {
9679
- complete: (D === null || D === void 0 ? void 0 : D.totalPage) ? D.totalPage <= v : !0,
9679
+ complete: (D === null || D === void 0 ? void 0 : D.totalPage) ? D.totalPage <= p : !0,
9680
9680
  nodes: s((D === null || D === void 0 ? void 0 : D.data) || [])
9681
9681
  };
9682
9682
  }
9683
- async function u(d) {
9683
+ async function u(h) {
9684
9684
  var _await$zt$handleReque;
9685
- const [v] = d.split(":");
9686
- if (!v) return null;
9687
- const w = (_await$zt$handleReque = await zt.handleRequest(`rdo-tree-version:${e.modelKey}:${d}`, { id: d }, () => Ht("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
9688
- refIds: d,
9685
+ const [p] = h.split(":");
9686
+ if (!p) return null;
9687
+ const w = (_await$zt$handleReque = await zt.handleRequest(`rdo-tree-version:${e.modelKey}:${h}`, { id: h }, () => Ht("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
9688
+ refIds: h,
9689
9689
  includeDeleted: 1
9690
9690
  }), 3e5)) === null || _await$zt$handleReque === void 0 || (_await$zt$handleReque = _await$zt$handleReque.data) === null || _await$zt$handleReque === void 0 ? void 0 : _await$zt$handleReque[0];
9691
9691
  if (!w) return null;
@@ -9693,85 +9693,85 @@ function Cs(e) {
9693
9693
  let D = [];
9694
9694
  try {
9695
9695
  var _await$Ht;
9696
- D = (((_await$Ht = await Ht("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: v })) === null || _await$Ht === void 0 ? void 0 : _await$Ht.data) || []).map((O) => l(V, v, O));
9696
+ D = (((_await$Ht = await Ht("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: p })) === null || _await$Ht === void 0 ? void 0 : _await$Ht.data) || []).map((A) => l(V, p, A));
9697
9697
  } catch {
9698
9698
  D = [];
9699
9699
  }
9700
- const U = D.find((T) => T.isDefault), A = {
9701
- key: v,
9700
+ const U = D.find((T) => T.isDefault), O = {
9701
+ key: p,
9702
9702
  title: V,
9703
9703
  displayLabel: V,
9704
- rawValue: v,
9704
+ rawValue: p,
9705
9705
  _info: U === null || U === void 0 ? void 0 : U._info,
9706
9706
  showDefaultTag: !!U,
9707
9707
  disabled: !0,
9708
9708
  children: D
9709
9709
  };
9710
- return n(A), A;
9710
+ return n(O), O;
9711
9711
  }
9712
- async function r(d = {}) {
9712
+ async function i(h = {}) {
9713
9713
  var _t$value$at;
9714
- const v = d.pageNo ?? 1, { complete: M, nodes: w } = await c(d);
9715
- v > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...w)) : t.value = w, M || t.value.push({
9716
- key: `__load_more__:${v}`,
9714
+ const p = h.pageNo ?? 1, { complete: _, nodes: w } = await c(h);
9715
+ p > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...w)) : t.value = w, _ || t.value.push({
9716
+ key: `__load_more__:${p}`,
9717
9717
  title: "加载更多...",
9718
9718
  isLoadMore: !0,
9719
9719
  disabled: !1
9720
9720
  });
9721
9721
  }
9722
- async function k(d) {
9723
- if (!d) return;
9724
- const [v] = d.split(":");
9725
- if (a.value.has(d) || t.value.some((V) => V.key === v)) return;
9726
- const w = await u(d);
9722
+ async function C(h) {
9723
+ if (!h) return;
9724
+ const [p] = h.split(":");
9725
+ if (a.value.has(h) || t.value.some((V) => V.key === p)) return;
9726
+ const w = await u(h);
9727
9727
  w && t.value.unshift(w);
9728
9728
  }
9729
- function R(d) {
9730
- return a.value.get(d) || t.value.find((v) => String(v.key) === d);
9729
+ function R(h) {
9730
+ return a.value.get(h) || t.value.find((p) => String(p.key) === h);
9731
9731
  }
9732
- function x(d) {
9733
- var _M$children;
9734
- const [v] = d.split(":"), M = R(v || "");
9735
- return a.value.get(d) || (M === null || M === void 0 || (_M$children = M.children) === null || _M$children === void 0 ? void 0 : _M$children.find((w) => String(w.rawValue) === d));
9732
+ function x(h) {
9733
+ var _children;
9734
+ const [p] = h.split(":"), _ = R(p || "");
9735
+ return a.value.get(h) || (_ === null || _ === void 0 || (_children = _.children) === null || _children === void 0 ? void 0 : _children.find((w) => String(w.rawValue) === h));
9736
9736
  }
9737
- function b(d, v = !1) {
9738
- if (!d) return { text: "" };
9739
- const [M, w] = d.split(":");
9740
- if (M && w) {
9741
- const D = Qt(d, x, R);
9737
+ function b(h, p = !1) {
9738
+ if (!h) return { text: "" };
9739
+ const [_, w] = h.split(":");
9740
+ if (_ && w) {
9741
+ const D = Qt(h, x, R);
9742
9742
  if (D) return D;
9743
9743
  }
9744
- if (M && !w && !v) {
9745
- const D = R(M);
9744
+ if (_ && !w && !p) {
9745
+ const D = R(_);
9746
9746
  if (D) return {
9747
9747
  text: D.title,
9748
9748
  showDefaultTag: !0
9749
9749
  };
9750
9750
  }
9751
- const V = a.value.get(d);
9751
+ const V = a.value.get(h);
9752
9752
  return (V === null || V === void 0 ? void 0 : V.displayLabel) ? {
9753
9753
  text: V.displayLabel,
9754
- showDefaultTag: !v && !!V.showDefaultTag
9754
+ showDefaultTag: !p && !!V.showDefaultTag
9755
9755
  } : {
9756
- text: d,
9756
+ text: h,
9757
9757
  showDefaultTag: !1
9758
9758
  };
9759
9759
  }
9760
- async function h(d, v = 9999, M = !1) {
9761
- if (d) return t.value.length || await r({
9760
+ async function g(h, p = 9999, _ = !1) {
9761
+ if (h) return t.value.length || await i({
9762
9762
  pageNo: 1,
9763
- pageSize: v
9764
- }), await k(d), b(d, M);
9763
+ pageSize: p
9764
+ }), await C(h), b(h, _);
9765
9765
  }
9766
9766
  function y() {
9767
9767
  t.value = [], a.value = /* @__PURE__ */ new Map();
9768
9768
  }
9769
9769
  return {
9770
9770
  treeData: t,
9771
- loadOptions: r,
9772
- ensureSelectedNode: k,
9771
+ loadOptions: i,
9772
+ ensureSelectedNode: C,
9773
9773
  getNodeDisplay: b,
9774
- initByValue: h,
9774
+ initByValue: g,
9775
9775
  findChildNode: x,
9776
9776
  findParentNode: R,
9777
9777
  resetTreeData: y
@@ -9810,10 +9810,10 @@ function aa(e) {
9810
9810
  function er(e, o) {
9811
9811
  if (!o) throw new Error("请传入解析规则");
9812
9812
  const { separator: n, nullSymbol: l, fieldList: s } = aa(JSON.parse(o));
9813
- return e.split(n).reduce((u, r, k) => {
9814
- const R = s[k];
9813
+ return e.split(n).reduce((u, i, C) => {
9814
+ const R = s[C];
9815
9815
  if (R) {
9816
- let x = l && r === l ? null : r;
9816
+ let x = l && i === l ? null : i;
9817
9817
  if (x !== null) switch (R.type) {
9818
9818
  case Fe.qty:
9819
9819
  x = Number(x);
@@ -9930,7 +9930,7 @@ function jr(e) {
9930
9930
  jt.install(o);
9931
9931
  }
9932
9932
  function Fr(e) {
9933
- return (e === null || e === void 0 ? void 0 : e.closest(".gct-form-base-modal")) ?? document.body;
9933
+ return (e === null || e === void 0 ? void 0 : e.closest(".ant-modal")) ?? document.body;
9934
9934
  }
9935
9935
  function Gr() {
9936
9936
  return Ne || (Ne = createApp({ name: "FormBaseModalFallbackApp" }), ia(Ne), ra(Ne), ca(Ne)), Ne._context;
@@ -9959,7 +9959,7 @@ function $r(e, o, t) {
9959
9959
  function Pu() {
9960
9960
  xt.closeAll();
9961
9961
  }
9962
- var ke$1, Gt, Xt, F$15, We, Z$1, Se, zn, Bn, Hn, Nn, Dn, Kn, vt, pt, ol, ll, ul, cl, dl, ze, is, rs, us, cs, ds, ps, ms, vs, gs, hs, qt, bs, zt, _s, Bt, xs, Ms, Ss, Rs, Os, As, Vs, Ts, qs, zs, Bs, Hs, Ns, kt, hi, yi, bi, _i, gt, ki, Ci, ht, Mi, Si, Ri, Oi, Ai, Vi, Ti, $e, Yt, yt, zi, Bi, Ye, Hi, Ni, Ui, Di, ea, Nt, Pi, ta, Ii, ji, Fi, Gi, Ei, $i, Ji, Fe, Qi, or, nr, lr, sr, ir, rr, ur, cr, dr, pr, fr, oa, vr, gr, hr, br, _r, wr, Cr, xr, Mr, Sr, Rr, Ar, Vr, qr, zr, Nr, na, Ut, Ne, Er, xt, Wu;
9962
+ var ke$1, Gt, Xt, F$15, We, Z$1, Se, zn, Bn, Hn, Nn, Dn, Kn, vt, pt, ol, ll, ul, cl, dl, ze, is, rs, us, cs, ds, ps, ms, vs, gs, hs, qt, bs, zt, _s, Bt, xs, Ms, Ss, Rs, As, Os, Vs, Ts, qs, zs, Bs, Hs, Ns, kt, hi, yi, bi, _i, gt, ki, Ci, ht, Mi, Si, Ri, Ai, Oi, Vi, Ti, $e, Yt, yt, zi, Bi, Ye, Hi, Ni, Ui, Di, ea, Nt, Pi, ta, Ii, ji, Fi, Gi, Ei, $i, Ji, Fe, Qi, or, nr, lr, sr, ir, rr, ur, cr, dr, pr, fr, oa, vr, gr, hr, br, _r, wr, Cr, xr, Mr, Sr, Rr, Or, Vr, qr, zr, Nr, na, Ut, Ne, Er, xt, Wu;
9963
9963
  var init_index_es = __esmMin((() => {
9964
9964
  init_ResizeObserver_es();
9965
9965
  init_vue_color();
@@ -10103,20 +10103,20 @@ var init_index_es = __esmMin((() => {
10103
10103
  l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
10104
10104
  let s = Math.floor(a / 3);
10105
10105
  l.font = `${s}px Arial`;
10106
- const c = (b, h, y) => {
10107
- const d = b.split(""), v = [];
10108
- let M = "";
10109
- for (const w of d) {
10110
- const V = M + w;
10111
- y.measureText(V).width > h && M ? (v.push(M), M = w) : M = V;
10112
- }
10113
- return M && v.push(M), v;
10106
+ const c = (b, g, y) => {
10107
+ const h = b.split(""), p = [];
10108
+ let _ = "";
10109
+ for (const w of h) {
10110
+ const V = _ + w;
10111
+ y.measureText(V).width > g && _ ? (p.push(_), _ = w) : _ = V;
10112
+ }
10113
+ return _ && p.push(_), p;
10114
10114
  }, u = t * .9;
10115
- let r = c(o, u, l), k = s * 1.2;
10116
- for (; r.length * k > a && s > 10;) s--, k = s * 1.2, l.font = `${s}px Arial`, r = c(o, u, l);
10117
- const x = (a - r.length * k) / 2 + k / 2;
10118
- return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", r.forEach((b, h) => {
10119
- l.fillText(b, t / 2, x + h * k);
10115
+ let i = c(o, u, l), C = s * 1.2;
10116
+ for (; i.length * C > a && s > 10;) s--, C = s * 1.2, l.font = `${s}px Arial`, i = c(o, u, l);
10117
+ const x = (a - i.length * C) / 2 + C / 2;
10118
+ return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", i.forEach((b, g) => {
10119
+ l.fillText(b, t / 2, x + g * C);
10120
10120
  }), n.toDataURL("image/png");
10121
10121
  }
10122
10122
  static clear() {
@@ -10180,34 +10180,34 @@ var init_index_es = __esmMin((() => {
10180
10180
  warning: "icon-jinggao1",
10181
10181
  error: "icon-cuowu2"
10182
10182
  };
10183
- function n(r) {
10184
- r.duration <= 0 || (r.startTime = Date.now(), r.timer = window.setTimeout(() => {
10185
- u(r.id);
10186
- }, r.remaining));
10183
+ function n(i) {
10184
+ i.duration <= 0 || (i.startTime = Date.now(), i.timer = window.setTimeout(() => {
10185
+ u(i.id);
10186
+ }, i.remaining));
10187
10187
  }
10188
- function l(r) {
10189
- if (!r.timer) return;
10190
- clearTimeout(r.timer), r.timer = void 0;
10191
- const k = Date.now() - (r.startTime || 0);
10192
- r.remaining = r.remaining - k;
10188
+ function l(i) {
10189
+ if (!i.timer) return;
10190
+ clearTimeout(i.timer), i.timer = void 0;
10191
+ const C = Date.now() - (i.startTime || 0);
10192
+ i.remaining = i.remaining - C;
10193
10193
  }
10194
- function s(r) {
10195
- r.timer || r.remaining <= 0 || n(r);
10194
+ function s(i) {
10195
+ i.timer || i.remaining <= 0 || n(i);
10196
10196
  }
10197
- function c(r) {
10198
- r.remaining = r.duration, t.push(r), r.duration > 0 && n(r);
10197
+ function c(i) {
10198
+ i.remaining = i.duration, t.push(i), i.duration > 0 && n(i);
10199
10199
  }
10200
- function u(r) {
10201
- const k = t.findIndex((R) => R.id === r);
10202
- if (k !== -1) {
10203
- const R = t[k];
10204
- R !== null && R !== void 0 && R.timer && clearTimeout(R.timer), t.splice(k, 1);
10200
+ function u(i) {
10201
+ const C = t.findIndex((R) => R.id === i);
10202
+ if (C !== -1) {
10203
+ const R = t[C];
10204
+ R !== null && R !== void 0 && R.timer && clearTimeout(R.timer), t.splice(C, 1);
10205
10205
  }
10206
10206
  }
10207
10207
  return o({
10208
10208
  add: c,
10209
10209
  remove: u
10210
- }), (r, k) => (openBlock(), createElementBlock("div", zn, [createVNode(TransitionGroup, {
10210
+ }), (i, C) => (openBlock(), createElementBlock("div", zn, [createVNode(TransitionGroup, {
10211
10211
  name: "message",
10212
10212
  tag: "div",
10213
10213
  class: "message-list"
@@ -10284,23 +10284,23 @@ var init_index_es = __esmMin((() => {
10284
10284
  setup(e) {
10285
10285
  const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => ll[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), c = (x) => {
10286
10286
  var _window$getSelection;
10287
- x.ctrlKey || x.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(x), l.value[n.value.axis] = x.currentTarget[n.value.offset] - (x[n.value.client] - x.currentTarget.getBoundingClientRect()[n.value.direction]));
10287
+ x.ctrlKey || x.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), i(x), l.value[n.value.axis] = x.currentTarget[n.value.offset] - (x[n.value.client] - x.currentTarget.getBoundingClientRect()[n.value.direction]));
10288
10288
  }, u = (x) => {
10289
10289
  var _o$vnode$el;
10290
10290
  const y = (Math.abs(x.target.getBoundingClientRect()[n.value.direction] - x[n.value.client]) - t.value[n.value.offset] / 2) * 100 / (o === null || o === void 0 || (_o$vnode$el = o.vnode.el) === null || _o$vnode$el === void 0 ? void 0 : _o$vnode$el[n.value.offset]);
10291
10291
  a.value[n.value.scroll] = y * a.value[n.value.scrollSize] / 100;
10292
- }, r = (x) => {
10293
- x.stopImmediatePropagation(), s.value = !0, Vt(document, "mousemove", k), Vt(document, "mouseup", R), document.onselectstart = () => !1;
10294
- }, k = (x) => {
10292
+ }, i = (x) => {
10293
+ x.stopImmediatePropagation(), s.value = !0, Vt(document, "mousemove", C), Vt(document, "mouseup", R), document.onselectstart = () => !1;
10294
+ }, C = (x) => {
10295
10295
  var _o$vnode$el2, _o$vnode$el3;
10296
10296
  if (s.value === !1) return;
10297
10297
  const b = l.value[n.value.axis];
10298
10298
  if (!b) return;
10299
- const d = (((o === null || o === void 0 || (_o$vnode$el2 = o.vnode.el) === null || _o$vnode$el2 === void 0 ? void 0 : _o$vnode$el2.getBoundingClientRect()[n.value.direction]) - x[n.value.client]) * -1 - (t.value[n.value.offset] - b)) * 100 / (o === null || o === void 0 || (_o$vnode$el3 = o.vnode.el) === null || _o$vnode$el3 === void 0 ? void 0 : _o$vnode$el3[n.value.offset]);
10300
- a.value[n.value.scroll] = d * a.value[n.value.scrollSize] / 100;
10299
+ const h = (((o === null || o === void 0 || (_o$vnode$el2 = o.vnode.el) === null || _o$vnode$el2 === void 0 ? void 0 : _o$vnode$el2.getBoundingClientRect()[n.value.direction]) - x[n.value.client]) * -1 - (t.value[n.value.offset] - b)) * 100 / (o === null || o === void 0 || (_o$vnode$el3 = o.vnode.el) === null || _o$vnode$el3 === void 0 ? void 0 : _o$vnode$el3[n.value.offset]);
10300
+ a.value[n.value.scroll] = h * a.value[n.value.scrollSize] / 100;
10301
10301
  };
10302
10302
  function R() {
10303
- s.value = !1, l.value[n.value.axis] = 0, Tt(document, "mousemove", k), document.onselectstart = null;
10303
+ s.value = !1, l.value[n.value.axis] = 0, Tt(document, "mousemove", C), document.onselectstart = null;
10304
10304
  }
10305
10305
  return onUnmounted(() => {
10306
10306
  Tt(document, "mouseup", R);
@@ -10358,11 +10358,11 @@ var init_index_es = __esmMin((() => {
10358
10358
  provide("scroll-bar-wrap", l);
10359
10359
  const c = computed(() => Array.isArray(e.wrapStyle) ? rl(e.wrapStyle) : e.wrapStyle), u = () => {
10360
10360
  e.native || (n.value = unref(l).scrollTop * 100 / unref(l).clientHeight, a.value = unref(l).scrollLeft * 100 / unref(l).clientWidth);
10361
- }, r = () => {
10361
+ }, i = () => {
10362
10362
  if (!unref(l)) return;
10363
10363
  const x = unref(l).clientHeight * 100 / unref(l).scrollHeight, b = unref(l).clientWidth * 100 / unref(l).scrollWidth;
10364
10364
  t.value = x < 100 ? x + "%" : "", o.value = b < 100 ? b + "%" : "";
10365
- }, k = (x) => {
10365
+ }, C = (x) => {
10366
10366
  const b = unref(l);
10367
10367
  b && (typeof x == "number" ? b.scrollTop = x : b.scrollTo(x));
10368
10368
  }, R = (x) => {
@@ -10370,9 +10370,9 @@ var init_index_es = __esmMin((() => {
10370
10370
  b && (b.scrollTop = x);
10371
10371
  };
10372
10372
  return onMounted(() => {
10373
- e.native || (nextTick(r), e.noresize || (Ot(unref(s), r), Ot(unref(l), r), addEventListener("resize", r)));
10373
+ e.native || (nextTick(i), e.noresize || (At(unref(s), i), At(unref(l), i), addEventListener("resize", i)));
10374
10374
  }), onBeforeUnmount(() => {
10375
- e.native || e.noresize || (At(unref(s), r), At(unref(l), r), removeEventListener("resize", r));
10375
+ e.native || e.noresize || (Ot(unref(s), i), Ot(unref(l), i), removeEventListener("resize", i));
10376
10376
  }), {
10377
10377
  moveX: a,
10378
10378
  moveY: n,
@@ -10381,9 +10381,9 @@ var init_index_es = __esmMin((() => {
10381
10381
  style: c,
10382
10382
  wrap: l,
10383
10383
  resize: s,
10384
- update: r,
10384
+ update: i,
10385
10385
  handleScroll: u,
10386
- scrollTo: k,
10386
+ scrollTo: C,
10387
10387
  setScrollTop: R
10388
10388
  };
10389
10389
  }
@@ -10441,7 +10441,7 @@ var init_index_es = __esmMin((() => {
10441
10441
  function u() {
10442
10442
  c.value || a("select", t.node);
10443
10443
  }
10444
- return (r, k) => {
10444
+ return (i, C) => {
10445
10445
  const R = resolveComponent("RdoTreeSelectNode", !0);
10446
10446
  return openBlock(), createElementBlock("div", rs, [createElementVNode("div", {
10447
10447
  class: normalizeClass(["rdo-tree-select-node__row", {
@@ -10455,7 +10455,7 @@ var init_index_es = __esmMin((() => {
10455
10455
  }, [n.value ? (openBlock(), createElementBlock("span", {
10456
10456
  key: 0,
10457
10457
  class: normalizeClass(["rdo-tree-select-node__switcher", { expanded: l.value }]),
10458
- onClick: k[0] || (k[0] = withModifiers((x) => a("toggle", e.node.key), ["stop"]))
10458
+ onClick: C[0] || (C[0] = withModifiers((x) => a("toggle", e.node.key), ["stop"]))
10459
10459
  }, [createVNode(unref(Z$1), {
10460
10460
  icon: "icon-arrow_zhankai",
10461
10461
  color: "#212528",
@@ -10469,8 +10469,8 @@ var init_index_es = __esmMin((() => {
10469
10469
  "selected-key": e.selectedKey,
10470
10470
  "disabled-parent": e.disabledParent,
10471
10471
  "parent-to-default": e.parentToDefault,
10472
- onToggle: k[1] || (k[1] = (b) => a("toggle", b)),
10473
- onSelect: k[2] || (k[2] = (b) => a("select", b))
10472
+ onToggle: C[1] || (C[1] = (b) => a("toggle", b)),
10473
+ onSelect: C[2] || (C[2] = (b) => a("select", b))
10474
10474
  }, null, 8, [
10475
10475
  "node",
10476
10476
  "level",
@@ -10564,15 +10564,15 @@ var init_index_es = __esmMin((() => {
10564
10564
  const u = this.cacheMap.get(l);
10565
10565
  if (u && u.expireAt > s) return this.log("info", `[cache] 命中缓存: ${l}`), u.data;
10566
10566
  if (u && this.cacheMap.delete(l), this.pendingMap.has(l)) return this.log("warn", `[pending] 返回进行中的 Promise: ${l}`), this.pendingMap.get(l);
10567
- const r = a(t).then((k) => (this.cacheMap.size >= this.maxCacheSize && (this.log("debug", "[cache] 缓存已满,执行清理"), this.clearExpiredFirst()), this.cacheMap.set(l, {
10568
- data: k,
10567
+ const i = a(t).then((C) => (this.cacheMap.size >= this.maxCacheSize && (this.log("debug", "[cache] 缓存已满,执行清理"), this.clearExpiredFirst()), this.cacheMap.set(l, {
10568
+ data: C,
10569
10569
  expireAt: Date.now() + c
10570
- }), k)).catch((k) => {
10571
- throw this.log("error", `[request] 请求失败: ${l}`, k), k;
10570
+ }), C)).catch((C) => {
10571
+ throw this.log("error", `[request] 请求失败: ${l}`, C), C;
10572
10572
  }).finally(() => {
10573
10573
  this.pendingMap.delete(l);
10574
10574
  });
10575
- return this.pendingMap.set(l, r), r;
10575
+ return this.pendingMap.set(l, i), i;
10576
10576
  }
10577
10577
  /**
10578
10578
  * 清空全部缓存
@@ -10692,13 +10692,13 @@ var init_index_es = __esmMin((() => {
10692
10692
  key: 0,
10693
10693
  class: "rdo-tree-select__value-tag"
10694
10694
  };
10695
- Os = [
10695
+ As = [
10696
10696
  "value",
10697
10697
  "placeholder",
10698
10698
  "disabled",
10699
10699
  "onKeydown"
10700
10700
  ];
10701
- As = {
10701
+ Os = {
10702
10702
  key: 1,
10703
10703
  class: "rdo-tree-select__value"
10704
10704
  };
@@ -10761,16 +10761,16 @@ var init_index_es = __esmMin((() => {
10761
10761
  "change"
10762
10762
  ],
10763
10763
  setup(e, { emit: o }) {
10764
- const t = e, a = o, n = ref(), l = ref(), s = ref(), c = ref(), u = ref(!1), r = ref(!1), k = ref(!1), R = ref({}), x = ref(!1), b = ref([]), h = ref(1), y = ref(""), d = ref(""), v = ref({ text: "" }), { treeData: M, loadOptions: w, ensureSelectedNode: V, getNodeDisplay: D, initByValue: U, findChildNode: A, findParentNode: T, resetTreeData: O } = Cs({
10764
+ const t = e, a = o, n = ref(), l = ref(), s = ref(), c = ref(), u = ref(!1), i = ref(!1), C = ref(!1), R = ref({}), x = ref(!1), b = ref([]), g = ref(1), y = ref(""), h = ref(""), p = ref({ text: "" }), { treeData: _, loadOptions: w, ensureSelectedNode: V, getNodeDisplay: D, initByValue: U, findChildNode: O, findParentNode: T, resetTreeData: A } = Cs({
10765
10765
  modelKey: t.modelKey,
10766
10766
  modelCategory: t.modelCategory,
10767
10767
  getQueryData: () => t.queryData
10768
- }), S = computed(() => t.modelValue || void 0), g = computed(() => v.value.text || ""), H = computed(() => t.allowClear && !t.disabled && !u.value && g.value && k.value ? "clear" : u.value ? "search" : "arrow"), P = computed(() => t.allowClear && !t.disabled && S.value && k.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? M.value : M.value.map((I) => ({
10768
+ }), S = computed(() => t.modelValue || void 0), v = computed(() => p.value.text || ""), H = computed(() => t.allowClear && !t.disabled && !u.value && v.value && C.value ? "clear" : u.value ? "search" : "arrow"), P = computed(() => t.allowClear && !t.disabled && S.value && C.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? _.value : _.value.map((I) => ({
10769
10769
  ...I,
10770
10770
  disabled: !1
10771
10771
  })));
10772
10772
  function ne(I) {
10773
- v.value = I;
10773
+ p.value = I;
10774
10774
  }
10775
10775
  function Q() {
10776
10776
  if (!S.value) {
@@ -10786,7 +10786,7 @@ var init_index_es = __esmMin((() => {
10786
10786
  showDefaultTag: I.showDefaultTag ?? !1
10787
10787
  });
10788
10788
  }
10789
- function Oe() {
10789
+ function Ae() {
10790
10790
  b.value = Y.value.filter((I) => !I.isLoadMore).map((I) => I.key);
10791
10791
  }
10792
10792
  async function Pe() {
@@ -10804,20 +10804,20 @@ var init_index_es = __esmMin((() => {
10804
10804
  }
10805
10805
  Q();
10806
10806
  }
10807
- async function Ae(I = !0) {
10807
+ async function Oe(I = !0) {
10808
10808
  x.value = !0;
10809
10809
  try {
10810
- I && (h.value = 1), await w({
10811
- pageNo: h.value,
10810
+ I && (g.value = 1), await w({
10811
+ pageNo: g.value,
10812
10812
  pageSize: t.pageSize,
10813
- keyword: t.showSearch && d.value || void 0
10814
- }), I && Oe(), Q();
10813
+ keyword: t.showSearch && h.value || void 0
10814
+ }), I && Ae(), Q();
10815
10815
  } finally {
10816
10816
  x.value = !1;
10817
10817
  }
10818
10818
  }
10819
10819
  const Be = debounce(() => {
10820
- d.value = y.value.trim(), Ae(!0);
10820
+ h.value = y.value.trim(), Oe(!0);
10821
10821
  }, 300);
10822
10822
  function Ze() {
10823
10823
  if (!n.value) return;
@@ -10832,26 +10832,26 @@ var init_index_es = __esmMin((() => {
10832
10832
  }
10833
10833
  async function Je(I = {}) {
10834
10834
  const { forceRefresh: J = !1 } = I;
10835
- if (d.value) {
10836
- await Ae(!0), await V(S.value), Q();
10835
+ if (h.value) {
10836
+ await Oe(!0), await V(S.value), Q();
10837
10837
  return;
10838
10838
  }
10839
10839
  if (J) {
10840
- O(), await Ae(!0), await V(S.value), Q();
10840
+ A(), await Oe(!0), await V(S.value), Q();
10841
10841
  return;
10842
10842
  }
10843
- if (!M.value.length) {
10844
- await Ae(!0), await V(S.value), Q();
10843
+ if (!_.value.length) {
10844
+ await Oe(!0), await V(S.value), Q();
10845
10845
  return;
10846
10846
  }
10847
- Oe(), Q(), await V(S.value), Q();
10847
+ Ae(), Q(), await V(S.value), Q();
10848
10848
  }
10849
10849
  async function st() {
10850
10850
  var _l$value8;
10851
- t.disabled || (Ze(), u.value = !0, y.value = "", d.value = "", await Je({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
10851
+ t.disabled || (Ze(), u.value = !0, y.value = "", h.value = "", await Je({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
10852
10852
  }
10853
10853
  function _e() {
10854
- Be.cancel(), u.value = !1, y.value = "", d.value = "";
10854
+ Be.cancel(), u.value = !1, y.value = "", h.value = "";
10855
10855
  }
10856
10856
  function it() {
10857
10857
  t.disabled || u.value || st();
@@ -10872,13 +10872,13 @@ var init_index_es = __esmMin((() => {
10872
10872
  u.value && Ze();
10873
10873
  }
10874
10874
  async function ie() {
10875
- r.value = !0, await Je();
10875
+ i.value = !0, await Je();
10876
10876
  }
10877
- function me() {
10878
- r.value = !1;
10877
+ function ve() {
10878
+ i.value = !1;
10879
10879
  }
10880
10880
  async function we() {
10881
- h.value += 1, await Ae(!1);
10881
+ g.value += 1, await Oe(!1);
10882
10882
  }
10883
10883
  function Le(I) {
10884
10884
  const J = new Set(b.value);
@@ -10898,11 +10898,11 @@ var init_index_es = __esmMin((() => {
10898
10898
  if (I.disabled && t.disabledParent) return;
10899
10899
  const J = rt(I);
10900
10900
  if (!J.includes(":") && t.disabledParent) return;
10901
- const re = ls(J, I, A, T, t.parentToDefault);
10901
+ const re = ls(J, I, O, T, t.parentToDefault);
10902
10902
  ne(re), a("update:modelValue", J), a("update:fullPathValue", J), a("change", J, I, re), t.showSearch ? _e() : (_c$value = c.value) === null || _c$value === void 0 || (_c$value$hide = _c$value.hide) === null || _c$value$hide === void 0 || _c$value$hide.call(_c$value);
10903
10903
  }
10904
10904
  function se() {
10905
- Be.cancel(), y.value = "", d.value = "", ne({
10905
+ Be.cancel(), y.value = "", h.value = "", ne({
10906
10906
  text: "",
10907
10907
  showDefaultTag: !1
10908
10908
  }), a("update:modelValue", null), a("update:fullPathValue", null), a("change", null);
@@ -10915,7 +10915,7 @@ var init_index_es = __esmMin((() => {
10915
10915
  }), y.value = "";
10916
10916
  return;
10917
10917
  }
10918
- (t.showSearch ? u.value : r.value) || Pe();
10918
+ (t.showSearch ? u.value : i.value) || Pe();
10919
10919
  }), onMounted(() => {
10920
10920
  S.value && Pe(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", ce), window.addEventListener("scroll", ce, !0));
10921
10921
  }), onBeforeUnmount(() => {
@@ -10928,19 +10928,19 @@ var init_index_es = __esmMin((() => {
10928
10928
  }, [createElementVNode("div", {
10929
10929
  class: normalizeClass(["rdo-tree-select__trigger rdo-tree-select__trigger--searchable", { open: u.value }]),
10930
10930
  onClick: it,
10931
- onMouseenter: J[1] || (J[1] = (re) => k.value = !0),
10932
- onMouseleave: J[2] || (J[2] = (re) => k.value = !1)
10933
- }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", xs, [g.value && !y.value ? (openBlock(), createElementBlock("div", Ms, [createElementVNode("span", Ss, toDisplayString(g.value), 1), v.value.showDefaultTag ? (openBlock(), createElementBlock("span", Rs, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10931
+ onMouseenter: J[1] || (J[1] = (re) => C.value = !0),
10932
+ onMouseleave: J[2] || (J[2] = (re) => C.value = !1)
10933
+ }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", xs, [v.value && !y.value ? (openBlock(), createElementBlock("div", Ms, [createElementVNode("span", Ss, toDisplayString(v.value), 1), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", Rs, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10934
10934
  ref_key: "inputRef",
10935
10935
  ref: l,
10936
- class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!g.value && !y.value }]),
10936
+ class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!v.value && !y.value }]),
10937
10937
  type: "text",
10938
10938
  value: y.value,
10939
- placeholder: g.value ? "" : e.placeholder,
10939
+ placeholder: v.value ? "" : e.placeholder,
10940
10940
  disabled: e.disabled,
10941
10941
  onInput: K,
10942
10942
  onKeydown: [withKeys(withModifiers(_e, ["stop"]), ["esc"]), withKeys(_e, ["tab"])]
10943
- }, null, 42, Os)])) : (openBlock(), createElementBlock("span", As, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !g.value }]) }, toDisplayString(g.value || e.placeholder), 3), v.value.showDefaultTag ? (openBlock(), createElementBlock("span", Vs, "默认")) : createCommentVNode("", !0)]))], 2), H.value === "clear" ? (openBlock(), createElementBlock("span", {
10943
+ }, null, 42, As)])) : (openBlock(), createElementBlock("span", Os, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !v.value }]) }, toDisplayString(v.value || e.placeholder), 3), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", Vs, "默认")) : createCommentVNode("", !0)]))], 2), H.value === "clear" ? (openBlock(), createElementBlock("span", {
10944
10944
  key: 0,
10945
10945
  class: "rdo-tree-select__clear",
10946
10946
  onMousedown: J[0] || (J[0] = withModifiers(() => {}, ["prevent"])),
@@ -10971,7 +10971,7 @@ var init_index_es = __esmMin((() => {
10971
10971
  loading: x.value,
10972
10972
  "disabled-parent": e.disabledParent,
10973
10973
  "parent-to-default": e.parentToDefault,
10974
- "empty-text": d.value ? "暂无搜索" : "暂无数据",
10974
+ "empty-text": h.value ? "暂无搜索" : "暂无数据",
10975
10975
  onToggle: Le,
10976
10976
  onSelect: Qe,
10977
10977
  onLoadMore: we
@@ -10993,7 +10993,7 @@ var init_index_es = __esmMin((() => {
10993
10993
  placement: "bottom-start",
10994
10994
  disabled: e.disabled,
10995
10995
  onShow: ie,
10996
- onHide: me
10996
+ onHide: ve
10997
10997
  }, {
10998
10998
  popper: withCtx(() => [createElementVNode("div", {
10999
10999
  class: "rdo-tree-select__popper",
@@ -11017,14 +11017,14 @@ var init_index_es = __esmMin((() => {
11017
11017
  "parent-to-default"
11018
11018
  ])], 4)]),
11019
11019
  default: withCtx(() => [createElementVNode("div", {
11020
- class: normalizeClass(["rdo-tree-select__trigger", { active: r.value }]),
11021
- onMouseenter: J[5] || (J[5] = (re) => k.value = !0),
11022
- onMouseleave: J[6] || (J[6] = (re) => k.value = !1)
11023
- }, [v.value.text ? (openBlock(), createElementBlock("span", {
11020
+ class: normalizeClass(["rdo-tree-select__trigger", { active: i.value }]),
11021
+ onMouseenter: J[5] || (J[5] = (re) => C.value = !0),
11022
+ onMouseleave: J[6] || (J[6] = (re) => C.value = !1)
11023
+ }, [p.value.text ? (openBlock(), createElementBlock("span", {
11024
11024
  key: 0,
11025
11025
  class: "rdo-tree-select__value",
11026
- title: v.value.text
11027
- }, [createElementVNode("span", Bs, toDisplayString(v.value.text), 1), v.value.showDefaultTag ? (openBlock(), createElementBlock("span", Hs, "默认")) : createCommentVNode("", !0)], 8, zs)) : (openBlock(), createElementBlock("span", Ns, toDisplayString(e.placeholder), 1)), P.value === "clear" ? (openBlock(), createElementBlock("span", {
11026
+ title: p.value.text
11027
+ }, [createElementVNode("span", Bs, toDisplayString(p.value.text), 1), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", Hs, "默认")) : createCommentVNode("", !0)], 8, zs)) : (openBlock(), createElementBlock("span", Ns, toDisplayString(e.placeholder), 1)), P.value === "clear" ? (openBlock(), createElementBlock("span", {
11028
11028
  key: 2,
11029
11029
  class: "rdo-tree-select__clear",
11030
11030
  onMousedown: J[4] || (J[4] = withModifiers(() => {}, ["prevent"])),
@@ -11035,7 +11035,7 @@ var init_index_es = __esmMin((() => {
11035
11035
  size: "14"
11036
11036
  })], 32)) : (openBlock(), createElementBlock("span", {
11037
11037
  key: 3,
11038
- class: normalizeClass(["rdo-tree-select__suffix-icon", { active: r.value }])
11038
+ class: normalizeClass(["rdo-tree-select__suffix-icon", { active: i.value }])
11039
11039
  }, [createVNode(unref(Z$1), {
11040
11040
  icon: "icon-arrow_zhankai",
11041
11041
  color: "#6b6b6b",
@@ -11076,8 +11076,8 @@ var init_index_es = __esmMin((() => {
11076
11076
  Mi = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20fill='currentColor'%20aria-hidden='true'%20viewBox='64%2064%20896%20896'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M290%20236.4l43.9-43.9a8.01%208.01%200%2000-4.7-13.6L169%20160c-5.1-.6-9.5%203.7-8.9%208.9L179%20329.1c.8%206.6%208.9%209.4%2013.6%204.7l43.7-43.7L370%20423.7c3.1%203.1%208.2%203.1%2011.3%200l42.4-42.3c3.1-3.1%203.1-8.2%200-11.3L290%20236.4zm352.7%20187.3c3.1%203.1%208.2%203.1%2011.3%200l133.7-133.6%2043.7%2043.7a8.01%208.01%200%200013.6-4.7L863.9%20169c.6-5.1-3.7-9.5-8.9-8.9L694.8%20179c-6.6.8-9.4%208.9-4.7%2013.6l43.9%2043.9L600.3%20370a8.03%208.03%200%20000%2011.3l42.4%2042.4zM845%20694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7%2043.7L654%20600.3a8.03%208.03%200%2000-11.3%200l-42.4%2042.3a8.03%208.03%200%20000%2011.3L734%20787.6l-43.9%2043.9a8.01%208.01%200%20004.7%2013.6L855%20864c5.1.6%209.5-3.7%208.9-8.9L845%20694.9zm-463.7-94.6a8.03%208.03%200%2000-11.3%200L236.3%20733.9l-43.7-43.7a8.01%208.01%200%2000-13.6%204.7L160.1%20855c-.6%205.1%203.7%209.5%208.9%208.9L329.2%20845c6.6-.8%209.4-8.9%204.7-13.6L290%20787.6%20423.7%20654c3.1-3.1%203.1-8.2%200-11.3l-42.4-42.4z'%3e%3c/path%3e%3c/svg%3e";
11077
11077
  Si = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20fill='currentColor'%20aria-hidden='true'%20viewBox='64%2064%20896%20896'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M391%20240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7%2043.7L200%20146.3a8.03%208.03%200%2000-11.3%200l-42.4%2042.3a8.03%208.03%200%20000%2011.3L280%20333.6l-43.9%2043.9a8.01%208.01%200%20004.7%2013.6L401%20410c5.1.6%209.5-3.7%208.9-8.9L391%20240.9zm10.1%20373.2L240.8%20633c-6.6.8-9.4%208.9-4.7%2013.6l43.9%2043.9L146.3%20824a8.03%208.03%200%20000%2011.3l42.4%2042.3c3.1%203.1%208.2%203.1%2011.3%200L333.7%20744l43.7%2043.7A8.01%208.01%200%2000391%20783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2%20391c6.6-.8%209.4-8.9%204.7-13.6L744%20333.6%20877.7%20200c3.1-3.1%203.1-8.2%200-11.3l-42.4-42.3a8.03%208.03%200%2000-11.3%200L690.3%20279.9l-43.7-43.7a8.01%208.01%200%2000-13.6%204.7L614.1%20401c-.6%205.2%203.7%209.5%208.8%208.9zM744%20690.4l43.9-43.9a8.01%208.01%200%2000-4.7-13.6L623%20614c-5.1-.6-9.5%203.7-8.9%208.9L633%20783.1c.8%206.6%208.9%209.4%2013.6%204.7l43.7-43.7L824%20877.7c3.1%203.1%208.2%203.1%2011.3%200l42.4-42.3c3.1-3.1%203.1-8.2%200-11.3L744%20690.4z'%3e%3c/path%3e%3c/svg%3e";
11078
11078
  Ri = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2010.6001C5.55228%2010.6001%206%2011.0478%206%2011.6001C5.99987%2012.1523%205.5522%2012.6001%205%2012.6001C4.4478%2012.6001%204.00013%2012.1523%204%2011.6001C4%2011.0478%204.44772%2010.6001%205%2010.6001ZM9%2010.6001C9.55228%2010.6001%2010%2011.0478%2010%2011.6001C9.99987%2012.1523%209.5522%2012.6001%209%2012.6001C8.4478%2012.6001%208.00013%2012.1523%208%2011.6001C8%2011.0478%208.44772%2010.6001%209%2010.6001ZM5%205.99951C5.55216%205.99951%205.9998%206.4474%206%206.99951C6%207.5518%205.55228%207.99951%205%207.99951C4.44772%207.99951%204%207.5518%204%206.99951C4.0002%206.4474%204.44784%205.99951%205%205.99951ZM9%205.99951C9.55216%205.99951%209.9998%206.4474%2010%206.99951C10%207.5518%209.55228%207.99951%209%207.99951C8.44772%207.99951%208%207.5518%208%206.99951C8.0002%206.4474%208.44784%205.99951%209%205.99951ZM5%201.3999C5.55228%201.3999%206%201.84762%206%202.3999C6%202.95219%205.55228%203.3999%205%203.3999C4.44772%203.3999%204%202.95219%204%202.3999C4%201.84762%204.44772%201.3999%205%201.3999ZM9%201.3999C9.55228%201.3999%2010%201.84762%2010%202.3999C10%202.95219%209.55228%203.3999%209%203.3999C8.44772%203.3999%208%202.95219%208%202.3999C8%201.84762%208.44772%201.3999%209%201.3999Z'%20fill='%238B8B8B'/%3e%3c/svg%3e";
11079
- Oi = { class: "form-base-modal__title" };
11080
- Ai = ["src"];
11079
+ Ai = { class: "form-base-modal__title" };
11080
+ Oi = ["src"];
11081
11081
  Vi = ["title"];
11082
11082
  Ti = ["src"];
11083
11083
  $e = /* @__PURE__ */ defineComponent({
@@ -11130,7 +11130,7 @@ var init_index_es = __esmMin((() => {
11130
11130
  x: 0,
11131
11131
  y: 0
11132
11132
  });
11133
- let c = 0, u = 0, r = 0, k = 0;
11133
+ let c = 0, u = 0, i = 0, C = 0;
11134
11134
  const R = computed(() => [
11135
11135
  "gct-form-base-modal",
11136
11136
  n.wrapClassName,
@@ -11142,19 +11142,19 @@ var init_index_es = __esmMin((() => {
11142
11142
  }), b = computed(() => {
11143
11143
  if (!(!t.draggable || l.value) && !(s.x === 0 && s.y === 0)) return { transform: `translate(${s.x}px, ${s.y}px)` };
11144
11144
  });
11145
- function h() {
11145
+ function g() {
11146
11146
  s.x = 0, s.y = 0;
11147
11147
  }
11148
11148
  function y() {
11149
- t.fullscreen && (l.value = !l.value, h());
11149
+ t.fullscreen && (l.value = !l.value, g());
11150
11150
  }
11151
- function d(w) {
11152
- s.x = r + w.clientX - c, s.y = k + w.clientY - u;
11151
+ function h(w) {
11152
+ s.x = i + w.clientX - c, s.y = C + w.clientY - u;
11153
11153
  }
11154
- function v() {
11155
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", v);
11154
+ function p() {
11155
+ document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", p);
11156
11156
  }
11157
- function M(w) {
11157
+ function _(w) {
11158
11158
  if (!t.draggable || l.value || w.button !== 0) return;
11159
11159
  const V = w.target;
11160
11160
  V.closest(".ant-modal-header") && (V.closest([
@@ -11164,14 +11164,14 @@ var init_index_es = __esmMin((() => {
11164
11164
  "textarea",
11165
11165
  "select",
11166
11166
  "[role=\"button\"]"
11167
- ].join(",")) || (c = w.clientX, u = w.clientY, r = s.x, k = s.y, document.addEventListener("mousemove", d), document.addEventListener("mouseup", v), w.preventDefault()));
11167
+ ].join(",")) || (c = w.clientX, u = w.clientY, i = s.x, C = s.y, document.addEventListener("mousemove", h), document.addEventListener("mouseup", p), w.preventDefault()));
11168
11168
  }
11169
11169
  return watch(() => t.fullscreen, (w) => {
11170
- w || (l.value = !1, h());
11170
+ w || (l.value = !1, g());
11171
11171
  }), watch(() => t.visible, (w) => {
11172
- w && (l.value = !1, h());
11172
+ w && (l.value = !1, g());
11173
11173
  }), onBeforeUnmount(() => {
11174
- v();
11174
+ p();
11175
11175
  }), (w, V) => (openBlock(), createBlock(unref(Modal), mergeProps({
11176
11176
  centered: "",
11177
11177
  "ok-text": "确定",
@@ -11185,12 +11185,12 @@ var init_index_es = __esmMin((() => {
11185
11185
  onOk: V[2] || (V[2] = (D) => a("ok", D)),
11186
11186
  onAfterClose: V[3] || (V[3] = (D) => a("afterClose"))
11187
11187
  }), createSlots({
11188
- title: withCtx(() => [createElementVNode("div", Oi, [
11188
+ title: withCtx(() => [createElementVNode("div", Ai, [
11189
11189
  e.draggable ? (openBlock(), createElementBlock("img", {
11190
11190
  key: 0,
11191
11191
  src: unref(Ri),
11192
11192
  class: "title-draggable"
11193
- }, null, 8, Ai)) : createCommentVNode("", !0),
11193
+ }, null, 8, Oi)) : createCommentVNode("", !0),
11194
11194
  renderSlot(w.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
11195
11195
  e.fullscreen ? (openBlock(), createElementBlock("button", {
11196
11196
  key: 1,
@@ -11207,7 +11207,7 @@ var init_index_es = __esmMin((() => {
11207
11207
  modalRender: withCtx(({ originVNode: D }) => [createElementVNode("div", {
11208
11208
  class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
11209
11209
  style: normalizeStyle(b.value),
11210
- onMousedown: M
11210
+ onMousedown: _
11211
11211
  }, [(openBlock(), createBlock(resolveDynamicComponent(D)))], 38)]),
11212
11212
  default: withCtx(() => [renderSlot(w.$slots, "default")]),
11213
11213
  _: 2
@@ -11245,11 +11245,11 @@ var init_index_es = __esmMin((() => {
11245
11245
  },
11246
11246
  emits: ["update:formState"],
11247
11247
  setup(e) {
11248
- const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), c = ref(!1), u = ref({}), r = ref({});
11249
- async function k(K) {
11250
- var _K$keyword, _ref2;
11248
+ const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), c = ref(!1), u = ref({}), i = ref({});
11249
+ async function C(K) {
11250
+ var _K$keyword, _ref;
11251
11251
  const G = (_K$keyword = K.keyword) === null || _K$keyword === void 0 ? void 0 : _K$keyword.trim(), le = { ...K.extraQuery ?? {} };
11252
- return G && (le["name_.like"] = G, le["code_.like"] = G), (((_ref2 = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11252
+ return G && (le["name_.like"] = G, le["code_.like"] = G), (((_ref = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11253
11253
  modelCategory: Ye,
11254
11254
  modelKey: K.modelKey,
11255
11255
  bsKey: "listByPage"
@@ -11261,19 +11261,19 @@ var init_index_es = __esmMin((() => {
11261
11261
  ...le,
11262
11262
  "operating_state_.eq": !0
11263
11263
  }
11264
- }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((ie) => ({
11264
+ }) || {}) === null || _ref === void 0 ? void 0 : _ref.data) ?? []).map((ie) => ({
11265
11265
  label: ie.name_ || ie.code_,
11266
11266
  value: ie.id_
11267
11267
  }));
11268
11268
  }
11269
11269
  async function R(K, G) {
11270
- var _ref3;
11270
+ var _ref2;
11271
11271
  const le = [...new Set(G.filter(Boolean))];
11272
- return le.length ? (((_ref3 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11272
+ return le.length ? (((_ref2 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11273
11273
  modelCategory: Ye,
11274
11274
  modelKey: K,
11275
11275
  bsKey: "listByIds"
11276
- }, { ids: le.join(",") }) || {}) === null || _ref3 === void 0 ? void 0 : _ref3.data) ?? []).map((ie) => ({
11276
+ }, { ids: le.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((ie) => ({
11277
11277
  label: ie.name_ || ie.code_,
11278
11278
  value: ie.id_
11279
11279
  })) : [];
@@ -11285,38 +11285,38 @@ var init_index_es = __esmMin((() => {
11285
11285
  }), Array.from(le.values());
11286
11286
  }
11287
11287
  async function b(K, G, le) {
11288
- const ce = [...new Set(le.filter(Boolean))].filter((me) => !G.some((we) => we.value === me));
11288
+ const ce = [...new Set(le.filter(Boolean))].filter((ve) => !G.some((we) => we.value === ve));
11289
11289
  if (!ce.length) return G;
11290
11290
  return x(G, await R(K, ce));
11291
11291
  }
11292
- function h() {
11292
+ function g() {
11293
11293
  return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((K) => K.warehouse_id_)];
11294
11294
  }
11295
11295
  function y() {
11296
11296
  return (o.value.consume_storage_entries_ ?? []).map((K) => K.shopfloor_id_);
11297
11297
  }
11298
- function d(K) {
11298
+ function h(K) {
11299
11299
  const G = [];
11300
11300
  return o.value.default_warehouse_id_ === K && G.push(o.value.default_location_id_), (o.value.consume_storage_entries_ ?? []).forEach((le) => {
11301
11301
  le.warehouse_id_ === K && G.push(le.location_id_);
11302
11302
  }), G;
11303
11303
  }
11304
- async function v(K) {
11304
+ async function p(K) {
11305
11305
  l.value = !0;
11306
11306
  try {
11307
- const G = await k({
11307
+ const G = await C({
11308
11308
  modelKey: "em_warehouse",
11309
11309
  keyword: K
11310
11310
  });
11311
- t.value = await b("em_warehouse", G, h());
11311
+ t.value = await b("em_warehouse", G, g());
11312
11312
  } finally {
11313
11313
  l.value = !1;
11314
11314
  }
11315
11315
  }
11316
- async function M(K) {
11316
+ async function _(K) {
11317
11317
  s.value = !0;
11318
11318
  try {
11319
- const G = await k({
11319
+ const G = await C({
11320
11320
  modelKey: "em_shopfloor",
11321
11321
  keyword: K
11322
11322
  });
@@ -11329,14 +11329,14 @@ var init_index_es = __esmMin((() => {
11329
11329
  if (G) {
11330
11330
  c.value = !0;
11331
11331
  try {
11332
- const le = await k({
11332
+ const le = await C({
11333
11333
  modelKey: "em_location",
11334
11334
  keyword: K,
11335
11335
  extraQuery: { "warehouse_id_.eq": G }
11336
11336
  });
11337
11337
  n.value = {
11338
11338
  ...n.value,
11339
- [G]: await b("em_location", le, d(G))
11339
+ [G]: await b("em_location", le, h(G))
11340
11340
  };
11341
11341
  } finally {
11342
11342
  c.value = !1;
@@ -11344,12 +11344,12 @@ var init_index_es = __esmMin((() => {
11344
11344
  }
11345
11345
  }
11346
11346
  async function V() {
11347
- await Promise.all([v(), M()]);
11348
- const K = [...new Set(h().filter(Boolean))];
11347
+ await Promise.all([p(), _()]);
11348
+ const K = [...new Set(g().filter(Boolean))];
11349
11349
  await Promise.all(K.map((G) => w("", G)));
11350
11350
  }
11351
- const D = debounce((K) => v(K), 300), U = debounce((K) => M(K), 300), A = debounce((K, G) => w(K, G), 300), T = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
11352
- function O(K) {
11351
+ const D = debounce((K) => p(K), 300), U = debounce((K) => _(K), 300), O = debounce((K, G) => w(K, G), 300), T = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
11352
+ function A(K) {
11353
11353
  return n.value[K.warehouse_id_ ?? ""] ?? [];
11354
11354
  }
11355
11355
  function S(K) {
@@ -11358,9 +11358,9 @@ var init_index_es = __esmMin((() => {
11358
11358
  message: $t("sys.pleaseSelectSth", { sth: K })
11359
11359
  }];
11360
11360
  }
11361
- function g(K) {
11361
+ function v(K) {
11362
11362
  const G = K.warehouse_id_;
11363
- return G && r.value[G] === !1 ? [] : S($t("sys.pageDesigner.fieldCmp.location"));
11363
+ return G && i.value[G] === !1 ? [] : S($t("sys.pageDesigner.fieldCmp.location"));
11364
11364
  }
11365
11365
  const H = [{
11366
11366
  value: "follow_common_policy",
@@ -11410,17 +11410,17 @@ var init_index_es = __esmMin((() => {
11410
11410
  location_id_: void 0
11411
11411
  });
11412
11412
  }
11413
- function Oe(K) {
11413
+ function Ae(K) {
11414
11414
  o.value.consume_storage_entries_.splice(K, 1);
11415
11415
  }
11416
11416
  function Pe(K) {
11417
11417
  D(K);
11418
11418
  }
11419
- function Ae(K) {
11419
+ function Oe(K) {
11420
11420
  U(K);
11421
11421
  }
11422
11422
  function Be(K, G) {
11423
- A(K, G);
11423
+ O(K, G);
11424
11424
  }
11425
11425
  async function Ze() {
11426
11426
  const K = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
@@ -11449,13 +11449,13 @@ var init_index_es = __esmMin((() => {
11449
11449
  modelKey: "em_warehouse",
11450
11450
  bsKey: "listAll"
11451
11451
  }, {}, {})) === null || _await$ke$apaas$model === void 0 || (_await$ke$apaas$model = _await$ke$apaas$model.data) === null || _await$ke$apaas$model === void 0 || _await$ke$apaas$model.forEach((G) => {
11452
- r.value[G.id_] = G.location_management_enabled_;
11452
+ i.value[G.id_] = G.location_management_enabled_;
11453
11453
  });
11454
11454
  }
11455
11455
  return onMounted(() => {
11456
11456
  Ze(), it(), V();
11457
11457
  }), (K, G) => {
11458
- const le = resolveComponent("a-radio"), ce = resolveComponent("a-radio-group"), ie = resolveComponent("a-form-item"), me = resolveComponent("a-select"), we = resolveComponent("a-col"), Le = resolveComponent("a-row"), rt = resolveComponent("a-button"), Qe = resolveComponent("a-table");
11458
+ const le = resolveComponent("a-radio"), ce = resolveComponent("a-radio-group"), ie = resolveComponent("a-form-item"), ve = resolveComponent("a-select"), we = resolveComponent("a-col"), Le = resolveComponent("a-row"), rt = resolveComponent("a-button"), Qe = resolveComponent("a-table");
11459
11459
  return openBlock(), createElementBlock(Fragment, null, [createVNode(ie, {
11460
11460
  label: K.$t("sys.edhr.mcTable.consumeEnabled"),
11461
11461
  name: "consume_enabled_",
@@ -11484,7 +11484,7 @@ var init_index_es = __esmMin((() => {
11484
11484
  name: "consume_source_config_",
11485
11485
  required: ""
11486
11486
  }, {
11487
- default: withCtx(() => [createVNode(me, {
11487
+ default: withCtx(() => [createVNode(ve, {
11488
11488
  value: o.value.consume_source_config_,
11489
11489
  "onUpdate:value": G[1] || (G[1] = (se) => o.value.consume_source_config_ = se),
11490
11490
  placeholder: K.$t("sys.chooseText"),
@@ -11504,7 +11504,7 @@ var init_index_es = __esmMin((() => {
11504
11504
  name: "default_warehouse_id_",
11505
11505
  required: ""
11506
11506
  }, {
11507
- default: withCtx(() => [createVNode(me, {
11507
+ default: withCtx(() => [createVNode(ve, {
11508
11508
  value: o.value.default_warehouse_id_,
11509
11509
  "onUpdate:value": G[2] || (G[2] = (se) => o.value.default_warehouse_id_ = se),
11510
11510
  "show-search": "",
@@ -11531,7 +11531,7 @@ var init_index_es = __esmMin((() => {
11531
11531
  label: K.$t("sys.edhr.mcTable.defaultLocation"),
11532
11532
  name: "default_location_id_"
11533
11533
  }, {
11534
- default: withCtx(() => [createVNode(me, {
11534
+ default: withCtx(() => [createVNode(ve, {
11535
11535
  value: o.value.default_location_id_,
11536
11536
  "onUpdate:value": G[3] || (G[3] = (se) => o.value.default_location_id_ = se),
11537
11537
  "show-search": "",
@@ -11586,7 +11586,7 @@ var init_index_es = __esmMin((() => {
11586
11586
  ],
11587
11587
  rules: S(K.$t("sys.edhr.mcTable.shopfloor"))
11588
11588
  }, {
11589
- default: withCtx(() => [createVNode(me, {
11589
+ default: withCtx(() => [createVNode(ve, {
11590
11590
  value: I.shopfloor_id_,
11591
11591
  "onUpdate:value": (re) => I.shopfloor_id_ = re,
11592
11592
  class: "consume-policy-item__table-select",
@@ -11597,8 +11597,8 @@ var init_index_es = __esmMin((() => {
11597
11597
  options: a.value,
11598
11598
  loading: s.value,
11599
11599
  disabled: o.value.consume_source_config_ === "follow_common_policy",
11600
- onSearch: Ae,
11601
- onFocus: G[6] || (G[6] = () => M())
11600
+ onSearch: Oe,
11601
+ onFocus: G[6] || (G[6] = () => _())
11602
11602
  }, null, 8, [
11603
11603
  "value",
11604
11604
  "onUpdate:value",
@@ -11618,7 +11618,7 @@ var init_index_es = __esmMin((() => {
11618
11618
  ],
11619
11619
  rules: S(K.$t("sys.model.warehouse"))
11620
11620
  }, {
11621
- default: withCtx(() => [createVNode(me, {
11621
+ default: withCtx(() => [createVNode(ve, {
11622
11622
  value: I.warehouse_id_,
11623
11623
  "onUpdate:value": (re) => I.warehouse_id_ = re,
11624
11624
  class: "consume-policy-item__table-select",
@@ -11649,9 +11649,9 @@ var init_index_es = __esmMin((() => {
11649
11649
  J,
11650
11650
  "location_id_"
11651
11651
  ],
11652
- rules: g(I)
11652
+ rules: v(I)
11653
11653
  }, {
11654
- default: withCtx(() => [createVNode(me, {
11654
+ default: withCtx(() => [createVNode(ve, {
11655
11655
  value: I.location_id_,
11656
11656
  "onUpdate:value": (re) => I.location_id_ = re,
11657
11657
  class: "consume-policy-item__table-select",
@@ -11659,9 +11659,9 @@ var init_index_es = __esmMin((() => {
11659
11659
  "allow-clear": "",
11660
11660
  "filter-option": !1,
11661
11661
  placeholder: K.$t("sys.chooseText"),
11662
- options: O(I),
11662
+ options: A(I),
11663
11663
  loading: c.value,
11664
- disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !r.value[I.warehouse_id_],
11664
+ disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !i.value[I.warehouse_id_],
11665
11665
  onSearch: (re) => Be(re, I.warehouse_id_),
11666
11666
  onFocus: () => w("", I.warehouse_id_)
11667
11667
  }, null, 8, [
@@ -11679,7 +11679,7 @@ var init_index_es = __esmMin((() => {
11679
11679
  key: 3,
11680
11680
  class: normalizeClass(["error-gct consume-policy-item__delete", { "is-disabled": o.value.consume_source_config_ === "follow_common_policy" }]),
11681
11681
  href: "javascript:;",
11682
- onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" && Oe(J), ["prevent"])
11682
+ onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" && Ae(J), ["prevent"])
11683
11683
  }, toDisplayString(K.$t("sys.delete")), 11, Di)) : createCommentVNode("", !0)]),
11684
11684
  _: 1
11685
11685
  }, 8, ["data-source", "locale"])
@@ -11713,21 +11713,21 @@ var init_index_es = __esmMin((() => {
11713
11713
  identifiers: { [zi.FIELD]: await s() }
11714
11714
  });
11715
11715
  if (!c) return;
11716
- const { expr: u, exprEcho: r } = c;
11717
- a("update:expr", u), r != null && a("update:exprEcho", r);
11716
+ const { expr: u, exprEcho: i } = c;
11717
+ a("update:expr", u), i != null && a("update:exprEcho", i);
11718
11718
  };
11719
11719
  async function s() {
11720
11720
  if (!t.modelKey) return [];
11721
11721
  let u = await ke$1.apaas.fieldMeta.getList({ modelKey: t.modelKey }) ?? [];
11722
- return t.filterFunc && (u = u.reduce((r, k) => (t.filterFunc(k) && r.push(k), r), [])), u.map((r) => ({
11723
- id: r.key,
11724
- name: r.name,
11725
- valueType: r.type
11722
+ return t.filterFunc && (u = u.reduce((i, C) => (t.filterFunc(C) && i.push(C), i), [])), u.map((i) => ({
11723
+ id: i.key,
11724
+ name: i.name,
11725
+ valueType: i.type
11726
11726
  }));
11727
11727
  }
11728
11728
  return (c, u) => {
11729
- const r = resolveComponent("a-input");
11730
- return openBlock(), createBlock(r, {
11729
+ const i = resolveComponent("a-input");
11730
+ return openBlock(), createBlock(i, {
11731
11731
  class: "bom-formula-editor",
11732
11732
  readonly: "",
11733
11733
  placeholder: c.$t("sys.inputText"),
@@ -11768,8 +11768,8 @@ var init_index_es = __esmMin((() => {
11768
11768
  }
11769
11769
  ];
11770
11770
  return (l, s) => {
11771
- const c = resolveComponent("a-radio"), u = resolveComponent("a-radio-group"), r = resolveComponent("a-form-item"), k = resolveComponent("a-select"), R = resolveComponent("a-col"), x = resolveComponent("a-row");
11772
- return openBlock(), createElementBlock(Fragment, null, [createVNode(r, {
11771
+ const c = resolveComponent("a-radio"), u = resolveComponent("a-radio-group"), i = resolveComponent("a-form-item"), C = resolveComponent("a-select"), R = resolveComponent("a-col"), x = resolveComponent("a-row");
11772
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(i, {
11773
11773
  label: l.$t("sys.edhr.mcTable.qtyValidationEnabled"),
11774
11774
  name: "qty_validation_enabled_",
11775
11775
  rules: [unref(fe)(l.$t("sys.edhr.mcTable.qtyValidationEnabled"))]
@@ -11790,12 +11790,12 @@ var init_index_es = __esmMin((() => {
11790
11790
  _: 1
11791
11791
  }, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", Pi, [createVNode(x, { gutter: 16 }, {
11792
11792
  default: withCtx(() => [createVNode(R, { span: 12 }, {
11793
- default: withCtx(() => [createVNode(r, {
11793
+ default: withCtx(() => [createVNode(i, {
11794
11794
  label: l.$t("sys.edhr.mcTable.qtyValidationRule"),
11795
11795
  name: "qty_validation_rule_",
11796
11796
  required: ""
11797
11797
  }, {
11798
- default: withCtx(() => [createVNode(k, {
11798
+ default: withCtx(() => [createVNode(C, {
11799
11799
  value: o.value.qty_validation_rule_,
11800
11800
  "onUpdate:value": s[1] || (s[1] = (b) => o.value.qty_validation_rule_ = b),
11801
11801
  placeholder: l.$t("sys.chooseText"),
@@ -11811,7 +11811,7 @@ var init_index_es = __esmMin((() => {
11811
11811
  gutter: 16
11812
11812
  }, {
11813
11813
  default: withCtx(() => [createVNode(R, { span: 12 }, {
11814
- default: withCtx(() => [createVNode(r, {
11814
+ default: withCtx(() => [createVNode(i, {
11815
11815
  label: l.$t("sys.edhr.mcTable.qtyValidationMax"),
11816
11816
  name: "max_value_",
11817
11817
  required: ""
@@ -11835,7 +11835,7 @@ var init_index_es = __esmMin((() => {
11835
11835
  }, 8, ["label"])]),
11836
11836
  _: 1
11837
11837
  }), createVNode(R, { span: 12 }, {
11838
- default: withCtx(() => [createVNode(r, {
11838
+ default: withCtx(() => [createVNode(i, {
11839
11839
  label: l.$t("sys.edhr.mcTable.qtyValidationMin"),
11840
11840
  name: "min_value_",
11841
11841
  required: ""
@@ -11918,23 +11918,23 @@ var init_index_es = __esmMin((() => {
11918
11918
  await ((_a$value = a.value) === null || _a$value === void 0 ? void 0 : _a$value.validate());
11919
11919
  }
11920
11920
  return o({ validate: s }), (c, u) => {
11921
- const r = resolveComponent("a-select"), k = resolveComponent("a-form-item"), R = resolveComponent("a-switch"), x = resolveComponent("a-radio"), b = resolveComponent("a-radio-group"), h = resolveComponent("a-form");
11921
+ const i = resolveComponent("a-select"), C = resolveComponent("a-form-item"), R = resolveComponent("a-switch"), x = resolveComponent("a-radio"), b = resolveComponent("a-radio-group"), g = resolveComponent("a-form");
11922
11922
  return openBlock(), createElementBlock("div", null, [createVNode(unref(ht), null, {
11923
11923
  default: withCtx(() => [...u[5] || (u[5] = [createTextVNode("用料策略", -1)])]),
11924
11924
  _: 1
11925
- }), createVNode(h, {
11925
+ }), createVNode(g, {
11926
11926
  ref_key: "formRef",
11927
11927
  ref: a,
11928
11928
  model: t.value,
11929
11929
  rules: l.value
11930
11930
  }, {
11931
11931
  default: withCtx(() => [
11932
- createVNode(k, {
11932
+ createVNode(C, {
11933
11933
  name: "material_consumption_pattern_",
11934
11934
  required: ""
11935
11935
  }, {
11936
11936
  label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info: Fi })]),
11937
- default: withCtx(() => [createVNode(r, {
11937
+ default: withCtx(() => [createVNode(i, {
11938
11938
  value: t.value.material_consumption_pattern_,
11939
11939
  "onUpdate:value": u[0] || (u[0] = (y) => t.value.material_consumption_pattern_ = y),
11940
11940
  placeholder: "请选择",
@@ -11942,7 +11942,7 @@ var init_index_es = __esmMin((() => {
11942
11942
  }, null, 8, ["value"])]),
11943
11943
  _: 1
11944
11944
  }),
11945
- createVNode(k, {
11945
+ createVNode(C, {
11946
11946
  name: "personal_bom_enabled_",
11947
11947
  label: "自定义用料策略"
11948
11948
  }, {
@@ -11953,7 +11953,7 @@ var init_index_es = __esmMin((() => {
11953
11953
  _: 1
11954
11954
  }),
11955
11955
  t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", ji, [
11956
- createVNode(k, {
11956
+ createVNode(C, {
11957
11957
  name: "type_",
11958
11958
  required: ""
11959
11959
  }, {
@@ -12034,7 +12034,7 @@ var init_index_es = __esmMin((() => {
12034
12034
  min_value_: void 0
12035
12035
  };
12036
12036
  }
12037
- const u = ref(c()), r = ref({
12037
+ const u = ref(c()), i = ref({
12038
12038
  border: !0,
12039
12039
  round: !0,
12040
12040
  showHeaderOverflow: !0,
@@ -12058,36 +12058,36 @@ var init_index_es = __esmMin((() => {
12058
12058
  title: "默认值",
12059
12059
  slots: { default: "value_default" }
12060
12060
  }]
12061
- }), k = computed(() => !!t.bizOptions.editingItem), R = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), x = computed(() => t.bizOptions.objectFields.filter((w) => {
12061
+ }), C = computed(() => !!t.bizOptions.editingItem), R = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), x = computed(() => t.bizOptions.objectFields.filter((w) => {
12062
12062
  var _t$bizOptions$configu, _t$bizOptions$configu2;
12063
- return k.value || !((_t$bizOptions$configu = t.bizOptions.configuredItems) === null || _t$bizOptions$configu === void 0 ? void 0 : _t$bizOptions$configu.length) ? !0 : !((_t$bizOptions$configu2 = t.bizOptions.configuredItems) === null || _t$bizOptions$configu2 === void 0 ? void 0 : _t$bizOptions$configu2.find((V) => V.objectField === w.key));
12063
+ return C.value || !((_t$bizOptions$configu = t.bizOptions.configuredItems) === null || _t$bizOptions$configu === void 0 ? void 0 : _t$bizOptions$configu.length) ? !0 : !((_t$bizOptions$configu2 = t.bizOptions.configuredItems) === null || _t$bizOptions$configu2 === void 0 ? void 0 : _t$bizOptions$configu2.find((V) => V.objectField === w.key));
12064
12064
  }).map((w) => ({
12065
12065
  label: w.name,
12066
12066
  value: w.key
12067
- }))), b = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((M) => M.type === Gt.REF && M.bizType === Xt.BOM_ENTRY_ID ? !1 : M.belongingObject === u.value.objectField) : []), h = computed(() => b.value.map((M) => ({
12068
- key: M.key,
12069
- name: M.name,
12070
- field: M
12071
- }))), y = (M, w) => {
12067
+ }))), b = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((_) => _.type === Gt.REF && _.bizType === Xt.BOM_ENTRY_ID ? !1 : _.belongingObject === u.value.objectField) : []), g = computed(() => b.value.map((_) => ({
12068
+ key: _.key,
12069
+ name: _.name,
12070
+ field: _
12071
+ }))), y = (_, w) => {
12072
12072
  u.value.values = {
12073
12073
  ...u.value.values,
12074
- [M]: w
12074
+ [_]: w
12075
12075
  };
12076
- }, d = () => {
12076
+ }, h = () => {
12077
12077
  $r("PARSE_RULE_MODAL", {
12078
12078
  config: u.value.parseRuleProps,
12079
- formFieldOptions: b.value.map((M) => ({
12080
- label: M.name,
12081
- value: M.key
12079
+ formFieldOptions: b.value.map((_) => ({
12080
+ label: _.name,
12081
+ value: _.key
12082
12082
  })),
12083
12083
  ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
12084
- }).then((M) => {
12085
- M.success && (u.value.parseRuleProps = M.result ?? {});
12084
+ }).then((_) => {
12085
+ _.success && (u.value.parseRuleProps = _.result ?? {});
12086
12086
  });
12087
12087
  };
12088
- watch(() => t.bizOptions.editingItem, (M) => {
12089
- if (!M) return;
12090
- const w = c(), V = structuredClone(toRaw(M));
12088
+ watch(() => t.bizOptions.editingItem, (_) => {
12089
+ if (!_) return;
12090
+ const w = c(), V = structuredClone(toRaw(_));
12091
12091
  u.value = {
12092
12092
  ...w,
12093
12093
  ...V,
@@ -12101,22 +12101,22 @@ var init_index_es = __esmMin((() => {
12101
12101
  }))
12102
12102
  };
12103
12103
  }, { immediate: !0 });
12104
- const v = async () => {
12104
+ const p = async () => {
12105
12105
  try {
12106
12106
  var _n$value8, _l$value11;
12107
12107
  await Promise.all([(_n$value8 = n.value) === null || _n$value8 === void 0 ? void 0 : _n$value8.validate(), (_l$value11 = l.value) === null || _l$value11 === void 0 ? void 0 : _l$value11.validate()]);
12108
12108
  } catch {
12109
12109
  return;
12110
12110
  }
12111
- const M = t.bizOptions.objectFields.find((w) => w.key === u.value.objectField);
12112
- u.value.objectFieldName = M === null || M === void 0 ? void 0 : M.name, u.value.objectBizType = M === null || M === void 0 ? void 0 : M.bizType, t.modalInst.confirm(u.value);
12111
+ const _ = t.bizOptions.objectFields.find((w) => w.key === u.value.objectField);
12112
+ u.value.objectFieldName = _ === null || _ === void 0 ? void 0 : _.name, u.value.objectBizType = _ === null || _ === void 0 ? void 0 : _.bizType, t.modalInst.confirm(u.value);
12113
12113
  };
12114
- return (M, w) => {
12115
- const V = resolveComponent("a-select"), D = resolveComponent("a-form-item"), U = resolveComponent("a-form"), A = resolveComponent("a-button");
12114
+ return (_, w) => {
12115
+ const V = resolveComponent("a-select"), D = resolveComponent("a-form-item"), U = resolveComponent("a-form"), O = resolveComponent("a-button");
12116
12116
  return openBlock(), createBlock($e, mergeProps(e.modalProps, {
12117
12117
  visible: e.modalVisible,
12118
12118
  onCancel: e.modalInst.cancel,
12119
- onOk: v,
12119
+ onOk: p,
12120
12120
  onAfterClose: w[2] || (w[2] = (T) => a("afterClose"))
12121
12121
  }), {
12122
12122
  default: withCtx(() => [
@@ -12137,7 +12137,7 @@ var init_index_es = __esmMin((() => {
12137
12137
  "onUpdate:value": w[0] || (w[0] = (T) => u.value.objectField = T),
12138
12138
  placeholder: "请选择",
12139
12139
  options: x.value,
12140
- disabled: k.value
12140
+ disabled: C.value
12141
12141
  }, null, 8, [
12142
12142
  "value",
12143
12143
  "options",
@@ -12152,13 +12152,13 @@ var init_index_es = __esmMin((() => {
12152
12152
  _: 1
12153
12153
  }), createVNode(unref(VxeGrid), mergeProps({
12154
12154
  class: "object-table",
12155
- data: h.value
12156
- }, r.value), {
12155
+ data: g.value
12156
+ }, i.value), {
12157
12157
  value_default: withCtx(({ row: T }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12158
12158
  key: 0,
12159
12159
  field: T.field,
12160
12160
  modelValue: u.value.values[T.key],
12161
- "onUpdate:modelValue": (O) => y(T.key, O)
12161
+ "onUpdate:modelValue": (A) => y(T.key, A)
12162
12162
  }, null, 8, [
12163
12163
  "field",
12164
12164
  "modelValue",
@@ -12169,11 +12169,11 @@ var init_index_es = __esmMin((() => {
12169
12169
  createElementVNode("div", null, [createVNode(unref(ht), null, {
12170
12170
  default: withCtx(() => [...w[4] || (w[4] = [createTextVNode("条码解析规则", -1)])]),
12171
12171
  _: 1
12172
- }), createVNode(A, {
12172
+ }), createVNode(O, {
12173
12173
  block: "",
12174
12174
  ghost: !R.value,
12175
12175
  type: "primary",
12176
- onClick: d
12176
+ onClick: h
12177
12177
  }, {
12178
12178
  default: withCtx(() => [createTextVNode(toDisplayString(R.value ? "编辑" : "添加") + "规则 ", 1)]),
12179
12179
  _: 1
@@ -12241,99 +12241,114 @@ var init_index_es = __esmMin((() => {
12241
12241
  "ruleConfigChange"
12242
12242
  ],
12243
12243
  setup(e, { expose: o, emit: t }) {
12244
- const a = e, n = t, l = ref(), s = ref(a.defaultExpanded), c = ref([]), u = computed({
12245
- get: () => a.fillMapArr ?? [],
12246
- set: (d) => n("update:fillMapArr", d)
12247
- }), r = computed(() => ({ fillMapArr: u.value })), k = computed(() => (a.formFieldOptions ?? []).map((d) => ({
12248
- ...d,
12249
- label: `${d.label}[${d.value}]`
12250
- }))), R = async (d) => {
12251
- if (!d) {
12252
- c.value = [], n("ruleConfigChange", void 0);
12244
+ const a = e, n = t;
12245
+ function l(p) {
12246
+ return (p ?? []).map((_) => ({
12247
+ ..._,
12248
+ formFields: [..._.formFields ?? []]
12249
+ }));
12250
+ }
12251
+ const s = ref(), c = ref(a.defaultExpanded), u = ref([]), i = reactive({
12252
+ parsingRuleId: a.parsingRuleId,
12253
+ fillMapArr: l(a.fillMapArr)
12254
+ });
12255
+ watch(() => a.parsingRuleId, (p) => {
12256
+ i.parsingRuleId = p;
12257
+ }), watch(() => a.fillMapArr, (p) => {
12258
+ i.fillMapArr = l(p);
12259
+ });
12260
+ const C = computed(() => (a.formFieldOptions ?? []).map((p) => ({
12261
+ ...p,
12262
+ label: `${p.label}[${p.value}]`
12263
+ }))), R = () => {
12264
+ console.log("change", i.fillMapArr), n("update:fillMapArr", l(i.fillMapArr));
12265
+ }, x = async (p) => {
12266
+ if (!p) {
12267
+ u.value = [], n("ruleConfigChange", void 0);
12253
12268
  return;
12254
12269
  }
12255
- const v = await tr(d);
12256
- if (!v) {
12257
- c.value = [], n("ruleConfigChange", void 0);
12270
+ const _ = await tr(p);
12271
+ if (!_) {
12272
+ u.value = [], n("ruleConfigChange", void 0);
12258
12273
  return;
12259
12274
  }
12260
- c.value = v.fieldList.map((M) => ({
12261
- label: M.alias ?? $t(`sys.edhr.labelConfigFields.${M.type}`),
12262
- value: M.key
12263
- })), n("ruleConfigChange", v);
12264
- }, x = (d) => {
12265
- const v = d ?? void 0;
12266
- v !== a.parsingRuleId && (n("update:parsingRuleId", v), n("update:fillMapArr", []), R(v));
12267
- }, b = () => {
12268
- u.value = [...u.value, {}];
12269
- }, h = (d) => {
12270
- const v = [...u.value];
12271
- v.splice(d, 1), u.value = v;
12272
- }, y = (d, v) => v.label.toLowerCase().includes(d.toLowerCase());
12275
+ u.value = _.fieldList.map((w) => ({
12276
+ label: w.alias ?? $t(`sys.edhr.labelConfigFields.${w.type}`),
12277
+ value: w.key
12278
+ })), n("ruleConfigChange", _);
12279
+ }, b = (p) => {
12280
+ const _ = p ?? void 0;
12281
+ _ !== i.parsingRuleId && (i.parsingRuleId = _, i.fillMapArr = [], n("update:parsingRuleId", _), n("update:fillMapArr", []), x(_));
12282
+ }, g = () => {
12283
+ i.fillMapArr.push({ formFields: [] }), R();
12284
+ }, y = (p) => {
12285
+ i.fillMapArr.splice(p, 1), R();
12286
+ }, h = (p, _) => _.label.toLowerCase().includes(p.toLowerCase());
12273
12287
  return onMounted(() => {
12274
- a.parsingRuleId && R(a.parsingRuleId);
12288
+ i.parsingRuleId && x(i.parsingRuleId);
12275
12289
  }), o({ validate: () => {
12276
- var _l$value12;
12277
- return (_l$value12 = l.value) === null || _l$value12 === void 0 ? void 0 : _l$value12.validate();
12278
- } }), (d, v) => {
12279
- const M = resolveComponent("a-form-item"), w = resolveComponent("a-alert"), V = resolveComponent("a-select"), D = resolveComponent("a-button"), U = resolveComponent("a-form");
12280
- return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(M, {
12281
- class: "field-mapping__rule",
12282
- label: d.$t("sys.edhr.mcTable.parseRule") + ":",
12283
- name: "parsingRuleId"
12290
+ var _s$value3;
12291
+ return (_s$value3 = s.value) === null || _s$value3 === void 0 ? void 0 : _s$value3.validate();
12292
+ } }), (p, _) => {
12293
+ const w = resolveComponent("a-form-item"), V = resolveComponent("a-alert"), D = resolveComponent("a-select"), U = resolveComponent("a-button"), O = resolveComponent("a-form");
12294
+ return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(O, {
12295
+ ref_key: "formRef",
12296
+ ref: s,
12297
+ model: i,
12298
+ layout: "vertical"
12284
12299
  }, {
12285
- default: withCtx(() => [createElementVNode("div", or, [createVNode(unref(kt), {
12286
- "model-value": e.parsingRuleId,
12287
- "model-key": "em_barcode_parsing_rules",
12288
- "show-search": "",
12289
- "onUpdate:modelValue": x
12290
- }, null, 8, ["model-value"]), e.collapsible ? (openBlock(), createElementBlock("div", {
12291
- key: 0,
12292
- class: "field-mapping__expand primary-gct",
12293
- onClick: v[0] || (v[0] = (A) => s.value = !s.value)
12294
- }, [createTextVNode(toDisplayString(s.value ? d.$t("sys.collapseConfig") : d.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", s.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
12295
- _: 1
12296
- }, 8, ["label"]), withDirectives(createElementVNode("div", null, [
12297
- e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", nr, [createVNode(w, {
12298
- message: e.ruleTip,
12299
- type: "info",
12300
- "show-icon": ""
12301
- }, null, 8, ["message"])])) : createCommentVNode("", !0),
12302
- createElementVNode("div", lr, toDisplayString(d.$t("sys.onlineForm.fieldMapping")), 1),
12303
- e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", sr, [createVNode(w, {
12304
- message: e.ruleTip,
12305
- type: "info",
12306
- "show-icon": ""
12307
- }, null, 8, ["message"])])) : createCommentVNode("", !0),
12308
- createElementVNode("div", ir, [createVNode(U, {
12309
- ref_key: "formRef",
12310
- ref: l,
12311
- model: r.value,
12312
- layout: "vertical"
12300
+ default: withCtx(() => [createVNode(w, {
12301
+ class: "field-mapping__rule",
12302
+ label: p.$t("sys.edhr.mcTable.parseRule") + ":",
12303
+ name: "parsingRuleId"
12313
12304
  }, {
12314
- default: withCtx(() => [
12315
- u.value.length ? (openBlock(), createElementBlock("div", rr, [createElementVNode("div", ur, toDisplayString(d.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", cr, toDisplayString(e.formFieldsLabel || d.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
12316
- createElementVNode("div", dr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(u.value, (A, T) => (openBlock(), createElementBlock("div", {
12317
- key: T,
12305
+ default: withCtx(() => [createElementVNode("div", or, [createVNode(unref(kt), {
12306
+ "model-value": i.parsingRuleId,
12307
+ "model-key": "em_barcode_parsing_rules",
12308
+ "show-search": "",
12309
+ "onUpdate:modelValue": b
12310
+ }, null, 8, ["model-value"]), e.collapsible ? (openBlock(), createElementBlock("div", {
12311
+ key: 0,
12312
+ class: "field-mapping__expand primary-gct",
12313
+ onClick: _[0] || (_[0] = (T) => c.value = !c.value)
12314
+ }, [createTextVNode(toDisplayString(c.value ? p.$t("sys.collapseConfig") : p.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", c.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
12315
+ _: 1
12316
+ }, 8, ["label"]), withDirectives(createElementVNode("div", null, [
12317
+ e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", nr, [createVNode(V, {
12318
+ message: e.ruleTip,
12319
+ type: "info",
12320
+ "show-icon": ""
12321
+ }, null, 8, ["message"])])) : createCommentVNode("", !0),
12322
+ createElementVNode("div", lr, toDisplayString(p.$t("sys.onlineForm.fieldMapping")), 1),
12323
+ e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", sr, [createVNode(V, {
12324
+ message: e.ruleTip,
12325
+ type: "info",
12326
+ "show-icon": ""
12327
+ }, null, 8, ["message"])])) : createCommentVNode("", !0),
12328
+ createElementVNode("div", ir, [
12329
+ i.fillMapArr.length ? (openBlock(), createElementBlock("div", rr, [createElementVNode("div", ur, toDisplayString(p.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", cr, toDisplayString(e.formFieldsLabel || p.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
12330
+ createElementVNode("div", dr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(i.fillMapArr, (T, A) => (openBlock(), createElementBlock("div", {
12331
+ key: A,
12318
12332
  class: "field-mapping__row"
12319
12333
  }, [
12320
- createVNode(M, {
12334
+ createVNode(w, {
12321
12335
  class: "field-mapping__barcodeField",
12322
12336
  name: [
12323
12337
  "fillMapArr",
12324
- T,
12338
+ A,
12325
12339
  "barcodeField"
12326
12340
  ],
12327
12341
  rules: [{
12328
12342
  required: !0,
12329
- message: d.$t("sys.chooseText")
12343
+ message: p.$t("sys.chooseText")
12330
12344
  }]
12331
12345
  }, {
12332
- default: withCtx(() => [createVNode(V, {
12333
- value: A.barcodeField,
12334
- "onUpdate:value": (O) => A.barcodeField = O,
12335
- placeholder: d.$t("sys.chooseText"),
12336
- options: c.value
12346
+ default: withCtx(() => [createVNode(D, {
12347
+ value: T.barcodeField,
12348
+ "onUpdate:value": (S) => T.barcodeField = S,
12349
+ placeholder: p.$t("sys.chooseText"),
12350
+ options: u.value,
12351
+ onChange: R
12337
12352
  }, null, 8, [
12338
12353
  "value",
12339
12354
  "onUpdate:value",
@@ -12342,28 +12357,31 @@ var init_index_es = __esmMin((() => {
12342
12357
  ])]),
12343
12358
  _: 2
12344
12359
  }, 1032, ["name", "rules"]),
12345
- v[1] || (v[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
12346
- createVNode(M, {
12360
+ _[1] || (_[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
12361
+ createVNode(w, {
12347
12362
  class: "field-mapping__formFields",
12348
12363
  name: [
12349
12364
  "fillMapArr",
12350
- T,
12365
+ A,
12351
12366
  "formFields"
12352
12367
  ],
12353
12368
  rules: [{
12354
12369
  required: !0,
12355
- message: d.$t("sys.chooseText")
12370
+ type: "array",
12371
+ min: 1,
12372
+ message: p.$t("sys.chooseText")
12356
12373
  }]
12357
12374
  }, {
12358
- default: withCtx(() => [createVNode(V, {
12359
- value: A.formFields,
12360
- "onUpdate:value": (O) => A.formFields = O,
12375
+ default: withCtx(() => [createVNode(D, {
12376
+ value: T.formFields,
12377
+ "onUpdate:value": (S) => T.formFields = S,
12361
12378
  mode: "multiple",
12362
12379
  "allow-clear": "",
12363
12380
  "show-search": "",
12364
- placeholder: d.$t("sys.chooseText"),
12365
- options: k.value,
12366
- "filter-option": y
12381
+ placeholder: p.$t("sys.chooseText"),
12382
+ options: C.value,
12383
+ "filter-option": h,
12384
+ onChange: R
12367
12385
  }, null, 8, [
12368
12386
  "value",
12369
12387
  "onUpdate:value",
@@ -12374,25 +12392,25 @@ var init_index_es = __esmMin((() => {
12374
12392
  }, 1032, ["name", "rules"]),
12375
12393
  createElementVNode("div", pr, [createElementVNode("i", {
12376
12394
  class: "field-mapping__remove-btn iconfont icon-shanchu1",
12377
- title: d.$t("sys.delete"),
12378
- onClick: (O) => h(T)
12395
+ title: p.$t("sys.delete"),
12396
+ onClick: (S) => y(A)
12379
12397
  }, null, 8, fr)])
12380
12398
  ]))), 128))]),
12381
- createVNode(D, {
12399
+ createVNode(U, {
12382
12400
  class: "field-mapping__add-btn",
12383
12401
  type: "link",
12384
- onClick: b
12402
+ onClick: g
12385
12403
  }, {
12386
- default: withCtx(() => [v[2] || (v[2] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)), createTextVNode(" " + toDisplayString(d.$t("sys.onlineForm.addFieldMapping")), 1)]),
12404
+ default: withCtx(() => [_[2] || (_[2] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)), createTextVNode(" " + toDisplayString(p.$t("sys.onlineForm.addFieldMapping")), 1)]),
12387
12405
  _: 1
12388
12406
  })
12389
- ]),
12390
- _: 1
12391
- }, 8, ["model"])])
12392
- ], 512), [[vShow, !e.collapsible || s.value]])], 2);
12407
+ ])
12408
+ ], 512), [[vShow, !e.collapsible || c.value]])]),
12409
+ _: 1
12410
+ }, 8, ["model"])], 2);
12393
12411
  };
12394
12412
  }
12395
- }), [["__scopeId", "data-v-e0c76cd0"]]);
12413
+ }), [["__scopeId", "data-v-5fc66b74"]]);
12396
12414
  vr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_401_32653)'%3e%3cpath%20d='M8.41026%205.53845H6.03849C5.76236%205.53845%205.5385%205.7623%205.5385%206.03844L5.53847%207.26153V8.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M8.41026%2018.4615H6.03849C5.76236%2018.4615%205.5385%2018.2377%205.5385%2017.9616L5.53847%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%205.53845H17.9615C18.2376%205.53845%2018.4615%205.76231%2018.4615%206.03845L18.4615%208.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%2018.4615H17.9615C18.2376%2018.4615%2018.4615%2018.2377%2018.4615%2017.9616L18.4615%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M23.8461%2012H0.153809'%20stroke='url(%23paint0_linear_401_32653)'%20stroke-width='2'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_401_32653'%20x1='0.153809'%20y1='12.5'%20x2='23.8461'%20y2='12.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3cstop%20offset='0.5'%20stop-color='%23026AC8'/%3e%3cstop%20offset='1'%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_401_32653'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
12397
12415
  gr = { class: "scan-modal__content" };
12398
12416
  hr = ["src"];
@@ -12417,18 +12435,18 @@ var init_index_es = __esmMin((() => {
12417
12435
  message.error($t("sys.edhr.mcTable.scanRuleNotFound"));
12418
12436
  return;
12419
12437
  }
12420
- let u, r = {};
12421
- const k = n.value.fillMapArr;
12422
- l.value ? u = er(n.value.str, JSON.stringify(l.value)) : t.bizOptions.scanParam && (u = { [t.bizOptions.scanParam]: n.value.str }), k !== null && k !== void 0 && k.length && u && (r = ar(u, k));
12438
+ let u, i = {};
12439
+ const C = n.value.fillMapArr;
12440
+ l.value ? u = er(n.value.str, JSON.stringify(l.value)) : t.bizOptions.scanParam && (u = { [t.bizOptions.scanParam]: n.value.str }), C !== null && C !== void 0 && C.length && u && (i = ar(u, C));
12423
12441
  const R = {
12424
12442
  str: n.value.str,
12425
12443
  parsedValue: u,
12426
- transformedData: r
12444
+ transformedData: i
12427
12445
  }, x = await t.bizOptions.onScan(R);
12428
12446
  n.value.str = "", x && t.modalInst.cancel();
12429
12447
  };
12430
- return (u, r) => {
12431
- const k = resolveComponent("a-input"), R = resolveComponent("a-form-item"), x = resolveComponent("a-divider"), b = resolveComponent("a-form");
12448
+ return (u, i) => {
12449
+ const C = resolveComponent("a-input"), R = resolveComponent("a-form-item"), x = resolveComponent("a-form"), b = resolveComponent("a-divider");
12432
12450
  return openBlock(), createBlock($e, mergeProps(t.modalProps, {
12433
12451
  class: "gct-form-base-modal-common-scan",
12434
12452
  visible: t.modalVisible,
@@ -12439,21 +12457,21 @@ var init_index_es = __esmMin((() => {
12439
12457
  footer: !1,
12440
12458
  draggable: "",
12441
12459
  onCancel: t.modalInst.cancel,
12442
- onAfterClose: r[3] || (r[3] = (h) => a("afterClose"))
12460
+ onAfterClose: i[3] || (i[3] = (g) => a("afterClose"))
12443
12461
  }), {
12444
- default: withCtx(() => [createElementVNode("div", gr, [createVNode(b, {
12445
- ref: "formRef",
12446
- model: n.value,
12447
- layout: "horizontal"
12448
- }, {
12449
- default: withCtx(() => [
12450
- createVNode(R, {
12462
+ default: withCtx(() => [createElementVNode("div", gr, [
12463
+ createVNode(x, {
12464
+ ref: "formRef",
12465
+ model: n.value,
12466
+ layout: "horizontal"
12467
+ }, {
12468
+ default: withCtx(() => [createVNode(R, {
12451
12469
  required: "",
12452
12470
  class: "scan-form-item"
12453
12471
  }, {
12454
- default: withCtx(() => [createVNode(k, {
12472
+ default: withCtx(() => [createVNode(C, {
12455
12473
  value: n.value.str,
12456
- "onUpdate:value": r[0] || (r[0] = (h) => n.value.str = h),
12474
+ "onUpdate:value": i[0] || (i[0] = (g) => n.value.str = g),
12457
12475
  size: "large",
12458
12476
  placeholder: u.$t("sys.edhr.mcTable.pleaseScanEntry"),
12459
12477
  onKeyup: withKeys(c, ["enter"])
@@ -12466,30 +12484,30 @@ var init_index_es = __esmMin((() => {
12466
12484
  _: 1
12467
12485
  }, 8, ["value", "placeholder"])]),
12468
12486
  _: 1
12469
- }),
12470
- createVNode(x, { style: {
12471
- width: "calc(100% + 48px)",
12472
- margin: "28px 0 16px -24px",
12473
- "border-color": "#E0E3EB"
12474
- } }),
12475
- createVNode(unref(oa), {
12476
- "parsing-rule-id": n.value.parsingRuleId,
12477
- "onUpdate:parsingRuleId": r[1] || (r[1] = (h) => n.value.parsingRuleId = h),
12478
- "fill-map-arr": n.value.fillMapArr,
12479
- "onUpdate:fillMapArr": r[2] || (r[2] = (h) => n.value.fillMapArr = h),
12480
- collapsible: "",
12481
- "form-field-options": t.bizOptions.formFieldOptions,
12482
- "rule-tip": t.bizOptions.ruleTip,
12483
- onRuleConfigChange: s
12484
- }, null, 8, [
12485
- "parsing-rule-id",
12486
- "fill-map-arr",
12487
- "form-field-options",
12488
- "rule-tip"
12489
- ])
12490
- ]),
12491
- _: 1
12492
- }, 8, ["model"])])]),
12487
+ })]),
12488
+ _: 1
12489
+ }, 8, ["model"]),
12490
+ createVNode(b, { style: {
12491
+ width: "calc(100% + 48px)",
12492
+ margin: "28px 0 16px -24px",
12493
+ "border-color": "#E0E3EB"
12494
+ } }),
12495
+ createVNode(unref(oa), {
12496
+ "parsing-rule-id": n.value.parsingRuleId,
12497
+ "onUpdate:parsingRuleId": i[1] || (i[1] = (g) => n.value.parsingRuleId = g),
12498
+ "fill-map-arr": n.value.fillMapArr,
12499
+ "onUpdate:fillMapArr": i[2] || (i[2] = (g) => n.value.fillMapArr = g),
12500
+ collapsible: "",
12501
+ "form-field-options": t.bizOptions.formFieldOptions,
12502
+ "rule-tip": t.bizOptions.ruleTip,
12503
+ onRuleConfigChange: s
12504
+ }, null, 8, [
12505
+ "parsing-rule-id",
12506
+ "fill-map-arr",
12507
+ "form-field-options",
12508
+ "rule-tip"
12509
+ ])
12510
+ ])]),
12493
12511
  _: 1
12494
12512
  }, 16, [
12495
12513
  "visible",
@@ -12498,7 +12516,7 @@ var init_index_es = __esmMin((() => {
12498
12516
  ]);
12499
12517
  };
12500
12518
  }
12501
- }), [["__scopeId", "data-v-6cfcc084"]]);
12519
+ }), [["__scopeId", "data-v-bb2f9201"]]);
12502
12520
  _r = {
12503
12521
  key: 0,
12504
12522
  class: "substitute-policy-item__nested"
@@ -12535,39 +12553,39 @@ var init_index_es = __esmMin((() => {
12535
12553
  width: 88
12536
12554
  }
12537
12555
  ];
12538
- function l(h) {
12539
- return h ? h.split(":")[0] : "";
12556
+ function l(g) {
12557
+ return g ? g.split(":")[0] : "";
12540
12558
  }
12541
- function s(h, y) {
12542
- return !h || !y ? !1 : h === y ? !0 : l(h) === l(y);
12559
+ function s(g, y) {
12560
+ return !g || !y ? !1 : g === y ? !0 : l(g) === l(y);
12543
12561
  }
12544
- function c(h, y) {
12562
+ function c(g, y) {
12545
12563
  var _o$hasIds;
12546
- const d = y ?? h.product_id_;
12547
- return d ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(d)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(d, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((M) => M.__key !== h.__key && s(M.product_id_, d)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12564
+ const h = y ?? g.product_id_;
12565
+ return h ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(h)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(h, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((_) => _.__key !== g.__key && s(_.product_id_, h)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12548
12566
  }
12549
- function u(h) {
12567
+ function u(g) {
12550
12568
  return [{
12551
12569
  required: !0,
12552
12570
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12553
- }, { validator: async (y, d) => {
12554
- const v = c(h, d);
12555
- if (v) return Promise.reject(v);
12571
+ }, { validator: async (y, h) => {
12572
+ const p = c(g, h);
12573
+ if (p) return Promise.reject(p);
12556
12574
  } }];
12557
12575
  }
12558
- function r(h) {
12559
- const y = (h === null || h === void 0 ? void 0 : h._info) ?? {}, d = ((h === null || h === void 0 ? void 0 : h.displayLabel) || "").split(":"), v = d.length > 1 ? d[0] : typeof (h === null || h === void 0 ? void 0 : h.title) == "string" ? h.title : "";
12576
+ function i(g) {
12577
+ const y = (g === null || g === void 0 ? void 0 : g._info) ?? {}, h = ((g === null || g === void 0 ? void 0 : g.displayLabel) || "").split(":"), p = h.length > 1 ? h[0] : typeof (g === null || g === void 0 ? void 0 : g.title) == "string" ? g.title : "";
12560
12578
  return {
12561
12579
  product_code_: y.code_ ?? "",
12562
- product_name_: y.name_ ?? v ?? "",
12580
+ product_name_: y.name_ ?? p ?? "",
12563
12581
  product_version_: y.version_ ?? y.__LABEL__ ?? "",
12564
12582
  product_spec_: y.spec_ ?? y.specification_ ?? ""
12565
12583
  };
12566
12584
  }
12567
- function k(h, y) {
12568
- return h ? {
12569
- product_id_: h,
12570
- ...r(y)
12585
+ function C(g, y) {
12586
+ return g ? {
12587
+ product_id_: g,
12588
+ ...i(y)
12571
12589
  } : {
12572
12590
  product_id_: void 0,
12573
12591
  product_code_: void 0,
@@ -12576,8 +12594,8 @@ var init_index_es = __esmMin((() => {
12576
12594
  product_spec_: void 0
12577
12595
  };
12578
12596
  }
12579
- function R(h, y, d) {
12580
- Object.assign(h, k(y ?? null, d));
12597
+ function R(g, y, h) {
12598
+ Object.assign(g, C(y ?? null, h));
12581
12599
  }
12582
12600
  function x() {
12583
12601
  t.value.substitute_material_entries_.push({
@@ -12590,25 +12608,25 @@ var init_index_es = __esmMin((() => {
12590
12608
  qty_required_: t.value.qty_required_ ?? 0
12591
12609
  });
12592
12610
  }
12593
- function b(h) {
12594
- t.value.substitute_material_entries_.splice(h, 1);
12611
+ function b(g) {
12612
+ t.value.substitute_material_entries_.splice(g, 1);
12595
12613
  }
12596
- return (h, y) => {
12597
- const d = resolveComponent("a-radio"), v = resolveComponent("a-radio-group"), M = resolveComponent("a-form-item"), w = resolveComponent("a-select"), V = resolveComponent("a-col"), D = resolveComponent("a-row"), U = resolveComponent("a-button"), A = resolveComponent("a-table");
12598
- return openBlock(), createElementBlock(Fragment, null, [createVNode(M, {
12599
- label: h.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12614
+ return (g, y) => {
12615
+ const h = resolveComponent("a-radio"), p = resolveComponent("a-radio-group"), _ = resolveComponent("a-form-item"), w = resolveComponent("a-select"), V = resolveComponent("a-col"), D = resolveComponent("a-row"), U = resolveComponent("a-button"), O = resolveComponent("a-table");
12616
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(_, {
12617
+ label: g.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12600
12618
  name: "substitute_material_enabled_",
12601
- rules: [unref(fe)(h.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12619
+ rules: [unref(fe)(g.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12602
12620
  }, {
12603
- default: withCtx(() => [createVNode(v, {
12621
+ default: withCtx(() => [createVNode(p, {
12604
12622
  value: t.value.substitute_material_enabled_,
12605
12623
  "onUpdate:value": y[0] || (y[0] = (T) => t.value.substitute_material_enabled_ = T)
12606
12624
  }, {
12607
- default: withCtx(() => [createVNode(d, { value: !0 }, {
12608
- default: withCtx(() => [createTextVNode(toDisplayString(h.$t("sys.true")), 1)]),
12625
+ default: withCtx(() => [createVNode(h, { value: !0 }, {
12626
+ default: withCtx(() => [createTextVNode(toDisplayString(g.$t("sys.true")), 1)]),
12609
12627
  _: 1
12610
- }), createVNode(d, { value: !1 }, {
12611
- default: withCtx(() => [createTextVNode(toDisplayString(h.$t("sys.false")), 1)]),
12628
+ }), createVNode(h, { value: !1 }, {
12629
+ default: withCtx(() => [createTextVNode(toDisplayString(g.$t("sys.false")), 1)]),
12612
12630
  _: 1
12613
12631
  })]),
12614
12632
  _: 1
@@ -12617,15 +12635,15 @@ var init_index_es = __esmMin((() => {
12617
12635
  }, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div", _r, [
12618
12636
  createVNode(D, { gutter: 16 }, {
12619
12637
  default: withCtx(() => [createVNode(V, { span: 12 }, {
12620
- default: withCtx(() => [createVNode(M, {
12621
- label: h.$t("sys.edhr.mcTable.substitutePolicy"),
12638
+ default: withCtx(() => [createVNode(_, {
12639
+ label: g.$t("sys.edhr.mcTable.substitutePolicy"),
12622
12640
  name: "substitute_policy_",
12623
12641
  required: ""
12624
12642
  }, {
12625
12643
  default: withCtx(() => [createVNode(w, {
12626
12644
  value: t.value.substitute_policy_,
12627
12645
  "onUpdate:value": y[1] || (y[1] = (T) => t.value.substitute_policy_ = T),
12628
- placeholder: h.$t("sys.chooseText"),
12646
+ placeholder: g.$t("sys.chooseText"),
12629
12647
  options: a
12630
12648
  }, null, 8, ["value", "placeholder"])]),
12631
12649
  _: 1
@@ -12639,19 +12657,19 @@ var init_index_es = __esmMin((() => {
12639
12657
  class: "substitute-policy-item__add-row",
12640
12658
  onClick: x
12641
12659
  }, {
12642
- default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(h.$t("sys.edhr.addRow")), 1)]),
12660
+ default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(g.$t("sys.edhr.addRow")), 1)]),
12643
12661
  _: 1
12644
12662
  })]),
12645
- createVNode(A, {
12663
+ createVNode(O, {
12646
12664
  "data-source": t.value.substitute_material_entries_,
12647
12665
  columns: n,
12648
12666
  pagination: !1,
12649
12667
  size: "small",
12650
12668
  "row-key": "__key",
12651
- locale: { emptyText: h.$t("sys.noData") }
12669
+ locale: { emptyText: g.$t("sys.noData") }
12652
12670
  }, {
12653
12671
  headerCell: withCtx(({ column: T }) => [T.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [y[2] || (y[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(T.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(T.title), 1)], 64))]),
12654
- bodyCell: withCtx(({ column: T, record: O, index: S }) => [T.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(S + 1), 1)], 64)) : T.key === "product_id_" ? (openBlock(), createBlock(M, {
12672
+ bodyCell: withCtx(({ column: T, record: A, index: S }) => [T.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(S + 1), 1)], 64)) : T.key === "product_id_" ? (openBlock(), createBlock(_, {
12655
12673
  key: 1,
12656
12674
  class: "substitute-policy-item__table-item",
12657
12675
  name: [
@@ -12659,19 +12677,19 @@ var init_index_es = __esmMin((() => {
12659
12677
  S,
12660
12678
  "product_id_"
12661
12679
  ],
12662
- rules: u(O),
12663
- "validate-status": c(O) ? "error" : void 0,
12664
- help: c(O) || void 0
12680
+ rules: u(A),
12681
+ "validate-status": c(A) ? "error" : void 0,
12682
+ help: c(A) || void 0
12665
12683
  }, {
12666
12684
  default: withCtx(() => [createVNode(unref(kt), {
12667
- "model-value": O.product_id_ || void 0,
12685
+ "model-value": A.product_id_ || void 0,
12668
12686
  "model-key": "em_product",
12669
- placeholder: h.$t("sys.chooseText"),
12687
+ placeholder: g.$t("sys.chooseText"),
12670
12688
  "parent-to-default": !1,
12671
12689
  "disabled-parent": !1,
12672
12690
  "show-search": !0,
12673
12691
  "query-data": { "product_type_.ne": "finishedProduct" },
12674
- onChange: (g, H) => R(O, g, H)
12692
+ onChange: (v, H) => R(A, v, H)
12675
12693
  }, null, 8, [
12676
12694
  "model-value",
12677
12695
  "placeholder",
@@ -12687,9 +12705,9 @@ var init_index_es = __esmMin((() => {
12687
12705
  key: 2,
12688
12706
  type: "link",
12689
12707
  danger: "",
12690
- onClick: (g) => b(S)
12708
+ onClick: (v) => b(S)
12691
12709
  }, {
12692
- default: withCtx(() => [createTextVNode(toDisplayString(h.$t("sys.delete")), 1)]),
12710
+ default: withCtx(() => [createTextVNode(toDisplayString(g.$t("sys.delete")), 1)]),
12693
12711
  _: 1
12694
12712
  }, 8, ["onClick"])) : createCommentVNode("", !0)]),
12695
12713
  _: 1
@@ -12705,7 +12723,7 @@ var init_index_es = __esmMin((() => {
12705
12723
  key: 0,
12706
12724
  class: "bom-entry-modal__nested"
12707
12725
  };
12708
- Ar = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
12726
+ Or = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
12709
12727
  __name: "modal",
12710
12728
  props: {
12711
12729
  modalVisible: { type: Boolean },
@@ -12745,31 +12763,31 @@ var init_index_es = __esmMin((() => {
12745
12763
  force_loading_enabled_: !0
12746
12764
  };
12747
12765
  }
12748
- function c(A) {
12749
- return (A ?? []).map((T) => ({
12766
+ function c(O) {
12767
+ return (O ?? []).map((T) => ({
12750
12768
  ...cloneDeep(T),
12751
12769
  __key: Re(8)
12752
12770
  }));
12753
12771
  }
12754
- function u(A) {
12755
- return (A ?? []).map((T) => ({
12772
+ function u(O) {
12773
+ return (O ?? []).map((T) => ({
12756
12774
  ...cloneDeep(T),
12757
12775
  __key: Re(8)
12758
12776
  }));
12759
12777
  }
12760
- let r = reactive({
12778
+ let i = reactive({
12761
12779
  ...s(),
12762
12780
  ...t.bizOptions.data ? cloneDeep(t.bizOptions.data) : {},
12763
12781
  substitute_material_entries_: c((_t$bizOptions$data = t.bizOptions.data) === null || _t$bizOptions$data === void 0 ? void 0 : _t$bizOptions$data.substitute_material_entries_),
12764
12782
  consume_storage_entries_: u((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
12765
12783
  });
12766
- const k = computed(() => {
12767
- const A = {
12784
+ const C = computed(() => {
12785
+ const O = {
12768
12786
  product_id_: [{
12769
12787
  required: !0,
12770
12788
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12771
- }, { validator: async (T, O) => {
12772
- const S = d(O);
12789
+ }, { validator: async (T, A) => {
12790
+ const S = h(A);
12773
12791
  if (S) return Promise.reject(S);
12774
12792
  } }],
12775
12793
  qty_required_: [{
@@ -12782,31 +12800,31 @@ var init_index_es = __esmMin((() => {
12782
12800
  }],
12783
12801
  force_loading_enabled_: [fe($t("sys.edhr.mcTable.forceLoadingEnabled"))]
12784
12802
  };
12785
- return r.type_ !== "view" && (A.consume_enabled_ = [fe($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (A.consume_source_config_ = [{
12803
+ return i.type_ !== "view" && (O.consume_enabled_ = [fe($t("sys.edhr.mcTable.consumeEnabled"))], i.consume_enabled_ && (O.consume_source_config_ = [{
12786
12804
  required: !0,
12787
12805
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.consumeSourceConfig") })
12788
- }], r.consume_source_config_ === "custom" && (A.default_warehouse_id_ = [{
12806
+ }], i.consume_source_config_ === "custom" && (O.default_warehouse_id_ = [{
12789
12807
  required: !0,
12790
12808
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.defaultWarehouse") })
12791
- }])), A.qty_validation_enabled_ = [fe($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (A.qty_validation_rule_ = [{
12809
+ }])), O.qty_validation_enabled_ = [fe($t("sys.edhr.mcTable.qtyValidationEnabled"))], i.qty_validation_enabled_ && (O.qty_validation_rule_ = [{
12792
12810
  required: !0,
12793
12811
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.qtyValidationRule") })
12794
- }], r.qty_validation_rule_ === "bounds" && (A.max_value_ = [{
12812
+ }], i.qty_validation_rule_ === "bounds" && (O.max_value_ = [{
12795
12813
  required: !0,
12796
12814
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMax") })
12797
- }], A.min_value_ = [{
12815
+ }], O.min_value_ = [{
12798
12816
  required: !0,
12799
12817
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMin") })
12800
- }])), A.substitute_material_enabled_ = [fe($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (A.substitute_policy_ = [{
12818
+ }])), O.substitute_material_enabled_ = [fe($t("sys.edhr.mcTable.substituteMaterialEnabled"))], i.substitute_material_enabled_ && (O.substitute_policy_ = [{
12801
12819
  required: !0,
12802
12820
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.substitutePolicy") })
12803
- }])), r.type_ === "by_lot" && (A.lot_mixing_enabled_ = [fe($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (A.lot_mixing_times_ = [{
12821
+ }])), i.type_ === "by_lot" && (O.lot_mixing_enabled_ = [fe($t("sys.edhr.mcTable.lotMixingEnabled"))], i.lot_mixing_enabled_ && (O.lot_mixing_times_ = [{
12804
12822
  required: !0,
12805
12823
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
12806
- }])), A;
12824
+ }])), O;
12807
12825
  });
12808
- function R(A) {
12809
- const T = (A === null || A === void 0 ? void 0 : A._info) ?? {}, O = ((A === null || A === void 0 ? void 0 : A.displayLabel) || "").split(":"), S = O.length > 1 ? O[0] : typeof (A === null || A === void 0 ? void 0 : A.title) == "string" ? A.title : "";
12826
+ function R(O) {
12827
+ const T = (O === null || O === void 0 ? void 0 : O._info) ?? {}, A = ((O === null || O === void 0 ? void 0 : O.displayLabel) || "").split(":"), S = A.length > 1 ? A[0] : typeof (O === null || O === void 0 ? void 0 : O.title) == "string" ? O.title : "";
12810
12828
  return {
12811
12829
  product_code_: T.code_ ?? "",
12812
12830
  product_name_: T.name_ ?? S ?? "",
@@ -12814,9 +12832,9 @@ var init_index_es = __esmMin((() => {
12814
12832
  product_spec_: T.spec_ ?? T.specification_ ?? ""
12815
12833
  };
12816
12834
  }
12817
- function x(A, T) {
12818
- return A ? {
12819
- product_id_: A,
12835
+ function x(O, T) {
12836
+ return O ? {
12837
+ product_id_: O,
12820
12838
  ...R(T)
12821
12839
  } : {
12822
12840
  product_id_: void 0,
@@ -12826,64 +12844,64 @@ var init_index_es = __esmMin((() => {
12826
12844
  product_spec_: void 0
12827
12845
  };
12828
12846
  }
12829
- function b(A) {
12830
- return A ? A.split(":")[0] : "";
12847
+ function b(O) {
12848
+ return O ? O.split(":")[0] : "";
12831
12849
  }
12832
- function h(A, T) {
12833
- return !A || !T ? !1 : A === T ? !0 : b(A) === b(T);
12850
+ function g(O, T) {
12851
+ return !O || !T ? !1 : O === T ? !0 : b(O) === b(T);
12834
12852
  }
12835
- function y(A) {
12836
- return A ? (t.bizOptions.hasIds ?? []).some((T) => h(T, A)) : !1;
12853
+ function y(O) {
12854
+ return O ? (t.bizOptions.hasIds ?? []).some((T) => g(T, O)) : !1;
12837
12855
  }
12838
- function d(A) {
12839
- const T = A ?? r.product_id_;
12856
+ function h(O) {
12857
+ const T = O ?? i.product_id_;
12840
12858
  return T && y(T) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
12841
12859
  }
12842
- function v(A, T) {
12843
- Object.assign(r, x(A ?? null, T));
12860
+ function p(O, T) {
12861
+ Object.assign(i, x(O ?? null, T));
12844
12862
  }
12845
- function M(A = []) {
12846
- return A.map((T) => {
12847
- const { __key: O, ...S } = T;
12863
+ function _(O = []) {
12864
+ return O.map((T) => {
12865
+ const { __key: A, ...S } = T;
12848
12866
  return {
12849
12867
  ...S,
12850
- qty_required_: r.qty_required_ ?? S.qty_required_ ?? 0
12868
+ qty_required_: i.qty_required_ ?? S.qty_required_ ?? 0
12851
12869
  };
12852
12870
  });
12853
12871
  }
12854
- function w(A = []) {
12855
- return A.map((T) => {
12856
- const { __key: O, ...S } = T;
12872
+ function w(O = []) {
12873
+ return O.map((T) => {
12874
+ const { __key: A, ...S } = T;
12857
12875
  return S;
12858
12876
  });
12859
12877
  }
12860
- function V(A) {
12861
- A.consume_enabled_ = !1, A.consume_source_config_ = void 0, A.default_warehouse_id_ = void 0, A.default_location_id_ = void 0, A.consume_storage_entries_ = [];
12878
+ function V(O) {
12879
+ O.consume_enabled_ = !1, O.consume_source_config_ = void 0, O.default_warehouse_id_ = void 0, O.default_location_id_ = void 0, O.consume_storage_entries_ = [];
12862
12880
  }
12863
12881
  function D() {
12864
- const { substitute_material_entries_: T = [], consume_storage_entries_: O = [], ...S } = cloneDeep(r), g = {
12882
+ const { substitute_material_entries_: T = [], consume_storage_entries_: A = [], ...S } = cloneDeep(i), v = {
12865
12883
  ...S,
12866
12884
  substitute_material_entries_: [],
12867
12885
  consume_storage_entries_: []
12868
12886
  };
12869
- return g.type_ === "view" ? (g.qty_validation_enabled_ = !1, g.qty_validation_rule_ = "eq", g.max_value_ = void 0, g.min_value_ = void 0, g.lot_mixing_enabled_ = !1, g.lot_mixing_times_ = 1, g.substitute_material_enabled_ = !1, g.substitute_policy_ = "only_one", g.substitute_material_entries_ = [], V(g), g) : (g.consume_enabled_ ? g.consume_source_config_ !== "custom" ? (g.default_warehouse_id_ = void 0, g.default_location_id_ = void 0, g.consume_storage_entries_ = []) : g.consume_storage_entries_ = w(O) : (V(g), g.consume_enabled_ = !1), g.qty_validation_enabled_ ? g.qty_validation_rule_ !== "bounds" && (g.max_value_ = void 0, g.min_value_ = void 0) : (g.qty_validation_rule_ = "eq", g.max_value_ = void 0, g.min_value_ = void 0), g.substitute_material_enabled_ ? g.substitute_material_entries_ = M(T) : (g.substitute_policy_ = "only_one", g.substitute_material_entries_ = []), g.type_ !== "by_lot" ? (g.lot_mixing_enabled_ = !1, g.lot_mixing_times_ = 1) : g.lot_mixing_enabled_ || (g.lot_mixing_times_ = 1), g);
12887
+ return v.type_ === "view" ? (v.qty_validation_enabled_ = !1, v.qty_validation_rule_ = "eq", v.max_value_ = void 0, v.min_value_ = void 0, v.lot_mixing_enabled_ = !1, v.lot_mixing_times_ = 1, v.substitute_material_enabled_ = !1, v.substitute_policy_ = "only_one", v.substitute_material_entries_ = [], V(v), v) : (v.consume_enabled_ ? v.consume_source_config_ !== "custom" ? (v.default_warehouse_id_ = void 0, v.default_location_id_ = void 0, v.consume_storage_entries_ = []) : v.consume_storage_entries_ = w(A) : (V(v), v.consume_enabled_ = !1), v.qty_validation_enabled_ ? v.qty_validation_rule_ !== "bounds" && (v.max_value_ = void 0, v.min_value_ = void 0) : (v.qty_validation_rule_ = "eq", v.max_value_ = void 0, v.min_value_ = void 0), v.substitute_material_enabled_ ? v.substitute_material_entries_ = _(T) : (v.substitute_policy_ = "only_one", v.substitute_material_entries_ = []), v.type_ !== "by_lot" ? (v.lot_mixing_enabled_ = !1, v.lot_mixing_times_ = 1) : v.lot_mixing_enabled_ || (v.lot_mixing_times_ = 1), v);
12870
12888
  }
12871
12889
  const U = async () => {
12872
- var _r$substitute_materia;
12890
+ var _i$substitute_materia;
12873
12891
  try {
12874
- var _l$value13;
12875
- await ((_l$value13 = l.value) === null || _l$value13 === void 0 ? void 0 : _l$value13.validate());
12892
+ var _l$value12;
12893
+ await ((_l$value12 = l.value) === null || _l$value12 === void 0 ? void 0 : _l$value12.validate());
12876
12894
  } catch {
12877
12895
  return;
12878
12896
  }
12879
- if (r.type_ !== "view" && r.substitute_material_enabled_ && !((_r$substitute_materia = r.substitute_material_entries_) === null || _r$substitute_materia === void 0 ? void 0 : _r$substitute_materia.length)) {
12897
+ if (i.type_ !== "view" && i.substitute_material_enabled_ && !((_i$substitute_materia = i.substitute_material_entries_) === null || _i$substitute_materia === void 0 ? void 0 : _i$substitute_materia.length)) {
12880
12898
  message.warning($t("sys.edhr.mcTable.substituteMaterialRequired"));
12881
12899
  return;
12882
12900
  }
12883
12901
  t.modalInst.confirm(D());
12884
12902
  };
12885
- return (A, T) => {
12886
- const O = resolveComponent("a-form-item"), S = resolveComponent("a-col"), g = resolveComponent("a-input-number"), H = resolveComponent("a-row"), P = resolveComponent("a-radio"), Y = resolveComponent("a-radio-group"), ne = resolveComponent("a-form");
12903
+ return (O, T) => {
12904
+ const A = resolveComponent("a-form-item"), S = resolveComponent("a-col"), v = resolveComponent("a-input-number"), H = resolveComponent("a-row"), P = resolveComponent("a-radio"), Y = resolveComponent("a-radio-group"), ne = resolveComponent("a-form");
12887
12905
  return openBlock(), createBlock($e, mergeProps(t.modalProps, {
12888
12906
  class: "gct-form-base-modal-bom-entry-modal",
12889
12907
  visible: t.modalVisible,
@@ -12901,29 +12919,29 @@ var init_index_es = __esmMin((() => {
12901
12919
  default: withCtx(() => [createElementVNode("div", xr, [createVNode(ne, {
12902
12920
  ref_key: "formRef",
12903
12921
  ref: l,
12904
- model: unref(r),
12905
- rules: k.value
12922
+ model: unref(i),
12923
+ rules: C.value
12906
12924
  }, {
12907
12925
  default: withCtx(() => [
12908
- createElementVNode("div", Mr, toDisplayString(A.$t("sys.appDesigner.basicInformation")), 1),
12926
+ createElementVNode("div", Mr, toDisplayString(O.$t("sys.appDesigner.basicInformation")), 1),
12909
12927
  createVNode(H, { gutter: 16 }, {
12910
12928
  default: withCtx(() => [createVNode(S, { span: 12 }, {
12911
- default: withCtx(() => [createVNode(O, {
12912
- label: A.$t("sys.material"),
12929
+ default: withCtx(() => [createVNode(A, {
12930
+ label: O.$t("sys.material"),
12913
12931
  name: "product_id_",
12914
12932
  required: "",
12915
- "validate-status": d() ? "error" : void 0,
12916
- help: d() || void 0
12933
+ "validate-status": h() ? "error" : void 0,
12934
+ help: h() || void 0
12917
12935
  }, {
12918
12936
  default: withCtx(() => [createVNode(unref(kt), {
12919
- "model-value": unref(r).product_id_ || void 0,
12937
+ "model-value": unref(i).product_id_ || void 0,
12920
12938
  "model-key": "em_product",
12921
- placeholder: A.$t("sys.chooseText"),
12939
+ placeholder: O.$t("sys.chooseText"),
12922
12940
  "parent-to-default": !1,
12923
12941
  "disabled-parent": !1,
12924
12942
  "show-search": !0,
12925
12943
  "query-data": { "product_type_.ne": "finishedProduct" },
12926
- onChange: v
12944
+ onChange: p
12927
12945
  }, null, 8, ["model-value", "placeholder"])]),
12928
12946
  _: 1
12929
12947
  }, 8, [
@@ -12933,16 +12951,16 @@ var init_index_es = __esmMin((() => {
12933
12951
  ])]),
12934
12952
  _: 1
12935
12953
  }), createVNode(S, { span: 12 }, {
12936
- default: withCtx(() => [createVNode(O, {
12937
- label: A.$t("sys.edhr.unitQty"),
12954
+ default: withCtx(() => [createVNode(A, {
12955
+ label: O.$t("sys.edhr.unitQty"),
12938
12956
  name: "qty_required_",
12939
12957
  required: ""
12940
12958
  }, {
12941
- default: withCtx(() => [createVNode(g, {
12942
- value: unref(r).qty_required_,
12943
- "onUpdate:value": T[0] || (T[0] = (Q) => unref(r).qty_required_ = Q),
12959
+ default: withCtx(() => [createVNode(v, {
12960
+ value: unref(i).qty_required_,
12961
+ "onUpdate:value": T[0] || (T[0] = (Q) => unref(i).qty_required_ = Q),
12944
12962
  style: { width: "100%" },
12945
- placeholder: A.$t("sys.inputText"),
12963
+ placeholder: O.$t("sys.inputText"),
12946
12964
  min: 0
12947
12965
  }, null, 8, ["value", "placeholder"])]),
12948
12966
  _: 1
@@ -12951,30 +12969,30 @@ var init_index_es = __esmMin((() => {
12951
12969
  })]),
12952
12970
  _: 1
12953
12971
  }),
12954
- createElementVNode("div", Sr, toDisplayString(A.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
12955
- createVNode(O, {
12972
+ createElementVNode("div", Sr, toDisplayString(O.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
12973
+ createVNode(A, {
12956
12974
  name: "type_",
12957
12975
  required: ""
12958
12976
  }, {
12959
- label: withCtx(() => [createElementVNode("span", null, toDisplayString(A.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(gt), {
12977
+ label: withCtx(() => [createElementVNode("span", null, toDisplayString(O.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(gt), {
12960
12978
  class: "bom-entry-modal__label-tip",
12961
- info: A.$t("sys.edhr.mcTable.loadingTypeTip")
12979
+ info: O.$t("sys.edhr.mcTable.loadingTypeTip")
12962
12980
  }, null, 8, ["info"])]),
12963
12981
  default: withCtx(() => [createVNode(Y, {
12964
- value: unref(r).type_,
12965
- "onUpdate:value": T[1] || (T[1] = (Q) => unref(r).type_ = Q)
12982
+ value: unref(i).type_,
12983
+ "onUpdate:value": T[1] || (T[1] = (Q) => unref(i).type_ = Q)
12966
12984
  }, {
12967
12985
  default: withCtx(() => [
12968
12986
  createVNode(P, { value: "view" }, {
12969
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
12987
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
12970
12988
  _: 1
12971
12989
  }),
12972
12990
  createVNode(P, { value: "by_number" }, {
12973
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
12991
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
12974
12992
  _: 1
12975
12993
  }),
12976
12994
  createVNode(P, { value: "by_lot" }, {
12977
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
12995
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
12978
12996
  _: 1
12979
12997
  })
12980
12998
  ]),
@@ -12982,46 +13000,46 @@ var init_index_es = __esmMin((() => {
12982
13000
  }, 8, ["value"])]),
12983
13001
  _: 1
12984
13002
  }),
12985
- unref(r).type_ !== "view" && e.bizOptions.showConsumePolicy ? (openBlock(), createBlock(ea, {
13003
+ unref(i).type_ !== "view" && e.bizOptions.showConsumePolicy ? (openBlock(), createBlock(ea, {
12986
13004
  key: 0,
12987
- "form-state": unref(r),
12988
- "onUpdate:formState": T[2] || (T[2] = (Q) => isRef(r) ? r.value = Q : r = Q)
13005
+ "form-state": unref(i),
13006
+ "onUpdate:formState": T[2] || (T[2] = (Q) => isRef(i) ? i.value = Q : i = Q)
12989
13007
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
12990
- unref(r).type_ !== "view" ? (openBlock(), createBlock(ta, {
13008
+ unref(i).type_ !== "view" ? (openBlock(), createBlock(ta, {
12991
13009
  key: 1,
12992
- "form-state": unref(r),
12993
- "onUpdate:formState": T[3] || (T[3] = (Q) => isRef(r) ? r.value = Q : r = Q)
13010
+ "form-state": unref(i),
13011
+ "onUpdate:formState": T[3] || (T[3] = (Q) => isRef(i) ? i.value = Q : i = Q)
12994
13012
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
12995
- unref(r).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(O, {
12996
- label: A.$t("sys.edhr.mcTable.lotMixingEnabled"),
13013
+ unref(i).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(A, {
13014
+ label: O.$t("sys.edhr.mcTable.lotMixingEnabled"),
12997
13015
  name: "lot_mixing_enabled_"
12998
13016
  }, {
12999
13017
  default: withCtx(() => [createVNode(Y, {
13000
- value: unref(r).lot_mixing_enabled_,
13001
- "onUpdate:value": T[4] || (T[4] = (Q) => unref(r).lot_mixing_enabled_ = Q)
13018
+ value: unref(i).lot_mixing_enabled_,
13019
+ "onUpdate:value": T[4] || (T[4] = (Q) => unref(i).lot_mixing_enabled_ = Q)
13002
13020
  }, {
13003
13021
  default: withCtx(() => [createVNode(P, { value: !0 }, {
13004
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.true")), 1)]),
13022
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13005
13023
  _: 1
13006
13024
  }), createVNode(P, { value: !1 }, {
13007
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.false")), 1)]),
13025
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13008
13026
  _: 1
13009
13027
  })]),
13010
13028
  _: 1
13011
13029
  }, 8, ["value"])]),
13012
13030
  _: 1
13013
- }, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Rr, [createVNode(H, { gutter: 16 }, {
13031
+ }, 8, ["label"]), unref(i).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Rr, [createVNode(H, { gutter: 16 }, {
13014
13032
  default: withCtx(() => [createVNode(S, { span: 12 }, {
13015
- default: withCtx(() => [createVNode(O, {
13016
- label: A.$t("sys.edhr.mcTable.lotMixingTimes"),
13033
+ default: withCtx(() => [createVNode(A, {
13034
+ label: O.$t("sys.edhr.mcTable.lotMixingTimes"),
13017
13035
  name: "lot_mixing_times_",
13018
13036
  required: ""
13019
13037
  }, {
13020
- default: withCtx(() => [createVNode(g, {
13021
- value: unref(r).lot_mixing_times_,
13022
- "onUpdate:value": T[5] || (T[5] = (Q) => unref(r).lot_mixing_times_ = Q),
13038
+ default: withCtx(() => [createVNode(v, {
13039
+ value: unref(i).lot_mixing_times_,
13040
+ "onUpdate:value": T[5] || (T[5] = (Q) => unref(i).lot_mixing_times_ = Q),
13023
13041
  style: { width: "100%" },
13024
- placeholder: A.$t("sys.inputText"),
13042
+ placeholder: O.$t("sys.inputText"),
13025
13043
  min: 1,
13026
13044
  precision: 0
13027
13045
  }, null, 8, ["value", "placeholder"])]),
@@ -13031,25 +13049,25 @@ var init_index_es = __esmMin((() => {
13031
13049
  })]),
13032
13050
  _: 1
13033
13051
  })])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0),
13034
- unref(r).type_ !== "view" ? (openBlock(), createBlock(Cr, {
13052
+ unref(i).type_ !== "view" ? (openBlock(), createBlock(Cr, {
13035
13053
  key: 3,
13036
- "form-state": unref(r),
13037
- "onUpdate:formState": T[6] || (T[6] = (Q) => isRef(r) ? r.value = Q : r = Q),
13054
+ "form-state": unref(i),
13055
+ "onUpdate:formState": T[6] || (T[6] = (Q) => isRef(i) ? i.value = Q : i = Q),
13038
13056
  hasIds: t.bizOptions.hasIds
13039
13057
  }, null, 8, ["form-state", "hasIds"])) : createCommentVNode("", !0),
13040
- createVNode(O, {
13041
- label: A.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13058
+ createVNode(A, {
13059
+ label: O.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13042
13060
  name: "force_loading_enabled_"
13043
13061
  }, {
13044
13062
  default: withCtx(() => [createVNode(Y, {
13045
- value: unref(r).force_loading_enabled_,
13046
- "onUpdate:value": T[7] || (T[7] = (Q) => unref(r).force_loading_enabled_ = Q)
13063
+ value: unref(i).force_loading_enabled_,
13064
+ "onUpdate:value": T[7] || (T[7] = (Q) => unref(i).force_loading_enabled_ = Q)
13047
13065
  }, {
13048
13066
  default: withCtx(() => [createVNode(P, { value: !0 }, {
13049
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.true")), 1)]),
13067
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13050
13068
  _: 1
13051
13069
  }), createVNode(P, { value: !1 }, {
13052
- default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.false")), 1)]),
13070
+ default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13053
13071
  _: 1
13054
13072
  })]),
13055
13073
  _: 1
@@ -13090,15 +13108,15 @@ var init_index_es = __esmMin((() => {
13090
13108
  const u = async () => {
13091
13109
  try {
13092
13110
  var _n$value9;
13093
- const k = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
13094
- k && await k();
13111
+ const C = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
13112
+ C && await C();
13095
13113
  } catch {
13096
13114
  return;
13097
13115
  }
13098
- const r = c() ? void 0 : cloneDeep(toRaw(l));
13099
- t.modalInst.confirm(r);
13116
+ const i = c() ? void 0 : cloneDeep(toRaw(l));
13117
+ t.modalInst.confirm(i);
13100
13118
  };
13101
- return (r, k) => (openBlock(), createBlock($e, mergeProps(t.modalProps, {
13119
+ return (i, C) => (openBlock(), createBlock($e, mergeProps(t.modalProps, {
13102
13120
  class: "gct-form-base-modal-parse-rule",
13103
13121
  visible: t.modalVisible,
13104
13122
  title: s.value,
@@ -13106,20 +13124,20 @@ var init_index_es = __esmMin((() => {
13106
13124
  draggable: "",
13107
13125
  onCancel: t.modalInst.cancel,
13108
13126
  onOk: u,
13109
- onAfterClose: k[2] || (k[2] = (R) => a("afterClose"))
13127
+ onAfterClose: C[2] || (C[2] = (R) => a("afterClose"))
13110
13128
  }), {
13111
13129
  default: withCtx(() => [createElementVNode("div", Vr, [createVNode(unref(oa), {
13112
13130
  ref_key: "fieldMappingRef",
13113
13131
  ref: n,
13114
13132
  "parsing-rule-id": l.parsingRuleId,
13115
- "onUpdate:parsingRuleId": k[0] || (k[0] = (R) => l.parsingRuleId = R),
13133
+ "onUpdate:parsingRuleId": C[0] || (C[0] = (R) => l.parsingRuleId = R),
13116
13134
  "fill-map-arr": l.fillMapArr,
13117
- "onUpdate:fillMapArr": k[1] || (k[1] = (R) => l.fillMapArr = R),
13135
+ "onUpdate:fillMapArr": C[1] || (C[1] = (R) => l.fillMapArr = R),
13118
13136
  bordered: "",
13119
13137
  "tip-placement": "before",
13120
13138
  "rule-tip": t.bizOptions.ruleTip,
13121
13139
  "form-field-options": t.bizOptions.formFieldOptions,
13122
- "form-fields-label": r.$t("sys.onlineForm.objectFields")
13140
+ "form-fields-label": i.$t("sys.onlineForm.objectFields")
13123
13141
  }, null, 8, [
13124
13142
  "parsing-rule-id",
13125
13143
  "fill-map-arr",
@@ -13139,7 +13157,7 @@ var init_index_es = __esmMin((() => {
13139
13157
  Nr = {
13140
13158
  MATERIAL_CONSUME_OBJECT_CONFIG: Ji,
13141
13159
  COMMON_SCAN: br,
13142
- BOM_ENTRY_MODAL: Ar,
13160
+ BOM_ENTRY_MODAL: Or,
13143
13161
  PARSE_RULE_MODAL: qr,
13144
13162
  SCAN_MULTI_ROWS_MODAL: /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
13145
13163
  __name: "modal",
@@ -13151,9 +13169,9 @@ var init_index_es = __esmMin((() => {
13151
13169
  },
13152
13170
  emits: ["afterClose"],
13153
13171
  setup(e, { emit: o }) {
13154
- const t = e, a = o, n = ref(), l = computed(() => (t.bizOptions.rows ?? []).map((k, R) => ({
13155
- ...k,
13156
- _rowKey: `${k.materialId ?? ""}_${k.productionIdentificationId ?? ""}_${R}`
13172
+ const t = e, a = o, n = ref(), l = computed(() => (t.bizOptions.rows ?? []).map((C, R) => ({
13173
+ ...C,
13174
+ _rowKey: `${C.materialId ?? ""}_${C.productionIdentificationId ?? ""}_${R}`
13157
13175
  }))), s = reactive({
13158
13176
  round: !0,
13159
13177
  maxHeight: 420,
@@ -13183,38 +13201,38 @@ var init_index_es = __esmMin((() => {
13183
13201
  minWidth: 160
13184
13202
  }
13185
13203
  ]
13186
- }), c = { radioChange({ row: k }) {
13187
- n.value = k;
13204
+ }), c = { radioChange({ row: C }) {
13205
+ n.value = C;
13188
13206
  } };
13189
- async function u(k) {
13207
+ async function u(C) {
13190
13208
  const { data: R = {}, dict: x = {} } = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
13191
13209
  modelCategory: "entity",
13192
13210
  modelKey: "em_production_identification_lock_record",
13193
13211
  bsKey: "biz_get_one_lock_record"
13194
- }, {}, { production_identification_id_: k });
13212
+ }, {}, { production_identification_id_: C });
13195
13213
  return `该物料批次已被锁定;锁定人:${x.lock_user_id_[R.lock_user_id_]};锁定原因:${R.lock_reason_}`;
13196
13214
  }
13197
- const r = async () => {
13215
+ const i = async () => {
13198
13216
  if (!n.value) {
13199
13217
  message.error("请选择一条数据");
13200
13218
  return;
13201
13219
  }
13202
- const { _rowKey: k, productionIdentificationIsLocked: R, productionIdentificationId: x, ...b } = n.value;
13220
+ const { _rowKey: C, productionIdentificationIsLocked: R, productionIdentificationId: x, ...b } = n.value;
13203
13221
  if (R) {
13204
- const h = await u(x);
13205
- message.error(h);
13222
+ const g = await u(x);
13223
+ message.error(g);
13206
13224
  return;
13207
13225
  }
13208
13226
  t.modalInst.confirm(b);
13209
13227
  };
13210
- return (k, R) => (openBlock(), createBlock($e, mergeProps(t.modalProps, {
13228
+ return (C, R) => (openBlock(), createBlock($e, mergeProps(t.modalProps, {
13211
13229
  class: "gct-form-base-modal-scan-multi-rows",
13212
13230
  visible: t.modalVisible,
13213
13231
  title: "选择物料",
13214
13232
  width: 800,
13215
13233
  fullscreen: !1,
13216
13234
  onCancel: t.modalInst.cancel,
13217
- onOk: r,
13235
+ onOk: i,
13218
13236
  onAfterClose: R[0] || (R[0] = (x) => a("afterClose"))
13219
13237
  }), {
13220
13238
  default: withCtx(() => [createElementVNode("div", zr, [createVNode(unref(VxeGrid), mergeProps({
@@ -13439,38 +13457,38 @@ var init_index_es = __esmMin((() => {
13439
13457
  ...a,
13440
13458
  zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
13441
13459
  };
13442
- return new Promise((u, r) => {
13443
- let k = !1, R = !1, x = !1, b;
13444
- const h$2 = (w) => {
13445
- k || (k = !0, R = !0, s.visible = !1, u(w));
13460
+ return new Promise((u, i) => {
13461
+ let C = !1, R = !1, x = !1, b;
13462
+ const g = (w) => {
13463
+ C || (C = !0, R = !0, s.visible = !1, u(w));
13446
13464
  }, y = {
13447
13465
  id: l,
13448
13466
  confirm(w) {
13449
- h$2({
13467
+ g({
13450
13468
  success: !0,
13451
13469
  result: w
13452
13470
  });
13453
13471
  },
13454
13472
  cancel() {
13455
- h$2({
13473
+ g({
13456
13474
  success: !1,
13457
13475
  result: void 0
13458
13476
  });
13459
13477
  }
13460
- }, d = async () => {
13478
+ }, h$2 = async () => {
13461
13479
  if (x) return;
13462
13480
  x = !0, this.modalMap.delete(l);
13463
13481
  const w = b;
13464
13482
  b = void 0, w && await w.destroy();
13465
- }, v = () => this.resolveAntdConfig(), M = defineComponent({
13483
+ }, p = () => this.resolveAntdConfig(), _ = defineComponent({
13466
13484
  name: "FormBaseModalRoot",
13467
13485
  setup() {
13468
- return () => h(ConfigProvider, v(), { default: () => h(n, {
13486
+ return () => h(ConfigProvider, p(), { default: () => h(n, {
13469
13487
  modalVisible: s.visible,
13470
13488
  modalProps: c,
13471
13489
  modalInst: y,
13472
13490
  bizOptions: t,
13473
- onAfterClose: d
13491
+ onAfterClose: h$2
13474
13492
  }) });
13475
13493
  }
13476
13494
  });
@@ -13480,9 +13498,9 @@ var init_index_es = __esmMin((() => {
13480
13498
  isClosing: () => R
13481
13499
  });
13482
13500
  try {
13483
- b = Xr(M, this.appContext, l);
13501
+ b = Xr(_, this.appContext, l);
13484
13502
  } catch (w) {
13485
- this.modalMap.delete(l), r(w);
13503
+ this.modalMap.delete(l), i(w);
13486
13504
  }
13487
13505
  });
13488
13506
  }
@@ -13507,7 +13525,7 @@ var init_index_es = __esmMin((() => {
13507
13525
  } };
13508
13526
  }));
13509
13527
  //#endregion
13510
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.4_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_a70a2309eb5e599042566f018756ef53/node_modules/@gct-paas/form-base/dist/form-base.css
13528
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.6_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_a83aae1719616f47df09ee4ef05b8654/node_modules/@gct-paas/form-base/dist/form-base.css
13511
13529
  init_index_es();
13512
13530
  //#endregion
13513
13531
  //#region src/sdk/setup.ts