xyvcard-goods 0.0.31 → 0.0.33
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 -51
- package/dist/GoodsBaseForm-6rzBkBTh.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +374 -0
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +10 -0
- package/dist/GoodsSpecForm-BqaN71rS.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +140 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-DnKLaz3I.mjs +45 -0
- package/dist/edit copy-tfwJCdiV.mjs +526 -0
- package/dist/{edit-DEKgI9dl.mjs → edit-1Lv_dvlq.mjs} +7 -7
- package/dist/{edit-WZ-vVp0_.mjs → edit-CZwlbL9o.mjs} +9 -9
- package/dist/{edit-CR4LNc6c.mjs → edit-D2zcGl_U.mjs} +1 -1
- package/dist/{edit-Bgvy3bUQ.mjs → edit-DBTNknBy.mjs} +4 -4
- package/dist/{edit-CAmBfr7s.mjs → edit-Db2EJ9dq.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CSjc2-0k.mjs → edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs} +3 -3
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-Dy5vhMgv.mjs → index-BXa-atkT.mjs} +1 -1
- package/dist/{index-B9EvyZqu.mjs → index-BhUD_X30.mjs} +281 -250
- package/dist/{index-w0WaL9Bq.mjs → index-BpXZNA11.mjs} +3 -3
- package/dist/{index-CIOmQi5q.mjs → index-CRfiEzkA.mjs} +1489 -1478
- package/dist/{index-CCDQbidt.mjs → index-Cl4wz2yF.mjs} +3 -3
- package/dist/{index-CnXaunj4.mjs → index-DGYGNHfx.mjs} +3 -3
- package/dist/{index-Br8OH0po.mjs → index-DXIGHcIv.mjs} +2 -2
- package/dist/index-Df-F10aZ.mjs +264 -0
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-Cp_2nx9w.mjs → info-DDi6GKQH.mjs} +3 -3
- package/dist/{info-CzP-Zg-I.mjs → info-DfbU-CWk.mjs} +2 -2
- package/dist/{skuForm-D_Q4iyk2.mjs → skuForm-DWIoveRP.mjs} +14 -14
- package/dist/{skuForm-CVp5ywg4.mjs → skuForm-DoIpxDvq.mjs} +71 -86
- package/dist/{skuTable-DcYM5x3V.mjs → skuTable-BVBtWrf9.mjs} +13 -13
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/package.json +63 -63
- package/dist/index-Ba-YRVAR.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
1
|
+
import { defineComponent as _e, ref as U, getCurrentInstance as we, onMounted as Ce, onActivated as Ve, resolveComponent as i, resolveDirective as ke, createElementBlock as _, openBlock as p, createVNode as s, createBlock as S, createCommentVNode as w, withCtx as a, Fragment as O, renderList as z, unref as t, createElementVNode as A, withKeys as G, createTextVNode as b, toDisplayString as m, withDirectives as C, normalizeClass as Pe, isRef as H } from "vue";
|
|
2
|
+
import { useRoute as Ae, useRouter as Ie } from "vue-router";
|
|
3
3
|
import { ElMessage as P } from "element-plus";
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useTableHooks as
|
|
6
|
-
import { D as g, C as f } from "./index-
|
|
7
|
-
import { a as
|
|
8
|
-
const
|
|
4
|
+
import { useI18n as Re } from "vue-i18n";
|
|
5
|
+
import { useTableHooks as Le, fileApi as K } from "jmash-core";
|
|
6
|
+
import { D as g, C as f } from "./index-Df-F10aZ.mjs";
|
|
7
|
+
import { a as T } from "./index-CRfiEzkA.mjs";
|
|
8
|
+
const $e = { class: "app-container" }, Te = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "app-container"
|
|
11
|
-
},
|
|
11
|
+
}, De = { class: "search-container" }, Ne = ["onClick"], Ue = ["onClick"], Oe = ["onClick"], Ge = /* @__PURE__ */ _e({
|
|
12
12
|
__name: "index",
|
|
13
|
-
setup(
|
|
13
|
+
setup(ze) {
|
|
14
14
|
g.goodsCategoryListBizLayDict.useValues(), g.brandListBizDict.useValues(), g.labelListBizDict.useValues(), g.shopInfoBizDict.useValues();
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: c } = Re(), j = Ae(), B = Ie(), u = U(0), r = {
|
|
16
16
|
0: {},
|
|
17
17
|
1: { shelf: "true", approvalStatus: f.APPROVAL_PASS },
|
|
18
18
|
2: { shelf: "false" },
|
|
19
19
|
3: { approvalStatus: f.APPROVALING },
|
|
20
20
|
4: { approvalStatus: f.APPROVAL_NOT_PASS }
|
|
21
|
-
}, { proxy:
|
|
21
|
+
}, { proxy: Q } = we(), d = U({
|
|
22
22
|
curPage: 1,
|
|
23
23
|
pageSize: 10,
|
|
24
|
-
shelf:
|
|
25
|
-
approvalStatus:
|
|
24
|
+
shelf: r[u.value].shelf ? r[u.value].shelf : void 0,
|
|
25
|
+
approvalStatus: r[u.value].approvalStatus ? r[u.value].approvalStatus : void 0,
|
|
26
26
|
goodsType: f.GOODS_TYPE.NORMAL
|
|
27
27
|
}), {
|
|
28
28
|
tableHooks: n,
|
|
29
|
-
multipleTableRef:
|
|
30
|
-
queryFormRef:
|
|
31
|
-
listLoading:
|
|
32
|
-
tableData:
|
|
33
|
-
total:
|
|
34
|
-
} =
|
|
35
|
-
let L =
|
|
29
|
+
multipleTableRef: R,
|
|
30
|
+
queryFormRef: W,
|
|
31
|
+
listLoading: J,
|
|
32
|
+
tableData: X,
|
|
33
|
+
total: D
|
|
34
|
+
} = Le(c, T, d);
|
|
35
|
+
let L = U([
|
|
36
36
|
{
|
|
37
37
|
label: "goodsSpu.spuName",
|
|
38
38
|
prop: "spuName",
|
|
@@ -117,161 +117,170 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
117
117
|
isColumn: !0
|
|
118
118
|
}
|
|
119
119
|
]);
|
|
120
|
-
function
|
|
121
|
-
const e = Number(
|
|
122
|
-
u.value = e,
|
|
120
|
+
function Z(o) {
|
|
121
|
+
const e = Number(o.index);
|
|
122
|
+
u.value = e, d.value.shelf = r[e].shelf || void 0, d.value.approvalStatus = r[e].approvalStatus || void 0, n.getList();
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function x() {
|
|
125
|
+
d.value = {
|
|
126
126
|
curPage: 1,
|
|
127
127
|
pageSize: 10,
|
|
128
|
-
shelf:
|
|
129
|
-
approvalStatus:
|
|
128
|
+
shelf: r[u.value].shelf ? r[u.value].shelf : void 0,
|
|
129
|
+
approvalStatus: r[u.value].approvalStatus ? r[u.value].approvalStatus : void 0
|
|
130
130
|
}, n.getList();
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}),
|
|
132
|
+
Ce(() => {
|
|
133
|
+
j.query.activeTab && (u.value = Number(j.query.activeTab), d.value.shelf = r[u.value].shelf || void 0, d.value.approvalStatus = r[u.value].approvalStatus || void 0);
|
|
134
|
+
}), Ve(() => {
|
|
135
135
|
n.getList();
|
|
136
136
|
});
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function ee() {
|
|
138
|
+
B.push({ path: "/rawgoods/goods-spu/edit" });
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function le(o) {
|
|
141
|
+
B.push({
|
|
142
142
|
path: "/rawgoods/goods-spu/edit",
|
|
143
|
-
query: { spuId:
|
|
143
|
+
query: { spuId: o.spuId }
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
146
|
+
function oe(o) {
|
|
147
|
+
B.push({
|
|
148
148
|
path: "/rawgoods/goods-spu/info",
|
|
149
|
-
query: { spuId:
|
|
149
|
+
query: { spuId: o.spuId }
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
n.selectionRows.value =
|
|
152
|
+
function ae(o) {
|
|
153
|
+
n.selectionRows.value = o;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
n.handleSort(
|
|
155
|
+
function te(o) {
|
|
156
|
+
n.handleSort(o.prop, o.order);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function se() {
|
|
159
159
|
if (n.selectionRows.value.length === 0) {
|
|
160
160
|
P({
|
|
161
|
-
message:
|
|
161
|
+
message: c("goodsSpu.chooseShelf"),
|
|
162
162
|
type: "warning"
|
|
163
163
|
});
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const o = n.selectionRows.value.map(
|
|
167
167
|
(e) => e.spuId
|
|
168
168
|
);
|
|
169
|
-
|
|
170
|
-
var
|
|
169
|
+
T.enable({ spuId: o }, !0).then((e) => {
|
|
170
|
+
var v;
|
|
171
171
|
e.status === 200 && (P({
|
|
172
|
-
message:
|
|
172
|
+
message: c("goodsSpu.successShelf") + e.data + c("common.stripData"),
|
|
173
173
|
type: "success"
|
|
174
|
-
}), n.getList(), (
|
|
174
|
+
}), n.getList(), (v = R.value) == null || v.clearSelection());
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ue() {
|
|
178
178
|
if (n.selectionRows.value.length === 0) {
|
|
179
179
|
P({
|
|
180
|
-
message:
|
|
180
|
+
message: c("goodsSpu.chooseShelf"),
|
|
181
181
|
type: "warning"
|
|
182
182
|
});
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const o = n.selectionRows.value.map(
|
|
186
186
|
(e) => e.spuId
|
|
187
187
|
);
|
|
188
|
-
|
|
189
|
-
var
|
|
188
|
+
T.enable({ spuId: o }, !1).then((e) => {
|
|
189
|
+
var v;
|
|
190
190
|
e.status === 200 && P({
|
|
191
|
-
message:
|
|
191
|
+
message: c("goodsSpu.successOffShelf") + e.data + c("common.stripData"),
|
|
192
192
|
type: "success"
|
|
193
|
-
}), n.getList(), (
|
|
193
|
+
}), n.getList(), (v = R.value) == null || v.clearSelection();
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ne() {
|
|
197
197
|
if (n.selectionRows.value.length === 0) {
|
|
198
198
|
P({
|
|
199
|
-
message:
|
|
199
|
+
message: c("goodsSpu.chooseShelf"),
|
|
200
200
|
type: "warning"
|
|
201
201
|
});
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const o = n.selectionRows.value.map(
|
|
205
205
|
(e) => e.spuId
|
|
206
206
|
);
|
|
207
|
-
|
|
208
|
-
var
|
|
207
|
+
T.audit({ spuId: o }, f.APPROVAL_PASS).then((e) => {
|
|
208
|
+
var v;
|
|
209
209
|
e.status === 200 && (P({
|
|
210
|
-
message:
|
|
210
|
+
message: c("goodsSpu.successApproval") + e.data + c("common.stripData"),
|
|
211
211
|
type: "success"
|
|
212
|
-
}), n.getList(), (
|
|
212
|
+
}), n.getList(), (v = R.value) == null || v.clearSelection());
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function pe() {
|
|
216
216
|
if (n.selectionRows.value.length === 0) {
|
|
217
217
|
P({
|
|
218
|
-
message:
|
|
218
|
+
message: c("goodsSpu.chooseShelf"),
|
|
219
219
|
type: "warning"
|
|
220
220
|
});
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const o = n.selectionRows.value.map(
|
|
224
224
|
(e) => e.spuId
|
|
225
225
|
);
|
|
226
|
-
|
|
227
|
-
var
|
|
226
|
+
T.audit({ spuId: o }, f.APPROVAL_NOT_PASS).then((e) => {
|
|
227
|
+
var v;
|
|
228
228
|
e.status === 200 && (P({
|
|
229
|
-
message:
|
|
229
|
+
message: c("goodsSpu.successFilled") + e.data + c("common.stripData"),
|
|
230
230
|
type: "success"
|
|
231
|
-
}), n.getList(), (
|
|
231
|
+
}), n.getList(), (v = R.value) == null || v.clearSelection());
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
const $ = U(!1);
|
|
235
|
+
function de(o) {
|
|
236
|
+
o.updateMask = "", n.importExcel(o).then(() => {
|
|
237
|
+
$.value = !1;
|
|
232
238
|
});
|
|
233
239
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
240
|
+
function re() {
|
|
241
|
+
$.value = !1;
|
|
242
|
+
}
|
|
243
|
+
return (o, e) => {
|
|
244
|
+
const v = i("el-input"), I = i("el-form-item"), k = i("el-col"), ie = i("el-tree-select"), M = i("el-option"), Y = i("el-select"), q = i("el-row"), V = i("el-button"), me = i("el-form"), ce = i("jmash-column-select"), ve = i("el-image"), F = i("el-switch"), ge = i("jmash-table"), fe = i("jmash-pagination"), Se = i("el-card"), be = i("el-tab-pane"), ye = i("el-tabs"), he = i("import-upload"), h = ke("hasPerm");
|
|
245
|
+
return p(), _("div", $e, [
|
|
246
|
+
s(ye, {
|
|
238
247
|
modelValue: u.value,
|
|
239
|
-
"onUpdate:modelValue": e[
|
|
248
|
+
"onUpdate:modelValue": e[16] || (e[16] = (N) => u.value = N),
|
|
240
249
|
type: "border-card",
|
|
241
|
-
onTabClick:
|
|
250
|
+
onTabClick: Z
|
|
242
251
|
}, {
|
|
243
|
-
default:
|
|
244
|
-
(
|
|
245
|
-
key:
|
|
246
|
-
label:
|
|
247
|
-
name:
|
|
252
|
+
default: a(() => [
|
|
253
|
+
(p(!0), _(O, null, z(t(g).goodsSpuListSortDict.values, (N, E) => (p(), S(be, {
|
|
254
|
+
key: E,
|
|
255
|
+
label: N.value,
|
|
256
|
+
name: E
|
|
248
257
|
}, {
|
|
249
|
-
default:
|
|
250
|
-
u.value ===
|
|
251
|
-
A("div",
|
|
252
|
-
s(
|
|
258
|
+
default: a(() => [
|
|
259
|
+
u.value === E ? (p(), _("div", Te, [
|
|
260
|
+
A("div", De, [
|
|
261
|
+
s(me, {
|
|
253
262
|
ref_for: !0,
|
|
254
263
|
ref_key: "queryFormRef",
|
|
255
|
-
ref:
|
|
256
|
-
model:
|
|
264
|
+
ref: W,
|
|
265
|
+
model: d.value,
|
|
257
266
|
inline: !0
|
|
258
267
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
s(
|
|
261
|
-
default:
|
|
262
|
-
s(
|
|
263
|
-
default:
|
|
264
|
-
s(
|
|
265
|
-
label:
|
|
268
|
+
default: a(() => [
|
|
269
|
+
s(q, null, {
|
|
270
|
+
default: a(() => [
|
|
271
|
+
s(k, { span: 6 }, {
|
|
272
|
+
default: a(() => [
|
|
273
|
+
s(I, {
|
|
274
|
+
label: o.$t("goodsSpu.spuCode"),
|
|
266
275
|
prop: "spuCode"
|
|
267
276
|
}, {
|
|
268
|
-
default:
|
|
269
|
-
s(
|
|
270
|
-
modelValue:
|
|
271
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
|
272
|
-
placeholder:
|
|
277
|
+
default: a(() => [
|
|
278
|
+
s(v, {
|
|
279
|
+
modelValue: d.value.spuCode,
|
|
280
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => d.value.spuCode = l),
|
|
281
|
+
placeholder: o.$t("goodsSpu.spuCodeRequired"),
|
|
273
282
|
class: "!w-[203px]",
|
|
274
|
-
onKeyup: e[1] || (e[1] =
|
|
283
|
+
onKeyup: e[1] || (e[1] = G((l) => t(n).handleQuery(), ["enter"]))
|
|
275
284
|
}, null, 8, ["modelValue", "placeholder"])
|
|
276
285
|
]),
|
|
277
286
|
_: 1
|
|
@@ -279,18 +288,18 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
279
288
|
]),
|
|
280
289
|
_: 1
|
|
281
290
|
}),
|
|
282
|
-
s(
|
|
283
|
-
default:
|
|
284
|
-
s(
|
|
285
|
-
label:
|
|
291
|
+
s(k, { span: 6 }, {
|
|
292
|
+
default: a(() => [
|
|
293
|
+
s(I, {
|
|
294
|
+
label: o.$t("goodsSpu.spuName"),
|
|
286
295
|
prop: "likeSpuName"
|
|
287
296
|
}, {
|
|
288
|
-
default:
|
|
289
|
-
s(
|
|
290
|
-
modelValue:
|
|
291
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) =>
|
|
292
|
-
placeholder:
|
|
293
|
-
onKeyup: e[3] || (e[3] =
|
|
297
|
+
default: a(() => [
|
|
298
|
+
s(v, {
|
|
299
|
+
modelValue: d.value.likeSpuName,
|
|
300
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => d.value.likeSpuName = l),
|
|
301
|
+
placeholder: o.$t("goodsSpu.spuNameRequired"),
|
|
302
|
+
onKeyup: e[3] || (e[3] = G((l) => t(n).handleQuery(), ["enter"]))
|
|
294
303
|
}, null, 8, ["modelValue", "placeholder"])
|
|
295
304
|
]),
|
|
296
305
|
_: 1
|
|
@@ -298,19 +307,21 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
298
307
|
]),
|
|
299
308
|
_: 1
|
|
300
309
|
}),
|
|
301
|
-
s(
|
|
302
|
-
default:
|
|
303
|
-
s(
|
|
304
|
-
label:
|
|
310
|
+
s(k, { span: 6 }, {
|
|
311
|
+
default: a(() => [
|
|
312
|
+
s(I, {
|
|
313
|
+
label: o.$t("goodsSpu.categoryId"),
|
|
305
314
|
prop: "categoryIds"
|
|
306
315
|
}, {
|
|
307
|
-
default:
|
|
308
|
-
s(
|
|
309
|
-
modelValue:
|
|
310
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) =>
|
|
316
|
+
default: a(() => [
|
|
317
|
+
s(ie, {
|
|
318
|
+
modelValue: d.value.categoryIds,
|
|
319
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => d.value.categoryIds = l),
|
|
311
320
|
data: t(g).goodsCategoryListBizLayDict.values,
|
|
312
321
|
multiple: "",
|
|
313
|
-
|
|
322
|
+
"render-after-expand": !1,
|
|
323
|
+
"show-checkbox": "",
|
|
324
|
+
placeholder: o.$t("goodsSpu.categoryIdRequired"),
|
|
314
325
|
class: "!w-[203px]"
|
|
315
326
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
316
327
|
]),
|
|
@@ -319,22 +330,22 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
319
330
|
]),
|
|
320
331
|
_: 1
|
|
321
332
|
}),
|
|
322
|
-
s(
|
|
323
|
-
default:
|
|
324
|
-
s(
|
|
325
|
-
label:
|
|
333
|
+
s(k, { span: 6 }, {
|
|
334
|
+
default: a(() => [
|
|
335
|
+
s(I, {
|
|
336
|
+
label: o.$t("goodsSpu.brandId"),
|
|
326
337
|
prop: "brandId"
|
|
327
338
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
s(
|
|
330
|
-
modelValue:
|
|
331
|
-
"onUpdate:modelValue": e[5] || (e[5] = (l) =>
|
|
339
|
+
default: a(() => [
|
|
340
|
+
s(Y, {
|
|
341
|
+
modelValue: d.value.brandId,
|
|
342
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => d.value.brandId = l),
|
|
332
343
|
data: t(g).brandListBizDict.values,
|
|
333
|
-
placeholder:
|
|
344
|
+
placeholder: o.$t("goodsSpu.brandIdRequired"),
|
|
334
345
|
class: "!w-[203px]"
|
|
335
346
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
(
|
|
347
|
+
default: a(() => [
|
|
348
|
+
(p(!0), _(O, null, z(t(g).brandListBizDict.values, (l) => (p(), S(M, {
|
|
338
349
|
key: l.key,
|
|
339
350
|
label: l.value,
|
|
340
351
|
value: l.key
|
|
@@ -351,25 +362,25 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
351
362
|
]),
|
|
352
363
|
_: 1
|
|
353
364
|
}),
|
|
354
|
-
s(
|
|
355
|
-
default:
|
|
356
|
-
s(
|
|
357
|
-
default:
|
|
358
|
-
s(
|
|
359
|
-
label:
|
|
365
|
+
s(q, null, {
|
|
366
|
+
default: a(() => [
|
|
367
|
+
s(k, { span: 6 }, {
|
|
368
|
+
default: a(() => [
|
|
369
|
+
s(I, {
|
|
370
|
+
label: o.$t("goodsSpu.labelIds"),
|
|
360
371
|
prop: "labelIds"
|
|
361
372
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
s(
|
|
364
|
-
modelValue:
|
|
365
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) =>
|
|
373
|
+
default: a(() => [
|
|
374
|
+
s(Y, {
|
|
375
|
+
modelValue: d.value.labelIds,
|
|
376
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => d.value.labelIds = l),
|
|
366
377
|
data: t(g).labelListBizDict.values,
|
|
367
378
|
multiple: "",
|
|
368
|
-
placeholder:
|
|
379
|
+
placeholder: o.$t("goodsSpu.labelIdsRequired"),
|
|
369
380
|
class: "!w-[203px]"
|
|
370
381
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
(
|
|
382
|
+
default: a(() => [
|
|
383
|
+
(p(!0), _(O, null, z(t(g).labelListBizDict.values, (l) => (p(), S(M, {
|
|
373
384
|
key: l.key,
|
|
374
385
|
label: l.value,
|
|
375
386
|
value: l.key
|
|
@@ -383,24 +394,24 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
383
394
|
]),
|
|
384
395
|
_: 1
|
|
385
396
|
}),
|
|
386
|
-
s(
|
|
387
|
-
default:
|
|
388
|
-
s(
|
|
389
|
-
default:
|
|
390
|
-
s(
|
|
397
|
+
s(k, { span: 18 }, {
|
|
398
|
+
default: a(() => [
|
|
399
|
+
s(I, { class: "search-btn" }, {
|
|
400
|
+
default: a(() => [
|
|
401
|
+
s(V, {
|
|
391
402
|
type: "primary",
|
|
392
403
|
onClick: e[7] || (e[7] = (l) => t(n).handleQuery())
|
|
393
404
|
}, {
|
|
394
|
-
default:
|
|
395
|
-
b(m(
|
|
405
|
+
default: a(() => [
|
|
406
|
+
b(m(o.$t("common.search")), 1)
|
|
396
407
|
]),
|
|
397
408
|
_: 1
|
|
398
409
|
}),
|
|
399
|
-
s(
|
|
400
|
-
onClick: e[8] || (e[8] = (l) =>
|
|
410
|
+
s(V, {
|
|
411
|
+
onClick: e[8] || (e[8] = (l) => x())
|
|
401
412
|
}, {
|
|
402
|
-
default:
|
|
403
|
-
b(m(
|
|
413
|
+
default: a(() => [
|
|
414
|
+
b(m(o.$t("common.reset")), 1)
|
|
404
415
|
]),
|
|
405
416
|
_: 1
|
|
406
417
|
})
|
|
@@ -416,99 +427,111 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
416
427
|
]),
|
|
417
428
|
_: 1
|
|
418
429
|
}, 8, ["model"]),
|
|
419
|
-
e[
|
|
430
|
+
e[18] || (e[18] = A("div", { class: "clear" }, null, -1))
|
|
420
431
|
]),
|
|
421
|
-
s(
|
|
432
|
+
s(Se, {
|
|
422
433
|
shadow: "never",
|
|
423
434
|
class: "table-container"
|
|
424
435
|
}, {
|
|
425
|
-
header:
|
|
426
|
-
s(
|
|
427
|
-
default:
|
|
428
|
-
s(
|
|
429
|
-
default:
|
|
430
|
-
|
|
436
|
+
header: a(() => [
|
|
437
|
+
s(q, null, {
|
|
438
|
+
default: a(() => [
|
|
439
|
+
s(k, { span: 17 }, {
|
|
440
|
+
default: a(() => [
|
|
441
|
+
C((p(), S(V, {
|
|
431
442
|
type: "primary",
|
|
432
|
-
onClick:
|
|
443
|
+
onClick: ee
|
|
433
444
|
}, {
|
|
434
|
-
default:
|
|
435
|
-
b(m(
|
|
445
|
+
default: a(() => [
|
|
446
|
+
b(m(o.$t("common.add")), 1)
|
|
436
447
|
]),
|
|
437
448
|
_: 1
|
|
438
449
|
})), [
|
|
439
|
-
[
|
|
450
|
+
[h, ["goods:goods_spu:add"]]
|
|
440
451
|
]),
|
|
441
|
-
|
|
452
|
+
r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), S(V, {
|
|
442
453
|
key: 0,
|
|
443
454
|
type: "primary",
|
|
444
455
|
onClick: e[9] || (e[9] = (l) => t(n).deleteRecords())
|
|
445
456
|
}, {
|
|
446
|
-
default:
|
|
447
|
-
b(m(
|
|
457
|
+
default: a(() => [
|
|
458
|
+
b(m(o.$t("common.batchDelete")), 1)
|
|
448
459
|
]),
|
|
449
460
|
_: 1
|
|
450
461
|
})), [
|
|
451
|
-
[
|
|
462
|
+
[h, ["goods:goods_spu:delete"]]
|
|
452
463
|
]) : w("", !0),
|
|
453
|
-
|
|
464
|
+
r[u.value].approvalStatus === t(f).APPROVAL_PASS || u.value === 0 ? C((p(), S(V, {
|
|
454
465
|
key: 1,
|
|
455
466
|
type: "primary",
|
|
456
|
-
onClick:
|
|
467
|
+
onClick: ue
|
|
457
468
|
}, {
|
|
458
|
-
default:
|
|
459
|
-
b(m(
|
|
469
|
+
default: a(() => [
|
|
470
|
+
b(m(o.$t("goodsSpu.batchOffShelf")), 1)
|
|
460
471
|
]),
|
|
461
472
|
_: 1
|
|
462
473
|
})), [
|
|
463
|
-
[
|
|
474
|
+
[h, ["goods:goods_spu:onSale"]]
|
|
464
475
|
]) : w("", !0),
|
|
465
|
-
|
|
476
|
+
r[u.value].shelf === "false" || u.value === 0 ? C((p(), S(V, {
|
|
466
477
|
key: 2,
|
|
467
478
|
type: "primary",
|
|
468
|
-
onClick:
|
|
479
|
+
onClick: se
|
|
469
480
|
}, {
|
|
470
|
-
default:
|
|
471
|
-
b(m(
|
|
481
|
+
default: a(() => [
|
|
482
|
+
b(m(o.$t("goodsSpu.batchShelf")), 1)
|
|
472
483
|
]),
|
|
473
484
|
_: 1
|
|
474
485
|
})), [
|
|
475
|
-
[
|
|
486
|
+
[h, ["goods:goods_spu:onSale"]]
|
|
476
487
|
]) : w("", !0),
|
|
477
|
-
u.value === 0 ||
|
|
488
|
+
u.value === 0 || r[u.value].approvalStatus === t(f).APPROVALING ? C((p(), S(V, {
|
|
478
489
|
key: 3,
|
|
479
490
|
type: "primary",
|
|
480
|
-
onClick:
|
|
491
|
+
onClick: ne
|
|
481
492
|
}, {
|
|
482
|
-
default:
|
|
483
|
-
b(m(
|
|
493
|
+
default: a(() => [
|
|
494
|
+
b(m(o.$t("goodsSpu.batchApprovaled")), 1)
|
|
484
495
|
]),
|
|
485
496
|
_: 1
|
|
486
497
|
})), [
|
|
487
|
-
[
|
|
498
|
+
[h, ["goods:goods_spu:approve"]]
|
|
488
499
|
]) : w("", !0),
|
|
489
|
-
u.value === 0 ||
|
|
500
|
+
u.value === 0 || r[u.value].approvalStatus === t(f).APPROVALING ? C((p(), S(V, {
|
|
490
501
|
key: 4,
|
|
491
502
|
type: "primary",
|
|
492
|
-
onClick:
|
|
503
|
+
onClick: pe
|
|
493
504
|
}, {
|
|
494
|
-
default:
|
|
495
|
-
b(m(
|
|
505
|
+
default: a(() => [
|
|
506
|
+
b(m(o.$t("goodsSpu.batchRejected")), 1)
|
|
496
507
|
]),
|
|
497
508
|
_: 1
|
|
498
509
|
})), [
|
|
499
|
-
[
|
|
510
|
+
[h, ["goods_spuapprove"]]
|
|
500
511
|
]) : w("", !0)
|
|
501
512
|
]),
|
|
502
513
|
_: 1
|
|
503
514
|
}),
|
|
504
|
-
s(
|
|
515
|
+
s(k, {
|
|
505
516
|
span: 7,
|
|
506
517
|
class: "container-float"
|
|
507
518
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
|
|
519
|
+
default: a(() => [
|
|
520
|
+
C((p(), S(V, {
|
|
521
|
+
plain: "",
|
|
522
|
+
type: "primary",
|
|
523
|
+
onClick: e[10] || (e[10] = (l) => $.value = !0)
|
|
524
|
+
}, {
|
|
525
|
+
default: a(() => [
|
|
526
|
+
b(m(o.$t("common.import")), 1)
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
})), [
|
|
530
|
+
[h, ["goods_spuimport"]]
|
|
531
|
+
]),
|
|
532
|
+
s(ce, {
|
|
510
533
|
modelValue: t(L),
|
|
511
|
-
"onUpdate:modelValue": e[
|
|
534
|
+
"onUpdate:modelValue": e[11] || (e[11] = (l) => H(L) ? L.value = l : L = l),
|
|
512
535
|
"label-name": "goods/goods-spu"
|
|
513
536
|
}, null, 8, ["modelValue"])
|
|
514
537
|
]),
|
|
@@ -518,46 +541,46 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
518
541
|
_: 1
|
|
519
542
|
})
|
|
520
543
|
]),
|
|
521
|
-
footer:
|
|
522
|
-
t(
|
|
544
|
+
footer: a(() => [
|
|
545
|
+
t(D) > 0 ? (p(), S(fe, {
|
|
523
546
|
key: 0,
|
|
524
|
-
total: t(
|
|
525
|
-
"onUpdate:total": e[
|
|
526
|
-
"current-page":
|
|
527
|
-
"onUpdate:currentPage": e[
|
|
528
|
-
"page-size":
|
|
529
|
-
"onUpdate:pageSize": e[
|
|
530
|
-
onPagination: e[
|
|
547
|
+
total: t(D),
|
|
548
|
+
"onUpdate:total": e[12] || (e[12] = (l) => H(D) ? D.value = l : null),
|
|
549
|
+
"current-page": d.value.curPage,
|
|
550
|
+
"onUpdate:currentPage": e[13] || (e[13] = (l) => d.value.curPage = l),
|
|
551
|
+
"page-size": d.value.pageSize,
|
|
552
|
+
"onUpdate:pageSize": e[14] || (e[14] = (l) => d.value.pageSize = l),
|
|
553
|
+
onPagination: e[15] || (e[15] = (l) => t(n).getList())
|
|
531
554
|
}, null, 8, ["total", "current-page", "page-size"])) : w("", !0)
|
|
532
555
|
]),
|
|
533
|
-
default:
|
|
534
|
-
s(
|
|
556
|
+
default: a(() => [
|
|
557
|
+
s(ge, {
|
|
535
558
|
ref_for: !0,
|
|
536
559
|
ref_key: "multipleTableRef",
|
|
537
|
-
ref:
|
|
560
|
+
ref: R,
|
|
538
561
|
"row-key": "spuId",
|
|
539
|
-
"list-loading": t(
|
|
540
|
-
data: t(
|
|
562
|
+
"list-loading": t(J),
|
|
563
|
+
data: t(X),
|
|
541
564
|
"table-label": t(L),
|
|
542
|
-
onSelectionChange:
|
|
543
|
-
onSortChange:
|
|
565
|
+
onSelectionChange: ae,
|
|
566
|
+
onSortChange: te
|
|
544
567
|
}, {
|
|
545
|
-
categoryId:
|
|
546
|
-
(
|
|
547
|
-
key:
|
|
568
|
+
categoryId: a((l) => [
|
|
569
|
+
(p(!0), _(O, null, z(l.data.row.categoryIds, (y) => (p(), _("span", {
|
|
570
|
+
key: y,
|
|
548
571
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
549
|
-
}, m(t(g).goodsCategoryListBizLayDict.getValue(
|
|
572
|
+
}, m(t(g).goodsCategoryListBizLayDict.getValue(y)), 1))), 128))
|
|
550
573
|
]),
|
|
551
|
-
picUrls:
|
|
574
|
+
picUrls: a((l) => [
|
|
552
575
|
A("span", null, [
|
|
553
|
-
s(
|
|
554
|
-
src: t(
|
|
576
|
+
s(ve, {
|
|
577
|
+
src: t(K).imageUrl(
|
|
555
578
|
l.data.row.picUrls.split(",")[0],
|
|
556
579
|
0,
|
|
557
580
|
0
|
|
558
581
|
),
|
|
559
582
|
"preview-src-list": [
|
|
560
|
-
t(
|
|
583
|
+
t(K).imageUrl(l.data.row.picUrls.split(",")[0])
|
|
561
584
|
],
|
|
562
585
|
"preview-teleported": "",
|
|
563
586
|
"hide-on-click-modal": "",
|
|
@@ -565,70 +588,70 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
565
588
|
}, null, 8, ["src", "preview-src-list"])
|
|
566
589
|
])
|
|
567
590
|
]),
|
|
568
|
-
shelf:
|
|
591
|
+
shelf: a((l) => [
|
|
569
592
|
A("span", null, [
|
|
570
|
-
s(
|
|
593
|
+
s(F, {
|
|
571
594
|
modelValue: l.data.row.shelf,
|
|
572
|
-
"onUpdate:modelValue": (
|
|
573
|
-
onClick: (
|
|
595
|
+
"onUpdate:modelValue": (y) => l.data.row.shelf = y,
|
|
596
|
+
onClick: (y) => t(n).enableRecord(
|
|
574
597
|
l.data.row,
|
|
575
598
|
l.data.row.shelf
|
|
576
599
|
)
|
|
577
600
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
578
601
|
])
|
|
579
602
|
]),
|
|
580
|
-
specType:
|
|
603
|
+
specType: a((l) => [
|
|
581
604
|
A("span", null, m(t(g).specTypeEnum.getEnumValue(l.data.row.specType)), 1)
|
|
582
605
|
]),
|
|
583
|
-
approvalStatus:
|
|
606
|
+
approvalStatus: a((l) => [
|
|
584
607
|
A("span", null, m(t(g).approvalStatusEnum.getEnumValue(
|
|
585
608
|
l.data.row.approvalStatus
|
|
586
609
|
)), 1)
|
|
587
610
|
]),
|
|
588
|
-
updateTime:
|
|
589
|
-
A("span", null, m(t(
|
|
611
|
+
updateTime: a((l) => [
|
|
612
|
+
A("span", null, m(t(Q).$moment.formatDate(
|
|
590
613
|
l.data.row.updateTime,
|
|
591
614
|
"YYYY-MM-DD HH:mm:ss"
|
|
592
615
|
)), 1)
|
|
593
616
|
]),
|
|
594
|
-
enable:
|
|
595
|
-
s(
|
|
617
|
+
enable: a((l) => [
|
|
618
|
+
s(F, {
|
|
596
619
|
modelValue: l.data.row.enable,
|
|
597
|
-
"onUpdate:modelValue": (
|
|
598
|
-
onChange: (
|
|
620
|
+
"onUpdate:modelValue": (y) => l.data.row.enable = y,
|
|
621
|
+
onChange: (y) => t(n).enableRecord(
|
|
599
622
|
l.data.row,
|
|
600
623
|
l.data.row.enable
|
|
601
624
|
)
|
|
602
625
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
603
626
|
]),
|
|
604
|
-
operation:
|
|
605
|
-
|
|
627
|
+
operation: a((l) => [
|
|
628
|
+
r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), _("span", {
|
|
606
629
|
key: 0,
|
|
607
630
|
class: "el-button-color",
|
|
608
|
-
onClick: (
|
|
631
|
+
onClick: (y) => le(l.data.row)
|
|
609
632
|
}, [
|
|
610
|
-
b(m(
|
|
611
|
-
], 8,
|
|
612
|
-
[
|
|
633
|
+
b(m(o.$t("common.edit")), 1)
|
|
634
|
+
], 8, Ne)), [
|
|
635
|
+
[h, ["goods:goods_spu:update"]]
|
|
613
636
|
]) : w("", !0),
|
|
614
|
-
|
|
637
|
+
r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), _("span", {
|
|
615
638
|
key: 1,
|
|
616
639
|
class: "el-button-color dropdown-left",
|
|
617
|
-
onClick: (
|
|
640
|
+
onClick: (y) => t(n).deleteRecord(l.data.row)
|
|
618
641
|
}, [
|
|
619
|
-
b(m(
|
|
620
|
-
], 8,
|
|
621
|
-
[
|
|
642
|
+
b(m(o.$t("common.delete")), 1)
|
|
643
|
+
], 8, Ue)), [
|
|
644
|
+
[h, ["goods:goods_spu:delete"]]
|
|
622
645
|
]) : w("", !0),
|
|
623
|
-
|
|
624
|
-
class:
|
|
625
|
-
|
|
646
|
+
C((p(), _("span", {
|
|
647
|
+
class: Pe(
|
|
648
|
+
r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
|
|
626
649
|
),
|
|
627
|
-
onClick: (
|
|
650
|
+
onClick: (y) => oe(l.data.row)
|
|
628
651
|
}, [
|
|
629
|
-
b(m(
|
|
630
|
-
], 10,
|
|
631
|
-
[
|
|
652
|
+
b(m(o.$t("common.view")), 1)
|
|
653
|
+
], 10, Oe)), [
|
|
654
|
+
[h, ["goods:goods_spu:view"]]
|
|
632
655
|
])
|
|
633
656
|
]),
|
|
634
657
|
_: 1
|
|
@@ -642,11 +665,19 @@ const Ae = { class: "app-container" }, Re = {
|
|
|
642
665
|
}, 1032, ["label", "name"]))), 128))
|
|
643
666
|
]),
|
|
644
667
|
_: 1
|
|
645
|
-
}, 8, ["modelValue"])
|
|
668
|
+
}, 8, ["modelValue"]),
|
|
669
|
+
$.value ? (p(), S(he, {
|
|
670
|
+
key: 0,
|
|
671
|
+
"upload-visible": $.value,
|
|
672
|
+
"template-title": o.$t("goodsSpu.templateDownload"),
|
|
673
|
+
onTemplateDown: e[17] || (e[17] = (N) => t(n).downloadTemplate(t(c)("goodsSpu.name"))),
|
|
674
|
+
onImportEvents: de,
|
|
675
|
+
onUploadClosed: re
|
|
676
|
+
}, null, 8, ["upload-visible", "template-title"])) : w("", !0)
|
|
646
677
|
]);
|
|
647
678
|
};
|
|
648
679
|
}
|
|
649
680
|
});
|
|
650
681
|
export {
|
|
651
|
-
|
|
682
|
+
Ge as default
|
|
652
683
|
};
|