xyvcard-goods 0.0.12 → 0.0.13

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.
@@ -0,0 +1,23 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ shelf: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ approvalStatus: {
7
+ type: StringConstructor;
8
+ default: () => string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
11
+ shelf: {
12
+ type: StringConstructor;
13
+ default: () => string;
14
+ };
15
+ approvalStatus: {
16
+ type: StringConstructor;
17
+ default: () => string;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ approvalStatus: string;
21
+ shelf: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -18,18 +18,15 @@
18
18
  "vue": "^3.5.11",
19
19
  "vue-i18n": "^9.14.1",
20
20
  "vue-router": "^4.4.5",
21
- "xyvcard-emall": "^0.0.13",
21
+ "xyvcard-emall": "^0.0.16",
22
22
  "xyvcard-shop": "^0.0.23",
23
23
  "xyvcard-cms": "0.0.36"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^9.16.0",
27
- "@rushstack/eslint-patch": "^1.3.3",
28
27
  "@tsconfig/node20": "^20.1.2",
29
28
  "@types/node": "^20.11.10",
30
29
  "@vitejs/plugin-vue": "^5.0.3",
31
- "@vue/eslint-config-prettier": "^8.0.0",
32
- "@vue/eslint-config-typescript": "^12.0.0",
33
30
  "@vue/tsconfig": "^0.5.1",
34
31
  "eslint": "^9.16.0",
35
32
  "eslint-plugin-vue": "^9.32.0",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,418 +0,0 @@
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
- __name: "approveFailIndex",
9
- setup(re) {
10
- const { t: R } = te(), S = oe(), { proxy: z } = Z(), p = $({
11
- curPage: 1,
12
- pageSize: 10,
13
- approvalStatus: ne.APPROVAL_NOT_PASS
14
- }), {
15
- tableHooks: d,
16
- multipleTableRef: j,
17
- queryFormRef: E,
18
- listLoading: q,
19
- tableData: A,
20
- total: y
21
- } = le(R, ae, p);
22
- let w = $([
23
- {
24
- label: "goodsSpu.shopId",
25
- prop: "shopId",
26
- slotName: "shopId",
27
- columnType: "slot",
28
- width: "250",
29
- isColumn: !0
30
- },
31
- {
32
- label: "goodsSpu.spuName",
33
- prop: "spuName",
34
- width: "200",
35
- isColumn: !0
36
- },
37
- {
38
- label: "goodsSpu.picUrls",
39
- prop: "picUrls",
40
- slotName: "picUrls",
41
- columnType: "slot",
42
- width: "100",
43
- isColumn: !0
44
- },
45
- {
46
- label: "goodsSpu.categoryId",
47
- prop: "categoryId",
48
- slotName: "categoryId",
49
- columnType: "slot",
50
- width: "150",
51
- isColumn: !0
52
- },
53
- {
54
- label: "goodsSpu.price",
55
- prop: "minPrice",
56
- width: "120",
57
- sortable: "custom",
58
- slotName: "minPrice",
59
- columnType: "slot",
60
- isColumn: !0
61
- },
62
- {
63
- label: "goodsSpu.spuCode",
64
- prop: "spuCode",
65
- width: "120",
66
- sortable: "custom",
67
- isColumn: !0
68
- },
69
- {
70
- label: "goodsSpu.saleNum",
71
- prop: "saleNum",
72
- width: "120",
73
- sortable: "custom",
74
- isColumn: !0
75
- },
76
- {
77
- label: "goodsSpu.specType",
78
- prop: "specType",
79
- width: "120",
80
- slotName: "specType",
81
- columnType: "slot",
82
- sortable: "custom",
83
- isColumn: !0
84
- },
85
- {
86
- label: "goodsSpu.shelf",
87
- prop: "shelf",
88
- width: "120",
89
- slotName: "shelf",
90
- columnType: "slot",
91
- sortable: "custom",
92
- isColumn: !0
93
- },
94
- {
95
- label: "goodsSpu.approvalStatus",
96
- prop: "approvalStatus",
97
- width: "120",
98
- slotName: "approvalStatus",
99
- columnType: "slot",
100
- isColumn: !0
101
- },
102
- {
103
- label: "goodsSpu.updateTime",
104
- prop: "updateTime",
105
- width: "180",
106
- sortable: "custom",
107
- slotName: "updateTime",
108
- columnType: "slot",
109
- isColumn: !0
110
- },
111
- {
112
- label: "common.operate",
113
- width: "200",
114
- slotName: "operation",
115
- columnType: "slot",
116
- fixed: "right",
117
- isColumn: !0
118
- }
119
- ]);
120
- g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
121
- function B() {
122
- S.push({ path: "/rawgoods/goods-spu/edit" });
123
- }
124
- function L(n) {
125
- S.push({
126
- path: "/rawgoods/goods-spu/edit",
127
- query: { spuId: n.spuId }
128
- });
129
- }
130
- function F(n) {
131
- S.push({
132
- path: "/rawgoods/goods-spu/info",
133
- query: { spuId: n.spuId }
134
- });
135
- }
136
- function H(n) {
137
- d.selectionRows.value = n;
138
- }
139
- function Q(n) {
140
- d.handleSort(n.prop, n.order);
141
- }
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
- ref_key: "queryFormRef",
148
- ref: E,
149
- model: p.value,
150
- inline: !0
151
- }, {
152
- default: o(() => [
153
- t(I, null, {
154
- default: o(() => [
155
- t(f, { span: 6 }, {
156
- default: o(() => [
157
- t(v, {
158
- label: n.$t("goodsSpu.shopId"),
159
- prop: "shopId"
160
- }, {
161
- default: o(() => [
162
- t(Y, {
163
- modelValue: p.value.shopId,
164
- "onUpdate:modelValue": l[0] || (l[0] = (e) => p.value.shopId = e),
165
- placeholder: n.$t("goodsSpu.shopIdRequired"),
166
- data: a(g).shopInfoBizDict.values,
167
- filterable: ""
168
- }, null, 8, ["modelValue", "placeholder", "data"])
169
- ]),
170
- _: 1
171
- }, 8, ["label"])
172
- ]),
173
- _: 1
174
- }),
175
- t(f, { span: 6 }, {
176
- default: o(() => [
177
- t(v, {
178
- label: n.$t("goodsSpu.spuCode"),
179
- prop: "spuCode"
180
- }, {
181
- default: o(() => [
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
- class: "!w-[203px]"
188
- }, null, 8, ["modelValue", "placeholder"])
189
- ]),
190
- _: 1
191
- }, 8, ["label"])
192
- ]),
193
- _: 1
194
- }),
195
- t(f, { span: 6 }, {
196
- default: o(() => [
197
- t(v, {
198
- label: n.$t("goodsSpu.spuName"),
199
- prop: "likeSpuName"
200
- }, {
201
- default: o(() => [
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
- class: "!w-[203px]"
208
- }, null, 8, ["modelValue", "placeholder"])
209
- ]),
210
- _: 1
211
- }, 8, ["label"])
212
- ]),
213
- _: 1
214
- }),
215
- t(f, { span: 6 }, {
216
- default: o(() => [
217
- t(v, { class: "search-btn" }, {
218
- default: o(() => [
219
- t(C, {
220
- type: "primary",
221
- onClick: l[5] || (l[5] = (e) => a(d).handleQuery())
222
- }, {
223
- default: o(() => [
224
- m(s(n.$t("common.search")), 1)
225
- ]),
226
- _: 1
227
- }),
228
- t(C, {
229
- onClick: l[6] || (l[6] = (e) => a(d).resetQuery())
230
- }, {
231
- default: o(() => [
232
- m(s(n.$t("common.reset")), 1)
233
- ]),
234
- _: 1
235
- })
236
- ]),
237
- _: 1
238
- })
239
- ]),
240
- _: 1
241
- })
242
- ]),
243
- _: 1
244
- })
245
- ]),
246
- _: 1
247
- }, 8, ["model"])
248
- ]),
249
- t(W, {
250
- shadow: "never",
251
- class: "table-container"
252
- }, {
253
- header: o(() => [
254
- t(I, null, {
255
- default: o(() => [
256
- t(f, { span: 17 }, {
257
- default: o(() => [
258
- _((r(), V(C, {
259
- type: "primary",
260
- onClick: B
261
- }, {
262
- default: o(() => [
263
- m(s(n.$t("common.add")), 1)
264
- ]),
265
- _: 1
266
- })), [
267
- [b, ["goods:goods_spu:add"]]
268
- ]),
269
- _((r(), V(C, {
270
- type: "primary",
271
- onClick: l[7] || (l[7] = (e) => a(d).deleteRecords())
272
- }, {
273
- default: o(() => [
274
- m(s(n.$t("common.batchDelete")), 1)
275
- ]),
276
- _: 1
277
- })), [
278
- [b, ["goods:goods_spu:delete"]]
279
- ])
280
- ]),
281
- _: 1
282
- }),
283
- t(f, {
284
- span: 7,
285
- class: "container-float"
286
- }, {
287
- default: o(() => [
288
- t(M, {
289
- modelValue: a(w),
290
- "onUpdate:modelValue": l[8] || (l[8] = (e) => P(w) ? w.value = e : w = e),
291
- "label-name": "goods/goods-spu"
292
- }, null, 8, ["modelValue"])
293
- ]),
294
- _: 1
295
- })
296
- ]),
297
- _: 1
298
- })
299
- ]),
300
- footer: o(() => [
301
- a(y) > 0 ? (r(), V(J, {
302
- key: 0,
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
- onPagination: l[12] || (l[12] = (e) => a(d).getList())
310
- }, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
311
- ]),
312
- default: o(() => [
313
- t(G, {
314
- ref_key: "multipleTableRef",
315
- ref: j,
316
- "row-key": "spuId",
317
- "list-loading": a(q),
318
- data: a(A),
319
- "table-label": a(w),
320
- onSelectionChange: H,
321
- onSortChange: Q
322
- }, {
323
- shopId: o((e) => [
324
- i("span", null, s(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
325
- ]),
326
- categoryId: o((e) => [
327
- i("span", null, s(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
328
- ]),
329
- picUrls: o((e) => [
330
- i("span", null, [
331
- t(O, {
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
- ],
336
- "preview-teleported": "",
337
- "hide-on-click-modal": "",
338
- fit: "contain"
339
- }, null, 8, ["src", "preview-src-list"])
340
- ])
341
- ]),
342
- shelf: o((e) => [
343
- i("span", null, [
344
- t(T, {
345
- modelValue: 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
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
349
- ])
350
- ]),
351
- minPrice: o((e) => [
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
- ])
359
- ]),
360
- specType: o((e) => [
361
- i("span", null, s(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
362
- ]),
363
- approvalStatus: o((e) => [
364
- i("span", null, s(a(g).approvalStatusEnum.getEnumValue(
365
- e.data.row.approvalStatus
366
- )), 1)
367
- ]),
368
- updateTime: o((e) => [
369
- i("span", null, s(a(z).$moment.formatDate(
370
- e.data.row.updateTime,
371
- "YYYY-MM-DD HH:mm:ss"
372
- )), 1)
373
- ]),
374
- enable: o((e) => [
375
- t(T, {
376
- modelValue: 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)
379
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
380
- ]),
381
- operation: o((e) => [
382
- _((r(), h("span", {
383
- class: "el-button-color",
384
- onClick: (c) => L(e.data.row)
385
- }, [
386
- m(s(n.$t("common.edit")), 1)
387
- ], 8, ue)), [
388
- [b, ["goods:goods_spu:update"]]
389
- ]),
390
- _((r(), h("span", {
391
- class: "el-button-color dropdown-left",
392
- onClick: (c) => a(d).deleteRecord(e.data.row)
393
- }, [
394
- m(s(n.$t("common.delete")), 1)
395
- ], 8, pe)), [
396
- [b, ["goods:goods_spu:delete"]]
397
- ]),
398
- _((r(), h("span", {
399
- class: "el-button-color dropdown-left",
400
- onClick: (c) => F(e.data.row)
401
- }, [
402
- m(s(n.$t("common.view")), 1)
403
- ], 8, de)), [
404
- [b, ["goods:goods_spu:view"]]
405
- ])
406
- ]),
407
- _: 1
408
- }, 8, ["list-loading", "data", "table-label"])
409
- ]),
410
- _: 1
411
- })
412
- ]);
413
- };
414
- }
415
- });
416
- export {
417
- we as _
418
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
2
- export {
3
- f as default
4
- };