xyvcard-goods 0.0.4 → 0.0.6
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/{auditIndex-BXUxPTBo.mjs → auditIndex-DZUQQzVu.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs → auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs} +8 -8
- package/dist/edit-C3imnLUq.mjs +600 -0
- package/dist/{index-PA3Mh5x6.mjs → index-kGlE0ywA.mjs} +60 -59
- package/dist/index.mjs +2 -21
- package/dist/{info-8-HEtfzY.mjs → info-kiOShGr4.mjs} +18 -14
- package/dist/{saleIndex-vZV2Dq0y.mjs → saleIndex-CyMvOgxp.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs → saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs} +16 -16
- package/dist/{shelfIndex-Ciis-I11.mjs → shelfIndex-DZWqrqlw.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs} +16 -16
- package/dist/{skuForm-DaxgHBOV.mjs → skuForm-Dtq2Ttjc.mjs} +35 -37
- package/dist/{skuTable-C4mHW-e9.mjs → skuTable-8oPw0DhV.mjs} +113 -96
- package/dist/style.css +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +2 -2
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +4 -2
- package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +4 -4
- package/dts/components/GoodsUpload/index.vue.d.ts +2 -2
- package/dts/constant.d.ts +1 -1
- package/dts/main.d.ts +1 -0
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +2 -2
- package/dts/views/goods/goods-spu/skuTable.vue.d.ts +2 -2
- package/package.json +19 -16
- package/dist/edit-B_KK1orD.mjs +0 -2976
- package/dist/el-message-D15RmjW3.mjs +0 -1504
- package/dts/api/emall/goods-category/index.d.ts +0 -14
- package/dts/api/emall/goods-category/types.d.ts +0 -19
- package/dts/api/shop/shop-info/index.d.ts +0 -8
- package/dts/api/shop/shop-info/types.d.ts +0 -16
- package/dts/api/shop/spec-info/index.d.ts +0 -8
- package/dts/api/shop/spec-info/types.d.ts +0 -21
- package/dts/api/shop/spec-value/index.d.ts +0 -8
- package/dts/api/shop/spec-value/types.d.ts +0 -21
- package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/sku-form.vue.d.ts +0 -31
- package/dts/views/goods/goods-spu/sku-table.vue.d.ts +0 -14
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as ge, getCurrentInstance as _e, ref as P, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as
|
|
1
|
+
import { defineComponent as ge, getCurrentInstance as _e, ref as P, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as k, createVNode as l, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as g, createElementVNode as _, withKeys as K, createTextVNode as m, toDisplayString as u, withDirectives as y, isRef as M, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ElMessage as I } from "element-plus";
|
|
2
3
|
import { useRouter as ve } from "vue-router";
|
|
3
|
-
import { useTableHooks as ye, fileApi as
|
|
4
|
+
import { useTableHooks as ye, fileApi as J } from "jmash-core";
|
|
4
5
|
import { useI18n as Se } from "vue-i18n";
|
|
5
6
|
import { goodsSpuApi as L } from "./index.mjs";
|
|
6
7
|
import { D as b, C as j } from "./index-D5_GsXR7.mjs";
|
|
7
|
-
import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { Z as I } from "./el-message-D15RmjW3.mjs";
|
|
8
|
+
import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs";
|
|
9
|
+
import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs";
|
|
10
|
+
import { _ as ke } from "./auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs";
|
|
11
|
+
import { _ as Ve } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs";
|
|
12
12
|
const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Ue = ["onClick"], De = ["onClick"], Re = ["onClick"], Ye = /* @__PURE__ */ ge({
|
|
13
13
|
__name: "index",
|
|
14
14
|
setup(ze) {
|
|
15
|
-
const { t: c } = Se(), D = ve(), { proxy:
|
|
15
|
+
const { t: c } = Se(), D = ve(), { proxy: G } = _e(), i = P({}), {
|
|
16
16
|
tableHooks: d,
|
|
17
17
|
multipleTableRef: R,
|
|
18
|
-
queryFormRef:
|
|
19
|
-
listLoading:
|
|
20
|
-
tableData:
|
|
18
|
+
queryFormRef: W,
|
|
19
|
+
listLoading: X,
|
|
20
|
+
tableData: Z,
|
|
21
21
|
total: N
|
|
22
22
|
} = ye(c, L, i);
|
|
23
23
|
let T = P([
|
|
@@ -120,28 +120,28 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
120
120
|
]);
|
|
121
121
|
b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
|
|
122
122
|
const h = P(0);
|
|
123
|
-
function
|
|
123
|
+
function x() {
|
|
124
124
|
D.push({ path: "/rawgoods/goods-spu/edit" });
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function ee(t) {
|
|
127
127
|
D.push({
|
|
128
128
|
path: "/rawgoods/goods-spu/edit",
|
|
129
129
|
query: { spuId: t.spuId }
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function oe(t) {
|
|
133
133
|
D.push({
|
|
134
134
|
path: "/rawgoods/goods-spu/info",
|
|
135
135
|
query: { spuId: t.spuId }
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function le(t) {
|
|
139
139
|
d.selectionRows.value = t;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function te(t) {
|
|
142
142
|
d.handleSort(t.prop, t.order);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ae(t) {
|
|
145
145
|
if (d.selectionRows.value.length === 0) {
|
|
146
146
|
I({
|
|
147
147
|
message: c("goodsSpu.chooseShelf"),
|
|
@@ -161,7 +161,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
161
161
|
}), d.getList(), (f = R.value) == null || f.clearSelection());
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function se(t) {
|
|
165
165
|
if (console.log(t), d.selectionRows.value.length === 0) {
|
|
166
166
|
I({
|
|
167
167
|
message: c("goodsSpu.chooseShelf"),
|
|
@@ -181,30 +181,31 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
181
181
|
}), d.getList(), (f = R.value) == null || f.clearSelection());
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ne(t) {
|
|
185
185
|
h.value = Number(t.index);
|
|
186
186
|
}
|
|
187
187
|
return d.getList(), (t, a) => {
|
|
188
|
-
const r = n("jmash-select"), f = n("el-form-item"), S = n("el-col"), E = n("el-input"), C = n("el-button"), A = n("el-row"),
|
|
189
|
-
return p(),
|
|
190
|
-
l(
|
|
188
|
+
const r = n("jmash-select"), f = n("el-form-item"), S = n("el-col"), E = n("el-input"), C = n("el-button"), A = n("el-row"), ue = n("el-form"), q = n("arrow-down"), $ = n("el-icon"), B = n("Unlock"), U = n("el-dropdown-item"), F = n("Lock"), H = n("el-dropdown-menu"), O = n("el-dropdown"), de = n("jmash-column-select"), pe = n("el-image"), Q = n("el-switch"), re = n("jmash-table"), me = n("jmash-pagination"), ie = n("el-card"), ce = n("el-tab-pane"), fe = n("el-tabs"), v = he("hasPerm");
|
|
189
|
+
return p(), k("div", Ie, [
|
|
190
|
+
l(fe, {
|
|
191
191
|
modelValue: h.value,
|
|
192
192
|
"onUpdate:modelValue": a[13] || (a[13] = (z) => h.value = z),
|
|
193
193
|
type: "border-card",
|
|
194
|
-
onTabClick:
|
|
194
|
+
onTabClick: ne
|
|
195
195
|
}, {
|
|
196
196
|
default: o(() => [
|
|
197
|
-
(p(!0),
|
|
197
|
+
(p(!0), k(we, null, be(s(b).goodsSpuListSortEnum.values, (z, Y) => (p(), g(ce, {
|
|
198
|
+
key: Y,
|
|
198
199
|
label: z.value,
|
|
199
|
-
name:
|
|
200
|
+
name: Y
|
|
200
201
|
}, {
|
|
201
202
|
default: o(() => [
|
|
202
|
-
h.value === 0 ? (p(),
|
|
203
|
+
h.value === 0 ? (p(), k("div", Te, [
|
|
203
204
|
_("div", Ne, [
|
|
204
|
-
l(
|
|
205
|
+
l(ue, {
|
|
205
206
|
ref_for: !0,
|
|
206
207
|
ref_key: "queryFormRef",
|
|
207
|
-
ref:
|
|
208
|
+
ref: W,
|
|
208
209
|
model: i.value,
|
|
209
210
|
inline: !0
|
|
210
211
|
}, {
|
|
@@ -243,7 +244,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
243
244
|
"onUpdate:modelValue": a[1] || (a[1] = (e) => i.value.spuCode = e),
|
|
244
245
|
placeholder: t.$t("goodsSpu.spuCode"),
|
|
245
246
|
class: "!w-[203px]",
|
|
246
|
-
onKeyup: a[2] || (a[2] =
|
|
247
|
+
onKeyup: a[2] || (a[2] = K((e) => s(d).handleQuery(), ["enter"]))
|
|
247
248
|
}, null, 8, ["modelValue", "placeholder"])
|
|
248
249
|
]),
|
|
249
250
|
_: 1
|
|
@@ -263,7 +264,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
263
264
|
"onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.spuName = e),
|
|
264
265
|
placeholder: t.$t("goodsSpu.spuName"),
|
|
265
266
|
class: "!w-[203px]",
|
|
266
|
-
onKeyup: a[4] || (a[4] =
|
|
267
|
+
onKeyup: a[4] || (a[4] = K((e) => s(d).handleQuery(), ["enter"]))
|
|
267
268
|
}, null, 8, ["modelValue", "placeholder"])
|
|
268
269
|
]),
|
|
269
270
|
_: 1
|
|
@@ -305,7 +306,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
305
306
|
_: 1
|
|
306
307
|
}, 8, ["model"])
|
|
307
308
|
]),
|
|
308
|
-
l(
|
|
309
|
+
l(ie, {
|
|
309
310
|
shadow: "never",
|
|
310
311
|
class: "table-container"
|
|
311
312
|
}, {
|
|
@@ -316,7 +317,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
316
317
|
default: o(() => [
|
|
317
318
|
y((p(), g(C, {
|
|
318
319
|
type: "primary",
|
|
319
|
-
onClick:
|
|
320
|
+
onClick: x
|
|
320
321
|
}, {
|
|
321
322
|
default: o(() => [
|
|
322
323
|
m(u(t.$t("common.add")), 1)
|
|
@@ -338,7 +339,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
338
339
|
]),
|
|
339
340
|
y((p(), g(O, {
|
|
340
341
|
class: "dropdown-left",
|
|
341
|
-
onCommand:
|
|
342
|
+
onCommand: ae
|
|
342
343
|
}, {
|
|
343
344
|
dropdown: o(() => [
|
|
344
345
|
l(H, null, {
|
|
@@ -391,7 +392,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
391
392
|
]),
|
|
392
393
|
y((p(), g(O, {
|
|
393
394
|
class: "dropdown-left",
|
|
394
|
-
onCommand:
|
|
395
|
+
onCommand: se
|
|
395
396
|
}, {
|
|
396
397
|
dropdown: o(() => [
|
|
397
398
|
l(H, null, {
|
|
@@ -454,9 +455,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
454
455
|
class: "container-float"
|
|
455
456
|
}, {
|
|
456
457
|
default: o(() => [
|
|
457
|
-
l(
|
|
458
|
+
l(de, {
|
|
458
459
|
modelValue: s(T),
|
|
459
|
-
"onUpdate:modelValue": a[8] || (a[8] = (e) =>
|
|
460
|
+
"onUpdate:modelValue": a[8] || (a[8] = (e) => M(T) ? T.value = e : T = e),
|
|
460
461
|
"label-name": "goods/goods-spu"
|
|
461
462
|
}, null, 8, ["modelValue"])
|
|
462
463
|
]),
|
|
@@ -467,28 +468,28 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
467
468
|
})
|
|
468
469
|
]),
|
|
469
470
|
footer: o(() => [
|
|
470
|
-
s(N) > 0 ? (p(), g(
|
|
471
|
+
s(N) > 0 ? (p(), g(me, {
|
|
471
472
|
key: 0,
|
|
472
473
|
total: s(N),
|
|
473
|
-
"onUpdate:total": a[9] || (a[9] = (e) =>
|
|
474
|
+
"onUpdate:total": a[9] || (a[9] = (e) => M(N) ? N.value = e : null),
|
|
474
475
|
"current-page": i.value.curPage,
|
|
475
476
|
"onUpdate:currentPage": a[10] || (a[10] = (e) => i.value.curPage = e),
|
|
476
477
|
"page-size": i.value.pageSize,
|
|
477
478
|
"onUpdate:pageSize": a[11] || (a[11] = (e) => i.value.pageSize = e),
|
|
478
479
|
onPagination: a[12] || (a[12] = (e) => s(d).getList())
|
|
479
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
480
|
+
}, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
|
|
480
481
|
]),
|
|
481
482
|
default: o(() => [
|
|
482
|
-
l(
|
|
483
|
+
l(re, {
|
|
483
484
|
ref_for: !0,
|
|
484
485
|
ref_key: "multipleTableRef",
|
|
485
486
|
ref: R,
|
|
486
487
|
"row-key": "spuId",
|
|
487
|
-
"list-loading": s(
|
|
488
|
-
data: s(
|
|
488
|
+
"list-loading": s(X),
|
|
489
|
+
data: s(Z),
|
|
489
490
|
"table-label": s(T),
|
|
490
|
-
onSelectionChange:
|
|
491
|
-
onSortChange:
|
|
491
|
+
onSelectionChange: le,
|
|
492
|
+
onSortChange: te
|
|
492
493
|
}, {
|
|
493
494
|
shopId: o((e) => [
|
|
494
495
|
_("span", null, u(s(b).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
@@ -498,14 +499,14 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
498
499
|
]),
|
|
499
500
|
picUrls: o((e) => [
|
|
500
501
|
_("span", null, [
|
|
501
|
-
l(
|
|
502
|
-
src: s(
|
|
502
|
+
l(pe, {
|
|
503
|
+
src: s(J).imageUrl(
|
|
503
504
|
e.data.row.picUrls.split(",")[0],
|
|
504
505
|
50,
|
|
505
506
|
50
|
|
506
507
|
),
|
|
507
508
|
"preview-src-list": [
|
|
508
|
-
s(
|
|
509
|
+
s(J).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
509
510
|
],
|
|
510
511
|
"preview-teleported": "",
|
|
511
512
|
"hide-on-click-modal": "",
|
|
@@ -537,7 +538,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
537
538
|
)), 1)
|
|
538
539
|
]),
|
|
539
540
|
updateTime: o((e) => [
|
|
540
|
-
_("span", null, u(s(
|
|
541
|
+
_("span", null, u(s(G).$moment.formatDate(
|
|
541
542
|
e.data.row.updateTime,
|
|
542
543
|
"YYYY-MM-DD HH:mm:ss"
|
|
543
544
|
)), 1)
|
|
@@ -553,15 +554,15 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
553
554
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
554
555
|
]),
|
|
555
556
|
operation: o((e) => [
|
|
556
|
-
y((p(),
|
|
557
|
+
y((p(), k("span", {
|
|
557
558
|
class: "el-button-color",
|
|
558
|
-
onClick: (w) =>
|
|
559
|
+
onClick: (w) => ee(e.data.row)
|
|
559
560
|
}, [
|
|
560
561
|
m(u(t.$t("common.edit")), 1)
|
|
561
562
|
], 8, Ue)), [
|
|
562
563
|
[v, ["goods:goods_spu:update"]]
|
|
563
564
|
]),
|
|
564
|
-
y((p(),
|
|
565
|
+
y((p(), k("span", {
|
|
565
566
|
class: "el-button-color dropdown-left",
|
|
566
567
|
onClick: (w) => s(d).deleteRecord(e.data.row)
|
|
567
568
|
}, [
|
|
@@ -569,9 +570,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
569
570
|
], 8, De)), [
|
|
570
571
|
[v, ["goods:goods_spu:delete"]]
|
|
571
572
|
]),
|
|
572
|
-
y((p(),
|
|
573
|
+
y((p(), k("span", {
|
|
573
574
|
class: "el-button-color dropdown-left",
|
|
574
|
-
onClick: (w) =>
|
|
575
|
+
onClick: (w) => oe(e.data.row)
|
|
575
576
|
}, [
|
|
576
577
|
m(u(t.$t("common.view")), 1)
|
|
577
578
|
], 8, Re)), [
|
|
@@ -583,14 +584,14 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
583
584
|
]),
|
|
584
585
|
_: 1
|
|
585
586
|
})
|
|
586
|
-
])) :
|
|
587
|
-
h.value === 1 ? (p(), g(Ce, { key: 1 })) :
|
|
588
|
-
h.value === 2 ? (p(), g($e, { key: 2 })) :
|
|
589
|
-
h.value === 3 ? (p(), g(
|
|
590
|
-
h.value === 4 ? (p(), g(
|
|
587
|
+
])) : V("", !0),
|
|
588
|
+
h.value === 1 ? (p(), g(Ce, { key: 1 })) : V("", !0),
|
|
589
|
+
h.value === 2 ? (p(), g($e, { key: 2 })) : V("", !0),
|
|
590
|
+
h.value === 3 ? (p(), g(ke, { key: 3 })) : V("", !0),
|
|
591
|
+
h.value === 4 ? (p(), g(Ve, { key: 4 })) : V("", !0)
|
|
591
592
|
]),
|
|
592
593
|
_: 2
|
|
593
|
-
}, 1032, ["label", "name"]))),
|
|
594
|
+
}, 1032, ["label", "name"]))), 128))
|
|
594
595
|
]),
|
|
595
596
|
_: 1
|
|
596
597
|
}, 8, ["modelValue"])
|
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { deepMerge as Tt, Layout as Ys, useUserStore as E, clearEmpty as V, request as G, addViteMenus as Os, addDynamicRoute as Ts, i18n as bs } from "jmash-core";
|
|
2
2
|
const xs = {}, Rs = {
|
|
3
|
-
// 商品评价
|
|
4
|
-
// goodsAppraises: {
|
|
5
|
-
// name : "商品评价",
|
|
6
|
-
// appraisesId: "评价ID",
|
|
7
|
-
// shopId: "店铺ID",
|
|
8
|
-
// orderId: "订单ID",
|
|
9
|
-
// orderItemId: "订单详情ID",
|
|
10
|
-
// spuId: "商品ID",
|
|
11
|
-
// skuId: "SKUID",
|
|
12
|
-
// picUrls: "商品图片",
|
|
13
|
-
// specInfo: "规格信息",
|
|
14
|
-
// goodsScore: "商品评分",
|
|
15
|
-
// serviceScore: "服务评分",
|
|
16
|
-
// logisticsScore: "物流评分",
|
|
17
|
-
// content: "评价内容",
|
|
18
|
-
// sellerReply: "卖家回复",
|
|
19
|
-
// replyTime: "回复时间",
|
|
20
|
-
// parentId: "父ID",
|
|
21
|
-
// },
|
|
22
3
|
// 商品SKU
|
|
23
4
|
// goodsSku: {
|
|
24
5
|
// name : "商品SKU",
|
|
@@ -110,7 +91,7 @@ function Ps(e) {
|
|
|
110
91
|
let s = e.global.getLocaleMessage("en");
|
|
111
92
|
s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
112
93
|
}
|
|
113
|
-
const Ns = () => import("./edit-
|
|
94
|
+
const Ns = () => import("./edit-C3imnLUq.mjs"), Ws = () => import("./info-kiOShGr4.mjs"), Fs = [
|
|
114
95
|
{
|
|
115
96
|
path: "/rawgoods",
|
|
116
97
|
component: Ys,
|
|
@@ -2854,7 +2835,7 @@ class Ci {
|
|
|
2854
2835
|
});
|
|
2855
2836
|
}
|
|
2856
2837
|
}
|
|
2857
|
-
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-F3GtuNeX.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-
|
|
2838
|
+
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-F3GtuNeX.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-DZUQQzVu.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-C3imnLUq.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-kGlE0ywA.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-kiOShGr4.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-CyMvOgxp.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-DZWqrqlw.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-Dtq2Ttjc.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-8oPw0DhV.mjs").then((e) => e.a) }), Ei = {
|
|
2858
2839
|
install(e) {
|
|
2859
2840
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Li);
|
|
2860
2841
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
1
|
+
import { defineComponent as q, ref as k, computed as j, watch as F, resolveComponent as S, openBlock as g, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as r, Fragment as w, renderList as C, createBlock as b, createCommentVNode as P } from "vue";
|
|
2
2
|
import { fileApi as B, routerUtil as H } from "jmash-core";
|
|
3
3
|
import { useRouter as O, useRoute as R } from "vue-router";
|
|
4
4
|
import { D as p, C as N, S as z } from "./index-D5_GsXR7.mjs";
|
|
5
|
-
import { s as G } from "./skuTable-
|
|
5
|
+
import { s as G } from "./skuTable-8oPw0DhV.mjs";
|
|
6
6
|
import { goodsSpuApi as J } from "./index.mjs";
|
|
7
7
|
import { g as K } from "./index-BHmGYIuc.mjs";
|
|
8
|
-
const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"],
|
|
8
|
+
const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], be = /* @__PURE__ */ q({
|
|
9
9
|
__name: "info",
|
|
10
10
|
setup(_e) {
|
|
11
|
-
const U = O(),
|
|
11
|
+
const U = O(), y = R(), u = k({}), L = k([]), _ = k([]), D = k([]), $ = k([]), T = j(() => _.value.filter(
|
|
12
12
|
(s) => s.name && s.specValueList != null && s.specValueList.length
|
|
13
13
|
));
|
|
14
14
|
F(
|
|
@@ -18,9 +18,9 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
18
18
|
deep: !0,
|
|
19
19
|
immediate: !0
|
|
20
20
|
}
|
|
21
|
-
), p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(),
|
|
21
|
+
), p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(), y.query.spuId && J.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
|
|
22
22
|
var c, v, o;
|
|
23
|
-
u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), K.findById({ spuId:
|
|
23
|
+
u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), K.findById({ spuId: y.query.spuId }).then(({ data: m }) => {
|
|
24
24
|
u.value.ensureIds = m.ensures;
|
|
25
25
|
}), s.specType === N.specType.MULTI_SPEC && (D.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((m) => {
|
|
26
26
|
var d;
|
|
@@ -63,7 +63,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function M() {
|
|
66
|
-
H.closeTagView(
|
|
66
|
+
H.closeTagView(y.fullPath, U, !1);
|
|
67
67
|
}
|
|
68
68
|
return (s, c) => {
|
|
69
69
|
const v = S("el-button"), o = S("el-descriptions-item"), m = S("el-image"), d = S("el-tag"), h = S("el-descriptions"), I = S("el-card");
|
|
@@ -149,13 +149,14 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
149
149
|
a("div", le, l(s.$t("goodsSpu.picUrls")), 1)
|
|
150
150
|
]),
|
|
151
151
|
default: e(() => [
|
|
152
|
-
(g(!0), V(w, null, C(L.value, (t) => (g(),
|
|
152
|
+
(g(!0), V(w, null, C(L.value, (t) => (g(), b(m, {
|
|
153
|
+
key: t,
|
|
153
154
|
src: r(B).imageUrl(t, 80, 80),
|
|
154
155
|
"preview-src-list": [r(B).imageUrl(t)],
|
|
155
156
|
"preview-teleported": "",
|
|
156
157
|
"hide-on-click-modal": "",
|
|
157
158
|
fit: "contain"
|
|
158
|
-
}, null, 8, ["src", "preview-src-list"]))),
|
|
159
|
+
}, null, 8, ["src", "preview-src-list"]))), 128))
|
|
159
160
|
]),
|
|
160
161
|
_: 1
|
|
161
162
|
}),
|
|
@@ -194,12 +195,15 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
194
195
|
a("div", ue, l(s.$t("goodsSpu.ensureIds")), 1)
|
|
195
196
|
]),
|
|
196
197
|
default: e(() => [
|
|
197
|
-
(g(!0), V(w, null, C(u.value.ensureIds, (t) => (g(),
|
|
198
|
+
(g(!0), V(w, null, C(u.value.ensureIds, (t) => (g(), b(d, {
|
|
199
|
+
type: "info",
|
|
200
|
+
key: t
|
|
201
|
+
}, {
|
|
198
202
|
default: e(() => [
|
|
199
203
|
n(l(r(p).goodsEnsureDict.getDictValue(t)), 1)
|
|
200
204
|
]),
|
|
201
205
|
_: 2
|
|
202
|
-
}, 1024))),
|
|
206
|
+
}, 1024))), 128))
|
|
203
207
|
]),
|
|
204
208
|
_: 1
|
|
205
209
|
})
|
|
@@ -207,7 +211,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
207
211
|
_: 1
|
|
208
212
|
}),
|
|
209
213
|
a("div", ae, " 商品规格(" + l(r(p).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
|
|
210
|
-
u.value.specType == r(N).specType.UNIFIED_SPEC ? (g(),
|
|
214
|
+
u.value.specType == r(N).specType.UNIFIED_SPEC ? (g(), b(h, {
|
|
211
215
|
key: 0,
|
|
212
216
|
class: "margin-top",
|
|
213
217
|
column: 2,
|
|
@@ -289,7 +293,7 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
289
293
|
]),
|
|
290
294
|
_: 1
|
|
291
295
|
})) : P("", !0),
|
|
292
|
-
_.value.length > 0 ? (g(),
|
|
296
|
+
_.value.length > 0 ? (g(), b(G, {
|
|
293
297
|
key: 1,
|
|
294
298
|
specData: T.value,
|
|
295
299
|
goodsSku: D.value,
|
|
@@ -307,5 +311,5 @@ const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "
|
|
|
307
311
|
}
|
|
308
312
|
});
|
|
309
313
|
export {
|
|
310
|
-
|
|
314
|
+
be as default
|
|
311
315
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as m, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as P, createCommentVNode as oe } from "vue";
|
|
2
|
+
import { ElMessage as z } from "element-plus";
|
|
2
3
|
import { useRouter as le } from "vue-router";
|
|
3
|
-
import { useTableHooks as te, fileApi as
|
|
4
|
+
import { useTableHooks as te, fileApi as j } from "jmash-core";
|
|
4
5
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import { goodsSpuApi as
|
|
6
|
+
import { goodsSpuApi as E } from "./index.mjs";
|
|
6
7
|
import { C as se, D as g } from "./index-D5_GsXR7.mjs";
|
|
7
|
-
|
|
8
|
-
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ X({
|
|
8
|
+
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ Z({
|
|
9
9
|
__name: "saleIndex",
|
|
10
10
|
setup(de) {
|
|
11
11
|
const { t: _ } = ae(), T = le(), { proxy: B } = x(), r = D({
|
|
@@ -20,7 +20,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
20
20
|
listLoading: L,
|
|
21
21
|
tableData: H,
|
|
22
22
|
total: v
|
|
23
|
-
} = te(_,
|
|
23
|
+
} = te(_, E, r);
|
|
24
24
|
let h = D([
|
|
25
25
|
{
|
|
26
26
|
label: "goodsSpu.shopId",
|
|
@@ -137,23 +137,23 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
137
137
|
}
|
|
138
138
|
function M() {
|
|
139
139
|
if (n.selectionRows.value.length === 0) {
|
|
140
|
-
|
|
140
|
+
z({
|
|
141
141
|
message: _("goodsSpu.chooseShelf"),
|
|
142
142
|
type: "warning"
|
|
143
143
|
});
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
const a = n.selectionRows.value.map((o) => o.spuId);
|
|
147
|
-
console.log(a),
|
|
147
|
+
console.log(a), E.enable({ spuId: a }, !1).then((o) => {
|
|
148
148
|
var C;
|
|
149
|
-
console.log(o), o.status === 200 &&
|
|
149
|
+
console.log(o), o.status === 200 && z({
|
|
150
150
|
message: _("goodsSpu.successOffShelf") + o.data + _("common.stripData"),
|
|
151
151
|
type: "success"
|
|
152
152
|
}), n.getList(), (C = $.value) == null || C.clearSelection();
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
return n.getList(), (a, o) => {
|
|
156
|
-
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"),
|
|
156
|
+
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"), G = p("el-image"), U = p("el-switch"), J = p("jmash-table"), W = p("jmash-pagination"), X = p("el-card"), w = ee("hasPerm");
|
|
157
157
|
return m(), I("div", ne, [
|
|
158
158
|
d("div", ue, [
|
|
159
159
|
t(F, {
|
|
@@ -259,7 +259,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
259
259
|
_: 1
|
|
260
260
|
}, 8, ["model"])
|
|
261
261
|
]),
|
|
262
|
-
t(
|
|
262
|
+
t(X, {
|
|
263
263
|
shadow: "never",
|
|
264
264
|
class: "table-container"
|
|
265
265
|
}, {
|
|
@@ -322,7 +322,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
322
322
|
})
|
|
323
323
|
]),
|
|
324
324
|
footer: l(() => [
|
|
325
|
-
s(v) > 0 ? (m(), V(
|
|
325
|
+
s(v) > 0 ? (m(), V(W, {
|
|
326
326
|
key: 0,
|
|
327
327
|
total: s(v),
|
|
328
328
|
"onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
|
|
@@ -334,7 +334,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
334
334
|
}, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
|
|
335
335
|
]),
|
|
336
336
|
default: l(() => [
|
|
337
|
-
t(
|
|
337
|
+
t(J, {
|
|
338
338
|
ref_key: "multipleTableRef",
|
|
339
339
|
ref: $,
|
|
340
340
|
"row-key": "spuId",
|
|
@@ -352,10 +352,10 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
352
352
|
]),
|
|
353
353
|
picUrls: l((e) => [
|
|
354
354
|
d("span", null, [
|
|
355
|
-
t(
|
|
356
|
-
src: s(
|
|
355
|
+
t(G, {
|
|
356
|
+
src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
357
357
|
"preview-src-list": [
|
|
358
|
-
s(
|
|
358
|
+
s(j).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
359
359
|
],
|
|
360
360
|
"preview-teleported": "",
|
|
361
361
|
"hide-on-click-modal": "",
|