@gct-paas/word 0.2.29 → 0.2.30

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.2.29 */
1
+ /*! @gct-paas/word v0.2.30 */
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 fa, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -9386,7 +9386,7 @@ var init_base$2 = __esmMin((() => {
9386
9386
  //#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
9387
9387
  var init_style = __esmMin((() => {}));
9388
9388
  //#endregion
9389
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.7-beta.0_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_39aa7150ab8d68a2beeeb294d75bf9b7/node_modules/@gct-paas/form-base/dist/index.es.js
9389
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.7-beta.1_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_22b44e53706d5f9862124f6441dde5d2/node_modules/@gct-paas/form-base/dist/index.es.js
9390
9390
  function jo() {
9391
9391
  if (typeof globalThis < "u") {
9392
9392
  const e = globalThis._api;
@@ -9552,46 +9552,46 @@ function Pr(e) {
9552
9552
  var _u$children;
9553
9553
  u.rawValue && a.value.set(String(u.rawValue), u), (_u$children = u.children) === null || _u$children === void 0 || _u$children.forEach(n);
9554
9554
  }
9555
- function l(u, g, k) {
9556
- const v = k.__LABEL__ || k.version_, M = `${g}:${k.id_}`, q = {
9557
- key: M,
9555
+ function l(u, g, w) {
9556
+ const v = w.__LABEL__ || w.version_, R = `${g}:${w.id_}`, q = {
9557
+ key: R,
9558
9558
  title: v,
9559
9559
  displayLabel: `${u}:${v}`,
9560
- rawValue: M,
9561
- _info: k,
9562
- isDefault: !!k.default_
9560
+ rawValue: R,
9561
+ _info: w,
9562
+ isDefault: !!w.default_
9563
9563
  };
9564
9564
  return n(q), q;
9565
9565
  }
9566
9566
  function s(u = []) {
9567
9567
  return u.map((g) => {
9568
9568
  var _g$__CHILDREN__;
9569
- const k = g.__LABEL__ || g.name_, v = (_g$__CHILDREN__ = g.__CHILDREN__) === null || _g$__CHILDREN__ === void 0 ? void 0 : _g$__CHILDREN__.find((q) => q.default_), M = {
9569
+ const w = g.__LABEL__ || g.name_, v = (_g$__CHILDREN__ = g.__CHILDREN__) === null || _g$__CHILDREN__ === void 0 ? void 0 : _g$__CHILDREN__.find((q) => q.default_), R = {
9570
9570
  key: g.id_,
9571
- title: k,
9572
- displayLabel: k,
9571
+ title: w,
9572
+ displayLabel: w,
9573
9573
  rawValue: g.id_,
9574
9574
  _info: v,
9575
9575
  showDefaultTag: !!v,
9576
9576
  disabled: !0,
9577
- children: (g.__CHILDREN__ || []).map((q) => l(k, g.id_, q))
9577
+ children: (g.__CHILDREN__ || []).map((q) => l(w, g.id_, q))
9578
9578
  };
9579
- return n(M), M;
9579
+ return n(R), R;
9580
9580
  });
9581
9581
  }
9582
9582
  async function f(u = {}) {
9583
9583
  var _u$keyword, _e$getQueryData;
9584
- const g = u.pageNo ?? 1, k = u.pageSize ?? 30, v = ((_u$keyword = u.keyword) === null || _u$keyword === void 0 ? void 0 : _u$keyword.trim()) || void 0, M = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), q = await ka.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9584
+ const g = u.pageNo ?? 1, w = u.pageSize ?? 30, v = ((_u$keyword = u.keyword) === null || _u$keyword === void 0 ? void 0 : _u$keyword.trim()) || void 0, R = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), q = await ka.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9585
9585
  pageNo: g,
9586
- pageSize: k,
9586
+ pageSize: w,
9587
9587
  modelCategory: o,
9588
9588
  keyword: v,
9589
- queryData: M
9589
+ queryData: R
9590
9590
  }, () => Er(e.modelKey, o, {
9591
9591
  pageNo: g,
9592
- pageSize: k,
9592
+ pageSize: w,
9593
9593
  keyword: v,
9594
- queryData: M
9594
+ queryData: R
9595
9595
  }), 3e5);
9596
9596
  return {
9597
9597
  complete: (q === null || q === void 0 ? void 0 : q.totalPage) ? q.totalPage <= g : !0,
@@ -9607,30 +9607,30 @@ function Pr(e) {
9607
9607
  includeDeleted: 1
9608
9608
  }), 3e5)) === null || _await$ka$handleReque === void 0 || (_await$ka$handleReque = _await$ka$handleReque.data) === null || _await$ka$handleReque === void 0 ? void 0 : _await$ka$handleReque[0];
9609
9609
  if (!v) return null;
9610
- const M = v.__LABEL__ || v.name_;
9610
+ const R = v.__LABEL__ || v.name_;
9611
9611
  let q = [];
9612
9612
  try {
9613
9613
  var _await$xa;
9614
- q = (((_await$xa = await xa("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: g })) === null || _await$xa === void 0 ? void 0 : _await$xa.data) || []).map((A) => l(M, g, A));
9614
+ q = (((_await$xa = await xa("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: g })) === null || _await$xa === void 0 ? void 0 : _await$xa.data) || []).map((A) => l(R, g, A));
9615
9615
  } catch {
9616
9616
  q = [];
9617
9617
  }
9618
- const B = q.find((L) => L.isDefault), O = {
9618
+ const B = q.find((L) => L.isDefault), T = {
9619
9619
  key: g,
9620
- title: M,
9621
- displayLabel: M,
9620
+ title: R,
9621
+ displayLabel: R,
9622
9622
  rawValue: g,
9623
9623
  _info: B === null || B === void 0 ? void 0 : B._info,
9624
9624
  showDefaultTag: !!B,
9625
9625
  disabled: !0,
9626
9626
  children: q
9627
9627
  };
9628
- return n(O), O;
9628
+ return n(T), T;
9629
9629
  }
9630
9630
  async function r(u = {}) {
9631
9631
  var _t$value$at;
9632
- const g = u.pageNo ?? 1, { complete: k, nodes: v } = await f(u);
9633
- g > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...v)) : t.value = v, k || t.value.push({
9632
+ const g = u.pageNo ?? 1, { complete: w, nodes: v } = await f(u);
9633
+ g > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...v)) : t.value = v, w || t.value.push({
9634
9634
  key: `__load_more__:${g}`,
9635
9635
  title: "加载更多...",
9636
9636
  isLoadMore: !0,
@@ -9640,7 +9640,7 @@ function Pr(e) {
9640
9640
  async function h(u) {
9641
9641
  if (!u) return;
9642
9642
  const [g] = u.split(":");
9643
- if (a.value.has(u) || t.value.some((M) => M.key === g)) return;
9643
+ if (a.value.has(u) || t.value.some((R) => R.key === g)) return;
9644
9644
  const v = await i(u);
9645
9645
  v && t.value.unshift(v);
9646
9646
  }
@@ -9648,40 +9648,40 @@ function Pr(e) {
9648
9648
  return a.value.get(u) || t.value.find((g) => String(g.key) === u);
9649
9649
  }
9650
9650
  function d(u) {
9651
- var _k$children;
9652
- const [g] = u.split(":"), k = C(g || "");
9653
- return a.value.get(u) || (k === null || k === void 0 || (_k$children = k.children) === null || _k$children === void 0 ? void 0 : _k$children.find((v) => String(v.rawValue) === u));
9651
+ var _w$children;
9652
+ const [g] = u.split(":"), w = C(g || "");
9653
+ return a.value.get(u) || (w === null || w === void 0 || (_w$children = w.children) === null || _w$children === void 0 ? void 0 : _w$children.find((v) => String(v.rawValue) === u));
9654
9654
  }
9655
9655
  function m(u, g = !1) {
9656
9656
  if (!u) return { text: "" };
9657
- const [k, v] = u.split(":");
9658
- if (k && v) {
9657
+ const [w, v] = u.split(":");
9658
+ if (w && v) {
9659
9659
  const q = Ja(u, d, C);
9660
9660
  if (q) return q;
9661
9661
  }
9662
- if (k && !v && !g) {
9663
- const q = C(k);
9662
+ if (w && !v && !g) {
9663
+ const q = C(w);
9664
9664
  if (q) return {
9665
9665
  text: q.title,
9666
9666
  showDefaultTag: !0
9667
9667
  };
9668
9668
  }
9669
- const M = a.value.get(u);
9670
- return (M === null || M === void 0 ? void 0 : M.displayLabel) ? {
9671
- text: M.displayLabel,
9672
- showDefaultTag: !g && !!M.showDefaultTag
9669
+ const R = a.value.get(u);
9670
+ return (R === null || R === void 0 ? void 0 : R.displayLabel) ? {
9671
+ text: R.displayLabel,
9672
+ showDefaultTag: !g && !!R.showDefaultTag
9673
9673
  } : {
9674
9674
  text: u,
9675
9675
  showDefaultTag: !1
9676
9676
  };
9677
9677
  }
9678
- async function S(u, g = 9999, k = !1) {
9678
+ async function S(u, g = 9999, w = !1) {
9679
9679
  if (u) return t.value.length || await r({
9680
9680
  pageNo: 1,
9681
9681
  pageSize: g
9682
- }), await h(u), m(u, k);
9682
+ }), await h(u), m(u, w);
9683
9683
  }
9684
- function w() {
9684
+ function k() {
9685
9685
  t.value = [], a.value = /* @__PURE__ */ new Map();
9686
9686
  }
9687
9687
  return {
@@ -9692,7 +9692,7 @@ function Pr(e) {
9692
9692
  initByValue: S,
9693
9693
  findChildNode: d,
9694
9694
  findParentNode: C,
9695
- resetTreeData: w
9695
+ resetTreeData: k
9696
9696
  };
9697
9697
  }
9698
9698
  function Te(e) {
@@ -10132,14 +10132,14 @@ var init_index_es = __esmMin((() => {
10132
10132
  l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
10133
10133
  let s = Math.floor(a / 3);
10134
10134
  l.font = `${s}px Arial`;
10135
- const f = (m, S, w) => {
10135
+ const f = (m, S, k) => {
10136
10136
  const u = m.split(""), g = [];
10137
- let k = "";
10137
+ let w = "";
10138
10138
  for (const v of u) {
10139
- const M = k + v;
10140
- w.measureText(M).width > S && k ? (g.push(k), k = v) : k = M;
10139
+ const R = w + v;
10140
+ k.measureText(R).width > S && w ? (g.push(w), w = v) : w = R;
10141
10141
  }
10142
- return k && g.push(k), g;
10142
+ return w && g.push(w), g;
10143
10143
  }, i = t * .9;
10144
10144
  let r = f(o, i, l), h = s * 1.2;
10145
10145
  for (; r.length * h > a && s > 10;) s--, h = s * 1.2, l.font = `${s}px Arial`, r = f(o, i, l);
@@ -10316,8 +10316,8 @@ var init_index_es = __esmMin((() => {
10316
10316
  d.ctrlKey || d.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(d), l.value[n.value.axis] = d.currentTarget[n.value.offset] - (d[n.value.client] - d.currentTarget.getBoundingClientRect()[n.value.direction]));
10317
10317
  }, i = (d) => {
10318
10318
  var _o$vnode$el;
10319
- const w = (Math.abs(d.target.getBoundingClientRect()[n.value.direction] - d[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]);
10320
- a.value[n.value.scroll] = w * a.value[n.value.scrollSize] / 100;
10319
+ const k = (Math.abs(d.target.getBoundingClientRect()[n.value.direction] - d[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]);
10320
+ a.value[n.value.scroll] = k * a.value[n.value.scrollSize] / 100;
10321
10321
  }, r = (d) => {
10322
10322
  d.stopImmediatePropagation(), s.value = !0, ha(document, "mousemove", h$2), ha(document, "mouseup", C), document.onselectstart = () => !1;
10323
10323
  }, h$2 = (d) => {
@@ -10790,11 +10790,11 @@ var init_index_es = __esmMin((() => {
10790
10790
  "change"
10791
10791
  ],
10792
10792
  setup(e, { emit: o }) {
10793
- const t = e, a = o, n = ref(), l = ref(), s = ref(), f = ref(), i = ref(!1), r = ref(!1), h = ref(!1), C = ref({}), d = ref(!1), m = ref([]), S = ref(1), w = ref(""), u = ref(""), g = ref({ text: "" }), { treeData: k, loadOptions: v, ensureSelectedNode: M, getNodeDisplay: q, initByValue: B, findChildNode: O, findParentNode: L, resetTreeData: A } = Pr({
10793
+ const t = e, a = o, n = ref(), l = ref(), s = ref(), f = ref(), i = ref(!1), r = ref(!1), h = ref(!1), C = ref({}), d = ref(!1), m = ref([]), S = ref(1), k = ref(""), u = ref(""), g = ref({ text: "" }), { treeData: w, loadOptions: v, ensureSelectedNode: R, getNodeDisplay: q, initByValue: B, findChildNode: T, findParentNode: L, resetTreeData: A } = Pr({
10794
10794
  modelKey: t.modelKey,
10795
10795
  modelCategory: t.modelCategory,
10796
10796
  getQueryData: () => t.queryData
10797
- }), T = computed(() => t.modelValue || void 0), R = computed(() => g.value.text || ""), V = computed(() => t.allowClear && !t.disabled && !i.value && R.value && h.value ? "clear" : i.value ? "search" : "arrow"), U = computed(() => t.allowClear && !t.disabled && T.value && h.value ? "clear" : "arrow"), J = computed(() => t.disabledParent ? k.value : k.value.map((Y) => ({
10797
+ }), O = computed(() => t.modelValue || void 0), M = computed(() => g.value.text || ""), V = computed(() => t.allowClear && !t.disabled && !i.value && M.value && h.value ? "clear" : i.value ? "search" : "arrow"), U = computed(() => t.allowClear && !t.disabled && O.value && h.value ? "clear" : "arrow"), J = computed(() => t.disabledParent ? w.value : w.value.map((Y) => ({
10798
10798
  ...Y,
10799
10799
  disabled: !1
10800
10800
  })));
@@ -10802,14 +10802,14 @@ var init_index_es = __esmMin((() => {
10802
10802
  g.value = Y;
10803
10803
  }
10804
10804
  function E() {
10805
- if (!T.value) {
10805
+ if (!O.value) {
10806
10806
  oe({
10807
10807
  text: "",
10808
10808
  showDefaultTag: !1
10809
10809
  });
10810
10810
  return;
10811
10811
  }
10812
- const Y = q(T.value, t.parentToDefault);
10812
+ const Y = q(O.value, t.parentToDefault);
10813
10813
  Y.text && oe({
10814
10814
  text: Y.text,
10815
10815
  showDefaultTag: Y.showDefaultTag ?? !1
@@ -10818,15 +10818,15 @@ var init_index_es = __esmMin((() => {
10818
10818
  function X() {
10819
10819
  m.value = J.value.filter((Y) => !Y.isLoadMore).map((Y) => Y.key);
10820
10820
  }
10821
- async function le() {
10822
- if (!T.value) {
10821
+ async function ne() {
10822
+ if (!O.value) {
10823
10823
  oe({
10824
10824
  text: "",
10825
10825
  showDefaultTag: !1
10826
10826
  });
10827
10827
  return;
10828
10828
  }
10829
- const Y = await B(T.value, t.pageSize, t.parentToDefault);
10829
+ const Y = await B(O.value, t.pageSize, t.parentToDefault);
10830
10830
  if (Y === null || Y === void 0 ? void 0 : Y.text) {
10831
10831
  oe(Y);
10832
10832
  return;
@@ -10846,7 +10846,7 @@ var init_index_es = __esmMin((() => {
10846
10846
  }
10847
10847
  }
10848
10848
  const ue = debounce(() => {
10849
- u.value = w.value.trim(), me(!0);
10849
+ u.value = k.value.trim(), me(!0);
10850
10850
  }, 300);
10851
10851
  function Q() {
10852
10852
  if (!n.value) return;
@@ -10862,31 +10862,31 @@ var init_index_es = __esmMin((() => {
10862
10862
  async function Se(Y = {}) {
10863
10863
  const { forceRefresh: se = !1 } = Y;
10864
10864
  if (u.value) {
10865
- await me(!0), await M(T.value), E();
10865
+ await me(!0), await R(O.value), E();
10866
10866
  return;
10867
10867
  }
10868
10868
  if (se) {
10869
- A(), await me(!0), await M(T.value), E();
10869
+ A(), await me(!0), await R(O.value), E();
10870
10870
  return;
10871
10871
  }
10872
- if (!k.value.length) {
10873
- await me(!0), await M(T.value), E();
10872
+ if (!w.value.length) {
10873
+ await me(!0), await R(O.value), E();
10874
10874
  return;
10875
10875
  }
10876
- X(), E(), await M(T.value), E();
10876
+ X(), E(), await R(O.value), E();
10877
10877
  }
10878
10878
  async function ce() {
10879
10879
  var _l$value8;
10880
- t.disabled || (Q(), i.value = !0, w.value = "", u.value = "", await Se({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
10880
+ t.disabled || (Q(), i.value = !0, k.value = "", u.value = "", await Se({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
10881
10881
  }
10882
10882
  function Ie() {
10883
- ue.cancel(), i.value = !1, w.value = "", u.value = "";
10883
+ ue.cancel(), i.value = !1, k.value = "", u.value = "";
10884
10884
  }
10885
10885
  function kt() {
10886
10886
  t.disabled || i.value || ce();
10887
10887
  }
10888
10888
  function Lt(Y) {
10889
- w.value = Y.target.value, ue();
10889
+ k.value = Y.target.value, ue();
10890
10890
  }
10891
10891
  function Bt() {
10892
10892
  St(), Ie();
@@ -10927,11 +10927,11 @@ var init_index_es = __esmMin((() => {
10927
10927
  if (Y.disabled && t.disabledParent) return;
10928
10928
  const se = Nt(Y);
10929
10929
  if (!se.includes(":") && t.disabledParent) return;
10930
- const Ve = Mr(se, Y, O, L, t.parentToDefault);
10930
+ const Ve = Mr(se, Y, T, L, t.parentToDefault);
10931
10931
  oe(Ve), a("update:modelValue", se), a("update:fullPathValue", se), a("change", se, Y, Ve), t.showSearch ? Ie() : (_f$value = f.value) === null || _f$value === void 0 || (_f$value$hide = _f$value.hide) === null || _f$value$hide === void 0 || _f$value$hide.call(_f$value);
10932
10932
  }
10933
10933
  function St() {
10934
- ue.cancel(), w.value = "", u.value = "", oe({
10934
+ ue.cancel(), k.value = "", u.value = "", oe({
10935
10935
  text: "",
10936
10936
  showDefaultTag: !1
10937
10937
  }), a("update:modelValue", null), a("update:fullPathValue", null), a("change", null);
@@ -10941,12 +10941,12 @@ var init_index_es = __esmMin((() => {
10941
10941
  oe({
10942
10942
  text: "",
10943
10943
  showDefaultTag: !1
10944
- }), w.value = "";
10944
+ }), k.value = "";
10945
10945
  return;
10946
10946
  }
10947
- (t.showSearch ? i.value : r.value) || le();
10947
+ (t.showSearch ? i.value : r.value) || ne();
10948
10948
  }), onMounted(() => {
10949
- T.value && le(), t.showSearch && (document.addEventListener("click", tt, !0), window.addEventListener("resize", at), window.addEventListener("scroll", at, !0));
10949
+ O.value && ne(), t.showSearch && (document.addEventListener("click", tt, !0), window.addEventListener("resize", at), window.addEventListener("scroll", at, !0));
10950
10950
  }), onBeforeUnmount(() => {
10951
10951
  t.showSearch && (document.removeEventListener("click", tt, !0), window.removeEventListener("resize", at), window.removeEventListener("scroll", at, !0));
10952
10952
  }), (Y, se) => e.showSearch ? (openBlock(), createElementBlock("div", {
@@ -10959,17 +10959,17 @@ var init_index_es = __esmMin((() => {
10959
10959
  onClick: kt,
10960
10960
  onMouseenter: se[1] || (se[1] = (Ve) => h.value = !0),
10961
10961
  onMouseleave: se[2] || (se[2] = (Ve) => h.value = !1)
10962
- }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": i.value }]) }, [i.value ? (openBlock(), createElementBlock("div", Hr, [R.value && !w.value ? (openBlock(), createElementBlock("div", jr, [createElementVNode("span", Wr, toDisplayString(R.value), 1), g.value.showDefaultTag ? (openBlock(), createElementBlock("span", Zr, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10962
+ }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": i.value }]) }, [i.value ? (openBlock(), createElementBlock("div", Hr, [M.value && !k.value ? (openBlock(), createElementBlock("div", jr, [createElementVNode("span", Wr, toDisplayString(M.value), 1), g.value.showDefaultTag ? (openBlock(), createElementBlock("span", Zr, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10963
10963
  ref_key: "inputRef",
10964
10964
  ref: l,
10965
- class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!R.value && !w.value }]),
10965
+ class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!M.value && !k.value }]),
10966
10966
  type: "text",
10967
- value: w.value,
10968
- placeholder: R.value ? "" : e.placeholder,
10967
+ value: k.value,
10968
+ placeholder: M.value ? "" : e.placeholder,
10969
10969
  disabled: e.disabled,
10970
10970
  onInput: Lt,
10971
10971
  onKeydown: [withKeys(withModifiers(Ie, ["stop"]), ["esc"]), withKeys(Ie, ["tab"])]
10972
- }, null, 42, Gr)])) : (openBlock(), createElementBlock("span", Xr, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !R.value }]) }, toDisplayString(R.value || e.placeholder), 3), g.value.showDefaultTag ? (openBlock(), createElementBlock("span", Jr, "默认")) : createCommentVNode("", !0)]))], 2), V.value === "clear" ? (openBlock(), createElementBlock("span", {
10972
+ }, null, 42, Gr)])) : (openBlock(), createElementBlock("span", Xr, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !M.value }]) }, toDisplayString(M.value || e.placeholder), 3), g.value.showDefaultTag ? (openBlock(), createElementBlock("span", Jr, "默认")) : createCommentVNode("", !0)]))], 2), V.value === "clear" ? (openBlock(), createElementBlock("span", {
10973
10973
  key: 0,
10974
10974
  class: "rdo-tree-select__clear",
10975
10975
  onMousedown: se[0] || (se[0] = withModifiers(() => {}, ["prevent"])),
@@ -10996,7 +10996,7 @@ var init_index_es = __esmMin((() => {
10996
10996
  }, [createVNode(wa, {
10997
10997
  "display-tree-data": J.value,
10998
10998
  "expanded-keys": m.value,
10999
- "inner-value": T.value,
10999
+ "inner-value": O.value,
11000
11000
  loading: d.value,
11001
11001
  "disabled-parent": e.disabledParent,
11002
11002
  "parent-to-default": e.parentToDefault,
@@ -11030,7 +11030,7 @@ var init_index_es = __esmMin((() => {
11030
11030
  }, [createVNode(wa, {
11031
11031
  "display-tree-data": J.value,
11032
11032
  "expanded-keys": m.value,
11033
- "inner-value": T.value,
11033
+ "inner-value": O.value,
11034
11034
  loading: d.value,
11035
11035
  "disabled-parent": e.disabledParent,
11036
11036
  "parent-to-default": e.parentToDefault,
@@ -11181,7 +11181,7 @@ var init_index_es = __esmMin((() => {
11181
11181
  t.mask ? "" : "gct-form-base-modal--maskless",
11182
11182
  l.value ? "gct-form-base-modal--fullscreen" : ""
11183
11183
  ].filter(Boolean).join(" ")), d = computed(() => {
11184
- const { title: v, wrapClassName: M, ...q } = n;
11184
+ const { title: v, wrapClassName: R, ...q } = n;
11185
11185
  return q;
11186
11186
  }), m = computed(() => {
11187
11187
  if (!(!t.draggable || l.value) && !(s.x === 0 && s.y === 0)) return { transform: `translate(${s.x}px, ${s.y}px)` };
@@ -11189,7 +11189,7 @@ var init_index_es = __esmMin((() => {
11189
11189
  function S() {
11190
11190
  s.x = 0, s.y = 0;
11191
11191
  }
11192
- function w() {
11192
+ function k() {
11193
11193
  t.fullscreen && (l.value = !l.value, S());
11194
11194
  }
11195
11195
  function u(v) {
@@ -11198,10 +11198,10 @@ var init_index_es = __esmMin((() => {
11198
11198
  function g() {
11199
11199
  document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", g);
11200
11200
  }
11201
- function k(v) {
11201
+ function w(v) {
11202
11202
  if (!t.draggable || l.value || v.button !== 0) return;
11203
- const M = v.target;
11204
- M.closest(".ant-modal-header") && (M.closest([
11203
+ const R = v.target;
11204
+ R.closest(".ant-modal-header") && (R.closest([
11205
11205
  "button",
11206
11206
  "a",
11207
11207
  "input",
@@ -11216,7 +11216,7 @@ var init_index_es = __esmMin((() => {
11216
11216
  v && (l.value = !1, S());
11217
11217
  }), onBeforeUnmount(() => {
11218
11218
  g();
11219
- }), (v, M) => (openBlock(), createBlock(unref(Modal), mergeProps({
11219
+ }), (v, R) => (openBlock(), createBlock(unref(Modal), mergeProps({
11220
11220
  centered: "",
11221
11221
  "ok-text": "确定",
11222
11222
  "cancel-text": "取消",
@@ -11225,9 +11225,9 @@ var init_index_es = __esmMin((() => {
11225
11225
  visible: e.visible,
11226
11226
  mask: e.mask,
11227
11227
  "wrap-class-name": C.value,
11228
- onCancel: M[1] || (M[1] = (q) => a("cancel", q)),
11229
- onOk: M[2] || (M[2] = (q) => a("ok", q)),
11230
- onAfterClose: M[3] || (M[3] = (q) => a("afterClose"))
11228
+ onCancel: R[1] || (R[1] = (q) => a("cancel", q)),
11229
+ onOk: R[2] || (R[2] = (q) => a("ok", q)),
11230
+ onAfterClose: R[3] || (R[3] = (q) => a("afterClose"))
11231
11231
  }), createSlots({
11232
11232
  title: withCtx(() => [createElementVNode("div", Rf, [
11233
11233
  e.draggable ? (openBlock(), createElementBlock("img", {
@@ -11241,8 +11241,8 @@ var init_index_es = __esmMin((() => {
11241
11241
  type: "button",
11242
11242
  class: "form-base-modal__fullscreen",
11243
11243
  title: l.value ? "退出全屏" : "全屏",
11244
- onMousedown: M[0] || (M[0] = withModifiers(() => {}, ["stop"])),
11245
- onClick: withModifiers(w, ["stop"])
11244
+ onMousedown: R[0] || (R[0] = withModifiers(() => {}, ["stop"])),
11245
+ onClick: withModifiers(k, ["stop"])
11246
11246
  }, [createElementVNode("img", {
11247
11247
  src: l.value ? unref(Sf) : unref(xf),
11248
11248
  alt: ""
@@ -11251,7 +11251,7 @@ var init_index_es = __esmMin((() => {
11251
11251
  modalRender: withCtx(({ originVNode: q }) => [createElementVNode("div", {
11252
11252
  class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
11253
11253
  style: normalizeStyle(m.value),
11254
- onMousedown: k
11254
+ onMousedown: w
11255
11255
  }, [(openBlock(), createBlock(resolveDynamicComponent(q)))], 38)]),
11256
11256
  default: withCtx(() => [renderSlot(v.$slots, "default")]),
11257
11257
  _: 2
@@ -11290,14 +11290,14 @@ var init_index_es = __esmMin((() => {
11290
11290
  emits: ["update:formState"],
11291
11291
  setup(e) {
11292
11292
  const o = e, t = useModel(e, "formState"), a = ref([]), n = ref([]), l = ref([]), s = ref(!1), f = ref({}), i = /* @__PURE__ */ new WeakMap(), r = ref({}), h = ref(!1), C = ref(!1), d = ref(!1), m = ref({}), S = ref({});
11293
- let w = !1, u, g = !1, k, v = !1;
11294
- function M(I) {
11293
+ let k = !1, u, g = !1, w, v = !1;
11294
+ function R(I) {
11295
11295
  return [...new Set((I ?? "").split(",").map((H) => H.trim()).filter(Boolean))];
11296
11296
  }
11297
11297
  const q = computed(() => l.value.map((I) => ({
11298
11298
  ...I,
11299
- shopfloorIds: M(I.shopfloor_ids_)
11300
- }))), B = computed(() => new Map(q.value.map((I) => [I.id_, I]))), O = computed(() => q.value.filter((I) => I.operating_state_ === !0));
11299
+ shopfloorIds: R(I.shopfloor_ids_)
11300
+ }))), B = computed(() => new Map(q.value.map((I) => [I.id_, I]))), T = computed(() => q.value.filter((I) => I.operating_state_ === !0));
11301
11301
  function L(I) {
11302
11302
  return {
11303
11303
  label: I.name_ || I.code_ || I.id_,
@@ -11308,28 +11308,28 @@ var init_index_es = __esmMin((() => {
11308
11308
  function A(I, H) {
11309
11309
  return (H.searchText ?? H.label).toLowerCase().includes(I.trim().toLowerCase());
11310
11310
  }
11311
- function T(I) {
11312
- const H = O.value;
11313
- let ne;
11314
- if (!I.shopfloor_id_) ne = H.map(L);
11311
+ function O(I) {
11312
+ const H = T.value;
11313
+ let le;
11314
+ if (!I.shopfloor_id_) le = H.map(L);
11315
11315
  else {
11316
11316
  const we = f.value[I.__key], _e = (we === null || we === void 0 ? void 0 : we.shopfloorId) === I.shopfloor_id_ ? we.warehouses : H.filter((Ke) => Ke.shopfloorIds.includes(I.shopfloor_id_)), Je = H.filter((Ke) => !Ke.shopfloorIds.length);
11317
- ne = [...new Map([..._e, ...Je].map((Ke) => [Ke.id_, Ke])).values()].map(L);
11317
+ le = [...new Map([..._e, ...Je].map((Ke) => [Ke.id_, Ke])).values()].map(L);
11318
11318
  }
11319
11319
  const ge = B.value.get(I.warehouse_id_), de = ge ? L(ge) : a.value.find((we) => we.value === I.warehouse_id_);
11320
- return de ? E(ne, [de]) : ne;
11320
+ return de ? E(le, [de]) : le;
11321
11321
  }
11322
- function R(I) {
11322
+ function M(I) {
11323
11323
  var _B$value$get;
11324
- const H = ((_B$value$get = B.value.get(I.warehouse_id_)) === null || _B$value$get === void 0 ? void 0 : _B$value$get.shopfloorIds) ?? [], ne = n.value.filter((de) => de.enabled && (!H.length || H.includes(de.value))), ge = n.value.find((de) => de.value === I.shopfloor_id_);
11325
- return ge ? E(ne, [ge]) : ne;
11324
+ const H = ((_B$value$get = B.value.get(I.warehouse_id_)) === null || _B$value$get === void 0 ? void 0 : _B$value$get.shopfloorIds) ?? [], le = n.value.filter((de) => de.enabled && (!H.length || H.includes(de.value))), ge = n.value.find((de) => de.value === I.shopfloor_id_);
11325
+ return ge ? E(le, [ge]) : le;
11326
11326
  }
11327
11327
  function V(I) {
11328
11328
  const H = (i.get(I) ?? 0) + 1;
11329
11329
  return i.set(I, H), delete f.value[I.__key], () => !v && i.get(I) === H && t.value.consume_storage_entries_.includes(I) && t.value.consume_enabled_ !== !1 && t.value.consume_source_config_ !== "follow_common_policy";
11330
11330
  }
11331
- async function U(I, H, ne) {
11332
- if (await nextTick(), v || !ne()) return;
11331
+ async function U(I, H, le) {
11332
+ if (await nextTick(), v || !le()) return;
11333
11333
  const ge = t.value.consume_storage_entries_.indexOf(I), de = o.form;
11334
11334
  if (ge < 0 || !de || !H.length) return;
11335
11335
  const we = H.map((_e) => [
@@ -11341,8 +11341,8 @@ var init_index_es = __esmMin((() => {
11341
11341
  }
11342
11342
  async function J(I) {
11343
11343
  var _I$keyword, _ref;
11344
- const H = (_I$keyword = I.keyword) === null || _I$keyword === void 0 ? void 0 : _I$keyword.trim(), ne = { ...I.extraQuery ?? {} };
11345
- return H && (ne["name_.like"] = H, ne["code_.like"] = H), (((_ref = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11344
+ const H = (_I$keyword = I.keyword) === null || _I$keyword === void 0 ? void 0 : _I$keyword.trim(), le = { ...I.extraQuery ?? {} };
11345
+ return H && (le["name_.like"] = H, le["code_.like"] = H), (((_ref = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11346
11346
  modelCategory: lt,
11347
11347
  modelKey: I.modelKey,
11348
11348
  bsKey: "listByPage"
@@ -11351,7 +11351,7 @@ var init_index_es = __esmMin((() => {
11351
11351
  pageSize: 99,
11352
11352
  ...H ? { exp: "OR(name_.like,code_.like)" } : {},
11353
11353
  query: {
11354
- ...ne,
11354
+ ...le,
11355
11355
  "operating_state_.eq": !0
11356
11356
  }
11357
11357
  }) || {}) === null || _ref === void 0 ? void 0 : _ref.data) ?? []).map((de) => ({
@@ -11361,34 +11361,34 @@ var init_index_es = __esmMin((() => {
11361
11361
  }
11362
11362
  async function oe(I, H) {
11363
11363
  var _ref2;
11364
- const ne = [...new Set(H.filter(Boolean))];
11365
- return ne.length ? (((_ref2 = await ie.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11364
+ const le = [...new Set(H.filter(Boolean))];
11365
+ return le.length ? (((_ref2 = await ie.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11366
11366
  modelCategory: lt,
11367
11367
  modelKey: I,
11368
11368
  bsKey: "listByIds"
11369
- }, { ids: ne.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((de) => ({
11369
+ }, { ids: le.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((de) => ({
11370
11370
  label: de.name_ || de.code_,
11371
11371
  value: de.id_
11372
11372
  })) : [];
11373
11373
  }
11374
11374
  function E(I, H) {
11375
- const ne = /* @__PURE__ */ new Map();
11375
+ const le = /* @__PURE__ */ new Map();
11376
11376
  return [...I, ...H].forEach((ge) => {
11377
- (ge === null || ge === void 0 ? void 0 : ge.value) != null && ne.set(String(ge.value), ge);
11378
- }), Array.from(ne.values());
11377
+ (ge === null || ge === void 0 ? void 0 : ge.value) != null && le.set(String(ge.value), ge);
11378
+ }), Array.from(le.values());
11379
11379
  }
11380
- async function X(I, H, ne) {
11381
- const ge = [...new Set(ne.filter(Boolean))].filter((we) => !H.some((_e) => _e.value === we));
11380
+ async function X(I, H, le) {
11381
+ const ge = [...new Set(le.filter(Boolean))].filter((we) => !H.some((_e) => _e.value === we));
11382
11382
  if (!ge.length) return H;
11383
11383
  return E(H, await oe(I, ge));
11384
11384
  }
11385
- function le() {
11385
+ function ne() {
11386
11386
  return [t.value.default_warehouse_id_, ...(t.value.consume_storage_entries_ ?? []).map((I) => I.warehouse_id_)];
11387
11387
  }
11388
11388
  function me(I) {
11389
11389
  const H = [];
11390
- return t.value.default_warehouse_id_ === I && H.push(t.value.default_location_id_), (t.value.consume_storage_entries_ ?? []).forEach((ne) => {
11391
- ne.warehouse_id_ === I && H.push(ne.location_id_);
11390
+ return t.value.default_warehouse_id_ === I && H.push(t.value.default_location_id_), (t.value.consume_storage_entries_ ?? []).forEach((le) => {
11391
+ le.warehouse_id_ === I && H.push(le.location_id_);
11392
11392
  }), H;
11393
11393
  }
11394
11394
  async function ue(I) {
@@ -11398,15 +11398,15 @@ var init_index_es = __esmMin((() => {
11398
11398
  modelKey: "em_warehouse",
11399
11399
  keyword: I
11400
11400
  });
11401
- a.value = await X("em_warehouse", H, le());
11401
+ a.value = await X("em_warehouse", H, ne());
11402
11402
  } finally {
11403
11403
  h.value = !1;
11404
11404
  }
11405
11405
  }
11406
11406
  async function Q() {
11407
- if (k) return k;
11407
+ if (w) return w;
11408
11408
  if (!g) {
11409
- C.value = !0, k = (async () => {
11409
+ C.value = !0, w = (async () => {
11410
11410
  const I = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11411
11411
  modelCategory: lt,
11412
11412
  modelKey: "em_shopfloor",
@@ -11420,9 +11420,9 @@ var init_index_es = __esmMin((() => {
11420
11420
  })), g = !0);
11421
11421
  })();
11422
11422
  try {
11423
- await k;
11423
+ await w;
11424
11424
  } finally {
11425
- k = void 0, C.value = !1;
11425
+ w = void 0, C.value = !1;
11426
11426
  }
11427
11427
  }
11428
11428
  }
@@ -11430,14 +11430,14 @@ var init_index_es = __esmMin((() => {
11430
11430
  if (H) {
11431
11431
  d.value = !0;
11432
11432
  try {
11433
- const ne = await J({
11433
+ const le = await J({
11434
11434
  modelKey: "em_location",
11435
11435
  keyword: I,
11436
11436
  extraQuery: { "warehouse_id_.eq": H }
11437
11437
  });
11438
11438
  r.value = {
11439
11439
  ...r.value,
11440
- [H]: await X("em_location", ne, me(H))
11440
+ [H]: await X("em_location", le, me(H))
11441
11441
  };
11442
11442
  } finally {
11443
11443
  d.value = !1;
@@ -11451,7 +11451,7 @@ var init_index_es = __esmMin((() => {
11451
11451
  Q(),
11452
11452
  Mt()
11453
11453
  ]), v) return;
11454
- const I = [...new Set(le().filter(Boolean))];
11454
+ const I = [...new Set(ne().filter(Boolean))];
11455
11455
  await Promise.all(I.map((H) => Se("", H)));
11456
11456
  } catch {
11457
11457
  v || message.error("消耗库存选项加载失败,请重试");
@@ -11509,20 +11509,20 @@ var init_index_es = __esmMin((() => {
11509
11509
  t.value.default_location_id_ = void 0, t.value.default_warehouse_id_ && Se("", t.value.default_warehouse_id_);
11510
11510
  }
11511
11511
  async function Ct(I) {
11512
- const H = V(I), ne = I.shopfloor_id_;
11513
- if (ne) try {
11512
+ const H = V(I), le = I.shopfloor_id_;
11513
+ if (le) try {
11514
11514
  const [, ge] = await Promise.all([Mt(), ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11515
11515
  modelCategory: lt,
11516
11516
  modelKey: "em_warehouse",
11517
11517
  bsKey: "listAll"
11518
11518
  }, {}, { query: {
11519
11519
  "operating_state_.eq": !0,
11520
- "shopfloor_ids_.containAny": [ne]
11520
+ "shopfloor_ids_.containAny": [le]
11521
11521
  } })]);
11522
11522
  if (!H()) return;
11523
- const de = ((ge === null || ge === void 0 ? void 0 : ge.data) ?? []).filter((_e) => _e.operating_state_ === !0 && M(_e.shopfloor_ids_).includes(ne));
11523
+ const de = ((ge === null || ge === void 0 ? void 0 : ge.data) ?? []).filter((_e) => _e.operating_state_ === !0 && R(_e.shopfloor_ids_).includes(le));
11524
11524
  f.value[I.__key] = {
11525
- shopfloorId: ne,
11525
+ shopfloorId: le,
11526
11526
  warehouses: de
11527
11527
  };
11528
11528
  const we = new Map(l.value.map((_e) => [_e.id_, _e]));
@@ -11546,14 +11546,14 @@ var init_index_es = __esmMin((() => {
11546
11546
  }
11547
11547
  }
11548
11548
  async function Nt(I) {
11549
- const H = V(I), ne = I.warehouse_id_;
11549
+ const H = V(I), le = I.warehouse_id_;
11550
11550
  I.location_id_ = void 0;
11551
11551
  try {
11552
11552
  var _B$value$get2;
11553
11553
  if (await Promise.all([Mt(), Q()]), !H()) return;
11554
- const ge = ((_B$value$get2 = B.value.get(ne)) === null || _B$value$get2 === void 0 ? void 0 : _B$value$get2.shopfloorIds) ?? [];
11554
+ const ge = ((_B$value$get2 = B.value.get(le)) === null || _B$value$get2 === void 0 ? void 0 : _B$value$get2.shopfloorIds) ?? [];
11555
11555
  if (ge.length && (ge.includes(I.shopfloor_id_) || (I.shopfloor_id_ = ge[0]), await U(I, ["shopfloor_id_"], H), !H())) return;
11556
- ne && await Se("", ne);
11556
+ le && await Se("", le);
11557
11557
  } catch {
11558
11558
  H() && message.error("加载仓库关联数据失败,请重试");
11559
11559
  }
@@ -11610,14 +11610,14 @@ var init_index_es = __esmMin((() => {
11610
11610
  }
11611
11611
  async function Mt(I = !1) {
11612
11612
  if (u) return u;
11613
- if (!(w && !I)) {
11613
+ if (!(k && !I)) {
11614
11614
  s.value = !0, u = (async () => {
11615
11615
  const H = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11616
11616
  modelCategory: lt,
11617
11617
  modelKey: "em_warehouse",
11618
11618
  bsKey: "listAll"
11619
11619
  }, {}, {});
11620
- v || (l.value = (H === null || H === void 0 ? void 0 : H.data) ?? [], S.value = Object.fromEntries(l.value.map((ne) => [ne.id_, ne.location_management_enabled_])), f.value = {}, w = !0);
11620
+ v || (l.value = (H === null || H === void 0 ? void 0 : H.data) ?? [], S.value = Object.fromEntries(l.value.map((le) => [le.id_, le.location_management_enabled_])), f.value = {}, k = !0);
11621
11621
  })();
11622
11622
  try {
11623
11623
  await u;
@@ -11631,7 +11631,7 @@ var init_index_es = __esmMin((() => {
11631
11631
  }), onBeforeUnmount(() => {
11632
11632
  v = !0, Ie.cancel(), kt.cancel();
11633
11633
  }), (I, H) => {
11634
- const ne = resolveComponent("a-radio"), ge = resolveComponent("a-radio-group"), de = resolveComponent("a-form-item"), we = resolveComponent("a-select"), _e = resolveComponent("a-col"), Je = resolveComponent("a-row"), da = resolveComponent("a-button"), Ke = resolveComponent("a-table");
11634
+ const le = resolveComponent("a-radio"), ge = resolveComponent("a-radio-group"), de = resolveComponent("a-form-item"), we = resolveComponent("a-select"), _e = resolveComponent("a-col"), Je = resolveComponent("a-row"), da = resolveComponent("a-button"), Ke = resolveComponent("a-table");
11635
11635
  return openBlock(), createElementBlock(Fragment, null, [createVNode(de, {
11636
11636
  label: I.$t("sys.edhr.mcTable.consumeEnabled"),
11637
11637
  name: "consume_enabled_",
@@ -11642,10 +11642,10 @@ var init_index_es = __esmMin((() => {
11642
11642
  "onUpdate:value": H[0] || (H[0] = (ke) => t.value.consume_enabled_ = ke),
11643
11643
  onChange: Ro
11644
11644
  }, {
11645
- default: withCtx(() => [createVNode(ne, { value: !0 }, {
11645
+ default: withCtx(() => [createVNode(le, { value: !0 }, {
11646
11646
  default: withCtx(() => [createTextVNode(toDisplayString(I.$t("sys.true")), 1)]),
11647
11647
  _: 1
11648
- }), createVNode(ne, { value: !1 }, {
11648
+ }), createVNode(le, { value: !1 }, {
11649
11649
  default: withCtx(() => [createTextVNode(toDisplayString(I.$t("sys.false")), 1)]),
11650
11650
  _: 1
11651
11651
  })]),
@@ -11770,7 +11770,7 @@ var init_index_es = __esmMin((() => {
11770
11770
  "allow-clear": "",
11771
11771
  "filter-option": A,
11772
11772
  placeholder: I.$t("sys.chooseText"),
11773
- options: R(Me),
11773
+ options: M(Me),
11774
11774
  loading: C.value,
11775
11775
  disabled: t.value.consume_source_config_ === "follow_common_policy",
11776
11776
  onFocus: St,
@@ -11803,7 +11803,7 @@ var init_index_es = __esmMin((() => {
11803
11803
  "allow-clear": "",
11804
11804
  "filter-option": A,
11805
11805
  placeholder: I.$t("sys.chooseText"),
11806
- options: T(Me),
11806
+ options: O(Me),
11807
11807
  loading: s.value,
11808
11808
  disabled: t.value.consume_source_config_ === "follow_common_policy",
11809
11809
  onFocus: xt,
@@ -12106,11 +12106,11 @@ var init_index_es = __esmMin((() => {
12106
12106
  await ((_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate());
12107
12107
  }
12108
12108
  return o({ validate: f }), (i, r) => {
12109
- const h = resolveComponent("a-select"), C = resolveComponent("a-form-item"), d = resolveComponent("a-switch"), m = resolveComponent("a-radio"), S = resolveComponent("a-radio-group"), w = resolveComponent("a-form");
12109
+ const h = resolveComponent("a-select"), C = resolveComponent("a-form-item"), d = resolveComponent("a-switch"), m = resolveComponent("a-radio"), S = resolveComponent("a-radio-group"), k = resolveComponent("a-form");
12110
12110
  return openBlock(), createElementBlock("div", null, [createVNode(unref(ve), null, {
12111
12111
  default: withCtx(() => [...r[5] || (r[5] = [createTextVNode("用料策略", -1)])]),
12112
12112
  _: 1
12113
- }), createVNode(w, {
12113
+ }), createVNode(k, {
12114
12114
  ref_key: "formRef",
12115
12115
  ref: n,
12116
12116
  model: a.value,
@@ -12248,43 +12248,43 @@ var init_index_es = __esmMin((() => {
12248
12248
  }]
12249
12249
  }), h = computed(() => !!t.bizOptions.editingItem), C = computed(() => !!Object.keys(i.value.parseRuleProps || {}).length), d = computed(() => t.bizOptions.objectFields.filter((v) => {
12250
12250
  var _t$bizOptions$configu, _t$bizOptions$configu2;
12251
- return h.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((M) => M.objectField === v.key));
12251
+ return h.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((R) => R.objectField === v.key));
12252
12252
  }).map((v) => ({
12253
12253
  label: v.name,
12254
12254
  value: v.key
12255
- }))), m = computed(() => i.value.objectField ? t.bizOptions.allFields.filter((k) => k.type === oa.REF && k.bizType === Ha.BOM_ENTRY_ID ? !1 : k.belongingObject === i.value.objectField) : []), S = computed(() => m.value.map((k) => ({
12256
- key: k.key,
12257
- name: k.name,
12258
- field: k
12259
- }))), w = (k, v) => {
12255
+ }))), m = computed(() => i.value.objectField ? t.bizOptions.allFields.filter((w) => w.type === oa.REF && w.bizType === Ha.BOM_ENTRY_ID ? !1 : w.belongingObject === i.value.objectField) : []), S = computed(() => m.value.map((w) => ({
12256
+ key: w.key,
12257
+ name: w.name,
12258
+ field: w
12259
+ }))), k = (w, v) => {
12260
12260
  i.value.values = {
12261
12261
  ...i.value.values,
12262
- [k]: v
12262
+ [w]: v
12263
12263
  };
12264
12264
  }, u = () => {
12265
12265
  G2("PARSE_RULE_MODAL", {
12266
12266
  config: i.value.parseRuleProps,
12267
- formFieldOptions: m.value.map((k) => ({
12268
- label: k.name,
12269
- value: k.key
12267
+ formFieldOptions: m.value.map((w) => ({
12268
+ label: w.name,
12269
+ value: w.key
12270
12270
  })),
12271
12271
  formFieldsLabel: "对象字段",
12272
12272
  ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
12273
- }).then((k) => {
12274
- k.success && (i.value.parseRuleProps = k.result ?? {});
12273
+ }).then((w) => {
12274
+ w.success && (i.value.parseRuleProps = w.result ?? {});
12275
12275
  });
12276
12276
  };
12277
- watch(() => t.bizOptions.editingItem, (k) => {
12278
- if (!k) return;
12279
- const v = f(), M = cloneDeep(k);
12277
+ watch(() => t.bizOptions.editingItem, (w) => {
12278
+ if (!w) return;
12279
+ const v = f(), R = cloneDeep(w);
12280
12280
  i.value = {
12281
12281
  ...v,
12282
- ...M,
12283
- values: M.values ?? v.values,
12284
- parseRuleProps: M.parseRuleProps ?? v.parseRuleProps,
12285
- consume_source_config_: M.consume_source_config_ ?? v.consume_source_config_,
12286
- qty_validation_rule_: M.qty_validation_rule_ ?? v.qty_validation_rule_,
12287
- consume_storage_entries_: (M.consume_storage_entries_ ?? []).map((q) => ({
12282
+ ...R,
12283
+ values: R.values ?? v.values,
12284
+ parseRuleProps: R.parseRuleProps ?? v.parseRuleProps,
12285
+ consume_source_config_: R.consume_source_config_ ?? v.consume_source_config_,
12286
+ qty_validation_rule_: R.qty_validation_rule_ ?? v.qty_validation_rule_,
12287
+ consume_storage_entries_: (R.consume_storage_entries_ ?? []).map((q) => ({
12288
12288
  ...q,
12289
12289
  __key: q.__key || Ze(8)
12290
12290
  }))
@@ -12297,16 +12297,16 @@ var init_index_es = __esmMin((() => {
12297
12297
  } catch {
12298
12298
  return;
12299
12299
  }
12300
- const k = t.bizOptions.objectFields.find((v) => v.key === i.value.objectField);
12301
- i.value.objectFieldName = k === null || k === void 0 ? void 0 : k.name, i.value.objectBizType = k === null || k === void 0 ? void 0 : k.bizType, t.modalInst.confirm(i.value);
12300
+ const w = t.bizOptions.objectFields.find((v) => v.key === i.value.objectField);
12301
+ i.value.objectFieldName = w === null || w === void 0 ? void 0 : w.name, i.value.objectBizType = w === null || w === void 0 ? void 0 : w.bizType, t.modalInst.confirm(i.value);
12302
12302
  };
12303
- return (k, v) => {
12304
- const M = resolveComponent("a-select"), q = resolveComponent("a-form-item"), B = resolveComponent("a-form"), O = resolveComponent("a-switch"), L = resolveComponent("a-button"), A = resolveComponent("a-select-option");
12303
+ return (w, v) => {
12304
+ const R = resolveComponent("a-select"), q = resolveComponent("a-form-item"), B = resolveComponent("a-form"), T = resolveComponent("a-switch"), L = resolveComponent("a-button"), A = resolveComponent("a-select-option");
12305
12305
  return openBlock(), createBlock(wt, mergeProps(e.modalProps, {
12306
12306
  visible: e.modalVisible,
12307
12307
  onCancel: e.modalInst.cancel,
12308
12308
  onOk: g,
12309
- onAfterClose: v[4] || (v[4] = (T) => a("afterClose"))
12309
+ onAfterClose: v[4] || (v[4] = (O) => a("afterClose"))
12310
12310
  }), {
12311
12311
  default: withCtx(() => [
12312
12312
  createVNode(B, {
@@ -12321,9 +12321,9 @@ var init_index_es = __esmMin((() => {
12321
12321
  name: "objectField",
12322
12322
  required: ""
12323
12323
  }, {
12324
- default: withCtx(() => [createVNode(M, {
12324
+ default: withCtx(() => [createVNode(R, {
12325
12325
  value: i.value.objectField,
12326
- "onUpdate:value": v[0] || (v[0] = (T) => i.value.objectField = T),
12326
+ "onUpdate:value": v[0] || (v[0] = (O) => i.value.objectField = O),
12327
12327
  placeholder: "请选择",
12328
12328
  options: d.value,
12329
12329
  disabled: h.value
@@ -12343,11 +12343,11 @@ var init_index_es = __esmMin((() => {
12343
12343
  class: "object-table",
12344
12344
  data: S.value
12345
12345
  }, r.value), {
12346
- value_default: withCtx(({ row: T }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12346
+ value_default: withCtx(({ row: O }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12347
12347
  key: 0,
12348
- field: T.field,
12349
- modelValue: i.value.values[T.key],
12350
- "onUpdate:modelValue": (R) => w(T.key, R)
12348
+ field: O.field,
12349
+ modelValue: i.value.values[O.key],
12350
+ "onUpdate:modelValue": (M) => k(O.key, M)
12351
12351
  }, null, 8, [
12352
12352
  "field",
12353
12353
  "modelValue",
@@ -12367,10 +12367,10 @@ var init_index_es = __esmMin((() => {
12367
12367
  label: "是否启用条码解析规则",
12368
12368
  name: "disableBarcodeParsing"
12369
12369
  }, {
12370
- default: withCtx(() => [createVNode(O, {
12370
+ default: withCtx(() => [createVNode(T, {
12371
12371
  size: "small",
12372
12372
  checked: !i.value.disableBarcodeParsing,
12373
- onChange: v[1] || (v[1] = (T) => i.value.disableBarcodeParsing = !i.value.disableBarcodeParsing)
12373
+ onChange: v[1] || (v[1] = (O) => i.value.disableBarcodeParsing = !i.value.disableBarcodeParsing)
12374
12374
  }, null, 8, ["checked"])]),
12375
12375
  _: 1
12376
12376
  }), i.value.disableBarcodeParsing ? (openBlock(), createBlock(q, {
@@ -12382,16 +12382,16 @@ var init_index_es = __esmMin((() => {
12382
12382
  message: "请选择参数"
12383
12383
  }]
12384
12384
  }, {
12385
- default: withCtx(() => [createVNode(M, {
12385
+ default: withCtx(() => [createVNode(R, {
12386
12386
  value: i.value.scanParamType,
12387
- "onUpdate:value": v[2] || (v[2] = (T) => i.value.scanParamType = T),
12388
- placeholder: k.$t("sys.chooseText")
12387
+ "onUpdate:value": v[2] || (v[2] = (O) => i.value.scanParamType = O),
12388
+ placeholder: w.$t("sys.chooseText")
12389
12389
  }, {
12390
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(Xt)), (T) => (openBlock(), createBlock(A, {
12391
- key: T,
12392
- value: T
12390
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(Xt)), (O) => (openBlock(), createBlock(A, {
12391
+ key: O,
12392
+ value: O
12393
12393
  }, {
12394
- default: withCtx(() => [createTextVNode(toDisplayString(k.$t(`sys.ScanParamType.${T}`)), 1)]),
12394
+ default: withCtx(() => [createTextVNode(toDisplayString(w.$t(`sys.ScanParamType.${O}`)), 1)]),
12395
12395
  _: 2
12396
12396
  }, 1032, ["value"]))), 128))]),
12397
12397
  _: 1
@@ -12413,7 +12413,7 @@ var init_index_es = __esmMin((() => {
12413
12413
  ref_key: "materialStrategyRef",
12414
12414
  ref: l,
12415
12415
  "form-state": i.value,
12416
- "onUpdate:formState": v[3] || (v[3] = (T) => i.value = T),
12416
+ "onUpdate:formState": v[3] || (v[3] = (O) => i.value = O),
12417
12417
  showConsumePolicy: e.bizOptions.showConsumePolicy,
12418
12418
  hasBomCofig: e.bizOptions.showMaterialStrategy
12419
12419
  }, null, 8, [
@@ -12515,9 +12515,9 @@ var init_index_es = __esmMin((() => {
12515
12515
  i.value = [], n("ruleConfigChange", void 0);
12516
12516
  return;
12517
12517
  }
12518
- i.value = g.fieldList.map((k) => ({
12519
- label: k.alias ?? $t(`sys.edhr.labelConfigFields.${k.type}`),
12520
- value: k.key
12518
+ i.value = g.fieldList.map((w) => ({
12519
+ label: w.alias ?? $t(`sys.edhr.labelConfigFields.${w.type}`),
12520
+ value: w.key
12521
12521
  })), n("ruleConfigChange", g);
12522
12522
  }, d = (u) => {
12523
12523
  if (a.disabled) return;
@@ -12527,9 +12527,9 @@ var init_index_es = __esmMin((() => {
12527
12527
  a.disabled || (r.fillMapArr.push({ formFields: [] }), h());
12528
12528
  }, S = (u) => {
12529
12529
  a.disabled || (r.fillMapArr.splice(u, 1), h());
12530
- }, w = (u, g) => {
12531
- const k = u.trim().toLowerCase();
12532
- return k ? g.label.toLowerCase().includes(k) || String(g.value ?? "").toLowerCase().includes(k) : !0;
12530
+ }, k = (u, g) => {
12531
+ const w = u.trim().toLowerCase();
12532
+ return w ? g.label.toLowerCase().includes(w) || String(g.value ?? "").toLowerCase().includes(w) : !0;
12533
12533
  };
12534
12534
  return onMounted(() => {
12535
12535
  r.parsingRuleId && C(r.parsingRuleId);
@@ -12537,14 +12537,14 @@ var init_index_es = __esmMin((() => {
12537
12537
  var _s$value6;
12538
12538
  return (_s$value6 = s.value) === null || _s$value6 === void 0 ? void 0 : _s$value6.validate();
12539
12539
  } }), (u, g) => {
12540
- const k = resolveComponent("a-form-item"), v = resolveComponent("a-alert"), M = resolveComponent("a-select"), q = resolveComponent("a-button"), B = resolveComponent("a-form");
12540
+ const w = resolveComponent("a-form-item"), v = resolveComponent("a-alert"), R = resolveComponent("a-select"), q = resolveComponent("a-button"), B = resolveComponent("a-form");
12541
12541
  return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(B, {
12542
12542
  ref_key: "formRef",
12543
12543
  ref: s,
12544
12544
  model: r,
12545
12545
  layout: "horizontal"
12546
12546
  }, {
12547
- default: withCtx(() => [createVNode(k, {
12547
+ default: withCtx(() => [createVNode(w, {
12548
12548
  class: "field-mapping__rule",
12549
12549
  label: u.$t("sys.edhr.mcTable.parseRule") + ":",
12550
12550
  name: "parsingRuleId"
@@ -12560,7 +12560,7 @@ var init_index_es = __esmMin((() => {
12560
12560
  }, null, 8, ["model-value", "disabled"]), e.collapsible ? (openBlock(), createElementBlock("div", {
12561
12561
  key: 0,
12562
12562
  class: "field-mapping__expand primary-gct",
12563
- onClick: g[0] || (g[0] = (O) => f.value = !f.value)
12563
+ onClick: g[0] || (g[0] = (T) => f.value = !f.value)
12564
12564
  }, [createTextVNode(toDisplayString(f.value ? u.$t("sys.collapseConfig") : u.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", f.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
12565
12565
  _: 1
12566
12566
  }, 8, ["label"]), withDirectives(createElementVNode("div", null, [
@@ -12577,11 +12577,11 @@ var init_index_es = __esmMin((() => {
12577
12577
  }, null, 8, ["message"])])) : createCommentVNode("", !0),
12578
12578
  createElementVNode("div", s2, [
12579
12579
  r.fillMapArr.length ? (openBlock(), createElementBlock("div", r2, [createElementVNode("div", i2, toDisplayString(u.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", u2, toDisplayString(e.formFieldsLabel || u.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
12580
- createElementVNode("div", c2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (O, L) => (openBlock(), createElementBlock("div", {
12580
+ createElementVNode("div", c2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (T, L) => (openBlock(), createElementBlock("div", {
12581
12581
  key: L,
12582
12582
  class: "field-mapping__row"
12583
12583
  }, [
12584
- createVNode(k, {
12584
+ createVNode(w, {
12585
12585
  class: "field-mapping__barcodeField",
12586
12586
  name: [
12587
12587
  "fillMapArr",
@@ -12593,9 +12593,9 @@ var init_index_es = __esmMin((() => {
12593
12593
  message: u.$t("sys.chooseText")
12594
12594
  }]
12595
12595
  }, {
12596
- default: withCtx(() => [createVNode(M, {
12597
- value: O.barcodeField,
12598
- "onUpdate:value": (A) => O.barcodeField = A,
12596
+ default: withCtx(() => [createVNode(R, {
12597
+ value: T.barcodeField,
12598
+ "onUpdate:value": (A) => T.barcodeField = A,
12599
12599
  placeholder: u.$t("sys.chooseText"),
12600
12600
  options: i.value,
12601
12601
  disabled: e.disabled,
@@ -12610,7 +12610,7 @@ var init_index_es = __esmMin((() => {
12610
12610
  _: 2
12611
12611
  }, 1032, ["name", "rules"]),
12612
12612
  g[1] || (g[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
12613
- createVNode(k, {
12613
+ createVNode(w, {
12614
12614
  class: "field-mapping__formFields",
12615
12615
  name: [
12616
12616
  "fillMapArr",
@@ -12624,15 +12624,15 @@ var init_index_es = __esmMin((() => {
12624
12624
  message: u.$t("sys.chooseText")
12625
12625
  }]
12626
12626
  }, {
12627
- default: withCtx(() => [createVNode(M, {
12628
- value: O.formFields,
12629
- "onUpdate:value": (A) => O.formFields = A,
12627
+ default: withCtx(() => [createVNode(R, {
12628
+ value: T.formFields,
12629
+ "onUpdate:value": (A) => T.formFields = A,
12630
12630
  mode: "multiple",
12631
12631
  "allow-clear": "",
12632
12632
  "show-search": "",
12633
12633
  placeholder: u.$t("sys.chooseText"),
12634
12634
  options: e.formFieldOptions,
12635
- "filter-option": w,
12635
+ "filter-option": k,
12636
12636
  disabled: e.disabled,
12637
12637
  onChange: h
12638
12638
  }, null, 8, [
@@ -12706,11 +12706,11 @@ var init_index_es = __esmMin((() => {
12706
12706
  parsedValue: C,
12707
12707
  transformedData: d,
12708
12708
  type: t.bizOptions.showScanAdjustBtn ? n.value : void 0
12709
- }, w = await t.bizOptions.onScan(S);
12710
- s.value.str = "", w && t.modalInst.cancel();
12709
+ }, k = await t.bizOptions.onScan(S);
12710
+ s.value.str = "", k && t.modalInst.cancel();
12711
12711
  };
12712
12712
  return (C, d) => {
12713
- const m = resolveComponent("a-input"), S = resolveComponent("a-form-item"), w = resolveComponent("a-form"), u = resolveComponent("a-divider");
12713
+ const m = resolveComponent("a-input"), S = resolveComponent("a-form-item"), k = resolveComponent("a-form"), u = resolveComponent("a-divider");
12714
12714
  return openBlock(), createBlock(wt, mergeProps(t.modalProps, {
12715
12715
  class: "gct-form-base-modal-common-scan",
12716
12716
  visible: t.modalVisible,
@@ -12731,7 +12731,7 @@ var init_index_es = __esmMin((() => {
12731
12731
  class: normalizeClass(["bg-radio-item", [n.value === "minus" && "active"]]),
12732
12732
  onClick: d[1] || (d[1] = (g) => i("minus"))
12733
12733
  }, [...d[7] || (d[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
12734
- createVNode(w, {
12734
+ createVNode(k, {
12735
12735
  ref: "formRef",
12736
12736
  model: s.value,
12737
12737
  layout: "horizontal"
@@ -12829,38 +12829,38 @@ var init_index_es = __esmMin((() => {
12829
12829
  width: 88
12830
12830
  }
12831
12831
  ];
12832
- function l(w) {
12833
- return w ? w.split(":")[0] : "";
12832
+ function l(k) {
12833
+ return k ? k.split(":")[0] : "";
12834
12834
  }
12835
- function s(w, u) {
12836
- return !w || !u ? !1 : w === u ? !0 : l(w) === l(u);
12835
+ function s(k, u) {
12836
+ return !k || !u ? !1 : k === u ? !0 : l(k) === l(u);
12837
12837
  }
12838
- function f(w, u) {
12838
+ function f(k, u) {
12839
12839
  var _o$hasIds;
12840
- const g = u ?? w.product_id_;
12841
- return g ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(g)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(g, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((v) => v.__key !== w.__key && s(v.product_id_, g)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12840
+ const g = u ?? k.product_id_;
12841
+ return g ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(g)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(g, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((v) => v.__key !== k.__key && s(v.product_id_, g)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12842
12842
  }
12843
- function i(w) {
12843
+ function i(k) {
12844
12844
  return [{
12845
12845
  required: !0,
12846
12846
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12847
12847
  }, { validator: async (u, g) => {
12848
- const k = f(w, g);
12849
- if (k) return Promise.reject(k);
12848
+ const w = f(k, g);
12849
+ if (w) return Promise.reject(w);
12850
12850
  } }];
12851
12851
  }
12852
- function r(w) {
12853
- const u = (w === null || w === void 0 ? void 0 : w._info) ?? {}, g = ((w === null || w === void 0 ? void 0 : w.displayLabel) || "").split(":"), k = g.length > 1 ? g[0] : typeof (w === null || w === void 0 ? void 0 : w.title) == "string" ? w.title : "";
12852
+ function r(k) {
12853
+ const u = (k === null || k === void 0 ? void 0 : k._info) ?? {}, g = ((k === null || k === void 0 ? void 0 : k.displayLabel) || "").split(":"), w = g.length > 1 ? g[0] : typeof (k === null || k === void 0 ? void 0 : k.title) == "string" ? k.title : "";
12854
12854
  return {
12855
12855
  product_code_: u.code_ ?? "",
12856
- product_name_: u.name_ ?? k ?? "",
12856
+ product_name_: u.name_ ?? w ?? "",
12857
12857
  product_version_: u.version_ ?? u.__LABEL__ ?? "",
12858
12858
  product_spec_: u.spec_ ?? u.specification_ ?? ""
12859
12859
  };
12860
12860
  }
12861
- function h(w, u) {
12862
- return w ? {
12863
- product_id_: w,
12861
+ function h(k, u) {
12862
+ return k ? {
12863
+ product_id_: k,
12864
12864
  ...r(u)
12865
12865
  } : {
12866
12866
  product_id_: void 0,
@@ -12872,15 +12872,15 @@ var init_index_es = __esmMin((() => {
12872
12872
  }
12873
12873
  function C() {
12874
12874
  var _o$form;
12875
- const w = (t.value.substitute_material_entries_ ?? []).map((u, g) => [
12875
+ const k = (t.value.substitute_material_entries_ ?? []).map((u, g) => [
12876
12876
  "substitute_material_entries_",
12877
12877
  g,
12878
12878
  "product_id_"
12879
12879
  ]);
12880
- if (w.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(w).catch(() => {});
12880
+ if (k.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(k).catch(() => {});
12881
12881
  }
12882
- function d(w, u, g) {
12883
- Object.assign(w, h(u ?? null, g)), nextTick(() => C());
12882
+ function d(k, u, g) {
12883
+ Object.assign(k, h(u ?? null, g)), nextTick(() => C());
12884
12884
  }
12885
12885
  function m() {
12886
12886
  t.value.substitute_material_entries_.push({
@@ -12893,27 +12893,27 @@ var init_index_es = __esmMin((() => {
12893
12893
  qty_required_: t.value.qty_required_ ?? 0
12894
12894
  });
12895
12895
  }
12896
- function S(w) {
12897
- t.value.substitute_material_entries_.splice(w, 1), nextTick(() => C());
12896
+ function S(k) {
12897
+ t.value.substitute_material_entries_.splice(k, 1), nextTick(() => C());
12898
12898
  }
12899
12899
  return watch(() => t.value.product_id_, () => {
12900
12900
  nextTick(() => C());
12901
- }), (w, u) => {
12902
- const g = resolveComponent("a-radio"), k = resolveComponent("a-radio-group"), v = resolveComponent("a-form-item"), M = resolveComponent("a-select"), q = resolveComponent("a-col"), B = resolveComponent("a-row"), O = resolveComponent("a-button"), L = resolveComponent("a-table");
12901
+ }), (k, u) => {
12902
+ const g = resolveComponent("a-radio"), w = resolveComponent("a-radio-group"), v = resolveComponent("a-form-item"), R = resolveComponent("a-select"), q = resolveComponent("a-col"), B = resolveComponent("a-row"), T = resolveComponent("a-button"), L = resolveComponent("a-table");
12903
12903
  return openBlock(), createElementBlock(Fragment, null, [createVNode(v, {
12904
- label: w.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12904
+ label: k.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12905
12905
  name: "substitute_material_enabled_",
12906
- rules: [unref(Te)(w.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12906
+ rules: [unref(Te)(k.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12907
12907
  }, {
12908
- default: withCtx(() => [createVNode(k, {
12908
+ default: withCtx(() => [createVNode(w, {
12909
12909
  value: t.value.substitute_material_enabled_,
12910
12910
  "onUpdate:value": u[0] || (u[0] = (A) => t.value.substitute_material_enabled_ = A)
12911
12911
  }, {
12912
12912
  default: withCtx(() => [createVNode(g, { value: !0 }, {
12913
- default: withCtx(() => [createTextVNode(toDisplayString(w.$t("sys.true")), 1)]),
12913
+ default: withCtx(() => [createTextVNode(toDisplayString(k.$t("sys.true")), 1)]),
12914
12914
  _: 1
12915
12915
  }), createVNode(g, { value: !1 }, {
12916
- default: withCtx(() => [createTextVNode(toDisplayString(w.$t("sys.false")), 1)]),
12916
+ default: withCtx(() => [createTextVNode(toDisplayString(k.$t("sys.false")), 1)]),
12917
12917
  _: 1
12918
12918
  })]),
12919
12919
  _: 1
@@ -12923,14 +12923,14 @@ var init_index_es = __esmMin((() => {
12923
12923
  createVNode(B, { gutter: 16 }, {
12924
12924
  default: withCtx(() => [createVNode(q, { span: 12 }, {
12925
12925
  default: withCtx(() => [createVNode(v, {
12926
- label: w.$t("sys.edhr.mcTable.substitutePolicy"),
12926
+ label: k.$t("sys.edhr.mcTable.substitutePolicy"),
12927
12927
  name: "substitute_policy_",
12928
12928
  required: ""
12929
12929
  }, {
12930
- default: withCtx(() => [createVNode(M, {
12930
+ default: withCtx(() => [createVNode(R, {
12931
12931
  value: t.value.substitute_policy_,
12932
12932
  "onUpdate:value": u[1] || (u[1] = (A) => t.value.substitute_policy_ = A),
12933
- placeholder: w.$t("sys.chooseText"),
12933
+ placeholder: k.$t("sys.chooseText"),
12934
12934
  options: a
12935
12935
  }, null, 8, ["value", "placeholder"])]),
12936
12936
  _: 1
@@ -12939,12 +12939,12 @@ var init_index_es = __esmMin((() => {
12939
12939
  })]),
12940
12940
  _: 1
12941
12941
  }),
12942
- createElementVNode("div", w2, [createVNode(O, {
12942
+ createElementVNode("div", w2, [createVNode(T, {
12943
12943
  type: "link",
12944
12944
  class: "substitute-policy-item__add-row",
12945
12945
  onClick: m
12946
12946
  }, {
12947
- default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(w.$t("sys.edhr.addRow")), 1)]),
12947
+ default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(k.$t("sys.edhr.addRow")), 1)]),
12948
12948
  _: 1
12949
12949
  })]),
12950
12950
  createVNode(L, {
@@ -12953,41 +12953,41 @@ var init_index_es = __esmMin((() => {
12953
12953
  pagination: !1,
12954
12954
  size: "small",
12955
12955
  "row-key": "__key",
12956
- locale: { emptyText: w.$t("sys.noData") }
12956
+ locale: { emptyText: k.$t("sys.noData") }
12957
12957
  }, {
12958
12958
  headerCell: withCtx(({ column: A }) => [A.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [u[2] || (u[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(A.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(A.title), 1)], 64))]),
12959
- bodyCell: withCtx(({ column: A, record: T, index: R }) => [A.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(R + 1), 1)], 64)) : A.key === "product_id_" ? (openBlock(), createBlock(v, {
12959
+ bodyCell: withCtx(({ column: A, record: O, index: M }) => [A.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(M + 1), 1)], 64)) : A.key === "product_id_" ? (openBlock(), createBlock(v, {
12960
12960
  key: 1,
12961
12961
  class: "substitute-policy-item__table-item",
12962
12962
  name: [
12963
12963
  "substitute_material_entries_",
12964
- R,
12964
+ M,
12965
12965
  "product_id_"
12966
12966
  ],
12967
- rules: i(T)
12967
+ rules: i(O)
12968
12968
  }, {
12969
12969
  default: withCtx(() => [createVNode(unref(na), {
12970
- "model-value": T.product_id_ || void 0,
12970
+ "model-value": O.product_id_ || void 0,
12971
12971
  "model-key": "em_product",
12972
- placeholder: w.$t("sys.chooseText"),
12972
+ placeholder: k.$t("sys.chooseText"),
12973
12973
  "parent-to-default": !1,
12974
12974
  "disabled-parent": !1,
12975
12975
  "show-search": !0,
12976
12976
  "query-data": { "product_type_.ne": "finishedProduct" },
12977
- onChange: (V, U) => d(T, V, U)
12977
+ onChange: (V, U) => d(O, V, U)
12978
12978
  }, null, 8, [
12979
12979
  "model-value",
12980
12980
  "placeholder",
12981
12981
  "onChange"
12982
12982
  ])]),
12983
12983
  _: 2
12984
- }, 1032, ["name", "rules"])) : A.key === "action" ? (openBlock(), createBlock(O, {
12984
+ }, 1032, ["name", "rules"])) : A.key === "action" ? (openBlock(), createBlock(T, {
12985
12985
  key: 2,
12986
12986
  type: "link",
12987
12987
  danger: "",
12988
- onClick: (V) => S(R)
12988
+ onClick: (V) => S(M)
12989
12989
  }, {
12990
- default: withCtx(() => [createTextVNode(toDisplayString(w.$t("sys.delete")), 1)]),
12990
+ default: withCtx(() => [createTextVNode(toDisplayString(k.$t("sys.delete")), 1)]),
12991
12991
  _: 1
12992
12992
  }, 8, ["onClick"])) : createCommentVNode("", !0)]),
12993
12993
  _: 1
@@ -13043,14 +13043,14 @@ var init_index_es = __esmMin((() => {
13043
13043
  force_loading_enabled_: !0
13044
13044
  };
13045
13045
  }
13046
- function f(O) {
13047
- return (O ?? []).map((L) => ({
13046
+ function f(T) {
13047
+ return (T ?? []).map((L) => ({
13048
13048
  ...cloneDeep(L),
13049
13049
  __key: Ze(8)
13050
13050
  }));
13051
13051
  }
13052
- function i(O) {
13053
- return (O ?? []).map((L) => ({
13052
+ function i(T) {
13053
+ return (T ?? []).map((L) => ({
13054
13054
  ...cloneDeep(L),
13055
13055
  __key: Ze(8)
13056
13056
  }));
@@ -13062,13 +13062,13 @@ var init_index_es = __esmMin((() => {
13062
13062
  consume_storage_entries_: i((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
13063
13063
  });
13064
13064
  const h = computed(() => {
13065
- const O = {
13065
+ const T = {
13066
13066
  product_id_: [{
13067
13067
  required: !0,
13068
13068
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
13069
13069
  }, { validator: async (L, A) => {
13070
- const T = u(A);
13071
- if (T) return Promise.reject(T);
13070
+ const O = u(A);
13071
+ if (O) return Promise.reject(O);
13072
13072
  } }],
13073
13073
  qty_required_: [{
13074
13074
  required: !0,
@@ -13080,41 +13080,41 @@ var init_index_es = __esmMin((() => {
13080
13080
  }],
13081
13081
  force_loading_enabled_: [Te($t("sys.edhr.mcTable.forceLoadingEnabled"))]
13082
13082
  };
13083
- return r.type_ !== "view" && (O.consume_enabled_ = [Te($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (O.consume_source_config_ = [{
13083
+ return r.type_ !== "view" && (T.consume_enabled_ = [Te($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (T.consume_source_config_ = [{
13084
13084
  required: !0,
13085
13085
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.consumeSourceConfig") })
13086
- }], r.consume_source_config_ === "custom" && (O.default_warehouse_id_ = [{
13086
+ }], r.consume_source_config_ === "custom" && (T.default_warehouse_id_ = [{
13087
13087
  required: !0,
13088
13088
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.defaultWarehouse") })
13089
- }])), O.qty_validation_enabled_ = [Te($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (O.qty_validation_rule_ = [{
13089
+ }])), T.qty_validation_enabled_ = [Te($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (T.qty_validation_rule_ = [{
13090
13090
  required: !0,
13091
13091
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.qtyValidationRule") })
13092
- }], r.qty_validation_rule_ === "bounds" && (O.max_value_ = [{
13092
+ }], r.qty_validation_rule_ === "bounds" && (T.max_value_ = [{
13093
13093
  required: !0,
13094
13094
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMax") })
13095
- }], O.min_value_ = [{
13095
+ }], T.min_value_ = [{
13096
13096
  required: !0,
13097
13097
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMin") })
13098
- }])), O.substitute_material_enabled_ = [Te($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (O.substitute_policy_ = [{
13098
+ }])), T.substitute_material_enabled_ = [Te($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (T.substitute_policy_ = [{
13099
13099
  required: !0,
13100
13100
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.substitutePolicy") })
13101
- }])), r.type_ === "by_lot" && (O.lot_mixing_enabled_ = [Te($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (O.lot_mixing_times_ = [{
13101
+ }])), r.type_ === "by_lot" && (T.lot_mixing_enabled_ = [Te($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (T.lot_mixing_times_ = [{
13102
13102
  required: !0,
13103
13103
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
13104
- }])), O;
13104
+ }])), T;
13105
13105
  });
13106
- function C(O) {
13107
- const L = (O === null || O === void 0 ? void 0 : O._info) ?? {}, A = ((O === null || O === void 0 ? void 0 : O.displayLabel) || "").split(":"), T = A.length > 1 ? A[0] : typeof (O === null || O === void 0 ? void 0 : O.title) == "string" ? O.title : "";
13106
+ function C(T) {
13107
+ const L = (T === null || T === void 0 ? void 0 : T._info) ?? {}, A = ((T === null || T === void 0 ? void 0 : T.displayLabel) || "").split(":"), O = A.length > 1 ? A[0] : typeof (T === null || T === void 0 ? void 0 : T.title) == "string" ? T.title : "";
13108
13108
  return {
13109
13109
  product_code_: L.code_ ?? "",
13110
- product_name_: L.name_ ?? T ?? "",
13110
+ product_name_: L.name_ ?? O ?? "",
13111
13111
  product_version_: L.version_ ?? L.__LABEL__ ?? "",
13112
13112
  product_spec_: L.spec_ ?? L.specification_ ?? ""
13113
13113
  };
13114
13114
  }
13115
- function d(O, L) {
13116
- return O ? {
13117
- product_id_: O,
13115
+ function d(T, L) {
13116
+ return T ? {
13117
+ product_id_: T,
13118
13118
  ...C(L)
13119
13119
  } : {
13120
13120
  product_id_: void 0,
@@ -13124,47 +13124,47 @@ var init_index_es = __esmMin((() => {
13124
13124
  product_spec_: void 0
13125
13125
  };
13126
13126
  }
13127
- function m(O) {
13128
- return O ? O.split(":")[0] : "";
13127
+ function m(T) {
13128
+ return T ? T.split(":")[0] : "";
13129
13129
  }
13130
- function S(O, L) {
13131
- return !O || !L ? !1 : O === L ? !0 : m(O) === m(L);
13130
+ function S(T, L) {
13131
+ return !T || !L ? !1 : T === L ? !0 : m(T) === m(L);
13132
13132
  }
13133
- function w(O) {
13134
- return O ? (t.bizOptions.hasIds ?? []).some((L) => S(L, O)) : !1;
13133
+ function k(T) {
13134
+ return T ? (t.bizOptions.hasIds ?? []).some((L) => S(L, T)) : !1;
13135
13135
  }
13136
- function u(O) {
13137
- const L = O ?? r.product_id_;
13138
- return L && w(L) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
13136
+ function u(T) {
13137
+ const L = T ?? r.product_id_;
13138
+ return L && k(L) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
13139
13139
  }
13140
- function g(O, L) {
13141
- Object.assign(r, d(O ?? null, L));
13140
+ function g(T, L) {
13141
+ Object.assign(r, d(T ?? null, L));
13142
13142
  }
13143
- function k(O = []) {
13144
- return O.map((L) => {
13145
- const { __key: A, ...T } = L;
13143
+ function w(T = []) {
13144
+ return T.map((L) => {
13145
+ const { __key: A, ...O } = L;
13146
13146
  return {
13147
- ...T,
13148
- qty_required_: r.qty_required_ ?? T.qty_required_ ?? 0
13147
+ ...O,
13148
+ qty_required_: r.qty_required_ ?? O.qty_required_ ?? 0
13149
13149
  };
13150
13150
  });
13151
13151
  }
13152
- function v(O = []) {
13153
- return O.map((L) => {
13154
- const { __key: A, ...T } = L;
13155
- return T;
13152
+ function v(T = []) {
13153
+ return T.map((L) => {
13154
+ const { __key: A, ...O } = L;
13155
+ return O;
13156
13156
  });
13157
13157
  }
13158
- function M(O) {
13159
- 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_ = [];
13158
+ function R(T) {
13159
+ T.consume_enabled_ = !1, T.consume_source_config_ = void 0, T.default_warehouse_id_ = void 0, T.default_location_id_ = void 0, T.consume_storage_entries_ = [];
13160
13160
  }
13161
13161
  function q() {
13162
- const { substitute_material_entries_: L = [], consume_storage_entries_: A = [], ...T } = cloneDeep(r), R = {
13163
- ...T,
13162
+ const { substitute_material_entries_: L = [], consume_storage_entries_: A = [], ...O } = cloneDeep(r), M = {
13163
+ ...O,
13164
13164
  substitute_material_entries_: [],
13165
13165
  consume_storage_entries_: []
13166
13166
  };
13167
- return R.type_ === "view" ? (R.qty_validation_enabled_ = !1, R.qty_validation_rule_ = "eq", R.max_value_ = void 0, R.min_value_ = void 0, R.lot_mixing_enabled_ = !1, R.lot_mixing_times_ = 1, R.substitute_material_enabled_ = !1, R.substitute_policy_ = "only_one", R.substitute_material_entries_ = [], M(R), R) : (R.consume_enabled_ ? R.consume_source_config_ !== "custom" ? (R.default_warehouse_id_ = void 0, R.default_location_id_ = void 0, R.consume_storage_entries_ = []) : R.consume_storage_entries_ = v(A) : (M(R), R.consume_enabled_ = !1), R.qty_validation_enabled_ ? R.qty_validation_rule_ !== "bounds" && (R.max_value_ = void 0, R.min_value_ = void 0) : (R.qty_validation_rule_ = "eq", R.max_value_ = void 0, R.min_value_ = void 0), R.substitute_material_enabled_ ? R.substitute_material_entries_ = k(L) : (R.substitute_policy_ = "only_one", R.substitute_material_entries_ = []), R.type_ !== "by_lot" ? (R.lot_mixing_enabled_ = !1, R.lot_mixing_times_ = 1) : R.lot_mixing_enabled_ || (R.lot_mixing_times_ = 1), R);
13167
+ return M.type_ === "view" ? (M.qty_validation_enabled_ = !1, M.qty_validation_rule_ = "eq", M.max_value_ = void 0, M.min_value_ = void 0, M.lot_mixing_enabled_ = !1, M.lot_mixing_times_ = 1, M.substitute_material_enabled_ = !1, M.substitute_policy_ = "only_one", M.substitute_material_entries_ = [], R(M), M) : (M.consume_enabled_ ? M.consume_source_config_ !== "custom" ? (M.default_warehouse_id_ = void 0, M.default_location_id_ = void 0, M.consume_storage_entries_ = []) : M.consume_storage_entries_ = v(A) : (R(M), M.consume_enabled_ = !1), M.qty_validation_enabled_ ? M.qty_validation_rule_ !== "bounds" && (M.max_value_ = void 0, M.min_value_ = void 0) : (M.qty_validation_rule_ = "eq", M.max_value_ = void 0, M.min_value_ = void 0), M.substitute_material_enabled_ ? M.substitute_material_entries_ = w(L) : (M.substitute_policy_ = "only_one", M.substitute_material_entries_ = []), M.type_ !== "by_lot" ? (M.lot_mixing_enabled_ = !1, M.lot_mixing_times_ = 1) : M.lot_mixing_enabled_ || (M.lot_mixing_times_ = 1), M);
13168
13168
  }
13169
13169
  const B = async () => {
13170
13170
  var _r$substitute_materia;
@@ -13180,8 +13180,8 @@ var init_index_es = __esmMin((() => {
13180
13180
  }
13181
13181
  t.modalInst.confirm(q());
13182
13182
  };
13183
- return (O, L) => {
13184
- const A = resolveComponent("a-form-item"), T = resolveComponent("a-col"), R = resolveComponent("a-input-number"), V = resolveComponent("a-row"), U = resolveComponent("a-radio"), J = resolveComponent("a-radio-group"), oe = resolveComponent("a-form");
13183
+ return (T, L) => {
13184
+ const A = resolveComponent("a-form-item"), O = resolveComponent("a-col"), M = resolveComponent("a-input-number"), V = resolveComponent("a-row"), U = resolveComponent("a-radio"), J = resolveComponent("a-radio-group"), oe = resolveComponent("a-form");
13185
13185
  return openBlock(), createBlock(wt, mergeProps(t.modalProps, {
13186
13186
  class: "gct-form-base-modal-bom-entry-modal",
13187
13187
  visible: t.modalVisible,
@@ -13203,11 +13203,11 @@ var init_index_es = __esmMin((() => {
13203
13203
  rules: h.value
13204
13204
  }, {
13205
13205
  default: withCtx(() => [
13206
- createElementVNode("div", S2, toDisplayString(O.$t("sys.appDesigner.basicInformation")), 1),
13206
+ createElementVNode("div", S2, toDisplayString(T.$t("sys.appDesigner.basicInformation")), 1),
13207
13207
  createVNode(V, { gutter: 16 }, {
13208
- default: withCtx(() => [createVNode(T, { span: 12 }, {
13208
+ default: withCtx(() => [createVNode(O, { span: 12 }, {
13209
13209
  default: withCtx(() => [createVNode(A, {
13210
- label: O.$t("sys.material"),
13210
+ label: T.$t("sys.material"),
13211
13211
  name: "product_id_",
13212
13212
  required: "",
13213
13213
  "validate-status": u() ? "error" : void 0,
@@ -13216,7 +13216,7 @@ var init_index_es = __esmMin((() => {
13216
13216
  default: withCtx(() => [createVNode(unref(na), {
13217
13217
  "model-value": unref(r).product_id_ || void 0,
13218
13218
  "model-key": "em_product",
13219
- placeholder: O.$t("sys.chooseText"),
13219
+ placeholder: T.$t("sys.chooseText"),
13220
13220
  "parent-to-default": !1,
13221
13221
  "disabled-parent": !1,
13222
13222
  "show-search": !0,
@@ -13230,17 +13230,17 @@ var init_index_es = __esmMin((() => {
13230
13230
  "help"
13231
13231
  ])]),
13232
13232
  _: 1
13233
- }), createVNode(T, { span: 12 }, {
13233
+ }), createVNode(O, { span: 12 }, {
13234
13234
  default: withCtx(() => [createVNode(A, {
13235
- label: O.$t("sys.edhr.unitQty"),
13235
+ label: T.$t("sys.edhr.unitQty"),
13236
13236
  name: "qty_required_",
13237
13237
  required: ""
13238
13238
  }, {
13239
- default: withCtx(() => [createVNode(R, {
13239
+ default: withCtx(() => [createVNode(M, {
13240
13240
  value: unref(r).qty_required_,
13241
13241
  "onUpdate:value": L[0] || (L[0] = (E) => unref(r).qty_required_ = E),
13242
13242
  style: { width: "100%" },
13243
- placeholder: O.$t("sys.inputText"),
13243
+ placeholder: T.$t("sys.inputText"),
13244
13244
  min: 0
13245
13245
  }, null, 8, ["value", "placeholder"])]),
13246
13246
  _: 1
@@ -13249,14 +13249,14 @@ var init_index_es = __esmMin((() => {
13249
13249
  })]),
13250
13250
  _: 1
13251
13251
  }),
13252
- createElementVNode("div", M2, toDisplayString(O.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
13252
+ createElementVNode("div", M2, toDisplayString(T.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
13253
13253
  createVNode(A, {
13254
13254
  name: "type_",
13255
13255
  required: ""
13256
13256
  }, {
13257
- label: withCtx(() => [createElementVNode("span", null, toDisplayString(O.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(Zt), {
13257
+ label: withCtx(() => [createElementVNode("span", null, toDisplayString(T.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(Zt), {
13258
13258
  class: "bom-entry-modal__label-tip",
13259
- info: O.$t("sys.edhr.mcTable.loadingTypeTip")
13259
+ info: T.$t("sys.edhr.mcTable.loadingTypeTip")
13260
13260
  }, null, 8, ["info"])]),
13261
13261
  default: withCtx(() => [createVNode(J, {
13262
13262
  value: unref(r).type_,
@@ -13264,15 +13264,15 @@ var init_index_es = __esmMin((() => {
13264
13264
  }, {
13265
13265
  default: withCtx(() => [
13266
13266
  createVNode(U, { value: "view" }, {
13267
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
13267
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
13268
13268
  _: 1
13269
13269
  }),
13270
13270
  createVNode(U, { value: "by_number" }, {
13271
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
13271
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
13272
13272
  _: 1
13273
13273
  }),
13274
13274
  createVNode(U, { value: "by_lot" }, {
13275
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
13275
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
13276
13276
  _: 1
13277
13277
  })
13278
13278
  ]),
@@ -13292,7 +13292,7 @@ var init_index_es = __esmMin((() => {
13292
13292
  "onUpdate:formState": L[3] || (L[3] = (E) => isRef(r) ? r.value = E : r = E)
13293
13293
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
13294
13294
  unref(r).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(A, {
13295
- label: O.$t("sys.edhr.mcTable.lotMixingEnabled"),
13295
+ label: T.$t("sys.edhr.mcTable.lotMixingEnabled"),
13296
13296
  name: "lot_mixing_enabled_"
13297
13297
  }, {
13298
13298
  default: withCtx(() => [createVNode(J, {
@@ -13300,27 +13300,27 @@ var init_index_es = __esmMin((() => {
13300
13300
  "onUpdate:value": L[4] || (L[4] = (E) => unref(r).lot_mixing_enabled_ = E)
13301
13301
  }, {
13302
13302
  default: withCtx(() => [createVNode(U, { value: !0 }, {
13303
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13303
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.true")), 1)]),
13304
13304
  _: 1
13305
13305
  }), createVNode(U, { value: !1 }, {
13306
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13306
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.false")), 1)]),
13307
13307
  _: 1
13308
13308
  })]),
13309
13309
  _: 1
13310
13310
  }, 8, ["value"])]),
13311
13311
  _: 1
13312
13312
  }, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", R2, [createVNode(V, { gutter: 16 }, {
13313
- default: withCtx(() => [createVNode(T, { span: 12 }, {
13313
+ default: withCtx(() => [createVNode(O, { span: 12 }, {
13314
13314
  default: withCtx(() => [createVNode(A, {
13315
- label: O.$t("sys.edhr.mcTable.lotMixingTimes"),
13315
+ label: T.$t("sys.edhr.mcTable.lotMixingTimes"),
13316
13316
  name: "lot_mixing_times_",
13317
13317
  required: ""
13318
13318
  }, {
13319
- default: withCtx(() => [createVNode(R, {
13319
+ default: withCtx(() => [createVNode(M, {
13320
13320
  value: unref(r).lot_mixing_times_,
13321
13321
  "onUpdate:value": L[5] || (L[5] = (E) => unref(r).lot_mixing_times_ = E),
13322
13322
  style: { width: "100%" },
13323
- placeholder: O.$t("sys.inputText"),
13323
+ placeholder: T.$t("sys.inputText"),
13324
13324
  min: 1,
13325
13325
  precision: 0
13326
13326
  }, null, 8, ["value", "placeholder"])]),
@@ -13342,7 +13342,7 @@ var init_index_es = __esmMin((() => {
13342
13342
  "hasIds"
13343
13343
  ])) : createCommentVNode("", !0),
13344
13344
  createVNode(A, {
13345
- label: O.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13345
+ label: T.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13346
13346
  name: "force_loading_enabled_"
13347
13347
  }, {
13348
13348
  default: withCtx(() => [createVNode(J, {
@@ -13350,10 +13350,10 @@ var init_index_es = __esmMin((() => {
13350
13350
  "onUpdate:value": L[7] || (L[7] = (E) => unref(r).force_loading_enabled_ = E)
13351
13351
  }, {
13352
13352
  default: withCtx(() => [createVNode(U, { value: !0 }, {
13353
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13353
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.true")), 1)]),
13354
13354
  _: 1
13355
13355
  }), createVNode(U, { value: !1 }, {
13356
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13356
+ default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.false")), 1)]),
13357
13357
  _: 1
13358
13358
  })]),
13359
13359
  _: 1
@@ -13514,13 +13514,13 @@ var init_index_es = __esmMin((() => {
13514
13514
  message.error("请选择一条数据");
13515
13515
  return;
13516
13516
  }
13517
- const { _rowKey: d, productionIdentificationIsLocked: m, productionIdentificationId: S, ...w } = s.value;
13517
+ const { _rowKey: d, productionIdentificationIsLocked: m, productionIdentificationId: S, ...k } = s.value;
13518
13518
  if (m) {
13519
13519
  const u = await h(S);
13520
13520
  message.error(u);
13521
13521
  return;
13522
13522
  }
13523
- n.modalInst.confirm(w);
13523
+ n.modalInst.confirm(k);
13524
13524
  };
13525
13525
  return (d, m) => (openBlock(), createBlock(wt, mergeProps(n.modalProps, {
13526
13526
  class: "gct-form-base-modal-scan-multi-rows",
@@ -13763,7 +13763,7 @@ var init_index_es = __esmMin((() => {
13763
13763
  let h$3 = !1, C = !1, d = !1, m;
13764
13764
  const S = (v) => {
13765
13765
  h$3 || (h$3 = !0, C = !0, s.visible = !1, i(v));
13766
- }, w = {
13766
+ }, k = {
13767
13767
  id: l,
13768
13768
  confirm(v) {
13769
13769
  S({
@@ -13782,13 +13782,13 @@ var init_index_es = __esmMin((() => {
13782
13782
  d = !0, this.modalMap.delete(l);
13783
13783
  const v = m;
13784
13784
  m = void 0, v && await v.destroy();
13785
- }, g = () => this.resolveAntdConfig(), k = defineComponent({
13785
+ }, g = () => this.resolveAntdConfig(), w = defineComponent({
13786
13786
  name: "FormBaseModalRoot",
13787
13787
  setup() {
13788
13788
  return () => h(ConfigProvider, g(), { default: () => h(n, {
13789
13789
  modalVisible: s.visible,
13790
13790
  modalProps: f,
13791
- modalInst: w,
13791
+ modalInst: k,
13792
13792
  bizOptions: t,
13793
13793
  onAfterClose: u
13794
13794
  }) });
@@ -13796,11 +13796,11 @@ var init_index_es = __esmMin((() => {
13796
13796
  });
13797
13797
  this.modalMap.set(l, {
13798
13798
  id: l,
13799
- cancel: w.cancel,
13799
+ cancel: k.cancel,
13800
13800
  isClosing: () => C
13801
13801
  });
13802
13802
  try {
13803
- m = W2(k, this.appContext, l);
13803
+ m = W2(w, this.appContext, l);
13804
13804
  } catch (v) {
13805
13805
  this.modalMap.delete(l), r(v);
13806
13806
  }
@@ -13827,7 +13827,7 @@ var init_index_es = __esmMin((() => {
13827
13827
  } };
13828
13828
  }));
13829
13829
  //#endregion
13830
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.7-beta.0_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_39aa7150ab8d68a2beeeb294d75bf9b7/node_modules/@gct-paas/form-base/dist/form-base.css
13830
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.7-beta.1_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_22b44e53706d5f9862124f6441dde5d2/node_modules/@gct-paas/form-base/dist/form-base.css
13831
13831
  init_TriggerUtil();
13832
13832
  init_index_es();
13833
13833
  //#endregion
@@ -99327,11 +99327,11 @@ function buildDeviceBaseQuery(extraQuery) {
99327
99327
  const { "device_type_id_.eq": deviceTypeId, ...extra } = extraQuery ?? {};
99328
99328
  return {
99329
99329
  "state_.eq": DeviceStatus.IN_USE,
99330
- "next_calibration_date_.ge": today,
99331
- "next_calibration_date_.isNull": null,
99330
+ "last_calibration_date_.ge": today,
99331
+ "last_calibration_date_.isNull": null,
99332
99332
  ...extra,
99333
99333
  ...deviceTypeId ? { "device_type_id_.eq": deviceTypeId } : {},
99334
- __orExpKeys: ["next_calibration_date_.ge", "next_calibration_date_.isNull"]
99334
+ __orExpKeys: ["last_calibration_date_.ge", "last_calibration_date_.isNull"]
99335
99335
  };
99336
99336
  }
99337
99337
  var DEVICE_SEARCH_API, DEVICE_GROUP_QUERY_KEY;