xyvcard-goods 0.0.32 → 0.0.33
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/README.md +51 -51
- package/dist/GoodsBaseForm-6rzBkBTh.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +374 -0
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +10 -0
- package/dist/GoodsSpecForm-BqaN71rS.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +140 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-DnKLaz3I.mjs +45 -0
- package/dist/edit copy-tfwJCdiV.mjs +526 -0
- package/dist/{edit-CyhVo22f.mjs → edit-1Lv_dvlq.mjs} +7 -7
- package/dist/{edit-CuGiM5xu.mjs → edit-CZwlbL9o.mjs} +9 -9
- package/dist/{edit-DvO1wYIL.mjs → edit-D2zcGl_U.mjs} +1 -1
- package/dist/{edit-Bh5jT6eo.mjs → edit-DBTNknBy.mjs} +4 -4
- package/dist/{edit-BlQj1xVR.mjs → edit-Db2EJ9dq.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs} +3 -3
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BXa-atkT.mjs} +1 -1
- package/dist/{index-8JQB4NmH.mjs → index-BhUD_X30.mjs} +281 -250
- package/dist/{index-Dz9NSJh1.mjs → index-BpXZNA11.mjs} +3 -3
- package/dist/{index-BlZupHNB.mjs → index-CRfiEzkA.mjs} +1488 -1477
- package/dist/{index-CVM7nBhM.mjs → index-Cl4wz2yF.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-DGYGNHfx.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-DXIGHcIv.mjs} +2 -2
- package/dist/index-Df-F10aZ.mjs +264 -0
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-NFU_3fNY.mjs → info-DDi6GKQH.mjs} +3 -3
- package/dist/{info-CLt9Ea38.mjs → info-DfbU-CWk.mjs} +2 -2
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-DWIoveRP.mjs} +14 -14
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DoIpxDvq.mjs} +71 -86
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-BVBtWrf9.mjs} +13 -13
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/package.json +63 -63
- package/dist/index-B7_M6fAN.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as L, reactive as R, onActivated as Z, resolveComponent as s, resolveDirective as x, createElementBlock as V, openBlock as u, createElementVNode as $, createVNode as l, createBlock as k, createCommentVNode as S, withCtx as t, withKeys as ee, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, isRef as D } from "vue";
|
|
2
2
|
import { useTableHooks as oe } from "jmash-core";
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
|
-
import { b as te } from "./index-
|
|
5
|
-
import ae from "./edit-
|
|
6
|
-
import { D as ne } from "./index-
|
|
4
|
+
import { b as te } from "./index-CRfiEzkA.mjs";
|
|
5
|
+
import ae from "./edit-1Lv_dvlq.mjs";
|
|
6
|
+
import { D as ne } from "./index-Df-F10aZ.mjs";
|
|
7
7
|
const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ue) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as d, resolveDirective as oe, createElementBlock as V, openBlock as u, createElementVNode as I, createVNode as t, createBlock as h, createCommentVNode as R, withCtx as l, withKeys as te, unref as a, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as S } from "vue";
|
|
2
2
|
import { useTableHooks as le, fileApi as T } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import { g as ae } from "./index-
|
|
5
|
-
import de from "./edit-
|
|
6
|
-
import { D as re } from "./index-
|
|
4
|
+
import { g as ae } from "./index-BXa-atkT.mjs";
|
|
5
|
+
import de from "./edit-CZwlbL9o.mjs";
|
|
6
|
+
import { D as re } from "./index-Df-F10aZ.mjs";
|
|
7
7
|
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(pe) {
|
|
@@ -3,8 +3,8 @@ import { useRoute as he, useRouter as _e } from "vue-router";
|
|
|
3
3
|
import { ElMessage as U } from "element-plus";
|
|
4
4
|
import { useI18n as we } from "vue-i18n";
|
|
5
5
|
import { useTableHooks as Se, fileApi as F } from "jmash-core";
|
|
6
|
-
import { D as c, C as Ce } from "./index-
|
|
7
|
-
import { a as E } from "./index-
|
|
6
|
+
import { D as c, C as Ce } from "./index-Df-F10aZ.mjs";
|
|
7
|
+
import { a as E } from "./index-CRfiEzkA.mjs";
|
|
8
8
|
const ke = { class: "app-container" }, Ve = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "app-container"
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var h = (u, t, a) => t in u ? p(u, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : u[t] = a;
|
|
3
|
+
var s = (u, t, a) => h(u, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { BizDict as S, BizLayDict as d, EnumDict as c } from "jmash-core";
|
|
5
|
+
import { EntryDict as L } from "jmash-dict";
|
|
6
|
+
import { ref as E, reactive as O } from "vue";
|
|
7
|
+
import { specValueApi as P, infoApi as y, specInfoApi as v } from "xyvcard-shop";
|
|
8
|
+
import { g as A, b as D, a as T } from "./index-CRfiEzkA.mjs";
|
|
9
|
+
import { g as U } from "./index-BXa-atkT.mjs";
|
|
10
|
+
class e {
|
|
11
|
+
}
|
|
12
|
+
// 模块
|
|
13
|
+
s(e, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
14
|
+
s(e, "SPEC_TYPE", {
|
|
15
|
+
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
16
|
+
//统一规格
|
|
17
|
+
MULTI_SPEC: "MULTI_SPEC"
|
|
18
|
+
//多规格
|
|
19
|
+
}), // 启用禁用
|
|
20
|
+
s(e, "SHELF_VALUES", E([
|
|
21
|
+
{ key: !0, value: "上架" },
|
|
22
|
+
{ key: !1, value: "下架" }
|
|
23
|
+
])), // 运费类型
|
|
24
|
+
s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
25
|
+
s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
26
|
+
s(e, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
27
|
+
s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), s(e, "GOODS_SPU_VALUES", E([
|
|
28
|
+
{ key: "goods_all", value: "全部商品" },
|
|
29
|
+
{ key: "goods_sale", value: "已上架" },
|
|
30
|
+
{ key: "goods_shelf", value: "待上架" },
|
|
31
|
+
{ key: "goods_audit", value: "审核中" },
|
|
32
|
+
{ key: "goods_notpass", value: "审核驳回" }
|
|
33
|
+
])), // 审核状态
|
|
34
|
+
s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
35
|
+
s(e, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(e, "APPROVAL_PASS", "APPROVAL_PASS"), s(e, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
36
|
+
s(e, "ENABLE_VALUES", E([
|
|
37
|
+
{ key: "true", value: "启用" },
|
|
38
|
+
{ key: "false", value: "禁用" }
|
|
39
|
+
])), // 商品类型
|
|
40
|
+
s(e, "GOODS_TYPE", {
|
|
41
|
+
NORMAL: "normal",
|
|
42
|
+
GROUP: "group"
|
|
43
|
+
}), // 商品品类
|
|
44
|
+
s(e, "GOODS_SUP_CLASS", "xyvcard.goods.protobuf.SupClass"), // 商品品类.
|
|
45
|
+
s(e, "GOODS_SUP_CLASS_VALUES", {
|
|
46
|
+
GOODS_TYPE_REAL: "GOODS_TYPE_REAL",
|
|
47
|
+
// 实物类商品
|
|
48
|
+
GOODS_TYPE_VIRTUAL: "GOODS_TYPE_VIRTUAL",
|
|
49
|
+
// 虚拟类商品
|
|
50
|
+
GOODS_TYPE_LIFE: "GOODS_TYPE_LIFE"
|
|
51
|
+
// 生活服务类
|
|
52
|
+
}), // 是或否
|
|
53
|
+
s(e, "YES_OR_NO", E([
|
|
54
|
+
{ key: !0, value: "是" },
|
|
55
|
+
{ key: !1, value: "否" }
|
|
56
|
+
])), // tab栏
|
|
57
|
+
s(e, "TAB_ENUM", O([
|
|
58
|
+
{ key: "GoodsBaseForm", value: "商品基本信息" },
|
|
59
|
+
{ key: "GoodsSpecForm", value: "规格与定价" },
|
|
60
|
+
{ key: "GoodsLogisticsForm", value: "物流设置" }
|
|
61
|
+
])), // 预售类型
|
|
62
|
+
s(e, "GOODS_PRESALE_TYPE", "xyvcard.goods.protobuf.PresaleType"), // 预售类型.
|
|
63
|
+
s(e, "GOODS_PRESALE_TYPE_VALUES", {
|
|
64
|
+
NONE: "NONE",
|
|
65
|
+
// 无预售
|
|
66
|
+
DEPOSIT: "DEPOSIT",
|
|
67
|
+
// 定金预售(不退)
|
|
68
|
+
DEPOSIT_RETURN: "DEPOSIT_RETURN"
|
|
69
|
+
// 订金预售(可退)
|
|
70
|
+
});
|
|
71
|
+
function n(u, t, a) {
|
|
72
|
+
return !Array.isArray(u) || u.length === 0 ? [] : u.map((r) => {
|
|
73
|
+
let i = [];
|
|
74
|
+
return Array.isArray(r.children) && r.children.length > 0 && (i = n(r.children, t, a)), {
|
|
75
|
+
value: r[a],
|
|
76
|
+
label: r[t],
|
|
77
|
+
parentId: r.parentId,
|
|
78
|
+
children: i
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
class _ {
|
|
83
|
+
constructor(t, a) {
|
|
84
|
+
s(this, "values", O([]));
|
|
85
|
+
// 查询条件
|
|
86
|
+
s(this, "query");
|
|
87
|
+
this.values.length = 0, this.values.push(...t.value), this.query = a;
|
|
88
|
+
}
|
|
89
|
+
// 根据给定键获取业务数据项的值的方法
|
|
90
|
+
getValue(t) {
|
|
91
|
+
for (const a of this.values)
|
|
92
|
+
if (a.key == t)
|
|
93
|
+
return a.value;
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
class g extends S {
|
|
98
|
+
// 实现 useValues 方法
|
|
99
|
+
useValues() {
|
|
100
|
+
return new Promise((t, a) => {
|
|
101
|
+
y.findList(this.query).then(({ data: o }) => {
|
|
102
|
+
const r = o.results;
|
|
103
|
+
this.values.length = 0, this.values.push(
|
|
104
|
+
...r.map(
|
|
105
|
+
(i) => ({
|
|
106
|
+
key: i.shopId,
|
|
107
|
+
value: i.shopName
|
|
108
|
+
})
|
|
109
|
+
)
|
|
110
|
+
), t(this.values);
|
|
111
|
+
}).catch(a);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
class f extends d {
|
|
116
|
+
// 实现 useValues 方法
|
|
117
|
+
useValues() {
|
|
118
|
+
return new Promise((t, a) => {
|
|
119
|
+
A.findTreeListApi(this.query).then(({ data: o }) => {
|
|
120
|
+
this.values.length = 0, this.values.push(...n(o.results, "label", "value")), t(this.values);
|
|
121
|
+
}).catch(a);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
class m extends S {
|
|
126
|
+
// 实现 useValues 方法
|
|
127
|
+
useValues() {
|
|
128
|
+
return new Promise((t, a) => {
|
|
129
|
+
v.findList(this.query).then(({ data: o }) => {
|
|
130
|
+
const r = o.results;
|
|
131
|
+
this.values.length = 0, this.values.push(
|
|
132
|
+
...r.map(
|
|
133
|
+
(i) => ({
|
|
134
|
+
key: i.specId,
|
|
135
|
+
value: i.specName,
|
|
136
|
+
disabled: i.disabled
|
|
137
|
+
})
|
|
138
|
+
)
|
|
139
|
+
), t(this.values);
|
|
140
|
+
}).catch(a);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class G extends S {
|
|
145
|
+
// 实现 useValues 方法
|
|
146
|
+
useValues() {
|
|
147
|
+
return new Promise((t, a) => {
|
|
148
|
+
P.findList(this.query).then(({ data: o }) => {
|
|
149
|
+
const r = o.results;
|
|
150
|
+
this.values.length = 0, this.values.push(
|
|
151
|
+
...r.map(
|
|
152
|
+
(i) => ({
|
|
153
|
+
key: i.specValueId,
|
|
154
|
+
value: i.valueName
|
|
155
|
+
})
|
|
156
|
+
)
|
|
157
|
+
), t(this.values);
|
|
158
|
+
}).catch(a);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class I extends S {
|
|
163
|
+
// 实现 useValues 方法
|
|
164
|
+
useValues() {
|
|
165
|
+
return new Promise((t, a) => {
|
|
166
|
+
U.findList(this.query).then(({ data: o }) => {
|
|
167
|
+
const r = o.results;
|
|
168
|
+
this.values.length = 0, this.values.push(
|
|
169
|
+
...r.map(
|
|
170
|
+
(i) => ({
|
|
171
|
+
key: i.brandId,
|
|
172
|
+
value: i.brandName
|
|
173
|
+
})
|
|
174
|
+
)
|
|
175
|
+
), t(this.values);
|
|
176
|
+
}).catch(a);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class N extends S {
|
|
181
|
+
// 实现 useValues 方法
|
|
182
|
+
useValues() {
|
|
183
|
+
return new Promise((t, a) => {
|
|
184
|
+
D.findList(this.query).then(({ data: o }) => {
|
|
185
|
+
const r = o.results;
|
|
186
|
+
this.values.length = 0, this.values.push(
|
|
187
|
+
...r.map(
|
|
188
|
+
(i) => ({
|
|
189
|
+
key: i.labelId,
|
|
190
|
+
value: i.labelName
|
|
191
|
+
})
|
|
192
|
+
)
|
|
193
|
+
), t(this.values);
|
|
194
|
+
}).catch(a);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class V extends S {
|
|
199
|
+
// 实现 useValues 方法
|
|
200
|
+
useValues() {
|
|
201
|
+
return new Promise((t, a) => {
|
|
202
|
+
T.findList(this.query).then(({ data: o }) => {
|
|
203
|
+
const r = o.results;
|
|
204
|
+
this.values.length = 0, this.values.push(
|
|
205
|
+
...r.map(
|
|
206
|
+
(i) => ({
|
|
207
|
+
key: i.spuId,
|
|
208
|
+
value: i.spuName
|
|
209
|
+
})
|
|
210
|
+
)
|
|
211
|
+
), t(this.values);
|
|
212
|
+
}).catch(a);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
class l {
|
|
217
|
+
}
|
|
218
|
+
// 店铺列表
|
|
219
|
+
s(l, "shopInfoBizDict", new g({})), // 规格列表
|
|
220
|
+
s(l, "specInfoDict", new m({})), // 规格值
|
|
221
|
+
s(l, "specValueDict", new G({})), // 上架下架
|
|
222
|
+
s(l, "shelfDict", new _(e.SHELF_VALUES, {})), // 运费类型
|
|
223
|
+
s(l, "freightTypeEnum", new c(
|
|
224
|
+
e.MODULE_GOODS,
|
|
225
|
+
e.ENUM_FREIGHT_TYPE
|
|
226
|
+
)), // 保障服务
|
|
227
|
+
s(l, "goodsEnsureDict", new L(e.DICT_GOODS_ENSURE)), // 规格类型
|
|
228
|
+
s(l, "specTypeEnum", new c(
|
|
229
|
+
e.MODULE_GOODS,
|
|
230
|
+
e.ENUM_SPEC_TYPE
|
|
231
|
+
)), // 商品查询枚举
|
|
232
|
+
s(l, "goodsSpuListSortEnum", new c(
|
|
233
|
+
e.MODULE_GOODS,
|
|
234
|
+
e.ENUM_GOODS_SPU_List_SORT
|
|
235
|
+
)), s(l, "goodsSpuListSortDict", new _(
|
|
236
|
+
e.GOODS_SPU_VALUES,
|
|
237
|
+
{}
|
|
238
|
+
)), // 审核状态
|
|
239
|
+
s(l, "approvalStatusEnum", new c(
|
|
240
|
+
e.MODULE_GOODS,
|
|
241
|
+
e.ENUM_APPROVAL_STATUS
|
|
242
|
+
)), // 启用禁用
|
|
243
|
+
s(l, "enableDict", new _(e.ENABLE_VALUES, {})), // 商品分类
|
|
244
|
+
s(l, "goodsCategoryListBizLayDict", new f(
|
|
245
|
+
{}
|
|
246
|
+
)), // 品牌列表
|
|
247
|
+
s(l, "brandListBizDict", new I({})), // 标签列表
|
|
248
|
+
s(l, "labelListBizDict", new N({})), // 商品列表
|
|
249
|
+
s(l, "goodsSpuBizDict", new V({})), // 商品品类
|
|
250
|
+
s(l, "goodsSupClassEnum", new c(
|
|
251
|
+
e.MODULE_GOODS,
|
|
252
|
+
e.GOODS_SUP_CLASS
|
|
253
|
+
)), // 是或否
|
|
254
|
+
s(l, "yesOrNoEnum", new _(e.YES_OR_NO, {})), // 预售类型
|
|
255
|
+
s(l, "presaleTypeEnum", new c(
|
|
256
|
+
e.MODULE_GOODS,
|
|
257
|
+
e.GOODS_PRESALE_TYPE
|
|
258
|
+
));
|
|
259
|
+
export {
|
|
260
|
+
e as C,
|
|
261
|
+
l as D,
|
|
262
|
+
G as S,
|
|
263
|
+
m as a
|
|
264
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent as e, createElementBlock as l, openBlock as a, createElementVNode as s } from "vue";
|
|
2
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
3
|
+
var t = /* @__PURE__ */ e({
|
|
4
|
+
name: "CircleCloseFilled",
|
|
5
|
+
__name: "circle-close-filled",
|
|
6
|
+
setup(r) {
|
|
7
|
+
return (_, c) => (a(), l("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 1024 1024"
|
|
10
|
+
}, [
|
|
11
|
+
s("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
14
|
+
})
|
|
15
|
+
]));
|
|
16
|
+
}
|
|
17
|
+
}), f = t, n = /* @__PURE__ */ e({
|
|
18
|
+
name: "Close",
|
|
19
|
+
__name: "close",
|
|
20
|
+
setup(r) {
|
|
21
|
+
return (_, c) => (a(), l("svg", {
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
viewBox: "0 0 1024 1024"
|
|
24
|
+
}, [
|
|
25
|
+
s("path", {
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
28
|
+
})
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
}), u = n, o = /* @__PURE__ */ e({
|
|
32
|
+
name: "InfoFilled",
|
|
33
|
+
__name: "info-filled",
|
|
34
|
+
setup(r) {
|
|
35
|
+
return (_, c) => (a(), l("svg", {
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
viewBox: "0 0 1024 1024"
|
|
38
|
+
}, [
|
|
39
|
+
s("path", {
|
|
40
|
+
fill: "currentColor",
|
|
41
|
+
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
42
|
+
})
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
}), d = o, i = /* @__PURE__ */ e({
|
|
46
|
+
name: "Plus",
|
|
47
|
+
__name: "plus",
|
|
48
|
+
setup(r) {
|
|
49
|
+
return (_, c) => (a(), l("svg", {
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
viewBox: "0 0 1024 1024"
|
|
52
|
+
}, [
|
|
53
|
+
s("path", {
|
|
54
|
+
fill: "currentColor",
|
|
55
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
56
|
+
})
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
}), v = i, p = /* @__PURE__ */ e({
|
|
60
|
+
name: "SuccessFilled",
|
|
61
|
+
__name: "success-filled",
|
|
62
|
+
setup(r) {
|
|
63
|
+
return (_, c) => (a(), l("svg", {
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
viewBox: "0 0 1024 1024"
|
|
66
|
+
}, [
|
|
67
|
+
s("path", {
|
|
68
|
+
fill: "currentColor",
|
|
69
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
70
|
+
})
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
}), g = p, m = /* @__PURE__ */ e({
|
|
74
|
+
name: "WarningFilled",
|
|
75
|
+
__name: "warning-filled",
|
|
76
|
+
setup(r) {
|
|
77
|
+
return (_, c) => (a(), l("svg", {
|
|
78
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
+
viewBox: "0 0 1024 1024"
|
|
80
|
+
}, [
|
|
81
|
+
s("path", {
|
|
82
|
+
fill: "currentColor",
|
|
83
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
84
|
+
})
|
|
85
|
+
]));
|
|
86
|
+
}
|
|
87
|
+
}), h = m;
|
|
88
|
+
export {
|
|
89
|
+
u as a,
|
|
90
|
+
f as c,
|
|
91
|
+
d as i,
|
|
92
|
+
v as p,
|
|
93
|
+
g as s,
|
|
94
|
+
h as w
|
|
95
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as S, createCommentVNode as B, createTextVNode as n, toDisplayString as s, Fragment as L, renderList as I, unref as _ } from "vue";
|
|
2
2
|
import { fileApi as w, routerUtil as F } from "jmash-core";
|
|
3
3
|
import { useRouter as H, useRoute as O } from "vue-router";
|
|
4
|
-
import { D as d, C as N, S as R } from "./index-
|
|
5
|
-
import Y from "./skuTable-
|
|
6
|
-
import { a as G } from "./index-
|
|
4
|
+
import { D as d, C as N, S as R } from "./index-Df-F10aZ.mjs";
|
|
5
|
+
import Y from "./skuTable-BVBtWrf9.mjs";
|
|
6
|
+
import { a as G } from "./index-CRfiEzkA.mjs";
|
|
7
7
|
import { g as J } from "./index-BHmGYIuc.mjs";
|
|
8
8
|
const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { 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: "cell-item" }, ie = { class: "title-content" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ge = ["innerHTML"], Ie = /* @__PURE__ */ M({
|
|
9
9
|
__name: "info",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, ref as P, resolveComponent as f, createElementBlock as v, openBlock as _, createVNode as o, withCtx as s, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as C, renderList as V, createBlock as D, unref as m } from "vue";
|
|
2
2
|
import { fileApi as S, routerUtil as R } from "jmash-core";
|
|
3
3
|
import { useRouter as j, useRoute as G } from "vue-router";
|
|
4
|
-
import { D as y, C as b } from "./index-
|
|
5
|
-
import { a as L } from "./index-
|
|
4
|
+
import { D as y, C as b } from "./index-Df-F10aZ.mjs";
|
|
5
|
+
import { a as L } from "./index-CRfiEzkA.mjs";
|
|
6
6
|
import { specValueApi as H } from "xyvcard-shop";
|
|
7
7
|
const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, w = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 }, me = /* @__PURE__ */ M({
|
|
8
8
|
__name: "info",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as
|
|
2
|
-
import { C as D, D as ue, S as Y, a as ne } from "./index-
|
|
3
|
-
import re from "./skuTable-
|
|
1
|
+
import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as k, createCommentVNode as I, unref as M, createVNode as o, withCtx as a, renderList as P, createElementVNode as b, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
|
|
2
|
+
import { C as D, D as ue, S as Y, a as ne } from "./index-Df-F10aZ.mjs";
|
|
3
|
+
import re from "./skuTable-BVBtWrf9.mjs";
|
|
4
4
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const pe = { key: 0 }, ce = {
|
|
6
6
|
key: 1,
|
|
@@ -145,7 +145,7 @@ const pe = { key: 0 }, ce = {
|
|
|
145
145
|
}
|
|
146
146
|
return (e, l) => {
|
|
147
147
|
const t = i("el-input-number"), n = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
|
|
148
|
-
return m(), g(
|
|
148
|
+
return m(), g(k, null, [
|
|
149
149
|
v.specType == M(D).SPEC_TYPE.UNIFIED_SPEC ? (m(), g("div", pe, [
|
|
150
150
|
o(p, null, {
|
|
151
151
|
default: a(() => [
|
|
@@ -337,13 +337,13 @@ const pe = { key: 0 }, ce = {
|
|
|
337
337
|
default: a(() => [
|
|
338
338
|
o(B, { label: "商品规格" }, {
|
|
339
339
|
default: a(() => [
|
|
340
|
-
(m(!0), g(
|
|
340
|
+
(m(!0), g(k, null, P(u.value, (s, V) => (m(), g("div", {
|
|
341
341
|
class: "goods-spec",
|
|
342
342
|
key: V
|
|
343
343
|
}, [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
b("div", ie, [
|
|
345
|
+
b("span", null, O(s.name), 1),
|
|
346
|
+
b("span", {
|
|
347
347
|
class: "goods-delete",
|
|
348
348
|
onClick: (c) => Q(V)
|
|
349
349
|
}, [
|
|
@@ -356,9 +356,9 @@ const pe = { key: 0 }, ce = {
|
|
|
356
356
|
l[9] || (l[9] = y("移除 ", -1))
|
|
357
357
|
], 8, me)
|
|
358
358
|
]),
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
(m(!0), g(
|
|
359
|
+
b("div", fe, [
|
|
360
|
+
b("div", ve, [
|
|
361
|
+
(m(!0), g(k, null, P(u.value[V].specValueList, (c, ae) => (m(), w(oe, {
|
|
362
362
|
key: c,
|
|
363
363
|
closable: "",
|
|
364
364
|
type: "info",
|
|
@@ -394,7 +394,7 @@ const pe = { key: 0 }, ce = {
|
|
|
394
394
|
onChange: (c) => x(c, V)
|
|
395
395
|
}, {
|
|
396
396
|
default: a(() => [
|
|
397
|
-
(m(!0), g(
|
|
397
|
+
(m(!0), g(k, null, P(_.value.values, (c) => (m(), w(N, {
|
|
398
398
|
key: c.key,
|
|
399
399
|
label: c.value,
|
|
400
400
|
value: c.key,
|
|
@@ -431,7 +431,7 @@ const pe = { key: 0 }, ce = {
|
|
|
431
431
|
onChange: Z
|
|
432
432
|
}, {
|
|
433
433
|
default: a(() => [
|
|
434
|
-
(m(!0), g(
|
|
434
|
+
(m(!0), g(k, null, P(h.value.values, (s) => (m(), w(N, {
|
|
435
435
|
key: s.key,
|
|
436
436
|
label: s.value,
|
|
437
437
|
value: s.key,
|
|
@@ -469,7 +469,7 @@ const pe = { key: 0 }, ce = {
|
|
|
469
469
|
], 64);
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
}), he = /* @__PURE__ */ de(Ve, [["__scopeId", "data-v-
|
|
472
|
+
}), he = /* @__PURE__ */ de(Ve, [["__scopeId", "data-v-95ee71d5"]]);
|
|
473
473
|
export {
|
|
474
474
|
he as default
|
|
475
475
|
};
|