xyvcard-goods 0.0.3 → 0.0.4

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.
Files changed (24) hide show
  1. package/dist/{approveFailIndex-C2BhoVKC.mjs → approveFailIndex-F3GtuNeX.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs} +1 -1
  3. package/dist/{auditIndex-BjjiwYrm.mjs → auditIndex-BXUxPTBo.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs → auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs} +9 -9
  5. package/dist/edit-B_KK1orD.mjs +2976 -0
  6. package/dist/{el-message-BBB-S2MS.mjs → el-message-D15RmjW3.mjs} +454 -472
  7. package/dist/index-D5_GsXR7.mjs +142 -0
  8. package/dist/{index-vE-TE0cx.mjs → index-PA3Mh5x6.mjs} +14 -14
  9. package/dist/index.mjs +2 -2
  10. package/dist/{info-Bm6Ifv7W.mjs → info-8-HEtfzY.mjs} +2 -2
  11. package/dist/{saleIndex-C9AD4DIj.mjs → saleIndex-vZV2Dq0y.mjs} +1 -1
  12. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs → saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs} +9 -9
  13. package/dist/{shelfIndex-CyAp6rf5.mjs → shelfIndex-Ciis-I11.mjs} +1 -1
  14. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs} +9 -9
  15. package/dist/{skuForm-Ctu0Vbym.mjs → skuForm-DaxgHBOV.mjs} +40 -37
  16. package/dist/{skuTable-BbTTCq2m.mjs → skuTable-C4mHW-e9.mjs} +138 -129
  17. package/dist/style.css +1 -1
  18. package/dts/main.d.ts +2 -0
  19. package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +2 -0
  20. package/dts/views/goods/goods-spu/sku-form.vue.d.ts +31 -0
  21. package/dts/views/goods/goods-spu/sku-table.vue.d.ts +14 -0
  22. package/package.json +4 -2
  23. package/dist/edit-B1_IbaHc.mjs +0 -13974
  24. package/dist/index-CZD7OAWo.mjs +0 -213
@@ -0,0 +1,142 @@
1
+ var h = Object.defineProperty;
2
+ var S = (a, t, i) => t in a ? h(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
3
+ var s = (a, t, i) => S(a, typeof t != "symbol" ? t + "" : t, i);
4
+ import { BizDict as p, BizLayDict as E, EnumDict as l } from "jmash-core";
5
+ import { EntryDict as _ } from "jmash-dict";
6
+ import { ref as n, reactive as v } from "vue";
7
+ import { goodsCategoryApi as O } from "xyvcard-emall";
8
+ import { specValueApi as d, infoApi as P, specInfoApi as f } from "xyvcard-shop";
9
+ class e {
10
+ }
11
+ // 模块
12
+ s(e, "MODULE_GOODS", "goods"), // 商品规格类型
13
+ s(e, "specType", {
14
+ UNIFIED_SPEC: "UNIFIED_SPEC",
15
+ //统一规格
16
+ MULTI_SPEC: "MULTI_SPEC"
17
+ //多规格
18
+ }), // 启用禁用
19
+ s(e, "SHELF_VALUES", n([
20
+ { key: "true", value: "上架" },
21
+ { key: "false", value: "下架" }
22
+ ])), // 运费类型
23
+ s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
24
+ s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
25
+ s(e, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
26
+ s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
27
+ s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
28
+ s(e, "approval_not_pass", "APPROVAL_NOT_PASS"), s(e, "approval_pass", "APPROVAL_PASS"), s(e, "approvaling", "APPROVALING");
29
+ class y {
30
+ constructor(t, i) {
31
+ s(this, "values", v([]));
32
+ // 查询条件
33
+ s(this, "query");
34
+ this.values.length = 0, this.values.push(...t.value), this.query = i;
35
+ }
36
+ // 根据给定键获取业务数据项的值的方法
37
+ getValue(t) {
38
+ for (const i of this.values)
39
+ if (i.key == t)
40
+ return i.value;
41
+ return "";
42
+ }
43
+ }
44
+ class L extends p {
45
+ // 实现 useValues 方法
46
+ useValues() {
47
+ return new Promise((t, i) => {
48
+ P.findList(this.query).then(({ data: o }) => {
49
+ console.log(o);
50
+ const r = o.results;
51
+ this.values.length = 0, this.values.push(
52
+ ...r.map(
53
+ (c) => ({
54
+ key: c.shopId,
55
+ value: c.shopName
56
+ })
57
+ )
58
+ ), t(this.values);
59
+ }).catch(i);
60
+ });
61
+ }
62
+ }
63
+ class g extends E {
64
+ // 实现 useValues 方法
65
+ useValues() {
66
+ return new Promise((t, i) => {
67
+ O.findTreeListApi().then(({ data: o }) => {
68
+ this.values.length = 0, this.values.push(...o.results), t(this.values);
69
+ }).catch(i);
70
+ });
71
+ }
72
+ }
73
+ class m extends p {
74
+ // 实现 useValues 方法
75
+ useValues() {
76
+ return new Promise((t, i) => {
77
+ f.findList(this.query).then(({ data: o }) => {
78
+ console.log(o);
79
+ const r = o.results;
80
+ this.values.length = 0, this.values.push(
81
+ ...r.map(
82
+ (c) => ({
83
+ key: c.specId,
84
+ value: c.specName,
85
+ disabled: c.disabled
86
+ })
87
+ )
88
+ ), t(this.values);
89
+ }).catch(i);
90
+ });
91
+ }
92
+ }
93
+ class D extends p {
94
+ // 实现 useValues 方法
95
+ useValues() {
96
+ return new Promise((t, i) => {
97
+ d.findList(this.query).then(({ data: o }) => {
98
+ console.log(o);
99
+ const r = o.results;
100
+ this.values.length = 0, this.values.push(
101
+ ...r.map(
102
+ (c) => ({
103
+ key: c.specValueId,
104
+ value: c.valueName
105
+ })
106
+ )
107
+ ), t(this.values);
108
+ }).catch(i);
109
+ });
110
+ }
111
+ }
112
+ class u {
113
+ }
114
+ // 店铺列表
115
+ s(u, "shopInfoBizDict", new L({})), // 商品分类
116
+ s(u, "goodsCategoryDict", new g({})), // 规格列表
117
+ s(u, "specInfoDict", new m({})), // 规格值
118
+ s(u, "specValueDict", new D({})), // 上架下架
119
+ s(u, "shelfDict", new y(e.SHELF_VALUES, {})), // 运费类型
120
+ s(u, "freightTypeEnum", new l(
121
+ e.MODULE_GOODS,
122
+ e.ENUM_FREIGHT_TYPE
123
+ )), // 保障服务
124
+ s(u, "goodsEnsureDict", new _(e.DICT_GOODS_ENSURE)), // 规格类型
125
+ s(u, "specTypeEnum", new l(
126
+ e.MODULE_GOODS,
127
+ e.ENUM_SPEC_TYPE
128
+ )), // 商品查询枚举
129
+ s(u, "goodsSpuListSortEnum", new l(
130
+ e.MODULE_GOODS,
131
+ e.ENUM_GOODS_SPU_List_SORT
132
+ )), // 审核状态
133
+ s(u, "approvalStatusEnum", new l(
134
+ e.MODULE_GOODS,
135
+ e.ENUM_APPROVAL_STATUS
136
+ ));
137
+ export {
138
+ e as C,
139
+ u as D,
140
+ D as S,
141
+ m as a
142
+ };
@@ -3,21 +3,21 @@ import { useRouter as ve } from "vue-router";
3
3
  import { useTableHooks as ye, fileApi as M } from "jmash-core";
4
4
  import { useI18n as Se } from "vue-i18n";
5
5
  import { goodsSpuApi as L } from "./index.mjs";
6
- import { D as b, C as j } from "./index-CZD7OAWo.mjs";
7
- import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs";
8
- import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs";
9
- import { _ as Ve } from "./auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs";
10
- import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs";
11
- import { $ as I } from "./el-message-BBB-S2MS.mjs";
6
+ import { D as b, C as j } from "./index-D5_GsXR7.mjs";
7
+ import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs";
8
+ import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs";
9
+ import { _ as Ve } from "./auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs";
10
+ import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs";
11
+ import { Z as I } from "./el-message-D15RmjW3.mjs";
12
12
  const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Ue = ["onClick"], De = ["onClick"], Re = ["onClick"], Ye = /* @__PURE__ */ ge({
13
13
  __name: "index",
14
14
  setup(ze) {
15
15
  const { t: c } = Se(), D = ve(), { proxy: J } = _e(), i = P({}), {
16
16
  tableHooks: d,
17
17
  multipleTableRef: R,
18
- queryFormRef: G,
19
- listLoading: W,
20
- tableData: X,
18
+ queryFormRef: Z,
19
+ listLoading: G,
20
+ tableData: W,
21
21
  total: N
22
22
  } = ye(c, L, i);
23
23
  let T = P([
@@ -120,7 +120,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
120
120
  ]);
121
121
  b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
122
122
  const h = P(0);
123
- function Z() {
123
+ function X() {
124
124
  D.push({ path: "/rawgoods/goods-spu/edit" });
125
125
  }
126
126
  function x(t) {
@@ -204,7 +204,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
204
204
  l(ne, {
205
205
  ref_for: !0,
206
206
  ref_key: "queryFormRef",
207
- ref: G,
207
+ ref: Z,
208
208
  model: i.value,
209
209
  inline: !0
210
210
  }, {
@@ -316,7 +316,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
316
316
  default: o(() => [
317
317
  y((p(), g(C, {
318
318
  type: "primary",
319
- onClick: Z
319
+ onClick: X
320
320
  }, {
321
321
  default: o(() => [
322
322
  m(u(t.$t("common.add")), 1)
@@ -484,8 +484,8 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
484
484
  ref_key: "multipleTableRef",
485
485
  ref: R,
486
486
  "row-key": "spuId",
487
- "list-loading": s(W),
488
- data: s(X),
487
+ "list-loading": s(G),
488
+ data: s(W),
489
489
  "table-label": s(T),
490
490
  onSelectionChange: oe,
491
491
  onSortChange: le
package/dist/index.mjs CHANGED
@@ -110,7 +110,7 @@ function Ps(e) {
110
110
  let s = e.global.getLocaleMessage("en");
111
111
  s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
112
112
  }
113
- const Ns = () => import("./edit-B1_IbaHc.mjs"), Ws = () => import("./info-Bm6Ifv7W.mjs"), Fs = [
113
+ const Ns = () => import("./edit-B_KK1orD.mjs"), Ws = () => import("./info-8-HEtfzY.mjs"), Fs = [
114
114
  {
115
115
  path: "/rawgoods",
116
116
  component: Ys,
@@ -2854,7 +2854,7 @@ class Ci {
2854
2854
  });
2855
2855
  }
2856
2856
  }
2857
- const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-C2BhoVKC.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-BjjiwYrm.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-B1_IbaHc.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-vE-TE0cx.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-Bm6Ifv7W.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-C9AD4DIj.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-CyAp6rf5.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-Ctu0Vbym.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-BbTTCq2m.mjs").then((e) => e.a) }), Ei = {
2857
+ const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-F3GtuNeX.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-BXUxPTBo.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-B_KK1orD.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-PA3Mh5x6.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-8-HEtfzY.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-vZV2Dq0y.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-Ciis-I11.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-DaxgHBOV.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-C4mHW-e9.mjs").then((e) => e.a) }), Ei = {
2858
2858
  install(e) {
2859
2859
  Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Li);
2860
2860
  }
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as q, ref as b, computed as j, watch as F, resolveComponent as S, openBlock as g, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as r, Fragment as w, renderList as C, createBlock as y, createCommentVNode as P } from "vue";
2
2
  import { fileApi as B, routerUtil as H } from "jmash-core";
3
3
  import { useRouter as O, useRoute as R } from "vue-router";
4
- import { D as p, C as N, S as z } from "./index-CZD7OAWo.mjs";
5
- import { s as G } from "./skuTable-BbTTCq2m.mjs";
4
+ import { D as p, C as N, S as z } from "./index-D5_GsXR7.mjs";
5
+ import { s as G } from "./skuTable-C4mHW-e9.mjs";
6
6
  import { goodsSpuApi as J } from "./index.mjs";
7
7
  import { g as K } from "./index-BHmGYIuc.mjs";
8
8
  const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], ye = /* @__PURE__ */ q({
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs";
1
+ import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as m, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as P, createCommentVNode as oe } from "vue";
1
+ import { defineComponent as X, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as m, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as P, createCommentVNode as oe } from "vue";
2
2
  import { useRouter as le } from "vue-router";
3
3
  import { useTableHooks as te, fileApi as z } from "jmash-core";
4
4
  import { useI18n as ae } from "vue-i18n";
5
5
  import { goodsSpuApi as j } from "./index.mjs";
6
- import { C as se, D as g } from "./index-CZD7OAWo.mjs";
7
- import { $ as E } from "./el-message-BBB-S2MS.mjs";
8
- const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ Z({
6
+ import { C as se, D as g } from "./index-D5_GsXR7.mjs";
7
+ import { Z as E } from "./el-message-D15RmjW3.mjs";
8
+ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ X({
9
9
  __name: "saleIndex",
10
10
  setup(de) {
11
11
  const { t: _ } = ae(), T = le(), { proxy: B } = x(), r = D({
@@ -153,7 +153,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
153
153
  });
154
154
  }
155
155
  return n.getList(), (a, o) => {
156
- const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"), G = p("el-image"), U = p("el-switch"), J = p("jmash-table"), W = p("jmash-pagination"), X = p("el-card"), w = ee("hasPerm");
156
+ const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"), Z = p("el-image"), U = p("el-switch"), G = p("jmash-table"), J = p("jmash-pagination"), W = p("el-card"), w = ee("hasPerm");
157
157
  return m(), I("div", ne, [
158
158
  d("div", ue, [
159
159
  t(F, {
@@ -259,7 +259,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
259
259
  _: 1
260
260
  }, 8, ["model"])
261
261
  ]),
262
- t(X, {
262
+ t(W, {
263
263
  shadow: "never",
264
264
  class: "table-container"
265
265
  }, {
@@ -322,7 +322,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
322
322
  })
323
323
  ]),
324
324
  footer: l(() => [
325
- s(v) > 0 ? (m(), V(W, {
325
+ s(v) > 0 ? (m(), V(J, {
326
326
  key: 0,
327
327
  total: s(v),
328
328
  "onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
@@ -334,7 +334,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
334
334
  }, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
335
335
  ]),
336
336
  default: l(() => [
337
- t(J, {
337
+ t(G, {
338
338
  ref_key: "multipleTableRef",
339
339
  ref: $,
340
340
  "row-key": "spuId",
@@ -352,7 +352,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
352
352
  ]),
353
353
  picUrls: l((e) => [
354
354
  d("span", null, [
355
- t(G, {
355
+ t(Z, {
356
356
  src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
357
357
  "preview-src-list": [
358
358
  s(z).imageUrl(e.data.row.picUrls.split(",")[0])
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs";
1
+ import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,8 +3,8 @@ import { useRouter as te } from "vue-router";
3
3
  import { useTableHooks as ae, fileApi as z } from "jmash-core";
4
4
  import { useI18n as se } from "vue-i18n";
5
5
  import { goodsSpuApi as j } from "./index.mjs";
6
- import { D as g } from "./index-CZD7OAWo.mjs";
7
- import { $ as E } from "./el-message-BBB-S2MS.mjs";
6
+ import { D as g } from "./index-D5_GsXR7.mjs";
7
+ import { Z as E } from "./el-message-D15RmjW3.mjs";
8
8
  const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ x({
9
9
  __name: "shelfIndex",
10
10
  setup(ie) {
@@ -158,10 +158,10 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
158
158
  });
159
159
  }
160
160
  return n.getList(), (t, o) => {
161
- const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"), G = p("el-form"), J = p("jmash-column-select"), O = p("el-image"), U = p("el-switch"), W = p("jmash-table"), X = p("jmash-pagination"), Z = p("el-card"), h = oe("hasPerm");
161
+ const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"), Z = p("el-form"), G = p("jmash-column-select"), J = p("el-image"), U = p("el-switch"), O = p("jmash-table"), W = p("jmash-pagination"), X = p("el-card"), h = oe("hasPerm");
162
162
  return m(), V("div", ne, [
163
163
  r("div", ue, [
164
- a(G, {
164
+ a(Z, {
165
165
  ref_key: "queryFormRef",
166
166
  ref: B,
167
167
  model: d.value,
@@ -264,7 +264,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
264
264
  _: 1
265
265
  }, 8, ["model"])
266
266
  ]),
267
- a(Z, {
267
+ a(X, {
268
268
  shadow: "never",
269
269
  class: "table-container"
270
270
  }, {
@@ -314,7 +314,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
314
314
  class: "container-float"
315
315
  }, {
316
316
  default: l(() => [
317
- a(J, {
317
+ a(G, {
318
318
  modelValue: s(w),
319
319
  "onUpdate:modelValue": o[8] || (o[8] = (e) => P(w) ? w.value = e : w = e),
320
320
  "label-name": "goods/goods-spu"
@@ -327,7 +327,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
327
327
  })
328
328
  ]),
329
329
  footer: l(() => [
330
- s(v) > 0 ? (m(), I(X, {
330
+ s(v) > 0 ? (m(), I(W, {
331
331
  key: 0,
332
332
  total: s(v),
333
333
  "onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
@@ -339,7 +339,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
339
339
  }, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
340
340
  ]),
341
341
  default: l(() => [
342
- a(W, {
342
+ a(O, {
343
343
  ref_key: "multipleTableRef",
344
344
  ref: T,
345
345
  "row-key": "spuId",
@@ -357,7 +357,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
357
357
  ]),
358
358
  picUrls: l((e) => [
359
359
  r("span", null, [
360
- a(O, {
360
+ a(J, {
361
361
  src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
362
362
  "preview-src-list": [
363
363
  s(z).imageUrl(e.data.row.picUrls.split(",")[0])
@@ -1,7 +1,8 @@
1
1
  import { defineComponent as te, ref as k, computed as se, watch as C, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as h, unref as M, createVNode as o, withCtx as a, createCommentVNode as D, renderList as y, createElementVNode as S, toDisplayString as O, createTextVNode as w, createBlock as P } from "vue";
2
2
  import "jmash-core";
3
- import { C as L, D as ue, S as H, a as ne } from "./index-CZD7OAWo.mjs";
4
- import { s as pe, _ as re } from "./skuTable-BbTTCq2m.mjs";
3
+ import "xyvcard-shop";
4
+ import { C as L, D as ue, S as H, a as ne } from "./index-D5_GsXR7.mjs";
5
+ import { s as re, _ as pe } from "./skuTable-C4mHW-e9.mjs";
5
6
  const de = { key: 0 }, ce = {
6
7
  key: 1,
7
8
  class: "w-full"
@@ -21,8 +22,8 @@ const de = { key: 0 }, ce = {
21
22
  },
22
23
  emits: ["getGoodsSku", "getFormData"],
23
24
  setup(J, { emit: K }) {
24
- var F, T, q;
25
- const r = k({
25
+ var F, q, T;
26
+ const p = k({
26
27
  picUrl: "",
27
28
  salePrice: 0,
28
29
  marketPrice: 0,
@@ -42,7 +43,7 @@ const de = { key: 0 }, ce = {
42
43
  immediate: !0
43
44
  }
44
45
  ), C(
45
- r,
46
+ p,
46
47
  (e) => {
47
48
  E("getGoodsSku", e);
48
49
  },
@@ -57,15 +58,15 @@ const de = { key: 0 }, ce = {
57
58
  deep: !0,
58
59
  immediate: !0
59
60
  }
60
- ), v.form.spuId && (v.form.specType === L.specType.UNIFIED_SPEC ? r.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : ($.value = (T = v.form.skuList) == null ? void 0 : T.results, (q = v.form.skuList) == null || q.results.forEach((e) => {
61
+ ), v.form.spuId && (v.form.specType === L.specType.UNIFIED_SPEC ? p.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : ($.value = (q = v.form.skuList) == null ? void 0 : q.results, (T = v.form.skuList) == null || T.results.forEach((e) => {
61
62
  var l;
62
63
  (l = e.specValues) == null || l.map((s) => {
63
64
  ue.specInfoDict.useValues().then((n) => {
64
- const p = n.find((f) => s.specId === f.key);
65
- if (console.log(p), p) {
65
+ const r = n.find((f) => s.specId === f.key);
66
+ if (console.log(r), r) {
66
67
  let f = {
67
68
  id: s.specId,
68
- name: p.value,
69
+ name: r.value,
69
70
  specValueList: []
70
71
  };
71
72
  t.value.push(f);
@@ -88,9 +89,9 @@ const de = { key: 0 }, ce = {
88
89
  };
89
90
  l.specValueList.push(d);
90
91
  }
91
- const p = /* @__PURE__ */ new Map();
92
+ const r = /* @__PURE__ */ new Map();
92
93
  l.specValueList = l.specValueList.filter(
93
- (d) => !p.has(d.id) && p.set(d.id, d)
94
+ (d) => !r.has(d.id) && r.set(d.id, d)
94
95
  ), console.log(t.value);
95
96
  });
96
97
  });
@@ -131,32 +132,33 @@ const de = { key: 0 }, ce = {
131
132
  });
132
133
  }
133
134
  function x(e, l) {
134
- var p, d;
135
+ var r, d;
135
136
  let s = V.value.values.filter((f) => f.key === e), n = {
136
137
  id: s[0].key,
137
138
  name: s[0].value
138
139
  };
139
- (d = (p = t.value[l]) == null ? void 0 : p.specValueList) == null || d.push(n), t.value[l].specValueId = "";
140
+ (d = (r = t.value[l]) == null ? void 0 : r.specValueList) == null || d.push(n), t.value[l].specValueId = "";
140
141
  }
141
142
  function ee(e) {
142
143
  E("getFormData", e);
143
144
  }
144
145
  return (e, l) => {
145
- const s = i("el-input-number"), n = i("el-form-item"), p = i("el-col"), d = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
146
+ const s = i("el-input-number"), n = i("el-form-item"), r = i("el-col"), d = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
146
147
  return m(), _(h, null, [
147
148
  v.specType == M(L).specType.UNIFIED_SPEC ? (m(), _("div", de, [
148
149
  o(d, null, {
149
150
  default: a(() => [
150
- o(p, { span: 8 }, {
151
+ o(r, { span: 8 }, {
151
152
  default: a(() => [
152
153
  o(n, {
153
154
  label: e.$t("goodsSpu.salePrice"),
154
- prop: "salePrice"
155
+ prop: "salePrice",
156
+ required: ""
155
157
  }, {
156
158
  default: a(() => [
157
159
  o(s, {
158
- modelValue: r.value.salePrice,
159
- "onUpdate:modelValue": l[0] || (l[0] = (u) => r.value.salePrice = u),
160
+ modelValue: p.value.salePrice,
161
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => p.value.salePrice = u),
160
162
  precision: 2,
161
163
  step: 0,
162
164
  placeholder: e.$t("goodsSpu.salePriceRequired"),
@@ -169,7 +171,7 @@ const de = { key: 0 }, ce = {
169
171
  ]),
170
172
  _: 1
171
173
  }),
172
- o(p, { span: 8 }, {
174
+ o(r, { span: 8 }, {
173
175
  default: a(() => [
174
176
  o(n, {
175
177
  label: e.$t("goodsSpu.marketPrice"),
@@ -177,8 +179,8 @@ const de = { key: 0 }, ce = {
177
179
  }, {
178
180
  default: a(() => [
179
181
  o(s, {
180
- modelValue: r.value.marketPrice,
181
- "onUpdate:modelValue": l[1] || (l[1] = (u) => r.value.marketPrice = u),
182
+ modelValue: p.value.marketPrice,
183
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => p.value.marketPrice = u),
182
184
  precision: 2,
183
185
  step: 0,
184
186
  placeholder: e.$t("goodsSpu.marketPriceRequired"),
@@ -191,7 +193,7 @@ const de = { key: 0 }, ce = {
191
193
  ]),
192
194
  _: 1
193
195
  }),
194
- o(p, { span: 8 }, {
196
+ o(r, { span: 8 }, {
195
197
  default: a(() => [
196
198
  o(n, {
197
199
  label: e.$t("goodsSpu.costPrice"),
@@ -199,8 +201,8 @@ const de = { key: 0 }, ce = {
199
201
  }, {
200
202
  default: a(() => [
201
203
  o(s, {
202
- modelValue: r.value.costPrice,
203
- "onUpdate:modelValue": l[2] || (l[2] = (u) => r.value.costPrice = u),
204
+ modelValue: p.value.costPrice,
205
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => p.value.costPrice = u),
204
206
  precision: 2,
205
207
  step: 0,
206
208
  placeholder: e.$t("goodsSpu.costPriceRequired"),
@@ -213,16 +215,17 @@ const de = { key: 0 }, ce = {
213
215
  ]),
214
216
  _: 1
215
217
  }),
216
- o(p, { span: 8 }, {
218
+ o(r, { span: 8 }, {
217
219
  default: a(() => [
218
220
  o(n, {
219
221
  label: e.$t("goodsSpu.stock"),
220
- prop: "stock"
222
+ prop: "stock",
223
+ required: ""
221
224
  }, {
222
225
  default: a(() => [
223
226
  o(s, {
224
- modelValue: r.value.stock,
225
- "onUpdate:modelValue": l[3] || (l[3] = (u) => r.value.stock = u),
227
+ modelValue: p.value.stock,
228
+ "onUpdate:modelValue": l[3] || (l[3] = (u) => p.value.stock = u),
226
229
  placeholder: e.$t("goodsSpu.stockRequired"),
227
230
  class: "w-full",
228
231
  controls: !1,
@@ -234,7 +237,7 @@ const de = { key: 0 }, ce = {
234
237
  ]),
235
238
  _: 1
236
239
  }),
237
- o(p, { span: 8 }, {
240
+ o(r, { span: 8 }, {
238
241
  default: a(() => [
239
242
  o(n, {
240
243
  label: e.$t("goodsSpu.weight"),
@@ -242,8 +245,8 @@ const de = { key: 0 }, ce = {
242
245
  }, {
243
246
  default: a(() => [
244
247
  o(s, {
245
- modelValue: r.value.weight,
246
- "onUpdate:modelValue": l[4] || (l[4] = (u) => r.value.weight = u),
248
+ modelValue: p.value.weight,
249
+ "onUpdate:modelValue": l[4] || (l[4] = (u) => p.value.weight = u),
247
250
  placeholder: e.$t("goodsSpu.weightRequired"),
248
251
  class: "w-full",
249
252
  controls: !1
@@ -254,7 +257,7 @@ const de = { key: 0 }, ce = {
254
257
  ]),
255
258
  _: 1
256
259
  }),
257
- o(p, { span: 8 }, {
260
+ o(r, { span: 8 }, {
258
261
  default: a(() => [
259
262
  o(n, {
260
263
  label: e.$t("goodsSpu.volume"),
@@ -262,8 +265,8 @@ const de = { key: 0 }, ce = {
262
265
  }, {
263
266
  default: a(() => [
264
267
  o(s, {
265
- modelValue: r.value.volume,
266
- "onUpdate:modelValue": l[5] || (l[5] = (u) => r.value.volume = u),
268
+ modelValue: p.value.volume,
269
+ "onUpdate:modelValue": l[5] || (l[5] = (u) => p.value.volume = u),
267
270
  controls: !1,
268
271
  placeholder: e.$t("goodsSpu.volumeRequired"),
269
272
  class: "w-full"
@@ -397,7 +400,7 @@ const de = { key: 0 }, ce = {
397
400
  default: a(() => [
398
401
  o(B, { label: "规格售价与库存" }, {
399
402
  default: a(() => [
400
- t.value.length > 0 ? (m(), P(pe, {
403
+ t.value.length > 0 ? (m(), P(re, {
401
404
  key: 0,
402
405
  specData: U.value,
403
406
  goodsSku: $.value,
@@ -413,7 +416,7 @@ const de = { key: 0 }, ce = {
413
416
  ], 64);
414
417
  };
415
418
  }
416
- }), be = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-8e881ab3"]]);
419
+ }), ye = /* @__PURE__ */ pe(ge, [["__scopeId", "data-v-0c86a42d"]]);
417
420
  export {
418
- be as default
421
+ ye as default
419
422
  };