xyvcard-goods 0.0.33 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
- package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
- package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +6 -5
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
- package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
- package/dist/edit copy-tfwJCdiV.mjs +0 -526
- package/dist/edit-Db2EJ9dq.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Df-F10aZ.mjs +0 -264
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-DDi6GKQH.mjs +0 -365
- package/dist/skuForm-DWIoveRP.mjs +0 -475
- package/dist/skuTable-BVBtWrf9.mjs +0 -639
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import { defineComponent as fe, getCurrentInstance as ge, ref as T, onActivated as ye, reactive as he, resolveComponent as d, resolveDirective as be, createElementBlock as D, openBlock as m, createVNode as s, createBlock as b, createCommentVNode as E, withCtx as t, unref as o, createElementVNode as C, withKeys as we, createTextVNode as c, toDisplayString as p, withDirectives as w, isRef as M } from "vue";
|
|
2
|
+
import { useI18n as ve } from "vue-i18n";
|
|
3
|
+
import { useRoute as Ce, useRouter as Se } from "vue-router";
|
|
4
|
+
import { Dict as A } from "xyvcard-channel";
|
|
5
|
+
import { useTableHooks as Ve, fileApi as O } from "jmash-core";
|
|
6
|
+
import { D as r } from "./index-C61SQFSx.mjs";
|
|
7
|
+
import { C as $e } from "./constant-sVd2JbJt.mjs";
|
|
8
|
+
import { a as L } from "./index-xQgC-8Gd.mjs";
|
|
9
|
+
import { _ as ke } from "./ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs";
|
|
10
|
+
import { E as I } from "./el-message-Dj6aaz4G.mjs";
|
|
11
|
+
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
12
|
+
const Te = { class: "app-container" }, Ie = { class: "search-container" }, Re = ["onClick"], Ue = ["onClick"], De = ["onClick"], Ee = ["onClick"], Ne = /* @__PURE__ */ fe({
|
|
13
|
+
__name: "index",
|
|
14
|
+
setup(Pe) {
|
|
15
|
+
const { t: f } = ve();
|
|
16
|
+
Ce();
|
|
17
|
+
const R = Se(), { proxy: Y } = ge();
|
|
18
|
+
r.labelListBizDict.useValues(), r.goodsCategoryListBizLayDict.useValues(), r.goodsSupClassEnum.useEnumValues(), r.specTypeEnum.useEnumValues(), r.presaleTypeEnum.useEnumValues(), A.channelListBizDict.useValues();
|
|
19
|
+
const u = T({
|
|
20
|
+
curPage: 1,
|
|
21
|
+
pageSize: 10,
|
|
22
|
+
goodsType: $e.GOODS_TYPE.NORMAL
|
|
23
|
+
}), {
|
|
24
|
+
tableHooks: n,
|
|
25
|
+
multipleTableRef: N,
|
|
26
|
+
queryFormRef: F,
|
|
27
|
+
listLoading: H,
|
|
28
|
+
tableData: K,
|
|
29
|
+
total: U
|
|
30
|
+
} = Ve(f, L, u);
|
|
31
|
+
let $ = T([
|
|
32
|
+
{
|
|
33
|
+
label: "goodsSpu.spuName",
|
|
34
|
+
prop: "spuName",
|
|
35
|
+
minWidth: "200",
|
|
36
|
+
isColumn: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "goodsSpu.supClass",
|
|
40
|
+
prop: "supClass",
|
|
41
|
+
width: "100",
|
|
42
|
+
isColumn: !0,
|
|
43
|
+
slotName: "supClass",
|
|
44
|
+
columnType: "slot"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "goodsSpu.picUrls",
|
|
48
|
+
prop: "picUrls",
|
|
49
|
+
slotName: "picUrls",
|
|
50
|
+
columnType: "slot",
|
|
51
|
+
width: "100",
|
|
52
|
+
isColumn: !0
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "goodsSpu.specType",
|
|
56
|
+
prop: "specType",
|
|
57
|
+
width: "90",
|
|
58
|
+
slotName: "specType",
|
|
59
|
+
columnType: "slot",
|
|
60
|
+
isColumn: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "goodsSpu.salePrice",
|
|
64
|
+
prop: "salePrice",
|
|
65
|
+
width: "150",
|
|
66
|
+
slotName: "salePrice",
|
|
67
|
+
columnType: "slot",
|
|
68
|
+
isColumn: !0
|
|
69
|
+
},
|
|
70
|
+
/* TODO
|
|
71
|
+
{
|
|
72
|
+
label: "goodsSpu.pointsDeduct",
|
|
73
|
+
prop: "pointsDeduct",
|
|
74
|
+
width: "125",
|
|
75
|
+
slotName: "pointsDeduct",
|
|
76
|
+
columnType: "slot",
|
|
77
|
+
isColumn: true,
|
|
78
|
+
},
|
|
79
|
+
*/
|
|
80
|
+
{
|
|
81
|
+
label: "goodsSpu.shelf",
|
|
82
|
+
prop: "shelf",
|
|
83
|
+
width: "90",
|
|
84
|
+
slotName: "shelf",
|
|
85
|
+
columnType: "slot",
|
|
86
|
+
isColumn: !0
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "goodsSpu.presaleType",
|
|
90
|
+
prop: "presaleType",
|
|
91
|
+
width: "90",
|
|
92
|
+
slotName: "presaleType",
|
|
93
|
+
columnType: "slot",
|
|
94
|
+
isColumn: !0
|
|
95
|
+
},
|
|
96
|
+
/*
|
|
97
|
+
{
|
|
98
|
+
label: "goodsSpu.earnestAmount",
|
|
99
|
+
prop: "earnestAmount",
|
|
100
|
+
width: "150",
|
|
101
|
+
slotName: "earnestAmount",
|
|
102
|
+
columnType: "slot",
|
|
103
|
+
isColumn: true,
|
|
104
|
+
},
|
|
105
|
+
*/
|
|
106
|
+
{
|
|
107
|
+
label: "goodsSpu.updateTime",
|
|
108
|
+
prop: "updateTime",
|
|
109
|
+
width: "170",
|
|
110
|
+
sortable: "custom",
|
|
111
|
+
slotName: "updateTime",
|
|
112
|
+
columnType: "slot",
|
|
113
|
+
isColumn: !0
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "common.operate",
|
|
117
|
+
width: "220",
|
|
118
|
+
slotName: "operation",
|
|
119
|
+
columnType: "slot",
|
|
120
|
+
fixed: "right",
|
|
121
|
+
isColumn: !0
|
|
122
|
+
}
|
|
123
|
+
]);
|
|
124
|
+
ye(() => {
|
|
125
|
+
n.getList();
|
|
126
|
+
});
|
|
127
|
+
function G() {
|
|
128
|
+
R.push({ path: "/rawgoods/goods-spu/edit" });
|
|
129
|
+
}
|
|
130
|
+
function W(a) {
|
|
131
|
+
R.push({
|
|
132
|
+
path: "/rawgoods/goods-spu/edit",
|
|
133
|
+
query: { spuId: a.spuId }
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function J(a) {
|
|
137
|
+
R.push({
|
|
138
|
+
path: "/rawgoods/goods-spu/spec",
|
|
139
|
+
query: { spuId: a.spuId }
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function X(a) {
|
|
143
|
+
R.push({
|
|
144
|
+
path: "/rawgoods/goods-spu/info",
|
|
145
|
+
query: { spuId: a.spuId }
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function Z(a) {
|
|
149
|
+
n.selectionRows.value = a;
|
|
150
|
+
}
|
|
151
|
+
function x(a) {
|
|
152
|
+
n.handleSort(a.prop, a.order);
|
|
153
|
+
}
|
|
154
|
+
function ee() {
|
|
155
|
+
if (n.selectionRows.value.length === 0) {
|
|
156
|
+
I({
|
|
157
|
+
message: f("goodsSpu.chooseShelf"),
|
|
158
|
+
type: "warning"
|
|
159
|
+
});
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const a = n.selectionRows.value.map(
|
|
163
|
+
(l) => l.spuId
|
|
164
|
+
);
|
|
165
|
+
L.enable({ spuId: a }, !0).then((l) => {
|
|
166
|
+
var S;
|
|
167
|
+
l.status === 200 && (I({
|
|
168
|
+
message: f("goodsSpu.successShelf") + l.data + f("common.stripData"),
|
|
169
|
+
type: "success"
|
|
170
|
+
}), n.getList(), (S = N.value) == null || S.clearSelection());
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function le() {
|
|
174
|
+
if (n.selectionRows.value.length === 0) {
|
|
175
|
+
I({
|
|
176
|
+
message: f("goodsSpu.chooseShelf"),
|
|
177
|
+
type: "warning"
|
|
178
|
+
});
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const a = n.selectionRows.value.map(
|
|
182
|
+
(l) => l.spuId
|
|
183
|
+
);
|
|
184
|
+
L.enable({ spuId: a }, !1).then((l) => {
|
|
185
|
+
var S;
|
|
186
|
+
l.status === 200 && I({
|
|
187
|
+
message: f("goodsSpu.successOffShelf") + l.data + f("common.stripData"),
|
|
188
|
+
type: "success"
|
|
189
|
+
}), n.getList(), (S = N.value) == null || S.clearSelection();
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
const k = T({
|
|
193
|
+
title: f("goodsSpu.batchChannelProfit"),
|
|
194
|
+
visible: !1
|
|
195
|
+
});
|
|
196
|
+
let q = he({});
|
|
197
|
+
function oe() {
|
|
198
|
+
if (n.selectionRows.value.length === 0) {
|
|
199
|
+
I({
|
|
200
|
+
message: f("goodsSpu.chooseShelf"),
|
|
201
|
+
type: "warning"
|
|
202
|
+
});
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const a = n.selectionRows.value.map(
|
|
206
|
+
(l) => l.spuId
|
|
207
|
+
);
|
|
208
|
+
q.spuIds = a, k.value.visible = !0;
|
|
209
|
+
}
|
|
210
|
+
function ae(a) {
|
|
211
|
+
a && n.getList();
|
|
212
|
+
}
|
|
213
|
+
const z = T(), B = () => {
|
|
214
|
+
u.value.categoryIds = z.value.getCheckedKeys(), console.log(
|
|
215
|
+
u.value.categoryIds,
|
|
216
|
+
"=> queryParams.value.categoryIds"
|
|
217
|
+
), n.handleQuery();
|
|
218
|
+
}, _ = T(!1);
|
|
219
|
+
function te(a) {
|
|
220
|
+
a.updateMask = "", n.importExcel(a).then(() => {
|
|
221
|
+
_.value = !1;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function se() {
|
|
225
|
+
_.value = !1;
|
|
226
|
+
}
|
|
227
|
+
return (a, l) => {
|
|
228
|
+
const S = d("el-tree"), Q = d("el-card"), i = d("el-col"), V = d("jmash-select"), g = d("el-form-item"), ne = d("el-input"), ue = d("el-input-number"), v = d("el-button"), P = d("el-row"), pe = d("el-form"), de = d("jmash-column-select"), re = d("el-image"), j = d("el-switch"), ie = d("jmash-table"), me = d("jmash-pagination"), ce = d("import-upload"), y = be("hasPerm");
|
|
229
|
+
return m(), D("div", Te, [
|
|
230
|
+
s(P, { gutter: 10 }, {
|
|
231
|
+
default: t(() => [
|
|
232
|
+
s(i, { span: 4 }, {
|
|
233
|
+
default: t(() => [
|
|
234
|
+
s(Q, {
|
|
235
|
+
shadow: "never",
|
|
236
|
+
class: "table-container"
|
|
237
|
+
}, {
|
|
238
|
+
default: t(() => [
|
|
239
|
+
s(S, {
|
|
240
|
+
ref_key: "treeRef",
|
|
241
|
+
ref: z,
|
|
242
|
+
data: o(r).goodsCategoryListBizLayDict.values,
|
|
243
|
+
"node-key": "value",
|
|
244
|
+
"show-checkbox": "",
|
|
245
|
+
"highlight-current": "",
|
|
246
|
+
onNodeClick: B,
|
|
247
|
+
onCheck: B
|
|
248
|
+
}, null, 8, ["data"])
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
s(i, { span: 20 }, {
|
|
256
|
+
default: t(() => [
|
|
257
|
+
C("div", Ie, [
|
|
258
|
+
s(pe, {
|
|
259
|
+
ref_key: "queryFormRef",
|
|
260
|
+
ref: F,
|
|
261
|
+
model: o(u),
|
|
262
|
+
"label-width": "80px"
|
|
263
|
+
}, {
|
|
264
|
+
default: t(() => [
|
|
265
|
+
s(P, { gutter: 10 }, {
|
|
266
|
+
default: t(() => [
|
|
267
|
+
s(i, { span: 6 }, {
|
|
268
|
+
default: t(() => [
|
|
269
|
+
s(g, {
|
|
270
|
+
label: a.$t("goodsSpu.supClass"),
|
|
271
|
+
prop: "supClass"
|
|
272
|
+
}, {
|
|
273
|
+
default: t(() => [
|
|
274
|
+
s(V, {
|
|
275
|
+
class: "!w-[203px]",
|
|
276
|
+
modelValue: o(u).supClass,
|
|
277
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => o(u).supClass = e),
|
|
278
|
+
placeholder: a.$t("goodsSpu.supClassRequired"),
|
|
279
|
+
data: o(r).goodsSupClassEnum.values,
|
|
280
|
+
clearable: "",
|
|
281
|
+
onChange: l[1] || (l[1] = (e) => o(n).handleQuery())
|
|
282
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["label"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}),
|
|
289
|
+
s(i, { span: 6 }, {
|
|
290
|
+
default: t(() => [
|
|
291
|
+
s(g, {
|
|
292
|
+
label: a.$t("goodsSpu.spuName"),
|
|
293
|
+
prop: "likeSpuName"
|
|
294
|
+
}, {
|
|
295
|
+
default: t(() => [
|
|
296
|
+
s(ne, {
|
|
297
|
+
class: "!w-[203px]",
|
|
298
|
+
modelValue: o(u).likeSpuName,
|
|
299
|
+
"onUpdate:modelValue": l[2] || (l[2] = (e) => o(u).likeSpuName = e),
|
|
300
|
+
placeholder: a.$t("goodsSpu.spuNameRequired"),
|
|
301
|
+
onKeyup: l[3] || (l[3] = we((e) => o(n).handleQuery(), ["enter"])),
|
|
302
|
+
clearable: ""
|
|
303
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["label"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
s(i, { span: 6 }, {
|
|
311
|
+
default: t(() => [
|
|
312
|
+
s(g, {
|
|
313
|
+
label: a.$t("goodsSpu.shelf"),
|
|
314
|
+
prop: "shelf"
|
|
315
|
+
}, {
|
|
316
|
+
default: t(() => [
|
|
317
|
+
s(V, {
|
|
318
|
+
class: "!w-[203px]",
|
|
319
|
+
modelValue: o(u).shelf,
|
|
320
|
+
"onUpdate:modelValue": l[4] || (l[4] = (e) => o(u).shelf = e),
|
|
321
|
+
placeholder: a.$t("goodsSpu.shelfRequired"),
|
|
322
|
+
data: o(r).shelfDict.values,
|
|
323
|
+
clearable: "",
|
|
324
|
+
onChange: l[5] || (l[5] = (e) => o(n).handleQuery())
|
|
325
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}, 8, ["label"])
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}),
|
|
332
|
+
s(i, { span: 6 }, {
|
|
333
|
+
default: t(() => [
|
|
334
|
+
s(g, {
|
|
335
|
+
label: a.$t("goodsSpu.stockMax"),
|
|
336
|
+
prop: "stock"
|
|
337
|
+
}, {
|
|
338
|
+
default: t(() => [
|
|
339
|
+
s(ue, {
|
|
340
|
+
modelValue: o(u).stock,
|
|
341
|
+
"onUpdate:modelValue": l[6] || (l[6] = (e) => o(u).stock = e),
|
|
342
|
+
precision: 0,
|
|
343
|
+
step: 1,
|
|
344
|
+
min: 0,
|
|
345
|
+
placeholder: a.$t("goodsSpu.stockRequired"),
|
|
346
|
+
class: "!w-[203px]",
|
|
347
|
+
controls: !1
|
|
348
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["label"])
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}),
|
|
355
|
+
s(i, { span: 6 }, {
|
|
356
|
+
default: t(() => [
|
|
357
|
+
s(g, {
|
|
358
|
+
label: a.$t("goodsSpu.specType"),
|
|
359
|
+
prop: "specType"
|
|
360
|
+
}, {
|
|
361
|
+
default: t(() => [
|
|
362
|
+
s(V, {
|
|
363
|
+
class: "!w-[203px]",
|
|
364
|
+
modelValue: o(u).specType,
|
|
365
|
+
"onUpdate:modelValue": l[7] || (l[7] = (e) => o(u).specType = e),
|
|
366
|
+
placeholder: a.$t("goodsSpu.specTypeRequired"),
|
|
367
|
+
data: o(r).specTypeEnum.values,
|
|
368
|
+
clearable: "",
|
|
369
|
+
onChange: l[8] || (l[8] = (e) => o(n).handleQuery())
|
|
370
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}, 8, ["label"])
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
376
|
+
}),
|
|
377
|
+
s(i, { span: 6 }, {
|
|
378
|
+
default: t(() => [
|
|
379
|
+
s(g, {
|
|
380
|
+
label: a.$t("goodsSpu.presaleType"),
|
|
381
|
+
prop: "presaleType"
|
|
382
|
+
}, {
|
|
383
|
+
default: t(() => [
|
|
384
|
+
s(V, {
|
|
385
|
+
class: "!w-[203px]",
|
|
386
|
+
modelValue: o(u).presaleType,
|
|
387
|
+
"onUpdate:modelValue": l[9] || (l[9] = (e) => o(u).presaleType = e),
|
|
388
|
+
placeholder: a.$t("goodsSpu.presaleTypeRequired"),
|
|
389
|
+
data: o(r).presaleTypeEnum.values,
|
|
390
|
+
clearable: "",
|
|
391
|
+
onChange: l[10] || (l[10] = (e) => o(n).handleQuery())
|
|
392
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
393
|
+
]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["label"])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}),
|
|
399
|
+
s(i, { span: 6 }, {
|
|
400
|
+
default: t(() => [
|
|
401
|
+
s(g, {
|
|
402
|
+
label: a.$t("goodsSpu.labelIds"),
|
|
403
|
+
prop: "labelIds"
|
|
404
|
+
}, {
|
|
405
|
+
default: t(() => [
|
|
406
|
+
s(V, {
|
|
407
|
+
class: "!w-[203px]",
|
|
408
|
+
modelValue: o(u).labelIds,
|
|
409
|
+
"onUpdate:modelValue": l[11] || (l[11] = (e) => o(u).labelIds = e),
|
|
410
|
+
placeholder: a.$t("goodsSpu.labelIdsRequired"),
|
|
411
|
+
data: o(r).labelListBizDict.values,
|
|
412
|
+
multiple: "",
|
|
413
|
+
filterable: "",
|
|
414
|
+
clearable: "",
|
|
415
|
+
onChange: l[12] || (l[12] = (e) => o(n).handleQuery())
|
|
416
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}, 8, ["label"])
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
}),
|
|
423
|
+
s(i, { span: 6 }, {
|
|
424
|
+
default: t(() => [
|
|
425
|
+
s(g, {
|
|
426
|
+
label: a.$t("goodsSpu.channelId"),
|
|
427
|
+
prop: "channelIds"
|
|
428
|
+
}, {
|
|
429
|
+
default: t(() => [
|
|
430
|
+
s(V, {
|
|
431
|
+
class: "!w-[203px]",
|
|
432
|
+
modelValue: o(u).channelId,
|
|
433
|
+
"onUpdate:modelValue": l[13] || (l[13] = (e) => o(u).channelId = e),
|
|
434
|
+
data: o(A).channelListBizDict.values,
|
|
435
|
+
placeholder: a.$t("goodsSpu.channelIdRequired"),
|
|
436
|
+
clearable: "",
|
|
437
|
+
onChange: l[14] || (l[14] = (e) => o(n).handleQuery())
|
|
438
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
439
|
+
]),
|
|
440
|
+
_: 1
|
|
441
|
+
}, 8, ["label"])
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}),
|
|
445
|
+
s(i, { span: 24 }, {
|
|
446
|
+
default: t(() => [
|
|
447
|
+
s(g, { class: "search-btn" }, {
|
|
448
|
+
default: t(() => [
|
|
449
|
+
s(v, {
|
|
450
|
+
type: "primary",
|
|
451
|
+
onClick: l[15] || (l[15] = (e) => o(n).handleQuery())
|
|
452
|
+
}, {
|
|
453
|
+
default: t(() => [
|
|
454
|
+
c(p(a.$t("common.search")), 1)
|
|
455
|
+
]),
|
|
456
|
+
_: 1
|
|
457
|
+
}),
|
|
458
|
+
s(v, {
|
|
459
|
+
onClick: l[16] || (l[16] = (e) => o(n).resetQuery())
|
|
460
|
+
}, {
|
|
461
|
+
default: t(() => [
|
|
462
|
+
c(p(a.$t("common.reset")), 1)
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
})
|
|
466
|
+
]),
|
|
467
|
+
_: 1
|
|
468
|
+
})
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
})
|
|
472
|
+
]),
|
|
473
|
+
_: 1
|
|
474
|
+
})
|
|
475
|
+
]),
|
|
476
|
+
_: 1
|
|
477
|
+
}, 8, ["model"])
|
|
478
|
+
]),
|
|
479
|
+
s(Q, {
|
|
480
|
+
shadow: "never",
|
|
481
|
+
class: "table-container"
|
|
482
|
+
}, {
|
|
483
|
+
header: t(() => [
|
|
484
|
+
s(P, null, {
|
|
485
|
+
default: t(() => [
|
|
486
|
+
s(i, { span: 17 }, {
|
|
487
|
+
default: t(() => [
|
|
488
|
+
w((m(), b(v, {
|
|
489
|
+
type: "primary",
|
|
490
|
+
onClick: G
|
|
491
|
+
}, {
|
|
492
|
+
default: t(() => [
|
|
493
|
+
c(p(a.$t("common.add")), 1)
|
|
494
|
+
]),
|
|
495
|
+
_: 1
|
|
496
|
+
})), [
|
|
497
|
+
[y, ["goods:goods_spu:add"]]
|
|
498
|
+
]),
|
|
499
|
+
w((m(), b(v, {
|
|
500
|
+
type: "primary",
|
|
501
|
+
onClick: l[17] || (l[17] = (e) => o(n).deleteRecords())
|
|
502
|
+
}, {
|
|
503
|
+
default: t(() => [
|
|
504
|
+
c(p(a.$t("common.batchDelete")), 1)
|
|
505
|
+
]),
|
|
506
|
+
_: 1
|
|
507
|
+
})), [
|
|
508
|
+
[y, ["goods:goods_spu:delete"]]
|
|
509
|
+
]),
|
|
510
|
+
w((m(), b(v, {
|
|
511
|
+
type: "primary",
|
|
512
|
+
onClick: le
|
|
513
|
+
}, {
|
|
514
|
+
default: t(() => [
|
|
515
|
+
c(p(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
516
|
+
]),
|
|
517
|
+
_: 1
|
|
518
|
+
})), [
|
|
519
|
+
[y, ["goods:goods_spu:onSale"]]
|
|
520
|
+
]),
|
|
521
|
+
w((m(), b(v, {
|
|
522
|
+
type: "primary",
|
|
523
|
+
onClick: ee
|
|
524
|
+
}, {
|
|
525
|
+
default: t(() => [
|
|
526
|
+
c(p(a.$t("goodsSpu.batchShelf")), 1)
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
})), [
|
|
530
|
+
[y, ["goods:goods_spu:onSale"]]
|
|
531
|
+
]),
|
|
532
|
+
w((m(), b(v, {
|
|
533
|
+
type: "primary",
|
|
534
|
+
onClick: oe
|
|
535
|
+
}, {
|
|
536
|
+
default: t(() => [
|
|
537
|
+
c(p(a.$t("goodsSpu.batchChannelProfit")), 1)
|
|
538
|
+
]),
|
|
539
|
+
_: 1
|
|
540
|
+
})), [
|
|
541
|
+
[y, ["goods:goods_spu:channelProfit"]]
|
|
542
|
+
])
|
|
543
|
+
]),
|
|
544
|
+
_: 1
|
|
545
|
+
}),
|
|
546
|
+
s(i, {
|
|
547
|
+
span: 7,
|
|
548
|
+
class: "container-float"
|
|
549
|
+
}, {
|
|
550
|
+
default: t(() => [
|
|
551
|
+
w((m(), b(v, {
|
|
552
|
+
plain: "",
|
|
553
|
+
type: "primary",
|
|
554
|
+
onClick: l[18] || (l[18] = (e) => _.value = !0)
|
|
555
|
+
}, {
|
|
556
|
+
default: t(() => [
|
|
557
|
+
c(p(a.$t("common.import")), 1)
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
})), [
|
|
561
|
+
[y, ["goods_spuimport"]]
|
|
562
|
+
]),
|
|
563
|
+
s(de, {
|
|
564
|
+
modelValue: o($),
|
|
565
|
+
"onUpdate:modelValue": l[19] || (l[19] = (e) => M($) ? $.value = e : $ = e),
|
|
566
|
+
"label-name": "goods/goods-spu"
|
|
567
|
+
}, null, 8, ["modelValue"])
|
|
568
|
+
]),
|
|
569
|
+
_: 1
|
|
570
|
+
})
|
|
571
|
+
]),
|
|
572
|
+
_: 1
|
|
573
|
+
})
|
|
574
|
+
]),
|
|
575
|
+
footer: t(() => [
|
|
576
|
+
o(U) > 0 ? (m(), b(me, {
|
|
577
|
+
key: 0,
|
|
578
|
+
total: o(U),
|
|
579
|
+
"onUpdate:total": l[20] || (l[20] = (e) => M(U) ? U.value = e : null),
|
|
580
|
+
"current-page": o(u).curPage,
|
|
581
|
+
"onUpdate:currentPage": l[21] || (l[21] = (e) => o(u).curPage = e),
|
|
582
|
+
"page-size": o(u).pageSize,
|
|
583
|
+
"onUpdate:pageSize": l[22] || (l[22] = (e) => o(u).pageSize = e),
|
|
584
|
+
onPagination: l[23] || (l[23] = (e) => o(n).getList())
|
|
585
|
+
}, null, 8, ["total", "current-page", "page-size"])) : E("", !0)
|
|
586
|
+
]),
|
|
587
|
+
default: t(() => [
|
|
588
|
+
s(ie, {
|
|
589
|
+
ref_key: "multipleTableRef",
|
|
590
|
+
ref: N,
|
|
591
|
+
"row-key": "spuId",
|
|
592
|
+
"list-loading": o(H),
|
|
593
|
+
data: o(K),
|
|
594
|
+
"table-label": o($),
|
|
595
|
+
onSelectionChange: Z,
|
|
596
|
+
onSortChange: x
|
|
597
|
+
}, {
|
|
598
|
+
picUrls: t((e) => [
|
|
599
|
+
C("span", null, [
|
|
600
|
+
s(re, {
|
|
601
|
+
src: o(O).imageUrl(e.data.row.picUrls.split(",")[0], 0, 0),
|
|
602
|
+
"preview-src-list": [
|
|
603
|
+
o(O).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
604
|
+
],
|
|
605
|
+
"preview-teleported": "",
|
|
606
|
+
"hide-on-click-modal": "",
|
|
607
|
+
fit: "contain"
|
|
608
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
609
|
+
])
|
|
610
|
+
]),
|
|
611
|
+
shelf: t((e) => [
|
|
612
|
+
C("span", null, [
|
|
613
|
+
s(j, {
|
|
614
|
+
modelValue: e.data.row.shelf,
|
|
615
|
+
"onUpdate:modelValue": (h) => e.data.row.shelf = h,
|
|
616
|
+
onClick: (h) => o(n).enableRecord(
|
|
617
|
+
e.data.row,
|
|
618
|
+
e.data.row.shelf
|
|
619
|
+
)
|
|
620
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
621
|
+
])
|
|
622
|
+
]),
|
|
623
|
+
supClass: t((e) => [
|
|
624
|
+
C("span", null, p(o(r).goodsSupClassEnum.getEnumValue(e.data.row.supClass)), 1)
|
|
625
|
+
]),
|
|
626
|
+
specType: t((e) => [
|
|
627
|
+
C("span", null, p(o(r).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
628
|
+
]),
|
|
629
|
+
presaleType: t((e) => [
|
|
630
|
+
C("span", null, p(o(r).presaleTypeEnum.getEnumValue(e.data.row.presaleType)), 1)
|
|
631
|
+
]),
|
|
632
|
+
salePrice: t((e) => [
|
|
633
|
+
c(p(`${e.data.row.maxPrice.toFixed(2)} - ${e.data.row.minPrice.toFixed(2)}`), 1)
|
|
634
|
+
]),
|
|
635
|
+
updateTime: t((e) => [
|
|
636
|
+
C("span", null, p(o(Y).$moment.formatDate(
|
|
637
|
+
e.data.row.updateTime,
|
|
638
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
639
|
+
)), 1)
|
|
640
|
+
]),
|
|
641
|
+
enable: t((e) => [
|
|
642
|
+
s(j, {
|
|
643
|
+
modelValue: e.data.row.enable,
|
|
644
|
+
"onUpdate:modelValue": (h) => e.data.row.enable = h,
|
|
645
|
+
onChange: (h) => o(n).enableRecord(e.data.row, e.data.row.enable)
|
|
646
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
647
|
+
]),
|
|
648
|
+
operation: t((e) => [
|
|
649
|
+
e.data.row.shelf ? E("", !0) : w((m(), D("span", {
|
|
650
|
+
key: 0,
|
|
651
|
+
class: "el-button-color",
|
|
652
|
+
onClick: (h) => W(e.data.row)
|
|
653
|
+
}, [
|
|
654
|
+
c(p(a.$t("common.edit")), 1)
|
|
655
|
+
], 8, Re)), [
|
|
656
|
+
[y, ["goods:goods_spu:update"]]
|
|
657
|
+
]),
|
|
658
|
+
C("span", {
|
|
659
|
+
class: "el-button-color",
|
|
660
|
+
onClick: (h) => J(e.data.row)
|
|
661
|
+
}, p(a.$t("goodsSpu.spec")), 9, Ue),
|
|
662
|
+
w((m(), D("span", {
|
|
663
|
+
class: "el-button-color",
|
|
664
|
+
onClick: (h) => o(n).deleteRecord(e.data.row)
|
|
665
|
+
}, [
|
|
666
|
+
c(p(a.$t("common.delete")), 1)
|
|
667
|
+
], 8, De)), [
|
|
668
|
+
[y, ["goods:goods_spu:delete"]]
|
|
669
|
+
]),
|
|
670
|
+
w((m(), D("span", {
|
|
671
|
+
class: "el-button-color",
|
|
672
|
+
onClick: (h) => X(e.data.row)
|
|
673
|
+
}, [
|
|
674
|
+
c(p(a.$t("common.view")), 1)
|
|
675
|
+
], 8, Ee)), [
|
|
676
|
+
[y, ["goods:goods_spu:view"]]
|
|
677
|
+
])
|
|
678
|
+
]),
|
|
679
|
+
_: 1
|
|
680
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
681
|
+
]),
|
|
682
|
+
_: 1
|
|
683
|
+
})
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
})
|
|
687
|
+
]),
|
|
688
|
+
_: 1
|
|
689
|
+
}),
|
|
690
|
+
o(_) ? (m(), b(ce, {
|
|
691
|
+
key: 0,
|
|
692
|
+
"upload-visible": o(_),
|
|
693
|
+
"template-title": a.$t("goodsSpu.templateDownload"),
|
|
694
|
+
onTemplateDown: l[24] || (l[24] = (e) => o(n).downloadTemplate(o(f)("goodsSpu.name"))),
|
|
695
|
+
onImportEvents: te,
|
|
696
|
+
onUploadClosed: se
|
|
697
|
+
}, null, 8, ["upload-visible", "template-title"])) : E("", !0),
|
|
698
|
+
o(k).visible ? (m(), b(ke, {
|
|
699
|
+
key: 1,
|
|
700
|
+
modelValue: o(k).visible,
|
|
701
|
+
"onUpdate:modelValue": l[25] || (l[25] = (e) => o(k).visible = e),
|
|
702
|
+
title: o(k).title,
|
|
703
|
+
"entity-key": o(q),
|
|
704
|
+
onRefresh: ae,
|
|
705
|
+
width: "900px"
|
|
706
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : E("", !0)
|
|
707
|
+
]);
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
}), He = /* @__PURE__ */ _e(Ne, [["__scopeId", "data-v-1243612a"]]);
|
|
711
|
+
export {
|
|
712
|
+
He as default
|
|
713
|
+
};
|