Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 f69c5810
authored
Nov 03, 2021
by
ym
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
quanxian
1 parent
434eb2b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
77 deletions
src/assets/css/common.scss
src/router/routes.js
src/views/account/addAccount.vue
src/views/account/components/baseInfo.vue
src/views/account/components/selectProduct.vue
src/views/account/detailAccount.vue
src/views/account/editAccount.vue
src/views/account/index.vue
src/assets/css/common.scss
View file @
f69c581
...
...
@@ -124,6 +124,10 @@ img {
justify-content
:
space-between
;
}
.el-checkbox
:last-of-type
{
margin-right
:
8px
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
...
...
src/router/routes.js
View file @
f69c581
const
staticRoutes
=
Object
.
freeze
([{
name
:
'account'
,
path
:
'/account/index'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/index.vue`
],
resolve
)
},
{
name
:
'addAccount'
,
path
:
'/account/addAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/addAccount.vue`
],
resolve
)
},
{
name
:
'editAccount'
,
path
:
'/account/editAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/editAccount.vue`
],
resolve
)
},
{
name
:
'detailAccount'
,
path
:
'/account/detailAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/detailAccount.vue`
],
resolve
)
},
{
name
:
'role'
,
path
:
'/role/index'
,
component
:
resolve
=>
require
([
`@/views/role/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'role'
,
path
:
'/role/create/:id'
,
component
:
resolve
=>
require
([
`@/views/role/create.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'role'
,
path
:
'/role/look:id'
,
component
:
resolve
=>
require
([
`@/views/role/look.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'Account2EmployeeIndex'
,
path
:
'/employee/index'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/index.vue`
],
resolve
)
},
{
name
:
'Account2EmployeeEditEmployee'
,
path
:
'/employee/editEmployee
'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/editEmployee.vue`
],
resolve
)
},
{
name
:
'Account2EmployeeDetailEmployee'
,
path
:
'/employee/detailEmployee
'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/detailEmployee.vue`
],
resolve
)
}
name
:
'account'
,
path
:
'/account/index'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/index.vue`
],
resolve
)
},
{
name
:
'addAccount'
,
path
:
'/account/addAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/addAccount.vue`
],
resolve
)
},
{
name
:
'editAccount'
,
path
:
'/account/editAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/editAccount.vue`
],
resolve
)
},
{
name
:
'detailAccount'
,
path
:
'/account/detailAccount/:id'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/account/detailAccount.vue`
],
resolve
)
},
{
name
:
'role'
,
path
:
'/role/index'
,
component
:
resolve
=>
require
([
`@/views/role/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'role'
,
path
:
'/role/create/:id'
,
component
:
resolve
=>
require
([
`@/views/role/create.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'role'
,
path
:
'/role/look:id'
,
component
:
resolve
=>
require
([
`@/views/role/look.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'Account2EmployeeIndex'
,
path
:
'/employee/index'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/index.vue`
],
resolve
)
},
{
name
:
'Account2EmployeeEditEmployee'
,
path
:
'/employee/editEmployee/:addOrEdit/:id
'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/editEmployee.vue`
],
resolve
)
},
{
name
:
'Account2EmployeeDetailEmployee'
,
path
:
'/employee/detailEmployee/:id
'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/employee/detailEmployee.vue`
],
resolve
)
}
])
export
default
staticRoutes
\ No newline at end of file
src/views/account/addAccount.vue
View file @
f69c581
This diff is collapsed.
Click to expand it.
src/views/account/components/baseInfo.vue
View file @
f69c581
...
...
@@ -40,8 +40,8 @@
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
label=
"个人"
value=
"1"
></el-option>
<el-option
label=
"企业"
value=
"2"
></el-option>
<el-option
label=
"个人"
:
value=
"1"
></el-option>
<el-option
label=
"企业"
:
value=
"2"
></el-option>
</el-select>
</el-input>
<el-input
...
...
@@ -67,10 +67,7 @@
<el-col
:span=
"24"
>
<el-form-item
size=
"small"
label=
"商户地址"
class=
"form-row"
>
<el-input
readonly
v-model=
"accountAddForm.merchantAddress"
>
</el-input>
<el-button
type=
"primary"
class=
"form-btn"
@
click=
"dialogMapVisible = true"
<el-button
type=
"primary"
class=
"form-btn"
@
click=
"dialogMapVisible = true"
>
选择地址
</el-button
>
</el-form-item>
...
...
@@ -258,7 +255,7 @@ export default {
},
businessScopeCustomize
:
{
type
:
Array
,
}
}
,
},
data
()
{
const
validatePhone
=
(
rule
,
value
,
callback
)
=>
{
...
...
@@ -285,18 +282,26 @@ export default {
},
};
},
watch
:
{
filterText
(
val
)
{
this
.
$refs
.
brandTree
.
filter
(
val
);
},
},
methods
:
{
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
;
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
},
getAddress
()
{
if
(
!
this
.
$refs
.
mapForm
.
address
)
{
if
(
!
this
.
$refs
.
mapForm
.
address
)
{
this
.
$message
.
error
(
"请选择地址"
);
return
;
}
this
.
dialogMapVisible
=
false
;
this
.
accountAddForm
.
merchantAddress
=
this
.
$refs
.
mapForm
.
address
;
let
lnglat
=
this
.
$refs
.
mapForm
.
lnglat
this
.
accountAddForm
.
lat
=
lnglat
.
lat
this
.
accountAddForm
.
lng
=
lnglat
.
lng
let
lnglat
=
this
.
$refs
.
mapForm
.
lnglat
;
this
.
accountAddForm
.
lat
=
lnglat
.
lat
;
this
.
accountAddForm
.
lng
=
lnglat
.
lng
;
},
delImg
(
index
)
{
this
.
accountAddForm
.
merchantFiles
.
splice
(
index
,
1
);
...
...
@@ -337,9 +342,8 @@ export default {
if
(
res
)
{
self
.
accountAddForm
.
merchantFiles
.
push
({
fileUrl
:
res
,
fileName
:
''
fileName
:
""
,
});
console
.
log
(
self
.
accountAddForm
.
merchantFiles
)
}
});
};
...
...
src/views/account/components/selectProduct.vue
View file @
f69c581
<
template
>
<div
class=
"account-body scrm-box-f"
>
<div
class=
"account-body scrm-box-f"
v-loading=
"loading"
>
<div
class=
"account-title"
>
{{
title
}}
</div>
<el-tabs
v-model=
"tabName"
type=
"card"
>
<el-tab-pane
...
...
@@ -84,6 +84,7 @@ export default {
data
()
{
return
{
loading
:
false
,
treeHeight
:
300
,
tabMenu
:
[],
selectIndex
:
0
,
...
...
@@ -102,6 +103,7 @@ export default {
methods
:
{
selectPro
(
data
)
{
this
.
$parent
.
editStatus
=
true
;
this
.
productTab
=
data
.
length
!=
0
?
data
[
data
.
length
-
1
].
productId
:
""
;
const
{
tabName
,
tabMenu
,
productTab
}
=
this
;
console
.
log
(
tabName
,
data
);
...
...
@@ -143,6 +145,7 @@ export default {
},
// 获取当前的所有权限
async
accountTypeSearchRequest
(
params
,
status
)
{
this
.
loading
=
true
;
let
account
=
''
if
(
status
)
{
account
=
'findMenuFunTreeByMerId'
...
...
@@ -193,6 +196,7 @@ export default {
// products
// }
// })
this
.
loading
=
false
;
res
.
forEach
((
item
)
=>
{
this
.
tabMenu
.
forEach
((
itm
)
=>
{
if
(
item
.
accounttypeId
==
itm
.
accounttypeId
)
{
...
...
@@ -235,6 +239,7 @@ export default {
}
},
clickDeal
(
currentObj
,
treeStatus
)
{
this
.
$parent
.
editStatus
=
true
;
// 用于:父子节点严格互不关联时,父节点勾选变化时通知子节点同步变化,实现单向关联。
let
selected
=
treeStatus
.
checkedKeys
.
indexOf
(
currentObj
.
id
);
// -1未选中
// 选中
...
...
src/views/account/detailAccount.vue
View file @
f69c581
...
...
@@ -206,6 +206,15 @@
<GLTable
ref=
"updateRecord"
:tableTotal=
"tableTotal"
:tableData=
"updateRecordList"
:hasNum=
"true"
:pageConf=
"pageConf"
:tableParams=
"thirdtableParams"
@
refreshTable=
"getThirdTable"
></GLTable>
</div>
</div>
<div
class=
"footer-panel"
:style=
"{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
关闭
</el-button>
</div>
</div>
</template>
<
script
>
...
...
@@ -327,6 +336,9 @@ export default {
// },
methods
:
{
handleCancel
()
{
this
.
$router
.
push
(
'/account/index'
)
},
tabClick
(
index
)
{
this
.
curIndex
=
index
switch
(
index
)
{
...
...
@@ -440,6 +452,8 @@ export default {
},
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
getThirdTable
()
this
.
getSecondTable
()
}
...
...
@@ -448,6 +462,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.merchantDetail
{
padding-bottom
:
60px
;
.titles
{
display
:
flex
;
margin-bottom
:
20px
;
...
...
@@ -584,7 +599,7 @@ export default {
}
.contentTree
{
padding
:
20px
;
max-
height
:
250px
;
height
:
250px
;
position
:
relative
;
overflow
:
auto
;
...
...
@@ -732,5 +747,17 @@ export default {
padding
:
20px
;
}
}
.footer-panel
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
width
:
100%
;
bottom
:
0px
;
height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
</
style
>
src/views/account/editAccount.vue
View file @
f69c581
This diff is collapsed.
Click to expand it.
src/views/account/index.vue
View file @
f69c581
<
template
>
<div
class=
"scrm-main"
>
<div
class=
"form-header"
>
<div
class=
"form-header"
v-if=
"$globalState.session.accountLevel == 1"
>
<el-button
type=
"primary"
@
click=
"handleContact"
size=
"small"
icon=
"el-icon-link"
>
门店账户关联企微
</el-button
>
...
...
@@ -124,7 +124,7 @@
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 &&
$globalState.session.a
ccountLevel != 4"
v-if=
"scope.scope.status == 2 &&
scope.scope.merchantA
ccountLevel != 4"
>
创建子商户/门店
</el-button
>
</
template
>
...
...
@@ -219,6 +219,10 @@ export default {
prop
:
"merchantLegalPersonPhone"
,
width
:
"120px"
,
},
{
label
:
"更新时间"
,
prop
:
"updatedTime"
},
],
},
layout
:
"sizes, prev, pager, next, jumper, ->, total"
,
...
...
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