xyvcard-goods 0.0.6 → 0.0.8
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-F3GtuNeX.mjs → approveFailIndex-BecI6njE.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs} +9 -9
- package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-ByyMgebr.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs} +44 -44
- package/dist/edit-BWUxDk9Y.mjs +594 -0
- package/dist/{index-D5_GsXR7.mjs → index-AZ4TxL-_.mjs} +48 -51
- package/dist/{index-kGlE0ywA.mjs → index-BypI3ZNk.mjs} +90 -90
- package/dist/index.mjs +2 -2
- package/dist/{info-kiOShGr4.mjs → info-BJ1Ld_6D.mjs} +20 -23
- package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CBtuv6um.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs} +69 -69
- package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-CykEAeD4.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs} +11 -11
- package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-DdiMztDh.mjs} +82 -77
- package/dist/{skuTable-8oPw0DhV.mjs → skuTable-Cg06m_5i.mjs} +122 -127
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -2
- package/dts/api/goods-spu/types.d.ts +6 -5
- package/dts/components/EnumRadio/index.vue.d.ts +4 -3
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
- package/dts/constant.d.ts +3 -3
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +9 -0
- package/package.json +65 -65
- package/dist/edit-C3imnLUq.mjs +0 -600
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var S = (
|
|
3
|
-
var s = (
|
|
2
|
+
var S = (i, t, a) => t in i ? h(i, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : i[t] = a;
|
|
3
|
+
var s = (i, t, a) => S(i, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import { BizDict as p, BizLayDict as E, EnumDict as l } from "jmash-core";
|
|
5
5
|
import { EntryDict as _ } from "jmash-dict";
|
|
6
6
|
import { ref as n, reactive as v } from "vue";
|
|
7
|
-
import { goodsCategoryApi as
|
|
8
|
-
import { specValueApi as
|
|
7
|
+
import { goodsCategoryApi as d } from "xyvcard-emall";
|
|
8
|
+
import { specValueApi as O, infoApi as P, specInfoApi as f } from "xyvcard-shop";
|
|
9
9
|
class e {
|
|
10
10
|
}
|
|
11
11
|
// 模块
|
|
@@ -17,8 +17,8 @@ s(e, "specType", {
|
|
|
17
17
|
//多规格
|
|
18
18
|
}), // 启用禁用
|
|
19
19
|
s(e, "SHELF_VALUES", n([
|
|
20
|
-
{ key:
|
|
21
|
-
{ key:
|
|
20
|
+
{ key: !0, value: "上架" },
|
|
21
|
+
{ key: !1, value: "下架" }
|
|
22
22
|
])), // 运费类型
|
|
23
23
|
s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
24
24
|
s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
@@ -27,85 +27,82 @@ s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), //
|
|
|
27
27
|
s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
28
28
|
s(e, "approval_not_pass", "APPROVAL_NOT_PASS"), s(e, "approval_pass", "APPROVAL_PASS"), s(e, "approvaling", "APPROVALING");
|
|
29
29
|
class y {
|
|
30
|
-
constructor(t,
|
|
30
|
+
constructor(t, a) {
|
|
31
31
|
s(this, "values", v([]));
|
|
32
32
|
// 查询条件
|
|
33
33
|
s(this, "query");
|
|
34
|
-
this.values.length = 0, this.values.push(...t.value), this.query =
|
|
34
|
+
this.values.length = 0, this.values.push(...t.value), this.query = a;
|
|
35
35
|
}
|
|
36
36
|
// 根据给定键获取业务数据项的值的方法
|
|
37
37
|
getValue(t) {
|
|
38
|
-
for (const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
38
|
+
for (const a of this.values)
|
|
39
|
+
if (a.key == t)
|
|
40
|
+
return a.value;
|
|
41
41
|
return "";
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
class L extends p {
|
|
45
45
|
// 实现 useValues 方法
|
|
46
46
|
useValues() {
|
|
47
|
-
return new Promise((t,
|
|
48
|
-
P.findList(this.query).then(({ data:
|
|
49
|
-
|
|
50
|
-
const r = o.results;
|
|
47
|
+
return new Promise((t, a) => {
|
|
48
|
+
P.findList(this.query).then(({ data: r }) => {
|
|
49
|
+
const c = r.results;
|
|
51
50
|
this.values.length = 0, this.values.push(
|
|
52
|
-
...
|
|
53
|
-
(
|
|
54
|
-
key:
|
|
55
|
-
value:
|
|
51
|
+
...c.map(
|
|
52
|
+
(o) => ({
|
|
53
|
+
key: o.shopId,
|
|
54
|
+
value: o.shopName
|
|
56
55
|
})
|
|
57
56
|
)
|
|
58
57
|
), t(this.values);
|
|
59
|
-
}).catch(
|
|
58
|
+
}).catch(a);
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
|
-
class
|
|
62
|
+
class m extends E {
|
|
64
63
|
// 实现 useValues 方法
|
|
65
64
|
useValues() {
|
|
66
|
-
return new Promise((t,
|
|
67
|
-
|
|
68
|
-
this.values.length = 0, this.values.push(...
|
|
69
|
-
}).catch(
|
|
65
|
+
return new Promise((t, a) => {
|
|
66
|
+
d.findTreeListApi().then(({ data: r }) => {
|
|
67
|
+
this.values.length = 0, this.values.push(...r.results), t(this.values);
|
|
68
|
+
}).catch(a);
|
|
70
69
|
});
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
|
-
class
|
|
72
|
+
class D extends p {
|
|
74
73
|
// 实现 useValues 方法
|
|
75
74
|
useValues() {
|
|
76
|
-
return new Promise((t,
|
|
77
|
-
f.findList(this.query).then(({ data:
|
|
78
|
-
|
|
79
|
-
const r = o.results;
|
|
75
|
+
return new Promise((t, a) => {
|
|
76
|
+
f.findList(this.query).then(({ data: r }) => {
|
|
77
|
+
const c = r.results;
|
|
80
78
|
this.values.length = 0, this.values.push(
|
|
81
|
-
...
|
|
82
|
-
(
|
|
83
|
-
key:
|
|
84
|
-
value:
|
|
85
|
-
disabled:
|
|
79
|
+
...c.map(
|
|
80
|
+
(o) => ({
|
|
81
|
+
key: o.specId,
|
|
82
|
+
value: o.specName,
|
|
83
|
+
disabled: o.disabled
|
|
86
84
|
})
|
|
87
85
|
)
|
|
88
86
|
), t(this.values);
|
|
89
|
-
}).catch(
|
|
87
|
+
}).catch(a);
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
|
-
class
|
|
91
|
+
class U extends p {
|
|
94
92
|
// 实现 useValues 方法
|
|
95
93
|
useValues() {
|
|
96
|
-
return new Promise((t,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const r = o.results;
|
|
94
|
+
return new Promise((t, a) => {
|
|
95
|
+
O.findList(this.query).then(({ data: r }) => {
|
|
96
|
+
const c = r.results;
|
|
100
97
|
this.values.length = 0, this.values.push(
|
|
101
|
-
...
|
|
102
|
-
(
|
|
103
|
-
key:
|
|
104
|
-
value:
|
|
98
|
+
...c.map(
|
|
99
|
+
(o) => ({
|
|
100
|
+
key: o.specValueId,
|
|
101
|
+
value: o.valueName
|
|
105
102
|
})
|
|
106
103
|
)
|
|
107
104
|
), t(this.values);
|
|
108
|
-
}).catch(
|
|
105
|
+
}).catch(a);
|
|
109
106
|
});
|
|
110
107
|
}
|
|
111
108
|
}
|
|
@@ -113,9 +110,9 @@ class u {
|
|
|
113
110
|
}
|
|
114
111
|
// 店铺列表
|
|
115
112
|
s(u, "shopInfoBizDict", new L({})), // 商品分类
|
|
116
|
-
s(u, "goodsCategoryDict", new
|
|
117
|
-
s(u, "specInfoDict", new
|
|
118
|
-
s(u, "specValueDict", new
|
|
113
|
+
s(u, "goodsCategoryDict", new m({})), // 规格列表
|
|
114
|
+
s(u, "specInfoDict", new D({})), // 规格值
|
|
115
|
+
s(u, "specValueDict", new U({})), // 上架下架
|
|
119
116
|
s(u, "shelfDict", new y(e.SHELF_VALUES, {})), // 运费类型
|
|
120
117
|
s(u, "freightTypeEnum", new l(
|
|
121
118
|
e.MODULE_GOODS,
|
|
@@ -137,6 +134,6 @@ s(u, "approvalStatusEnum", new l(
|
|
|
137
134
|
export {
|
|
138
135
|
e as C,
|
|
139
136
|
u as D,
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
U as S,
|
|
138
|
+
D as a
|
|
142
139
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
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 t, 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
2
|
import { ElMessage as I } from "element-plus";
|
|
3
3
|
import { useRouter as ve } from "vue-router";
|
|
4
4
|
import { useTableHooks as ye, fileApi as J } from "jmash-core";
|
|
5
5
|
import { useI18n as Se } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as L } from "./index.mjs";
|
|
7
|
-
import { D as b, C as j } from "./index-
|
|
8
|
-
import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as ke } from "./auditIndex.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as Ve } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { D as b, C as j } from "./index-AZ4TxL-_.mjs";
|
|
8
|
+
import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs";
|
|
9
|
+
import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs";
|
|
10
|
+
import { _ as ke } from "./auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs";
|
|
11
|
+
import { _ as Ve } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.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) {
|
|
@@ -123,25 +123,25 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
123
123
|
function x() {
|
|
124
124
|
D.push({ path: "/rawgoods/goods-spu/edit" });
|
|
125
125
|
}
|
|
126
|
-
function ee(
|
|
126
|
+
function ee(l) {
|
|
127
127
|
D.push({
|
|
128
128
|
path: "/rawgoods/goods-spu/edit",
|
|
129
|
-
query: { spuId:
|
|
129
|
+
query: { spuId: l.spuId }
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function oe(
|
|
132
|
+
function oe(l) {
|
|
133
133
|
D.push({
|
|
134
134
|
path: "/rawgoods/goods-spu/info",
|
|
135
|
-
query: { spuId:
|
|
135
|
+
query: { spuId: l.spuId }
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
d.selectionRows.value =
|
|
138
|
+
function te(l) {
|
|
139
|
+
d.selectionRows.value = l;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
d.handleSort(
|
|
141
|
+
function le(l) {
|
|
142
|
+
d.handleSort(l.prop, l.order);
|
|
143
143
|
}
|
|
144
|
-
function ae(
|
|
144
|
+
function ae(l) {
|
|
145
145
|
if (d.selectionRows.value.length === 0) {
|
|
146
146
|
I({
|
|
147
147
|
message: c("goodsSpu.chooseShelf"),
|
|
@@ -150,9 +150,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
const a = d.selectionRows.value.map((r) => r.spuId);
|
|
153
|
-
|
|
153
|
+
L.enable({ spuId: a }, JSON.parse(l)).then((r) => {
|
|
154
154
|
var f;
|
|
155
|
-
|
|
155
|
+
r.status === 200 && (l === "true" ? I({
|
|
156
156
|
message: c("goodsSpu.successShelf") + r.data + c("common.stripData"),
|
|
157
157
|
type: "success"
|
|
158
158
|
}) : I({
|
|
@@ -161,8 +161,8 @@ 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 se(
|
|
165
|
-
if (
|
|
164
|
+
function se(l) {
|
|
165
|
+
if (d.selectionRows.value.length === 0) {
|
|
166
166
|
I({
|
|
167
167
|
message: c("goodsSpu.chooseShelf"),
|
|
168
168
|
type: "warning"
|
|
@@ -170,9 +170,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
const a = d.selectionRows.value.map((r) => r.spuId);
|
|
173
|
-
L.audit({ spuId: a },
|
|
173
|
+
L.audit({ spuId: a }, l).then((r) => {
|
|
174
174
|
var f;
|
|
175
|
-
|
|
175
|
+
r.status === 200 && (l === j.approval_pass ? I({
|
|
176
176
|
message: c("goodsSpu.successApproval") + r.data + c("common.stripData"),
|
|
177
177
|
type: "success"
|
|
178
178
|
}) : I({
|
|
@@ -181,13 +181,13 @@ 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 ne(
|
|
185
|
-
h.value = Number(
|
|
184
|
+
function ne(l) {
|
|
185
|
+
h.value = Number(l.index);
|
|
186
186
|
}
|
|
187
|
-
return d.getList(), (
|
|
187
|
+
return d.getList(), (l, a) => {
|
|
188
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
189
|
return p(), k("div", Ie, [
|
|
190
|
-
|
|
190
|
+
t(fe, {
|
|
191
191
|
modelValue: h.value,
|
|
192
192
|
"onUpdate:modelValue": a[13] || (a[13] = (z) => h.value = z),
|
|
193
193
|
type: "border-card",
|
|
@@ -202,7 +202,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
202
202
|
default: o(() => [
|
|
203
203
|
h.value === 0 ? (p(), k("div", Te, [
|
|
204
204
|
_("div", Ne, [
|
|
205
|
-
|
|
205
|
+
t(ue, {
|
|
206
206
|
ref_for: !0,
|
|
207
207
|
ref_key: "queryFormRef",
|
|
208
208
|
ref: W,
|
|
@@ -210,19 +210,19 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
210
210
|
inline: !0
|
|
211
211
|
}, {
|
|
212
212
|
default: o(() => [
|
|
213
|
-
|
|
213
|
+
t(A, null, {
|
|
214
214
|
default: o(() => [
|
|
215
|
-
|
|
215
|
+
t(S, { span: 6 }, {
|
|
216
216
|
default: o(() => [
|
|
217
|
-
|
|
218
|
-
label:
|
|
217
|
+
t(f, {
|
|
218
|
+
label: l.$t("goodsSpu.shopId"),
|
|
219
219
|
prop: "shopId"
|
|
220
220
|
}, {
|
|
221
221
|
default: o(() => [
|
|
222
|
-
|
|
222
|
+
t(r, {
|
|
223
223
|
modelValue: i.value.shopId,
|
|
224
224
|
"onUpdate:modelValue": a[0] || (a[0] = (e) => i.value.shopId = e),
|
|
225
|
-
placeholder:
|
|
225
|
+
placeholder: l.$t("goodsSpu.shopIdRequired"),
|
|
226
226
|
data: s(b).shopInfoBizDict.values,
|
|
227
227
|
filterable: ""
|
|
228
228
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -232,17 +232,17 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
234
234
|
}),
|
|
235
|
-
|
|
235
|
+
t(S, { span: 6 }, {
|
|
236
236
|
default: o(() => [
|
|
237
|
-
|
|
238
|
-
label:
|
|
237
|
+
t(f, {
|
|
238
|
+
label: l.$t("goodsSpu.spuCode"),
|
|
239
239
|
prop: "spuCode"
|
|
240
240
|
}, {
|
|
241
241
|
default: o(() => [
|
|
242
|
-
|
|
242
|
+
t(E, {
|
|
243
243
|
modelValue: i.value.spuCode,
|
|
244
244
|
"onUpdate:modelValue": a[1] || (a[1] = (e) => i.value.spuCode = e),
|
|
245
|
-
placeholder:
|
|
245
|
+
placeholder: l.$t("goodsSpu.spuCode"),
|
|
246
246
|
class: "!w-[203px]",
|
|
247
247
|
onKeyup: a[2] || (a[2] = K((e) => s(d).handleQuery(), ["enter"]))
|
|
248
248
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -252,17 +252,17 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
252
252
|
]),
|
|
253
253
|
_: 1
|
|
254
254
|
}),
|
|
255
|
-
|
|
255
|
+
t(S, { span: 6 }, {
|
|
256
256
|
default: o(() => [
|
|
257
|
-
|
|
258
|
-
label:
|
|
257
|
+
t(f, {
|
|
258
|
+
label: l.$t("goodsSpu.spuName"),
|
|
259
259
|
prop: "spuName"
|
|
260
260
|
}, {
|
|
261
261
|
default: o(() => [
|
|
262
|
-
|
|
262
|
+
t(E, {
|
|
263
263
|
modelValue: i.value.spuName,
|
|
264
264
|
"onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.spuName = e),
|
|
265
|
-
placeholder:
|
|
265
|
+
placeholder: l.$t("goodsSpu.spuName"),
|
|
266
266
|
class: "!w-[203px]",
|
|
267
267
|
onKeyup: a[4] || (a[4] = K((e) => s(d).handleQuery(), ["enter"]))
|
|
268
268
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -272,24 +272,24 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
}),
|
|
275
|
-
|
|
275
|
+
t(S, { span: 6 }, {
|
|
276
276
|
default: o(() => [
|
|
277
|
-
|
|
277
|
+
t(f, { class: "search-btn" }, {
|
|
278
278
|
default: o(() => [
|
|
279
|
-
|
|
279
|
+
t(C, {
|
|
280
280
|
type: "primary",
|
|
281
281
|
onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
|
|
282
282
|
}, {
|
|
283
283
|
default: o(() => [
|
|
284
|
-
m(u(
|
|
284
|
+
m(u(l.$t("common.search")), 1)
|
|
285
285
|
]),
|
|
286
286
|
_: 1
|
|
287
287
|
}),
|
|
288
|
-
|
|
288
|
+
t(C, {
|
|
289
289
|
onClick: a[6] || (a[6] = (e) => s(d).resetQuery())
|
|
290
290
|
}, {
|
|
291
291
|
default: o(() => [
|
|
292
|
-
m(u(
|
|
292
|
+
m(u(l.$t("common.reset")), 1)
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
})
|
|
@@ -306,21 +306,21 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["model"])
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
t(ie, {
|
|
310
310
|
shadow: "never",
|
|
311
311
|
class: "table-container"
|
|
312
312
|
}, {
|
|
313
313
|
header: o(() => [
|
|
314
|
-
|
|
314
|
+
t(A, null, {
|
|
315
315
|
default: o(() => [
|
|
316
|
-
|
|
316
|
+
t(S, { span: 17 }, {
|
|
317
317
|
default: o(() => [
|
|
318
318
|
y((p(), g(C, {
|
|
319
319
|
type: "primary",
|
|
320
320
|
onClick: x
|
|
321
321
|
}, {
|
|
322
322
|
default: o(() => [
|
|
323
|
-
m(u(
|
|
323
|
+
m(u(l.$t("common.add")), 1)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})), [
|
|
@@ -331,7 +331,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
331
331
|
onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
|
|
332
332
|
}, {
|
|
333
333
|
default: o(() => [
|
|
334
|
-
m(u(
|
|
334
|
+
m(u(l.$t("common.batchDelete")), 1)
|
|
335
335
|
]),
|
|
336
336
|
_: 1
|
|
337
337
|
})), [
|
|
@@ -342,29 +342,29 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
342
342
|
onCommand: ae
|
|
343
343
|
}, {
|
|
344
344
|
dropdown: o(() => [
|
|
345
|
-
|
|
345
|
+
t(H, null, {
|
|
346
346
|
default: o(() => [
|
|
347
|
-
|
|
347
|
+
t(U, { command: "true" }, {
|
|
348
348
|
default: o(() => [
|
|
349
|
-
|
|
349
|
+
t($, { size: "14" }, {
|
|
350
350
|
default: o(() => [
|
|
351
|
-
|
|
351
|
+
t(B)
|
|
352
352
|
]),
|
|
353
353
|
_: 1
|
|
354
354
|
}),
|
|
355
|
-
m(" " + u(
|
|
355
|
+
m(" " + u(l.$t("goodsSpu.batchShelf")), 1)
|
|
356
356
|
]),
|
|
357
357
|
_: 1
|
|
358
358
|
}),
|
|
359
|
-
|
|
359
|
+
t(U, { command: "false" }, {
|
|
360
360
|
default: o(() => [
|
|
361
|
-
|
|
361
|
+
t($, { size: "14" }, {
|
|
362
362
|
default: o(() => [
|
|
363
|
-
|
|
363
|
+
t(F)
|
|
364
364
|
]),
|
|
365
365
|
_: 1
|
|
366
366
|
}),
|
|
367
|
-
m(" " + u(
|
|
367
|
+
m(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
|
|
368
368
|
]),
|
|
369
369
|
_: 1
|
|
370
370
|
})
|
|
@@ -373,12 +373,12 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
373
373
|
})
|
|
374
374
|
]),
|
|
375
375
|
default: o(() => [
|
|
376
|
-
|
|
376
|
+
t(C, { type: "primary" }, {
|
|
377
377
|
default: o(() => [
|
|
378
|
-
m(u(
|
|
379
|
-
|
|
378
|
+
m(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
379
|
+
t($, { class: "el-icon--right" }, {
|
|
380
380
|
default: o(() => [
|
|
381
|
-
|
|
381
|
+
t(q)
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
})
|
|
@@ -395,33 +395,33 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
395
395
|
onCommand: se
|
|
396
396
|
}, {
|
|
397
397
|
dropdown: o(() => [
|
|
398
|
-
|
|
398
|
+
t(H, null, {
|
|
399
399
|
default: o(() => [
|
|
400
|
-
|
|
400
|
+
t(U, {
|
|
401
401
|
command: s(j).approval_pass
|
|
402
402
|
}, {
|
|
403
403
|
default: o(() => [
|
|
404
|
-
|
|
404
|
+
t($, { size: "14" }, {
|
|
405
405
|
default: o(() => [
|
|
406
|
-
|
|
406
|
+
t(B)
|
|
407
407
|
]),
|
|
408
408
|
_: 1
|
|
409
409
|
}),
|
|
410
|
-
m(" " + u(
|
|
410
|
+
m(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
|
|
411
411
|
]),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["command"]),
|
|
414
|
-
|
|
414
|
+
t(U, {
|
|
415
415
|
command: s(j).approval_not_pass
|
|
416
416
|
}, {
|
|
417
417
|
default: o(() => [
|
|
418
|
-
|
|
418
|
+
t($, { size: "14" }, {
|
|
419
419
|
default: o(() => [
|
|
420
|
-
|
|
420
|
+
t(F)
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
}),
|
|
424
|
-
m(" " + u(
|
|
424
|
+
m(" " + u(l.$t("goodsSpu.batchRejected")), 1)
|
|
425
425
|
]),
|
|
426
426
|
_: 1
|
|
427
427
|
}, 8, ["command"])
|
|
@@ -430,12 +430,12 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
430
430
|
})
|
|
431
431
|
]),
|
|
432
432
|
default: o(() => [
|
|
433
|
-
|
|
433
|
+
t(C, { type: "primary" }, {
|
|
434
434
|
default: o(() => [
|
|
435
|
-
m(u(
|
|
436
|
-
|
|
435
|
+
m(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
436
|
+
t($, { class: "el-icon--right" }, {
|
|
437
437
|
default: o(() => [
|
|
438
|
-
|
|
438
|
+
t(q)
|
|
439
439
|
]),
|
|
440
440
|
_: 1
|
|
441
441
|
})
|
|
@@ -450,12 +450,12 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
450
450
|
]),
|
|
451
451
|
_: 1
|
|
452
452
|
}),
|
|
453
|
-
|
|
453
|
+
t(S, {
|
|
454
454
|
span: 7,
|
|
455
455
|
class: "container-float"
|
|
456
456
|
}, {
|
|
457
457
|
default: o(() => [
|
|
458
|
-
|
|
458
|
+
t(de, {
|
|
459
459
|
modelValue: s(T),
|
|
460
460
|
"onUpdate:modelValue": a[8] || (a[8] = (e) => M(T) ? T.value = e : T = e),
|
|
461
461
|
"label-name": "goods/goods-spu"
|
|
@@ -480,7 +480,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
480
480
|
}, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
|
|
481
481
|
]),
|
|
482
482
|
default: o(() => [
|
|
483
|
-
|
|
483
|
+
t(re, {
|
|
484
484
|
ref_for: !0,
|
|
485
485
|
ref_key: "multipleTableRef",
|
|
486
486
|
ref: R,
|
|
@@ -488,8 +488,8 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
488
488
|
"list-loading": s(X),
|
|
489
489
|
data: s(Z),
|
|
490
490
|
"table-label": s(T),
|
|
491
|
-
onSelectionChange:
|
|
492
|
-
onSortChange:
|
|
491
|
+
onSelectionChange: te,
|
|
492
|
+
onSortChange: le
|
|
493
493
|
}, {
|
|
494
494
|
shopId: o((e) => [
|
|
495
495
|
_("span", null, u(s(b).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
@@ -499,7 +499,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
499
499
|
]),
|
|
500
500
|
picUrls: o((e) => [
|
|
501
501
|
_("span", null, [
|
|
502
|
-
|
|
502
|
+
t(pe, {
|
|
503
503
|
src: s(J).imageUrl(
|
|
504
504
|
e.data.row.picUrls.split(",")[0],
|
|
505
505
|
50,
|
|
@@ -516,7 +516,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
516
516
|
]),
|
|
517
517
|
shelf: o((e) => [
|
|
518
518
|
_("span", null, [
|
|
519
|
-
|
|
519
|
+
t(Q, {
|
|
520
520
|
modelValue: e.data.row.shelf,
|
|
521
521
|
"onUpdate:modelValue": (w) => e.data.row.shelf = w,
|
|
522
522
|
onClick: (w) => s(d).enableRecord(
|
|
@@ -544,7 +544,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
544
544
|
)), 1)
|
|
545
545
|
]),
|
|
546
546
|
enable: o((e) => [
|
|
547
|
-
|
|
547
|
+
t(Q, {
|
|
548
548
|
modelValue: e.data.row.enable,
|
|
549
549
|
"onUpdate:modelValue": (w) => e.data.row.enable = w,
|
|
550
550
|
onChange: (w) => s(d).enableRecord(
|
|
@@ -558,7 +558,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
558
558
|
class: "el-button-color",
|
|
559
559
|
onClick: (w) => ee(e.data.row)
|
|
560
560
|
}, [
|
|
561
|
-
m(u(
|
|
561
|
+
m(u(l.$t("common.edit")), 1)
|
|
562
562
|
], 8, Ue)), [
|
|
563
563
|
[v, ["goods:goods_spu:update"]]
|
|
564
564
|
]),
|
|
@@ -566,7 +566,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
566
566
|
class: "el-button-color dropdown-left",
|
|
567
567
|
onClick: (w) => s(d).deleteRecord(e.data.row)
|
|
568
568
|
}, [
|
|
569
|
-
m(u(
|
|
569
|
+
m(u(l.$t("common.delete")), 1)
|
|
570
570
|
], 8, De)), [
|
|
571
571
|
[v, ["goods:goods_spu:delete"]]
|
|
572
572
|
]),
|
|
@@ -574,7 +574,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
|
|
|
574
574
|
class: "el-button-color dropdown-left",
|
|
575
575
|
onClick: (w) => oe(e.data.row)
|
|
576
576
|
}, [
|
|
577
|
-
m(u(
|
|
577
|
+
m(u(l.$t("common.view")), 1)
|
|
578
578
|
], 8, Re)), [
|
|
579
579
|
[v, ["goods:goods_spu:view"]]
|
|
580
580
|
])
|
package/dist/index.mjs
CHANGED
|
@@ -91,7 +91,7 @@ function Ps(e) {
|
|
|
91
91
|
let s = e.global.getLocaleMessage("en");
|
|
92
92
|
s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
93
93
|
}
|
|
94
|
-
const Ns = () => import("./edit-
|
|
94
|
+
const Ns = () => import("./edit-BWUxDk9Y.mjs"), Ws = () => import("./info-BJ1Ld_6D.mjs"), Fs = [
|
|
95
95
|
{
|
|
96
96
|
path: "/rawgoods",
|
|
97
97
|
component: Ys,
|
|
@@ -2835,7 +2835,7 @@ class Ci {
|
|
|
2835
2835
|
});
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-
|
|
2838
|
+
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-BecI6njE.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-ByyMgebr.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BWUxDk9Y.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BypI3ZNk.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-BJ1Ld_6D.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-CBtuv6um.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-CykEAeD4.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-DdiMztDh.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-Cg06m_5i.mjs").then((e) => e.a) }), Ei = {
|
|
2839
2839
|
install(e) {
|
|
2840
2840
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Li);
|
|
2841
2841
|
}
|