Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fdadd17f
authored
Feb 28, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权限
1 parent
b1e8e02d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
59 deletions
api/module/customerApi.js
components/HomeFrame/components/LeftSide.vue
api/module/customerApi.js
View file @
fdadd17
import
http
from
"../request/http"
;
import
environment
from
"@/env"
;
import
http
from
'../request/http'
import
environment
from
'@/env'
module
.
exports
=
{
/**查询当前门店是否有客户档案权限 */
haveCustomerAccess
(
data
)
{
haveCustomerAccess
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.findPermissionsMerchantList'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**查询当前门店客户档案列表 */
getCustomerFileList
(
data
)
{
getCustomerFileList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.customerInfoPage'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/* 删除客户档案*/
delCustomerFile
(
data
)
{
delCustomerFile
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.deleteVisitsInfo'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/** 根据业务查询接待场景 */
findAllSence
(
data
)
{
findAllSence
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.findAllSence'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**根据业务查询客户标签 */
findCustomerTags
(
data
)
{
findCustomerTags
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.findSenceTag'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**
* 查询客户档案详情
*/
findVisitsInfo
(
data
)
{
findVisitsInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.findVisitsInfo'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/*
* 保存客户档案
*/
saveVisitsInfo
(
data
)
{
* 保存客户档案
*/
saveVisitsInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.saveVisitsInfo'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**
* 更新客户档案
*/
updateVisitsInfo
(
data
)
{
updateVisitsInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.updateVisitsInfo'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**查询客户档案列表 */
getCustomerInfoList
(
data
)
{
getCustomerInfoList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.customerInfoList'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**接待客户素材
*
*
*/
getMaterialResponsePage
(
data
)
{
getMaterialResponsePage
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.getMaterialResponsePage'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
/**素材详情 查询素材详情 */
getMaterialDetail
(
data
)
{
getMaterialDetail
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.getMaterialById'
,
projectName
:
"boutique"
,
...
data
,
})
;
projectName
:
'boutique'
,
...
data
})
},
}
\ No newline at end of file
/**直营驻店人员 */
saleOpen
(
data
)
{
return
http
.
post
({
method
:
'dj.api.car.boutique.resident.direct.sale.merchant'
,
projectName
:
'boutique'
,
...
data
})
}
}
components/HomeFrame/components/LeftSide.vue
View file @
fdadd17
...
...
@@ -59,7 +59,7 @@ export default {
},
watch
:
{
userInfo
(
n
)
{
if
(
n
.
shopMerchantId
)
this
.
haveCustomerAccess
(
n
.
shopMerchantId
)
if
(
n
.
shopMerchantId
)
this
.
haveCustomerAccess
(
n
)
}
},
computed
:
{
...
...
@@ -75,9 +75,10 @@ export default {
this
.
$emit
(
'update:tabIndex'
,
index
)
this
.
$emit
(
"changeTab"
,
index
)
},
async
haveCustomerAccess
(
merchantId
)
{
async
haveCustomerAccess
(
val
)
{
const
{
shopMerchantId
,
merchantId
,
sceneType
:
scene
}
=
val
const
res
=
await
uni
.
$api
.
customerApi
.
haveCustomerAccess
({
merchantId
merchantId
:
shopMerchantId
})
if
(
res
)
this
.
tabs
.
push
(
{
label
:
"客户档案"
,
...
...
@@ -85,16 +86,18 @@ export default {
name
:
'CustomerFile'
})
this
.
$store
.
state
.
user
.
haveCustomerAccess
=
res
const
{
permissionPhone
=
[]
}
=
uni
.
$storage
.
get
(
'mock_data'
)
const
{
phone
}
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
!
permissionPhone
.
includes
(
+
phone
))
{
this
.
tabs
.
push
({
uni
.
$api
.
customerApi
.
saleOpen
({
merchantId
,
scene
}).
then
(
result
=>
{
if
(
!
result
)
{
this
.
tabs
.
push
({
label
:
"个人中心"
,
icon
:
"point"
,
name
:
'Point'
})
}
}
})
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment