xyvcard-goods 0.0.1
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/README.md +51 -0
- package/dist/approveFailIndex-gl8MBbK6.mjs +4 -0
- package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +544 -0
- package/dist/approvedIndex-Cn6g11xv.mjs +4 -0
- package/dist/approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs +395 -0
- package/dist/auditIndex-jOIDtl_l.mjs +4 -0
- package/dist/auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs +469 -0
- package/dist/edit-DpIovEhA.mjs +13975 -0
- package/dist/index-BHmGYIuc.mjs +24 -0
- package/dist/index-BupW0ufK.mjs +576 -0
- package/dist/index-C9KO9AZw.mjs +1503 -0
- package/dist/index-C9f6Lybt.mjs +194 -0
- package/dist/index-fu3gxdt_.mjs +130 -0
- package/dist/index.mjs +2812 -0
- package/dist/info-C6VRixBH.mjs +301 -0
- package/dist/saleIndex-DOcefF_x.mjs +4 -0
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +415 -0
- package/dist/shelfIndex-CTAReFV-.mjs +4 -0
- package/dist/shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs +427 -0
- package/dist/sku-form-BAi4HkUM.mjs +463 -0
- package/dist/sku-table-CRrisvJ1.mjs +410 -0
- package/dist/style.css +1 -0
- package/dts/App.vue.d.ts +2 -0
- package/dts/api/dict.d.ts +19 -0
- package/dts/api/emall/goods-category/index.d.ts +14 -0
- package/dts/api/emall/goods-category/types.d.ts +19 -0
- package/dts/api/goods-ensure/index.d.ts +13 -0
- package/dts/api/goods-ensure/types.d.ts +13 -0
- package/dts/api/goods-sku/types.d.ts +16 -0
- package/dts/api/goods-spu/index.d.ts +63 -0
- package/dts/api/goods-spu/types.d.ts +128 -0
- package/dts/api/index.d.ts +15 -0
- package/dts/api/shop/shop-info/index.d.ts +8 -0
- package/dts/api/shop/shop-info/types.d.ts +16 -0
- package/dts/api/shop/spec-info/index.d.ts +8 -0
- package/dts/api/shop/spec-info/types.d.ts +21 -0
- package/dts/api/shop/spec-value/index.d.ts +8 -0
- package/dts/api/shop/spec-value/types.d.ts +21 -0
- package/dts/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +38 -0
- package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +24 -0
- package/dts/components/GoodsUpload/index.vue.d.ts +18 -0
- package/dts/constant.d.ts +21 -0
- package/dts/index.d.ts +6 -0
- package/dts/lang/goods/en.d.ts +69 -0
- package/dts/lang/goods/zh-cn.d.ts +101 -0
- package/dts/lang/index.d.ts +1 -0
- package/dts/main.d.ts +4 -0
- package/dts/permission.d.ts +1 -0
- package/dts/router/index.d.ts +4 -0
- package/dts/utils/momentPlugin.d.ts +5 -0
- package/dts/views/goods/goods-spu/approveFailIndex.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/sku-form.vue.d.ts +31 -0
- package/dts/views/goods/goods-spu/sku-table.vue.d.ts +14 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -0,0 +1,544 @@
|
|
|
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
|
+
};
|