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,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { goodsSpuApi as
|
|
1
|
+
import { defineComponent as ee, getCurrentInstance as oe, ref as D, resolveComponent as p, resolveDirective as le, openBlock as r, createElementBlock as w, createElementVNode as m, createVNode as a, withCtx as l, unref as s, withKeys as P, createTextVNode as i, toDisplayString as n, withDirectives as b, createBlock as I, isRef as R, createCommentVNode as te, Fragment as z } from "vue";
|
|
2
|
+
import { ElMessage as j } from "element-plus";
|
|
3
|
+
import { useRouter as ae } from "vue-router";
|
|
4
|
+
import { useTableHooks as se, fileApi as E } from "jmash-core";
|
|
5
|
+
import { useI18n as ne } from "vue-i18n";
|
|
6
|
+
import { goodsSpuApi as q } from "./index.mjs";
|
|
7
7
|
import { D as g } from "./index-CKeHa-Cx.mjs";
|
|
8
|
-
const
|
|
8
|
+
const ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ ee({
|
|
9
9
|
__name: "shelfIndex",
|
|
10
|
-
setup(
|
|
11
|
-
const { t:
|
|
10
|
+
setup(ie) {
|
|
11
|
+
const { t: v } = ne(), k = ae(), { proxy: B } = oe(), d = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
14
|
shelf: "false"
|
|
15
15
|
}), {
|
|
16
|
-
tableHooks:
|
|
17
|
-
multipleTableRef:
|
|
18
|
-
queryFormRef:
|
|
19
|
-
listLoading:
|
|
20
|
-
tableData:
|
|
21
|
-
total:
|
|
22
|
-
} =
|
|
23
|
-
let
|
|
16
|
+
tableHooks: u,
|
|
17
|
+
multipleTableRef: $,
|
|
18
|
+
queryFormRef: L,
|
|
19
|
+
listLoading: H,
|
|
20
|
+
tableData: Q,
|
|
21
|
+
total: S
|
|
22
|
+
} = se(v, q, d);
|
|
23
|
+
let y = D([
|
|
24
24
|
{
|
|
25
25
|
label: "goodsSpu.shopId",
|
|
26
26
|
prop: "shopId",
|
|
@@ -119,51 +119,51 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
119
119
|
}
|
|
120
120
|
]);
|
|
121
121
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function Y() {
|
|
123
|
+
k.push({ path: "/rawgoods/goods-spu/edit" });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function A(t) {
|
|
126
|
+
k.push({
|
|
127
127
|
path: "/rawgoods/goods-spu/edit",
|
|
128
128
|
query: { spuId: t.spuId }
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function F(t) {
|
|
132
|
+
k.push({
|
|
133
133
|
path: "/rawgoods/goods-spu/info",
|
|
134
134
|
query: { spuId: t.spuId }
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
function K(t) {
|
|
138
|
-
|
|
138
|
+
u.selectionRows.value = t;
|
|
139
139
|
}
|
|
140
140
|
function M(t) {
|
|
141
|
-
|
|
141
|
+
u.handleSort(t.prop, t.order);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
message:
|
|
143
|
+
function G() {
|
|
144
|
+
if (u.selectionRows.value.length === 0) {
|
|
145
|
+
j({
|
|
146
|
+
message: v("goodsSpu.chooseShelf"),
|
|
147
147
|
type: "warning"
|
|
148
148
|
});
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const t =
|
|
152
|
-
|
|
151
|
+
const t = u.selectionRows.value.map((o) => o.spuId);
|
|
152
|
+
q.enable({ spuId: t }, !0).then((o) => {
|
|
153
153
|
var C;
|
|
154
|
-
o.status === 200 && (
|
|
155
|
-
message:
|
|
154
|
+
o.status === 200 && (j({
|
|
155
|
+
message: v("goodsSpu.successShelf") + o.data + v("common.stripData"),
|
|
156
156
|
type: "success"
|
|
157
|
-
}),
|
|
157
|
+
}), u.getList(), (C = $.value) == null || C.clearSelection());
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
return
|
|
161
|
-
const C = p("jmash-select"),
|
|
162
|
-
return
|
|
163
|
-
|
|
164
|
-
a(
|
|
160
|
+
return u.getList(), (t, o) => {
|
|
161
|
+
const C = p("jmash-select"), V = p("el-form-item"), f = p("el-col"), T = p("el-input"), _ = p("el-button"), N = p("el-row"), J = p("el-form"), O = p("jmash-column-select"), W = p("el-image"), U = p("el-switch"), X = p("jmash-table"), Z = p("jmash-pagination"), x = p("el-card"), h = le("hasPerm");
|
|
162
|
+
return r(), w("div", null, [
|
|
163
|
+
m("div", ue, [
|
|
164
|
+
a(J, {
|
|
165
165
|
ref_key: "queryFormRef",
|
|
166
|
-
ref:
|
|
166
|
+
ref: L,
|
|
167
167
|
model: d.value,
|
|
168
168
|
inline: !0
|
|
169
169
|
}, {
|
|
@@ -172,7 +172,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
172
172
|
default: l(() => [
|
|
173
173
|
a(f, { span: 6 }, {
|
|
174
174
|
default: l(() => [
|
|
175
|
-
a(
|
|
175
|
+
a(V, {
|
|
176
176
|
label: t.$t("goodsSpu.shopId"),
|
|
177
177
|
prop: "shopId"
|
|
178
178
|
}, {
|
|
@@ -192,16 +192,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
192
192
|
}),
|
|
193
193
|
a(f, { span: 6 }, {
|
|
194
194
|
default: l(() => [
|
|
195
|
-
a(
|
|
195
|
+
a(V, {
|
|
196
196
|
label: t.$t("goodsSpu.spuCode"),
|
|
197
197
|
prop: "spuCode"
|
|
198
198
|
}, {
|
|
199
199
|
default: l(() => [
|
|
200
|
-
a(
|
|
200
|
+
a(T, {
|
|
201
201
|
modelValue: d.value.spuCode,
|
|
202
202
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => d.value.spuCode = e),
|
|
203
203
|
placeholder: t.$t("goodsSpu.spuCode"),
|
|
204
|
-
onKeyup: o[2] || (o[2] =
|
|
204
|
+
onKeyup: o[2] || (o[2] = P((e) => s(u).handleQuery(), ["enter"])),
|
|
205
205
|
class: "!w-[203px]"
|
|
206
206
|
}, null, 8, ["modelValue", "placeholder"])
|
|
207
207
|
]),
|
|
@@ -212,16 +212,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
212
212
|
}),
|
|
213
213
|
a(f, { span: 6 }, {
|
|
214
214
|
default: l(() => [
|
|
215
|
-
a(
|
|
215
|
+
a(V, {
|
|
216
216
|
label: t.$t("goodsSpu.spuName"),
|
|
217
|
-
prop: "
|
|
217
|
+
prop: "likeSpuName"
|
|
218
218
|
}, {
|
|
219
219
|
default: l(() => [
|
|
220
|
-
a(
|
|
221
|
-
modelValue: d.value.
|
|
222
|
-
"onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.
|
|
220
|
+
a(T, {
|
|
221
|
+
modelValue: d.value.likeSpuName,
|
|
222
|
+
"onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.likeSpuName = e),
|
|
223
223
|
placeholder: t.$t("goodsSpu.spuName"),
|
|
224
|
-
onKeyup: o[4] || (o[4] =
|
|
224
|
+
onKeyup: o[4] || (o[4] = P((e) => s(u).handleQuery(), ["enter"])),
|
|
225
225
|
class: "!w-[203px]"
|
|
226
226
|
}, null, 8, ["modelValue", "placeholder"])
|
|
227
227
|
]),
|
|
@@ -232,22 +232,22 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
232
232
|
}),
|
|
233
233
|
a(f, { span: 6 }, {
|
|
234
234
|
default: l(() => [
|
|
235
|
-
a(
|
|
235
|
+
a(V, { class: "search-btn" }, {
|
|
236
236
|
default: l(() => [
|
|
237
|
-
a(
|
|
237
|
+
a(_, {
|
|
238
238
|
type: "primary",
|
|
239
|
-
onClick: o[5] || (o[5] = (e) => s(
|
|
239
|
+
onClick: o[5] || (o[5] = (e) => s(u).handleQuery())
|
|
240
240
|
}, {
|
|
241
241
|
default: l(() => [
|
|
242
|
-
|
|
242
|
+
i(n(t.$t("common.search")), 1)
|
|
243
243
|
]),
|
|
244
244
|
_: 1
|
|
245
245
|
}),
|
|
246
|
-
a(
|
|
247
|
-
onClick: o[6] || (o[6] = (e) => s(
|
|
246
|
+
a(_, {
|
|
247
|
+
onClick: o[6] || (o[6] = (e) => s(u).resetQuery())
|
|
248
248
|
}, {
|
|
249
249
|
default: l(() => [
|
|
250
|
-
|
|
250
|
+
i(n(t.$t("common.reset")), 1)
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
253
253
|
})
|
|
@@ -264,7 +264,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
264
264
|
_: 1
|
|
265
265
|
}, 8, ["model"])
|
|
266
266
|
]),
|
|
267
|
-
a(
|
|
267
|
+
a(x, {
|
|
268
268
|
shadow: "never",
|
|
269
269
|
class: "table-container"
|
|
270
270
|
}, {
|
|
@@ -273,34 +273,34 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
273
273
|
default: l(() => [
|
|
274
274
|
a(f, { span: 17 }, {
|
|
275
275
|
default: l(() => [
|
|
276
|
-
b((
|
|
276
|
+
b((r(), I(_, {
|
|
277
277
|
type: "primary",
|
|
278
|
-
onClick:
|
|
278
|
+
onClick: Y
|
|
279
279
|
}, {
|
|
280
280
|
default: l(() => [
|
|
281
|
-
|
|
281
|
+
i(n(t.$t("common.add")), 1)
|
|
282
282
|
]),
|
|
283
283
|
_: 1
|
|
284
284
|
})), [
|
|
285
285
|
[h, ["goods:goods_spu:add"]]
|
|
286
286
|
]),
|
|
287
|
-
b((
|
|
287
|
+
b((r(), I(_, {
|
|
288
288
|
type: "primary",
|
|
289
|
-
onClick: o[7] || (o[7] = (e) => s(
|
|
289
|
+
onClick: o[7] || (o[7] = (e) => s(u).deleteRecords())
|
|
290
290
|
}, {
|
|
291
291
|
default: l(() => [
|
|
292
|
-
|
|
292
|
+
i(n(t.$t("common.batchDelete")), 1)
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
})), [
|
|
296
296
|
[h, ["goods:goods_spu:delete"]]
|
|
297
297
|
]),
|
|
298
|
-
b((
|
|
298
|
+
b((r(), I(_, {
|
|
299
299
|
type: "primary",
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: G
|
|
301
301
|
}, {
|
|
302
302
|
default: l(() => [
|
|
303
|
-
|
|
303
|
+
i(n(t.$t("goodsSpu.batchShelf")), 1)
|
|
304
304
|
]),
|
|
305
305
|
_: 1
|
|
306
306
|
})), [
|
|
@@ -314,9 +314,9 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
314
314
|
class: "container-float"
|
|
315
315
|
}, {
|
|
316
316
|
default: l(() => [
|
|
317
|
-
a(
|
|
318
|
-
modelValue: s(
|
|
319
|
-
"onUpdate:modelValue": o[8] || (o[8] = (e) =>
|
|
317
|
+
a(O, {
|
|
318
|
+
modelValue: s(y),
|
|
319
|
+
"onUpdate:modelValue": o[8] || (o[8] = (e) => R(y) ? y.value = e : y = e),
|
|
320
320
|
"label-name": "goods/goods-spu"
|
|
321
321
|
}, null, 8, ["modelValue"])
|
|
322
322
|
]),
|
|
@@ -327,40 +327,40 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
327
327
|
})
|
|
328
328
|
]),
|
|
329
329
|
footer: l(() => [
|
|
330
|
-
s(
|
|
330
|
+
s(S) > 0 ? (r(), I(Z, {
|
|
331
331
|
key: 0,
|
|
332
|
-
total: s(
|
|
333
|
-
"onUpdate:total": o[9] || (o[9] = (e) =>
|
|
332
|
+
total: s(S),
|
|
333
|
+
"onUpdate:total": o[9] || (o[9] = (e) => R(S) ? S.value = e : null),
|
|
334
334
|
"current-page": d.value.curPage,
|
|
335
335
|
"onUpdate:currentPage": o[10] || (o[10] = (e) => d.value.curPage = e),
|
|
336
336
|
"page-size": d.value.pageSize,
|
|
337
337
|
"onUpdate:pageSize": o[11] || (o[11] = (e) => d.value.pageSize = e),
|
|
338
|
-
onPagination: o[12] || (o[12] = (e) => s(
|
|
339
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
338
|
+
onPagination: o[12] || (o[12] = (e) => s(u).getList())
|
|
339
|
+
}, null, 8, ["total", "current-page", "page-size"])) : te("", !0)
|
|
340
340
|
]),
|
|
341
341
|
default: l(() => [
|
|
342
|
-
a(
|
|
342
|
+
a(X, {
|
|
343
343
|
ref_key: "multipleTableRef",
|
|
344
|
-
ref:
|
|
344
|
+
ref: $,
|
|
345
345
|
"row-key": "spuId",
|
|
346
|
-
"list-loading": s(
|
|
347
|
-
data: s(
|
|
348
|
-
"table-label": s(
|
|
346
|
+
"list-loading": s(H),
|
|
347
|
+
data: s(Q),
|
|
348
|
+
"table-label": s(y),
|
|
349
349
|
onSelectionChange: K,
|
|
350
350
|
onSortChange: M
|
|
351
351
|
}, {
|
|
352
352
|
shopId: l((e) => [
|
|
353
|
-
|
|
353
|
+
m("span", null, n(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
354
354
|
]),
|
|
355
355
|
categoryId: l((e) => [
|
|
356
|
-
|
|
356
|
+
m("span", null, n(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
357
357
|
]),
|
|
358
358
|
picUrls: l((e) => [
|
|
359
|
-
|
|
360
|
-
a(
|
|
361
|
-
src: s(
|
|
359
|
+
m("span", null, [
|
|
360
|
+
a(W, {
|
|
361
|
+
src: s(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
362
362
|
"preview-src-list": [
|
|
363
|
-
s(
|
|
363
|
+
s(E).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
364
364
|
],
|
|
365
365
|
"preview-teleported": "",
|
|
366
366
|
"hide-on-click-modal": "",
|
|
@@ -369,27 +369,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
369
369
|
])
|
|
370
370
|
]),
|
|
371
371
|
shelf: l((e) => [
|
|
372
|
-
|
|
372
|
+
m("span", null, [
|
|
373
373
|
a(U, {
|
|
374
374
|
modelValue: e.data.row.shelf,
|
|
375
|
-
"onUpdate:modelValue": (
|
|
376
|
-
onClick: (
|
|
375
|
+
"onUpdate:modelValue": (c) => e.data.row.shelf = c,
|
|
376
|
+
onClick: (c) => s(u).enableRecord(e.data.row, e.data.row.shelf)
|
|
377
377
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
378
378
|
])
|
|
379
379
|
]),
|
|
380
380
|
minPrice: l((e) => [
|
|
381
|
-
|
|
381
|
+
m("span", null, [
|
|
382
|
+
e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
|
|
383
|
+
i(n(e.data.row.minPrice), 1)
|
|
384
|
+
], 64)) : (r(), w(z, { key: 1 }, [
|
|
385
|
+
i(n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
|
|
386
|
+
], 64))
|
|
387
|
+
])
|
|
382
388
|
]),
|
|
383
389
|
specType: l((e) => [
|
|
384
|
-
|
|
390
|
+
m("span", null, n(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
385
391
|
]),
|
|
386
392
|
approvalStatus: l((e) => [
|
|
387
|
-
|
|
393
|
+
m("span", null, n(s(g).approvalStatusEnum.getEnumValue(
|
|
388
394
|
e.data.row.approvalStatus
|
|
389
395
|
)), 1)
|
|
390
396
|
]),
|
|
391
397
|
updateTime: l((e) => [
|
|
392
|
-
|
|
398
|
+
m("span", null, n(s(B).$moment.formatDate(
|
|
393
399
|
e.data.row.updateTime,
|
|
394
400
|
"YYYY-MM-DD HH:mm:ss"
|
|
395
401
|
)), 1)
|
|
@@ -397,33 +403,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
397
403
|
enable: l((e) => [
|
|
398
404
|
a(U, {
|
|
399
405
|
modelValue: e.data.row.enable,
|
|
400
|
-
"onUpdate:modelValue": (
|
|
401
|
-
onChange: (
|
|
406
|
+
"onUpdate:modelValue": (c) => e.data.row.enable = c,
|
|
407
|
+
onChange: (c) => s(u).enableRecord(e.data.row, e.data.row.enable)
|
|
402
408
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
403
409
|
]),
|
|
404
410
|
operation: l((e) => [
|
|
405
|
-
b((
|
|
411
|
+
b((r(), w("span", {
|
|
406
412
|
class: "el-button-color",
|
|
407
|
-
onClick: (
|
|
413
|
+
onClick: (c) => A(e.data.row)
|
|
408
414
|
}, [
|
|
409
|
-
|
|
410
|
-
], 8,
|
|
415
|
+
i(n(t.$t("common.edit")), 1)
|
|
416
|
+
], 8, pe)), [
|
|
411
417
|
[h, ["goods:goods_spu:update"]]
|
|
412
418
|
]),
|
|
413
|
-
b((
|
|
419
|
+
b((r(), w("span", {
|
|
414
420
|
class: "el-button-color dropdown-left",
|
|
415
|
-
onClick: (
|
|
421
|
+
onClick: (c) => s(u).deleteRecord(e.data.row)
|
|
416
422
|
}, [
|
|
417
|
-
|
|
418
|
-
], 8,
|
|
423
|
+
i(n(t.$t("common.delete")), 1)
|
|
424
|
+
], 8, de)), [
|
|
419
425
|
[h, ["goods:goods_spu:delete"]]
|
|
420
426
|
]),
|
|
421
|
-
b((
|
|
427
|
+
b((r(), w("span", {
|
|
422
428
|
class: "el-button-color dropdown-left",
|
|
423
|
-
onClick: (
|
|
429
|
+
onClick: (c) => F(e.data.row)
|
|
424
430
|
}, [
|
|
425
|
-
|
|
426
|
-
], 8,
|
|
431
|
+
i(n(t.$t("common.view")), 1)
|
|
432
|
+
], 8, re)), [
|
|
427
433
|
[h, ["goods:goods_spu:view"]]
|
|
428
434
|
])
|
|
429
435
|
]),
|
|
@@ -437,5 +443,5 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
437
443
|
}
|
|
438
444
|
});
|
|
439
445
|
export {
|
|
440
|
-
|
|
446
|
+
ye as _
|
|
441
447
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as te, ref as b, computed as se, watch as D, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as k, unref as O, createVNode as o, withCtx as a, createCommentVNode as I, renderList as y, createElementVNode as S, toDisplayString as Y, createTextVNode as w, createBlock as P } from "vue";
|
|
2
2
|
import { C as E, D as ue, S as H, a as ne } from "./index-CKeHa-Cx.mjs";
|
|
3
|
-
import { s as de, _ as re } from "./skuTable-
|
|
3
|
+
import { s as de, _ as re } from "./skuTable-Ck7bJzYP.mjs";
|
|
4
4
|
const pe = { key: 0 }, ce = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "w-full"
|
|
@@ -162,6 +162,7 @@ const pe = { key: 0 }, ce = {
|
|
|
162
162
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => r.value.salePrice = u),
|
|
163
163
|
precision: 2,
|
|
164
164
|
step: 0,
|
|
165
|
+
min: 0.01,
|
|
165
166
|
placeholder: e.$t("goodsSpu.salePriceRequired"),
|
|
166
167
|
class: "w-full",
|
|
167
168
|
controls: !1
|
|
@@ -184,6 +185,7 @@ const pe = { key: 0 }, ce = {
|
|
|
184
185
|
"onUpdate:modelValue": l[1] || (l[1] = (u) => r.value.marketPrice = u),
|
|
185
186
|
precision: 2,
|
|
186
187
|
step: 0,
|
|
188
|
+
min: 0.01,
|
|
187
189
|
placeholder: e.$t("goodsSpu.marketPriceRequired"),
|
|
188
190
|
class: "w-full",
|
|
189
191
|
controls: !1
|
|
@@ -206,6 +208,7 @@ const pe = { key: 0 }, ce = {
|
|
|
206
208
|
"onUpdate:modelValue": l[2] || (l[2] = (u) => r.value.costPrice = u),
|
|
207
209
|
precision: 2,
|
|
208
210
|
step: 0,
|
|
211
|
+
min: 0.01,
|
|
209
212
|
placeholder: e.$t("goodsSpu.costPriceRequired"),
|
|
210
213
|
class: "w-full",
|
|
211
214
|
controls: !1
|
|
@@ -229,7 +232,8 @@ const pe = { key: 0 }, ce = {
|
|
|
229
232
|
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
230
233
|
class: "w-full",
|
|
231
234
|
controls: !1,
|
|
232
|
-
precision: 0
|
|
235
|
+
precision: 0,
|
|
236
|
+
min: 0
|
|
233
237
|
}, null, 8, ["modelValue", "placeholder"])
|
|
234
238
|
]),
|
|
235
239
|
_: 1
|
|
@@ -249,7 +253,8 @@ const pe = { key: 0 }, ce = {
|
|
|
249
253
|
"onUpdate:modelValue": l[4] || (l[4] = (u) => r.value.weight = u),
|
|
250
254
|
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
251
255
|
class: "w-full",
|
|
252
|
-
controls: !1
|
|
256
|
+
controls: !1,
|
|
257
|
+
min: 0
|
|
253
258
|
}, null, 8, ["modelValue", "placeholder"])
|
|
254
259
|
]),
|
|
255
260
|
_: 1
|
|
@@ -269,7 +274,8 @@ const pe = { key: 0 }, ce = {
|
|
|
269
274
|
"onUpdate:modelValue": l[5] || (l[5] = (u) => r.value.volume = u),
|
|
270
275
|
controls: !1,
|
|
271
276
|
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
272
|
-
class: "w-full"
|
|
277
|
+
class: "w-full",
|
|
278
|
+
min: 0
|
|
273
279
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
280
|
]),
|
|
275
281
|
_: 1
|
|
@@ -419,7 +425,7 @@ const pe = { key: 0 }, ce = {
|
|
|
419
425
|
], 64);
|
|
420
426
|
};
|
|
421
427
|
}
|
|
422
|
-
}), Se = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-
|
|
428
|
+
}), Se = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-d3b23fe5"]]);
|
|
423
429
|
export {
|
|
424
430
|
Se as default
|
|
425
431
|
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { defineComponent as A, ref as C, computed as T, watch as z, resolveComponent as V, openBlock as w, createElementBlock as U, Fragment as x, createElementVNode as f, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as B, renderList as O, createBlock as q, toDisplayString as $, unref as F } from "vue";
|
|
2
2
|
import { D as M } from "./index-CKeHa-Cx.mjs";
|
|
3
|
-
|
|
3
|
+
const G = (n, g) => {
|
|
4
|
+
const s = n.__vccOpts || n;
|
|
5
|
+
for (const [r, _] of g)
|
|
6
|
+
s[r] = _;
|
|
7
|
+
return s;
|
|
8
|
+
};
|
|
9
|
+
function K(n, g = [], s) {
|
|
4
10
|
const { optionValue: r = "id", optionText: _ = "name" } = s || {}, k = [];
|
|
5
11
|
let b = 0;
|
|
6
|
-
const I = {}, S =
|
|
12
|
+
const I = {}, S = H(n);
|
|
7
13
|
if (n.length === 0) return k;
|
|
8
14
|
n.forEach((v) => {
|
|
9
15
|
const { specValueList: o } = v;
|
|
@@ -36,7 +42,7 @@ function G(n, g = [], s) {
|
|
|
36
42
|
}
|
|
37
43
|
return k;
|
|
38
44
|
}
|
|
39
|
-
function
|
|
45
|
+
function H(n) {
|
|
40
46
|
const g = [];
|
|
41
47
|
for (let s = n.length - 1; s >= 0; s--)
|
|
42
48
|
n[s + 1] && n[s + 1].specValueList ? g[s] = n[s + 1].specValueList.length * g[s + 1] || 1 : g[s] = 1;
|
|
@@ -45,10 +51,10 @@ function K(n) {
|
|
|
45
51
|
function D(n) {
|
|
46
52
|
return Array.from(new Set(n));
|
|
47
53
|
}
|
|
48
|
-
function
|
|
54
|
+
function J(n, g) {
|
|
49
55
|
return n = D(n), g = D(g), n.concat(g).filter((s) => !(n.includes(s) && g.includes(s)));
|
|
50
56
|
}
|
|
51
|
-
const
|
|
57
|
+
const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X = { class: "right-dis" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, te = { key: 0 }, oe = { key: 1 }, se = /* @__PURE__ */ A({
|
|
52
58
|
__name: "skuTable",
|
|
53
59
|
props: {
|
|
54
60
|
specData: {
|
|
@@ -79,7 +85,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
79
85
|
volume: 0,
|
|
80
86
|
stock: 0
|
|
81
87
|
}), r = C([]), _ = g, k = n, b = T(() => {
|
|
82
|
-
let o =
|
|
88
|
+
let o = K(k.specData, [], {}).map((u) => ({
|
|
83
89
|
specValues: u.specs,
|
|
84
90
|
specIds: u.specs.reduce(
|
|
85
91
|
(c, i, e) => `${c}${i.specId}-${i.specValueId}${e === u.specs.length - 1 ? "" : "_"}`,
|
|
@@ -177,7 +183,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
177
183
|
}
|
|
178
184
|
);
|
|
179
185
|
function I(o, t) {
|
|
180
|
-
return o = o.map((u) => u.specIds), t = t.map((u) => u.specIds),
|
|
186
|
+
return o = o.map((u) => u.specIds), t = t.map((u) => u.specIds), J(o, t);
|
|
181
187
|
}
|
|
182
188
|
function S() {
|
|
183
189
|
r.value.forEach((o) => {
|
|
@@ -190,8 +196,8 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
190
196
|
return (o, t) => {
|
|
191
197
|
const u = V("Setting"), c = V("el-icon"), i = V("el-input-number"), e = V("el-tooltip"), h = V("el-button"), m = V("el-table-column"), P = V("jmash-single-image-upload"), E = V("el-input"), L = V("el-switch"), j = V("el-table");
|
|
192
198
|
return w(), U(x, null, [
|
|
193
|
-
n.isSettingShow ? (w(), U("div",
|
|
194
|
-
f("div",
|
|
199
|
+
n.isSettingShow ? (w(), U("div", Q, [
|
|
200
|
+
f("div", R, [
|
|
195
201
|
a(c, null, {
|
|
196
202
|
default: d(() => [
|
|
197
203
|
a(u)
|
|
@@ -200,7 +206,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
200
206
|
}),
|
|
201
207
|
t[6] || (t[6] = y(" 批量设置 "))
|
|
202
208
|
]),
|
|
203
|
-
f("span",
|
|
209
|
+
f("span", W, [
|
|
204
210
|
a(e, {
|
|
205
211
|
class: "box-item",
|
|
206
212
|
effect: "dark",
|
|
@@ -220,7 +226,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
220
226
|
_: 1
|
|
221
227
|
})
|
|
222
228
|
]),
|
|
223
|
-
f("span",
|
|
229
|
+
f("span", X, [
|
|
224
230
|
a(e, {
|
|
225
231
|
class: "box-item",
|
|
226
232
|
effect: "dark",
|
|
@@ -240,7 +246,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
240
246
|
_: 1
|
|
241
247
|
})
|
|
242
248
|
]),
|
|
243
|
-
f("span",
|
|
249
|
+
f("span", Y, [
|
|
244
250
|
a(e, {
|
|
245
251
|
class: "box-item",
|
|
246
252
|
effect: "dark",
|
|
@@ -260,7 +266,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
260
266
|
_: 1
|
|
261
267
|
})
|
|
262
268
|
]),
|
|
263
|
-
f("span",
|
|
269
|
+
f("span", Z, [
|
|
264
270
|
a(e, {
|
|
265
271
|
class: "box-item",
|
|
266
272
|
effect: "dark",
|
|
@@ -280,7 +286,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
280
286
|
_: 1
|
|
281
287
|
})
|
|
282
288
|
]),
|
|
283
|
-
f("span",
|
|
289
|
+
f("span", ee, [
|
|
284
290
|
a(e, {
|
|
285
291
|
class: "box-item",
|
|
286
292
|
effect: "dark",
|
|
@@ -300,7 +306,7 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
300
306
|
_: 1
|
|
301
307
|
})
|
|
302
308
|
]),
|
|
303
|
-
f("span",
|
|
309
|
+
f("span", le, [
|
|
304
310
|
a(e, {
|
|
305
311
|
class: "box-item",
|
|
306
312
|
effect: "dark",
|
|
@@ -504,12 +510,12 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
504
510
|
width: "80"
|
|
505
511
|
}, {
|
|
506
512
|
default: d((l) => [
|
|
507
|
-
n.isSettingShow ? (w(), U("span",
|
|
513
|
+
n.isSettingShow ? (w(), U("span", te, [
|
|
508
514
|
a(L, {
|
|
509
515
|
modelValue: l.row.status,
|
|
510
516
|
"onUpdate:modelValue": (p) => l.row.status = p
|
|
511
517
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
512
|
-
])) : (w(), U("span",
|
|
518
|
+
])) : (w(), U("span", oe, $(F(M).shelfDict.getValue(l.row.status)), 1))
|
|
513
519
|
]),
|
|
514
520
|
_: 1
|
|
515
521
|
})
|
|
@@ -519,17 +525,12 @@ const J = { key: 0 }, Q = { class: "title-set" }, R = { class: "right-dis" }, W
|
|
|
519
525
|
], 64);
|
|
520
526
|
};
|
|
521
527
|
}
|
|
522
|
-
}),
|
|
523
|
-
const s = n.__vccOpts || n;
|
|
524
|
-
for (const [r, _] of g)
|
|
525
|
-
s[r] = _;
|
|
526
|
-
return s;
|
|
527
|
-
}, ae = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-28216104"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
528
|
+
}), ae = /* @__PURE__ */ G(se, [["__scopeId", "data-v-28216104"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
528
529
|
__proto__: null,
|
|
529
530
|
default: ae
|
|
530
531
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
531
532
|
export {
|
|
532
|
-
|
|
533
|
+
G as _,
|
|
533
534
|
ce as a,
|
|
534
535
|
ae as s
|
|
535
536
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-28216104]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-
|
|
1
|
+
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-28216104]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
|