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
package/dts/constant.d.ts
CHANGED
|
@@ -46,4 +46,30 @@ export declare class Constant {
|
|
|
46
46
|
NORMAL: string;
|
|
47
47
|
GROUP: string;
|
|
48
48
|
};
|
|
49
|
+
static readonly GOODS_SUP_CLASS = "xyvcard.goods.protobuf.SupClass";
|
|
50
|
+
static readonly GOODS_SUP_CLASS_VALUES: {
|
|
51
|
+
GOODS_TYPE_REAL: string;
|
|
52
|
+
GOODS_TYPE_VIRTUAL: string;
|
|
53
|
+
GOODS_TYPE_LIFE: string;
|
|
54
|
+
};
|
|
55
|
+
static readonly YES_OR_NO: globalThis.Ref<{
|
|
56
|
+
key: boolean;
|
|
57
|
+
value: string;
|
|
58
|
+
}[], {
|
|
59
|
+
key: boolean;
|
|
60
|
+
value: string;
|
|
61
|
+
}[] | {
|
|
62
|
+
key: boolean;
|
|
63
|
+
value: string;
|
|
64
|
+
}[]>;
|
|
65
|
+
static readonly TAB_ENUM: import("vue").Reactive<{
|
|
66
|
+
key: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}[]>;
|
|
69
|
+
static readonly GOODS_PRESALE_TYPE = "xyvcard.goods.protobuf.PresaleType";
|
|
70
|
+
static readonly GOODS_PRESALE_TYPE_VALUES: {
|
|
71
|
+
NONE: string;
|
|
72
|
+
DEPOSIT: string;
|
|
73
|
+
DEPOSIT_RETURN: string;
|
|
74
|
+
};
|
|
49
75
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
goodsSpu: {
|
|
3
|
+
templateDownload: string;
|
|
4
|
+
name: string;
|
|
3
5
|
shopId: string;
|
|
4
6
|
categoryId: string;
|
|
5
7
|
freightType: string;
|
|
@@ -67,6 +69,16 @@ declare const _default: {
|
|
|
67
69
|
minPriceRequired: string;
|
|
68
70
|
maxPrice: string;
|
|
69
71
|
maxPriceRequired: string;
|
|
72
|
+
supClass: string;
|
|
73
|
+
supClassRequired: string;
|
|
74
|
+
isBranchPickup: string;
|
|
75
|
+
isBranchPickupRequired: string;
|
|
76
|
+
isPointsGift: string;
|
|
77
|
+
isPointsGiftRequired: string;
|
|
78
|
+
isPointsDeduct: string;
|
|
79
|
+
isPointsDeductRequired: string;
|
|
80
|
+
presaleType: string;
|
|
81
|
+
presaleTypeRequired: string;
|
|
70
82
|
};
|
|
71
83
|
goodsBrandInfo: {
|
|
72
84
|
name: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GoodsSpuModel } from "@/api/goods-spu/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
submit: (model: GoodsSpuModel) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onSubmit?: ((model: GoodsSpuModel) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GoodsSpuModel } from "@/api/goods-spu/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
submit: (model: GoodsSpuModel) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onSubmit?: ((model: GoodsSpuModel) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dts/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"dts"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "vite --host",
|
|
13
|
-
"build": "vite build && pnpm build:dts",
|
|
14
|
-
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"build-only": "vite build",
|
|
17
|
-
"type-check": "vue-tsc --build --force",
|
|
18
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
-
"format": "prettier --write src/"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"axios": "^1.9.0",
|
|
23
|
-
"element-plus": "^2.9.10",
|
|
24
|
-
"jmash-core": "^0.1.7",
|
|
25
|
-
"jmash-dict": "^0.1.2",
|
|
26
|
-
"jmash-rbac": "^0.1.17",
|
|
27
|
-
"pinia": "^2.3.1",
|
|
28
|
-
"vue": "^3.5.13",
|
|
29
|
-
"vue-i18n": "^9.14.1",
|
|
30
|
-
"vue-router": "^4.5.1",
|
|
31
|
-
"xyvcard-emall": "^0.0.18",
|
|
32
|
-
"xyvcard-shop": "^0.0.29",
|
|
33
|
-
"xyvcard-cms": "0.0.51"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@eslint/js": "^9.16.0",
|
|
37
|
-
"@tsconfig/node20": "^20.1.2",
|
|
38
|
-
"@types/node": "^20.11.10",
|
|
39
|
-
"@vitejs/plugin-vue": "^5.0.3",
|
|
40
|
-
"@vue/tsconfig": "^0.5.1",
|
|
41
|
-
"eslint": "^9.16.0",
|
|
42
|
-
"eslint-plugin-vue": "^9.32.0",
|
|
43
|
-
"globals": "^15.13.0",
|
|
44
|
-
"moment": "^2.30.1",
|
|
45
|
-
"npm-run-all2": "^6.1.1",
|
|
46
|
-
"prettier": "^3.0.3",
|
|
47
|
-
"sass": "^1.72.0",
|
|
48
|
-
"typescript": "~5.3.0",
|
|
49
|
-
"typescript-eslint": "^8.17.0",
|
|
50
|
-
"unplugin-auto-import": "^0.17.5",
|
|
51
|
-
"unplugin-vue-components": "^0.26.0",
|
|
52
|
-
"vite": "^5.0.11",
|
|
53
|
-
"vue-tsc": "^1.8.27"
|
|
54
|
-
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"@element-plus/icons-vue": "^2.3.1",
|
|
57
|
-
"@vueuse/core": "^10.9.0",
|
|
58
|
-
"file-saver": "^2.0.5",
|
|
59
|
-
"nprogress": "^0.2.0",
|
|
60
|
-
"qs": "^6.12.0",
|
|
61
|
-
"pinyin-pro": "^3.25.0"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xyvcard-goods",
|
|
3
|
+
"version": "0.0.33",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite --host",
|
|
13
|
+
"build": "vite build && pnpm build:dts",
|
|
14
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"type-check": "vue-tsc --build --force",
|
|
18
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
+
"format": "prettier --write src/"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"axios": "^1.9.0",
|
|
23
|
+
"element-plus": "^2.9.10",
|
|
24
|
+
"jmash-core": "^0.1.7",
|
|
25
|
+
"jmash-dict": "^0.1.2",
|
|
26
|
+
"jmash-rbac": "^0.1.17",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
28
|
+
"vue": "^3.5.13",
|
|
29
|
+
"vue-i18n": "^9.14.1",
|
|
30
|
+
"vue-router": "^4.5.1",
|
|
31
|
+
"xyvcard-emall": "^0.0.18",
|
|
32
|
+
"xyvcard-shop": "^0.0.29",
|
|
33
|
+
"xyvcard-cms": "0.0.51"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@eslint/js": "^9.16.0",
|
|
37
|
+
"@tsconfig/node20": "^20.1.2",
|
|
38
|
+
"@types/node": "^20.11.10",
|
|
39
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
40
|
+
"@vue/tsconfig": "^0.5.1",
|
|
41
|
+
"eslint": "^9.16.0",
|
|
42
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
43
|
+
"globals": "^15.13.0",
|
|
44
|
+
"moment": "^2.30.1",
|
|
45
|
+
"npm-run-all2": "^6.1.1",
|
|
46
|
+
"prettier": "^3.0.3",
|
|
47
|
+
"sass": "^1.72.0",
|
|
48
|
+
"typescript": "~5.3.0",
|
|
49
|
+
"typescript-eslint": "^8.17.0",
|
|
50
|
+
"unplugin-auto-import": "^0.17.5",
|
|
51
|
+
"unplugin-vue-components": "^0.26.0",
|
|
52
|
+
"vite": "^5.0.11",
|
|
53
|
+
"vue-tsc": "^1.8.27"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
57
|
+
"@vueuse/core": "^10.9.0",
|
|
58
|
+
"file-saver": "^2.0.5",
|
|
59
|
+
"nprogress": "^0.2.0",
|
|
60
|
+
"qs": "^6.12.0",
|
|
61
|
+
"pinyin-pro": "^3.25.0"
|
|
62
|
+
}
|
|
63
|
+
}
|
package/dist/index-B7_M6fAN.mjs
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
var S = Object.defineProperty;
|
|
2
|
-
var E = (u, e, t) => e in u ? S(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
-
var s = (u, e, t) => E(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { BizDict as c, BizLayDict as _, EnumDict as n } from "jmash-core";
|
|
5
|
-
import { EntryDict as v } from "jmash-dict";
|
|
6
|
-
import { ref as h, reactive as L } from "vue";
|
|
7
|
-
import { specValueApi as y, infoApi as P, specInfoApi as A } from "xyvcard-shop";
|
|
8
|
-
import { g as O, b as g, a as f } from "./index-BlZupHNB.mjs";
|
|
9
|
-
import { g as m } from "./index-BrBipAPq.mjs";
|
|
10
|
-
class a {
|
|
11
|
-
}
|
|
12
|
-
// 模块
|
|
13
|
-
s(a, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
14
|
-
s(a, "SPEC_TYPE", {
|
|
15
|
-
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
16
|
-
//统一规格
|
|
17
|
-
MULTI_SPEC: "MULTI_SPEC"
|
|
18
|
-
//多规格
|
|
19
|
-
}), // 启用禁用
|
|
20
|
-
s(a, "SHELF_VALUES", h([
|
|
21
|
-
{ key: !0, value: "上架" },
|
|
22
|
-
{ key: !1, value: "下架" }
|
|
23
|
-
])), // 运费类型
|
|
24
|
-
s(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
25
|
-
s(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
26
|
-
s(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
27
|
-
s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), s(a, "GOODS_SPU_VALUES", h([
|
|
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(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
35
|
-
s(a, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(a, "APPROVAL_PASS", "APPROVAL_PASS"), s(a, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
36
|
-
s(a, "ENABLE_VALUES", h([
|
|
37
|
-
{ key: "true", value: "启用" },
|
|
38
|
-
{ key: "false", value: "禁用" }
|
|
39
|
-
])), // 商品类型
|
|
40
|
-
s(a, "GOODS_TYPE", {
|
|
41
|
-
NORMAL: "normal",
|
|
42
|
-
GROUP: "group"
|
|
43
|
-
});
|
|
44
|
-
function d(u, e, t) {
|
|
45
|
-
return !Array.isArray(u) || u.length === 0 ? [] : u.map((r) => {
|
|
46
|
-
let i = [];
|
|
47
|
-
return Array.isArray(r.children) && r.children.length > 0 && (i = d(r.children, e, t)), {
|
|
48
|
-
value: r[t],
|
|
49
|
-
label: r[e],
|
|
50
|
-
parentId: r.parentId,
|
|
51
|
-
children: i
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
class p {
|
|
56
|
-
constructor(e, t) {
|
|
57
|
-
s(this, "values", L([]));
|
|
58
|
-
// 查询条件
|
|
59
|
-
s(this, "query");
|
|
60
|
-
this.values.length = 0, this.values.push(...e.value), this.query = t;
|
|
61
|
-
}
|
|
62
|
-
// 根据给定键获取业务数据项的值的方法
|
|
63
|
-
getValue(e) {
|
|
64
|
-
for (const t of this.values)
|
|
65
|
-
if (t.key == e)
|
|
66
|
-
return t.value;
|
|
67
|
-
return "";
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
class U extends c {
|
|
71
|
-
// 实现 useValues 方法
|
|
72
|
-
useValues() {
|
|
73
|
-
return new Promise((e, t) => {
|
|
74
|
-
P.findList(this.query).then(({ data: o }) => {
|
|
75
|
-
const r = o.results;
|
|
76
|
-
this.values.length = 0, this.values.push(
|
|
77
|
-
...r.map(
|
|
78
|
-
(i) => ({
|
|
79
|
-
key: i.shopId,
|
|
80
|
-
value: i.shopName
|
|
81
|
-
})
|
|
82
|
-
)
|
|
83
|
-
), e(this.values);
|
|
84
|
-
}).catch(t);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
class D extends _ {
|
|
89
|
-
// 实现 useValues 方法
|
|
90
|
-
useValues() {
|
|
91
|
-
return new Promise((e, t) => {
|
|
92
|
-
O.findTreeListApi(this.query).then(({ data: o }) => {
|
|
93
|
-
this.values.length = 0, this.values.push(...d(o.results, "label", "value")), e(this.values);
|
|
94
|
-
}).catch(t);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
class I extends c {
|
|
99
|
-
// 实现 useValues 方法
|
|
100
|
-
useValues() {
|
|
101
|
-
return new Promise((e, t) => {
|
|
102
|
-
A.findList(this.query).then(({ data: o }) => {
|
|
103
|
-
const r = o.results;
|
|
104
|
-
this.values.length = 0, this.values.push(
|
|
105
|
-
...r.map(
|
|
106
|
-
(i) => ({
|
|
107
|
-
key: i.specId,
|
|
108
|
-
value: i.specName,
|
|
109
|
-
disabled: i.disabled
|
|
110
|
-
})
|
|
111
|
-
)
|
|
112
|
-
), e(this.values);
|
|
113
|
-
}).catch(t);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
class V extends c {
|
|
118
|
-
// 实现 useValues 方法
|
|
119
|
-
useValues() {
|
|
120
|
-
return new Promise((e, t) => {
|
|
121
|
-
y.findList(this.query).then(({ data: o }) => {
|
|
122
|
-
const r = o.results;
|
|
123
|
-
this.values.length = 0, this.values.push(
|
|
124
|
-
...r.map(
|
|
125
|
-
(i) => ({
|
|
126
|
-
key: i.specValueId,
|
|
127
|
-
value: i.valueName
|
|
128
|
-
})
|
|
129
|
-
)
|
|
130
|
-
), e(this.values);
|
|
131
|
-
}).catch(t);
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
class N extends c {
|
|
136
|
-
// 实现 useValues 方法
|
|
137
|
-
useValues() {
|
|
138
|
-
return new Promise((e, t) => {
|
|
139
|
-
m.findList(this.query).then(({ data: o }) => {
|
|
140
|
-
const r = o.results;
|
|
141
|
-
this.values.length = 0, this.values.push(
|
|
142
|
-
...r.map(
|
|
143
|
-
(i) => ({
|
|
144
|
-
key: i.brandId,
|
|
145
|
-
value: i.brandName
|
|
146
|
-
})
|
|
147
|
-
)
|
|
148
|
-
), e(this.values);
|
|
149
|
-
}).catch(t);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
class T extends c {
|
|
154
|
-
// 实现 useValues 方法
|
|
155
|
-
useValues() {
|
|
156
|
-
return new Promise((e, t) => {
|
|
157
|
-
g.findList(this.query).then(({ data: o }) => {
|
|
158
|
-
const r = o.results;
|
|
159
|
-
this.values.length = 0, this.values.push(
|
|
160
|
-
...r.map(
|
|
161
|
-
(i) => ({
|
|
162
|
-
key: i.labelId,
|
|
163
|
-
value: i.labelName
|
|
164
|
-
})
|
|
165
|
-
)
|
|
166
|
-
), e(this.values);
|
|
167
|
-
}).catch(t);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
class w extends c {
|
|
172
|
-
// 实现 useValues 方法
|
|
173
|
-
useValues() {
|
|
174
|
-
return new Promise((e, t) => {
|
|
175
|
-
f.findList(this.query).then(({ data: o }) => {
|
|
176
|
-
const r = o.results;
|
|
177
|
-
this.values.length = 0, this.values.push(
|
|
178
|
-
...r.map(
|
|
179
|
-
(i) => ({
|
|
180
|
-
key: i.spuId,
|
|
181
|
-
value: i.spuName
|
|
182
|
-
})
|
|
183
|
-
)
|
|
184
|
-
), e(this.values);
|
|
185
|
-
}).catch(t);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
class l {
|
|
190
|
-
}
|
|
191
|
-
// 店铺列表
|
|
192
|
-
s(l, "shopInfoBizDict", new U({})), // 规格列表
|
|
193
|
-
s(l, "specInfoDict", new I({})), // 规格值
|
|
194
|
-
s(l, "specValueDict", new V({})), // 上架下架
|
|
195
|
-
s(l, "shelfDict", new p(a.SHELF_VALUES, {})), // 运费类型
|
|
196
|
-
s(l, "freightTypeEnum", new n(
|
|
197
|
-
a.MODULE_GOODS,
|
|
198
|
-
a.ENUM_FREIGHT_TYPE
|
|
199
|
-
)), // 保障服务
|
|
200
|
-
s(l, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
201
|
-
s(l, "specTypeEnum", new n(
|
|
202
|
-
a.MODULE_GOODS,
|
|
203
|
-
a.ENUM_SPEC_TYPE
|
|
204
|
-
)), // 商品查询枚举
|
|
205
|
-
s(l, "goodsSpuListSortEnum", new n(
|
|
206
|
-
a.MODULE_GOODS,
|
|
207
|
-
a.ENUM_GOODS_SPU_List_SORT
|
|
208
|
-
)), s(l, "goodsSpuListSortDict", new p(
|
|
209
|
-
a.GOODS_SPU_VALUES,
|
|
210
|
-
{}
|
|
211
|
-
)), // 审核状态
|
|
212
|
-
s(l, "approvalStatusEnum", new n(
|
|
213
|
-
a.MODULE_GOODS,
|
|
214
|
-
a.ENUM_APPROVAL_STATUS
|
|
215
|
-
)), // 启用禁用
|
|
216
|
-
s(l, "enableDict", new p(a.ENABLE_VALUES, {})), // 商品分类
|
|
217
|
-
s(l, "goodsCategoryListBizLayDict", new D(
|
|
218
|
-
{}
|
|
219
|
-
)), // 品牌列表
|
|
220
|
-
s(l, "brandListBizDict", new N({})), // 标签列表
|
|
221
|
-
s(l, "labelListBizDict", new T({})), // 商品列表
|
|
222
|
-
s(l, "goodsSpuBizDict", new w({}));
|
|
223
|
-
export {
|
|
224
|
-
a as C,
|
|
225
|
-
l as D,
|
|
226
|
-
V as S,
|
|
227
|
-
I as a
|
|
228
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
shelf: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: () => string;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
-
shelf: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: () => string;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
shelf: string;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
2
|
-
import type { GoodsSkuCreateReq, SkuSpecValueModel } from "@/api/goods-spu/types";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
-
specData: {
|
|
5
|
-
type: PropType<SkuSpecValueModel[]>;
|
|
6
|
-
default(): never[];
|
|
7
|
-
};
|
|
8
|
-
goodsSku: {
|
|
9
|
-
type: PropType<GoodsSkuCreateReq[]>;
|
|
10
|
-
default(): never[];
|
|
11
|
-
};
|
|
12
|
-
isSettingShow: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
getGoodsSku: (...args: any[]) => void;
|
|
18
|
-
getFormData: (...args: any[]) => void;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
20
|
-
specData: {
|
|
21
|
-
type: PropType<SkuSpecValueModel[]>;
|
|
22
|
-
default(): never[];
|
|
23
|
-
};
|
|
24
|
-
goodsSku: {
|
|
25
|
-
type: PropType<GoodsSkuCreateReq[]>;
|
|
26
|
-
default(): never[];
|
|
27
|
-
};
|
|
28
|
-
isSettingShow: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
}>> & Readonly<{
|
|
33
|
-
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
specData: SkuSpecValueModel[];
|
|
37
|
-
goodsSku: GoodsSkuCreateReq[];
|
|
38
|
-
isSettingShow: boolean;
|
|
39
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
shelf: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: () => string;
|
|
5
|
-
};
|
|
6
|
-
approvalStatus: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: () => string;
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
|
-
shelf: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: () => string;
|
|
14
|
-
};
|
|
15
|
-
approvalStatus: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: () => string;
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
approvalStatus: string;
|
|
21
|
-
shelf: string;
|
|
22
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
-
export default _default;
|