Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
a7d78302
提交
a7d78302
authored
5月 07, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(mobile/plan): 促销计划移动端_城市经理新增时默认归属人自己
同上
上级
b8a1edce
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
2 行删除
+26
-2
index.vue
src/mobile/views/promotion/plan/editing/index.vue
+26
-2
没有找到文件。
src/mobile/views/promotion/plan/editing/index.vue
浏览文件 @
a7d78302
...
...
@@ -42,7 +42,7 @@
@
click=
"selCalendar"
/>
<PickerCalendar
v-model:show=
"showCalendar"
:default-date=
"form.date"
:min-date=
"
new Date()
"
:min-date=
"
planMinDate
"
setNextMaxMonth
type=
"single"
@
confirm=
"confirmCalendar"
/>
...
...
@@ -62,6 +62,7 @@
label=
"归属人"
placeholder=
"请选择归属人"
required
:disabled=
"isCityManager"
:rules=
"[{ required: true, message: '请选择归属人' }]"
@
click=
"selEmployee"
/>
<van-field
v-model=
"form.inTime"
...
...
@@ -260,6 +261,18 @@ const confirmCalendar = (value) => {
form
.
date
=
value
showCalendar
.
value
=
false
}
const
planMinDate
=
computed
(()
=>
{
// 如果当前是城市经理,只能创建下个月计划,否则是今日到下月末
if
(
isCityManager
.
value
)
{
// 返回下个月 1 号的日期对象
const
date
=
new
Date
()
date
.
setMonth
(
date
.
getMonth
()
+
1
)
date
.
setDate
(
1
)
return
date
}
else
{
return
new
Date
()
}
})
// 选择计划
const
selPattern
=
()
=>
{
...
...
@@ -277,8 +290,19 @@ const selPattern = () => {
// 归属人
const
showEmployeePicker
=
ref
(
false
)
const
selEmployee
=
()
=>
{
showEmployeePicker
.
value
=
true
if
(
!
isCityManager
.
value
)
{
showEmployeePicker
.
value
=
true
}
}
onMounted
(()
=>
{
// 如果当前是城市经理,自动填入归属人信息
if
(
isCityManager
.
value
)
{
form
.
employeeName
=
employeeName
.
value
form
.
employeeNo
=
employeeNo
.
value
form
.
employeeId
=
userStore
().
employeeId
}
})
// 上班打卡时间
const
showInTimePicker
=
ref
(
false
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论