xyvcard-goods 0.0.1 → 0.0.3
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/{approveFailIndex-gl8MBbK6.mjs → approveFailIndex-C2BhoVKC.mjs} +1 -1
- package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs} +111 -94
- package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-BjjiwYrm.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs} +139 -122
- package/dist/{edit-DpIovEhA.mjs → edit-B1_IbaHc.mjs} +5007 -5008
- package/dist/{index-C9KO9AZw.mjs → el-message-BBB-S2MS.mjs} +614 -595
- package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
- package/dist/{index-BupW0ufK.mjs → index-vE-TE0cx.mjs} +108 -81
- package/dist/index.mjs +1099 -1046
- package/dist/info-Bm6Ifv7W.mjs +311 -0
- package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-C9AD4DIj.mjs} +1 -1
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs +428 -0
- package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CyAp6rf5.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs} +173 -159
- package/dist/skuForm-Ctu0Vbym.mjs +419 -0
- package/dist/skuTable-BbTTCq2m.mjs +585 -0
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +13 -6
- package/dts/constant.d.ts +4 -0
- package/dts/index.d.ts +2 -0
- package/dts/lang/goods/en.d.ts +1 -68
- package/dts/lang/goods/zh-cn.d.ts +0 -44
- package/dts/utils/sku.d.ts +19 -0
- package/dts/views/goods/goods-spu/{sku-form.vue.d.ts → skuForm.vue.d.ts} +7 -9
- package/dts/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
- package/package.json +2 -2
- package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +0 -544
- package/dist/approvedIndex-Cn6g11xv.mjs +0 -4
- package/dist/index-fu3gxdt_.mjs +0 -130
- package/dist/info-C6VRixBH.mjs +0 -301
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +0 -415
- package/dist/sku-form-BAi4HkUM.mjs +0 -463
- package/dist/sku-table-CRrisvJ1.mjs +0 -410
- package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/sku-table.vue.d.ts +0 -14
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useTableHooks as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import {
|
|
6
|
-
import { C as
|
|
7
|
-
/*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 { goodsSpuApi as te } from "./index.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:
|
|
15
|
-
}), {
|
|
16
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
131
|
+
S.push({
|
|
132
|
+
path: "/rawgoods/goods-spu/info",
|
|
133
|
+
query: { spuId: s.spuId }
|
|
134
|
+
});
|
|
125
135
|
}
|
|
126
136
|
function Q(s) {
|
|
127
|
-
|
|
137
|
+
d.selectionRows.value = s;
|
|
128
138
|
}
|
|
129
139
|
function Y(s) {
|
|
130
|
-
|
|
140
|
+
d.handleSort(s.prop, s.order);
|
|
131
141
|
}
|
|
132
|
-
return
|
|
133
|
-
const A =
|
|
134
|
-
return m(), C("div",
|
|
135
|
-
r("div",
|
|
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:
|
|
139
|
-
model:
|
|
148
|
+
ref: j,
|
|
149
|
+
model: u.value,
|
|
140
150
|
inline: !0
|
|
141
151
|
}, {
|
|
142
152
|
default: o(() => [
|
|
143
|
-
t(
|
|
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:
|
|
154
|
-
"onUpdate:modelValue": l[0] || (l[0] = (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:
|
|
174
|
-
"onUpdate:modelValue": l[1] || (l[1] = (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] =
|
|
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:
|
|
194
|
-
"onUpdate:modelValue": l[3] || (l[3] = (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] =
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
249
|
+
t(O, {
|
|
240
250
|
shadow: "never",
|
|
241
251
|
class: "table-container"
|
|
242
252
|
}, {
|
|
243
253
|
header: o(() => [
|
|
244
|
-
t(
|
|
254
|
+
t(T, null, {
|
|
245
255
|
default: o(() => [
|
|
246
256
|
t(f, { span: 17 }, {
|
|
247
257
|
default: o(() => [
|
|
248
|
-
|
|
258
|
+
w((m(), V(y, {
|
|
249
259
|
type: "primary",
|
|
250
|
-
onClick:
|
|
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
|
-
[
|
|
267
|
+
[b, ["goods:goods_spu:add"]]
|
|
258
268
|
]),
|
|
259
|
-
|
|
269
|
+
w((m(), V(y, {
|
|
260
270
|
type: "primary",
|
|
261
|
-
onClick: l[7] || (l[7] = (e) => a(
|
|
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
|
-
[
|
|
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(
|
|
279
|
-
modelValue: a(
|
|
280
|
-
"onUpdate:modelValue": l[8] || (l[8] = (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(
|
|
301
|
+
a(_) > 0 ? (m(), V(J, {
|
|
292
302
|
key: 0,
|
|
293
|
-
total: a(
|
|
294
|
-
"onUpdate:total": l[9] || (l[9] = (e) =>
|
|
295
|
-
"current-page":
|
|
296
|
-
"onUpdate:currentPage": l[10] || (l[10] = (e) =>
|
|
297
|
-
"page-size":
|
|
298
|
-
"onUpdate:pageSize": l[11] || (l[11] = (e) =>
|
|
299
|
-
onPagination: l[12] || (l[12] = (e) => a(
|
|
300
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
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(
|
|
313
|
+
t(G, {
|
|
304
314
|
ref_key: "multipleTableRef",
|
|
305
|
-
ref:
|
|
315
|
+
ref: z,
|
|
306
316
|
"row-key": "spuId",
|
|
307
|
-
"list-loading": a(
|
|
317
|
+
"list-loading": a(E),
|
|
308
318
|
data: a(q),
|
|
309
|
-
"table-label": a(
|
|
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(
|
|
322
|
-
src: a(
|
|
323
|
-
"preview-src-list": [
|
|
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(
|
|
344
|
+
t($, {
|
|
333
345
|
modelValue: e.data.row.shelf,
|
|
334
346
|
"onUpdate:modelValue": (i) => e.data.row.shelf = i,
|
|
335
|
-
onClick: (i) => a(
|
|
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(
|
|
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(
|
|
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(
|
|
369
|
+
t($, {
|
|
353
370
|
modelValue: e.data.row.enable,
|
|
354
371
|
"onUpdate:modelValue": (i) => e.data.row.enable = i,
|
|
355
|
-
onChange: (i) => a(
|
|
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
|
-
|
|
376
|
+
w((m(), C("span", {
|
|
360
377
|
class: "el-button-color",
|
|
361
|
-
onClick: (i) =>
|
|
378
|
+
onClick: (i) => H(e.data.row)
|
|
362
379
|
}, [
|
|
363
380
|
c(n(s.$t("common.edit")), 1)
|
|
364
|
-
], 8,
|
|
365
|
-
[
|
|
381
|
+
], 8, pe)), [
|
|
382
|
+
[b, ["goods:goods_spu:update"]]
|
|
366
383
|
]),
|
|
367
|
-
|
|
384
|
+
w((m(), C("span", {
|
|
368
385
|
class: "el-button-color dropdown-left",
|
|
369
|
-
onClick: (i) => a(
|
|
386
|
+
onClick: (i) => a(d).deleteRecord(e.data.row)
|
|
370
387
|
}, [
|
|
371
388
|
c(n(s.$t("common.delete")), 1)
|
|
372
|
-
], 8,
|
|
373
|
-
[
|
|
389
|
+
], 8, ue)), [
|
|
390
|
+
[b, ["goods:goods_spu:delete"]]
|
|
374
391
|
]),
|
|
375
|
-
|
|
392
|
+
w((m(), C("span", {
|
|
376
393
|
class: "el-button-color dropdown-left",
|
|
377
|
-
onClick: (i) =>
|
|
394
|
+
onClick: (i) => L(e.data.row)
|
|
378
395
|
}, [
|
|
379
|
-
c(n(s.$t("common.
|
|
380
|
-
], 8,
|
|
381
|
-
[
|
|
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
|
-
|
|
411
|
+
be as _
|
|
395
412
|
};
|