xyvcard-goods 0.0.32 → 0.0.34
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-BSvXc_XA.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
- package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
- package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
- package/dist/edit copy-CCnzlrgL.mjs +526 -0
- package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
- package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
- package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
- package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
- package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
- package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
- package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
- package/dist/index-Da2R0n8O.mjs +374 -0
- package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
- package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
- package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
- 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/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -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-spu/goodsList.vue.d.ts +0 -23
- /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 笛卡尔积运算
|
|
3
|
+
* @param {[type]} tree [description]
|
|
4
|
+
* @param {Array} stocks [description]
|
|
5
|
+
* @return {[type]} [description]
|
|
6
|
+
*/
|
|
7
|
+
export declare function flatten(tree: any[], stocks: never[] | undefined, options: any): any[];
|
|
8
|
+
export declare function getLevels(tree: any[]): number[];
|
|
9
|
+
/**
|
|
10
|
+
* @param {Array} arr
|
|
11
|
+
* @returns {Array}
|
|
12
|
+
*/
|
|
13
|
+
export declare function uniqueArr(arr: any[]): any[];
|
|
14
|
+
/**
|
|
15
|
+
* @param {Array} arr1
|
|
16
|
+
* @param {Array} arr2
|
|
17
|
+
* @returns {Array}
|
|
18
|
+
*/
|
|
19
|
+
export declare function diffArary<T>(arr1: T[], arr2: T[]): T[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsBrandInfoKey } from "@/api/goods-brand-info/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<boolean>;
|
|
5
|
+
entityKey: {
|
|
6
|
+
type: PropType<GoodsBrandInfoKey>;
|
|
7
|
+
default: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
refresh: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: PropType<boolean>;
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: PropType<GoodsBrandInfoKey>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
entityKey: GoodsBrandInfoKey;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
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,22 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsCategoryModel } from "@/api/goods-category/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<boolean>;
|
|
5
|
+
entityKey: {
|
|
6
|
+
type: PropType<GoodsCategoryModel>;
|
|
7
|
+
default: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
refresh: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: PropType<boolean>;
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: PropType<GoodsCategoryModel>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
entityKey: GoodsCategoryModel;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
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;
|
|
@@ -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;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
form: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
getGoodsSku: (...args: any[]) => void;
|
|
8
|
+
getFormData: (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
10
|
+
form: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => void;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
form: Record<string, any>;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsLabelInfoKey } from "@/api/goods-label-info/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<boolean>;
|
|
5
|
+
entityKey: {
|
|
6
|
+
type: PropType<GoodsLabelInfoKey>;
|
|
7
|
+
default: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
refresh: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: PropType<boolean>;
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: PropType<GoodsLabelInfoKey>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
entityKey: GoodsLabelInfoKey;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
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,34 @@
|
|
|
1
|
+
import type { GoodsSpuModel } from "@/api/goods-spu/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
goodsSpuModel: GoodsSpuModel;
|
|
4
|
+
}>, {
|
|
5
|
+
goodsSpuModel: () => {};
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
submit: (model: GoodsSpuModel) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
goodsSpuModel: GoodsSpuModel;
|
|
10
|
+
}>, {
|
|
11
|
+
goodsSpuModel: () => {};
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
onSubmit?: ((model: GoodsSpuModel) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
goodsSpuModel: GoodsSpuModel;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GoodsSpuModel } from "@/api/goods-spu/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
goodsSpuModel: GoodsSpuModel;
|
|
4
|
+
}>, {
|
|
5
|
+
goodsSpuModel: () => {
|
|
6
|
+
skuList: {
|
|
7
|
+
results: {}[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
submit: (model: GoodsSpuModel) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
goodsSpuModel: GoodsSpuModel;
|
|
14
|
+
}>, {
|
|
15
|
+
goodsSpuModel: () => {
|
|
16
|
+
skuList: {
|
|
17
|
+
results: {}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>>> & Readonly<{
|
|
21
|
+
onSubmit?: ((model: GoodsSpuModel) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
goodsSpuModel: GoodsSpuModel;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GoodsSpuModel } from "@/api/goods-spu/types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
goodsSpuModel: GoodsSpuModel;
|
|
4
|
+
}>, {
|
|
5
|
+
goodsSpuModel: () => {
|
|
6
|
+
skuList: {
|
|
7
|
+
results: {}[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
submit: (model: GoodsSpuModel) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
goodsSpuModel: GoodsSpuModel;
|
|
14
|
+
}>, {
|
|
15
|
+
goodsSpuModel: () => {
|
|
16
|
+
skuList: {
|
|
17
|
+
results: {}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>>> & Readonly<{
|
|
21
|
+
onSubmit?: ((model: GoodsSpuModel) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
goodsSpuModel: GoodsSpuModel;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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,29 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
specType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: () => string;
|
|
5
|
+
};
|
|
6
|
+
form: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
getGoodsSku: (...args: any[]) => void;
|
|
12
|
+
getFormData: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
14
|
+
specType: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: () => string;
|
|
17
|
+
};
|
|
18
|
+
form: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
form: Record<string, any>;
|
|
27
|
+
specType: string;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { BranchApi, BranchReq, BranchModel, BranchPage, BranchList, BranchKey, BranchCreateReq, BranchUpdateReq } from "./types";
|
|
3
|
+
declare class BranchApiImpl implements BranchApi {
|
|
4
|
+
getKey(model: BranchModel): BranchKey;
|
|
5
|
+
findPage(query?: BranchReq): AxiosPromise<BranchPage>;
|
|
6
|
+
findList(query?: BranchReq): AxiosPromise<BranchList>;
|
|
7
|
+
findById(query: BranchKey): AxiosPromise<BranchModel>;
|
|
8
|
+
create(data: BranchCreateReq): AxiosPromise<BranchModel>;
|
|
9
|
+
update(data: BranchUpdateReq): AxiosPromise<BranchModel>;
|
|
10
|
+
delete(query: BranchKey): AxiosPromise<BranchModel>;
|
|
11
|
+
batchDelete(keys: BranchKey[]): AxiosPromise<number>;
|
|
12
|
+
}
|
|
13
|
+
declare const branchApi: BranchApiImpl;
|
|
14
|
+
export { branchApi };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
|
|
2
|
+
export interface BranchApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface BranchReq extends EntityReq {
|
|
5
|
+
likeFacadeName?: string;
|
|
6
|
+
shopId?: string;
|
|
7
|
+
isHq?: boolean;
|
|
8
|
+
hasIsHq?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface BranchModel extends EntityModel {
|
|
11
|
+
branchId?: string;
|
|
12
|
+
facadeName?: string;
|
|
13
|
+
picUrl?: string;
|
|
14
|
+
note?: string;
|
|
15
|
+
contacts?: string;
|
|
16
|
+
mobileEncrypt?: boolean;
|
|
17
|
+
businessStartHour?: string;
|
|
18
|
+
businessEndHour?: string;
|
|
19
|
+
shopId?: string;
|
|
20
|
+
address?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BranchList extends EntityList {
|
|
23
|
+
results: Array<BranchModel>;
|
|
24
|
+
}
|
|
25
|
+
export interface BranchPage extends EntityPage {
|
|
26
|
+
results: Array<BranchModel>;
|
|
27
|
+
subTotalDto: BranchModelTotal;
|
|
28
|
+
totalDto: BranchModelTotal;
|
|
29
|
+
}
|
|
30
|
+
export interface BranchModelTotal extends EntityTotal {
|
|
31
|
+
totalSize: number;
|
|
32
|
+
}
|
|
33
|
+
export interface BranchKey extends EntityKey {
|
|
34
|
+
tenant?: string;
|
|
35
|
+
branchId?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface BranchKeyList extends EntityKeyList {
|
|
38
|
+
tenant?: string;
|
|
39
|
+
branchId?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
export interface BranchCreateReq extends EntityCreateReq {
|
|
42
|
+
shopId?: string;
|
|
43
|
+
facadeName?: string;
|
|
44
|
+
picUrl?: string;
|
|
45
|
+
note?: string;
|
|
46
|
+
regionCode?: string;
|
|
47
|
+
address?: string;
|
|
48
|
+
contacts?: string;
|
|
49
|
+
mobilePhone?: string;
|
|
50
|
+
businessHoursRange?: string;
|
|
51
|
+
businessStartHour?: string;
|
|
52
|
+
businessEndHour?: string;
|
|
53
|
+
longitude?: string;
|
|
54
|
+
latitude?: string;
|
|
55
|
+
isHq?: boolean;
|
|
56
|
+
createAdmin?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface BranchUpdateReq extends EntityUpdateReq {
|
|
59
|
+
branchId?: string;
|
|
60
|
+
shopId?: string;
|
|
61
|
+
facadeName?: string;
|
|
62
|
+
contacts?: string;
|
|
63
|
+
mobilePhone?: string;
|
|
64
|
+
picUrl?: string;
|
|
65
|
+
regionCode?: string;
|
|
66
|
+
address?: string;
|
|
67
|
+
longitude?: string;
|
|
68
|
+
latitude?: string;
|
|
69
|
+
note?: string;
|
|
70
|
+
businessHoursRange?: string;
|
|
71
|
+
businessStartHour?: string;
|
|
72
|
+
businessEndHour?: string;
|
|
73
|
+
isHq?: boolean;
|
|
74
|
+
createAdmin?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export type BranchFormReq = BranchCreateReq | BranchUpdateReq;
|
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.
|
|
25
|
-
"jmash-dict": "^0.1.
|
|
26
|
-
"jmash-rbac": "^0.1.
|
|
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.34",
|
|
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.36",
|
|
25
|
+
"jmash-dict": "^0.1.5",
|
|
26
|
+
"jmash-rbac": "^0.1.24",
|
|
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
|
+
}
|