Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
fb471972
提交
fb471972
authored
6月 19, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(views/effectiveplan): 促销PC端_城市经理变更计划的时候只能是明日到月底的时间范围
同上
上级
8de749f5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
6 行删除
+13
-6
.env.development
.env.development
+0
-2
effectivePlan.vue
src/views/promotion/plan/effectivePlan.vue
+13
-4
没有找到文件。
.env.development
浏览文件 @
fb471972
...
@@ -16,6 +16,5 @@ VITE_APP_REDIRECT_URL = 'http://localhost:8085'
...
@@ -16,6 +16,5 @@ VITE_APP_REDIRECT_URL = 'http://localhost:8085'
# 积木报表服务地址
# 积木报表服务地址
VITE_APP_REPORT_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'
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/views/promotion/plan/effectivePlan.vue
浏览文件 @
fb471972
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
<el-time-picker
v-model=
"addOrEditPlanForm.inTime"
<el-time-picker
v-model=
"addOrEditPlanForm.inTime"
placeholder=
"选择时间"
placeholder=
"选择时间"
format=
"HH:mm"
format=
"HH:mm"
value-format=
"HH:mm:ss"
/>
value-format=
"HH:mm:ss"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -319,7 +319,7 @@ import { v4 as uuidv4 } from 'uuid';
...
@@ -319,7 +319,7 @@ import { v4 as uuidv4 } from 'uuid';
import
{
getPlanListAPI
,
uploadFileToOSSAPI
,
addPlanAPI
,
savePlanAPI
,
deletePlanAPI
,
addPlanByRoleAPI
,
getChargeListAPI
,
addPlanByWebAPI
,
updatePlanByWebAPI
,
getPlanStoreListAPI
,
updatePlanAPI
,
batchUpdatePlanAPI
}
from
'@/api'
import
{
getPlanListAPI
,
uploadFileToOSSAPI
,
addPlanAPI
,
savePlanAPI
,
deletePlanAPI
,
addPlanByRoleAPI
,
getChargeListAPI
,
addPlanByWebAPI
,
updatePlanByWebAPI
,
getPlanStoreListAPI
,
updatePlanAPI
,
batchUpdatePlanAPI
}
from
'@/api'
import
{
checkPlanExpire
,
checkPlanChangeExpire
}
from
'@/hooks'
import
{
checkPlanExpire
,
checkPlanChangeExpire
}
from
'@/hooks'
import
userStore
from
'@/store/modules/user'
import
userStore
from
'@/store/modules/user'
import
{
PROMOTION_ACTIVITY_MODE_LIST
,
getPromotionActiveStatus
}
from
'@/dicts'
import
{
PROMOTION_ACTIVITY_MODE_LIST
,
getPromotionActiveStatus
}
from
'@/dicts'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
const
props
=
defineProps
({
const
props
=
defineProps
({
...
@@ -539,8 +539,17 @@ const remoteStoreMethod = (query) => {
...
@@ -539,8 +539,17 @@ const remoteStoreMethod = (query) => {
// 定义禁用日期的函数
// 定义禁用日期的函数
const
disabledDateFn
=
(
time
)
=>
{
const
disabledDateFn
=
(
time
)
=>
{
// 城市经理
只能新增下个月一整个月的
// 城市经理
if
(
isCityManager
)
{
if
(
isCityManager
)
{
// 如果是变更状态,则只能修改次日到本月底最后一日
if
(
addOrEditPlanForm
.
value
.
id
)
{
const
now
=
new
Date
();
const
nextDay
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
(),
now
.
getDate
()
+
1
)
const
end
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
+
1
,
0
);
return
time
.
getTime
()
<
nextDay
.
getTime
()
||
time
.
getTime
()
>
end
.
getTime
()
}
// 如果是新增状态,只能新增下个月一整个月的
const
now
=
new
Date
();
const
now
=
new
Date
();
const
start
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
+
1
,
1
);
const
start
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
+
1
,
1
);
const
end
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
+
2
,
0
);
const
end
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
+
2
,
0
);
...
@@ -1053,7 +1062,7 @@ defineExpose({
...
@@ -1053,7 +1062,7 @@ defineExpose({
}
}
/* 工资和杂费输入框 */
/* 工资和杂费输入框 */
.el-input-number
{
.el-input-number
{
width
:
170px
;
width
:
170px
;
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论