xyvcard-goods 0.0.1 → 0.0.2

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 (31) hide show
  1. package/dist/{approveFailIndex-gl8MBbK6.mjs → approveFailIndex-BS-H7i3Y.mjs} +1 -1
  2. package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs} +111 -94
  3. package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-DHQPvPdG.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs} +142 -125
  5. package/dist/{edit-DpIovEhA.mjs → edit-DOqDV4qb.mjs} +3792 -3789
  6. package/dist/{index-C9KO9AZw.mjs → el-message-D15RmjW3.mjs} +368 -367
  7. package/dist/{index-BupW0ufK.mjs → index-CIN1Wvug.mjs} +102 -75
  8. package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
  9. package/dist/index.mjs +519 -593
  10. package/dist/info-MqipS9Ok.mjs +311 -0
  11. package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-D2vlM6ww.mjs} +1 -1
  12. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs +428 -0
  13. package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CEgDzOX1.mjs} +1 -1
  14. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs} +174 -160
  15. package/dist/skuForm-BMRF5whq.mjs +419 -0
  16. package/dist/skuTable-Ddo1obnO.mjs +585 -0
  17. package/dist/style.css +1 -1
  18. package/dts/api/goods-spu/types.d.ts +13 -6
  19. package/dts/constant.d.ts +4 -0
  20. package/dts/lang/goods/en.d.ts +1 -68
  21. package/dts/lang/goods/zh-cn.d.ts +0 -44
  22. package/dts/utils/sku.d.ts +19 -0
  23. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  24. package/dts/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
  25. package/package.json +2 -2
  26. package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +0 -544
  27. package/dist/approvedIndex-Cn6g11xv.mjs +0 -4
  28. package/dist/info-C6VRixBH.mjs +0 -301
  29. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +0 -415
  30. package/dist/sku-form-BAi4HkUM.mjs +0 -463
  31. package/dist/sku-table-CRrisvJ1.mjs +0 -410
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs";
1
+ import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,19 +1,25 @@
1
- import { defineComponent as X, getCurrentInstance as Z, ref as V, reactive as x, resolveComponent as u, resolveDirective as ee, openBlock as m, createElementBlock as C, createElementVNode as r, createVNode as t, withCtx as o, unref as a, withKeys as U, createTextVNode as c, toDisplayString as n, withDirectives as v, createBlock as I, isRef as D, createCommentVNode as oe } from "vue";
2
- import { useRouter as le } from "vue-router";
3
- import { useTableHooks as te, fileApi as P } from "jmash-core";
4
- import { useI18n as ae } from "vue-i18n";
5
- import { g as se } from "./index-fu3gxdt_.mjs";
6
- import { C as ne, D as g } from "./index-C9f6Lybt.mjs";
7
- /* empty css */
8
- const pe = { class: "app-container" }, ue = { class: "search-container" }, de = ["onClick"], re = ["onClick"], ie = ["onClick"], _e = /* @__PURE__ */ X({
9
- __name: "approvedIndex",
10
- setup(me) {
11
- const { t: S } = ae(), R = le(), { proxy: z } = Z(), d = V({
1
+ import { defineComponent as W, getCurrentInstance as X, ref as k, 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 N, 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 D } from "jmash-core";
4
+ import { useI18n as le } from "vue-i18n";
5
+ import { g as te } from "./index-fu3gxdt_.mjs";
6
+ import { C as ae, D as g } from "./index-CZD7OAWo.mjs";
7
+ const se = { class: "app-container" }, ne = { class: "search-container" }, pe = ["onClick"], ue = ["onClick"], de = ["onClick"], be = /* @__PURE__ */ W({
8
+ __name: "approveFailIndex",
9
+ setup(re) {
10
+ const { t: P } = le(), S = ee(), { proxy: R } = X(), u = k({
12
11
  curPage: 1,
13
12
  pageSize: 10,
14
- approvalStatus: ne.approval_pass
15
- }), { tableHooks: p, multipleTableRef: j, queryFormRef: E, listLoading: B, tableData: q, total: w } = te(S, se, d);
16
- let b = V([
13
+ approvalStatus: ae.approval_not_pass
14
+ }), {
15
+ tableHooks: d,
16
+ multipleTableRef: z,
17
+ queryFormRef: j,
18
+ listLoading: E,
19
+ tableData: q,
20
+ total: _
21
+ } = oe(P, te, u);
22
+ let h = k([
17
23
  {
18
24
  label: "goodsSpu.shopId",
19
25
  prop: "shopId",
@@ -112,46 +118,50 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
112
118
  }
113
119
  ]);
114
120
  g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
115
- const T = V({
116
- title: S("common.edit"),
117
- visible: !1
118
- });
119
- let H = x({});
120
- function K() {
121
- R.push({ path: "/rawgoods/goods-spu/edit" });
121
+ function B() {
122
+ S.push({ path: "/rawgoods/goods-spu/edit" });
123
+ }
124
+ function H(s) {
125
+ S.push({
126
+ path: "/rawgoods/goods-spu/edit",
127
+ query: { spuId: s.spuId }
128
+ });
122
129
  }
123
130
  function L(s) {
124
- H.spuId = s.spuId, T.value.title = S("common.edit"), T.value.visible = !0;
131
+ S.push({
132
+ path: "/rawgoods/goods-spu/info",
133
+ query: { spuId: s.spuId }
134
+ });
125
135
  }
126
136
  function Q(s) {
127
- p.selectionRows.value = s;
137
+ d.selectionRows.value = s;
128
138
  }
129
139
  function Y(s) {
130
- p.handleSort(s.prop, s.order);
140
+ d.handleSort(s.prop, s.order);
131
141
  }
132
- return p.getList(), (s, l) => {
133
- const A = u("jmash-select"), _ = u("el-form-item"), f = u("el-col"), $ = u("el-input"), y = u("el-button"), k = u("el-row"), F = u("el-form"), M = u("jmash-column-select"), G = u("el-image"), N = u("el-switch"), J = u("jmash-table"), O = u("jmash-pagination"), W = u("el-card"), h = ee("hasPerm");
134
- return m(), C("div", pe, [
135
- r("div", ue, [
142
+ return d.getList(), (s, l) => {
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, [
136
146
  t(F, {
137
147
  ref_key: "queryFormRef",
138
- ref: E,
139
- model: d.value,
148
+ ref: j,
149
+ model: u.value,
140
150
  inline: !0
141
151
  }, {
142
152
  default: o(() => [
143
- t(k, null, {
153
+ t(T, null, {
144
154
  default: o(() => [
145
155
  t(f, { span: 6 }, {
146
156
  default: o(() => [
147
- t(_, {
157
+ t(v, {
148
158
  label: s.$t("goodsSpu.shopId"),
149
159
  prop: "shopId"
150
160
  }, {
151
161
  default: o(() => [
152
162
  t(A, {
153
- modelValue: d.value.shopId,
154
- "onUpdate:modelValue": l[0] || (l[0] = (e) => d.value.shopId = e),
163
+ modelValue: u.value.shopId,
164
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => u.value.shopId = e),
155
165
  placeholder: s.$t("goodsSpu.shopIdRequired"),
156
166
  data: a(g).shopInfoBizDict.values,
157
167
  filterable: ""
@@ -164,16 +174,16 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
164
174
  }),
165
175
  t(f, { span: 6 }, {
166
176
  default: o(() => [
167
- t(_, {
177
+ t(v, {
168
178
  label: s.$t("goodsSpu.spuCode"),
169
179
  prop: "spuCode"
170
180
  }, {
171
181
  default: o(() => [
172
- t($, {
173
- modelValue: d.value.spuCode,
174
- "onUpdate:modelValue": l[1] || (l[1] = (e) => d.value.spuCode = e),
182
+ t(I, {
183
+ modelValue: u.value.spuCode,
184
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => u.value.spuCode = e),
175
185
  placeholder: s.$t("goodsSpu.spuCode"),
176
- onKeyup: l[2] || (l[2] = U((e) => a(p).handleQuery(), ["enter"])),
186
+ onKeyup: l[2] || (l[2] = N((e) => a(d).handleQuery(), ["enter"])),
177
187
  class: "!w-[203px]"
178
188
  }, null, 8, ["modelValue", "placeholder"])
179
189
  ]),
@@ -184,16 +194,16 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
184
194
  }),
185
195
  t(f, { span: 6 }, {
186
196
  default: o(() => [
187
- t(_, {
197
+ t(v, {
188
198
  label: s.$t("goodsSpu.spuName"),
189
199
  prop: "spuName"
190
200
  }, {
191
201
  default: o(() => [
192
- t($, {
193
- modelValue: d.value.spuName,
194
- "onUpdate:modelValue": l[3] || (l[3] = (e) => d.value.spuName = e),
202
+ t(I, {
203
+ modelValue: u.value.spuName,
204
+ "onUpdate:modelValue": l[3] || (l[3] = (e) => u.value.spuName = e),
195
205
  placeholder: s.$t("goodsSpu.spuName"),
196
- onKeyup: l[4] || (l[4] = U((e) => a(p).handleQuery(), ["enter"])),
206
+ onKeyup: l[4] || (l[4] = N((e) => a(d).handleQuery(), ["enter"])),
197
207
  class: "!w-[203px]"
198
208
  }, null, 8, ["modelValue", "placeholder"])
199
209
  ]),
@@ -204,11 +214,11 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
204
214
  }),
205
215
  t(f, { span: 6 }, {
206
216
  default: o(() => [
207
- t(_, { class: "search-btn" }, {
217
+ t(v, { class: "search-btn" }, {
208
218
  default: o(() => [
209
219
  t(y, {
210
220
  type: "primary",
211
- onClick: l[5] || (l[5] = (e) => a(p).handleQuery())
221
+ onClick: l[5] || (l[5] = (e) => a(d).handleQuery())
212
222
  }, {
213
223
  default: o(() => [
214
224
  c(n(s.$t("common.search")), 1)
@@ -216,7 +226,7 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
216
226
  _: 1
217
227
  }),
218
228
  t(y, {
219
- onClick: l[6] || (l[6] = (e) => a(p).resetQuery())
229
+ onClick: l[6] || (l[6] = (e) => a(d).resetQuery())
220
230
  }, {
221
231
  default: o(() => [
222
232
  c(n(s.$t("common.reset")), 1)
@@ -236,36 +246,36 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
236
246
  _: 1
237
247
  }, 8, ["model"])
238
248
  ]),
239
- t(W, {
249
+ t(O, {
240
250
  shadow: "never",
241
251
  class: "table-container"
242
252
  }, {
243
253
  header: o(() => [
244
- t(k, null, {
254
+ t(T, null, {
245
255
  default: o(() => [
246
256
  t(f, { span: 17 }, {
247
257
  default: o(() => [
248
- v((m(), I(y, {
258
+ w((m(), V(y, {
249
259
  type: "primary",
250
- onClick: K
260
+ onClick: B
251
261
  }, {
252
262
  default: o(() => [
253
263
  c(n(s.$t("common.add")), 1)
254
264
  ]),
255
265
  _: 1
256
266
  })), [
257
- [h, ["goods:goods_spu:add"]]
267
+ [b, ["goods:goods_spu:add"]]
258
268
  ]),
259
- v((m(), I(y, {
269
+ w((m(), V(y, {
260
270
  type: "primary",
261
- onClick: l[7] || (l[7] = (e) => a(p).deleteRecords())
271
+ onClick: l[7] || (l[7] = (e) => a(d).deleteRecords())
262
272
  }, {
263
273
  default: o(() => [
264
274
  c(n(s.$t("common.batchDelete")), 1)
265
275
  ]),
266
276
  _: 1
267
277
  })), [
268
- [h, ["goods:goods_spu:delete"]]
278
+ [b, ["goods:goods_spu:delete"]]
269
279
  ])
270
280
  ]),
271
281
  _: 1
@@ -275,9 +285,9 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
275
285
  class: "container-float"
276
286
  }, {
277
287
  default: o(() => [
278
- t(M, {
279
- modelValue: a(b),
280
- "onUpdate:modelValue": l[8] || (l[8] = (e) => D(b) ? b.value = e : b = e),
288
+ t(K, {
289
+ modelValue: a(h),
290
+ "onUpdate:modelValue": l[8] || (l[8] = (e) => U(h) ? h.value = e : h = e),
281
291
  "label-name": "goods/goods-spu"
282
292
  }, null, 8, ["modelValue"])
283
293
  ]),
@@ -288,25 +298,25 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
288
298
  })
289
299
  ]),
290
300
  footer: o(() => [
291
- a(w) > 0 ? (m(), I(O, {
301
+ a(_) > 0 ? (m(), V(J, {
292
302
  key: 0,
293
- total: a(w),
294
- "onUpdate:total": l[9] || (l[9] = (e) => D(w) ? w.value = e : null),
295
- "current-page": d.value.curPage,
296
- "onUpdate:currentPage": l[10] || (l[10] = (e) => d.value.curPage = e),
297
- "page-size": d.value.pageSize,
298
- "onUpdate:pageSize": l[11] || (l[11] = (e) => d.value.pageSize = e),
299
- onPagination: l[12] || (l[12] = (e) => a(p).getList())
300
- }, null, 8, ["total", "current-page", "page-size"])) : oe("", !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),
309
+ onPagination: l[12] || (l[12] = (e) => a(d).getList())
310
+ }, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
301
311
  ]),
302
312
  default: o(() => [
303
- t(J, {
313
+ t(G, {
304
314
  ref_key: "multipleTableRef",
305
- ref: j,
315
+ ref: z,
306
316
  "row-key": "spuId",
307
- "list-loading": a(B),
317
+ "list-loading": a(E),
308
318
  data: a(q),
309
- "table-label": a(b),
319
+ "table-label": a(h),
310
320
  onSelectionChange: Q,
311
321
  onSortChange: Y
312
322
  }, {
@@ -318,9 +328,11 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
318
328
  ]),
319
329
  picUrls: o((e) => [
320
330
  r("span", null, [
321
- t(G, {
322
- src: a(P).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
323
- "preview-src-list": [a(P).imageUrl(e.data.row.picUrls.split(",")[0])],
331
+ t(M, {
332
+ src: a(D).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
333
+ "preview-src-list": [
334
+ a(D).imageUrl(e.data.row.picUrls.split(",")[0])
335
+ ],
324
336
  "preview-teleported": "",
325
337
  "hide-on-click-modal": "",
326
338
  fit: "contain"
@@ -329,10 +341,10 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
329
341
  ]),
330
342
  shelf: o((e) => [
331
343
  r("span", null, [
332
- t(N, {
344
+ t($, {
333
345
  modelValue: e.data.row.shelf,
334
346
  "onUpdate:modelValue": (i) => e.data.row.shelf = i,
335
- onClick: (i) => a(p).enableRecord(e.data.row, e.data.row.shelf)
347
+ onClick: (i) => a(d).enableRecord(e.data.row, e.data.row.shelf)
336
348
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
337
349
  ])
338
350
  ]),
@@ -343,42 +355,47 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
343
355
  r("span", null, n(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
344
356
  ]),
345
357
  approvalStatus: o((e) => [
346
- r("span", null, n(a(g).approvalStatusEnum.getEnumValue(e.data.row.approvalStatus)), 1)
358
+ r("span", null, n(a(g).approvalStatusEnum.getEnumValue(
359
+ e.data.row.approvalStatus
360
+ )), 1)
347
361
  ]),
348
362
  updateTime: o((e) => [
349
- r("span", null, n(a(z).$moment.formatDate(e.data.row.updateTime, "YYYY-MM-DD HH:mm:ss")), 1)
363
+ r("span", null, n(a(R).$moment.formatDate(
364
+ e.data.row.updateTime,
365
+ "YYYY-MM-DD HH:mm:ss"
366
+ )), 1)
350
367
  ]),
351
368
  enable: o((e) => [
352
- t(N, {
369
+ t($, {
353
370
  modelValue: e.data.row.enable,
354
371
  "onUpdate:modelValue": (i) => e.data.row.enable = i,
355
- onChange: (i) => a(p).enableRecord(e.data.row, e.data.row.enable)
372
+ onChange: (i) => a(d).enableRecord(e.data.row, e.data.row.enable)
356
373
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
357
374
  ]),
358
375
  operation: o((e) => [
359
- v((m(), C("span", {
376
+ w((m(), C("span", {
360
377
  class: "el-button-color",
361
- onClick: (i) => L(e.data.row)
378
+ onClick: (i) => H(e.data.row)
362
379
  }, [
363
380
  c(n(s.$t("common.edit")), 1)
364
- ], 8, de)), [
365
- [h, ["goods:goods_spu:update"]]
381
+ ], 8, pe)), [
382
+ [b, ["goods:goods_spu:update"]]
366
383
  ]),
367
- v((m(), C("span", {
384
+ w((m(), C("span", {
368
385
  class: "el-button-color dropdown-left",
369
- onClick: (i) => a(p).deleteRecord(e.data.row)
386
+ onClick: (i) => a(d).deleteRecord(e.data.row)
370
387
  }, [
371
388
  c(n(s.$t("common.delete")), 1)
372
- ], 8, re)), [
373
- [h, ["goods:goods_spu:delete"]]
389
+ ], 8, ue)), [
390
+ [b, ["goods:goods_spu:delete"]]
374
391
  ]),
375
- v((m(), C("span", {
392
+ w((m(), C("span", {
376
393
  class: "el-button-color dropdown-left",
377
- onClick: (i) => a(p).deleteRecord(e.data.row)
394
+ onClick: (i) => L(e.data.row)
378
395
  }, [
379
- c(n(s.$t("common.delete")), 1)
380
- ], 8, ie)), [
381
- [h, ["goods:goods_spu:delete"]]
396
+ c(n(s.$t("common.view")), 1)
397
+ ], 8, de)), [
398
+ [b, ["goods:goods_spu:view"]]
382
399
  ])
383
400
  ]),
384
401
  _: 1
@@ -391,5 +408,5 @@ const pe = { class: "app-container" }, ue = { class: "search-container" }, de =
391
408
  }
392
409
  });
393
410
  export {
394
- _e as _
411
+ be as _
395
412
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs";
1
+ import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs";
2
2
  export {
3
3
  f as default
4
4
  };