xyvcard-goods 0.0.30 → 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.
@@ -1,9 +1,9 @@
1
- import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as d, resolveDirective as oe, openBlock as u, createElementBlock as V, createElementVNode as I, createVNode as t, withCtx as l, withKeys as te, unref as a, createTextVNode as p, toDisplayString as c, withDirectives as h, createBlock as k, isRef as R, createCommentVNode as S } from "vue";
1
+ import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as d, resolveDirective as oe, createElementBlock as V, openBlock as u, createElementVNode as I, createVNode as t, createBlock as h, createCommentVNode as R, withCtx as l, withKeys as te, unref as a, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as S } from "vue";
2
2
  import { useTableHooks as le, fileApi as T } from "jmash-core";
3
3
  import { useI18n as ne } from "vue-i18n";
4
- import { g as ae } from "./index-DloS7z9I.mjs";
5
- import de from "./edit-ehVvbusK.mjs";
6
- import { D as re } from "./index-Vu01FEMS.mjs";
4
+ import { g as ae } from "./index-BrBipAPq.mjs";
5
+ import de from "./edit-CuGiM5xu.mjs";
6
+ import { D as re } from "./index-B7_M6fAN.mjs";
7
7
  const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(pe) {
@@ -178,7 +178,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
178
178
  default: l(() => [
179
179
  t(_, { span: 17 }, {
180
180
  default: l(() => [
181
- h((u(), k(v, {
181
+ k((u(), h(v, {
182
182
  type: "primary",
183
183
  onClick: q
184
184
  }, {
@@ -189,7 +189,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
189
189
  })), [
190
190
  [y, ["goods:goods_brand_info:add"]]
191
191
  ]),
192
- h((u(), k(v, {
192
+ k((u(), h(v, {
193
193
  type: "primary",
194
194
  onClick: o[5] || (o[5] = (e) => a(r).deleteRecords())
195
195
  }, {
@@ -210,7 +210,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
210
210
  default: l(() => [
211
211
  t(M, {
212
212
  modelValue: a(f),
213
- "onUpdate:modelValue": o[6] || (o[6] = (e) => R(f) ? f.value = e : f = e),
213
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => S(f) ? f.value = e : f = e),
214
214
  "label-name": "goods/goods-brand-info"
215
215
  }, null, 8, ["modelValue"])
216
216
  ]),
@@ -221,16 +221,16 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
221
221
  })
222
222
  ]),
223
223
  footer: l(() => [
224
- a(b) > 0 ? (u(), k(Y, {
224
+ a(b) > 0 ? (u(), h(Y, {
225
225
  key: 0,
226
226
  total: a(b),
227
- "onUpdate:total": o[7] || (o[7] = (e) => R(b) ? b.value = e : null),
227
+ "onUpdate:total": o[7] || (o[7] = (e) => S(b) ? b.value = e : null),
228
228
  "current-page": s.value.curPage,
229
229
  "onUpdate:currentPage": o[8] || (o[8] = (e) => s.value.curPage = e),
230
230
  "page-size": s.value.pageSize,
231
231
  "onUpdate:pageSize": o[9] || (o[9] = (e) => s.value.pageSize = e),
232
232
  onPagination: o[10] || (o[10] = (e) => a(r).getList())
233
- }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
233
+ }, null, 8, ["total", "current-page", "page-size"])) : R("", !0)
234
234
  ]),
235
235
  default: l(() => [
236
236
  t(X, {
@@ -282,7 +282,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
282
282
  ])
283
283
  ]),
284
284
  operation: l((e) => [
285
- h((u(), V("span", {
285
+ k((u(), V("span", {
286
286
  class: "el-button-color",
287
287
  onClick: (m) => L(e.data.row)
288
288
  }, [
@@ -290,7 +290,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
290
290
  ], 8, ue)), [
291
291
  [y, ["goods:goods_brand_info:update"]]
292
292
  ]),
293
- h((u(), V("span", {
293
+ k((u(), V("span", {
294
294
  class: "el-button-color dropdown-left",
295
295
  onClick: (m) => a(r).deleteRecord(e.data.row)
296
296
  }, [
@@ -304,7 +304,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
304
304
  ]),
305
305
  _: 1
306
306
  }),
307
- i.value.visible ? (u(), k(de, {
307
+ i.value.visible ? (u(), h(de, {
308
308
  key: 0,
309
309
  modelValue: i.value.visible,
310
310
  "onUpdate:modelValue": o[11] || (o[11] = (e) => i.value.visible = e),
@@ -312,7 +312,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
312
312
  "entity-key": a(w),
313
313
  onRefresh: K,
314
314
  width: "500px"
315
- }, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
315
+ }, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0)
316
316
  ]);
317
317
  };
318
318
  }
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { c as p, g, b as d, a as e } from "./index-Dpms2ryP.mjs";
2
+ import { c as p, g, b as d, a as e } from "./index-BlZupHNB.mjs";
3
3
  export {
4
4
  p as default,
5
5
  g as goodsCategoryApi,
@@ -1,8 +1,8 @@
1
- import { defineComponent as M, ref as P, resolveComponent as f, openBlock as _, createElementBlock as v, createVNode as o, withCtx as s, createTextVNode as p, toDisplayString as u, createElementVNode as d, Fragment as C, renderList as V, createBlock as D, unref as m } from "vue";
1
+ import { defineComponent as M, ref as P, resolveComponent as f, createElementBlock as v, openBlock as _, createVNode as o, withCtx as s, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as C, renderList as V, createBlock as D, unref as m } from "vue";
2
2
  import { fileApi as S, routerUtil as R } from "jmash-core";
3
3
  import { useRouter as j, useRoute as G } from "vue-router";
4
- import { D as y, C as b } from "./index-Vu01FEMS.mjs";
5
- import { a as L } from "./index-Dpms2ryP.mjs";
4
+ import { D as y, C as b } from "./index-B7_M6fAN.mjs";
5
+ import { a as L } from "./index-BlZupHNB.mjs";
6
6
  import { specValueApi as H } from "xyvcard-shop";
7
7
  const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, w = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 }, me = /* @__PURE__ */ M({
8
8
  __name: "info",
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, openBlock as r, createElementBlock as k, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as s, createElementVNode as a, Fragment as L, renderList as I, createBlock as S, unref as _, createCommentVNode as B } from "vue";
1
+ import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as S, createCommentVNode as B, createTextVNode as n, toDisplayString as s, Fragment as L, renderList as I, unref as _ } from "vue";
2
2
  import { fileApi as w, routerUtil as F } from "jmash-core";
3
3
  import { useRouter as H, useRoute as O } from "vue-router";
4
- import { D as d, C as N, S as R } from "./index-Vu01FEMS.mjs";
5
- import Y from "./skuTable-7VaeJKGp.mjs";
6
- import { a as G } from "./index-Dpms2ryP.mjs";
4
+ import { D as d, C as N, S as R } from "./index-B7_M6fAN.mjs";
5
+ import Y from "./skuTable-BwIc5hr5.mjs";
6
+ import { a as G } from "./index-BlZupHNB.mjs";
7
7
  import { g as J } from "./index-BHmGYIuc.mjs";
8
8
  const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { 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: "cell-item" }, ie = { class: "title-content" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ge = ["innerHTML"], Ie = /* @__PURE__ */ M({
9
9
  __name: "info",
@@ -1,6 +1,6 @@
1
- import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, openBlock as m, createElementBlock as g, Fragment as b, unref as M, createVNode as o, withCtx as a, createCommentVNode as I, renderList as P, createElementVNode as k, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
- import { C as D, D as ue, S as Y, a as ne } from "./index-Vu01FEMS.mjs";
3
- import re from "./skuTable-7VaeJKGp.mjs";
1
+ import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as b, createCommentVNode as I, unref as M, createVNode as o, withCtx as a, renderList as P, createElementVNode as k, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
+ import { C as D, D as ue, S as Y, a as ne } from "./index-B7_M6fAN.mjs";
3
+ import re from "./skuTable-BwIc5hr5.mjs";
4
4
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const pe = { key: 0 }, ce = {
6
6
  key: 1,
@@ -353,7 +353,7 @@ const pe = { key: 0 }, ce = {
353
353
  ]),
354
354
  _: 1
355
355
  }),
356
- l[9] || (l[9] = y("移除 "))
356
+ l[9] || (l[9] = y("移除 ", -1))
357
357
  ], 8, me)
358
358
  ]),
359
359
  k("div", fe, [
@@ -380,7 +380,7 @@ const pe = { key: 0 }, ce = {
380
380
  reference: a(() => [
381
381
  o(R, { class: "m-2" }, {
382
382
  default: a(() => l[10] || (l[10] = [
383
- y("添加规格值")
383
+ y("添加规格值", -1)
384
384
  ])),
385
385
  _: 1,
386
386
  __: [10]
@@ -417,7 +417,7 @@ const pe = { key: 0 }, ce = {
417
417
  reference: a(() => [
418
418
  o(R, { class: "m-2" }, {
419
419
  default: a(() => l[11] || (l[11] = [
420
- y("添加规格")
420
+ y("添加规格", -1)
421
421
  ])),
422
422
  _: 1,
423
423
  __: [11]
@@ -1,15 +1,15 @@
1
- import { defineComponent as j, openBlock as m, createElementBlock as S, createElementVNode as M, ref as v, watch as B, resolveComponent as r, createBlock as P, withCtx as i, createVNode as n, unref as h, Fragment as Y, renderList as G, createCommentVNode as H, createTextVNode as x, toDisplayString as J } from "vue";
1
+ import { defineComponent as j, createElementBlock as v, openBlock as m, createElementVNode as M, ref as V, watch as B, resolveComponent as r, createBlock as P, withCtx as i, createVNode as n, unref as h, Fragment as Y, renderList as G, createCommentVNode as H, createTextVNode as x, toDisplayString as J } from "vue";
2
2
  import { useI18n as K } from "vue-i18n";
3
- import { D as V, C as g } from "./index-Vu01FEMS.mjs";
4
- import { a as O } from "./index-Dpms2ryP.mjs";
3
+ import { D as S, C as g } from "./index-B7_M6fAN.mjs";
4
+ import { a as O } from "./index-BlZupHNB.mjs";
5
5
  import { specValueApi as Q } from "xyvcard-shop";
6
6
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- /*! Element Plus Icons Vue v2.3.1 */
7
+ /*! Element Plus Icons Vue v2.3.2 */
8
8
  var X = /* @__PURE__ */ j({
9
9
  name: "Plus",
10
10
  __name: "plus",
11
11
  setup(b) {
12
- return (C, E) => (m(), S("svg", {
12
+ return (C, E) => (m(), v("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  viewBox: "0 0 1024 1024"
15
15
  }, [
@@ -31,7 +31,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
31
31
  },
32
32
  emits: ["getGoodsSku", "getFormData"],
33
33
  setup(b, { emit: C }) {
34
- const { t: E } = K(), U = v([]), d = v([
34
+ const { t: E } = K(), U = V([]), d = V([
35
35
  {
36
36
  salePrice: 0,
37
37
  skuId: "",
@@ -44,20 +44,20 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
44
44
  marketPrice: 0
45
45
  }
46
46
  ]);
47
- V.goodsSpuBizDict.useValues();
47
+ S.goodsSpuBizDict.useValues();
48
48
  const F = C;
49
49
  function L(s, e) {
50
50
  s.picUrl = e;
51
51
  }
52
- const y = b;
52
+ const N = b;
53
53
  B(
54
- y.form,
54
+ N.form,
55
55
  (s) => s,
56
56
  {
57
57
  deep: !0,
58
58
  immediate: !0
59
59
  }
60
- ), y.form.spuId && O.findGroupList({ goodsId: y.form.spuId }).then(({ data: s }) => {
60
+ ), N.form.spuId && O.findGroupList({ goodsId: N.form.spuId }).then(({ data: s }) => {
61
61
  if (s && s.results.length > 0) {
62
62
  d.value = [];
63
63
  const e = s.results.map(async (l) => {
@@ -95,7 +95,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
95
95
  marketPrice: 0
96
96
  });
97
97
  }
98
- const T = v({});
98
+ const T = V({});
99
99
  async function z(s) {
100
100
  if (!U.value[s])
101
101
  try {
@@ -109,7 +109,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
109
109
  async function D(s, e) {
110
110
  var l, t, I;
111
111
  if (e.skuId = "", e.skuOptions = [], e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = "", e.marketPrice = 0, !s) {
112
- e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l = V.goodsSpuBizDict.values.find((o) => o.key === s)) == null ? void 0 : l.value) ?? "", e.skuOptions = [], e.marketPrice = 0;
112
+ e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l = S.goodsSpuBizDict.values.find((o) => o.key === s)) == null ? void 0 : l.value) ?? "", e.skuOptions = [], e.marketPrice = 0;
113
113
  return;
114
114
  }
115
115
  try {
@@ -117,8 +117,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
117
117
  if (e.specType = o.specType, e.marketPrice = o.maxPrice, e.specType === g.SPEC_TYPE.UNIFIED_SPEC && (e.picUrl = o.picUrls ? o.picUrls.split(",")[0] : "", e.salePrice = (t = o.skuList) == null ? void 0 : t.results[0].salePrice, e.skuId = (I = o.skuList) == null ? void 0 : I.results[0].skuId, e.skuName = o.spuName), e.specType === g.SPEC_TYPE.MULTI_SPEC && o.skuList) {
118
118
  const f = o.skuList.results, _ = f.map((u) => u.specValues && Array.isArray(u.specValues) ? u.specValues.map(
119
119
  (p) => p.specValueId
120
- ) : []), N = _.flat().map((u) => z(u));
121
- await Promise.all(N);
120
+ ) : []), y = _.flat().map((u) => z(u));
121
+ await Promise.all(y);
122
122
  const k = _.map(
123
123
  (u) => u.map((p) => U.value[p] || p)
124
124
  );
@@ -170,7 +170,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
170
170
  immediate: !0
171
171
  }
172
172
  ), (s, e) => {
173
- const l = r("jmash-select"), t = r("el-table-column"), I = r("el-option"), o = r("el-select"), f = r("jmash-single-image-upload"), _ = r("el-input-number"), N = r("DeleteFilled"), k = r("el-icon"), u = r("el-table"), p = r("el-button"), q = r("el-row");
173
+ const l = r("jmash-select"), t = r("el-table-column"), I = r("el-option"), o = r("el-select"), f = r("jmash-single-image-upload"), _ = r("el-input-number"), y = r("DeleteFilled"), k = r("el-icon"), u = r("el-table"), p = r("el-button"), q = r("el-row");
174
174
  return m(), P(q, null, {
175
175
  default: i(() => [
176
176
  n(u, {
@@ -188,7 +188,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
188
188
  n(l, {
189
189
  modelValue: a.spuId,
190
190
  "onUpdate:modelValue": (c) => a.spuId = c,
191
- data: h(V).goodsSpuBizDict.values,
191
+ data: h(S).goodsSpuBizDict.values,
192
192
  filterable: "",
193
193
  clearable: "",
194
194
  placeholder: s.$t("goodsSpu.spuNameRequireds"),
@@ -203,7 +203,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
203
203
  "header-align": "center"
204
204
  }, {
205
205
  default: i(({ row: a }) => [
206
- a.specType === h(g).SPEC_TYPE.UNIFIED_SPEC ? (m(), S("span", w, " 统一规格 ")) : (m(), P(o, {
206
+ a.specType === h(g).SPEC_TYPE.UNIFIED_SPEC ? (m(), v("span", w, " 统一规格 ")) : (m(), P(o, {
207
207
  key: 1,
208
208
  modelValue: a.skuId,
209
209
  "onUpdate:modelValue": (c) => a.skuId = c,
@@ -211,7 +211,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
211
211
  onChange: (c) => $(a.skuId)
212
212
  }, {
213
213
  default: i(() => [
214
- (m(!0), S(Y, null, G(a.skuOptions, (c) => (m(), P(I, {
214
+ (m(!0), v(Y, null, G(a.skuOptions, (c) => (m(), P(I, {
215
215
  key: c.key,
216
216
  label: c.value,
217
217
  value: c.key
@@ -288,7 +288,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
288
288
  class: "hover-blue"
289
289
  }, {
290
290
  default: i(() => [
291
- n(N)
291
+ n(y)
292
292
  ]),
293
293
  _: 2
294
294
  }, 1032, ["onClick"])) : H("", !0)
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, openBlock as P, createElementBlock as b, createElementVNode as u, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as M, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
- import { D as O } from "./index-Vu01FEMS.mjs";
1
+ import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, createElementBlock as b, openBlock as P, createCommentVNode as M, createVNode as a, createElementVNode as u, createTextVNode as y, withCtx as d, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
+ import { D as O } from "./index-B7_M6fAN.mjs";
3
3
  import { fileApi as E } from "jmash-core";
4
4
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  function J(n, h = [], o) {
@@ -212,7 +212,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
212
212
  ]),
213
213
  _: 1
214
214
  }),
215
- s[8] || (s[8] = y(" 批量设置 "))
215
+ s[8] || (s[8] = y(" 批量设置 ", -1))
216
216
  ]),
217
217
  u("span", Y, [
218
218
  a(l, {
@@ -380,7 +380,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
380
380
  onClick: S
381
381
  }, {
382
382
  default: d(() => s[9] || (s[9] = [
383
- y("设置")
383
+ y("设置", -1)
384
384
  ])),
385
385
  _: 1,
386
386
  __: [9]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -23,13 +23,13 @@
23
23
  "element-plus": "^2.9.10",
24
24
  "jmash-core": "^0.1.7",
25
25
  "jmash-dict": "^0.1.2",
26
- "jmash-rbac": "^0.1.16",
26
+ "jmash-rbac": "^0.1.17",
27
27
  "pinia": "^2.3.1",
28
28
  "vue": "^3.5.13",
29
29
  "vue-i18n": "^9.14.1",
30
30
  "vue-router": "^4.5.1",
31
31
  "xyvcard-emall": "^0.0.18",
32
- "xyvcard-shop": "^0.0.30",
32
+ "xyvcard-shop": "^0.0.29",
33
33
  "xyvcard-cms": "0.0.51"
34
34
  },
35
35
  "devDependencies": {