Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
73d33d7f
提交
73d33d7f
authored
8月 26, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(mobile/promotion): 修复:移动端促销计划新增和编辑时,最后 2 个表单填写后错误提示消息不消失问题
上级
a6f465dd
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
42 行增加
和
26 行删除
+42
-26
vant.scss
src/assets/styles/vant.scss
+10
-2
main.js
src/views/mobile/main.js
+2
-0
index.vue
src/views/mobile/views/promotion/plan/detail/index.vue
+23
-18
index.vue
src/views/mobile/views/promotion/plan/editing/index.vue
+7
-6
没有找到文件。
src/assets/styles/vant.scss
浏览文件 @
73d33d7f
.van-floating-bubble
{
:root
{
background
:
var
(
--
main-color
)
!
important
;
// 主色调改为暗红色(可根据需求调整具体色值)
--van-primary-color
:
#f12528
;
// 深色模式下的主色调
--van-primary-color-dark
:
#f12528
;
// 按钮激活状态颜色
--van-button-primary-background
:
#f12528
;
// 链接颜色
--van-link-color
:
#f12528
;
}
}
\ No newline at end of file
src/views/mobile/main.js
浏览文件 @
73d33d7f
...
@@ -6,6 +6,8 @@ import PickerSearch from './components/PickerSearch'
...
@@ -6,6 +6,8 @@ import PickerSearch from './components/PickerSearch'
import
PickerCalendar
from
'./components/PickerCalendar'
import
PickerCalendar
from
'./components/PickerCalendar'
// 指令
// 指令
import
longPress
from
'./directive/touch'
import
longPress
from
'./directive/touch'
// 覆盖样式
import
'@/assets/styles/vant.scss'
// 只有在移动端引入
// 只有在移动端引入
if
(
isMobile
())
{
if
(
isMobile
())
{
...
...
src/views/mobile/views/promotion/plan/detail/index.vue
浏览文件 @
73d33d7f
...
@@ -212,25 +212,30 @@ getPlanDetail()
...
@@ -212,25 +212,30 @@ getPlanDetail()
// 点击稽查按钮
// 点击稽查按钮
const
clickExamine
=
async
()
=>
{
const
clickExamine
=
async
()
=>
{
// 确认是否开始稽查
// 确认是否开始稽查
proxy
.
$modal
.
confirm
(
`确认 ${examined.value ? '编辑' : '创建'
}
稽查任务吗?`
).
then
(
async
()
=>
{
showConfirmDialog
({
// 如果稽查 ID 是空则创建一个
title
:
'系统提示'
,
if
(
!
examined
.
value
)
{
message
:
const
result
=
await
createExamine
({
'确认创建稽查任务吗?'
// ...planDetail.value,
id
:
null
,
planId
:
planDetail
.
value
.
id
,
planStatus
:
planDetail
.
value
.
planStatus
===
0
?
'否'
:
'是'
,
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeNo
:
userStore
().
userInfo
.
userName
,
// 稽查人工号
}
)
if
(
!
result
.
data
)
{
return
proxy
.
$modal
.
msgError
(
'创建稽查任务失败'
)
}
newExamined
.
value
=
result
.
data
.
id
}
router
.
push
({
path
:
`/m/examine/${examined?.value || newExamined.value
}
`
}
)
}
)
}
)
.
then
(
async
()
=>
{
// 如果稽查 ID 是空则创建一个
if
(
!
examined
.
value
)
{
const
result
=
await
createExamine
({
// ...planDetail.value,
id
:
null
,
planId
:
planDetail
.
value
.
id
,
planStatus
:
planDetail
.
value
.
planStatus
===
0
?
'否'
:
'是'
,
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeNo
:
userStore
().
userInfo
.
userName
,
// 稽查人工号
}
)
if
(
!
result
.
data
)
{
return
proxy
.
$modal
.
msgError
(
'创建稽查任务失败'
)
}
newExamined
.
value
=
result
.
data
.
id
}
router
.
push
({
path
:
`/m/examine/${examined?.value || newExamined.value
}
`
}
)
}
)
}
}
const
clickBack
=
()
=>
{
const
clickBack
=
()
=>
{
...
...
src/views/mobile/views/promotion/plan/editing/index.vue
浏览文件 @
73d33d7f
...
@@ -110,6 +110,7 @@
...
@@ -110,6 +110,7 @@
:error-message=
"errorTemWlSctMessage"
>
:error-message=
"errorTemWlSctMessage"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
v-model=
"form.temWlSct"
<van-radio-group
v-model=
"form.temWlSct"
@
change=
"validatorTemWlSct"
direction=
"horizontal"
>
direction=
"horizontal"
>
<van-radio
icon-size=
"16px"
<van-radio
icon-size=
"16px"
name=
"有"
>
有
</van-radio>
name=
"有"
>
有
</van-radio>
...
@@ -282,16 +283,15 @@ const errorTemWlSctMessage = ref('')
...
@@ -282,16 +283,15 @@ const errorTemWlSctMessage = ref('')
const
errorPrdClassMessage
=
ref
(
''
)
const
errorPrdClassMessage
=
ref
(
''
)
// 校验午休结束时间
// 校验午休结束时间
const
validatorNoonInTime
=
(
value
,
obj
)
=>
{
const
validatorNoonInTime
=
(
value
,
obj
)
=>
{
console
.
log
(
value
,
'午休结束判断该'
)
console
.
log
(
form
.
noonOutTime
.
length
>
0
,
'午休结束判断该'
)
if
(
form
.
noonOutTime
.
length
>
0
)
{
if
(
form
.
noonOutTime
.
length
>
0
)
{
if
(
!
value
)
{
if
(
!
value
)
{
errorNoonInTimeMessage
.
value
=
'请选择午休结束时间'
errorNoonInTimeMessage
.
value
=
'请选择午休结束时间'
return
false
return
false
}
else
if
(
value
<=
form
.
noonOutTime
)
{
errorNoonInTimeMessage
.
value
=
'午休结束时间必须大于午休开始时间'
return
false
}
}
}
if
(
value
<=
form
.
noonOutTime
)
{
errorNoonInTimeMessage
.
value
=
'午休结束时间必须大于午休开始时间'
return
false
}
else
{
}
else
{
errorNoonInTimeMessage
.
value
=
''
errorNoonInTimeMessage
.
value
=
''
return
true
return
true
...
@@ -300,7 +300,7 @@ const validatorNoonInTime = (value, obj) => {
...
@@ -300,7 +300,7 @@ const validatorNoonInTime = (value, obj) => {
// 校验试吃台
// 校验试吃台
const
validatorTemWlSct
=
(
value
,
obj
)
=>
{
const
validatorTemWlSct
=
(
value
,
obj
)
=>
{
if
(
!
value
)
{
if
(
!
value
)
{
errorTemWlSctMessage
.
value
=
obj
.
message
errorTemWlSctMessage
.
value
=
obj
?
.
message
return
false
return
false
}
else
{
}
else
{
errorTemWlSctMessage
.
value
=
''
errorTemWlSctMessage
.
value
=
''
...
@@ -521,6 +521,7 @@ const selPrdClass = () => {
...
@@ -521,6 +521,7 @@ const selPrdClass = () => {
{
text
:
'黑鸭'
,
value
:
'黑鸭'
},
{
text
:
'黑鸭'
,
value
:
'黑鸭'
},
{
text
:
'散称'
,
value
:
'散称'
},
{
text
:
'散称'
,
value
:
'散称'
},
]
]
errorPrdClassMessage
.
value
=
''
}
}
// 重置表单
// 重置表单
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论