Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
540b7ef0
提交
540b7ef0
authored
5月 15, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(promotion/plan): 拆分促销计划组件独立完成
同上
上级
4c0b76d4
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
45 行增加
和
1 行删除
+45
-1
.env.development
.env.development
+5
-0
.env.production
.env.production
+7
-0
.env.staging
.env.staging
+7
-0
index.js
src/dicts/index.js
+17
-0
user.js
src/store/modules/user.js
+1
-0
effectivePlan.vue
src/views/promotion/plan/effectivePlan.vue
+0
-0
index.vue
src/views/promotion/plan/index.vue
+8
-1
invalidPlan.vue
src/views/promotion/plan/invalidPlan.vue
+0
-0
没有找到文件。
.env.development
浏览文件 @
540b7ef0
...
...
@@ -15,3 +15,7 @@ VITE_APP_PROMOTION = '/promotion-api' # 促销
VITE_APP_REDIRECT_URL = 'http://localhost:8085'
# 积木报表服务地址
VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn'
# 模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF3.0.xlsx'
\ No newline at end of file
.env.production
浏览文件 @
540b7ef0
...
...
@@ -13,3 +13,9 @@ VITE_APP_PROMOTION = 'https://promotion.wxl66.cn' # 促销
VITE_APP_REDIRECT_URL = 'https://sfa.wxl66.cn/link/'
# 积木报表服务地址
VITE_APP_REPORT_URL = 'https://sfa.wxl66.cn'
# 模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF3.0.xlsx'
\ No newline at end of file
.env.staging
浏览文件 @
540b7ef0
...
...
@@ -13,3 +13,9 @@ VITE_APP_PROMOTION = '/promotion-api' # 促销
VITE_APP_REDIRECT_URL = 'https://sfa-qa.wxl66.cn/'
# 积木报表服务地址
VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn'
# 模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF3.0.xlsx'
\ No newline at end of file
src/dicts/index.js
浏览文件 @
540b7ef0
...
...
@@ -15,3 +15,19 @@ export const PROMOTION_STATUS = {
export
const
getPromotionActiveStatus
=
(
statusNum
)
=>
{
return
PROMOTION_STATUS
[
statusNum
]
||
{
label
:
'未知状态'
,
value
:
''
}
}
// 促销活动模式
export
const
PROMOTION_ACTIVITY_MODE_LIST
=
[
{
label
:
'单点CP'
,
value
:
'单点CP'
},
{
label
:
'常规MINI秀'
,
value
:
'常规MINI秀'
},
{
label
:
'校园活动'
,
value
:
'校园活动'
}
]
\ No newline at end of file
src/store/modules/user.js
浏览文件 @
540b7ef0
...
...
@@ -108,6 +108,7 @@ export default defineStore(
return
{
empId
:
state
.
userInfo
.
userId
,
// 员工 id
empNo
:
state
.
userInfo
.
userName
,
// 员工工号
empName
:
state
.
userInfo
.
nickName
,
// 员工昵称名字
}
},
...
...
src/views/promotion/plan/effectivePlan.vue
浏览文件 @
540b7ef0
差异被折叠。
点击展开。
src/views/promotion/plan/index.vue
浏览文件 @
540b7ef0
...
...
@@ -15,7 +15,7 @@
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:shortcuts=
"pickerOptions"
@
change=
"
getPlanList
"
/>
@
change=
"
selActivityDate
"
/>
</el-form-item>
<el-form-item
label=
"活动状态"
prop=
"planStatus"
>
...
...
@@ -140,6 +140,7 @@
<
script
setup
>
import
{
getProCityAPI
,
getDealerListAPI
,
getWarZoneListAPI
,
getChargeListAPI
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
userStore
from
'@/store/modules/user'
import
{
useDatePickerOptions
}
from
'@/hooks'
import
{
PROMOTION_STATUS
}
from
'@/dicts'
...
...
@@ -163,6 +164,12 @@ const queryParams = reactive({
})
/************* 选择日期 *************/
const
{
recentPickerOptions
:
pickerOptions
}
=
useDatePickerOptions
()
const
selActivityDate
=
()
=>
{
if
(
queryParams
.
activityDate
?.
length
>
0
)
{
queryParams
.
activityDate
=
queryParams
.
activityDate
.
map
(
item
=>
parseTime
(
item
,
'{y}-{m}-{d}'
))
}
getPlanList
()
}
/************* 选择状态 *************/
const
taskStatusList
=
ref
(
Object
.
values
(
PROMOTION_STATUS
))
...
...
src/views/promotion/plan/invalidPlan.vue
0 → 100644
浏览文件 @
540b7ef0
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论