@gct-paas/word 0.1.74-beta.39 → 0.1.74-beta.40

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.39 */
1
+ /*! @gct-paas/word v0.1.74-beta.40 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, effectScope, 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 St, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -7469,16 +7469,16 @@ function be(e) {
7469
7469
  function g(e, a) {
7470
7470
  if (e = e || "", a = a || {}, e instanceof g) return e;
7471
7471
  if (!(this instanceof g)) return new g(e, a);
7472
- var t = Xe(e);
7472
+ var t = Xe$1(e);
7473
7473
  this._originalInput = e, this._r = t.r, this._g = t.g, this._b = t.b, this._a = t.a, this._roundA = Math.round(100 * this._a) / 100, this._format = a.format || t.format, this._gradientType = a.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = t.ok;
7474
7474
  }
7475
- function Xe(e) {
7475
+ function Xe$1(e) {
7476
7476
  var a = {
7477
7477
  r: 0,
7478
7478
  g: 0,
7479
7479
  b: 0
7480
7480
  }, t = 1, r = null, l = null, n = null, i = !1, o = !1;
7481
- return typeof e == "string" && (e = ht$1(e)), be(e) == "object" && (Y$1(e.r) && Y$1(e.g) && Y$1(e.b) ? (a = Ye$1(e.r, e.g, e.b), i = !0, o = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Y$1(e.h) && Y$1(e.s) && Y$1(e.v) ? (r = ue(e.s), l = ue(e.v), a = We(e.h, r, l), i = !0, o = "hsv") : Y$1(e.h) && Y$1(e.s) && Y$1(e.l) && (r = ue(e.s), n = ue(e.l), a = qe$1(e.h, r, n), i = !0, o = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = Te(t), {
7481
+ return typeof e == "string" && (e = ht$1(e)), be(e) == "object" && (Y$1(e.r) && Y$1(e.g) && Y$1(e.b) ? (a = Ye(e.r, e.g, e.b), i = !0, o = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Y$1(e.h) && Y$1(e.s) && Y$1(e.v) ? (r = ue(e.s), l = ue(e.v), a = We(e.h, r, l), i = !0, o = "hsv") : Y$1(e.h) && Y$1(e.s) && Y$1(e.l) && (r = ue(e.s), n = ue(e.l), a = qe$1(e.h, r, n), i = !0, o = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = Te(t), {
7482
7482
  ok: i,
7483
7483
  format: e.format || o,
7484
7484
  r: Math.min(255, Math.max(a.r, 0)),
@@ -7487,7 +7487,7 @@ function Xe(e) {
7487
7487
  a: t
7488
7488
  };
7489
7489
  }
7490
- function Ye$1(e, a, t) {
7490
+ function Ye(e, a, t) {
7491
7491
  return {
7492
7492
  r: L$1(e, 255) * 255,
7493
7493
  g: L$1(a, 255) * 255,
@@ -7594,7 +7594,7 @@ function He$1(e, a, t, r) {
7594
7594
  ];
7595
7595
  return r && l[0].charAt(0) == l[0].charAt(1) && l[1].charAt(0) == l[1].charAt(1) && l[2].charAt(0) == l[2].charAt(1) ? l[0].charAt(0) + l[1].charAt(0) + l[2].charAt(0) : l.join("");
7596
7596
  }
7597
- function Ze(e, a, t, r, l) {
7597
+ function Ze$1(e, a, t, r, l) {
7598
7598
  var n = [
7599
7599
  z$1(Math.round(e).toString(16)),
7600
7600
  z$1(Math.round(a).toString(16)),
@@ -7621,7 +7621,7 @@ function Qe(e, a) {
7621
7621
  var t = g(e).toHsl();
7622
7622
  return t.s += a / 100, t.s = ge(t.s), g(t);
7623
7623
  }
7624
- function et(e) {
7624
+ function et$1(e) {
7625
7625
  return g(e).desaturate(100);
7626
7626
  }
7627
7627
  function tt(e, a) {
@@ -7721,7 +7721,7 @@ function ue(e) {
7721
7721
  function Ie(e) {
7722
7722
  return Math.round(parseFloat(e) * 255).toString(16);
7723
7723
  }
7724
- function Le$1(e) {
7724
+ function Le(e) {
7725
7725
  return P$2(e) / 255;
7726
7726
  }
7727
7727
  function Y$1(e) {
@@ -7770,7 +7770,7 @@ function ht$1(e) {
7770
7770
  r: P$2(t[1]),
7771
7771
  g: P$2(t[2]),
7772
7772
  b: P$2(t[3]),
7773
- a: Le$1(t[4]),
7773
+ a: Le(t[4]),
7774
7774
  format: a ? "name" : "hex8"
7775
7775
  } : (t = K$1.hex6.exec(e)) ? {
7776
7776
  r: P$2(t[1]),
@@ -7781,7 +7781,7 @@ function ht$1(e) {
7781
7781
  r: P$2(t[1] + "" + t[1]),
7782
7782
  g: P$2(t[2] + "" + t[2]),
7783
7783
  b: P$2(t[3] + "" + t[3]),
7784
- a: Le$1(t[4] + "" + t[4]),
7784
+ a: Le(t[4] + "" + t[4]),
7785
7785
  format: a ? "name" : "hex8"
7786
7786
  } : (t = K$1.hex3.exec(e)) ? {
7787
7787
  r: P$2(t[1] + "" + t[1]),
@@ -7828,7 +7828,7 @@ function Ht$1() {
7828
7828
  const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
7829
7829
  return e.charAt(Math.floor(Math.random() * 62)) + e.charAt(Math.floor(Math.random() * 62));
7830
7830
  }
7831
- var ze, je, xe$1, ut, K$1, Ee, ye, ve, I$1, Ue, bt$1, Pe, Fe$1, Ge, gt$1, mt, N$1, Se$1, $e$1, _t, yt$1, Ct$1, q$1, le, pe, oe, Ft$1, St$1, At, M, De, fe$1, se, Vt$1, Bt$1, Lt, Et$1, Dt$1, Nt$1, Tt$1, It, Ut$1, Pt, Gt, Ot$1, Kt, zt$1, jt, Xt$1, Yt$1, qt$1, Wt, Zt, Jt, Qt$1, ea$1, ta$1, gn;
7831
+ var ze, je, xe$1, ut, K$1, Ee, ye, ve, I$1, Ue, bt$1, Pe, Fe, Ge, gt$1, mt, N$1, Se$1, $e, _t, yt$1, Ct$1, q$1, le, pe, oe, Ft$1, St$1, At$1, M, De, fe, se, Vt$1, Bt$1, Lt, Et$1, Dt$1, Nt$1, Tt$1, It, Ut$1, Pt, Gt, Ot, Kt, zt$1, jt, Xt$1, Yt$1, qt$1, Wt, Zt, Jt, Qt$1, ea$1, ta$1, gn;
7832
7832
  var init_vue_color = __esmMin((() => {
7833
7833
  ze = /^\s+/;
7834
7834
  je = /\s+$/;
@@ -7895,7 +7895,7 @@ var init_vue_color = __esmMin((() => {
7895
7895
  return "#" + this.toHex(a);
7896
7896
  },
7897
7897
  toHex8: function(a) {
7898
- return Ze(this._r, this._g, this._b, this._a, a);
7898
+ return Ze$1(this._r, this._g, this._b, this._a, a);
7899
7899
  },
7900
7900
  toHex8String: function(a) {
7901
7901
  return "#" + this.toHex8(a);
@@ -7962,7 +7962,7 @@ var init_vue_color = __esmMin((() => {
7962
7962
  return this._applyModification(Qe, arguments);
7963
7963
  },
7964
7964
  greyscale: function() {
7965
- return this._applyModification(et, arguments);
7965
+ return this._applyModification(et$1, arguments);
7966
7966
  },
7967
7967
  spin: function() {
7968
7968
  return this._applyModification(nt, arguments);
@@ -8258,7 +8258,7 @@ var init_vue_color = __esmMin((() => {
8258
8258
  y: r.top + t
8259
8259
  };
8260
8260
  };
8261
- Fe$1 = (e) => e.code === "ArrowUp" || e.keyCode === 38 ? "up" : e.code === "ArrowDown" || e.keyCode === 40 ? "down" : e.code === "ArrowLeft" || e.keyCode === 37 ? "left" : e.code === "ArrowRight" || e.keyCode === 39 ? "right" : null;
8261
+ Fe = (e) => e.code === "ArrowUp" || e.keyCode === 38 ? "up" : e.code === "ArrowDown" || e.keyCode === 40 ? "down" : e.code === "ArrowLeft" || e.keyCode === 37 ? "left" : e.code === "ArrowRight" || e.keyCode === 39 ? "right" : null;
8262
8262
  Ge = (e, a = 20) => {
8263
8263
  let t, r, l;
8264
8264
  return (...n) => {
@@ -8306,7 +8306,7 @@ var init_vue_color = __esmMin((() => {
8306
8306
  window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", c), window.removeEventListener("mouseup", k), window.removeEventListener("touchmove", c), window.removeEventListener("touchend", c), window.removeEventListener("touchend", k);
8307
8307
  }
8308
8308
  function $(h) {
8309
- switch (h.preventDefault(), Fe$1(h)) {
8309
+ switch (h.preventDefault(), Fe(h)) {
8310
8310
  case "left": {
8311
8311
  const B = i.value.s - .01;
8312
8312
  m({
@@ -8379,7 +8379,7 @@ var init_vue_color = __esmMin((() => {
8379
8379
  return t;
8380
8380
  };
8381
8381
  Se$1 = /* @__PURE__ */ N$1(mt, [["__scopeId", "data-v-4d048d6e"]]);
8382
- $e$1 = (e) => typeof e < "u";
8382
+ $e = (e) => typeof e < "u";
8383
8383
  _t = { class: "vc-base-slider" };
8384
8384
  yt$1 = {
8385
8385
  key: 0,
@@ -8407,7 +8407,7 @@ var init_vue_color = __esmMin((() => {
8407
8407
  return t.direction === "vertical" && (c = 1 - c), 100 * c + "%";
8408
8408
  }), i = ref(null);
8409
8409
  function o(c) {
8410
- $e$1(c) && (r("input", c), r("update:modelValue", c));
8410
+ $e(c) && (r("input", c), r("update:modelValue", c));
8411
8411
  }
8412
8412
  function f(c) {
8413
8413
  const { direction: S, max: k } = t, V = i.value;
@@ -8428,7 +8428,7 @@ var init_vue_color = __esmMin((() => {
8428
8428
  }
8429
8429
  function m(c) {
8430
8430
  c.preventDefault();
8431
- const { direction: S, max: k } = t, V = Fe$1(c), $ = t.step ?? k / 100, h = l.value;
8431
+ const { direction: S, max: k } = t, V = Fe(c), $ = t.step ?? k / 100, h = l.value;
8432
8432
  let v;
8433
8433
  switch (V) {
8434
8434
  case "left":
@@ -8579,7 +8579,7 @@ var init_vue_color = __esmMin((() => {
8579
8579
  }), [["__scopeId", "data-v-07dd346b"]]);
8580
8580
  Ft$1 = { class: "vc-editable-input" };
8581
8581
  St$1 = ["value", "aria-label"];
8582
- At = {
8582
+ At$1 = {
8583
8583
  key: 0,
8584
8584
  class: "vc-input-desc",
8585
8585
  "aria-hidden": "true"
@@ -8601,11 +8601,11 @@ var init_vue_color = __esmMin((() => {
8601
8601
  const t = e, r = a, l = ((_t$a11y = t.a11y) === null || _t$a11y === void 0 ? void 0 : _t$a11y.label) ?? t.label, n = `input__label__${l}__${Math.random().toString().slice(2, 5)}`;
8602
8602
  function i(u) {
8603
8603
  const { min: b, max: _ } = t;
8604
- if ($e$1(_) && +u > _) {
8604
+ if ($e(_) && +u > _) {
8605
8605
  r("change", _);
8606
8606
  return;
8607
8607
  }
8608
- if ($e$1(b) && +u < b) {
8608
+ if ($e(b) && +u < b) {
8609
8609
  r("change", b);
8610
8610
  return;
8611
8611
  }
@@ -8622,7 +8622,7 @@ var init_vue_color = __esmMin((() => {
8622
8622
  let b = Number(t.value);
8623
8623
  if (!isNaN(b)) {
8624
8624
  let _ = t.step;
8625
- const m = pt$1(_), c = Fe$1(u);
8625
+ const m = pt$1(_), c = Fe(u);
8626
8626
  c === "up" && (i((b + _).toFixed(m)), u.preventDefault()), c === "down" && (i((b - _).toFixed(m)), u.preventDefault());
8627
8627
  }
8628
8628
  }
@@ -8641,12 +8641,12 @@ var init_vue_color = __esmMin((() => {
8641
8641
  class: "vc-input-label",
8642
8642
  "aria-hidden": "true"
8643
8643
  }, toDisplayString(t.label), 1),
8644
- u.desc ? (openBlock(), createElementBlock("span", At, toDisplayString(u.desc), 1)) : createCommentVNode("", !0)
8644
+ u.desc ? (openBlock(), createElementBlock("span", At$1, toDisplayString(u.desc), 1)) : createCommentVNode("", !0)
8645
8645
  ]));
8646
8646
  }
8647
8647
  }), [["__scopeId", "data-v-9c267b2b"]]);
8648
8648
  De = (e) => g(e).isValid();
8649
- fe$1 = /* @__PURE__ */ defineComponent({
8649
+ fe = /* @__PURE__ */ defineComponent({
8650
8650
  __name: "HexInput",
8651
8651
  props: {
8652
8652
  value: {},
@@ -8727,7 +8727,7 @@ var init_vue_color = __esmMin((() => {
8727
8727
  class: "fields"
8728
8728
  };
8729
8729
  Gt = { class: "field" };
8730
- Ot$1 = { class: "field" };
8730
+ Ot = { class: "field" };
8731
8731
  Kt = { class: "field" };
8732
8732
  zt$1 = {
8733
8733
  key: 0,
@@ -8868,7 +8868,7 @@ var init_vue_color = __esmMin((() => {
8868
8868
  onChange: x[2] || (x[2] = (F) => h("r", F)),
8869
8869
  a11y: { label: "Red" }
8870
8870
  }, null, 8, ["value"])]),
8871
- createElementVNode("div", Ot$1, [createVNode(M, {
8871
+ createElementVNode("div", Ot, [createVNode(M, {
8872
8872
  label: "g",
8873
8873
  value: b.value.g,
8874
8874
  onChange: x[3] || (x[3] = (F) => h("g", F)),
@@ -8889,7 +8889,7 @@ var init_vue_color = __esmMin((() => {
8889
8889
  a11y: { label: "Transparency" }
8890
8890
  }, null, 8, ["value"])]))
8891
8891
  ], 512)), [[vShow, o.value === V("rgb")]]) : createCommentVNode("", !0),
8892
- k("hex") ? withDirectives((openBlock(), createElementBlock("div", jt, [createElementVNode("div", Xt$1, [createVNode(fe$1, {
8892
+ k("hex") ? withDirectives((openBlock(), createElementBlock("div", jt, [createElementVNode("div", Xt$1, [createVNode(fe, {
8893
8893
  type: _.value === 1 ? "hex" : "hex8",
8894
8894
  label: "hex",
8895
8895
  value: unref(l).toHex8String(),
@@ -9483,7 +9483,7 @@ function preloadDocumentFonts() {
9483
9483
  //#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
9484
9484
  var init_style = __esmMin((() => {}));
9485
9485
  //#endregion
9486
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.11_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+cor_575db55867c7ba1fd24a3b7f83c19830/node_modules/@gct-paas/form-base/dist/index.es.js
9486
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.12_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+cor_b10c3ae6539f46e92b6de1bb55838218/node_modules/@gct-paas/form-base/dist/index.es.js
9487
9487
  function Ra() {
9488
9488
  if (typeof globalThis < "u") {
9489
9489
  const e = globalThis._api;
@@ -9518,7 +9518,7 @@ function ll(e) {
9518
9518
  });
9519
9519
  }
9520
9520
  }
9521
- function Ot(e, o) {
9521
+ function At(e, o) {
9522
9522
  nl || (e.__resizeListeners__ || (e.__resizeListeners__ = [], e.__ro__ = new index$1(ll), e.__ro__.observe(e)), e.__resizeListeners__.push(o));
9523
9523
  }
9524
9524
  function Vt(e, o) {
@@ -9649,85 +9649,85 @@ function xs(e) {
9649
9649
  var _d$children;
9650
9650
  d.rawValue && a.value.set(String(d.rawValue), d), (_d$children = d.children) === null || _d$children === void 0 || _d$children.forEach(n);
9651
9651
  }
9652
- function l(d, f, C) {
9653
- const k = C.__LABEL__ || C.version_, V = `${f}:${C.id_}`, D = {
9652
+ function l(d, f, k) {
9653
+ const b = k.__LABEL__ || k.version_, V = `${f}:${k.id_}`, U = {
9654
9654
  key: V,
9655
- title: k,
9656
- displayLabel: `${d}:${k}`,
9655
+ title: b,
9656
+ displayLabel: `${d}:${b}`,
9657
9657
  rawValue: V,
9658
- _info: C,
9659
- isDefault: !!C.default_
9658
+ _info: k,
9659
+ isDefault: !!k.default_
9660
9660
  };
9661
- return n(D), D;
9661
+ return n(U), U;
9662
9662
  }
9663
9663
  function s(d = []) {
9664
9664
  return d.map((f) => {
9665
9665
  var _f$__CHILDREN__;
9666
- const C = f.__LABEL__ || f.name_, k = (_f$__CHILDREN__ = f.__CHILDREN__) === null || _f$__CHILDREN__ === void 0 ? void 0 : _f$__CHILDREN__.find((D) => D.default_), V = {
9666
+ const k = f.__LABEL__ || f.name_, b = (_f$__CHILDREN__ = f.__CHILDREN__) === null || _f$__CHILDREN__ === void 0 ? void 0 : _f$__CHILDREN__.find((U) => U.default_), V = {
9667
9667
  key: f.id_,
9668
- title: C,
9669
- displayLabel: C,
9668
+ title: k,
9669
+ displayLabel: k,
9670
9670
  rawValue: f.id_,
9671
- _info: k,
9672
- showDefaultTag: !!k,
9671
+ _info: b,
9672
+ showDefaultTag: !!b,
9673
9673
  disabled: !0,
9674
- children: (f.__CHILDREN__ || []).map((D) => l(C, f.id_, D))
9674
+ children: (f.__CHILDREN__ || []).map((U) => l(k, f.id_, U))
9675
9675
  };
9676
9676
  return n(V), V;
9677
9677
  });
9678
9678
  }
9679
9679
  async function c(d = {}) {
9680
9680
  var _d$keyword, _e$getQueryData;
9681
- const f = d.pageNo ?? 1, C = d.pageSize ?? 30, k = ((_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 Bt.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9681
+ const f = d.pageNo ?? 1, k = d.pageSize ?? 30, b = ((_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), U = await Bt.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9682
9682
  pageNo: f,
9683
- pageSize: C,
9683
+ pageSize: k,
9684
9684
  modelCategory: o,
9685
- keyword: k,
9685
+ keyword: b,
9686
9686
  queryData: V
9687
9687
  }, () => Cs(e.modelKey, o, {
9688
9688
  pageNo: f,
9689
- pageSize: C,
9690
- keyword: k,
9689
+ pageSize: k,
9690
+ keyword: b,
9691
9691
  queryData: V
9692
9692
  }), 3e5);
9693
9693
  return {
9694
- complete: (D === null || D === void 0 ? void 0 : D.totalPage) ? D.totalPage <= f : !0,
9695
- nodes: s((D === null || D === void 0 ? void 0 : D.data) || [])
9694
+ complete: (U === null || U === void 0 ? void 0 : U.totalPage) ? U.totalPage <= f : !0,
9695
+ nodes: s((U === null || U === void 0 ? void 0 : U.data) || [])
9696
9696
  };
9697
9697
  }
9698
9698
  async function u(d) {
9699
9699
  var _await$Bt$handleReque;
9700
9700
  const [f] = d.split(":");
9701
9701
  if (!f) return null;
9702
- const k = (_await$Bt$handleReque = await Bt.handleRequest(`rdo-tree-version:${e.modelKey}:${d}`, { id: d }, () => Nt("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
9702
+ const b = (_await$Bt$handleReque = await Bt.handleRequest(`rdo-tree-version:${e.modelKey}:${d}`, { id: d }, () => Nt("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
9703
9703
  refIds: d,
9704
9704
  includeDeleted: 1
9705
9705
  }), 3e5)) === null || _await$Bt$handleReque === void 0 || (_await$Bt$handleReque = _await$Bt$handleReque.data) === null || _await$Bt$handleReque === void 0 ? void 0 : _await$Bt$handleReque[0];
9706
- if (!k) return null;
9707
- const V = k.__LABEL__ || k.name_;
9708
- let D = [];
9706
+ if (!b) return null;
9707
+ const V = b.__LABEL__ || b.name_;
9708
+ let U = [];
9709
9709
  try {
9710
9710
  var _await$Nt;
9711
- D = (((_await$Nt = await Nt("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: f })) === null || _await$Nt === void 0 ? void 0 : _await$Nt.data) || []).map((A) => l(V, f, A));
9711
+ U = (((_await$Nt = await Nt("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: f })) === null || _await$Nt === void 0 ? void 0 : _await$Nt.data) || []).map((R) => l(V, f, R));
9712
9712
  } catch {
9713
- D = [];
9713
+ U = [];
9714
9714
  }
9715
- const U = D.find((z) => z.isDefault), O = {
9715
+ const D = U.find((N) => N.isDefault), A = {
9716
9716
  key: f,
9717
9717
  title: V,
9718
9718
  displayLabel: V,
9719
9719
  rawValue: f,
9720
- _info: U === null || U === void 0 ? void 0 : U._info,
9721
- showDefaultTag: !!U,
9720
+ _info: D === null || D === void 0 ? void 0 : D._info,
9721
+ showDefaultTag: !!D,
9722
9722
  disabled: !0,
9723
- children: D
9723
+ children: U
9724
9724
  };
9725
- return n(O), O;
9725
+ return n(A), A;
9726
9726
  }
9727
9727
  async function r(d = {}) {
9728
9728
  var _t$value$at;
9729
- const f = d.pageNo ?? 1, { complete: C, nodes: k } = await c(d);
9730
- f > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...k)) : t.value = k, C || t.value.push({
9729
+ const f = d.pageNo ?? 1, { complete: k, nodes: b } = await c(d);
9730
+ f > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...b)) : t.value = b, k || t.value.push({
9731
9731
  key: `__load_more__:${f}`,
9732
9732
  title: "加载更多...",
9733
9733
  isLoadMore: !0,
@@ -9738,28 +9738,28 @@ function xs(e) {
9738
9738
  if (!d) return;
9739
9739
  const [f] = d.split(":");
9740
9740
  if (a.value.has(d) || t.value.some((V) => V.key === f)) return;
9741
- const k = await u(d);
9742
- k && t.value.unshift(k);
9741
+ const b = await u(d);
9742
+ b && t.value.unshift(b);
9743
9743
  }
9744
- function R(d) {
9744
+ function M(d) {
9745
9745
  return a.value.get(d) || t.value.find((f) => String(f.key) === d);
9746
9746
  }
9747
- function m(d) {
9748
- var _C$children;
9749
- const [f] = d.split(":"), C = R(f || "");
9750
- return a.value.get(d) || (C === null || C === void 0 || (_C$children = C.children) === null || _C$children === void 0 ? void 0 : _C$children.find((k) => String(k.rawValue) === d));
9747
+ function g(d) {
9748
+ var _k$children;
9749
+ const [f] = d.split(":"), k = M(f || "");
9750
+ return a.value.get(d) || (k === null || k === void 0 || (_k$children = k.children) === null || _k$children === void 0 ? void 0 : _k$children.find((b) => String(b.rawValue) === d));
9751
9751
  }
9752
- function h(d, f = !1) {
9752
+ function w(d, f = !1) {
9753
9753
  if (!d) return { text: "" };
9754
- const [C, k] = d.split(":");
9755
- if (C && k) {
9756
- const D = Yt(d, m, R);
9757
- if (D) return D;
9758
- }
9759
- if (C && !k && !f) {
9760
- const D = R(C);
9761
- if (D) return {
9762
- text: D.title,
9754
+ const [k, b] = d.split(":");
9755
+ if (k && b) {
9756
+ const U = Yt(d, g, M);
9757
+ if (U) return U;
9758
+ }
9759
+ if (k && !b && !f) {
9760
+ const U = M(k);
9761
+ if (U) return {
9762
+ text: U.title,
9763
9763
  showDefaultTag: !0
9764
9764
  };
9765
9765
  }
@@ -9772,37 +9772,37 @@ function xs(e) {
9772
9772
  showDefaultTag: !1
9773
9773
  };
9774
9774
  }
9775
- async function _(d, f = 9999, C = !1) {
9775
+ async function O(d, f = 9999, k = !1) {
9776
9776
  if (d) return t.value.length || await r({
9777
9777
  pageNo: 1,
9778
9778
  pageSize: f
9779
- }), await S(d), h(d, C);
9779
+ }), await S(d), w(d, k);
9780
9780
  }
9781
- function y() {
9781
+ function m() {
9782
9782
  t.value = [], a.value = /* @__PURE__ */ new Map();
9783
9783
  }
9784
9784
  return {
9785
9785
  treeData: t,
9786
9786
  loadOptions: r,
9787
9787
  ensureSelectedNode: S,
9788
- getNodeDisplay: h,
9789
- initByValue: _,
9790
- findChildNode: m,
9791
- findParentNode: R,
9792
- resetTreeData: y
9788
+ getNodeDisplay: w,
9789
+ initByValue: O,
9790
+ findChildNode: g,
9791
+ findParentNode: M,
9792
+ resetTreeData: m
9793
9793
  };
9794
9794
  }
9795
9795
  function Mi(e, o) {
9796
9796
  return openBlock(), createElementBlock("div", xi, [renderSlot(e.$slots, "default", {}, void 0, !0)]);
9797
9797
  }
9798
- function fe(e) {
9798
+ function me(e) {
9799
9799
  return {
9800
9800
  required: !0,
9801
9801
  type: "boolean",
9802
9802
  message: $t("sys.pleaseSelectSth", { sth: e })
9803
9803
  };
9804
9804
  }
9805
- function Ae(e, o) {
9805
+ function Oe(e, o) {
9806
9806
  const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), a = [], n = t.length;
9807
9807
  for (let l = 0; l < e; l++) a[l] = t[0 | Math.random() * n];
9808
9808
  return a.join("");
@@ -9817,27 +9817,27 @@ async function er(e) {
9817
9817
  function oa(e) {
9818
9818
  return e.list && !e.fieldList && (e.fieldList = e.list.map((o) => ({
9819
9819
  type: o,
9820
- key: o === Fe.other ? Ae(32) : o
9820
+ key: o === Xe.other ? Oe(32) : o
9821
9821
  })), delete e.list), e.fieldList.forEach((o) => {
9822
- o.key || (o.key = o.type === Fe.other ? Ae(32) : o.type);
9822
+ o.key || (o.key = o.type === Xe.other ? Oe(32) : o.type);
9823
9823
  }), e;
9824
9824
  }
9825
9825
  function tr(e, o) {
9826
9826
  if (!o) throw new Error("请传入解析规则");
9827
9827
  const { separator: n, nullSymbol: l, fieldList: s } = oa(JSON.parse(o));
9828
9828
  return e.split(n).reduce((u, r, S) => {
9829
- const R = s[S];
9830
- if (R) {
9831
- let m = l && r === l ? null : r;
9832
- if (m !== null) switch (R.type) {
9833
- case Fe.qty:
9834
- m = Number(m);
9829
+ const M = s[S];
9830
+ if (M) {
9831
+ let g = l && r === l ? null : r;
9832
+ if (g !== null) switch (M.type) {
9833
+ case Xe.qty:
9834
+ g = Number(g);
9835
9835
  break;
9836
- case Fe.expiration:
9837
- m = dayjs(m, R.format).format("YYYY-MM-DD HH:mm:ss");
9836
+ case Xe.expiration:
9837
+ g = dayjs(g, M.format).format("YYYY-MM-DD HH:mm:ss");
9838
9838
  break;
9839
9839
  }
9840
- u[R.key] = m;
9840
+ u[M.key] = g;
9841
9841
  }
9842
9842
  return u;
9843
9843
  }, {});
@@ -9974,7 +9974,7 @@ function Jr(e, o, t) {
9974
9974
  function Iu() {
9975
9975
  Mt.closeAll();
9976
9976
  }
9977
- var ke$1, Xt, Et, G$1, Le, Z$1, Se, Bn, Hn, Nn, Un, Pn, Ln, vt, pt, nl, sl, dl, cl, pl, qe, rs, us, ds, cs, ps, fs, vs, gs, hs, ys, zt, _s, Bt, ws, Ht, Ms, Ss, Rs, As, Os, Vs, Ts, qs, zs, Bs, Hs, Ns, Us, Ct, yi, bi, _i, wi, gt, Ci, xi, ht, yt, Si, Ri, Ai, Oi, Vi, Ti, qi, $e, ea, bt, Bi, Hi, Ye, Ni, Ui, Di, Pi, ta, Ut, Wi, aa, ji, Fi, Gi, Xi, $i, Zi, Qi, Fe, Yi, nr, lr, sr, ir, rr, ur, dr, cr, pr, fr, mr, na, gr, hr, yr, br, wr, kr, Cr, Mr, Sr, Rr, Ar, Or, Tr, qr, Br, Hr, Dr, la, Dt, He, Zr, Mt, Wu;
9977
+ var ke$1, Xt, Et, G$1, Ke, Z$1, Se, Bn, Hn, Nn, Un, Pn, Ln, vt, pt, nl, sl, dl, cl, pl, qe, rs, us, ds, cs, ps, fs, vs, gs, hs, ys, zt, _s, Bt, ws, Ht, Ms, Ss, Rs, Os, As, Vs, Ts, qs, zs, Bs, Hs, Ns, Us, Ct, yi, bi, _i, wi, gt, Ci, xi, ht, yt, Si, Ri, Oi, Ai, Vi, Ti, qi, Ze, ea, bt, Bi, Hi, et, Ni, Ui, Di, Pi, ta, Ut, Wi, aa, ji, Fi, Gi, Xi, $i, Zi, Qi, Xe, Yi, nr, lr, sr, ir, rr, ur, dr, cr, pr, fr, mr, na, gr, hr, yr, br, wr, kr, Cr, Mr, Sr, Rr, Or, Ar, Tr, qr, Br, Hr, Dr, la, Dt, He, Zr, Mt, Wu;
9978
9978
  var init_index_es = __esmMin((() => {
9979
9979
  init_ResizeObserver_es();
9980
9980
  init_vue_color();
@@ -9990,7 +9990,7 @@ var init_index_es = __esmMin((() => {
9990
9990
  for (const [a, n] of o) t[a] = n;
9991
9991
  return t;
9992
9992
  };
9993
- Le = {
9993
+ Ke = {
9994
9994
  ...PopperWrapper,
9995
9995
  name: "GctDropdown",
9996
9996
  vPopperTheme: "gct-dropdown"
@@ -10118,20 +10118,20 @@ var init_index_es = __esmMin((() => {
10118
10118
  l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
10119
10119
  let s = Math.floor(a / 3);
10120
10120
  l.font = `${s}px Arial`;
10121
- const c = (h, _, y) => {
10122
- const d = h.split(""), f = [];
10123
- let C = "";
10124
- for (const k of d) {
10125
- const V = C + k;
10126
- y.measureText(V).width > _ && C ? (f.push(C), C = k) : C = V;
10127
- }
10128
- return C && f.push(C), f;
10121
+ const c = (w, O, m) => {
10122
+ const d = w.split(""), f = [];
10123
+ let k = "";
10124
+ for (const b of d) {
10125
+ const V = k + b;
10126
+ m.measureText(V).width > O && k ? (f.push(k), k = b) : k = V;
10127
+ }
10128
+ return k && f.push(k), f;
10129
10129
  }, u = t * .9;
10130
10130
  let r = c(o, u, l), S = s * 1.2;
10131
10131
  for (; r.length * S > a && s > 10;) s--, S = s * 1.2, l.font = `${s}px Arial`, r = c(o, u, l);
10132
- const m = (a - r.length * S) / 2 + S / 2;
10133
- return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", r.forEach((h, _) => {
10134
- l.fillText(h, t / 2, m + _ * S);
10132
+ const g = (a - r.length * S) / 2 + S / 2;
10133
+ return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", r.forEach((w, O) => {
10134
+ l.fillText(w, t / 2, g + O * S);
10135
10135
  }), n.toDataURL("image/png");
10136
10136
  }
10137
10137
  static clear() {
@@ -10213,10 +10213,10 @@ var init_index_es = __esmMin((() => {
10213
10213
  r.remaining = r.duration, t.push(r), r.duration > 0 && n(r);
10214
10214
  }
10215
10215
  function u(r) {
10216
- const S = t.findIndex((R) => R.id === r);
10216
+ const S = t.findIndex((M) => M.id === r);
10217
10217
  if (S !== -1) {
10218
- const R = t[S];
10219
- R !== null && R !== void 0 && R.timer && clearTimeout(R.timer), t.splice(S, 1);
10218
+ const M = t[S];
10219
+ M !== null && M !== void 0 && M.timer && clearTimeout(M.timer), t.splice(S, 1);
10220
10220
  }
10221
10221
  }
10222
10222
  return o({
@@ -10227,18 +10227,18 @@ var init_index_es = __esmMin((() => {
10227
10227
  tag: "div",
10228
10228
  class: "message-list"
10229
10229
  }, {
10230
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (R) => (openBlock(), createElementBlock("div", {
10231
- key: R.id,
10232
- class: normalizeClass(["message", `message--${R.type}`]),
10233
- onMouseenter: (m) => l(R),
10234
- onMouseleave: (m) => s(R)
10230
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (M) => (openBlock(), createElementBlock("div", {
10231
+ key: M.id,
10232
+ class: normalizeClass(["message", `message--${M.type}`]),
10233
+ onMouseenter: (g) => l(M),
10234
+ onMouseleave: (g) => s(M)
10235
10235
  }, [
10236
- createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[R.type]]) }, null, 2),
10237
- createElementVNode("div", Nn, toDisplayString(R.message), 1),
10238
- R.closeable ? (openBlock(), createElementBlock("i", {
10236
+ createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[M.type]]) }, null, 2),
10237
+ createElementVNode("div", Nn, toDisplayString(M.message), 1),
10238
+ M.closeable ? (openBlock(), createElementBlock("i", {
10239
10239
  key: 0,
10240
10240
  class: "message-close icon iconfont icon-guanbi",
10241
- onClick: (m) => u(R.id)
10241
+ onClick: (g) => u(M.id)
10242
10242
  }, null, 8, Un)) : createCommentVNode("", !0)
10243
10243
  ], 42, Hn))), 128))]),
10244
10244
  _: 1
@@ -10297,28 +10297,28 @@ var init_index_es = __esmMin((() => {
10297
10297
  move: Number
10298
10298
  },
10299
10299
  setup(e) {
10300
- const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => sl[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), c = (m) => {
10300
+ const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => sl[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), c = (g) => {
10301
10301
  var _window$getSelection;
10302
- m.ctrlKey || m.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(m), l.value[n.value.axis] = m.currentTarget[n.value.offset] - (m[n.value.client] - m.currentTarget.getBoundingClientRect()[n.value.direction]));
10303
- }, u = (m) => {
10302
+ g.ctrlKey || g.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(g), l.value[n.value.axis] = g.currentTarget[n.value.offset] - (g[n.value.client] - g.currentTarget.getBoundingClientRect()[n.value.direction]));
10303
+ }, u = (g) => {
10304
10304
  var _o$vnode$el;
10305
- const y = (Math.abs(m.target.getBoundingClientRect()[n.value.direction] - m[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]);
10306
- a.value[n.value.scroll] = y * a.value[n.value.scrollSize] / 100;
10307
- }, r = (m) => {
10308
- m.stopImmediatePropagation(), s.value = !0, Tt(document, "mousemove", S), Tt(document, "mouseup", R), document.onselectstart = () => !1;
10309
- }, S = (m) => {
10305
+ const m = (Math.abs(g.target.getBoundingClientRect()[n.value.direction] - g[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]);
10306
+ a.value[n.value.scroll] = m * a.value[n.value.scrollSize] / 100;
10307
+ }, r = (g) => {
10308
+ g.stopImmediatePropagation(), s.value = !0, Tt(document, "mousemove", S), Tt(document, "mouseup", M), document.onselectstart = () => !1;
10309
+ }, S = (g) => {
10310
10310
  var _o$vnode$el2, _o$vnode$el3;
10311
10311
  if (s.value === !1) return;
10312
- const h = l.value[n.value.axis];
10313
- if (!h) return;
10314
- 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]) - m[n.value.client]) * -1 - (t.value[n.value.offset] - h)) * 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]);
10312
+ const w = l.value[n.value.axis];
10313
+ if (!w) return;
10314
+ 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]) - g[n.value.client]) * -1 - (t.value[n.value.offset] - w)) * 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]);
10315
10315
  a.value[n.value.scroll] = d * a.value[n.value.scrollSize] / 100;
10316
10316
  };
10317
- function R() {
10317
+ function M() {
10318
10318
  s.value = !1, l.value[n.value.axis] = 0, qt(document, "mousemove", S), document.onselectstart = null;
10319
10319
  }
10320
10320
  return onUnmounted(() => {
10321
- qt(document, "mouseup", R);
10321
+ qt(document, "mouseup", M);
10322
10322
  }), () => h("div", {
10323
10323
  class: ["scrollbar__bar", "is-" + n.value.key],
10324
10324
  onMousedown: u
@@ -10375,17 +10375,17 @@ var init_index_es = __esmMin((() => {
10375
10375
  e.native || (n.value = unref(l).scrollTop * 100 / unref(l).clientHeight, a.value = unref(l).scrollLeft * 100 / unref(l).clientWidth);
10376
10376
  }, r = () => {
10377
10377
  if (!unref(l)) return;
10378
- const m = unref(l).clientHeight * 100 / unref(l).scrollHeight, h = unref(l).clientWidth * 100 / unref(l).scrollWidth;
10379
- t.value = m < 100 ? m + "%" : "", o.value = h < 100 ? h + "%" : "";
10380
- }, S = (m) => {
10381
- const h = unref(l);
10382
- h && (typeof m == "number" ? h.scrollTop = m : h.scrollTo(m));
10383
- }, R = (m) => {
10384
- const h = unref(l);
10385
- h && (h.scrollTop = m);
10378
+ const g = unref(l).clientHeight * 100 / unref(l).scrollHeight, w = unref(l).clientWidth * 100 / unref(l).scrollWidth;
10379
+ t.value = g < 100 ? g + "%" : "", o.value = w < 100 ? w + "%" : "";
10380
+ }, S = (g) => {
10381
+ const w = unref(l);
10382
+ w && (typeof g == "number" ? w.scrollTop = g : w.scrollTo(g));
10383
+ }, M = (g) => {
10384
+ const w = unref(l);
10385
+ w && (w.scrollTop = g);
10386
10386
  };
10387
10387
  return onMounted(() => {
10388
- e.native || (nextTick(r), e.noresize || (Ot(unref(s), r), Ot(unref(l), r), addEventListener("resize", r)));
10388
+ e.native || (nextTick(r), e.noresize || (At(unref(s), r), At(unref(l), r), addEventListener("resize", r)));
10389
10389
  }), onBeforeUnmount(() => {
10390
10390
  e.native || e.noresize || (Vt(unref(s), r), Vt(unref(l), r), removeEventListener("resize", r));
10391
10391
  }), {
@@ -10399,7 +10399,7 @@ var init_index_es = __esmMin((() => {
10399
10399
  update: r,
10400
10400
  handleScroll: u,
10401
10401
  scrollTo: S,
10402
- setScrollTop: R
10402
+ setScrollTop: M
10403
10403
  };
10404
10404
  }
10405
10405
  });
@@ -10457,7 +10457,7 @@ var init_index_es = __esmMin((() => {
10457
10457
  c.value || a("select", t.node);
10458
10458
  }
10459
10459
  return (r, S) => {
10460
- const R = resolveComponent("RdoTreeSelectNode", !0);
10460
+ const M = resolveComponent("RdoTreeSelectNode", !0);
10461
10461
  return openBlock(), createElementBlock("div", us, [createElementVNode("div", {
10462
10462
  class: normalizeClass(["rdo-tree-select-node__row", {
10463
10463
  selected: s.value,
@@ -10470,22 +10470,22 @@ var init_index_es = __esmMin((() => {
10470
10470
  }, [n.value ? (openBlock(), createElementBlock("span", {
10471
10471
  key: 0,
10472
10472
  class: normalizeClass(["rdo-tree-select-node__switcher", { expanded: l.value }]),
10473
- onClick: S[0] || (S[0] = withModifiers((m) => a("toggle", e.node.key), ["stop"]))
10473
+ onClick: S[0] || (S[0] = withModifiers((g) => a("toggle", e.node.key), ["stop"]))
10474
10474
  }, [createVNode(unref(Z$1), {
10475
10475
  icon: "icon-arrow_zhankai",
10476
10476
  color: "#212528",
10477
10477
  size: "13",
10478
10478
  version: "v2"
10479
- })], 2)) : (openBlock(), createElementBlock("span", ds)), createElementVNode("span", cs, [createElementVNode("span", ps, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", fs, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (m) => (openBlock(), createBlock(R, {
10480
- key: m.key,
10481
- node: m,
10479
+ })], 2)) : (openBlock(), createElementBlock("span", ds)), createElementVNode("span", cs, [createElementVNode("span", ps, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", fs, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (g) => (openBlock(), createBlock(M, {
10480
+ key: g.key,
10481
+ node: g,
10482
10482
  level: e.level + 1,
10483
10483
  "expanded-keys": e.expandedKeys,
10484
10484
  "selected-key": e.selectedKey,
10485
10485
  "disabled-parent": e.disabledParent,
10486
10486
  "parent-to-default": e.parentToDefault,
10487
- onToggle: S[1] || (S[1] = (h) => a("toggle", h)),
10488
- onSelect: S[2] || (S[2] = (h) => a("select", h))
10487
+ onToggle: S[1] || (S[1] = (w) => a("toggle", w)),
10488
+ onSelect: S[2] || (S[2] = (w) => a("select", w))
10489
10489
  }, null, 8, [
10490
10490
  "node",
10491
10491
  "level",
@@ -10703,11 +10703,11 @@ var init_index_es = __esmMin((() => {
10703
10703
  "aria-hidden": "true"
10704
10704
  };
10705
10705
  Rs = { class: "rdo-tree-select__mirror-text" };
10706
- As = {
10706
+ Os = {
10707
10707
  key: 0,
10708
10708
  class: "rdo-tree-select__value-tag"
10709
10709
  };
10710
- Os = [
10710
+ As = [
10711
10711
  "value",
10712
10712
  "placeholder",
10713
10713
  "disabled",
@@ -10776,11 +10776,11 @@ var init_index_es = __esmMin((() => {
10776
10776
  "change"
10777
10777
  ],
10778
10778
  setup(e, { emit: o }) {
10779
- const t = e, a = o, n = ref(), l = ref(), s = ref(), c = ref(), u = ref(!1), r = ref(!1), S = ref(!1), R = ref({}), m = ref(!1), h = ref([]), _ = ref(1), y = ref(""), d = ref(""), f = ref({ text: "" }), { treeData: C, loadOptions: k, ensureSelectedNode: V, getNodeDisplay: D, initByValue: U, findChildNode: O, findParentNode: z, resetTreeData: A } = xs({
10779
+ const t = e, a = o, n = ref(), l = ref(), s = ref(), c = ref(), u = ref(!1), r = ref(!1), S = ref(!1), M = ref({}), g = ref(!1), w = ref([]), O = ref(1), m = ref(""), d = ref(""), f = ref({ text: "" }), { treeData: k, loadOptions: b, ensureSelectedNode: V, getNodeDisplay: U, initByValue: D, findChildNode: A, findParentNode: N, resetTreeData: R } = xs({
10780
10780
  modelKey: t.modelKey,
10781
10781
  modelCategory: t.modelCategory,
10782
10782
  getQueryData: () => t.queryData
10783
- }), M = computed(() => t.modelValue || void 0), b = computed(() => f.value.text || ""), H = computed(() => t.allowClear && !t.disabled && !u.value && b.value && S.value ? "clear" : u.value ? "search" : "arrow"), W = computed(() => t.allowClear && !t.disabled && M.value && S.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? C.value : C.value.map((I) => ({
10783
+ }), x = computed(() => t.modelValue || void 0), y = computed(() => f.value.text || ""), B = computed(() => t.allowClear && !t.disabled && !u.value && y.value && S.value ? "clear" : u.value ? "search" : "arrow"), K = computed(() => t.allowClear && !t.disabled && x.value && S.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? k.value : k.value.map((I) => ({
10784
10784
  ...I,
10785
10785
  disabled: !1
10786
10786
  })));
@@ -10788,31 +10788,31 @@ var init_index_es = __esmMin((() => {
10788
10788
  f.value = I;
10789
10789
  }
10790
10790
  function Q() {
10791
- if (!M.value) {
10791
+ if (!x.value) {
10792
10792
  ne({
10793
10793
  text: "",
10794
10794
  showDefaultTag: !1
10795
10795
  });
10796
10796
  return;
10797
10797
  }
10798
- const I = D(M.value, t.parentToDefault);
10798
+ const I = U(x.value, t.parentToDefault);
10799
10799
  I.text && ne({
10800
10800
  text: I.text,
10801
10801
  showDefaultTag: I.showDefaultTag ?? !1
10802
10802
  });
10803
10803
  }
10804
- function Oe() {
10805
- h.value = Y.value.filter((I) => !I.isLoadMore).map((I) => I.key);
10804
+ function Ae() {
10805
+ w.value = Y.value.filter((I) => !I.isLoadMore).map((I) => I.key);
10806
10806
  }
10807
- async function Ke() {
10808
- if (!M.value) {
10807
+ async function We() {
10808
+ if (!x.value) {
10809
10809
  ne({
10810
10810
  text: "",
10811
10811
  showDefaultTag: !1
10812
10812
  });
10813
10813
  return;
10814
10814
  }
10815
- const I = await U(M.value, t.pageSize, t.parentToDefault);
10815
+ const I = await D(x.value, t.pageSize, t.parentToDefault);
10816
10816
  if (I === null || I === void 0 ? void 0 : I.text) {
10817
10817
  ne(I);
10818
10818
  return;
@@ -10820,24 +10820,24 @@ var init_index_es = __esmMin((() => {
10820
10820
  Q();
10821
10821
  }
10822
10822
  async function Ve(I = !0) {
10823
- m.value = !0;
10823
+ g.value = !0;
10824
10824
  try {
10825
- I && (_.value = 1), await k({
10826
- pageNo: _.value,
10825
+ I && (O.value = 1), await b({
10826
+ pageNo: O.value,
10827
10827
  pageSize: t.pageSize,
10828
10828
  keyword: t.showSearch && d.value || void 0
10829
- }), I && Oe(), Q();
10829
+ }), I && Ae(), Q();
10830
10830
  } finally {
10831
- m.value = !1;
10831
+ g.value = !1;
10832
10832
  }
10833
10833
  }
10834
10834
  const ze = debounce(() => {
10835
- d.value = y.value.trim(), Ve(!0);
10835
+ d.value = m.value.trim(), Ve(!0);
10836
10836
  }, 300);
10837
- function Ze() {
10837
+ function Je() {
10838
10838
  if (!n.value) return;
10839
10839
  const I = n.value.getBoundingClientRect(), J = t.popperWidth ?? I.width;
10840
- R.value = {
10840
+ M.value = {
10841
10841
  position: "fixed",
10842
10842
  top: `${I.bottom + 4}px`,
10843
10843
  left: `${I.left}px`,
@@ -10845,34 +10845,34 @@ var init_index_es = __esmMin((() => {
10845
10845
  zIndex: "2147483647"
10846
10846
  };
10847
10847
  }
10848
- async function Je(I = {}) {
10848
+ async function Qe(I = {}) {
10849
10849
  const { forceRefresh: J = !1 } = I;
10850
10850
  if (d.value) {
10851
- await Ve(!0), await V(M.value), Q();
10851
+ await Ve(!0), await V(x.value), Q();
10852
10852
  return;
10853
10853
  }
10854
10854
  if (J) {
10855
- A(), await Ve(!0), await V(M.value), Q();
10855
+ R(), await Ve(!0), await V(x.value), Q();
10856
10856
  return;
10857
10857
  }
10858
- if (!C.value.length) {
10859
- await Ve(!0), await V(M.value), Q();
10858
+ if (!k.value.length) {
10859
+ await Ve(!0), await V(x.value), Q();
10860
10860
  return;
10861
10861
  }
10862
- Oe(), Q(), await V(M.value), Q();
10862
+ Ae(), Q(), await V(x.value), Q();
10863
10863
  }
10864
10864
  async function st() {
10865
10865
  var _l$value8;
10866
- 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());
10866
+ t.disabled || (Je(), u.value = !0, m.value = "", d.value = "", await Qe({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
10867
10867
  }
10868
10868
  function _e() {
10869
- ze.cancel(), u.value = !1, y.value = "", d.value = "";
10869
+ ze.cancel(), u.value = !1, m.value = "", d.value = "";
10870
10870
  }
10871
10871
  function it() {
10872
10872
  t.disabled || u.value || st();
10873
10873
  }
10874
10874
  function P(I) {
10875
- y.value = I.target.value, ze();
10875
+ m.value = I.target.value, ze();
10876
10876
  }
10877
10877
  function X() {
10878
10878
  se(), _e();
@@ -10884,27 +10884,27 @@ var init_index_es = __esmMin((() => {
10884
10884
  (_n$value2 = n.value) !== null && _n$value2 !== void 0 && _n$value2.contains(J) || (_s$value2 = s.value) !== null && _s$value2 !== void 0 && _s$value2.contains(J) || _e();
10885
10885
  }
10886
10886
  function de() {
10887
- u.value && Ze();
10887
+ u.value && Je();
10888
10888
  }
10889
10889
  async function ie() {
10890
- r.value = !0, await Je();
10890
+ r.value = !0, await Qe();
10891
10891
  }
10892
- function me() {
10892
+ function ve() {
10893
10893
  r.value = !1;
10894
10894
  }
10895
10895
  async function we() {
10896
- _.value += 1, await Ve(!1);
10896
+ O.value += 1, await Ve(!1);
10897
10897
  }
10898
- function We(I) {
10899
- const J = new Set(h.value);
10900
- J.has(I) ? J.delete(I) : J.add(I), h.value = Array.from(J);
10898
+ function Ie(I) {
10899
+ const J = new Set(w.value);
10900
+ J.has(I) ? J.delete(I) : J.add(I), w.value = Array.from(J);
10901
10901
  }
10902
10902
  function rt(I) {
10903
10903
  var _I$_info;
10904
10904
  const J = String(I.rawValue ?? I.key), [, re] = J.split(":");
10905
10905
  return t.parentToDefault && !re && ((_I$_info = I._info) === null || _I$_info === void 0 ? void 0 : _I$_info.id_) ? `${J}:${I._info.id_}` : J;
10906
10906
  }
10907
- function Qe(I) {
10907
+ function Ye(I) {
10908
10908
  var _c$value, _c$value$hide;
10909
10909
  if (I.isLoadMore) {
10910
10910
  we();
@@ -10913,11 +10913,11 @@ var init_index_es = __esmMin((() => {
10913
10913
  if (I.disabled && t.disabledParent) return;
10914
10914
  const J = rt(I);
10915
10915
  if (!J.includes(":") && t.disabledParent) return;
10916
- const re = ss(J, I, O, z, t.parentToDefault);
10916
+ const re = ss(J, I, A, N, t.parentToDefault);
10917
10917
  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);
10918
10918
  }
10919
10919
  function se() {
10920
- ze.cancel(), y.value = "", d.value = "", ne({
10920
+ ze.cancel(), m.value = "", d.value = "", ne({
10921
10921
  text: "",
10922
10922
  showDefaultTag: !1
10923
10923
  }), a("update:modelValue", null), a("update:fullPathValue", null), a("change", null);
@@ -10927,12 +10927,12 @@ var init_index_es = __esmMin((() => {
10927
10927
  ne({
10928
10928
  text: "",
10929
10929
  showDefaultTag: !1
10930
- }), y.value = "";
10930
+ }), m.value = "";
10931
10931
  return;
10932
10932
  }
10933
- (t.showSearch ? u.value : r.value) || Ke();
10933
+ (t.showSearch ? u.value : r.value) || We();
10934
10934
  }), onMounted(() => {
10935
- M.value && Ke(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0));
10935
+ x.value && We(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0));
10936
10936
  }), onBeforeUnmount(() => {
10937
10937
  t.showSearch && (document.removeEventListener("click", le, !0), window.removeEventListener("resize", de), window.removeEventListener("scroll", de, !0));
10938
10938
  }), (I, J) => e.showSearch ? (openBlock(), createElementBlock("div", {
@@ -10945,17 +10945,17 @@ var init_index_es = __esmMin((() => {
10945
10945
  onClick: it,
10946
10946
  onMouseenter: J[1] || (J[1] = (re) => S.value = !0),
10947
10947
  onMouseleave: J[2] || (J[2] = (re) => S.value = !1)
10948
- }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", Ms, [b.value && !y.value ? (openBlock(), createElementBlock("div", Ss, [createElementVNode("span", Rs, toDisplayString(b.value), 1), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", As, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10948
+ }, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", Ms, [y.value && !m.value ? (openBlock(), createElementBlock("div", Ss, [createElementVNode("span", Rs, toDisplayString(y.value), 1), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", Os, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
10949
10949
  ref_key: "inputRef",
10950
10950
  ref: l,
10951
- class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!b.value && !y.value }]),
10951
+ class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!y.value && !m.value }]),
10952
10952
  type: "text",
10953
- value: y.value,
10954
- placeholder: b.value ? "" : e.placeholder,
10953
+ value: m.value,
10954
+ placeholder: y.value ? "" : e.placeholder,
10955
10955
  disabled: e.disabled,
10956
10956
  onInput: P,
10957
10957
  onKeydown: [withKeys(withModifiers(_e, ["stop"]), ["esc"]), withKeys(_e, ["tab"])]
10958
- }, null, 42, Os)])) : (openBlock(), createElementBlock("span", Vs, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !b.value }]) }, toDisplayString(b.value || e.placeholder), 3), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ts, "默认")) : createCommentVNode("", !0)]))], 2), H.value === "clear" ? (openBlock(), createElementBlock("span", {
10958
+ }, null, 42, As)])) : (openBlock(), createElementBlock("span", Vs, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !y.value }]) }, toDisplayString(y.value || e.placeholder), 3), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ts, "默认")) : createCommentVNode("", !0)]))], 2), B.value === "clear" ? (openBlock(), createElementBlock("span", {
10959
10959
  key: 0,
10960
10960
  class: "rdo-tree-select__clear",
10961
10961
  onMousedown: J[0] || (J[0] = withModifiers(() => {}, ["prevent"])),
@@ -10964,7 +10964,7 @@ var init_index_es = __esmMin((() => {
10964
10964
  icon: "icon-cuowu2",
10965
10965
  color: "rgba(0, 0, 0, 0.25)",
10966
10966
  size: "14"
10967
- })], 32)) : H.value === "search" ? (openBlock(), createElementBlock("span", qs, [createVNode(unref(Z$1), {
10967
+ })], 32)) : B.value === "search" ? (openBlock(), createElementBlock("span", qs, [createVNode(unref(Z$1), {
10968
10968
  icon: "icon-sousuo",
10969
10969
  color: "rgba(0, 0, 0, 0.45)",
10970
10970
  size: "14"
@@ -10977,18 +10977,18 @@ var init_index_es = __esmMin((() => {
10977
10977
  ref_key: "searchDropdownRef",
10978
10978
  ref: s,
10979
10979
  class: "rdo-tree-select__dropdown",
10980
- style: normalizeStyle(R.value),
10980
+ style: normalizeStyle(M.value),
10981
10981
  onMousedown: J[3] || (J[3] = withModifiers(() => {}, ["prevent"]))
10982
10982
  }, [createVNode(zt, {
10983
10983
  "display-tree-data": Y.value,
10984
- "expanded-keys": h.value,
10985
- "inner-value": M.value,
10986
- loading: m.value,
10984
+ "expanded-keys": w.value,
10985
+ "inner-value": x.value,
10986
+ loading: g.value,
10987
10987
  "disabled-parent": e.disabledParent,
10988
10988
  "parent-to-default": e.parentToDefault,
10989
10989
  "empty-text": d.value ? "暂无搜索" : "暂无数据",
10990
- onToggle: We,
10991
- onSelect: Qe,
10990
+ onToggle: Ie,
10991
+ onSelect: Ye,
10992
10992
  onLoadMore: we
10993
10993
  }, null, 8, [
10994
10994
  "display-tree-data",
@@ -11001,27 +11001,27 @@ var init_index_es = __esmMin((() => {
11001
11001
  ])], 36)) : createCommentVNode("", !0)]))], 2)) : (openBlock(), createElementBlock("div", {
11002
11002
  key: 1,
11003
11003
  class: normalizeClass(["rdo-tree-select", { disabled: e.disabled }])
11004
- }, [createVNode(unref(Le), {
11004
+ }, [createVNode(unref(Ke), {
11005
11005
  ref_key: "dropdownRef",
11006
11006
  ref: c,
11007
11007
  distance: 4,
11008
11008
  placement: "bottom-start",
11009
11009
  disabled: e.disabled,
11010
11010
  onShow: ie,
11011
- onHide: me
11011
+ onHide: ve
11012
11012
  }, {
11013
11013
  popper: withCtx(() => [createElementVNode("div", {
11014
11014
  class: "rdo-tree-select__popper",
11015
11015
  style: normalizeStyle({ width: `${e.popperWidth}px` })
11016
11016
  }, [createVNode(zt, {
11017
11017
  "display-tree-data": Y.value,
11018
- "expanded-keys": h.value,
11019
- "inner-value": M.value,
11020
- loading: m.value,
11018
+ "expanded-keys": w.value,
11019
+ "inner-value": x.value,
11020
+ loading: g.value,
11021
11021
  "disabled-parent": e.disabledParent,
11022
11022
  "parent-to-default": e.parentToDefault,
11023
- onToggle: We,
11024
- onSelect: Qe,
11023
+ onToggle: Ie,
11024
+ onSelect: Ye,
11025
11025
  onLoadMore: we
11026
11026
  }, null, 8, [
11027
11027
  "display-tree-data",
@@ -11039,7 +11039,7 @@ var init_index_es = __esmMin((() => {
11039
11039
  key: 0,
11040
11040
  class: "rdo-tree-select__value",
11041
11041
  title: f.value.text
11042
- }, [createElementVNode("span", Hs, toDisplayString(f.value.text), 1), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ns, "默认")) : createCommentVNode("", !0)], 8, Bs)) : (openBlock(), createElementBlock("span", Us, toDisplayString(e.placeholder), 1)), W.value === "clear" ? (openBlock(), createElementBlock("span", {
11042
+ }, [createElementVNode("span", Hs, toDisplayString(f.value.text), 1), f.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ns, "默认")) : createCommentVNode("", !0)], 8, Bs)) : (openBlock(), createElementBlock("span", Us, toDisplayString(e.placeholder), 1)), K.value === "clear" ? (openBlock(), createElementBlock("span", {
11043
11043
  key: 2,
11044
11044
  class: "rdo-tree-select__clear",
11045
11045
  onMousedown: J[4] || (J[4] = withModifiers(() => {}, ["prevent"])),
@@ -11091,12 +11091,12 @@ var init_index_es = __esmMin((() => {
11091
11091
  yt = /* @__PURE__ */ ((e) => (e.Lot = "lot", e.UniqueCode = "uniqueCode", e))(yt || {});
11092
11092
  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='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";
11093
11093
  Ri = "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";
11094
- Ai = "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";
11095
- Oi = { class: "form-base-modal__title" };
11094
+ Oi = "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";
11095
+ Ai = { class: "form-base-modal__title" };
11096
11096
  Vi = ["src"];
11097
11097
  Ti = ["title"];
11098
11098
  qi = ["src"];
11099
- $e = /* @__PURE__ */ defineComponent({
11099
+ Ze = /* @__PURE__ */ defineComponent({
11100
11100
  inheritAttrs: !1,
11101
11101
  __name: "modal-wrapper",
11102
11102
  props: {
@@ -11147,32 +11147,32 @@ var init_index_es = __esmMin((() => {
11147
11147
  y: 0
11148
11148
  });
11149
11149
  let c = 0, u = 0, r = 0, S = 0;
11150
- const R = computed(() => [
11150
+ const M = computed(() => [
11151
11151
  "gct-form-base-modal",
11152
11152
  n.wrapClassName,
11153
11153
  t.mask ? "" : "gct-form-base-modal--maskless",
11154
11154
  l.value ? "gct-form-base-modal--fullscreen" : ""
11155
- ].filter(Boolean).join(" ")), m = computed(() => {
11156
- const { title: k, wrapClassName: V, ...D } = n;
11157
- return D;
11158
- }), h = computed(() => {
11155
+ ].filter(Boolean).join(" ")), g = computed(() => {
11156
+ const { title: b, wrapClassName: V, ...U } = n;
11157
+ return U;
11158
+ }), w = computed(() => {
11159
11159
  if (!(!t.draggable || l.value) && !(s.x === 0 && s.y === 0)) return { transform: `translate(${s.x}px, ${s.y}px)` };
11160
11160
  });
11161
- function _() {
11161
+ function O() {
11162
11162
  s.x = 0, s.y = 0;
11163
11163
  }
11164
- function y() {
11165
- t.fullscreen && (l.value = !l.value, _());
11164
+ function m() {
11165
+ t.fullscreen && (l.value = !l.value, O());
11166
11166
  }
11167
- function d(k) {
11168
- s.x = r + k.clientX - c, s.y = S + k.clientY - u;
11167
+ function d(b) {
11168
+ s.x = r + b.clientX - c, s.y = S + b.clientY - u;
11169
11169
  }
11170
11170
  function f() {
11171
11171
  document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f);
11172
11172
  }
11173
- function C(k) {
11174
- if (!t.draggable || l.value || k.button !== 0) return;
11175
- const V = k.target;
11173
+ function k(b) {
11174
+ if (!t.draggable || l.value || b.button !== 0) return;
11175
+ const V = b.target;
11176
11176
  V.closest(".ant-modal-header") && (V.closest([
11177
11177
  "button",
11178
11178
  "a",
@@ -11180,56 +11180,56 @@ var init_index_es = __esmMin((() => {
11180
11180
  "textarea",
11181
11181
  "select",
11182
11182
  "[role=\"button\"]"
11183
- ].join(",")) || (c = k.clientX, u = k.clientY, r = s.x, S = s.y, document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), k.preventDefault()));
11183
+ ].join(",")) || (c = b.clientX, u = b.clientY, r = s.x, S = s.y, document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), b.preventDefault()));
11184
11184
  }
11185
- return watch(() => t.fullscreen, (k) => {
11186
- k || (l.value = !1, _());
11187
- }), watch(() => t.visible, (k) => {
11188
- k && (l.value = !1, _());
11185
+ return watch(() => t.fullscreen, (b) => {
11186
+ b || (l.value = !1, O());
11187
+ }), watch(() => t.visible, (b) => {
11188
+ b && (l.value = !1, O());
11189
11189
  }), onBeforeUnmount(() => {
11190
11190
  f();
11191
- }), (k, V) => (openBlock(), createBlock(unref(Modal), mergeProps({
11191
+ }), (b, V) => (openBlock(), createBlock(unref(Modal), mergeProps({
11192
11192
  centered: "",
11193
11193
  "ok-text": "确定",
11194
11194
  "cancel-text": "取消",
11195
11195
  width: 640
11196
- }, m.value, {
11196
+ }, g.value, {
11197
11197
  visible: e.visible,
11198
11198
  mask: e.mask,
11199
- "wrap-class-name": R.value,
11200
- onCancel: V[1] || (V[1] = (D) => a("cancel", D)),
11201
- onOk: V[2] || (V[2] = (D) => a("ok", D)),
11202
- onAfterClose: V[3] || (V[3] = (D) => a("afterClose"))
11199
+ "wrap-class-name": M.value,
11200
+ onCancel: V[1] || (V[1] = (U) => a("cancel", U)),
11201
+ onOk: V[2] || (V[2] = (U) => a("ok", U)),
11202
+ onAfterClose: V[3] || (V[3] = (U) => a("afterClose"))
11203
11203
  }), createSlots({
11204
- title: withCtx(() => [createElementVNode("div", Oi, [
11204
+ title: withCtx(() => [createElementVNode("div", Ai, [
11205
11205
  e.draggable ? (openBlock(), createElementBlock("img", {
11206
11206
  key: 0,
11207
- src: unref(Ai),
11207
+ src: unref(Oi),
11208
11208
  class: "title-draggable"
11209
11209
  }, null, 8, Vi)) : createCommentVNode("", !0),
11210
- renderSlot(k.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
11210
+ renderSlot(b.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
11211
11211
  e.fullscreen ? (openBlock(), createElementBlock("button", {
11212
11212
  key: 1,
11213
11213
  type: "button",
11214
11214
  class: "form-base-modal__fullscreen",
11215
11215
  title: l.value ? "退出全屏" : "全屏",
11216
11216
  onMousedown: V[0] || (V[0] = withModifiers(() => {}, ["stop"])),
11217
- onClick: withModifiers(y, ["stop"])
11217
+ onClick: withModifiers(m, ["stop"])
11218
11218
  }, [createElementVNode("img", {
11219
11219
  src: l.value ? unref(Ri) : unref(Si),
11220
11220
  alt: ""
11221
11221
  }, null, 8, qi)], 40, Ti)) : createCommentVNode("", !0)
11222
11222
  ])]),
11223
- modalRender: withCtx(({ originVNode: D }) => [createElementVNode("div", {
11223
+ modalRender: withCtx(({ originVNode: U }) => [createElementVNode("div", {
11224
11224
  class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
11225
- style: normalizeStyle(h.value),
11226
- onMousedown: C
11227
- }, [(openBlock(), createBlock(resolveDynamicComponent(D)))], 38)]),
11228
- default: withCtx(() => [renderSlot(k.$slots, "default")]),
11225
+ style: normalizeStyle(w.value),
11226
+ onMousedown: k
11227
+ }, [(openBlock(), createBlock(resolveDynamicComponent(U)))], 38)]),
11228
+ default: withCtx(() => [renderSlot(b.$slots, "default")]),
11229
11229
  _: 2
11230
- }, [k.$slots.footer ? {
11230
+ }, [b.$slots.footer ? {
11231
11231
  name: "footer",
11232
- fn: withCtx(() => [renderSlot(k.$slots, "footer")]),
11232
+ fn: withCtx(() => [renderSlot(b.$slots, "footer")]),
11233
11233
  key: "0"
11234
11234
  } : void 0]), 1040, [
11235
11235
  "visible",
@@ -11245,7 +11245,7 @@ var init_index_es = __esmMin((() => {
11245
11245
  };
11246
11246
  Bi = { FIELD: "field" };
11247
11247
  Hi = { Number: "number" };
11248
- Ye = "entity";
11248
+ et = "entity";
11249
11249
  Ni = {
11250
11250
  key: 0,
11251
11251
  class: "consume-policy-item__nested"
@@ -11263,10 +11263,10 @@ var init_index_es = __esmMin((() => {
11263
11263
  setup(e) {
11264
11264
  const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), c = ref(!1), u = ref({}), r = ref({});
11265
11265
  async function S(P) {
11266
- var _P$keyword, _ref;
11266
+ var _P$keyword, _ref2;
11267
11267
  const X = (_P$keyword = P.keyword) === null || _P$keyword === void 0 ? void 0 : _P$keyword.trim(), le = { ...P.extraQuery ?? {} };
11268
- return X && (le["name_.like"] = X, le["code_.like"] = X), (((_ref = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11269
- modelCategory: Ye,
11268
+ return X && (le["name_.like"] = X, le["code_.like"] = X), (((_ref2 = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11269
+ modelCategory: et,
11270
11270
  modelKey: P.modelKey,
11271
11271
  bsKey: "listByPage"
11272
11272
  }, {}, {
@@ -11277,38 +11277,38 @@ var init_index_es = __esmMin((() => {
11277
11277
  ...le,
11278
11278
  "operating_state_.eq": !0
11279
11279
  }
11280
- }) || {}) === null || _ref === void 0 ? void 0 : _ref.data) ?? []).map((ie) => ({
11280
+ }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((ie) => ({
11281
11281
  label: ie.name_ || ie.code_,
11282
11282
  value: ie.id_
11283
11283
  }));
11284
11284
  }
11285
- async function R(P, X) {
11286
- var _ref2;
11285
+ async function M(P, X) {
11286
+ var _ref3;
11287
11287
  const le = [...new Set(X.filter(Boolean))];
11288
- return le.length ? (((_ref2 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11289
- modelCategory: Ye,
11288
+ return le.length ? (((_ref3 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
11289
+ modelCategory: et,
11290
11290
  modelKey: P,
11291
11291
  bsKey: "listByIds"
11292
- }, { ids: le.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((ie) => ({
11292
+ }, { ids: le.join(",") }) || {}) === null || _ref3 === void 0 ? void 0 : _ref3.data) ?? []).map((ie) => ({
11293
11293
  label: ie.name_ || ie.code_,
11294
11294
  value: ie.id_
11295
11295
  })) : [];
11296
11296
  }
11297
- function m(P, X) {
11297
+ function g(P, X) {
11298
11298
  const le = /* @__PURE__ */ new Map();
11299
11299
  return [...P, ...X].forEach((de) => {
11300
11300
  (de === null || de === void 0 ? void 0 : de.value) != null && le.set(String(de.value), de);
11301
11301
  }), Array.from(le.values());
11302
11302
  }
11303
- async function h(P, X, le) {
11304
- const de = [...new Set(le.filter(Boolean))].filter((me) => !X.some((we) => we.value === me));
11303
+ async function w(P, X, le) {
11304
+ const de = [...new Set(le.filter(Boolean))].filter((ve) => !X.some((we) => we.value === ve));
11305
11305
  if (!de.length) return X;
11306
- return m(X, await R(P, de));
11306
+ return g(X, await M(P, de));
11307
11307
  }
11308
- function _() {
11308
+ function O() {
11309
11309
  return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((P) => P.warehouse_id_)];
11310
11310
  }
11311
- function y() {
11311
+ function m() {
11312
11312
  return (o.value.consume_storage_entries_ ?? []).map((P) => P.shopfloor_id_);
11313
11313
  }
11314
11314
  function d(P) {
@@ -11324,24 +11324,24 @@ var init_index_es = __esmMin((() => {
11324
11324
  modelKey: "em_warehouse",
11325
11325
  keyword: P
11326
11326
  });
11327
- t.value = await h("em_warehouse", X, _());
11327
+ t.value = await w("em_warehouse", X, O());
11328
11328
  } finally {
11329
11329
  l.value = !1;
11330
11330
  }
11331
11331
  }
11332
- async function C(P) {
11332
+ async function k(P) {
11333
11333
  s.value = !0;
11334
11334
  try {
11335
11335
  const X = await S({
11336
11336
  modelKey: "em_shopfloor",
11337
11337
  keyword: P
11338
11338
  });
11339
- a.value = await h("em_shopfloor", X, y());
11339
+ a.value = await w("em_shopfloor", X, m());
11340
11340
  } finally {
11341
11341
  s.value = !1;
11342
11342
  }
11343
11343
  }
11344
- async function k(P, X) {
11344
+ async function b(P, X) {
11345
11345
  if (X) {
11346
11346
  c.value = !0;
11347
11347
  try {
@@ -11352,7 +11352,7 @@ var init_index_es = __esmMin((() => {
11352
11352
  });
11353
11353
  n.value = {
11354
11354
  ...n.value,
11355
- [X]: await h("em_location", le, d(X))
11355
+ [X]: await w("em_location", le, d(X))
11356
11356
  };
11357
11357
  } finally {
11358
11358
  c.value = !1;
@@ -11360,31 +11360,31 @@ var init_index_es = __esmMin((() => {
11360
11360
  }
11361
11361
  }
11362
11362
  async function V() {
11363
- await Promise.all([f(), C()]);
11364
- const P = [...new Set(_().filter(Boolean))];
11365
- await Promise.all(P.map((X) => k("", X)));
11363
+ await Promise.all([f(), k()]);
11364
+ const P = [...new Set(O().filter(Boolean))];
11365
+ await Promise.all(P.map((X) => b("", X)));
11366
11366
  }
11367
- const D = debounce((P) => f(P), 300), U = debounce((P) => C(P), 300), O = debounce((P, X) => k(P, X), 300), z = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
11368
- function A(P) {
11367
+ const U = debounce((P) => f(P), 300), D = debounce((P) => k(P), 300), A = debounce((P, X) => b(P, X), 300), N = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
11368
+ function R(P) {
11369
11369
  return n.value[P.warehouse_id_ ?? ""] ?? [];
11370
11370
  }
11371
- function M(P) {
11371
+ function x(P) {
11372
11372
  return [{
11373
11373
  required: !0,
11374
11374
  message: $t("sys.pleaseSelectSth", { sth: P })
11375
11375
  }];
11376
11376
  }
11377
- function b(P) {
11377
+ function y(P) {
11378
11378
  const X = P.warehouse_id_;
11379
- return X && r.value[X] === !1 ? [] : M($t("sys.pageDesigner.fieldCmp.location"));
11379
+ return X && r.value[X] === !1 ? [] : x($t("sys.pageDesigner.fieldCmp.location"));
11380
11380
  }
11381
- const H = [{
11381
+ const B = [{
11382
11382
  value: "follow_common_policy",
11383
11383
  label: $t("sys.edhr.mcTable.consumeSourceFollowCommon")
11384
11384
  }, {
11385
11385
  value: "custom",
11386
11386
  label: $t("sys.edhr.mcTable.consumeSourceCustom")
11387
- }], W = [
11387
+ }], K = [
11388
11388
  {
11389
11389
  title: $t("sys.edhr.mcTable.shopfloor"),
11390
11390
  key: "shopfloor_id_",
@@ -11413,40 +11413,40 @@ var init_index_es = __esmMin((() => {
11413
11413
  }
11414
11414
  ];
11415
11415
  function Y() {
11416
- o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ && k("", o.value.default_warehouse_id_);
11416
+ o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ && b("", o.value.default_warehouse_id_);
11417
11417
  }
11418
11418
  function ne(P) {
11419
- P.location_id_ = void 0, P.warehouse_id_ && k("", P.warehouse_id_);
11419
+ P.location_id_ = void 0, P.warehouse_id_ && b("", P.warehouse_id_);
11420
11420
  }
11421
11421
  function Q() {
11422
11422
  o.value.consume_storage_entries_.push({
11423
- __key: Ae(8),
11423
+ __key: Oe(8),
11424
11424
  shopfloor_id_: void 0,
11425
11425
  warehouse_id_: void 0,
11426
11426
  location_id_: void 0
11427
11427
  });
11428
11428
  }
11429
- function Oe(P) {
11429
+ function Ae(P) {
11430
11430
  o.value.consume_storage_entries_.splice(P, 1);
11431
11431
  }
11432
- function Ke(P) {
11433
- D(P);
11432
+ function We(P) {
11433
+ U(P);
11434
11434
  }
11435
11435
  function Ve(P) {
11436
- U(P);
11436
+ D(P);
11437
11437
  }
11438
11438
  function ze(P, X) {
11439
- O(P, X);
11439
+ A(P, X);
11440
11440
  }
11441
- async function Ze() {
11441
+ async function Je() {
11442
11442
  const P = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11443
- modelCategory: Ye,
11443
+ modelCategory: et,
11444
11444
  modelKey: "em_material_loading_policy_global",
11445
11445
  bsKey: "getOne"
11446
11446
  }, { includeSubModel: 1 }, { query: {} });
11447
11447
  u.value = P.data || {}, o.value.consume_enabled_ && o.value.consume_source_config_ === "follow_common_policy" && _e();
11448
11448
  }
11449
- function Je(P) {
11449
+ function Qe(P) {
11450
11450
  P && (o.value.consume_source_config_ = "follow_common_policy", _e());
11451
11451
  }
11452
11452
  function st(P) {
@@ -11455,13 +11455,13 @@ var init_index_es = __esmMin((() => {
11455
11455
  function _e() {
11456
11456
  o.value.default_warehouse_id_ = u.value.default_warehouse_id_, o.value.default_location_id_ = u.value.default_location_id_, o.value.consume_storage_entries_ = (u.value.consume_storage_entries_ || []).map((P) => ({
11457
11457
  ...P,
11458
- __key: P.__key || Ae(8)
11458
+ __key: P.__key || Oe(8)
11459
11459
  })), V();
11460
11460
  }
11461
11461
  async function it() {
11462
11462
  var _await$ke$apaas$model;
11463
11463
  (_await$ke$apaas$model = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
11464
- modelCategory: Ye,
11464
+ modelCategory: et,
11465
11465
  modelKey: "em_warehouse",
11466
11466
  bsKey: "listAll"
11467
11467
  }, {}, {})) === 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((X) => {
@@ -11469,18 +11469,18 @@ var init_index_es = __esmMin((() => {
11469
11469
  });
11470
11470
  }
11471
11471
  return onMounted(() => {
11472
- Ze(), it(), V();
11472
+ Je(), it(), V();
11473
11473
  }), (P, X) => {
11474
- const le = resolveComponent("a-radio"), de = resolveComponent("a-radio-group"), ie = resolveComponent("a-form-item"), me = resolveComponent("a-select"), we = resolveComponent("a-col"), We = resolveComponent("a-row"), rt = resolveComponent("a-button"), Qe = resolveComponent("a-table");
11474
+ const le = resolveComponent("a-radio"), de = resolveComponent("a-radio-group"), ie = resolveComponent("a-form-item"), ve = resolveComponent("a-select"), we = resolveComponent("a-col"), Ie = resolveComponent("a-row"), rt = resolveComponent("a-button"), Ye = resolveComponent("a-table");
11475
11475
  return openBlock(), createElementBlock(Fragment, null, [createVNode(ie, {
11476
11476
  label: P.$t("sys.edhr.mcTable.consumeEnabled"),
11477
11477
  name: "consume_enabled_",
11478
- rules: [unref(fe)(P.$t("sys.edhr.mcTable.consumeEnabled"))]
11478
+ rules: [unref(me)(P.$t("sys.edhr.mcTable.consumeEnabled"))]
11479
11479
  }, {
11480
11480
  default: withCtx(() => [createVNode(de, {
11481
11481
  value: o.value.consume_enabled_,
11482
11482
  "onUpdate:value": X[0] || (X[0] = (se) => o.value.consume_enabled_ = se),
11483
- onChange: Je
11483
+ onChange: Qe
11484
11484
  }, {
11485
11485
  default: withCtx(() => [createVNode(le, { value: !0 }, {
11486
11486
  default: withCtx(() => [createTextVNode(toDisplayString(P.$t("sys.true")), 1)]),
@@ -11493,18 +11493,18 @@ var init_index_es = __esmMin((() => {
11493
11493
  }, 8, ["value"])]),
11494
11494
  _: 1
11495
11495
  }, 8, ["label", "rules"]), o.value.consume_enabled_ ? (openBlock(), createElementBlock("div", Ni, [
11496
- createVNode(We, { gutter: 16 }, {
11496
+ createVNode(Ie, { gutter: 16 }, {
11497
11497
  default: withCtx(() => [createVNode(we, { span: 12 }, {
11498
11498
  default: withCtx(() => [createVNode(ie, {
11499
11499
  label: P.$t("sys.edhr.mcTable.consumeSourceConfig"),
11500
11500
  name: "consume_source_config_",
11501
11501
  required: ""
11502
11502
  }, {
11503
- default: withCtx(() => [createVNode(me, {
11503
+ default: withCtx(() => [createVNode(ve, {
11504
11504
  value: o.value.consume_source_config_,
11505
11505
  "onUpdate:value": X[1] || (X[1] = (se) => o.value.consume_source_config_ = se),
11506
11506
  placeholder: P.$t("sys.chooseText"),
11507
- options: H,
11507
+ options: B,
11508
11508
  onChange: st
11509
11509
  }, null, 8, ["value", "placeholder"])]),
11510
11510
  _: 1
@@ -11513,14 +11513,14 @@ var init_index_es = __esmMin((() => {
11513
11513
  })]),
11514
11514
  _: 1
11515
11515
  }),
11516
- createVNode(We, { gutter: 16 }, {
11516
+ createVNode(Ie, { gutter: 16 }, {
11517
11517
  default: withCtx(() => [createVNode(we, { span: 12 }, {
11518
11518
  default: withCtx(() => [createVNode(ie, {
11519
11519
  label: P.$t("sys.edhr.mcTable.defaultWarehouse"),
11520
11520
  name: "default_warehouse_id_",
11521
11521
  required: ""
11522
11522
  }, {
11523
- default: withCtx(() => [createVNode(me, {
11523
+ default: withCtx(() => [createVNode(ve, {
11524
11524
  value: o.value.default_warehouse_id_,
11525
11525
  "onUpdate:value": X[2] || (X[2] = (se) => o.value.default_warehouse_id_ = se),
11526
11526
  "show-search": "",
@@ -11530,7 +11530,7 @@ var init_index_es = __esmMin((() => {
11530
11530
  options: t.value,
11531
11531
  loading: l.value,
11532
11532
  disabled: o.value.consume_source_config_ === "follow_common_policy",
11533
- onSearch: Ke,
11533
+ onSearch: We,
11534
11534
  onChange: Y
11535
11535
  }, null, 8, [
11536
11536
  "value",
@@ -11547,18 +11547,18 @@ var init_index_es = __esmMin((() => {
11547
11547
  label: P.$t("sys.edhr.mcTable.defaultLocation"),
11548
11548
  name: "default_location_id_"
11549
11549
  }, {
11550
- default: withCtx(() => [createVNode(me, {
11550
+ default: withCtx(() => [createVNode(ve, {
11551
11551
  value: o.value.default_location_id_,
11552
11552
  "onUpdate:value": X[3] || (X[3] = (se) => o.value.default_location_id_ = se),
11553
11553
  "show-search": "",
11554
11554
  "allow-clear": "",
11555
11555
  "filter-option": !1,
11556
11556
  placeholder: P.$t("sys.chooseText"),
11557
- options: z.value,
11557
+ options: N.value,
11558
11558
  loading: c.value,
11559
11559
  disabled: o.value.consume_source_config_ === "follow_common_policy" || !o.value.default_warehouse_id_,
11560
11560
  onSearch: X[4] || (X[4] = (se) => ze(se, o.value.default_warehouse_id_)),
11561
- onFocus: X[5] || (X[5] = () => k("", o.value.default_warehouse_id_))
11561
+ onFocus: X[5] || (X[5] = () => b("", o.value.default_warehouse_id_))
11562
11562
  }, null, 8, [
11563
11563
  "value",
11564
11564
  "placeholder",
@@ -11581,10 +11581,10 @@ var init_index_es = __esmMin((() => {
11581
11581
  default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(P.$t("sys.edhr.addRow")), 1)]),
11582
11582
  _: 1
11583
11583
  })) : createCommentVNode("", !0)]),
11584
- createVNode(Qe, {
11584
+ createVNode(Ye, {
11585
11585
  class: "consume-policy-item__storage-table",
11586
11586
  "data-source": o.value.consume_storage_entries_,
11587
- columns: W,
11587
+ columns: K,
11588
11588
  pagination: !1,
11589
11589
  size: "small",
11590
11590
  "row-key": "__key",
@@ -11600,9 +11600,9 @@ var init_index_es = __esmMin((() => {
11600
11600
  J,
11601
11601
  "shopfloor_id_"
11602
11602
  ],
11603
- rules: M(P.$t("sys.edhr.mcTable.shopfloor"))
11603
+ rules: x(P.$t("sys.edhr.mcTable.shopfloor"))
11604
11604
  }, {
11605
- default: withCtx(() => [createVNode(me, {
11605
+ default: withCtx(() => [createVNode(ve, {
11606
11606
  value: I.shopfloor_id_,
11607
11607
  "onUpdate:value": (re) => I.shopfloor_id_ = re,
11608
11608
  class: "consume-policy-item__table-select",
@@ -11614,7 +11614,7 @@ var init_index_es = __esmMin((() => {
11614
11614
  loading: s.value,
11615
11615
  disabled: o.value.consume_source_config_ === "follow_common_policy",
11616
11616
  onSearch: Ve,
11617
- onFocus: X[6] || (X[6] = () => C())
11617
+ onFocus: X[6] || (X[6] = () => k())
11618
11618
  }, null, 8, [
11619
11619
  "value",
11620
11620
  "onUpdate:value",
@@ -11632,9 +11632,9 @@ var init_index_es = __esmMin((() => {
11632
11632
  J,
11633
11633
  "warehouse_id_"
11634
11634
  ],
11635
- rules: M(P.$t("sys.model.warehouse"))
11635
+ rules: x(P.$t("sys.model.warehouse"))
11636
11636
  }, {
11637
- default: withCtx(() => [createVNode(me, {
11637
+ default: withCtx(() => [createVNode(ve, {
11638
11638
  value: I.warehouse_id_,
11639
11639
  "onUpdate:value": (re) => I.warehouse_id_ = re,
11640
11640
  class: "consume-policy-item__table-select",
@@ -11645,7 +11645,7 @@ var init_index_es = __esmMin((() => {
11645
11645
  options: t.value,
11646
11646
  loading: l.value,
11647
11647
  disabled: o.value.consume_source_config_ === "follow_common_policy",
11648
- onSearch: Ke,
11648
+ onSearch: We,
11649
11649
  onChange: () => ne(I)
11650
11650
  }, null, 8, [
11651
11651
  "value",
@@ -11665,9 +11665,9 @@ var init_index_es = __esmMin((() => {
11665
11665
  J,
11666
11666
  "location_id_"
11667
11667
  ],
11668
- rules: b(I)
11668
+ rules: y(I)
11669
11669
  }, {
11670
- default: withCtx(() => [createVNode(me, {
11670
+ default: withCtx(() => [createVNode(ve, {
11671
11671
  value: I.location_id_,
11672
11672
  "onUpdate:value": (re) => I.location_id_ = re,
11673
11673
  class: "consume-policy-item__table-select",
@@ -11675,11 +11675,11 @@ var init_index_es = __esmMin((() => {
11675
11675
  "allow-clear": "",
11676
11676
  "filter-option": !1,
11677
11677
  placeholder: P.$t("sys.chooseText"),
11678
- options: A(I),
11678
+ options: R(I),
11679
11679
  loading: c.value,
11680
11680
  disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !r.value[I.warehouse_id_],
11681
11681
  onSearch: (re) => ze(re, I.warehouse_id_),
11682
- onFocus: () => k("", I.warehouse_id_)
11682
+ onFocus: () => b("", I.warehouse_id_)
11683
11683
  }, null, 8, [
11684
11684
  "value",
11685
11685
  "onUpdate:value",
@@ -11695,47 +11695,58 @@ var init_index_es = __esmMin((() => {
11695
11695
  key: 3,
11696
11696
  class: normalizeClass(["error-gct consume-policy-item__delete", { "is-disabled": o.value.consume_source_config_ === "follow_common_policy" }]),
11697
11697
  href: "javascript:;",
11698
- onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" && Oe(J), ["prevent"])
11698
+ onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" && Ae(J), ["prevent"])
11699
11699
  }, toDisplayString(P.$t("sys.delete")), 11, Pi)) : createCommentVNode("", !0)]),
11700
11700
  _: 1
11701
11701
  }, 8, ["data-source", "locale"])
11702
11702
  ])) : createCommentVNode("", !0)], 64);
11703
11703
  };
11704
11704
  }
11705
- }), [["__scopeId", "data-v-3b8c9402"]]);
11705
+ }), [["__scopeId", "data-v-359e8c41"]]);
11706
11706
  Ut = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
11707
11707
  __name: "bom-formula-editor",
11708
- props: {
11708
+ props: /* @__PURE__ */ mergeModels({
11709
11709
  mode: {},
11710
11710
  modelKey: {},
11711
- expr: {},
11712
- exprEcho: {},
11713
11711
  filterFunc: {},
11714
11712
  returnType: {},
11715
11713
  disabledReturnType: { type: Boolean }
11716
- },
11717
- emits: ["update:expr", "update:exprEcho"],
11718
- setup(e, { emit: o }) {
11719
- const t = e, a = o, n = inject(ea, { hasIds: [] }), l = async () => {
11714
+ }, {
11715
+ value: {},
11716
+ valueModifiers: {}
11717
+ }),
11718
+ emits: ["update:value"],
11719
+ setup(e) {
11720
+ const o = e, t = useModel(e, "value"), a = computed(() => {
11721
+ if (!t.value) return {};
11722
+ try {
11723
+ return JSON.parse(t.value);
11724
+ } catch {
11725
+ return { expr: t.value };
11726
+ }
11727
+ }), n = inject(ea, { hasIds: [] }), l = async () => {
11720
11728
  if (!n.openFormulaEditor) {
11721
11729
  console.warn("[BomFormulaEditor] openFormulaEditor 未注入");
11722
11730
  return;
11723
11731
  }
11724
11732
  const c = await n.openFormulaEditor({
11725
- expr: t.expr,
11726
- returnType: t.returnType || Hi.Number,
11727
- disabledReturnType: t.disabledReturnType,
11728
- mode: t.mode ?? bt.ONLINE_FORM_FIELD_FORMULA,
11733
+ expr: a.value.expr,
11734
+ returnType: o.returnType || Hi.Number,
11735
+ disabledReturnType: o.disabledReturnType,
11736
+ mode: o.mode ?? bt.ONLINE_FORM_FIELD_FORMULA,
11729
11737
  identifiers: { [Bi.FIELD]: await s() }
11730
11738
  });
11731
11739
  if (!c) return;
11732
11740
  const { expr: u, exprEcho: r } = c;
11733
- a("update:expr", u), r != null && a("update:exprEcho", r);
11741
+ t.value = JSON.stringify({
11742
+ expr: u,
11743
+ exprEcho: r
11744
+ });
11734
11745
  };
11735
11746
  async function s() {
11736
- if (!t.modelKey) return [];
11737
- let u = await ke$1.apaas.fieldMeta.getList({ modelKey: t.modelKey }) ?? [];
11738
- return t.filterFunc && (u = u.reduce((r, S) => (t.filterFunc(S) && r.push(S), r), [])), u.map((r) => ({
11747
+ if (!o.modelKey) return [];
11748
+ let u = await ke$1.apaas.fieldMeta.getList({ modelKey: o.modelKey }) ?? [];
11749
+ return o.filterFunc && (u = u.reduce((r, S) => (o.filterFunc(S) && r.push(S), r), [])), u.map((r) => ({
11739
11750
  id: r.key,
11740
11751
  name: r.name,
11741
11752
  valueType: r.type
@@ -11747,12 +11758,12 @@ var init_index_es = __esmMin((() => {
11747
11758
  class: "bom-formula-editor",
11748
11759
  readonly: "",
11749
11760
  placeholder: c.$t("sys.inputText"),
11750
- value: e.exprEcho || e.expr,
11761
+ value: a.value.exprEcho,
11751
11762
  onClick: l
11752
11763
  }, null, 8, ["placeholder", "value"]);
11753
11764
  };
11754
11765
  }
11755
- }), [["__scopeId", "data-v-276eb7f4"]]);
11766
+ }), [["__scopeId", "data-v-8f400877"]]);
11756
11767
  Wi = {
11757
11768
  key: 0,
11758
11769
  class: "qty-policy-item__nested"
@@ -11765,7 +11776,7 @@ var init_index_es = __esmMin((() => {
11765
11776
  },
11766
11777
  emits: ["update:formState"],
11767
11778
  setup(e) {
11768
- const o = useModel(e, "formState"), t = ref(), a = ref(), n = [
11779
+ const o = useModel(e, "formState"), t = [
11769
11780
  {
11770
11781
  value: "eq",
11771
11782
  label: $t("sys.edhr.mcTable.qtyValidationRuleEq")
@@ -11783,91 +11794,85 @@ var init_index_es = __esmMin((() => {
11783
11794
  label: $t("sys.edhr.mcTable.qtyValidationRuleBounds")
11784
11795
  }
11785
11796
  ];
11786
- return (l, s) => {
11787
- const c = resolveComponent("a-radio"), u = resolveComponent("a-radio-group"), r = resolveComponent("a-form-item"), S = resolveComponent("a-select"), R = resolveComponent("a-col"), m = resolveComponent("a-row");
11788
- return openBlock(), createElementBlock(Fragment, null, [createVNode(r, {
11789
- label: l.$t("sys.edhr.mcTable.qtyValidationEnabled"),
11797
+ return (a, n) => {
11798
+ const l = resolveComponent("a-radio"), s = resolveComponent("a-radio-group"), c = resolveComponent("a-form-item"), u = resolveComponent("a-select"), r = resolveComponent("a-col"), S = resolveComponent("a-row");
11799
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(c, {
11800
+ label: a.$t("sys.edhr.mcTable.qtyValidationEnabled"),
11790
11801
  name: "qty_validation_enabled_",
11791
- rules: [unref(fe)(l.$t("sys.edhr.mcTable.qtyValidationEnabled"))]
11802
+ rules: [unref(me)(a.$t("sys.edhr.mcTable.qtyValidationEnabled"))]
11792
11803
  }, {
11793
- default: withCtx(() => [createVNode(u, {
11804
+ default: withCtx(() => [createVNode(s, {
11794
11805
  value: o.value.qty_validation_enabled_,
11795
- "onUpdate:value": s[0] || (s[0] = (h) => o.value.qty_validation_enabled_ = h)
11806
+ "onUpdate:value": n[0] || (n[0] = (M) => o.value.qty_validation_enabled_ = M)
11796
11807
  }, {
11797
- default: withCtx(() => [createVNode(c, { value: !0 }, {
11798
- default: withCtx(() => [createTextVNode(toDisplayString(l.$t("sys.true")), 1)]),
11808
+ default: withCtx(() => [createVNode(l, { value: !0 }, {
11809
+ default: withCtx(() => [createTextVNode(toDisplayString(a.$t("sys.true")), 1)]),
11799
11810
  _: 1
11800
- }), createVNode(c, { value: !1 }, {
11801
- default: withCtx(() => [createTextVNode(toDisplayString(l.$t("sys.false")), 1)]),
11811
+ }), createVNode(l, { value: !1 }, {
11812
+ default: withCtx(() => [createTextVNode(toDisplayString(a.$t("sys.false")), 1)]),
11802
11813
  _: 1
11803
11814
  })]),
11804
11815
  _: 1
11805
11816
  }, 8, ["value"])]),
11806
11817
  _: 1
11807
- }, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", Wi, [createVNode(m, { gutter: 16 }, {
11808
- default: withCtx(() => [createVNode(R, { span: 12 }, {
11809
- default: withCtx(() => [createVNode(r, {
11810
- label: l.$t("sys.edhr.mcTable.qtyValidationRule"),
11818
+ }, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", Wi, [createVNode(S, { gutter: 16 }, {
11819
+ default: withCtx(() => [createVNode(r, { span: 12 }, {
11820
+ default: withCtx(() => [createVNode(c, {
11821
+ label: a.$t("sys.edhr.mcTable.qtyValidationRule"),
11811
11822
  name: "qty_validation_rule_",
11812
11823
  required: ""
11813
11824
  }, {
11814
- default: withCtx(() => [createVNode(S, {
11825
+ default: withCtx(() => [createVNode(u, {
11815
11826
  value: o.value.qty_validation_rule_,
11816
- "onUpdate:value": s[1] || (s[1] = (h) => o.value.qty_validation_rule_ = h),
11817
- placeholder: l.$t("sys.chooseText"),
11818
- options: n
11827
+ "onUpdate:value": n[1] || (n[1] = (M) => o.value.qty_validation_rule_ = M),
11828
+ placeholder: a.$t("sys.chooseText"),
11829
+ options: t
11819
11830
  }, null, 8, ["value", "placeholder"])]),
11820
11831
  _: 1
11821
11832
  }, 8, ["label"])]),
11822
11833
  _: 1
11823
11834
  })]),
11824
11835
  _: 1
11825
- }), o.value.qty_validation_rule_ === "bounds" ? (openBlock(), createBlock(m, {
11836
+ }), o.value.qty_validation_rule_ === "bounds" ? (openBlock(), createBlock(S, {
11826
11837
  key: 0,
11827
11838
  gutter: 16
11828
11839
  }, {
11829
- default: withCtx(() => [createVNode(R, { span: 12 }, {
11830
- default: withCtx(() => [createVNode(r, {
11831
- label: l.$t("sys.edhr.mcTable.qtyValidationMax"),
11840
+ default: withCtx(() => [createVNode(r, { span: 12 }, {
11841
+ default: withCtx(() => [createVNode(c, {
11842
+ label: a.$t("sys.edhr.mcTable.qtyValidationMax"),
11832
11843
  name: "max_value_",
11833
11844
  required: ""
11834
11845
  }, {
11835
11846
  default: withCtx(() => [createVNode(Ut, {
11836
- expr: o.value.max_value_,
11837
- "onUpdate:expr": s[2] || (s[2] = (h) => o.value.max_value_ = h),
11838
- "expr-echo": t.value,
11839
- "onUpdate:exprEcho": s[3] || (s[3] = (h) => t.value = h),
11847
+ value: o.value.max_value_,
11848
+ "onUpdate:value": n[2] || (n[2] = (M) => o.value.max_value_ = M),
11840
11849
  "model-key": "em_material_consume",
11841
11850
  mode: unref(bt).FIELD_DISPLAY,
11842
11851
  "disabled-return-type": !0,
11843
- "filter-func": (h) => h.key === "qty_required_"
11852
+ "filter-func": (M) => M.key === "qty_required_"
11844
11853
  }, null, 8, [
11845
- "expr",
11846
- "expr-echo",
11854
+ "value",
11847
11855
  "mode",
11848
11856
  "filter-func"
11849
11857
  ])]),
11850
11858
  _: 1
11851
11859
  }, 8, ["label"])]),
11852
11860
  _: 1
11853
- }), createVNode(R, { span: 12 }, {
11854
- default: withCtx(() => [createVNode(r, {
11855
- label: l.$t("sys.edhr.mcTable.qtyValidationMin"),
11861
+ }), createVNode(r, { span: 12 }, {
11862
+ default: withCtx(() => [createVNode(c, {
11863
+ label: a.$t("sys.edhr.mcTable.qtyValidationMin"),
11856
11864
  name: "min_value_",
11857
11865
  required: ""
11858
11866
  }, {
11859
11867
  default: withCtx(() => [createVNode(Ut, {
11860
- expr: o.value.min_value_,
11861
- "onUpdate:expr": s[4] || (s[4] = (h) => o.value.min_value_ = h),
11862
- "expr-echo": a.value,
11863
- "onUpdate:exprEcho": s[5] || (s[5] = (h) => a.value = h),
11868
+ value: o.value.min_value_,
11869
+ "onUpdate:value": n[3] || (n[3] = (M) => o.value.min_value_ = M),
11864
11870
  "model-key": "em_material_consume",
11865
11871
  mode: unref(bt).FIELD_DISPLAY,
11866
11872
  "disabled-return-type": !0,
11867
- "filter-func": (h) => h.key === "qty_required_"
11873
+ "filter-func": (M) => M.key === "qty_required_"
11868
11874
  }, null, 8, [
11869
- "expr",
11870
- "expr-echo",
11875
+ "value",
11871
11876
  "mode",
11872
11877
  "filter-func"
11873
11878
  ])]),
@@ -11879,7 +11884,7 @@ var init_index_es = __esmMin((() => {
11879
11884
  })) : createCommentVNode("", !0)])) : createCommentVNode("", !0)], 64);
11880
11885
  };
11881
11886
  }
11882
- }), [["__scopeId", "data-v-38484add"]]);
11887
+ }), [["__scopeId", "data-v-c069421a"]]);
11883
11888
  ji = { style: { "margin-top": "4px" } };
11884
11889
  Fi = { key: 0 };
11885
11890
  Gi = `BOM模式:可读取工单BOM的用料策略,支持库存扣减;
@@ -11907,18 +11912,18 @@ var init_index_es = __esmMin((() => {
11907
11912
  required: !0,
11908
11913
  message: "请选择物料消耗模式"
11909
11914
  }],
11910
- personal_bom_enabled_: [fe("自定义用料策略")]
11915
+ personal_bom_enabled_: [me("自定义用料策略")]
11911
11916
  };
11912
11917
  return t.value.personal_bom_enabled_ && (c.type_ = [{
11913
11918
  required: !0,
11914
11919
  message: "请选择上料方式"
11915
- }], t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && (c.consume_enabled_ = [fe("是否消耗库存")], t.value.consume_enabled_ && (c.consume_source_config_ = [{
11920
+ }], t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && (c.consume_enabled_ = [me("是否消耗库存")], t.value.consume_enabled_ && (c.consume_source_config_ = [{
11916
11921
  required: !0,
11917
11922
  message: "请选择物料消耗来源配置"
11918
11923
  }], t.value.consume_source_config_ === "custom" && (c.default_warehouse_id_ = [{
11919
11924
  required: !0,
11920
11925
  message: "请选择默认仓库"
11921
- }]))), t.value.type_ !== "view" && (c.qty_validation_enabled_ = [fe("是否启用数量校验")], t.value.qty_validation_enabled_ && (c.qty_validation_rule_ = [{
11926
+ }]))), t.value.type_ !== "view" && (c.qty_validation_enabled_ = [me("是否启用数量校验")], t.value.qty_validation_enabled_ && (c.qty_validation_rule_ = [{
11922
11927
  required: !0,
11923
11928
  message: "请选择数量校验规则"
11924
11929
  }], t.value.qty_validation_rule_ === "bounds" && (c.max_value_ = [{
@@ -11934,11 +11939,11 @@ var init_index_es = __esmMin((() => {
11934
11939
  await ((_a$value = a.value) === null || _a$value === void 0 ? void 0 : _a$value.validate());
11935
11940
  }
11936
11941
  return o({ validate: s }), (c, u) => {
11937
- const r = resolveComponent("a-select"), S = resolveComponent("a-form-item"), R = resolveComponent("a-switch"), m = resolveComponent("a-radio"), h = resolveComponent("a-radio-group"), _ = resolveComponent("a-form");
11942
+ const r = resolveComponent("a-select"), S = resolveComponent("a-form-item"), M = resolveComponent("a-switch"), g = resolveComponent("a-radio"), w = resolveComponent("a-radio-group"), O = resolveComponent("a-form");
11938
11943
  return openBlock(), createElementBlock("div", null, [createVNode(unref(ht), null, {
11939
11944
  default: withCtx(() => [...u[5] || (u[5] = [createTextVNode("用料策略", -1)])]),
11940
11945
  _: 1
11941
- }), createVNode(_, {
11946
+ }), createVNode(O, {
11942
11947
  ref_key: "formRef",
11943
11948
  ref: a,
11944
11949
  model: t.value,
@@ -11952,7 +11957,7 @@ var init_index_es = __esmMin((() => {
11952
11957
  label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info: Gi })]),
11953
11958
  default: withCtx(() => [createVNode(r, {
11954
11959
  value: t.value.material_consumption_pattern_,
11955
- "onUpdate:value": u[0] || (u[0] = (y) => t.value.material_consumption_pattern_ = y),
11960
+ "onUpdate:value": u[0] || (u[0] = (m) => t.value.material_consumption_pattern_ = m),
11956
11961
  placeholder: "请选择",
11957
11962
  options: n
11958
11963
  }, null, 8, ["value"])]),
@@ -11962,9 +11967,9 @@ var init_index_es = __esmMin((() => {
11962
11967
  name: "personal_bom_enabled_",
11963
11968
  label: "自定义用料策略"
11964
11969
  }, {
11965
- default: withCtx(() => [createElementVNode("div", ji, [createVNode(R, {
11970
+ default: withCtx(() => [createElementVNode("div", ji, [createVNode(M, {
11966
11971
  checked: t.value.personal_bom_enabled_,
11967
- "onUpdate:checked": u[1] || (u[1] = (y) => t.value.personal_bom_enabled_ = y)
11972
+ "onUpdate:checked": u[1] || (u[1] = (m) => t.value.personal_bom_enabled_ = m)
11968
11973
  }, null, 8, ["checked"])])]),
11969
11974
  _: 1
11970
11975
  }),
@@ -11974,21 +11979,21 @@ var init_index_es = __esmMin((() => {
11974
11979
  required: ""
11975
11980
  }, {
11976
11981
  label: withCtx(() => [u[7] || (u[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(gt), { info: Xi })]),
11977
- default: withCtx(() => [createVNode(h, {
11982
+ default: withCtx(() => [createVNode(w, {
11978
11983
  value: t.value.type_,
11979
- "onUpdate:value": u[2] || (u[2] = (y) => t.value.type_ = y),
11984
+ "onUpdate:value": u[2] || (u[2] = (m) => t.value.type_ = m),
11980
11985
  name: "radioGroup1"
11981
11986
  }, {
11982
11987
  default: withCtx(() => [
11983
- createVNode(m, { value: "view" }, {
11988
+ createVNode(g, { value: "view" }, {
11984
11989
  default: withCtx(() => [...u[8] || (u[8] = [createTextVNode("仅查看", -1)])]),
11985
11990
  _: 1
11986
11991
  }),
11987
- createVNode(m, { value: "by_number" }, {
11992
+ createVNode(g, { value: "by_number" }, {
11988
11993
  default: withCtx(() => [...u[9] || (u[9] = [createTextVNode("按数量上料", -1)])]),
11989
11994
  _: 1
11990
11995
  }),
11991
- createVNode(m, { value: "by_lot" }, {
11996
+ createVNode(g, { value: "by_lot" }, {
11992
11997
  default: withCtx(() => [...u[10] || (u[10] = [createTextVNode("按批次上料", -1)])]),
11993
11998
  _: 1
11994
11999
  })
@@ -12000,12 +12005,12 @@ var init_index_es = __esmMin((() => {
12000
12005
  t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(ta, {
12001
12006
  key: 0,
12002
12007
  "form-state": t.value,
12003
- "onUpdate:formState": u[3] || (u[3] = (y) => t.value = y)
12008
+ "onUpdate:formState": u[3] || (u[3] = (m) => t.value = m)
12004
12009
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
12005
12010
  t.value.type_ !== "view" ? (openBlock(), createBlock(aa, {
12006
12011
  key: 1,
12007
12012
  "form-state": t.value,
12008
- "onUpdate:formState": u[4] || (u[4] = (y) => t.value = y)
12013
+ "onUpdate:formState": u[4] || (u[4] = (m) => t.value = m)
12009
12014
  }, null, 8, ["form-state"])) : createCommentVNode("", !0)
12010
12015
  ])) : createCommentVNode("", !0)
12011
12016
  ]),
@@ -12076,47 +12081,47 @@ var init_index_es = __esmMin((() => {
12076
12081
  title: "默认值",
12077
12082
  slots: { default: "value_default" }
12078
12083
  }]
12079
- }), S = computed(() => !!t.bizOptions.editingItem), R = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), m = computed(() => t.bizOptions.objectFields.filter((k) => {
12084
+ }), S = computed(() => !!t.bizOptions.editingItem), M = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), g = computed(() => t.bizOptions.objectFields.filter((b) => {
12080
12085
  var _t$bizOptions$configu, _t$bizOptions$configu2;
12081
- return S.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 === k.key));
12082
- }).map((k) => ({
12083
- label: k.name,
12084
- value: k.key
12085
- }))), h = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((C) => C.type === Xt.REF && C.bizType === Et.BOM_ENTRY_ID ? !1 : C.belongingObject === u.value.objectField) : []), _ = computed(() => h.value.map((C) => ({
12086
- key: C.key,
12087
- name: C.name,
12088
- field: C
12089
- }))), y = (C, k) => {
12086
+ return S.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 === b.key));
12087
+ }).map((b) => ({
12088
+ label: b.name,
12089
+ value: b.key
12090
+ }))), w = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((k) => k.type === Xt.REF && k.bizType === Et.BOM_ENTRY_ID ? !1 : k.belongingObject === u.value.objectField) : []), O = computed(() => w.value.map((k) => ({
12091
+ key: k.key,
12092
+ name: k.name,
12093
+ field: k
12094
+ }))), m = (k, b) => {
12090
12095
  u.value.values = {
12091
12096
  ...u.value.values,
12092
- [C]: k
12097
+ [k]: b
12093
12098
  };
12094
12099
  }, d = () => {
12095
12100
  Jr("PARSE_RULE_MODAL", {
12096
12101
  config: u.value.parseRuleProps,
12097
- formFieldOptions: h.value.map((C) => ({
12098
- label: C.name,
12099
- value: C.key
12102
+ formFieldOptions: w.value.map((k) => ({
12103
+ label: k.name,
12104
+ value: k.key
12100
12105
  })),
12101
12106
  formFieldsLabel: "对象字段",
12102
12107
  ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
12103
- }).then((C) => {
12104
- C.success && (u.value.parseRuleProps = C.result ?? {});
12108
+ }).then((k) => {
12109
+ k.success && (u.value.parseRuleProps = k.result ?? {});
12105
12110
  });
12106
12111
  };
12107
- watch(() => t.bizOptions.editingItem, (C) => {
12108
- if (!C) return;
12109
- const k = c(), V = cloneDeep(C);
12112
+ watch(() => t.bizOptions.editingItem, (k) => {
12113
+ if (!k) return;
12114
+ const b = c(), V = cloneDeep(k);
12110
12115
  u.value = {
12111
- ...k,
12116
+ ...b,
12112
12117
  ...V,
12113
- values: V.values ?? k.values,
12114
- parseRuleProps: V.parseRuleProps ?? k.parseRuleProps,
12115
- consume_source_config_: V.consume_source_config_ ?? k.consume_source_config_,
12116
- qty_validation_rule_: V.qty_validation_rule_ ?? k.qty_validation_rule_,
12117
- consume_storage_entries_: (V.consume_storage_entries_ ?? []).map((D) => ({
12118
- ...D,
12119
- __key: D.__key || Ae(8)
12118
+ values: V.values ?? b.values,
12119
+ parseRuleProps: V.parseRuleProps ?? b.parseRuleProps,
12120
+ consume_source_config_: V.consume_source_config_ ?? b.consume_source_config_,
12121
+ qty_validation_rule_: V.qty_validation_rule_ ?? b.qty_validation_rule_,
12122
+ consume_storage_entries_: (V.consume_storage_entries_ ?? []).map((U) => ({
12123
+ ...U,
12124
+ __key: U.__key || Oe(8)
12120
12125
  }))
12121
12126
  };
12122
12127
  }, { immediate: !0 });
@@ -12127,35 +12132,35 @@ var init_index_es = __esmMin((() => {
12127
12132
  } catch {
12128
12133
  return;
12129
12134
  }
12130
- const C = t.bizOptions.objectFields.find((k) => k.key === u.value.objectField);
12131
- u.value.objectFieldName = C === null || C === void 0 ? void 0 : C.name, u.value.objectBizType = C === null || C === void 0 ? void 0 : C.bizType, t.modalInst.confirm(u.value);
12135
+ const k = t.bizOptions.objectFields.find((b) => b.key === u.value.objectField);
12136
+ u.value.objectFieldName = k === null || k === void 0 ? void 0 : k.name, u.value.objectBizType = k === null || k === void 0 ? void 0 : k.bizType, t.modalInst.confirm(u.value);
12132
12137
  };
12133
- return (C, k) => {
12134
- const V = resolveComponent("a-select"), D = resolveComponent("a-form-item"), U = resolveComponent("a-form"), O = resolveComponent("a-switch"), z = resolveComponent("a-button"), A = resolveComponent("a-select-option");
12135
- return openBlock(), createBlock($e, mergeProps(e.modalProps, {
12138
+ return (k, b) => {
12139
+ const V = resolveComponent("a-select"), U = resolveComponent("a-form-item"), D = resolveComponent("a-form"), A = resolveComponent("a-switch"), N = resolveComponent("a-button"), R = resolveComponent("a-select-option");
12140
+ return openBlock(), createBlock(Ze, mergeProps(e.modalProps, {
12136
12141
  visible: e.modalVisible,
12137
12142
  onCancel: e.modalInst.cancel,
12138
12143
  onOk: f,
12139
- onAfterClose: k[4] || (k[4] = (M) => a("afterClose"))
12144
+ onAfterClose: b[4] || (b[4] = (x) => a("afterClose"))
12140
12145
  }), {
12141
12146
  default: withCtx(() => [
12142
- createVNode(U, {
12147
+ createVNode(D, {
12143
12148
  ref_key: "objectFieldFormRef",
12144
12149
  ref: n,
12145
12150
  layout: "vertical",
12146
12151
  model: u.value,
12147
12152
  rules: s
12148
12153
  }, {
12149
- default: withCtx(() => [createVNode(D, {
12154
+ default: withCtx(() => [createVNode(U, {
12150
12155
  label: "对象字段",
12151
12156
  name: "objectField",
12152
12157
  required: ""
12153
12158
  }, {
12154
12159
  default: withCtx(() => [createVNode(V, {
12155
12160
  value: u.value.objectField,
12156
- "onUpdate:value": k[0] || (k[0] = (M) => u.value.objectField = M),
12161
+ "onUpdate:value": b[0] || (b[0] = (x) => u.value.objectField = x),
12157
12162
  placeholder: "请选择",
12158
- options: m.value,
12163
+ options: g.value,
12159
12164
  disabled: S.value
12160
12165
  }, null, 8, [
12161
12166
  "value",
@@ -12167,17 +12172,17 @@ var init_index_es = __esmMin((() => {
12167
12172
  _: 1
12168
12173
  }, 8, ["model"]),
12169
12174
  u.value.objectField ? (openBlock(), createElementBlock("div", Zi, [createVNode(unref(ht), null, {
12170
- default: withCtx(() => [...k[5] || (k[5] = [createTextVNode("默认值", -1)])]),
12175
+ default: withCtx(() => [...b[5] || (b[5] = [createTextVNode("默认值", -1)])]),
12171
12176
  _: 1
12172
12177
  }), createVNode(unref(VxeGrid), mergeProps({
12173
12178
  class: "object-table",
12174
- data: _.value
12179
+ data: O.value
12175
12180
  }, r.value), {
12176
- value_default: withCtx(({ row: M }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12181
+ value_default: withCtx(({ row: x }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12177
12182
  key: 0,
12178
- field: M.field,
12179
- modelValue: u.value.values[M.key],
12180
- "onUpdate:modelValue": (b) => y(M.key, b)
12183
+ field: x.field,
12184
+ modelValue: u.value.values[x.key],
12185
+ "onUpdate:modelValue": (y) => m(x.key, y)
12181
12186
  }, null, 8, [
12182
12187
  "field",
12183
12188
  "modelValue",
@@ -12186,24 +12191,24 @@ var init_index_es = __esmMin((() => {
12186
12191
  _: 1
12187
12192
  }, 16, ["data"])])) : createCommentVNode("", !0),
12188
12193
  createElementVNode("div", null, [createVNode(unref(ht), null, {
12189
- default: withCtx(() => [...k[6] || (k[6] = [createTextVNode("条码解析规则", -1)])]),
12194
+ default: withCtx(() => [...b[6] || (b[6] = [createTextVNode("条码解析规则", -1)])]),
12190
12195
  _: 1
12191
- }), createVNode(U, {
12196
+ }), createVNode(D, {
12192
12197
  ref: "barcodeRulesFormRef",
12193
12198
  model: u.value,
12194
12199
  layout: "horizontal"
12195
12200
  }, {
12196
- default: withCtx(() => [createVNode(D, {
12201
+ default: withCtx(() => [createVNode(U, {
12197
12202
  label: "是否启用条码解析规则",
12198
12203
  name: "disableBarcodeParsing"
12199
12204
  }, {
12200
- default: withCtx(() => [createVNode(O, {
12205
+ default: withCtx(() => [createVNode(A, {
12201
12206
  size: "small",
12202
12207
  checked: !u.value.disableBarcodeParsing,
12203
- onChange: k[1] || (k[1] = (M) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
12208
+ onChange: b[1] || (b[1] = (x) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
12204
12209
  }, null, 8, ["checked"])]),
12205
12210
  _: 1
12206
- }), u.value.disableBarcodeParsing ? (openBlock(), createBlock(D, {
12211
+ }), u.value.disableBarcodeParsing ? (openBlock(), createBlock(U, {
12207
12212
  key: 1,
12208
12213
  label: "参数",
12209
12214
  name: "scanParamType",
@@ -12214,27 +12219,27 @@ var init_index_es = __esmMin((() => {
12214
12219
  }, {
12215
12220
  default: withCtx(() => [createVNode(V, {
12216
12221
  value: u.value.scanParamType,
12217
- "onUpdate:value": k[2] || (k[2] = (M) => u.value.scanParamType = M),
12218
- placeholder: C.$t("sys.chooseText")
12222
+ "onUpdate:value": b[2] || (b[2] = (x) => u.value.scanParamType = x),
12223
+ placeholder: k.$t("sys.chooseText")
12219
12224
  }, {
12220
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(yt)), (M) => (openBlock(), createBlock(A, {
12221
- key: M,
12222
- value: M
12225
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(yt)), (x) => (openBlock(), createBlock(R, {
12226
+ key: x,
12227
+ value: x
12223
12228
  }, {
12224
- default: withCtx(() => [createTextVNode(toDisplayString(C.$t(`sys.ScanParamType.${M}`)), 1)]),
12229
+ default: withCtx(() => [createTextVNode(toDisplayString(k.$t(`sys.ScanParamType.${x}`)), 1)]),
12225
12230
  _: 2
12226
12231
  }, 1032, ["value"]))), 128))]),
12227
12232
  _: 1
12228
12233
  }, 8, ["value", "placeholder"])]),
12229
12234
  _: 1
12230
- }, 8, ["rules"])) : (openBlock(), createBlock(z, {
12235
+ }, 8, ["rules"])) : (openBlock(), createBlock(N, {
12231
12236
  key: 0,
12232
12237
  block: "",
12233
- ghost: !R.value,
12238
+ ghost: !M.value,
12234
12239
  type: "primary",
12235
12240
  onClick: d
12236
12241
  }, {
12237
- default: withCtx(() => [createTextVNode(toDisplayString(R.value ? "编辑" : "添加") + "规则 ", 1)]),
12242
+ default: withCtx(() => [createTextVNode(toDisplayString(M.value ? "编辑" : "添加") + "规则 ", 1)]),
12238
12243
  _: 1
12239
12244
  }, 8, ["ghost"]))]),
12240
12245
  _: 1
@@ -12243,7 +12248,7 @@ var init_index_es = __esmMin((() => {
12243
12248
  ref_key: "materialStrategyRef",
12244
12249
  ref: l,
12245
12250
  "form-state": u.value,
12246
- "onUpdate:formState": k[3] || (k[3] = (M) => u.value = M),
12251
+ "onUpdate:formState": b[3] || (b[3] = (x) => u.value = x),
12247
12252
  showConsumePolicy: e.bizOptions.showConsumePolicy
12248
12253
  }, null, 8, ["form-state", "showConsumePolicy"])
12249
12254
  ]),
@@ -12252,7 +12257,7 @@ var init_index_es = __esmMin((() => {
12252
12257
  };
12253
12258
  }
12254
12259
  }), [["__scopeId", "data-v-ea191113"]]);
12255
- Fe = /* @__PURE__ */ ((e) => (e.materialCode = "materialCode", e.lot = "lot", e.qty = "qty", e.expiration = "expiration", e.deviceCode = "deviceCode", e.other = "other", e))(Fe || {});
12260
+ Xe = /* @__PURE__ */ ((e) => (e.materialCode = "materialCode", e.lot = "lot", e.qty = "qty", e.expiration = "expiration", e.deviceCode = "deviceCode", e.other = "other", e))(Xe || {});
12256
12261
  Yi = ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
12257
12262
  nr = { class: "field-mapping__rule-control" };
12258
12263
  lr = {
@@ -12330,7 +12335,7 @@ var init_index_es = __esmMin((() => {
12330
12335
  })));
12331
12336
  const S = () => {
12332
12337
  console.log("change", r.fillMapArr), n("update:fillMapArr", l(r.fillMapArr));
12333
- }, R = async (d) => {
12338
+ }, M = async (d) => {
12334
12339
  if (!d) {
12335
12340
  u.value = [], n("ruleConfigChange", void 0);
12336
12341
  return;
@@ -12340,36 +12345,36 @@ var init_index_es = __esmMin((() => {
12340
12345
  u.value = [], n("ruleConfigChange", void 0);
12341
12346
  return;
12342
12347
  }
12343
- u.value = f.fieldList.map((C) => ({
12344
- label: C.alias ?? $t(`sys.edhr.labelConfigFields.${C.type}`),
12345
- value: C.key
12348
+ u.value = f.fieldList.map((k) => ({
12349
+ label: k.alias ?? $t(`sys.edhr.labelConfigFields.${k.type}`),
12350
+ value: k.key
12346
12351
  })), n("ruleConfigChange", f);
12347
- }, m = (d) => {
12352
+ }, g = (d) => {
12348
12353
  if (a.disabled) return;
12349
12354
  const f = d ?? void 0;
12350
- f !== r.parsingRuleId && (r.parsingRuleId = f, r.fillMapArr = [], n("update:parsingRuleId", f), n("update:fillMapArr", []), R(f));
12351
- }, h = () => {
12355
+ f !== r.parsingRuleId && (r.parsingRuleId = f, r.fillMapArr = [], n("update:parsingRuleId", f), n("update:fillMapArr", []), M(f));
12356
+ }, w = () => {
12352
12357
  a.disabled || (r.fillMapArr.push({ formFields: [] }), S());
12353
- }, _ = (d) => {
12358
+ }, O = (d) => {
12354
12359
  a.disabled || (r.fillMapArr.splice(d, 1), S());
12355
- }, y = (d, f) => {
12356
- const C = d.trim().toLowerCase();
12357
- return C ? f.label.toLowerCase().includes(C) || String(f.value ?? "").toLowerCase().includes(C) : !0;
12360
+ }, m = (d, f) => {
12361
+ const k = d.trim().toLowerCase();
12362
+ return k ? f.label.toLowerCase().includes(k) || String(f.value ?? "").toLowerCase().includes(k) : !0;
12358
12363
  };
12359
12364
  return onMounted(() => {
12360
- r.parsingRuleId && R(r.parsingRuleId);
12365
+ r.parsingRuleId && M(r.parsingRuleId);
12361
12366
  }), o({ validate: () => {
12362
12367
  var _s$value3;
12363
12368
  return (_s$value3 = s.value) === null || _s$value3 === void 0 ? void 0 : _s$value3.validate();
12364
12369
  } }), (d, f) => {
12365
- const C = resolveComponent("a-form-item"), k = resolveComponent("a-alert"), V = resolveComponent("a-select"), D = resolveComponent("a-button"), U = resolveComponent("a-form");
12366
- return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(U, {
12370
+ const k = resolveComponent("a-form-item"), b = resolveComponent("a-alert"), V = resolveComponent("a-select"), U = resolveComponent("a-button"), D = resolveComponent("a-form");
12371
+ return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(D, {
12367
12372
  ref_key: "formRef",
12368
12373
  ref: s,
12369
12374
  model: r,
12370
12375
  layout: "horizontal"
12371
12376
  }, {
12372
- default: withCtx(() => [createVNode(C, {
12377
+ default: withCtx(() => [createVNode(k, {
12373
12378
  class: "field-mapping__rule",
12374
12379
  label: d.$t("sys.edhr.mcTable.parseRule") + ":",
12375
12380
  name: "parsingRuleId"
@@ -12381,36 +12386,36 @@ var init_index_es = __esmMin((() => {
12381
12386
  disabled: e.disabled,
12382
12387
  disabledParent: !1,
12383
12388
  "parent-to-default": !1,
12384
- "onUpdate:modelValue": m
12389
+ "onUpdate:modelValue": g
12385
12390
  }, null, 8, ["model-value", "disabled"]), e.collapsible ? (openBlock(), createElementBlock("div", {
12386
12391
  key: 0,
12387
12392
  class: "field-mapping__expand primary-gct",
12388
- onClick: f[0] || (f[0] = (O) => c.value = !c.value)
12393
+ onClick: f[0] || (f[0] = (A) => c.value = !c.value)
12389
12394
  }, [createTextVNode(toDisplayString(c.value ? d.$t("sys.collapseConfig") : d.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", c.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
12390
12395
  _: 1
12391
12396
  }, 8, ["label"]), withDirectives(createElementVNode("div", null, [
12392
- e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", lr, [createVNode(k, {
12397
+ e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", lr, [createVNode(b, {
12393
12398
  message: e.ruleTip,
12394
12399
  type: "info",
12395
12400
  "show-icon": ""
12396
12401
  }, null, 8, ["message"])])) : createCommentVNode("", !0),
12397
12402
  createElementVNode("div", sr, toDisplayString(d.$t("sys.onlineForm.fieldMapping")), 1),
12398
- e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", ir, [createVNode(k, {
12403
+ e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", ir, [createVNode(b, {
12399
12404
  message: e.ruleTip,
12400
12405
  type: "info",
12401
12406
  "show-icon": ""
12402
12407
  }, null, 8, ["message"])])) : createCommentVNode("", !0),
12403
12408
  createElementVNode("div", rr, [
12404
12409
  r.fillMapArr.length ? (openBlock(), createElementBlock("div", ur, [createElementVNode("div", dr, toDisplayString(d.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", cr, toDisplayString(e.formFieldsLabel || d.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
12405
- createElementVNode("div", pr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (O, z) => (openBlock(), createElementBlock("div", {
12406
- key: z,
12410
+ createElementVNode("div", pr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (A, N) => (openBlock(), createElementBlock("div", {
12411
+ key: N,
12407
12412
  class: "field-mapping__row"
12408
12413
  }, [
12409
- createVNode(C, {
12414
+ createVNode(k, {
12410
12415
  class: "field-mapping__barcodeField",
12411
12416
  name: [
12412
12417
  "fillMapArr",
12413
- z,
12418
+ N,
12414
12419
  "barcodeField"
12415
12420
  ],
12416
12421
  rules: [{
@@ -12419,8 +12424,8 @@ var init_index_es = __esmMin((() => {
12419
12424
  }]
12420
12425
  }, {
12421
12426
  default: withCtx(() => [createVNode(V, {
12422
- value: O.barcodeField,
12423
- "onUpdate:value": (A) => O.barcodeField = A,
12427
+ value: A.barcodeField,
12428
+ "onUpdate:value": (R) => A.barcodeField = R,
12424
12429
  placeholder: d.$t("sys.chooseText"),
12425
12430
  options: u.value,
12426
12431
  disabled: e.disabled,
@@ -12435,11 +12440,11 @@ var init_index_es = __esmMin((() => {
12435
12440
  _: 2
12436
12441
  }, 1032, ["name", "rules"]),
12437
12442
  f[1] || (f[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
12438
- createVNode(C, {
12443
+ createVNode(k, {
12439
12444
  class: "field-mapping__formFields",
12440
12445
  name: [
12441
12446
  "fillMapArr",
12442
- z,
12447
+ N,
12443
12448
  "formFields"
12444
12449
  ],
12445
12450
  rules: [{
@@ -12450,14 +12455,14 @@ var init_index_es = __esmMin((() => {
12450
12455
  }]
12451
12456
  }, {
12452
12457
  default: withCtx(() => [createVNode(V, {
12453
- value: O.formFields,
12454
- "onUpdate:value": (A) => O.formFields = A,
12458
+ value: A.formFields,
12459
+ "onUpdate:value": (R) => A.formFields = R,
12455
12460
  mode: "multiple",
12456
12461
  "allow-clear": "",
12457
12462
  "show-search": "",
12458
12463
  placeholder: d.$t("sys.chooseText"),
12459
12464
  options: e.formFieldOptions,
12460
- "filter-option": y,
12465
+ "filter-option": m,
12461
12466
  disabled: e.disabled,
12462
12467
  onChange: S
12463
12468
  }, null, 8, [
@@ -12472,14 +12477,14 @@ var init_index_es = __esmMin((() => {
12472
12477
  e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", fr, [createElementVNode("i", {
12473
12478
  class: "field-mapping__remove-btn iconfont icon-shanchu1",
12474
12479
  title: d.$t("sys.delete"),
12475
- onClick: (A) => _(z)
12480
+ onClick: (R) => O(N)
12476
12481
  }, null, 8, mr)]))
12477
12482
  ]))), 128))]),
12478
- e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(D, {
12483
+ e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(U, {
12479
12484
  key: 1,
12480
12485
  class: "field-mapping__add-btn",
12481
12486
  type: "link",
12482
- onClick: h
12487
+ onClick: w
12483
12488
  }, {
12484
12489
  default: withCtx(() => [f[2] || (f[2] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)), createTextVNode(" " + toDisplayString(d.$t("sys.onlineForm.addFieldMapping")), 1)]),
12485
12490
  _: 1
@@ -12513,63 +12518,63 @@ var init_index_es = __esmMin((() => {
12513
12518
  parsingRuleId: (_t$bizOptions$scanRul = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul === void 0 ? void 0 : _t$bizOptions$scanRul.parsingRuleId,
12514
12519
  fillMapArr: cloneDeep((_t$bizOptions$scanRul2 = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul2 === void 0 ? void 0 : _t$bizOptions$scanRul2.fillMapArr) ?? []
12515
12520
  }), c = ref();
12516
- function u(R) {
12517
- n.value = R;
12521
+ function u(M) {
12522
+ n.value = M;
12518
12523
  }
12519
- const r = (R) => {
12520
- c.value = R;
12524
+ const r = (M) => {
12525
+ c.value = M;
12521
12526
  }, S = async () => {
12522
12527
  if (!c.value && !t.bizOptions.scanParam) {
12523
12528
  message.error($t("sys.edhr.mcTable.scanRuleNotFound"));
12524
12529
  return;
12525
12530
  }
12526
- let R, m = {};
12527
- const h = s.value.fillMapArr;
12528
- c.value ? R = tr(s.value.str, JSON.stringify(c.value)) : t.bizOptions.scanParam && (R = { [t.bizOptions.scanParam]: s.value.str }), h !== null && h !== void 0 && h.length && R && (m = or(R, h));
12529
- const _ = {
12531
+ let M, g = {};
12532
+ const w = s.value.fillMapArr;
12533
+ c.value ? M = tr(s.value.str, JSON.stringify(c.value)) : t.bizOptions.scanParam && (M = { [t.bizOptions.scanParam]: s.value.str }), w !== null && w !== void 0 && w.length && M && (g = or(M, w));
12534
+ const O = {
12530
12535
  str: s.value.str,
12531
- parsedValue: R,
12532
- transformedData: m,
12536
+ parsedValue: M,
12537
+ transformedData: g,
12533
12538
  type: t.bizOptions.showScanAdjustBtn ? n.value : void 0
12534
- }, y = await t.bizOptions.onScan(_);
12535
- s.value.str = "", y && t.modalInst.cancel();
12539
+ }, m = await t.bizOptions.onScan(O);
12540
+ s.value.str = "", m && t.modalInst.cancel();
12536
12541
  };
12537
- return (R, m) => {
12538
- const h = resolveComponent("a-input"), _ = resolveComponent("a-form-item"), y = resolveComponent("a-form"), d = resolveComponent("a-divider");
12539
- return openBlock(), createBlock($e, mergeProps(t.modalProps, {
12542
+ return (M, g) => {
12543
+ const w = resolveComponent("a-input"), O = resolveComponent("a-form-item"), m = resolveComponent("a-form"), d = resolveComponent("a-divider");
12544
+ return openBlock(), createBlock(Ze, mergeProps(t.modalProps, {
12540
12545
  class: "gct-form-base-modal-common-scan",
12541
12546
  visible: t.modalVisible,
12542
- title: t.bizOptions.title || R.$t("sys.edhr.mcTable.scanEntry"),
12547
+ title: t.bizOptions.title || M.$t("sys.edhr.mcTable.scanEntry"),
12543
12548
  width: 460,
12544
12549
  mask: !1,
12545
12550
  "mask-closable": !1,
12546
12551
  footer: !1,
12547
12552
  draggable: "",
12548
12553
  onCancel: t.modalInst.cancel,
12549
- onAfterClose: m[5] || (m[5] = (f) => a("afterClose"))
12554
+ onAfterClose: g[5] || (g[5] = (f) => a("afterClose"))
12550
12555
  }), {
12551
12556
  default: withCtx(() => [createElementVNode("div", hr, [
12552
12557
  l.value ? (openBlock(), createElementBlock("div", yr, [createElementVNode("div", {
12553
12558
  class: normalizeClass(["bg-radio-item", [n.value === "add" && "active"]]),
12554
- onClick: m[0] || (m[0] = (f) => u("add"))
12555
- }, [...m[6] || (m[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
12559
+ onClick: g[0] || (g[0] = (f) => u("add"))
12560
+ }, [...g[6] || (g[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
12556
12561
  class: normalizeClass(["bg-radio-item", [n.value === "minus" && "active"]]),
12557
- onClick: m[1] || (m[1] = (f) => u("minus"))
12558
- }, [...m[7] || (m[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
12559
- createVNode(y, {
12562
+ onClick: g[1] || (g[1] = (f) => u("minus"))
12563
+ }, [...g[7] || (g[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
12564
+ createVNode(m, {
12560
12565
  ref: "formRef",
12561
12566
  model: s.value,
12562
12567
  layout: "horizontal"
12563
12568
  }, {
12564
- default: withCtx(() => [createVNode(_, {
12569
+ default: withCtx(() => [createVNode(O, {
12565
12570
  required: "",
12566
12571
  class: "scan-form-item"
12567
12572
  }, {
12568
- default: withCtx(() => [createVNode(h, {
12573
+ default: withCtx(() => [createVNode(w, {
12569
12574
  value: s.value.str,
12570
- "onUpdate:value": m[2] || (m[2] = (f) => s.value.str = f),
12575
+ "onUpdate:value": g[2] || (g[2] = (f) => s.value.str = f),
12571
12576
  size: "large",
12572
- placeholder: R.$t("sys.edhr.mcTable.pleaseScanEntry"),
12577
+ placeholder: M.$t("sys.edhr.mcTable.pleaseScanEntry"),
12573
12578
  onKeyup: withKeys(S, ["enter"])
12574
12579
  }, {
12575
12580
  prefix: withCtx(() => [createElementVNode("img", {
@@ -12590,9 +12595,9 @@ var init_index_es = __esmMin((() => {
12590
12595
  } }),
12591
12596
  createVNode(unref(na), {
12592
12597
  "parsing-rule-id": s.value.parsingRuleId,
12593
- "onUpdate:parsingRuleId": m[3] || (m[3] = (f) => s.value.parsingRuleId = f),
12598
+ "onUpdate:parsingRuleId": g[3] || (g[3] = (f) => s.value.parsingRuleId = f),
12594
12599
  "fill-map-arr": s.value.fillMapArr,
12595
- "onUpdate:fillMapArr": m[4] || (m[4] = (f) => s.value.fillMapArr = f),
12600
+ "onUpdate:fillMapArr": g[4] || (g[4] = (f) => s.value.fillMapArr = f),
12596
12601
  collapsible: "",
12597
12602
  "form-field-options": t.bizOptions.formFieldOptions,
12598
12603
  "form-fields-label": t.bizOptions.formFieldsLabel,
@@ -12622,7 +12627,10 @@ var init_index_es = __esmMin((() => {
12622
12627
  Cr = { class: "substitute-policy-item__sub-toolbar" };
12623
12628
  Mr = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
12624
12629
  __name: "substitute-item",
12625
- props: /* @__PURE__ */ mergeModels({ hasIds: {} }, {
12630
+ props: /* @__PURE__ */ mergeModels({
12631
+ hasIds: {},
12632
+ form: {}
12633
+ }, {
12626
12634
  formState: { required: !0 },
12627
12635
  formStateModifiers: {}
12628
12636
  }),
@@ -12651,39 +12659,39 @@ var init_index_es = __esmMin((() => {
12651
12659
  width: 88
12652
12660
  }
12653
12661
  ];
12654
- function l(_) {
12655
- return _ ? _.split(":")[0] : "";
12662
+ function l(m) {
12663
+ return m ? m.split(":")[0] : "";
12656
12664
  }
12657
- function s(_, y) {
12658
- return !_ || !y ? !1 : _ === y ? !0 : l(_) === l(y);
12665
+ function s(m, d) {
12666
+ return !m || !d ? !1 : m === d ? !0 : l(m) === l(d);
12659
12667
  }
12660
- function c(_, y) {
12668
+ function c(m, d) {
12661
12669
  var _o$hasIds;
12662
- const d = y ?? _.product_id_;
12663
- 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((C) => C.__key !== _.__key && s(C.product_id_, d)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12670
+ const f = d ?? m.product_id_;
12671
+ return f ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(f)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(f, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((b) => b.__key !== m.__key && s(b.product_id_, f)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
12664
12672
  }
12665
- function u(_) {
12673
+ function u(m) {
12666
12674
  return [{
12667
12675
  required: !0,
12668
12676
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12669
- }, { validator: async (y, d) => {
12670
- const f = c(_, d);
12671
- if (f) return Promise.reject(f);
12677
+ }, { validator: async (d, f) => {
12678
+ const k = c(m, f);
12679
+ if (k) return Promise.reject(k);
12672
12680
  } }];
12673
12681
  }
12674
- function r(_) {
12675
- const y = (_ === null || _ === void 0 ? void 0 : _._info) ?? {}, d = ((_ === null || _ === void 0 ? void 0 : _.displayLabel) || "").split(":"), f = d.length > 1 ? d[0] : typeof (_ === null || _ === void 0 ? void 0 : _.title) == "string" ? _.title : "";
12682
+ function r(m) {
12683
+ const d = (m === null || m === void 0 ? void 0 : m._info) ?? {}, f = ((m === null || m === void 0 ? void 0 : m.displayLabel) || "").split(":"), k = f.length > 1 ? f[0] : typeof (m === null || m === void 0 ? void 0 : m.title) == "string" ? m.title : "";
12676
12684
  return {
12677
- product_code_: y.code_ ?? "",
12678
- product_name_: y.name_ ?? f ?? "",
12679
- product_version_: y.version_ ?? y.__LABEL__ ?? "",
12680
- product_spec_: y.spec_ ?? y.specification_ ?? ""
12685
+ product_code_: d.code_ ?? "",
12686
+ product_name_: d.name_ ?? k ?? "",
12687
+ product_version_: d.version_ ?? d.__LABEL__ ?? "",
12688
+ product_spec_: d.spec_ ?? d.specification_ ?? ""
12681
12689
  };
12682
12690
  }
12683
- function S(_, y) {
12684
- return _ ? {
12685
- product_id_: _,
12686
- ...r(y)
12691
+ function S(m, d) {
12692
+ return m ? {
12693
+ product_id_: m,
12694
+ ...r(d)
12687
12695
  } : {
12688
12696
  product_id_: void 0,
12689
12697
  product_code_: void 0,
@@ -12692,12 +12700,21 @@ var init_index_es = __esmMin((() => {
12692
12700
  product_spec_: void 0
12693
12701
  };
12694
12702
  }
12695
- function R(_, y, d) {
12696
- Object.assign(_, S(y ?? null, d));
12703
+ function M() {
12704
+ var _o$form;
12705
+ const m = (t.value.substitute_material_entries_ ?? []).map((d, f) => [
12706
+ "substitute_material_entries_",
12707
+ f,
12708
+ "product_id_"
12709
+ ]);
12710
+ if (m.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(m).catch(() => {});
12697
12711
  }
12698
- function m() {
12712
+ function g(m, d, f) {
12713
+ Object.assign(m, S(d ?? null, f)), nextTick(() => M());
12714
+ }
12715
+ function w() {
12699
12716
  t.value.substitute_material_entries_.push({
12700
- __key: Ae(8),
12717
+ __key: Oe(8),
12701
12718
  product_id_: void 0,
12702
12719
  product_code_: "",
12703
12720
  product_name_: "",
@@ -12706,25 +12723,27 @@ var init_index_es = __esmMin((() => {
12706
12723
  qty_required_: t.value.qty_required_ ?? 0
12707
12724
  });
12708
12725
  }
12709
- function h(_) {
12710
- t.value.substitute_material_entries_.splice(_, 1);
12726
+ function O(m) {
12727
+ t.value.substitute_material_entries_.splice(m, 1), nextTick(() => M());
12711
12728
  }
12712
- return (_, y) => {
12713
- const d = resolveComponent("a-radio"), f = resolveComponent("a-radio-group"), C = resolveComponent("a-form-item"), k = resolveComponent("a-select"), V = resolveComponent("a-col"), D = resolveComponent("a-row"), U = resolveComponent("a-button"), O = resolveComponent("a-table");
12714
- return openBlock(), createElementBlock(Fragment, null, [createVNode(C, {
12715
- label: _.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12729
+ return watch(() => t.value.product_id_, () => {
12730
+ nextTick(() => M());
12731
+ }), (m, d) => {
12732
+ const f = resolveComponent("a-radio"), k = resolveComponent("a-radio-group"), b = resolveComponent("a-form-item"), V = resolveComponent("a-select"), U = resolveComponent("a-col"), D = resolveComponent("a-row"), A = resolveComponent("a-button"), N = resolveComponent("a-table");
12733
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(b, {
12734
+ label: m.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
12716
12735
  name: "substitute_material_enabled_",
12717
- rules: [unref(fe)(_.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12736
+ rules: [unref(me)(m.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
12718
12737
  }, {
12719
- default: withCtx(() => [createVNode(f, {
12738
+ default: withCtx(() => [createVNode(k, {
12720
12739
  value: t.value.substitute_material_enabled_,
12721
- "onUpdate:value": y[0] || (y[0] = (z) => t.value.substitute_material_enabled_ = z)
12740
+ "onUpdate:value": d[0] || (d[0] = (R) => t.value.substitute_material_enabled_ = R)
12722
12741
  }, {
12723
- default: withCtx(() => [createVNode(d, { value: !0 }, {
12724
- default: withCtx(() => [createTextVNode(toDisplayString(_.$t("sys.true")), 1)]),
12742
+ default: withCtx(() => [createVNode(f, { value: !0 }, {
12743
+ default: withCtx(() => [createTextVNode(toDisplayString(m.$t("sys.true")), 1)]),
12725
12744
  _: 1
12726
- }), createVNode(d, { value: !1 }, {
12727
- default: withCtx(() => [createTextVNode(toDisplayString(_.$t("sys.false")), 1)]),
12745
+ }), createVNode(f, { value: !1 }, {
12746
+ default: withCtx(() => [createTextVNode(toDisplayString(m.$t("sys.false")), 1)]),
12728
12747
  _: 1
12729
12748
  })]),
12730
12749
  _: 1
@@ -12732,16 +12751,16 @@ var init_index_es = __esmMin((() => {
12732
12751
  _: 1
12733
12752
  }, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div", kr, [
12734
12753
  createVNode(D, { gutter: 16 }, {
12735
- default: withCtx(() => [createVNode(V, { span: 12 }, {
12736
- default: withCtx(() => [createVNode(C, {
12737
- label: _.$t("sys.edhr.mcTable.substitutePolicy"),
12754
+ default: withCtx(() => [createVNode(U, { span: 12 }, {
12755
+ default: withCtx(() => [createVNode(b, {
12756
+ label: m.$t("sys.edhr.mcTable.substitutePolicy"),
12738
12757
  name: "substitute_policy_",
12739
12758
  required: ""
12740
12759
  }, {
12741
- default: withCtx(() => [createVNode(k, {
12760
+ default: withCtx(() => [createVNode(V, {
12742
12761
  value: t.value.substitute_policy_,
12743
- "onUpdate:value": y[1] || (y[1] = (z) => t.value.substitute_policy_ = z),
12744
- placeholder: _.$t("sys.chooseText"),
12762
+ "onUpdate:value": d[1] || (d[1] = (R) => t.value.substitute_policy_ = R),
12763
+ placeholder: m.$t("sys.chooseText"),
12745
12764
  options: a
12746
12765
  }, null, 8, ["value", "placeholder"])]),
12747
12766
  _: 1
@@ -12750,62 +12769,55 @@ var init_index_es = __esmMin((() => {
12750
12769
  })]),
12751
12770
  _: 1
12752
12771
  }),
12753
- createElementVNode("div", Cr, [createVNode(U, {
12772
+ createElementVNode("div", Cr, [createVNode(A, {
12754
12773
  type: "link",
12755
12774
  class: "substitute-policy-item__add-row",
12756
- onClick: m
12775
+ onClick: w
12757
12776
  }, {
12758
- default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(_.$t("sys.edhr.addRow")), 1)]),
12777
+ default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(m.$t("sys.edhr.addRow")), 1)]),
12759
12778
  _: 1
12760
12779
  })]),
12761
- createVNode(O, {
12780
+ createVNode(N, {
12762
12781
  "data-source": t.value.substitute_material_entries_,
12763
12782
  columns: n,
12764
12783
  pagination: !1,
12765
12784
  size: "small",
12766
12785
  "row-key": "__key",
12767
- locale: { emptyText: _.$t("sys.noData") }
12786
+ locale: { emptyText: m.$t("sys.noData") }
12768
12787
  }, {
12769
- headerCell: withCtx(({ column: z }) => [z.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [y[2] || (y[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(z.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(z.title), 1)], 64))]),
12770
- bodyCell: withCtx(({ column: z, record: A, index: M }) => [z.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(M + 1), 1)], 64)) : z.key === "product_id_" ? (openBlock(), createBlock(C, {
12788
+ headerCell: withCtx(({ column: R }) => [R.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [d[2] || (d[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(R.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(R.title), 1)], 64))]),
12789
+ bodyCell: withCtx(({ column: R, record: x, index: y }) => [R.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(y + 1), 1)], 64)) : R.key === "product_id_" ? (openBlock(), createBlock(b, {
12771
12790
  key: 1,
12772
12791
  class: "substitute-policy-item__table-item",
12773
12792
  name: [
12774
12793
  "substitute_material_entries_",
12775
- M,
12794
+ y,
12776
12795
  "product_id_"
12777
12796
  ],
12778
- rules: u(A),
12779
- "validate-status": c(A) ? "error" : void 0,
12780
- help: c(A) || void 0
12797
+ rules: u(x)
12781
12798
  }, {
12782
12799
  default: withCtx(() => [createVNode(unref(Ct), {
12783
- "model-value": A.product_id_ || void 0,
12800
+ "model-value": x.product_id_ || void 0,
12784
12801
  "model-key": "em_product",
12785
- placeholder: _.$t("sys.chooseText"),
12802
+ placeholder: m.$t("sys.chooseText"),
12786
12803
  "parent-to-default": !1,
12787
12804
  "disabled-parent": !1,
12788
12805
  "show-search": !0,
12789
12806
  "query-data": { "product_type_.ne": "finishedProduct" },
12790
- onChange: (b, H) => R(A, b, H)
12807
+ onChange: (B, K) => g(x, B, K)
12791
12808
  }, null, 8, [
12792
12809
  "model-value",
12793
12810
  "placeholder",
12794
12811
  "onChange"
12795
12812
  ])]),
12796
12813
  _: 2
12797
- }, 1032, [
12798
- "name",
12799
- "rules",
12800
- "validate-status",
12801
- "help"
12802
- ])) : z.key === "action" ? (openBlock(), createBlock(U, {
12814
+ }, 1032, ["name", "rules"])) : R.key === "action" ? (openBlock(), createBlock(A, {
12803
12815
  key: 2,
12804
12816
  type: "link",
12805
12817
  danger: "",
12806
- onClick: (b) => h(M)
12818
+ onClick: (B) => O(y)
12807
12819
  }, {
12808
- default: withCtx(() => [createTextVNode(toDisplayString(_.$t("sys.delete")), 1)]),
12820
+ default: withCtx(() => [createTextVNode(toDisplayString(m.$t("sys.delete")), 1)]),
12809
12821
  _: 1
12810
12822
  }, 8, ["onClick"])) : createCommentVNode("", !0)]),
12811
12823
  _: 1
@@ -12813,11 +12825,11 @@ var init_index_es = __esmMin((() => {
12813
12825
  ])) : createCommentVNode("", !0)], 64);
12814
12826
  };
12815
12827
  }
12816
- }), [["__scopeId", "data-v-4e83748b"]]);
12828
+ }), [["__scopeId", "data-v-7c384024"]]);
12817
12829
  Sr = { class: "bom-entry-modal__content" };
12818
12830
  Rr = { class: "bom-entry-modal__section-title" };
12819
- Ar = { class: "bom-entry-modal__section-title" };
12820
- Or = {
12831
+ Or = { class: "bom-entry-modal__section-title" };
12832
+ Ar = {
12821
12833
  key: 0,
12822
12834
  class: "bom-entry-modal__nested"
12823
12835
  };
@@ -12861,16 +12873,16 @@ var init_index_es = __esmMin((() => {
12861
12873
  force_loading_enabled_: !0
12862
12874
  };
12863
12875
  }
12864
- function c(O) {
12865
- return (O ?? []).map((z) => ({
12866
- ...cloneDeep(z),
12867
- __key: Ae(8)
12876
+ function c(A) {
12877
+ return (A ?? []).map((N) => ({
12878
+ ...cloneDeep(N),
12879
+ __key: Oe(8)
12868
12880
  }));
12869
12881
  }
12870
- function u(O) {
12871
- return (O ?? []).map((z) => ({
12872
- ...cloneDeep(z),
12873
- __key: Ae(8)
12882
+ function u(A) {
12883
+ return (A ?? []).map((N) => ({
12884
+ ...cloneDeep(N),
12885
+ __key: Oe(8)
12874
12886
  }));
12875
12887
  }
12876
12888
  let r = reactive({
@@ -12880,13 +12892,13 @@ var init_index_es = __esmMin((() => {
12880
12892
  consume_storage_entries_: u((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
12881
12893
  });
12882
12894
  const S = computed(() => {
12883
- const O = {
12895
+ const A = {
12884
12896
  product_id_: [{
12885
12897
  required: !0,
12886
12898
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12887
- }, { validator: async (z, A) => {
12888
- const M = d(A);
12889
- if (M) return Promise.reject(M);
12899
+ }, { validator: async (N, R) => {
12900
+ const x = d(R);
12901
+ if (x) return Promise.reject(x);
12890
12902
  } }],
12891
12903
  qty_required_: [{
12892
12904
  required: !0,
@@ -12896,44 +12908,44 @@ var init_index_es = __esmMin((() => {
12896
12908
  required: !0,
12897
12909
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.loadingType") })
12898
12910
  }],
12899
- force_loading_enabled_: [fe($t("sys.edhr.mcTable.forceLoadingEnabled"))]
12911
+ force_loading_enabled_: [me($t("sys.edhr.mcTable.forceLoadingEnabled"))]
12900
12912
  };
12901
- return r.type_ !== "view" && (O.consume_enabled_ = [fe($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (O.consume_source_config_ = [{
12913
+ return r.type_ !== "view" && (A.consume_enabled_ = [me($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (A.consume_source_config_ = [{
12902
12914
  required: !0,
12903
12915
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.consumeSourceConfig") })
12904
- }], r.consume_source_config_ === "custom" && (O.default_warehouse_id_ = [{
12916
+ }], r.consume_source_config_ === "custom" && (A.default_warehouse_id_ = [{
12905
12917
  required: !0,
12906
12918
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.defaultWarehouse") })
12907
- }])), O.qty_validation_enabled_ = [fe($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (O.qty_validation_rule_ = [{
12919
+ }])), A.qty_validation_enabled_ = [me($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (A.qty_validation_rule_ = [{
12908
12920
  required: !0,
12909
12921
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.qtyValidationRule") })
12910
- }], r.qty_validation_rule_ === "bounds" && (O.max_value_ = [{
12922
+ }], r.qty_validation_rule_ === "bounds" && (A.max_value_ = [{
12911
12923
  required: !0,
12912
12924
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMax") })
12913
- }], O.min_value_ = [{
12925
+ }], A.min_value_ = [{
12914
12926
  required: !0,
12915
12927
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMin") })
12916
- }])), O.substitute_material_enabled_ = [fe($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (O.substitute_policy_ = [{
12928
+ }])), A.substitute_material_enabled_ = [me($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (A.substitute_policy_ = [{
12917
12929
  required: !0,
12918
12930
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.substitutePolicy") })
12919
- }])), r.type_ === "by_lot" && (O.lot_mixing_enabled_ = [fe($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (O.lot_mixing_times_ = [{
12931
+ }])), r.type_ === "by_lot" && (A.lot_mixing_enabled_ = [me($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (A.lot_mixing_times_ = [{
12920
12932
  required: !0,
12921
12933
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
12922
- }])), O;
12934
+ }])), A;
12923
12935
  });
12924
- function R(O) {
12925
- const z = (O === null || O === void 0 ? void 0 : O._info) ?? {}, A = ((O === null || O === void 0 ? void 0 : O.displayLabel) || "").split(":"), M = A.length > 1 ? A[0] : typeof (O === null || O === void 0 ? void 0 : O.title) == "string" ? O.title : "";
12936
+ function M(A) {
12937
+ const N = (A === null || A === void 0 ? void 0 : A._info) ?? {}, R = ((A === null || A === void 0 ? void 0 : A.displayLabel) || "").split(":"), x = R.length > 1 ? R[0] : typeof (A === null || A === void 0 ? void 0 : A.title) == "string" ? A.title : "";
12926
12938
  return {
12927
- product_code_: z.code_ ?? "",
12928
- product_name_: z.name_ ?? M ?? "",
12929
- product_version_: z.version_ ?? z.__LABEL__ ?? "",
12930
- product_spec_: z.spec_ ?? z.specification_ ?? ""
12939
+ product_code_: N.code_ ?? "",
12940
+ product_name_: N.name_ ?? x ?? "",
12941
+ product_version_: N.version_ ?? N.__LABEL__ ?? "",
12942
+ product_spec_: N.spec_ ?? N.specification_ ?? ""
12931
12943
  };
12932
12944
  }
12933
- function m(O, z) {
12934
- return O ? {
12935
- product_id_: O,
12936
- ...R(z)
12945
+ function g(A, N) {
12946
+ return A ? {
12947
+ product_id_: A,
12948
+ ...M(N)
12937
12949
  } : {
12938
12950
  product_id_: void 0,
12939
12951
  product_code_: void 0,
@@ -12942,49 +12954,49 @@ var init_index_es = __esmMin((() => {
12942
12954
  product_spec_: void 0
12943
12955
  };
12944
12956
  }
12945
- function h(O) {
12946
- return O ? O.split(":")[0] : "";
12957
+ function w(A) {
12958
+ return A ? A.split(":")[0] : "";
12947
12959
  }
12948
- function _(O, z) {
12949
- return !O || !z ? !1 : O === z ? !0 : h(O) === h(z);
12960
+ function O(A, N) {
12961
+ return !A || !N ? !1 : A === N ? !0 : w(A) === w(N);
12950
12962
  }
12951
- function y(O) {
12952
- return O ? (t.bizOptions.hasIds ?? []).some((z) => _(z, O)) : !1;
12963
+ function m(A) {
12964
+ return A ? (t.bizOptions.hasIds ?? []).some((N) => O(N, A)) : !1;
12953
12965
  }
12954
- function d(O) {
12955
- const z = O ?? r.product_id_;
12956
- return z && y(z) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
12966
+ function d(A) {
12967
+ const N = A ?? r.product_id_;
12968
+ return N && m(N) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
12957
12969
  }
12958
- function f(O, z) {
12959
- Object.assign(r, m(O ?? null, z));
12970
+ function f(A, N) {
12971
+ Object.assign(r, g(A ?? null, N));
12960
12972
  }
12961
- function C(O = []) {
12962
- return O.map((z) => {
12963
- const { __key: A, ...M } = z;
12973
+ function k(A = []) {
12974
+ return A.map((N) => {
12975
+ const { __key: R, ...x } = N;
12964
12976
  return {
12965
- ...M,
12966
- qty_required_: r.qty_required_ ?? M.qty_required_ ?? 0
12977
+ ...x,
12978
+ qty_required_: r.qty_required_ ?? x.qty_required_ ?? 0
12967
12979
  };
12968
12980
  });
12969
12981
  }
12970
- function k(O = []) {
12971
- return O.map((z) => {
12972
- const { __key: A, ...M } = z;
12973
- return M;
12982
+ function b(A = []) {
12983
+ return A.map((N) => {
12984
+ const { __key: R, ...x } = N;
12985
+ return x;
12974
12986
  });
12975
12987
  }
12976
- function V(O) {
12977
- 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_ = [];
12988
+ function V(A) {
12989
+ 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_ = [];
12978
12990
  }
12979
- function D() {
12980
- const { substitute_material_entries_: z = [], consume_storage_entries_: A = [], ...M } = cloneDeep(r), b = {
12981
- ...M,
12991
+ function U() {
12992
+ const { substitute_material_entries_: N = [], consume_storage_entries_: R = [], ...x } = cloneDeep(r), y = {
12993
+ ...x,
12982
12994
  substitute_material_entries_: [],
12983
12995
  consume_storage_entries_: []
12984
12996
  };
12985
- return b.type_ === "view" ? (b.qty_validation_enabled_ = !1, b.qty_validation_rule_ = "eq", b.max_value_ = void 0, b.min_value_ = void 0, b.lot_mixing_enabled_ = !1, b.lot_mixing_times_ = 1, b.substitute_material_enabled_ = !1, b.substitute_policy_ = "only_one", b.substitute_material_entries_ = [], V(b), b) : (b.consume_enabled_ ? b.consume_source_config_ !== "custom" ? (b.default_warehouse_id_ = void 0, b.default_location_id_ = void 0, b.consume_storage_entries_ = []) : b.consume_storage_entries_ = k(A) : (V(b), b.consume_enabled_ = !1), b.qty_validation_enabled_ ? b.qty_validation_rule_ !== "bounds" && (b.max_value_ = void 0, b.min_value_ = void 0) : (b.qty_validation_rule_ = "eq", b.max_value_ = void 0, b.min_value_ = void 0), b.substitute_material_enabled_ ? b.substitute_material_entries_ = C(z) : (b.substitute_policy_ = "only_one", b.substitute_material_entries_ = []), b.type_ !== "by_lot" ? (b.lot_mixing_enabled_ = !1, b.lot_mixing_times_ = 1) : b.lot_mixing_enabled_ || (b.lot_mixing_times_ = 1), b);
12997
+ return y.type_ === "view" ? (y.qty_validation_enabled_ = !1, y.qty_validation_rule_ = "eq", y.max_value_ = void 0, y.min_value_ = void 0, y.lot_mixing_enabled_ = !1, y.lot_mixing_times_ = 1, y.substitute_material_enabled_ = !1, y.substitute_policy_ = "only_one", y.substitute_material_entries_ = [], V(y), y) : (y.consume_enabled_ ? y.consume_source_config_ !== "custom" ? (y.default_warehouse_id_ = void 0, y.default_location_id_ = void 0, y.consume_storage_entries_ = []) : y.consume_storage_entries_ = b(R) : (V(y), y.consume_enabled_ = !1), y.qty_validation_enabled_ ? y.qty_validation_rule_ !== "bounds" && (y.max_value_ = void 0, y.min_value_ = void 0) : (y.qty_validation_rule_ = "eq", y.max_value_ = void 0, y.min_value_ = void 0), y.substitute_material_enabled_ ? y.substitute_material_entries_ = k(N) : (y.substitute_policy_ = "only_one", y.substitute_material_entries_ = []), y.type_ !== "by_lot" ? (y.lot_mixing_enabled_ = !1, y.lot_mixing_times_ = 1) : y.lot_mixing_enabled_ || (y.lot_mixing_times_ = 1), y);
12986
12998
  }
12987
- const U = async () => {
12999
+ const D = async () => {
12988
13000
  var _r$substitute_materia;
12989
13001
  try {
12990
13002
  var _l$value12;
@@ -12996,11 +13008,11 @@ var init_index_es = __esmMin((() => {
12996
13008
  message.warning($t("sys.edhr.mcTable.substituteMaterialRequired"));
12997
13009
  return;
12998
13010
  }
12999
- t.modalInst.confirm(D());
13011
+ t.modalInst.confirm(U());
13000
13012
  };
13001
- return (O, z) => {
13002
- const A = resolveComponent("a-form-item"), M = resolveComponent("a-col"), b = resolveComponent("a-input-number"), H = resolveComponent("a-row"), W = resolveComponent("a-radio"), Y = resolveComponent("a-radio-group"), ne = resolveComponent("a-form");
13003
- return openBlock(), createBlock($e, mergeProps(t.modalProps, {
13013
+ return (A, N) => {
13014
+ const R = resolveComponent("a-form-item"), x = resolveComponent("a-col"), y = resolveComponent("a-input-number"), B = resolveComponent("a-row"), K = resolveComponent("a-radio"), Y = resolveComponent("a-radio-group"), ne = resolveComponent("a-form");
13015
+ return openBlock(), createBlock(Ze, mergeProps(t.modalProps, {
13004
13016
  class: "gct-form-base-modal-bom-entry-modal",
13005
13017
  visible: t.modalVisible,
13006
13018
  title: n.value,
@@ -13011,8 +13023,8 @@ var init_index_es = __esmMin((() => {
13011
13023
  overflow: "hidden"
13012
13024
  },
13013
13025
  onCancel: t.modalInst.cancel,
13014
- onOk: U,
13015
- onAfterClose: z[8] || (z[8] = (Q) => a("afterClose"))
13026
+ onOk: D,
13027
+ onAfterClose: N[8] || (N[8] = (Q) => a("afterClose"))
13016
13028
  }), {
13017
13029
  default: withCtx(() => [createElementVNode("div", Sr, [createVNode(ne, {
13018
13030
  ref_key: "formRef",
@@ -13021,11 +13033,11 @@ var init_index_es = __esmMin((() => {
13021
13033
  rules: S.value
13022
13034
  }, {
13023
13035
  default: withCtx(() => [
13024
- createElementVNode("div", Rr, toDisplayString(O.$t("sys.appDesigner.basicInformation")), 1),
13025
- createVNode(H, { gutter: 16 }, {
13026
- default: withCtx(() => [createVNode(M, { span: 12 }, {
13027
- default: withCtx(() => [createVNode(A, {
13028
- label: O.$t("sys.material"),
13036
+ createElementVNode("div", Rr, toDisplayString(A.$t("sys.appDesigner.basicInformation")), 1),
13037
+ createVNode(B, { gutter: 16 }, {
13038
+ default: withCtx(() => [createVNode(x, { span: 12 }, {
13039
+ default: withCtx(() => [createVNode(R, {
13040
+ label: A.$t("sys.material"),
13029
13041
  name: "product_id_",
13030
13042
  required: "",
13031
13043
  "validate-status": d() ? "error" : void 0,
@@ -13034,7 +13046,7 @@ var init_index_es = __esmMin((() => {
13034
13046
  default: withCtx(() => [createVNode(unref(Ct), {
13035
13047
  "model-value": unref(r).product_id_ || void 0,
13036
13048
  "model-key": "em_product",
13037
- placeholder: O.$t("sys.chooseText"),
13049
+ placeholder: A.$t("sys.chooseText"),
13038
13050
  "parent-to-default": !1,
13039
13051
  "disabled-parent": !1,
13040
13052
  "show-search": !0,
@@ -13048,17 +13060,17 @@ var init_index_es = __esmMin((() => {
13048
13060
  "help"
13049
13061
  ])]),
13050
13062
  _: 1
13051
- }), createVNode(M, { span: 12 }, {
13052
- default: withCtx(() => [createVNode(A, {
13053
- label: O.$t("sys.edhr.unitQty"),
13063
+ }), createVNode(x, { span: 12 }, {
13064
+ default: withCtx(() => [createVNode(R, {
13065
+ label: A.$t("sys.edhr.unitQty"),
13054
13066
  name: "qty_required_",
13055
13067
  required: ""
13056
13068
  }, {
13057
- default: withCtx(() => [createVNode(b, {
13069
+ default: withCtx(() => [createVNode(y, {
13058
13070
  value: unref(r).qty_required_,
13059
- "onUpdate:value": z[0] || (z[0] = (Q) => unref(r).qty_required_ = Q),
13071
+ "onUpdate:value": N[0] || (N[0] = (Q) => unref(r).qty_required_ = Q),
13060
13072
  style: { width: "100%" },
13061
- placeholder: O.$t("sys.inputText"),
13073
+ placeholder: A.$t("sys.inputText"),
13062
13074
  min: 0
13063
13075
  }, null, 8, ["value", "placeholder"])]),
13064
13076
  _: 1
@@ -13067,30 +13079,30 @@ var init_index_es = __esmMin((() => {
13067
13079
  })]),
13068
13080
  _: 1
13069
13081
  }),
13070
- createElementVNode("div", Ar, toDisplayString(O.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
13071
- createVNode(A, {
13082
+ createElementVNode("div", Or, toDisplayString(A.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
13083
+ createVNode(R, {
13072
13084
  name: "type_",
13073
13085
  required: ""
13074
13086
  }, {
13075
- label: withCtx(() => [createElementVNode("span", null, toDisplayString(O.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(gt), {
13087
+ label: withCtx(() => [createElementVNode("span", null, toDisplayString(A.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(gt), {
13076
13088
  class: "bom-entry-modal__label-tip",
13077
- info: O.$t("sys.edhr.mcTable.loadingTypeTip")
13089
+ info: A.$t("sys.edhr.mcTable.loadingTypeTip")
13078
13090
  }, null, 8, ["info"])]),
13079
13091
  default: withCtx(() => [createVNode(Y, {
13080
13092
  value: unref(r).type_,
13081
- "onUpdate:value": z[1] || (z[1] = (Q) => unref(r).type_ = Q)
13093
+ "onUpdate:value": N[1] || (N[1] = (Q) => unref(r).type_ = Q)
13082
13094
  }, {
13083
13095
  default: withCtx(() => [
13084
- createVNode(W, { value: "view" }, {
13085
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
13096
+ createVNode(K, { value: "view" }, {
13097
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
13086
13098
  _: 1
13087
13099
  }),
13088
- createVNode(W, { value: "by_number" }, {
13089
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
13100
+ createVNode(K, { value: "by_number" }, {
13101
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
13090
13102
  _: 1
13091
13103
  }),
13092
- createVNode(W, { value: "by_lot" }, {
13093
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
13104
+ createVNode(K, { value: "by_lot" }, {
13105
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
13094
13106
  _: 1
13095
13107
  })
13096
13108
  ]),
@@ -13101,43 +13113,43 @@ var init_index_es = __esmMin((() => {
13101
13113
  unref(r).type_ !== "view" && e.bizOptions.showConsumePolicy ? (openBlock(), createBlock(ta, {
13102
13114
  key: 0,
13103
13115
  "form-state": unref(r),
13104
- "onUpdate:formState": z[2] || (z[2] = (Q) => isRef(r) ? r.value = Q : r = Q)
13116
+ "onUpdate:formState": N[2] || (N[2] = (Q) => isRef(r) ? r.value = Q : r = Q)
13105
13117
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
13106
13118
  unref(r).type_ !== "view" ? (openBlock(), createBlock(aa, {
13107
13119
  key: 1,
13108
13120
  "form-state": unref(r),
13109
- "onUpdate:formState": z[3] || (z[3] = (Q) => isRef(r) ? r.value = Q : r = Q)
13121
+ "onUpdate:formState": N[3] || (N[3] = (Q) => isRef(r) ? r.value = Q : r = Q)
13110
13122
  }, null, 8, ["form-state"])) : createCommentVNode("", !0),
13111
- unref(r).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(A, {
13112
- label: O.$t("sys.edhr.mcTable.lotMixingEnabled"),
13123
+ unref(r).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(R, {
13124
+ label: A.$t("sys.edhr.mcTable.lotMixingEnabled"),
13113
13125
  name: "lot_mixing_enabled_"
13114
13126
  }, {
13115
13127
  default: withCtx(() => [createVNode(Y, {
13116
13128
  value: unref(r).lot_mixing_enabled_,
13117
- "onUpdate:value": z[4] || (z[4] = (Q) => unref(r).lot_mixing_enabled_ = Q)
13129
+ "onUpdate:value": N[4] || (N[4] = (Q) => unref(r).lot_mixing_enabled_ = Q)
13118
13130
  }, {
13119
- default: withCtx(() => [createVNode(W, { value: !0 }, {
13120
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13131
+ default: withCtx(() => [createVNode(K, { value: !0 }, {
13132
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.true")), 1)]),
13121
13133
  _: 1
13122
- }), createVNode(W, { value: !1 }, {
13123
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13134
+ }), createVNode(K, { value: !1 }, {
13135
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.false")), 1)]),
13124
13136
  _: 1
13125
13137
  })]),
13126
13138
  _: 1
13127
13139
  }, 8, ["value"])]),
13128
13140
  _: 1
13129
- }, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Or, [createVNode(H, { gutter: 16 }, {
13130
- default: withCtx(() => [createVNode(M, { span: 12 }, {
13131
- default: withCtx(() => [createVNode(A, {
13132
- label: O.$t("sys.edhr.mcTable.lotMixingTimes"),
13141
+ }, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Ar, [createVNode(B, { gutter: 16 }, {
13142
+ default: withCtx(() => [createVNode(x, { span: 12 }, {
13143
+ default: withCtx(() => [createVNode(R, {
13144
+ label: A.$t("sys.edhr.mcTable.lotMixingTimes"),
13133
13145
  name: "lot_mixing_times_",
13134
13146
  required: ""
13135
13147
  }, {
13136
- default: withCtx(() => [createVNode(b, {
13148
+ default: withCtx(() => [createVNode(y, {
13137
13149
  value: unref(r).lot_mixing_times_,
13138
- "onUpdate:value": z[5] || (z[5] = (Q) => unref(r).lot_mixing_times_ = Q),
13150
+ "onUpdate:value": N[5] || (N[5] = (Q) => unref(r).lot_mixing_times_ = Q),
13139
13151
  style: { width: "100%" },
13140
- placeholder: O.$t("sys.inputText"),
13152
+ placeholder: A.$t("sys.inputText"),
13141
13153
  min: 1,
13142
13154
  precision: 0
13143
13155
  }, null, 8, ["value", "placeholder"])]),
@@ -13150,22 +13162,27 @@ var init_index_es = __esmMin((() => {
13150
13162
  unref(r).type_ !== "view" ? (openBlock(), createBlock(Mr, {
13151
13163
  key: 3,
13152
13164
  "form-state": unref(r),
13153
- "onUpdate:formState": z[6] || (z[6] = (Q) => isRef(r) ? r.value = Q : r = Q),
13165
+ "onUpdate:formState": N[6] || (N[6] = (Q) => isRef(r) ? r.value = Q : r = Q),
13166
+ form: l.value,
13154
13167
  hasIds: t.bizOptions.hasIds
13155
- }, null, 8, ["form-state", "hasIds"])) : createCommentVNode("", !0),
13156
- createVNode(A, {
13157
- label: O.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13168
+ }, null, 8, [
13169
+ "form-state",
13170
+ "form",
13171
+ "hasIds"
13172
+ ])) : createCommentVNode("", !0),
13173
+ createVNode(R, {
13174
+ label: A.$t("sys.edhr.mcTable.forceLoadingEnabled"),
13158
13175
  name: "force_loading_enabled_"
13159
13176
  }, {
13160
13177
  default: withCtx(() => [createVNode(Y, {
13161
13178
  value: unref(r).force_loading_enabled_,
13162
- "onUpdate:value": z[7] || (z[7] = (Q) => unref(r).force_loading_enabled_ = Q)
13179
+ "onUpdate:value": N[7] || (N[7] = (Q) => unref(r).force_loading_enabled_ = Q)
13163
13180
  }, {
13164
- default: withCtx(() => [createVNode(W, { value: !0 }, {
13165
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
13181
+ default: withCtx(() => [createVNode(K, { value: !0 }, {
13182
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.true")), 1)]),
13166
13183
  _: 1
13167
- }), createVNode(W, { value: !1 }, {
13168
- default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
13184
+ }), createVNode(K, { value: !1 }, {
13185
+ default: withCtx(() => [createTextVNode(toDisplayString(A.$t("sys.false")), 1)]),
13169
13186
  _: 1
13170
13187
  })]),
13171
13188
  _: 1
@@ -13183,7 +13200,7 @@ var init_index_es = __esmMin((() => {
13183
13200
  ]);
13184
13201
  };
13185
13202
  }
13186
- }), [["__scopeId", "data-v-f3c2d7ab"]]);
13203
+ }), [["__scopeId", "data-v-e6b6adfd"]]);
13187
13204
  qr = { class: "parse-rule-modal__content" };
13188
13205
  Br = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
13189
13206
  __name: "modal",
@@ -13210,15 +13227,15 @@ var init_index_es = __esmMin((() => {
13210
13227
  if (t.bizOptions.readonly) return;
13211
13228
  try {
13212
13229
  var _n$value9;
13213
- const R = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
13214
- R && await R();
13230
+ const M = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
13231
+ M && await M();
13215
13232
  } catch {
13216
13233
  return;
13217
13234
  }
13218
13235
  const S = u() ? void 0 : cloneDeep(toRaw(l));
13219
13236
  t.modalInst.confirm(S);
13220
13237
  };
13221
- return (S, R) => (openBlock(), createBlock($e, mergeProps(c.value, {
13238
+ return (S, M) => (openBlock(), createBlock(Ze, mergeProps(c.value, {
13222
13239
  class: "gct-form-base-modal-parse-rule",
13223
13240
  visible: t.modalVisible,
13224
13241
  title: s.value,
@@ -13226,7 +13243,7 @@ var init_index_es = __esmMin((() => {
13226
13243
  draggable: "",
13227
13244
  onCancel: t.modalInst.cancel,
13228
13245
  onOk: r,
13229
- onAfterClose: R[2] || (R[2] = (m) => a("afterClose"))
13246
+ onAfterClose: M[2] || (M[2] = (g) => a("afterClose"))
13230
13247
  }), {
13231
13248
  default: withCtx(() => {
13232
13249
  var _e$bizOptions;
@@ -13234,9 +13251,9 @@ var init_index_es = __esmMin((() => {
13234
13251
  ref_key: "fieldMappingRef",
13235
13252
  ref: n,
13236
13253
  "parsing-rule-id": l.parsingRuleId,
13237
- "onUpdate:parsingRuleId": R[0] || (R[0] = (m) => l.parsingRuleId = m),
13254
+ "onUpdate:parsingRuleId": M[0] || (M[0] = (g) => l.parsingRuleId = g),
13238
13255
  "fill-map-arr": l.fillMapArr,
13239
- "onUpdate:fillMapArr": R[1] || (R[1] = (m) => l.fillMapArr = m),
13256
+ "onUpdate:fillMapArr": M[1] || (M[1] = (g) => l.fillMapArr = g),
13240
13257
  bordered: "",
13241
13258
  "tip-placement": "before",
13242
13259
  "rule-tip": t.bizOptions.ruleTip,
@@ -13289,9 +13306,9 @@ var init_index_es = __esmMin((() => {
13289
13306
  title: "物料批次",
13290
13307
  showOverflow: "tooltip",
13291
13308
  minWidth: 160
13292
- }], n = e, l = o, s = ref(), c = computed(() => (n.bizOptions.rows ?? []).map((m, h) => ({
13293
- ...m,
13294
- _rowKey: `${m.materialId ?? ""}_${m.productionIdentificationId ?? ""}_${h}`
13309
+ }], n = e, l = o, s = ref(), c = computed(() => (n.bizOptions.rows ?? []).map((g, w) => ({
13310
+ ...g,
13311
+ _rowKey: `${g.materialId ?? ""}_${g.productionIdentificationId ?? ""}_${w}`
13295
13312
  }))), u = computed(() => {
13296
13313
  var _n$bizOptions$columns;
13297
13314
  return {
@@ -13305,41 +13322,41 @@ var init_index_es = __esmMin((() => {
13305
13322
  trigger: "row",
13306
13323
  highlight: !0
13307
13324
  },
13308
- columns: [t, ...((_n$bizOptions$columns = n.bizOptions.columns) === null || _n$bizOptions$columns === void 0 ? void 0 : _n$bizOptions$columns.filter((m) => m.type !== "radio")) ?? a]
13325
+ columns: [t, ...((_n$bizOptions$columns = n.bizOptions.columns) === null || _n$bizOptions$columns === void 0 ? void 0 : _n$bizOptions$columns.filter((g) => g.type !== "radio")) ?? a]
13309
13326
  };
13310
- }), r = { radioChange({ row: m }) {
13311
- s.value = m;
13327
+ }), r = { radioChange({ row: g }) {
13328
+ s.value = g;
13312
13329
  } };
13313
- async function S(m) {
13314
- const { data: h = {}, dict: _ = {} } = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
13330
+ async function S(g) {
13331
+ const { data: w = {}, dict: O = {} } = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
13315
13332
  modelCategory: "entity",
13316
13333
  modelKey: "em_production_identification_lock_record",
13317
13334
  bsKey: "biz_get_one_lock_record"
13318
- }, {}, { production_identification_id_: m });
13319
- return `该物料批次已被锁定;锁定人:${_.lock_user_id_[h.lock_user_id_]};锁定原因:${h.lock_reason_}`;
13335
+ }, {}, { production_identification_id_: g });
13336
+ return `该物料批次已被锁定;锁定人:${O.lock_user_id_[w.lock_user_id_]};锁定原因:${w.lock_reason_}`;
13320
13337
  }
13321
- const R = async () => {
13338
+ const M = async () => {
13322
13339
  if (!s.value) {
13323
13340
  message.error("请选择一条数据");
13324
13341
  return;
13325
13342
  }
13326
- const { _rowKey: m, productionIdentificationIsLocked: h, productionIdentificationId: _, ...y } = s.value;
13327
- if (h) {
13328
- const d = await S(_);
13343
+ const { _rowKey: g, productionIdentificationIsLocked: w, productionIdentificationId: O, ...m } = s.value;
13344
+ if (w) {
13345
+ const d = await S(O);
13329
13346
  message.error(d);
13330
13347
  return;
13331
13348
  }
13332
- n.modalInst.confirm(y);
13349
+ n.modalInst.confirm(m);
13333
13350
  };
13334
- return (m, h) => (openBlock(), createBlock($e, mergeProps(n.modalProps, {
13351
+ return (g, w) => (openBlock(), createBlock(Ze, mergeProps(n.modalProps, {
13335
13352
  class: "gct-form-base-modal-scan-multi-rows",
13336
13353
  visible: n.modalVisible,
13337
13354
  title: "选择物料",
13338
13355
  width: 800,
13339
13356
  fullscreen: !1,
13340
13357
  onCancel: n.modalInst.cancel,
13341
- onOk: R,
13342
- onAfterClose: h[0] || (h[0] = (_) => l("afterClose"))
13358
+ onOk: M,
13359
+ onAfterClose: w[0] || (w[0] = (O) => l("afterClose"))
13343
13360
  }), {
13344
13361
  default: withCtx(() => [createElementVNode("div", Hr, [createVNode(unref(VxeGrid), mergeProps({
13345
13362
  class: "scan-multi-rows-modal__grid default vxetable",
@@ -13568,35 +13585,35 @@ var init_index_es = __esmMin((() => {
13568
13585
  zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
13569
13586
  };
13570
13587
  return new Promise((u, r) => {
13571
- let S = !1, R = !1, m = !1, h$2;
13572
- const _ = (k) => {
13573
- S || (S = !0, R = !0, s.visible = !1, u(k));
13574
- }, y = {
13588
+ let S = !1, M = !1, g = !1, w;
13589
+ const O = (b) => {
13590
+ S || (S = !0, M = !0, s.visible = !1, u(b));
13591
+ }, m = {
13575
13592
  id: l,
13576
- confirm(k) {
13577
- _({
13593
+ confirm(b) {
13594
+ O({
13578
13595
  success: !0,
13579
- result: k
13596
+ result: b
13580
13597
  });
13581
13598
  },
13582
13599
  cancel() {
13583
- _({
13600
+ O({
13584
13601
  success: !1,
13585
13602
  result: void 0
13586
13603
  });
13587
13604
  }
13588
13605
  }, d = async () => {
13589
- if (m) return;
13590
- m = !0, this.modalMap.delete(l);
13591
- const k = h$2;
13592
- h$2 = void 0, k && await k.destroy();
13593
- }, f = () => this.resolveAntdConfig(), C = defineComponent({
13606
+ if (g) return;
13607
+ g = !0, this.modalMap.delete(l);
13608
+ const b = w;
13609
+ w = void 0, b && await b.destroy();
13610
+ }, f = () => this.resolveAntdConfig(), k = defineComponent({
13594
13611
  name: "FormBaseModalRoot",
13595
13612
  setup() {
13596
13613
  return () => h(ConfigProvider, f(), { default: () => h(n, {
13597
13614
  modalVisible: s.visible,
13598
13615
  modalProps: c,
13599
- modalInst: y,
13616
+ modalInst: m,
13600
13617
  bizOptions: t,
13601
13618
  onAfterClose: d
13602
13619
  }) });
@@ -13604,13 +13621,13 @@ var init_index_es = __esmMin((() => {
13604
13621
  });
13605
13622
  this.modalMap.set(l, {
13606
13623
  id: l,
13607
- cancel: y.cancel,
13608
- isClosing: () => R
13624
+ cancel: m.cancel,
13625
+ isClosing: () => M
13609
13626
  });
13610
13627
  try {
13611
- h$2 = $r(C, this.appContext, l);
13612
- } catch (k) {
13613
- this.modalMap.delete(l), r(k);
13628
+ w = $r(k, this.appContext, l);
13629
+ } catch (b) {
13630
+ this.modalMap.delete(l), r(b);
13614
13631
  }
13615
13632
  });
13616
13633
  }
@@ -13635,7 +13652,7 @@ var init_index_es = __esmMin((() => {
13635
13652
  } };
13636
13653
  }));
13637
13654
  //#endregion
13638
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.11_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+cor_575db55867c7ba1fd24a3b7f83c19830/node_modules/@gct-paas/form-base/dist/form-base.css
13655
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.12_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+cor_b10c3ae6539f46e92b6de1bb55838218/node_modules/@gct-paas/form-base/dist/form-base.css
13639
13656
  init_index_es();
13640
13657
  //#endregion
13641
13658
  //#region src/sdk/setup.ts
@@ -126970,7 +126987,10 @@ var init_material_consume_table_controller = __esmMin((() => {
126970
126987
  if (versionId) getSubFieldConfig(doc.paramsConfig).set(`${rowPath}.material_no_`, { "product_id_.versionIn": [versionId] });
126971
126988
  doc.dataManager.setMultiple({
126972
126989
  [`${rowPath}.material_no_`]: void 0,
126973
- [`${rowPath}.qty_`]: void 0
126990
+ [`${rowPath}.material_no__id_`]: void 0,
126991
+ [`${rowPath}.material_no__lb_`]: void 0,
126992
+ [`${rowPath}.qty_`]: void 0,
126993
+ [`${rowPath}.expiration_date_`]: void 0
126974
126994
  }, "user");
126975
126995
  const disabled = this.getMaterialTypeIsView(product_id_);
126976
126996
  MCDataUtil.updateViewFieldsDisablement({
@@ -147520,12 +147540,6 @@ var TABLE_VALIDATION_RULES = [{
147520
147540
  invalid: (region) => !region.itemRegion,
147521
147541
  code: "item-region-required",
147522
147542
  message: "请给固定表设置数据分组"
147523
- }, {
147524
- hasTable: (tbl) => tbl.hasMaterialConsumeTable,
147525
- getRegions: (tbl) => tbl.materialConsumeTable,
147526
- invalid: (region) => !region.widgetMeta.props.barcode_parsing_rules_id_,
147527
- code: "barcode-parsing-rules-required",
147528
- message: "请给物料消耗表设置条码解析规则"
147529
147543
  }];
147530
147544
  /** 校验文档模型中的设计态配置 */
147531
147545
  function validateDocDesigner(doc) {
@@ -168756,12 +168770,22 @@ function getDefaultDisplayFieldConfig(type) {
168756
168770
  };
168757
168771
  }
168758
168772
  //#endregion
168773
+ //#region src/suites/shared/panel/config/editor/field-config-visibility.ts
168774
+ init_field_type();
168775
+ var HIDDEN_DISPLAY_AND_SEARCH_FIELD_TYPES = /* @__PURE__ */ new Set([
168776
+ FIELD_TYPE.E_SOP,
168777
+ FIELD_TYPE.TRACE_DATE,
168778
+ FIELD_TYPE.ORDER_NO,
168779
+ FIELD_TYPE.EXTERNAL_REF_NO,
168780
+ FIELD_TYPE.TARGET_WAREHOUSE
168781
+ ]);
168782
+ var showDisplayAndSearchConfig = (fieldMeta) => !HIDDEN_DISPLAY_AND_SEARCH_FIELD_TYPES.has(fieldMeta.type) && !HIDDEN_DISPLAY_AND_SEARCH_FIELD_TYPES.has(fieldMeta.bizType ?? "");
168783
+ //#endregion
168759
168784
  //#region src/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue?vue&type=script&setup=true&lang.ts
168760
168785
  init_base$2();
168761
168786
  init_TriggerUtil();
168762
168787
  init__register_();
168763
168788
  init_core();
168764
- init_field_type();
168765
168789
  var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
168766
168790
  __name: "display-fields-editor",
168767
168791
  props: {
@@ -168776,14 +168800,7 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
168776
168800
  const { isRefer } = useDocPubApiContext();
168777
168801
  const props = __props;
168778
168802
  const emit = __emit;
168779
- const hiddenFieldTypes = /* @__PURE__ */ new Set([
168780
- FIELD_TYPE.E_SOP,
168781
- FIELD_TYPE.TRACE_DATE,
168782
- FIELD_TYPE.ORDER_NO,
168783
- FIELD_TYPE.EXTERNAL_REF_NO,
168784
- FIELD_TYPE.TARGET_WAREHOUSE
168785
- ]);
168786
- const showDisplayFields = computed(() => !hiddenFieldTypes.has(props.fieldMeta.type) && !hiddenFieldTypes.has(props.fieldMeta.bizType ?? ""));
168803
+ const showDisplayFields = computed(() => showDisplayAndSearchConfig(props.fieldMeta));
168787
168804
  const selectorInfo = computed(() => {
168788
168805
  const options = [];
168789
168806
  const values = [];
@@ -168875,7 +168892,7 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
168875
168892
  //#endregion
168876
168893
  //#region src/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue
168877
168894
  init__plugin_vue_export_helper();
168878
- var display_fields_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(display_fields_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a8920d46"]]);
168895
+ var display_fields_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(display_fields_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-facc4cc1"]]);
168879
168896
  //#endregion
168880
168897
  //#region src/suites/shared/panel/config/editor/quick-search-editor/quick-search-editor.vue?vue&type=script&setup=true&name=quick-search-editor&lang.ts
168881
168898
  init_base$2();
@@ -168901,6 +168918,7 @@ var quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_
168901
168918
  const emit = __emit;
168902
168919
  const { loadFieldList } = useModelLoader();
168903
168920
  const fieldOptions = ref([]);
168921
+ const showSearchConfig = computed(() => showDisplayAndSearchConfig(props.fieldMeta));
168904
168922
  const _searchable = computed({
168905
168923
  get() {
168906
168924
  return isBoolean(props.searchable) ? props.searchable : getSearchableFieldIsDefaultOpen(props.fieldMeta);
@@ -168921,6 +168939,7 @@ var quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_
168921
168939
  }
168922
168940
  onMounted(() => {
168923
168941
  var _props$searchField;
168942
+ if (!showSearchConfig.value) return;
168924
168943
  if (!((_props$searchField = props.searchField) === null || _props$searchField === void 0 ? void 0 : _props$searchField.length)) {
168925
168944
  const fields = getDefaultQuickSearchFields(props.fieldMeta);
168926
168945
  if (fields.length) {
@@ -168930,11 +168949,11 @@ var quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_
168930
168949
  }
168931
168950
  loadOptions();
168932
168951
  });
168933
- watch(() => props.refModelKey, () => {
168934
- loadOptions();
168952
+ watch([() => props.refModelKey, showSearchConfig], ([, visible]) => {
168953
+ if (visible) loadOptions();
168935
168954
  });
168936
168955
  return (_ctx, _cache) => {
168937
- return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(form_item_default), { label: "搜索" }, {
168956
+ return showSearchConfig.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(form_item_default), { label: "搜索" }, {
168938
168957
  default: withCtx(() => [createElementVNode("div", _hoisted_1$42, [createVNode(unref(switch_default), {
168939
168958
  size: "small",
168940
168959
  modelValue: _searchable.value,
@@ -168962,14 +168981,14 @@ var quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_
168962
168981
  "disabled"
168963
168982
  ])]),
168964
168983
  _: 1
168965
- })) : createCommentVNode("", true)], 64);
168984
+ })) : createCommentVNode("", true)], 64)) : createCommentVNode("", true);
168966
168985
  };
168967
168986
  }
168968
168987
  });
168969
168988
  //#endregion
168970
168989
  //#region src/suites/shared/panel/config/editor/quick-search-editor/quick-search-editor.vue
168971
168990
  init__plugin_vue_export_helper();
168972
- var quick_search_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_lang_default, [["__scopeId", "data-v-b1749e88"]]);
168991
+ var quick_search_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(quick_search_editor_vue_vue_type_script_setup_true_name_quick_search_editor_lang_default, [["__scopeId", "data-v-28dabc20"]]);
168973
168992
  //#endregion
168974
168993
  //#region src/suites/edhr/panel-config/field/business/field-business-config.vue?vue&type=script&setup=true&lang.ts
168975
168994
  init_field_type();