xyvcard-goods 0.0.33 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
- package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
- package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +36 -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 +21 -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 +72 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -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/api/types.d.ts +4 -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 +173 -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 +7 -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/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -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/GoodsProfitForm.vue.d.ts +34 -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/components/SingleSku.vue.d.ts +23 -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 copy.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 +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -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 +6 -5
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
- package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
- package/dist/edit copy-tfwJCdiV.mjs +0 -526
- package/dist/edit-Db2EJ9dq.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Df-F10aZ.mjs +0 -264
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-DDi6GKQH.mjs +0 -365
- package/dist/skuForm-DWIoveRP.mjs +0 -475
- package/dist/skuTable-BVBtWrf9.mjs +0 -639
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsSkuCreateReq, SkuSpecValueModel } from "@/api/goods-spu/types";
|
|
3
|
+
import type { GoodsSpecCreateReq } from "@/api/goods-spec/types";
|
|
4
|
+
import type { FormInstance } from "element-plus";
|
|
5
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
+
form: {
|
|
7
|
+
type: PropType<GoodsSpecCreateReq>;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
specData: {
|
|
11
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
12
|
+
default(): never[];
|
|
13
|
+
};
|
|
14
|
+
goodsSku: {
|
|
15
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
16
|
+
default(): never[];
|
|
17
|
+
};
|
|
18
|
+
isSettingShow: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
formRef: () => FormInstance | undefined;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
getGoodsSku: (...args: any[]) => void;
|
|
26
|
+
getFormData: (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
28
|
+
form: {
|
|
29
|
+
type: PropType<GoodsSpecCreateReq>;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
specData: {
|
|
33
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
34
|
+
default(): never[];
|
|
35
|
+
};
|
|
36
|
+
goodsSku: {
|
|
37
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
38
|
+
default(): never[];
|
|
39
|
+
};
|
|
40
|
+
isSettingShow: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{
|
|
45
|
+
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
form: GoodsSpecCreateReq;
|
|
49
|
+
specData: SkuSpecValueModel[];
|
|
50
|
+
goodsSku: GoodsSkuCreateReq[];
|
|
51
|
+
isSettingShow: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
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,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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/index.d.ts",
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"axios": "^1.9.0",
|
|
23
23
|
"element-plus": "^2.9.10",
|
|
24
|
-
"jmash-core": "^0.1.
|
|
25
|
-
"jmash-dict": "^0.1.
|
|
26
|
-
"jmash-rbac": "^0.1.
|
|
24
|
+
"jmash-core": "^0.1.38",
|
|
25
|
+
"jmash-dict": "^0.1.5",
|
|
26
|
+
"jmash-rbac": "^0.1.24",
|
|
27
27
|
"pinia": "^2.3.1",
|
|
28
28
|
"vue": "^3.5.13",
|
|
29
29
|
"vue-i18n": "^9.14.1",
|
|
30
30
|
"vue-router": "^4.5.1",
|
|
31
31
|
"xyvcard-emall": "^0.0.18",
|
|
32
32
|
"xyvcard-shop": "^0.0.29",
|
|
33
|
-
"xyvcard-cms": "0.0.51"
|
|
33
|
+
"xyvcard-cms": "0.0.51",
|
|
34
|
+
"xyvcard-channel": "0.0.3"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@eslint/js": "^9.16.0",
|
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { _ as G } from "./ImageUpload-Bf2jhRs5.mjs";
|
|
2
|
-
import { defineComponent as T, reactive as C, ref as j, resolveComponent as m, createBlock as y, openBlock as I, unref as o, withCtx as t, createVNode as e, createCommentVNode as z, createElementVNode as h, createTextVNode as F } from "vue";
|
|
3
|
-
import { useI18n as M } from "vue-i18n";
|
|
4
|
-
import { useRoute as Y, useRouter as W } from "vue-router";
|
|
5
|
-
import { useUserStore as f, clearEmpty as S, request as b, fileApi as H, routerUtil as J } from "jmash-core";
|
|
6
|
-
import { WangEditor as K } from "xyvcard-cms";
|
|
7
|
-
import { D as g, C as U } from "./index-Df-F10aZ.mjs";
|
|
8
|
-
import { a as Q } from "./index-CRfiEzkA.mjs";
|
|
9
|
-
import { E as q } from "./el-message-BB2-39XJ.mjs";
|
|
10
|
-
class X {
|
|
11
|
-
// A创建商品基本信息
|
|
12
|
-
create(d) {
|
|
13
|
-
return d.tenant = f().user.tenant, S(d), b({
|
|
14
|
-
url: "/v1/goods/goods_base",
|
|
15
|
-
method: "post",
|
|
16
|
-
data: d
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
// A编辑商品基本信息
|
|
20
|
-
update(d) {
|
|
21
|
-
return d.tenant = f().user.tenant, S(d), b({
|
|
22
|
-
url: "/v1/goods/goods_base",
|
|
23
|
-
method: "patch",
|
|
24
|
-
data: d
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
// 导入下载模版
|
|
28
|
-
downloadTemplate() {
|
|
29
|
-
const d = f().user.tenant;
|
|
30
|
-
return b({
|
|
31
|
-
url: `/v1/goods/goods_base/${d}/template.xlsx`,
|
|
32
|
-
method: "get",
|
|
33
|
-
responseType: "blob"
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
// A导入商品基本信息请求.
|
|
37
|
-
importExcel(d) {
|
|
38
|
-
return d.tenant = f().user.tenant, S(d), b({
|
|
39
|
-
url: "/v1/ecoupons/grant_users/import",
|
|
40
|
-
method: "patch",
|
|
41
|
-
data: d
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
const B = new X(), Z = { class: "image-card" }, de = /* @__PURE__ */ T({
|
|
46
|
-
__name: "GoodsBaseForm",
|
|
47
|
-
emits: ["submit"],
|
|
48
|
-
setup(E, { emit: d }) {
|
|
49
|
-
g.goodsSupClassEnum.useEnumValues(), g.brandListBizDict.useValues(), g.goodsCategoryListBizLayDict.useValues();
|
|
50
|
-
const { t: i } = M(), c = Y(), P = W();
|
|
51
|
-
let s = C({
|
|
52
|
-
requestId: Math.random() * 10 + "",
|
|
53
|
-
updateMask: "spuName,categoryIds,brandId,spuCode,labelIds,picUrls,sellPoint,description,appApiUrl",
|
|
54
|
-
appApiUrl: H.baseApiUrl() || location.origin,
|
|
55
|
-
categoryIds: [],
|
|
56
|
-
labelIds: [],
|
|
57
|
-
spuId: "",
|
|
58
|
-
spuName: "",
|
|
59
|
-
brandId: "",
|
|
60
|
-
spuCode: "",
|
|
61
|
-
picUrls: "",
|
|
62
|
-
sellPoint: "",
|
|
63
|
-
description: "",
|
|
64
|
-
supClass: U.GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL,
|
|
65
|
-
isBranchPickup: !1
|
|
66
|
-
});
|
|
67
|
-
c.query.spuId && Q.findById({ spuId: c.query.spuId }).then(({ data: a }) => {
|
|
68
|
-
Object.assign(s, a);
|
|
69
|
-
});
|
|
70
|
-
const w = (a, l, n) => {
|
|
71
|
-
var p;
|
|
72
|
-
const r = (p = s.picUrls) == null ? void 0 : p.split(",").filter(Boolean);
|
|
73
|
-
if (r != null && r.length) {
|
|
74
|
-
if ((r == null ? void 0 : r.length) < 1)
|
|
75
|
-
return n(new Error(i("goodsSpu.imageListsErrors")));
|
|
76
|
-
n();
|
|
77
|
-
} else return n(new Error(i("goodsSpu.picUrlsRequired")));
|
|
78
|
-
}, R = C({
|
|
79
|
-
supClass: [
|
|
80
|
-
{
|
|
81
|
-
required: !0,
|
|
82
|
-
message: i("goodsSpu.supClassRequired"),
|
|
83
|
-
trigger: "blur"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
isBranchPickup: [
|
|
87
|
-
{
|
|
88
|
-
required: !0,
|
|
89
|
-
message: i("goodsSpu.isBranchPickupRequired"),
|
|
90
|
-
trigger: "blur"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
spuName: [
|
|
94
|
-
{
|
|
95
|
-
required: !0,
|
|
96
|
-
message: i("goodsSpu.spuNameRequired"),
|
|
97
|
-
trigger: "blur"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
categoryIds: [
|
|
101
|
-
{
|
|
102
|
-
required: !0,
|
|
103
|
-
message: i("goodsSpu.categoryIdRequired"),
|
|
104
|
-
trigger: "change"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
brandId: [
|
|
108
|
-
{
|
|
109
|
-
required: !0,
|
|
110
|
-
message: i("goodsSpu.brandIdRequired"),
|
|
111
|
-
trigger: "change"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
spuCode: [
|
|
115
|
-
{
|
|
116
|
-
required: !0,
|
|
117
|
-
message: i("goodsSpu.spuCodeRequired"),
|
|
118
|
-
trigger: "change"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
picUrls: [
|
|
122
|
-
{
|
|
123
|
-
validator: w,
|
|
124
|
-
trigger: "change"
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
}), V = j(), v = d;
|
|
128
|
-
function $() {
|
|
129
|
-
var a;
|
|
130
|
-
(a = V.value) == null || a.validate((l) => {
|
|
131
|
-
if (l) {
|
|
132
|
-
if (c.query.spuId) {
|
|
133
|
-
B.update(s).then((n) => {
|
|
134
|
-
n.status === 200 && (q({
|
|
135
|
-
message: i("common.submitSuccess"),
|
|
136
|
-
type: "success"
|
|
137
|
-
}), J.closeTagView(c.fullPath, P, !1));
|
|
138
|
-
});
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
B.create(s).then((n) => {
|
|
142
|
-
n.status === 200 && (q({
|
|
143
|
-
message: i("common.submitSuccess"),
|
|
144
|
-
type: "success"
|
|
145
|
-
}), v("submit", n.data));
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
return (a, l) => {
|
|
151
|
-
const n = m("jmash-enum-radio"), r = m("el-form-item"), p = m("el-col"), _ = m("el-input"), N = m("el-tree-select"), A = m("jmash-select"), L = G, k = m("el-row"), D = m("el-button"), O = m("el-form");
|
|
152
|
-
return I(), y(O, {
|
|
153
|
-
ref_key: "goodsBaseFormRef",
|
|
154
|
-
ref: V,
|
|
155
|
-
model: o(s),
|
|
156
|
-
"label-width": "120px",
|
|
157
|
-
rules: R
|
|
158
|
-
}, {
|
|
159
|
-
default: t(() => [
|
|
160
|
-
e(k, null, {
|
|
161
|
-
default: t(() => [
|
|
162
|
-
e(p, { span: 12 }, {
|
|
163
|
-
default: t(() => [
|
|
164
|
-
e(r, {
|
|
165
|
-
label: a.$t("goodsSpu.supClass"),
|
|
166
|
-
prop: "supClass"
|
|
167
|
-
}, {
|
|
168
|
-
default: t(() => [
|
|
169
|
-
e(n, {
|
|
170
|
-
modelValue: o(s).supClass,
|
|
171
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => o(s).supClass = u),
|
|
172
|
-
data: o(g).goodsSupClassEnum.values
|
|
173
|
-
}, null, 8, ["modelValue", "data"])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 8, ["label"])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}),
|
|
180
|
-
o(s).supClass === o(U).GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL ? (I(), y(p, {
|
|
181
|
-
key: 0,
|
|
182
|
-
span: 12
|
|
183
|
-
}, {
|
|
184
|
-
default: t(() => [
|
|
185
|
-
e(r, {
|
|
186
|
-
label: a.$t("goodsSpu.isBranchPickup"),
|
|
187
|
-
prop: "isBranchPickup"
|
|
188
|
-
}, {
|
|
189
|
-
default: t(() => [
|
|
190
|
-
e(n, {
|
|
191
|
-
modelValue: o(s).isBranchPickup,
|
|
192
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) => o(s).isBranchPickup = u),
|
|
193
|
-
data: o(g).yesOrNoEnum.values
|
|
194
|
-
}, null, 8, ["modelValue", "data"])
|
|
195
|
-
]),
|
|
196
|
-
_: 1
|
|
197
|
-
}, 8, ["label"])
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
})) : z("", !0),
|
|
201
|
-
e(p, { span: 12 }, {
|
|
202
|
-
default: t(() => [
|
|
203
|
-
e(r, {
|
|
204
|
-
label: a.$t("goodsSpu.spuName"),
|
|
205
|
-
prop: "spuName"
|
|
206
|
-
}, {
|
|
207
|
-
default: t(() => [
|
|
208
|
-
e(_, {
|
|
209
|
-
modelValue: o(s).spuName,
|
|
210
|
-
"onUpdate:modelValue": l[2] || (l[2] = (u) => o(s).spuName = u),
|
|
211
|
-
placeholder: a.$t("goodsSpu.spuNameRequired"),
|
|
212
|
-
maxlength: "60",
|
|
213
|
-
"show-word-limit": "",
|
|
214
|
-
clearable: ""
|
|
215
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
}, 8, ["label"])
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
}),
|
|
222
|
-
e(p, { span: 12 }, {
|
|
223
|
-
default: t(() => [
|
|
224
|
-
e(r, {
|
|
225
|
-
label: a.$t("goodsSpu.categoryId"),
|
|
226
|
-
prop: "categoryIds"
|
|
227
|
-
}, {
|
|
228
|
-
default: t(() => [
|
|
229
|
-
e(N, {
|
|
230
|
-
modelValue: o(s).categoryIds,
|
|
231
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) => o(s).categoryIds = u),
|
|
232
|
-
data: o(g).goodsCategoryListBizLayDict.values,
|
|
233
|
-
multiple: "",
|
|
234
|
-
"render-after-expand": !1,
|
|
235
|
-
"show-checkbox": "",
|
|
236
|
-
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
237
|
-
class: "w-full"
|
|
238
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}, 8, ["label"])
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
}),
|
|
245
|
-
e(p, { span: 12 }, {
|
|
246
|
-
default: t(() => [
|
|
247
|
-
e(r, {
|
|
248
|
-
label: a.$t("goodsSpu.brandId"),
|
|
249
|
-
prop: "brandId"
|
|
250
|
-
}, {
|
|
251
|
-
default: t(() => [
|
|
252
|
-
e(A, {
|
|
253
|
-
modelValue: o(s).brandId,
|
|
254
|
-
"onUpdate:modelValue": l[4] || (l[4] = (u) => o(s).brandId = u),
|
|
255
|
-
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
256
|
-
data: o(g).brandListBizDict.values,
|
|
257
|
-
class: "w-full",
|
|
258
|
-
clearable: ""
|
|
259
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
260
|
-
]),
|
|
261
|
-
_: 1
|
|
262
|
-
}, 8, ["label"])
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
}),
|
|
266
|
-
e(p, { span: 12 }, {
|
|
267
|
-
default: t(() => [
|
|
268
|
-
e(r, {
|
|
269
|
-
label: a.$t("goodsSpu.spuCode"),
|
|
270
|
-
prop: "spuCode"
|
|
271
|
-
}, {
|
|
272
|
-
default: t(() => [
|
|
273
|
-
e(_, {
|
|
274
|
-
modelValue: o(s).spuCode,
|
|
275
|
-
"onUpdate:modelValue": l[5] || (l[5] = (u) => o(s).spuCode = u),
|
|
276
|
-
placeholder: a.$t("goodsSpu.spuCodeRequired"),
|
|
277
|
-
maxlength: "15",
|
|
278
|
-
"show-word-limit": "",
|
|
279
|
-
clearable: ""
|
|
280
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}, 8, ["label"])
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}),
|
|
287
|
-
e(p, { span: 24 }, {
|
|
288
|
-
default: t(() => [
|
|
289
|
-
e(r, {
|
|
290
|
-
label: a.$t("goodsSpu.picUrls"),
|
|
291
|
-
prop: "picUrls"
|
|
292
|
-
}, {
|
|
293
|
-
default: t(() => [
|
|
294
|
-
h("div", Z, [
|
|
295
|
-
e(L, {
|
|
296
|
-
modelValue: o(s).picUrls,
|
|
297
|
-
"onUpdate:modelValue": l[6] || (l[6] = (u) => o(s).picUrls = u),
|
|
298
|
-
limit: 6,
|
|
299
|
-
"list-type": "picture-card"
|
|
300
|
-
}, null, 8, ["modelValue"]),
|
|
301
|
-
l[9] || (l[9] = h("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
|
|
302
|
-
])
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["label"])
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}),
|
|
309
|
-
e(p, { span: 24 }, {
|
|
310
|
-
default: t(() => [
|
|
311
|
-
e(r, {
|
|
312
|
-
label: a.$t("goodsSpu.sellPoint"),
|
|
313
|
-
prop: "sellPoint"
|
|
314
|
-
}, {
|
|
315
|
-
default: t(() => [
|
|
316
|
-
e(_, {
|
|
317
|
-
type: "textarea",
|
|
318
|
-
modelValue: o(s).sellPoint,
|
|
319
|
-
"onUpdate:modelValue": l[7] || (l[7] = (u) => o(s).sellPoint = u),
|
|
320
|
-
placeholder: a.$t("goodsSpu.sellPointRequired"),
|
|
321
|
-
clearable: "",
|
|
322
|
-
rows: 4
|
|
323
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
}, 8, ["label"])
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}),
|
|
330
|
-
e(p, { span: 24 }, {
|
|
331
|
-
default: t(() => [
|
|
332
|
-
e(r, {
|
|
333
|
-
label: a.$t("goodsSpu.description"),
|
|
334
|
-
prop: "description"
|
|
335
|
-
}, {
|
|
336
|
-
default: t(() => [
|
|
337
|
-
e(o(K), {
|
|
338
|
-
modelValue: o(s).description,
|
|
339
|
-
"onUpdate:modelValue": l[8] || (l[8] = (u) => o(s).description = u),
|
|
340
|
-
style: { width: "100%" }
|
|
341
|
-
}, null, 8, ["modelValue"])
|
|
342
|
-
]),
|
|
343
|
-
_: 1
|
|
344
|
-
}, 8, ["label"])
|
|
345
|
-
]),
|
|
346
|
-
_: 1
|
|
347
|
-
})
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
}),
|
|
351
|
-
e(r, null, {
|
|
352
|
-
default: t(() => [
|
|
353
|
-
e(D, {
|
|
354
|
-
type: "primary",
|
|
355
|
-
onClick: $
|
|
356
|
-
}, {
|
|
357
|
-
default: t(() => l[10] || (l[10] = [
|
|
358
|
-
F("保存", -1)
|
|
359
|
-
])),
|
|
360
|
-
_: 1,
|
|
361
|
-
__: [10]
|
|
362
|
-
})
|
|
363
|
-
]),
|
|
364
|
-
_: 1
|
|
365
|
-
})
|
|
366
|
-
]),
|
|
367
|
-
_: 1
|
|
368
|
-
}, 8, ["model", "rules"]);
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
export {
|
|
373
|
-
de as _
|
|
374
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as o, openBlock as c } from "vue";
|
|
2
|
-
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const t = {}, e = { class: "container" };
|
|
4
|
-
function r(n, i) {
|
|
5
|
-
return c(), o("div", e, "GoodsLogisticsForm");
|
|
6
|
-
}
|
|
7
|
-
const m = /* @__PURE__ */ s(t, [["render", r]]);
|
|
8
|
-
export {
|
|
9
|
-
m as default
|
|
10
|
-
};
|