xyvcard-goods 0.0.7 → 0.0.9
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-F3GtuNeX.mjs → approveFailIndex-DJf9bHab.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +39 -39
- package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +59 -59
- package/dist/edit-D37yka6Z.mjs +470 -0
- package/dist/{index-D5_GsXR7.mjs → index-CKeHa-Cx.mjs} +24 -27
- package/dist/{index-kGlE0ywA.mjs → index-vcmJ06-Y.mjs} +136 -136
- package/dist/index.mjs +8 -37
- package/dist/{info-kiOShGr4.mjs → info-CPZykxS1.mjs} +37 -40
- package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +94 -94
- package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +18 -18
- package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-BSlT4TYd.mjs} +81 -76
- package/dist/skuTable-DYmQYXk3.mjs +535 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -2
- package/dts/api/goods-spu/types.d.ts +6 -5
- package/dts/constant.d.ts +7 -7
- package/dts/router/index.d.ts +2 -2
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +10 -1
- package/package.json +3 -3
- package/dist/edit-C3imnLUq.mjs +0 -600
- package/dist/skuTable-8oPw0DhV.mjs +0 -611
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as i, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as a, withKeys as P, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as R, createCommentVNode as oe } from "vue";
|
|
2
2
|
import { ElMessage as z } from "element-plus";
|
|
3
3
|
import { useRouter as le } from "vue-router";
|
|
4
4
|
import { useTableHooks as te, fileApi as j } from "jmash-core";
|
|
5
5
|
import { useI18n as ae } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as E } from "./index.mjs";
|
|
7
|
-
import { C as se, D as g } from "./index-
|
|
8
|
-
const ne = { class: "
|
|
7
|
+
import { C as se, D as g } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be = /* @__PURE__ */ Z({
|
|
9
9
|
__name: "saleIndex",
|
|
10
|
-
setup(
|
|
11
|
-
const { t:
|
|
10
|
+
setup(re) {
|
|
11
|
+
const { t: v } = ae(), T = le(), { proxy: A } = x(), r = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
14
|
shelf: "true",
|
|
15
|
-
approvalStatus: se.
|
|
15
|
+
approvalStatus: se.APPROVAL_PASS
|
|
16
16
|
}), {
|
|
17
17
|
tableHooks: n,
|
|
18
18
|
multipleTableRef: $,
|
|
19
|
-
queryFormRef:
|
|
19
|
+
queryFormRef: B,
|
|
20
20
|
listLoading: L,
|
|
21
|
-
tableData:
|
|
22
|
-
total:
|
|
23
|
-
} = te(
|
|
21
|
+
tableData: q,
|
|
22
|
+
total: _
|
|
23
|
+
} = te(v, E, r);
|
|
24
24
|
let h = D([
|
|
25
25
|
{
|
|
26
26
|
label: "goodsSpu.shopId",
|
|
27
27
|
prop: "shopId",
|
|
28
28
|
slotName: "shopId",
|
|
29
29
|
columnType: "slot",
|
|
30
|
-
width: "
|
|
30
|
+
width: "250",
|
|
31
31
|
isColumn: !0
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
label: "goodsSpu.spuName",
|
|
35
35
|
prop: "spuName",
|
|
36
|
-
width: "
|
|
36
|
+
width: "200",
|
|
37
37
|
isColumn: !0
|
|
38
38
|
},
|
|
39
39
|
{
|
|
@@ -55,7 +55,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
55
55
|
{
|
|
56
56
|
label: "goodsSpu.price",
|
|
57
57
|
prop: "minPrice",
|
|
58
|
-
width: "
|
|
58
|
+
width: "120",
|
|
59
59
|
sortable: "custom",
|
|
60
60
|
slotName: "minPrice",
|
|
61
61
|
columnType: "slot",
|
|
@@ -64,7 +64,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
64
64
|
{
|
|
65
65
|
label: "goodsSpu.spuCode",
|
|
66
66
|
prop: "spuCode",
|
|
67
|
-
width: "
|
|
67
|
+
width: "120",
|
|
68
68
|
sortable: "custom",
|
|
69
69
|
isColumn: !0
|
|
70
70
|
},
|
|
@@ -78,7 +78,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
78
78
|
{
|
|
79
79
|
label: "goodsSpu.specType",
|
|
80
80
|
prop: "specType",
|
|
81
|
-
width: "
|
|
81
|
+
width: "120",
|
|
82
82
|
slotName: "specType",
|
|
83
83
|
columnType: "slot",
|
|
84
84
|
sortable: "custom",
|
|
@@ -87,7 +87,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
87
87
|
{
|
|
88
88
|
label: "goodsSpu.shelf",
|
|
89
89
|
prop: "shelf",
|
|
90
|
-
width: "
|
|
90
|
+
width: "120",
|
|
91
91
|
slotName: "shelf",
|
|
92
92
|
columnType: "slot",
|
|
93
93
|
sortable: "custom",
|
|
@@ -96,7 +96,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
96
96
|
{
|
|
97
97
|
label: "goodsSpu.approvalStatus",
|
|
98
98
|
prop: "approvalStatus",
|
|
99
|
-
width: "
|
|
99
|
+
width: "120",
|
|
100
100
|
slotName: "approvalStatus",
|
|
101
101
|
columnType: "slot",
|
|
102
102
|
isColumn: !0
|
|
@@ -120,45 +120,45 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
120
120
|
}
|
|
121
121
|
]);
|
|
122
122
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
123
|
-
function
|
|
123
|
+
function H() {
|
|
124
124
|
T.push({ path: "/rawgoods/goods-spu/edit" });
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Q(s) {
|
|
127
127
|
T.push({
|
|
128
128
|
path: "/rawgoods/goods-spu/info",
|
|
129
|
-
query: { spuId:
|
|
129
|
+
query: { spuId: s.spuId }
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
n.selectionRows.value =
|
|
132
|
+
function Y(s) {
|
|
133
|
+
n.selectionRows.value = s;
|
|
134
134
|
}
|
|
135
|
-
function K(
|
|
136
|
-
n.handleSort(
|
|
135
|
+
function K(s) {
|
|
136
|
+
n.handleSort(s.prop, s.order);
|
|
137
137
|
}
|
|
138
138
|
function M() {
|
|
139
139
|
if (n.selectionRows.value.length === 0) {
|
|
140
140
|
z({
|
|
141
|
-
message:
|
|
141
|
+
message: v("goodsSpu.chooseShelf"),
|
|
142
142
|
type: "warning"
|
|
143
143
|
});
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
message:
|
|
146
|
+
const s = n.selectionRows.value.map((o) => o.spuId);
|
|
147
|
+
E.enable({ spuId: s }, !1).then((o) => {
|
|
148
|
+
var S;
|
|
149
|
+
o.status === 200 && z({
|
|
150
|
+
message: v("goodsSpu.successOffShelf") + o.data + v("common.stripData"),
|
|
151
151
|
type: "success"
|
|
152
|
-
}), n.getList(), (
|
|
152
|
+
}), n.getList(), (S = $.value) == null || S.clearSelection();
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
return n.getList(), (
|
|
156
|
-
const
|
|
157
|
-
return
|
|
158
|
-
d("div",
|
|
159
|
-
t(
|
|
155
|
+
return n.getList(), (s, o) => {
|
|
156
|
+
const S = p("jmash-select"), C = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), O = p("el-form"), F = p("jmash-column-select"), G = p("el-image"), U = p("el-switch"), J = p("jmash-table"), W = p("jmash-pagination"), X = p("el-card"), w = ee("hasPerm");
|
|
157
|
+
return i(), I("div", null, [
|
|
158
|
+
d("div", ne, [
|
|
159
|
+
t(O, {
|
|
160
160
|
ref_key: "queryFormRef",
|
|
161
|
-
ref:
|
|
161
|
+
ref: B,
|
|
162
162
|
model: r.value,
|
|
163
163
|
inline: !0
|
|
164
164
|
}, {
|
|
@@ -167,16 +167,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
167
167
|
default: l(() => [
|
|
168
168
|
t(f, { span: 6 }, {
|
|
169
169
|
default: l(() => [
|
|
170
|
-
t(
|
|
171
|
-
label:
|
|
170
|
+
t(C, {
|
|
171
|
+
label: s.$t("goodsSpu.shopId"),
|
|
172
172
|
prop: "shopId"
|
|
173
173
|
}, {
|
|
174
174
|
default: l(() => [
|
|
175
|
-
t(
|
|
175
|
+
t(S, {
|
|
176
176
|
modelValue: r.value.shopId,
|
|
177
177
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => r.value.shopId = e),
|
|
178
|
-
placeholder:
|
|
179
|
-
data:
|
|
178
|
+
placeholder: s.$t("goodsSpu.shopIdRequired"),
|
|
179
|
+
data: a(g).shopInfoBizDict.values,
|
|
180
180
|
filterable: ""
|
|
181
181
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
182
182
|
]),
|
|
@@ -187,16 +187,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
187
187
|
}),
|
|
188
188
|
t(f, { span: 6 }, {
|
|
189
189
|
default: l(() => [
|
|
190
|
-
t(
|
|
191
|
-
label:
|
|
190
|
+
t(C, {
|
|
191
|
+
label: s.$t("goodsSpu.spuCode"),
|
|
192
192
|
prop: "spuCode"
|
|
193
193
|
}, {
|
|
194
194
|
default: l(() => [
|
|
195
195
|
t(N, {
|
|
196
196
|
modelValue: r.value.spuCode,
|
|
197
197
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => r.value.spuCode = e),
|
|
198
|
-
placeholder:
|
|
199
|
-
onKeyup: o[2] || (o[2] =
|
|
198
|
+
placeholder: s.$t("goodsSpu.spuCode"),
|
|
199
|
+
onKeyup: o[2] || (o[2] = P((e) => a(n).handleQuery(), ["enter"])),
|
|
200
200
|
class: "!w-[203px]"
|
|
201
201
|
}, null, 8, ["modelValue", "placeholder"])
|
|
202
202
|
]),
|
|
@@ -207,16 +207,16 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
207
207
|
}),
|
|
208
208
|
t(f, { span: 6 }, {
|
|
209
209
|
default: l(() => [
|
|
210
|
-
t(
|
|
211
|
-
label:
|
|
210
|
+
t(C, {
|
|
211
|
+
label: s.$t("goodsSpu.spuName"),
|
|
212
212
|
prop: "spuName"
|
|
213
213
|
}, {
|
|
214
214
|
default: l(() => [
|
|
215
215
|
t(N, {
|
|
216
216
|
modelValue: r.value.spuName,
|
|
217
217
|
"onUpdate:modelValue": o[3] || (o[3] = (e) => r.value.spuName = e),
|
|
218
|
-
placeholder:
|
|
219
|
-
onKeyup: o[4] || (o[4] =
|
|
218
|
+
placeholder: s.$t("goodsSpu.spuName"),
|
|
219
|
+
onKeyup: o[4] || (o[4] = P((e) => a(n).handleQuery(), ["enter"])),
|
|
220
220
|
class: "!w-[203px]"
|
|
221
221
|
}, null, 8, ["modelValue", "placeholder"])
|
|
222
222
|
]),
|
|
@@ -227,22 +227,22 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
227
227
|
}),
|
|
228
228
|
t(f, { span: 6 }, {
|
|
229
229
|
default: l(() => [
|
|
230
|
-
t(
|
|
230
|
+
t(C, { class: "search-btn" }, {
|
|
231
231
|
default: l(() => [
|
|
232
232
|
t(b, {
|
|
233
233
|
type: "primary",
|
|
234
|
-
onClick: o[5] || (o[5] = (e) =>
|
|
234
|
+
onClick: o[5] || (o[5] = (e) => a(n).handleQuery())
|
|
235
235
|
}, {
|
|
236
236
|
default: l(() => [
|
|
237
|
-
c(u(
|
|
237
|
+
c(u(s.$t("common.search")), 1)
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}),
|
|
241
241
|
t(b, {
|
|
242
|
-
onClick: o[6] || (o[6] = (e) =>
|
|
242
|
+
onClick: o[6] || (o[6] = (e) => a(n).resetQuery())
|
|
243
243
|
}, {
|
|
244
244
|
default: l(() => [
|
|
245
|
-
c(u(
|
|
245
|
+
c(u(s.$t("common.reset")), 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 1
|
|
248
248
|
})
|
|
@@ -268,34 +268,34 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
268
268
|
default: l(() => [
|
|
269
269
|
t(f, { span: 17 }, {
|
|
270
270
|
default: l(() => [
|
|
271
|
-
y((
|
|
271
|
+
y((i(), V(b, {
|
|
272
272
|
type: "primary",
|
|
273
|
-
onClick:
|
|
273
|
+
onClick: H
|
|
274
274
|
}, {
|
|
275
275
|
default: l(() => [
|
|
276
|
-
c(u(
|
|
276
|
+
c(u(s.$t("common.add")), 1)
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
279
|
})), [
|
|
280
280
|
[w, ["goods:goods_spu:add"]]
|
|
281
281
|
]),
|
|
282
|
-
y((
|
|
282
|
+
y((i(), V(b, {
|
|
283
283
|
type: "primary",
|
|
284
|
-
onClick: o[7] || (o[7] = (e) =>
|
|
284
|
+
onClick: o[7] || (o[7] = (e) => a(n).deleteRecords())
|
|
285
285
|
}, {
|
|
286
286
|
default: l(() => [
|
|
287
|
-
c(u(
|
|
287
|
+
c(u(s.$t("common.batchDelete")), 1)
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
})), [
|
|
291
291
|
[w, ["goods:goods_spu:delete"]]
|
|
292
292
|
]),
|
|
293
|
-
y((
|
|
293
|
+
y((i(), V(b, {
|
|
294
294
|
type: "primary",
|
|
295
295
|
onClick: M
|
|
296
296
|
}, {
|
|
297
297
|
default: l(() => [
|
|
298
|
-
c(u(
|
|
298
|
+
c(u(s.$t("goodsSpu.batchOffShelf")), 1)
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
301
|
})), [
|
|
@@ -309,9 +309,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
309
309
|
class: "container-float"
|
|
310
310
|
}, {
|
|
311
311
|
default: l(() => [
|
|
312
|
-
t(
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue": o[8] || (o[8] = (e) =>
|
|
312
|
+
t(F, {
|
|
313
|
+
modelValue: a(h),
|
|
314
|
+
"onUpdate:modelValue": o[8] || (o[8] = (e) => R(h) ? h.value = e : h = e),
|
|
315
315
|
"label-name": "goods/goods-spu"
|
|
316
316
|
}, null, 8, ["modelValue"])
|
|
317
317
|
]),
|
|
@@ -322,15 +322,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
322
322
|
})
|
|
323
323
|
]),
|
|
324
324
|
footer: l(() => [
|
|
325
|
-
|
|
325
|
+
a(_) > 0 ? (i(), V(W, {
|
|
326
326
|
key: 0,
|
|
327
|
-
total:
|
|
328
|
-
"onUpdate:total": o[9] || (o[9] = (e) =>
|
|
327
|
+
total: a(_),
|
|
328
|
+
"onUpdate:total": o[9] || (o[9] = (e) => R(_) ? _.value = e : null),
|
|
329
329
|
"current-page": r.value.curPage,
|
|
330
330
|
"onUpdate:currentPage": o[10] || (o[10] = (e) => r.value.curPage = e),
|
|
331
331
|
"page-size": r.value.pageSize,
|
|
332
332
|
"onUpdate:pageSize": o[11] || (o[11] = (e) => r.value.pageSize = e),
|
|
333
|
-
onPagination: o[12] || (o[12] = (e) =>
|
|
333
|
+
onPagination: o[12] || (o[12] = (e) => a(n).getList())
|
|
334
334
|
}, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
|
|
335
335
|
]),
|
|
336
336
|
default: l(() => [
|
|
@@ -338,24 +338,24 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
338
338
|
ref_key: "multipleTableRef",
|
|
339
339
|
ref: $,
|
|
340
340
|
"row-key": "spuId",
|
|
341
|
-
"list-loading":
|
|
342
|
-
data:
|
|
343
|
-
"table-label":
|
|
344
|
-
onSelectionChange:
|
|
341
|
+
"list-loading": a(L),
|
|
342
|
+
data: a(q),
|
|
343
|
+
"table-label": a(h),
|
|
344
|
+
onSelectionChange: Y,
|
|
345
345
|
onSortChange: K
|
|
346
346
|
}, {
|
|
347
347
|
shopId: l((e) => [
|
|
348
|
-
d("span", null, u(
|
|
348
|
+
d("span", null, u(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
349
349
|
]),
|
|
350
350
|
categoryId: l((e) => [
|
|
351
|
-
d("span", null, u(
|
|
351
|
+
d("span", null, u(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
352
352
|
]),
|
|
353
353
|
picUrls: l((e) => [
|
|
354
354
|
d("span", null, [
|
|
355
355
|
t(G, {
|
|
356
|
-
src:
|
|
356
|
+
src: a(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
357
357
|
"preview-src-list": [
|
|
358
|
-
|
|
358
|
+
a(j).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
359
359
|
],
|
|
360
360
|
"preview-teleported": "",
|
|
361
361
|
"hide-on-click-modal": "",
|
|
@@ -367,8 +367,8 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
367
367
|
d("span", null, [
|
|
368
368
|
t(U, {
|
|
369
369
|
modelValue: e.data.row.shelf,
|
|
370
|
-
"onUpdate:modelValue": (
|
|
371
|
-
onClick: (
|
|
370
|
+
"onUpdate:modelValue": (m) => e.data.row.shelf = m,
|
|
371
|
+
onClick: (m) => a(n).enableRecord(e.data.row, e.data.row.shelf)
|
|
372
372
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
373
373
|
])
|
|
374
374
|
]),
|
|
@@ -376,15 +376,15 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
376
376
|
d("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
377
377
|
]),
|
|
378
378
|
specType: l((e) => [
|
|
379
|
-
d("span", null, u(
|
|
379
|
+
d("span", null, u(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
380
380
|
]),
|
|
381
381
|
approvalStatus: l((e) => [
|
|
382
|
-
d("span", null, u(
|
|
382
|
+
d("span", null, u(a(g).approvalStatusEnum.getEnumValue(
|
|
383
383
|
e.data.row.approvalStatus
|
|
384
384
|
)), 1)
|
|
385
385
|
]),
|
|
386
386
|
updateTime: l((e) => [
|
|
387
|
-
d("span", null, u(
|
|
387
|
+
d("span", null, u(a(A).$moment.formatDate(
|
|
388
388
|
e.data.row.updateTime,
|
|
389
389
|
"YYYY-MM-DD HH:mm:ss"
|
|
390
390
|
)), 1)
|
|
@@ -392,25 +392,25 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
392
392
|
enable: l((e) => [
|
|
393
393
|
t(U, {
|
|
394
394
|
modelValue: e.data.row.enable,
|
|
395
|
-
"onUpdate:modelValue": (
|
|
396
|
-
onChange: (
|
|
395
|
+
"onUpdate:modelValue": (m) => e.data.row.enable = m,
|
|
396
|
+
onChange: (m) => a(n).enableRecord(e.data.row, e.data.row.enable)
|
|
397
397
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
398
398
|
]),
|
|
399
399
|
operation: l((e) => [
|
|
400
|
-
y((
|
|
400
|
+
y((i(), I("span", {
|
|
401
401
|
class: "el-button-color",
|
|
402
|
-
onClick: (
|
|
402
|
+
onClick: (m) => a(n).deleteRecord(e.data.row)
|
|
403
403
|
}, [
|
|
404
|
-
c(u(
|
|
405
|
-
], 8,
|
|
404
|
+
c(u(s.$t("common.delete")), 1)
|
|
405
|
+
], 8, ue)), [
|
|
406
406
|
[w, ["goods:goods_spu:delete"]]
|
|
407
407
|
]),
|
|
408
|
-
y((
|
|
408
|
+
y((i(), I("span", {
|
|
409
409
|
class: "el-button-color dropdown-left",
|
|
410
|
-
onClick: (
|
|
410
|
+
onClick: (m) => Q(e.data.row)
|
|
411
411
|
}, [
|
|
412
|
-
c(u(
|
|
413
|
-
], 8,
|
|
412
|
+
c(u(s.$t("common.view")), 1)
|
|
413
|
+
], 8, pe)), [
|
|
414
414
|
[w, ["goods:goods_spu:view"]]
|
|
415
415
|
])
|
|
416
416
|
]),
|
|
@@ -424,5 +424,5 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
export {
|
|
427
|
-
|
|
427
|
+
be as _
|
|
428
428
|
};
|
|
@@ -4,10 +4,10 @@ import { useRouter as te } from "vue-router";
|
|
|
4
4
|
import { useTableHooks as ae, fileApi as j } from "jmash-core";
|
|
5
5
|
import { useI18n as se } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as E } from "./index.mjs";
|
|
7
|
-
import { D as g } from "./index-
|
|
8
|
-
const ne = { class: "
|
|
7
|
+
import { D as g } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], we = /* @__PURE__ */ x({
|
|
9
9
|
__name: "shelfIndex",
|
|
10
|
-
setup(
|
|
10
|
+
setup(re) {
|
|
11
11
|
const { t: _ } = se(), $ = te(), { proxy: q } = ee(), d = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
@@ -26,13 +26,13 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
26
26
|
prop: "shopId",
|
|
27
27
|
slotName: "shopId",
|
|
28
28
|
columnType: "slot",
|
|
29
|
-
width: "
|
|
29
|
+
width: "250",
|
|
30
30
|
isColumn: !0
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
label: "goodsSpu.spuName",
|
|
34
34
|
prop: "spuName",
|
|
35
|
-
width: "
|
|
35
|
+
width: "200",
|
|
36
36
|
isColumn: !0
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -54,7 +54,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
54
54
|
{
|
|
55
55
|
label: "goodsSpu.price",
|
|
56
56
|
prop: "minPrice",
|
|
57
|
-
width: "
|
|
57
|
+
width: "120",
|
|
58
58
|
sortable: "custom",
|
|
59
59
|
slotName: "minPrice",
|
|
60
60
|
columnType: "slot",
|
|
@@ -63,7 +63,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
63
63
|
{
|
|
64
64
|
label: "goodsSpu.spuCode",
|
|
65
65
|
prop: "spuCode",
|
|
66
|
-
width: "
|
|
66
|
+
width: "120",
|
|
67
67
|
sortable: "custom",
|
|
68
68
|
isColumn: !0
|
|
69
69
|
},
|
|
@@ -77,7 +77,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
77
77
|
{
|
|
78
78
|
label: "goodsSpu.specType",
|
|
79
79
|
prop: "specType",
|
|
80
|
-
width: "
|
|
80
|
+
width: "120",
|
|
81
81
|
slotName: "specType",
|
|
82
82
|
columnType: "slot",
|
|
83
83
|
sortable: "custom",
|
|
@@ -86,7 +86,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
86
86
|
{
|
|
87
87
|
label: "goodsSpu.shelf",
|
|
88
88
|
prop: "shelf",
|
|
89
|
-
width: "
|
|
89
|
+
width: "120",
|
|
90
90
|
slotName: "shelf",
|
|
91
91
|
columnType: "slot",
|
|
92
92
|
sortable: "custom",
|
|
@@ -95,7 +95,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
95
95
|
{
|
|
96
96
|
label: "goodsSpu.approvalStatus",
|
|
97
97
|
prop: "approvalStatus",
|
|
98
|
-
width: "
|
|
98
|
+
width: "120",
|
|
99
99
|
slotName: "approvalStatus",
|
|
100
100
|
columnType: "slot",
|
|
101
101
|
isColumn: !0
|
|
@@ -149,9 +149,9 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
const t = n.selectionRows.value.map((o) => o.spuId);
|
|
152
|
-
|
|
152
|
+
E.enable({ spuId: t }, !0).then((o) => {
|
|
153
153
|
var C;
|
|
154
|
-
|
|
154
|
+
o.status === 200 && (z({
|
|
155
155
|
message: _("goodsSpu.successShelf") + o.data + _("common.stripData"),
|
|
156
156
|
type: "success"
|
|
157
157
|
}), n.getList(), (C = T.value) == null || C.clearSelection());
|
|
@@ -159,8 +159,8 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
159
159
|
}
|
|
160
160
|
return n.getList(), (t, o) => {
|
|
161
161
|
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"), G = p("el-form"), J = p("jmash-column-select"), O = p("el-image"), U = p("el-switch"), W = p("jmash-table"), X = p("jmash-pagination"), Z = p("el-card"), h = oe("hasPerm");
|
|
162
|
-
return m(), V("div",
|
|
163
|
-
r("div",
|
|
162
|
+
return m(), V("div", null, [
|
|
163
|
+
r("div", ne, [
|
|
164
164
|
a(G, {
|
|
165
165
|
ref_key: "queryFormRef",
|
|
166
166
|
ref: B,
|
|
@@ -407,7 +407,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
407
407
|
onClick: (i) => Y(e.data.row)
|
|
408
408
|
}, [
|
|
409
409
|
c(u(t.$t("common.edit")), 1)
|
|
410
|
-
], 8,
|
|
410
|
+
], 8, ue)), [
|
|
411
411
|
[h, ["goods:goods_spu:update"]]
|
|
412
412
|
]),
|
|
413
413
|
b((m(), V("span", {
|
|
@@ -415,7 +415,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
415
415
|
onClick: (i) => s(n).deleteRecord(e.data.row)
|
|
416
416
|
}, [
|
|
417
417
|
c(u(t.$t("common.delete")), 1)
|
|
418
|
-
], 8,
|
|
418
|
+
], 8, pe)), [
|
|
419
419
|
[h, ["goods:goods_spu:delete"]]
|
|
420
420
|
]),
|
|
421
421
|
b((m(), V("span", {
|
|
@@ -423,7 +423,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
423
423
|
onClick: (i) => A(e.data.row)
|
|
424
424
|
}, [
|
|
425
425
|
c(u(t.$t("common.view")), 1)
|
|
426
|
-
], 8,
|
|
426
|
+
], 8, de)), [
|
|
427
427
|
[h, ["goods:goods_spu:view"]]
|
|
428
428
|
])
|
|
429
429
|
]),
|
|
@@ -437,5 +437,5 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
export {
|
|
440
|
-
|
|
440
|
+
we as _
|
|
441
441
|
};
|