xyvcard-goods 0.0.1 → 0.0.2
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-BS-H7i3Y.mjs} +1 -1
- package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs} +111 -94
- package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-DHQPvPdG.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs} +142 -125
- package/dist/{edit-DpIovEhA.mjs → edit-DOqDV4qb.mjs} +3792 -3789
- package/dist/{index-C9KO9AZw.mjs → el-message-D15RmjW3.mjs} +368 -367
- package/dist/{index-BupW0ufK.mjs → index-CIN1Wvug.mjs} +102 -75
- package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
- package/dist/index.mjs +519 -593
- package/dist/info-MqipS9Ok.mjs +311 -0
- package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-D2vlM6ww.mjs} +1 -1
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs +428 -0
- package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CEgDzOX1.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs} +174 -160
- package/dist/skuForm-BMRF5whq.mjs +419 -0
- package/dist/skuTable-Ddo1obnO.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/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/skuForm.vue.d.ts +29 -0
- 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/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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsSkuCreateReq, SkuSpecValueModel } from "@/api/goods-spu/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
specData: {
|
|
5
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
6
|
+
default(): never[];
|
|
7
|
+
};
|
|
8
|
+
goodsSku: {
|
|
9
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
10
|
+
default(): never[];
|
|
11
|
+
};
|
|
12
|
+
isSettingShow: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
getGoodsSku: (...args: any[]) => void;
|
|
18
|
+
getFormData: (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
specData: {
|
|
21
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
22
|
+
default(): never[];
|
|
23
|
+
};
|
|
24
|
+
goodsSku: {
|
|
25
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
26
|
+
default(): never[];
|
|
27
|
+
};
|
|
28
|
+
isSettingShow: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
specData: SkuSpecValueModel[];
|
|
37
|
+
goodsSku: GoodsSkuCreateReq[];
|
|
38
|
+
isSettingShow: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"pinia": "^2.1.7",
|
|
16
16
|
"element-plus": "^2.7.5",
|
|
17
17
|
"axios": "^1.6.7",
|
|
18
|
-
"jmash-core": "^0.0.
|
|
18
|
+
"jmash-core": "^0.0.100",
|
|
19
19
|
"jmash-rbac": "^0.0.35",
|
|
20
20
|
"jmash-dict": "^0.0.44",
|
|
21
21
|
"xyvcard-cms": "^0.0.6"
|
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ue, getCurrentInstance as re, ref as R, reactive as ie, resolveComponent as d, resolveDirective as me, openBlock as g, createElementBlock as T, createElementVNode as f, createVNode as l, withCtx as o, unref as s, withKeys as q, createTextVNode as i, toDisplayString as n, withDirectives as w, createBlock as $, isRef as F, createCommentVNode as ce } from "vue";
|
|
2
|
-
import { useRouter as ge } from "vue-router";
|
|
3
|
-
import { useTableHooks as fe, fileApi as H } from "jmash-core";
|
|
4
|
-
import { useI18n as _e } from "vue-i18n";
|
|
5
|
-
import { g as U } from "./index-fu3gxdt_.mjs";
|
|
6
|
-
import { C as K, D as b } from "./index-C9f6Lybt.mjs";
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { Z as C } from "./index-C9KO9AZw.mjs";
|
|
9
|
-
const he = { class: "app-container" }, we = { class: "search-container" }, be = ["onClick"], Se = ["onClick"], ve = ["onClick"], Ue = /* @__PURE__ */ ue({
|
|
10
|
-
__name: "approveFailIndex",
|
|
11
|
-
setup(ye) {
|
|
12
|
-
const { t: r } = _e(), Q = ge(), { proxy: Y } = re(), m = R({
|
|
13
|
-
curPage: 1,
|
|
14
|
-
pageSize: 10,
|
|
15
|
-
approvalStatus: K.approval_not_pass
|
|
16
|
-
}), { tableHooks: p, multipleTableRef: N, queryFormRef: M, listLoading: J, tableData: Z, total: I } = fe(r, U, m);
|
|
17
|
-
let V = R([
|
|
18
|
-
{
|
|
19
|
-
label: "goodsSpu.shopId",
|
|
20
|
-
prop: "shopId",
|
|
21
|
-
slotName: "shopId",
|
|
22
|
-
columnType: "slot",
|
|
23
|
-
width: "150",
|
|
24
|
-
isColumn: !0
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "goodsSpu.spuName",
|
|
28
|
-
prop: "spuName",
|
|
29
|
-
width: "150",
|
|
30
|
-
isColumn: !0
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: "goodsSpu.picUrls",
|
|
34
|
-
prop: "picUrls",
|
|
35
|
-
slotName: "picUrls",
|
|
36
|
-
columnType: "slot",
|
|
37
|
-
width: "100",
|
|
38
|
-
isColumn: !0
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: "goodsSpu.categoryId",
|
|
42
|
-
prop: "categoryId",
|
|
43
|
-
slotName: "categoryId",
|
|
44
|
-
columnType: "slot",
|
|
45
|
-
width: "150",
|
|
46
|
-
isColumn: !0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "goodsSpu.price",
|
|
50
|
-
prop: "minPrice",
|
|
51
|
-
width: "130",
|
|
52
|
-
sortable: "custom",
|
|
53
|
-
slotName: "minPrice",
|
|
54
|
-
columnType: "slot",
|
|
55
|
-
isColumn: !0
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
label: "goodsSpu.spuCode",
|
|
59
|
-
prop: "spuCode",
|
|
60
|
-
width: "150",
|
|
61
|
-
sortable: "custom",
|
|
62
|
-
isColumn: !0
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: "goodsSpu.saleNum",
|
|
66
|
-
prop: "saleNum",
|
|
67
|
-
width: "120",
|
|
68
|
-
sortable: "custom",
|
|
69
|
-
isColumn: !0
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: "goodsSpu.specType",
|
|
73
|
-
prop: "specType",
|
|
74
|
-
width: "130",
|
|
75
|
-
slotName: "specType",
|
|
76
|
-
columnType: "slot",
|
|
77
|
-
sortable: "custom",
|
|
78
|
-
isColumn: !0
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: "goodsSpu.shelf",
|
|
82
|
-
prop: "shelf",
|
|
83
|
-
width: "150",
|
|
84
|
-
slotName: "shelf",
|
|
85
|
-
columnType: "slot",
|
|
86
|
-
sortable: "custom",
|
|
87
|
-
isColumn: !0
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
label: "goodsSpu.approvalStatus",
|
|
91
|
-
prop: "approvalStatus",
|
|
92
|
-
width: "130",
|
|
93
|
-
slotName: "approvalStatus",
|
|
94
|
-
columnType: "slot",
|
|
95
|
-
isColumn: !0
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: "goodsSpu.updateTime",
|
|
99
|
-
prop: "updateTime",
|
|
100
|
-
width: "180",
|
|
101
|
-
sortable: "custom",
|
|
102
|
-
slotName: "updateTime",
|
|
103
|
-
columnType: "slot",
|
|
104
|
-
isColumn: !0
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: "common.operate",
|
|
108
|
-
width: "200",
|
|
109
|
-
slotName: "operation",
|
|
110
|
-
columnType: "slot",
|
|
111
|
-
fixed: "right",
|
|
112
|
-
isColumn: !0
|
|
113
|
-
}
|
|
114
|
-
]);
|
|
115
|
-
b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
|
|
116
|
-
const D = R({
|
|
117
|
-
title: r("common.edit"),
|
|
118
|
-
visible: !1
|
|
119
|
-
});
|
|
120
|
-
let G = ie({});
|
|
121
|
-
function W() {
|
|
122
|
-
Q.push({ path: "/rawgoods/goods-spu/edit" });
|
|
123
|
-
}
|
|
124
|
-
function X(t) {
|
|
125
|
-
G.spuId = t.spuId, D.value.title = r("common.edit"), D.value.visible = !0;
|
|
126
|
-
}
|
|
127
|
-
function x(t) {
|
|
128
|
-
p.selectionRows.value = t;
|
|
129
|
-
}
|
|
130
|
-
function ee(t) {
|
|
131
|
-
p.handleSort(t.prop, t.order);
|
|
132
|
-
}
|
|
133
|
-
function oe(t) {
|
|
134
|
-
if (p.selectionRows.value.length === 0) {
|
|
135
|
-
C({
|
|
136
|
-
message: r("goodsSpu.chooseShelf"),
|
|
137
|
-
type: "warning"
|
|
138
|
-
});
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
const a = p.selectionRows.value.map((u) => u.spuId);
|
|
142
|
-
console.log(a), U.enable({ spuId: a }, JSON.parse(t)).then((u) => {
|
|
143
|
-
var c;
|
|
144
|
-
console.log(u), u.status === 200 && (t === "true" ? C({
|
|
145
|
-
message: r("goodsSpu.successShelf") + u.data + r("common.stripData"),
|
|
146
|
-
type: "success"
|
|
147
|
-
}) : C({
|
|
148
|
-
message: r("goodsSpu.successOffShelf") + u.data + r("common.stripData"),
|
|
149
|
-
type: "success"
|
|
150
|
-
}), p.getList(), (c = N.value) == null || c.clearSelection());
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function le(t) {
|
|
154
|
-
if (console.log(t), p.selectionRows.value.length === 0) {
|
|
155
|
-
C({
|
|
156
|
-
message: r("goodsSpu.chooseShelf"),
|
|
157
|
-
type: "warning"
|
|
158
|
-
});
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
const a = p.selectionRows.value.map((u) => u.spuId);
|
|
162
|
-
U.audit({ spuId: a }, t).then((u) => {
|
|
163
|
-
var c;
|
|
164
|
-
console.log(u), u.status === 200 && (t === "APPROVAL_PASS" ? C({
|
|
165
|
-
message: r("goodsSpu.successApproval") + u.data + r("common.stripData"),
|
|
166
|
-
type: "success"
|
|
167
|
-
}) : C({
|
|
168
|
-
message: r("goodsSpu.successFilled") + u.data + r("common.stripData"),
|
|
169
|
-
type: "success"
|
|
170
|
-
}), p.getList(), (c = N.value) == null || c.clearSelection());
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
return p.getList(), (t, a) => {
|
|
174
|
-
const u = d("jmash-select"), c = d("el-form-item"), S = d("el-col"), P = d("el-input"), v = d("el-button"), z = d("el-row"), te = d("el-form"), A = d("arrow-down"), y = d("el-icon"), L = d("Unlock"), k = d("el-dropdown-item"), j = d("Lock"), E = d("el-dropdown-menu"), O = d("el-dropdown"), ae = d("jmash-column-select"), se = d("el-image"), B = d("el-switch"), ne = d("jmash-table"), de = d("jmash-pagination"), pe = d("el-card"), h = me("hasPerm");
|
|
175
|
-
return g(), T("div", he, [
|
|
176
|
-
f("div", we, [
|
|
177
|
-
l(te, {
|
|
178
|
-
ref_key: "queryFormRef",
|
|
179
|
-
ref: M,
|
|
180
|
-
model: m.value,
|
|
181
|
-
inline: !0
|
|
182
|
-
}, {
|
|
183
|
-
default: o(() => [
|
|
184
|
-
l(z, null, {
|
|
185
|
-
default: o(() => [
|
|
186
|
-
l(S, { span: 6 }, {
|
|
187
|
-
default: o(() => [
|
|
188
|
-
l(c, {
|
|
189
|
-
label: t.$t("goodsSpu.shopId"),
|
|
190
|
-
prop: "shopId"
|
|
191
|
-
}, {
|
|
192
|
-
default: o(() => [
|
|
193
|
-
l(u, {
|
|
194
|
-
modelValue: m.value.shopId,
|
|
195
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) => m.value.shopId = e),
|
|
196
|
-
placeholder: t.$t("goodsSpu.shopIdRequired"),
|
|
197
|
-
data: s(b).shopInfoBizDict.values,
|
|
198
|
-
filterable: ""
|
|
199
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["label"])
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}),
|
|
206
|
-
l(S, { span: 6 }, {
|
|
207
|
-
default: o(() => [
|
|
208
|
-
l(c, {
|
|
209
|
-
label: t.$t("goodsSpu.spuCode"),
|
|
210
|
-
prop: "spuCode"
|
|
211
|
-
}, {
|
|
212
|
-
default: o(() => [
|
|
213
|
-
l(P, {
|
|
214
|
-
modelValue: m.value.spuCode,
|
|
215
|
-
"onUpdate:modelValue": a[1] || (a[1] = (e) => m.value.spuCode = e),
|
|
216
|
-
placeholder: t.$t("goodsSpu.spuCode"),
|
|
217
|
-
onKeyup: a[2] || (a[2] = q((e) => s(p).handleQuery(), ["enter"])),
|
|
218
|
-
class: "!w-[203px]"
|
|
219
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 8, ["label"])
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}),
|
|
226
|
-
l(S, { span: 6 }, {
|
|
227
|
-
default: o(() => [
|
|
228
|
-
l(c, {
|
|
229
|
-
label: t.$t("goodsSpu.spuName"),
|
|
230
|
-
prop: "spuName"
|
|
231
|
-
}, {
|
|
232
|
-
default: o(() => [
|
|
233
|
-
l(P, {
|
|
234
|
-
modelValue: m.value.spuName,
|
|
235
|
-
"onUpdate:modelValue": a[3] || (a[3] = (e) => m.value.spuName = e),
|
|
236
|
-
placeholder: t.$t("goodsSpu.spuName"),
|
|
237
|
-
onKeyup: a[4] || (a[4] = q((e) => s(p).handleQuery(), ["enter"])),
|
|
238
|
-
class: "!w-[203px]"
|
|
239
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
}, 8, ["label"])
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
}),
|
|
246
|
-
l(S, { span: 6 }, {
|
|
247
|
-
default: o(() => [
|
|
248
|
-
l(c, { class: "search-btn" }, {
|
|
249
|
-
default: o(() => [
|
|
250
|
-
l(v, {
|
|
251
|
-
type: "primary",
|
|
252
|
-
onClick: a[5] || (a[5] = (e) => s(p).handleQuery())
|
|
253
|
-
}, {
|
|
254
|
-
default: o(() => [
|
|
255
|
-
i(n(t.$t("common.search")), 1)
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}),
|
|
259
|
-
l(v, {
|
|
260
|
-
onClick: a[6] || (a[6] = (e) => s(p).resetQuery())
|
|
261
|
-
}, {
|
|
262
|
-
default: o(() => [
|
|
263
|
-
i(n(t.$t("common.reset")), 1)
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
})
|
|
270
|
-
]),
|
|
271
|
-
_: 1
|
|
272
|
-
})
|
|
273
|
-
]),
|
|
274
|
-
_: 1
|
|
275
|
-
})
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
}, 8, ["model"])
|
|
279
|
-
]),
|
|
280
|
-
l(pe, {
|
|
281
|
-
shadow: "never",
|
|
282
|
-
class: "table-container"
|
|
283
|
-
}, {
|
|
284
|
-
header: o(() => [
|
|
285
|
-
l(z, null, {
|
|
286
|
-
default: o(() => [
|
|
287
|
-
l(S, { span: 17 }, {
|
|
288
|
-
default: o(() => [
|
|
289
|
-
w((g(), $(v, {
|
|
290
|
-
type: "primary",
|
|
291
|
-
onClick: W
|
|
292
|
-
}, {
|
|
293
|
-
default: o(() => [
|
|
294
|
-
i(n(t.$t("common.add")), 1)
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
})), [
|
|
298
|
-
[h, ["goods:goods_spu:add"]]
|
|
299
|
-
]),
|
|
300
|
-
w((g(), $(v, {
|
|
301
|
-
type: "primary",
|
|
302
|
-
onClick: a[7] || (a[7] = (e) => s(p).deleteRecords())
|
|
303
|
-
}, {
|
|
304
|
-
default: o(() => [
|
|
305
|
-
i(n(t.$t("common.batchDelete")), 1)
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
})), [
|
|
309
|
-
[h, ["goods:goods_spu:delete"]]
|
|
310
|
-
]),
|
|
311
|
-
w((g(), $(O, {
|
|
312
|
-
class: "dropdown-left",
|
|
313
|
-
onCommand: oe
|
|
314
|
-
}, {
|
|
315
|
-
dropdown: o(() => [
|
|
316
|
-
l(E, null, {
|
|
317
|
-
default: o(() => [
|
|
318
|
-
l(k, { command: "true" }, {
|
|
319
|
-
default: o(() => [
|
|
320
|
-
l(y, { size: "14" }, {
|
|
321
|
-
default: o(() => [
|
|
322
|
-
l(L)
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
}),
|
|
326
|
-
i(" " + n(t.$t("goodsSpu.batchShelf")), 1)
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}),
|
|
330
|
-
l(k, { command: "false" }, {
|
|
331
|
-
default: o(() => [
|
|
332
|
-
l(y, { size: "14" }, {
|
|
333
|
-
default: o(() => [
|
|
334
|
-
l(j)
|
|
335
|
-
]),
|
|
336
|
-
_: 1
|
|
337
|
-
}),
|
|
338
|
-
i(" " + n(t.$t("goodsSpu.batchOffShelf")), 1)
|
|
339
|
-
]),
|
|
340
|
-
_: 1
|
|
341
|
-
})
|
|
342
|
-
]),
|
|
343
|
-
_: 1
|
|
344
|
-
})
|
|
345
|
-
]),
|
|
346
|
-
default: o(() => [
|
|
347
|
-
l(v, { type: "primary" }, {
|
|
348
|
-
default: o(() => [
|
|
349
|
-
i(n(t.$t("goodsSpu.batchShelf")) + "/" + n(t.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
350
|
-
l(y, { class: "el-icon--right" }, {
|
|
351
|
-
default: o(() => [
|
|
352
|
-
l(A)
|
|
353
|
-
]),
|
|
354
|
-
_: 1
|
|
355
|
-
})
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
})
|
|
359
|
-
]),
|
|
360
|
-
_: 1
|
|
361
|
-
})), [
|
|
362
|
-
[h, ["goods:goods_spu:onSale"]]
|
|
363
|
-
]),
|
|
364
|
-
w((g(), $(O, {
|
|
365
|
-
class: "dropdown-left",
|
|
366
|
-
onCommand: le
|
|
367
|
-
}, {
|
|
368
|
-
dropdown: o(() => [
|
|
369
|
-
l(E, null, {
|
|
370
|
-
default: o(() => [
|
|
371
|
-
l(k, {
|
|
372
|
-
command: s(K).approval_pass
|
|
373
|
-
}, {
|
|
374
|
-
default: o(() => [
|
|
375
|
-
l(y, { size: "14" }, {
|
|
376
|
-
default: o(() => [
|
|
377
|
-
l(L)
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
}),
|
|
381
|
-
i(" " + n(t.$t("goodsSpu.batchApprovaled")), 1)
|
|
382
|
-
]),
|
|
383
|
-
_: 1
|
|
384
|
-
}, 8, ["command"]),
|
|
385
|
-
l(k, { command: "APPROVAL_NOT_PASS" }, {
|
|
386
|
-
default: o(() => [
|
|
387
|
-
l(y, { size: "14" }, {
|
|
388
|
-
default: o(() => [
|
|
389
|
-
l(j)
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}),
|
|
393
|
-
i(" " + n(t.$t("goodsSpu.batchRejected")), 1)
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
})
|
|
397
|
-
]),
|
|
398
|
-
_: 1
|
|
399
|
-
})
|
|
400
|
-
]),
|
|
401
|
-
default: o(() => [
|
|
402
|
-
l(v, { type: "primary" }, {
|
|
403
|
-
default: o(() => [
|
|
404
|
-
i(n(t.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
405
|
-
l(y, { class: "el-icon--right" }, {
|
|
406
|
-
default: o(() => [
|
|
407
|
-
l(A)
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
})
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
})
|
|
414
|
-
]),
|
|
415
|
-
_: 1
|
|
416
|
-
})), [
|
|
417
|
-
[h, ["goods:goods_spu:approve"]]
|
|
418
|
-
])
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}),
|
|
422
|
-
l(S, {
|
|
423
|
-
span: 7,
|
|
424
|
-
class: "container-float"
|
|
425
|
-
}, {
|
|
426
|
-
default: o(() => [
|
|
427
|
-
l(ae, {
|
|
428
|
-
modelValue: s(V),
|
|
429
|
-
"onUpdate:modelValue": a[8] || (a[8] = (e) => F(V) ? V.value = e : V = e),
|
|
430
|
-
"label-name": "goods/goods-spu"
|
|
431
|
-
}, null, 8, ["modelValue"])
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
})
|
|
435
|
-
]),
|
|
436
|
-
_: 1
|
|
437
|
-
})
|
|
438
|
-
]),
|
|
439
|
-
footer: o(() => [
|
|
440
|
-
s(I) > 0 ? (g(), $(de, {
|
|
441
|
-
key: 0,
|
|
442
|
-
total: s(I),
|
|
443
|
-
"onUpdate:total": a[9] || (a[9] = (e) => F(I) ? I.value = e : null),
|
|
444
|
-
"current-page": m.value.curPage,
|
|
445
|
-
"onUpdate:currentPage": a[10] || (a[10] = (e) => m.value.curPage = e),
|
|
446
|
-
"page-size": m.value.pageSize,
|
|
447
|
-
"onUpdate:pageSize": a[11] || (a[11] = (e) => m.value.pageSize = e),
|
|
448
|
-
onPagination: a[12] || (a[12] = (e) => s(p).getList())
|
|
449
|
-
}, null, 8, ["total", "current-page", "page-size"])) : ce("", !0)
|
|
450
|
-
]),
|
|
451
|
-
default: o(() => [
|
|
452
|
-
l(ne, {
|
|
453
|
-
ref_key: "multipleTableRef",
|
|
454
|
-
ref: N,
|
|
455
|
-
"row-key": "spuId",
|
|
456
|
-
"list-loading": s(J),
|
|
457
|
-
data: s(Z),
|
|
458
|
-
"table-label": s(V),
|
|
459
|
-
onSelectionChange: x,
|
|
460
|
-
onSortChange: ee
|
|
461
|
-
}, {
|
|
462
|
-
shopId: o((e) => [
|
|
463
|
-
f("span", null, n(s(b).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
464
|
-
]),
|
|
465
|
-
categoryId: o((e) => [
|
|
466
|
-
f("span", null, n(s(b).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
467
|
-
]),
|
|
468
|
-
picUrls: o((e) => [
|
|
469
|
-
f("span", null, [
|
|
470
|
-
l(se, {
|
|
471
|
-
src: s(H).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
472
|
-
"preview-src-list": [s(H).imageUrl(e.data.row.picUrls.split(",")[0])],
|
|
473
|
-
"preview-teleported": "",
|
|
474
|
-
"hide-on-click-modal": "",
|
|
475
|
-
fit: "contain"
|
|
476
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
477
|
-
])
|
|
478
|
-
]),
|
|
479
|
-
shelf: o((e) => [
|
|
480
|
-
f("span", null, [
|
|
481
|
-
l(B, {
|
|
482
|
-
modelValue: e.data.row.shelf,
|
|
483
|
-
"onUpdate:modelValue": (_) => e.data.row.shelf = _,
|
|
484
|
-
onClick: (_) => s(p).enableRecord(e.data.row, e.data.row.shelf)
|
|
485
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
486
|
-
])
|
|
487
|
-
]),
|
|
488
|
-
minPrice: o((e) => [
|
|
489
|
-
f("span", null, n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
|
|
490
|
-
]),
|
|
491
|
-
specType: o((e) => [
|
|
492
|
-
f("span", null, n(s(b).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
493
|
-
]),
|
|
494
|
-
approvalStatus: o((e) => [
|
|
495
|
-
f("span", null, n(s(b).approvalStatusEnum.getEnumValue(e.data.row.approvalStatus)), 1)
|
|
496
|
-
]),
|
|
497
|
-
updateTime: o((e) => [
|
|
498
|
-
f("span", null, n(s(Y).$moment.formatDate(e.data.row.updateTime, "YYYY-MM-DD HH:mm:ss")), 1)
|
|
499
|
-
]),
|
|
500
|
-
enable: o((e) => [
|
|
501
|
-
l(B, {
|
|
502
|
-
modelValue: e.data.row.enable,
|
|
503
|
-
"onUpdate:modelValue": (_) => e.data.row.enable = _,
|
|
504
|
-
onChange: (_) => s(p).enableRecord(e.data.row, e.data.row.enable)
|
|
505
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
506
|
-
]),
|
|
507
|
-
operation: o((e) => [
|
|
508
|
-
w((g(), T("span", {
|
|
509
|
-
class: "el-button-color",
|
|
510
|
-
onClick: (_) => X(e.data.row)
|
|
511
|
-
}, [
|
|
512
|
-
i(n(t.$t("common.edit")), 1)
|
|
513
|
-
], 8, be)), [
|
|
514
|
-
[h, ["goods:goods_spu:update"]]
|
|
515
|
-
]),
|
|
516
|
-
w((g(), T("span", {
|
|
517
|
-
class: "el-button-color dropdown-left",
|
|
518
|
-
onClick: (_) => s(p).deleteRecord(e.data.row)
|
|
519
|
-
}, [
|
|
520
|
-
i(n(t.$t("common.delete")), 1)
|
|
521
|
-
], 8, Se)), [
|
|
522
|
-
[h, ["goods:goods_spu:delete"]]
|
|
523
|
-
]),
|
|
524
|
-
w((g(), T("span", {
|
|
525
|
-
class: "el-button-color dropdown-left",
|
|
526
|
-
onClick: (_) => s(p).deleteRecord(e.data.row)
|
|
527
|
-
}, [
|
|
528
|
-
i(n(t.$t("common.delete")), 1)
|
|
529
|
-
], 8, ve)), [
|
|
530
|
-
[h, ["goods:goods_spu:delete"]]
|
|
531
|
-
])
|
|
532
|
-
]),
|
|
533
|
-
_: 1
|
|
534
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
535
|
-
]),
|
|
536
|
-
_: 1
|
|
537
|
-
})
|
|
538
|
-
]);
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
export {
|
|
543
|
-
Ue as _
|
|
544
|
-
};
|