xyvcard-goods 0.0.22 → 0.0.24
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-Nuaz9WSB.mjs → edit-9jPSycsG.mjs} +185 -165
- package/dist/{edit-exVf8d8b.mjs → edit-CJpoa4Ck.mjs} +69 -68
- package/dist/{edit-DxnsmaXV.mjs → edit-CWQMgvVP.mjs} +38 -38
- package/dist/{edit-Byv9oYAC.mjs → edit-DU-BEAcq.mjs} +1 -1
- package/dist/{edit-BcokSKfN.mjs → edit-Ziwv43v0.mjs} +27 -27
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs → edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs} +8 -7
- package/dist/{goodsList-CZUqc4nm.mjs → goodsList-2AwsJVoO.mjs} +1 -1
- package/dist/{goodsList-IWDAvKOx.mjs → goodsList-CyWliLjg.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs → goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs} +2 -2
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs → goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs} +136 -147
- package/dist/{index-4i7TnWvV.mjs → index-8E7BciYp.mjs} +7 -6
- package/dist/{index-BVGn6Q_T.mjs → index-B1H5hqEi.mjs} +2 -2
- package/dist/{index-B_U2s9fI.mjs → index-B88acg0Q.mjs} +2 -2
- package/dist/{index-_xxSoBUe.mjs → index-BdP_dXBK.mjs} +3 -3
- package/dist/index-C7oatDPl.mjs +4432 -0
- package/dist/{index-CQIttgns.mjs → index-DPjR32Kv.mjs} +3 -3
- package/dist/{index-r0u-27m7.mjs → index-DR3Gk44r.mjs} +1 -1
- package/dist/index-jCpYt-EU.mjs +221 -0
- package/dist/index.mjs +6 -2875
- package/dist/info-BEMxnD6-.mjs +325 -0
- package/dist/{info-BQaaTFry.mjs → info-DFIeVs66.mjs} +3 -3
- package/dist/{skuForm-CgjMd46J.mjs → skuForm-BhAbf2AG.mjs} +16 -16
- package/dist/skuForm-C2aQcL90.mjs +314 -0
- package/dist/{skuTable-CyGQuTvR.mjs → skuTable-9JJqGeRx.mjs} +255 -208
- package/dist/style.css +1 -1
- package/dts/api/goods-category/types.d.ts +2 -0
- package/dts/api/goods-spu/index.d.ts +3 -1
- package/dts/api/goods-spu/types.d.ts +12 -1
- package/dts/index.d.ts +4 -0
- package/dts/router/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-DR7GlHNd.mjs +0 -1288
- package/dist/index-Dvaotk7B.mjs +0 -325
- package/dist/index-jTDhsbYM.mjs +0 -141
- package/dist/info-BH4MW3Sw.mjs +0 -365
- package/dist/sku-B-IzfYLq.mjs +0 -52
- package/dist/skuForm-AMIoZkH-.mjs +0 -287
- package/dist/skuTable-DDWSmvoz.mjs +0 -592
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-
|
|
1
|
+
@charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-f953fc89]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-f953fc89]:hover{color:#409eff!important}.position-center[data-v-05285e5f]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-05285e5f]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-3bb58ee1]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-3bb58ee1]{position:absolute;right:0;top:0;margin-top:8px}
|
|
@@ -19,6 +19,8 @@ export interface GoodsCategoryModel extends EntityModel {
|
|
|
19
19
|
picUrl?: string;
|
|
20
20
|
description?: string;
|
|
21
21
|
status?: boolean;
|
|
22
|
+
parentId?: string;
|
|
23
|
+
children?: GoodsCategoryModel[];
|
|
22
24
|
}
|
|
23
25
|
export interface GoodsCategoryList extends EntityList {
|
|
24
26
|
results: Array<GoodsCategoryModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosPromise } from "axios";
|
|
2
|
-
import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq } from "./types";
|
|
2
|
+
import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq, GoodsGroupInfoList, GoodsGroupInfoReq } from "./types";
|
|
3
3
|
declare class GoodsSpuApiImpl implements GoodsSpuApi {
|
|
4
4
|
getKey(model: GoodsSpuModel): GoodsSpuKey;
|
|
5
5
|
/**
|
|
@@ -14,6 +14,7 @@ declare class GoodsSpuApiImpl implements GoodsSpuApi {
|
|
|
14
14
|
* @returns 返回一个AxiosPromise,解析后提供商品SPU列表
|
|
15
15
|
*/
|
|
16
16
|
findList(query?: GoodsSpuReq): AxiosPromise<GoodsSpuList>;
|
|
17
|
+
findGroupList(query?: GoodsGroupInfoReq): AxiosPromise<GoodsGroupInfoList>;
|
|
17
18
|
/**
|
|
18
19
|
* 根据商品SPU的ID进行查询
|
|
19
20
|
* @param query 商品SPU的查询键,包含需要查询的SPU ID
|
|
@@ -33,6 +34,7 @@ declare class GoodsSpuApiImpl implements GoodsSpuApi {
|
|
|
33
34
|
* @returns 返回一个Promise,解析为更新后的商品SPU模型
|
|
34
35
|
*/
|
|
35
36
|
update(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
|
|
37
|
+
updateList(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
|
|
36
38
|
/**
|
|
37
39
|
* 上架或下架商品
|
|
38
40
|
* @param key 商品的唯一键包含商品的必要标识信息
|
|
@@ -76,6 +76,8 @@ export interface GoodsSpuCreateReq extends EntityCreateReq {
|
|
|
76
76
|
brandId?: string;
|
|
77
77
|
labelIds?: Array<string>;
|
|
78
78
|
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
79
|
+
goodsType?: string;
|
|
80
|
+
note?: string;
|
|
79
81
|
}
|
|
80
82
|
export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
81
83
|
spuId?: string;
|
|
@@ -98,6 +100,8 @@ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
|
98
100
|
brandId?: string;
|
|
99
101
|
labelIds?: Array<string>;
|
|
100
102
|
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
103
|
+
goodsType?: string;
|
|
104
|
+
note?: string;
|
|
101
105
|
}
|
|
102
106
|
export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
|
|
103
107
|
export interface GoodsSpuEnableKey {
|
|
@@ -154,9 +158,10 @@ export interface GoodsSkuList {
|
|
|
154
158
|
results: Array<GoodsSkuModel>;
|
|
155
159
|
}
|
|
156
160
|
export interface GoodsGroupInfoCreateReq {
|
|
161
|
+
goodsId?: string;
|
|
157
162
|
skuId?: string;
|
|
158
163
|
spuId?: string;
|
|
159
|
-
|
|
164
|
+
specInfo?: string;
|
|
160
165
|
picUrl?: string;
|
|
161
166
|
saleNum?: number;
|
|
162
167
|
salePrice?: number;
|
|
@@ -166,3 +171,9 @@ export interface GoodsGroupInfoCreateReq {
|
|
|
166
171
|
value: string;
|
|
167
172
|
}[];
|
|
168
173
|
}
|
|
174
|
+
export interface GoodsGroupInfoList {
|
|
175
|
+
results: Array<GoodsGroupInfoCreateReq>;
|
|
176
|
+
}
|
|
177
|
+
export interface GoodsGroupInfoReq {
|
|
178
|
+
goodsId?: string;
|
|
179
|
+
}
|
package/dts/index.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import type { App } from "vue";
|
|
|
2
2
|
import "./styles/index.scss";
|
|
3
3
|
export { goodsSpuApi } from "./api/goods-spu/index";
|
|
4
4
|
export type { GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, } from "./api/goods-spu/types";
|
|
5
|
+
export { goodsCategoryApi } from "./api/goods-category/index";
|
|
6
|
+
export type { GoodsCategoryReq, GoodsCategoryModel, } from "./api/goods-category/types";
|
|
7
|
+
export { goodsLabelInfoApi } from "./api/goods-label-info/index";
|
|
8
|
+
export type { GoodsLabelInfoReq, GoodsLabelInfoModel, } from "./api/goods-label-info/types";
|
|
5
9
|
declare const goods: {
|
|
6
10
|
install(app: App): void;
|
|
7
11
|
};
|
package/dts/router/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ import type { RouteRecordRaw } from "vue-router";
|
|
|
2
2
|
export declare const goodsSpuEdit: () => Promise<typeof import("@/views/goods/goods-spu/edit.vue")>;
|
|
3
3
|
export declare const goodsSpuInfo: () => Promise<typeof import("@/views/goods/goods-spu/info.vue")>;
|
|
4
4
|
export declare const goodsCombinationEdit: () => Promise<typeof import("@/views/goods/goods-combination/edit.vue")>;
|
|
5
|
+
export declare const goodsCombinationInfo: () => Promise<typeof import("@/views/goods/goods-combination/info.vue")>;
|
|
5
6
|
export declare const goodsRoutes: RouteRecordRaw[];
|