xyvcard-goods 0.0.7 → 0.0.9

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-DJf9bHab.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +39 -39
  3. package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +59 -59
  5. package/dist/edit-D37yka6Z.mjs +470 -0
  6. package/dist/{index-D5_GsXR7.mjs → index-CKeHa-Cx.mjs} +24 -27
  7. package/dist/{index-kGlE0ywA.mjs → index-vcmJ06-Y.mjs} +136 -136
  8. package/dist/index.mjs +8 -37
  9. package/dist/{info-kiOShGr4.mjs → info-CPZykxS1.mjs} +37 -40
  10. package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +94 -94
  12. package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +18 -18
  14. package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-BSlT4TYd.mjs} +81 -76
  15. package/dist/skuTable-DYmQYXk3.mjs +535 -0
  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/constant.d.ts +7 -7
  20. package/dts/router/index.d.ts +2 -2
  21. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +10 -1
  22. package/package.json +3 -3
  23. package/dist/edit-C3imnLUq.mjs +0 -600
  24. package/dist/skuTable-8oPw0DhV.mjs +0 -611
@@ -1,39 +1,39 @@
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 P, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as R, 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-CKeHa-Cx.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: A } = x(), r = D({
12
12
  curPage: 1,
13
13
  pageSize: 10,
14
14
  shelf: "true",
15
- approvalStatus: se.approval_pass
15
+ approvalStatus: se.APPROVAL_PASS
16
16
  }), {
17
17
  tableHooks: n,
18
18
  multipleTableRef: $,
19
- queryFormRef: q,
19
+ queryFormRef: B,
20
20
  listLoading: L,
21
- tableData: H,
22
- total: v
23
- } = te(_, E, r);
21
+ tableData: q,
22
+ total: _
23
+ } = te(v, E, r);
24
24
  let h = D([
25
25
  {
26
26
  label: "goodsSpu.shopId",
27
27
  prop: "shopId",
28
28
  slotName: "shopId",
29
29
  columnType: "slot",
30
- width: "150",
30
+ width: "250",
31
31
  isColumn: !0
32
32
  },
33
33
  {
34
34
  label: "goodsSpu.spuName",
35
35
  prop: "spuName",
36
- width: "150",
36
+ width: "200",
37
37
  isColumn: !0
38
38
  },
39
39
  {
@@ -55,7 +55,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
55
55
  {
56
56
  label: "goodsSpu.price",
57
57
  prop: "minPrice",
58
- width: "130",
58
+ width: "120",
59
59
  sortable: "custom",
60
60
  slotName: "minPrice",
61
61
  columnType: "slot",
@@ -64,7 +64,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
64
64
  {
65
65
  label: "goodsSpu.spuCode",
66
66
  prop: "spuCode",
67
- width: "150",
67
+ width: "120",
68
68
  sortable: "custom",
69
69
  isColumn: !0
70
70
  },
@@ -78,7 +78,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
78
78
  {
79
79
  label: "goodsSpu.specType",
80
80
  prop: "specType",
81
- width: "130",
81
+ width: "120",
82
82
  slotName: "specType",
83
83
  columnType: "slot",
84
84
  sortable: "custom",
@@ -87,7 +87,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
87
87
  {
88
88
  label: "goodsSpu.shelf",
89
89
  prop: "shelf",
90
- width: "150",
90
+ width: "120",
91
91
  slotName: "shelf",
92
92
  columnType: "slot",
93
93
  sortable: "custom",
@@ -96,7 +96,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
96
96
  {
97
97
  label: "goodsSpu.approvalStatus",
98
98
  prop: "approvalStatus",
99
- width: "130",
99
+ width: "120",
100
100
  slotName: "approvalStatus",
101
101
  columnType: "slot",
102
102
  isColumn: !0
@@ -120,45 +120,45 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
120
120
  }
121
121
  ]);
122
122
  g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
123
- function Q() {
123
+ function H() {
124
124
  T.push({ path: "/rawgoods/goods-spu/edit" });
125
125
  }
126
- function Y(a) {
126
+ function Q(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 Y(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) => {
148
- var C;
149
- console.log(o), o.status === 200 && z({
150
- message: _("goodsSpu.successOffShelf") + o.data + _("common.stripData"),
146
+ const s = n.selectionRows.value.map((o) => o.spuId);
147
+ E.enable({ spuId: s }, !1).then((o) => {
148
+ var S;
149
+ o.status === 200 && z({
150
+ message: v("goodsSpu.successOffShelf") + o.data + v("common.stripData"),
151
151
  type: "success"
152
- }), n.getList(), (C = $.value) == null || C.clearSelection();
152
+ }), n.getList(), (S = $.value) == null || S.clearSelection();
153
153
  });
154
154
  }
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");
157
- return m(), I("div", ne, [
158
- d("div", ue, [
159
- t(F, {
155
+ return n.getList(), (s, o) => {
156
+ const S = p("jmash-select"), C = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), O = p("el-form"), F = 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 i(), I("div", null, [
158
+ d("div", ne, [
159
+ t(O, {
160
160
  ref_key: "queryFormRef",
161
- ref: q,
161
+ ref: B,
162
162
  model: r.value,
163
163
  inline: !0
164
164
  }, {
@@ -167,16 +167,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
167
167
  default: l(() => [
168
168
  t(f, { span: 6 }, {
169
169
  default: l(() => [
170
- t(S, {
171
- label: a.$t("goodsSpu.shopId"),
170
+ t(C, {
171
+ label: s.$t("goodsSpu.shopId"),
172
172
  prop: "shopId"
173
173
  }, {
174
174
  default: l(() => [
175
- t(C, {
175
+ t(S, {
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
  ]),
@@ -187,16 +187,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
187
187
  }),
188
188
  t(f, { span: 6 }, {
189
189
  default: l(() => [
190
- t(S, {
191
- label: a.$t("goodsSpu.spuCode"),
190
+ t(C, {
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] = P((e) => a(n).handleQuery(), ["enter"])),
200
200
  class: "!w-[203px]"
201
201
  }, null, 8, ["modelValue", "placeholder"])
202
202
  ]),
@@ -207,16 +207,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
207
207
  }),
208
208
  t(f, { span: 6 }, {
209
209
  default: l(() => [
210
- t(S, {
211
- label: a.$t("goodsSpu.spuName"),
210
+ t(C, {
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] = P((e) => a(n).handleQuery(), ["enter"])),
220
220
  class: "!w-[203px]"
221
221
  }, null, 8, ["modelValue", "placeholder"])
222
222
  ]),
@@ -227,22 +227,22 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
227
227
  }),
228
228
  t(f, { span: 6 }, {
229
229
  default: l(() => [
230
- t(S, { class: "search-btn" }, {
230
+ t(C, { class: "search-btn" }, {
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
- onClick: Q
273
+ onClick: H
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
  })), [
@@ -309,9 +309,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
309
309
  class: "container-float"
310
310
  }, {
311
311
  default: l(() => [
312
- t(O, {
313
- modelValue: s(h),
314
- "onUpdate:modelValue": o[8] || (o[8] = (e) => P(h) ? h.value = e : h = e),
312
+ t(F, {
313
+ modelValue: a(h),
314
+ "onUpdate:modelValue": o[8] || (o[8] = (e) => R(h) ? h.value = e : h = e),
315
315
  "label-name": "goods/goods-spu"
316
316
  }, null, 8, ["modelValue"])
317
317
  ]),
@@ -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) => R(_) ? _.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),
344
- onSelectionChange: A,
341
+ "list-loading": a(L),
342
+ data: a(q),
343
+ "table-label": a(h),
344
+ onSelectionChange: Y,
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(A).$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) => Q(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-CTv-j8Xe.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-CKeHa-Cx.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,
@@ -26,13 +26,13 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
26
26
  prop: "shopId",
27
27
  slotName: "shopId",
28
28
  columnType: "slot",
29
- width: "150",
29
+ width: "250",
30
30
  isColumn: !0
31
31
  },
32
32
  {
33
33
  label: "goodsSpu.spuName",
34
34
  prop: "spuName",
35
- width: "150",
35
+ width: "200",
36
36
  isColumn: !0
37
37
  },
38
38
  {
@@ -54,7 +54,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
54
54
  {
55
55
  label: "goodsSpu.price",
56
56
  prop: "minPrice",
57
- width: "130",
57
+ width: "120",
58
58
  sortable: "custom",
59
59
  slotName: "minPrice",
60
60
  columnType: "slot",
@@ -63,7 +63,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
63
63
  {
64
64
  label: "goodsSpu.spuCode",
65
65
  prop: "spuCode",
66
- width: "150",
66
+ width: "120",
67
67
  sortable: "custom",
68
68
  isColumn: !0
69
69
  },
@@ -77,7 +77,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
77
77
  {
78
78
  label: "goodsSpu.specType",
79
79
  prop: "specType",
80
- width: "130",
80
+ width: "120",
81
81
  slotName: "specType",
82
82
  columnType: "slot",
83
83
  sortable: "custom",
@@ -86,7 +86,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
86
86
  {
87
87
  label: "goodsSpu.shelf",
88
88
  prop: "shelf",
89
- width: "150",
89
+ width: "120",
90
90
  slotName: "shelf",
91
91
  columnType: "slot",
92
92
  sortable: "custom",
@@ -95,7 +95,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
95
95
  {
96
96
  label: "goodsSpu.approvalStatus",
97
97
  prop: "approvalStatus",
98
- width: "130",
98
+ width: "120",
99
99
  slotName: "approvalStatus",
100
100
  columnType: "slot",
101
101
  isColumn: !0
@@ -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
  };