Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
6c0cd156
提交
6c0cd156
authored
8月 27, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(mobile/examine): 修改:勤策移动端页面促销稽核核查页面增加修改删除给顶部通知提示效果,修改为 vant 组件提示框
上级
25513e7f
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
32 行增加
和
27 行删除
+32
-27
index.vue
src/views/mobile/views/examine/index.vue
+0
-0
index.vue
src/views/mobile/views/menu/index.vue
+1
-7
index.vue
src/views/mobile/views/promotion/plan/detail/index.vue
+1
-1
taskList.vue
src/views/mobile/views/promotion/plan/detail/taskList.vue
+5
-2
index.vue
src/views/mobile/views/promotion/plan/editing/index.vue
+2
-2
index.vue
src/views/mobile/views/promotion/plan/index/index.vue
+23
-15
没有找到文件。
src/views/mobile/views/examine/index.vue
浏览文件 @
6c0cd156
差异被折叠。
点击展开。
src/views/mobile/views/menu/index.vue
浏览文件 @
6c0cd156
...
...
@@ -22,7 +22,6 @@
<
script
setup
>
const
router
=
useRouter
();
const
{
proxy
}
=
getCurrentInstance
();
const
modules
=
[
{
title
:
'CP 活动'
,
...
...
@@ -39,12 +38,7 @@ const modules = [
]
const
handleIconClick
=
(
icon
)
=>
{
// 如果是促销稽核,则提示本板块在开发中
if
(
icon
.
name
===
'促销稽核'
)
{
proxy
.
$modal
.
msgWarning
(
'本板块在开发中'
);
}
else
{
router
.
push
(
icon
.
to
)
}
router
.
push
(
icon
.
to
)
};
</
script
>
...
...
src/views/mobile/views/promotion/plan/detail/index.vue
浏览文件 @
6c0cd156
...
...
@@ -230,7 +230,7 @@ const clickExamine = async () => {
employeeNo
:
userStore
().
userInfo
.
userName
,
// 稽查人工号
}
)
if
(
!
result
.
data
)
{
return
proxy
.
$modal
.
msgError
(
'创建稽查任务失败'
)
return
showNotify
({
type
:
'error'
,
message
:
'创建稽查任务失败'
}
)
}
newExamined
.
value
=
result
.
data
.
id
}
...
...
src/views/mobile/views/promotion/plan/detail/taskList.vue
浏览文件 @
6c0cd156
...
...
@@ -103,10 +103,13 @@ const showDelete = (row) => {
// 点击删除
const
deleteView
=
(
item
,
index
)
=>
{
// 确认是否删除
proxy
.
$modal
.
confirm
(
'确认删除该记录吗?'
).
then
(
async
()
=>
{
showConfirmDialog
({
title
:
'系统提示'
,
message
:
'确认删除该记录吗?'
}).
then
(
async
()
=>
{
// 删除
await
deletePromotionSystemAPI
(
item
.
id
)
proxy
.
$modal
.
msgSuccess
(
'删除成功'
)
showNotify
({
type
:
'success'
,
message
:
'删除成功'
}
)
props
.
planList
.
splice
(
index
,
1
)
emits
(
'refresh'
)
proxy
.
eventBus
.
emit
(
'delPromotionTaskEvent'
)
...
...
src/views/mobile/views/promotion/plan/editing/index.vue
浏览文件 @
6c0cd156
...
...
@@ -353,10 +353,10 @@ const onSubmit = async () => {
if
(
planId
)
{
const
res
=
await
updatePlanByWebAPI
(
obj
)
proxy
.
$modal
.
msgSuccess
(
res
.
msg
)
showNotify
({
type
:
'success'
,
message
:
res
.
msg
}
)
}
else
{
const
res
=
await
addPlanByWebAPI
(
obj
)
proxy
.
$modal
.
msgSuccess
(
res
.
msg
)
showNotify
({
type
:
'success'
,
message
:
res
.
msg
}
)
}
clickBack
()
...
...
src/views/mobile/views/promotion/plan/index/index.vue
浏览文件 @
6c0cd156
...
...
@@ -197,11 +197,11 @@ const querySearch = () => {
// 变更计划
const
editPlan
=
(
row
)
=>
{
if
(
!
checkPlanExpire
(
row
))
{
return
proxy
.
$modal
.
msgWarning
(
'无法变更,已执行或之前计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'无法变更,已执行或之前计划'
}
)
}
// 日期小于等于今日,无法变更
if
(
!
checkPlanChangeExpire
(
row
))
{
return
proxy
.
$modal
.
msgWarning
(
'无法变更,日期小于等于今日'
)
return
showNotify
({
type
:
'warning'
,
message
:
'无法变更,日期小于等于今日'
}
)
}
router
.
push
(
`/m/promotion_plan_editing/${row.id
}
`
)
}
...
...
@@ -209,14 +209,18 @@ const editPlan = (row) => {
// 删除计划
const
deletePlan
=
(
row
)
=>
{
if
(
!
checkPlanExpire
(
row
))
{
return
proxy
.
$modal
.
msgWarning
(
'无法删除,已执行或之前计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'无法删除,已执行或之前计划'
}
);
}
proxy
.
$modal
.
confirm
(
`确认删除计划吗?`
).
then
(
async
()
=>
{
showConfirmDialog
({
title
:
'系统提示'
,
message
:
'确认删除计划吗?'
}
).
then
(
async
()
=>
{
await
deletePlanAPI
({
planIds
:
[
row
.
id
],
employeeNo
:
empInfo
.
empNo
}
)
proxy
.
$modal
.
msgSuccess
(
'删除成功'
)
showNotify
({
type
:
'success'
,
message
:
'删除成功'
}
)
// 重新获取列表
onRefresh
()
}
)
...
...
@@ -239,21 +243,24 @@ const onLongPress = () => {
const
clickDelSome
=
()
=>
{
const
ids
=
planList
.
value
.
filter
(
item
=>
item
.
checked
).
map
(
item
=>
item
.
id
)
if
(
ids
.
length
===
0
)
{
return
proxy
.
$modal
.
msgWarning
(
'请选择要删除的计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'请选择要删除的计划'
}
)
}
proxy
.
$modal
.
confirm
(
`确认删除${ids.length
}
条计划吗?`
).
then
(
async
()
=>
{
showConfirmDialog
({
title
:
'系统提示'
,
message
:
`确认删除${ids.length
}
条计划吗?`
}
).
then
(
async
()
=>
{
// 循环判断计划是否含有以前和执行中的
for
(
let
i
=
0
;
i
<
ids
.
length
;
i
++
)
{
const
item
=
planList
.
value
.
find
(
o
=>
o
.
id
===
ids
[
i
])
if
(
!
checkPlanExpire
(
item
))
{
return
proxy
.
$modal
.
msgWarning
(
'无法删除,已执行或之前计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'无法删除,已执行或之前计划'
}
)
}
}
await
deletePlanAPI
({
planIds
:
ids
,
employeeNo
:
empInfo
.
empNo
}
)
proxy
.
$modal
.
msgSuccess
(
'删除成功'
)
showNotify
({
type
:
'success'
,
message
:
'删除成功'
}
)
showSelect
.
value
=
false
onRefresh
()
}
)
...
...
@@ -264,12 +271,12 @@ const showPickerBelong = ref(false)
const
clickChangeBelong
=
()
=>
{
const
ids
=
planList
.
value
.
filter
(
item
=>
item
.
checked
).
map
(
item
=>
item
.
id
)
if
(
ids
.
length
===
0
)
{
return
proxy
.
$modal
.
msgWarning
(
'请选择要修改归属人的计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'请选择要修改归属人的计划'
}
)
}
for
(
let
i
=
0
;
i
<
ids
.
length
;
i
++
)
{
const
item
=
planList
.
value
.
find
(
o
=>
o
.
id
===
ids
[
i
])
if
(
!
checkPlanExpire
(
item
))
{
return
proxy
.
$modal
.
msgWarning
(
'无法修改,已执行或之前计划'
)
return
showNotify
({
type
:
'warning'
,
message
:
'无法修改,已执行或之前计划'
}
)
}
}
showPickerBelong
.
value
=
true
...
...
@@ -284,8 +291,7 @@ const confirmPickerBelong = async (val) => {
operName
:
empInfo
.
empName
,
planIds
:
planList
.
value
.
filter
(
item
=>
item
.
checked
).
map
(
item
=>
item
.
id
)
}
)
proxy
.
$modal
.
msgSuccess
(
'修改成功'
)
showNotify
({
type
:
'success'
,
message
:
'修改成功'
}
)
onRefresh
()
}
...
...
@@ -323,7 +329,7 @@ const addNewPlan = () => {
if
(
proxy
.
checkPermi
([
'promotion:plan:create'
]))
{
router
.
push
(
'/m/promotion_plan_editing'
)
}
else
{
proxy
.
$modal
.
msgWarning
(
'规定日期内_无法新增计划'
)
showNotify
({
type
:
'warning'
,
message
:
'规定日期内_无法新增计划'
}
)
}
}
<
/script
>
...
...
@@ -336,7 +342,9 @@ const addNewPlan = () => {
/* 头部返回按钮 */
::
v
-
deep
(.
van
-
nav
-
bar
)
{
.
van
-
icon
,
.
van
-
nav
-
bar__text
{
.
van
-
icon
,
.
van
-
nav
-
bar__text
{
color
:
var
(
--
main
-
color
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论