Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
e96cbfc0
提交
e96cbfc0
authored
11月 11, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(mobile/router/index.js): 修改:勤策App_路由子页面的路由路径改变
上级
571a7413
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
30 行增加
和
27 行删除
+30
-27
newTerminal.vue
...t_activity/sales_point_inspection/examine/newTerminal.vue
+1
-1
storeList.vue
...dit_activity/sales_point_inspection/examine/storeList.vue
+3
-3
taskList.vue
...udit_activity/sales_point_inspection/examine/taskList.vue
+1
-1
index.vue
.../mobile/pages/cp_activity/promotion/plan/detail/index.vue
+2
-2
index.vue
...mobile/pages/cp_activity/promotion/plan/editing/index.vue
+2
-3
index.vue
...s/mobile/pages/cp_activity/promotion/plan/index/index.vue
+6
-5
index.js
src/views/mobile/router/index.js
+15
-12
没有找到文件。
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/newTerminal.vue
浏览文件 @
e96cbfc0
...
@@ -130,7 +130,7 @@ const handleCreateTask = () => {
...
@@ -130,7 +130,7 @@ const handleCreateTask = () => {
})
})
// 校验通过,跳到稽查任务详情页
// 校验通过,跳到稽查任务详情页
router
.
push
({
router
.
push
({
path
:
'/inspectionTask'
,
path
:
'/
audit_activity/
inspectionTask'
,
query
:
{
query
:
{
rstId
:
res
.
data
.
rstId
,
rstId
:
res
.
data
.
rstId
,
storeName
:
form
.
storeName
,
storeName
:
form
.
storeName
,
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/storeList.vue
浏览文件 @
e96cbfc0
...
@@ -112,7 +112,7 @@ const handlerSearch = () => {
...
@@ -112,7 +112,7 @@ const handlerSearch = () => {
// 稽查记录
// 稽查记录
const
clickRecord
=
()
=>
{
const
clickRecord
=
()
=>
{
router
.
push
({
router
.
push
({
path
:
'/taskList'
path
:
'/
audit_activity/
taskList'
})
})
}
}
...
@@ -126,7 +126,7 @@ const handleClickStore = (item) => {
...
@@ -126,7 +126,7 @@ const handleClickStore = (item) => {
cancelButtonText
:
'取消'
cancelButtonText
:
'取消'
}).
then
(()
=>
{
}).
then
(()
=>
{
router
.
push
({
router
.
push
({
path
:
'/inspectionTask'
,
path
:
'/
audit_activity/
inspectionTask'
,
query
:
{
query
:
{
storeName
:
item
.
storeName
,
storeName
:
item
.
storeName
,
storeCode
:
item
.
storeCode
,
storeCode
:
item
.
storeCode
,
...
@@ -142,7 +142,7 @@ const handleClickStore = (item) => {
...
@@ -142,7 +142,7 @@ const handleClickStore = (item) => {
// 新建终端
// 新建终端
const
addNewTerminal
=
()
=>
{
const
addNewTerminal
=
()
=>
{
router
.
push
({
router
.
push
({
path
:
'/newTerminal'
path
:
'/
audit_activity/
newTerminal'
})
})
}
}
</
script
>
</
script
>
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/taskList.vue
浏览文件 @
e96cbfc0
...
@@ -130,7 +130,7 @@ const resetFn = () => {
...
@@ -130,7 +130,7 @@ const resetFn = () => {
// 门店点击
// 门店点击
const
handleClickStore
=
(
item
)
=>
{
const
handleClickStore
=
(
item
)
=>
{
router
.
push
({
router
.
push
({
path
:
'/inspectionTask'
,
path
:
'/
audit_activity/
inspectionTask'
,
query
:
{
query
:
{
storeName
:
item
.
storeName
,
storeName
:
item
.
storeName
,
storeCode
:
item
.
storeCode
,
storeCode
:
item
.
storeCode
,
...
...
src/views/mobile/pages/cp_activity/promotion/plan/detail/index.vue
浏览文件 @
e96cbfc0
...
@@ -213,7 +213,7 @@ getPlanDetail()
...
@@ -213,7 +213,7 @@ getPlanDetail()
// 点击稽查按钮
// 点击稽查按钮
const
clickExamine
=
async
()
=>
{
const
clickExamine
=
async
()
=>
{
if
(
examined
.
value
)
{
if
(
examined
.
value
)
{
router
.
push
({
path
:
`/examine/${examined.value
}
`
}
)
router
.
push
({
path
:
`/
cp_activity/
examine/${examined.value
}
`
}
)
return
return
}
}
...
@@ -240,7 +240,7 @@ const clickExamine = async () => {
...
@@ -240,7 +240,7 @@ const clickExamine = async () => {
}
}
newExamined
.
value
=
result
.
data
.
id
newExamined
.
value
=
result
.
data
.
id
}
}
router
.
push
({
path
:
`/examine/${examined?.value || newExamined.value
}
`
}
)
router
.
push
({
path
:
`/
cp_activity/
examine/${examined?.value || newExamined.value
}
`
}
)
}
)
}
)
}
}
...
...
src/views/mobile/pages/cp_activity/promotion/plan/editing/index.vue
浏览文件 @
e96cbfc0
...
@@ -266,10 +266,9 @@ const init = async () => {
...
@@ -266,10 +266,9 @@ const init = async () => {
})
})
form
.
date
=
parseTime
(
new
Date
(
form
.
date
),
"{y}-{m}-{d}"
)
form
.
date
=
parseTime
(
new
Date
(
form
.
date
),
"{y}-{m}-{d}"
)
form
.
inTime
=
parseTime
(
res
.
data
.
planInfo
.
clockInTime
,
"{h}:{i}"
).
split
(
":"
)
form
.
inTime
=
parseTime
(
res
.
data
.
planInfo
.
clockInTime
,
"{h}:{i}"
).
split
(
":"
)
form
.
noonInTime
=
parseTime
(
res
.
data
.
planInfo
.
noonClockInTime
,
"{h}:{i}"
).
split
(
":"
)
form
.
noonInTime
=
res
.
data
.
planInfo
.
noonClockInTime
?
parseTime
(
res
.
data
.
planInfo
.
noonClockInTime
,
"{h}:{i}"
).
split
(
":"
)
:
[]
form
.
noonOutTime
=
parseTime
(
res
.
data
.
planInfo
.
noonClockOutTime
,
"{h}:{i}"
).
split
(
":"
)
form
.
noonOutTime
=
res
.
data
.
planInfo
.
noonClockOutTime
?
parseTime
(
res
.
data
.
planInfo
.
noonClockOutTime
,
"{h}:{i}"
).
split
(
":"
)
:
[]
form
.
outTime
=
parseTime
(
res
.
data
.
planInfo
.
clockOutTime
,
"{h}:{i}"
).
split
(
":"
)
form
.
outTime
=
parseTime
(
res
.
data
.
planInfo
.
clockOutTime
,
"{h}:{i}"
).
split
(
":"
)
editDealerId
.
value
=
res
.
data
.
planInfo
.
dealerId
editDealerId
.
value
=
res
.
data
.
planInfo
.
dealerId
}
}
if
(
planId
)
{
if
(
planId
)
{
...
...
src/views/mobile/pages/cp_activity/promotion/plan/index/index.vue
浏览文件 @
e96cbfc0
...
@@ -105,7 +105,8 @@ const showSearch = ref(false)
...
@@ -105,7 +105,8 @@ const showSearch = ref(false)
// 从新增页面跳转回来需要刷新列表
// 从新增页面跳转回来需要刷新列表
watch
(()
=>
route
.
path
,
(
newPath
,
oldPath
)
=>
{
watch
(()
=>
route
.
path
,
(
newPath
,
oldPath
)
=>
{
if
(
oldPath
.
includes
(
'/promotion_plan_editing'
)
&&
newPath
===
'/promotion_plan'
)
{
console
.
log
(
oldPath
,
newPath
)
if
(
oldPath
.
includes
(
'/cp_activity/promotion_plan_editing'
)
&&
newPath
===
'/cp_activity/promotion_plan'
)
{
planSearch
.
value
.
resetFn
()
planSearch
.
value
.
resetFn
()
}
}
}
);
}
);
...
@@ -184,8 +185,8 @@ const onRefresh = () => {
...
@@ -184,8 +185,8 @@ const onRefresh = () => {
const
clickDetail
=
(
row
)
=>
{
const
clickDetail
=
(
row
)
=>
{
// 当前处于长按状态 / 查看已删除列表,点击详情不做任何操作
// 当前处于长按状态 / 查看已删除列表,点击详情不做任何操作
if
(
showSelect
.
value
||
query
.
isDeleted
)
return
if
(
showSelect
.
value
||
query
.
isDeleted
)
return
// router.push(`/promotion_plan_detail/$
{
row
.
id
}
?
isDeleted
=
$
{
query
.
isDeleted
}
`)
// router.push(`/
cp_activity/
promotion_plan_detail/$
{
row
.
id
}
?
isDeleted
=
$
{
query
.
isDeleted
}
`)
router.push(`
/
promotion_plan_detail
/
$
{
row
.
id
}
`)
router.push(`
/
cp_activity
/
promotion_plan_detail
/
$
{
row
.
id
}
`)
}
}
// 搜索表单
// 搜索表单
...
@@ -204,7 +205,7 @@ const editPlan = (row) => {
...
@@ -204,7 +205,7 @@ const editPlan = (row) => {
if (!checkPlanChangeExpire(row)) {
if (!checkPlanChangeExpire(row)) {
return showNotify({ type: 'warning', message: '无法变更,日期小于等于今日'
}
)
return showNotify({ type: 'warning', message: '无法变更,日期小于等于今日'
}
)
}
}
router.push(`
/
promotion_plan_editing
/
$
{
row
.
id
}
`)
router.push(`
/
cp_activity
/
promotion_plan_editing
/
$
{
row
.
id
}
`)
}
}
// 删除计划
// 删除计划
...
@@ -328,7 +329,7 @@ onUnmounted(() => {
...
@@ -328,7 +329,7 @@ onUnmounted(() => {
const addNewPlan = () => {
const addNewPlan = () => {
// 后台设置按钮权限分配就能新增
// 后台设置按钮权限分配就能新增
if (proxy.checkPermi(['promotion:plan:create'])) {
if (proxy.checkPermi(['promotion:plan:create'])) {
router.push('/promotion_plan_editing')
router.push('/
cp_activity/
promotion_plan_editing')
}
else {
}
else {
showNotify({ type: 'warning', message: '规定日期内_无法新增计划'
}
)
showNotify({ type: 'warning', message: '规定日期内_无法新增计划'
}
)
}
}
...
...
src/views/mobile/router/index.js
浏览文件 @
e96cbfc0
...
@@ -14,6 +14,7 @@ export const constantMobileRoutes = [
...
@@ -14,6 +14,7 @@ export const constantMobileRoutes = [
path
:
'/m'
,
// 勤策移动端内跳过来的地址是 /m,我们默认显示菜单页面
path
:
'/m'
,
// 勤策移动端内跳过来的地址是 /m,我们默认显示菜单页面
redirect
:
'/menu'
redirect
:
'/menu'
},
},
// 重点注意:菜单页面的按钮跳转的路由地址,是在后台管理系统配置的,不是在这里的,是需要在后台分配给某个人才有那个路由菜单的配置对象
{
{
path
:
'/'
,
path
:
'/'
,
component
:
()
=>
import
(
'@/views/mobile/index'
),
component
:
()
=>
import
(
'@/views/mobile/index'
),
...
@@ -24,42 +25,43 @@ export const constantMobileRoutes = [
...
@@ -24,42 +25,43 @@ export const constantMobileRoutes = [
component
:
()
=>
import
(
'@/views/mobile/pages/menu'
),
component
:
()
=>
import
(
'@/views/mobile/pages/menu'
),
name
:
'm_menu'
name
:
'm_menu'
},
},
// CP 促销相关的子页面(暂未进行权限拦截,可以参考若依的 permissions 的字段限制)
{
{
path
:
'promotion_plan_detail/:planId'
,
// CP 促销计划,详情页
path
:
'
cp_activity/
promotion_plan_detail/:planId'
,
// CP 促销计划,详情页
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/promotion/plan/detail'
),
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/promotion/plan/detail'
),
name
:
'm_promotion_detail'
,
name
:
'm_promotion_detail'
,
},
},
{
{
path
:
'promotion_plan_editing/:planId?'
,
// CP 促销计划,增加,修改
path
:
'
cp_activity/
promotion_plan_editing/:planId?'
,
// CP 促销计划,增加,修改
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/promotion/plan/editing'
),
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/promotion/plan/editing'
),
name
:
'm_promotion_editing'
,
name
:
'm_promotion_editing'
,
},
},
{
{
path
:
'examine/:examineId'
,
// CP 促销计划,稽查
path
:
'
cp_activity/
examine/:examineId'
,
// CP 促销计划,稽查
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/examine'
),
component
:
()
=>
import
(
'@/views/mobile/pages/cp_activity/examine'
),
name
:
'm_promotion_examine'
,
name
:
'm_promotion_examine'
,
},
},
// 售点稽查的子页面
{
{
path
:
'logistics'
,
// 物流信息页面
path
:
'audit_activity/newTerminal'
,
// 售点稽查_新建终端门店
component
:
()
=>
import
(
'@/views/mobile/pages/other/logistics'
),
name
:
'logistics'
},
{
path
:
'newTerminal'
,
// 售点稽查_新建终端门店
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/newTerminal'
),
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/newTerminal'
),
name
:
'newTerminal'
name
:
'newTerminal'
},
},
{
{
path
:
'taskList'
,
// 售点稽查_稽查记录列表
path
:
'
audit_activity/
taskList'
,
// 售点稽查_稽查记录列表
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/taskList'
),
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/taskList'
),
name
:
'taskList'
name
:
'taskList'
},
},
{
{
path
:
'inspectionTask'
,
// 售点稽查_稽查任务
path
:
'
audit_activity/
inspectionTask'
,
// 售点稽查_稽查任务
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index'
),
component
:
()
=>
import
(
'@/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index'
),
name
:
'inspectionTask'
name
:
'inspectionTask'
},
},
{
path
:
'logistics'
,
// 物流信息页面
component
:
()
=>
import
(
'@/views/mobile/pages/other/logistics'
),
name
:
'logistics'
}
]
]
}
}
]
]
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论