Skip to content

Commit 2a55d88

Browse files
author
puhui999
committed
Merge remote-tracking branch 'yudao/dev' into dev-crm
# Conflicts: # src/router/modules/remaining.ts
2 parents 9cbb3aa + 26bb847 commit 2a55d88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1157
-1269
lines changed

.env.dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ NODE_ENV=development
44
VITE_DEV=true
55

66
# 请求路径
7-
# VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
8-
VITE_BASE_URL='http://dofast.demo.huizhizao.vip:20001'
7+
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
8+
# VITE_BASE_URL='http://dofast.demo.huizhizao.vip:20001'
99

1010
# 上传路径
1111
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
@@ -35,4 +35,4 @@ VITE_OUT_DIR=dist
3535
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
3636

3737
# 验证码的开关
38-
VITE_APP_CAPTCHA_ENABLE=true
38+
VITE_APP_CAPTCHA_ENABLE=false

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"pinia": "^2.1.7",
5858
"qrcode": "^1.5.3",
5959
"qs": "^6.11.2",
60-
"sortablejs": "^1.15.0",
6160
"steady-xml": "^0.1.0",
6261
"url": "^0.11.3",
6362
"video.js": "^7.21.5",
@@ -81,7 +80,6 @@
8180
"@types/nprogress": "^0.2.3",
8281
"@types/qrcode": "^1.5.5",
8382
"@types/qs": "^6.9.10",
84-
"@types/sortablejs": "^1.15.5",
8583
"@typescript-eslint/eslint-plugin": "^6.11.0",
8684
"@typescript-eslint/parser": "^6.11.0",
8785
"@unocss/transformer-variant-group": "^0.57.4",

src/api/crm/product/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ export const deleteProduct = async (id: number) => {
4141
export const exportProduct = async (params) => {
4242
return await request.download({ url: `/crm/product/export-excel`, params })
4343
}
44+
45+
// 查询产品操作日志
46+
export const getOperateLogPage = async (params: any) => {
47+
return await request.get({ url: '/crm/product/operate-log-page', params })
48+
}

src/api/mall/product/category.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export interface CategoryVO {
2020
* 移动端分类图
2121
*/
2222
picUrl: string
23-
/**
24-
* PC 端分类图
25-
*/
26-
bigPicUrl?: string
2723
/**
2824
* 分类排序
2925
*/

src/api/mall/product/property.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ export const getPropertyPage = (params: PageParam) => {
6565
return request.get({ url: '/product/property/page', params })
6666
}
6767

68-
// 获得属性项列表
69-
export const getPropertyList = (params: any) => {
70-
return request.get({ url: '/product/property/list', params })
71-
}
72-
73-
// 获得属性项列表
74-
export const getPropertyListAndValue = (data: any) => {
75-
return request.post({ url: '/product/property/get-value-list', data })
76-
}
77-
7868
// ------------------------ 属性值 -------------------
7969

8070
// 获得属性值分页

src/api/mall/product/spu.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,29 @@ export interface GiveCouponTemplate {
3333
export interface Spu {
3434
id?: number
3535
name?: string // 商品名称
36-
categoryId?: number | undefined // 商品分类
36+
categoryId?: number // 商品分类
3737
keyword?: string // 关键字
3838
unit?: number | undefined // 单位
3939
picUrl?: string // 商品封面图
4040
sliderPicUrls?: string[] // 商品轮播图
4141
introduction?: string // 商品简介
42+
deliveryTypes?: number[] // 配送方式
4243
deliveryTemplateId?: number | undefined // 运费模版
43-
brandId?: number | undefined // 商品品牌编号
44+
brandId?: number // 商品品牌编号
4445
specType?: boolean // 商品规格
4546
subCommissionType?: boolean // 分销类型
4647
skus?: Sku[] // sku数组
4748
description?: string // 商品详情
4849
sort?: number // 商品排序
4950
giveIntegral?: number // 赠送积分
5051
virtualSalesCount?: number // 虚拟销量
51-
recommendHot?: boolean // 是否热卖
52-
recommendBenefit?: boolean // 是否优惠
53-
recommendBest?: boolean // 是否精品
54-
recommendNew?: boolean // 是否新品
55-
recommendGood?: boolean // 是否优品
5652
price?: number // 商品价格
5753
salesCount?: number // 商品销量
5854
marketPrice?: number // 市场价
5955
costPrice?: number // 成本价
6056
stock?: number // 商品库存
6157
createTime?: Date // 商品创建时间
6258
status?: number // 商品状态
63-
activityOrders: number[] // 活动排序
6459
}
6560

6661
// 获得 Spu 列表

src/api/mall/promotion/diy/page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface DiyPageVO {
55
templateId?: number
66
name: string
77
remark: string
8-
previewImageUrls: string[]
8+
previewPicUrls: string[]
99
property: string
1010
}
1111

src/api/mall/promotion/diy/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface DiyTemplateVO {
77
used: boolean
88
usedTime?: Date
99
remark: string
10-
previewImageUrls: string[]
10+
previewPicUrls: string[]
1111
property: string
1212
}
1313

src/api/mall/promotion/reward/rewardActivity.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import request from '@/config/axios'
22

33
export interface DiscountActivityVO {
4-
id?:number,
4+
id?: number
55
name?: string
6-
startTime?:Date
7-
endTime?:Date
8-
remark?:string
9-
conditionType?:number
10-
productScope?:number
11-
productSpuIds?:number[]
12-
rules?:DiscountProductVO[]
6+
startTime?: Date
7+
endTime?: Date
8+
remark?: string
9+
conditionType?: number
10+
productScope?: number
11+
productSpuIds?: number[]
12+
rules?: DiscountProductVO[]
1313
}
14-
//优惠规则
14+
15+
// 优惠规则
1516
export interface DiscountProductVO {
1617
limit: number
1718
discountPrice: number
@@ -21,23 +22,26 @@ export interface DiscountProductVO {
2122
couponCounts: number[]
2223
}
2324

24-
2525
// 新增满减送活动
2626
export const createRewardActivity = async (data: DiscountActivityVO) => {
2727
return await request.post({ url: '/promotion/reward-activity/create', data })
2828
}
29+
2930
// 更新满减送活动
3031
export const updateRewardActivity = async (data: DiscountActivityVO) => {
3132
return await request.put({ url: '/promotion/reward-activity/update', data })
3233
}
34+
3335
// 查询满减送活动列表
3436
export const getRewardActivityPage = async (params) => {
3537
return await request.get({ url: '/promotion/reward-activity/page', params })
3638
}
39+
3740
// 查询满减送活动详情
38-
export const getReward = async (id:number) => {
39-
return await request.get({ url: '/promotion/reward-activity/get?id='+id, })
41+
export const getReward = async (id: number) => {
42+
return await request.get({ url: '/promotion/reward-activity/get?id=' + id })
4043
}
44+
4145
// 删除限时折扣活动
4246
export const deleteRewardActivity = async (id: number) => {
4347
return await request.delete({ url: '/promotion/reward-activity/delete?id=' + id })

src/components/DiyEditor/components/ComponentContainerProperty.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<template #tip>建议宽度 750px</template>
2424
</UploadImg>
2525
</el-form-item>
26-
<el-tree :data="treeData" :expand-on-click-node="false">
26+
<el-tree :data="treeData" :expand-on-click-node="false" default-expand-all>
2727
<template #default="{ node, data }">
2828
<el-form-item
2929
:label="data.label"
@@ -43,7 +43,7 @@
4343
</el-form-item>
4444
</template>
4545
</el-tree>
46-
<slot name="style" :formData="formData"></slot>
46+
<slot name="style" :style="formData"></slot>
4747
</el-form>
4848
</el-card>
4949
</el-tab-pane>

0 commit comments

Comments
 (0)