xyvcard-goods 0.0.9 → 0.0.10

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 (22) hide show
  1. package/dist/{approveFailIndex-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
  3. package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
  5. package/dist/edit-FCXD46Ef.mjs +556 -0
  6. package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
  7. package/dist/index.mjs +3 -3
  8. package/dist/{info-CPZykxS1.mjs → info-CScBSLKA.mjs} +1 -1
  9. package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
  10. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
  11. package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
  12. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
  13. package/dist/{skuForm-BSlT4TYd.mjs → skuForm-CRnWdE9n.mjs} +11 -5
  14. package/dist/{skuTable-DYmQYXk3.mjs → skuTable-Ck7bJzYP.mjs} +25 -24
  15. package/dist/style.css +1 -1
  16. package/dts/api/goods-spu/types.d.ts +1 -1
  17. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  18. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  19. package/dts/components/ImageUpload.vue.d.ts +36 -0
  20. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
  21. package/package.json +14 -14
  22. package/dist/edit-D37yka6Z.mjs +0 -470
@@ -1,25 +1,30 @@
1
- import { defineComponent as ge, getCurrentInstance as _e, ref as A, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as $, createVNode as t, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as g, createElementVNode as _, withKeys as K, createTextVNode as m, toDisplayString as u, withDirectives as S, isRef as M, createCommentVNode as k } from "vue";
1
+ import { defineComponent as he, getCurrentInstance as we, ref as A, resolveComponent as n, resolveDirective as be, openBlock as p, createElementBlock as b, createVNode as t, withCtx as o, Fragment as z, renderList as Se, unref as s, createBlock as g, createElementVNode as _, withKeys as J, createTextVNode as r, toDisplayString as u, withDirectives as y, isRef as G, createCommentVNode as $ } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
3
  import { useRouter as ve } from "vue-router";
4
- import { useTableHooks as Se, fileApi as J } from "jmash-core";
5
- import { useI18n as ye } from "vue-i18n";
4
+ import { useTableHooks as ye, fileApi as W } from "jmash-core";
5
+ import { useI18n as Ce } from "vue-i18n";
6
6
  import { goodsSpuApi as L } from "./index.mjs";
7
- import { D as b, C as z } from "./index-CKeHa-Cx.mjs";
8
- import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs";
9
- import { _ as Ve } from "./shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs";
10
- import { _ as $e } from "./auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs";
11
- import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs";
12
- const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Re = ["onClick"], Ue = ["onClick"], Pe = ["onClick"], Ye = /* @__PURE__ */ ge({
7
+ import { D as S, C as j } from "./index-CKeHa-Cx.mjs";
8
+ import { _ as ke } from "./saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs";
9
+ import { _ as Ve } from "./shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs";
10
+ import { _ as $e } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
11
+ import { _ as Ie } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
12
+ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-container" }, Re = ["onClick"], Ue = ["onClick"], De = ["onClick"], Ke = /* @__PURE__ */ he({
13
13
  __name: "index",
14
- setup(De) {
15
- const { t: c } = ye(), U = ve(), { proxy: G } = _e(), i = A({}), {
14
+ setup(Ae) {
15
+ const { t: c } = Ce(), R = ve(), { proxy: X } = we(), i = A({
16
+ curPage: 1,
17
+ pageSize: 10
18
+ }), {
16
19
  tableHooks: d,
17
- multipleTableRef: P,
18
- queryFormRef: W,
19
- listLoading: X,
20
- tableData: Z,
20
+ multipleTableRef: U,
21
+ queryFormRef: E,
22
+ listLoading: Z,
23
+ tableData: x,
21
24
  total: N
22
- } = Se(c, L, i);
25
+ } = ye(c, L, i), ee = () => {
26
+ E.value[0].resetFields();
27
+ };
23
28
  let T = A([
24
29
  {
25
30
  label: "goodsSpu.shopId",
@@ -118,30 +123,30 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
118
123
  isColumn: !0
119
124
  }
120
125
  ]);
121
- b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
126
+ S.shopInfoBizDict.useValues(), S.goodsCategoryDict.useValues();
122
127
  const h = A(0);
123
- function x() {
124
- U.push({ path: "/rawgoods/goods-spu/edit" });
128
+ function oe() {
129
+ R.push({ path: "/rawgoods/goods-spu/edit" });
125
130
  }
126
- function ee(l) {
127
- U.push({
131
+ function te(l) {
132
+ R.push({
128
133
  path: "/rawgoods/goods-spu/edit",
129
134
  query: { spuId: l.spuId }
130
135
  });
131
136
  }
132
- function oe(l) {
133
- U.push({
137
+ function le(l) {
138
+ R.push({
134
139
  path: "/rawgoods/goods-spu/info",
135
140
  query: { spuId: l.spuId }
136
141
  });
137
142
  }
138
- function te(l) {
143
+ function ae(l) {
139
144
  d.selectionRows.value = l;
140
145
  }
141
- function le(l) {
146
+ function se(l) {
142
147
  d.handleSort(l.prop, l.order);
143
148
  }
144
- function ae(l) {
149
+ function ne(l) {
145
150
  if (d.selectionRows.value.length === 0) {
146
151
  I({
147
152
  message: c("goodsSpu.chooseShelf"),
@@ -149,19 +154,19 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
149
154
  });
150
155
  return;
151
156
  }
152
- const a = d.selectionRows.value.map((r) => r.spuId);
153
- L.enable({ spuId: a }, JSON.parse(l)).then((r) => {
157
+ const a = d.selectionRows.value.map((m) => m.spuId);
158
+ L.enable({ spuId: a }, JSON.parse(l)).then((m) => {
154
159
  var f;
155
- r.status === 200 && (l === "true" ? I({
156
- message: c("goodsSpu.successShelf") + r.data + c("common.stripData"),
160
+ m.status === 200 && (l === "true" ? I({
161
+ message: c("goodsSpu.successShelf") + m.data + c("common.stripData"),
157
162
  type: "success"
158
163
  }) : I({
159
- message: c("goodsSpu.successOffShelf") + r.data + c("common.stripData"),
164
+ message: c("goodsSpu.successOffShelf") + m.data + c("common.stripData"),
160
165
  type: "success"
161
- }), d.getList(), (f = P.value) == null || f.clearSelection());
166
+ }), d.getList(), (f = U.value) == null || f.clearSelection());
162
167
  });
163
168
  }
164
- function se(l) {
169
+ function ue(l) {
165
170
  if (d.selectionRows.value.length === 0) {
166
171
  I({
167
172
  message: c("goodsSpu.chooseShelf"),
@@ -169,61 +174,61 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
169
174
  });
170
175
  return;
171
176
  }
172
- const a = d.selectionRows.value.map((r) => r.spuId);
173
- L.audit({ spuId: a }, l).then((r) => {
177
+ const a = d.selectionRows.value.map((m) => m.spuId);
178
+ L.audit({ spuId: a }, l).then((m) => {
174
179
  var f;
175
- r.status === 200 && (l === z.APPROVAL_PASS ? I({
176
- message: c("goodsSpu.successApproval") + r.data + c("common.stripData"),
180
+ m.status === 200 && (l === j.APPROVAL_PASS ? I({
181
+ message: c("goodsSpu.successApproval") + m.data + c("common.stripData"),
177
182
  type: "success"
178
183
  }) : I({
179
- message: c("goodsSpu.successFilled") + r.data + c("common.stripData"),
184
+ message: c("goodsSpu.successFilled") + m.data + c("common.stripData"),
180
185
  type: "success"
181
- }), d.getList(), (f = P.value) == null || f.clearSelection());
186
+ }), d.getList(), (f = U.value) == null || f.clearSelection());
182
187
  });
183
188
  }
184
- function ne(l) {
185
- h.value = Number(l.index);
189
+ function de(l) {
190
+ h.value = Number(l.index), Number(l.index) === 0 && d.handleQuery();
186
191
  }
187
192
  return d.getList(), (l, a) => {
188
- const r = n("jmash-select"), f = n("el-form-item"), y = n("el-col"), j = n("el-input"), C = n("el-button"), E = n("el-row"), ue = n("el-form"), O = n("arrow-down"), V = n("el-icon"), q = n("Unlock"), R = n("el-dropdown-item"), B = n("Lock"), F = n("el-dropdown-menu"), H = n("el-dropdown"), de = n("jmash-column-select"), pe = n("el-image"), Q = n("el-switch"), re = n("jmash-table"), me = n("jmash-pagination"), ie = n("el-card"), ce = n("el-tab-pane"), fe = n("el-tabs"), v = he("hasPerm");
189
- return p(), $("div", Ie, [
190
- t(fe, {
193
+ const m = n("jmash-select"), f = n("el-form-item"), C = n("el-col"), O = n("el-input"), k = n("el-button"), q = n("el-row"), pe = n("el-form"), B = n("arrow-down"), V = n("el-icon"), F = n("Unlock"), P = n("el-dropdown-item"), Q = n("Lock"), H = n("el-dropdown-menu"), Y = n("el-dropdown"), re = n("jmash-column-select"), me = n("el-image"), K = n("el-switch"), ie = n("jmash-table"), ce = n("jmash-pagination"), fe = n("el-card"), ge = n("el-tab-pane"), _e = n("el-tabs"), v = be("hasPerm");
194
+ return p(), b("div", Te, [
195
+ t(_e, {
191
196
  modelValue: h.value,
192
- "onUpdate:modelValue": a[13] || (a[13] = (D) => h.value = D),
197
+ "onUpdate:modelValue": a[12] || (a[12] = (D) => h.value = D),
193
198
  type: "border-card",
194
- onTabClick: ne
199
+ onTabClick: de
195
200
  }, {
196
201
  default: o(() => [
197
- (p(!0), $(we, null, be(s(b).goodsSpuListSortEnum.values, (D, Y) => (p(), g(ce, {
198
- key: Y,
202
+ (p(!0), b(z, null, Se(s(S).goodsSpuListSortEnum.values, (D, M) => (p(), g(ge, {
203
+ key: M,
199
204
  label: D.value,
200
- name: Y
205
+ name: M
201
206
  }, {
202
207
  default: o(() => [
203
- h.value === 0 ? (p(), $("div", Te, [
204
- _("div", Ne, [
205
- t(ue, {
208
+ h.value === 0 ? (p(), b("div", Ne, [
209
+ _("div", Pe, [
210
+ t(pe, {
206
211
  ref_for: !0,
207
212
  ref_key: "queryFormRef",
208
- ref: W,
213
+ ref: E,
209
214
  model: i.value,
210
215
  inline: !0
211
216
  }, {
212
217
  default: o(() => [
213
- t(E, null, {
218
+ t(q, null, {
214
219
  default: o(() => [
215
- t(y, { span: 6 }, {
220
+ t(C, { span: 6 }, {
216
221
  default: o(() => [
217
222
  t(f, {
218
223
  label: l.$t("goodsSpu.shopId"),
219
224
  prop: "shopId"
220
225
  }, {
221
226
  default: o(() => [
222
- t(r, {
227
+ t(m, {
223
228
  modelValue: i.value.shopId,
224
229
  "onUpdate:modelValue": a[0] || (a[0] = (e) => i.value.shopId = e),
225
230
  placeholder: l.$t("goodsSpu.shopIdRequired"),
226
- data: s(b).shopInfoBizDict.values,
231
+ data: s(S).shopInfoBizDict.values,
227
232
  filterable: ""
228
233
  }, null, 8, ["modelValue", "placeholder", "data"])
229
234
  ]),
@@ -232,19 +237,19 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
232
237
  ]),
233
238
  _: 1
234
239
  }),
235
- t(y, { span: 6 }, {
240
+ t(C, { span: 6 }, {
236
241
  default: o(() => [
237
242
  t(f, {
238
243
  label: l.$t("goodsSpu.spuCode"),
239
244
  prop: "spuCode"
240
245
  }, {
241
246
  default: o(() => [
242
- t(j, {
247
+ t(O, {
243
248
  modelValue: i.value.spuCode,
244
249
  "onUpdate:modelValue": a[1] || (a[1] = (e) => i.value.spuCode = e),
245
250
  placeholder: l.$t("goodsSpu.spuCode"),
246
251
  class: "!w-[203px]",
247
- onKeyup: a[2] || (a[2] = K((e) => s(d).handleQuery(), ["enter"]))
252
+ onKeyup: a[2] || (a[2] = J((e) => s(d).handleQuery(), ["enter"]))
248
253
  }, null, 8, ["modelValue", "placeholder"])
249
254
  ]),
250
255
  _: 1
@@ -252,19 +257,19 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
252
257
  ]),
253
258
  _: 1
254
259
  }),
255
- t(y, { span: 6 }, {
260
+ t(C, { span: 6 }, {
256
261
  default: o(() => [
257
262
  t(f, {
258
263
  label: l.$t("goodsSpu.spuName"),
259
- prop: "spuName"
264
+ prop: "likeSpuName"
260
265
  }, {
261
266
  default: o(() => [
262
- t(j, {
263
- modelValue: i.value.spuName,
264
- "onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.spuName = e),
267
+ t(O, {
268
+ modelValue: i.value.likeSpuName,
269
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.likeSpuName = e),
265
270
  placeholder: l.$t("goodsSpu.spuName"),
266
271
  class: "!w-[203px]",
267
- onKeyup: a[4] || (a[4] = K((e) => s(d).handleQuery(), ["enter"]))
272
+ onKeyup: a[4] || (a[4] = J((e) => s(d).handleQuery(), ["enter"]))
268
273
  }, null, 8, ["modelValue", "placeholder"])
269
274
  ]),
270
275
  _: 1
@@ -272,24 +277,22 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
272
277
  ]),
273
278
  _: 1
274
279
  }),
275
- t(y, { span: 6 }, {
280
+ t(C, { span: 6 }, {
276
281
  default: o(() => [
277
282
  t(f, { class: "search-btn" }, {
278
283
  default: o(() => [
279
- t(C, {
284
+ t(k, {
280
285
  type: "primary",
281
286
  onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
282
287
  }, {
283
288
  default: o(() => [
284
- m(u(l.$t("common.search")), 1)
289
+ r(u(l.$t("common.search")), 1)
285
290
  ]),
286
291
  _: 1
287
292
  }),
288
- t(C, {
289
- onClick: a[6] || (a[6] = (e) => s(d).resetQuery())
290
- }, {
293
+ t(k, { onClick: ee }, {
291
294
  default: o(() => [
292
- m(u(l.$t("common.reset")), 1)
295
+ r(u(l.$t("common.reset")), 1)
293
296
  ]),
294
297
  _: 1
295
298
  })
@@ -306,65 +309,65 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
306
309
  _: 1
307
310
  }, 8, ["model"])
308
311
  ]),
309
- t(ie, {
312
+ t(fe, {
310
313
  shadow: "never",
311
314
  class: "table-container"
312
315
  }, {
313
316
  header: o(() => [
314
- t(E, null, {
317
+ t(q, null, {
315
318
  default: o(() => [
316
- t(y, { span: 17 }, {
319
+ t(C, { span: 17 }, {
317
320
  default: o(() => [
318
- S((p(), g(C, {
321
+ y((p(), g(k, {
319
322
  type: "primary",
320
- onClick: x
323
+ onClick: oe
321
324
  }, {
322
325
  default: o(() => [
323
- m(u(l.$t("common.add")), 1)
326
+ r(u(l.$t("common.add")), 1)
324
327
  ]),
325
328
  _: 1
326
329
  })), [
327
330
  [v, ["goods:goods_spu:add"]]
328
331
  ]),
329
- S((p(), g(C, {
332
+ y((p(), g(k, {
330
333
  type: "primary",
331
- onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
334
+ onClick: a[6] || (a[6] = (e) => s(d).deleteRecords())
332
335
  }, {
333
336
  default: o(() => [
334
- m(u(l.$t("common.batchDelete")), 1)
337
+ r(u(l.$t("common.batchDelete")), 1)
335
338
  ]),
336
339
  _: 1
337
340
  })), [
338
341
  [v, ["goods:goods_spu:delete"]]
339
342
  ]),
340
- S((p(), g(H, {
343
+ y((p(), g(Y, {
341
344
  class: "dropdown-left",
342
- onCommand: ae
345
+ onCommand: ne
343
346
  }, {
344
347
  dropdown: o(() => [
345
- t(F, null, {
348
+ t(H, null, {
346
349
  default: o(() => [
347
- t(R, { command: "true" }, {
350
+ t(P, { command: "true" }, {
348
351
  default: o(() => [
349
352
  t(V, { size: "14" }, {
350
353
  default: o(() => [
351
- t(q)
354
+ t(F)
352
355
  ]),
353
356
  _: 1
354
357
  }),
355
- m(" " + u(l.$t("goodsSpu.batchShelf")), 1)
358
+ r(" " + u(l.$t("goodsSpu.batchShelf")), 1)
356
359
  ]),
357
360
  _: 1
358
361
  }),
359
- t(R, { command: "false" }, {
362
+ t(P, { command: "false" }, {
360
363
  default: o(() => [
361
364
  t(V, { size: "14" }, {
362
365
  default: o(() => [
363
- t(B)
366
+ t(Q)
364
367
  ]),
365
368
  _: 1
366
369
  }),
367
- m(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
370
+ r(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
368
371
  ]),
369
372
  _: 1
370
373
  })
@@ -373,12 +376,12 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
373
376
  })
374
377
  ]),
375
378
  default: o(() => [
376
- t(C, { type: "primary" }, {
379
+ t(k, { type: "primary" }, {
377
380
  default: o(() => [
378
- m(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
381
+ r(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
379
382
  t(V, { class: "el-icon--right" }, {
380
383
  default: o(() => [
381
- t(O)
384
+ t(B)
382
385
  ]),
383
386
  _: 1
384
387
  })
@@ -390,38 +393,38 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
390
393
  })), [
391
394
  [v, ["goods:goods_spu:onSale"]]
392
395
  ]),
393
- S((p(), g(H, {
396
+ y((p(), g(Y, {
394
397
  class: "dropdown-left",
395
- onCommand: se
398
+ onCommand: ue
396
399
  }, {
397
400
  dropdown: o(() => [
398
- t(F, null, {
401
+ t(H, null, {
399
402
  default: o(() => [
400
- t(R, {
401
- command: s(z).APPROVAL_PASS
403
+ t(P, {
404
+ command: s(j).APPROVAL_PASS
402
405
  }, {
403
406
  default: o(() => [
404
407
  t(V, { size: "14" }, {
405
408
  default: o(() => [
406
- t(q)
409
+ t(F)
407
410
  ]),
408
411
  _: 1
409
412
  }),
410
- m(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
413
+ r(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
411
414
  ]),
412
415
  _: 1
413
416
  }, 8, ["command"]),
414
- t(R, {
415
- command: s(z).APPROVAL_NOT_PASS
417
+ t(P, {
418
+ command: s(j).APPROVAL_NOT_PASS
416
419
  }, {
417
420
  default: o(() => [
418
421
  t(V, { size: "14" }, {
419
422
  default: o(() => [
420
- t(B)
423
+ t(Q)
421
424
  ]),
422
425
  _: 1
423
426
  }),
424
- m(" " + u(l.$t("goodsSpu.batchRejected")), 1)
427
+ r(" " + u(l.$t("goodsSpu.batchRejected")), 1)
425
428
  ]),
426
429
  _: 1
427
430
  }, 8, ["command"])
@@ -430,12 +433,12 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
430
433
  })
431
434
  ]),
432
435
  default: o(() => [
433
- t(C, { type: "primary" }, {
436
+ t(k, { type: "primary" }, {
434
437
  default: o(() => [
435
- m(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
438
+ r(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
436
439
  t(V, { class: "el-icon--right" }, {
437
440
  default: o(() => [
438
- t(O)
441
+ t(B)
439
442
  ]),
440
443
  _: 1
441
444
  })
@@ -450,14 +453,14 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
450
453
  ]),
451
454
  _: 1
452
455
  }),
453
- t(y, {
456
+ t(C, {
454
457
  span: 7,
455
458
  class: "container-float"
456
459
  }, {
457
460
  default: o(() => [
458
- t(de, {
461
+ t(re, {
459
462
  modelValue: s(T),
460
- "onUpdate:modelValue": a[8] || (a[8] = (e) => M(T) ? T.value = e : T = e),
463
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => G(T) ? T.value = e : T = e),
461
464
  "label-name": "goods/goods-spu"
462
465
  }, null, 8, ["modelValue"])
463
466
  ]),
@@ -468,45 +471,45 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
468
471
  })
469
472
  ]),
470
473
  footer: o(() => [
471
- s(N) > 0 ? (p(), g(me, {
474
+ s(N) > 0 ? (p(), g(ce, {
472
475
  key: 0,
473
476
  total: s(N),
474
- "onUpdate:total": a[9] || (a[9] = (e) => M(N) ? N.value = e : null),
477
+ "onUpdate:total": a[8] || (a[8] = (e) => G(N) ? N.value = e : null),
475
478
  "current-page": i.value.curPage,
476
- "onUpdate:currentPage": a[10] || (a[10] = (e) => i.value.curPage = e),
479
+ "onUpdate:currentPage": a[9] || (a[9] = (e) => i.value.curPage = e),
477
480
  "page-size": i.value.pageSize,
478
- "onUpdate:pageSize": a[11] || (a[11] = (e) => i.value.pageSize = e),
479
- onPagination: a[12] || (a[12] = (e) => s(d).getList())
480
- }, null, 8, ["total", "current-page", "page-size"])) : k("", !0)
481
+ "onUpdate:pageSize": a[10] || (a[10] = (e) => i.value.pageSize = e),
482
+ onPagination: a[11] || (a[11] = (e) => s(d).getList())
483
+ }, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
481
484
  ]),
482
485
  default: o(() => [
483
- t(re, {
486
+ t(ie, {
484
487
  ref_for: !0,
485
488
  ref_key: "multipleTableRef",
486
- ref: P,
489
+ ref: U,
487
490
  "row-key": "spuId",
488
- "list-loading": s(X),
489
- data: s(Z),
491
+ "list-loading": s(Z),
492
+ data: s(x),
490
493
  "table-label": s(T),
491
- onSelectionChange: te,
492
- onSortChange: le
494
+ onSelectionChange: ae,
495
+ onSortChange: se
493
496
  }, {
494
497
  shopId: o((e) => [
495
- _("span", null, u(s(b).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
498
+ _("span", null, u(s(S).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
496
499
  ]),
497
500
  categoryId: o((e) => [
498
- _("span", null, u(s(b).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
501
+ _("span", null, u(s(S).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
499
502
  ]),
500
503
  picUrls: o((e) => [
501
504
  _("span", null, [
502
- t(pe, {
503
- src: s(J).imageUrl(
505
+ t(me, {
506
+ src: s(W).imageUrl(
504
507
  e.data.row.picUrls.split(",")[0],
505
508
  50,
506
509
  50
507
510
  ),
508
511
  "preview-src-list": [
509
- s(J).imageUrl(e.data.row.picUrls.split(",")[0])
512
+ s(W).imageUrl(e.data.row.picUrls.split(",")[0])
510
513
  ],
511
514
  "preview-teleported": "",
512
515
  "hide-on-click-modal": "",
@@ -516,7 +519,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
516
519
  ]),
517
520
  shelf: o((e) => [
518
521
  _("span", null, [
519
- t(Q, {
522
+ t(K, {
520
523
  modelValue: e.data.row.shelf,
521
524
  "onUpdate:modelValue": (w) => e.data.row.shelf = w,
522
525
  onClick: (w) => s(d).enableRecord(
@@ -527,24 +530,30 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
527
530
  ])
528
531
  ]),
529
532
  minPrice: o((e) => [
530
- _("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
533
+ _("span", null, [
534
+ e.data.row.minPrice === e.data.row.maxPrice ? (p(), b(z, { key: 0 }, [
535
+ r(u(e.data.row.minPrice), 1)
536
+ ], 64)) : (p(), b(z, { key: 1 }, [
537
+ r(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
538
+ ], 64))
539
+ ])
531
540
  ]),
532
541
  specType: o((e) => [
533
- _("span", null, u(s(b).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
542
+ _("span", null, u(s(S).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
534
543
  ]),
535
544
  approvalStatus: o((e) => [
536
- _("span", null, u(s(b).approvalStatusEnum.getEnumValue(
545
+ _("span", null, u(s(S).approvalStatusEnum.getEnumValue(
537
546
  e.data.row.approvalStatus
538
547
  )), 1)
539
548
  ]),
540
549
  updateTime: o((e) => [
541
- _("span", null, u(s(G).$moment.formatDate(
550
+ _("span", null, u(s(X).$moment.formatDate(
542
551
  e.data.row.updateTime,
543
552
  "YYYY-MM-DD HH:mm:ss"
544
553
  )), 1)
545
554
  ]),
546
555
  enable: o((e) => [
547
- t(Q, {
556
+ t(K, {
548
557
  modelValue: e.data.row.enable,
549
558
  "onUpdate:modelValue": (w) => e.data.row.enable = w,
550
559
  onChange: (w) => s(d).enableRecord(
@@ -554,28 +563,28 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
554
563
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
555
564
  ]),
556
565
  operation: o((e) => [
557
- S((p(), $("span", {
566
+ y((p(), b("span", {
558
567
  class: "el-button-color",
559
- onClick: (w) => ee(e.data.row)
568
+ onClick: (w) => te(e.data.row)
560
569
  }, [
561
- m(u(l.$t("common.edit")), 1)
570
+ r(u(l.$t("common.edit")), 1)
562
571
  ], 8, Re)), [
563
572
  [v, ["goods:goods_spu:update"]]
564
573
  ]),
565
- S((p(), $("span", {
574
+ y((p(), b("span", {
566
575
  class: "el-button-color dropdown-left",
567
576
  onClick: (w) => s(d).deleteRecord(e.data.row)
568
577
  }, [
569
- m(u(l.$t("common.delete")), 1)
578
+ r(u(l.$t("common.delete")), 1)
570
579
  ], 8, Ue)), [
571
580
  [v, ["goods:goods_spu:delete"]]
572
581
  ]),
573
- S((p(), $("span", {
582
+ y((p(), b("span", {
574
583
  class: "el-button-color dropdown-left",
575
- onClick: (w) => oe(e.data.row)
584
+ onClick: (w) => le(e.data.row)
576
585
  }, [
577
- m(u(l.$t("common.view")), 1)
578
- ], 8, Pe)), [
586
+ r(u(l.$t("common.view")), 1)
587
+ ], 8, De)), [
579
588
  [v, ["goods:goods_spu:view"]]
580
589
  ])
581
590
  ]),
@@ -584,11 +593,11 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
584
593
  ]),
585
594
  _: 1
586
595
  })
587
- ])) : k("", !0),
588
- h.value === 1 ? (p(), g(Ce, { key: 1 })) : k("", !0),
589
- h.value === 2 ? (p(), g(Ve, { key: 2 })) : k("", !0),
590
- h.value === 3 ? (p(), g($e, { key: 3 })) : k("", !0),
591
- h.value === 4 ? (p(), g(ke, { key: 4 })) : k("", !0)
596
+ ])) : $("", !0),
597
+ h.value === 1 ? (p(), g(ke, { key: 1 })) : $("", !0),
598
+ h.value === 2 ? (p(), g(Ve, { key: 2 })) : $("", !0),
599
+ h.value === 3 ? (p(), g($e, { key: 3 })) : $("", !0),
600
+ h.value === 4 ? (p(), g(Ie, { key: 4 })) : $("", !0)
592
601
  ]),
593
602
  _: 2
594
603
  }, 1032, ["label", "name"]))), 128))
@@ -600,5 +609,5 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
600
609
  }
601
610
  });
602
611
  export {
603
- Ye as default
612
+ Ke as default
604
613
  };