xyvcard-goods 0.0.13 → 0.0.15
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/{edit-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
- package/dist/edit-BsaWxeqY.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
- package/dist/{goodsList-BtEY_SNz.mjs → goodsList-Dvsh76f7.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BGajxpZV.mjs → goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs} +98 -96
- package/dist/{index-BQz1LNIa.mjs → index-BF7PDcd4.mjs} +13 -13
- package/dist/index-DZJVaUh3.mjs +248 -0
- package/dist/index-Dp9QMOea.mjs +333 -0
- package/dist/index.mjs +2 -2
- package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
- package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
- package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +2 -2
- package/dts/api/goods-category/index.d.ts +23 -0
- package/dts/api/goods-category/types.d.ts +68 -0
- package/dts/api/index.d.ts +3 -2
- package/dts/constant.d.ts +10 -0
- package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/package.json +12 -12
- package/dist/index-CKeHa-Cx.mjs +0 -139
- package/dts/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
- package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
- package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
- package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
- /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
package/dist/index-CKeHa-Cx.mjs
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
var p = Object.defineProperty;
|
|
2
|
-
var h = (a, t, i) => t in a ? p(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
|
|
3
|
-
var s = (a, t, i) => h(a, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
-
import { BizDict as S, BizLayDict as E, EnumDict as l } from "jmash-core";
|
|
5
|
-
import { EntryDict as _ } from "jmash-dict";
|
|
6
|
-
import { ref as P, reactive as n } from "vue";
|
|
7
|
-
import { goodsCategoryApi as O } from "xyvcard-emall";
|
|
8
|
-
import { specValueApi as d, infoApi as v, specInfoApi as A } from "xyvcard-shop";
|
|
9
|
-
class e {
|
|
10
|
-
}
|
|
11
|
-
// 模块
|
|
12
|
-
s(e, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
13
|
-
s(e, "SPEC_TYPE", {
|
|
14
|
-
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
15
|
-
//统一规格
|
|
16
|
-
MULTI_SPEC: "MULTI_SPEC"
|
|
17
|
-
//多规格
|
|
18
|
-
}), // 启用禁用
|
|
19
|
-
s(e, "SHELF_VALUES", P([
|
|
20
|
-
{ key: !0, value: "上架" },
|
|
21
|
-
{ key: !1, value: "下架" }
|
|
22
|
-
])), // 运费类型
|
|
23
|
-
s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
24
|
-
s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
25
|
-
s(e, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
26
|
-
s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
|
|
27
|
-
s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
28
|
-
s(e, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(e, "APPROVAL_PASS", "APPROVAL_PASS"), s(e, "APPROVALING", "APPROVALING");
|
|
29
|
-
class L {
|
|
30
|
-
constructor(t, i) {
|
|
31
|
-
s(this, "values", n([]));
|
|
32
|
-
// 查询条件
|
|
33
|
-
s(this, "query");
|
|
34
|
-
this.values.length = 0, this.values.push(...t.value), this.query = i;
|
|
35
|
-
}
|
|
36
|
-
// 根据给定键获取业务数据项的值的方法
|
|
37
|
-
getValue(t) {
|
|
38
|
-
for (const i of this.values)
|
|
39
|
-
if (i.key == t)
|
|
40
|
-
return i.value;
|
|
41
|
-
return "";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
class f extends S {
|
|
45
|
-
// 实现 useValues 方法
|
|
46
|
-
useValues() {
|
|
47
|
-
return new Promise((t, i) => {
|
|
48
|
-
v.findList(this.query).then(({ data: o }) => {
|
|
49
|
-
const r = o.results;
|
|
50
|
-
this.values.length = 0, this.values.push(
|
|
51
|
-
...r.map(
|
|
52
|
-
(c) => ({
|
|
53
|
-
key: c.shopId,
|
|
54
|
-
value: c.shopName
|
|
55
|
-
})
|
|
56
|
-
)
|
|
57
|
-
), t(this.values);
|
|
58
|
-
}).catch(i);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
class m extends E {
|
|
63
|
-
// 实现 useValues 方法
|
|
64
|
-
useValues() {
|
|
65
|
-
return new Promise((t, i) => {
|
|
66
|
-
O.findTreeListApi().then(({ data: o }) => {
|
|
67
|
-
this.values.length = 0, this.values.push(...o.results), t(this.values);
|
|
68
|
-
}).catch(i);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
class y extends S {
|
|
73
|
-
// 实现 useValues 方法
|
|
74
|
-
useValues() {
|
|
75
|
-
return new Promise((t, i) => {
|
|
76
|
-
A.findList(this.query).then(({ data: o }) => {
|
|
77
|
-
const r = o.results;
|
|
78
|
-
this.values.length = 0, this.values.push(
|
|
79
|
-
...r.map(
|
|
80
|
-
(c) => ({
|
|
81
|
-
key: c.specId,
|
|
82
|
-
value: c.specName,
|
|
83
|
-
disabled: c.disabled
|
|
84
|
-
})
|
|
85
|
-
)
|
|
86
|
-
), t(this.values);
|
|
87
|
-
}).catch(i);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
class D extends S {
|
|
92
|
-
// 实现 useValues 方法
|
|
93
|
-
useValues() {
|
|
94
|
-
return new Promise((t, i) => {
|
|
95
|
-
d.findList(this.query).then(({ data: o }) => {
|
|
96
|
-
const r = o.results;
|
|
97
|
-
this.values.length = 0, this.values.push(
|
|
98
|
-
...r.map(
|
|
99
|
-
(c) => ({
|
|
100
|
-
key: c.specValueId,
|
|
101
|
-
value: c.valueName
|
|
102
|
-
})
|
|
103
|
-
)
|
|
104
|
-
), t(this.values);
|
|
105
|
-
}).catch(i);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
class u {
|
|
110
|
-
}
|
|
111
|
-
// 店铺列表
|
|
112
|
-
s(u, "shopInfoBizDict", new f({})), // 商品分类
|
|
113
|
-
s(u, "goodsCategoryDict", new m({})), // 规格列表
|
|
114
|
-
s(u, "specInfoDict", new y({})), // 规格值
|
|
115
|
-
s(u, "specValueDict", new D({})), // 上架下架
|
|
116
|
-
s(u, "shelfDict", new L(e.SHELF_VALUES, {})), // 运费类型
|
|
117
|
-
s(u, "freightTypeEnum", new l(
|
|
118
|
-
e.MODULE_GOODS,
|
|
119
|
-
e.ENUM_FREIGHT_TYPE
|
|
120
|
-
)), // 保障服务
|
|
121
|
-
s(u, "goodsEnsureDict", new _(e.DICT_GOODS_ENSURE)), // 规格类型
|
|
122
|
-
s(u, "specTypeEnum", new l(
|
|
123
|
-
e.MODULE_GOODS,
|
|
124
|
-
e.ENUM_SPEC_TYPE
|
|
125
|
-
)), // 商品查询枚举
|
|
126
|
-
s(u, "goodsSpuListSortEnum", new l(
|
|
127
|
-
e.MODULE_GOODS,
|
|
128
|
-
e.ENUM_GOODS_SPU_List_SORT
|
|
129
|
-
)), // 审核状态
|
|
130
|
-
s(u, "approvalStatusEnum", new l(
|
|
131
|
-
e.MODULE_GOODS,
|
|
132
|
-
e.ENUM_APPROVAL_STATUS
|
|
133
|
-
));
|
|
134
|
-
export {
|
|
135
|
-
e as C,
|
|
136
|
-
u as D,
|
|
137
|
-
D as S,
|
|
138
|
-
y as a
|
|
139
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { PropType } from "vue";
|
|
2
|
-
import type { Entry } from "jmash-core";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
-
modelValue: PropType<string | boolean>;
|
|
5
|
-
data: {
|
|
6
|
-
type: PropType<Entry[]>;
|
|
7
|
-
default: () => void;
|
|
8
|
-
};
|
|
9
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
10
|
-
modelValue: PropType<string | boolean>;
|
|
11
|
-
data: {
|
|
12
|
-
type: PropType<Entry[]>;
|
|
13
|
-
default: () => void;
|
|
14
|
-
};
|
|
15
|
-
}>> & Readonly<{}>, {
|
|
16
|
-
data: Entry[];
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
listType: {
|
|
3
|
-
type: () => "text" | "picture" | "picture-card";
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
limit: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
default: number;
|
|
9
|
-
};
|
|
10
|
-
pictureUrl: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
default: () => never[];
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
filesResponse: (...args: any[]) => void;
|
|
16
|
-
uploadFileList: (...args: any[]) => void;
|
|
17
|
-
removeFile: (...args: any[]) => void;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
19
|
-
listType: {
|
|
20
|
-
type: () => "text" | "picture" | "picture-card";
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
limit: {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
default: number;
|
|
26
|
-
};
|
|
27
|
-
pictureUrl: {
|
|
28
|
-
type: ArrayConstructor;
|
|
29
|
-
default: () => never[];
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{
|
|
32
|
-
onFilesResponse?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
onUploadFileList?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onRemoveFile?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
listType: "picture" | "text" | "picture-card";
|
|
37
|
-
limit: number;
|
|
38
|
-
pictureUrl: unknown[];
|
|
39
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
modelValue: globalThis.PropType<boolean>;
|
|
3
|
-
limit: {
|
|
4
|
-
type: NumberConstructor;
|
|
5
|
-
default: number;
|
|
6
|
-
};
|
|
7
|
-
}>, {
|
|
8
|
-
clearFileList: () => void;
|
|
9
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
filesResponse: (...args: any[]) => void;
|
|
11
|
-
uploadFileList: (...args: any[]) => void;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
-
modelValue: globalThis.PropType<boolean>;
|
|
14
|
-
limit: {
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
18
|
-
}>> & Readonly<{
|
|
19
|
-
onFilesResponse?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onUploadFileList?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
limit: number;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
pictureUrl: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
imageSrc: (...args: any[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
9
|
-
pictureUrl: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{
|
|
14
|
-
onImageSrc?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
pictureUrl: string;
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
/package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts}
RENAMED
|
File without changes
|