xyvcard-goods 0.0.27 → 0.0.29
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.
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Dk6GY6PA.mjs} +2 -2
- package/dist/{edit-C6CESv8X.mjs → edit-1TXe_HC2.mjs} +24 -31
- package/dist/{edit-DmT9V-gh.mjs → edit-BDHYnZTL.mjs} +1 -1
- package/dist/{edit-CvY-V0N5.mjs → edit-Br1EAlBd.mjs} +86 -83
- package/dist/{edit-CwYGsVHI.mjs → edit-BzOoP1MM.mjs} +6 -6
- package/dist/{edit-CuYE3fHS.mjs → edit-C0U9Ge6U.mjs} +10 -10
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs → edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs} +75 -77
- package/dist/index-BreCG7fL.mjs +562 -0
- package/dist/{index-szFiZJnI.mjs → index-ClnNQkIp.mjs} +1 -1
- package/dist/{index-D7Zknkay.mjs → index-D3Q39K5l.mjs} +63 -65
- package/dist/{index-0g53MREL.mjs → index-DYo45BS3.mjs} +35 -40
- package/dist/index-DwDXNfWH.mjs +644 -0
- package/dist/{index-CXtRrzoC.mjs → index-GWE4OrXj.mjs} +1882 -2005
- package/dist/{index-CXEbqy-N.mjs → index-RBIPJ3PM.mjs} +90 -95
- package/dist/{index-B0qodJxZ.mjs → index-rRbEKDlL.mjs} +53 -46
- package/dist/index.mjs +1 -1
- package/dist/info-DjDT9TId.mjs +349 -0
- package/dist/{info-Bn5lfzNP.mjs → info-Dji-jSuw.mjs} +4 -4
- package/dist/{skuForm-DF02pgox.mjs → skuForm-9X82lvcF.mjs} +65 -67
- package/dist/{skuForm-EQVH7pCG.mjs → skuForm-BzxL1_v6.mjs} +6 -6
- package/dist/{skuTable-DWpm1OMq.mjs → skuTable-RIQUU_Bl.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +3 -0
- package/dts/api/index.d.ts +1 -0
- package/dts/constant.d.ts +10 -0
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
- package/package.json +62 -62
- package/dist/goodsList-Bj9pZI5X.mjs +0 -4
- package/dist/goodsList-v98w-P_d.mjs +0 -4
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs +0 -714
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs +0 -565
- package/dist/index-BrR_OdFN.mjs +0 -55
- package/dist/index-DWtdS9Gu.mjs +0 -53
- package/dist/info-PRjY0AD1.mjs +0 -331
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as x, ref as
|
|
1
|
+
import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as d, createElementBlock as w, createElementVNode as U, createVNode as l, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as _, isRef as T, createCommentVNode as D } from "vue";
|
|
2
2
|
import { useI18n as le } from "vue-i18n";
|
|
3
3
|
import { useTableHooks as ae, fileApi as j } from "jmash-core";
|
|
4
|
-
import { D as ne } from "./index-
|
|
5
|
-
import { g as re } from "./index-
|
|
6
|
-
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"],
|
|
4
|
+
import { D as ne } from "./index-rRbEKDlL.mjs";
|
|
5
|
+
import { g as re } from "./index-GWE4OrXj.mjs";
|
|
6
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs";
|
|
7
|
+
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(ce) {
|
|
10
|
+
const { t: y } = le(), i = $({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10
|
|
13
13
|
}), {
|
|
@@ -16,19 +16,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
16
16
|
queryFormRef: P,
|
|
17
17
|
listLoading: B,
|
|
18
18
|
tableData: q,
|
|
19
|
-
total:
|
|
20
|
-
} = ae(
|
|
21
|
-
let g =
|
|
19
|
+
total: v
|
|
20
|
+
} = ae(y, re, i);
|
|
21
|
+
let g = $([
|
|
22
22
|
{
|
|
23
23
|
label: "goodsCategory.categoryName",
|
|
24
24
|
prop: "categoryName",
|
|
25
|
-
|
|
25
|
+
minWidth: "200",
|
|
26
26
|
isColumn: !0
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
label: "goodsCategory.categoryCode",
|
|
30
30
|
prop: "categoryCode",
|
|
31
|
-
|
|
31
|
+
minWidth: "200",
|
|
32
32
|
isColumn: !0
|
|
33
33
|
},
|
|
34
34
|
{
|
|
@@ -40,13 +40,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
40
40
|
isColumn: !0
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
label: "
|
|
44
|
-
prop: "description",
|
|
45
|
-
minWidth: "200",
|
|
46
|
-
isColumn: !0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "goodsCategory.status",
|
|
43
|
+
label: "goodsSpu.shelf",
|
|
50
44
|
prop: "status",
|
|
51
45
|
slotName: "status",
|
|
52
46
|
columnType: "slot",
|
|
@@ -69,16 +63,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
69
63
|
isColumn: !0
|
|
70
64
|
}
|
|
71
65
|
]);
|
|
72
|
-
const
|
|
73
|
-
title:
|
|
66
|
+
const u = $({
|
|
67
|
+
title: y("common.edit"),
|
|
74
68
|
visible: !1
|
|
75
69
|
});
|
|
76
70
|
let h = S({});
|
|
77
71
|
function L() {
|
|
78
|
-
h = S({}),
|
|
72
|
+
h = S({}), u.value.title = y("common.add"), u.value.visible = !0;
|
|
79
73
|
}
|
|
80
74
|
function A(a) {
|
|
81
|
-
h = { ...a },
|
|
75
|
+
h = { ...a }, u.value.title = y("common.edit"), u.value.visible = !0;
|
|
82
76
|
}
|
|
83
77
|
function E(a) {
|
|
84
78
|
s.selectionRows.value = a;
|
|
@@ -92,26 +86,26 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
92
86
|
return ee(() => {
|
|
93
87
|
s.getList();
|
|
94
88
|
}), (a, o) => {
|
|
95
|
-
const F = r("el-input"),
|
|
96
|
-
return
|
|
89
|
+
const F = r("el-input"), V = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), b = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), C = oe("hasPerm");
|
|
90
|
+
return d(), w("div", ie, [
|
|
97
91
|
U("div", de, [
|
|
98
|
-
|
|
92
|
+
l(I, {
|
|
99
93
|
ref_key: "queryFormRef",
|
|
100
94
|
ref: P,
|
|
101
95
|
model: i.value,
|
|
102
96
|
inline: !0
|
|
103
97
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
default:
|
|
109
|
-
|
|
98
|
+
default: t(() => [
|
|
99
|
+
l(N, null, {
|
|
100
|
+
default: t(() => [
|
|
101
|
+
l(f, { span: 6 }, {
|
|
102
|
+
default: t(() => [
|
|
103
|
+
l(V, {
|
|
110
104
|
label: a.$t("goodsCategory.categoryName"),
|
|
111
105
|
prop: "likeCategoryName"
|
|
112
106
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
107
|
+
default: t(() => [
|
|
108
|
+
l(F, {
|
|
115
109
|
modelValue: i.value.likeCategoryName,
|
|
116
110
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
|
|
117
111
|
placeholder: a.$t("goodsCategory.categoryNameRequired"),
|
|
@@ -125,14 +119,14 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
125
119
|
]),
|
|
126
120
|
_: 1
|
|
127
121
|
}),
|
|
128
|
-
|
|
129
|
-
default:
|
|
130
|
-
|
|
122
|
+
l(f, { span: 6 }, {
|
|
123
|
+
default: t(() => [
|
|
124
|
+
l(V, {
|
|
131
125
|
label: a.$t("goodsCategory.status"),
|
|
132
126
|
prop: "status"
|
|
133
127
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
128
|
+
default: t(() => [
|
|
129
|
+
l(H, {
|
|
136
130
|
modelValue: i.value.status,
|
|
137
131
|
"onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
|
|
138
132
|
placeholder: a.$t("goodsCategory.statusRequired"),
|
|
@@ -145,23 +139,23 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
145
139
|
]),
|
|
146
140
|
_: 1
|
|
147
141
|
}),
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
|
|
142
|
+
l(f, { span: 12 }, {
|
|
143
|
+
default: t(() => [
|
|
144
|
+
l(V, { class: "search-btn" }, {
|
|
145
|
+
default: t(() => [
|
|
146
|
+
l(b, {
|
|
153
147
|
type: "primary",
|
|
154
148
|
onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
|
|
155
149
|
}, {
|
|
156
|
-
default:
|
|
150
|
+
default: t(() => [
|
|
157
151
|
p(c(a.$t("common.search")), 1)
|
|
158
152
|
]),
|
|
159
153
|
_: 1
|
|
160
154
|
}),
|
|
161
|
-
|
|
155
|
+
l(b, {
|
|
162
156
|
onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
|
|
163
157
|
}, {
|
|
164
|
-
default:
|
|
158
|
+
default: t(() => [
|
|
165
159
|
p(c(a.$t("common.reset")), 1)
|
|
166
160
|
]),
|
|
167
161
|
_: 1
|
|
@@ -180,48 +174,48 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
180
174
|
}, 8, ["model"]),
|
|
181
175
|
o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
|
|
182
176
|
]),
|
|
183
|
-
|
|
177
|
+
l(Z, {
|
|
184
178
|
shadow: "never",
|
|
185
179
|
class: "table-container"
|
|
186
180
|
}, {
|
|
187
|
-
header:
|
|
188
|
-
|
|
189
|
-
default:
|
|
190
|
-
|
|
191
|
-
default:
|
|
192
|
-
|
|
181
|
+
header: t(() => [
|
|
182
|
+
l(N, null, {
|
|
183
|
+
default: t(() => [
|
|
184
|
+
l(f, { span: 17 }, {
|
|
185
|
+
default: t(() => [
|
|
186
|
+
k((d(), _(b, {
|
|
193
187
|
type: "primary",
|
|
194
188
|
onClick: L
|
|
195
189
|
}, {
|
|
196
|
-
default:
|
|
190
|
+
default: t(() => [
|
|
197
191
|
p(c(a.$t("common.add")), 1)
|
|
198
192
|
]),
|
|
199
193
|
_: 1
|
|
200
194
|
})), [
|
|
201
|
-
[
|
|
195
|
+
[C, ["goods:goods_category:add"]]
|
|
202
196
|
]),
|
|
203
|
-
|
|
197
|
+
k((d(), _(b, {
|
|
204
198
|
type: "primary",
|
|
205
199
|
onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
|
|
206
200
|
}, {
|
|
207
|
-
default:
|
|
201
|
+
default: t(() => [
|
|
208
202
|
p(c(a.$t("common.batchDelete")), 1)
|
|
209
203
|
]),
|
|
210
204
|
_: 1
|
|
211
205
|
})), [
|
|
212
|
-
[
|
|
206
|
+
[C, ["goods:goods_category:delete"]]
|
|
213
207
|
])
|
|
214
208
|
]),
|
|
215
209
|
_: 1
|
|
216
210
|
}),
|
|
217
|
-
|
|
211
|
+
l(f, {
|
|
218
212
|
span: 7,
|
|
219
213
|
class: "container-float"
|
|
220
214
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
215
|
+
default: t(() => [
|
|
216
|
+
l(M, {
|
|
223
217
|
modelValue: n(g),
|
|
224
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) =>
|
|
218
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
|
|
225
219
|
"label-name": "goods/goods-spu"
|
|
226
220
|
}, null, 8, ["modelValue"])
|
|
227
221
|
]),
|
|
@@ -231,20 +225,20 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
231
225
|
_: 1
|
|
232
226
|
})
|
|
233
227
|
]),
|
|
234
|
-
footer:
|
|
235
|
-
n(
|
|
228
|
+
footer: t(() => [
|
|
229
|
+
n(v) > 0 ? (d(), _(Y, {
|
|
236
230
|
key: 0,
|
|
237
|
-
total: n(
|
|
238
|
-
"onUpdate:total": o[7] || (o[7] = (e) =>
|
|
231
|
+
total: n(v),
|
|
232
|
+
"onUpdate:total": o[7] || (o[7] = (e) => T(v) ? v.value = e : null),
|
|
239
233
|
"current-page": i.value.curPage,
|
|
240
234
|
"onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
|
|
241
235
|
"page-size": i.value.pageSize,
|
|
242
236
|
"onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
|
|
243
237
|
onPagination: o[10] || (o[10] = (e) => n(s).getList())
|
|
244
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
238
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
245
239
|
]),
|
|
246
|
-
default:
|
|
247
|
-
|
|
240
|
+
default: t(() => [
|
|
241
|
+
l(X, {
|
|
248
242
|
ref_key: "multipleTableRef",
|
|
249
243
|
ref: z,
|
|
250
244
|
"row-key": "categoryId",
|
|
@@ -254,60 +248,61 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
254
248
|
onSelectionChange: E,
|
|
255
249
|
onSortChange: K
|
|
256
250
|
}, {
|
|
257
|
-
picUrl:
|
|
258
|
-
|
|
251
|
+
picUrl: t((e) => [
|
|
252
|
+
e.data.row.picUrl ? (d(), _(O, {
|
|
253
|
+
key: 0,
|
|
259
254
|
src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
|
|
260
255
|
"preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
|
|
261
256
|
"preview-teleported": "",
|
|
262
257
|
"hide-on-click-modal": "",
|
|
263
258
|
fit: "contain"
|
|
264
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
259
|
+
}, null, 8, ["src", "preview-src-list"])) : (d(), w("span", ue, "-"))
|
|
265
260
|
]),
|
|
266
|
-
status:
|
|
261
|
+
status: t((e) => [
|
|
267
262
|
U("span", null, [
|
|
268
|
-
|
|
263
|
+
l(W, {
|
|
269
264
|
modelValue: e.data.row.status,
|
|
270
265
|
"onUpdate:modelValue": (m) => e.data.row.status = m,
|
|
271
266
|
onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
|
|
272
267
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
273
268
|
])
|
|
274
269
|
]),
|
|
275
|
-
listOrder:
|
|
276
|
-
|
|
270
|
+
listOrder: t((e) => [
|
|
271
|
+
l(R, {
|
|
277
272
|
size: "16",
|
|
278
273
|
onClick: (m) => n(s).handleMove(e.data.row, !1)
|
|
279
274
|
}, {
|
|
280
|
-
default:
|
|
281
|
-
|
|
275
|
+
default: t(() => [
|
|
276
|
+
l(G)
|
|
282
277
|
]),
|
|
283
278
|
_: 2
|
|
284
279
|
}, 1032, ["onClick"]),
|
|
285
|
-
|
|
280
|
+
l(R, {
|
|
286
281
|
size: "16",
|
|
287
282
|
onClick: (m) => n(s).handleMove(e.data.row, !0)
|
|
288
283
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
|
|
284
|
+
default: t(() => [
|
|
285
|
+
l(J)
|
|
291
286
|
]),
|
|
292
287
|
_: 2
|
|
293
288
|
}, 1032, ["onClick"])
|
|
294
289
|
]),
|
|
295
|
-
operation:
|
|
296
|
-
|
|
290
|
+
operation: t((e) => [
|
|
291
|
+
k((d(), w("span", {
|
|
297
292
|
class: "el-button-color",
|
|
298
293
|
onClick: (m) => A(e.data.row)
|
|
299
294
|
}, [
|
|
300
295
|
p(c(a.$t("common.edit")), 1)
|
|
301
|
-
], 8,
|
|
302
|
-
[
|
|
296
|
+
], 8, me)), [
|
|
297
|
+
[C, ["goods:goods_category:update"]]
|
|
303
298
|
]),
|
|
304
|
-
|
|
299
|
+
k((d(), w("span", {
|
|
305
300
|
class: "el-button-color dropdown-left",
|
|
306
301
|
onClick: (m) => n(s).deleteRecord(e.data.row)
|
|
307
302
|
}, [
|
|
308
303
|
p(c(a.$t("common.delete")), 1)
|
|
309
|
-
], 8,
|
|
310
|
-
[
|
|
304
|
+
], 8, pe)), [
|
|
305
|
+
[C, ["goods:goods_category:delete"]]
|
|
311
306
|
])
|
|
312
307
|
]),
|
|
313
308
|
_: 1
|
|
@@ -315,19 +310,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
315
310
|
]),
|
|
316
311
|
_: 1
|
|
317
312
|
}),
|
|
318
|
-
|
|
313
|
+
u.value.visible ? (d(), _(se, {
|
|
319
314
|
key: 0,
|
|
320
|
-
modelValue:
|
|
321
|
-
"onUpdate:modelValue": o[11] || (o[11] = (e) =>
|
|
322
|
-
title:
|
|
315
|
+
modelValue: u.value.visible,
|
|
316
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => u.value.visible = e),
|
|
317
|
+
title: u.value.title,
|
|
323
318
|
"entity-key": n(h),
|
|
324
319
|
onRefresh: Q,
|
|
325
320
|
width: "600px"
|
|
326
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
321
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
|
|
327
322
|
]);
|
|
328
323
|
};
|
|
329
324
|
}
|
|
330
325
|
});
|
|
331
326
|
export {
|
|
332
|
-
|
|
327
|
+
Ce as default
|
|
333
328
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
2
|
var E = (u, e, t) => e in u ? S(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
3
|
var s = (u, e, t) => E(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { BizDict as
|
|
4
|
+
import { BizDict as c, BizLayDict as _, EnumDict as n } from "jmash-core";
|
|
5
5
|
import { EntryDict as v } from "jmash-dict";
|
|
6
|
-
import { ref as h, reactive as
|
|
6
|
+
import { ref as h, reactive as L } from "vue";
|
|
7
7
|
import { specValueApi as y, infoApi as P, specInfoApi as A } from "xyvcard-shop";
|
|
8
|
-
import { g as O, b as
|
|
9
|
-
import { g as m } from "./index-
|
|
8
|
+
import { g as O, b as g, a as f } from "./index-GWE4OrXj.mjs";
|
|
9
|
+
import { g as m } from "./index-ClnNQkIp.mjs";
|
|
10
10
|
class a {
|
|
11
11
|
}
|
|
12
12
|
// 模块
|
|
@@ -24,7 +24,13 @@ s(a, "SHELF_VALUES", h([
|
|
|
24
24
|
s(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
25
25
|
s(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
26
26
|
s(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
27
|
-
s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"),
|
|
27
|
+
s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), s(a, "GOODS_SPU_VALUES", h([
|
|
28
|
+
{ key: "goods_all", value: "全部商品" },
|
|
29
|
+
{ key: "goods_sale", value: "已上架" },
|
|
30
|
+
{ key: "goods_shelf", value: "待上架" },
|
|
31
|
+
{ key: "goods_audit", value: "审核中" },
|
|
32
|
+
{ key: "goods_notpass", value: "审核驳回" }
|
|
33
|
+
])), // 审核状态
|
|
28
34
|
s(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
29
35
|
s(a, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(a, "APPROVAL_PASS", "APPROVAL_PASS"), s(a, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
30
36
|
s(a, "ENABLE_VALUES", h([
|
|
@@ -48,7 +54,7 @@ function d(u, e, t) {
|
|
|
48
54
|
}
|
|
49
55
|
class p {
|
|
50
56
|
constructor(e, t) {
|
|
51
|
-
s(this, "values",
|
|
57
|
+
s(this, "values", L([]));
|
|
52
58
|
// 查询条件
|
|
53
59
|
s(this, "query");
|
|
54
60
|
this.values.length = 0, this.values.push(...e.value), this.query = t;
|
|
@@ -61,12 +67,12 @@ class p {
|
|
|
61
67
|
return "";
|
|
62
68
|
}
|
|
63
69
|
}
|
|
64
|
-
class
|
|
70
|
+
class U extends c {
|
|
65
71
|
// 实现 useValues 方法
|
|
66
72
|
useValues() {
|
|
67
73
|
return new Promise((e, t) => {
|
|
68
|
-
P.findList(this.query).then(({ data:
|
|
69
|
-
const r =
|
|
74
|
+
P.findList(this.query).then(({ data: o }) => {
|
|
75
|
+
const r = o.results;
|
|
70
76
|
this.values.length = 0, this.values.push(
|
|
71
77
|
...r.map(
|
|
72
78
|
(i) => ({
|
|
@@ -79,22 +85,22 @@ class D extends o {
|
|
|
79
85
|
});
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
|
-
class
|
|
88
|
+
class D extends _ {
|
|
83
89
|
// 实现 useValues 方法
|
|
84
90
|
useValues() {
|
|
85
91
|
return new Promise((e, t) => {
|
|
86
|
-
O.findTreeListApi(this.query).then(({ data:
|
|
87
|
-
this.values.length = 0, this.values.push(...d(
|
|
92
|
+
O.findTreeListApi(this.query).then(({ data: o }) => {
|
|
93
|
+
this.values.length = 0, this.values.push(...d(o.results, "label", "value")), e(this.values);
|
|
88
94
|
}).catch(t);
|
|
89
95
|
});
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
|
-
class I extends
|
|
98
|
+
class I extends c {
|
|
93
99
|
// 实现 useValues 方法
|
|
94
100
|
useValues() {
|
|
95
101
|
return new Promise((e, t) => {
|
|
96
|
-
A.findList(this.query).then(({ data:
|
|
97
|
-
const r =
|
|
102
|
+
A.findList(this.query).then(({ data: o }) => {
|
|
103
|
+
const r = o.results;
|
|
98
104
|
this.values.length = 0, this.values.push(
|
|
99
105
|
...r.map(
|
|
100
106
|
(i) => ({
|
|
@@ -108,12 +114,12 @@ class I extends o {
|
|
|
108
114
|
});
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
|
-
class
|
|
117
|
+
class V extends c {
|
|
112
118
|
// 实现 useValues 方法
|
|
113
119
|
useValues() {
|
|
114
120
|
return new Promise((e, t) => {
|
|
115
|
-
y.findList(this.query).then(({ data:
|
|
116
|
-
const r =
|
|
121
|
+
y.findList(this.query).then(({ data: o }) => {
|
|
122
|
+
const r = o.results;
|
|
117
123
|
this.values.length = 0, this.values.push(
|
|
118
124
|
...r.map(
|
|
119
125
|
(i) => ({
|
|
@@ -126,12 +132,12 @@ class N extends o {
|
|
|
126
132
|
});
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
|
-
class
|
|
135
|
+
class N extends c {
|
|
130
136
|
// 实现 useValues 方法
|
|
131
137
|
useValues() {
|
|
132
138
|
return new Promise((e, t) => {
|
|
133
|
-
m.findList(this.query).then(({ data:
|
|
134
|
-
const r =
|
|
139
|
+
m.findList(this.query).then(({ data: o }) => {
|
|
140
|
+
const r = o.results;
|
|
135
141
|
this.values.length = 0, this.values.push(
|
|
136
142
|
...r.map(
|
|
137
143
|
(i) => ({
|
|
@@ -144,12 +150,12 @@ class T extends o {
|
|
|
144
150
|
});
|
|
145
151
|
}
|
|
146
152
|
}
|
|
147
|
-
class
|
|
153
|
+
class T extends c {
|
|
148
154
|
// 实现 useValues 方法
|
|
149
155
|
useValues() {
|
|
150
156
|
return new Promise((e, t) => {
|
|
151
|
-
|
|
152
|
-
const r =
|
|
157
|
+
g.findList(this.query).then(({ data: o }) => {
|
|
158
|
+
const r = o.results;
|
|
153
159
|
this.values.length = 0, this.values.push(
|
|
154
160
|
...r.map(
|
|
155
161
|
(i) => ({
|
|
@@ -162,12 +168,12 @@ class V extends o {
|
|
|
162
168
|
});
|
|
163
169
|
}
|
|
164
170
|
}
|
|
165
|
-
class w extends
|
|
171
|
+
class w extends c {
|
|
166
172
|
// 实现 useValues 方法
|
|
167
173
|
useValues() {
|
|
168
174
|
return new Promise((e, t) => {
|
|
169
|
-
|
|
170
|
-
const r =
|
|
175
|
+
f.findList(this.query).then(({ data: o }) => {
|
|
176
|
+
const r = o.results;
|
|
171
177
|
this.values.length = 0, this.values.push(
|
|
172
178
|
...r.map(
|
|
173
179
|
(i) => ({
|
|
@@ -180,42 +186,43 @@ class w extends o {
|
|
|
180
186
|
});
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
|
-
class
|
|
189
|
+
class l {
|
|
184
190
|
}
|
|
185
191
|
// 店铺列表
|
|
186
|
-
s(
|
|
187
|
-
|
|
188
|
-
//
|
|
189
|
-
s(
|
|
190
|
-
s(
|
|
191
|
-
s(c, "shelfDict", new p(a.SHELF_VALUES, {})), // 运费类型
|
|
192
|
-
s(c, "freightTypeEnum", new n(
|
|
192
|
+
s(l, "shopInfoBizDict", new U({})), // 规格列表
|
|
193
|
+
s(l, "specInfoDict", new I({})), // 规格值
|
|
194
|
+
s(l, "specValueDict", new V({})), // 上架下架
|
|
195
|
+
s(l, "shelfDict", new p(a.SHELF_VALUES, {})), // 运费类型
|
|
196
|
+
s(l, "freightTypeEnum", new n(
|
|
193
197
|
a.MODULE_GOODS,
|
|
194
198
|
a.ENUM_FREIGHT_TYPE
|
|
195
199
|
)), // 保障服务
|
|
196
|
-
s(
|
|
197
|
-
s(
|
|
200
|
+
s(l, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
201
|
+
s(l, "specTypeEnum", new n(
|
|
198
202
|
a.MODULE_GOODS,
|
|
199
203
|
a.ENUM_SPEC_TYPE
|
|
200
204
|
)), // 商品查询枚举
|
|
201
|
-
s(
|
|
205
|
+
s(l, "goodsSpuListSortEnum", new n(
|
|
202
206
|
a.MODULE_GOODS,
|
|
203
207
|
a.ENUM_GOODS_SPU_List_SORT
|
|
208
|
+
)), s(l, "goodsSpuListSortDict", new p(
|
|
209
|
+
a.GOODS_SPU_VALUES,
|
|
210
|
+
{}
|
|
204
211
|
)), // 审核状态
|
|
205
|
-
s(
|
|
212
|
+
s(l, "approvalStatusEnum", new n(
|
|
206
213
|
a.MODULE_GOODS,
|
|
207
214
|
a.ENUM_APPROVAL_STATUS
|
|
208
215
|
)), // 启用禁用
|
|
209
|
-
s(
|
|
210
|
-
s(
|
|
216
|
+
s(l, "enableDict", new p(a.ENABLE_VALUES, {})), // 商品分类
|
|
217
|
+
s(l, "goodsCategoryListBizLayDict", new D(
|
|
211
218
|
{}
|
|
212
219
|
)), // 品牌列表
|
|
213
|
-
s(
|
|
214
|
-
s(
|
|
215
|
-
s(
|
|
220
|
+
s(l, "brandListBizDict", new N({})), // 标签列表
|
|
221
|
+
s(l, "labelListBizDict", new T({})), // 商品列表
|
|
222
|
+
s(l, "goodsSpuBizDict", new w({}));
|
|
216
223
|
export {
|
|
217
224
|
a as C,
|
|
218
|
-
|
|
219
|
-
|
|
225
|
+
l as D,
|
|
226
|
+
V as S,
|
|
220
227
|
I as a
|
|
221
228
|
};
|
package/dist/index.mjs
CHANGED