xyvcard-goods 0.0.9 → 0.0.10
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-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
- package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
- package/dist/edit-FCXD46Ef.mjs +556 -0
- package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
- package/dist/index.mjs +3 -3
- package/dist/{info-CPZykxS1.mjs → info-CScBSLKA.mjs} +1 -1
- package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
- package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
- package/dist/{skuForm-BSlT4TYd.mjs → skuForm-CRnWdE9n.mjs} +11 -5
- package/dist/{skuTable-DYmQYXk3.mjs → skuTable-Ck7bJzYP.mjs} +25 -24
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +4 -3
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
- package/dts/components/ImageUpload.vue.d.ts +36 -0
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
- package/package.json +14 -14
- package/dist/edit-D37yka6Z.mjs +0 -470
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useTableHooks as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { goodsSpuApi as
|
|
6
|
-
import { C as
|
|
7
|
-
const se = { class: "search-container" },
|
|
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
8
|
__name: "approveFailIndex",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(re) {
|
|
10
|
+
const { t: R } = te(), S = oe(), { proxy: z } = Z(), p = $({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10,
|
|
13
|
-
approvalStatus:
|
|
13
|
+
approvalStatus: ne.APPROVAL_NOT_PASS
|
|
14
14
|
}), {
|
|
15
15
|
tableHooks: d,
|
|
16
|
-
multipleTableRef:
|
|
17
|
-
queryFormRef:
|
|
18
|
-
listLoading:
|
|
19
|
-
tableData:
|
|
20
|
-
total:
|
|
21
|
-
} =
|
|
22
|
-
let
|
|
16
|
+
multipleTableRef: j,
|
|
17
|
+
queryFormRef: E,
|
|
18
|
+
listLoading: q,
|
|
19
|
+
tableData: A,
|
|
20
|
+
total: y
|
|
21
|
+
} = le(R, ae, p);
|
|
22
|
+
let w = $([
|
|
23
23
|
{
|
|
24
24
|
label: "goodsSpu.shopId",
|
|
25
25
|
prop: "shopId",
|
|
@@ -118,51 +118,51 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
118
118
|
}
|
|
119
119
|
]);
|
|
120
120
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
121
|
-
function
|
|
121
|
+
function B() {
|
|
122
122
|
S.push({ path: "/rawgoods/goods-spu/edit" });
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function L(n) {
|
|
125
125
|
S.push({
|
|
126
126
|
path: "/rawgoods/goods-spu/edit",
|
|
127
|
-
query: { spuId:
|
|
127
|
+
query: { spuId: n.spuId }
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function F(n) {
|
|
131
131
|
S.push({
|
|
132
132
|
path: "/rawgoods/goods-spu/info",
|
|
133
|
-
query: { spuId:
|
|
133
|
+
query: { spuId: n.spuId }
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function H(
|
|
137
|
-
d.selectionRows.value =
|
|
136
|
+
function H(n) {
|
|
137
|
+
d.selectionRows.value = n;
|
|
138
138
|
}
|
|
139
|
-
function Q(
|
|
140
|
-
d.handleSort(
|
|
139
|
+
function Q(n) {
|
|
140
|
+
d.handleSort(n.prop, n.order);
|
|
141
141
|
}
|
|
142
|
-
return d.getList(), (
|
|
143
|
-
const Y =
|
|
144
|
-
return
|
|
145
|
-
|
|
146
|
-
t(
|
|
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
147
|
ref_key: "queryFormRef",
|
|
148
|
-
ref:
|
|
149
|
-
model:
|
|
148
|
+
ref: E,
|
|
149
|
+
model: p.value,
|
|
150
150
|
inline: !0
|
|
151
151
|
}, {
|
|
152
152
|
default: o(() => [
|
|
153
|
-
t(
|
|
153
|
+
t(I, null, {
|
|
154
154
|
default: o(() => [
|
|
155
155
|
t(f, { span: 6 }, {
|
|
156
156
|
default: o(() => [
|
|
157
157
|
t(v, {
|
|
158
|
-
label:
|
|
158
|
+
label: n.$t("goodsSpu.shopId"),
|
|
159
159
|
prop: "shopId"
|
|
160
160
|
}, {
|
|
161
161
|
default: o(() => [
|
|
162
162
|
t(Y, {
|
|
163
|
-
modelValue:
|
|
164
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) =>
|
|
165
|
-
placeholder:
|
|
163
|
+
modelValue: p.value.shopId,
|
|
164
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => p.value.shopId = e),
|
|
165
|
+
placeholder: n.$t("goodsSpu.shopIdRequired"),
|
|
166
166
|
data: a(g).shopInfoBizDict.values,
|
|
167
167
|
filterable: ""
|
|
168
168
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -175,15 +175,15 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
175
175
|
t(f, { span: 6 }, {
|
|
176
176
|
default: o(() => [
|
|
177
177
|
t(v, {
|
|
178
|
-
label:
|
|
178
|
+
label: n.$t("goodsSpu.spuCode"),
|
|
179
179
|
prop: "spuCode"
|
|
180
180
|
}, {
|
|
181
181
|
default: o(() => [
|
|
182
|
-
t(
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue": l[1] || (l[1] = (e) =>
|
|
185
|
-
placeholder:
|
|
186
|
-
onKeyup: l[2] || (l[2] =
|
|
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
187
|
class: "!w-[203px]"
|
|
188
188
|
}, null, 8, ["modelValue", "placeholder"])
|
|
189
189
|
]),
|
|
@@ -195,15 +195,15 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
195
195
|
t(f, { span: 6 }, {
|
|
196
196
|
default: o(() => [
|
|
197
197
|
t(v, {
|
|
198
|
-
label:
|
|
199
|
-
prop: "
|
|
198
|
+
label: n.$t("goodsSpu.spuName"),
|
|
199
|
+
prop: "likeSpuName"
|
|
200
200
|
}, {
|
|
201
201
|
default: o(() => [
|
|
202
|
-
t(
|
|
203
|
-
modelValue:
|
|
204
|
-
"onUpdate:modelValue": l[3] || (l[3] = (e) =>
|
|
205
|
-
placeholder:
|
|
206
|
-
onKeyup: l[4] || (l[4] =
|
|
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
207
|
class: "!w-[203px]"
|
|
208
208
|
}, null, 8, ["modelValue", "placeholder"])
|
|
209
209
|
]),
|
|
@@ -216,20 +216,20 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
216
216
|
default: o(() => [
|
|
217
217
|
t(v, { class: "search-btn" }, {
|
|
218
218
|
default: o(() => [
|
|
219
|
-
t(
|
|
219
|
+
t(C, {
|
|
220
220
|
type: "primary",
|
|
221
221
|
onClick: l[5] || (l[5] = (e) => a(d).handleQuery())
|
|
222
222
|
}, {
|
|
223
223
|
default: o(() => [
|
|
224
|
-
|
|
224
|
+
m(s(n.$t("common.search")), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}),
|
|
228
|
-
t(
|
|
228
|
+
t(C, {
|
|
229
229
|
onClick: l[6] || (l[6] = (e) => a(d).resetQuery())
|
|
230
230
|
}, {
|
|
231
231
|
default: o(() => [
|
|
232
|
-
|
|
232
|
+
m(s(n.$t("common.reset")), 1)
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
})
|
|
@@ -246,32 +246,32 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["model"])
|
|
248
248
|
]),
|
|
249
|
-
t(
|
|
249
|
+
t(W, {
|
|
250
250
|
shadow: "never",
|
|
251
251
|
class: "table-container"
|
|
252
252
|
}, {
|
|
253
253
|
header: o(() => [
|
|
254
|
-
t(
|
|
254
|
+
t(I, null, {
|
|
255
255
|
default: o(() => [
|
|
256
256
|
t(f, { span: 17 }, {
|
|
257
257
|
default: o(() => [
|
|
258
|
-
|
|
258
|
+
_((r(), V(C, {
|
|
259
259
|
type: "primary",
|
|
260
|
-
onClick:
|
|
260
|
+
onClick: B
|
|
261
261
|
}, {
|
|
262
262
|
default: o(() => [
|
|
263
|
-
|
|
263
|
+
m(s(n.$t("common.add")), 1)
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
266
266
|
})), [
|
|
267
267
|
[b, ["goods:goods_spu:add"]]
|
|
268
268
|
]),
|
|
269
|
-
|
|
269
|
+
_((r(), V(C, {
|
|
270
270
|
type: "primary",
|
|
271
271
|
onClick: l[7] || (l[7] = (e) => a(d).deleteRecords())
|
|
272
272
|
}, {
|
|
273
273
|
default: o(() => [
|
|
274
|
-
|
|
274
|
+
m(s(n.$t("common.batchDelete")), 1)
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
})), [
|
|
@@ -285,9 +285,9 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
285
285
|
class: "container-float"
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
|
-
t(
|
|
289
|
-
modelValue: a(
|
|
290
|
-
"onUpdate:modelValue": l[8] || (l[8] = (e) =>
|
|
288
|
+
t(M, {
|
|
289
|
+
modelValue: a(w),
|
|
290
|
+
"onUpdate:modelValue": l[8] || (l[8] = (e) => P(w) ? w.value = e : w = e),
|
|
291
291
|
"label-name": "goods/goods-spu"
|
|
292
292
|
}, null, 8, ["modelValue"])
|
|
293
293
|
]),
|
|
@@ -298,40 +298,40 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
298
298
|
})
|
|
299
299
|
]),
|
|
300
300
|
footer: o(() => [
|
|
301
|
-
a(
|
|
301
|
+
a(y) > 0 ? (r(), V(J, {
|
|
302
302
|
key: 0,
|
|
303
|
-
total: a(
|
|
304
|
-
"onUpdate:total": l[9] || (l[9] = (e) =>
|
|
305
|
-
"current-page":
|
|
306
|
-
"onUpdate:currentPage": l[10] || (l[10] = (e) =>
|
|
307
|
-
"page-size":
|
|
308
|
-
"onUpdate:pageSize": l[11] || (l[11] = (e) =>
|
|
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
309
|
onPagination: l[12] || (l[12] = (e) => a(d).getList())
|
|
310
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
310
|
+
}, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
|
|
311
311
|
]),
|
|
312
312
|
default: o(() => [
|
|
313
|
-
t(
|
|
313
|
+
t(G, {
|
|
314
314
|
ref_key: "multipleTableRef",
|
|
315
|
-
ref:
|
|
315
|
+
ref: j,
|
|
316
316
|
"row-key": "spuId",
|
|
317
|
-
"list-loading": a(
|
|
318
|
-
data: a(
|
|
319
|
-
"table-label": a(
|
|
317
|
+
"list-loading": a(q),
|
|
318
|
+
data: a(A),
|
|
319
|
+
"table-label": a(w),
|
|
320
320
|
onSelectionChange: H,
|
|
321
321
|
onSortChange: Q
|
|
322
322
|
}, {
|
|
323
323
|
shopId: o((e) => [
|
|
324
|
-
|
|
324
|
+
i("span", null, s(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
325
325
|
]),
|
|
326
326
|
categoryId: o((e) => [
|
|
327
|
-
|
|
327
|
+
i("span", null, s(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
328
328
|
]),
|
|
329
329
|
picUrls: o((e) => [
|
|
330
|
-
|
|
331
|
-
t(
|
|
332
|
-
src: a(
|
|
330
|
+
i("span", null, [
|
|
331
|
+
t(O, {
|
|
332
|
+
src: a(D).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
333
333
|
"preview-src-list": [
|
|
334
|
-
a(
|
|
334
|
+
a(D).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
335
335
|
],
|
|
336
336
|
"preview-teleported": "",
|
|
337
337
|
"hide-on-click-modal": "",
|
|
@@ -340,61 +340,67 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
340
340
|
])
|
|
341
341
|
]),
|
|
342
342
|
shelf: o((e) => [
|
|
343
|
-
|
|
344
|
-
t(
|
|
343
|
+
i("span", null, [
|
|
344
|
+
t(T, {
|
|
345
345
|
modelValue: e.data.row.shelf,
|
|
346
|
-
"onUpdate:modelValue": (
|
|
347
|
-
onClick: (
|
|
346
|
+
"onUpdate:modelValue": (c) => e.data.row.shelf = c,
|
|
347
|
+
onClick: (c) => a(d).enableRecord(e.data.row, e.data.row.shelf)
|
|
348
348
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
349
349
|
])
|
|
350
350
|
]),
|
|
351
351
|
minPrice: o((e) => [
|
|
352
|
-
|
|
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
|
+
])
|
|
353
359
|
]),
|
|
354
360
|
specType: o((e) => [
|
|
355
|
-
|
|
361
|
+
i("span", null, s(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
356
362
|
]),
|
|
357
363
|
approvalStatus: o((e) => [
|
|
358
|
-
|
|
364
|
+
i("span", null, s(a(g).approvalStatusEnum.getEnumValue(
|
|
359
365
|
e.data.row.approvalStatus
|
|
360
366
|
)), 1)
|
|
361
367
|
]),
|
|
362
368
|
updateTime: o((e) => [
|
|
363
|
-
|
|
369
|
+
i("span", null, s(a(z).$moment.formatDate(
|
|
364
370
|
e.data.row.updateTime,
|
|
365
371
|
"YYYY-MM-DD HH:mm:ss"
|
|
366
372
|
)), 1)
|
|
367
373
|
]),
|
|
368
374
|
enable: o((e) => [
|
|
369
|
-
t(
|
|
375
|
+
t(T, {
|
|
370
376
|
modelValue: e.data.row.enable,
|
|
371
|
-
"onUpdate:modelValue": (
|
|
372
|
-
onChange: (
|
|
377
|
+
"onUpdate:modelValue": (c) => e.data.row.enable = c,
|
|
378
|
+
onChange: (c) => a(d).enableRecord(e.data.row, e.data.row.enable)
|
|
373
379
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
374
380
|
]),
|
|
375
381
|
operation: o((e) => [
|
|
376
|
-
|
|
382
|
+
_((r(), h("span", {
|
|
377
383
|
class: "el-button-color",
|
|
378
|
-
onClick: (
|
|
384
|
+
onClick: (c) => L(e.data.row)
|
|
379
385
|
}, [
|
|
380
|
-
|
|
381
|
-
], 8,
|
|
386
|
+
m(s(n.$t("common.edit")), 1)
|
|
387
|
+
], 8, ue)), [
|
|
382
388
|
[b, ["goods:goods_spu:update"]]
|
|
383
389
|
]),
|
|
384
|
-
|
|
390
|
+
_((r(), h("span", {
|
|
385
391
|
class: "el-button-color dropdown-left",
|
|
386
|
-
onClick: (
|
|
392
|
+
onClick: (c) => a(d).deleteRecord(e.data.row)
|
|
387
393
|
}, [
|
|
388
|
-
|
|
394
|
+
m(s(n.$t("common.delete")), 1)
|
|
389
395
|
], 8, pe)), [
|
|
390
396
|
[b, ["goods:goods_spu:delete"]]
|
|
391
397
|
]),
|
|
392
|
-
|
|
398
|
+
_((r(), h("span", {
|
|
393
399
|
class: "el-button-color dropdown-left",
|
|
394
|
-
onClick: (
|
|
400
|
+
onClick: (c) => F(e.data.row)
|
|
395
401
|
}, [
|
|
396
|
-
|
|
397
|
-
], 8,
|
|
402
|
+
m(s(n.$t("common.view")), 1)
|
|
403
|
+
], 8, de)), [
|
|
398
404
|
[b, ["goods:goods_spu:view"]]
|
|
399
405
|
])
|
|
400
406
|
]),
|
|
@@ -408,5 +414,5 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
408
414
|
}
|
|
409
415
|
});
|
|
410
416
|
export {
|
|
411
|
-
|
|
417
|
+
we as _
|
|
412
418
|
};
|