xyvcard-goods 0.0.5 → 0.0.7

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.
@@ -1,14 +1,14 @@
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";
1
+ import { defineComponent as q, ref as k, 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 b, 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
4
  import { D as p, C as N, S as z } from "./index-D5_GsXR7.mjs";
5
- import { s as G } from "./skuTable-Ck36wysA.mjs";
5
+ import { s as G } from "./skuTable-8oPw0DhV.mjs";
6
6
  import { goodsSpuApi as J } from "./index.mjs";
7
7
  import { g as K } from "./index-BHmGYIuc.mjs";
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({
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"], be = /* @__PURE__ */ q({
9
9
  __name: "info",
10
10
  setup(_e) {
11
- const U = O(), k = R(), u = b({}), L = b([]), _ = b([]), D = b([]), $ = b([]), T = j(() => _.value.filter(
11
+ const U = O(), y = R(), u = k({}), L = k([]), _ = k([]), D = k([]), $ = k([]), T = j(() => _.value.filter(
12
12
  (s) => s.name && s.specValueList != null && s.specValueList.length
13
13
  ));
14
14
  F(
@@ -18,9 +18,9 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
18
18
  deep: !0,
19
19
  immediate: !0
20
20
  }
21
- ), p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(), k.query.spuId && J.findById({ spuId: k.query.spuId }).then(({ data: s }) => {
21
+ ), p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(), y.query.spuId && J.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
22
22
  var c, v, o;
23
- u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), K.findById({ spuId: k.query.spuId }).then(({ data: m }) => {
23
+ u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), K.findById({ spuId: y.query.spuId }).then(({ data: m }) => {
24
24
  u.value.ensureIds = m.ensures;
25
25
  }), s.specType === N.specType.MULTI_SPEC && (D.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((m) => {
26
26
  var d;
@@ -63,7 +63,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
63
63
  });
64
64
  }
65
65
  function M() {
66
- H.closeTagView(k.fullPath, U, !1);
66
+ H.closeTagView(y.fullPath, U, !1);
67
67
  }
68
68
  return (s, c) => {
69
69
  const v = S("el-button"), o = S("el-descriptions-item"), m = S("el-image"), d = S("el-tag"), h = S("el-descriptions"), I = S("el-card");
@@ -149,13 +149,14 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
149
149
  a("div", le, l(s.$t("goodsSpu.picUrls")), 1)
150
150
  ]),
151
151
  default: e(() => [
152
- (g(!0), V(w, null, C(L.value, (t) => (g(), y(m, {
152
+ (g(!0), V(w, null, C(L.value, (t) => (g(), b(m, {
153
+ key: t,
153
154
  src: r(B).imageUrl(t, 80, 80),
154
155
  "preview-src-list": [r(B).imageUrl(t)],
155
156
  "preview-teleported": "",
156
157
  "hide-on-click-modal": "",
157
158
  fit: "contain"
158
- }, null, 8, ["src", "preview-src-list"]))), 256))
159
+ }, null, 8, ["src", "preview-src-list"]))), 128))
159
160
  ]),
160
161
  _: 1
161
162
  }),
@@ -194,12 +195,15 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
194
195
  a("div", ue, l(s.$t("goodsSpu.ensureIds")), 1)
195
196
  ]),
196
197
  default: e(() => [
197
- (g(!0), V(w, null, C(u.value.ensureIds, (t) => (g(), y(d, { type: "info" }, {
198
+ (g(!0), V(w, null, C(u.value.ensureIds, (t) => (g(), b(d, {
199
+ type: "info",
200
+ key: t
201
+ }, {
198
202
  default: e(() => [
199
203
  n(l(r(p).goodsEnsureDict.getDictValue(t)), 1)
200
204
  ]),
201
205
  _: 2
202
- }, 1024))), 256))
206
+ }, 1024))), 128))
203
207
  ]),
204
208
  _: 1
205
209
  })
@@ -207,7 +211,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
207
211
  _: 1
208
212
  }),
209
213
  a("div", ae, " 商品规格(" + l(r(p).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
210
- u.value.specType == r(N).specType.UNIFIED_SPEC ? (g(), y(h, {
214
+ u.value.specType == r(N).specType.UNIFIED_SPEC ? (g(), b(h, {
211
215
  key: 0,
212
216
  class: "margin-top",
213
217
  column: 2,
@@ -289,7 +293,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
289
293
  ]),
290
294
  _: 1
291
295
  })) : P("", !0),
292
- _.value.length > 0 ? (g(), y(G, {
296
+ _.value.length > 0 ? (g(), b(G, {
293
297
  key: 1,
294
298
  specData: T.value,
295
299
  goodsSku: D.value,
@@ -307,5 +311,5 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
307
311
  }
308
312
  });
309
313
  export {
310
- ye as default
314
+ be as default
311
315
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-DAWECwmp.mjs";
1
+ import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
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";
2
+ import { ElMessage as z } from "element-plus";
2
3
  import { useRouter as le } from "vue-router";
3
- import { useTableHooks as te, fileApi as z } from "jmash-core";
4
+ import { useTableHooks as te, fileApi as j } from "jmash-core";
4
5
  import { useI18n as ae } from "vue-i18n";
5
- import { goodsSpuApi as j } from "./index.mjs";
6
+ import { goodsSpuApi as E } from "./index.mjs";
6
7
  import { C as se, D as g } from "./index-D5_GsXR7.mjs";
7
- import { $ as E } from "./el-message-wJI-19Bz.mjs";
8
8
  const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ Z({
9
9
  __name: "saleIndex",
10
10
  setup(de) {
@@ -20,7 +20,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
20
20
  listLoading: L,
21
21
  tableData: H,
22
22
  total: v
23
- } = te(_, j, r);
23
+ } = te(_, E, r);
24
24
  let h = D([
25
25
  {
26
26
  label: "goodsSpu.shopId",
@@ -137,16 +137,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
137
137
  }
138
138
  function M() {
139
139
  if (n.selectionRows.value.length === 0) {
140
- E({
140
+ z({
141
141
  message: _("goodsSpu.chooseShelf"),
142
142
  type: "warning"
143
143
  });
144
144
  return;
145
145
  }
146
146
  const a = n.selectionRows.value.map((o) => o.spuId);
147
- console.log(a), j.enable({ spuId: a }, !1).then((o) => {
147
+ console.log(a), E.enable({ spuId: a }, !1).then((o) => {
148
148
  var C;
149
- console.log(o), o.status === 200 && E({
149
+ console.log(o), o.status === 200 && z({
150
150
  message: _("goodsSpu.successOffShelf") + o.data + _("common.stripData"),
151
151
  type: "success"
152
152
  }), n.getList(), (C = $.value) == null || C.clearSelection();
@@ -353,9 +353,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
353
353
  picUrls: l((e) => [
354
354
  d("span", null, [
355
355
  t(G, {
356
- src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
356
+ src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
357
357
  "preview-src-list": [
358
- s(z).imageUrl(e.data.row.picUrls.split(",")[0])
358
+ s(j).imageUrl(e.data.row.picUrls.split(",")[0])
359
359
  ],
360
360
  "preview-teleported": "",
361
361
  "hide-on-click-modal": "",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang--gWnIIPM.mjs";
1
+ import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as x, getCurrentInstance as ee, ref as D, resolveComponent as p, resolveDirective as oe, openBlock as m, createElementBlock as V, createElementVNode as r, createVNode as a, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as b, createBlock as I, isRef as P, createCommentVNode as le } from "vue";
2
+ import { ElMessage as z } from "element-plus";
2
3
  import { useRouter as te } from "vue-router";
3
- import { useTableHooks as ae, fileApi as z } from "jmash-core";
4
+ import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
5
  import { useI18n as se } from "vue-i18n";
5
- import { goodsSpuApi as j } from "./index.mjs";
6
+ import { goodsSpuApi as E } from "./index.mjs";
6
7
  import { D as g } from "./index-D5_GsXR7.mjs";
7
- import { $ as E } from "./el-message-wJI-19Bz.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) {
@@ -19,7 +19,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
19
19
  listLoading: L,
20
20
  tableData: H,
21
21
  total: v
22
- } = ae(_, j, d);
22
+ } = ae(_, E, d);
23
23
  let w = D([
24
24
  {
25
25
  label: "goodsSpu.shopId",
@@ -142,16 +142,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
142
142
  }
143
143
  function F() {
144
144
  if (n.selectionRows.value.length === 0) {
145
- E({
145
+ z({
146
146
  message: _("goodsSpu.chooseShelf"),
147
147
  type: "warning"
148
148
  });
149
149
  return;
150
150
  }
151
151
  const t = n.selectionRows.value.map((o) => o.spuId);
152
- console.log(t), j.enable({ spuId: t }, !0).then((o) => {
152
+ console.log(t), E.enable({ spuId: t }, !0).then((o) => {
153
153
  var C;
154
- console.log(o), o.status === 200 && (E({
154
+ console.log(o), o.status === 200 && (z({
155
155
  message: _("goodsSpu.successShelf") + o.data + _("common.stripData"),
156
156
  type: "success"
157
157
  }), n.getList(), (C = T.value) == null || C.clearSelection());
@@ -358,9 +358,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
358
358
  picUrls: l((e) => [
359
359
  r("span", null, [
360
360
  a(O, {
361
- src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
361
+ src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
362
362
  "preview-src-list": [
363
- s(z).imageUrl(e.data.row.picUrls.split(",")[0])
363
+ s(j).imageUrl(e.data.row.picUrls.split(",")[0])
364
364
  ],
365
365
  "preview-teleported": "",
366
366
  "hide-on-click-modal": "",
@@ -2,7 +2,7 @@ import { defineComponent as te, ref as k, computed as se, watch as C, resolveCom
2
2
  import "jmash-core";
3
3
  import "xyvcard-shop";
4
4
  import { C as L, D as ue, S as H, a as ne } from "./index-D5_GsXR7.mjs";
5
- import { s as pe, _ as re } from "./skuTable-Ck36wysA.mjs";
5
+ import { s as pe, _ as re } from "./skuTable-8oPw0DhV.mjs";
6
6
  const de = { key: 0 }, ce = {
7
7
  key: 1,
8
8
  class: "w-full"