jgy-public-component 0.0.31 → 0.0.32

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.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as te, openBlock as u, createElementBlock as C, normalizeClass as ke, createCommentVNode as E, renderSlot as he, ref as F, watch as re, createVNode as t, unref as v, withCtx as a, createElementVNode as e, withModifiers as xe, createBlock as A, Fragment as Z, toDisplayString as l, mergeProps as nt, inject as ot, computed as R, onMounted as St, onBeforeUnmount as fa, normalizeStyle as Ee, createTextVNode as c, useModel as Ze, useSlots as va, resolveComponent as x, mergeModels as Be, renderList as oe, createSlots as ba, withDirectives as ce, nextTick as Nt, isRef as ya, withKeys as ga, resolveDynamicComponent as qt, resolveDirective as me, normalizeProps as ha, reactive as Ve } from "vue";
2
- import { ElImage as Pe, ElIcon as Te, ElUpload as et, ElImageViewer as ka, ElMessage as fe, ElCard as jt, ElForm as $a, ElButton as Se, ElDialog as Ct, ElDivider as wa, ElLink as Da, ElRow as vt, ElCol as Le, ElTable as Ae, ElTableColumn as ee, ElSubMenu as xa, ElMenuItem as At, ElMenu as Pt, ElDropdown as Va, ElDropdownMenu as Sa, ElDropdownItem as bt, vLoading as yt, ElDescriptions as Oe, ElDescriptionsItem as W, ElTag as We, ElEmpty as Na } from "element-plus";
3
- import { Delete as tt, Plus as at, Loading as gt, ZoomIn as qa, Search as ja, Refresh as Ca, ArrowDown as Tt, Download as Aa, Setting as Pa, Memo as Ta, CopyDocument as ye, CaretBottom as zt, CaretRight as Ot, Picture as Rt } from "@element-plus/icons-vue";
1
+ import { defineComponent as te, openBlock as u, createElementBlock as C, normalizeClass as ke, createCommentVNode as E, renderSlot as he, ref as F, watch as re, createVNode as t, unref as v, withCtx as a, createElementVNode as e, withModifiers as xe, createBlock as A, Fragment as Z, toDisplayString as l, mergeProps as nt, inject as ot, computed as R, onMounted as Nt, onBeforeUnmount as fa, normalizeStyle as Ee, createTextVNode as c, useModel as Ze, useSlots as va, resolveComponent as x, mergeModels as Be, renderList as oe, createSlots as ba, nextTick as it, withDirectives as ce, isRef as ya, withKeys as ga, resolveDynamicComponent as qt, resolveDirective as me, normalizeProps as ha, reactive as Ve } from "vue";
2
+ import { ElImage as Pe, ElIcon as Te, ElUpload as et, ElImageViewer as ka, ElMessage as fe, ElCard as jt, ElForm as $a, ElButton as Se, ElDialog as Ct, ElDivider as wa, ElLink as Da, ElRow as bt, ElCol as Le, ElTable as Ae, ElTableColumn as ee, ElSubMenu as xa, ElMenuItem as At, ElMenu as Pt, ElDropdown as Va, ElDropdownMenu as Sa, ElDropdownItem as yt, vLoading as gt, ElDescriptions as Oe, ElDescriptionsItem as W, ElTag as We, ElEmpty as Na } from "element-plus";
3
+ import { Delete as tt, Plus as at, Loading as ht, ZoomIn as qa, Search as ja, Refresh as Ca, ArrowDown as Tt, Download as Aa, Setting as Pa, Memo as Ta, CopyDocument as ye, CaretBottom as zt, CaretRight as Ot, Picture as Rt } from "@element-plus/icons-vue";
4
4
  import za from "vuedraggable";
5
5
  import { Icon as Oa } from "@iconify/vue";
6
6
  import * as Ie from "xlsx";
7
- import { defineStore as It, storeToRefs as it } from "pinia";
7
+ import { defineStore as It, storeToRefs as dt } from "pinia";
8
8
  import lt from "nprogress";
9
9
  const Ra = ["disabled"], Ia = {
10
10
  key: 0,
@@ -78,23 +78,23 @@ const Ra = ["disabled"], Ia = {
78
78
  },
79
79
  emits: ["update:modelValue", "success", "error"],
80
80
  setup(s, { emit: m }) {
81
- const r = s, _ = m, n = F(""), h = F(!1), g = r.showTip, N = () => {
81
+ const r = s, _ = m, n = F(""), h = F(!1), g = r.showTip, q = () => {
82
82
  h.value = !0;
83
83
  }, D = () => {
84
84
  n.value = "", _("update:modelValue", ""), fe.success("删除成功");
85
- }, S = F([]), k = F(!1), w = (f) => {
86
- S.value = f.map((O, p) => ({
85
+ }, N = F([]), k = F(!1), w = (f) => {
86
+ N.value = f.map((O, p) => ({
87
87
  uid: Date.now() + p,
88
88
  url: O
89
89
  }));
90
90
  };
91
91
  re(() => r.modelValue, (f) => {
92
- r.multiple ? Array.isArray(f) && f.length > 0 ? w(f) : S.value = [] : typeof f == "string" ? n.value = f : n.value = "";
92
+ r.multiple ? Array.isArray(f) && f.length > 0 ? w(f) : N.value = [] : typeof f == "string" ? n.value = f : n.value = "";
93
93
  }, { immediate: !0 });
94
- const j = () => {
94
+ const S = () => {
95
95
  o();
96
96
  }, P = (f) => {
97
- S.value.splice(f, 1), o(), fe.success("删除成功");
97
+ N.value.splice(f, 1), o(), fe.success("删除成功");
98
98
  }, b = async (f) => {
99
99
  const O = f.raw;
100
100
  if (!O) {
@@ -112,32 +112,32 @@ const Ra = ["disabled"], Ia = {
112
112
  try {
113
113
  k.value = !0;
114
114
  const p = await r.uploadFn(O);
115
- r.multiple ? (S.value.push({ uid: Date.now(), url: p }), o()) : (n.value = p, _("update:modelValue", p)), _("success", p), fe.success("上传成功");
115
+ r.multiple ? (N.value.push({ uid: Date.now(), url: p }), o()) : (n.value = p, _("update:modelValue", p)), _("success", p), fe.success("上传成功");
116
116
  } catch (p) {
117
117
  console.error("上传出错:", p), fe.error("上传失败,请重试"), _("error", p);
118
118
  } finally {
119
119
  k.value = !1;
120
120
  }
121
121
  }, o = () => {
122
- const f = S.value.map((O) => O.url);
122
+ const f = N.value.map((O) => O.url);
123
123
  _("update:modelValue", f);
124
124
  };
125
125
  return (f, O) => (u(), C("div", Ma, [
126
126
  s.multiple ? (u(), C("div", La, [
127
127
  t(v(za), {
128
- modelValue: S.value,
129
- "onUpdate:modelValue": O[0] || (O[0] = (p) => S.value = p),
128
+ modelValue: N.value,
129
+ "onUpdate:modelValue": O[0] || (O[0] = (p) => N.value = p),
130
130
  class: "images-list",
131
131
  "item-key": "uid",
132
132
  animation: 200,
133
133
  disabled: s.disabled,
134
- onEnd: j
134
+ onEnd: S
135
135
  }, {
136
136
  item: a(({ element: p, index: i }) => [
137
137
  e("div", Ka, [
138
138
  t(v(Pe), {
139
139
  src: p.url,
140
- "preview-src-list": S.value.map((y) => y.url),
140
+ "preview-src-list": N.value.map((y) => y.url),
141
141
  "initial-index": i,
142
142
  fit: "cover",
143
143
  class: "image-preview",
@@ -160,7 +160,7 @@ const Ra = ["disabled"], Ia = {
160
160
  ]),
161
161
  _: 1
162
162
  }, 8, ["modelValue", "disabled"]),
163
- !s.disabled && (!s.limit || S.value.length < s.limit) ? (u(), A(v(et), {
163
+ !s.disabled && (!s.limit || N.value.length < s.limit) ? (u(), A(v(et), {
164
164
  key: 0,
165
165
  class: "image-uploader",
166
166
  "auto-upload": !1,
@@ -176,7 +176,7 @@ const Ra = ["disabled"], Ia = {
176
176
  class: "uploader-icon is-loading"
177
177
  }, {
178
178
  default: a(() => [
179
- t(v(gt))
179
+ t(v(ht))
180
180
  ]),
181
181
  _: 1
182
182
  })) : (u(), A(v(Te), {
@@ -201,7 +201,7 @@ const Ra = ["disabled"], Ia = {
201
201
  e("div", Ha, [
202
202
  t(v(Te), {
203
203
  class: "action-icon",
204
- onClick: xe(N, ["stop"])
204
+ onClick: xe(q, ["stop"])
205
205
  }, {
206
206
  default: a(() => [
207
207
  t(v(qa))
@@ -232,7 +232,7 @@ const Ra = ["disabled"], Ia = {
232
232
  default: a(() => [
233
233
  t(v(Te), { class: "uploader-icon" }, {
234
234
  default: a(() => [
235
- k.value ? (u(), A(v(gt), {
235
+ k.value ? (u(), A(v(ht), {
236
236
  key: 1,
237
237
  class: "is-loading"
238
238
  })) : (u(), A(v(at), { key: 0 }))
@@ -290,7 +290,7 @@ function Ut(s) {
290
290
  const m = el(), r = tl(), _ = () => s ?? m, n = (g) => (r && r.value, Ga(g, _()));
291
291
  return {
292
292
  canShowByPermission: n,
293
- createCanShow: (g, N) => R(() => g() && n(N == null ? void 0 : N()))
293
+ createCanShow: (g, q) => R(() => g() && n(q == null ? void 0 : q()))
294
294
  };
295
295
  }
296
296
  const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
@@ -321,20 +321,20 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
321
321
  ), g = _(
322
322
  () => r.showSearch,
323
323
  () => r.searchPermission
324
- ), N = _(
324
+ ), q = _(
325
325
  () => r.showReset,
326
326
  () => r.resetPermission
327
- ), D = m, S = F(), k = F(!1), w = F(!1), j = F(0), P = F(0), b = R(() => j.value > r.defaultVisible), o = () => {
328
- if (!S.value) return;
329
- const p = Array.from(S.value.children);
330
- j.value = p.length;
327
+ ), D = m, N = F(), k = F(!1), w = F(!1), S = F(0), P = F(0), b = R(() => S.value > r.defaultVisible), o = () => {
328
+ if (!N.value) return;
329
+ const p = Array.from(N.value.children);
330
+ S.value = p.length;
331
331
  const i = p[r.defaultVisible - 1];
332
- if (i && S.value) {
333
- const y = S.value.getBoundingClientRect(), T = i.getBoundingClientRect();
332
+ if (i && N.value) {
333
+ const y = N.value.getBoundingClientRect(), T = i.getBoundingClientRect();
334
334
  P.value = T.bottom - y.top;
335
335
  }
336
336
  }, f = () => {
337
- const p = S.value;
337
+ const p = N.value;
338
338
  if (p)
339
339
  if (k.value)
340
340
  o(), k.value = !1, p.style.maxHeight = p.scrollHeight + "px", p.offsetHeight, p.style.maxHeight = P.value + "px";
@@ -347,14 +347,14 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
347
347
  }
348
348
  };
349
349
  let O = null;
350
- return St(() => {
351
- o(), b.value && S.value && (S.value.style.maxHeight = P.value + "px"), requestAnimationFrame(() => {
350
+ return Nt(() => {
351
+ o(), b.value && N.value && (N.value.style.maxHeight = P.value + "px"), requestAnimationFrame(() => {
352
352
  requestAnimationFrame(() => {
353
353
  w.value = !0;
354
354
  });
355
- }), S.value && (O = new MutationObserver(() => {
356
- o(), b.value && !k.value && S.value && (S.value.style.maxHeight = P.value + "px");
357
- }), O.observe(S.value, { childList: !0 }));
355
+ }), N.value && (O = new MutationObserver(() => {
356
+ o(), b.value && !k.value && N.value && (N.value.style.maxHeight = P.value + "px");
357
+ }), O.observe(N.value, { childList: !0 }));
358
358
  }), fa(() => {
359
359
  O == null || O.disconnect();
360
360
  }), (p, i) => (u(), A(v(jt), {
@@ -369,7 +369,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
369
369
  default: a(() => [
370
370
  e("div", {
371
371
  ref_key: "formItemsRef",
372
- ref: S,
372
+ ref: N,
373
373
  class: ke(["form-items-wrapper", { "is-animated": w.value }])
374
374
  }, [
375
375
  he(p.$slots, "default", {}, void 0, !0)
@@ -416,7 +416,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
416
416
  ])]),
417
417
  _: 1
418
418
  }, 8, ["icon"])) : E("", !0),
419
- v(N) ? (u(), A(v(Se), {
419
+ v(q) ? (u(), A(v(Se), {
420
420
  key: 3,
421
421
  icon: v(Ca),
422
422
  onClick: i[3] || (i[3] = (y) => D("reset"))
@@ -483,14 +483,14 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
483
483
  ), g = _(
484
484
  () => r.showReset,
485
485
  () => r.resetPermission
486
- ), N = _(
486
+ ), q = _(
487
487
  () => r.showDownload,
488
488
  () => r.downloadPermission
489
489
  ), D = _(
490
490
  () => r.showSettings,
491
491
  () => r.settingsPermission
492
- ), S = Ze(s, "modelValue"), k = m, w = va(), j = F(!1), P = F(!1), b = R(() => r.showTabs && !!w.tabs), o = () => {
493
- k("more-filter-search"), j.value = !1;
492
+ ), N = Ze(s, "modelValue"), k = m, w = va(), S = F(!1), P = F(!1), b = R(() => r.showTabs && !!w.tabs), o = () => {
493
+ k("more-filter-search"), S.value = !1;
494
494
  }, f = () => {
495
495
  k("settings-save"), P.value = !1;
496
496
  };
@@ -503,8 +503,8 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
503
503
  default: a(() => [
504
504
  b.value ? (u(), A(i, {
505
505
  key: 0,
506
- modelValue: S.value,
507
- "onUpdate:modelValue": p[0] || (p[0] = ($) => S.value = $),
506
+ modelValue: N.value,
507
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => N.value = $),
508
508
  class: "j-list-search-header__tabs",
509
509
  onTabChange: p[1] || (p[1] = ($) => k("tab-change", String($)))
510
510
  }, {
@@ -520,7 +520,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
520
520
  e("div", il, [
521
521
  v(n) ? (u(), A(T, {
522
522
  key: 0,
523
- visible: j.value,
523
+ visible: S.value,
524
524
  placement: "bottom-end",
525
525
  trigger: "click",
526
526
  width: 560,
@@ -529,7 +529,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
529
529
  reference: a(() => [
530
530
  t(y, {
531
531
  type: "primary",
532
- onClick: p[2] || (p[2] = ($) => j.value = !j.value)
532
+ onClick: p[2] || (p[2] = ($) => S.value = !S.value)
533
533
  }, {
534
534
  default: a(() => [...p[11] || (p[11] = [
535
535
  c(" 更多筛选 ", -1)
@@ -541,7 +541,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
541
541
  he(O.$slots, "more-filter", {}, void 0, !0),
542
542
  e("div", dl, [
543
543
  t(y, {
544
- onClick: p[3] || (p[3] = ($) => j.value = !1)
544
+ onClick: p[3] || (p[3] = ($) => S.value = !1)
545
545
  }, {
546
546
  default: a(() => [...p[12] || (p[12] = [
547
547
  c("取消", -1)
@@ -589,7 +589,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
589
589
  he(O.$slots, "actions", {}, void 0, !0)
590
590
  ]),
591
591
  e("div", cl, [
592
- v(N) ? (u(), A(M, {
592
+ v(q) ? (u(), A(M, {
593
593
  key: 0,
594
594
  class: "action-icon",
595
595
  size: 18,
@@ -684,7 +684,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
684
684
  }),
685
685
  emits: /* @__PURE__ */ Be(["success"], ["update:modelValue"]),
686
686
  setup(s, { emit: m }) {
687
- const r = s, _ = m, n = Ze(s, "modelValue"), h = F(!1), g = F({}), N = F([]), D = F({ total: 0, success: 0, fail: 0 }), S = {
687
+ const r = s, _ = m, n = Ze(s, "modelValue"), h = F(!1), g = F({}), q = F([]), D = F({ total: 0, success: 0, fail: 0 }), N = {
688
688
  0: "待创建",
689
689
  1: "创建成功",
690
690
  2: "创建中",
@@ -696,7 +696,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
696
696
  } catch {
697
697
  fe.error("获取字段列表失败");
698
698
  }
699
- }, j = (O) => {
699
+ }, S = (O) => {
700
700
  const p = O.raw;
701
701
  if (!p) return;
702
702
  if (![
@@ -712,26 +712,26 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
712
712
  const M = Ie.read(T.target.result, { type: "binary" }), B = M.SheetNames[0], J = M.Sheets[B], d = Ie.utils.sheet_to_json(J, {
713
713
  header: 1,
714
714
  defval: ""
715
- }).slice(1).filter((q) => q.some((H) => H !== ""));
715
+ }).slice(1).filter((j) => j.some((H) => H !== ""));
716
716
  if (!d.length) {
717
717
  fe.warning("文件内容为空");
718
718
  return;
719
719
  }
720
- const V = d.map((q) => {
720
+ const V = d.map((j) => {
721
721
  const H = { _status: 0, _error: "" };
722
722
  return k.value.forEach((L, ae) => {
723
- H[L.prop] = q[ae] !== void 0 ? q[ae] : "";
723
+ H[L.prop] = j[ae] !== void 0 ? j[ae] : "";
724
724
  }), H;
725
725
  });
726
- N.value = V, D.value = { total: V.length, success: 0, fail: 0 };
726
+ q.value = V, D.value = { total: V.length, success: 0, fail: 0 };
727
727
  } catch {
728
728
  fe.error("解析文件失败,请检查文件格式");
729
729
  }
730
730
  }, y.readAsBinaryString(p);
731
731
  }, P = (O) => {
732
- N.value.splice(O, 1), D.value.total = N.value.length;
732
+ q.value.splice(O, 1), D.value.total = q.value.length;
733
733
  }, b = async () => {
734
- const O = N.value.filter((p) => p._status === 0).map(({ _status: p, _error: i, ...y }) => y);
734
+ const O = q.value.filter((p) => p._status === 0).map(({ _status: p, _error: i, ...y }) => y);
735
735
  if (!O.length) {
736
736
  fe.warning("没有可导入的数据");
737
737
  return;
@@ -739,9 +739,9 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
739
739
  h.value = !0;
740
740
  try {
741
741
  const p = await r.importApi(O);
742
- p.code === 1 ? (N.value.forEach((i) => {
742
+ p.code === 1 ? (q.value.forEach((i) => {
743
743
  i._status === 0 && (i._status = 1);
744
- }), D.value.success = N.value.filter((i) => i._status === 1).length, fe.success("导入成功"), _("success")) : fe.error(p.msg || "导入失败");
744
+ }), D.value.success = q.value.filter((i) => i._status === 1).length, fe.success("导入成功"), _("success")) : fe.error(p.msg || "导入失败");
745
745
  } catch {
746
746
  fe.error("导入失败,请重试");
747
747
  } finally {
@@ -757,7 +757,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
757
757
  fe.error("模板下载失败");
758
758
  }
759
759
  }, f = () => {
760
- h.value || (n.value = !1, N.value = [], D.value = { total: 0, success: 0, fail: 0 });
760
+ h.value || (n.value = !1, q.value = [], D.value = { total: 0, success: 0, fail: 0 });
761
761
  };
762
762
  return (O, p) => (u(), A(v(Ct), {
763
763
  modelValue: n.value,
@@ -789,7 +789,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
789
789
  accept: ".xlsx,.xls",
790
790
  "auto-upload": !1,
791
791
  "show-file-list": !1,
792
- "on-change": j
792
+ "on-change": S
793
793
  }, {
794
794
  default: a(() => [
795
795
  t(v(Se), { size: "small" }, {
@@ -816,7 +816,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
816
816
  ]),
817
817
  _: 1
818
818
  }),
819
- t(v(vt), {
819
+ t(v(bt), {
820
820
  class: "j-import-stats-row",
821
821
  gutter: 20,
822
822
  align: "middle"
@@ -824,7 +824,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
824
824
  default: a(() => [
825
825
  t(v(Le), { span: 18 }, {
826
826
  default: a(() => [
827
- t(v(vt), { class: "j-import-stats-cols" }, {
827
+ t(v(bt), { class: "j-import-stats-cols" }, {
828
828
  default: a(() => [
829
829
  t(v(Le), {
830
830
  span: 4,
@@ -871,7 +871,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
871
871
  type: "primary",
872
872
  size: "small",
873
873
  loading: h.value,
874
- disabled: !N.value.length,
874
+ disabled: !q.value.length,
875
875
  onClick: b
876
876
  }, {
877
877
  default: a(() => [...p[7] || (p[7] = [
@@ -886,7 +886,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
886
886
  _: 1
887
887
  }),
888
888
  t(v(Ae), {
889
- data: N.value,
889
+ data: q.value,
890
890
  border: "",
891
891
  size: "small",
892
892
  "max-height": "360",
@@ -907,7 +907,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
907
907
  fixed: "right"
908
908
  }, {
909
909
  default: a(({ row: i }) => [
910
- i._status === -1 ? (u(), C("span", gl, l(i._error || "创建失败"), 1)) : (u(), C("span", hl, l(S[i._status]), 1))
910
+ i._status === -1 ? (u(), C("span", gl, l(i._error || "创建失败"), 1)) : (u(), C("span", hl, l(N[i._status]), 1))
911
911
  ]),
912
912
  _: 1
913
913
  }),
@@ -949,35 +949,35 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
949
949
  },
950
950
  emits: ["menu-click"],
951
951
  setup(s, { emit: m }) {
952
- const r = s, _ = m, n = (S) => {
953
- var j;
954
- if (!S) return "";
955
- const k = String(S).trim();
952
+ const r = s, _ = m, n = (N) => {
953
+ var S;
954
+ if (!N) return "";
955
+ const k = String(N).trim();
956
956
  if (!k) return "";
957
957
  if (/^https?:\/\//i.test(k)) return k;
958
- let w = ((j = k.split("?")[0]) == null ? void 0 : j.split("#")[0]) || k;
958
+ let w = ((S = k.split("?")[0]) == null ? void 0 : S.split("#")[0]) || k;
959
959
  return w.startsWith("/") || (w = `/${w}`), w.length > 1 && w.endsWith("/") && (w = w.slice(0, -1)), w;
960
960
  }, h = R(() => n(r.menuItem.path)), g = R(
961
961
  () => !!r.activeIndex && h.value === r.activeIndex
962
- ), N = R(() => {
962
+ ), q = R(() => {
963
963
  var k;
964
964
  if (!r.activeIndex || !((k = r.menuItem.children) != null && k.length)) return !1;
965
- const S = (w) => w.some((j) => {
965
+ const N = (w) => w.some((S) => {
966
966
  var P;
967
- return (P = j.children) != null && P.length ? S(j.children) : n(j.path) === r.activeIndex;
967
+ return (P = S.children) != null && P.length ? N(S.children) : n(S.path) === r.activeIndex;
968
968
  });
969
- return S(r.menuItem.children);
969
+ return N(r.menuItem.children);
970
970
  }), D = () => {
971
971
  _("menu-click", r.menuItem);
972
972
  };
973
- return (S, k) => {
973
+ return (N, k) => {
974
974
  const w = x("JSideMenuItem", !0);
975
975
  return s.menuItem.children && s.menuItem.children.length > 0 ? (u(), A(v(xa), {
976
976
  key: 0,
977
977
  index: h.value,
978
978
  class: ke([
979
979
  `j-sidebar__depth-${s.depth}`,
980
- { "j-sidebar-item--active-parent": N.value }
980
+ { "j-sidebar-item--active-parent": q.value }
981
981
  ])
982
982
  }, {
983
983
  title: a(() => [
@@ -988,9 +988,9 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
988
988
  e("span", wl, l(s.menuItem.title || s.menuItem.name), 1)
989
989
  ]),
990
990
  default: a(() => [
991
- (u(!0), C(Z, null, oe(s.menuItem.children, (j) => (u(), A(w, {
992
- key: j.path,
993
- "menu-item": j,
991
+ (u(!0), C(Z, null, oe(s.menuItem.children, (S) => (u(), A(w, {
992
+ key: S.path,
993
+ "menu-item": S,
994
994
  "is-collapse": s.isCollapse,
995
995
  depth: s.depth + 1,
996
996
  "active-index": s.activeIndex,
@@ -1046,21 +1046,21 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1046
1046
  if (!P) return "";
1047
1047
  let b = String(P).trim();
1048
1048
  return b ? (/^https?:\/\//i.test(b) || (b = ((o = b.split("?")[0]) == null ? void 0 : o.split("#")[0]) || b, b.startsWith("/") || (b = `/${b}`), b.length > 1 && b.endsWith("/") && (b = b.slice(0, -1))), b) : "";
1049
- }, N = (P, b = []) => (P.forEach((o) => {
1050
- o.children && o.children.length > 0 ? N(o.children, b) : o.path && b.push(o.path);
1049
+ }, q = (P, b = []) => (P.forEach((o) => {
1050
+ o.children && o.children.length > 0 ? q(o.children, b) : o.path && b.push(o.path);
1051
1051
  }), b), D = (P, b) => {
1052
1052
  const o = g(b);
1053
1053
  if (!o || !(P != null && P.length)) return o;
1054
- const f = N(P).map(g).filter(Boolean);
1054
+ const f = q(P).map(g).filter(Boolean);
1055
1055
  if (!f.length || f.includes(o)) return o;
1056
1056
  let O = "";
1057
1057
  return f.forEach((p) => {
1058
1058
  !p || p === "/" || (o === p || o.startsWith(`${p}/`)) && p.length > O.length && (O = p);
1059
1059
  }), O || o;
1060
- }, S = R(
1060
+ }, N = R(
1061
1061
  () => D(r.menus, r.activeMenu)
1062
1062
  ), k = R(
1063
- () => N(r.menus).map(g).join("|")
1063
+ () => q(r.menus).map(g).join("|")
1064
1064
  ), w = (P, b, o = []) => {
1065
1065
  for (const f of P) {
1066
1066
  const O = g(f.path);
@@ -1071,9 +1071,9 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1071
1071
  return o;
1072
1072
  }
1073
1073
  return null;
1074
- }, j = R(() => {
1074
+ }, S = R(() => {
1075
1075
  var b;
1076
- const P = S.value;
1076
+ const P = N.value;
1077
1077
  return !P || !((b = r.menus) != null && b.length) ? [] : w(r.menus, P) || [];
1078
1078
  });
1079
1079
  return (P, b) => (u(), C("div", {
@@ -1091,8 +1091,8 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1091
1091
  e("div", Sl, [
1092
1092
  (u(), A(v(Pt), {
1093
1093
  key: k.value,
1094
- "default-active": S.value,
1095
- "default-openeds": j.value,
1094
+ "default-active": N.value,
1095
+ "default-openeds": S.value,
1096
1096
  class: "j-sidebar__menu",
1097
1097
  router: s.router,
1098
1098
  collapse: n.value,
@@ -1103,7 +1103,7 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1103
1103
  key: o.path,
1104
1104
  "menu-item": o,
1105
1105
  "is-collapse": n.value,
1106
- "active-index": S.value,
1106
+ "active-index": N.value,
1107
1107
  onMenuClick: b[0] || (b[0] = (f) => _("menu-click", f))
1108
1108
  }, null, 8, ["menu-item", "is-collapse", "active-index"]))), 128))
1109
1109
  ]),
@@ -1159,25 +1159,29 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1159
1159
  setup(s, { emit: m }) {
1160
1160
  const r = s, _ = m, n = R({
1161
1161
  get: () => r.collapsed,
1162
- set: (D) => _("update:collapsed", D)
1162
+ set: (k) => _("update:collapsed", k)
1163
1163
  }), h = R(() => ({
1164
1164
  "--j-admin-layout-header-height": r.headerHeight,
1165
1165
  "--j-admin-layout-content-padding": r.contentPadding,
1166
1166
  "--j-admin-layout-content-bg": r.contentBackground,
1167
1167
  "--j-admin-layout-header-bg": r.headerBackground
1168
- })), g = (D) => {
1169
- _("top-menu-select", D);
1170
- }, N = (D) => {
1171
- _("side-menu-click", D);
1168
+ })), g = F(0), q = R(
1169
+ () => `${r.activeTopMenu}__${g.value}`
1170
+ ), D = (k) => {
1171
+ _("top-menu-select", k), it(() => {
1172
+ r.activeTopMenu !== k && (g.value += 1);
1173
+ });
1174
+ }, N = (k) => {
1175
+ _("side-menu-click", k);
1172
1176
  };
1173
- return (D, S) => (u(), C("div", {
1177
+ return (k, w) => (u(), C("div", {
1174
1178
  class: "j-admin-layout",
1175
1179
  style: Ee(h.value)
1176
1180
  }, [
1177
1181
  s.sideMenus.length > 0 ? (u(), A(v(Lt), {
1178
1182
  key: 0,
1179
1183
  collapsed: n.value,
1180
- "onUpdate:collapsed": S[0] || (S[0] = (k) => n.value = k),
1184
+ "onUpdate:collapsed": w[0] || (w[0] = (S) => n.value = S),
1181
1185
  menus: s.sideMenus,
1182
1186
  "active-menu": s.activeMenu,
1183
1187
  title: s.title,
@@ -1187,12 +1191,12 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1187
1191
  router: !1,
1188
1192
  onMenuClick: N
1189
1193
  }, ba({ _: 2 }, [
1190
- D.$slots.sidebarFooter ? {
1194
+ k.$slots.sidebarFooter ? {
1191
1195
  name: "footer",
1192
- fn: a(({ collapsed: k, toggle: w }) => [
1193
- he(D.$slots, "sidebarFooter", {
1194
- collapsed: k,
1195
- toggle: w
1196
+ fn: a(({ collapsed: S, toggle: P }) => [
1197
+ he(k.$slots, "sidebarFooter", {
1198
+ collapsed: S,
1199
+ toggle: P
1196
1200
  }, void 0, !0)
1197
1201
  ]),
1198
1202
  key: "0"
@@ -1202,53 +1206,54 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1202
1206
  e("div", Cl, [
1203
1207
  e("div", Al, [
1204
1208
  s.sideMenus.length === 0 ? (u(), C("div", Pl, [
1205
- he(D.$slots, "logo", {}, () => [
1209
+ he(k.$slots, "logo", {}, () => [
1206
1210
  e("h2", null, l(s.logoTitle || s.title), 1)
1207
1211
  ], !0)
1208
1212
  ])) : E("", !0),
1209
- t(v(Pt), {
1213
+ (u(), A(v(Pt), {
1214
+ key: q.value,
1210
1215
  mode: "horizontal",
1211
1216
  "default-active": s.activeTopMenu,
1212
1217
  class: "j-admin-layout__top-menu",
1213
- onSelect: g
1218
+ onSelect: D
1214
1219
  }, {
1215
1220
  default: a(() => [
1216
- (u(!0), C(Z, null, oe(s.topMenus, (k) => (u(), A(v(At), {
1217
- key: k.path,
1218
- index: k.path
1221
+ (u(!0), C(Z, null, oe(s.topMenus, (S) => (u(), A(v(At), {
1222
+ key: S.path,
1223
+ index: S.path
1219
1224
  }, {
1220
1225
  default: a(() => [
1221
- k.icon ? (u(), A(v(Fe), {
1226
+ S.icon ? (u(), A(v(Fe), {
1222
1227
  key: 0,
1223
- icon: k.icon,
1228
+ icon: S.icon,
1224
1229
  class: "j-admin-layout__top-menu-icon"
1225
1230
  }, null, 8, ["icon"])) : E("", !0),
1226
- e("span", null, l(k.title || k.name), 1)
1231
+ e("span", null, l(S.title || S.name), 1)
1227
1232
  ]),
1228
1233
  _: 2
1229
1234
  }, 1032, ["index"]))), 128))
1230
1235
  ]),
1231
1236
  _: 1
1232
- }, 8, ["default-active"])
1237
+ }, 8, ["default-active"]))
1233
1238
  ]),
1234
1239
  e("div", Tl, [
1235
- he(D.$slots, "headerRight", { username: s.username }, () => [
1240
+ he(k.$slots, "headerRight", { username: s.username }, () => [
1236
1241
  s.showProfile || s.showLogout ? (u(), A(v(Va), { key: 0 }, {
1237
1242
  dropdown: a(() => [
1238
1243
  t(v(Sa), null, {
1239
1244
  default: a(() => [
1240
- s.showProfile ? (u(), A(v(bt), {
1245
+ s.showProfile ? (u(), A(v(yt), {
1241
1246
  key: 0,
1242
- onClick: S[1] || (S[1] = (k) => _("profile"))
1247
+ onClick: w[1] || (w[1] = (S) => _("profile"))
1243
1248
  }, {
1244
1249
  default: a(() => [
1245
1250
  c(l(s.profileText), 1)
1246
1251
  ]),
1247
1252
  _: 1
1248
1253
  })) : E("", !0),
1249
- s.showLogout ? (u(), A(v(bt), {
1254
+ s.showLogout ? (u(), A(v(yt), {
1250
1255
  key: 1,
1251
- onClick: S[2] || (S[2] = (k) => _("logout"))
1256
+ onClick: w[2] || (w[2] = (S) => _("logout"))
1252
1257
  }, {
1253
1258
  default: a(() => [
1254
1259
  c(l(s.logoutText), 1)
@@ -1276,20 +1281,20 @@ const al = { class: "action-left" }, ll = /* @__PURE__ */ te({
1276
1281
  ])
1277
1282
  ]),
1278
1283
  e("div", Ol, [
1279
- he(D.$slots, "tabs", {}, void 0, !0),
1284
+ he(k.$slots, "tabs", {}, void 0, !0),
1280
1285
  e("div", {
1281
1286
  class: ke([
1282
1287
  "j-admin-layout__content",
1283
1288
  { "j-admin-layout__content--scrollbar-hidden": s.hideContentScrollbar }
1284
1289
  ])
1285
1290
  }, [
1286
- he(D.$slots, "default", {}, void 0, !0)
1291
+ he(k.$slots, "default", {}, void 0, !0)
1287
1292
  ], 2)
1288
1293
  ])
1289
1294
  ])
1290
1295
  ], 4));
1291
1296
  }
1292
- }), Il = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-69566410"]]), Kt = Symbol("J_PRODUCT_REQUEST");
1297
+ }), Il = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-64044e2e"]]), Kt = Symbol("J_PRODUCT_REQUEST");
1293
1298
  function Bm(s, m) {
1294
1299
  s.provide(Kt, m);
1295
1300
  }
@@ -1305,10 +1310,10 @@ function Bl(s, m) {
1305
1310
  return r;
1306
1311
  }
1307
1312
  const Ul = { class: "pdd-body" }, Ml = ["href"], Ll = ["innerHTML"], Kl = { key: 1 }, Fl = { key: 1 }, Jl = { key: 1 }, Hl = { class: "pdd-supplier-head" }, Yl = { class: "pdd-supplier-name" }, Ql = { class: "pdd-supplier-meta" }, Wl = { class: "pdd-supplier-meta" }, Xl = { key: 1 }, Zl = { key: 1 }, Gl = { key: 1 }, es = { key: 1 }, ts = ["href"], as = { key: 1 }, Ft = F([]), st = F([]), Jt = F([]), Ht = F([]), Yt = F([]), Qt = F([]);
1308
- let ht = !1, Ke = null;
1313
+ let kt = !1, Ke = null;
1309
1314
  const ls = (s) => {
1310
1315
  const m = (r, _) => s({ url: r, method: "post", data: _ });
1311
- return ht ? Promise.resolve() : Ke || (Ke = Promise.all([
1316
+ return kt ? Promise.resolve() : Ke || (Ke = Promise.all([
1312
1317
  m("/bis-app/comm/productAttrValue/getAll", { pageSize: 999 }).then((r) => {
1313
1318
  var _, n, h;
1314
1319
  r.code === 1 && (Ft.value = ((_ = r.data) == null ? void 0 : _.brand) || [], st.value = ((n = r.data) == null ? void 0 : n.unit) || [], Jt.value = ((h = r.data) == null ? void 0 : h.sale) || []);
@@ -1330,13 +1335,13 @@ const ls = (s) => {
1330
1335
  }).catch(() => {
1331
1336
  })
1332
1337
  ]).then(() => {
1333
- ht = !0;
1338
+ kt = !0;
1334
1339
  }).finally(() => {
1335
1340
  Ke = null;
1336
1341
  }), Ke);
1337
1342
  }, ss = /* @__PURE__ */ te({
1338
1343
  name: "JProductDetailDialog",
1339
- directives: { loading: yt },
1344
+ directives: { loading: gt },
1340
1345
  __name: "JProductDetailDialog",
1341
1346
  props: {
1342
1347
  visible: { type: Boolean, default: !1 },
@@ -1347,22 +1352,22 @@ const ls = (s) => {
1347
1352
  },
1348
1353
  emits: ["update:visible"],
1349
1354
  setup(s, { emit: m }) {
1350
- const r = s, _ = m, n = El(), h = () => Bl(r.request, n), g = (U, K) => h()({ url: U, method: "post", data: K }), N = F(!1), D = F(null), S = async () => {
1355
+ const r = s, _ = m, n = El(), h = () => Bl(r.request, n), g = (U, K) => h()({ url: U, method: "post", data: K }), q = F(!1), D = F(null), N = async () => {
1351
1356
  if (!r.code && r.id === void 0) return;
1352
1357
  D.value = null, ls(h());
1353
1358
  const U = r.type === "spu" ? "/bis-app/comm/spu/doDetail" : "/bis-app/comm/sku/doDetail", K = r.type === "spu" ? { id: r.id, spu_code: r.code } : { id: r.id, sku_code: r.code };
1354
- N.value = !0;
1359
+ q.value = !0;
1355
1360
  try {
1356
1361
  const z = await g(U, K);
1357
1362
  z.code === 1 && z.data ? D.value = z.data : fe.error(z.msg || "获取详情失败");
1358
1363
  } catch {
1359
1364
  fe.error("获取详情失败");
1360
1365
  } finally {
1361
- N.value = !1;
1366
+ q.value = !1;
1362
1367
  }
1363
1368
  };
1364
1369
  re(() => r.visible, (U) => {
1365
- U && S();
1370
+ U && N();
1366
1371
  });
1367
1372
  const k = R(() => {
1368
1373
  var U;
@@ -1370,7 +1375,7 @@ const ls = (s) => {
1370
1375
  }), w = R(() => {
1371
1376
  var U;
1372
1377
  return ((U = D.value) == null ? void 0 : U.spec_info) ?? {};
1373
- }), j = R(() => {
1378
+ }), S = R(() => {
1374
1379
  var U, K;
1375
1380
  return ((U = D.value) == null ? void 0 : U.images_info) ?? ((K = D.value) == null ? void 0 : K.image_info) ?? {};
1376
1381
  }), P = R(() => {
@@ -1424,7 +1429,7 @@ const ls = (s) => {
1424
1429
  const Y = (z == null ? void 0 : z.url) || (z == null ? void 0 : z.file_url) || (z == null ? void 0 : z.path) || "";
1425
1430
  return { name: (z == null ? void 0 : z.name) || (z == null ? void 0 : z.file_name) || Y.split("/").pop() || "附件", url: Y };
1426
1431
  }).filter((z) => z.url);
1427
- }, q = (U) => U == null || U === "" ? "—" : U, H = (U, K) => U == null || U === "" ? "—" : `${U} ${K || ""}`.trim(), L = (U, K, z, Y = "cm") => {
1432
+ }, j = (U) => U == null || U === "" ? "—" : U, H = (U, K) => U == null || U === "" ? "—" : `${U} ${K || ""}`.trim(), L = (U, K, z, Y = "cm") => {
1428
1433
  if ([U, K, z].every((_e) => _e == null || _e === "")) return "—";
1429
1434
  const G = (_e) => _e == null || _e === "" ? "—" : _e;
1430
1435
  return `${G(U)} × ${G(K)} × ${G(z)} ${Y}`;
@@ -1456,13 +1461,13 @@ const ls = (s) => {
1456
1461
  return String(U).replace(/<[^>]*>/g, "").trim().length > 0 || /<img/i.test(String(U));
1457
1462
  }), ze = R(() => {
1458
1463
  var U;
1459
- return j.value.main_image || ((U = D.value) == null ? void 0 : U.product_image) || "";
1464
+ return S.value.main_image || ((U = D.value) == null ? void 0 : U.product_image) || "";
1460
1465
  }), le = R(() => {
1461
1466
  var U;
1462
- return d(j.value.size_images ?? ((U = D.value) == null ? void 0 : U.size_images));
1463
- }), ge = R(() => d(j.value.selling_point_images)), ue = R(
1464
- () => ({ spot: "抽检", full: "全检", exempt: "免检" })[o.value.qc_method] || q(o.value.qc_method)
1465
- ), qe = R(() => d(o.value.images)), $e = R(() => V(o.value.att_files)), Ce = R(() => Array.isArray(o.value.qc_content) ? o.value.qc_content : []), pt = (U) => String(U.custom_attr_id ?? U.id ?? U.attr_id ?? U.attr_code ?? "").trim(), da = (U) => {
1467
+ return d(S.value.size_images ?? ((U = D.value) == null ? void 0 : U.size_images));
1468
+ }), ge = R(() => d(S.value.selling_point_images)), ue = R(
1469
+ () => ({ spot: "抽检", full: "全检", exempt: "免检" })[o.value.qc_method] || j(o.value.qc_method)
1470
+ ), qe = R(() => d(o.value.images)), $e = R(() => V(o.value.att_files)), Ce = R(() => Array.isArray(o.value.qc_content) ? o.value.qc_content : []), mt = (U) => String(U.custom_attr_id ?? U.id ?? U.attr_id ?? U.attr_code ?? "").trim(), da = (U) => {
1466
1471
  const K = Array.isArray(U) ? U : U != null && U !== "" ? [U] : [], z = [];
1467
1472
  for (const Y of K)
1468
1473
  if (typeof Y == "string")
@@ -1475,15 +1480,15 @@ const ls = (s) => {
1475
1480
  }, ra = R(() => {
1476
1481
  const U = /* @__PURE__ */ new Map();
1477
1482
  for (const K of Qt.value) {
1478
- const z = pt(K);
1483
+ const z = mt(K);
1479
1484
  z && U.set(z, K);
1480
1485
  }
1481
1486
  return U;
1482
- }), mt = R(() => {
1487
+ }), ft = R(() => {
1483
1488
  var Y;
1484
1489
  const U = (Y = D.value) == null ? void 0 : Y.custom_attr_info, K = (U == null ? void 0 : U.list) ?? U;
1485
1490
  return (Array.isArray(K) ? K : []).map((G) => {
1486
- const _e = pt(G), we = ra.value.get(_e);
1491
+ const _e = mt(G), we = ra.value.get(_e);
1487
1492
  return {
1488
1493
  ...G,
1489
1494
  custom_attr_id: _e,
@@ -1500,7 +1505,7 @@ const ls = (s) => {
1500
1505
  var G;
1501
1506
  return ((G = z.find((_e) => _e.id && String(_e.id) === String(Y) || String(_e.name) === String(Y))) == null ? void 0 : G.name) || Y;
1502
1507
  }).join("、");
1503
- }, ca = R(() => f.value.bind_sku_list ?? []), ft = R(() => O.value.sku_attr ?? []), _a = R(() => O.value.sku_list ?? []), pa = (U, K) => {
1508
+ }, ca = R(() => f.value.bind_sku_list ?? []), vt = R(() => O.value.sku_attr ?? []), _a = R(() => O.value.sku_list ?? []), pa = (U, K) => {
1504
1509
  var G;
1505
1510
  const z = (G = U.sku_attr) == null ? void 0 : G[K.attr_code];
1506
1511
  if (z == null || z === "") return "—";
@@ -1552,7 +1557,7 @@ const ls = (s) => {
1552
1557
  label: T.value ? "中文款式" : "中文品名"
1553
1558
  }, {
1554
1559
  default: a(() => [
1555
- c(l(q(B.value)), 1)
1560
+ c(l(j(B.value)), 1)
1556
1561
  ]),
1557
1562
  _: 1
1558
1563
  }, 8, ["label"]),
@@ -1560,7 +1565,7 @@ const ls = (s) => {
1560
1565
  label: T.value ? "英文款式" : "英文品名"
1561
1566
  }, {
1562
1567
  default: a(() => [
1563
- c(l(q(J.value)), 1)
1568
+ c(l(j(J.value)), 1)
1564
1569
  ]),
1565
1570
  _: 1
1566
1571
  }, 8, ["label"]),
@@ -1568,7 +1573,7 @@ const ls = (s) => {
1568
1573
  label: T.value ? "SPU" : "SKU"
1569
1574
  }, {
1570
1575
  default: a(() => [
1571
- c(l(q($.value)), 1)
1576
+ c(l(j($.value)), 1)
1572
1577
  ]),
1573
1578
  _: 1
1574
1579
  }, 8, ["label"]),
@@ -1580,31 +1585,31 @@ const ls = (s) => {
1580
1585
  }),
1581
1586
  t(v(W), { label: "采购公司" }, {
1582
1587
  default: a(() => [
1583
- c(l(q(Q.value)), 1)
1588
+ c(l(j(Q.value)), 1)
1584
1589
  ]),
1585
1590
  _: 1
1586
1591
  }),
1587
1592
  t(v(W), { label: "状态" }, {
1588
1593
  default: a(() => [
1589
- c(l(q(X.value)), 1)
1594
+ c(l(j(X.value)), 1)
1590
1595
  ]),
1591
1596
  _: 1
1592
1597
  }),
1593
1598
  t(v(W), { label: "品类" }, {
1594
1599
  default: a(() => [
1595
- c(l(q(k.value.category_path_name || k.value.category_name)), 1)
1600
+ c(l(j(k.value.category_path_name || k.value.category_name)), 1)
1596
1601
  ]),
1597
1602
  _: 1
1598
1603
  }),
1599
1604
  t(v(W), { label: "品牌" }, {
1600
1605
  default: a(() => [
1601
- c(l(q(ve.value)), 1)
1606
+ c(l(j(ve.value)), 1)
1602
1607
  ]),
1603
1608
  _: 1
1604
1609
  }),
1605
1610
  t(v(W), { label: "单位" }, {
1606
1611
  default: a(() => [
1607
- c(l(q(ne.value)), 1)
1612
+ c(l(j(ne.value)), 1)
1608
1613
  ]),
1609
1614
  _: 1
1610
1615
  }),
@@ -1628,31 +1633,31 @@ const ls = (s) => {
1628
1633
  }),
1629
1634
  t(v(W), { label: "材质" }, {
1630
1635
  default: a(() => [
1631
- c(l(q(k.value.material)), 1)
1636
+ c(l(j(k.value.material)), 1)
1632
1637
  ]),
1633
1638
  _: 1
1634
1639
  }),
1635
1640
  t(v(W), { label: "型号" }, {
1636
1641
  default: a(() => [
1637
- c(l(q(k.value.product_model)), 1)
1642
+ c(l(j(k.value.product_model)), 1)
1638
1643
  ]),
1639
1644
  _: 1
1640
1645
  }),
1641
1646
  t(v(W), { label: "开发员" }, {
1642
1647
  default: a(() => [
1643
- c(l(q(k.value.develop_leader_name || k.value.develop_user)), 1)
1648
+ c(l(j(k.value.develop_leader_name || k.value.develop_user)), 1)
1644
1649
  ]),
1645
1650
  _: 1
1646
1651
  }),
1647
1652
  t(v(W), { label: "采购员" }, {
1648
1653
  default: a(() => [
1649
- c(l(q(k.value.purchase_leader_name || k.value.purchase_user)), 1)
1654
+ c(l(j(k.value.purchase_leader_name || k.value.purchase_user)), 1)
1650
1655
  ]),
1651
1656
  _: 1
1652
1657
  }),
1653
1658
  t(v(W), { label: "产品运营" }, {
1654
1659
  default: a(() => [
1655
- c(l(q(k.value.sales_leader_name || k.value.sales_user)), 1)
1660
+ c(l(j(k.value.sales_leader_name || k.value.sales_user)), 1)
1656
1661
  ]),
1657
1662
  _: 1
1658
1663
  }),
@@ -1661,7 +1666,7 @@ const ls = (s) => {
1661
1666
  label: "关联SPU"
1662
1667
  }, {
1663
1668
  default: a(() => [
1664
- c(l(q(k.value.spu_code)), 1)
1669
+ c(l(j(k.value.spu_code)), 1)
1665
1670
  ]),
1666
1671
  _: 1
1667
1672
  })),
@@ -1671,7 +1676,7 @@ const ls = (s) => {
1671
1676
  span: 2
1672
1677
  }, {
1673
1678
  default: a(() => [
1674
- c(l(q(de.value)), 1)
1679
+ c(l(j(de.value)), 1)
1675
1680
  ]),
1676
1681
  _: 1
1677
1682
  })),
@@ -1728,7 +1733,7 @@ const ls = (s) => {
1728
1733
  span: 2
1729
1734
  }, {
1730
1735
  default: a(() => [
1731
- c(l(q(f.value.unit_process_remark)), 1)
1736
+ c(l(j(f.value.unit_process_remark)), 1)
1732
1737
  ]),
1733
1738
  _: 1
1734
1739
  })
@@ -1776,7 +1781,7 @@ const ls = (s) => {
1776
1781
  "min-width": "70"
1777
1782
  }, {
1778
1783
  default: a(({ row: z }) => [
1779
- c(l(q(z.unit || z.unit_name)), 1)
1784
+ c(l(j(z.unit || z.unit_name)), 1)
1780
1785
  ]),
1781
1786
  _: 1
1782
1787
  }),
@@ -1785,7 +1790,7 @@ const ls = (s) => {
1785
1790
  "min-width": "70"
1786
1791
  }, {
1787
1792
  default: a(({ row: z }) => [
1788
- c(l(q(z.quantity ?? z.sku_quantity)), 1)
1793
+ c(l(j(z.quantity ?? z.sku_quantity)), 1)
1789
1794
  ]),
1790
1795
  _: 1
1791
1796
  }),
@@ -1800,7 +1805,7 @@ const ls = (s) => {
1800
1805
  "min-width": "90"
1801
1806
  }, {
1802
1807
  default: a(({ row: z }) => [
1803
- c(l(q(z.model_no || z.product_model)), 1)
1808
+ c(l(j(z.model_no || z.product_model)), 1)
1804
1809
  ]),
1805
1810
  _: 1
1806
1811
  }),
@@ -1853,7 +1858,7 @@ const ls = (s) => {
1853
1858
  T.value ? (u(), C(Z, { key: 1 }, [
1854
1859
  K[3] || (K[3] = e("div", { class: "pdd-title" }, "款式属性", -1)),
1855
1860
  t(v(Ae), {
1856
- data: ft.value,
1861
+ data: vt.value,
1857
1862
  border: "",
1858
1863
  size: "small",
1859
1864
  class: "pdd-table"
@@ -1925,11 +1930,11 @@ const ls = (s) => {
1925
1930
  "show-overflow-tooltip": ""
1926
1931
  }, {
1927
1932
  default: a(({ row: z }) => [
1928
- c(l(q(z.product_name_en || z.product_en_name)), 1)
1933
+ c(l(j(z.product_name_en || z.product_en_name)), 1)
1929
1934
  ]),
1930
1935
  _: 1
1931
1936
  }),
1932
- (u(!0), C(Z, null, oe(ft.value, (z) => (u(), A(v(ee), {
1937
+ (u(!0), C(Z, null, oe(vt.value, (z) => (u(), A(v(ee), {
1933
1938
  key: z.attr_code,
1934
1939
  label: z.attr_name,
1935
1940
  "min-width": "100"
@@ -2076,7 +2081,7 @@ const ls = (s) => {
2076
2081
  default: a(() => [
2077
2082
  t(v(W), { label: "采购成本" }, {
2078
2083
  default: a(() => [
2079
- c(l(q(P.value.purchase_cost)), 1)
2084
+ c(l(j(P.value.purchase_cost)), 1)
2080
2085
  ]),
2081
2086
  _: 1
2082
2087
  }),
@@ -2097,7 +2102,7 @@ const ls = (s) => {
2097
2102
  span: 3
2098
2103
  }, {
2099
2104
  default: a(() => [
2100
- c(l(q(P.value.purchase_remark)), 1)
2105
+ c(l(j(P.value.purchase_remark)), 1)
2101
2106
  ]),
2102
2107
  _: 1
2103
2108
  })
@@ -2123,7 +2128,7 @@ const ls = (s) => {
2123
2128
  _: 1
2124
2129
  })) : E("", !0),
2125
2130
  e("span", Ql, "预计交期:" + l(z.delivery_day != null && z.delivery_day !== "" ? `${z.delivery_day} 天` : "—"), 1),
2126
- e("span", Wl, "报价备注:" + l(q(z.purchase_remark ?? z.remark)), 1)
2131
+ e("span", Wl, "报价备注:" + l(j(z.purchase_remark ?? z.remark)), 1)
2127
2132
  ]),
2128
2133
  t(v(Ae), {
2129
2134
  data: ma(z),
@@ -2160,7 +2165,7 @@ const ls = (s) => {
2160
2165
  "min-width": "100"
2161
2166
  }, {
2162
2167
  default: a(({ row: G }) => [
2163
- c(l(q(G.purchase_quantity)), 1)
2168
+ c(l(j(G.purchase_quantity)), 1)
2164
2169
  ]),
2165
2170
  _: 1
2166
2171
  }),
@@ -2169,7 +2174,7 @@ const ls = (s) => {
2169
2174
  "min-width": "100"
2170
2175
  }, {
2171
2176
  default: a(({ row: G }) => [
2172
- c(l(q(G.purchase_price)), 1)
2177
+ c(l(j(G.purchase_price)), 1)
2173
2178
  ]),
2174
2179
  _: 1
2175
2180
  }),
@@ -2178,7 +2183,7 @@ const ls = (s) => {
2178
2183
  "min-width": "100"
2179
2184
  }, {
2180
2185
  default: a(({ row: G }) => [
2181
- c(l(q(G.purchase_price_tax)), 1)
2186
+ c(l(j(G.purchase_price_tax)), 1)
2182
2187
  ]),
2183
2188
  _: 1
2184
2189
  })
@@ -2250,49 +2255,49 @@ const ls = (s) => {
2250
2255
  default: a(() => [
2251
2256
  t(v(W), { label: "中文申报名" }, {
2252
2257
  default: a(() => [
2253
- c(l(q(b.value.declaration_name)), 1)
2258
+ c(l(j(b.value.declaration_name)), 1)
2254
2259
  ]),
2255
2260
  _: 1
2256
2261
  }),
2257
2262
  t(v(W), { label: "英文申报名" }, {
2258
2263
  default: a(() => [
2259
- c(l(q(b.value.declaration_name_en)), 1)
2264
+ c(l(j(b.value.declaration_name_en)), 1)
2260
2265
  ]),
2261
2266
  _: 1
2262
2267
  }),
2263
2268
  t(v(W), { label: "中文材质" }, {
2264
2269
  default: a(() => [
2265
- c(l(q(b.value.material)), 1)
2270
+ c(l(j(b.value.material)), 1)
2266
2271
  ]),
2267
2272
  _: 1
2268
2273
  }),
2269
2274
  t(v(W), { label: "英文材质" }, {
2270
2275
  default: a(() => [
2271
- c(l(q(b.value.material_en)), 1)
2276
+ c(l(j(b.value.material_en)), 1)
2272
2277
  ]),
2273
2278
  _: 1
2274
2279
  }),
2275
2280
  t(v(W), { label: "中文用途" }, {
2276
2281
  default: a(() => [
2277
- c(l(q(b.value.use)), 1)
2282
+ c(l(j(b.value.use)), 1)
2278
2283
  ]),
2279
2284
  _: 1
2280
2285
  }),
2281
2286
  t(v(W), { label: "英文用途" }, {
2282
2287
  default: a(() => [
2283
- c(l(q(b.value.use_en)), 1)
2288
+ c(l(j(b.value.use_en)), 1)
2284
2289
  ]),
2285
2290
  _: 1
2286
2291
  }),
2287
2292
  t(v(W), { label: "中文功能" }, {
2288
2293
  default: a(() => [
2289
- c(l(q(b.value.usage)), 1)
2294
+ c(l(j(b.value.usage)), 1)
2290
2295
  ]),
2291
2296
  _: 1
2292
2297
  }),
2293
2298
  t(v(W), { label: "英文功能" }, {
2294
2299
  default: a(() => [
2295
- c(l(q(b.value.usage_en)), 1)
2300
+ c(l(j(b.value.usage_en)), 1)
2296
2301
  ]),
2297
2302
  _: 1
2298
2303
  }),
@@ -2304,25 +2309,25 @@ const ls = (s) => {
2304
2309
  }),
2305
2310
  t(v(W), { label: "海关编码" }, {
2306
2311
  default: a(() => [
2307
- c(l(q(b.value.hs_code)), 1)
2312
+ c(l(j(b.value.hs_code)), 1)
2308
2313
  ]),
2309
2314
  _: 1
2310
2315
  }),
2311
2316
  t(v(W), { label: "报关型号" }, {
2312
2317
  default: a(() => [
2313
- c(l(q(b.value.declaration_model)), 1)
2318
+ c(l(j(b.value.declaration_model)), 1)
2314
2319
  ]),
2315
2320
  _: 1
2316
2321
  }),
2317
2322
  t(v(W), { label: "原产地" }, {
2318
2323
  default: a(() => [
2319
- c(l(q(b.value.country_of_origin)), 1)
2324
+ c(l(j(b.value.country_of_origin)), 1)
2320
2325
  ]),
2321
2326
  _: 1
2322
2327
  }),
2323
2328
  t(v(W), { label: "境内货源地" }, {
2324
2329
  default: a(() => [
2325
- c(l(q(b.value.domestic_source_location)), 1)
2330
+ c(l(j(b.value.domestic_source_location)), 1)
2326
2331
  ]),
2327
2332
  _: 1
2328
2333
  }),
@@ -2331,7 +2336,7 @@ const ls = (s) => {
2331
2336
  span: 2
2332
2337
  }, {
2333
2338
  default: a(() => [
2334
- c(l(q(ie.value)), 1)
2339
+ c(l(j(ie.value)), 1)
2335
2340
  ]),
2336
2341
  _: 1
2337
2342
  })
@@ -2356,7 +2361,7 @@ const ls = (s) => {
2356
2361
  span: 2
2357
2362
  }, {
2358
2363
  default: a(() => [
2359
- c(l(q(o.value.template_name || o.value.template_id || o.value.qc_temp_id)), 1)
2364
+ c(l(j(o.value.template_name || o.value.template_id || o.value.qc_temp_id)), 1)
2360
2365
  ]),
2361
2366
  _: 1
2362
2367
  }),
@@ -2425,10 +2430,10 @@ const ls = (s) => {
2425
2430
  _: 1
2426
2431
  }, 8, ["data"])
2427
2432
  ], 64)) : E("", !0),
2428
- mt.value.length ? (u(), C(Z, { key: 6 }, [
2433
+ ft.value.length ? (u(), C(Z, { key: 6 }, [
2429
2434
  K[12] || (K[12] = e("div", { class: "pdd-title" }, "自定义属性", -1)),
2430
2435
  t(v(Ae), {
2431
- data: mt.value,
2436
+ data: ft.value,
2432
2437
  border: "",
2433
2438
  size: "small",
2434
2439
  class: "pdd-table"
@@ -2450,22 +2455,22 @@ const ls = (s) => {
2450
2455
  _: 1
2451
2456
  }, 8, ["data"])
2452
2457
  ], 64)) : E("", !0)
2453
- ], 64)) : N.value ? E("", !0) : (u(), A(v(Na), {
2458
+ ], 64)) : q.value ? E("", !0) : (u(), A(v(Na), {
2454
2459
  key: 1,
2455
2460
  description: "暂无数据"
2456
2461
  }))
2457
2462
  ])), [
2458
- [v(yt), N.value]
2463
+ [v(gt), q.value]
2459
2464
  ])
2460
2465
  ]),
2461
2466
  _: 1
2462
2467
  }, 8, ["model-value"]));
2463
2468
  }
2464
- }), Wt = /* @__PURE__ */ se(ss, [["__scopeId", "data-v-2cae81e6"]]), dt = It("jgyProductDetail", () => {
2469
+ }), Wt = /* @__PURE__ */ se(ss, [["__scopeId", "data-v-2cae81e6"]]), rt = It("jgyProductDetail", () => {
2465
2470
  const s = F(!1), m = F(""), r = F("sku");
2466
- async function _(g, N) {
2471
+ async function _(g, q) {
2467
2472
  const D = String(g ?? "").trim();
2468
- !D || D === "-" || (m.value = D, r.value = (N == null ? void 0 : N.type) ?? "sku", s.value = !1, await Nt(), s.value = !0);
2473
+ !D || D === "-" || (m.value = D, r.value = (q == null ? void 0 : q.type) ?? "sku", s.value = !1, await it(), s.value = !0);
2469
2474
  }
2470
2475
  function n() {
2471
2476
  s.value = !1;
@@ -2494,35 +2499,35 @@ const ls = (s) => {
2494
2499
  },
2495
2500
  emits: ["open"],
2496
2501
  setup(s, { emit: m }) {
2497
- const r = s, _ = m, n = dt(), h = R(() => String(r.code ?? "").trim() || r.emptyText), g = R(() => {
2502
+ const r = s, _ = m, n = rt(), h = R(() => String(r.code ?? "").trim() || r.emptyText), g = R(() => {
2498
2503
  const D = String(r.code ?? "").trim();
2499
2504
  return D !== "" && D !== "-";
2500
- }), N = () => {
2505
+ }), q = () => {
2501
2506
  if (!g.value) return;
2502
2507
  const D = String(r.code).trim();
2503
2508
  n.open(D, { type: r.type }), _("open", D);
2504
2509
  };
2505
- return (D, S) => g.value ? (u(), C("span", {
2510
+ return (D, N) => g.value ? (u(), C("span", {
2506
2511
  key: 0,
2507
2512
  class: "j-sku-link",
2508
- onClick: xe(N, ["stop"])
2513
+ onClick: xe(q, ["stop"])
2509
2514
  }, l(h.value), 1)) : (u(), C("span", ns, l(s.emptyText), 1));
2510
2515
  }
2511
2516
  }), pe = /* @__PURE__ */ se(os, [["__scopeId", "data-v-5048b116"]]), is = /* @__PURE__ */ te({
2512
2517
  name: "ProductDetailHost",
2513
2518
  __name: "ProductDetailHost",
2514
2519
  setup(s) {
2515
- const m = dt(), { visible: r, code: _, type: n } = it(m);
2520
+ const m = rt(), { visible: r, code: _, type: n } = dt(m);
2516
2521
  return (h, g) => (u(), A(Wt, {
2517
2522
  visible: v(r),
2518
- "onUpdate:visible": g[0] || (g[0] = (N) => ya(r) ? r.value = N : null),
2523
+ "onUpdate:visible": g[0] || (g[0] = (q) => ya(r) ? r.value = q : null),
2519
2524
  code: v(_),
2520
2525
  type: v(n)
2521
2526
  }, null, 8, ["visible", "code", "type"]));
2522
2527
  }
2523
2528
  });
2524
2529
  function Um() {
2525
- const s = dt(), { visible: m, code: r } = it(s);
2530
+ const s = rt(), { visible: m, code: r } = dt(s);
2526
2531
  return {
2527
2532
  productDetailDialogVisible: m,
2528
2533
  productDetailDialogCode: r,
@@ -2554,22 +2559,22 @@ const ds = /* @__PURE__ */ te({
2554
2559
  emits: /* @__PURE__ */ Be(["confirm", "search"], ["update:type", "update:keyword"]),
2555
2560
  setup(s, { expose: m, emit: r }) {
2556
2561
  var p, i;
2557
- const _ = s, n = Ze(s, "type"), h = Ze(s, "keyword"), g = r, N = F(!1), D = F(""), S = R(
2562
+ const _ = s, n = Ze(s, "type"), h = Ze(s, "keyword"), g = r, q = F(!1), D = F(""), N = R(
2558
2563
  () => _.options.find((y) => y.value === n.value)
2559
2564
  ), k = R(() => {
2560
2565
  var T;
2561
- return _.dialogTitle ? _.dialogTitle : `批量输入${((T = S.value) == null ? void 0 : T.label) || "关键词"}`;
2566
+ return _.dialogTitle ? _.dialogTitle : `批量输入${((T = N.value) == null ? void 0 : T.label) || "关键词"}`;
2562
2567
  }), w = (y) => {
2563
2568
  if (!y) return "";
2564
2569
  const T = y.split(/[\n\r,,;;\s\t]+/).map((J) => J.trim()).filter(Boolean), M = [], B = /* @__PURE__ */ new Set();
2565
2570
  for (const J of T)
2566
2571
  B.has(J) || (B.add(J), M.push(J));
2567
2572
  return M.join(_.separator);
2568
- }, j = (y) => y ? y.split(/[\n\r,,;;\s\t.]+/).map((T) => T.trim()).filter(Boolean).join(`
2573
+ }, S = (y) => y ? y.split(/[\n\r,,;;\s\t.]+/).map((T) => T.trim()).filter(Boolean).join(`
2569
2574
  `) : "", P = () => {
2570
- D.value = j(h.value), N.value = !0;
2575
+ D.value = S(h.value), q.value = !0;
2571
2576
  }, b = () => {
2572
- h.value = w(D.value), N.value = !1, g("confirm", {
2577
+ h.value = w(D.value), q.value = !1, g("confirm", {
2573
2578
  type: n.value,
2574
2579
  keyword: h.value
2575
2580
  });
@@ -2626,8 +2631,8 @@ const ds = /* @__PURE__ */ te({
2626
2631
  _: 1
2627
2632
  }, 8, ["modelValue", "placeholder"]),
2628
2633
  t(d, {
2629
- modelValue: N.value,
2630
- "onUpdate:modelValue": T[5] || (T[5] = (V) => N.value = V),
2634
+ modelValue: q.value,
2635
+ "onUpdate:modelValue": T[5] || (T[5] = (V) => q.value = V),
2631
2636
  title: k.value,
2632
2637
  width: s.dialogWidth,
2633
2638
  "append-to-body": "",
@@ -2637,7 +2642,7 @@ const ds = /* @__PURE__ */ te({
2637
2642
  }, {
2638
2643
  footer: a(() => [
2639
2644
  t(J, {
2640
- onClick: T[4] || (T[4] = (V) => N.value = !1)
2645
+ onClick: T[4] || (T[4] = (V) => q.value = !1)
2641
2646
  }, {
2642
2647
  default: a(() => [...T[6] || (T[6] = [
2643
2648
  c("取消", -1)
@@ -2670,7 +2675,7 @@ const ds = /* @__PURE__ */ te({
2670
2675
  };
2671
2676
  }
2672
2677
  }), rs = /* @__PURE__ */ se(ds, [["__scopeId", "data-v-29890413"]]), Re = {};
2673
- let Je = {}, rt = !1;
2678
+ let Je = {}, ut = !1;
2674
2679
  function Xt(s) {
2675
2680
  const m = {};
2676
2681
  return Object.entries(s).forEach(([r, _]) => {
@@ -2690,13 +2695,13 @@ function Xt(s) {
2690
2695
  }
2691
2696
  function Mm(s) {
2692
2697
  const m = Xt(s.components || {});
2693
- return Object.keys(Re).forEach((r) => delete Re[r]), Object.assign(Re, m), Je = { ...s.adapters || {} }, rt = !0, {
2698
+ return Object.keys(Re).forEach((r) => delete Re[r]), Object.assign(Re, m), Je = { ...s.adapters || {} }, ut = !0, {
2694
2699
  registry: Re,
2695
2700
  adapters: Je
2696
2701
  };
2697
2702
  }
2698
2703
  function Lm(s) {
2699
- s.components && Object.assign(Re, Xt(s.components)), s.adapters && (Je = { ...Je, ...s.adapters }), rt = !0;
2704
+ s.components && Object.assign(Re, Xt(s.components)), s.adapters && (Je = { ...Je, ...s.adapters }), ut = !0;
2700
2705
  }
2701
2706
  function Km() {
2702
2707
  return Re;
@@ -2705,20 +2710,20 @@ function be() {
2705
2710
  return Je;
2706
2711
  }
2707
2712
  function Fm() {
2708
- return rt;
2713
+ return ut;
2709
2714
  }
2710
2715
  function Zt(s) {
2711
2716
  return Re[s] || null;
2712
2717
  }
2713
2718
  const Gt = It("jgyDocDetail", () => {
2714
2719
  const s = F(!1), m = F(""), r = F("");
2715
- async function _(g, N) {
2716
- if (!(!g || !N)) {
2720
+ async function _(g, q) {
2721
+ if (!(!g || !q)) {
2717
2722
  if (!Zt(g)) {
2718
2723
  console.warn(`[JDocDetail] 未注册的单据类型: ${g},请先 createDocDetail 注册`);
2719
2724
  return;
2720
2725
  }
2721
- m.value = g, r.value = N, s.value = !1, await Nt(), s.value = !0;
2726
+ m.value = g, r.value = q, s.value = !1, await it(), s.value = !0;
2722
2727
  }
2723
2728
  }
2724
2729
  function n() {
@@ -2735,12 +2740,12 @@ const Gt = It("jgyDocDetail", () => {
2735
2740
  close: n,
2736
2741
  reset: h
2737
2742
  };
2738
- }), kt = "jgy-doc-copy-toast", us = 2147483647;
2743
+ }), $t = "jgy-doc-copy-toast", us = 2147483647;
2739
2744
  function Ge(s, m) {
2740
2745
  var _;
2741
- (_ = document.getElementById(kt)) == null || _.remove();
2746
+ (_ = document.getElementById($t)) == null || _.remove();
2742
2747
  const r = document.createElement("div");
2743
- r.id = kt, r.setAttribute("role", "alert"), r.textContent = m, Object.assign(r.style, {
2748
+ r.id = $t, r.setAttribute("role", "alert"), r.textContent = m, Object.assign(r.style, {
2744
2749
  position: "fixed",
2745
2750
  top: "20px",
2746
2751
  left: "50%",
@@ -2806,9 +2811,9 @@ const _s = {
2806
2811
  m.orderNo && je(m.orderNo);
2807
2812
  };
2808
2813
  return (h, g) => {
2809
- const N = x("el-button"), D = x("el-icon");
2814
+ const q = x("el-button"), D = x("el-icon");
2810
2815
  return s.orderNo ? (u(), C("span", _s, [
2811
- t(N, {
2816
+ t(q, {
2812
2817
  link: "",
2813
2818
  type: "primary",
2814
2819
  class: "doc-no-link__text",
@@ -2819,7 +2824,7 @@ const _s = {
2819
2824
  ]),
2820
2825
  _: 1
2821
2826
  }),
2822
- s.showCopy ? (u(), A(N, {
2827
+ s.showCopy ? (u(), A(q, {
2823
2828
  key: 0,
2824
2829
  link: "",
2825
2830
  class: "doc-no-link__copy",
@@ -2841,15 +2846,15 @@ const _s = {
2841
2846
  }), He = /* @__PURE__ */ se(ms, [["__scopeId", "data-v-19b92500"]]), fs = /* @__PURE__ */ te({
2842
2847
  __name: "DocDetailHost",
2843
2848
  setup(s) {
2844
- const m = Gt(), { visible: r, type: _, orderNo: n } = it(m), h = R(() => _.value ? Zt(_.value) : null), g = R(() => h.value ? {
2849
+ const m = Gt(), { visible: r, type: _, orderNo: n } = dt(m), h = R(() => _.value ? Zt(_.value) : null), g = R(() => h.value ? {
2845
2850
  [h.value.orderNoProp]: n.value
2846
- } : {}), N = (D) => {
2851
+ } : {}), q = (D) => {
2847
2852
  D ? m.visible = !0 : m.close();
2848
2853
  };
2849
- return (D, S) => h.value && v(_) ? (u(), A(qt(h.value.component), nt({
2854
+ return (D, N) => h.value && v(_) ? (u(), A(qt(h.value.component), nt({
2850
2855
  key: 0,
2851
2856
  "model-value": v(r)
2852
- }, g.value, { "onUpdate:modelValue": N }), null, 16, ["model-value"])) : E("", !0);
2857
+ }, g.value, { "onUpdate:modelValue": q }), null, 16, ["model-value"])) : E("", !0);
2853
2858
  }
2854
2859
  }), vs = {
2855
2860
  1: "采购订单",
@@ -2916,13 +2921,13 @@ const ks = { class: "related-doc-no-copy" }, $s = {
2916
2921
  _.value && je(m.value);
2917
2922
  };
2918
2923
  return (h, g) => {
2919
- const N = x("el-icon");
2924
+ const q = x("el-icon");
2920
2925
  return u(), C("span", ks, [
2921
2926
  s.label ? (u(), C("span", $s, l(s.label), 1)) : E("", !0),
2922
2927
  e("span", {
2923
2928
  class: ke({ "link-text": s.link })
2924
2929
  }, l(r.value), 3),
2925
- _.value ? (u(), A(N, {
2930
+ _.value ? (u(), A(q, {
2926
2931
  key: 1,
2927
2932
  class: "copy-btn",
2928
2933
  size: "12",
@@ -2937,7 +2942,7 @@ const ks = { class: "related-doc-no-copy" }, $s = {
2937
2942
  };
2938
2943
  }
2939
2944
  }), De = /* @__PURE__ */ se(ws, [["__scopeId", "data-v-604fc4bb"]]);
2940
- function ut(s, m = !0) {
2945
+ function ct(s, m = !0) {
2941
2946
  return s ? Array.isArray(s) ? s.map((r, _) => ({
2942
2947
  ...r,
2943
2948
  ...m ? { _skuGroupSize: 1, _skuGroupIndex: _ } : {}
@@ -2955,7 +2960,7 @@ function ut(s, m = !0) {
2955
2960
  }) : [];
2956
2961
  }
2957
2962
  function Ds(s, m) {
2958
- return ut(s, !1).reduce(
2963
+ return ct(s, !1).reduce(
2959
2964
  (r, _) => r + Number((_ == null ? void 0 : _[m]) ?? 0),
2960
2965
  0
2961
2966
  );
@@ -3009,28 +3014,28 @@ const xs = {
3009
3014
  }, zs = (s) => s != null && s.location_good_display ? s.location_good_display : la(s == null ? void 0 : s.location_list, 1), Os = (s) => s != null && s.location_bad_display ? s.location_bad_display : la(s == null ? void 0 : s.location_list, 2);
3010
3015
  function sa(s, m, r = {}) {
3011
3016
  const _ = F([]), n = () => {
3012
- var N;
3013
- return ((N = r.defaultExpandAll) == null ? void 0 : N.call(r)) ?? !0;
3017
+ var q;
3018
+ return ((q = r.defaultExpandAll) == null ? void 0 : q.call(r)) ?? !0;
3014
3019
  }, h = () => {
3015
3020
  if (!n()) {
3016
3021
  _.value = [];
3017
3022
  return;
3018
3023
  }
3019
- const N = s();
3020
- N.length && (_.value = N.map((D, S) => m(D, S)));
3021
- }, g = (N) => {
3022
- _.value = _.value.includes(N) ? _.value.filter((D) => D !== N) : [..._.value, N];
3024
+ const q = s();
3025
+ q.length && (_.value = q.map((D, N) => m(D, N)));
3026
+ }, g = (q) => {
3027
+ _.value = _.value.includes(q) ? _.value.filter((D) => D !== q) : [..._.value, q];
3023
3028
  };
3024
3029
  return re(s, h, { immediate: !0, deep: !0 }), re(
3025
3030
  () => {
3026
- var N;
3027
- return [((N = r.loading) == null ? void 0 : N.call(r)) ?? !1, s().length];
3031
+ var q;
3032
+ return [((q = r.loading) == null ? void 0 : q.call(r)) ?? !1, s().length];
3028
3033
  },
3029
- ([N, D]) => {
3030
- !N && D > 0 && h();
3034
+ ([q, D]) => {
3035
+ !q && D > 0 && h();
3031
3036
  },
3032
3037
  { immediate: !0 }
3033
- ), St(h), { expandedKeys: _, expandAll: h, toggleRow: g };
3038
+ ), Nt(h), { expandedKeys: _, expandAll: h, toggleRow: g };
3034
3039
  }
3035
3040
  const Rs = ["onClick"], Is = {
3036
3041
  key: 0,
@@ -3048,36 +3053,36 @@ const Rs = ["onClick"], Is = {
3048
3053
  defaultExpandAll: { type: Boolean, default: !0 }
3049
3054
  },
3050
3055
  setup(s) {
3051
- const m = s, r = { 1: "仓库", 2: "预检", 3: "免检", 4: "加工质检" }, _ = R(() => m.showQcType ? 9 : 8), n = (j, P) => `r-${j.receipt_order_no || P}`, { expandedKeys: h, toggleRow: g } = sa(
3056
+ const m = s, r = { 1: "仓库", 2: "预检", 3: "免检", 4: "加工质检" }, _ = R(() => m.showQcType ? 9 : 8), n = (S, P) => `r-${S.receipt_order_no || P}`, { expandedKeys: h, toggleRow: g } = sa(
3052
3057
  () => m.orders || [],
3053
3058
  n,
3054
3059
  {
3055
3060
  defaultExpandAll: () => m.defaultExpandAll,
3056
3061
  loading: () => m.loading
3057
3062
  }
3058
- ), N = R(() => {
3059
- const j = [];
3063
+ ), q = R(() => {
3064
+ const S = [];
3060
3065
  return (m.orders || []).forEach((P, b) => {
3061
3066
  const o = n(P, b);
3062
- j.push({ ...P, _rowKey: o, _isBatch: !0 }), h.value.includes(o) && ut(P.order_item).forEach((f) => {
3063
- j.push({
3067
+ S.push({ ...P, _rowKey: o, _isBatch: !0 }), h.value.includes(o) && ct(P.order_item).forEach((f) => {
3068
+ S.push({
3064
3069
  ...f,
3065
3070
  _rowKey: `ri-${P.receipt_order_no}-${f.id || f.purchase_no}`,
3066
3071
  _isBatch: !1
3067
3072
  });
3068
3073
  });
3069
- }), j;
3070
- }), D = ({ row: j, columnIndex: P }) => j._isBatch ? P === 0 ? [1, 1] : P === 1 ? [1, _.value - 1] : [0, 0] : [1, 2].includes(P) && j._skuGroupSize > 1 ? j._skuGroupIndex === 0 ? [j._skuGroupSize, 1] : [0, 0] : [1, 1], S = ({ row: j }) => j._isBatch ? "batch-summary-row" : "", k = (j) => j == null ? "-" : Number(j) === 1 ? "否" : "是", w = (j) => j === 500 ? "success" : j === 600 ? "danger" : j === 300 || j === 400 ? "warning" : "info";
3071
- return (j, P) => {
3074
+ }), S;
3075
+ }), D = ({ row: S, columnIndex: P }) => S._isBatch ? P === 0 ? [1, 1] : P === 1 ? [1, _.value - 1] : [0, 0] : [1, 2].includes(P) && S._skuGroupSize > 1 ? S._skuGroupIndex === 0 ? [S._skuGroupSize, 1] : [0, 0] : [1, 1], N = ({ row: S }) => S._isBatch ? "batch-summary-row" : "", k = (S) => S == null ? "-" : Number(S) === 1 ? "否" : "是", w = (S) => S === 500 ? "success" : S === 600 ? "danger" : S === 300 || S === 400 ? "warning" : "info";
3076
+ return (S, P) => {
3072
3077
  const b = x("el-icon"), o = x("el-table-column"), f = x("el-tag"), O = x("el-image"), p = x("el-table"), i = me("loading");
3073
3078
  return ce((u(), A(p, {
3074
3079
  class: "related-collapse-table",
3075
- data: N.value,
3080
+ data: q.value,
3076
3081
  border: "",
3077
3082
  size: "small",
3078
3083
  "row-key": "_rowKey",
3079
3084
  "span-method": D,
3080
- "row-class-name": S,
3085
+ "row-class-name": N,
3081
3086
  "max-height": "420",
3082
3087
  "empty-text": "暂无关联收货单"
3083
3088
  }, {
@@ -3271,8 +3276,8 @@ const Rs = ["onClick"], Is = {
3271
3276
  600: "已作废"
3272
3277
  }, n = (h) => h === 400 ? "success" : h === 300 ? "warning" : h === 200 ? "danger" : "info";
3273
3278
  return (h, g) => {
3274
- const N = x("el-tag"), D = x("el-table-column"), S = x("el-table"), k = me("loading");
3275
- return ce((u(), A(S, {
3279
+ const q = x("el-tag"), D = x("el-table-column"), N = x("el-table"), k = me("loading");
3280
+ return ce((u(), A(N, {
3276
3281
  data: s.list,
3277
3282
  border: "",
3278
3283
  size: "small",
@@ -3291,7 +3296,7 @@ const Rs = ["onClick"], Is = {
3291
3296
  label: "质检单:",
3292
3297
  value: w.qc_order_no
3293
3298
  }, null, 8, ["value"]),
3294
- w.urgent_flag == 2 ? (u(), A(N, {
3299
+ w.urgent_flag == 2 ? (u(), A(q, {
3295
3300
  key: 0,
3296
3301
  type: "danger",
3297
3302
  size: "small"
@@ -3320,7 +3325,7 @@ const Rs = ["onClick"], Is = {
3320
3325
  e("div", null, "方式:" + l(r[w.qc_method] || "-"), 1),
3321
3326
  e("div", null, [
3322
3327
  g[1] || (g[1] = c(" 状态: ", -1)),
3323
- t(N, {
3328
+ t(q, {
3324
3329
  type: n(w.status),
3325
3330
  size: "small"
3326
3331
  }, {
@@ -3338,9 +3343,9 @@ const Rs = ["onClick"], Is = {
3338
3343
  "min-width": "200"
3339
3344
  }, {
3340
3345
  default: a(({ row: w }) => {
3341
- var j, P;
3346
+ var S, P;
3342
3347
  return [
3343
- e("div", null, "品名:" + l(((j = w.sku_info) == null ? void 0 : j.product_name) || "-"), 1),
3348
+ e("div", null, "品名:" + l(((S = w.sku_info) == null ? void 0 : S.product_name) || "-"), 1),
3344
3349
  e("div", null, [
3345
3350
  g[2] || (g[2] = c("SKU:", -1)),
3346
3351
  t(v(pe), {
@@ -3401,7 +3406,7 @@ const Rs = ["onClick"], Is = {
3401
3406
  ]);
3402
3407
  };
3403
3408
  }
3404
- }), $t = /* @__PURE__ */ se(an, [["__scopeId", "data-v-cd935a38"]]), ln = ["onClick"], sn = {
3409
+ }), wt = /* @__PURE__ */ se(an, [["__scopeId", "data-v-cd935a38"]]), ln = ["onClick"], sn = {
3405
3410
  key: 0,
3406
3411
  class: "group-info-row"
3407
3412
  }, nn = { class: "info-item" }, on = { class: "info-item" }, dn = { class: "info-item" }, rn = { class: "info-item" }, un = { class: "info-item" }, cn = { class: "info-item" }, _n = { class: "info-item" }, pn = { class: "info-item" }, mn = {
@@ -3428,9 +3433,9 @@ const Rs = ["onClick"], Is = {
3428
3433
  }
3429
3434
  ), h = R(() => {
3430
3435
  const k = [];
3431
- return (m.orders || []).forEach((w, j) => {
3432
- const P = r(w, j);
3433
- k.push({ ...w, _rowKey: P, _isBatch: !0 }), _.value.includes(P) && ut(w.order_item).forEach((b) => {
3436
+ return (m.orders || []).forEach((w, S) => {
3437
+ const P = r(w, S);
3438
+ k.push({ ...w, _rowKey: P, _isBatch: !0 }), _.value.includes(P) && ct(w.order_item).forEach((b) => {
3434
3439
  k.push({
3435
3440
  ...b,
3436
3441
  _rowKey: `ii-${w.inbound_order_no}-${b.id || b.purchase_no || b.sku_code}`,
@@ -3438,9 +3443,9 @@ const Rs = ["onClick"], Is = {
3438
3443
  });
3439
3444
  });
3440
3445
  }), k;
3441
- }), g = ({ row: k, columnIndex: w }) => k._isBatch ? w === 0 ? [1, 1] : w === 1 ? [1, kn - 1] : [0, 0] : [1, 2].includes(w) && k._skuGroupSize > 1 ? k._skuGroupIndex === 0 ? [k._skuGroupSize, 1] : [0, 0] : [1, 1], N = ({ row: k }) => k._isBatch ? "batch-summary-row" : "", D = (k) => Ds(k.order_item, "inbound_qty"), S = (k) => k === 300 ? "success" : k === 200 ? "warning" : "info";
3446
+ }), g = ({ row: k, columnIndex: w }) => k._isBatch ? w === 0 ? [1, 1] : w === 1 ? [1, kn - 1] : [0, 0] : [1, 2].includes(w) && k._skuGroupSize > 1 ? k._skuGroupIndex === 0 ? [k._skuGroupSize, 1] : [0, 0] : [1, 1], q = ({ row: k }) => k._isBatch ? "batch-summary-row" : "", D = (k) => Ds(k.order_item, "inbound_qty"), N = (k) => k === 300 ? "success" : k === 200 ? "warning" : "info";
3442
3447
  return (k, w) => {
3443
- const j = x("el-icon"), P = x("el-table-column"), b = x("el-tag"), o = x("el-image"), f = x("el-table"), O = me("loading");
3448
+ const S = x("el-icon"), P = x("el-table-column"), b = x("el-tag"), o = x("el-image"), f = x("el-table"), O = me("loading");
3444
3449
  return ce((u(), A(f, {
3445
3450
  class: "related-collapse-table",
3446
3451
  data: h.value,
@@ -3448,7 +3453,7 @@ const Rs = ["onClick"], Is = {
3448
3453
  size: "small",
3449
3454
  "row-key": "_rowKey",
3450
3455
  "span-method": g,
3451
- "row-class-name": N,
3456
+ "row-class-name": q,
3452
3457
  "max-height": "420",
3453
3458
  "empty-text": "暂无关联入库单"
3454
3459
  }, {
@@ -3464,12 +3469,12 @@ const Rs = ["onClick"], Is = {
3464
3469
  class: "toggle-btn",
3465
3470
  onClick: xe((i) => v(n)(p._rowKey), ["stop"])
3466
3471
  }, [
3467
- v(_).includes(p._rowKey) ? (u(), A(j, { key: 0 }, {
3472
+ v(_).includes(p._rowKey) ? (u(), A(S, { key: 0 }, {
3468
3473
  default: a(() => [
3469
3474
  t(v(zt))
3470
3475
  ]),
3471
3476
  _: 1
3472
- })) : (u(), A(j, { key: 1 }, {
3477
+ })) : (u(), A(S, { key: 1 }, {
3473
3478
  default: a(() => [
3474
3479
  t(v(Ot))
3475
3480
  ]),
@@ -3501,7 +3506,7 @@ const Rs = ["onClick"], Is = {
3501
3506
  e("span", cn, [
3502
3507
  w[0] || (w[0] = c(" 状态: ", -1)),
3503
3508
  t(b, {
3504
- type: S(p.status),
3509
+ type: N(p.status),
3505
3510
  size: "small"
3506
3511
  }, {
3507
3512
  default: a(() => [
@@ -3523,7 +3528,7 @@ const Rs = ["onClick"], Is = {
3523
3528
  src: p.sku_image.main_image,
3524
3529
  style: { width: "32px", height: "32px" },
3525
3530
  fit: "cover"
3526
- }, null, 8, ["src"])) : (u(), A(j, {
3531
+ }, null, 8, ["src"])) : (u(), A(S, {
3527
3532
  key: 1,
3528
3533
  size: "20",
3529
3534
  color: "#c0c4cc"
@@ -3627,7 +3632,7 @@ const Rs = ["onClick"], Is = {
3627
3632
  setup(s) {
3628
3633
  const m = (r) => r === 300 ? "success" : r === 100 || r === 200 ? "warning" : "info";
3629
3634
  return (r, _) => {
3630
- const n = x("el-table-column"), h = x("el-tag"), g = x("el-table"), N = me("loading");
3635
+ const n = x("el-table-column"), h = x("el-tag"), g = x("el-table"), q = me("loading");
3631
3636
  return ce((u(), A(g, {
3632
3637
  data: s.list,
3633
3638
  border: "",
@@ -3675,9 +3680,9 @@ const Rs = ["onClick"], Is = {
3675
3680
  "min-width": "200"
3676
3681
  }, {
3677
3682
  default: a(({ row: D }) => {
3678
- var S, k;
3683
+ var N, k;
3679
3684
  return [
3680
- e("div", null, "品名:" + l(((S = D.sku_info) == null ? void 0 : S.product_name) || "-"), 1),
3685
+ e("div", null, "品名:" + l(((N = D.sku_info) == null ? void 0 : N.product_name) || "-"), 1),
3681
3686
  e("div", null, [
3682
3687
  _[0] || (_[0] = c("SKU:", -1)),
3683
3688
  t(v(pe), {
@@ -3744,26 +3749,26 @@ const Rs = ["onClick"], Is = {
3744
3749
  ]),
3745
3750
  _: 1
3746
3751
  }, 8, ["data"])), [
3747
- [N, s.loading]
3752
+ [q, s.loading]
3748
3753
  ]);
3749
3754
  };
3750
3755
  }
3751
3756
  }), Nn = /* @__PURE__ */ se(Sn, [["__scopeId", "data-v-906ad9a9"]]), na = {
3752
3757
  receipt: Gs,
3753
- qc: $t,
3754
- quality: $t,
3758
+ qc: wt,
3759
+ quality: wt,
3755
3760
  inbound: wn,
3756
3761
  putaway: Nn
3757
3762
  };
3758
- let Ye = {}, Ue = { ...na }, ct = !1;
3763
+ let Ye = {}, Ue = { ...na }, _t = !1;
3759
3764
  function Jm(s = {}) {
3760
3765
  return Ye = { ...s.listAdapters || {} }, Ue = {
3761
3766
  ...na,
3762
3767
  ...s.components || {}
3763
- }, ct = !0, { listAdapters: Ye, tableComponents: Ue };
3768
+ }, _t = !0, { listAdapters: Ye, tableComponents: Ue };
3764
3769
  }
3765
3770
  function Hm(s) {
3766
- s.listAdapters && (Ye = { ...Ye, ...s.listAdapters }), s.components && (Ue = { ...Ue, ...s.components }), ct = !0;
3771
+ s.listAdapters && (Ye = { ...Ye, ...s.listAdapters }), s.components && (Ue = { ...Ue, ...s.components }), _t = !0;
3767
3772
  }
3768
3773
  function qn(s) {
3769
3774
  return Ye[s] || null;
@@ -3775,7 +3780,7 @@ function Ym() {
3775
3780
  return Ue;
3776
3781
  }
3777
3782
  function Qm() {
3778
- return ct;
3783
+ return _t;
3779
3784
  }
3780
3785
  const Cn = { class: "related-sub-tabs" }, An = ["onClick"], Pn = /* @__PURE__ */ te({
3781
3786
  name: "RelatedDocSubTabs",
@@ -3825,9 +3830,9 @@ const On = /* @__PURE__ */ te({
3825
3830
  ...m.tableProps
3826
3831
  };
3827
3832
  return h.has(m.type) ? { ...D, orders: _.value } : { ...D, list: _.value };
3828
- }), N = async () => {
3829
- const D = m.docNo, S = m.paramKey;
3830
- if (D == null || D === "" || !S) {
3833
+ }), q = async () => {
3834
+ const D = m.docNo, N = m.paramKey;
3835
+ if (D == null || D === "" || !N) {
3831
3836
  _.value = [];
3832
3837
  return;
3833
3838
  }
@@ -3839,7 +3844,7 @@ const On = /* @__PURE__ */ te({
3839
3844
  r.value = !0;
3840
3845
  try {
3841
3846
  const w = await k({
3842
- [S]: D,
3847
+ [N]: D,
3843
3848
  pageIndex: 1,
3844
3849
  pageSize: m.pageSize,
3845
3850
  page: 1
@@ -3854,10 +3859,10 @@ const On = /* @__PURE__ */ te({
3854
3859
  return re(
3855
3860
  () => [m.type, m.docNo, m.paramKey, m.pageSize],
3856
3861
  () => {
3857
- N();
3862
+ q();
3858
3863
  },
3859
3864
  { immediate: !0 }
3860
- ), (D, S) => {
3865
+ ), (D, N) => {
3861
3866
  const k = x("el-empty");
3862
3867
  return n.value ? (u(), A(qt(n.value), ha(nt({ key: 0 }, g.value)), null, 16)) : (u(), A(k, {
3863
3868
  key: 1,
@@ -3878,20 +3883,20 @@ const On = /* @__PURE__ */ te({
3878
3883
  setup(s) {
3879
3884
  var g;
3880
3885
  const m = s, r = F(((g = m.docTypes[0]) == null ? void 0 : g.type) || ""), _ = R(
3881
- () => m.docTypes.map((N) => ({
3882
- key: N.type,
3883
- label: N.label,
3884
- count: N.count
3886
+ () => m.docTypes.map((q) => ({
3887
+ key: q.type,
3888
+ label: q.label,
3889
+ count: q.count
3885
3890
  }))
3886
- ), n = (N) => N.docNo != null && N.docNo !== "" ? N.docNo : m.docNo, h = (N) => N.paramKey || m.paramKey || "";
3891
+ ), n = (q) => q.docNo != null && q.docNo !== "" ? q.docNo : m.docNo, h = (q) => q.paramKey || m.paramKey || "";
3887
3892
  return re(
3888
- () => m.docTypes.map((N) => N.type).join(","),
3893
+ () => m.docTypes.map((q) => q.type).join(","),
3889
3894
  () => {
3890
- var N;
3891
- m.docTypes.some((D) => D.type === r.value) || (r.value = ((N = m.docTypes[0]) == null ? void 0 : N.type) || "");
3895
+ var q;
3896
+ m.docTypes.some((D) => D.type === r.value) || (r.value = ((q = m.docTypes[0]) == null ? void 0 : q.type) || "");
3892
3897
  }
3893
- ), (N, D) => {
3894
- const S = x("el-empty");
3898
+ ), (q, D) => {
3899
+ const N = x("el-empty");
3895
3900
  return u(), C("div", Rn, [
3896
3901
  _.value.length ? (u(), A(Tn, {
3897
3902
  key: 0,
@@ -3911,7 +3916,7 @@ const On = /* @__PURE__ */ te({
3911
3916
  "table-props": k.tableProps
3912
3917
  }, null, 8, ["type", "doc-no", "param-key", "page-size", "table-props"])) : E("", !0)
3913
3918
  ], 64))), 128)),
3914
- s.docTypes.length ? E("", !0) : (u(), A(S, {
3919
+ s.docTypes.length ? E("", !0) : (u(), A(N, {
3915
3920
  key: 1,
3916
3921
  description: "暂无关联单据配置",
3917
3922
  "image-size": 64
@@ -3938,7 +3943,7 @@ const On = /* @__PURE__ */ te({
3938
3943
  2: "预检",
3939
3944
  3: "免检",
3940
3945
  4: "加工质检"
3941
- }, _ = F(!1), n = F("items"), h = Ve({}), g = F([]), N = F([]), D = F([]), S = F([]), k = F(1), w = F(10), j = R(
3946
+ }, _ = F(!1), n = F("items"), h = Ve({}), g = F([]), q = F([]), D = F([]), N = F([]), k = F(1), w = F(10), S = R(
3942
3947
  () => gs(
3943
3948
  h.status,
3944
3949
  ea[h.status],
@@ -3946,10 +3951,10 @@ const On = /* @__PURE__ */ te({
3946
3951
  )
3947
3952
  ), P = R(() => h.status === 500 ? "success" : h.status === 600 ? "danger" : h.status === 300 || h.status === 400 ? "warning" : "info"), b = R(() => (h.status ?? 0) >= 400), o = R(() => {
3948
3953
  var V;
3949
- if (((V = S.value) == null ? void 0 : V.length) !== 2) return D.value;
3950
- const $ = S.value[0], d = S.value[1];
3951
- return !$ || !d ? D.value : D.value.filter((q) => {
3952
- const H = String(q.ctime || "").slice(0, 10);
3954
+ if (((V = N.value) == null ? void 0 : V.length) !== 2) return D.value;
3955
+ const $ = N.value[0], d = N.value[1];
3956
+ return !$ || !d ? D.value : D.value.filter((j) => {
3957
+ const H = String(j.ctime || "").slice(0, 10);
3953
3958
  return H ? H >= $ && H <= d : !1;
3954
3959
  });
3955
3960
  }), f = R(() => {
@@ -3965,7 +3970,7 @@ const On = /* @__PURE__ */ te({
3965
3970
  type: d.type || d.operate_type || d.action_type || "-",
3966
3971
  info: d.info || d.content || d.detail || d.log_content || "-"
3967
3972
  })), T = () => {
3968
- Object.keys(h).forEach(($) => delete h[$]), g.value = [], N.value = [], D.value = [], n.value = "items", S.value = [], k.value = 1;
3973
+ Object.keys(h).forEach(($) => delete h[$]), g.value = [], q.value = [], D.value = [], n.value = "items", N.value = [], k.value = 1;
3969
3974
  }, M = async () => {
3970
3975
  if (!m.receiptOrderNo) {
3971
3976
  T();
@@ -3981,7 +3986,7 @@ const On = /* @__PURE__ */ te({
3981
3986
  const d = await $(m.receiptOrderNo);
3982
3987
  if ((d == null ? void 0 : d.code) === 1) {
3983
3988
  const V = d.data || {};
3984
- Object.assign(h, V), g.value = ta(V.order_item, !1), N.value = V.order_logistics || [], D.value = y(V.receipt_order_log || []);
3989
+ Object.assign(h, V), g.value = ta(V.order_item, !1), q.value = V.order_logistics || [], D.value = y(V.receipt_order_log || []);
3985
3990
  } else
3986
3991
  T();
3987
3992
  } catch (d) {
@@ -4001,7 +4006,7 @@ const On = /* @__PURE__ */ te({
4001
4006
  },
4002
4007
  { immediate: !0 }
4003
4008
  ), ($, d) => {
4004
- const V = x("el-icon"), q = x("el-button"), H = x("el-tag"), L = x("el-col"), ae = x("el-row"), ve = x("el-link"), ne = x("el-table-column"), X = x("el-image"), ie = x("el-table"), Q = x("el-tab-pane"), I = x("el-date-picker"), de = x("el-pagination"), Ne = x("el-tabs"), Me = x("el-dialog"), ze = me("loading");
4009
+ const V = x("el-icon"), j = x("el-button"), H = x("el-tag"), L = x("el-col"), ae = x("el-row"), ve = x("el-link"), ne = x("el-table-column"), X = x("el-image"), ie = x("el-table"), Q = x("el-tab-pane"), I = x("el-date-picker"), de = x("el-pagination"), Ne = x("el-tabs"), Me = x("el-dialog"), ze = me("loading");
4005
4010
  return u(), A(Me, {
4006
4011
  "model-value": s.modelValue,
4007
4012
  width: "92%",
@@ -4017,7 +4022,7 @@ const On = /* @__PURE__ */ te({
4017
4022
  d[7] || (d[7] = e("span", { class: "j-doc-detail-title__name" }, "收货单", -1)),
4018
4023
  d[8] || (d[8] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
4019
4024
  e("span", Bn, l(h.receipt_order_no || "-"), 1),
4020
- h.receipt_order_no ? (u(), A(q, {
4025
+ h.receipt_order_no ? (u(), A(j, {
4021
4026
  key: 0,
4022
4027
  link: "",
4023
4028
  class: "copy-btn",
@@ -4038,7 +4043,7 @@ const On = /* @__PURE__ */ te({
4038
4043
  type: P.value
4039
4044
  }, {
4040
4045
  default: a(() => [
4041
- c(l(j.value), 1)
4046
+ c(l(S.value), 1)
4042
4047
  ]),
4043
4048
  _: 1
4044
4049
  }, 8, ["type"]),
@@ -4073,7 +4078,7 @@ const On = /* @__PURE__ */ te({
4073
4078
  default: a(() => [
4074
4079
  d[12] || (d[12] = e("span", { class: "label required" }, "关联单号:", -1)),
4075
4080
  e("span", Jn, l(h.association_order_no || "-"), 1),
4076
- h.association_order_no ? (u(), A(q, {
4081
+ h.association_order_no ? (u(), A(j, {
4077
4082
  key: 0,
4078
4083
  link: "",
4079
4084
  class: "copy-btn",
@@ -4315,7 +4320,7 @@ const On = /* @__PURE__ */ te({
4315
4320
  }, {
4316
4321
  default: a(() => [
4317
4322
  t(ie, {
4318
- data: N.value,
4323
+ data: q.value,
4319
4324
  border: "",
4320
4325
  size: "small",
4321
4326
  "max-height": "420",
@@ -4364,8 +4369,8 @@ const On = /* @__PURE__ */ te({
4364
4369
  default: a(() => [
4365
4370
  e("div", so, [
4366
4371
  t(I, {
4367
- modelValue: S.value,
4368
- "onUpdate:modelValue": d[2] || (d[2] = (le) => S.value = le),
4372
+ modelValue: N.value,
4373
+ "onUpdate:modelValue": d[2] || (d[2] = (le) => N.value = le),
4369
4374
  type: "daterange",
4370
4375
  "range-separator": "-",
4371
4376
  "start-placeholder": "开始日期",
@@ -4457,7 +4462,7 @@ const On = /* @__PURE__ */ te({
4457
4462
  200: "已驳回",
4458
4463
  300: "质检中",
4459
4464
  400: "已质检"
4460
- }, _ = F(!1), n = F(!1), h = F("detail"), g = F(null), N = F(1), D = F(10), S = F([]), k = Ve({
4465
+ }, _ = F(!1), n = F(!1), h = F("detail"), g = F(null), q = F(1), D = F(10), N = F([]), k = Ve({
4461
4466
  qc_no: "",
4462
4467
  receipt_no: "",
4463
4468
  status: 0,
@@ -4486,7 +4491,7 @@ const On = /* @__PURE__ */ te({
4486
4491
  qc_standards: [],
4487
4492
  qc_images: [],
4488
4493
  qc_att_files: []
4489
- }), w = je, j = R(() => {
4494
+ }), w = je, S = R(() => {
4490
4495
  const $ = [], d = k.receipt_no || k.receipt_order_no, V = k.qc_no || m.qcOrderNo;
4491
4496
  return d && $.push({
4492
4497
  type: "receipt",
@@ -4519,16 +4524,16 @@ const On = /* @__PURE__ */ te({
4519
4524
  return `附件${d + 1}`;
4520
4525
  }
4521
4526
  }, p = R(() => {
4522
- if (!g.value) return S.value;
4527
+ if (!g.value) return N.value;
4523
4528
  const [$, d] = g.value;
4524
- return S.value.filter((V) => V.op_time >= $ && V.op_time <= d);
4529
+ return N.value.filter((V) => V.op_time >= $ && V.op_time <= d);
4525
4530
  }), i = R(() => {
4526
- const $ = (N.value - 1) * D.value;
4531
+ const $ = (q.value - 1) * D.value;
4527
4532
  return p.value.slice($, $ + D.value);
4528
4533
  }), y = () => {
4529
4534
  Object.keys(k).forEach(($) => {
4530
4535
  Array.isArray(k[$]) ? k[$] = [] : typeof k[$] == "number" ? k[$] = 0 : k[$] = $ === "urgent_flag" ? 1 : "";
4531
- }), S.value = [], h.value = "detail", g.value = null, N.value = 1;
4536
+ }), N.value = [], h.value = "detail", g.value = null, q.value = 1;
4532
4537
  }, T = async ($) => {
4533
4538
  var V;
4534
4539
  if (!$) {
@@ -4542,9 +4547,9 @@ const On = /* @__PURE__ */ te({
4542
4547
  }
4543
4548
  try {
4544
4549
  n.value = !0;
4545
- const q = await d($);
4546
- if ((q == null ? void 0 : q.code) === 1 && ((V = q.data) != null && V.qc_info)) {
4547
- const H = q.data.qc_info;
4550
+ const j = await d($);
4551
+ if ((j == null ? void 0 : j.code) === 1 && ((V = j.data) != null && V.qc_info)) {
4552
+ const H = j.data.qc_info;
4548
4553
  let L = H.qc_content;
4549
4554
  if (typeof L == "string")
4550
4555
  try {
@@ -4558,8 +4563,8 @@ const On = /* @__PURE__ */ te({
4558
4563
  })) : [], k.qc_images = f(H.images), k.qc_att_files = f(H.att_files);
4559
4564
  } else
4560
4565
  k.qc_standards = [], k.qc_images = [], k.qc_att_files = [];
4561
- } catch (q) {
4562
- console.error("[QcOrderDetailView] getSkuDetail adapter error:", q), k.qc_standards = [], k.qc_images = [], k.qc_att_files = [];
4566
+ } catch (j) {
4567
+ console.error("[QcOrderDetailView] getSkuDetail adapter error:", j), k.qc_standards = [], k.qc_images = [], k.qc_att_files = [];
4563
4568
  } finally {
4564
4569
  n.value = !1;
4565
4570
  }
@@ -4576,42 +4581,42 @@ const On = /* @__PURE__ */ te({
4576
4581
  }
4577
4582
  _.value = !0;
4578
4583
  try {
4579
- const q = await $(m.qcOrderNo);
4580
- (q == null ? void 0 : q.code) === 1 && q.data ? (Object.assign(k, {
4581
- qc_no: q.data.qc_order_no || "",
4582
- receipt_no: q.data.receipt_order_no || "",
4583
- status: q.data.status ?? 0,
4584
- sku_code: q.data.sku_code || "",
4585
- product_name: ((d = q.data.sku_info) == null ? void 0 : d.product_name) || "",
4586
- image: ((V = q.data.sku_image) == null ? void 0 : V.main_image) || "",
4587
- company_name: q.data.company_name || "",
4588
- supplier_name: q.data.supplier_name || "",
4589
- warehouse_name: q.data.warehouse_name || "",
4590
- purchase_leader_name: q.data.purchase_leader_name || "",
4591
- arrival_time: q.data.receipt_date || "",
4592
- qc_member: q.data.qc_leader_name || q.data.qc_leader || "",
4593
- qc_time: q.data.qc_date || "",
4594
- qc_type: q.data.qc_type === 1 ? "仓库" : q.data.qc_type === 2 ? "预检" : q.data.qc_type === 3 ? "免检" : q.data.qc_type === 4 ? "加工质检" : "",
4595
- qc_method: q.data.qc_method === 1 ? "抽检" : q.data.qc_method === 2 ? "全检" : "",
4596
- remark: q.data.qc_memo || q.data.review_memo || "",
4597
- urgent_flag: q.data.urgent_flag || 1,
4598
- sample_qty: q.data.sample_qty || 0,
4599
- sample_bad_qty: q.data.sample_bad_qty || 0,
4600
- total_good_qty: q.data.total_good_qty || 0,
4601
- total_bad_qty: q.data.total_bad_qty || 0,
4602
- location_code_good: q.data.location_code_good || "",
4603
- location_code_bad: q.data.location_code_bad || "",
4604
- need_qc_qty: q.data.need_qc_qty || 0,
4605
- att_files: q.data.att_files || [],
4584
+ const j = await $(m.qcOrderNo);
4585
+ (j == null ? void 0 : j.code) === 1 && j.data ? (Object.assign(k, {
4586
+ qc_no: j.data.qc_order_no || "",
4587
+ receipt_no: j.data.receipt_order_no || "",
4588
+ status: j.data.status ?? 0,
4589
+ sku_code: j.data.sku_code || "",
4590
+ product_name: ((d = j.data.sku_info) == null ? void 0 : d.product_name) || "",
4591
+ image: ((V = j.data.sku_image) == null ? void 0 : V.main_image) || "",
4592
+ company_name: j.data.company_name || "",
4593
+ supplier_name: j.data.supplier_name || "",
4594
+ warehouse_name: j.data.warehouse_name || "",
4595
+ purchase_leader_name: j.data.purchase_leader_name || "",
4596
+ arrival_time: j.data.receipt_date || "",
4597
+ qc_member: j.data.qc_leader_name || j.data.qc_leader || "",
4598
+ qc_time: j.data.qc_date || "",
4599
+ qc_type: j.data.qc_type === 1 ? "仓库" : j.data.qc_type === 2 ? "预检" : j.data.qc_type === 3 ? "免检" : j.data.qc_type === 4 ? "加工质检" : "",
4600
+ qc_method: j.data.qc_method === 1 ? "抽检" : j.data.qc_method === 2 ? "全检" : "",
4601
+ remark: j.data.qc_memo || j.data.review_memo || "",
4602
+ urgent_flag: j.data.urgent_flag || 1,
4603
+ sample_qty: j.data.sample_qty || 0,
4604
+ sample_bad_qty: j.data.sample_bad_qty || 0,
4605
+ total_good_qty: j.data.total_good_qty || 0,
4606
+ total_bad_qty: j.data.total_bad_qty || 0,
4607
+ location_code_good: j.data.location_code_good || "",
4608
+ location_code_bad: j.data.location_code_bad || "",
4609
+ need_qc_qty: j.data.need_qc_qty || 0,
4610
+ att_files: j.data.att_files || [],
4606
4611
  qc_standards: []
4607
- }), T(q.data.sku_code || ""), S.value = (q.data.qc_order_log || []).map((H) => ({
4612
+ }), T(j.data.sku_code || ""), N.value = (j.data.qc_order_log || []).map((H) => ({
4608
4613
  op_time: H.ctime || "",
4609
4614
  operator: H.operator || "",
4610
4615
  op_type: H.type || "",
4611
4616
  op_detail: H.info || ""
4612
4617
  }))) : y();
4613
- } catch (q) {
4614
- console.error("[QcOrderDetailView] getQcDetail error:", q), y();
4618
+ } catch (j) {
4619
+ console.error("[QcOrderDetailView] getQcDetail error:", j), y();
4615
4620
  } finally {
4616
4621
  _.value = !1;
4617
4622
  }
@@ -4627,7 +4632,7 @@ const On = /* @__PURE__ */ te({
4627
4632
  },
4628
4633
  { immediate: !0 }
4629
4634
  ), ($, d) => {
4630
- const V = x("el-icon"), q = x("el-button"), H = x("el-tag"), L = x("el-descriptions-item"), ae = x("el-image"), ve = x("el-descriptions"), ne = x("el-col"), X = x("el-table-column"), ie = x("el-table"), Q = x("el-row"), I = x("el-link"), de = x("el-tab-pane"), Ne = x("el-date-picker"), Me = x("el-pagination"), ze = x("el-tabs"), le = x("el-dialog"), ge = me("loading");
4635
+ const V = x("el-icon"), j = x("el-button"), H = x("el-tag"), L = x("el-descriptions-item"), ae = x("el-image"), ve = x("el-descriptions"), ne = x("el-col"), X = x("el-table-column"), ie = x("el-table"), Q = x("el-row"), I = x("el-link"), de = x("el-tab-pane"), Ne = x("el-date-picker"), Me = x("el-pagination"), ze = x("el-tabs"), le = x("el-dialog"), ge = me("loading");
4631
4636
  return u(), A(le, {
4632
4637
  "model-value": s.modelValue,
4633
4638
  width: "90%",
@@ -4643,7 +4648,7 @@ const On = /* @__PURE__ */ te({
4643
4648
  d[8] || (d[8] = e("span", { class: "j-doc-detail-title__name" }, "质检单", -1)),
4644
4649
  d[9] || (d[9] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
4645
4650
  e("span", uo, l(k.qc_no || "-"), 1),
4646
- k.qc_no ? (u(), A(q, {
4651
+ k.qc_no ? (u(), A(j, {
4647
4652
  key: 0,
4648
4653
  link: "",
4649
4654
  class: "copy-btn",
@@ -4701,7 +4706,7 @@ const On = /* @__PURE__ */ te({
4701
4706
  t(L, { label: "收货单:" }, {
4702
4707
  default: a(() => [
4703
4708
  e("span", null, l(k.receipt_no || "-"), 1),
4704
- k.receipt_no ? (u(), A(q, {
4709
+ k.receipt_no ? (u(), A(j, {
4705
4710
  key: 0,
4706
4711
  link: "",
4707
4712
  class: "copy-btn",
@@ -4970,9 +4975,9 @@ const On = /* @__PURE__ */ te({
4970
4975
  name: "related"
4971
4976
  }, {
4972
4977
  default: a(() => [
4973
- h.value === "related" && j.value.length ? (u(), A(v(Qe), {
4978
+ h.value === "related" && S.value.length ? (u(), A(v(Qe), {
4974
4979
  key: 0,
4975
- "doc-types": j.value
4980
+ "doc-types": S.value
4976
4981
  }, null, 8, ["doc-types"])) : E("", !0)
4977
4982
  ]),
4978
4983
  _: 1
@@ -5029,8 +5034,8 @@ const On = /* @__PURE__ */ te({
5029
5034
  }, 8, ["data"]),
5030
5035
  e("div", No, [
5031
5036
  t(Me, {
5032
- "current-page": N.value,
5033
- "onUpdate:currentPage": d[3] || (d[3] = (ue) => N.value = ue),
5037
+ "current-page": q.value,
5038
+ "onUpdate:currentPage": d[3] || (d[3] = (ue) => q.value = ue),
5034
5039
  "page-size": D.value,
5035
5040
  "onUpdate:pageSize": d[4] || (d[4] = (ue) => D.value = ue),
5036
5041
  "page-sizes": [10, 20, 50],
@@ -5089,8 +5094,8 @@ const On = /* @__PURE__ */ te({
5089
5094
  },
5090
5095
  emits: ["update:modelValue"],
5091
5096
  setup(s) {
5092
- const m = s, r = F(!1), _ = F("products"), n = F({}), h = F(null), g = F(1), N = F(10), D = je, S = R(() => ta(n.value.order_item, !1)), k = R(
5093
- () => S.value.reduce((i, y) => i + (y.inbound_qty || 0), 0)
5097
+ const m = s, r = F(!1), _ = F("products"), n = F({}), h = F(null), g = F(1), q = F(10), D = je, N = R(() => ta(n.value.order_item, !1)), k = R(
5098
+ () => N.value.reduce((i, y) => i + (y.inbound_qty || 0), 0)
5094
5099
  ), w = R(() => {
5095
5100
  const i = Number(n.value.inbound_type), y = n.value.source_order_no || "", T = m.inboundOrderNo || n.value.inbound_order_no || "", M = [];
5096
5101
  return (Number.isFinite(i) ? [1, 4, 5].includes(i) ? ["receipt", "qc", "putaway"] : i === 3 ? ["qc", "putaway"] : i === 2 ? ["putaway"] : i === 99 ? ["receipt", "putaway"] : [] : []).forEach((J) => {
@@ -5111,14 +5116,14 @@ const On = /* @__PURE__ */ te({
5111
5116
  docNo: T
5112
5117
  });
5113
5118
  }), M;
5114
- }), j = R(() => ({ 100: "warning", 200: "primary", 300: "success" })[n.value.status] ?? "info"), P = R(() => {
5119
+ }), S = R(() => ({ 100: "warning", 200: "primary", 300: "success" })[n.value.status] ?? "info"), P = R(() => {
5115
5120
  const i = n.value.inbound_order_log || [];
5116
5121
  if (!h.value) return i;
5117
5122
  const [y, T] = h.value;
5118
5123
  return i.filter((M) => M.ctime >= y && M.ctime <= T);
5119
5124
  }), b = R(() => {
5120
- const i = (g.value - 1) * N.value;
5121
- return P.value.slice(i, i + N.value);
5125
+ const i = (g.value - 1) * q.value;
5126
+ return P.value.slice(i, i + q.value);
5122
5127
  }), o = () => {
5123
5128
  n.value = {}, _.value = "products", h.value = null, g.value = 1;
5124
5129
  }, f = async () => {
@@ -5152,7 +5157,7 @@ const On = /* @__PURE__ */ te({
5152
5157
  },
5153
5158
  { immediate: !0 }
5154
5159
  ), (i, y) => {
5155
- const T = x("el-icon"), M = x("el-button"), B = x("el-tag"), J = x("el-col"), $ = x("el-link"), d = x("el-row"), V = x("el-table-column"), q = x("el-image"), H = x("el-table"), L = x("el-tab-pane"), ae = x("el-empty"), ve = x("el-date-picker"), ne = x("el-pagination"), X = x("el-tabs"), ie = x("el-dialog"), Q = me("loading");
5160
+ const T = x("el-icon"), M = x("el-button"), B = x("el-tag"), J = x("el-col"), $ = x("el-link"), d = x("el-row"), V = x("el-table-column"), j = x("el-image"), H = x("el-table"), L = x("el-tab-pane"), ae = x("el-empty"), ve = x("el-date-picker"), ne = x("el-pagination"), X = x("el-tabs"), ie = x("el-dialog"), Q = me("loading");
5156
5161
  return u(), A(ie, {
5157
5162
  "model-value": s.modelValue,
5158
5163
  width: "90%",
@@ -5186,7 +5191,7 @@ const On = /* @__PURE__ */ te({
5186
5191
  })) : E("", !0),
5187
5192
  t(B, {
5188
5193
  size: "small",
5189
- type: j.value
5194
+ type: S.value
5190
5195
  }, {
5191
5196
  default: a(() => [
5192
5197
  c(l(v(To)(n.value.status)), 1)
@@ -5321,7 +5326,7 @@ const On = /* @__PURE__ */ te({
5321
5326
  }, {
5322
5327
  default: a(() => [
5323
5328
  t(H, {
5324
- data: S.value,
5329
+ data: N.value,
5325
5330
  border: "",
5326
5331
  size: "small",
5327
5332
  "max-height": "420",
@@ -5346,7 +5351,7 @@ const On = /* @__PURE__ */ te({
5346
5351
  default: a(({ row: I }) => {
5347
5352
  var de;
5348
5353
  return [
5349
- (de = I.sku_image) != null && de.main_image ? (u(), A(q, {
5354
+ (de = I.sku_image) != null && de.main_image ? (u(), A(j, {
5350
5355
  key: 0,
5351
5356
  src: I.sku_image.main_image,
5352
5357
  style: { width: "40px", height: "40px" },
@@ -5560,8 +5565,8 @@ const On = /* @__PURE__ */ te({
5560
5565
  t(ne, {
5561
5566
  "current-page": g.value,
5562
5567
  "onUpdate:currentPage": y[3] || (y[3] = (I) => g.value = I),
5563
- "page-size": N.value,
5564
- "onUpdate:pageSize": y[4] || (y[4] = (I) => N.value = I),
5568
+ "page-size": q.value,
5569
+ "onUpdate:pageSize": y[4] || (y[4] = (I) => q.value = I),
5565
5570
  "page-sizes": [10, 20, 50],
5566
5571
  total: P.value.length,
5567
5572
  layout: "total, prev, pager, next, sizes, jumper",
@@ -5581,7 +5586,7 @@ const On = /* @__PURE__ */ te({
5581
5586
  }, 8, ["model-value"]);
5582
5587
  };
5583
5588
  }
5584
- }), Wo = /* @__PURE__ */ se(Qo, [["__scopeId", "data-v-3b097b17"]]), wt = 300, Xo = { class: "j-doc-detail-title" }, Zo = { class: "j-doc-detail-title__no" }, Go = { class: "putaway-detail" }, ei = /* @__PURE__ */ te({
5589
+ }), Wo = /* @__PURE__ */ se(Qo, [["__scopeId", "data-v-3b097b17"]]), Dt = 300, Xo = { class: "j-doc-detail-title" }, Zo = { class: "j-doc-detail-title__no" }, Go = { class: "putaway-detail" }, ei = /* @__PURE__ */ te({
5585
5590
  __name: "PutawayOrderDetailView",
5586
5591
  props: {
5587
5592
  modelValue: { type: Boolean },
@@ -5597,12 +5602,12 @@ const On = /* @__PURE__ */ te({
5597
5602
  paramKey: "inbound_order_no",
5598
5603
  docNo: f
5599
5604
  }), b;
5600
- }), N = (b) => b === 300 ? "success" : b === 100 || b === 200 ? "warning" : "info", D = (b) => {
5605
+ }), q = (b) => b === 300 ? "success" : b === 100 || b === 200 ? "warning" : "info", D = (b) => {
5601
5606
  var f;
5602
- return Number((f = n.value) == null ? void 0 : f.status) === wt ? Number((b == null ? void 0 : b.good_qty) ?? 0) : Number((b == null ? void 0 : b.pending_good_qty) ?? 0);
5603
- }, S = (b) => {
5607
+ return Number((f = n.value) == null ? void 0 : f.status) === Dt ? Number((b == null ? void 0 : b.good_qty) ?? 0) : Number((b == null ? void 0 : b.pending_good_qty) ?? 0);
5608
+ }, N = (b) => {
5604
5609
  var f;
5605
- return Number((f = n.value) == null ? void 0 : f.status) === wt ? Number((b == null ? void 0 : b.bad_qty) ?? 0) : Number((b == null ? void 0 : b.pending_bad_qty) ?? 0);
5610
+ return Number((f = n.value) == null ? void 0 : f.status) === Dt ? Number((b == null ? void 0 : b.bad_qty) ?? 0) : Number((b == null ? void 0 : b.pending_bad_qty) ?? 0);
5606
5611
  }, k = () => {
5607
5612
  n.value = {}, _.value = "items";
5608
5613
  }, w = async () => {
@@ -5624,7 +5629,7 @@ const On = /* @__PURE__ */ te({
5624
5629
  } finally {
5625
5630
  r.value = !1;
5626
5631
  }
5627
- }, j = () => {
5632
+ }, S = () => {
5628
5633
  k(), w();
5629
5634
  }, P = () => {
5630
5635
  k();
@@ -5632,7 +5637,7 @@ const On = /* @__PURE__ */ te({
5632
5637
  return re(
5633
5638
  () => m.modelValue,
5634
5639
  (b) => {
5635
- b ? j() : P();
5640
+ b ? S() : P();
5636
5641
  },
5637
5642
  { immediate: !0 }
5638
5643
  ), (b, o) => {
@@ -5669,7 +5674,7 @@ const On = /* @__PURE__ */ te({
5669
5674
  _: 1
5670
5675
  })) : E("", !0),
5671
5676
  t(p, {
5672
- type: N(n.value.status),
5677
+ type: q(n.value.status),
5673
5678
  size: "small"
5674
5679
  }, {
5675
5680
  default: a(() => [
@@ -5721,7 +5726,7 @@ const On = /* @__PURE__ */ te({
5721
5726
  t(i, { label: "状态" }, {
5722
5727
  default: a(() => [
5723
5728
  t(p, {
5724
- type: N(n.value.status),
5729
+ type: q(n.value.status),
5725
5730
  size: "small"
5726
5731
  }, {
5727
5732
  default: a(() => [
@@ -5838,9 +5843,9 @@ const On = /* @__PURE__ */ te({
5838
5843
  "min-width": "140"
5839
5844
  }, {
5840
5845
  default: a(({ row: V }) => {
5841
- var q;
5846
+ var j;
5842
5847
  return [
5843
- c(l(((q = V.sku_info) == null ? void 0 : q.product_name) || "-"), 1)
5848
+ c(l(((j = V.sku_info) == null ? void 0 : j.product_name) || "-"), 1)
5844
5849
  ];
5845
5850
  }),
5846
5851
  _: 1
@@ -5859,7 +5864,7 @@ const On = /* @__PURE__ */ te({
5859
5864
  "min-width": "100"
5860
5865
  }, {
5861
5866
  default: a(({ row: V }) => [
5862
- c(l(S(V)), 1)
5867
+ c(l(N(V)), 1)
5863
5868
  ]),
5864
5869
  _: 1
5865
5870
  })
@@ -5952,7 +5957,7 @@ const On = /* @__PURE__ */ te({
5952
5957
  200: "部分出库",
5953
5958
  300: "已完成",
5954
5959
  600: "已取消"
5955
- }, n = F(!1), h = F("products"), g = F({}), N = F(1), D = F(10), S = je, k = (i) => {
5960
+ }, n = F(!1), h = F("products"), g = F({}), q = F(1), D = F(10), N = je, k = (i) => {
5956
5961
  var y;
5957
5962
  return i.main_image || ((y = i.sku_image) == null ? void 0 : y.main_image) || "";
5958
5963
  }, w = R(() => ({
@@ -5960,16 +5965,16 @@ const On = /* @__PURE__ */ te({
5960
5965
  200: "",
5961
5966
  300: "success",
5962
5967
  600: "info"
5963
- })[g.value.status] ?? "info"), j = R(
5968
+ })[g.value.status] ?? "info"), S = R(
5964
5969
  () => (g.value.order_item || []).reduce(
5965
5970
  (i, y) => i + (y.good_qty || 0) + (y.bad_qty || 0),
5966
5971
  0
5967
5972
  )
5968
5973
  ), P = R(() => g.value.outbound_order_log || []), b = R(() => {
5969
- const i = (N.value - 1) * D.value;
5974
+ const i = (q.value - 1) * D.value;
5970
5975
  return P.value.slice(i, i + D.value);
5971
5976
  }), o = () => {
5972
- g.value = {}, h.value = "products", N.value = 1;
5977
+ g.value = {}, h.value = "products", q.value = 1;
5973
5978
  }, f = async () => {
5974
5979
  if (!m.outboundOrderNo) {
5975
5980
  o();
@@ -6001,7 +6006,7 @@ const On = /* @__PURE__ */ te({
6001
6006
  },
6002
6007
  { immediate: !0 }
6003
6008
  ), (i, y) => {
6004
- const T = x("el-icon"), M = x("el-button"), B = x("el-tag"), J = x("el-col"), $ = x("el-link"), d = x("el-row"), V = x("el-table-column"), q = x("el-image"), H = x("el-table"), L = x("el-tab-pane"), ae = x("el-empty"), ve = x("el-pagination"), ne = x("el-tabs"), X = x("el-dialog"), ie = me("loading");
6009
+ const T = x("el-icon"), M = x("el-button"), B = x("el-tag"), J = x("el-col"), $ = x("el-link"), d = x("el-row"), V = x("el-table-column"), j = x("el-image"), H = x("el-table"), L = x("el-tab-pane"), ae = x("el-empty"), ve = x("el-pagination"), ne = x("el-tabs"), X = x("el-dialog"), ie = me("loading");
6005
6010
  return u(), A(X, {
6006
6011
  "model-value": s.modelValue,
6007
6012
  width: "90%",
@@ -6021,7 +6026,7 @@ const On = /* @__PURE__ */ te({
6021
6026
  key: 0,
6022
6027
  link: "",
6023
6028
  class: "copy-btn",
6024
- onClick: y[0] || (y[0] = (Q) => v(S)(g.value.outbound_order_no))
6029
+ onClick: y[0] || (y[0] = (Q) => v(N)(g.value.outbound_order_no))
6025
6030
  }, {
6026
6031
  default: a(() => [
6027
6032
  t(T, null, {
@@ -6076,7 +6081,7 @@ const On = /* @__PURE__ */ te({
6076
6081
  key: 0,
6077
6082
  link: "",
6078
6083
  class: "copy-btn",
6079
- onClick: y[1] || (y[1] = (Q) => v(S)(g.value.source_order_no))
6084
+ onClick: y[1] || (y[1] = (Q) => v(N)(g.value.source_order_no))
6080
6085
  }, {
6081
6086
  default: a(() => [
6082
6087
  t(T, null, {
@@ -6115,7 +6120,7 @@ const On = /* @__PURE__ */ te({
6115
6120
  t(J, { span: 6 }, {
6116
6121
  default: a(() => [
6117
6122
  y[15] || (y[15] = e("span", { class: "label" }, "总出库量:", -1)),
6118
- c(l(j.value), 1)
6123
+ c(l(S.value), 1)
6119
6124
  ]),
6120
6125
  _: 1
6121
6126
  }),
@@ -6193,7 +6198,7 @@ const On = /* @__PURE__ */ te({
6193
6198
  align: "center"
6194
6199
  }, {
6195
6200
  default: a(({ row: Q }) => [
6196
- k(Q) ? (u(), A(q, {
6201
+ k(Q) ? (u(), A(j, {
6197
6202
  key: 0,
6198
6203
  src: k(Q),
6199
6204
  style: { width: "40px", height: "40px" },
@@ -6335,8 +6340,8 @@ const On = /* @__PURE__ */ te({
6335
6340
  _: 1
6336
6341
  }, 8, ["data"]),
6337
6342
  t(ve, {
6338
- "current-page": N.value,
6339
- "onUpdate:currentPage": y[2] || (y[2] = (Q) => N.value = Q),
6343
+ "current-page": q.value,
6344
+ "onUpdate:currentPage": y[2] || (y[2] = (Q) => q.value = Q),
6340
6345
  "page-size": D.value,
6341
6346
  "onUpdate:pageSize": y[3] || (y[3] = (Q) => D.value = Q),
6342
6347
  "page-sizes": [10, 20, 50],
@@ -6379,7 +6384,7 @@ const On = /* @__PURE__ */ te({
6379
6384
  400: "已调拨"
6380
6385
  }, _ = F(!1), n = F({}), h = je, g = () => {
6381
6386
  n.value = {};
6382
- }, N = async () => {
6387
+ }, q = async () => {
6383
6388
  if (!m.transferOrderNo) {
6384
6389
  g();
6385
6390
  return;
@@ -6399,18 +6404,18 @@ const On = /* @__PURE__ */ te({
6399
6404
  _.value = !1;
6400
6405
  }
6401
6406
  }, D = () => {
6402
- g(), N();
6403
- }, S = () => {
6407
+ g(), q();
6408
+ }, N = () => {
6404
6409
  g();
6405
6410
  };
6406
6411
  return re(
6407
6412
  () => m.modelValue,
6408
6413
  (k) => {
6409
- k ? D() : S();
6414
+ k ? D() : N();
6410
6415
  },
6411
6416
  { immediate: !0 }
6412
6417
  ), (k, w) => {
6413
- const j = x("el-icon"), P = x("el-button"), b = x("el-tag"), o = x("el-link"), f = x("el-table-column"), O = x("el-table"), p = x("el-dialog"), i = me("loading");
6418
+ const S = x("el-icon"), P = x("el-button"), b = x("el-tag"), o = x("el-link"), f = x("el-table-column"), O = x("el-table"), p = x("el-dialog"), i = me("loading");
6414
6419
  return u(), A(p, {
6415
6420
  "model-value": s.modelValue,
6416
6421
  width: "90%",
@@ -6433,7 +6438,7 @@ const On = /* @__PURE__ */ te({
6433
6438
  onClick: w[0] || (w[0] = (y) => v(h)(n.value.transfer_order_no))
6434
6439
  }, {
6435
6440
  default: a(() => [
6436
- t(j, null, {
6441
+ t(S, null, {
6437
6442
  default: a(() => [
6438
6443
  t(v(ye))
6439
6444
  ]),
@@ -6592,20 +6597,20 @@ const On = /* @__PURE__ */ te({
6592
6597
  100: "待加工",
6593
6598
  200: "加工中",
6594
6599
  300: "已完成"
6595
- }, _ = F(!1), n = F("products"), h = F({}), g = F(null), N = F(1), D = F(10), S = je, k = (p) => ({
6600
+ }, _ = F(!1), n = F("products"), h = F({}), g = F(null), q = F(1), D = F(10), N = je, k = (p) => ({
6596
6601
  "status-pending": p === 100,
6597
6602
  "status-processing": p === 200,
6598
6603
  "status-done": p === 300
6599
- }), w = (p) => [p.user_account_name, p.fnsku, p.seller_sku].filter(Boolean).join(" / ") || "-", j = R(() => {
6604
+ }), w = (p) => [p.user_account_name, p.fnsku, p.seller_sku].filter(Boolean).join(" / ") || "-", S = R(() => {
6600
6605
  const p = h.value.process_order_log || h.value.action_log || h.value.processing_order_log || [];
6601
6606
  if (!g.value) return p;
6602
6607
  const [i, y] = g.value;
6603
6608
  return p.filter((T) => T.ctime >= i && T.ctime <= y);
6604
6609
  }), P = R(() => {
6605
- const p = (N.value - 1) * D.value;
6606
- return j.value.slice(p, p + D.value);
6610
+ const p = (q.value - 1) * D.value;
6611
+ return S.value.slice(p, p + D.value);
6607
6612
  }), b = () => {
6608
- h.value = {}, n.value = "products", g.value = null, N.value = 1;
6613
+ h.value = {}, n.value = "products", g.value = null, q.value = 1;
6609
6614
  }, o = async () => {
6610
6615
  var i;
6611
6616
  if (!m.processingOrderNo) {
@@ -6638,7 +6643,7 @@ const On = /* @__PURE__ */ te({
6638
6643
  },
6639
6644
  { immediate: !0 }
6640
6645
  ), (p, i) => {
6641
- const y = x("el-icon"), T = x("el-button"), M = x("el-tag"), B = x("el-col"), J = x("el-row"), $ = x("el-table-column"), d = x("el-table"), V = x("el-image"), q = x("el-tab-pane"), H = x("el-date-picker"), L = x("el-pagination"), ae = x("el-tabs"), ve = x("el-dialog"), ne = me("loading");
6646
+ const y = x("el-icon"), T = x("el-button"), M = x("el-tag"), B = x("el-col"), J = x("el-row"), $ = x("el-table-column"), d = x("el-table"), V = x("el-image"), j = x("el-tab-pane"), H = x("el-date-picker"), L = x("el-pagination"), ae = x("el-tabs"), ve = x("el-dialog"), ne = me("loading");
6642
6647
  return u(), A(ve, {
6643
6648
  "model-value": s.modelValue,
6644
6649
  width: "90%",
@@ -6658,7 +6663,7 @@ const On = /* @__PURE__ */ te({
6658
6663
  key: 0,
6659
6664
  link: "",
6660
6665
  class: "copy-btn",
6661
- onClick: i[0] || (i[0] = (X) => v(S)(h.value.processing_order_no))
6666
+ onClick: i[0] || (i[0] = (X) => v(N)(h.value.processing_order_no))
6662
6667
  }, {
6663
6668
  default: a(() => [
6664
6669
  t(y, null, {
@@ -6704,7 +6709,7 @@ const On = /* @__PURE__ */ te({
6704
6709
  key: 0,
6705
6710
  link: "",
6706
6711
  class: "copy-btn",
6707
- onClick: i[1] || (i[1] = (X) => v(S)(h.value.purchase_plan_no))
6712
+ onClick: i[1] || (i[1] = (X) => v(N)(h.value.purchase_plan_no))
6708
6713
  }, {
6709
6714
  default: a(() => [
6710
6715
  t(y, null, {
@@ -6824,7 +6829,7 @@ const On = /* @__PURE__ */ te({
6824
6829
  class: "detail-tabs"
6825
6830
  }, {
6826
6831
  default: a(() => [
6827
- t(q, {
6832
+ t(j, {
6828
6833
  label: "加工产品",
6829
6834
  name: "products"
6830
6835
  }, {
@@ -6863,7 +6868,7 @@ const On = /* @__PURE__ */ te({
6863
6868
  key: 0,
6864
6869
  link: "",
6865
6870
  class: "copy-btn",
6866
- onClick: xe((Q) => v(S)(ie.purchase_no), ["stop"])
6871
+ onClick: xe((Q) => v(N)(ie.purchase_no), ["stop"])
6867
6872
  }, {
6868
6873
  default: a(() => [
6869
6874
  t(y, null, {
@@ -6993,7 +6998,7 @@ const On = /* @__PURE__ */ te({
6993
6998
  ]),
6994
6999
  _: 1
6995
7000
  }),
6996
- t(q, {
7001
+ t(j, {
6997
7002
  label: "操作日志",
6998
7003
  name: "logs"
6999
7004
  }, {
@@ -7047,12 +7052,12 @@ const On = /* @__PURE__ */ te({
7047
7052
  _: 1
7048
7053
  }, 8, ["data"]),
7049
7054
  t(L, {
7050
- "current-page": N.value,
7051
- "onUpdate:currentPage": i[3] || (i[3] = (X) => N.value = X),
7055
+ "current-page": q.value,
7056
+ "onUpdate:currentPage": i[3] || (i[3] = (X) => q.value = X),
7052
7057
  "page-size": D.value,
7053
7058
  "onUpdate:pageSize": i[4] || (i[4] = (X) => D.value = X),
7054
7059
  "page-sizes": [10, 20, 50],
7055
- total: j.value.length,
7060
+ total: S.value.length,
7056
7061
  layout: "total, prev, pager, next, sizes, jumper",
7057
7062
  class: "log-pagination"
7058
7063
  }, null, 8, ["current-page", "page-size", "total"])
@@ -7101,17 +7106,17 @@ const On = /* @__PURE__ */ te({
7101
7106
  2: "补货",
7102
7107
  3: "退回",
7103
7108
  4: "让步接收"
7104
- }, h = F(!1), g = Ve({}), N = R(() => {
7109
+ }, h = F(!1), g = Ve({}), q = R(() => {
7105
7110
  const o = g.order_item;
7106
7111
  return Array.isArray(o) ? o : [];
7107
7112
  }), D = R(() => {
7108
7113
  const o = Number(g.status);
7109
7114
  return o === -1 ? "info" : o === 100 ? "warning" : o === 200 ? "danger" : o === 300 ? "primary" : o === 400 ? "success" : "info";
7110
- }), S = (o) => o == null || o === "" ? "-" : String(o), k = (o, f) => o == null || o === "" ? "-" : f[String(o)] ?? "-", w = (o) => {
7115
+ }), N = (o) => o == null || o === "" ? "-" : String(o), k = (o, f) => o == null || o === "" ? "-" : f[String(o)] ?? "-", w = (o) => {
7111
7116
  if (o == null || o === "") return "-";
7112
7117
  const f = Number(o);
7113
7118
  return f === 1 ? "是" : f === 0 ? "否" : "-";
7114
- }, j = (o) => {
7119
+ }, S = (o) => {
7115
7120
  if (o == null || o === "") return "-";
7116
7121
  const f = Number(o);
7117
7122
  return f === 1 ? "是" : f === 0 ? "否" : "-";
@@ -7158,7 +7163,7 @@ const On = /* @__PURE__ */ te({
7158
7163
  e("div", Ri, [
7159
7164
  f[3] || (f[3] = e("span", { class: "j-doc-detail-title__name" }, "异常单", -1)),
7160
7165
  f[4] || (f[4] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
7161
- e("span", Ii, l(S(g.abnormal_no)), 1),
7166
+ e("span", Ii, l(N(g.abnormal_no)), 1),
7162
7167
  t(O, {
7163
7168
  size: "small",
7164
7169
  type: D.value
@@ -7203,7 +7208,7 @@ const On = /* @__PURE__ */ te({
7203
7208
  e("div", Bi, [
7204
7209
  e("div", Ui, [
7205
7210
  f[6] || (f[6] = e("span", { class: "info-label" }, "异常单号:", -1)),
7206
- e("span", Mi, l(S(g.abnormal_no)), 1)
7211
+ e("span", Mi, l(N(g.abnormal_no)), 1)
7207
7212
  ]),
7208
7213
  e("div", Li, [
7209
7214
  f[7] || (f[7] = e("span", { class: "info-label" }, "状态:", -1)),
@@ -7211,59 +7216,59 @@ const On = /* @__PURE__ */ te({
7211
7216
  ]),
7212
7217
  e("div", Fi, [
7213
7218
  f[8] || (f[8] = e("span", { class: "info-label" }, "收货单号:", -1)),
7214
- e("span", Ji, l(S(g.receipt_order_no)), 1)
7219
+ e("span", Ji, l(N(g.receipt_order_no)), 1)
7215
7220
  ]),
7216
7221
  e("div", Hi, [
7217
7222
  f[9] || (f[9] = e("span", { class: "info-label" }, "采购单号:", -1)),
7218
- e("span", Yi, l(S(g.purchase_no)), 1)
7223
+ e("span", Yi, l(N(g.purchase_no)), 1)
7219
7224
  ]),
7220
7225
  e("div", Qi, [
7221
7226
  f[10] || (f[10] = e("span", { class: "info-label" }, "收货仓库:", -1)),
7222
- e("span", Wi, l(S(g.warehouse_name)), 1)
7227
+ e("span", Wi, l(N(g.warehouse_name)), 1)
7223
7228
  ]),
7224
7229
  e("div", Xi, [
7225
7230
  f[11] || (f[11] = e("span", { class: "info-label" }, "采购公司:", -1)),
7226
- e("span", Zi, l(S(g.company_name)), 1)
7231
+ e("span", Zi, l(N(g.company_name)), 1)
7227
7232
  ]),
7228
7233
  e("div", Gi, [
7229
7234
  f[12] || (f[12] = e("span", { class: "info-label" }, "供应商:", -1)),
7230
- e("span", ed, l(S(g.supplier_name)), 1)
7235
+ e("span", ed, l(N(g.supplier_name)), 1)
7231
7236
  ]),
7232
7237
  e("div", td, [
7233
7238
  f[13] || (f[13] = e("span", { class: "info-label" }, "采购员:", -1)),
7234
- e("span", ad, l(S(g.purchase_leader_name)), 1)
7239
+ e("span", ad, l(N(g.purchase_leader_name)), 1)
7235
7240
  ]),
7236
7241
  e("div", ld, [
7237
7242
  f[14] || (f[14] = e("span", { class: "info-label" }, "创建人:", -1)),
7238
- e("span", sd, l(S(g.create_leader_name)), 1)
7243
+ e("span", sd, l(N(g.create_leader_name)), 1)
7239
7244
  ]),
7240
7245
  e("div", nd, [
7241
7246
  f[15] || (f[15] = e("span", { class: "info-label" }, "创建时间:", -1)),
7242
- e("span", od, l(S(g.ctime)), 1)
7247
+ e("span", od, l(N(g.ctime)), 1)
7243
7248
  ]),
7244
7249
  e("div", id, [
7245
7250
  f[16] || (f[16] = e("span", { class: "info-label" }, "修改时间:", -1)),
7246
- e("span", dd, l(S(g.mtime)), 1)
7251
+ e("span", dd, l(N(g.mtime)), 1)
7247
7252
  ]),
7248
7253
  e("div", rd, [
7249
7254
  f[17] || (f[17] = e("span", { class: "info-label" }, "审核日期:", -1)),
7250
- e("span", ud, l(S(g.review_date)), 1)
7255
+ e("span", ud, l(N(g.review_date)), 1)
7251
7256
  ]),
7252
7257
  e("div", cd, [
7253
7258
  f[18] || (f[18] = e("span", { class: "info-label" }, "加急:", -1)),
7254
- e("span", _d, l(j(g.urgent_flag)), 1)
7259
+ e("span", _d, l(S(g.urgent_flag)), 1)
7255
7260
  ]),
7256
7261
  e("div", pd, [
7257
7262
  f[19] || (f[19] = e("span", { class: "info-label" }, "操作人:", -1)),
7258
- e("span", md, l(S(g.operator)), 1)
7263
+ e("span", md, l(N(g.operator)), 1)
7259
7264
  ]),
7260
7265
  e("div", fd, [
7261
7266
  f[20] || (f[20] = e("span", { class: "info-label" }, "审核备注:", -1)),
7262
- e("span", vd, l(S(g.review_memo)), 1)
7267
+ e("span", vd, l(N(g.review_memo)), 1)
7263
7268
  ]),
7264
7269
  e("div", bd, [
7265
7270
  f[21] || (f[21] = e("span", { class: "info-label" }, "备注:", -1)),
7266
- e("span", yd, l(S(g.abnormal_memo)), 1)
7271
+ e("span", yd, l(N(g.abnormal_memo)), 1)
7267
7272
  ])
7268
7273
  ])
7269
7274
  ]),
@@ -7275,9 +7280,9 @@ const On = /* @__PURE__ */ te({
7275
7280
  class: "section-card"
7276
7281
  }, {
7277
7282
  default: a(() => [
7278
- N.value.length ? (u(), A(T, {
7283
+ q.value.length ? (u(), A(T, {
7279
7284
  key: 0,
7280
- data: N.value,
7285
+ data: q.value,
7281
7286
  border: "",
7282
7287
  size: "small",
7283
7288
  class: "detail-table",
@@ -7318,14 +7323,14 @@ const On = /* @__PURE__ */ te({
7318
7323
  var d, V;
7319
7324
  return [
7320
7325
  e("div", hd, [
7321
- e("div", kd, l(S((d = $.sku_info) == null ? void 0 : d.product_name)), 1),
7326
+ e("div", kd, l(N((d = $.sku_info) == null ? void 0 : d.product_name)), 1),
7322
7327
  e("div", $d, [
7323
7328
  $.sku_code ? (u(), A(v(pe), {
7324
7329
  key: 0,
7325
7330
  code: $.sku_code
7326
7331
  }, null, 8, ["code"])) : (u(), C("span", wd, "-"))
7327
7332
  ]),
7328
- e("div", Dd, "SPU:" + l(S((V = $.sku_info) == null ? void 0 : V.spu_code)), 1)
7333
+ e("div", Dd, "SPU:" + l(N((V = $.sku_info) == null ? void 0 : V.spu_code)), 1)
7329
7334
  ])
7330
7335
  ];
7331
7336
  }),
@@ -7337,7 +7342,7 @@ const On = /* @__PURE__ */ te({
7337
7342
  align: "right"
7338
7343
  }, {
7339
7344
  default: a(({ row: $ }) => [
7340
- c(l(S($.notice_receive_qty)), 1)
7345
+ c(l(N($.notice_receive_qty)), 1)
7341
7346
  ]),
7342
7347
  _: 1
7343
7348
  }),
@@ -7347,7 +7352,7 @@ const On = /* @__PURE__ */ te({
7347
7352
  align: "right"
7348
7353
  }, {
7349
7354
  default: a(({ row: $ }) => [
7350
- c(l(S($.receive_qty)), 1)
7355
+ c(l(N($.receive_qty)), 1)
7351
7356
  ]),
7352
7357
  _: 1
7353
7358
  }),
@@ -7367,7 +7372,7 @@ const On = /* @__PURE__ */ te({
7367
7372
  align: "right"
7368
7373
  }, {
7369
7374
  default: a(({ row: $ }) => [
7370
- c(l(S($.abnormal_qty)), 1)
7375
+ c(l(N($.abnormal_qty)), 1)
7371
7376
  ]),
7372
7377
  _: 1
7373
7378
  }),
@@ -7397,7 +7402,7 @@ const On = /* @__PURE__ */ te({
7397
7402
  align: "center"
7398
7403
  }, {
7399
7404
  default: a(({ row: $ }) => [
7400
- c(l(S($.expected_arrival_date)), 1)
7405
+ c(l(N($.expected_arrival_date)), 1)
7401
7406
  ]),
7402
7407
  _: 1
7403
7408
  }),
@@ -7407,7 +7412,7 @@ const On = /* @__PURE__ */ te({
7407
7412
  "show-overflow-tooltip": ""
7408
7413
  }, {
7409
7414
  default: a(({ row: $ }) => [
7410
- c(l(S($.arrival_memo)), 1)
7415
+ c(l(N($.arrival_memo)), 1)
7411
7416
  ]),
7412
7417
  _: 1
7413
7418
  }),
@@ -7417,7 +7422,7 @@ const On = /* @__PURE__ */ te({
7417
7422
  "show-overflow-tooltip": ""
7418
7423
  }, {
7419
7424
  default: a(({ row: $ }) => [
7420
- c(l(S($.user_account_name)), 1)
7425
+ c(l(N($.user_account_name)), 1)
7421
7426
  ]),
7422
7427
  _: 1
7423
7428
  }),
@@ -7427,7 +7432,7 @@ const On = /* @__PURE__ */ te({
7427
7432
  "show-overflow-tooltip": ""
7428
7433
  }, {
7429
7434
  default: a(({ row: $ }) => [
7430
- c(l(S($.shop_account)), 1)
7435
+ c(l(N($.shop_account)), 1)
7431
7436
  ]),
7432
7437
  _: 1
7433
7438
  }),
@@ -7437,7 +7442,7 @@ const On = /* @__PURE__ */ te({
7437
7442
  "show-overflow-tooltip": ""
7438
7443
  }, {
7439
7444
  default: a(({ row: $ }) => [
7440
- c(l(S($.seller_sku)), 1)
7445
+ c(l(N($.seller_sku)), 1)
7441
7446
  ]),
7442
7447
  _: 1
7443
7448
  }),
@@ -7447,7 +7452,7 @@ const On = /* @__PURE__ */ te({
7447
7452
  "show-overflow-tooltip": ""
7448
7453
  }, {
7449
7454
  default: a(({ row: $ }) => [
7450
- c(l(S($.purchase_no)), 1)
7455
+ c(l(N($.purchase_no)), 1)
7451
7456
  ]),
7452
7457
  _: 1
7453
7458
  })
@@ -7482,7 +7487,7 @@ const On = /* @__PURE__ */ te({
7482
7487
  },
7483
7488
  emits: ["update:modelValue"],
7484
7489
  setup(s) {
7485
- const m = s, r = F(!1), _ = F("detail"), n = Ve({}), h = R(() => Array.isArray(n.details) ? n.details : []), g = R(() => Array.isArray(n.flow_list) ? n.flow_list : []), N = R(() => {
7490
+ const m = s, r = F(!1), _ = F("detail"), n = Ve({}), h = R(() => Array.isArray(n.details) ? n.details : []), g = R(() => Array.isArray(n.flow_list) ? n.flow_list : []), q = R(() => {
7486
7491
  const b = n.is_urgent;
7487
7492
  return b === !0 || Number(b) === 2 || Number(b) === 1;
7488
7493
  }), D = R(() => {
@@ -7509,7 +7514,7 @@ const On = /* @__PURE__ */ te({
7509
7514
  });
7510
7515
  });
7511
7516
  }), b;
7512
- }), S = R(() => {
7517
+ }), N = R(() => {
7513
7518
  let b = 0, o = 0, f = 0;
7514
7519
  return h.value.forEach((O) => {
7515
7520
  (O.fees || []).forEach((p) => {
@@ -7521,24 +7526,24 @@ const On = /* @__PURE__ */ te({
7521
7526
  freight_total: o.toFixed(4),
7522
7527
  apply_total: f.toFixed(4)
7523
7528
  };
7524
- }), k = ({ row: b, columnIndex: o }) => o <= 6 ? b._feeIndex === 0 ? { rowspan: b._feeCount, colspan: 1 } : { rowspan: 0, colspan: 0 } : { rowspan: 1, colspan: 1 }, w = (b) => b == null || b === "" ? "-" : String(b), j = () => {
7529
+ }), k = ({ row: b, columnIndex: o }) => o <= 6 ? b._feeIndex === 0 ? { rowspan: b._feeCount, colspan: 1 } : { rowspan: 0, colspan: 0 } : { rowspan: 1, colspan: 1 }, w = (b) => b == null || b === "" ? "-" : String(b), S = () => {
7525
7530
  Object.keys(n).forEach((b) => delete n[b]), _.value = "detail";
7526
7531
  }, P = async () => {
7527
7532
  if (!m.paymentRequestNo) {
7528
- j();
7533
+ S();
7529
7534
  return;
7530
7535
  }
7531
7536
  const b = be().getPaymentRequestDetail;
7532
7537
  if (!b) {
7533
- console.warn("[PaymentRequestDetailView] 未注入 getPaymentRequestDetail adapter"), j();
7538
+ console.warn("[PaymentRequestDetailView] 未注入 getPaymentRequestDetail adapter"), S();
7534
7539
  return;
7535
7540
  }
7536
7541
  r.value = !0;
7537
7542
  try {
7538
7543
  const o = await b(m.paymentRequestNo);
7539
- (o == null ? void 0 : o.code) === 1 ? Object.assign(n, o.data || {}) : j();
7544
+ (o == null ? void 0 : o.code) === 1 ? Object.assign(n, o.data || {}) : S();
7540
7545
  } catch (o) {
7541
- console.error("[PaymentRequestDetailView] getPaymentRequestDetail error:", o), j();
7546
+ console.error("[PaymentRequestDetailView] getPaymentRequestDetail error:", o), S();
7542
7547
  } finally {
7543
7548
  r.value = !1;
7544
7549
  }
@@ -7546,7 +7551,7 @@ const On = /* @__PURE__ */ te({
7546
7551
  return re(
7547
7552
  () => m.modelValue,
7548
7553
  (b) => {
7549
- b ? (j(), P()) : j();
7554
+ b ? (S(), P()) : S();
7550
7555
  },
7551
7556
  { immediate: !0 }
7552
7557
  ), (b, o) => {
@@ -7576,7 +7581,7 @@ const On = /* @__PURE__ */ te({
7576
7581
  ]),
7577
7582
  _: 1
7578
7583
  })) : E("", !0),
7579
- N.value ? (u(), A(f, {
7584
+ q.value ? (u(), A(f, {
7580
7585
  key: 1,
7581
7586
  type: "danger",
7582
7587
  size: "small"
@@ -7840,9 +7845,9 @@ const On = /* @__PURE__ */ te({
7840
7845
  }, 8, ["data"]),
7841
7846
  e("div", Vr, [
7842
7847
  e("span", null, "合计:" + l(h.value.length) + " 个产品", 1),
7843
- e("span", null, "货款总额(¥):" + l(S.value.goods_total), 1),
7844
- e("span", null, "运费总额(¥):" + l(S.value.freight_total), 1),
7845
- e("span", null, "申请付款总额(¥):" + l(S.value.apply_total), 1)
7848
+ e("span", null, "货款总额(¥):" + l(N.value.goods_total), 1),
7849
+ e("span", null, "运费总额(¥):" + l(N.value.freight_total), 1),
7850
+ e("span", null, "申请付款总额(¥):" + l(N.value.apply_total), 1)
7846
7851
  ])
7847
7852
  ]),
7848
7853
  _: 1
@@ -7852,7 +7857,7 @@ const On = /* @__PURE__ */ te({
7852
7857
  name: "payer"
7853
7858
  }, {
7854
7859
  default: a(() => {
7855
- var d, V, q, H, L, ae;
7860
+ var d, V, j, H, L, ae;
7856
7861
  return [
7857
7862
  e("div", Sr, [
7858
7863
  e("div", Nr, [
@@ -7865,7 +7870,7 @@ const On = /* @__PURE__ */ te({
7865
7870
  ]),
7866
7871
  e("div", Ar, [
7867
7872
  o[29] || (o[29] = e("span", { class: "label" }, "付款账号:", -1)),
7868
- e("span", Pr, l(w((q = n.payer_info) == null ? void 0 : q.account_no)), 1)
7873
+ e("span", Pr, l(w((j = n.payer_info) == null ? void 0 : j.account_no)), 1)
7869
7874
  ]),
7870
7875
  e("div", Tr, [
7871
7876
  o[30] || (o[30] = e("span", { class: "label" }, "实际付款账号:", -1)),
@@ -7889,7 +7894,7 @@ const On = /* @__PURE__ */ te({
7889
7894
  name: "payee"
7890
7895
  }, {
7891
7896
  default: a(() => {
7892
- var d, V, q, H, L, ae;
7897
+ var d, V, j, H, L, ae;
7893
7898
  return [
7894
7899
  e("div", Br, [
7895
7900
  e("div", Ur, [
@@ -7902,7 +7907,7 @@ const On = /* @__PURE__ */ te({
7902
7907
  ]),
7903
7908
  e("div", Fr, [
7904
7909
  o[35] || (o[35] = e("span", { class: "label" }, "收款账号:", -1)),
7905
- e("span", Jr, l(w((q = n.payee_info) == null ? void 0 : q.account_no)), 1)
7910
+ e("span", Jr, l(w((j = n.payee_info) == null ? void 0 : j.account_no)), 1)
7906
7911
  ]),
7907
7912
  e("div", Hr, [
7908
7913
  o[36] || (o[36] = e("span", { class: "label" }, "实际收款账号:", -1)),
@@ -8024,12 +8029,12 @@ const On = /* @__PURE__ */ te({
8024
8029
  2: "退货换货",
8025
8030
  3: "仅退款",
8026
8031
  4: "仅退货"
8027
- }, n = F(!1), h = F("products"), g = Ve({}), N = R(() => Array.isArray(g.order_item) ? g.order_item : []), D = R(
8032
+ }, n = F(!1), h = F("products"), g = Ve({}), q = R(() => Array.isArray(g.order_item) ? g.order_item : []), D = R(
8028
8033
  () => Array.isArray(g.return_order_log) ? g.return_order_log : []
8029
- ), S = R(() => g.status_name ? String(g.status_name) : j(g.status, r)), k = R(() => {
8034
+ ), N = R(() => g.status_name ? String(g.status_name) : S(g.status, r)), k = R(() => {
8030
8035
  const o = Number(g.status);
8031
8036
  return o === 100 || o === 300 ? "warning" : o === 200 ? "danger" : o === 500 ? "success" : "info";
8032
- }), w = (o) => o == null || o === "" ? "-" : String(o), j = (o, f) => o == null || o === "" ? "-" : f[String(o)] ?? "-", P = () => {
8037
+ }), w = (o) => o == null || o === "" ? "-" : String(o), S = (o, f) => o == null || o === "" ? "-" : f[String(o)] ?? "-", P = () => {
8033
8038
  Object.keys(g).forEach((o) => delete g[o]), h.value = "products";
8034
8039
  }, b = async () => {
8035
8040
  if (!m.returnOrderNo) {
@@ -8079,7 +8084,7 @@ const On = /* @__PURE__ */ te({
8079
8084
  type: k.value
8080
8085
  }, {
8081
8086
  default: a(() => [
8082
- c(l(S.value), 1)
8087
+ c(l(N.value), 1)
8083
8088
  ]),
8084
8089
  _: 1
8085
8090
  }, 8, ["type"]),
@@ -8134,7 +8139,7 @@ const On = /* @__PURE__ */ te({
8134
8139
  ]),
8135
8140
  e("div", pu, [
8136
8141
  f[11] || (f[11] = e("span", { class: "info-label" }, "退货方式:", -1)),
8137
- e("span", mu, l(g.return_type_name || j(g.return_type, _)), 1)
8142
+ e("span", mu, l(g.return_type_name || S(g.return_type, _)), 1)
8138
8143
  ]),
8139
8144
  e("div", fu, [
8140
8145
  f[12] || (f[12] = e("span", { class: "info-label" }, "关联单号:", -1)),
@@ -8159,9 +8164,9 @@ const On = /* @__PURE__ */ te({
8159
8164
  name: "products"
8160
8165
  }, {
8161
8166
  default: a(() => [
8162
- N.value.length ? (u(), A(T, {
8167
+ q.value.length ? (u(), A(T, {
8163
8168
  key: 0,
8164
- data: N.value,
8169
+ data: q.value,
8165
8170
  border: "",
8166
8171
  size: "small",
8167
8172
  class: "detail-table",
@@ -8180,9 +8185,9 @@ const On = /* @__PURE__ */ te({
8180
8185
  align: "center"
8181
8186
  }, {
8182
8187
  default: a(({ row: V }) => {
8183
- var q;
8188
+ var j;
8184
8189
  return [
8185
- (q = V.sku_image) != null && q.main_image ? (u(), A(y, {
8190
+ (j = V.sku_image) != null && j.main_image ? (u(), A(y, {
8186
8191
  key: 0,
8187
8192
  src: V.sku_image.main_image,
8188
8193
  "preview-src-list": [V.sku_image.main_image],
@@ -8199,10 +8204,10 @@ const On = /* @__PURE__ */ te({
8199
8204
  "min-width": "200"
8200
8205
  }, {
8201
8206
  default: a(({ row: V }) => {
8202
- var q;
8207
+ var j;
8203
8208
  return [
8204
8209
  e("div", hu, [
8205
- e("div", ku, l(w((q = V.sku_info) == null ? void 0 : q.product_name)), 1),
8210
+ e("div", ku, l(w((j = V.sku_info) == null ? void 0 : j.product_name)), 1),
8206
8211
  e("div", $u, [
8207
8212
  V.sku_code ? (u(), A(v(pe), {
8208
8213
  key: 0,
@@ -8391,22 +8396,22 @@ const On = /* @__PURE__ */ te({
8391
8396
  const m = s, r = F(!1), _ = Ve({}), n = R(() => Array.isArray(_.items) ? _.items : []), h = R(() => {
8392
8397
  const P = Number(_.status);
8393
8398
  return P === 100 ? "warning" : P === 200 ? "success" : P === 50 ? "info" : P === 300 ? "danger" : "info";
8394
- }), g = (P) => P == null || P === "" ? "-" : String(P), N = (P) => {
8399
+ }), g = (P) => P == null || P === "" ? "-" : String(P), q = (P) => {
8395
8400
  const b = Number(P);
8396
8401
  return Number.isNaN(b) ? 0 : b;
8397
8402
  }, D = (P, b = "CNY") => {
8398
8403
  if (P == null || P === "") return "-";
8399
8404
  const o = Number(P);
8400
8405
  return Number.isNaN(o) ? String(P) : `${b === "CNY" ? "¥" : `${b} `}${o.toFixed(2)}`;
8401
- }, S = (P, b = "CNY", o) => {
8406
+ }, N = (P, b = "CNY", o) => {
8402
8407
  const f = D(P, b);
8403
8408
  return f === "-" ? "-" : o ? `${f} (${o}承担)` : f;
8404
8409
  }, k = (P, b = "CNY", o) => {
8405
8410
  const f = D(P, b);
8406
- return f === "-" ? "-" : !o && N(P) === 0 ? `${f} (无)` : o ? `${f} (${o}承担)` : `${f} (无)`;
8411
+ return f === "-" ? "-" : !o && q(P) === 0 ? `${f} (无)` : o ? `${f} (${o}承担)` : `${f} (无)`;
8407
8412
  }, w = () => {
8408
8413
  Object.keys(_).forEach((P) => delete _[P]);
8409
- }, j = async () => {
8414
+ }, S = async () => {
8410
8415
  if (!m.costExpenseNo) {
8411
8416
  w();
8412
8417
  return;
@@ -8429,7 +8434,7 @@ const On = /* @__PURE__ */ te({
8429
8434
  return re(
8430
8435
  () => m.modelValue,
8431
8436
  (P) => {
8432
- P ? (w(), j()) : w();
8437
+ P ? (w(), S()) : w();
8433
8438
  },
8434
8439
  { immediate: !0 }
8435
8440
  ), (P, b) => {
@@ -8517,7 +8522,7 @@ const On = /* @__PURE__ */ te({
8517
8522
  ]),
8518
8523
  e("div", Fu, [
8519
8524
  b[12] || (b[12] = e("span", { class: "info-label" }, "运费:", -1)),
8520
- e("span", Ju, l(S(
8525
+ e("span", Ju, l(N(
8521
8526
  _.freight_amount,
8522
8527
  _.freight_currency,
8523
8528
  _.freight_bearer_name
@@ -8697,27 +8702,27 @@ const On = /* @__PURE__ */ te({
8697
8702
  },
8698
8703
  emits: ["update:modelValue"],
8699
8704
  setup(s) {
8700
- const m = s, r = F(!1), _ = F("receipt"), n = Ve({}), h = R(() => Array.isArray(n.details) ? n.details : []), g = R(() => Array.isArray(n.logs) ? n.logs : []), N = (w) => w == null || w === "" ? "-" : String(w), D = (w) => {
8701
- const j = String(w ?? "").trim();
8702
- return !j || j === "0" || j === "0.00" || j === "0.0000" ? "-" : j;
8703
- }, S = () => {
8705
+ const m = s, r = F(!1), _ = F("receipt"), n = Ve({}), h = R(() => Array.isArray(n.details) ? n.details : []), g = R(() => Array.isArray(n.logs) ? n.logs : []), q = (w) => w == null || w === "" ? "-" : String(w), D = (w) => {
8706
+ const S = String(w ?? "").trim();
8707
+ return !S || S === "0" || S === "0.00" || S === "0.0000" ? "-" : S;
8708
+ }, N = () => {
8704
8709
  Object.keys(n).forEach((w) => delete n[w]), _.value = "receipt";
8705
8710
  }, k = async () => {
8706
8711
  if (!m.receiptVoucherNo) {
8707
- S();
8712
+ N();
8708
8713
  return;
8709
8714
  }
8710
8715
  const w = be().getReceiptVoucherDetail;
8711
8716
  if (!w) {
8712
- console.warn("[ReceiptVoucherDetailView] 未注入 getReceiptVoucherDetail adapter"), S();
8717
+ console.warn("[ReceiptVoucherDetailView] 未注入 getReceiptVoucherDetail adapter"), N();
8713
8718
  return;
8714
8719
  }
8715
8720
  r.value = !0;
8716
8721
  try {
8717
- const j = await w(m.receiptVoucherNo);
8718
- (j == null ? void 0 : j.code) === 1 && j.data ? Object.assign(n, j.data) : S();
8719
- } catch (j) {
8720
- console.error("[ReceiptVoucherDetailView] getReceiptVoucherDetail error:", j), S();
8722
+ const S = await w(m.receiptVoucherNo);
8723
+ (S == null ? void 0 : S.code) === 1 && S.data ? Object.assign(n, S.data) : N();
8724
+ } catch (S) {
8725
+ console.error("[ReceiptVoucherDetailView] getReceiptVoucherDetail error:", S), N();
8721
8726
  } finally {
8722
8727
  r.value = !1;
8723
8728
  }
@@ -8725,10 +8730,10 @@ const On = /* @__PURE__ */ te({
8725
8730
  return re(
8726
8731
  () => m.modelValue,
8727
8732
  (w) => {
8728
- w ? (S(), k()) : S();
8733
+ w ? (N(), k()) : N();
8729
8734
  },
8730
8735
  { immediate: !0 }
8731
- ), (w, j) => {
8736
+ ), (w, S) => {
8732
8737
  const P = x("el-tag"), b = x("el-card"), o = x("el-table-column"), f = x("el-table"), O = x("el-tab-pane"), p = x("el-tabs"), i = x("el-button"), y = x("el-dialog"), T = me("loading");
8733
8738
  return u(), A(y, {
8734
8739
  "model-value": s.modelValue,
@@ -8738,13 +8743,13 @@ const On = /* @__PURE__ */ te({
8738
8743
  "destroy-on-close": "",
8739
8744
  "close-on-click-modal": !1,
8740
8745
  class: "receipt-voucher-detail-view-dialog j-doc-detail-dialog",
8741
- "onUpdate:modelValue": j[2] || (j[2] = (M) => w.$emit("update:modelValue", M))
8746
+ "onUpdate:modelValue": S[2] || (S[2] = (M) => w.$emit("update:modelValue", M))
8742
8747
  }, {
8743
8748
  header: a(() => [
8744
8749
  e("div", sc, [
8745
- j[4] || (j[4] = e("span", { class: "j-doc-detail-title__name" }, "收款单", -1)),
8746
- j[5] || (j[5] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
8747
- e("span", nc, l(N(n.receipt_voucher_no)), 1),
8750
+ S[4] || (S[4] = e("span", { class: "j-doc-detail-title__name" }, "收款单", -1)),
8751
+ S[5] || (S[5] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
8752
+ e("span", nc, l(q(n.receipt_voucher_no)), 1),
8748
8753
  n.status_name && n.status_name !== "-" ? (u(), A(P, {
8749
8754
  key: 0,
8750
8755
  size: "small",
@@ -8760,20 +8765,20 @@ const On = /* @__PURE__ */ te({
8760
8765
  type: "danger",
8761
8766
  size: "small"
8762
8767
  }, {
8763
- default: a(() => [...j[3] || (j[3] = [
8768
+ default: a(() => [...S[3] || (S[3] = [
8764
8769
  c("急", -1)
8765
8770
  ])]),
8766
8771
  _: 1
8767
8772
  })) : E("", !0),
8768
- j[6] || (j[6] = e("span", { class: "j-doc-detail-title__paren" }, ")", -1))
8773
+ S[6] || (S[6] = e("span", { class: "j-doc-detail-title__paren" }, ")", -1))
8769
8774
  ])
8770
8775
  ]),
8771
8776
  footer: a(() => [
8772
8777
  t(i, {
8773
8778
  type: "primary",
8774
- onClick: j[1] || (j[1] = (M) => w.$emit("update:modelValue", !1))
8779
+ onClick: S[1] || (S[1] = (M) => w.$emit("update:modelValue", !1))
8775
8780
  }, {
8776
- default: a(() => [...j[15] || (j[15] = [
8781
+ default: a(() => [...S[15] || (S[15] = [
8777
8782
  c("关闭", -1)
8778
8783
  ])]),
8779
8784
  _: 1
@@ -8781,7 +8786,7 @@ const On = /* @__PURE__ */ te({
8781
8786
  ]),
8782
8787
  default: a(() => [
8783
8788
  ce((u(), C("div", oc, [
8784
- j[14] || (j[14] = e("div", { class: "section-title" }, "基本信息", -1)),
8789
+ S[14] || (S[14] = e("div", { class: "section-title" }, "基本信息", -1)),
8785
8790
  t(b, {
8786
8791
  shadow: "never",
8787
8792
  class: "section-card"
@@ -8789,32 +8794,32 @@ const On = /* @__PURE__ */ te({
8789
8794
  default: a(() => [
8790
8795
  e("div", ic, [
8791
8796
  e("div", dc, [
8792
- j[7] || (j[7] = e("span", { class: "info-label" }, "采购公司:", -1)),
8793
- e("span", rc, l(N(n.purchase_company_name)), 1)
8797
+ S[7] || (S[7] = e("span", { class: "info-label" }, "采购公司:", -1)),
8798
+ e("span", rc, l(q(n.purchase_company_name)), 1)
8794
8799
  ]),
8795
8800
  e("div", uc, [
8796
- j[8] || (j[8] = e("span", { class: "info-label" }, "供应商:", -1)),
8797
- e("span", cc, l(N(n.supplier_name)), 1)
8801
+ S[8] || (S[8] = e("span", { class: "info-label" }, "供应商:", -1)),
8802
+ e("span", cc, l(q(n.supplier_name)), 1)
8798
8803
  ]),
8799
8804
  e("div", _c, [
8800
- j[9] || (j[9] = e("span", { class: "info-label" }, "收款类型:", -1)),
8801
- e("span", pc, l(N(n.receipt_type_name)), 1)
8805
+ S[9] || (S[9] = e("span", { class: "info-label" }, "收款类型:", -1)),
8806
+ e("span", pc, l(q(n.receipt_type_name)), 1)
8802
8807
  ]),
8803
8808
  e("div", mc, [
8804
- j[10] || (j[10] = e("span", { class: "info-label" }, "申请人:", -1)),
8805
- e("span", fc, l(N(n.applicant_name)), 1)
8809
+ S[10] || (S[10] = e("span", { class: "info-label" }, "申请人:", -1)),
8810
+ e("span", fc, l(q(n.applicant_name)), 1)
8806
8811
  ]),
8807
8812
  e("div", vc, [
8808
- j[11] || (j[11] = e("span", { class: "info-label" }, "申请时间:", -1)),
8809
- e("span", bc, l(N(n.apply_time)), 1)
8813
+ S[11] || (S[11] = e("span", { class: "info-label" }, "申请时间:", -1)),
8814
+ e("span", bc, l(q(n.apply_time)), 1)
8810
8815
  ]),
8811
8816
  e("div", yc, [
8812
- j[12] || (j[12] = e("span", { class: "info-label" }, "收款金额:", -1)),
8813
- e("span", gc, l(N(n.receipt_amount)), 1)
8817
+ S[12] || (S[12] = e("span", { class: "info-label" }, "收款金额:", -1)),
8818
+ e("span", gc, l(q(n.receipt_amount)), 1)
8814
8819
  ]),
8815
8820
  e("div", hc, [
8816
- j[13] || (j[13] = e("span", { class: "info-label" }, "收款备注:", -1)),
8817
- e("span", kc, l(N(n.receipt_remark)), 1)
8821
+ S[13] || (S[13] = e("span", { class: "info-label" }, "收款备注:", -1)),
8822
+ e("span", kc, l(q(n.receipt_remark)), 1)
8818
8823
  ])
8819
8824
  ])
8820
8825
  ]),
@@ -8822,7 +8827,7 @@ const On = /* @__PURE__ */ te({
8822
8827
  }),
8823
8828
  t(p, {
8824
8829
  modelValue: _.value,
8825
- "onUpdate:modelValue": j[0] || (j[0] = (M) => _.value = M),
8830
+ "onUpdate:modelValue": S[0] || (S[0] = (M) => _.value = M),
8826
8831
  class: "detail-tabs"
8827
8832
  }, {
8828
8833
  default: a(() => [
@@ -8850,7 +8855,7 @@ const On = /* @__PURE__ */ te({
8850
8855
  "show-overflow-tooltip": ""
8851
8856
  }, {
8852
8857
  default: a(({ row: M }) => [
8853
- c(l(N(M.purchase_no)), 1)
8858
+ c(l(q(M.purchase_no)), 1)
8854
8859
  ]),
8855
8860
  _: 1
8856
8861
  }),
@@ -8888,7 +8893,7 @@ const On = /* @__PURE__ */ te({
8888
8893
  "show-overflow-tooltip": ""
8889
8894
  }, {
8890
8895
  default: a(({ row: M }) => [
8891
- c(l(N(M.return_exchange_no)), 1)
8896
+ c(l(q(M.return_exchange_no)), 1)
8892
8897
  ]),
8893
8898
  _: 1
8894
8899
  }),
@@ -9018,34 +9023,34 @@ const On = /* @__PURE__ */ te({
9018
9023
  "py_method_type_name",
9019
9024
  "ref_date_type_name",
9020
9025
  "settle_cycle_type_name"
9021
- ], _ = s, n = F(!1), h = F("products"), g = Ve({}), N = R(() => {
9026
+ ], _ = s, n = F(!1), h = F("products"), g = Ve({}), q = R(() => {
9022
9027
  const $ = g.basic_info;
9023
9028
  return $ && typeof $ == "object" ? $ : {};
9024
9029
  }), D = R(() => {
9025
9030
  const $ = g.purchase_products;
9026
9031
  return Array.isArray($) && $.length ? $[0] : null;
9027
- }), S = R(() => {
9028
- const $ = { ...N.value }, d = D.value;
9032
+ }), N = R(() => {
9033
+ const $ = { ...q.value }, d = D.value;
9029
9034
  if (d) {
9030
9035
  for (const V of r)
9031
9036
  ($[V] == null || $[V] === "") && d[V] != null && d[V] !== "" && ($[V] = d[V]);
9032
9037
  !$.currency && d.currency && ($.currency = d.currency), !$.purchase_currency && d.purchase_currency && ($.purchase_currency = d.purchase_currency);
9033
9038
  }
9034
9039
  return $;
9035
- }), k = R(() => g.purchase_no || S.value.purchase_no || _.purchaseOrderNo), w = R(() => Array.isArray(g.purchase_products) ? g.purchase_products : Array.isArray(g.products) ? g.products : Array.isArray(g.items) ? g.items : []), j = R(
9040
+ }), k = R(() => g.purchase_no || N.value.purchase_no || _.purchaseOrderNo), w = R(() => Array.isArray(g.purchase_products) ? g.purchase_products : Array.isArray(g.products) ? g.products : Array.isArray(g.items) ? g.items : []), S = R(
9036
9041
  () => Array.isArray(g.related_documents) ? g.related_documents : []
9037
- ), P = R(() => Array.isArray(g.operation_logs) ? g.operation_logs : Array.isArray(g.logs) ? g.logs : []), b = R(() => M(S.value.attachment ?? S.value.attachments)), o = R(() => {
9038
- const $ = S.value.final_pay_rate;
9039
- return $ == null || $ === "" ? "" : `${String(S.value.py_method_type || "") === "month_settle" ? "收货后尾款" : "尾款"}:${y($)}`;
9042
+ ), P = R(() => Array.isArray(g.operation_logs) ? g.operation_logs : Array.isArray(g.logs) ? g.logs : []), b = R(() => M(N.value.attachment ?? N.value.attachments)), o = R(() => {
9043
+ const $ = N.value.final_pay_rate;
9044
+ return $ == null || $ === "" ? "" : `${String(N.value.py_method_type || "") === "month_settle" ? "收货后尾款" : "尾款"}:${y($)}`;
9040
9045
  }), f = R(() => {
9041
- if (S.value.status_name) return String(S.value.status_name);
9042
- const $ = Number(S.value.status);
9043
- return Number.isNaN($) ? "-" : m[$] ?? String(S.value.status);
9046
+ if (N.value.status_name) return String(N.value.status_name);
9047
+ const $ = Number(N.value.status);
9048
+ return Number.isNaN($) ? "-" : m[$] ?? String(N.value.status);
9044
9049
  }), O = R(() => {
9045
- const $ = Number(S.value.status);
9050
+ const $ = Number(N.value.status);
9046
9051
  return $ === -1 || $ === 50 ? "warning" : $ === 100 || $ === 300 ? "primary" : $ === 400 ? "success" : $ === 500 || $ === 600 ? "danger" : "info";
9047
9052
  }), p = R(() => {
9048
- const $ = Number(S.value.is_urgent ?? g.is_urgent);
9053
+ const $ = Number(N.value.is_urgent ?? g.is_urgent);
9049
9054
  return $ === 1 || $ === 2;
9050
9055
  }), i = ($) => $ == null || $ === "" ? "-" : String($), y = ($) => {
9051
9056
  if ($ == null || $ === "") return "-";
@@ -9099,7 +9104,7 @@ const On = /* @__PURE__ */ te({
9099
9104
  },
9100
9105
  { immediate: !0 }
9101
9106
  ), ($, d) => {
9102
- const V = x("el-tag"), q = x("el-card"), H = x("el-table-column"), L = x("el-image"), ae = x("el-table"), ve = x("el-tab-pane"), ne = x("el-tabs"), X = x("el-button"), ie = x("el-dialog"), Q = me("loading");
9107
+ const V = x("el-tag"), j = x("el-card"), H = x("el-table-column"), L = x("el-image"), ae = x("el-table"), ve = x("el-tab-pane"), ne = x("el-tabs"), X = x("el-button"), ie = x("el-dialog"), Q = me("loading");
9103
9108
  return u(), A(ie, {
9104
9109
  "model-value": s.modelValue,
9105
9110
  width: "90%",
@@ -9151,7 +9156,7 @@ const On = /* @__PURE__ */ te({
9151
9156
  default: a(() => [
9152
9157
  ce((u(), C("div", jc, [
9153
9158
  d[24] || (d[24] = e("div", { class: "section-title" }, "基本信息", -1)),
9154
- t(q, {
9159
+ t(j, {
9155
9160
  shadow: "never",
9156
9161
  class: "section-card"
9157
9162
  }, {
@@ -9159,73 +9164,73 @@ const On = /* @__PURE__ */ te({
9159
9164
  e("div", Cc, [
9160
9165
  e("div", Ac, [
9161
9166
  d[7] || (d[7] = e("span", { class: "info-label" }, "采购公司:", -1)),
9162
- e("span", Pc, l(i(S.value.purchase_company_name)), 1)
9167
+ e("span", Pc, l(i(N.value.purchase_company_name)), 1)
9163
9168
  ]),
9164
9169
  e("div", Tc, [
9165
9170
  d[8] || (d[8] = e("span", { class: "info-label" }, "采购仓库:", -1)),
9166
- e("span", zc, l(i(S.value.stock_name || S.value.stock_code)), 1)
9171
+ e("span", zc, l(i(N.value.stock_name || N.value.stock_code)), 1)
9167
9172
  ]),
9168
9173
  e("div", Oc, [
9169
9174
  d[9] || (d[9] = e("span", { class: "info-label" }, "供应商:", -1)),
9170
- e("span", Rc, l(i(S.value.supplier_name || S.value.supplier)), 1)
9175
+ e("span", Rc, l(i(N.value.supplier_name || N.value.supplier)), 1)
9171
9176
  ]),
9172
9177
  e("div", Ic, [
9173
9178
  d[10] || (d[10] = e("span", { class: "info-label" }, "联系人:", -1)),
9174
- e("span", Ec, l(i(S.value.contact_name)), 1)
9179
+ e("span", Ec, l(i(N.value.contact_name)), 1)
9175
9180
  ]),
9176
9181
  e("div", Bc, [
9177
9182
  d[11] || (d[11] = e("span", { class: "info-label" }, "联系方式:", -1)),
9178
- e("span", Uc, l(i(S.value.contact_phone)), 1)
9183
+ e("span", Uc, l(i(N.value.contact_phone)), 1)
9179
9184
  ]),
9180
9185
  e("div", Mc, [
9181
9186
  d[12] || (d[12] = e("span", { class: "info-label" }, "结算方式:", -1)),
9182
9187
  e("span", Lc, [
9183
- e("div", null, l(i(S.value.py_method_type_name || S.value.py_method_type)), 1),
9188
+ e("div", null, l(i(N.value.py_method_type_name || N.value.py_method_type)), 1),
9184
9189
  o.value ? (u(), C("div", Kc, l(o.value), 1)) : E("", !0)
9185
9190
  ])
9186
9191
  ]),
9187
9192
  e("div", Fc, [
9188
9193
  d[13] || (d[13] = e("span", { class: "info-label" }, "预付比例:", -1)),
9189
- e("span", Jc, l(y(S.value.prepay_rate)), 1)
9194
+ e("span", Jc, l(y(N.value.prepay_rate)), 1)
9190
9195
  ]),
9191
9196
  e("div", Hc, [
9192
9197
  d[14] || (d[14] = e("span", { class: "info-label" }, "结算账期:", -1)),
9193
9198
  e("span", Yc, [
9194
- e("div", null, "基准日期:" + l(i(S.value.ref_date_type_name || S.value.ref_date_type)), 1),
9195
- e("div", null, "周期:" + l(i(S.value.settle_cycle_type_name || S.value.settle_cycle_type)), 1)
9199
+ e("div", null, "基准日期:" + l(i(N.value.ref_date_type_name || N.value.ref_date_type)), 1),
9200
+ e("div", null, "周期:" + l(i(N.value.settle_cycle_type_name || N.value.settle_cycle_type)), 1)
9196
9201
  ])
9197
9202
  ]),
9198
9203
  e("div", Qc, [
9199
9204
  d[15] || (d[15] = e("span", { class: "info-label" }, "结算备注:", -1)),
9200
- e("span", Wc, l(i(S.value.settlement_remark)), 1)
9205
+ e("span", Wc, l(i(N.value.settlement_remark)), 1)
9201
9206
  ]),
9202
9207
  e("div", Xc, [
9203
9208
  d[16] || (d[16] = e("span", { class: "info-label" }, "支付方式:", -1)),
9204
- e("span", Zc, l(i(S.value.payment_method_name || S.value.payment_method)), 1)
9209
+ e("span", Zc, l(i(N.value.payment_method_name || N.value.payment_method)), 1)
9205
9210
  ]),
9206
9211
  e("div", Gc, [
9207
9212
  d[17] || (d[17] = e("span", { class: "info-label" }, "采购币种:", -1)),
9208
- e("span", e_, l(i(S.value.purchase_currency || S.value.currency)), 1)
9213
+ e("span", e_, l(i(N.value.purchase_currency || N.value.currency)), 1)
9209
9214
  ]),
9210
9215
  e("div", t_, [
9211
9216
  d[18] || (d[18] = e("span", { class: "info-label" }, "含税:", -1)),
9212
- e("span", a_, l(i(S.value.is_tax_included_name ?? T(S.value.is_tax_included))), 1)
9217
+ e("span", a_, l(i(N.value.is_tax_included_name ?? T(N.value.is_tax_included))), 1)
9213
9218
  ]),
9214
9219
  e("div", l_, [
9215
9220
  d[19] || (d[19] = e("span", { class: "info-label" }, "采购员:", -1)),
9216
- e("span", s_, l(i(S.value.purchaser_name || S.value.purchaser)), 1)
9221
+ e("span", s_, l(i(N.value.purchaser_name || N.value.purchaser)), 1)
9217
9222
  ]),
9218
9223
  e("div", n_, [
9219
9224
  d[20] || (d[20] = e("span", { class: "info-label" }, "采购类型:", -1)),
9220
- e("span", o_, l(i(S.value.purchase_type_name || S.value.purchase_type)), 1)
9225
+ e("span", o_, l(i(N.value.purchase_type_name || N.value.purchase_type)), 1)
9221
9226
  ]),
9222
9227
  e("div", i_, [
9223
9228
  d[21] || (d[21] = e("span", { class: "info-label" }, "单据负责人:", -1)),
9224
- e("span", d_, l(i(S.value.owner_user_name || S.value.doc_owners)), 1)
9229
+ e("span", d_, l(i(N.value.owner_user_name || N.value.doc_owners)), 1)
9225
9230
  ]),
9226
9231
  e("div", r_, [
9227
9232
  d[22] || (d[22] = e("span", { class: "info-label" }, "采购备注:", -1)),
9228
- e("span", u_, l(i(S.value.purchase_remark)), 1)
9233
+ e("span", u_, l(i(N.value.purchase_remark)), 1)
9229
9234
  ]),
9230
9235
  b.value.length ? (u(), C("div", c_, [
9231
9236
  d[23] || (d[23] = e("span", { class: "info-label" }, "附件:", -1)),
@@ -9397,7 +9402,7 @@ const On = /* @__PURE__ */ te({
9397
9402
  }, {
9398
9403
  default: a(() => [
9399
9404
  t(ae, {
9400
- data: j.value,
9405
+ data: S.value,
9401
9406
  border: "",
9402
9407
  size: "small",
9403
9408
  style: { width: "100%" },
@@ -9574,10 +9579,10 @@ const On = /* @__PURE__ */ te({
9574
9579
  500: "已作废"
9575
9580
  }, r = s, _ = F(!1), n = F("products"), h = Ve({}), g = R(
9576
9581
  () => h.requirement_no || r.purchasePlanNo
9577
- ), N = R(() => {
9582
+ ), q = R(() => {
9578
9583
  const f = h.purchase_products;
9579
9584
  return Array.isArray(f) && f.length > 0 ? f : h.sku || h.sku_code || h.product_name ? [h] : [];
9580
- }), D = R(() => Array.isArray(h.operation_logs) ? h.operation_logs : Array.isArray(h.logs) ? h.logs : []), S = R(() => {
9585
+ }), D = R(() => Array.isArray(h.operation_logs) ? h.operation_logs : Array.isArray(h.logs) ? h.logs : []), N = R(() => {
9581
9586
  if (h.status_name) return String(h.status_name);
9582
9587
  const f = Number(h.status);
9583
9588
  return Number.isNaN(f) ? "-" : m[f] ?? String(h.status);
@@ -9587,7 +9592,7 @@ const On = /* @__PURE__ */ te({
9587
9592
  }), w = R(() => {
9588
9593
  const f = Number(h.is_urgent);
9589
9594
  return f === 1 || f === 2;
9590
- }), j = (f) => f == null || f === "" ? "-" : String(f), P = (f) => {
9595
+ }), S = (f) => f == null || f === "" ? "-" : String(f), P = (f) => {
9591
9596
  var O, p;
9592
9597
  return String(
9593
9598
  (f == null ? void 0 : f.main_image) || (f == null ? void 0 : f.image) || ((O = f == null ? void 0 : f.bis_sku) == null ? void 0 : O.main_image) || ((p = f == null ? void 0 : f.bis_sku) == null ? void 0 : p.image) || (f == null ? void 0 : f.att_files) || (f == null ? void 0 : f.image_url) || ""
@@ -9629,20 +9634,20 @@ const On = /* @__PURE__ */ te({
9629
9634
  "destroy-on-close": "",
9630
9635
  "close-on-click-modal": !1,
9631
9636
  class: "purchase-plan-detail-view-dialog j-doc-detail-dialog",
9632
- "onUpdate:modelValue": O[2] || (O[2] = (q) => f.$emit("update:modelValue", q))
9637
+ "onUpdate:modelValue": O[2] || (O[2] = (j) => f.$emit("update:modelValue", j))
9633
9638
  }, {
9634
9639
  header: a(() => [
9635
9640
  e("div", x_, [
9636
9641
  O[4] || (O[4] = e("span", { class: "j-doc-detail-title__name" }, "采购计划", -1)),
9637
9642
  O[5] || (O[5] = e("span", { class: "j-doc-detail-title__paren" }, "(", -1)),
9638
- e("span", V_, l(j(g.value)), 1),
9639
- S.value !== "-" ? (u(), A(p, {
9643
+ e("span", V_, l(S(g.value)), 1),
9644
+ N.value !== "-" ? (u(), A(p, {
9640
9645
  key: 0,
9641
9646
  size: "small",
9642
9647
  type: k.value
9643
9648
  }, {
9644
9649
  default: a(() => [
9645
- c(l(S.value), 1)
9650
+ c(l(N.value), 1)
9646
9651
  ]),
9647
9652
  _: 1
9648
9653
  }, 8, ["type"])) : E("", !0),
@@ -9662,7 +9667,7 @@ const On = /* @__PURE__ */ te({
9662
9667
  footer: a(() => [
9663
9668
  t($, {
9664
9669
  type: "primary",
9665
- onClick: O[1] || (O[1] = (q) => f.$emit("update:modelValue", !1))
9670
+ onClick: O[1] || (O[1] = (j) => f.$emit("update:modelValue", !1))
9666
9671
  }, {
9667
9672
  default: a(() => [...O[16] || (O[16] = [
9668
9673
  c("关闭", -1)
@@ -9681,31 +9686,31 @@ const On = /* @__PURE__ */ te({
9681
9686
  e("div", N_, [
9682
9687
  e("div", q_, [
9683
9688
  O[7] || (O[7] = e("span", { class: "info-label" }, "采购公司:", -1)),
9684
- e("span", j_, l(j(h.purchase_company_name)), 1)
9689
+ e("span", j_, l(S(h.purchase_company_name)), 1)
9685
9690
  ]),
9686
9691
  e("div", C_, [
9687
9692
  O[8] || (O[8] = e("span", { class: "info-label" }, "单据负责人:", -1)),
9688
- e("span", A_, l(j(h.purchaser_name)), 1)
9693
+ e("span", A_, l(S(h.purchaser_name)), 1)
9689
9694
  ]),
9690
9695
  e("div", P_, [
9691
9696
  O[9] || (O[9] = e("span", { class: "info-label" }, "创建人:", -1)),
9692
- e("span", T_, l(j(h.operator_name || h.operator)), 1)
9697
+ e("span", T_, l(S(h.operator_name || h.operator)), 1)
9693
9698
  ]),
9694
9699
  e("div", z_, [
9695
9700
  O[10] || (O[10] = e("span", { class: "info-label" }, "创建时间:", -1)),
9696
- e("span", O_, l(j(h.ctime)), 1)
9701
+ e("span", O_, l(S(h.ctime)), 1)
9697
9702
  ]),
9698
9703
  e("div", R_, [
9699
9704
  O[11] || (O[11] = e("span", { class: "info-label" }, "批次号:", -1)),
9700
- e("span", I_, l(j(h.requirement_batch_no)), 1)
9705
+ e("span", I_, l(S(h.requirement_batch_no)), 1)
9701
9706
  ]),
9702
9707
  e("div", E_, [
9703
9708
  O[12] || (O[12] = e("span", { class: "info-label" }, "补货计划号:", -1)),
9704
- e("span", B_, l(j(h.replenishment_plan_no)), 1)
9709
+ e("span", B_, l(S(h.replenishment_plan_no)), 1)
9705
9710
  ]),
9706
9711
  e("div", U_, [
9707
9712
  O[13] || (O[13] = e("span", { class: "info-label" }, "基本信息备注:", -1)),
9708
- e("span", M_, l(j(h.base_remark || h.remark)), 1)
9713
+ e("span", M_, l(S(h.base_remark || h.remark)), 1)
9709
9714
  ])
9710
9715
  ])
9711
9716
  ]),
@@ -9713,7 +9718,7 @@ const On = /* @__PURE__ */ te({
9713
9718
  }),
9714
9719
  t(J, {
9715
9720
  modelValue: n.value,
9716
- "onUpdate:modelValue": O[0] || (O[0] = (q) => n.value = q),
9721
+ "onUpdate:modelValue": O[0] || (O[0] = (j) => n.value = j),
9717
9722
  class: "detail-tabs"
9718
9723
  }, {
9719
9724
  default: a(() => [
@@ -9723,7 +9728,7 @@ const On = /* @__PURE__ */ te({
9723
9728
  }, {
9724
9729
  default: a(() => [
9725
9730
  t(M, {
9726
- data: N.value,
9731
+ data: q.value,
9727
9732
  border: "",
9728
9733
  size: "small",
9729
9734
  style: { width: "100%" }
@@ -9740,11 +9745,11 @@ const On = /* @__PURE__ */ te({
9740
9745
  width: "70",
9741
9746
  align: "center"
9742
9747
  }, {
9743
- default: a(({ row: q }) => [
9744
- P(q) ? (u(), A(T, {
9748
+ default: a(({ row: j }) => [
9749
+ P(j) ? (u(), A(T, {
9745
9750
  key: 0,
9746
- src: P(q),
9747
- "preview-src-list": [P(q)],
9751
+ src: P(j),
9752
+ "preview-src-list": [P(j)],
9748
9753
  fit: "cover",
9749
9754
  class: "product-image",
9750
9755
  "preview-teleported": ""
@@ -9756,13 +9761,13 @@ const On = /* @__PURE__ */ te({
9756
9761
  label: "品名/SKU",
9757
9762
  "min-width": "160"
9758
9763
  }, {
9759
- default: a(({ row: q }) => [
9764
+ default: a(({ row: j }) => [
9760
9765
  e("div", K_, [
9761
- e("div", F_, l(j(q.product_name)), 1),
9766
+ e("div", F_, l(S(j.product_name)), 1),
9762
9767
  e("div", J_, [
9763
- q.sku || q.sku_code ? (u(), A(v(pe), {
9768
+ j.sku || j.sku_code ? (u(), A(v(pe), {
9764
9769
  key: 0,
9765
- code: q.sku || q.sku_code
9770
+ code: j.sku || j.sku_code
9766
9771
  }, null, 8, ["code"])) : (u(), C("span", H_, "-"))
9767
9772
  ])
9768
9773
  ])
@@ -9774,9 +9779,9 @@ const On = /* @__PURE__ */ te({
9774
9779
  "min-width": "120",
9775
9780
  "show-overflow-tooltip": ""
9776
9781
  }, {
9777
- default: a(({ row: q }) => [
9778
- c(l(j(
9779
- q.shop_account_display || q.shop_account_name || q.shop_account
9782
+ default: a(({ row: j }) => [
9783
+ c(l(S(
9784
+ j.shop_account_display || j.shop_account_name || j.shop_account
9780
9785
  )), 1)
9781
9786
  ]),
9782
9787
  _: 1
@@ -9786,8 +9791,8 @@ const On = /* @__PURE__ */ te({
9786
9791
  "min-width": "120",
9787
9792
  "show-overflow-tooltip": ""
9788
9793
  }, {
9789
- default: a(({ row: q }) => [
9790
- c(l(j(q.stock_name || q.stock_code)), 1)
9794
+ default: a(({ row: j }) => [
9795
+ c(l(S(j.stock_name || j.stock_code)), 1)
9791
9796
  ]),
9792
9797
  _: 1
9793
9798
  }),
@@ -9796,8 +9801,8 @@ const On = /* @__PURE__ */ te({
9796
9801
  width: "100",
9797
9802
  align: "center"
9798
9803
  }, {
9799
- default: a(({ row: q }) => [
9800
- c(l(j(q.purchase_plan_qty)), 1)
9804
+ default: a(({ row: j }) => [
9805
+ c(l(S(j.purchase_plan_qty)), 1)
9801
9806
  ]),
9802
9807
  _: 1
9803
9808
  }),
@@ -9806,8 +9811,8 @@ const On = /* @__PURE__ */ te({
9806
9811
  width: "100",
9807
9812
  align: "center"
9808
9813
  }, {
9809
- default: a(({ row: q }) => [
9810
- c(l(j(q.purchased_plan_qty)), 1)
9814
+ default: a(({ row: j }) => [
9815
+ c(l(S(j.purchased_plan_qty)), 1)
9811
9816
  ]),
9812
9817
  _: 1
9813
9818
  }),
@@ -9816,8 +9821,8 @@ const On = /* @__PURE__ */ te({
9816
9821
  width: "90",
9817
9822
  align: "center"
9818
9823
  }, {
9819
- default: a(({ row: q }) => [
9820
- c(l(j(q.box_sku_qty)), 1)
9824
+ default: a(({ row: j }) => [
9825
+ c(l(S(j.box_sku_qty)), 1)
9821
9826
  ]),
9822
9827
  _: 1
9823
9828
  }),
@@ -9826,8 +9831,8 @@ const On = /* @__PURE__ */ te({
9826
9831
  width: "80",
9827
9832
  align: "center"
9828
9833
  }, {
9829
- default: a(({ row: q }) => [
9830
- c(l(j(q.box_qty)), 1)
9834
+ default: a(({ row: j }) => [
9835
+ c(l(S(j.box_qty)), 1)
9831
9836
  ]),
9832
9837
  _: 1
9833
9838
  }),
@@ -9836,8 +9841,8 @@ const On = /* @__PURE__ */ te({
9836
9841
  "min-width": "120",
9837
9842
  "show-overflow-tooltip": ""
9838
9843
  }, {
9839
- default: a(({ row: q }) => [
9840
- c(l(j(q.expected_order_date)), 1)
9844
+ default: a(({ row: j }) => [
9845
+ c(l(S(j.expected_order_date)), 1)
9841
9846
  ]),
9842
9847
  _: 1
9843
9848
  })
@@ -9872,8 +9877,8 @@ const On = /* @__PURE__ */ te({
9872
9877
  label: "操作时间",
9873
9878
  width: "170"
9874
9879
  }, {
9875
- default: a(({ row: q }) => [
9876
- c(l(j(q.operate_time || q.ctime)), 1)
9880
+ default: a(({ row: j }) => [
9881
+ c(l(S(j.operate_time || j.ctime)), 1)
9877
9882
  ]),
9878
9883
  _: 1
9879
9884
  }),
@@ -9881,8 +9886,8 @@ const On = /* @__PURE__ */ te({
9881
9886
  label: "操作人",
9882
9887
  width: "120"
9883
9888
  }, {
9884
- default: a(({ row: q }) => [
9885
- c(l(j(q.operator_name || q.operator)), 1)
9889
+ default: a(({ row: j }) => [
9890
+ c(l(S(j.operator_name || j.operator)), 1)
9886
9891
  ]),
9887
9892
  _: 1
9888
9893
  }),
@@ -9891,8 +9896,8 @@ const On = /* @__PURE__ */ te({
9891
9896
  width: "140",
9892
9897
  "show-overflow-tooltip": ""
9893
9898
  }, {
9894
- default: a(({ row: q }) => [
9895
- c(l(j(q.operate_type_name || q.operat_type)), 1)
9899
+ default: a(({ row: j }) => [
9900
+ c(l(S(j.operate_type_name || j.operat_type)), 1)
9896
9901
  ]),
9897
9902
  _: 1
9898
9903
  }),
@@ -9900,8 +9905,8 @@ const On = /* @__PURE__ */ te({
9900
9905
  label: "操作详情",
9901
9906
  "min-width": "280"
9902
9907
  }, {
9903
- default: a(({ row: q }) => [
9904
- c(l(j(q.operate_detail || q.operat_msg)), 1)
9908
+ default: a(({ row: j }) => [
9909
+ c(l(S(j.operate_detail || j.operat_msg)), 1)
9905
9910
  ]),
9906
9911
  _: 1
9907
9912
  })
@@ -9942,12 +9947,12 @@ const On = /* @__PURE__ */ te({
9942
9947
  setup(s) {
9943
9948
  const m = s, r = F(!1), _ = F("orders"), n = Ve({}), h = R(() => n.contract_no || m.purchaseContractNo), g = R(
9944
9949
  () => Array.isArray(n.purchase_order_detail_list) ? n.purchase_order_detail_list : []
9945
- ), N = R(() => g.value.length ? g.value[0] : null), D = R(() => {
9946
- const p = N.value || n;
9950
+ ), q = R(() => g.value.length ? g.value[0] : null), D = R(() => {
9951
+ const p = q.value || n;
9947
9952
  return b(
9948
9953
  n.settlement_method_name || n.settlement_method_label || n.py_method_type_name || (p == null ? void 0 : p.settlement_method_name) || (p == null ? void 0 : p.settlement_method_label) || (p == null ? void 0 : p.py_method_type_name)
9949
9954
  );
9950
- }), S = R(() => {
9955
+ }), N = R(() => {
9951
9956
  const p = n.source_file_list;
9952
9957
  return Array.isArray(p) ? p.map((i) => (i == null ? void 0 : i.name) || (i == null ? void 0 : i.file_name) || "").filter(Boolean) : [];
9953
9958
  }), k = R(() => {
@@ -9964,7 +9969,7 @@ const On = /* @__PURE__ */ te({
9964
9969
  totalIncl: B(T || Number(n.total_amount_tax_incl || 0)),
9965
9970
  totalExcl: B(M || Number(n.total_amount_tax_excl || 0))
9966
9971
  };
9967
- }), w = R(() => n.status_name ? String(n.status_name) : n.status != null && n.status !== "" ? String(n.status) : "-"), j = R(() => {
9972
+ }), w = R(() => n.status_name ? String(n.status_name) : n.status != null && n.status !== "" ? String(n.status) : "-"), S = R(() => {
9968
9973
  const p = Number(n.status);
9969
9974
  return p === 50 ? "info" : p === 100 || p === 200 ? "warning" : p === 300 ? "success" : p === 400 ? "danger" : "info";
9970
9975
  }), P = R(() => {
@@ -10003,8 +10008,8 @@ const On = /* @__PURE__ */ te({
10003
10008
  },
10004
10009
  { immediate: !0 }
10005
10010
  ), (p, i) => {
10006
- const y = x("el-tag"), T = x("el-card"), M = x("el-table-column"), B = x("el-image"), J = x("el-table"), $ = x("el-tab-pane"), d = x("el-tabs"), V = x("el-button"), q = x("el-dialog"), H = me("loading");
10007
- return u(), A(q, {
10011
+ const y = x("el-tag"), T = x("el-card"), M = x("el-table-column"), B = x("el-image"), J = x("el-table"), $ = x("el-tab-pane"), d = x("el-tabs"), V = x("el-button"), j = x("el-dialog"), H = me("loading");
10012
+ return u(), A(j, {
10008
10013
  "model-value": s.modelValue,
10009
10014
  width: "90%",
10010
10015
  "append-to-body": "",
@@ -10021,7 +10026,7 @@ const On = /* @__PURE__ */ te({
10021
10026
  w.value !== "-" ? (u(), A(y, {
10022
10027
  key: 0,
10023
10028
  size: "small",
10024
- type: j.value
10029
+ type: S.value
10025
10030
  }, {
10026
10031
  default: a(() => [
10027
10032
  c(l(w.value), 1)
@@ -10145,9 +10150,9 @@ const On = /* @__PURE__ */ te({
10145
10150
  i[27] || (i[27] = e("span", { class: "info-label" }, "备注:", -1)),
10146
10151
  e("span", Mp, l(b(n.remark)), 1)
10147
10152
  ]),
10148
- S.value.length ? (u(), C("div", Lp, [
10153
+ N.value.length ? (u(), C("div", Lp, [
10149
10154
  i[28] || (i[28] = e("span", { class: "info-label" }, "合同文件:", -1)),
10150
- e("span", Kp, l(S.value.join("、")), 1)
10155
+ e("span", Kp, l(N.value.join("、")), 1)
10151
10156
  ])) : E("", !0)
10152
10157
  ])
10153
10158
  ]),
@@ -10325,30 +10330,30 @@ const On = /* @__PURE__ */ te({
10325
10330
  },
10326
10331
  emits: ["update:modelValue"],
10327
10332
  setup(s) {
10328
- const m = s, r = F(!1), _ = F("products"), n = Ve({}), h = R(() => n.delivery_no || m.deliveryDocNo), g = R(() => Array.isArray(n.items) ? n.items : []), N = R(() => Array.isArray(n.operation_logs) ? n.operation_logs : Array.isArray(n.logs) ? n.logs : []), D = R(() => n.status_name ? String(n.status_name) : n.status != null && n.status !== "" ? String(n.status) : "-"), S = R(() => {
10333
+ const m = s, r = F(!1), _ = F("products"), n = Ve({}), h = R(() => n.delivery_no || m.deliveryDocNo), g = R(() => Array.isArray(n.items) ? n.items : []), q = R(() => Array.isArray(n.operation_logs) ? n.operation_logs : Array.isArray(n.logs) ? n.logs : []), D = R(() => n.status_name ? String(n.status_name) : n.status != null && n.status !== "" ? String(n.status) : "-"), N = R(() => {
10329
10334
  const b = Number(n.status);
10330
10335
  return b === 100 ? "warning" : b === 200 ? "success" : b === 300 ? "danger" : "info";
10331
10336
  }), k = R(() => {
10332
10337
  const b = Number(n.is_urgent);
10333
10338
  return b === 1 || b === 2 || n.is_urgent === !0;
10334
- }), w = (b) => b == null || b === "" ? "-" : String(b), j = () => {
10339
+ }), w = (b) => b == null || b === "" ? "-" : String(b), S = () => {
10335
10340
  Object.keys(n).forEach((b) => delete n[b]), _.value = "products";
10336
10341
  }, P = async () => {
10337
10342
  if (!m.deliveryDocNo) {
10338
- j();
10343
+ S();
10339
10344
  return;
10340
10345
  }
10341
10346
  const b = be().getDeliveryDocDetail;
10342
10347
  if (!b) {
10343
- console.warn("[DeliveryDocDetailView] 未注入 getDeliveryDocDetail adapter"), j();
10348
+ console.warn("[DeliveryDocDetailView] 未注入 getDeliveryDocDetail adapter"), S();
10344
10349
  return;
10345
10350
  }
10346
10351
  r.value = !0;
10347
10352
  try {
10348
10353
  const o = await b(m.deliveryDocNo);
10349
- (o == null ? void 0 : o.code) === 1 ? Object.assign(n, o.data || {}) : j();
10354
+ (o == null ? void 0 : o.code) === 1 ? Object.assign(n, o.data || {}) : S();
10350
10355
  } catch (o) {
10351
- console.error("[DeliveryDocDetailView] getDeliveryDocDetail error:", o), j();
10356
+ console.error("[DeliveryDocDetailView] getDeliveryDocDetail error:", o), S();
10352
10357
  } finally {
10353
10358
  r.value = !1;
10354
10359
  }
@@ -10356,7 +10361,7 @@ const On = /* @__PURE__ */ te({
10356
10361
  return re(
10357
10362
  () => m.modelValue,
10358
10363
  (b) => {
10359
- b ? (j(), P()) : j();
10364
+ b ? (S(), P()) : S();
10360
10365
  },
10361
10366
  { immediate: !0 }
10362
10367
  ), (b, o) => {
@@ -10378,7 +10383,7 @@ const On = /* @__PURE__ */ te({
10378
10383
  D.value !== "-" ? (u(), A(f, {
10379
10384
  key: 0,
10380
10385
  size: "small",
10381
- type: S.value
10386
+ type: N.value
10382
10387
  }, {
10383
10388
  default: a(() => [
10384
10389
  c(l(D.value), 1)
@@ -10646,7 +10651,7 @@ const On = /* @__PURE__ */ te({
10646
10651
  }, {
10647
10652
  default: a(() => [
10648
10653
  t(y, {
10649
- data: N.value,
10654
+ data: q.value,
10650
10655
  border: "",
10651
10656
  size: "small",
10652
10657
  style: { width: "100%" }
@@ -10692,7 +10697,7 @@ const On = /* @__PURE__ */ te({
10692
10697
  ]),
10693
10698
  _: 1
10694
10699
  }, 8, ["data"]),
10695
- N.value.length ? E("", !0) : (u(), C("div", hm, "暂无操作日志"))
10700
+ q.value.length ? E("", !0) : (u(), C("div", hm, "暂无操作日志"))
10696
10701
  ]),
10697
10702
  _: 1
10698
10703
  })
@@ -10784,13 +10789,13 @@ const On = /* @__PURE__ */ te({
10784
10789
  orderNoProp: "purchaseContractNo"
10785
10790
  }
10786
10791
  };
10787
- function _t(s, m) {
10788
- return Array.isArray(s) ? s.map((r) => _t(r, m)) : s !== null && typeof s == "object" && !(s instanceof Date) ? m(s) : s;
10792
+ function pt(s, m) {
10793
+ return Array.isArray(s) ? s.map((r) => pt(r, m)) : s !== null && typeof s == "object" && !(s instanceof Date) ? m(s) : s;
10789
10794
  }
10790
10795
  function wm(s, m = []) {
10791
10796
  return Object.fromEntries(
10792
10797
  Object.entries(s).map(([r, _]) => {
10793
- const n = _t(_, (g) => wm(g, m));
10798
+ const n = pt(_, (g) => wm(g, m));
10794
10799
  return m.includes(r) ? [r, n] : [r.replace(/([A-Z])/g, "_$1").toLowerCase(), n];
10795
10800
  })
10796
10801
  );
@@ -10798,8 +10803,8 @@ function wm(s, m = []) {
10798
10803
  function Dm(s, m = []) {
10799
10804
  return Object.fromEntries(
10800
10805
  Object.entries(s).map(([r, _]) => {
10801
- const n = _t(_, (g) => Dm(g, m));
10802
- return m.includes(r) ? [r, n] : [r.replace(/_([a-z])/g, (g, N) => N.toUpperCase()), n];
10806
+ const n = pt(_, (g) => Dm(g, m));
10807
+ return m.includes(r) ? [r, n] : [r.replace(/_([a-z])/g, (g, q) => q.toUpperCase()), n];
10803
10808
  })
10804
10809
  );
10805
10810
  }
@@ -10815,14 +10820,14 @@ function Zm(s, m) {
10815
10820
  delete r[_];
10816
10821
  return r;
10817
10822
  }
10818
- function Dt(s) {
10823
+ function xt(s) {
10819
10824
  if (s === null || typeof s != "object") return s;
10820
10825
  if (s instanceof Date) return new Date(s.getTime());
10821
10826
  if (s instanceof RegExp) return new RegExp(s.source, s.flags);
10822
- if (Array.isArray(s)) return s.map((r) => Dt(r));
10827
+ if (Array.isArray(s)) return s.map((r) => xt(r));
10823
10828
  const m = {};
10824
10829
  for (const r of Object.keys(s))
10825
- m[r] = Dt(s[r]);
10830
+ m[r] = xt(s[r]);
10826
10831
  return m;
10827
10832
  }
10828
10833
  function xm(s, m = !1) {
@@ -10849,8 +10854,8 @@ function Gm(s, m = ".") {
10849
10854
  for (const [_, n] of Object.entries(s)) {
10850
10855
  const h = _.split(m);
10851
10856
  let g = r;
10852
- for (let N = 0; N < h.length - 1; N++) {
10853
- const D = h[N];
10857
+ for (let q = 0; q < h.length - 1; q++) {
10858
+ const D = h[q];
10854
10859
  D in g || (g[D] = {}), g = g[D];
10855
10860
  }
10856
10861
  g[h[h.length - 1]] = n;
@@ -10892,8 +10897,8 @@ function ia(s, m, r) {
10892
10897
  meta: {
10893
10898
  requiresAuth: _.requiresAuth === 1,
10894
10899
  title: _.title,
10895
- permissions: _.permissions ? _.permissions.split(",").map((N) => N.trim()).filter(Boolean) : [],
10896
- params: _.params ? _.params.split("&").map((N) => N.trim()).filter(Boolean) : []
10900
+ permissions: _.permissions ? _.permissions.split(",").map((q) => q.trim()).filter(Boolean) : [],
10901
+ params: _.params ? _.params.split("&").map((q) => q.trim()).filter(Boolean) : []
10897
10902
  }
10898
10903
  }, h = Sm(_.component, m);
10899
10904
  return h && (n.component = h), _.redirect && (n.redirect = _.redirect), (g = _.children) != null && g.length && (n.children = ia(_.children, m, r)), n;
@@ -10903,25 +10908,25 @@ function t1(s, m, r, _) {
10903
10908
  const n = /* @__PURE__ */ new Map();
10904
10909
  s.forEach((g) => n.set(g.name, g));
10905
10910
  const h = (g) => {
10906
- let N = g.parent_name;
10911
+ let q = g.parent_name;
10907
10912
  const D = /* @__PURE__ */ new Set();
10908
- for (; N; ) {
10909
- if (N === r) return !0;
10910
- if (D.has(N)) return !1;
10911
- D.add(N);
10912
- const S = n.get(N);
10913
- if (!S) return !1;
10914
- N = S.parent_name;
10913
+ for (; q; ) {
10914
+ if (q === r) return !0;
10915
+ if (D.has(q)) return !1;
10916
+ D.add(q);
10917
+ const N = n.get(q);
10918
+ if (!N) return !1;
10919
+ q = N.parent_name;
10915
10920
  }
10916
10921
  return !1;
10917
10922
  };
10918
10923
  return s.filter(
10919
10924
  (g) => g.name !== r && g.is_show === 1 && g.component && m.includes(g.code) && h(g) && (!_ || !g.project || g.project === _)
10920
- ).sort((g, N) => g.sorts - N.sorts)[0];
10925
+ ).sort((g, q) => g.sorts - q.sorts)[0];
10921
10926
  }
10922
10927
  lt.configure({ showSpinner: !1 });
10923
- const xt = (...s) => {
10924
- }, Vt = (...s) => {
10928
+ const Vt = (...s) => {
10929
+ }, St = (...s) => {
10925
10930
  }, qm = (...s) => {
10926
10931
  console.error("[Router]", ...s);
10927
10932
  };
@@ -10932,12 +10937,12 @@ function a1(s, m) {
10932
10937
  getUserStore: n,
10933
10938
  isAuthenticated: h,
10934
10939
  viewModules: g,
10935
- homeComponent: N,
10940
+ homeComponent: q,
10936
10941
  notFoundComponent: D,
10937
- projectName: S,
10942
+ projectName: N,
10938
10943
  layoutRouteName: k = "Layout",
10939
10944
  publicPaths: w = ["/login", "/register"],
10940
- loginRouteName: j = "login",
10945
+ loginRouteName: S = "login",
10941
10946
  forbiddenRouteName: P = "Forbidden",
10942
10947
  homeRouteName: b = "Home",
10943
10948
  homeRoutePath: o = "home",
@@ -10946,19 +10951,19 @@ function a1(s, m) {
10946
10951
  } = m;
10947
10952
  let p = !1;
10948
10953
  function i(T) {
10949
- const B = Nm(T).find(($) => $.name === k), J = B != null && B.children ? ia(B.children, g, S) : [];
10954
+ const B = Nm(T).find(($) => $.name === k), J = B != null && B.children ? ia(B.children, g, N) : [];
10950
10955
  J.forEach(($) => {
10951
- $.name && s.hasRoute($.name) || (s.addRoute(k, $), xt(`Add route: ${String($.name)} -> ${$.path}`));
10956
+ $.name && s.hasRoute($.name) || (s.addRoute(k, $), Vt(`Add route: ${String($.name)} -> ${$.path}`));
10952
10957
  }), s.hasRoute(b) || s.addRoute(k, {
10953
10958
  path: o,
10954
10959
  name: b,
10955
- component: N,
10960
+ component: q,
10956
10961
  meta: { title: f }
10957
10962
  }), s.hasRoute("NotFound") || s.addRoute({
10958
10963
  path: "/:pathMatch(.*)*",
10959
10964
  name: "NotFound",
10960
10965
  component: D
10961
- }), xt(`Dynamic routes added: ${J.length}`);
10966
+ }), Vt(`Dynamic routes added: ${J.length}`);
10962
10967
  }
10963
10968
  function y(T, M) {
10964
10969
  if (T === b) {
@@ -10970,8 +10975,8 @@ function a1(s, m) {
10970
10975
  return s.beforeEach(async (T, M, B) => {
10971
10976
  if (lt.start(), h() && !p)
10972
10977
  try {
10973
- const V = r(), q = _();
10974
- if (await V.initRoutes(), await q.loadUserPermissions(), i(V.backendRoutes), p = !0, T.path === "/" || T.path === "") {
10978
+ const V = r(), j = _();
10979
+ if (await V.initRoutes(), await j.loadUserPermissions(), i(V.backendRoutes), p = !0, T.path === "/" || T.path === "") {
10975
10980
  y(T.name, B);
10976
10981
  return;
10977
10982
  }
@@ -10980,8 +10985,8 @@ function a1(s, m) {
10980
10985
  return;
10981
10986
  }
10982
10987
  const H = V.backendRoutes.find((L) => L.name === T.name);
10983
- if (H && !q.routePermissions.includes(H.code)) {
10984
- Vt("No route permission:", T.path), B({ name: P, replace: !0 });
10988
+ if (H && !j.routePermissions.includes(H.code)) {
10989
+ St("No route permission:", T.path), B({ name: P, replace: !0 });
10985
10990
  return;
10986
10991
  }
10987
10992
  B({
@@ -10992,7 +10997,7 @@ function a1(s, m) {
10992
10997
  });
10993
10998
  return;
10994
10999
  } catch (V) {
10995
- qm("Failed to load route permissions:", V), p = !1, await n().logout(), B({ name: j, replace: !0 });
11000
+ qm("Failed to load route permissions:", V), p = !1, await n().logout(), B({ name: S, replace: !0 });
10996
11001
  return;
10997
11002
  }
10998
11003
  if (w.includes(T.path)) {
@@ -11000,7 +11005,7 @@ function a1(s, m) {
11000
11005
  return;
11001
11006
  }
11002
11007
  if (!h()) {
11003
- B({ name: j, replace: !0 });
11008
+ B({ name: S, replace: !0 });
11004
11009
  return;
11005
11010
  }
11006
11011
  const J = _(), $ = r();
@@ -11022,7 +11027,7 @@ function a1(s, m) {
11022
11027
  }
11023
11028
  const d = $.backendRoutes.find((V) => V.name === T.name);
11024
11029
  if (d && !J.routePermissions.includes(d.code)) {
11025
- Vt("No route permission:", T.path), B({ name: P, replace: !0 });
11030
+ St("No route permission:", T.path), B({ name: P, replace: !0 });
11026
11031
  return;
11027
11032
  }
11028
11033
  B();
@@ -11092,7 +11097,7 @@ export {
11092
11097
  Tn as RelatedDocSubTabs,
11093
11098
  wn as RelatedInboundOrderTable,
11094
11099
  Nn as RelatedPutawayOrderTable,
11095
- $t as RelatedQcOrderTable,
11100
+ wt as RelatedQcOrderTable,
11096
11101
  Gs as RelatedReceiptOrderTable,
11097
11102
  Nu as ReturnOrderDetailView,
11098
11103
  Di as TransferOrderDetailView,
@@ -11102,12 +11107,12 @@ export {
11102
11107
  Mm as createDocDetail,
11103
11108
  Jm as createRelatedDocs,
11104
11109
  a1 as createRouterGuard,
11105
- Dt as deepClone,
11110
+ xt as deepClone,
11106
11111
  l1 as default,
11107
11112
  xm as filterEmpty,
11108
11113
  t1 as findFirstAllowedRoute,
11109
11114
  Vm as flatten,
11110
- ut as flattenOrderItems,
11115
+ ct as flattenOrderItems,
11111
11116
  Sm as getComponentImport,
11112
11117
  be as getDocDetailAdapters,
11113
11118
  Zt as getDocDetailEntry,
@@ -11137,7 +11142,7 @@ export {
11137
11142
  tl as useInjectedBtnPermissions,
11138
11143
  El as useInjectedProductRequest,
11139
11144
  Um as useProductDetailDialog,
11140
- dt as useProductDetailStore,
11145
+ rt as useProductDetailStore,
11141
11146
  sa as useRelatedCollapseExpand,
11142
11147
  Wm as wmsDocDetailComponents
11143
11148
  };