xyvcard-goods 0.0.30 → 0.0.31

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