xyvcard-goods 0.0.21 → 0.0.23
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/ImageUpload-Dk6GY6PA.mjs +93 -0
- package/dist/{edit-DFc_TNP3.mjs → edit-9jPSycsG.mjs} +148 -212
- package/dist/edit-CJpoa4Ck.mjs +368 -0
- package/dist/{edit-DxnsmaXV.mjs → edit-CWQMgvVP.mjs} +38 -38
- package/dist/{edit-CkR-I5aJ.mjs → edit-DU-BEAcq.mjs} +1 -1
- package/dist/{edit-BcokSKfN.mjs → edit-Ziwv43v0.mjs} +27 -27
- package/dist/edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs +24173 -0
- package/dist/{goodsList-HmPAwD_C.mjs → goodsList-2AwsJVoO.mjs} +1 -1
- package/dist/{goodsList-TX2ZnRR9.mjs → goodsList-CyWliLjg.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs → goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs} +2 -2
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs → goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs} +136 -147
- package/dist/{index-B0SXNsHW.mjs → index-8E7BciYp.mjs} +7 -7
- package/dist/{index-Dt3PP8dN.mjs → index-B1H5hqEi.mjs} +2 -2
- package/dist/{index-BZw9XfQo.mjs → index-B88acg0Q.mjs} +2 -2
- package/dist/{index-VFsDup14.mjs → index-BdP_dXBK.mjs} +3 -3
- package/dist/index-C7oatDPl.mjs +4432 -0
- package/dist/{index-Ctva-XF0.mjs → index-DPjR32Kv.mjs} +3 -3
- package/dist/{index-r0u-27m7.mjs → index-DR3Gk44r.mjs} +1 -1
- package/dist/index-jCpYt-EU.mjs +221 -0
- package/dist/index.mjs +6 -2864
- package/dist/info-BEMxnD6-.mjs +325 -0
- package/dist/{info-BTKv0IRt.mjs → info-DFIeVs66.mjs} +3 -3
- package/dist/{skuForm-C7rF2noo.mjs → skuForm-BhAbf2AG.mjs} +2 -2
- package/dist/skuForm-C2aQcL90.mjs +314 -0
- package/dist/{skuTable-CEwT-I1Q.mjs → skuTable-9JJqGeRx.mjs} +255 -208
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +3 -0
- package/dts/api/goods-spu/index.d.ts +4 -1
- package/dts/api/goods-spu/types.d.ts +28 -0
- package/dts/api/index.d.ts +2 -1
- package/dts/index.d.ts +4 -0
- package/dts/lang/goods/zh-cn.d.ts +5 -1
- package/dts/router/index.d.ts +1 -0
- package/dts/views/goods/goods-combination/skuForm.vue.d.ts +0 -9
- package/package.json +3 -2
- package/dist/edit-tCGa_9Kt.mjs +0 -507
- package/dist/edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs +0 -234
- package/dist/index-CqOoZ5xQ.mjs +0 -305
- package/dist/index-DR7GlHNd.mjs +0 -1288
- package/dist/index-jTDhsbYM.mjs +0 -141
- package/dist/info-CrghLmS4.mjs +0 -365
- package/dist/sku-B-IzfYLq.mjs +0 -52
- package/dist/skuForm-D2n8sQJo.mjs +0 -475
- package/dist/skuTable-D-awlXgj.mjs +0 -592
|
@@ -3,8 +3,8 @@ import { ElMessage as y } from "element-plus";
|
|
|
3
3
|
import { useRouter as we } from "vue-router";
|
|
4
4
|
import { useTableHooks as Ce, fileApi as W } from "jmash-core";
|
|
5
5
|
import { useI18n as ke } from "vue-i18n";
|
|
6
|
-
import {
|
|
7
|
-
import { D as S, C as h } from "./index-
|
|
6
|
+
import { a as T } from "./index-C7oatDPl.mjs";
|
|
7
|
+
import { D as S, C as h } from "./index-jCpYt-EU.mjs";
|
|
8
8
|
const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
|
|
9
9
|
__name: "goodsList",
|
|
10
10
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ge, getCurrentInstance as fe, ref as j, onActivated as be, resolveComponent as
|
|
2
|
-
import { ElMessage as
|
|
1
|
+
import { defineComponent as ge, getCurrentInstance as fe, ref as j, onActivated as be, resolveComponent as n, resolveDirective as _e, openBlock as r, createElementBlock as y, createElementVNode as C, createVNode as l, withCtx as o, withKeys as Y, unref as s, Fragment as N, renderList as R, createBlock as w, createTextVNode as c, toDisplayString as p, withDirectives as v, createCommentVNode as z, isRef as A } from "vue";
|
|
2
|
+
import { ElMessage as V } from "element-plus";
|
|
3
3
|
import { useRouter as ye } from "vue-router";
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import {
|
|
7
|
-
import { D as g, C as ve } from "./index-
|
|
4
|
+
import { useTableHooks as he, fileApi as H } from "jmash-core";
|
|
5
|
+
import { useI18n as we } from "vue-i18n";
|
|
6
|
+
import { a as B } from "./index-C7oatDPl.mjs";
|
|
7
|
+
import { D as g, C as ve } from "./index-jCpYt-EU.mjs";
|
|
8
8
|
const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke = ["onClick"], Ve = ["onClick"], Ie = ["onClick"], ze = /* @__PURE__ */ ge({
|
|
9
9
|
__name: "goodsList",
|
|
10
10
|
props: {
|
|
@@ -15,10 +15,10 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
15
15
|
},
|
|
16
16
|
setup(Q) {
|
|
17
17
|
g.brandListBizDict.useValues(), g.labelListBizDict.useValues();
|
|
18
|
-
const { t:
|
|
18
|
+
const { t: f } = we(), D = ye(), I = Q, { proxy: F } = fe(), u = j({
|
|
19
19
|
curPage: 1,
|
|
20
20
|
pageSize: 10,
|
|
21
|
-
shelf:
|
|
21
|
+
shelf: I.shelf ? I.shelf : void 0,
|
|
22
22
|
goodsType: ve.GOODS_TYPE.GROUP
|
|
23
23
|
}), {
|
|
24
24
|
tableHooks: d,
|
|
@@ -26,8 +26,8 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
26
26
|
queryFormRef: K,
|
|
27
27
|
listLoading: M,
|
|
28
28
|
tableData: G,
|
|
29
|
-
total:
|
|
30
|
-
} =
|
|
29
|
+
total: $
|
|
30
|
+
} = he(f, B, u);
|
|
31
31
|
let k = j([
|
|
32
32
|
{
|
|
33
33
|
label: "goodsSpu.spuName",
|
|
@@ -56,8 +56,6 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
56
56
|
prop: "minPrice",
|
|
57
57
|
width: "110",
|
|
58
58
|
sortable: "custom",
|
|
59
|
-
slotName: "minPrice",
|
|
60
|
-
columnType: "slot",
|
|
61
59
|
isColumn: !0
|
|
62
60
|
},
|
|
63
61
|
{
|
|
@@ -112,17 +110,17 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
112
110
|
]);
|
|
113
111
|
g.shopInfoBizDict.useValues(), g.goodsCategoryListBizLayDict.useValues();
|
|
114
112
|
function W() {
|
|
115
|
-
|
|
113
|
+
D.push({ path: "/rawgoods/goods-combination/edit" });
|
|
116
114
|
}
|
|
117
115
|
function J(a) {
|
|
118
|
-
|
|
116
|
+
D.push({
|
|
119
117
|
path: "/rawgoods/goods-combination/edit",
|
|
120
118
|
query: { spuId: a.spuId }
|
|
121
119
|
});
|
|
122
120
|
}
|
|
123
121
|
function X(a) {
|
|
124
|
-
|
|
125
|
-
path: "/rawgoods/goods-
|
|
122
|
+
D.push({
|
|
123
|
+
path: "/rawgoods/goods-combination/info",
|
|
126
124
|
query: { spuId: a.spuId }
|
|
127
125
|
});
|
|
128
126
|
}
|
|
@@ -134,69 +132,69 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
134
132
|
}
|
|
135
133
|
function ee(a) {
|
|
136
134
|
if (d.selectionRows.value.length === 0) {
|
|
137
|
-
|
|
138
|
-
message:
|
|
135
|
+
V({
|
|
136
|
+
message: f("goodsSpu.chooseShelf"),
|
|
139
137
|
type: "warning"
|
|
140
138
|
});
|
|
141
139
|
return;
|
|
142
140
|
}
|
|
143
|
-
const t = d.selectionRows.value.map((
|
|
144
|
-
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
message:
|
|
141
|
+
const t = d.selectionRows.value.map((m) => m.spuId);
|
|
142
|
+
B.enable({ spuId: t }, JSON.parse(a)).then((m) => {
|
|
143
|
+
var b;
|
|
144
|
+
m.status === 200 && (a === "true" ? V({
|
|
145
|
+
message: f("goodsSpu.successShelf") + m.data + f("common.stripData"),
|
|
148
146
|
type: "success"
|
|
149
|
-
}) :
|
|
150
|
-
message:
|
|
147
|
+
}) : V({
|
|
148
|
+
message: f("goodsSpu.successOffShelf") + m.data + f("common.stripData"),
|
|
151
149
|
type: "success"
|
|
152
|
-
}), d.getList(), (
|
|
150
|
+
}), d.getList(), (b = U.value) == null || b.clearSelection());
|
|
153
151
|
});
|
|
154
152
|
}
|
|
155
153
|
function oe() {
|
|
156
154
|
if (d.selectionRows.value.length === 0) {
|
|
157
|
-
|
|
158
|
-
message:
|
|
155
|
+
V({
|
|
156
|
+
message: f("goodsSpu.chooseShelf"),
|
|
159
157
|
type: "warning"
|
|
160
158
|
});
|
|
161
159
|
return;
|
|
162
160
|
}
|
|
163
161
|
const a = d.selectionRows.value.map((t) => t.spuId);
|
|
164
|
-
|
|
165
|
-
var
|
|
166
|
-
t.status === 200 && (
|
|
167
|
-
message:
|
|
162
|
+
B.enable({ spuId: a }, !0).then((t) => {
|
|
163
|
+
var m;
|
|
164
|
+
t.status === 200 && (V({
|
|
165
|
+
message: f("goodsSpu.successShelf") + t.data + f("common.stripData"),
|
|
168
166
|
type: "success"
|
|
169
|
-
}), d.getList(), (
|
|
167
|
+
}), d.getList(), (m = U.value) == null || m.clearSelection());
|
|
170
168
|
});
|
|
171
169
|
}
|
|
172
170
|
return be(() => {
|
|
173
171
|
d.getList();
|
|
174
172
|
}), (a, t) => {
|
|
175
|
-
const
|
|
176
|
-
return r(),
|
|
177
|
-
|
|
173
|
+
const m = n("el-input"), b = n("el-form-item"), _ = n("el-col"), le = n("el-tree-select"), P = n("el-option"), q = n("el-select"), T = n("el-row"), S = n("el-button"), te = n("el-form"), ae = n("arrow-down"), L = n("el-icon"), se = n("Unlock"), E = n("el-dropdown-item"), ne = n("Lock"), de = n("el-dropdown-menu"), ue = n("el-dropdown"), re = n("jmash-column-select"), pe = n("el-image"), O = n("el-switch"), ie = n("jmash-table"), me = n("jmash-pagination"), ce = n("el-card"), h = _e("hasPerm");
|
|
174
|
+
return r(), y("div", Se, [
|
|
175
|
+
C("div", Ce, [
|
|
178
176
|
l(te, {
|
|
179
177
|
ref_key: "queryFormRef",
|
|
180
178
|
ref: K,
|
|
181
|
-
model:
|
|
179
|
+
model: u.value,
|
|
182
180
|
inline: !0
|
|
183
181
|
}, {
|
|
184
182
|
default: o(() => [
|
|
185
|
-
l(
|
|
183
|
+
l(T, null, {
|
|
186
184
|
default: o(() => [
|
|
187
|
-
l(
|
|
185
|
+
l(_, { span: 6 }, {
|
|
188
186
|
default: o(() => [
|
|
189
|
-
l(
|
|
187
|
+
l(b, {
|
|
190
188
|
label: a.$t("goodsSpu.spuCode"),
|
|
191
189
|
prop: "spuCode"
|
|
192
190
|
}, {
|
|
193
191
|
default: o(() => [
|
|
194
|
-
l(
|
|
195
|
-
modelValue:
|
|
196
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
192
|
+
l(m, {
|
|
193
|
+
modelValue: u.value.spuCode,
|
|
194
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.spuCode = e),
|
|
197
195
|
placeholder: a.$t("goodsSpu.spuCode"),
|
|
198
196
|
class: "!w-[203px]",
|
|
199
|
-
onKeyup: t[1] || (t[1] = Y((e) =>
|
|
197
|
+
onKeyup: t[1] || (t[1] = Y((e) => s(d).handleQuery(), ["enter"]))
|
|
200
198
|
}, null, 8, ["modelValue", "placeholder"])
|
|
201
199
|
]),
|
|
202
200
|
_: 1
|
|
@@ -204,18 +202,18 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
204
202
|
]),
|
|
205
203
|
_: 1
|
|
206
204
|
}),
|
|
207
|
-
l(
|
|
205
|
+
l(_, { span: 6 }, {
|
|
208
206
|
default: o(() => [
|
|
209
|
-
l(
|
|
207
|
+
l(b, {
|
|
210
208
|
label: a.$t("goodsSpu.spuName"),
|
|
211
209
|
prop: "likeSpuName"
|
|
212
210
|
}, {
|
|
213
211
|
default: o(() => [
|
|
214
|
-
l(
|
|
215
|
-
modelValue:
|
|
216
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
212
|
+
l(m, {
|
|
213
|
+
modelValue: u.value.likeSpuName,
|
|
214
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.likeSpuName = e),
|
|
217
215
|
placeholder: a.$t("goodsSpu.spuName"),
|
|
218
|
-
onKeyup: t[3] || (t[3] = Y((e) =>
|
|
216
|
+
onKeyup: t[3] || (t[3] = Y((e) => s(d).handleQuery(), ["enter"]))
|
|
219
217
|
}, null, 8, ["modelValue", "placeholder"])
|
|
220
218
|
]),
|
|
221
219
|
_: 1
|
|
@@ -223,17 +221,17 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
223
221
|
]),
|
|
224
222
|
_: 1
|
|
225
223
|
}),
|
|
226
|
-
l(
|
|
224
|
+
l(_, { span: 6 }, {
|
|
227
225
|
default: o(() => [
|
|
228
|
-
l(
|
|
226
|
+
l(b, {
|
|
229
227
|
label: a.$t("goodsSpu.categoryId"),
|
|
230
228
|
prop: "categoryIds"
|
|
231
229
|
}, {
|
|
232
230
|
default: o(() => [
|
|
233
231
|
l(le, {
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) =>
|
|
236
|
-
data:
|
|
232
|
+
modelValue: u.value.categoryIds,
|
|
233
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => u.value.categoryIds = e),
|
|
234
|
+
data: s(g).goodsCategoryListBizLayDict.values,
|
|
237
235
|
multiple: "",
|
|
238
236
|
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
239
237
|
class: "!w-[203px]"
|
|
@@ -244,22 +242,22 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
244
242
|
]),
|
|
245
243
|
_: 1
|
|
246
244
|
}),
|
|
247
|
-
l(
|
|
245
|
+
l(_, { span: 6 }, {
|
|
248
246
|
default: o(() => [
|
|
249
|
-
l(
|
|
247
|
+
l(b, {
|
|
250
248
|
label: a.$t("goodsSpu.brandId"),
|
|
251
249
|
prop: "brandId"
|
|
252
250
|
}, {
|
|
253
251
|
default: o(() => [
|
|
254
252
|
l(q, {
|
|
255
|
-
modelValue:
|
|
256
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) =>
|
|
257
|
-
data:
|
|
253
|
+
modelValue: u.value.brandId,
|
|
254
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => u.value.brandId = e),
|
|
255
|
+
data: s(g).brandListBizDict.values,
|
|
258
256
|
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
259
257
|
class: "!w-[203px]"
|
|
260
258
|
}, {
|
|
261
259
|
default: o(() => [
|
|
262
|
-
(r(!0),
|
|
260
|
+
(r(!0), y(N, null, R(s(g).brandListBizDict.values, (e) => (r(), w(P, {
|
|
263
261
|
key: e.key,
|
|
264
262
|
label: e.value,
|
|
265
263
|
value: e.key
|
|
@@ -276,25 +274,25 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
276
274
|
]),
|
|
277
275
|
_: 1
|
|
278
276
|
}),
|
|
279
|
-
l(
|
|
277
|
+
l(T, null, {
|
|
280
278
|
default: o(() => [
|
|
281
|
-
l(
|
|
279
|
+
l(_, { span: 6 }, {
|
|
282
280
|
default: o(() => [
|
|
283
|
-
l(
|
|
281
|
+
l(b, {
|
|
284
282
|
label: a.$t("goodsSpu.labelIds"),
|
|
285
283
|
prop: "labelIds"
|
|
286
284
|
}, {
|
|
287
285
|
default: o(() => [
|
|
288
286
|
l(q, {
|
|
289
|
-
modelValue:
|
|
290
|
-
"onUpdate:modelValue": t[6] || (t[6] = (e) =>
|
|
291
|
-
data:
|
|
287
|
+
modelValue: u.value.labelIds,
|
|
288
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => u.value.labelIds = e),
|
|
289
|
+
data: s(g).labelListBizDict.values,
|
|
292
290
|
multiple: "",
|
|
293
291
|
placeholder: a.$t("goodsSpu.labelIdsRequired"),
|
|
294
292
|
class: "!w-[203px]"
|
|
295
293
|
}, {
|
|
296
294
|
default: o(() => [
|
|
297
|
-
(r(!0),
|
|
295
|
+
(r(!0), y(N, null, R(s(g).labelListBizDict.values, (e) => (r(), w(P, {
|
|
298
296
|
key: e.key,
|
|
299
297
|
label: e.value,
|
|
300
298
|
value: e.key
|
|
@@ -308,24 +306,24 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
308
306
|
]),
|
|
309
307
|
_: 1
|
|
310
308
|
}),
|
|
311
|
-
l(
|
|
309
|
+
l(_, { span: 18 }, {
|
|
312
310
|
default: o(() => [
|
|
313
|
-
l(
|
|
311
|
+
l(b, { class: "search-btn" }, {
|
|
314
312
|
default: o(() => [
|
|
315
|
-
l(
|
|
313
|
+
l(S, {
|
|
316
314
|
type: "primary",
|
|
317
|
-
onClick: t[7] || (t[7] = (e) =>
|
|
315
|
+
onClick: t[7] || (t[7] = (e) => s(d).handleQuery())
|
|
318
316
|
}, {
|
|
319
317
|
default: o(() => [
|
|
320
|
-
|
|
318
|
+
c(p(a.$t("common.search")), 1)
|
|
321
319
|
]),
|
|
322
320
|
_: 1
|
|
323
321
|
}),
|
|
324
|
-
l(
|
|
325
|
-
onClick: t[8] || (t[8] = (e) =>
|
|
322
|
+
l(S, {
|
|
323
|
+
onClick: t[8] || (t[8] = (e) => s(d).resetQuery())
|
|
326
324
|
}, {
|
|
327
325
|
default: o(() => [
|
|
328
|
-
|
|
326
|
+
c(p(a.$t("common.reset")), 1)
|
|
329
327
|
]),
|
|
330
328
|
_: 1
|
|
331
329
|
})
|
|
@@ -341,52 +339,52 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
341
339
|
]),
|
|
342
340
|
_: 1
|
|
343
341
|
}, 8, ["model"]),
|
|
344
|
-
t[15] || (t[15] =
|
|
342
|
+
t[15] || (t[15] = C("div", { class: "clear" }, null, -1))
|
|
345
343
|
]),
|
|
346
344
|
l(ce, {
|
|
347
345
|
shadow: "never",
|
|
348
346
|
class: "table-container"
|
|
349
347
|
}, {
|
|
350
348
|
header: o(() => [
|
|
351
|
-
l(
|
|
349
|
+
l(T, null, {
|
|
352
350
|
default: o(() => [
|
|
353
|
-
l(
|
|
351
|
+
l(_, { span: 17 }, {
|
|
354
352
|
default: o(() => [
|
|
355
|
-
|
|
353
|
+
v((r(), w(S, {
|
|
356
354
|
type: "primary",
|
|
357
355
|
onClick: W
|
|
358
356
|
}, {
|
|
359
357
|
default: o(() => [
|
|
360
|
-
|
|
358
|
+
c(p(a.$t("common.add")), 1)
|
|
361
359
|
]),
|
|
362
360
|
_: 1
|
|
363
361
|
})), [
|
|
364
|
-
[
|
|
362
|
+
[h, ["goods:goods_com:add"]]
|
|
365
363
|
]),
|
|
366
|
-
|
|
364
|
+
v((r(), w(S, {
|
|
367
365
|
type: "primary",
|
|
368
|
-
onClick: t[9] || (t[9] = (e) =>
|
|
366
|
+
onClick: t[9] || (t[9] = (e) => s(d).deleteRecords())
|
|
369
367
|
}, {
|
|
370
368
|
default: o(() => [
|
|
371
|
-
|
|
369
|
+
c(p(a.$t("common.batchDelete")), 1)
|
|
372
370
|
]),
|
|
373
371
|
_: 1
|
|
374
372
|
})), [
|
|
375
|
-
[
|
|
373
|
+
[h, ["goods:goods_com:delete"]]
|
|
376
374
|
]),
|
|
377
|
-
|
|
375
|
+
I.shelf === "false" ? v((r(), w(S, {
|
|
378
376
|
key: 0,
|
|
379
377
|
type: "primary",
|
|
380
378
|
onClick: oe
|
|
381
379
|
}, {
|
|
382
380
|
default: o(() => [
|
|
383
|
-
|
|
381
|
+
c(p(a.$t("goodsSpu.batchShelf")), 1)
|
|
384
382
|
]),
|
|
385
383
|
_: 1
|
|
386
384
|
})), [
|
|
387
|
-
[
|
|
385
|
+
[h, ["goods:goods_com:onSale"]]
|
|
388
386
|
]) : z("", !0),
|
|
389
|
-
|
|
387
|
+
I.shelf === "" ? v((r(), w(ue, {
|
|
390
388
|
key: 1,
|
|
391
389
|
class: "dropdown-left",
|
|
392
390
|
onCommand: ee
|
|
@@ -396,25 +394,25 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
396
394
|
default: o(() => [
|
|
397
395
|
l(E, { command: "true" }, {
|
|
398
396
|
default: o(() => [
|
|
399
|
-
l(
|
|
397
|
+
l(L, { size: "14" }, {
|
|
400
398
|
default: o(() => [
|
|
401
|
-
l(
|
|
399
|
+
l(se)
|
|
402
400
|
]),
|
|
403
401
|
_: 1
|
|
404
402
|
}),
|
|
405
|
-
|
|
403
|
+
c(" " + p(a.$t("goodsSpu.batchShelf")), 1)
|
|
406
404
|
]),
|
|
407
405
|
_: 1
|
|
408
406
|
}),
|
|
409
407
|
l(E, { command: "false" }, {
|
|
410
408
|
default: o(() => [
|
|
411
|
-
l(
|
|
409
|
+
l(L, { size: "14" }, {
|
|
412
410
|
default: o(() => [
|
|
413
|
-
l(
|
|
411
|
+
l(ne)
|
|
414
412
|
]),
|
|
415
413
|
_: 1
|
|
416
414
|
}),
|
|
417
|
-
|
|
415
|
+
c(" " + p(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
418
416
|
]),
|
|
419
417
|
_: 1
|
|
420
418
|
})
|
|
@@ -423,10 +421,10 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
423
421
|
})
|
|
424
422
|
]),
|
|
425
423
|
default: o(() => [
|
|
426
|
-
l(
|
|
424
|
+
l(S, { type: "primary" }, {
|
|
427
425
|
default: o(() => [
|
|
428
|
-
|
|
429
|
-
l(
|
|
426
|
+
c(p(a.$t("goodsSpu.batchShelf")) + "/" + p(a.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
427
|
+
l(L, { class: "el-icon--right" }, {
|
|
430
428
|
default: o(() => [
|
|
431
429
|
l(ae)
|
|
432
430
|
]),
|
|
@@ -438,18 +436,18 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
438
436
|
]),
|
|
439
437
|
_: 1
|
|
440
438
|
})), [
|
|
441
|
-
[
|
|
439
|
+
[h, ["goods:goods_com:onSale"]]
|
|
442
440
|
]) : z("", !0)
|
|
443
441
|
]),
|
|
444
442
|
_: 1
|
|
445
443
|
}),
|
|
446
|
-
l(
|
|
444
|
+
l(_, {
|
|
447
445
|
span: 7,
|
|
448
446
|
class: "container-float"
|
|
449
447
|
}, {
|
|
450
448
|
default: o(() => [
|
|
451
449
|
l(re, {
|
|
452
|
-
modelValue:
|
|
450
|
+
modelValue: s(k),
|
|
453
451
|
"onUpdate:modelValue": t[10] || (t[10] = (e) => A(k) ? k.value = e : k = e),
|
|
454
452
|
"label-name": "goods/goods-combination"
|
|
455
453
|
}, null, 8, ["modelValue"])
|
|
@@ -461,15 +459,15 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
461
459
|
})
|
|
462
460
|
]),
|
|
463
461
|
footer: o(() => [
|
|
464
|
-
|
|
462
|
+
s($) > 0 ? (r(), w(me, {
|
|
465
463
|
key: 0,
|
|
466
|
-
total:
|
|
467
|
-
"onUpdate:total": t[11] || (t[11] = (e) => A(
|
|
468
|
-
"current-page":
|
|
469
|
-
"onUpdate:currentPage": t[12] || (t[12] = (e) =>
|
|
470
|
-
"page-size":
|
|
471
|
-
"onUpdate:pageSize": t[13] || (t[13] = (e) =>
|
|
472
|
-
onPagination: t[14] || (t[14] = (e) =>
|
|
464
|
+
total: s($),
|
|
465
|
+
"onUpdate:total": t[11] || (t[11] = (e) => A($) ? $.value = e : null),
|
|
466
|
+
"current-page": u.value.curPage,
|
|
467
|
+
"onUpdate:currentPage": t[12] || (t[12] = (e) => u.value.curPage = e),
|
|
468
|
+
"page-size": u.value.pageSize,
|
|
469
|
+
"onUpdate:pageSize": t[13] || (t[13] = (e) => u.value.pageSize = e),
|
|
470
|
+
onPagination: t[14] || (t[14] = (e) => s(d).getList())
|
|
473
471
|
}, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
|
|
474
472
|
]),
|
|
475
473
|
default: o(() => [
|
|
@@ -477,24 +475,24 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
477
475
|
ref_key: "multipleTableRef",
|
|
478
476
|
ref: U,
|
|
479
477
|
"row-key": "spuId",
|
|
480
|
-
"list-loading":
|
|
481
|
-
data:
|
|
482
|
-
"table-label":
|
|
478
|
+
"list-loading": s(M),
|
|
479
|
+
data: s(G),
|
|
480
|
+
"table-label": s(k),
|
|
483
481
|
onSelectionChange: Z,
|
|
484
482
|
onSortChange: x
|
|
485
483
|
}, {
|
|
486
484
|
categoryId: o((e) => [
|
|
487
|
-
(r(!0),
|
|
488
|
-
key:
|
|
485
|
+
(r(!0), y(N, null, R(e.data.row.categoryIds, (i) => (r(), y("span", {
|
|
486
|
+
key: i,
|
|
489
487
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
490
|
-
},
|
|
488
|
+
}, p(s(g).goodsCategoryListBizLayDict.getValue(i) || i), 1))), 128))
|
|
491
489
|
]),
|
|
492
490
|
picUrls: o((e) => [
|
|
493
|
-
|
|
491
|
+
C("span", null, [
|
|
494
492
|
l(pe, {
|
|
495
|
-
src:
|
|
493
|
+
src: s(H).imageUrl(e.data.row.picUrls.split(",")[0], 0, 0),
|
|
496
494
|
"preview-src-list": [
|
|
497
|
-
|
|
495
|
+
s(H).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
498
496
|
],
|
|
499
497
|
"preview-teleported": "",
|
|
500
498
|
"hide-on-click-modal": "",
|
|
@@ -503,28 +501,19 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
503
501
|
])
|
|
504
502
|
]),
|
|
505
503
|
shelf: o((e) => [
|
|
506
|
-
|
|
504
|
+
C("span", null, [
|
|
507
505
|
l(O, {
|
|
508
506
|
modelValue: e.data.row.shelf,
|
|
509
|
-
"onUpdate:modelValue": (
|
|
510
|
-
onClick: (
|
|
507
|
+
"onUpdate:modelValue": (i) => e.data.row.shelf = i,
|
|
508
|
+
onClick: (i) => s(d).enableRecord(e.data.row, e.data.row.shelf)
|
|
511
509
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
512
510
|
])
|
|
513
511
|
]),
|
|
514
|
-
minPrice: o((e) => [
|
|
515
|
-
h("span", null, [
|
|
516
|
-
e.data.row.minPrice === e.data.row.maxPrice ? (r(), f(V, { key: 0 }, [
|
|
517
|
-
i(u(e.data.row.minPrice), 1)
|
|
518
|
-
], 64)) : (r(), f(V, { key: 1 }, [
|
|
519
|
-
i(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
520
|
-
], 64))
|
|
521
|
-
])
|
|
522
|
-
]),
|
|
523
512
|
specType: o((e) => [
|
|
524
|
-
|
|
513
|
+
C("span", null, p(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
525
514
|
]),
|
|
526
515
|
updateTime: o((e) => [
|
|
527
|
-
|
|
516
|
+
C("span", null, p(s(F).$moment.formatDate(
|
|
528
517
|
e.data.row.updateTime,
|
|
529
518
|
"YYYY-MM-DD HH:mm:ss"
|
|
530
519
|
)), 1)
|
|
@@ -532,34 +521,34 @@ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke =
|
|
|
532
521
|
enable: o((e) => [
|
|
533
522
|
l(O, {
|
|
534
523
|
modelValue: e.data.row.enable,
|
|
535
|
-
"onUpdate:modelValue": (
|
|
536
|
-
onChange: (
|
|
524
|
+
"onUpdate:modelValue": (i) => e.data.row.enable = i,
|
|
525
|
+
onChange: (i) => s(d).enableRecord(e.data.row, e.data.row.enable)
|
|
537
526
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
538
527
|
]),
|
|
539
528
|
operation: o((e) => [
|
|
540
|
-
|
|
529
|
+
v((r(), y("span", {
|
|
541
530
|
class: "el-button-color",
|
|
542
|
-
onClick: (
|
|
531
|
+
onClick: (i) => J(e.data.row)
|
|
543
532
|
}, [
|
|
544
|
-
|
|
533
|
+
c(p(a.$t("common.edit")), 1)
|
|
545
534
|
], 8, ke)), [
|
|
546
|
-
[
|
|
535
|
+
[h, ["goods:goods_com:update"]]
|
|
547
536
|
]),
|
|
548
|
-
|
|
537
|
+
v((r(), y("span", {
|
|
549
538
|
class: "el-button-color dropdown-left",
|
|
550
|
-
onClick: (
|
|
539
|
+
onClick: (i) => s(d).deleteRecord(e.data.row)
|
|
551
540
|
}, [
|
|
552
|
-
|
|
541
|
+
c(p(a.$t("common.delete")), 1)
|
|
553
542
|
], 8, Ve)), [
|
|
554
|
-
[
|
|
543
|
+
[h, ["goods:goods_com:delete"]]
|
|
555
544
|
]),
|
|
556
|
-
|
|
545
|
+
v((r(), y("span", {
|
|
557
546
|
class: "el-button-color dropdown-left",
|
|
558
|
-
onClick: (
|
|
547
|
+
onClick: (i) => X(e.data.row)
|
|
559
548
|
}, [
|
|
560
|
-
|
|
549
|
+
c(p(a.$t("common.view")), 1)
|
|
561
550
|
], 8, Ie)), [
|
|
562
|
-
[
|
|
551
|
+
[h, ["goods:goods_com:view"]]
|
|
563
552
|
])
|
|
564
553
|
]),
|
|
565
554
|
_: 1
|