xyvcard-goods 0.0.9 → 0.0.11

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 (22) hide show
  1. package/dist/{approveFailIndex-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
  3. package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
  5. package/dist/edit-Bk7YJzrm.mjs +556 -0
  6. package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
  7. package/dist/index.mjs +3 -3
  8. package/dist/{info-CPZykxS1.mjs → info-lw-aEq4N.mjs} +1 -1
  9. package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
  10. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
  11. package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
  12. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
  13. package/dist/{skuForm-BSlT4TYd.mjs → skuForm-DuMlHj7f.mjs} +11 -5
  14. package/dist/{skuTable-DYmQYXk3.mjs → skuTable-BlK2s902.mjs} +173 -159
  15. package/dist/style.css +1 -1
  16. package/dts/api/goods-spu/types.d.ts +1 -1
  17. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  18. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  19. package/dts/components/ImageUpload.vue.d.ts +36 -0
  20. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
  21. package/package.json +17 -17
  22. package/dist/edit-D37yka6Z.mjs +0 -470
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs";
1
+ import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,25 +1,25 @@
1
- import { defineComponent as W, getCurrentInstance as X, ref as N, resolveComponent as p, resolveDirective as Z, openBlock as m, createElementBlock as C, createElementVNode as r, createVNode as t, withCtx as o, unref as a, withKeys as k, createTextVNode as c, toDisplayString as n, withDirectives as w, createBlock as V, isRef as U, createCommentVNode as x } from "vue";
2
- import { useRouter as ee } from "vue-router";
3
- import { useTableHooks as oe, fileApi as P } from "jmash-core";
4
- import { useI18n as le } from "vue-i18n";
5
- import { goodsSpuApi as te } from "./index.mjs";
6
- import { C as ae, D as g } from "./index-CKeHa-Cx.mjs";
7
- const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue = ["onClick"], he = /* @__PURE__ */ W({
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as $, resolveComponent as u, resolveDirective as x, openBlock as r, createElementBlock as h, createElementVNode as i, createVNode as t, withCtx as o, unref as a, withKeys as N, createTextVNode as m, toDisplayString as s, withDirectives as _, createBlock as V, isRef as P, createCommentVNode as ee, Fragment as U } from "vue";
2
+ import { useRouter as oe } from "vue-router";
3
+ import { useTableHooks as le, fileApi as D } from "jmash-core";
4
+ import { useI18n as te } from "vue-i18n";
5
+ import { goodsSpuApi as ae } from "./index.mjs";
6
+ import { C as ne, D as g } from "./index-CKeHa-Cx.mjs";
7
+ const se = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], we = /* @__PURE__ */ X({
8
8
  __name: "approveFailIndex",
9
- setup(de) {
10
- const { t: D } = le(), S = ee(), { proxy: R } = X(), u = N({
9
+ setup(re) {
10
+ const { t: R } = te(), S = oe(), { proxy: z } = Z(), p = $({
11
11
  curPage: 1,
12
12
  pageSize: 10,
13
- approvalStatus: ae.APPROVAL_NOT_PASS
13
+ approvalStatus: ne.APPROVAL_NOT_PASS
14
14
  }), {
15
15
  tableHooks: d,
16
- multipleTableRef: z,
17
- queryFormRef: j,
18
- listLoading: E,
19
- tableData: q,
20
- total: _
21
- } = oe(D, te, u);
22
- let h = N([
16
+ multipleTableRef: j,
17
+ queryFormRef: E,
18
+ listLoading: q,
19
+ tableData: A,
20
+ total: y
21
+ } = le(R, ae, p);
22
+ let w = $([
23
23
  {
24
24
  label: "goodsSpu.shopId",
25
25
  prop: "shopId",
@@ -118,51 +118,51 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
118
118
  }
119
119
  ]);
120
120
  g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
121
- function A() {
121
+ function B() {
122
122
  S.push({ path: "/rawgoods/goods-spu/edit" });
123
123
  }
124
- function B(s) {
124
+ function L(n) {
125
125
  S.push({
126
126
  path: "/rawgoods/goods-spu/edit",
127
- query: { spuId: s.spuId }
127
+ query: { spuId: n.spuId }
128
128
  });
129
129
  }
130
- function L(s) {
130
+ function F(n) {
131
131
  S.push({
132
132
  path: "/rawgoods/goods-spu/info",
133
- query: { spuId: s.spuId }
133
+ query: { spuId: n.spuId }
134
134
  });
135
135
  }
136
- function H(s) {
137
- d.selectionRows.value = s;
136
+ function H(n) {
137
+ d.selectionRows.value = n;
138
138
  }
139
- function Q(s) {
140
- d.handleSort(s.prop, s.order);
139
+ function Q(n) {
140
+ d.handleSort(n.prop, n.order);
141
141
  }
142
- return d.getList(), (s, l) => {
143
- const Y = 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"), O = p("jmash-table"), G = p("jmash-pagination"), J = p("el-card"), b = Z("hasPerm");
144
- return m(), C("div", null, [
145
- r("div", se, [
146
- t(F, {
142
+ return d.getList(), (n, l) => {
143
+ const Y = u("jmash-select"), v = u("el-form-item"), f = u("el-col"), k = u("el-input"), C = u("el-button"), I = u("el-row"), K = u("el-form"), M = u("jmash-column-select"), O = u("el-image"), T = u("el-switch"), G = u("jmash-table"), J = u("jmash-pagination"), W = u("el-card"), b = x("hasPerm");
144
+ return r(), h("div", null, [
145
+ i("div", se, [
146
+ t(K, {
147
147
  ref_key: "queryFormRef",
148
- ref: j,
149
- model: u.value,
148
+ ref: E,
149
+ model: p.value,
150
150
  inline: !0
151
151
  }, {
152
152
  default: o(() => [
153
- t(T, null, {
153
+ t(I, null, {
154
154
  default: o(() => [
155
155
  t(f, { span: 6 }, {
156
156
  default: o(() => [
157
157
  t(v, {
158
- label: s.$t("goodsSpu.shopId"),
158
+ label: n.$t("goodsSpu.shopId"),
159
159
  prop: "shopId"
160
160
  }, {
161
161
  default: o(() => [
162
162
  t(Y, {
163
- modelValue: u.value.shopId,
164
- "onUpdate:modelValue": l[0] || (l[0] = (e) => u.value.shopId = e),
165
- placeholder: s.$t("goodsSpu.shopIdRequired"),
163
+ modelValue: p.value.shopId,
164
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => p.value.shopId = e),
165
+ placeholder: n.$t("goodsSpu.shopIdRequired"),
166
166
  data: a(g).shopInfoBizDict.values,
167
167
  filterable: ""
168
168
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -175,15 +175,15 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
175
175
  t(f, { span: 6 }, {
176
176
  default: o(() => [
177
177
  t(v, {
178
- label: s.$t("goodsSpu.spuCode"),
178
+ label: n.$t("goodsSpu.spuCode"),
179
179
  prop: "spuCode"
180
180
  }, {
181
181
  default: o(() => [
182
- t(I, {
183
- modelValue: u.value.spuCode,
184
- "onUpdate:modelValue": l[1] || (l[1] = (e) => u.value.spuCode = e),
185
- placeholder: s.$t("goodsSpu.spuCode"),
186
- onKeyup: l[2] || (l[2] = k((e) => a(d).handleQuery(), ["enter"])),
182
+ t(k, {
183
+ modelValue: p.value.spuCode,
184
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => p.value.spuCode = e),
185
+ placeholder: n.$t("goodsSpu.spuCode"),
186
+ onKeyup: l[2] || (l[2] = N((e) => a(d).handleQuery(), ["enter"])),
187
187
  class: "!w-[203px]"
188
188
  }, null, 8, ["modelValue", "placeholder"])
189
189
  ]),
@@ -195,15 +195,15 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
195
195
  t(f, { span: 6 }, {
196
196
  default: o(() => [
197
197
  t(v, {
198
- label: s.$t("goodsSpu.spuName"),
199
- prop: "spuName"
198
+ label: n.$t("goodsSpu.spuName"),
199
+ prop: "likeSpuName"
200
200
  }, {
201
201
  default: o(() => [
202
- t(I, {
203
- modelValue: u.value.spuName,
204
- "onUpdate:modelValue": l[3] || (l[3] = (e) => u.value.spuName = e),
205
- placeholder: s.$t("goodsSpu.spuName"),
206
- onKeyup: l[4] || (l[4] = k((e) => a(d).handleQuery(), ["enter"])),
202
+ t(k, {
203
+ modelValue: p.value.likeSpuName,
204
+ "onUpdate:modelValue": l[3] || (l[3] = (e) => p.value.likeSpuName = e),
205
+ placeholder: n.$t("goodsSpu.spuName"),
206
+ onKeyup: l[4] || (l[4] = N((e) => a(d).handleQuery(), ["enter"])),
207
207
  class: "!w-[203px]"
208
208
  }, null, 8, ["modelValue", "placeholder"])
209
209
  ]),
@@ -216,20 +216,20 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
216
216
  default: o(() => [
217
217
  t(v, { class: "search-btn" }, {
218
218
  default: o(() => [
219
- t(y, {
219
+ t(C, {
220
220
  type: "primary",
221
221
  onClick: l[5] || (l[5] = (e) => a(d).handleQuery())
222
222
  }, {
223
223
  default: o(() => [
224
- c(n(s.$t("common.search")), 1)
224
+ m(s(n.$t("common.search")), 1)
225
225
  ]),
226
226
  _: 1
227
227
  }),
228
- t(y, {
228
+ t(C, {
229
229
  onClick: l[6] || (l[6] = (e) => a(d).resetQuery())
230
230
  }, {
231
231
  default: o(() => [
232
- c(n(s.$t("common.reset")), 1)
232
+ m(s(n.$t("common.reset")), 1)
233
233
  ]),
234
234
  _: 1
235
235
  })
@@ -246,32 +246,32 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
246
246
  _: 1
247
247
  }, 8, ["model"])
248
248
  ]),
249
- t(J, {
249
+ t(W, {
250
250
  shadow: "never",
251
251
  class: "table-container"
252
252
  }, {
253
253
  header: o(() => [
254
- t(T, null, {
254
+ t(I, null, {
255
255
  default: o(() => [
256
256
  t(f, { span: 17 }, {
257
257
  default: o(() => [
258
- w((m(), V(y, {
258
+ _((r(), V(C, {
259
259
  type: "primary",
260
- onClick: A
260
+ onClick: B
261
261
  }, {
262
262
  default: o(() => [
263
- c(n(s.$t("common.add")), 1)
263
+ m(s(n.$t("common.add")), 1)
264
264
  ]),
265
265
  _: 1
266
266
  })), [
267
267
  [b, ["goods:goods_spu:add"]]
268
268
  ]),
269
- w((m(), V(y, {
269
+ _((r(), V(C, {
270
270
  type: "primary",
271
271
  onClick: l[7] || (l[7] = (e) => a(d).deleteRecords())
272
272
  }, {
273
273
  default: o(() => [
274
- c(n(s.$t("common.batchDelete")), 1)
274
+ m(s(n.$t("common.batchDelete")), 1)
275
275
  ]),
276
276
  _: 1
277
277
  })), [
@@ -285,9 +285,9 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
285
285
  class: "container-float"
286
286
  }, {
287
287
  default: o(() => [
288
- t(K, {
289
- modelValue: a(h),
290
- "onUpdate:modelValue": l[8] || (l[8] = (e) => U(h) ? h.value = e : h = e),
288
+ t(M, {
289
+ modelValue: a(w),
290
+ "onUpdate:modelValue": l[8] || (l[8] = (e) => P(w) ? w.value = e : w = e),
291
291
  "label-name": "goods/goods-spu"
292
292
  }, null, 8, ["modelValue"])
293
293
  ]),
@@ -298,40 +298,40 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
298
298
  })
299
299
  ]),
300
300
  footer: o(() => [
301
- a(_) > 0 ? (m(), V(G, {
301
+ a(y) > 0 ? (r(), V(J, {
302
302
  key: 0,
303
- total: a(_),
304
- "onUpdate:total": l[9] || (l[9] = (e) => U(_) ? _.value = e : null),
305
- "current-page": u.value.curPage,
306
- "onUpdate:currentPage": l[10] || (l[10] = (e) => u.value.curPage = e),
307
- "page-size": u.value.pageSize,
308
- "onUpdate:pageSize": l[11] || (l[11] = (e) => u.value.pageSize = e),
303
+ total: a(y),
304
+ "onUpdate:total": l[9] || (l[9] = (e) => P(y) ? y.value = e : null),
305
+ "current-page": p.value.curPage,
306
+ "onUpdate:currentPage": l[10] || (l[10] = (e) => p.value.curPage = e),
307
+ "page-size": p.value.pageSize,
308
+ "onUpdate:pageSize": l[11] || (l[11] = (e) => p.value.pageSize = e),
309
309
  onPagination: l[12] || (l[12] = (e) => a(d).getList())
310
- }, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
310
+ }, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
311
311
  ]),
312
312
  default: o(() => [
313
- t(O, {
313
+ t(G, {
314
314
  ref_key: "multipleTableRef",
315
- ref: z,
315
+ ref: j,
316
316
  "row-key": "spuId",
317
- "list-loading": a(E),
318
- data: a(q),
319
- "table-label": a(h),
317
+ "list-loading": a(q),
318
+ data: a(A),
319
+ "table-label": a(w),
320
320
  onSelectionChange: H,
321
321
  onSortChange: Q
322
322
  }, {
323
323
  shopId: o((e) => [
324
- r("span", null, n(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
324
+ i("span", null, s(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
325
325
  ]),
326
326
  categoryId: o((e) => [
327
- r("span", null, n(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
327
+ i("span", null, s(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
328
328
  ]),
329
329
  picUrls: o((e) => [
330
- r("span", null, [
331
- t(M, {
332
- src: a(P).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
330
+ i("span", null, [
331
+ t(O, {
332
+ src: a(D).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
333
333
  "preview-src-list": [
334
- a(P).imageUrl(e.data.row.picUrls.split(",")[0])
334
+ a(D).imageUrl(e.data.row.picUrls.split(",")[0])
335
335
  ],
336
336
  "preview-teleported": "",
337
337
  "hide-on-click-modal": "",
@@ -340,61 +340,67 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
340
340
  ])
341
341
  ]),
342
342
  shelf: o((e) => [
343
- r("span", null, [
344
- t($, {
343
+ i("span", null, [
344
+ t(T, {
345
345
  modelValue: e.data.row.shelf,
346
- "onUpdate:modelValue": (i) => e.data.row.shelf = i,
347
- onClick: (i) => a(d).enableRecord(e.data.row, e.data.row.shelf)
346
+ "onUpdate:modelValue": (c) => e.data.row.shelf = c,
347
+ onClick: (c) => a(d).enableRecord(e.data.row, e.data.row.shelf)
348
348
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
349
349
  ])
350
350
  ]),
351
351
  minPrice: o((e) => [
352
- r("span", null, n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
352
+ i("span", null, [
353
+ e.data.row.minPrice === e.data.row.maxPrice ? (r(), h(U, { key: 0 }, [
354
+ m(s(e.data.row.minPrice), 1)
355
+ ], 64)) : (r(), h(U, { key: 1 }, [
356
+ m(s(e.data.row.minPrice) + " ~ " + s(e.data.row.maxPrice), 1)
357
+ ], 64))
358
+ ])
353
359
  ]),
354
360
  specType: o((e) => [
355
- r("span", null, n(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
361
+ i("span", null, s(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
356
362
  ]),
357
363
  approvalStatus: o((e) => [
358
- r("span", null, n(a(g).approvalStatusEnum.getEnumValue(
364
+ i("span", null, s(a(g).approvalStatusEnum.getEnumValue(
359
365
  e.data.row.approvalStatus
360
366
  )), 1)
361
367
  ]),
362
368
  updateTime: o((e) => [
363
- r("span", null, n(a(R).$moment.formatDate(
369
+ i("span", null, s(a(z).$moment.formatDate(
364
370
  e.data.row.updateTime,
365
371
  "YYYY-MM-DD HH:mm:ss"
366
372
  )), 1)
367
373
  ]),
368
374
  enable: o((e) => [
369
- t($, {
375
+ t(T, {
370
376
  modelValue: e.data.row.enable,
371
- "onUpdate:modelValue": (i) => e.data.row.enable = i,
372
- onChange: (i) => a(d).enableRecord(e.data.row, e.data.row.enable)
377
+ "onUpdate:modelValue": (c) => e.data.row.enable = c,
378
+ onChange: (c) => a(d).enableRecord(e.data.row, e.data.row.enable)
373
379
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
374
380
  ]),
375
381
  operation: o((e) => [
376
- w((m(), C("span", {
382
+ _((r(), h("span", {
377
383
  class: "el-button-color",
378
- onClick: (i) => B(e.data.row)
384
+ onClick: (c) => L(e.data.row)
379
385
  }, [
380
- c(n(s.$t("common.edit")), 1)
381
- ], 8, ne)), [
386
+ m(s(n.$t("common.edit")), 1)
387
+ ], 8, ue)), [
382
388
  [b, ["goods:goods_spu:update"]]
383
389
  ]),
384
- w((m(), C("span", {
390
+ _((r(), h("span", {
385
391
  class: "el-button-color dropdown-left",
386
- onClick: (i) => a(d).deleteRecord(e.data.row)
392
+ onClick: (c) => a(d).deleteRecord(e.data.row)
387
393
  }, [
388
- c(n(s.$t("common.delete")), 1)
394
+ m(s(n.$t("common.delete")), 1)
389
395
  ], 8, pe)), [
390
396
  [b, ["goods:goods_spu:delete"]]
391
397
  ]),
392
- w((m(), C("span", {
398
+ _((r(), h("span", {
393
399
  class: "el-button-color dropdown-left",
394
- onClick: (i) => L(e.data.row)
400
+ onClick: (c) => F(e.data.row)
395
401
  }, [
396
- c(n(s.$t("common.view")), 1)
397
- ], 8, ue)), [
402
+ m(s(n.$t("common.view")), 1)
403
+ ], 8, de)), [
398
404
  [b, ["goods:goods_spu:view"]]
399
405
  ])
400
406
  ]),
@@ -408,5 +414,5 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
408
414
  }
409
415
  });
410
416
  export {
411
- he as _
417
+ we as _
412
418
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs";
1
+ import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
2
2
  export {
3
3
  f as default
4
4
  };