xyvcard-goods 0.0.10 → 0.0.12

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