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,301 +0,0 @@
1
- import { defineComponent as T, ref as h, resolveComponent as c, openBlock as m, createElementBlock as g, createVNode as o, withCtx as e, createTextVNode as u, toDisplayString as l, createElementVNode as s, unref as d, Fragment as w, renderList as y, createBlock as S } from "vue";
2
- import { fileApi as v, routerUtil as E } from "jmash-core";
3
- import { useRouter as A, useRoute as H } from "vue-router";
4
- import { D as p } from "./index-C9f6Lybt.mjs";
5
- import { g as q } from "./index-fu3gxdt_.mjs";
6
- import { g as j } from "./index-BHmGYIuc.mjs";
7
- const z = { class: "app-container" }, M = { class: "cell-item" }, O = { class: "cell-item" }, R = { class: "cell-item" }, F = { class: "cell-item" }, G = { class: "cell-item" }, J = { class: "cell-item" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = ["innerHTML"], ne = /* @__PURE__ */ T({
8
- __name: "info",
9
- setup(ee) {
10
- const D = A(), f = H(), i = h({}), k = h([]), I = h({
11
- tableBodyList: [],
12
- tableHeaderList: []
13
- });
14
- p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(), f.query.spuId && q.findById({ spuId: f.query.spuId }).then(({ data: a }) => {
15
- var _;
16
- i.value = Object.assign(i, a), k.value = (_ = a.picUrls) == null ? void 0 : _.split(","), j.findById({ spuId: f.query.spuId }).then(({ data: b }) => {
17
- i.value.ensureIds = b.ensures;
18
- });
19
- });
20
- function V() {
21
- E.closeTagView(f.fullPath, D, !1);
22
- }
23
- return (a, _) => {
24
- const b = c("el-button"), n = c("el-descriptions-item"), $ = c("el-image"), B = c("el-tag"), C = c("el-descriptions"), r = c("el-table-column"), U = c("el-table"), P = c("el-card");
25
- return m(), g("div", z, [
26
- o(P, { shadow: "never" }, {
27
- header: e(() => [
28
- o(b, {
29
- type: "primary",
30
- onClick: V
31
- }, {
32
- default: e(() => [
33
- u(l(a.$t("common.back")), 1)
34
- ]),
35
- _: 1
36
- })
37
- ]),
38
- default: e(() => [
39
- _[0] || (_[0] = s("div", { class: "title-content" }, "基本信息", -1)),
40
- o(C, {
41
- class: "margin-top",
42
- column: 2,
43
- border: ""
44
- }, {
45
- default: e(() => [
46
- o(n, null, {
47
- label: e(() => [
48
- s("div", M, l(a.$t("goodsSpu.shopId")), 1)
49
- ]),
50
- default: e(() => [
51
- u(" " + l(d(p).shopInfoBizDict.getValue(i.value.shopId)), 1)
52
- ]),
53
- _: 1
54
- }),
55
- o(n, null, {
56
- label: e(() => [
57
- s("div", O, l(a.$t("goodsSpu.spuName")), 1)
58
- ]),
59
- default: e(() => [
60
- u(" " + l(i.value.spuName), 1)
61
- ]),
62
- _: 1
63
- }),
64
- o(n, null, {
65
- label: e(() => [
66
- s("div", R, l(a.$t("goodsSpu.categoryId")), 1)
67
- ]),
68
- default: e(() => [
69
- u(" " + l(d(p).goodsCategoryDict.getValue(i.value.categoryId)), 1)
70
- ]),
71
- _: 1
72
- }),
73
- o(n, null, {
74
- label: e(() => [
75
- s("div", F, l(a.$t("goodsSpu.spuCode")), 1)
76
- ]),
77
- default: e(() => [
78
- u(" " + l(i.value.spuCode), 1)
79
- ]),
80
- _: 1
81
- }),
82
- o(n, null, {
83
- label: e(() => [
84
- s("div", G, l(a.$t("goodsSpu.freightType")), 1)
85
- ]),
86
- default: e(() => [
87
- u(" " + l(d(p).freightTypeEnum.getEnumValue(i.value.freightType)), 1)
88
- ]),
89
- _: 1
90
- }),
91
- o(n, null, {
92
- label: e(() => [
93
- s("div", J, l(a.$t("goodsSpu.freightAmount")), 1)
94
- ]),
95
- default: e(() => [
96
- u(" " + l(i.value.freightAmount), 1)
97
- ]),
98
- _: 1
99
- }),
100
- o(n, null, {
101
- label: e(() => [
102
- s("div", K, l(a.$t("goodsSpu.picUrls")), 1)
103
- ]),
104
- default: e(() => [
105
- (m(!0), g(w, null, y(k.value, (t) => (m(), S($, {
106
- src: d(v).imageUrl(
107
- t,
108
- 80,
109
- 80
110
- ),
111
- "preview-src-list": [
112
- d(v).imageUrl(t)
113
- ],
114
- "preview-teleported": "",
115
- "hide-on-click-modal": "",
116
- fit: "contain"
117
- }, null, 8, ["src", "preview-src-list"]))), 256))
118
- ]),
119
- _: 1
120
- }),
121
- o(n, null, {
122
- label: e(() => [
123
- s("div", Q, l(a.$t("goodsSpu.shelf")), 1)
124
- ]),
125
- default: e(() => {
126
- var t;
127
- return [
128
- u(" " + l(d(p).shelfDict.getValue((t = i.value.shelf) == null ? void 0 : t.toString())), 1)
129
- ];
130
- }),
131
- _: 1
132
- }),
133
- o(n, null, {
134
- label: e(() => [
135
- s("div", W, l(a.$t("goodsSpu.saleNum")), 1)
136
- ]),
137
- default: e(() => [
138
- u(" " + l(i.value.saleNum), 1)
139
- ]),
140
- _: 1
141
- }),
142
- o(n, null, {
143
- label: e(() => [
144
- s("div", X, l(a.$t("goodsSpu.sellPoint")), 1)
145
- ]),
146
- default: e(() => [
147
- u(" " + l(i.value.sellPoint), 1)
148
- ]),
149
- _: 1
150
- }),
151
- o(n, null, {
152
- label: e(() => [
153
- s("div", Y, l(a.$t("goodsSpu.ensureIds")), 1)
154
- ]),
155
- default: e(() => [
156
- (m(!0), g(w, null, y(i.value.ensureIds, (t) => (m(), S(B, { type: "info" }, {
157
- default: e(() => [
158
- u(l(d(p).goodsEnsureDict.getDictValue(t)), 1)
159
- ]),
160
- _: 2
161
- }, 1024))), 256))
162
- ]),
163
- _: 1
164
- }),
165
- o(n, null, {
166
- label: e(() => [
167
- s("div", Z, l(a.$t("goodsSpu.description")), 1)
168
- ]),
169
- default: e(() => [
170
- s("div", {
171
- innerHTML: i.value.description
172
- }, null, 8, x)
173
- ]),
174
- _: 1
175
- })
176
- ]),
177
- _: 1
178
- }),
179
- _[1] || (_[1] = s("div", { class: "title-content" }, "商品规格", -1)),
180
- o(U, {
181
- data: I.value.tableBodyList,
182
- class: "w-full top-dis"
183
- }, {
184
- default: e(() => [
185
- o(r, { type: "index" }),
186
- (m(!0), g(w, null, y(I.value.tableHeaderList, (t) => (m(), S(r, {
187
- label: t.label,
188
- prop: t.prop
189
- }, {
190
- default: e(({ row: L, column: N }) => [
191
- u(l(L[N.property]), 1)
192
- ]),
193
- _: 2
194
- }, 1032, ["label", "prop"]))), 256)),
195
- o(r, {
196
- prop: "picUrl",
197
- label: "图片"
198
- }, {
199
- default: e((t) => [
200
- o($, {
201
- src: d(v).imageUrl(
202
- t.row.picUrl,
203
- 80,
204
- 80
205
- ),
206
- "preview-src-list": [
207
- d(v).imageUrl(t.row.picUrl)
208
- ],
209
- "preview-teleported": "",
210
- "hide-on-click-modal": "",
211
- fit: "contain"
212
- }, null, 8, ["src", "preview-src-list"])
213
- ]),
214
- _: 1
215
- }),
216
- o(r, {
217
- prop: "salePrice",
218
- label: "销售价(元)"
219
- }, {
220
- default: e((t) => [
221
- s("span", null, l(t.row.salePrice), 1)
222
- ]),
223
- _: 1
224
- }),
225
- o(r, {
226
- prop: "marketPrice",
227
- label: "市场价(元)"
228
- }, {
229
- default: e((t) => [
230
- s("span", null, l(t.row.marketPrice), 1)
231
- ]),
232
- _: 1
233
- }),
234
- o(r, {
235
- prop: "costPrice",
236
- label: "成本价(元)"
237
- }, {
238
- default: e((t) => [
239
- s("span", null, l(t.row.costPrice), 1)
240
- ]),
241
- _: 1
242
- }),
243
- o(r, {
244
- prop: "weight",
245
- label: "重量(kg)"
246
- }, {
247
- default: e((t) => [
248
- s("span", null, l(t.row.weight), 1)
249
- ]),
250
- _: 1
251
- }),
252
- o(r, {
253
- prop: "volume",
254
- label: "体积(m³)"
255
- }, {
256
- default: e((t) => [
257
- s("span", null, l(t.row.volume), 1)
258
- ]),
259
- _: 1
260
- }),
261
- o(r, {
262
- prop: "stock",
263
- label: "库存"
264
- }, {
265
- default: e((t) => [
266
- s("span", null, l(t.row.stock), 1)
267
- ]),
268
- _: 1
269
- }),
270
- o(r, {
271
- prop: "skuCode",
272
- label: "sku编码"
273
- }, {
274
- default: e((t) => [
275
- s("span", null, l(t.row.skuCode), 1)
276
- ]),
277
- _: 1
278
- }),
279
- o(r, {
280
- prop: "status",
281
- label: "是否上架",
282
- width: "80"
283
- }, {
284
- default: e((t) => [
285
- s("span", null, l(d(p).shelfDict.getValue(t.row.status.toString())), 1)
286
- ]),
287
- _: 1
288
- })
289
- ]),
290
- _: 1
291
- }, 8, ["data"])
292
- ]),
293
- _: 1
294
- })
295
- ]);
296
- };
297
- }
298
- });
299
- export {
300
- ne as default
301
- };