xyvcard-goods 0.0.1 → 0.0.3
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-gl8MBbK6.mjs → approveFailIndex-C2BhoVKC.mjs} +1 -1
- package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs} +111 -94
- package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-BjjiwYrm.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs} +139 -122
- package/dist/{edit-DpIovEhA.mjs → edit-B1_IbaHc.mjs} +5007 -5008
- package/dist/{index-C9KO9AZw.mjs → el-message-BBB-S2MS.mjs} +614 -595
- package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
- package/dist/{index-BupW0ufK.mjs → index-vE-TE0cx.mjs} +108 -81
- package/dist/index.mjs +1099 -1046
- package/dist/info-Bm6Ifv7W.mjs +311 -0
- package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-C9AD4DIj.mjs} +1 -1
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs +428 -0
- package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CyAp6rf5.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs} +173 -159
- package/dist/skuForm-Ctu0Vbym.mjs +419 -0
- package/dist/skuTable-BbTTCq2m.mjs +585 -0
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +13 -6
- package/dts/constant.d.ts +4 -0
- package/dts/index.d.ts +2 -0
- package/dts/lang/goods/en.d.ts +1 -68
- package/dts/lang/goods/zh-cn.d.ts +0 -44
- package/dts/utils/sku.d.ts +19 -0
- package/dts/views/goods/goods-spu/{sku-form.vue.d.ts → skuForm.vue.d.ts} +7 -9
- package/dts/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
- package/package.json +2 -2
- package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +0 -544
- package/dist/approvedIndex-Cn6g11xv.mjs +0 -4
- package/dist/index-fu3gxdt_.mjs +0 -130
- package/dist/info-C6VRixBH.mjs +0 -301
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +0 -415
- package/dist/sku-form-BAi4HkUM.mjs +0 -463
- package/dist/sku-table-CRrisvJ1.mjs +0 -410
- package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/sku-table.vue.d.ts +0 -14
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var _ = (o, e, s) => e in o ?
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var _ = (o, e, s) => e in o ? d(o, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[e] = s;
|
|
3
3
|
var t = (o, e, s) => _(o, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { useUserStore as n, clearEmpty as p, request as h, BizDict as
|
|
5
|
-
import { EntryDict as
|
|
6
|
-
import { ref as
|
|
4
|
+
import { useUserStore as n, clearEmpty as p, request as h, BizDict as S, BizLayDict as E, EnumDict as l } from "jmash-core";
|
|
5
|
+
import { EntryDict as v } from "jmash-dict";
|
|
6
|
+
import { ref as g, reactive as m } from "vue";
|
|
7
7
|
class a {
|
|
8
8
|
}
|
|
9
9
|
// 模块
|
|
10
|
-
t(a, "MODULE_GOODS", "goods"), //
|
|
11
|
-
t(a, "
|
|
10
|
+
t(a, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
11
|
+
t(a, "specType", {
|
|
12
|
+
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
13
|
+
//统一规格
|
|
14
|
+
MULTI_SPEC: "MULTI_SPEC"
|
|
15
|
+
//多规格
|
|
16
|
+
}), // 启用禁用
|
|
17
|
+
t(a, "SHELF_VALUES", g([
|
|
12
18
|
{ key: "true", value: "上架" },
|
|
13
19
|
{ key: "false", value: "下架" }
|
|
14
20
|
])), // 运费类型
|
|
@@ -18,7 +24,7 @@ t(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
|
18
24
|
t(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
|
|
19
25
|
t(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
20
26
|
t(a, "approval_not_pass", "APPROVAL_NOT_PASS"), t(a, "approval_pass", "APPROVAL_PASS"), t(a, "approvaling", "APPROVALING");
|
|
21
|
-
class
|
|
27
|
+
class I {
|
|
22
28
|
getKey(e) {
|
|
23
29
|
return {
|
|
24
30
|
shopId: e.shopId
|
|
@@ -34,7 +40,7 @@ class f {
|
|
|
34
40
|
});
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
|
-
const
|
|
43
|
+
const f = new I();
|
|
38
44
|
class y {
|
|
39
45
|
getKey(e) {
|
|
40
46
|
return {
|
|
@@ -56,7 +62,7 @@ class y {
|
|
|
56
62
|
});
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
|
-
const
|
|
65
|
+
const O = new y();
|
|
60
66
|
class L {
|
|
61
67
|
getKey(e) {
|
|
62
68
|
return {
|
|
@@ -73,8 +79,8 @@ class L {
|
|
|
73
79
|
});
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
const
|
|
77
|
-
class
|
|
82
|
+
const P = new L();
|
|
83
|
+
class A {
|
|
78
84
|
getKey(e) {
|
|
79
85
|
return {
|
|
80
86
|
specValueId: e.specValueId
|
|
@@ -90,8 +96,8 @@ class P {
|
|
|
90
96
|
});
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
|
-
const
|
|
94
|
-
class
|
|
99
|
+
const U = new A();
|
|
100
|
+
class D {
|
|
95
101
|
constructor(e, s) {
|
|
96
102
|
t(this, "values", m([]));
|
|
97
103
|
// 查询条件
|
|
@@ -106,11 +112,11 @@ class U {
|
|
|
106
112
|
return "";
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
|
-
class T extends
|
|
115
|
+
class T extends S {
|
|
110
116
|
// 实现 useValues 方法
|
|
111
117
|
useValues() {
|
|
112
118
|
return new Promise((e, s) => {
|
|
113
|
-
|
|
119
|
+
f.findList(this.query).then(({ data: i }) => {
|
|
114
120
|
console.log(i);
|
|
115
121
|
const c = i.results;
|
|
116
122
|
this.values.length = 0, this.values.push(
|
|
@@ -125,21 +131,21 @@ class T extends d {
|
|
|
125
131
|
});
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
|
-
class V extends
|
|
134
|
+
class V extends E {
|
|
129
135
|
// 实现 useValues 方法
|
|
130
136
|
useValues() {
|
|
131
137
|
return new Promise((e, s) => {
|
|
132
|
-
|
|
138
|
+
O.findTreeListApi().then(({ data: i }) => {
|
|
133
139
|
this.values.length = 0, this.values.push(...i.results), e(this.values);
|
|
134
140
|
}).catch(s);
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
143
|
}
|
|
138
|
-
class w extends
|
|
144
|
+
class w extends S {
|
|
139
145
|
// 实现 useValues 方法
|
|
140
146
|
useValues() {
|
|
141
147
|
return new Promise((e, s) => {
|
|
142
|
-
|
|
148
|
+
P.findList(this.query).then(({ data: i }) => {
|
|
143
149
|
console.log(i);
|
|
144
150
|
const c = i.results;
|
|
145
151
|
this.values.length = 0, this.values.push(
|
|
@@ -155,11 +161,11 @@ class w extends d {
|
|
|
155
161
|
});
|
|
156
162
|
}
|
|
157
163
|
}
|
|
158
|
-
class
|
|
164
|
+
class N extends S {
|
|
159
165
|
// 实现 useValues 方法
|
|
160
166
|
useValues() {
|
|
161
167
|
return new Promise((e, s) => {
|
|
162
|
-
|
|
168
|
+
U.findList(this.query).then(({ data: i }) => {
|
|
163
169
|
console.log(i);
|
|
164
170
|
const c = i.results;
|
|
165
171
|
this.values.length = 0, this.values.push(
|
|
@@ -180,15 +186,28 @@ class r {
|
|
|
180
186
|
t(r, "shopInfoBizDict", new T({})), // 商品分类
|
|
181
187
|
t(r, "goodsCategoryDict", new V({})), // 规格列表
|
|
182
188
|
t(r, "specInfoDict", new w({})), // 规格值
|
|
183
|
-
t(r, "specValueDict", new
|
|
184
|
-
t(r, "shelfDict", new
|
|
185
|
-
t(r, "freightTypeEnum", new l(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
t(r, "
|
|
189
|
+
t(r, "specValueDict", new N({})), // 上架下架
|
|
190
|
+
t(r, "shelfDict", new D(a.SHELF_VALUES, {})), // 运费类型
|
|
191
|
+
t(r, "freightTypeEnum", new l(
|
|
192
|
+
a.MODULE_GOODS,
|
|
193
|
+
a.ENUM_FREIGHT_TYPE
|
|
194
|
+
)), // 保障服务
|
|
195
|
+
t(r, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
196
|
+
t(r, "specTypeEnum", new l(
|
|
197
|
+
a.MODULE_GOODS,
|
|
198
|
+
a.ENUM_SPEC_TYPE
|
|
199
|
+
)), // 商品查询枚举
|
|
200
|
+
t(r, "goodsSpuListSortEnum", new l(
|
|
201
|
+
a.MODULE_GOODS,
|
|
202
|
+
a.ENUM_GOODS_SPU_List_SORT
|
|
203
|
+
)), // 审核状态
|
|
204
|
+
t(r, "approvalStatusEnum", new l(
|
|
205
|
+
a.MODULE_GOODS,
|
|
206
|
+
a.ENUM_APPROVAL_STATUS
|
|
207
|
+
));
|
|
190
208
|
export {
|
|
191
209
|
a as C,
|
|
192
210
|
r as D,
|
|
193
|
-
|
|
211
|
+
N as S,
|
|
212
|
+
w as a
|
|
194
213
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { defineComponent as ge, getCurrentInstance as _e, ref as P, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as V, createVNode as l, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as
|
|
1
|
+
import { defineComponent as ge, getCurrentInstance as _e, ref as P, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as V, createVNode as l, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as g, createElementVNode as _, withKeys as Y, createTextVNode as m, toDisplayString as u, withDirectives as y, isRef as K, createCommentVNode as k } from "vue";
|
|
2
2
|
import { useRouter as ve } from "vue-router";
|
|
3
3
|
import { useTableHooks as ye, fileApi as M } from "jmash-core";
|
|
4
4
|
import { useI18n as Se } from "vue-i18n";
|
|
5
|
-
import {
|
|
6
|
-
import { D as b, C as j } from "./index-
|
|
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 {
|
|
12
|
-
/*
|
|
13
|
-
import { Z as I } from "./index-C9KO9AZw.mjs";
|
|
14
|
-
const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-container" }, De = ["onClick"], Re = ["onClick"], ze = ["onClick"], Je = /* @__PURE__ */ ge({
|
|
5
|
+
import { goodsSpuApi as L } from "./index.mjs";
|
|
6
|
+
import { D as b, C as j } from "./index-CZD7OAWo.mjs";
|
|
7
|
+
import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs";
|
|
8
|
+
import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs";
|
|
9
|
+
import { _ as Ve } from "./auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs";
|
|
10
|
+
import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs";
|
|
11
|
+
import { $ as I } from "./el-message-BBB-S2MS.mjs";
|
|
12
|
+
const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Ue = ["onClick"], De = ["onClick"], Re = ["onClick"], Ye = /* @__PURE__ */ ge({
|
|
15
13
|
__name: "index",
|
|
16
|
-
setup(
|
|
17
|
-
const { t: c } = Se(), D = ve(), { proxy: J } = _e(), i = P({}), {
|
|
14
|
+
setup(ze) {
|
|
15
|
+
const { t: c } = Se(), D = ve(), { proxy: J } = _e(), i = P({}), {
|
|
16
|
+
tableHooks: d,
|
|
17
|
+
multipleTableRef: R,
|
|
18
|
+
queryFormRef: G,
|
|
19
|
+
listLoading: W,
|
|
20
|
+
tableData: X,
|
|
21
|
+
total: N
|
|
22
|
+
} = ye(c, L, i);
|
|
18
23
|
let T = P([
|
|
19
24
|
{
|
|
20
25
|
label: "goodsSpu.shopId",
|
|
@@ -114,15 +119,21 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
114
119
|
}
|
|
115
120
|
]);
|
|
116
121
|
b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
|
|
117
|
-
const
|
|
118
|
-
function
|
|
122
|
+
const h = P(0);
|
|
123
|
+
function Z() {
|
|
119
124
|
D.push({ path: "/rawgoods/goods-spu/edit" });
|
|
120
125
|
}
|
|
121
126
|
function x(t) {
|
|
122
|
-
D.push({
|
|
127
|
+
D.push({
|
|
128
|
+
path: "/rawgoods/goods-spu/edit",
|
|
129
|
+
query: { spuId: t.spuId }
|
|
130
|
+
});
|
|
123
131
|
}
|
|
124
132
|
function ee(t) {
|
|
125
|
-
D.push({
|
|
133
|
+
D.push({
|
|
134
|
+
path: "/rawgoods/goods-spu/info",
|
|
135
|
+
query: { spuId: t.spuId }
|
|
136
|
+
});
|
|
126
137
|
}
|
|
127
138
|
function oe(t) {
|
|
128
139
|
d.selectionRows.value = t;
|
|
@@ -140,14 +151,14 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
140
151
|
}
|
|
141
152
|
const a = d.selectionRows.value.map((r) => r.spuId);
|
|
142
153
|
console.log(a), L.enable({ spuId: a }, JSON.parse(t)).then((r) => {
|
|
143
|
-
var
|
|
154
|
+
var f;
|
|
144
155
|
console.log(r), r.status === 200 && (t === "true" ? I({
|
|
145
156
|
message: c("goodsSpu.successShelf") + r.data + c("common.stripData"),
|
|
146
157
|
type: "success"
|
|
147
158
|
}) : I({
|
|
148
159
|
message: c("goodsSpu.successOffShelf") + r.data + c("common.stripData"),
|
|
149
160
|
type: "success"
|
|
150
|
-
}), d.getList(), (
|
|
161
|
+
}), d.getList(), (f = R.value) == null || f.clearSelection());
|
|
151
162
|
});
|
|
152
163
|
}
|
|
153
164
|
function ae(t) {
|
|
@@ -160,49 +171,49 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
160
171
|
}
|
|
161
172
|
const a = d.selectionRows.value.map((r) => r.spuId);
|
|
162
173
|
L.audit({ spuId: a }, t).then((r) => {
|
|
163
|
-
var
|
|
174
|
+
var f;
|
|
164
175
|
console.log(r), r.status === 200 && (t === j.approval_pass ? I({
|
|
165
176
|
message: c("goodsSpu.successApproval") + r.data + c("common.stripData"),
|
|
166
177
|
type: "success"
|
|
167
178
|
}) : I({
|
|
168
179
|
message: c("goodsSpu.successFilled") + r.data + c("common.stripData"),
|
|
169
180
|
type: "success"
|
|
170
|
-
}), d.getList(), (
|
|
181
|
+
}), d.getList(), (f = R.value) == null || f.clearSelection());
|
|
171
182
|
});
|
|
172
183
|
}
|
|
173
184
|
function se(t) {
|
|
174
|
-
|
|
185
|
+
h.value = Number(t.index);
|
|
175
186
|
}
|
|
176
187
|
return d.getList(), (t, a) => {
|
|
177
|
-
const r = n("jmash-select"),
|
|
178
|
-
return p(), V("div",
|
|
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"), ne = 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"), ue = n("jmash-column-select"), de = n("el-image"), Q = n("el-switch"), pe = n("jmash-table"), re = n("jmash-pagination"), me = n("el-card"), ie = n("el-tab-pane"), ce = n("el-tabs"), v = he("hasPerm");
|
|
189
|
+
return p(), V("div", Ie, [
|
|
179
190
|
l(ce, {
|
|
180
|
-
modelValue:
|
|
181
|
-
"onUpdate:modelValue": a[13] || (a[13] = (z) =>
|
|
191
|
+
modelValue: h.value,
|
|
192
|
+
"onUpdate:modelValue": a[13] || (a[13] = (z) => h.value = z),
|
|
182
193
|
type: "border-card",
|
|
183
194
|
onTabClick: se
|
|
184
195
|
}, {
|
|
185
196
|
default: o(() => [
|
|
186
|
-
(p(!0), V(we, null, be(s(b).goodsSpuListSortEnum.values, (z, fe) => (p(),
|
|
197
|
+
(p(!0), V(we, null, be(s(b).goodsSpuListSortEnum.values, (z, fe) => (p(), g(ie, {
|
|
187
198
|
label: z.value,
|
|
188
199
|
name: fe
|
|
189
200
|
}, {
|
|
190
201
|
default: o(() => [
|
|
191
|
-
|
|
192
|
-
|
|
202
|
+
h.value === 0 ? (p(), V("div", Te, [
|
|
203
|
+
_("div", Ne, [
|
|
193
204
|
l(ne, {
|
|
194
205
|
ref_for: !0,
|
|
195
206
|
ref_key: "queryFormRef",
|
|
196
|
-
ref:
|
|
207
|
+
ref: G,
|
|
197
208
|
model: i.value,
|
|
198
209
|
inline: !0
|
|
199
210
|
}, {
|
|
200
211
|
default: o(() => [
|
|
201
212
|
l(A, null, {
|
|
202
213
|
default: o(() => [
|
|
203
|
-
l(
|
|
214
|
+
l(S, { span: 6 }, {
|
|
204
215
|
default: o(() => [
|
|
205
|
-
l(
|
|
216
|
+
l(f, {
|
|
206
217
|
label: t.$t("goodsSpu.shopId"),
|
|
207
218
|
prop: "shopId"
|
|
208
219
|
}, {
|
|
@@ -220,9 +231,9 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
220
231
|
]),
|
|
221
232
|
_: 1
|
|
222
233
|
}),
|
|
223
|
-
l(
|
|
234
|
+
l(S, { span: 6 }, {
|
|
224
235
|
default: o(() => [
|
|
225
|
-
l(
|
|
236
|
+
l(f, {
|
|
226
237
|
label: t.$t("goodsSpu.spuCode"),
|
|
227
238
|
prop: "spuCode"
|
|
228
239
|
}, {
|
|
@@ -240,9 +251,9 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
240
251
|
]),
|
|
241
252
|
_: 1
|
|
242
253
|
}),
|
|
243
|
-
l(
|
|
254
|
+
l(S, { span: 6 }, {
|
|
244
255
|
default: o(() => [
|
|
245
|
-
l(
|
|
256
|
+
l(f, {
|
|
246
257
|
label: t.$t("goodsSpu.spuName"),
|
|
247
258
|
prop: "spuName"
|
|
248
259
|
}, {
|
|
@@ -260,11 +271,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
260
271
|
]),
|
|
261
272
|
_: 1
|
|
262
273
|
}),
|
|
263
|
-
l(
|
|
274
|
+
l(S, { span: 6 }, {
|
|
264
275
|
default: o(() => [
|
|
265
|
-
l(
|
|
276
|
+
l(f, { class: "search-btn" }, {
|
|
266
277
|
default: o(() => [
|
|
267
|
-
l(
|
|
278
|
+
l(C, {
|
|
268
279
|
type: "primary",
|
|
269
280
|
onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
|
|
270
281
|
}, {
|
|
@@ -273,7 +284,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
273
284
|
]),
|
|
274
285
|
_: 1
|
|
275
286
|
}),
|
|
276
|
-
l(
|
|
287
|
+
l(C, {
|
|
277
288
|
onClick: a[6] || (a[6] = (e) => s(d).resetQuery())
|
|
278
289
|
}, {
|
|
279
290
|
default: o(() => [
|
|
@@ -301,11 +312,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
301
312
|
header: o(() => [
|
|
302
313
|
l(A, null, {
|
|
303
314
|
default: o(() => [
|
|
304
|
-
l(
|
|
315
|
+
l(S, { span: 17 }, {
|
|
305
316
|
default: o(() => [
|
|
306
|
-
y((p(),
|
|
317
|
+
y((p(), g(C, {
|
|
307
318
|
type: "primary",
|
|
308
|
-
onClick:
|
|
319
|
+
onClick: Z
|
|
309
320
|
}, {
|
|
310
321
|
default: o(() => [
|
|
311
322
|
m(u(t.$t("common.add")), 1)
|
|
@@ -314,7 +325,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
314
325
|
})), [
|
|
315
326
|
[v, ["goods:goods_spu:add"]]
|
|
316
327
|
]),
|
|
317
|
-
y((p(),
|
|
328
|
+
y((p(), g(C, {
|
|
318
329
|
type: "primary",
|
|
319
330
|
onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
|
|
320
331
|
}, {
|
|
@@ -325,7 +336,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
325
336
|
})), [
|
|
326
337
|
[v, ["goods:goods_spu:delete"]]
|
|
327
338
|
]),
|
|
328
|
-
y((p(),
|
|
339
|
+
y((p(), g(O, {
|
|
329
340
|
class: "dropdown-left",
|
|
330
341
|
onCommand: te
|
|
331
342
|
}, {
|
|
@@ -334,7 +345,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
334
345
|
default: o(() => [
|
|
335
346
|
l(U, { command: "true" }, {
|
|
336
347
|
default: o(() => [
|
|
337
|
-
l(
|
|
348
|
+
l($, { size: "14" }, {
|
|
338
349
|
default: o(() => [
|
|
339
350
|
l(B)
|
|
340
351
|
]),
|
|
@@ -346,7 +357,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
346
357
|
}),
|
|
347
358
|
l(U, { command: "false" }, {
|
|
348
359
|
default: o(() => [
|
|
349
|
-
l(
|
|
360
|
+
l($, { size: "14" }, {
|
|
350
361
|
default: o(() => [
|
|
351
362
|
l(F)
|
|
352
363
|
]),
|
|
@@ -361,10 +372,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
361
372
|
})
|
|
362
373
|
]),
|
|
363
374
|
default: o(() => [
|
|
364
|
-
l(
|
|
375
|
+
l(C, { type: "primary" }, {
|
|
365
376
|
default: o(() => [
|
|
366
377
|
m(u(t.$t("goodsSpu.batchShelf")) + "/" + u(t.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
367
|
-
l(
|
|
378
|
+
l($, { class: "el-icon--right" }, {
|
|
368
379
|
default: o(() => [
|
|
369
380
|
l(q)
|
|
370
381
|
]),
|
|
@@ -378,7 +389,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
378
389
|
})), [
|
|
379
390
|
[v, ["goods:goods_spu:onSale"]]
|
|
380
391
|
]),
|
|
381
|
-
y((p(),
|
|
392
|
+
y((p(), g(O, {
|
|
382
393
|
class: "dropdown-left",
|
|
383
394
|
onCommand: ae
|
|
384
395
|
}, {
|
|
@@ -389,7 +400,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
389
400
|
command: s(j).approval_pass
|
|
390
401
|
}, {
|
|
391
402
|
default: o(() => [
|
|
392
|
-
l(
|
|
403
|
+
l($, { size: "14" }, {
|
|
393
404
|
default: o(() => [
|
|
394
405
|
l(B)
|
|
395
406
|
]),
|
|
@@ -403,7 +414,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
403
414
|
command: s(j).approval_not_pass
|
|
404
415
|
}, {
|
|
405
416
|
default: o(() => [
|
|
406
|
-
l(
|
|
417
|
+
l($, { size: "14" }, {
|
|
407
418
|
default: o(() => [
|
|
408
419
|
l(F)
|
|
409
420
|
]),
|
|
@@ -418,10 +429,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
418
429
|
})
|
|
419
430
|
]),
|
|
420
431
|
default: o(() => [
|
|
421
|
-
l(
|
|
432
|
+
l(C, { type: "primary" }, {
|
|
422
433
|
default: o(() => [
|
|
423
434
|
m(u(t.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
424
|
-
l(
|
|
435
|
+
l($, { class: "el-icon--right" }, {
|
|
425
436
|
default: o(() => [
|
|
426
437
|
l(q)
|
|
427
438
|
]),
|
|
@@ -438,7 +449,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
438
449
|
]),
|
|
439
450
|
_: 1
|
|
440
451
|
}),
|
|
441
|
-
l(
|
|
452
|
+
l(S, {
|
|
442
453
|
span: 7,
|
|
443
454
|
class: "container-float"
|
|
444
455
|
}, {
|
|
@@ -456,7 +467,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
456
467
|
})
|
|
457
468
|
]),
|
|
458
469
|
footer: o(() => [
|
|
459
|
-
s(N) > 0 ? (p(),
|
|
470
|
+
s(N) > 0 ? (p(), g(re, {
|
|
460
471
|
key: 0,
|
|
461
472
|
total: s(N),
|
|
462
473
|
"onUpdate:total": a[9] || (a[9] = (e) => K(N) ? N.value = e : null),
|
|
@@ -465,7 +476,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
465
476
|
"page-size": i.value.pageSize,
|
|
466
477
|
"onUpdate:pageSize": a[11] || (a[11] = (e) => i.value.pageSize = e),
|
|
467
478
|
onPagination: a[12] || (a[12] = (e) => s(d).getList())
|
|
468
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
479
|
+
}, null, 8, ["total", "current-page", "page-size"])) : k("", !0)
|
|
469
480
|
]),
|
|
470
481
|
default: o(() => [
|
|
471
482
|
l(pe, {
|
|
@@ -473,23 +484,29 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
473
484
|
ref_key: "multipleTableRef",
|
|
474
485
|
ref: R,
|
|
475
486
|
"row-key": "spuId",
|
|
476
|
-
"list-loading": s(
|
|
477
|
-
data: s(
|
|
487
|
+
"list-loading": s(W),
|
|
488
|
+
data: s(X),
|
|
478
489
|
"table-label": s(T),
|
|
479
490
|
onSelectionChange: oe,
|
|
480
491
|
onSortChange: le
|
|
481
492
|
}, {
|
|
482
493
|
shopId: o((e) => [
|
|
483
|
-
|
|
494
|
+
_("span", null, u(s(b).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
484
495
|
]),
|
|
485
496
|
categoryId: o((e) => [
|
|
486
|
-
|
|
497
|
+
_("span", null, u(s(b).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
487
498
|
]),
|
|
488
499
|
picUrls: o((e) => [
|
|
489
|
-
|
|
500
|
+
_("span", null, [
|
|
490
501
|
l(de, {
|
|
491
|
-
src: s(M).imageUrl(
|
|
492
|
-
|
|
502
|
+
src: s(M).imageUrl(
|
|
503
|
+
e.data.row.picUrls.split(",")[0],
|
|
504
|
+
50,
|
|
505
|
+
50
|
|
506
|
+
),
|
|
507
|
+
"preview-src-list": [
|
|
508
|
+
s(M).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
509
|
+
],
|
|
493
510
|
"preview-teleported": "",
|
|
494
511
|
"hide-on-click-modal": "",
|
|
495
512
|
fit: "contain"
|
|
@@ -497,31 +514,42 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
497
514
|
])
|
|
498
515
|
]),
|
|
499
516
|
shelf: o((e) => [
|
|
500
|
-
|
|
517
|
+
_("span", null, [
|
|
501
518
|
l(Q, {
|
|
502
519
|
modelValue: e.data.row.shelf,
|
|
503
520
|
"onUpdate:modelValue": (w) => e.data.row.shelf = w,
|
|
504
|
-
onClick: (w) => s(d).enableRecord(
|
|
521
|
+
onClick: (w) => s(d).enableRecord(
|
|
522
|
+
e.data.row,
|
|
523
|
+
e.data.row.shelf
|
|
524
|
+
)
|
|
505
525
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
506
526
|
])
|
|
507
527
|
]),
|
|
508
528
|
minPrice: o((e) => [
|
|
509
|
-
|
|
529
|
+
_("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
510
530
|
]),
|
|
511
531
|
specType: o((e) => [
|
|
512
|
-
|
|
532
|
+
_("span", null, u(s(b).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
513
533
|
]),
|
|
514
534
|
approvalStatus: o((e) => [
|
|
515
|
-
|
|
535
|
+
_("span", null, u(s(b).approvalStatusEnum.getEnumValue(
|
|
536
|
+
e.data.row.approvalStatus
|
|
537
|
+
)), 1)
|
|
516
538
|
]),
|
|
517
539
|
updateTime: o((e) => [
|
|
518
|
-
|
|
540
|
+
_("span", null, u(s(J).$moment.formatDate(
|
|
541
|
+
e.data.row.updateTime,
|
|
542
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
543
|
+
)), 1)
|
|
519
544
|
]),
|
|
520
545
|
enable: o((e) => [
|
|
521
546
|
l(Q, {
|
|
522
547
|
modelValue: e.data.row.enable,
|
|
523
548
|
"onUpdate:modelValue": (w) => e.data.row.enable = w,
|
|
524
|
-
onChange: (w) => s(d).enableRecord(
|
|
549
|
+
onChange: (w) => s(d).enableRecord(
|
|
550
|
+
e.data.row,
|
|
551
|
+
e.data.row.enable
|
|
552
|
+
)
|
|
525
553
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
526
554
|
]),
|
|
527
555
|
operation: o((e) => [
|
|
@@ -530,7 +558,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
530
558
|
onClick: (w) => x(e.data.row)
|
|
531
559
|
}, [
|
|
532
560
|
m(u(t.$t("common.edit")), 1)
|
|
533
|
-
], 8,
|
|
561
|
+
], 8, Ue)), [
|
|
534
562
|
[v, ["goods:goods_spu:update"]]
|
|
535
563
|
]),
|
|
536
564
|
y((p(), V("span", {
|
|
@@ -538,7 +566,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
538
566
|
onClick: (w) => s(d).deleteRecord(e.data.row)
|
|
539
567
|
}, [
|
|
540
568
|
m(u(t.$t("common.delete")), 1)
|
|
541
|
-
], 8,
|
|
569
|
+
], 8, De)), [
|
|
542
570
|
[v, ["goods:goods_spu:delete"]]
|
|
543
571
|
]),
|
|
544
572
|
y((p(), V("span", {
|
|
@@ -546,7 +574,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
546
574
|
onClick: (w) => ee(e.data.row)
|
|
547
575
|
}, [
|
|
548
576
|
m(u(t.$t("common.view")), 1)
|
|
549
|
-
], 8,
|
|
577
|
+
], 8, Re)), [
|
|
550
578
|
[v, ["goods:goods_spu:view"]]
|
|
551
579
|
])
|
|
552
580
|
]),
|
|
@@ -555,12 +583,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
555
583
|
]),
|
|
556
584
|
_: 1
|
|
557
585
|
})
|
|
558
|
-
])) :
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
_.value === 5 ? (p(), f(Ie, { key: 5 })) : S("", !0)
|
|
586
|
+
])) : k("", !0),
|
|
587
|
+
h.value === 1 ? (p(), g(Ce, { key: 1 })) : k("", !0),
|
|
588
|
+
h.value === 2 ? (p(), g($e, { key: 2 })) : k("", !0),
|
|
589
|
+
h.value === 3 ? (p(), g(Ve, { key: 3 })) : k("", !0),
|
|
590
|
+
h.value === 4 ? (p(), g(ke, { key: 4 })) : k("", !0)
|
|
564
591
|
]),
|
|
565
592
|
_: 2
|
|
566
593
|
}, 1032, ["label", "name"]))), 256))
|
|
@@ -572,5 +599,5 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Ue = { class: "search-co
|
|
|
572
599
|
}
|
|
573
600
|
});
|
|
574
601
|
export {
|
|
575
|
-
|
|
602
|
+
Ye as default
|
|
576
603
|
};
|