xyvcard-goods 0.0.8 → 0.0.9
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/{approveFailIndex-BecI6njE.mjs → approveFailIndex-DJf9bHab.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +31 -31
- package/dist/{auditIndex-ByyMgebr.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +19 -19
- package/dist/edit-D37yka6Z.mjs +470 -0
- package/dist/{index-AZ4TxL-_.mjs → index-CKeHa-Cx.mjs} +55 -55
- package/dist/{index-BypI3ZNk.mjs → index-vcmJ06-Y.mjs} +81 -81
- package/dist/index.mjs +8 -37
- package/dist/{info-BJ1Ld_6D.mjs → info-CPZykxS1.mjs} +27 -27
- package/dist/{saleIndex-CBtuv6um.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +36 -36
- package/dist/{shelfIndex-CykEAeD4.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +8 -8
- package/dist/{skuForm-DdiMztDh.mjs → skuForm-BSlT4TYd.mjs} +48 -48
- package/dist/skuTable-DYmQYXk3.mjs +535 -0
- package/dist/style.css +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +3 -4
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +18 -10
- package/dts/constant.d.ts +4 -4
- package/dts/router/index.d.ts +2 -2
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
- package/package.json +65 -65
- package/dist/edit-BWUxDk9Y.mjs +0 -594
- package/dist/skuTable-Cg06m_5i.mjs +0 -606
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as W, getCurrentInstance as X, ref as
|
|
1
|
+
import { defineComponent as W, getCurrentInstance as X, ref as N, resolveComponent as p, resolveDirective as Z, openBlock as m, createElementBlock as C, createElementVNode as r, createVNode as t, withCtx as o, unref as a, withKeys as k, createTextVNode as c, toDisplayString as n, withDirectives as w, createBlock as V, isRef as U, createCommentVNode as x } from "vue";
|
|
2
2
|
import { useRouter as ee } from "vue-router";
|
|
3
|
-
import { useTableHooks as oe, fileApi as
|
|
3
|
+
import { useTableHooks as oe, fileApi as P } from "jmash-core";
|
|
4
4
|
import { useI18n as le } from "vue-i18n";
|
|
5
5
|
import { goodsSpuApi as te } from "./index.mjs";
|
|
6
|
-
import { C as ae, D as g } from "./index-
|
|
6
|
+
import { C as ae, D as g } from "./index-CKeHa-Cx.mjs";
|
|
7
7
|
const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue = ["onClick"], he = /* @__PURE__ */ W({
|
|
8
8
|
__name: "approveFailIndex",
|
|
9
9
|
setup(de) {
|
|
10
|
-
const { t:
|
|
10
|
+
const { t: D } = le(), S = ee(), { proxy: R } = X(), u = N({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10,
|
|
13
|
-
approvalStatus: ae.
|
|
13
|
+
approvalStatus: ae.APPROVAL_NOT_PASS
|
|
14
14
|
}), {
|
|
15
15
|
tableHooks: d,
|
|
16
16
|
multipleTableRef: z,
|
|
@@ -18,20 +18,20 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
18
18
|
listLoading: E,
|
|
19
19
|
tableData: q,
|
|
20
20
|
total: _
|
|
21
|
-
} = oe(
|
|
22
|
-
let h =
|
|
21
|
+
} = oe(D, te, u);
|
|
22
|
+
let h = N([
|
|
23
23
|
{
|
|
24
24
|
label: "goodsSpu.shopId",
|
|
25
25
|
prop: "shopId",
|
|
26
26
|
slotName: "shopId",
|
|
27
27
|
columnType: "slot",
|
|
28
|
-
width: "
|
|
28
|
+
width: "250",
|
|
29
29
|
isColumn: !0
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
label: "goodsSpu.spuName",
|
|
33
33
|
prop: "spuName",
|
|
34
|
-
width: "
|
|
34
|
+
width: "200",
|
|
35
35
|
isColumn: !0
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -53,7 +53,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
53
53
|
{
|
|
54
54
|
label: "goodsSpu.price",
|
|
55
55
|
prop: "minPrice",
|
|
56
|
-
width: "
|
|
56
|
+
width: "120",
|
|
57
57
|
sortable: "custom",
|
|
58
58
|
slotName: "minPrice",
|
|
59
59
|
columnType: "slot",
|
|
@@ -62,7 +62,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
62
62
|
{
|
|
63
63
|
label: "goodsSpu.spuCode",
|
|
64
64
|
prop: "spuCode",
|
|
65
|
-
width: "
|
|
65
|
+
width: "120",
|
|
66
66
|
sortable: "custom",
|
|
67
67
|
isColumn: !0
|
|
68
68
|
},
|
|
@@ -76,7 +76,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
76
76
|
{
|
|
77
77
|
label: "goodsSpu.specType",
|
|
78
78
|
prop: "specType",
|
|
79
|
-
width: "
|
|
79
|
+
width: "120",
|
|
80
80
|
slotName: "specType",
|
|
81
81
|
columnType: "slot",
|
|
82
82
|
sortable: "custom",
|
|
@@ -85,7 +85,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
85
85
|
{
|
|
86
86
|
label: "goodsSpu.shelf",
|
|
87
87
|
prop: "shelf",
|
|
88
|
-
width: "
|
|
88
|
+
width: "120",
|
|
89
89
|
slotName: "shelf",
|
|
90
90
|
columnType: "slot",
|
|
91
91
|
sortable: "custom",
|
|
@@ -94,7 +94,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
94
94
|
{
|
|
95
95
|
label: "goodsSpu.approvalStatus",
|
|
96
96
|
prop: "approvalStatus",
|
|
97
|
-
width: "
|
|
97
|
+
width: "120",
|
|
98
98
|
slotName: "approvalStatus",
|
|
99
99
|
columnType: "slot",
|
|
100
100
|
isColumn: !0
|
|
@@ -118,10 +118,10 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
118
118
|
}
|
|
119
119
|
]);
|
|
120
120
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
121
|
-
function
|
|
121
|
+
function A() {
|
|
122
122
|
S.push({ path: "/rawgoods/goods-spu/edit" });
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function B(s) {
|
|
125
125
|
S.push({
|
|
126
126
|
path: "/rawgoods/goods-spu/edit",
|
|
127
127
|
query: { spuId: s.spuId }
|
|
@@ -133,14 +133,14 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
133
133
|
query: { spuId: s.spuId }
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function H(s) {
|
|
137
137
|
d.selectionRows.value = s;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Q(s) {
|
|
140
140
|
d.handleSort(s.prop, s.order);
|
|
141
141
|
}
|
|
142
142
|
return d.getList(), (s, l) => {
|
|
143
|
-
const
|
|
143
|
+
const Y = p("jmash-select"), v = p("el-form-item"), f = p("el-col"), I = p("el-input"), y = p("el-button"), T = p("el-row"), F = p("el-form"), K = p("jmash-column-select"), M = p("el-image"), $ = p("el-switch"), O = p("jmash-table"), G = p("jmash-pagination"), J = p("el-card"), b = Z("hasPerm");
|
|
144
144
|
return m(), C("div", null, [
|
|
145
145
|
r("div", se, [
|
|
146
146
|
t(F, {
|
|
@@ -159,7 +159,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
159
159
|
prop: "shopId"
|
|
160
160
|
}, {
|
|
161
161
|
default: o(() => [
|
|
162
|
-
t(
|
|
162
|
+
t(Y, {
|
|
163
163
|
modelValue: u.value.shopId,
|
|
164
164
|
"onUpdate:modelValue": l[0] || (l[0] = (e) => u.value.shopId = e),
|
|
165
165
|
placeholder: s.$t("goodsSpu.shopIdRequired"),
|
|
@@ -183,7 +183,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
183
183
|
modelValue: u.value.spuCode,
|
|
184
184
|
"onUpdate:modelValue": l[1] || (l[1] = (e) => u.value.spuCode = e),
|
|
185
185
|
placeholder: s.$t("goodsSpu.spuCode"),
|
|
186
|
-
onKeyup: l[2] || (l[2] =
|
|
186
|
+
onKeyup: l[2] || (l[2] = k((e) => a(d).handleQuery(), ["enter"])),
|
|
187
187
|
class: "!w-[203px]"
|
|
188
188
|
}, null, 8, ["modelValue", "placeholder"])
|
|
189
189
|
]),
|
|
@@ -203,7 +203,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
203
203
|
modelValue: u.value.spuName,
|
|
204
204
|
"onUpdate:modelValue": l[3] || (l[3] = (e) => u.value.spuName = e),
|
|
205
205
|
placeholder: s.$t("goodsSpu.spuName"),
|
|
206
|
-
onKeyup: l[4] || (l[4] =
|
|
206
|
+
onKeyup: l[4] || (l[4] = k((e) => a(d).handleQuery(), ["enter"])),
|
|
207
207
|
class: "!w-[203px]"
|
|
208
208
|
}, null, 8, ["modelValue", "placeholder"])
|
|
209
209
|
]),
|
|
@@ -246,7 +246,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["model"])
|
|
248
248
|
]),
|
|
249
|
-
t(
|
|
249
|
+
t(J, {
|
|
250
250
|
shadow: "never",
|
|
251
251
|
class: "table-container"
|
|
252
252
|
}, {
|
|
@@ -257,7 +257,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
257
257
|
default: o(() => [
|
|
258
258
|
w((m(), V(y, {
|
|
259
259
|
type: "primary",
|
|
260
|
-
onClick:
|
|
260
|
+
onClick: A
|
|
261
261
|
}, {
|
|
262
262
|
default: o(() => [
|
|
263
263
|
c(n(s.$t("common.add")), 1)
|
|
@@ -298,7 +298,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
298
298
|
})
|
|
299
299
|
]),
|
|
300
300
|
footer: o(() => [
|
|
301
|
-
a(_) > 0 ? (m(), V(
|
|
301
|
+
a(_) > 0 ? (m(), V(G, {
|
|
302
302
|
key: 0,
|
|
303
303
|
total: a(_),
|
|
304
304
|
"onUpdate:total": l[9] || (l[9] = (e) => U(_) ? _.value = e : null),
|
|
@@ -310,15 +310,15 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
310
310
|
}, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
|
|
311
311
|
]),
|
|
312
312
|
default: o(() => [
|
|
313
|
-
t(
|
|
313
|
+
t(O, {
|
|
314
314
|
ref_key: "multipleTableRef",
|
|
315
315
|
ref: z,
|
|
316
316
|
"row-key": "spuId",
|
|
317
317
|
"list-loading": a(E),
|
|
318
318
|
data: a(q),
|
|
319
319
|
"table-label": a(h),
|
|
320
|
-
onSelectionChange:
|
|
321
|
-
onSortChange:
|
|
320
|
+
onSelectionChange: H,
|
|
321
|
+
onSortChange: Q
|
|
322
322
|
}, {
|
|
323
323
|
shopId: o((e) => [
|
|
324
324
|
r("span", null, n(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
@@ -329,9 +329,9 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
329
329
|
picUrls: o((e) => [
|
|
330
330
|
r("span", null, [
|
|
331
331
|
t(M, {
|
|
332
|
-
src: a(
|
|
332
|
+
src: a(P).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
333
333
|
"preview-src-list": [
|
|
334
|
-
a(
|
|
334
|
+
a(P).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
335
335
|
],
|
|
336
336
|
"preview-teleported": "",
|
|
337
337
|
"hide-on-click-modal": "",
|
|
@@ -375,7 +375,7 @@ const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue
|
|
|
375
375
|
operation: o((e) => [
|
|
376
376
|
w((m(), C("span", {
|
|
377
377
|
class: "el-button-color",
|
|
378
|
-
onClick: (i) =>
|
|
378
|
+
onClick: (i) => B(e.data.row)
|
|
379
379
|
}, [
|
|
380
380
|
c(n(s.$t("common.edit")), 1)
|
|
381
381
|
], 8, ne)), [
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as ne, getCurrentInstance as pe, ref as
|
|
1
|
+
import { defineComponent as ne, getCurrentInstance as pe, ref as D, resolveComponent as n, resolveDirective as de, openBlock as c, createElementBlock as V, createElementVNode as m, createVNode as l, withCtx as o, unref as s, withKeys as z, createTextVNode as r, toDisplayString as p, withDirectives as v, createBlock as I, isRef as L, createCommentVNode as ue } from "vue";
|
|
2
2
|
import { ElMessage as T } from "element-plus";
|
|
3
3
|
import { useRouter as re } from "vue-router";
|
|
4
4
|
import { useTableHooks as me, fileApi as j } from "jmash-core";
|
|
5
5
|
import { useI18n as ie } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as E } from "./index.mjs";
|
|
7
|
-
import { C as ce, D as _ } from "./index-
|
|
7
|
+
import { C as ce, D as _ } from "./index-CKeHa-Cx.mjs";
|
|
8
8
|
const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we = ["onClick"], $e = /* @__PURE__ */ ne({
|
|
9
9
|
__name: "auditIndex",
|
|
10
10
|
setup(he) {
|
|
11
|
-
const { t: w } = ie(), $ = re(), { proxy: q } = pe(), u =
|
|
11
|
+
const { t: w } = ie(), $ = re(), { proxy: q } = pe(), u = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
|
-
approvalStatus: ce.
|
|
14
|
+
approvalStatus: ce.APPROVALING
|
|
15
15
|
}), {
|
|
16
16
|
tableHooks: d,
|
|
17
17
|
multipleTableRef: N,
|
|
18
18
|
queryFormRef: B,
|
|
19
|
-
listLoading:
|
|
20
|
-
tableData:
|
|
19
|
+
listLoading: O,
|
|
20
|
+
tableData: H,
|
|
21
21
|
total: C
|
|
22
22
|
} = me(w, E, u);
|
|
23
|
-
let y =
|
|
23
|
+
let y = D([
|
|
24
24
|
{
|
|
25
25
|
label: "goodsSpu.shopId",
|
|
26
26
|
prop: "shopId",
|
|
27
27
|
slotName: "shopId",
|
|
28
28
|
columnType: "slot",
|
|
29
|
-
width: "
|
|
29
|
+
width: "250",
|
|
30
30
|
isColumn: !0
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
label: "goodsSpu.spuName",
|
|
34
34
|
prop: "spuName",
|
|
35
|
-
width: "
|
|
35
|
+
width: "200",
|
|
36
36
|
isColumn: !0
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -54,7 +54,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
54
54
|
{
|
|
55
55
|
label: "goodsSpu.price",
|
|
56
56
|
prop: "minPrice",
|
|
57
|
-
width: "
|
|
57
|
+
width: "120",
|
|
58
58
|
sortable: "custom",
|
|
59
59
|
slotName: "minPrice",
|
|
60
60
|
columnType: "slot",
|
|
@@ -63,7 +63,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
63
63
|
{
|
|
64
64
|
label: "goodsSpu.spuCode",
|
|
65
65
|
prop: "spuCode",
|
|
66
|
-
width: "
|
|
66
|
+
width: "120",
|
|
67
67
|
sortable: "custom",
|
|
68
68
|
isColumn: !0
|
|
69
69
|
},
|
|
@@ -77,7 +77,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
77
77
|
{
|
|
78
78
|
label: "goodsSpu.specType",
|
|
79
79
|
prop: "specType",
|
|
80
|
-
width: "
|
|
80
|
+
width: "120",
|
|
81
81
|
slotName: "specType",
|
|
82
82
|
columnType: "slot",
|
|
83
83
|
sortable: "custom",
|
|
@@ -86,7 +86,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
86
86
|
{
|
|
87
87
|
label: "goodsSpu.shelf",
|
|
88
88
|
prop: "shelf",
|
|
89
|
-
width: "
|
|
89
|
+
width: "120",
|
|
90
90
|
slotName: "shelf",
|
|
91
91
|
columnType: "slot",
|
|
92
92
|
sortable: "custom",
|
|
@@ -95,7 +95,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
95
95
|
{
|
|
96
96
|
label: "goodsSpu.approvalStatus",
|
|
97
97
|
prop: "approvalStatus",
|
|
98
|
-
width: "
|
|
98
|
+
width: "120",
|
|
99
99
|
slotName: "approvalStatus",
|
|
100
100
|
columnType: "slot",
|
|
101
101
|
isColumn: !0
|
|
@@ -161,7 +161,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
return d.getList(), (t, a) => {
|
|
164
|
-
const g = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), J = n("el-form"), W = n("arrow-down"), k = n("el-icon"), X = n("Unlock"), R = n("el-dropdown-item"), Z = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"),
|
|
164
|
+
const g = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), J = n("el-form"), W = n("arrow-down"), k = n("el-icon"), X = n("Unlock"), R = n("el-dropdown-item"), Z = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"), A = n("el-switch"), te = n("jmash-table"), ae = n("jmash-pagination"), se = n("el-card"), b = de("hasPerm");
|
|
165
165
|
return c(), V("div", null, [
|
|
166
166
|
m("div", ge, [
|
|
167
167
|
l(J, {
|
|
@@ -388,8 +388,8 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
388
388
|
ref_key: "multipleTableRef",
|
|
389
389
|
ref: N,
|
|
390
390
|
"row-key": "spuId",
|
|
391
|
-
"list-loading": s(
|
|
392
|
-
data: s(
|
|
391
|
+
"list-loading": s(O),
|
|
392
|
+
data: s(H),
|
|
393
393
|
"table-label": s(y),
|
|
394
394
|
onSelectionChange: K,
|
|
395
395
|
onSortChange: M
|
|
@@ -415,7 +415,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
415
415
|
]),
|
|
416
416
|
shelf: o((e) => [
|
|
417
417
|
m("span", null, [
|
|
418
|
-
l(
|
|
418
|
+
l(A, {
|
|
419
419
|
modelValue: e.data.row.shelf,
|
|
420
420
|
"onUpdate:modelValue": (i) => e.data.row.shelf = i,
|
|
421
421
|
onClick: (i) => s(d).enableRecord(e.data.row, e.data.row.shelf)
|
|
@@ -440,7 +440,7 @@ const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we
|
|
|
440
440
|
)), 1)
|
|
441
441
|
]),
|
|
442
442
|
enable: o((e) => [
|
|
443
|
-
l(
|
|
443
|
+
l(A, {
|
|
444
444
|
modelValue: e.data.row.enable,
|
|
445
445
|
"onUpdate:modelValue": (i) => e.data.row.enable = i,
|
|
446
446
|
onChange: (i) => s(d).enableRecord(e.data.row, e.data.row.enable)
|