xyvcard-goods 0.0.15 → 0.0.16

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