xyvcard-goods 0.0.30 → 0.0.32

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