@gct-paas/word 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.2.22 */
1
+ /*! @gct-paas/word v0.2.23 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import Rt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -9386,7 +9386,7 @@ var init_base$2 = __esmMin((() => {
9386
9386
  //#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
9387
9387
  var init_style = __esmMin((() => {}));
9388
9388
  //#endregion
9389
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.4_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core@14.1.0_4b840a7f59e3a3666b01ae207b0b0731/node_modules/@gct-paas/form-base/dist/index.es.js
9389
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.5_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core@14.1.0_371411f6189e9a7eefab475321c60235/node_modules/@gct-paas/form-base/dist/index.es.js
9390
9390
  function Ra() {
9391
9391
  if (typeof globalThis < "u") {
9392
9392
  const e = globalThis._api;
@@ -9455,7 +9455,7 @@ function fl(e, o, t, a, n, l) {
9455
9455
  e.native ? "" : "scrollbar__wrap--hidden-default"
9456
9456
  ]),
9457
9457
  style: normalizeStyle(e.style),
9458
- onScroll: o[0] || (o[0] = (...c) => e.handleScroll && e.handleScroll(...c))
9458
+ onScroll: o[0] || (o[0] = (...p) => e.handleScroll && e.handleScroll(...p))
9459
9459
  }, [(openBlock(), createBlock(resolveDynamicComponent(e.tag), {
9460
9460
  ref: "resize",
9461
9461
  class: normalizeClass(["scrollbar__view", e.viewClass]),
@@ -9495,19 +9495,19 @@ function ea(e, o, t) {
9495
9495
  }
9496
9496
  function ss(e, o, t, a, n) {
9497
9497
  var _o$children;
9498
- const [l, s] = e.split(":"), c = !!((_o$children = o.children) === null || _o$children === void 0 ? void 0 : _o$children.length);
9498
+ const [l, s] = e.split(":"), p = !!((_o$children = o.children) === null || _o$children === void 0 ? void 0 : _o$children.length);
9499
9499
  if (l && s) {
9500
9500
  const u = ea(e, t, a);
9501
9501
  if (u) return u;
9502
9502
  }
9503
- if (c && !n) return ls(o.title);
9504
- if (c && n && o._info) {
9503
+ if (p && !n) return ls(o.title);
9504
+ if (p && n && o._info) {
9505
9505
  const u = ns(o._info);
9506
9506
  if (u) return Yt(o.title, u);
9507
9507
  }
9508
9508
  return o.displayLabel ? {
9509
9509
  text: o.displayLabel,
9510
- showDefaultTag: !n && !!o.showDefaultTag && c
9510
+ showDefaultTag: !n && !!o.showDefaultTag && p
9511
9511
  } : {
9512
9512
  text: o.title || e,
9513
9513
  showDefaultTag: !1
@@ -9579,7 +9579,7 @@ function xs(e) {
9579
9579
  return n(V), V;
9580
9580
  });
9581
9581
  }
9582
- async function c(d = {}) {
9582
+ async function p(d = {}) {
9583
9583
  var _d$keyword, _e$getQueryData;
9584
9584
  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 Ht.handleRequest(`rdo-tree-list:${e.modelKey}`, {
9585
9585
  pageNo: f,
@@ -9629,7 +9629,7 @@ function xs(e) {
9629
9629
  }
9630
9630
  async function r(d = {}) {
9631
9631
  var _t$value$at;
9632
- const f = d.pageNo ?? 1, { complete: k, nodes: b } = await c(d);
9632
+ const f = d.pageNo ?? 1, { complete: k, nodes: b } = await p(d);
9633
9633
  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({
9634
9634
  key: `__load_more__:${f}`,
9635
9635
  title: "加载更多...",
@@ -9644,23 +9644,23 @@ function xs(e) {
9644
9644
  const b = await u(d);
9645
9645
  b && t.value.unshift(b);
9646
9646
  }
9647
- function M(d) {
9647
+ function x(d) {
9648
9648
  return a.value.get(d) || t.value.find((f) => String(f.key) === d);
9649
9649
  }
9650
- function v(d) {
9650
+ function g(d) {
9651
9651
  var _k$children;
9652
- const [f] = d.split(":"), k = M(f || "");
9652
+ const [f] = d.split(":"), k = x(f || "");
9653
9653
  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));
9654
9654
  }
9655
9655
  function w(d, f = !1) {
9656
9656
  if (!d) return { text: "" };
9657
9657
  const [k, b] = d.split(":");
9658
9658
  if (k && b) {
9659
- const U = ea(d, v, M);
9659
+ const U = ea(d, g, x);
9660
9660
  if (U) return U;
9661
9661
  }
9662
9662
  if (k && !b && !f) {
9663
- const U = M(k);
9663
+ const U = x(k);
9664
9664
  if (U) return {
9665
9665
  text: U.title,
9666
9666
  showDefaultTag: !0
@@ -9690,8 +9690,8 @@ function xs(e) {
9690
9690
  ensureSelectedNode: S,
9691
9691
  getNodeDisplay: w,
9692
9692
  initByValue: O,
9693
- findChildNode: v,
9694
- findParentNode: M,
9693
+ findChildNode: g,
9694
+ findParentNode: x,
9695
9695
  resetTreeData: m
9696
9696
  };
9697
9697
  }
@@ -9729,18 +9729,18 @@ function tr(e, o) {
9729
9729
  if (!o) throw new Error("请传入解析规则");
9730
9730
  const { separator: n, nullSymbol: l, fieldList: s } = oa(JSON.parse(o));
9731
9731
  return e.split(n).reduce((u, r, S) => {
9732
- const M = s[S];
9733
- if (M) {
9734
- let v = l && r === l ? null : r;
9735
- if (v !== null) switch (M.type) {
9732
+ const x = s[S];
9733
+ if (x) {
9734
+ let g = l && r === l ? null : r;
9735
+ if (g !== null) switch (x.type) {
9736
9736
  case Ee.qty:
9737
- v = Number(v);
9737
+ g = Number(g);
9738
9738
  break;
9739
9739
  case Ee.expiration:
9740
- v = dayjs(v, M.format).format("YYYY-MM-DD HH:mm:ss");
9740
+ g = dayjs(g, x.format).format("YYYY-MM-DD HH:mm:ss");
9741
9741
  break;
9742
9742
  }
9743
- u[M.key] = v;
9743
+ u[x.key] = g;
9744
9744
  }
9745
9745
  return u;
9746
9746
  }, {});
@@ -9757,7 +9757,7 @@ function or(e, o) {
9757
9757
  var _a$formFields;
9758
9758
  const l = e[n];
9759
9759
  (_a$formFields = a.formFields) === null || _a$formFields === void 0 || _a$formFields.forEach((s) => {
9760
- const c = s.split("."), u = c[c.length - 1];
9760
+ const p = s.split("."), u = p[p.length - 1];
9761
9761
  t[u] = l;
9762
9762
  });
9763
9763
  }
@@ -9790,8 +9790,8 @@ function Mt(e = "zh-CN", o) {
9790
9790
  const l = n[0] && typeof n[0] == "object" ? n[0] : void 0, s = t[a];
9791
9791
  if (s != null) return jr(s, l);
9792
9792
  if (o) {
9793
- const c = o(a, ...n);
9794
- if (c != null && c !== a) return String(c);
9793
+ const p = o(a, ...n);
9794
+ if (p != null && p !== a) return String(p);
9795
9795
  }
9796
9796
  return a;
9797
9797
  };
@@ -9858,12 +9858,12 @@ function $r(e, o, t) {
9858
9858
  a.className = "gct-form-base-modal-node", t && (a.dataset.modalId = t), document.body.appendChild(a);
9859
9859
  const n = createVNode(e), l = o ?? Er();
9860
9860
  Fr(l), Gr(l), n.appContext = l, render(n, a);
9861
- let s = !1, c = !1;
9861
+ let s = !1, p = !1;
9862
9862
  async function u() {
9863
- if (!(s || c)) {
9863
+ if (!(s || p)) {
9864
9864
  s = !0;
9865
9865
  try {
9866
- await Promise.resolve(), await nextTick(), render(null, a), a.remove(), c = !0;
9866
+ await Promise.resolve(), await nextTick(), render(null, a), a.remove(), p = !0;
9867
9867
  } finally {
9868
9868
  s = !1;
9869
9869
  }
@@ -9991,8 +9991,8 @@ var init_index_es = __esmMin((() => {
9991
9991
  const s = new Image();
9992
9992
  s.crossOrigin = "Anonymous", s.onload = () => {
9993
9993
  this.imageCache.set(t, s), n(s);
9994
- }, s.onerror = (c) => {
9995
- console.error("[AssetHelper] 图片加载失败", t), l(c);
9994
+ }, s.onerror = (p) => {
9995
+ console.error("[AssetHelper] 图片加载失败", t), l(p);
9996
9996
  }, s.src = t;
9997
9997
  });
9998
9998
  }
@@ -10021,7 +10021,7 @@ var init_index_es = __esmMin((() => {
10021
10021
  l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
10022
10022
  let s = Math.floor(a / 3);
10023
10023
  l.font = `${s}px Arial`;
10024
- const c = (w, O, m) => {
10024
+ const p = (w, O, m) => {
10025
10025
  const d = w.split(""), f = [];
10026
10026
  let k = "";
10027
10027
  for (const b of d) {
@@ -10030,11 +10030,11 @@ var init_index_es = __esmMin((() => {
10030
10030
  }
10031
10031
  return k && f.push(k), f;
10032
10032
  }, u = t * .9;
10033
- let r = c(o, u, l), S = s * 1.2;
10034
- for (; r.length * S > a && s > 10;) s--, S = s * 1.2, l.font = `${s}px Arial`, r = c(o, u, l);
10035
- const v = (a - r.length * S) / 2 + S / 2;
10033
+ let r = p(o, u, l), S = s * 1.2;
10034
+ for (; r.length * S > a && s > 10;) s--, S = s * 1.2, l.font = `${s}px Arial`, r = p(o, u, l);
10035
+ const g = (a - r.length * S) / 2 + S / 2;
10036
10036
  return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", r.forEach((w, O) => {
10037
- l.fillText(w, t / 2, v + O * S);
10037
+ l.fillText(w, t / 2, g + O * S);
10038
10038
  }), n.toDataURL("image/png");
10039
10039
  }
10040
10040
  static clear() {
@@ -10112,36 +10112,36 @@ var init_index_es = __esmMin((() => {
10112
10112
  function s(r) {
10113
10113
  r.timer || r.remaining <= 0 || n(r);
10114
10114
  }
10115
- function c(r) {
10115
+ function p(r) {
10116
10116
  r.remaining = r.duration, t.push(r), r.duration > 0 && n(r);
10117
10117
  }
10118
10118
  function u(r) {
10119
- const S = t.findIndex((M) => M.id === r);
10119
+ const S = t.findIndex((x) => x.id === r);
10120
10120
  if (S !== -1) {
10121
- const M = t[S];
10122
- M !== null && M !== void 0 && M.timer && clearTimeout(M.timer), t.splice(S, 1);
10121
+ const x = t[S];
10122
+ x !== null && x !== void 0 && x.timer && clearTimeout(x.timer), t.splice(S, 1);
10123
10123
  }
10124
10124
  }
10125
10125
  return o({
10126
- add: c,
10126
+ add: p,
10127
10127
  remove: u
10128
10128
  }), (r, S) => (openBlock(), createElementBlock("div", Bn, [createVNode(TransitionGroup, {
10129
10129
  name: "message",
10130
10130
  tag: "div",
10131
10131
  class: "message-list"
10132
10132
  }, {
10133
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (M) => (openBlock(), createElementBlock("div", {
10134
- key: M.id,
10135
- class: normalizeClass(["message", `message--${M.type}`]),
10136
- onMouseenter: (v) => l(M),
10137
- onMouseleave: (v) => s(M)
10133
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (x) => (openBlock(), createElementBlock("div", {
10134
+ key: x.id,
10135
+ class: normalizeClass(["message", `message--${x.type}`]),
10136
+ onMouseenter: (g) => l(x),
10137
+ onMouseleave: (g) => s(x)
10138
10138
  }, [
10139
- createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[M.type]]) }, null, 2),
10140
- createElementVNode("div", Nn, toDisplayString(M.message), 1),
10141
- M.closeable ? (openBlock(), createElementBlock("i", {
10139
+ createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[x.type]]) }, null, 2),
10140
+ createElementVNode("div", Nn, toDisplayString(x.message), 1),
10141
+ x.closeable ? (openBlock(), createElementBlock("i", {
10142
10142
  key: 0,
10143
10143
  class: "message-close icon iconfont icon-guanbi",
10144
- onClick: (v) => u(M.id)
10144
+ onClick: (g) => u(x.id)
10145
10145
  }, null, 8, Un)) : createCommentVNode("", !0)
10146
10146
  ], 42, Hn))), 128))]),
10147
10147
  _: 1
@@ -10200,35 +10200,35 @@ var init_index_es = __esmMin((() => {
10200
10200
  move: Number
10201
10201
  },
10202
10202
  setup(e) {
10203
- const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => sl[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), c = (v) => {
10203
+ const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => sl[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), p = (g) => {
10204
10204
  var _window$getSelection;
10205
- v.ctrlKey || v.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(v), l.value[n.value.axis] = v.currentTarget[n.value.offset] - (v[n.value.client] - v.currentTarget.getBoundingClientRect()[n.value.direction]));
10206
- }, u = (v) => {
10205
+ 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]));
10206
+ }, u = (g) => {
10207
10207
  var _o$vnode$el;
10208
- const m = (Math.abs(v.target.getBoundingClientRect()[n.value.direction] - v[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]);
10208
+ 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]);
10209
10209
  a.value[n.value.scroll] = m * a.value[n.value.scrollSize] / 100;
10210
- }, r = (v) => {
10211
- v.stopImmediatePropagation(), s.value = !0, qt(document, "mousemove", S), qt(document, "mouseup", M), document.onselectstart = () => !1;
10212
- }, S = (v) => {
10210
+ }, r = (g) => {
10211
+ g.stopImmediatePropagation(), s.value = !0, qt(document, "mousemove", S), qt(document, "mouseup", x), document.onselectstart = () => !1;
10212
+ }, S = (g) => {
10213
10213
  var _o$vnode$el2, _o$vnode$el3;
10214
10214
  if (s.value === !1) return;
10215
10215
  const w = l.value[n.value.axis];
10216
10216
  if (!w) return;
10217
- 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]) - v[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]);
10217
+ 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]);
10218
10218
  a.value[n.value.scroll] = d * a.value[n.value.scrollSize] / 100;
10219
10219
  };
10220
- function M() {
10220
+ function x() {
10221
10221
  s.value = !1, l.value[n.value.axis] = 0, zt(document, "mousemove", S), document.onselectstart = null;
10222
10222
  }
10223
10223
  return onUnmounted(() => {
10224
- zt(document, "mouseup", M);
10224
+ zt(document, "mouseup", x);
10225
10225
  }), () => h("div", {
10226
10226
  class: ["scrollbar__bar", "is-" + n.value.key],
10227
10227
  onMousedown: u
10228
10228
  }, h("div", {
10229
10229
  ref: t,
10230
10230
  class: "scrollbar__thumb",
10231
- onMousedown: c,
10231
+ onMousedown: p,
10232
10232
  style: il({
10233
10233
  size: e.size,
10234
10234
  move: e.move,
@@ -10274,18 +10274,18 @@ var init_index_es = __esmMin((() => {
10274
10274
  setup(e) {
10275
10275
  const o = ref("0"), t = ref("0"), a = ref(0), n = ref(0), l = ref(), s = ref();
10276
10276
  provide("scroll-bar-wrap", l);
10277
- const c = computed(() => Array.isArray(e.wrapStyle) ? ul(e.wrapStyle) : e.wrapStyle), u = () => {
10277
+ const p = computed(() => Array.isArray(e.wrapStyle) ? ul(e.wrapStyle) : e.wrapStyle), u = () => {
10278
10278
  e.native || (n.value = unref(l).scrollTop * 100 / unref(l).clientHeight, a.value = unref(l).scrollLeft * 100 / unref(l).clientWidth);
10279
10279
  }, r = () => {
10280
10280
  if (!unref(l)) return;
10281
- const v = unref(l).clientHeight * 100 / unref(l).scrollHeight, w = unref(l).clientWidth * 100 / unref(l).scrollWidth;
10282
- t.value = v < 100 ? v + "%" : "", o.value = w < 100 ? w + "%" : "";
10283
- }, S = (v) => {
10281
+ const g = unref(l).clientHeight * 100 / unref(l).scrollHeight, w = unref(l).clientWidth * 100 / unref(l).scrollWidth;
10282
+ t.value = g < 100 ? g + "%" : "", o.value = w < 100 ? w + "%" : "";
10283
+ }, S = (g) => {
10284
10284
  const w = unref(l);
10285
- w && (typeof v == "number" ? w.scrollTop = v : w.scrollTo(v));
10286
- }, M = (v) => {
10285
+ w && (typeof g == "number" ? w.scrollTop = g : w.scrollTo(g));
10286
+ }, x = (g) => {
10287
10287
  const w = unref(l);
10288
- w && (w.scrollTop = v);
10288
+ w && (w.scrollTop = g);
10289
10289
  };
10290
10290
  return onMounted(() => {
10291
10291
  e.native || (nextTick(r), e.noresize || (Vt(unref(s), r), Vt(unref(l), r), addEventListener("resize", r)));
@@ -10296,13 +10296,13 @@ var init_index_es = __esmMin((() => {
10296
10296
  moveY: n,
10297
10297
  sizeWidth: o,
10298
10298
  sizeHeight: t,
10299
- style: c,
10299
+ style: p,
10300
10300
  wrap: l,
10301
10301
  resize: s,
10302
10302
  update: r,
10303
10303
  handleScroll: u,
10304
10304
  scrollTo: S,
10305
- setScrollTop: M
10305
+ setScrollTop: x
10306
10306
  };
10307
10307
  }
10308
10308
  });
@@ -10355,16 +10355,16 @@ var init_index_es = __esmMin((() => {
10355
10355
  const t = e, a = o, n = computed(() => {
10356
10356
  var _t$node$children2;
10357
10357
  return !!((_t$node$children2 = t.node.children) === null || _t$node$children2 === void 0 ? void 0 : _t$node$children2.length);
10358
- }), l = computed(() => t.expandedKeys.includes(t.node.key)), s = computed(() => t.selectedKey === String(t.node.rawValue ?? t.node.key)), c = computed(() => t.node.disabled ? !0 : t.disabledParent ? n.value : !1);
10358
+ }), l = computed(() => t.expandedKeys.includes(t.node.key)), s = computed(() => t.selectedKey === String(t.node.rawValue ?? t.node.key)), p = computed(() => t.node.disabled ? !0 : t.disabledParent ? n.value : !1);
10359
10359
  function u() {
10360
- c.value || a("select", t.node);
10360
+ p.value || a("select", t.node);
10361
10361
  }
10362
10362
  return (r, S) => {
10363
- const M = resolveComponent("RdoTreeSelectNode", !0);
10363
+ const x = resolveComponent("RdoTreeSelectNode", !0);
10364
10364
  return openBlock(), createElementBlock("div", us, [createElementVNode("div", {
10365
10365
  class: normalizeClass(["rdo-tree-select-node__row", {
10366
10366
  selected: s.value,
10367
- disabled: c.value,
10367
+ disabled: p.value,
10368
10368
  "is-parent": n.value,
10369
10369
  "is-child": !n.value && e.level > 0
10370
10370
  }]),
@@ -10373,15 +10373,15 @@ var init_index_es = __esmMin((() => {
10373
10373
  }, [n.value ? (openBlock(), createElementBlock("span", {
10374
10374
  key: 0,
10375
10375
  class: normalizeClass(["rdo-tree-select-node__switcher", { expanded: l.value }]),
10376
- onClick: S[0] || (S[0] = withModifiers((v) => a("toggle", e.node.key), ["stop"]))
10376
+ onClick: S[0] || (S[0] = withModifiers((g) => a("toggle", e.node.key), ["stop"]))
10377
10377
  }, [createVNode(unref(Z$1), {
10378
10378
  icon: "icon-arrow_zhankai",
10379
10379
  color: "#212528",
10380
10380
  size: "13",
10381
10381
  version: "v2"
10382
- })], 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, (v) => (openBlock(), createBlock(M, {
10383
- key: v.key,
10384
- node: v,
10382
+ })], 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(x, {
10383
+ key: g.key,
10384
+ node: g,
10385
10385
  level: e.level + 1,
10386
10386
  "expanded-keys": e.expandedKeys,
10387
10387
  "selected-key": e.selectedKey,
@@ -10477,14 +10477,14 @@ var init_index_es = __esmMin((() => {
10477
10477
  * @returns 请求结果
10478
10478
  */
10479
10479
  async handleRequest(o, t, a, n) {
10480
- const l = this.getKey(o, t), s = Date.now(), c = n ?? this.defaultTTL;
10480
+ const l = this.getKey(o, t), s = Date.now(), p = n ?? this.defaultTTL;
10481
10481
  this.cleanupExpiredCache();
10482
10482
  const u = this.cacheMap.get(l);
10483
10483
  if (u && u.expireAt > s) return this.log("info", `[cache] 命中缓存: ${l}`), u.data;
10484
10484
  if (u && this.cacheMap.delete(l), this.pendingMap.has(l)) return this.log("warn", `[pending] 返回进行中的 Promise: ${l}`), this.pendingMap.get(l);
10485
10485
  const r = a(t).then((S) => (this.cacheMap.size >= this.maxCacheSize && (this.log("debug", "[cache] 缓存已满,执行清理"), this.clearExpiredFirst()), this.cacheMap.set(l, {
10486
10486
  data: S,
10487
- expireAt: Date.now() + c
10487
+ expireAt: Date.now() + p
10488
10488
  }), S)).catch((S) => {
10489
10489
  throw this.log("error", `[request] 请求失败: ${l}`, S), S;
10490
10490
  }).finally(() => {
@@ -10679,11 +10679,11 @@ var init_index_es = __esmMin((() => {
10679
10679
  "change"
10680
10680
  ],
10681
10681
  setup(e, { emit: o }) {
10682
- const t = e, a = o, n = ref(), l = ref(), s = ref(), c = ref(), u = ref(!1), r = ref(!1), S = ref(!1), M = ref({}), v = 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({
10682
+ const t = e, a = o, n = ref(), l = ref(), s = ref(), p = ref(), u = ref(!1), r = ref(!1), S = ref(!1), x = 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({
10683
10683
  modelKey: t.modelKey,
10684
10684
  modelCategory: t.modelCategory,
10685
10685
  getQueryData: () => t.queryData
10686
- }), 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) => ({
10686
+ }), M = 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 && M.value && S.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? k.value : k.value.map((I) => ({
10687
10687
  ...I,
10688
10688
  disabled: !1
10689
10689
  })));
@@ -10691,14 +10691,14 @@ var init_index_es = __esmMin((() => {
10691
10691
  f.value = I;
10692
10692
  }
10693
10693
  function Q() {
10694
- if (!x.value) {
10694
+ if (!M.value) {
10695
10695
  ne({
10696
10696
  text: "",
10697
10697
  showDefaultTag: !1
10698
10698
  });
10699
10699
  return;
10700
10700
  }
10701
- const I = U(x.value, t.parentToDefault);
10701
+ const I = U(M.value, t.parentToDefault);
10702
10702
  I.text && ne({
10703
10703
  text: I.text,
10704
10704
  showDefaultTag: I.showDefaultTag ?? !1
@@ -10708,14 +10708,14 @@ var init_index_es = __esmMin((() => {
10708
10708
  w.value = Y.value.filter((I) => !I.isLoadMore).map((I) => I.key);
10709
10709
  }
10710
10710
  async function Ie() {
10711
- if (!x.value) {
10711
+ if (!M.value) {
10712
10712
  ne({
10713
10713
  text: "",
10714
10714
  showDefaultTag: !1
10715
10715
  });
10716
10716
  return;
10717
10717
  }
10718
- const I = await D(x.value, t.pageSize, t.parentToDefault);
10718
+ const I = await D(M.value, t.pageSize, t.parentToDefault);
10719
10719
  if (I === null || I === void 0 ? void 0 : I.text) {
10720
10720
  ne(I);
10721
10721
  return;
@@ -10723,7 +10723,7 @@ var init_index_es = __esmMin((() => {
10723
10723
  Q();
10724
10724
  }
10725
10725
  async function Ve(I = !0) {
10726
- v.value = !0;
10726
+ g.value = !0;
10727
10727
  try {
10728
10728
  I && (O.value = 1), await b({
10729
10729
  pageNo: O.value,
@@ -10731,7 +10731,7 @@ var init_index_es = __esmMin((() => {
10731
10731
  keyword: t.showSearch && d.value || void 0
10732
10732
  }), I && Ae(), Q();
10733
10733
  } finally {
10734
- v.value = !1;
10734
+ g.value = !1;
10735
10735
  }
10736
10736
  }
10737
10737
  const ze = debounce(() => {
@@ -10740,7 +10740,7 @@ var init_index_es = __esmMin((() => {
10740
10740
  function Je() {
10741
10741
  if (!n.value) return;
10742
10742
  const I = n.value.getBoundingClientRect(), J = t.popperWidth ?? I.width;
10743
- M.value = {
10743
+ x.value = {
10744
10744
  position: "fixed",
10745
10745
  top: `${I.bottom + 4}px`,
10746
10746
  left: `${I.left}px`,
@@ -10751,18 +10751,18 @@ var init_index_es = __esmMin((() => {
10751
10751
  async function Qe(I = {}) {
10752
10752
  const { forceRefresh: J = !1 } = I;
10753
10753
  if (d.value) {
10754
- await Ve(!0), await V(x.value), Q();
10754
+ await Ve(!0), await V(M.value), Q();
10755
10755
  return;
10756
10756
  }
10757
10757
  if (J) {
10758
- R(), await Ve(!0), await V(x.value), Q();
10758
+ R(), await Ve(!0), await V(M.value), Q();
10759
10759
  return;
10760
10760
  }
10761
10761
  if (!k.value.length) {
10762
- await Ve(!0), await V(x.value), Q();
10762
+ await Ve(!0), await V(M.value), Q();
10763
10763
  return;
10764
10764
  }
10765
- Ae(), Q(), await V(x.value), Q();
10765
+ Ae(), Q(), await V(M.value), Q();
10766
10766
  }
10767
10767
  async function st() {
10768
10768
  var _l$value8;
@@ -10808,7 +10808,7 @@ var init_index_es = __esmMin((() => {
10808
10808
  return t.parentToDefault && !re && ((_I$_info = I._info) === null || _I$_info === void 0 ? void 0 : _I$_info.id_) ? `${J}:${I._info.id_}` : J;
10809
10809
  }
10810
10810
  function Ye(I) {
10811
- var _c$value, _c$value$hide;
10811
+ var _p$value, _p$value$hide;
10812
10812
  if (I.isLoadMore) {
10813
10813
  we();
10814
10814
  return;
@@ -10817,7 +10817,7 @@ var init_index_es = __esmMin((() => {
10817
10817
  const J = rt(I);
10818
10818
  if (!J.includes(":") && t.disabledParent) return;
10819
10819
  const re = ss(J, I, A, N, t.parentToDefault);
10820
- 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);
10820
+ ne(re), a("update:modelValue", J), a("update:fullPathValue", J), a("change", J, I, re), t.showSearch ? _e() : (_p$value = p.value) === null || _p$value === void 0 || (_p$value$hide = _p$value.hide) === null || _p$value$hide === void 0 || _p$value$hide.call(_p$value);
10821
10821
  }
10822
10822
  function se() {
10823
10823
  ze.cancel(), m.value = "", d.value = "", ne({
@@ -10835,7 +10835,7 @@ var init_index_es = __esmMin((() => {
10835
10835
  }
10836
10836
  (t.showSearch ? u.value : r.value) || Ie();
10837
10837
  }), onMounted(() => {
10838
- x.value && Ie(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0));
10838
+ M.value && Ie(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0));
10839
10839
  }), onBeforeUnmount(() => {
10840
10840
  t.showSearch && (document.removeEventListener("click", le, !0), window.removeEventListener("resize", de), window.removeEventListener("scroll", de, !0));
10841
10841
  }), (I, J) => e.showSearch ? (openBlock(), createElementBlock("div", {
@@ -10880,13 +10880,13 @@ var init_index_es = __esmMin((() => {
10880
10880
  ref_key: "searchDropdownRef",
10881
10881
  ref: s,
10882
10882
  class: "rdo-tree-select__dropdown",
10883
- style: normalizeStyle(M.value),
10883
+ style: normalizeStyle(x.value),
10884
10884
  onMousedown: J[3] || (J[3] = withModifiers(() => {}, ["prevent"]))
10885
10885
  }, [createVNode(Bt, {
10886
10886
  "display-tree-data": Y.value,
10887
10887
  "expanded-keys": w.value,
10888
- "inner-value": x.value,
10889
- loading: v.value,
10888
+ "inner-value": M.value,
10889
+ loading: g.value,
10890
10890
  "disabled-parent": e.disabledParent,
10891
10891
  "parent-to-default": e.parentToDefault,
10892
10892
  "empty-text": d.value ? "暂无搜索" : "暂无数据",
@@ -10906,7 +10906,7 @@ var init_index_es = __esmMin((() => {
10906
10906
  class: normalizeClass(["rdo-tree-select", { disabled: e.disabled }])
10907
10907
  }, [createVNode(unref(We), {
10908
10908
  ref_key: "dropdownRef",
10909
- ref: c,
10909
+ ref: p,
10910
10910
  distance: 4,
10911
10911
  placement: "bottom-start",
10912
10912
  disabled: e.disabled,
@@ -10919,8 +10919,8 @@ var init_index_es = __esmMin((() => {
10919
10919
  }, [createVNode(Bt, {
10920
10920
  "display-tree-data": Y.value,
10921
10921
  "expanded-keys": w.value,
10922
- "inner-value": x.value,
10923
- loading: v.value,
10922
+ "inner-value": M.value,
10923
+ loading: g.value,
10924
10924
  "disabled-parent": e.disabledParent,
10925
10925
  "parent-to-default": e.parentToDefault,
10926
10926
  onToggle: je,
@@ -11049,13 +11049,13 @@ var init_index_es = __esmMin((() => {
11049
11049
  x: 0,
11050
11050
  y: 0
11051
11051
  });
11052
- let c = 0, u = 0, r = 0, S = 0;
11053
- const M = computed(() => [
11052
+ let p = 0, u = 0, r = 0, S = 0;
11053
+ const x = computed(() => [
11054
11054
  "gct-form-base-modal",
11055
11055
  n.wrapClassName,
11056
11056
  t.mask ? "" : "gct-form-base-modal--maskless",
11057
11057
  l.value ? "gct-form-base-modal--fullscreen" : ""
11058
- ].filter(Boolean).join(" ")), v = computed(() => {
11058
+ ].filter(Boolean).join(" ")), g = computed(() => {
11059
11059
  const { title: b, wrapClassName: V, ...U } = n;
11060
11060
  return U;
11061
11061
  }), w = computed(() => {
@@ -11068,7 +11068,7 @@ var init_index_es = __esmMin((() => {
11068
11068
  t.fullscreen && (l.value = !l.value, O());
11069
11069
  }
11070
11070
  function d(b) {
11071
- s.x = r + b.clientX - c, s.y = S + b.clientY - u;
11071
+ s.x = r + b.clientX - p, s.y = S + b.clientY - u;
11072
11072
  }
11073
11073
  function f() {
11074
11074
  document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f);
@@ -11083,7 +11083,7 @@ var init_index_es = __esmMin((() => {
11083
11083
  "textarea",
11084
11084
  "select",
11085
11085
  "[role=\"button\"]"
11086
- ].join(",")) || (c = b.clientX, u = b.clientY, r = s.x, S = s.y, document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), b.preventDefault()));
11086
+ ].join(",")) || (p = b.clientX, u = b.clientY, r = s.x, S = s.y, document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), b.preventDefault()));
11087
11087
  }
11088
11088
  return watch(() => t.fullscreen, (b) => {
11089
11089
  b || (l.value = !1, O());
@@ -11096,10 +11096,10 @@ var init_index_es = __esmMin((() => {
11096
11096
  "ok-text": "确定",
11097
11097
  "cancel-text": "取消",
11098
11098
  width: 640
11099
- }, v.value, {
11099
+ }, g.value, {
11100
11100
  visible: e.visible,
11101
11101
  mask: e.mask,
11102
- "wrap-class-name": M.value,
11102
+ "wrap-class-name": x.value,
11103
11103
  onCancel: V[1] || (V[1] = (U) => a("cancel", U)),
11104
11104
  onOk: V[2] || (V[2] = (U) => a("ok", U)),
11105
11105
  onAfterClose: V[3] || (V[3] = (U) => a("afterClose"))
@@ -11164,7 +11164,7 @@ var init_index_es = __esmMin((() => {
11164
11164
  },
11165
11165
  emits: ["update:formState"],
11166
11166
  setup(e) {
11167
- const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), c = ref(!1), u = ref({}), r = ref({});
11167
+ const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), p = ref(!1), u = ref({}), r = ref({});
11168
11168
  async function S(P) {
11169
11169
  var _P$keyword, _ref2;
11170
11170
  const X = (_P$keyword = P.keyword) === null || _P$keyword === void 0 ? void 0 : _P$keyword.trim(), le = { ...P.extraQuery ?? {} };
@@ -11185,7 +11185,7 @@ var init_index_es = __esmMin((() => {
11185
11185
  value: ie.id_
11186
11186
  }));
11187
11187
  }
11188
- async function M(P, X) {
11188
+ async function x(P, X) {
11189
11189
  var _ref3;
11190
11190
  const le = [...new Set(X.filter(Boolean))];
11191
11191
  return le.length ? (((_ref3 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
@@ -11197,7 +11197,7 @@ var init_index_es = __esmMin((() => {
11197
11197
  value: ie.id_
11198
11198
  })) : [];
11199
11199
  }
11200
- function v(P, X) {
11200
+ function g(P, X) {
11201
11201
  const le = /* @__PURE__ */ new Map();
11202
11202
  return [...P, ...X].forEach((de) => {
11203
11203
  (de === null || de === void 0 ? void 0 : de.value) != null && le.set(String(de.value), de);
@@ -11206,7 +11206,7 @@ var init_index_es = __esmMin((() => {
11206
11206
  async function w(P, X, le) {
11207
11207
  const de = [...new Set(le.filter(Boolean))].filter((ve) => !X.some((we) => we.value === ve));
11208
11208
  if (!de.length) return X;
11209
- return v(X, await M(P, de));
11209
+ return g(X, await x(P, de));
11210
11210
  }
11211
11211
  function O() {
11212
11212
  return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((P) => P.warehouse_id_)];
@@ -11246,7 +11246,7 @@ var init_index_es = __esmMin((() => {
11246
11246
  }
11247
11247
  async function b(P, X) {
11248
11248
  if (X) {
11249
- c.value = !0;
11249
+ p.value = !0;
11250
11250
  try {
11251
11251
  const le = await S({
11252
11252
  modelKey: "em_location",
@@ -11258,7 +11258,7 @@ var init_index_es = __esmMin((() => {
11258
11258
  [X]: await w("em_location", le, d(X))
11259
11259
  };
11260
11260
  } finally {
11261
- c.value = !1;
11261
+ p.value = !1;
11262
11262
  }
11263
11263
  }
11264
11264
  }
@@ -11271,7 +11271,7 @@ var init_index_es = __esmMin((() => {
11271
11271
  function R(P) {
11272
11272
  return n.value[P.warehouse_id_ ?? ""] ?? [];
11273
11273
  }
11274
- function x(P) {
11274
+ function M(P) {
11275
11275
  return [{
11276
11276
  required: !0,
11277
11277
  message: $t("sys.pleaseSelectSth", { sth: P })
@@ -11279,7 +11279,7 @@ var init_index_es = __esmMin((() => {
11279
11279
  }
11280
11280
  function y(P) {
11281
11281
  const X = P.warehouse_id_;
11282
- return X && r.value[X] === !1 ? [] : x($t("sys.pageDesigner.fieldCmp.location"));
11282
+ return X && r.value[X] === !1 ? [] : M($t("sys.pageDesigner.fieldCmp.location"));
11283
11283
  }
11284
11284
  const B = [{
11285
11285
  value: "follow_common_policy",
@@ -11458,7 +11458,7 @@ var init_index_es = __esmMin((() => {
11458
11458
  "filter-option": !1,
11459
11459
  placeholder: P.$t("sys.chooseText"),
11460
11460
  options: N.value,
11461
- loading: c.value,
11461
+ loading: p.value,
11462
11462
  disabled: o.value.consume_source_config_ === "follow_common_policy" || !o.value.default_warehouse_id_ || !r.value[o.value.default_warehouse_id_],
11463
11463
  onSearch: X[4] || (X[4] = (se) => ze(se, o.value.default_warehouse_id_)),
11464
11464
  onFocus: X[5] || (X[5] = () => b("", o.value.default_warehouse_id_))
@@ -11503,7 +11503,7 @@ var init_index_es = __esmMin((() => {
11503
11503
  J,
11504
11504
  "shopfloor_id_"
11505
11505
  ],
11506
- rules: x(P.$t("sys.edhr.mcTable.shopfloor"))
11506
+ rules: M(P.$t("sys.edhr.mcTable.shopfloor"))
11507
11507
  }, {
11508
11508
  default: withCtx(() => [createVNode(ve, {
11509
11509
  value: I.shopfloor_id_,
@@ -11535,7 +11535,7 @@ var init_index_es = __esmMin((() => {
11535
11535
  J,
11536
11536
  "warehouse_id_"
11537
11537
  ],
11538
- rules: x(P.$t("sys.model.warehouse"))
11538
+ rules: M(P.$t("sys.model.warehouse"))
11539
11539
  }, {
11540
11540
  default: withCtx(() => [createVNode(ve, {
11541
11541
  value: I.warehouse_id_,
@@ -11579,7 +11579,7 @@ var init_index_es = __esmMin((() => {
11579
11579
  "filter-option": !1,
11580
11580
  placeholder: P.$t("sys.chooseText"),
11581
11581
  options: R(I),
11582
- loading: c.value,
11582
+ loading: p.value,
11583
11583
  disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !r.value[I.warehouse_id_],
11584
11584
  onSearch: (re) => ze(re, I.warehouse_id_),
11585
11585
  onFocus: () => b("", I.warehouse_id_)
@@ -11632,15 +11632,15 @@ var init_index_es = __esmMin((() => {
11632
11632
  console.warn("[BomFormulaEditor] openFormulaEditor 未注入");
11633
11633
  return;
11634
11634
  }
11635
- const c = await n.openFormulaEditor({
11635
+ const p = await n.openFormulaEditor({
11636
11636
  expr: a.value.expr,
11637
11637
  returnType: o.returnType || Hi.Number,
11638
11638
  disabledReturnType: o.disabledReturnType,
11639
11639
  mode: o.mode ?? bt.ONLINE_FORM_FIELD_FORMULA,
11640
11640
  identifiers: { [Bi.FIELD]: await s() }
11641
11641
  });
11642
- if (!c) return;
11643
- const { expr: u, exprEcho: r } = c;
11642
+ if (!p) return;
11643
+ const { expr: u, exprEcho: r } = p;
11644
11644
  t.value = JSON.stringify({
11645
11645
  expr: u,
11646
11646
  exprEcho: r
@@ -11655,12 +11655,12 @@ var init_index_es = __esmMin((() => {
11655
11655
  valueType: r.type
11656
11656
  }));
11657
11657
  }
11658
- return (c, u) => {
11658
+ return (p, u) => {
11659
11659
  const r = resolveComponent("a-input");
11660
11660
  return openBlock(), createBlock(r, {
11661
11661
  class: "bom-formula-editor",
11662
11662
  readonly: "",
11663
- placeholder: c.$t("sys.inputText"),
11663
+ placeholder: p.$t("sys.inputText"),
11664
11664
  value: a.value.exprEcho,
11665
11665
  onClick: l
11666
11666
  }, null, 8, ["placeholder", "value"]);
@@ -11698,15 +11698,15 @@ var init_index_es = __esmMin((() => {
11698
11698
  }
11699
11699
  ];
11700
11700
  return (a, n) => {
11701
- 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");
11702
- return openBlock(), createElementBlock(Fragment, null, [createVNode(c, {
11701
+ const l = resolveComponent("a-radio"), s = resolveComponent("a-radio-group"), p = resolveComponent("a-form-item"), u = resolveComponent("a-select"), r = resolveComponent("a-col"), S = resolveComponent("a-row");
11702
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(p, {
11703
11703
  label: a.$t("sys.edhr.mcTable.qtyValidationEnabled"),
11704
11704
  name: "qty_validation_enabled_",
11705
11705
  rules: [unref(me)(a.$t("sys.edhr.mcTable.qtyValidationEnabled"))]
11706
11706
  }, {
11707
11707
  default: withCtx(() => [createVNode(s, {
11708
11708
  value: o.value.qty_validation_enabled_,
11709
- "onUpdate:value": n[0] || (n[0] = (M) => o.value.qty_validation_enabled_ = M)
11709
+ "onUpdate:value": n[0] || (n[0] = (x) => o.value.qty_validation_enabled_ = x)
11710
11710
  }, {
11711
11711
  default: withCtx(() => [createVNode(l, { value: !0 }, {
11712
11712
  default: withCtx(() => [createTextVNode(toDisplayString(a.$t("sys.true")), 1)]),
@@ -11720,14 +11720,14 @@ var init_index_es = __esmMin((() => {
11720
11720
  _: 1
11721
11721
  }, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", Wi, [createVNode(S, { gutter: 16 }, {
11722
11722
  default: withCtx(() => [createVNode(r, { span: 12 }, {
11723
- default: withCtx(() => [createVNode(c, {
11723
+ default: withCtx(() => [createVNode(p, {
11724
11724
  label: a.$t("sys.edhr.mcTable.qtyValidationRule"),
11725
11725
  name: "qty_validation_rule_",
11726
11726
  required: ""
11727
11727
  }, {
11728
11728
  default: withCtx(() => [createVNode(u, {
11729
11729
  value: o.value.qty_validation_rule_,
11730
- "onUpdate:value": n[1] || (n[1] = (M) => o.value.qty_validation_rule_ = M),
11730
+ "onUpdate:value": n[1] || (n[1] = (x) => o.value.qty_validation_rule_ = x),
11731
11731
  placeholder: a.$t("sys.chooseText"),
11732
11732
  options: t
11733
11733
  }, null, 8, ["value", "placeholder"])]),
@@ -11741,18 +11741,18 @@ var init_index_es = __esmMin((() => {
11741
11741
  gutter: 16
11742
11742
  }, {
11743
11743
  default: withCtx(() => [createVNode(r, { span: 12 }, {
11744
- default: withCtx(() => [createVNode(c, {
11744
+ default: withCtx(() => [createVNode(p, {
11745
11745
  label: a.$t("sys.edhr.mcTable.qtyValidationMax"),
11746
11746
  name: "max_value_",
11747
11747
  required: ""
11748
11748
  }, {
11749
11749
  default: withCtx(() => [createVNode(Dt, {
11750
11750
  value: o.value.max_value_,
11751
- "onUpdate:value": n[2] || (n[2] = (M) => o.value.max_value_ = M),
11751
+ "onUpdate:value": n[2] || (n[2] = (x) => o.value.max_value_ = x),
11752
11752
  "model-key": "em_material_consume",
11753
11753
  mode: unref(bt).FIELD_DISPLAY,
11754
11754
  "disabled-return-type": !0,
11755
- "filter-func": (M) => M.key === "qty_required_"
11755
+ "filter-func": (x) => x.key === "qty_required_"
11756
11756
  }, null, 8, [
11757
11757
  "value",
11758
11758
  "mode",
@@ -11762,18 +11762,18 @@ var init_index_es = __esmMin((() => {
11762
11762
  }, 8, ["label"])]),
11763
11763
  _: 1
11764
11764
  }), createVNode(r, { span: 12 }, {
11765
- default: withCtx(() => [createVNode(c, {
11765
+ default: withCtx(() => [createVNode(p, {
11766
11766
  label: a.$t("sys.edhr.mcTable.qtyValidationMin"),
11767
11767
  name: "min_value_",
11768
11768
  required: ""
11769
11769
  }, {
11770
11770
  default: withCtx(() => [createVNode(Dt, {
11771
11771
  value: o.value.min_value_,
11772
- "onUpdate:value": n[3] || (n[3] = (M) => o.value.min_value_ = M),
11772
+ "onUpdate:value": n[3] || (n[3] = (x) => o.value.min_value_ = x),
11773
11773
  "model-key": "em_material_consume",
11774
11774
  mode: unref(bt).FIELD_DISPLAY,
11775
11775
  "disabled-return-type": !0,
11776
- "filter-func": (M) => M.key === "qty_required_"
11776
+ "filter-func": (x) => x.key === "qty_required_"
11777
11777
  }, null, 8, [
11778
11778
  "value",
11779
11779
  "mode",
@@ -11797,131 +11797,133 @@ var init_index_es = __esmMin((() => {
11797
11797
  当选择物料查看时不需要记录批次/SN和数量,只做查看。`;
11798
11798
  $i = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
11799
11799
  __name: "material-strategy",
11800
- props: /* @__PURE__ */ mergeModels({ showConsumePolicy: { type: Boolean } }, {
11800
+ props: /* @__PURE__ */ mergeModels({
11801
+ showConsumePolicy: { type: Boolean },
11802
+ hasBomCofig: { type: Boolean }
11803
+ }, {
11801
11804
  formState: { required: !0 },
11802
11805
  formStateModifiers: {}
11803
11806
  }),
11804
11807
  emits: ["update:formState"],
11805
11808
  setup(e, { expose: o }) {
11806
- const t = useModel(e, "formState"), a = ref(), n = [{
11807
- label: "BOM 模式",
11808
- value: "bom"
11809
- }, {
11810
- label: "记录模式",
11811
- value: "record"
11812
- }], l = computed(() => {
11813
- const c = {
11809
+ const t = e, a = useModel(e, "formState"), n = ref(), l = computed(() => {
11810
+ const u = [{
11811
+ label: "记录模式",
11812
+ value: "record"
11813
+ }];
11814
+ return t.hasBomCofig && u.unshift({
11815
+ label: "BOM 模式",
11816
+ value: "bom"
11817
+ }), u;
11818
+ }), s = computed(() => {
11819
+ const u = {
11814
11820
  material_consumption_pattern_: [{
11815
11821
  required: !0,
11816
11822
  message: "请选择物料消耗模式"
11817
11823
  }],
11818
11824
  personal_bom_enabled_: [me("自定义用料策略")]
11819
11825
  };
11820
- return t.value.personal_bom_enabled_ && (c.type_ = [{
11826
+ return a.value.personal_bom_enabled_ && (u.type_ = [{
11821
11827
  required: !0,
11822
11828
  message: "请选择上料方式"
11823
- }], t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && (c.consume_enabled_ = [me("是否消耗库存")], t.value.consume_enabled_ && (c.consume_source_config_ = [{
11829
+ }], a.value.material_consumption_pattern_ === "bom" && a.value.type_ === "by_lot" && (u.consume_enabled_ = [me("是否消耗库存")], a.value.consume_enabled_ && (u.consume_source_config_ = [{
11824
11830
  required: !0,
11825
11831
  message: "请选择物料消耗来源配置"
11826
- }], t.value.consume_source_config_ === "custom" && (c.default_warehouse_id_ = [{
11832
+ }], a.value.consume_source_config_ === "custom" && (u.default_warehouse_id_ = [{
11827
11833
  required: !0,
11828
11834
  message: "请选择默认仓库"
11829
- }]))), t.value.type_ !== "view" && (c.qty_validation_enabled_ = [me("是否启用数量校验")], t.value.qty_validation_enabled_ && (c.qty_validation_rule_ = [{
11835
+ }]))), a.value.type_ !== "view" && (u.qty_validation_enabled_ = [me("是否启用数量校验")], a.value.qty_validation_enabled_ && (u.qty_validation_rule_ = [{
11830
11836
  required: !0,
11831
11837
  message: "请选择数量校验规则"
11832
- }], t.value.qty_validation_rule_ === "bounds" && (c.max_value_ = [{
11838
+ }], a.value.qty_validation_rule_ === "bounds" && (u.max_value_ = [{
11833
11839
  required: !0,
11834
11840
  message: "请填写最大值"
11835
- }], c.min_value_ = [{
11841
+ }], u.min_value_ = [{
11836
11842
  required: !0,
11837
11843
  message: "请填写最小值"
11838
- }])))), c;
11844
+ }])))), u;
11839
11845
  });
11840
- async function s() {
11841
- var _a$value;
11842
- await ((_a$value = a.value) === null || _a$value === void 0 ? void 0 : _a$value.validate());
11846
+ async function p() {
11847
+ var _n$value8;
11848
+ await ((_n$value8 = n.value) === null || _n$value8 === void 0 ? void 0 : _n$value8.validate());
11843
11849
  }
11844
- return o({ validate: s }), (c, u) => {
11845
- const r = resolveComponent("a-select"), S = resolveComponent("a-form-item"), M = resolveComponent("a-switch"), v = resolveComponent("a-radio"), w = resolveComponent("a-radio-group"), O = resolveComponent("a-form");
11850
+ return o({ validate: p }), (u, r) => {
11851
+ const S = resolveComponent("a-select"), x = resolveComponent("a-form-item"), g = resolveComponent("a-switch"), w = resolveComponent("a-radio"), O = resolveComponent("a-radio-group"), m = resolveComponent("a-form");
11846
11852
  return openBlock(), createElementBlock("div", null, [createVNode(unref(ht), null, {
11847
- default: withCtx(() => [...u[5] || (u[5] = [createTextVNode("用料策略", -1)])]),
11853
+ default: withCtx(() => [...r[5] || (r[5] = [createTextVNode("用料策略", -1)])]),
11848
11854
  _: 1
11849
- }), createVNode(O, {
11855
+ }), createVNode(m, {
11850
11856
  ref_key: "formRef",
11851
- ref: a,
11852
- model: t.value,
11853
- rules: l.value
11857
+ ref: n,
11858
+ model: a.value,
11859
+ rules: s.value
11854
11860
  }, {
11855
- default: withCtx(() => [
11856
- createVNode(S, {
11857
- name: "material_consumption_pattern_",
11861
+ default: withCtx(() => [createVNode(x, {
11862
+ name: "material_consumption_pattern_",
11863
+ required: ""
11864
+ }, {
11865
+ label: withCtx(() => [r[6] || (r[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info: e.hasBomCofig ? Gi : "记录模式:不支持库存扣减。" }, null, 8, ["info"])]),
11866
+ default: withCtx(() => [createVNode(S, {
11867
+ value: a.value.material_consumption_pattern_,
11868
+ "onUpdate:value": r[0] || (r[0] = (d) => a.value.material_consumption_pattern_ = d),
11869
+ placeholder: "请选择",
11870
+ options: l.value
11871
+ }, null, 8, ["value", "options"])]),
11872
+ _: 1
11873
+ }), e.hasBomCofig ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(x, {
11874
+ name: "personal_bom_enabled_",
11875
+ label: "自定义用料策略"
11876
+ }, {
11877
+ default: withCtx(() => [createElementVNode("div", ji, [createVNode(g, {
11878
+ checked: a.value.personal_bom_enabled_,
11879
+ "onUpdate:checked": r[1] || (r[1] = (d) => a.value.personal_bom_enabled_ = d)
11880
+ }, null, 8, ["checked"])])]),
11881
+ _: 1
11882
+ }), a.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", Fi, [
11883
+ createVNode(x, {
11884
+ name: "type_",
11858
11885
  required: ""
11859
11886
  }, {
11860
- label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info: Gi })]),
11861
- default: withCtx(() => [createVNode(r, {
11862
- value: t.value.material_consumption_pattern_,
11863
- "onUpdate:value": u[0] || (u[0] = (m) => t.value.material_consumption_pattern_ = m),
11864
- placeholder: "请选择",
11865
- options: n
11866
- }, null, 8, ["value"])]),
11867
- _: 1
11868
- }),
11869
- createVNode(S, {
11870
- name: "personal_bom_enabled_",
11871
- label: "自定义用料策略"
11872
- }, {
11873
- default: withCtx(() => [createElementVNode("div", ji, [createVNode(M, {
11874
- checked: t.value.personal_bom_enabled_,
11875
- "onUpdate:checked": u[1] || (u[1] = (m) => t.value.personal_bom_enabled_ = m)
11876
- }, null, 8, ["checked"])])]),
11877
- _: 1
11878
- }),
11879
- t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", Fi, [
11880
- createVNode(S, {
11881
- name: "type_",
11882
- required: ""
11887
+ label: withCtx(() => [r[7] || (r[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(gt), { info: Xi })]),
11888
+ default: withCtx(() => [createVNode(O, {
11889
+ value: a.value.type_,
11890
+ "onUpdate:value": r[2] || (r[2] = (d) => a.value.type_ = d),
11891
+ name: "radioGroup1"
11883
11892
  }, {
11884
- label: withCtx(() => [u[7] || (u[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(gt), { info: Xi })]),
11885
- default: withCtx(() => [createVNode(w, {
11886
- value: t.value.type_,
11887
- "onUpdate:value": u[2] || (u[2] = (m) => t.value.type_ = m),
11888
- name: "radioGroup1"
11889
- }, {
11890
- default: withCtx(() => [
11891
- createVNode(v, { value: "view" }, {
11892
- default: withCtx(() => [...u[8] || (u[8] = [createTextVNode("仅查看", -1)])]),
11893
- _: 1
11894
- }),
11895
- createVNode(v, { value: "by_number" }, {
11896
- default: withCtx(() => [...u[9] || (u[9] = [createTextVNode("按数量上料", -1)])]),
11897
- _: 1
11898
- }),
11899
- createVNode(v, { value: "by_lot" }, {
11900
- default: withCtx(() => [...u[10] || (u[10] = [createTextVNode("按批次上料", -1)])]),
11901
- _: 1
11902
- })
11903
- ]),
11904
- _: 1
11905
- }, 8, ["value"])]),
11893
+ default: withCtx(() => [
11894
+ createVNode(w, { value: "view" }, {
11895
+ default: withCtx(() => [...r[8] || (r[8] = [createTextVNode("仅查看", -1)])]),
11896
+ _: 1
11897
+ }),
11898
+ createVNode(w, { value: "by_number" }, {
11899
+ default: withCtx(() => [...r[9] || (r[9] = [createTextVNode("按数量上料", -1)])]),
11900
+ _: 1
11901
+ }),
11902
+ createVNode(w, { value: "by_lot" }, {
11903
+ default: withCtx(() => [...r[10] || (r[10] = [createTextVNode("按批次上料", -1)])]),
11904
+ _: 1
11905
+ })
11906
+ ]),
11906
11907
  _: 1
11907
- }),
11908
- t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(ta, {
11909
- key: 0,
11910
- "form-state": t.value,
11911
- "onUpdate:formState": u[3] || (u[3] = (m) => t.value = m)
11912
- }, null, 8, ["form-state"])) : createCommentVNode("", !0),
11913
- t.value.type_ !== "view" ? (openBlock(), createBlock(aa, {
11914
- key: 1,
11915
- "form-state": t.value,
11916
- "onUpdate:formState": u[4] || (u[4] = (m) => t.value = m)
11917
- }, null, 8, ["form-state"])) : createCommentVNode("", !0)
11918
- ])) : createCommentVNode("", !0)
11919
- ]),
11908
+ }, 8, ["value"])]),
11909
+ _: 1
11910
+ }),
11911
+ a.value.material_consumption_pattern_ === "bom" && a.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(ta, {
11912
+ key: 0,
11913
+ "form-state": a.value,
11914
+ "onUpdate:formState": r[3] || (r[3] = (d) => a.value = d)
11915
+ }, null, 8, ["form-state"])) : createCommentVNode("", !0),
11916
+ a.value.type_ !== "view" ? (openBlock(), createBlock(aa, {
11917
+ key: 1,
11918
+ "form-state": a.value,
11919
+ "onUpdate:formState": r[4] || (r[4] = (d) => a.value = d)
11920
+ }, null, 8, ["form-state"])) : createCommentVNode("", !0)
11921
+ ])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)]),
11920
11922
  _: 1
11921
11923
  }, 8, ["model", "rules"])]);
11922
11924
  };
11923
11925
  }
11924
- }), [["__scopeId", "data-v-7b5cf648"]]);
11926
+ }), [["__scopeId", "data-v-039aa529"]]);
11925
11927
  Zi = { key: 0 };
11926
11928
  Qi = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
11927
11929
  __name: "modal",
@@ -11939,7 +11941,7 @@ var init_index_es = __esmMin((() => {
11939
11941
  required: !0,
11940
11942
  message: "请选择对象字段"
11941
11943
  }] };
11942
- function c() {
11944
+ function p() {
11943
11945
  return {
11944
11946
  objectField: void 0,
11945
11947
  objectFieldName: void 0,
@@ -11962,7 +11964,7 @@ var init_index_es = __esmMin((() => {
11962
11964
  scanParamType: yt.Lot
11963
11965
  };
11964
11966
  }
11965
- const u = ref(c()), r = ref({
11967
+ const u = ref(p()), r = ref({
11966
11968
  border: !0,
11967
11969
  round: !0,
11968
11970
  showHeaderOverflow: !0,
@@ -11986,7 +11988,7 @@ var init_index_es = __esmMin((() => {
11986
11988
  title: "默认值",
11987
11989
  slots: { default: "value_default" }
11988
11990
  }]
11989
- }), S = computed(() => !!t.bizOptions.editingItem), M = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), v = computed(() => t.bizOptions.objectFields.filter((b) => {
11991
+ }), S = computed(() => !!t.bizOptions.editingItem), x = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), g = computed(() => t.bizOptions.objectFields.filter((b) => {
11990
11992
  var _t$bizOptions$configu, _t$bizOptions$configu2;
11991
11993
  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));
11992
11994
  }).map((b) => ({
@@ -12016,7 +12018,7 @@ var init_index_es = __esmMin((() => {
12016
12018
  };
12017
12019
  watch(() => t.bizOptions.editingItem, (k) => {
12018
12020
  if (!k) return;
12019
- const b = c(), V = cloneDeep(k);
12021
+ const b = p(), V = cloneDeep(k);
12020
12022
  u.value = {
12021
12023
  ...b,
12022
12024
  ...V,
@@ -12032,8 +12034,8 @@ var init_index_es = __esmMin((() => {
12032
12034
  }, { immediate: !0 });
12033
12035
  const f = async () => {
12034
12036
  try {
12035
- var _n$value8, _l$value11;
12036
- await Promise.all([(_n$value8 = n.value) === null || _n$value8 === void 0 ? void 0 : _n$value8.validate(), (_l$value11 = l.value) === null || _l$value11 === void 0 ? void 0 : _l$value11.validate()]);
12037
+ var _n$value9, _l$value11;
12038
+ await Promise.all([(_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate(), (_l$value11 = l.value) === null || _l$value11 === void 0 ? void 0 : _l$value11.validate()]);
12037
12039
  } catch {
12038
12040
  return;
12039
12041
  }
@@ -12046,7 +12048,7 @@ var init_index_es = __esmMin((() => {
12046
12048
  visible: e.modalVisible,
12047
12049
  onCancel: e.modalInst.cancel,
12048
12050
  onOk: f,
12049
- onAfterClose: b[4] || (b[4] = (x) => a("afterClose"))
12051
+ onAfterClose: b[4] || (b[4] = (M) => a("afterClose"))
12050
12052
  }), {
12051
12053
  default: withCtx(() => [
12052
12054
  createVNode(D, {
@@ -12063,9 +12065,9 @@ var init_index_es = __esmMin((() => {
12063
12065
  }, {
12064
12066
  default: withCtx(() => [createVNode(V, {
12065
12067
  value: u.value.objectField,
12066
- "onUpdate:value": b[0] || (b[0] = (x) => u.value.objectField = x),
12068
+ "onUpdate:value": b[0] || (b[0] = (M) => u.value.objectField = M),
12067
12069
  placeholder: "请选择",
12068
- options: v.value,
12070
+ options: g.value,
12069
12071
  disabled: S.value
12070
12072
  }, null, 8, [
12071
12073
  "value",
@@ -12083,11 +12085,11 @@ var init_index_es = __esmMin((() => {
12083
12085
  class: "object-table",
12084
12086
  data: O.value
12085
12087
  }, r.value), {
12086
- value_default: withCtx(({ row: x }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12088
+ value_default: withCtx(({ row: M }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
12087
12089
  key: 0,
12088
- field: x.field,
12089
- modelValue: u.value.values[x.key],
12090
- "onUpdate:modelValue": (y) => m(x.key, y)
12090
+ field: M.field,
12091
+ modelValue: u.value.values[M.key],
12092
+ "onUpdate:modelValue": (y) => m(M.key, y)
12091
12093
  }, null, 8, [
12092
12094
  "field",
12093
12095
  "modelValue",
@@ -12110,7 +12112,7 @@ var init_index_es = __esmMin((() => {
12110
12112
  default: withCtx(() => [createVNode(A, {
12111
12113
  size: "small",
12112
12114
  checked: !u.value.disableBarcodeParsing,
12113
- onChange: b[1] || (b[1] = (x) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
12115
+ onChange: b[1] || (b[1] = (M) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
12114
12116
  }, null, 8, ["checked"])]),
12115
12117
  _: 1
12116
12118
  }), u.value.disableBarcodeParsing ? (openBlock(), createBlock(U, {
@@ -12124,14 +12126,14 @@ var init_index_es = __esmMin((() => {
12124
12126
  }, {
12125
12127
  default: withCtx(() => [createVNode(V, {
12126
12128
  value: u.value.scanParamType,
12127
- "onUpdate:value": b[2] || (b[2] = (x) => u.value.scanParamType = x),
12129
+ "onUpdate:value": b[2] || (b[2] = (M) => u.value.scanParamType = M),
12128
12130
  placeholder: k.$t("sys.chooseText")
12129
12131
  }, {
12130
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(yt)), (x) => (openBlock(), createBlock(R, {
12131
- key: x,
12132
- value: x
12132
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(yt)), (M) => (openBlock(), createBlock(R, {
12133
+ key: M,
12134
+ value: M
12133
12135
  }, {
12134
- default: withCtx(() => [createTextVNode(toDisplayString(k.$t(`sys.ScanParamType.${x}`)), 1)]),
12136
+ default: withCtx(() => [createTextVNode(toDisplayString(k.$t(`sys.ScanParamType.${M}`)), 1)]),
12135
12137
  _: 2
12136
12138
  }, 1032, ["value"]))), 128))]),
12137
12139
  _: 1
@@ -12140,11 +12142,11 @@ var init_index_es = __esmMin((() => {
12140
12142
  }, 8, ["rules"])) : (openBlock(), createBlock(N, {
12141
12143
  key: 0,
12142
12144
  block: "",
12143
- ghost: !M.value,
12145
+ ghost: !x.value,
12144
12146
  type: "primary",
12145
12147
  onClick: d
12146
12148
  }, {
12147
- default: withCtx(() => [createTextVNode(toDisplayString(M.value ? "编辑" : "添加") + "规则 ", 1)]),
12149
+ default: withCtx(() => [createTextVNode(toDisplayString(x.value ? "编辑" : "添加") + "规则 ", 1)]),
12148
12150
  _: 1
12149
12151
  }, 8, ["ghost"]))]),
12150
12152
  _: 1
@@ -12153,7 +12155,7 @@ var init_index_es = __esmMin((() => {
12153
12155
  ref_key: "materialStrategyRef",
12154
12156
  ref: l,
12155
12157
  "form-state": u.value,
12156
- "onUpdate:formState": b[3] || (b[3] = (x) => u.value = x),
12158
+ "onUpdate:formState": b[3] || (b[3] = (M) => u.value = M),
12157
12159
  showConsumePolicy: e.bizOptions.showConsumePolicy,
12158
12160
  hasBomCofig: e.bizOptions.showMaterialStrategy
12159
12161
  }, null, 8, [
@@ -12231,7 +12233,7 @@ var init_index_es = __esmMin((() => {
12231
12233
  formFields: [...f.formFields ?? []]
12232
12234
  }));
12233
12235
  }
12234
- const s = ref(), c = ref(a.defaultExpanded), u = ref([]), r = reactive({
12236
+ const s = ref(), p = ref(a.defaultExpanded), u = ref([]), r = reactive({
12235
12237
  parsingRuleId: a.parsingRuleId,
12236
12238
  fillMapArr: l(a.fillMapArr)
12237
12239
  });
@@ -12245,7 +12247,7 @@ var init_index_es = __esmMin((() => {
12245
12247
  })));
12246
12248
  const S = () => {
12247
12249
  console.log("change", r.fillMapArr), n("update:fillMapArr", l(r.fillMapArr));
12248
- }, M = async (d) => {
12250
+ }, x = async (d) => {
12249
12251
  if (!d) {
12250
12252
  u.value = [], n("ruleConfigChange", void 0);
12251
12253
  return;
@@ -12259,10 +12261,10 @@ var init_index_es = __esmMin((() => {
12259
12261
  label: k.alias ?? $t(`sys.edhr.labelConfigFields.${k.type}`),
12260
12262
  value: k.key
12261
12263
  })), n("ruleConfigChange", f);
12262
- }, v = (d) => {
12264
+ }, g = (d) => {
12263
12265
  if (a.disabled) return;
12264
12266
  const f = d ?? void 0;
12265
- f !== r.parsingRuleId && (r.parsingRuleId = f, r.fillMapArr = [], n("update:parsingRuleId", f), n("update:fillMapArr", []), M(f));
12267
+ f !== r.parsingRuleId && (r.parsingRuleId = f, r.fillMapArr = [], n("update:parsingRuleId", f), n("update:fillMapArr", []), x(f));
12266
12268
  }, w = () => {
12267
12269
  a.disabled || (r.fillMapArr.push({ formFields: [] }), S());
12268
12270
  }, O = (d) => {
@@ -12272,7 +12274,7 @@ var init_index_es = __esmMin((() => {
12272
12274
  return k ? f.label.toLowerCase().includes(k) || String(f.value ?? "").toLowerCase().includes(k) : !0;
12273
12275
  };
12274
12276
  return onMounted(() => {
12275
- r.parsingRuleId && M(r.parsingRuleId);
12277
+ r.parsingRuleId && x(r.parsingRuleId);
12276
12278
  }), o({ validate: () => {
12277
12279
  var _s$value3;
12278
12280
  return (_s$value3 = s.value) === null || _s$value3 === void 0 ? void 0 : _s$value3.validate();
@@ -12296,12 +12298,12 @@ var init_index_es = __esmMin((() => {
12296
12298
  disabled: e.disabled,
12297
12299
  disabledParent: !1,
12298
12300
  "parent-to-default": !1,
12299
- "onUpdate:modelValue": v
12301
+ "onUpdate:modelValue": g
12300
12302
  }, null, 8, ["model-value", "disabled"]), e.collapsible ? (openBlock(), createElementBlock("div", {
12301
12303
  key: 0,
12302
12304
  class: "field-mapping__expand primary-gct",
12303
- onClick: f[0] || (f[0] = (A) => c.value = !c.value)
12304
- }, [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)])]),
12305
+ onClick: f[0] || (f[0] = (A) => p.value = !p.value)
12306
+ }, [createTextVNode(toDisplayString(p.value ? d.$t("sys.collapseConfig") : d.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", p.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
12305
12307
  _: 1
12306
12308
  }, 8, ["label"]), withDirectives(createElementVNode("div", null, [
12307
12309
  e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", lr, [createVNode(b, {
@@ -12400,7 +12402,7 @@ var init_index_es = __esmMin((() => {
12400
12402
  _: 1
12401
12403
  }))
12402
12404
  ])
12403
- ], 512), [[vShow, !e.collapsible || c.value]])]),
12405
+ ], 512), [[vShow, !e.collapsible || p.value]])]),
12404
12406
  _: 1
12405
12407
  }, 8, ["model"])], 2);
12406
12408
  };
@@ -12427,50 +12429,50 @@ var init_index_es = __esmMin((() => {
12427
12429
  const t = e, a = o, n = ref("add"), l = computed(() => t.bizOptions.showScanAdjustBtn), s = ref({
12428
12430
  parsingRuleId: (_t$bizOptions$scanRul = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul === void 0 ? void 0 : _t$bizOptions$scanRul.parsingRuleId,
12429
12431
  fillMapArr: cloneDeep((_t$bizOptions$scanRul2 = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul2 === void 0 ? void 0 : _t$bizOptions$scanRul2.fillMapArr) ?? []
12430
- }), c = ref();
12431
- function u(M) {
12432
- n.value = M;
12432
+ }), p = ref();
12433
+ function u(x) {
12434
+ n.value = x;
12433
12435
  }
12434
- const r = (M) => {
12435
- c.value = M;
12436
+ const r = (x) => {
12437
+ p.value = x;
12436
12438
  }, S = async () => {
12437
- if (!c.value && !t.bizOptions.scanParam) {
12439
+ if (!p.value && !t.bizOptions.scanParam) {
12438
12440
  message.error($t("sys.edhr.mcTable.scanRuleNotFound"));
12439
12441
  return;
12440
12442
  }
12441
- let M, v = {};
12443
+ let x, g = {};
12442
12444
  const w = s.value.fillMapArr;
12443
- 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 && (v = or(M, w));
12445
+ p.value ? x = tr(s.value.str, JSON.stringify(p.value)) : t.bizOptions.scanParam && (x = { [t.bizOptions.scanParam]: s.value.str }), w !== null && w !== void 0 && w.length && x && (g = or(x, w));
12444
12446
  const O = {
12445
12447
  str: s.value.str,
12446
- parsedValue: M,
12447
- transformedData: v,
12448
+ parsedValue: x,
12449
+ transformedData: g,
12448
12450
  type: t.bizOptions.showScanAdjustBtn ? n.value : void 0
12449
12451
  }, m = await t.bizOptions.onScan(O);
12450
12452
  s.value.str = "", m && t.modalInst.cancel();
12451
12453
  };
12452
- return (M, v) => {
12454
+ return (x, g) => {
12453
12455
  const w = resolveComponent("a-input"), O = resolveComponent("a-form-item"), m = resolveComponent("a-form"), d = resolveComponent("a-divider");
12454
12456
  return openBlock(), createBlock(Ze, mergeProps(t.modalProps, {
12455
12457
  class: "gct-form-base-modal-common-scan",
12456
12458
  visible: t.modalVisible,
12457
- title: t.bizOptions.title || M.$t("sys.edhr.mcTable.scanEntry"),
12459
+ title: t.bizOptions.title || x.$t("sys.edhr.mcTable.scanEntry"),
12458
12460
  width: 460,
12459
12461
  mask: !1,
12460
12462
  "mask-closable": !1,
12461
12463
  footer: !1,
12462
12464
  draggable: "",
12463
12465
  onCancel: t.modalInst.cancel,
12464
- onAfterClose: v[5] || (v[5] = (f) => a("afterClose"))
12466
+ onAfterClose: g[5] || (g[5] = (f) => a("afterClose"))
12465
12467
  }), {
12466
12468
  default: withCtx(() => [createElementVNode("div", hr, [
12467
12469
  l.value ? (openBlock(), createElementBlock("div", yr, [createElementVNode("div", {
12468
12470
  class: normalizeClass(["bg-radio-item", [n.value === "add" && "active"]]),
12469
- onClick: v[0] || (v[0] = (f) => u("add"))
12470
- }, [...v[6] || (v[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
12471
+ onClick: g[0] || (g[0] = (f) => u("add"))
12472
+ }, [...g[6] || (g[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
12471
12473
  class: normalizeClass(["bg-radio-item", [n.value === "minus" && "active"]]),
12472
- onClick: v[1] || (v[1] = (f) => u("minus"))
12473
- }, [...v[7] || (v[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
12474
+ onClick: g[1] || (g[1] = (f) => u("minus"))
12475
+ }, [...g[7] || (g[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
12474
12476
  createVNode(m, {
12475
12477
  ref: "formRef",
12476
12478
  model: s.value,
@@ -12482,9 +12484,9 @@ var init_index_es = __esmMin((() => {
12482
12484
  }, {
12483
12485
  default: withCtx(() => [createVNode(w, {
12484
12486
  value: s.value.str,
12485
- "onUpdate:value": v[2] || (v[2] = (f) => s.value.str = f),
12487
+ "onUpdate:value": g[2] || (g[2] = (f) => s.value.str = f),
12486
12488
  size: "large",
12487
- placeholder: M.$t("sys.edhr.mcTable.pleaseScanEntry"),
12489
+ placeholder: x.$t("sys.edhr.mcTable.pleaseScanEntry"),
12488
12490
  onKeyup: withKeys(S, ["enter"])
12489
12491
  }, {
12490
12492
  prefix: withCtx(() => [createElementVNode("img", {
@@ -12505,9 +12507,9 @@ var init_index_es = __esmMin((() => {
12505
12507
  } }),
12506
12508
  createVNode(unref(na), {
12507
12509
  "parsing-rule-id": s.value.parsingRuleId,
12508
- "onUpdate:parsingRuleId": v[3] || (v[3] = (f) => s.value.parsingRuleId = f),
12510
+ "onUpdate:parsingRuleId": g[3] || (g[3] = (f) => s.value.parsingRuleId = f),
12509
12511
  "fill-map-arr": s.value.fillMapArr,
12510
- "onUpdate:fillMapArr": v[4] || (v[4] = (f) => s.value.fillMapArr = f),
12512
+ "onUpdate:fillMapArr": g[4] || (g[4] = (f) => s.value.fillMapArr = f),
12511
12513
  collapsible: "",
12512
12514
  "form-field-options": t.bizOptions.formFieldOptions,
12513
12515
  "form-fields-label": t.bizOptions.formFieldsLabel,
@@ -12575,7 +12577,7 @@ var init_index_es = __esmMin((() => {
12575
12577
  function s(m, d) {
12576
12578
  return !m || !d ? !1 : m === d ? !0 : l(m) === l(d);
12577
12579
  }
12578
- function c(m, d) {
12580
+ function p(m, d) {
12579
12581
  var _o$hasIds;
12580
12582
  const f = d ?? m.product_id_;
12581
12583
  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") : "" : "";
@@ -12585,7 +12587,7 @@ var init_index_es = __esmMin((() => {
12585
12587
  required: !0,
12586
12588
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12587
12589
  }, { validator: async (d, f) => {
12588
- const k = c(m, f);
12590
+ const k = p(m, f);
12589
12591
  if (k) return Promise.reject(k);
12590
12592
  } }];
12591
12593
  }
@@ -12610,7 +12612,7 @@ var init_index_es = __esmMin((() => {
12610
12612
  product_spec_: void 0
12611
12613
  };
12612
12614
  }
12613
- function M() {
12615
+ function x() {
12614
12616
  var _o$form;
12615
12617
  const m = (t.value.substitute_material_entries_ ?? []).map((d, f) => [
12616
12618
  "substitute_material_entries_",
@@ -12619,8 +12621,8 @@ var init_index_es = __esmMin((() => {
12619
12621
  ]);
12620
12622
  if (m.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(m).catch(() => {});
12621
12623
  }
12622
- function v(m, d, f) {
12623
- Object.assign(m, S(d ?? null, f)), nextTick(() => M());
12624
+ function g(m, d, f) {
12625
+ Object.assign(m, S(d ?? null, f)), nextTick(() => x());
12624
12626
  }
12625
12627
  function w() {
12626
12628
  t.value.substitute_material_entries_.push({
@@ -12634,10 +12636,10 @@ var init_index_es = __esmMin((() => {
12634
12636
  });
12635
12637
  }
12636
12638
  function O(m) {
12637
- t.value.substitute_material_entries_.splice(m, 1), nextTick(() => M());
12639
+ t.value.substitute_material_entries_.splice(m, 1), nextTick(() => x());
12638
12640
  }
12639
12641
  return watch(() => t.value.product_id_, () => {
12640
- nextTick(() => M());
12642
+ nextTick(() => x());
12641
12643
  }), (m, d) => {
12642
12644
  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");
12643
12645
  return openBlock(), createElementBlock(Fragment, null, [createVNode(b, {
@@ -12696,7 +12698,7 @@ var init_index_es = __esmMin((() => {
12696
12698
  locale: { emptyText: m.$t("sys.noData") }
12697
12699
  }, {
12698
12700
  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))]),
12699
- 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, {
12701
+ bodyCell: withCtx(({ column: R, record: M, index: y }) => [R.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(y + 1), 1)], 64)) : R.key === "product_id_" ? (openBlock(), createBlock(b, {
12700
12702
  key: 1,
12701
12703
  class: "substitute-policy-item__table-item",
12702
12704
  name: [
@@ -12704,17 +12706,17 @@ var init_index_es = __esmMin((() => {
12704
12706
  y,
12705
12707
  "product_id_"
12706
12708
  ],
12707
- rules: u(x)
12709
+ rules: u(M)
12708
12710
  }, {
12709
12711
  default: withCtx(() => [createVNode(unref(Ct), {
12710
- "model-value": x.product_id_ || void 0,
12712
+ "model-value": M.product_id_ || void 0,
12711
12713
  "model-key": "em_product",
12712
12714
  placeholder: m.$t("sys.chooseText"),
12713
12715
  "parent-to-default": !1,
12714
12716
  "disabled-parent": !1,
12715
12717
  "show-search": !0,
12716
12718
  "query-data": { "product_type_.ne": "finishedProduct" },
12717
- onChange: (B, K) => v(x, B, K)
12719
+ onChange: (B, K) => g(M, B, K)
12718
12720
  }, null, 8, [
12719
12721
  "model-value",
12720
12722
  "placeholder",
@@ -12783,7 +12785,7 @@ var init_index_es = __esmMin((() => {
12783
12785
  force_loading_enabled_: !0
12784
12786
  };
12785
12787
  }
12786
- function c(A) {
12788
+ function p(A) {
12787
12789
  return (A ?? []).map((N) => ({
12788
12790
  ...cloneDeep(N),
12789
12791
  __key: Oe(8)
@@ -12798,7 +12800,7 @@ var init_index_es = __esmMin((() => {
12798
12800
  let r = reactive({
12799
12801
  ...s(),
12800
12802
  ...t.bizOptions.data ? cloneDeep(t.bizOptions.data) : {},
12801
- substitute_material_entries_: c((_t$bizOptions$data = t.bizOptions.data) === null || _t$bizOptions$data === void 0 ? void 0 : _t$bizOptions$data.substitute_material_entries_),
12803
+ substitute_material_entries_: p((_t$bizOptions$data = t.bizOptions.data) === null || _t$bizOptions$data === void 0 ? void 0 : _t$bizOptions$data.substitute_material_entries_),
12802
12804
  consume_storage_entries_: u((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
12803
12805
  });
12804
12806
  const S = computed(() => {
@@ -12807,8 +12809,8 @@ var init_index_es = __esmMin((() => {
12807
12809
  required: !0,
12808
12810
  message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
12809
12811
  }, { validator: async (N, R) => {
12810
- const x = d(R);
12811
- if (x) return Promise.reject(x);
12812
+ const M = d(R);
12813
+ if (M) return Promise.reject(M);
12812
12814
  } }],
12813
12815
  qty_required_: [{
12814
12816
  required: !0,
@@ -12843,19 +12845,19 @@ var init_index_es = __esmMin((() => {
12843
12845
  message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
12844
12846
  }])), A;
12845
12847
  });
12846
- function M(A) {
12847
- 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 : "";
12848
+ function x(A) {
12849
+ const N = (A === null || A === void 0 ? void 0 : A._info) ?? {}, R = ((A === null || A === void 0 ? void 0 : A.displayLabel) || "").split(":"), M = R.length > 1 ? R[0] : typeof (A === null || A === void 0 ? void 0 : A.title) == "string" ? A.title : "";
12848
12850
  return {
12849
12851
  product_code_: N.code_ ?? "",
12850
- product_name_: N.name_ ?? x ?? "",
12852
+ product_name_: N.name_ ?? M ?? "",
12851
12853
  product_version_: N.version_ ?? N.__LABEL__ ?? "",
12852
12854
  product_spec_: N.spec_ ?? N.specification_ ?? ""
12853
12855
  };
12854
12856
  }
12855
- function v(A, N) {
12857
+ function g(A, N) {
12856
12858
  return A ? {
12857
12859
  product_id_: A,
12858
- ...M(N)
12860
+ ...x(N)
12859
12861
  } : {
12860
12862
  product_id_: void 0,
12861
12863
  product_code_: void 0,
@@ -12878,29 +12880,29 @@ var init_index_es = __esmMin((() => {
12878
12880
  return N && m(N) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
12879
12881
  }
12880
12882
  function f(A, N) {
12881
- Object.assign(r, v(A ?? null, N));
12883
+ Object.assign(r, g(A ?? null, N));
12882
12884
  }
12883
12885
  function k(A = []) {
12884
12886
  return A.map((N) => {
12885
- const { __key: R, ...x } = N;
12887
+ const { __key: R, ...M } = N;
12886
12888
  return {
12887
- ...x,
12888
- qty_required_: r.qty_required_ ?? x.qty_required_ ?? 0
12889
+ ...M,
12890
+ qty_required_: r.qty_required_ ?? M.qty_required_ ?? 0
12889
12891
  };
12890
12892
  });
12891
12893
  }
12892
12894
  function b(A = []) {
12893
12895
  return A.map((N) => {
12894
- const { __key: R, ...x } = N;
12895
- return x;
12896
+ const { __key: R, ...M } = N;
12897
+ return M;
12896
12898
  });
12897
12899
  }
12898
12900
  function V(A) {
12899
12901
  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_ = [];
12900
12902
  }
12901
12903
  function U() {
12902
- const { substitute_material_entries_: N = [], consume_storage_entries_: R = [], ...x } = cloneDeep(r), y = {
12903
- ...x,
12904
+ const { substitute_material_entries_: N = [], consume_storage_entries_: R = [], ...M } = cloneDeep(r), y = {
12905
+ ...M,
12904
12906
  substitute_material_entries_: [],
12905
12907
  consume_storage_entries_: []
12906
12908
  };
@@ -12921,7 +12923,7 @@ var init_index_es = __esmMin((() => {
12921
12923
  t.modalInst.confirm(U());
12922
12924
  };
12923
12925
  return (A, N) => {
12924
- 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");
12926
+ const R = resolveComponent("a-form-item"), M = 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");
12925
12927
  return openBlock(), createBlock(Ze, mergeProps(t.modalProps, {
12926
12928
  class: "gct-form-base-modal-bom-entry-modal",
12927
12929
  visible: t.modalVisible,
@@ -12945,7 +12947,7 @@ var init_index_es = __esmMin((() => {
12945
12947
  default: withCtx(() => [
12946
12948
  createElementVNode("div", Rr, toDisplayString(A.$t("sys.appDesigner.basicInformation")), 1),
12947
12949
  createVNode(B, { gutter: 16 }, {
12948
- default: withCtx(() => [createVNode(x, { span: 12 }, {
12950
+ default: withCtx(() => [createVNode(M, { span: 12 }, {
12949
12951
  default: withCtx(() => [createVNode(R, {
12950
12952
  label: A.$t("sys.material"),
12951
12953
  name: "product_id_",
@@ -12970,7 +12972,7 @@ var init_index_es = __esmMin((() => {
12970
12972
  "help"
12971
12973
  ])]),
12972
12974
  _: 1
12973
- }), createVNode(x, { span: 12 }, {
12975
+ }), createVNode(M, { span: 12 }, {
12974
12976
  default: withCtx(() => [createVNode(R, {
12975
12977
  label: A.$t("sys.edhr.unitQty"),
12976
12978
  name: "qty_required_",
@@ -13049,7 +13051,7 @@ var init_index_es = __esmMin((() => {
13049
13051
  }, 8, ["value"])]),
13050
13052
  _: 1
13051
13053
  }, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Ar, [createVNode(B, { gutter: 16 }, {
13052
- default: withCtx(() => [createVNode(x, { span: 12 }, {
13054
+ default: withCtx(() => [createVNode(M, { span: 12 }, {
13053
13055
  default: withCtx(() => [createVNode(R, {
13054
13056
  label: A.$t("sys.edhr.mcTable.lotMixingTimes"),
13055
13057
  name: "lot_mixing_times_",
@@ -13126,7 +13128,7 @@ var init_index_es = __esmMin((() => {
13126
13128
  const t = e, a = o, n = ref(), l = reactive({
13127
13129
  parsingRuleId: (_t$bizOptions$config = t.bizOptions.config) === null || _t$bizOptions$config === void 0 ? void 0 : _t$bizOptions$config.parsingRuleId,
13128
13130
  fillMapArr: cloneDeep((_t$bizOptions$config2 = t.bizOptions.config) === null || _t$bizOptions$config2 === void 0 ? void 0 : _t$bizOptions$config2.fillMapArr) ?? []
13129
- }), s = computed(() => t.bizOptions.title ? t.bizOptions.title : (t.bizOptions.config ? $t("sys.edit") : $t("sys.add")) + $t("sys.onlineForm.barcodeParsing")), c = computed(() => ({
13131
+ }), s = computed(() => t.bizOptions.title ? t.bizOptions.title : (t.bizOptions.config ? $t("sys.edit") : $t("sys.add")) + $t("sys.onlineForm.barcodeParsing")), p = computed(() => ({
13130
13132
  ...t.modalProps,
13131
13133
  ...t.bizOptions.readonly ? { okButtonProps: { disabled: !0 } } : {}
13132
13134
  }));
@@ -13136,16 +13138,16 @@ var init_index_es = __esmMin((() => {
13136
13138
  const r = async () => {
13137
13139
  if (t.bizOptions.readonly) return;
13138
13140
  try {
13139
- var _n$value9;
13140
- const M = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
13141
- M && await M();
13141
+ var _n$value10;
13142
+ const x = (_n$value10 = n.value) === null || _n$value10 === void 0 ? void 0 : _n$value10.validate;
13143
+ x && await x();
13142
13144
  } catch {
13143
13145
  return;
13144
13146
  }
13145
13147
  const S = u() ? void 0 : cloneDeep(toRaw(l));
13146
13148
  t.modalInst.confirm(S);
13147
13149
  };
13148
- return (S, M) => (openBlock(), createBlock(Ze, mergeProps(c.value, {
13150
+ return (S, x) => (openBlock(), createBlock(Ze, mergeProps(p.value, {
13149
13151
  class: "gct-form-base-modal-parse-rule",
13150
13152
  visible: t.modalVisible,
13151
13153
  title: s.value,
@@ -13153,7 +13155,7 @@ var init_index_es = __esmMin((() => {
13153
13155
  draggable: "",
13154
13156
  onCancel: t.modalInst.cancel,
13155
13157
  onOk: r,
13156
- onAfterClose: M[2] || (M[2] = (v) => a("afterClose"))
13158
+ onAfterClose: x[2] || (x[2] = (g) => a("afterClose"))
13157
13159
  }), {
13158
13160
  default: withCtx(() => {
13159
13161
  var _e$bizOptions;
@@ -13161,9 +13163,9 @@ var init_index_es = __esmMin((() => {
13161
13163
  ref_key: "fieldMappingRef",
13162
13164
  ref: n,
13163
13165
  "parsing-rule-id": l.parsingRuleId,
13164
- "onUpdate:parsingRuleId": M[0] || (M[0] = (v) => l.parsingRuleId = v),
13166
+ "onUpdate:parsingRuleId": x[0] || (x[0] = (g) => l.parsingRuleId = g),
13165
13167
  "fill-map-arr": l.fillMapArr,
13166
- "onUpdate:fillMapArr": M[1] || (M[1] = (v) => l.fillMapArr = v),
13168
+ "onUpdate:fillMapArr": x[1] || (x[1] = (g) => l.fillMapArr = g),
13167
13169
  bordered: "",
13168
13170
  "tip-placement": "before",
13169
13171
  "rule-tip": t.bizOptions.ruleTip,
@@ -13211,17 +13213,17 @@ var init_index_es = __esmMin((() => {
13211
13213
  title: "物料名称",
13212
13214
  showOverflow: "tooltip",
13213
13215
  minWidth: 140,
13214
- formatter({ row: v }) {
13215
- return v.materialName || v.productId || "";
13216
+ formatter({ row: g }) {
13217
+ return g.materialName || g.productId || "";
13216
13218
  }
13217
13219
  }, {
13218
13220
  field: "materialNo",
13219
13221
  title: "物料批次",
13220
13222
  showOverflow: "tooltip",
13221
13223
  minWidth: 160
13222
- }], n = e, l = o, s = ref(), c = computed(() => (n.bizOptions.rows ?? []).map((v, w) => ({
13223
- ...v,
13224
- _rowKey: `${v.materialId ?? ""}_${v.productionIdentificationId ?? ""}_${w}`
13224
+ }], n = e, l = o, s = ref(), p = computed(() => (n.bizOptions.rows ?? []).map((g, w) => ({
13225
+ ...g,
13226
+ _rowKey: `${g.materialId ?? ""}_${g.productionIdentificationId ?? ""}_${w}`
13225
13227
  }))), u = computed(() => {
13226
13228
  var _n$bizOptions$columns;
13227
13229
  return {
@@ -13235,25 +13237,25 @@ var init_index_es = __esmMin((() => {
13235
13237
  trigger: "row",
13236
13238
  highlight: !0
13237
13239
  },
13238
- columns: [t, ...((_n$bizOptions$columns = n.bizOptions.columns) === null || _n$bizOptions$columns === void 0 ? void 0 : _n$bizOptions$columns.filter((v) => v.type !== "radio")) ?? a]
13240
+ 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]
13239
13241
  };
13240
- }), r = { radioChange({ row: v }) {
13241
- s.value = v;
13242
+ }), r = { radioChange({ row: g }) {
13243
+ s.value = g;
13242
13244
  } };
13243
- async function S(v) {
13245
+ async function S(g) {
13244
13246
  const { data: w = {}, dict: O = {} } = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
13245
13247
  modelCategory: "entity",
13246
13248
  modelKey: "em_production_identification_lock_record",
13247
13249
  bsKey: "biz_get_one_lock_record"
13248
- }, {}, { production_identification_id_: v });
13250
+ }, {}, { production_identification_id_: g });
13249
13251
  return `该物料批次已被锁定;锁定人:${O.lock_user_id_[w.lock_user_id_]};锁定原因:${w.lock_reason_}`;
13250
13252
  }
13251
- const M = async () => {
13253
+ const x = async () => {
13252
13254
  if (!s.value) {
13253
13255
  message.error("请选择一条数据");
13254
13256
  return;
13255
13257
  }
13256
- const { _rowKey: v, productionIdentificationIsLocked: w, productionIdentificationId: O, ...m } = s.value;
13258
+ const { _rowKey: g, productionIdentificationIsLocked: w, productionIdentificationId: O, ...m } = s.value;
13257
13259
  if (w) {
13258
13260
  const d = await S(O);
13259
13261
  message.error(d);
@@ -13261,19 +13263,19 @@ var init_index_es = __esmMin((() => {
13261
13263
  }
13262
13264
  n.modalInst.confirm(m);
13263
13265
  };
13264
- return (v, w) => (openBlock(), createBlock(Ze, mergeProps(n.modalProps, {
13266
+ return (g, w) => (openBlock(), createBlock(Ze, mergeProps(n.modalProps, {
13265
13267
  class: "gct-form-base-modal-scan-multi-rows",
13266
13268
  visible: n.modalVisible,
13267
13269
  title: "选择物料",
13268
13270
  width: 800,
13269
13271
  fullscreen: !1,
13270
13272
  onCancel: n.modalInst.cancel,
13271
- onOk: M,
13273
+ onOk: x,
13272
13274
  onAfterClose: w[0] || (w[0] = (O) => l("afterClose"))
13273
13275
  }), {
13274
13276
  default: withCtx(() => [createElementVNode("div", Hr, [createVNode(unref(VxeGrid), mergeProps({
13275
13277
  class: "scan-multi-rows-modal__grid default vxetable",
13276
- data: c.value,
13278
+ data: p.value,
13277
13279
  "max-height": "420px"
13278
13280
  }, u.value, toHandlers(r)), null, 16, ["data"])])]),
13279
13281
  _: 1
@@ -13493,14 +13495,14 @@ var init_index_es = __esmMin((() => {
13493
13495
  open(o, t, a = {}) {
13494
13496
  const n = Dr[o];
13495
13497
  if (!n) return Promise.reject(/* @__PURE__ */ new Error(`[FormBaseModal] 未找到弹框组件:${String(o)}`));
13496
- const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }), c = {
13498
+ const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }), p = {
13497
13499
  ...a,
13498
13500
  zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
13499
13501
  };
13500
13502
  return new Promise((u, r) => {
13501
- let S = !1, M = !1, v = !1, w;
13503
+ let S = !1, x = !1, g = !1, w;
13502
13504
  const O = (b) => {
13503
- S || (S = !0, M = !0, s.visible = !1, u(b));
13505
+ S || (S = !0, x = !0, s.visible = !1, u(b));
13504
13506
  }, m = {
13505
13507
  id: l,
13506
13508
  confirm(b) {
@@ -13516,8 +13518,8 @@ var init_index_es = __esmMin((() => {
13516
13518
  });
13517
13519
  }
13518
13520
  }, d = async () => {
13519
- if (v) return;
13520
- v = !0, this.modalMap.delete(l);
13521
+ if (g) return;
13522
+ g = !0, this.modalMap.delete(l);
13521
13523
  const b = w;
13522
13524
  w = void 0, b && await b.destroy();
13523
13525
  }, f = () => this.resolveAntdConfig(), k = defineComponent({
@@ -13525,7 +13527,7 @@ var init_index_es = __esmMin((() => {
13525
13527
  setup() {
13526
13528
  return () => h(ConfigProvider, f(), { default: () => h(n, {
13527
13529
  modalVisible: s.visible,
13528
- modalProps: c,
13530
+ modalProps: p,
13529
13531
  modalInst: m,
13530
13532
  bizOptions: t,
13531
13533
  onAfterClose: d
@@ -13535,7 +13537,7 @@ var init_index_es = __esmMin((() => {
13535
13537
  this.modalMap.set(l, {
13536
13538
  id: l,
13537
13539
  cancel: m.cancel,
13538
- isClosing: () => M
13540
+ isClosing: () => x
13539
13541
  });
13540
13542
  try {
13541
13543
  w = $r(k, this.appContext, l);
@@ -13565,7 +13567,7 @@ var init_index_es = __esmMin((() => {
13565
13567
  } };
13566
13568
  }));
13567
13569
  //#endregion
13568
- //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.4_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core@14.1.0_4b840a7f59e3a3666b01ae207b0b0731/node_modules/@gct-paas/form-base/dist/form-base.css
13570
+ //#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.5_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core@14.1.0_371411f6189e9a7eefab475321c60235/node_modules/@gct-paas/form-base/dist/form-base.css
13569
13571
  init_TriggerUtil();
13570
13572
  init_index_es();
13571
13573
  //#endregion
@@ -164153,30 +164155,24 @@ var qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
164153
164155
  value: `${modelKey}.${field.key}`
164154
164156
  }));
164155
164157
  });
164156
- const validator = new Schema({
164157
- parsingRuleId: {
164158
- required: true,
164159
- message: "请选择解析规则"
164160
- },
164161
- fillMapArr: {
164162
- type: "array",
164163
- defaultField: {
164164
- type: "object",
164165
- fields: {
164166
- barcodeField: {
164167
- required: true,
164168
- message: "请选择条码字段"
164169
- },
164170
- formFields: {
164171
- type: "array",
164172
- required: true,
164173
- min: 1,
164174
- message: "请选择表单字段"
164175
- }
164158
+ const validator = new Schema({ fillMapArr: {
164159
+ type: "array",
164160
+ defaultField: {
164161
+ type: "object",
164162
+ fields: {
164163
+ barcodeField: {
164164
+ required: true,
164165
+ message: "请选择条码字段"
164166
+ },
164167
+ formFields: {
164168
+ type: "array",
164169
+ required: true,
164170
+ min: 1,
164171
+ message: "请选择表单字段"
164176
164172
  }
164177
164173
  }
164178
164174
  }
164179
- });
164175
+ } });
164180
164176
  function getError(index, field) {
164181
164177
  var _errors$value$index;
164182
164178
  return (_errors$value$index = errors.value[index]) === null || _errors$value$index === void 0 ? void 0 : _errors$value$index[field];
@@ -164370,7 +164366,7 @@ var qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
164370
164366
  //#endregion
164371
164367
  //#region src/suites/shared/panel/config/editor/qrcode-parse-editor/qrcode-parse-modal.vue
164372
164368
  init__plugin_vue_export_helper();
164373
- var qrcode_parse_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f16084b1"]]);
164369
+ var qrcode_parse_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-780f74fa"]]);
164374
164370
  //#endregion
164375
164371
  //#region src/suites/shared/panel/utils/open-design-modal.ts
164376
164372
  init_base$2();
@@ -164594,7 +164590,6 @@ var barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barco
164594
164590
  "model-key": __props.modelKey,
164595
164591
  "ref-model-key": __props.refModelKey,
164596
164592
  "sub-model-key": __props.subModelKey,
164597
- required: true,
164598
164593
  tip: __props.tip
164599
164594
  }, null, 8, [
164600
164595
  "modelValue",
@@ -164631,7 +164626,7 @@ var barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barco
164631
164626
  //#endregion
164632
164627
  //#region src/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue
164633
164628
  init__plugin_vue_export_helper();
164634
- var barcode_parsing_rules_group_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barcode_parsing_rules_group_editor_lang_default, [["__scopeId", "data-v-d2baa699"]]);
164629
+ var barcode_parsing_rules_group_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barcode_parsing_rules_group_editor_lang_default, [["__scopeId", "data-v-382f6b04"]]);
164635
164630
  //#endregion
164636
164631
  //#region src/suites/shared/panel/modules/sub-table-basic-info.vue?vue&type=script&setup=true&lang.ts
164637
164632
  init_base$2();
@@ -165785,7 +165780,6 @@ var MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default = /*@_
165785
165780
  }),
165786
165781
  !unref(regionProps).disable_barcode_parsing_ ? (openBlock(), createBlock(unref(form_item_default), {
165787
165782
  key: 0,
165788
- required: "",
165789
165783
  label: "条码解析规则",
165790
165784
  inline: false
165791
165785
  }, {
@@ -165893,7 +165887,7 @@ var MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default = /*@_
165893
165887
  init__plugin_vue_export_helper();
165894
165888
  //#endregion
165895
165889
  //#region src/suites/edhr/panel-schema/material-consume-table/material-consume-table.basic.ts
165896
- var schema$14 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7339546c"]]));
165890
+ var schema$14 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e0502f4e"]]));
165897
165891
  //#endregion
165898
165892
  //#region src/suites/edhr/panel-schema/_shared/BoundedSubTablePanel.vue?vue&type=script&setup=true&lang.ts
165899
165893
  init_table$1();