xyvcard-goods 0.0.7 → 0.0.8

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-F3GtuNeX.mjs → approveFailIndex-BecI6njE.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs} +9 -9
  3. package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-ByyMgebr.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs} +44 -44
  5. package/dist/edit-BWUxDk9Y.mjs +594 -0
  6. package/dist/{index-D5_GsXR7.mjs → index-AZ4TxL-_.mjs} +48 -51
  7. package/dist/{index-kGlE0ywA.mjs → index-BypI3ZNk.mjs} +90 -90
  8. package/dist/index.mjs +2 -2
  9. package/dist/{info-kiOShGr4.mjs → info-BJ1Ld_6D.mjs} +20 -23
  10. package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CBtuv6um.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs} +69 -69
  12. package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-CykEAeD4.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs} +11 -11
  14. package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-DdiMztDh.mjs} +82 -77
  15. package/dist/{skuTable-8oPw0DhV.mjs → skuTable-Cg06m_5i.mjs} +122 -127
  16. package/dist/style.css +1 -1
  17. package/dts/api/dict.d.ts +6 -2
  18. package/dts/api/goods-spu/types.d.ts +6 -5
  19. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  20. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  21. package/dts/constant.d.ts +3 -3
  22. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +9 -0
  23. package/package.json +65 -65
  24. package/dist/edit-C3imnLUq.mjs +0 -600
@@ -1,14 +1,14 @@
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";
1
+ import { defineComponent as q, ref as k, computed as j, watch as F, resolveComponent as S, openBlock as f, 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
- import { D as p, C as N, S as z } from "./index-D5_GsXR7.mjs";
5
- import { s as G } from "./skuTable-8oPw0DhV.mjs";
4
+ import { D as p, C as N, S as z } from "./index-AZ4TxL-_.mjs";
5
+ import { s as G } from "./skuTable-Cg06m_5i.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"], be = /* @__PURE__ */ q({
9
9
  __name: "info",
10
10
  setup(_e) {
11
- const U = O(), y = R(), u = k({}), L = k([]), _ = k([]), D = k([]), $ = k([]), T = j(() => _.value.filter(
11
+ const U = O(), y = R(), u = k({}), L = k([]), g = k([]), D = k([]), $ = k([]), T = j(() => g.value.filter(
12
12
  (s) => s.name && s.specValueList != null && s.specValueList.length
13
13
  ));
14
14
  F(
@@ -26,25 +26,25 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
26
26
  var d;
27
27
  (d = m.specValues) == null || d.map((h) => {
28
28
  p.specInfoDict.useValues().then((I) => {
29
- const t = I.find((f) => h.specId === f.key);
30
- if (console.log(t), t) {
31
- let f = {
29
+ const t = I.find((_) => h.specId === _.key);
30
+ if (t) {
31
+ let _ = {
32
32
  id: h.specId,
33
33
  name: t.value,
34
34
  specValueList: []
35
35
  };
36
- _.value.push(f);
36
+ g.value.push(_);
37
37
  }
38
38
  const E = /* @__PURE__ */ new Map();
39
- _.value = _.value.filter(
40
- (f) => !E.has(f.id) && E.set(f.id, f)
39
+ g.value = g.value.filter(
40
+ (_) => !E.has(_.id) && E.set(_.id, _)
41
41
  ), A(h.specValueId);
42
42
  });
43
43
  });
44
44
  }));
45
45
  });
46
46
  function A(s) {
47
- _.value.forEach((c) => {
47
+ g.value.forEach((c) => {
48
48
  $.value = new z({ specId: c.id }), $.value.useValues().then((v) => {
49
49
  v.forEach((o) => {
50
50
  if (o.key === s) {
@@ -57,7 +57,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
57
57
  const m = /* @__PURE__ */ new Map();
58
58
  c.specValueList = c.specValueList.filter(
59
59
  (d) => !m.has(d.id) && m.set(d.id, d)
60
- ), console.log(_.value);
60
+ );
61
61
  });
62
62
  });
63
63
  });
@@ -67,7 +67,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
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");
70
- return g(), V("div", Q, [
70
+ return f(), V("div", Q, [
71
71
  i(I, { shadow: "never" }, {
72
72
  header: e(() => [
73
73
  i(v, {
@@ -149,7 +149,7 @@ 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(), b(m, {
152
+ (f(!0), V(w, null, C(L.value, (t) => (f(), b(m, {
153
153
  key: t,
154
154
  src: r(B).imageUrl(t, 80, 80),
155
155
  "preview-src-list": [r(B).imageUrl(t)],
@@ -164,12 +164,9 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
164
164
  label: e(() => [
165
165
  a("div", se, l(s.$t("goodsSpu.shelf")), 1)
166
166
  ]),
167
- default: e(() => {
168
- var t;
169
- return [
170
- n(" " + l(r(p).shelfDict.getValue((t = u.value.shelf) == null ? void 0 : t.toString())), 1)
171
- ];
172
- }),
167
+ default: e(() => [
168
+ n(" " + l(r(p).shelfDict.getValue(u.value.shelf)), 1)
169
+ ]),
173
170
  _: 1
174
171
  }),
175
172
  i(o, null, {
@@ -195,7 +192,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
195
192
  a("div", ue, l(s.$t("goodsSpu.ensureIds")), 1)
196
193
  ]),
197
194
  default: e(() => [
198
- (g(!0), V(w, null, C(u.value.ensureIds, (t) => (g(), b(d, {
195
+ (f(!0), V(w, null, C(u.value.ensureIds, (t) => (f(), b(d, {
199
196
  type: "info",
200
197
  key: t
201
198
  }, {
@@ -211,7 +208,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
211
208
  _: 1
212
209
  }),
213
210
  a("div", ae, " 商品规格(" + l(r(p).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
214
- u.value.specType == r(N).specType.UNIFIED_SPEC ? (g(), b(h, {
211
+ u.value.specType == r(N).specType.UNIFIED_SPEC ? (f(), b(h, {
215
212
  key: 0,
216
213
  class: "margin-top",
217
214
  column: 2,
@@ -293,7 +290,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
293
290
  ]),
294
291
  _: 1
295
292
  })) : P("", !0),
296
- _.value.length > 0 ? (g(), b(G, {
293
+ g.value.length > 0 ? (f(), b(G, {
297
294
  key: 1,
298
295
  specData: T.value,
299
296
  goodsSku: D.value,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs";
1
+ import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
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 Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as i, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as a, 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 { ElMessage as z } from "element-plus";
3
3
  import { useRouter as le } from "vue-router";
4
4
  import { useTableHooks as te, fileApi as j } from "jmash-core";
5
5
  import { useI18n as ae } from "vue-i18n";
6
6
  import { goodsSpuApi as E } from "./index.mjs";
7
- import { C as se, D as g } from "./index-D5_GsXR7.mjs";
8
- const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ Z({
7
+ import { C as se, D as g } from "./index-AZ4TxL-_.mjs";
8
+ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be = /* @__PURE__ */ Z({
9
9
  __name: "saleIndex",
10
- setup(de) {
11
- const { t: _ } = ae(), T = le(), { proxy: B } = x(), r = D({
10
+ setup(re) {
11
+ const { t: v } = ae(), T = le(), { proxy: B } = x(), r = D({
12
12
  curPage: 1,
13
13
  pageSize: 10,
14
14
  shelf: "true",
@@ -19,8 +19,8 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
19
19
  queryFormRef: q,
20
20
  listLoading: L,
21
21
  tableData: H,
22
- total: v
23
- } = te(_, E, r);
22
+ total: _
23
+ } = te(v, E, r);
24
24
  let h = D([
25
25
  {
26
26
  label: "goodsSpu.shopId",
@@ -123,39 +123,39 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
123
123
  function Q() {
124
124
  T.push({ path: "/rawgoods/goods-spu/edit" });
125
125
  }
126
- function Y(a) {
126
+ function Y(s) {
127
127
  T.push({
128
128
  path: "/rawgoods/goods-spu/info",
129
- query: { spuId: a.spuId }
129
+ query: { spuId: s.spuId }
130
130
  });
131
131
  }
132
- function A(a) {
133
- n.selectionRows.value = a;
132
+ function A(s) {
133
+ n.selectionRows.value = s;
134
134
  }
135
- function K(a) {
136
- n.handleSort(a.prop, a.order);
135
+ function K(s) {
136
+ n.handleSort(s.prop, s.order);
137
137
  }
138
138
  function M() {
139
139
  if (n.selectionRows.value.length === 0) {
140
140
  z({
141
- message: _("goodsSpu.chooseShelf"),
141
+ message: v("goodsSpu.chooseShelf"),
142
142
  type: "warning"
143
143
  });
144
144
  return;
145
145
  }
146
- const a = n.selectionRows.value.map((o) => o.spuId);
147
- console.log(a), E.enable({ spuId: a }, !1).then((o) => {
146
+ const s = n.selectionRows.value.map((o) => o.spuId);
147
+ E.enable({ spuId: s }, !1).then((o) => {
148
148
  var C;
149
- console.log(o), o.status === 200 && z({
150
- message: _("goodsSpu.successOffShelf") + o.data + _("common.stripData"),
149
+ o.status === 200 && z({
150
+ message: v("goodsSpu.successOffShelf") + o.data + v("common.stripData"),
151
151
  type: "success"
152
152
  }), n.getList(), (C = $.value) == null || C.clearSelection();
153
153
  });
154
154
  }
155
- return n.getList(), (a, o) => {
155
+ return n.getList(), (s, o) => {
156
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");
157
- return m(), I("div", ne, [
158
- d("div", ue, [
157
+ return i(), I("div", null, [
158
+ d("div", ne, [
159
159
  t(F, {
160
160
  ref_key: "queryFormRef",
161
161
  ref: q,
@@ -168,15 +168,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
168
168
  t(f, { span: 6 }, {
169
169
  default: l(() => [
170
170
  t(S, {
171
- label: a.$t("goodsSpu.shopId"),
171
+ label: s.$t("goodsSpu.shopId"),
172
172
  prop: "shopId"
173
173
  }, {
174
174
  default: l(() => [
175
175
  t(C, {
176
176
  modelValue: r.value.shopId,
177
177
  "onUpdate:modelValue": o[0] || (o[0] = (e) => r.value.shopId = e),
178
- placeholder: a.$t("goodsSpu.shopIdRequired"),
179
- data: s(g).shopInfoBizDict.values,
178
+ placeholder: s.$t("goodsSpu.shopIdRequired"),
179
+ data: a(g).shopInfoBizDict.values,
180
180
  filterable: ""
181
181
  }, null, 8, ["modelValue", "placeholder", "data"])
182
182
  ]),
@@ -188,15 +188,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
188
188
  t(f, { span: 6 }, {
189
189
  default: l(() => [
190
190
  t(S, {
191
- label: a.$t("goodsSpu.spuCode"),
191
+ label: s.$t("goodsSpu.spuCode"),
192
192
  prop: "spuCode"
193
193
  }, {
194
194
  default: l(() => [
195
195
  t(N, {
196
196
  modelValue: r.value.spuCode,
197
197
  "onUpdate:modelValue": o[1] || (o[1] = (e) => r.value.spuCode = e),
198
- placeholder: a.$t("goodsSpu.spuCode"),
199
- onKeyup: o[2] || (o[2] = R((e) => s(n).handleQuery(), ["enter"])),
198
+ placeholder: s.$t("goodsSpu.spuCode"),
199
+ onKeyup: o[2] || (o[2] = R((e) => a(n).handleQuery(), ["enter"])),
200
200
  class: "!w-[203px]"
201
201
  }, null, 8, ["modelValue", "placeholder"])
202
202
  ]),
@@ -208,15 +208,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
208
208
  t(f, { span: 6 }, {
209
209
  default: l(() => [
210
210
  t(S, {
211
- label: a.$t("goodsSpu.spuName"),
211
+ label: s.$t("goodsSpu.spuName"),
212
212
  prop: "spuName"
213
213
  }, {
214
214
  default: l(() => [
215
215
  t(N, {
216
216
  modelValue: r.value.spuName,
217
217
  "onUpdate:modelValue": o[3] || (o[3] = (e) => r.value.spuName = e),
218
- placeholder: a.$t("goodsSpu.spuName"),
219
- onKeyup: o[4] || (o[4] = R((e) => s(n).handleQuery(), ["enter"])),
218
+ placeholder: s.$t("goodsSpu.spuName"),
219
+ onKeyup: o[4] || (o[4] = R((e) => a(n).handleQuery(), ["enter"])),
220
220
  class: "!w-[203px]"
221
221
  }, null, 8, ["modelValue", "placeholder"])
222
222
  ]),
@@ -231,18 +231,18 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
231
231
  default: l(() => [
232
232
  t(b, {
233
233
  type: "primary",
234
- onClick: o[5] || (o[5] = (e) => s(n).handleQuery())
234
+ onClick: o[5] || (o[5] = (e) => a(n).handleQuery())
235
235
  }, {
236
236
  default: l(() => [
237
- c(u(a.$t("common.search")), 1)
237
+ c(u(s.$t("common.search")), 1)
238
238
  ]),
239
239
  _: 1
240
240
  }),
241
241
  t(b, {
242
- onClick: o[6] || (o[6] = (e) => s(n).resetQuery())
242
+ onClick: o[6] || (o[6] = (e) => a(n).resetQuery())
243
243
  }, {
244
244
  default: l(() => [
245
- c(u(a.$t("common.reset")), 1)
245
+ c(u(s.$t("common.reset")), 1)
246
246
  ]),
247
247
  _: 1
248
248
  })
@@ -268,34 +268,34 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
268
268
  default: l(() => [
269
269
  t(f, { span: 17 }, {
270
270
  default: l(() => [
271
- y((m(), V(b, {
271
+ y((i(), V(b, {
272
272
  type: "primary",
273
273
  onClick: Q
274
274
  }, {
275
275
  default: l(() => [
276
- c(u(a.$t("common.add")), 1)
276
+ c(u(s.$t("common.add")), 1)
277
277
  ]),
278
278
  _: 1
279
279
  })), [
280
280
  [w, ["goods:goods_spu:add"]]
281
281
  ]),
282
- y((m(), V(b, {
282
+ y((i(), V(b, {
283
283
  type: "primary",
284
- onClick: o[7] || (o[7] = (e) => s(n).deleteRecords())
284
+ onClick: o[7] || (o[7] = (e) => a(n).deleteRecords())
285
285
  }, {
286
286
  default: l(() => [
287
- c(u(a.$t("common.batchDelete")), 1)
287
+ c(u(s.$t("common.batchDelete")), 1)
288
288
  ]),
289
289
  _: 1
290
290
  })), [
291
291
  [w, ["goods:goods_spu:delete"]]
292
292
  ]),
293
- y((m(), V(b, {
293
+ y((i(), V(b, {
294
294
  type: "primary",
295
295
  onClick: M
296
296
  }, {
297
297
  default: l(() => [
298
- c(u(a.$t("goodsSpu.batchOffShelf")), 1)
298
+ c(u(s.$t("goodsSpu.batchOffShelf")), 1)
299
299
  ]),
300
300
  _: 1
301
301
  })), [
@@ -310,7 +310,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
310
310
  }, {
311
311
  default: l(() => [
312
312
  t(O, {
313
- modelValue: s(h),
313
+ modelValue: a(h),
314
314
  "onUpdate:modelValue": o[8] || (o[8] = (e) => P(h) ? h.value = e : h = e),
315
315
  "label-name": "goods/goods-spu"
316
316
  }, null, 8, ["modelValue"])
@@ -322,15 +322,15 @@ 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
+ a(_) > 0 ? (i(), V(W, {
326
326
  key: 0,
327
- total: s(v),
328
- "onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
327
+ total: a(_),
328
+ "onUpdate:total": o[9] || (o[9] = (e) => P(_) ? _.value = e : null),
329
329
  "current-page": r.value.curPage,
330
330
  "onUpdate:currentPage": o[10] || (o[10] = (e) => r.value.curPage = e),
331
331
  "page-size": r.value.pageSize,
332
332
  "onUpdate:pageSize": o[11] || (o[11] = (e) => r.value.pageSize = e),
333
- onPagination: o[12] || (o[12] = (e) => s(n).getList())
333
+ onPagination: o[12] || (o[12] = (e) => a(n).getList())
334
334
  }, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
335
335
  ]),
336
336
  default: l(() => [
@@ -338,24 +338,24 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
338
338
  ref_key: "multipleTableRef",
339
339
  ref: $,
340
340
  "row-key": "spuId",
341
- "list-loading": s(L),
342
- data: s(H),
343
- "table-label": s(h),
341
+ "list-loading": a(L),
342
+ data: a(H),
343
+ "table-label": a(h),
344
344
  onSelectionChange: A,
345
345
  onSortChange: K
346
346
  }, {
347
347
  shopId: l((e) => [
348
- d("span", null, u(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
348
+ d("span", null, u(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
349
349
  ]),
350
350
  categoryId: l((e) => [
351
- d("span", null, u(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
351
+ d("span", null, u(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
352
352
  ]),
353
353
  picUrls: l((e) => [
354
354
  d("span", null, [
355
355
  t(G, {
356
- src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
356
+ src: a(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
357
357
  "preview-src-list": [
358
- s(j).imageUrl(e.data.row.picUrls.split(",")[0])
358
+ a(j).imageUrl(e.data.row.picUrls.split(",")[0])
359
359
  ],
360
360
  "preview-teleported": "",
361
361
  "hide-on-click-modal": "",
@@ -367,8 +367,8 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
367
367
  d("span", null, [
368
368
  t(U, {
369
369
  modelValue: e.data.row.shelf,
370
- "onUpdate:modelValue": (i) => e.data.row.shelf = i,
371
- onClick: (i) => s(n).enableRecord(e.data.row, e.data.row.shelf)
370
+ "onUpdate:modelValue": (m) => e.data.row.shelf = m,
371
+ onClick: (m) => a(n).enableRecord(e.data.row, e.data.row.shelf)
372
372
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
373
373
  ])
374
374
  ]),
@@ -376,15 +376,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
376
376
  d("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
377
377
  ]),
378
378
  specType: l((e) => [
379
- d("span", null, u(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
379
+ d("span", null, u(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
380
380
  ]),
381
381
  approvalStatus: l((e) => [
382
- d("span", null, u(s(g).approvalStatusEnum.getEnumValue(
382
+ d("span", null, u(a(g).approvalStatusEnum.getEnumValue(
383
383
  e.data.row.approvalStatus
384
384
  )), 1)
385
385
  ]),
386
386
  updateTime: l((e) => [
387
- d("span", null, u(s(B).$moment.formatDate(
387
+ d("span", null, u(a(B).$moment.formatDate(
388
388
  e.data.row.updateTime,
389
389
  "YYYY-MM-DD HH:mm:ss"
390
390
  )), 1)
@@ -392,25 +392,25 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
392
392
  enable: l((e) => [
393
393
  t(U, {
394
394
  modelValue: e.data.row.enable,
395
- "onUpdate:modelValue": (i) => e.data.row.enable = i,
396
- onChange: (i) => s(n).enableRecord(e.data.row, e.data.row.enable)
395
+ "onUpdate:modelValue": (m) => e.data.row.enable = m,
396
+ onChange: (m) => a(n).enableRecord(e.data.row, e.data.row.enable)
397
397
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
398
398
  ]),
399
399
  operation: l((e) => [
400
- y((m(), I("span", {
400
+ y((i(), I("span", {
401
401
  class: "el-button-color",
402
- onClick: (i) => s(n).deleteRecord(e.data.row)
402
+ onClick: (m) => a(n).deleteRecord(e.data.row)
403
403
  }, [
404
- c(u(a.$t("common.delete")), 1)
405
- ], 8, pe)), [
404
+ c(u(s.$t("common.delete")), 1)
405
+ ], 8, ue)), [
406
406
  [w, ["goods:goods_spu:delete"]]
407
407
  ]),
408
- y((m(), I("span", {
408
+ y((i(), I("span", {
409
409
  class: "el-button-color dropdown-left",
410
- onClick: (i) => Y(e.data.row)
410
+ onClick: (m) => Y(e.data.row)
411
411
  }, [
412
- c(u(a.$t("common.view")), 1)
413
- ], 8, re)), [
412
+ c(u(s.$t("common.view")), 1)
413
+ ], 8, pe)), [
414
414
  [w, ["goods:goods_spu:view"]]
415
415
  ])
416
416
  ]),
@@ -424,5 +424,5 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
424
424
  }
425
425
  });
426
426
  export {
427
- we as _
427
+ be as _
428
428
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs";
1
+ import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,10 +4,10 @@ import { useRouter as te } from "vue-router";
4
4
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
5
5
  import { useI18n as se } from "vue-i18n";
6
6
  import { goodsSpuApi as E } from "./index.mjs";
7
- import { D as g } from "./index-D5_GsXR7.mjs";
8
- const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ x({
7
+ import { D as g } from "./index-AZ4TxL-_.mjs";
8
+ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], we = /* @__PURE__ */ x({
9
9
  __name: "shelfIndex",
10
- setup(ie) {
10
+ setup(re) {
11
11
  const { t: _ } = se(), $ = te(), { proxy: q } = ee(), d = D({
12
12
  curPage: 1,
13
13
  pageSize: 10,
@@ -149,9 +149,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
149
149
  return;
150
150
  }
151
151
  const t = n.selectionRows.value.map((o) => o.spuId);
152
- console.log(t), E.enable({ spuId: t }, !0).then((o) => {
152
+ E.enable({ spuId: t }, !0).then((o) => {
153
153
  var C;
154
- console.log(o), o.status === 200 && (z({
154
+ 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());
@@ -159,8 +159,8 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
159
159
  }
160
160
  return n.getList(), (t, o) => {
161
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");
162
- return m(), V("div", ne, [
163
- r("div", ue, [
162
+ return m(), V("div", null, [
163
+ r("div", ne, [
164
164
  a(G, {
165
165
  ref_key: "queryFormRef",
166
166
  ref: B,
@@ -407,7 +407,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
407
407
  onClick: (i) => Y(e.data.row)
408
408
  }, [
409
409
  c(u(t.$t("common.edit")), 1)
410
- ], 8, pe)), [
410
+ ], 8, ue)), [
411
411
  [h, ["goods:goods_spu:update"]]
412
412
  ]),
413
413
  b((m(), V("span", {
@@ -415,7 +415,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
415
415
  onClick: (i) => s(n).deleteRecord(e.data.row)
416
416
  }, [
417
417
  c(u(t.$t("common.delete")), 1)
418
- ], 8, de)), [
418
+ ], 8, pe)), [
419
419
  [h, ["goods:goods_spu:delete"]]
420
420
  ]),
421
421
  b((m(), V("span", {
@@ -423,7 +423,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
423
423
  onClick: (i) => A(e.data.row)
424
424
  }, [
425
425
  c(u(t.$t("common.view")), 1)
426
- ], 8, re)), [
426
+ ], 8, de)), [
427
427
  [h, ["goods:goods_spu:view"]]
428
428
  ])
429
429
  ]),
@@ -437,5 +437,5 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
437
437
  }
438
438
  });
439
439
  export {
440
- ye as _
440
+ we as _
441
441
  };