xyvcard-goods 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{approveFailIndex-F3GtuNeX.mjs → approveFailIndex-BecI6njE.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs} +9 -9
  3. package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-ByyMgebr.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs} +44 -44
  5. package/dist/edit-BWUxDk9Y.mjs +594 -0
  6. package/dist/{index-D5_GsXR7.mjs → index-AZ4TxL-_.mjs} +48 -51
  7. package/dist/{index-kGlE0ywA.mjs → index-BypI3ZNk.mjs} +90 -90
  8. package/dist/index.mjs +2 -2
  9. package/dist/{info-kiOShGr4.mjs → info-BJ1Ld_6D.mjs} +20 -23
  10. package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CBtuv6um.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs} +69 -69
  12. package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-CykEAeD4.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs} +11 -11
  14. package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-DdiMztDh.mjs} +82 -77
  15. package/dist/{skuTable-8oPw0DhV.mjs → skuTable-Cg06m_5i.mjs} +122 -127
  16. package/dist/style.css +1 -1
  17. package/dts/api/dict.d.ts +6 -2
  18. package/dts/api/goods-spu/types.d.ts +6 -5
  19. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  20. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  21. package/dts/constant.d.ts +3 -3
  22. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +9 -0
  23. package/package.json +65 -65
  24. package/dist/edit-C3imnLUq.mjs +0 -600
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs";
1
+ import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,10 +3,10 @@ import { useRouter as ee } from "vue-router";
3
3
  import { useTableHooks as oe, fileApi as D } from "jmash-core";
4
4
  import { useI18n as le } from "vue-i18n";
5
5
  import { goodsSpuApi as te } from "./index.mjs";
6
- import { C as ae, D as g } from "./index-D5_GsXR7.mjs";
7
- const se = { class: "app-container" }, ne = { class: "search-container" }, pe = ["onClick"], ue = ["onClick"], de = ["onClick"], be = /* @__PURE__ */ W({
6
+ import { C as ae, D as g } from "./index-AZ4TxL-_.mjs";
7
+ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue = ["onClick"], he = /* @__PURE__ */ W({
8
8
  __name: "approveFailIndex",
9
- setup(re) {
9
+ setup(de) {
10
10
  const { t: P } = le(), S = ee(), { proxy: R } = X(), u = k({
11
11
  curPage: 1,
12
12
  pageSize: 10,
@@ -141,8 +141,8 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
141
141
  }
142
142
  return d.getList(), (s, l) => {
143
143
  const A = p("jmash-select"), v = p("el-form-item"), f = p("el-col"), I = p("el-input"), y = p("el-button"), T = p("el-row"), F = p("el-form"), K = p("jmash-column-select"), M = p("el-image"), $ = p("el-switch"), G = p("jmash-table"), J = p("jmash-pagination"), O = p("el-card"), b = Z("hasPerm");
144
- return m(), C("div", se, [
145
- r("div", ne, [
144
+ return m(), C("div", null, [
145
+ r("div", se, [
146
146
  t(F, {
147
147
  ref_key: "queryFormRef",
148
148
  ref: j,
@@ -378,7 +378,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
378
378
  onClick: (i) => H(e.data.row)
379
379
  }, [
380
380
  c(n(s.$t("common.edit")), 1)
381
- ], 8, pe)), [
381
+ ], 8, ne)), [
382
382
  [b, ["goods:goods_spu:update"]]
383
383
  ]),
384
384
  w((m(), C("span", {
@@ -386,7 +386,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
386
386
  onClick: (i) => a(d).deleteRecord(e.data.row)
387
387
  }, [
388
388
  c(n(s.$t("common.delete")), 1)
389
- ], 8, ue)), [
389
+ ], 8, pe)), [
390
390
  [b, ["goods:goods_spu:delete"]]
391
391
  ]),
392
392
  w((m(), C("span", {
@@ -394,7 +394,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
394
394
  onClick: (i) => L(e.data.row)
395
395
  }, [
396
396
  c(n(s.$t("common.view")), 1)
397
- ], 8, de)), [
397
+ ], 8, ue)), [
398
398
  [b, ["goods:goods_spu:view"]]
399
399
  ])
400
400
  ]),
@@ -408,5 +408,5 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
408
408
  }
409
409
  });
410
410
  export {
411
- be as _
411
+ he as _
412
412
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs";
1
+ import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as ne, getCurrentInstance as pe, ref as A, resolveComponent as n, resolveDirective as de, openBlock as g, createElementBlock as V, createElementVNode as i, createVNode as l, withCtx as o, unref as s, withKeys as z, createTextVNode as r, toDisplayString as p, withDirectives as v, createBlock as I, isRef as L, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as ne, getCurrentInstance as pe, ref as A, resolveComponent as n, resolveDirective as de, openBlock as c, createElementBlock as V, createElementVNode as m, createVNode as l, withCtx as o, unref as s, withKeys as z, createTextVNode as r, toDisplayString as p, withDirectives as v, createBlock as I, isRef as L, createCommentVNode as ue } from "vue";
2
2
  import { ElMessage as T } from "element-plus";
3
3
  import { useRouter as re } from "vue-router";
4
- import { useTableHooks as ie, fileApi as j } from "jmash-core";
5
- import { useI18n as me } from "vue-i18n";
4
+ import { useTableHooks as me, fileApi as j } from "jmash-core";
5
+ import { useI18n as ie } from "vue-i18n";
6
6
  import { goodsSpuApi as E } from "./index.mjs";
7
- import { C as ce, D as _ } from "./index-D5_GsXR7.mjs";
8
- const ge = { class: "app-container" }, fe = { class: "search-container" }, _e = ["onClick"], we = ["onClick"], he = ["onClick"], ke = /* @__PURE__ */ ne({
7
+ import { C as ce, D as _ } from "./index-AZ4TxL-_.mjs";
8
+ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we = ["onClick"], $e = /* @__PURE__ */ ne({
9
9
  __name: "auditIndex",
10
- setup(be) {
11
- const { t: w } = me(), $ = re(), { proxy: q } = pe(), u = A({
10
+ setup(he) {
11
+ const { t: w } = ie(), $ = re(), { proxy: q } = pe(), u = A({
12
12
  curPage: 1,
13
13
  pageSize: 10,
14
14
  approvalStatus: ce.approvaling
@@ -19,7 +19,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
19
19
  listLoading: H,
20
20
  tableData: O,
21
21
  total: C
22
- } = ie(w, E, u);
22
+ } = me(w, E, u);
23
23
  let y = A([
24
24
  {
25
25
  label: "goodsSpu.shopId",
@@ -141,29 +141,29 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
141
141
  d.handleSort(t.prop, t.order);
142
142
  }
143
143
  function G(t) {
144
- if (console.log(t), d.selectionRows.value.length === 0) {
144
+ if (d.selectionRows.value.length === 0) {
145
145
  T({
146
146
  message: w("goodsSpu.chooseShelf"),
147
147
  type: "warning"
148
148
  });
149
149
  return;
150
150
  }
151
- const a = d.selectionRows.value.map((m) => m.spuId);
152
- E.audit({ spuId: a }, t).then((m) => {
151
+ const a = d.selectionRows.value.map((g) => g.spuId);
152
+ E.audit({ spuId: a }, t).then((g) => {
153
153
  var f;
154
- console.log(m), m.status === 200 && (t === "APPROVAL_PASS" ? T({
155
- message: w("goodsSpu.successApproval") + m.data + w("common.stripData"),
154
+ g.status === 200 && (t === "APPROVAL_PASS" ? T({
155
+ message: w("goodsSpu.successApproval") + g.data + w("common.stripData"),
156
156
  type: "success"
157
157
  }) : T({
158
- message: w("goodsSpu.successFilled") + m.data + w("common.stripData"),
158
+ message: w("goodsSpu.successFilled") + g.data + w("common.stripData"),
159
159
  type: "success"
160
160
  }), d.getList(), (f = N.value) == null || f.clearSelection());
161
161
  });
162
162
  }
163
163
  return d.getList(), (t, a) => {
164
- const m = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), J = n("el-form"), W = n("arrow-down"), k = n("el-icon"), X = n("Unlock"), R = n("el-dropdown-item"), Z = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"), D = n("el-switch"), te = n("jmash-table"), ae = n("jmash-pagination"), se = n("el-card"), b = de("hasPerm");
165
- return g(), V("div", ge, [
166
- i("div", fe, [
164
+ const g = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), J = n("el-form"), W = n("arrow-down"), k = n("el-icon"), X = n("Unlock"), R = n("el-dropdown-item"), Z = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"), D = n("el-switch"), te = n("jmash-table"), ae = n("jmash-pagination"), se = n("el-card"), b = de("hasPerm");
165
+ return c(), V("div", null, [
166
+ m("div", ge, [
167
167
  l(J, {
168
168
  ref_key: "queryFormRef",
169
169
  ref: B,
@@ -180,7 +180,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
180
180
  prop: "shopId"
181
181
  }, {
182
182
  default: o(() => [
183
- l(m, {
183
+ l(g, {
184
184
  modelValue: u.value.shopId,
185
185
  "onUpdate:modelValue": a[0] || (a[0] = (e) => u.value.shopId = e),
186
186
  placeholder: t.$t("goodsSpu.shopIdRequired"),
@@ -276,7 +276,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
276
276
  default: o(() => [
277
277
  l(h, { span: 17 }, {
278
278
  default: o(() => [
279
- v((g(), I(S, {
279
+ v((c(), I(S, {
280
280
  type: "primary",
281
281
  onClick: Q
282
282
  }, {
@@ -287,7 +287,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
287
287
  })), [
288
288
  [b, ["goods:goods_spu:add"]]
289
289
  ]),
290
- v((g(), I(S, {
290
+ v((c(), I(S, {
291
291
  type: "primary",
292
292
  onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
293
293
  }, {
@@ -298,7 +298,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
298
298
  })), [
299
299
  [b, ["goods:goods_spu:delete"]]
300
300
  ]),
301
- v((g(), I(ee, {
301
+ v((c(), I(ee, {
302
302
  class: "dropdown-left",
303
303
  onCommand: G
304
304
  }, {
@@ -372,7 +372,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
372
372
  })
373
373
  ]),
374
374
  footer: o(() => [
375
- s(C) > 0 ? (g(), I(ae, {
375
+ s(C) > 0 ? (c(), I(ae, {
376
376
  key: 0,
377
377
  total: s(C),
378
378
  "onUpdate:total": a[9] || (a[9] = (e) => L(C) ? C.value = e : null),
@@ -395,13 +395,13 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
395
395
  onSortChange: M
396
396
  }, {
397
397
  shopId: o((e) => [
398
- i("span", null, p(s(_).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
398
+ m("span", null, p(s(_).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
399
399
  ]),
400
400
  categoryId: o((e) => [
401
- i("span", null, p(s(_).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
401
+ m("span", null, p(s(_).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
402
402
  ]),
403
403
  picUrls: o((e) => [
404
- i("span", null, [
404
+ m("span", null, [
405
405
  l(le, {
406
406
  src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
407
407
  "preview-src-list": [
@@ -414,27 +414,27 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
414
414
  ])
415
415
  ]),
416
416
  shelf: o((e) => [
417
- i("span", null, [
417
+ m("span", null, [
418
418
  l(D, {
419
419
  modelValue: e.data.row.shelf,
420
- "onUpdate:modelValue": (c) => e.data.row.shelf = c,
421
- onClick: (c) => s(d).enableRecord(e.data.row, e.data.row.shelf)
420
+ "onUpdate:modelValue": (i) => e.data.row.shelf = i,
421
+ onClick: (i) => s(d).enableRecord(e.data.row, e.data.row.shelf)
422
422
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
423
423
  ])
424
424
  ]),
425
425
  minPrice: o((e) => [
426
- i("span", null, p(e.data.row.minPrice) + " ~ " + p(e.data.row.maxPrice), 1)
426
+ m("span", null, p(e.data.row.minPrice) + " ~ " + p(e.data.row.maxPrice), 1)
427
427
  ]),
428
428
  specType: o((e) => [
429
- i("span", null, p(s(_).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
429
+ m("span", null, p(s(_).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
430
430
  ]),
431
431
  approvalStatus: o((e) => [
432
- i("span", null, p(s(_).approvalStatusEnum.getEnumValue(
432
+ m("span", null, p(s(_).approvalStatusEnum.getEnumValue(
433
433
  e.data.row.approvalStatus
434
434
  )), 1)
435
435
  ]),
436
436
  updateTime: o((e) => [
437
- i("span", null, p(s(q).$moment.formatDate(
437
+ m("span", null, p(s(q).$moment.formatDate(
438
438
  e.data.row.updateTime,
439
439
  "YYYY-MM-DD HH:mm:ss"
440
440
  )), 1)
@@ -442,33 +442,33 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
442
442
  enable: o((e) => [
443
443
  l(D, {
444
444
  modelValue: e.data.row.enable,
445
- "onUpdate:modelValue": (c) => e.data.row.enable = c,
446
- onChange: (c) => s(d).enableRecord(e.data.row, e.data.row.enable)
445
+ "onUpdate:modelValue": (i) => e.data.row.enable = i,
446
+ onChange: (i) => s(d).enableRecord(e.data.row, e.data.row.enable)
447
447
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
448
448
  ]),
449
449
  operation: o((e) => [
450
- v((g(), V("span", {
450
+ v((c(), V("span", {
451
451
  class: "el-button-color",
452
- onClick: (c) => Y(e.data.row)
452
+ onClick: (i) => Y(e.data.row)
453
453
  }, [
454
454
  r(p(t.$t("common.edit")), 1)
455
- ], 8, _e)), [
455
+ ], 8, fe)), [
456
456
  [b, ["goods:goods_spu:update"]]
457
457
  ]),
458
- v((g(), V("span", {
458
+ v((c(), V("span", {
459
459
  class: "el-button-color dropdown-left",
460
- onClick: (c) => s(d).deleteRecord(e.data.row)
460
+ onClick: (i) => s(d).deleteRecord(e.data.row)
461
461
  }, [
462
462
  r(p(t.$t("common.delete")), 1)
463
- ], 8, we)), [
463
+ ], 8, _e)), [
464
464
  [b, ["goods:goods_spu:delete"]]
465
465
  ]),
466
- v((g(), V("span", {
466
+ v((c(), V("span", {
467
467
  class: "el-button-color dropdown-left",
468
- onClick: (c) => F(e.data.row)
468
+ onClick: (i) => F(e.data.row)
469
469
  }, [
470
470
  r(p(t.$t("common.view")), 1)
471
- ], 8, he)), [
471
+ ], 8, we)), [
472
472
  [b, ["goods:goods_spu:view"]]
473
473
  ])
474
474
  ]),
@@ -482,5 +482,5 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
482
482
  }
483
483
  });
484
484
  export {
485
- ke as _
485
+ $e as _
486
486
  };