Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fe0ce688
authored
Jan 12, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
ddae6c81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
src/views/account/index.vue
src/views/baseInfo/index.vue
src/views/account/index.vue
View file @
fe0ce68
...
...
@@ -197,7 +197,10 @@ export default {
drawer
:
false
,
direction
:
'rtl'
,
searchForm
:
{
isRelevance
:
''
,
accountOrPhone
:
1
,
status
:
''
,
merchantAccountLevel
:
''
,
merchantLegalPersonPhone
:
''
,
merchantLoginAccount
:
''
},
...
...
@@ -330,7 +333,10 @@ export default {
},
handleReset
()
{
this
.
searchForm
=
{
isRelevance
:
''
,
accountOrPhone
:
1
,
status
:
''
,
merchantAccountLevel
:
''
,
merchantLegalPersonPhone
:
''
,
merchantLoginAccount
:
''
}
...
...
src/views/baseInfo/index.vue
View file @
fe0ce68
<
template
>
<div
class=
"out_main"
>
<!--
<div
class=
"base-info-index"
>
-->
<div
class=
"top_widget"
>
<img
class=
"sign_icon"
src=
"../../assets/scrm_base_info_icon_one.png"
/>
<div
class=
"info_widget"
>
<div
class=
"title_text"
>
{{
blocInfo
.
merchantName
}}
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
</div>
<div
class=
"sec_title_text dr_top_1"
>
<span>
关联企微:
{{
blocInfo
.
entmicroName
||
'--'
}}
</span>
<div
v-if=
"blocInfo.entmicroName"
class=
"auth_btn"
:class=
"accountLevel != 4 ? 'auth_btn_cp' : ''"
>
已授权
</div>
</div>
<div
v-if=
"accountLevel==1"
class=
"min_text dr_top_1"
>
所属企业:--
</div>
<div
v-if=
"accountLevel!=1"
class=
"min_text dr_top_1"
>
所属企业:
{{
blocInfo
.
parentName
}}
</div>
<div
v-if=
"accountLevel==4"
class=
"min_text"
>
企微员工:
{{
blocInfo
.
entMicroEmployeeCount
}}
人
</div>
<div
class=
"top_widget"
>
<img
class=
"sign_icon"
src=
"../../assets/scrm_base_info_icon_one.png"
/>
<div
class=
"info_widget"
>
<div
class=
"title_text"
>
{{
blocInfo
.
merchantName
}}
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
</div>
<div
class=
"sec_title_text dr_top_1"
>
<span>
关联企微:
{{
blocInfo
.
entmicroName
||
'--'
}}
</span>
<div
v-if=
"blocInfo.entmicroName"
class=
"auth_btn"
:class=
"accountLevel != 4 ? 'auth_btn_cp' : ''"
>
已授权
</div>
</div>
<div
v-if=
"accountLevel==1"
class=
"min_text dr_top_1"
>
所属企业:--
</div>
<div
v-if=
"accountLevel!=1"
class=
"min_text dr_top_1"
>
所属企业:
{{
blocInfo
.
parentName
}}
</div>
<div
v-if=
"accountLevel==4"
class=
"min_text"
>
企微员工:
{{
blocInfo
.
entMicroEmployeeCount
}}
人
</div>
<div
v-if=
"blocInfo.channelId == 1"
class=
"min_text dr_top_1"
>
商户SAP编码:
{{
blocInfo
.
sapCode
}}
</div>
</div>
<blocModule
:bloc=
"blocInfo"
:list
.
sync=
"storesList"
v-if=
"accountLevel != 4"
></blocModule>
<shopModule
:bloc=
"blocInfo"
v-if=
"accountLevel == 4"
></shopModule>
</div>
<blocModule
:bloc=
"blocInfo"
:list
.
sync=
"storesList"
v-if=
"accountLevel != 4"
></blocModule>
<shopModule
:bloc=
"blocInfo"
v-if=
"accountLevel == 4"
></shopModule>
<!--
</div>
-->
</div>
</
template
>
...
...
@@ -36,7 +41,7 @@ export default {
data
()
{
return
{
platform
:
1
,
//1 集团 2 门店
accountLevel
:
1
,
//1-工厂;2-省代;3-市代;4-门店
accountLevel
:
1
,
//1-工厂;2-省代;3-市代;4-门店
blocInfo
:
{
merchantName
:
''
},
...
...
@@ -54,7 +59,7 @@ export default {
methods
:
{
getBlocData
()
{
let
para
=
{
merchantId
:
this
.
loginInfo
.
merchantId
,
merchantId
:
this
.
loginInfo
.
merchantId
}
this
.
$apis
.
baseInfo
.
merchantInfo
(
para
).
then
(
res
=>
{
this
.
blocInfo
=
res
...
...
@@ -64,7 +69,7 @@ export default {
})
})
},
dateFormat
:
function
(
dateTime
,
format
=
'yyyy-MM-dd'
)
{
dateFormat
:
function
(
dateTime
,
format
=
'yyyy-MM-dd'
)
{
const
date
=
new
Date
(
dateTime
)
const
config
=
{
YYYY
:
date
.
getFullYear
(),
...
...
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