Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
eb92797a
提交
eb92797a
authored
4月 22, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(mobile/plan): 修复城市经理只能默认看到自己,添加和查询自己的需求
同上
上级
6ae9746a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
17 行删除
+22
-17
index.vue
src/mobile/views/promotion/plan/index/index.vue
+20
-16
plan-search.vue
src/mobile/views/promotion/plan/index/plan-search.vue
+2
-1
没有找到文件。
src/mobile/views/promotion/plan/index/index.vue
浏览文件 @
eb92797a
...
...
@@ -60,7 +60,7 @@
defineOptions
({
name
:
'm_promotion_plan'
}
)
import
userStore
from
'@/store/modules/user'
import
{
parseTime
}
from
'@/utils'
import
{
checkPlanExpire
}
from
'@/hooks'
import
{
getPromotionActiveStatus
}
from
'@/dicts'
...
...
@@ -69,6 +69,8 @@ import PlanSearch from './plan-search.vue'
const
{
proxy
}
=
getCurrentInstance
();
const
router
=
useRouter
()
const
promotionIdentity
=
computed
(()
=>
userStore
().
promotionIdentity
)
const
employeeNo
=
computed
(()
=>
userStore
().
employeeNo
)
// 搜索弹窗
const
showSearch
=
ref
(
false
)
...
...
@@ -108,20 +110,19 @@ const getEmployeeList = async () => {
}
}
)
}
getEmployeeList
()
const
getPlanList
=
async
({
activityStartDate
,
activityEndDate
,
planStatus
,
employeeId
,
storeNameLike
}
=
{
}
)
=>
{
const
getPlanList
=
async
({
activityStartDate
,
activityEndDate
,
planStatus
,
employeeId
,
storeNameLike
}
=
{
}
)
=>
{
const
res
=
await
getPlanListAPI
({
...
query
,
queryParams
:
{
activityStartDate
:
parseTime
(
activityStartDate
,
"{y
}
-{m
}
-{d
}
"
),
activityEndDate
:
parseTime
(
activityEndDate
,
"{y
}
-{m
}
-{d
}
"
),
planStatus
:
planColumns
.
find
(
item
=>
item
.
text
===
planStatus
)?.
value
,
employeeId
,
employeeId
:
promotionIdentity
.
value
?
allEmpolyeeList
.
value
.
find
(
o
=>
o
.
employeeNo
===
employeeNo
.
value
)?.
value
:
employeeId
,
storeNameLike
}
,
}
)
if
(
loading
.
value
)
{
planList
.
value
=
[...
planList
.
value
,
...
res
.
data
.
records
]
finished
.
value
=
res
.
data
.
records
.
length
===
0
...
...
@@ -130,7 +131,7 @@ const getPlanList = async ({activityStartDate, activityEndDate, planStatus, empl
planList
.
value
=
res
.
data
.
records
}
}
getPlanList
()
const
onLoad
=
()
=>
{
loading
.
value
=
true
...
...
@@ -164,7 +165,7 @@ const deletePlan = (row) => {
proxy
.
$modal
.
confirm
(
`确认删除计划吗?`
).
then
(
async
()
=>
{
await
deletePlanAPI
({
planIds
:
[
row
.
id
],
employeeNo
:
useuserStore
().
employeeNo
employeeNo
:
employeeNo
.
value
}
)
proxy
.
$modal
.
msgSuccess
(
'删除成功'
)
// 找到 row 在数组里第几条删除
...
...
@@ -173,6 +174,11 @@ const deletePlan = (row) => {
}
)
}
const
init
=
async
()
=>
{
await
getEmployeeList
()
getPlanList
()
}
init
()
<
/script
>
<
style
scoped
...
...
@@ -190,13 +196,11 @@ const deletePlan = (row) => {
.
van
-
cell
{
margin
-
top
:
10
px
;
::
v
-
deep
(.
van
-
cell__label
)
{
.
van
-
cell__label
{
font
-
size
:
14
px
!
important
;
}
::
v
-
deep
(.
employee
)
{
.
employee
{
margin
-
bottom
:
5
px
!
important
;
}
...
...
@@ -209,13 +213,13 @@ const deletePlan = (row) => {
}
}
::
v
-
deep
(.
van
-
swipe
-
cell__right
)
{
display
:
flex
;
.
van
-
swipe
-
cell__right
{
display
:
flex
;
button
{
height
:
100
%
;
}
button
{
height
:
100
%
;
}
}
}
}
}
...
...
src/mobile/views/promotion/plan/index/plan-search.vue
浏览文件 @
eb92797a
...
...
@@ -161,6 +161,7 @@ watch(() => props.allEmpolyeeList, (newValue) => {
query
.
employeeId
=
obj
.
value
}
})
// 搜索归属人
const
searchEmployee
=
(
searchName
)
=>
{
showEmployeeList
.
value
=
props
.
allEmpolyeeList
.
filter
(
item
=>
{
return
item
.
text
.
includes
(
searchName
)
...
...
@@ -182,7 +183,7 @@ const resetFn = () => {
query
.
activityStartDate
=
''
query
.
activityEndDate
=
''
query
.
planStatus
=
''
query
.
employeeId
=
''
!
promotionIdentity
.
value
&&
(
query
.
employeeId
=
''
)
query
.
storeNameLike
=
''
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论