Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
office-web
Commits
2d151bed
Commit
2d151bed
authored
Jun 27, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改搜索门店
parent
8f9bb669
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
index.html
dist/index.html
+2
-2
2.1fdb06ae0d169e84edcf.js
dist/static/js/2.1fdb06ae0d169e84edcf.js
+2
-0
2.592033393573b820aeb9.js
dist/static/js/2.592033393573b820aeb9.js
+0
-2
6.21d51030f91361ba32ce.js
dist/static/js/6.21d51030f91361ba32ce.js
+0
-2
6.fd32835ad9f5defa17cd.js
dist/static/js/6.fd32835ad9f5defa17cd.js
+2
-0
manifest.221675e18119e050c7bd.js
dist/static/js/manifest.221675e18119e050c7bd.js
+2
-2
storeInfo.vue
src/components/contacts/storeFrame/storeInfo.vue
+1
-1
No files found.
dist/index.html
View file @
2d151bed
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.812d92898aa4553cd4dfe3879212a20c.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.02e8b6c38cd565b6bd30.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ccdd3a2984b37616bc62.js
></script><script
type=
text/javascript
src=
./static/js/app.62357d6414ff90374212.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.812d92898aa4553cd4dfe3879212a20c.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.221675e18119e050c7bd.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ccdd3a2984b37616bc62.js
></script><script
type=
text/javascript
src=
./static/js/app.62357d6414ff90374212.js
></script></body></html>
\ No newline at end of file
dist/static/js/2.1fdb06ae0d169e84edcf.js
0 → 100644
View file @
2d151bed
webpackJsonp
([
2
],{
"4WTo"
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"NWt+"
);
e
.
exports
=
function
(
e
,
t
){
var
a
=
[];
return
o
(
e
,
!
1
,
a
.
push
,
a
,
t
),
a
}},
"7Doy"
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"EqjI"
),
s
=
a
(
"7UMu"
),
r
=
a
(
"dSzd"
)(
"species"
);
e
.
exports
=
function
(
e
){
var
t
;
return
s
(
e
)
&&
(
"function"
!=
typeof
(
t
=
e
.
constructor
)
||
t
!==
Array
&&!
s
(
t
.
prototype
)
||
(
t
=
void
0
),
o
(
t
)
&&
null
===
(
t
=
t
[
r
])
&&
(
t
=
void
0
)),
void
0
===
t
?
Array
:
t
}},
"9Bbf"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"kM2E"
);
e
.
exports
=
function
(
e
){
o
(
o
.
S
,
e
,{
of
:
function
(){
for
(
var
e
=
arguments
.
length
,
t
=
new
Array
(
e
);
e
--
;)
t
[
e
]
=
arguments
[
e
];
return
new
this
(
t
)}})}},
"9C8M"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"evD5"
).
f
,
s
=
a
(
"Yobk"
),
r
=
a
(
"xH/j"
),
n
=
a
(
"+ZMJ"
),
i
=
a
(
"2KxR"
),
l
=
a
(
"NWt+"
),
c
=
a
(
"vIB/"
),
u
=
a
(
"EGZi"
),
d
=
a
(
"bRrM"
),
p
=
a
(
"+E39"
),
h
=
a
(
"06OY"
).
fastKey
,
f
=
a
(
"LIJb"
),
m
=
p
?
"_s"
:
"size"
,
g
=
function
(
e
,
t
){
var
a
,
o
=
h
(
t
);
if
(
"F"
!==
o
)
return
e
.
_i
[
o
];
for
(
a
=
e
.
_f
;
a
;
a
=
a
.
n
)
if
(
a
.
k
==
t
)
return
a
};
e
.
exports
=
{
getConstructor
:
function
(
e
,
t
,
a
,
c
){
var
u
=
e
(
function
(
e
,
o
){
i
(
e
,
u
,
t
,
"_i"
),
e
.
_t
=
t
,
e
.
_i
=
s
(
null
),
e
.
_f
=
void
0
,
e
.
_l
=
void
0
,
e
[
m
]
=
0
,
void
0
!=
o
&&
l
(
o
,
a
,
e
[
c
],
e
)});
return
r
(
u
.
prototype
,{
clear
:
function
(){
for
(
var
e
=
f
(
this
,
t
),
a
=
e
.
_i
,
o
=
e
.
_f
;
o
;
o
=
o
.
n
)
o
.
r
=!
0
,
o
.
p
&&
(
o
.
p
=
o
.
p
.
n
=
void
0
),
delete
a
[
o
.
i
];
e
.
_f
=
e
.
_l
=
void
0
,
e
[
m
]
=
0
},
delete
:
function
(
e
){
var
a
=
f
(
this
,
t
),
o
=
g
(
a
,
e
);
if
(
o
){
var
s
=
o
.
n
,
r
=
o
.
p
;
delete
a
.
_i
[
o
.
i
],
o
.
r
=!
0
,
r
&&
(
r
.
n
=
s
),
s
&&
(
s
.
p
=
r
),
a
.
_f
==
o
&&
(
a
.
_f
=
s
),
a
.
_l
==
o
&&
(
a
.
_l
=
r
),
a
[
m
]
--
}
return
!!
o
},
forEach
:
function
(
e
){
f
(
this
,
t
);
for
(
var
a
,
o
=
n
(
e
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
3
);
a
=
a
?
a
.
n
:
this
.
_f
;)
for
(
o
(
a
.
v
,
a
.
k
,
this
);
a
&&
a
.
r
;)
a
=
a
.
p
},
has
:
function
(
e
){
return
!!
g
(
f
(
this
,
t
),
e
)}}),
p
&&
o
(
u
.
prototype
,
"size"
,{
get
:
function
(){
return
f
(
this
,
t
)[
m
]}}),
u
},
def
:
function
(
e
,
t
,
a
){
var
o
,
s
,
r
=
g
(
e
,
t
);
return
r
?
r
.
v
=
a
:(
e
.
_l
=
r
=
{
i
:
s
=
h
(
t
,
!
0
),
k
:
t
,
v
:
a
,
p
:
o
=
e
.
_l
,
n
:
void
0
,
r
:
!
1
},
e
.
_f
||
(
e
.
_f
=
r
),
o
&&
(
o
.
n
=
r
),
e
[
m
]
++
,
"F"
!==
s
&&
(
e
.
_i
[
s
]
=
r
)),
e
},
getEntry
:
g
,
setStrong
:
function
(
e
,
t
,
a
){
c
(
e
,
t
,
function
(
e
,
a
){
this
.
_t
=
f
(
e
,
t
),
this
.
_k
=
a
,
this
.
_l
=
void
0
},
function
(){
for
(
var
e
=
this
.
_k
,
t
=
this
.
_l
;
t
&&
t
.
r
;)
t
=
t
.
p
;
return
this
.
_t
&&
(
this
.
_l
=
t
=
t
?
t
.
n
:
this
.
_t
.
_f
)?
u
(
0
,
"keys"
==
e
?
t
.
k
:
"values"
==
e
?
t
.
v
:[
t
.
k
,
t
.
v
]):(
this
.
_t
=
void
0
,
u
(
1
))},
a
?
"entries"
:
"values"
,
!
a
,
!
0
),
d
(
t
)}}},
ALrJ
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"+ZMJ"
),
s
=
a
(
"MU5D"
),
r
=
a
(
"sB3e"
),
n
=
a
(
"QRG4"
),
i
=
a
(
"oeOm"
);
e
.
exports
=
function
(
e
,
t
){
var
a
=
1
==
e
,
l
=
2
==
e
,
c
=
3
==
e
,
u
=
4
==
e
,
d
=
6
==
e
,
p
=
5
==
e
||
d
,
h
=
t
||
i
;
return
function
(
t
,
i
,
f
){
for
(
var
m
,
g
,
v
=
r
(
t
),
b
=
s
(
v
),
C
=
o
(
i
,
f
,
3
),
I
=
n
(
b
.
length
),
A
=
0
,
D
=
a
?
h
(
t
,
I
):
l
?
h
(
t
,
0
):
void
0
;
I
>
A
;
A
++
)
if
((
p
||
A
in
b
)
&&
(
g
=
C
(
m
=
b
[
A
],
A
,
v
),
e
))
if
(
a
)
D
[
A
]
=
g
;
else
if
(
g
)
switch
(
e
){
case
3
:
return
!
0
;
case
5
:
return
m
;
case
6
:
return
A
;
case
2
:
D
.
push
(
m
)}
else
if
(
u
)
return
!
1
;
return
d
?
-
1
:
c
||
u
?
u
:
D
}}},
BDhv
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"kM2E"
);
o
(
o
.
P
+
o
.
R
,
"Set"
,{
toJSON
:
a
(
"m9gC"
)(
"Set"
)})},
Gfms
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"lHA8"
),
s
=
a
.
n
(
o
),
r
=
a
(
"Gu7T"
),
n
=
a
.
n
(
r
),
i
=
a
(
"3Xzz"
),
l
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
menuDataMine
:[],
defaultOpen
:[],
shareArea
:[]}},
methods
:{
formatGroupData
:
function
(
e
){
var
t
=
this
,
a
=
[],
o
=
window
.
localStorage
.
getItem
(
"userInfo"
),
s
=
JSON
.
parse
(
o
).
enterpriseId
,
r
=!
1
;
e
.
forEach
(
function
(
o
,
n
){
if
(
o
.
exportEnterpriseId
==
s
){
var
i
=
{
title
:
o
.
title
,
sharedContactRelationId
:
o
.
sharedContactRelationId
,
id
:
o
.
sharedContactRelationId
,
shares
:[
o
]};
o
.
childrens
=
o
.
ext
.
sharedContactDepartmentStoreGroupList
,
o
.
childrens
.
forEach
(
function
(
e
){
t
.
formatGroup
(
e
,
1
)}),
r
||
(
r
=!
0
,
t
.
$emit
(
"getEmployeeFirst"
,
o
.
childrens
[
0
])),
t
.
defaultOpen
.
push
(
o
.
childrens
[
0
].
id
),
t
.
defaultOpen
.
push
(
o
.
childrens
[
1
].
id
),
e
.
forEach
(
function
(
e
){
e
.
exportEnterpriseId
==
o
.
importEnterpriseId
&&
(
e
.
childrens
=
e
.
ext
.
sharedContactDepartmentStoreGroupList
,
e
.
childrens
.
forEach
(
function
(
e
){
t
.
formatGroup
(
e
,
0
)}),
i
.
shares
.
push
(
e
),
t
.
defaultOpen
.
push
(
e
.
childrens
[
0
].
id
),
t
.
defaultOpen
.
push
(
e
.
childrens
[
1
].
id
))}),
a
.
push
(
i
)}}),
t
.
shareArea
=
a
,
t
.
$forceUpdate
()},
formatGroup
:
function
(
e
,
t
){
var
a
=
this
;
e
.
id
=
e
.
sharedContactGroupId
,
e
.
label
=
e
.
name
,
e
.
isMine
=
t
,
e
.
ext
&&
e
.
ext
.
sharedContactDepartmentStoreGroupList
&&
(
e
.
childrens
=
e
.
ext
.
sharedContactDepartmentStoreGroupList
,
e
.
childrens
.
forEach
(
function
(
e
){
a
.
formatGroup
(
e
,
t
)}))},
clearFn
:
function
(){
this
.
searchResultShow
=!
1
},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
var
e
=
[];
this
.
searchResult
.
employeeStoreList
&&
this
.
searchResult
.
employeeStoreList
.
forEach
(
function
(
t
){
t
.
ext
.
employeeClerk
?(
t
.
employeeClerkId
=
t
.
ext
.
employeeClerk
.
employeeClerkId
,
t
.
name
=
t
.
employeeStoreName
,
e
.
push
(
t
)):
t
.
ext
.
store
.
ext
.
employeeClerkList
.
forEach
(
function
(
t
){
e
.
push
(
t
)})});
return
e
},
storeList
:
function
(){
var
e
=
[];
this
.
searchResult
.
employeeStoreList
&&
this
.
searchResult
.
employeeStoreList
.
forEach
(
function
(
t
){
t
.
ext
.
store
&&
(
t
.
storeId
=
t
.
employeeStoreId
,
t
.
name
=
t
.
employeeStoreName
,
e
.
push
(
t
))});
return
e
},
departmentList
:
function
(){
return
this
.
searchResult
.
groupList
?(
this
.
searchResult
.
groupList
.
forEach
(
function
(
e
){
e
.
id
=
e
.
sharedContactGroupId
}),
this
.
searchResult
.
groupList
):[]}},
watch
:{
treeData
:
function
(
e
,
t
){
this
.
formatGroupData
(
e
)}},
mounted
:
function
(){
this
.
formatGroupData
(
this
.
treeData
)}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
)],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
storeList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
storeId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]):[
e
.
_l
(
e
.
shareArea
,
function
(
t
){
return
[
a
(
"div"
,{
key
:
t
.
sharedContactRelationId
},[
a
(
"p"
,{
staticClass
:
"area-title"
},[
e
.
_v
(
e
.
_s
(
t
.
title
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"share-title"
},[
e
.
_v
(
"我方共享给对方的所有人员"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"p-0-15"
,
attrs
:{
id
:
"id"
+
t
.
shares
[
0
].
sharedContactRelationId
}},[
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
t
.
shares
[
0
].
childrens
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
o
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
),
e
.
_v
(
" "
),
e
.
_m
(
0
,
!
0
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"p-0-15"
,
attrs
:{
id
:
"id"
+
t
.
shares
[
1
].
sharedContactRelationId
}},[
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
t
.
shares
[
1
].
childrens
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
o
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
)])]})]],
2
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"p"
,{
staticClass
:
"share-title"
},[
this
.
_v
(
"对方共享给我方的所有人员"
),
t
(
"i"
,{
staticClass
:
"el-icon-upload"
})])}]};
var
u
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"W6b0"
)},
null
,
null
).
exports
,
d
=
a
(
"P9l9"
),
p
=
a
(
"c4uw"
),
h
=
{
name
:
"employeeInfo"
,
components
:{
vueSelectEmployee
:
p
.
a
},
props
:{
perId
:{
type
:[
String
,
Number
],
default
:
""
},
isNew
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
info
:{
name
:
""
,
phoneNumber
:
""
,
departmentId
:
""
,
departmentName
:
""
,
managerMode
:
!
1
},
treeData
:{},
disabled
:
!
0
,
employeeInfo
:{
name
:
""
,
phoneNumber
:
""
,
departmentName
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入员工姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
!
t
)
return
a
(
new
Error
(
"请输入手机号"
));
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
void
0
:
a
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
departmentId
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}]},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
}}},
methods
:{
getGroupData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
a
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
a
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callGroupSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
info
.
departmentId
=
e
.
id
,
this
.
info
.
departmentName
=
e
.
label
},
getEmployInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
employeeClerkId
?
e
.
$route
.
query
.
employeeClerkId
:
e
.
perId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
e
.
info
=
t
.
data
.
result
,
e
.
info
.
managerMode
=!!
t
.
data
.
result
.
managerMode
}).
catch
(
function
(
e
){})}},
beforeMount
:
function
(){
this
.
getGroupData
(),
this
.
isNew
||
this
.
getEmployInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getEmployInfo
()}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"employee-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"员工信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
staticClass
:
"employee-info-form"
,
attrs
:{
model
:
e
.
info
,
"label-width"
:
"70px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名:"
,
prop
:
"name"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
name
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号:"
,
prop
:
"phoneNumber"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
"86"
==
e
.
info
.
nationcode
?
e
.
info
.
phoneNumber
:
"+"
+
e
.
info
.
nationcode
+
"-"
+
e
.
info
.
phoneNumber
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"部门:"
,
prop
:
"departmentId"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
departmentName
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位:"
,
prop
:
"positionName"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
positionName
))])])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"parentSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
treeData
:
e
.
treeData
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
h
,
f
,
!
1
,
function
(
e
){
a
(
"vvXe"
)},
null
,
null
).
exports
,
g
=
a
(
"qsKc"
),
v
=
{
name
:
"employee-table"
,
props
:{
employeeList
:{
type
:
Array
,
default
:
function
(){
return
[]}},
headList
:{
type
:
Array
,
default
:
function
(){
return
[
"selection"
,
"name"
,
"phoneNumber"
,
"positionName"
,
"activationStatus"
]}},
groupInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
250
,
tableData
:[]}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)},
linkToDetail
:
function
(
e
){
this
.
groupInfo
.
isMine
?
window
.
location
.
href
=
"#/employee?employeeClerkId="
+
e
.
employeeClerkId
:
window
.
location
.
href
=
"#/employee?readOnly=1&employeeClerkId="
+
e
.
employeeClerkId
}},
mounted
:
function
(){
var
e
=
[];
this
.
employeeList
.
forEach
(
function
(
t
){
t
.
ext
.
employeeClerk
.
sharedContactEmployeeStoreId
=
t
.
sharedContactEmployeeStoreId
,
e
.
push
(
t
.
ext
.
employeeClerk
)}),
this
.
tableData
=
e
},
watch
:{
employeeList
:
function
(
e
){
var
t
=
[];
e
.
forEach
(
function
(
e
){
e
.
ext
.
employeeClerk
.
sharedContactEmployeeStoreId
=
e
.
sharedContactEmployeeStoreId
,
t
.
push
(
e
.
ext
.
employeeClerk
)}),
this
.
tableData
=
t
}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"employee-table"
},[
a
(
"el-table"
,{
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
,
"row-click"
:
e
.
linkToDetail
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
?
t
.
row
.
phoneNumber
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
phoneNumber
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
positionName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
e
.
row
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
C
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"YieV"
)},
null
,
null
).
exports
,
I
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
250
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)}},
mounted
:
function
(){
this
.
tableData
.
forEach
(
function
(
e
){
e
.
ext
.
store
=
e
.
ext
.
store
?
e
.
ext
.
store
:{},
e
.
ext
.
store
.
ext
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
:{
employeeClerkList
:[]},
e
.
ext
.
store
.
ext
||
(
e
.
ext
.
store
.
ext
=
{
employeeClerkList
:[]}),
e
.
ext
.
store
.
ext
.
employeeClerkList
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
.
employeeClerkList
:[],
e
.
storeCode
=
e
.
ext
.
store
?
e
.
ext
.
store
.
storeCode
:
""
})},
watch
:{
tableData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
ext
.
store
=
e
.
ext
.
store
?
e
.
ext
.
store
:{},
e
.
ext
.
store
.
ext
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
:{
employeeClerkList
:[]},
e
.
ext
.
store
.
ext
||
(
e
.
ext
.
store
.
ext
=
{
employeeClerkList
:[]}),
e
.
ext
.
store
.
ext
.
employeeClerkList
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
.
employeeClerkList
:[],
e
.
storeCode
=
e
.
ext
.
store
?
e
.
ext
.
store
.
storeCode
:
""
})}}},
A
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"175"
,
prop
:
"employeeStoreName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"175"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)])])]}},{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
ext
.
store
.
ext
.
employeeClerkList
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
t
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
t
.
positionName
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
t
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])])])}))]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
D
=
a
(
"VU/8"
)(
I
,
A
,
!
1
,
function
(
e
){
a
(
"PPN0"
)},
null
,
null
).
exports
,
y
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"guid-div"
},[
this
.
_m
(
0
),
this
.
_v
(
" "
),
this
.
_m
(
1
),
this
.
_v
(
" "
),
t
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
,
"margin-top"
:
"50px"
}},[
t
(
"a"
,{
attrs
:{
href
:
"#/shareCode"
}},[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
this
.
_v
(
"建立共享企业"
)])],
1
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"guid"
},[
o
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"共享通讯录操作引导"
)]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"flex-div"
},[
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"z6bE"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"点击建立共享企业,下载二维码 发给所要建立共享的企业"
)])]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"NBVb"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"从企业通讯录中添加对方可见我方 企业的成员及门店"
)])]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"NXrz"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"添加完成之后必须点击发布,所添加或 修改的信息才会同步至对方共享通讯录中"
)])])])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"guid"
},[
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"应用场景"
)]),
this
.
_v
(
" "
),
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"适用于集团公司与子公司建立通讯录部分成员共享机制"
)]),
this
.
_v
(
" "
),
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"适用于总部与代理商、加盟商建立通讯录部分成员共享机制"
)])])}]};
var
S
=
a
(
"VU/8"
)(
null
,
y
,
!
1
,
function
(
e
){
a
(
"XOpN"
)},
null
,
null
).
exports
,
w
=
{
name
:
"addNewGuid"
,
props
:{
groupInfo
:{
type
:
Object
,
required
:
!
0
}},
methods
:{
addNew
:
function
(){
this
.
groupInfo
.
isStoreGroup
?
this
.
$emit
(
"addStoreEmployee"
):
this
.
$emit
(
"addEmployee"
)}}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"tip-area"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"mxqO"
)}}),
e
.
_v
(
" "
),
e
.
groupInfo
.
isMine
?[
e
.
groupInfo
.
level
?
o
(
"p"
,[
e
.
_v
(
"暂无成员,开始添加成员吧"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
groupInfo
.
level
?
e
.
_e
():
o
(
"p"
,[
e
.
_v
(
"暂无成员,开始添加子分组吧"
)]),
e
.
_v
(
" "
),
e
.
groupInfo
.
level
?
o
(
"el-button"
,{
staticClass
:
"add-new-btn"
,
on
:{
click
:
e
.
addNew
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
()]:
o
(
"p"
,[
e
.
_v
(
"暂无成员,联系建立共享企业的管理员,对方添加后即可查看"
)])],
2
)},
staticRenderFns
:[]};
var
k
=
a
(
"VU/8"
)(
w
,
N
,
!
1
,
function
(
e
){
a
(
"GwAO"
)},
null
,
null
).
exports
,
E
=
a
(
"3E4D"
),
x
=
a
(
"Ch4/"
),
G
=
a
(
"Ie7z"
),
Y
=
{
name
:
"permission-set"
,
components
:{
vueSelectStore
:
G
.
a
,
vueSelectEmployee
:
p
.
a
},
props
:{
groupInfo
:{
type
:
Object
,
required
:
!
0
}},
data
:
function
(){
return
{
visibleList
:[],
visibleStoreList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
perTreeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
dialogVisible
:
!
0
,
changed
:
""
}},
methods
:{
getVisibleRange
:
function
(){
var
e
=
this
,
t
=
{
sharedContactGroupId
:
e
.
groupInfo
.
sharedContactGroupId
};
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/get-shared-group-visible-range"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
formatList
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatList
:
function
(
e
){
var
t
=
[],
a
=
[];
e
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
1
==
e
.
type
?(
e
.
employeeClerkId
=
e
.
id
,
t
.
push
(
e
)):(
e
.
storeId
=
e
.
id
,
a
.
push
(
e
))}),
this
.
visibleList
=
t
,
this
.
visibleStoreList
=
a
},
delCurrent
:
function
(
e
,
t
){
var
a
=
this
[
t
].
indexOf
(
e
);
this
[
t
].
splice
(
a
,
1
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
callPerSelector
:
function
(){
this
.
changed
=
"permission"
,
this
.
perTreeSet
.
dialogVisible
=!
0
},
setSharedGroupVisible
:
function
(){
var
e
=
this
,
t
=
[];
e
.
visibleList
.
concat
(
e
.
visibleStoreList
).
forEach
(
function
(
e
){
var
a
=
e
.
employeeClerkId
?
1
:
2
;
t
.
push
({
id
:
e
.
id
,
type
:
a
})});
var
a
=
{
visibleMemberList
:[{
memberList
:
t
,
sharedContactGroupId
:
e
.
groupInfo
.
id
}]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/set-shared-group-visible-range"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
e
.
getVisibleRange
()):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
cancelSet
:
function
(){
this
.
$emit
(
"cancelSet"
)},
handleSelectedList
:
function
(
e
){
this
.
visibleStoreList
=
e
},
handlePerSelectedList
:
function
(
e
){
this
.
visibleList
=
e
}},
beforeMount
:
function
(){
this
.
getVisibleRange
()},
mounted
:
function
(){}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"per-set-div"
},[
a
(
"el-form"
,{
attrs
:{
"label-width"
:
"150px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"当前范围:"
}},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
label
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置可见范围(员工):"
}},[
a
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
visibleList
,
function
(
t
,
o
){
return
[
t
.
employeeClerkId
?
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
id
,
staticClass
:
"item person-item"
},[
t
.
headPic
?
a
(
"img"
,{
attrs
:{
src
:
t
.
headPic
}}):
a
(
"div"
,{
staticClass
:
"replace-head-img"
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
label
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
a
){
e
.
delCurrent
(
t
,
"visibleList"
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"item J_add-btn"
,
on
:{
click
:
e
.
callPerSelector
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置可见范围(门店):"
}},[
a
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
visibleStoreList
,
function
(
t
,
o
){
return
[
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
id
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
label
)
+
"
\
n "
),
a
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
a
){
e
.
delCurrent
(
t
,
"visibleStoreList"
)}}})])]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"item J_add-btn"
,
on
:{
click
:
e
.
callSelector
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
setSharedGroupVisible
}},[
e
.
_v
(
"确定"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancelSet
}},[
e
.
_v
(
"取消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
visibleStoreList
,
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"selectEmployee"
,
attrs
:{
defaultSelection
:
e
.
visibleList
,
onlyPerson
:
!
0
,
treeSet
:
e
.
perTreeSet
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handlePerSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
R
=
a
(
"VU/8"
)(
Y
,
L
,
!
1
,
function
(
e
){
a
(
"JBRo"
)},
null
,
null
).
exports
,
j
=
{
name
:
"shareContact"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
u
,
employeeInfo
:
m
,
employeeList
:
C
,
guidDiv
:
S
,
clerkView
:
D
,
vueSelectEmployee
:
p
.
a
,
vueSelectStore
:
G
.
a
,
permissionSet
:
R
,
addNewGuid
:
k
,
storeInfo
:
g
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"共享通讯录"
,
path
:
""
}],
windowH
:
window
.
screen
.
availHeight
-
440
+
"px"
,
boxHeight
:
window
.
screen
.
availHeight
-
440
-
48
+
"px"
,
showChildMember
:
!
1
,
setDisabledDel
:
!
1
,
menuData
:[],
pageSize
:
20
,
currentPage
:
1
,
selectedList
:[],
total
:
0
,
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
employeeList
:[],
searchResult
:{},
showEmployee
:
""
,
perId
:
""
,
sharedContactRelationId
:[],
shareMember
:
!
1
,
shareSale
:
!
1
,
disabled
:
!
0
,
treeData
:{},
sldType
:
1
,
dlgTitle
:
""
,
dlgShow
:
!
1
,
editDlgShow
:
!
1
,
newGroupName
:
""
,
storeInfo
:{}}},
created
:
function
(){},
beforeMount
:
function
(){
this
.
getShareRelation
()},
methods
:{
editGroup
:
function
(){
this
.
dlgTitle
=
"部门"
,
this
.
newGroupName
=
this
.
groupInfo
.
groupName
,
this
.
editDlgShow
=!
0
},
subSonGroupAdd
:
function
(
e
){
var
t
=
this
;
if
(
""
==
t
.
newGroupName
)
t
.
$message
.
error
({
message
:
"名称不能为空"
});
else
{
var
a
=
{
parentSharedContactGroupId
:
e
?
t
.
groupInfo
.
parentId
:
t
.
groupInfo
.
id
,
name
:
t
.
newGroupName
};
e
?
a
.
sharedContactGroupId
=
t
.
groupInfo
.
id
:
delete
a
.
sharedContactGroupId
,
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/set-shared-group"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
e
.
data
.
message
}),
t
.
getShareRelation
(),
t
.
dlgShow
=!
1
,
t
.
editDlgShow
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}},
callEmployeeSelector
:
function
(){
this
.
sldType
=
1
,
this
.
$refs
.
selectEmployee
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
var
t
=
this
,
a
=
[];
e
.
forEach
(
function
(
e
){
a
.
push
({
id
:
e
.
id
,
type
:
t
.
sldType
})});
var
o
=
{
overwrite
:
!
1
,
sharedContactMemberList
:[{
sharedContactGroupId
:
t
.
groupInfo
.
id
,
memberList
:
a
}]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/add-shared-member"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
e
.
data
.
message
}),
t
.
getEmployee
()):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmployee
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getEmployee
()},
cancelSet
:
function
(){
console
.
log
(
"Cancel"
),
this
.
showEmployee
=!
1
},
subShareSet
:
function
(){
var
e
=
this
,
t
=
{
visibleData
:{
shareMember
:
1
*
e
.
shareMember
,
shareSale
:
1
*
e
.
shareSale
,
sharedContactRelationId
:
e
.
sharedContactRelationId
.
join
(
","
)}};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/set-shared-store-visible-data"
,
t
).
then
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyword
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/search-shared-contact"
,
a
).
then
(
function
(
e
){
e
.
data
.
result
&&
(
t
.
searchResult
=
e
.
data
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
=
e
,
this
.
groupInfo
.
departmentId
=
e
.
id
,
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
showEmployee
=
a
,
this
.
loading
=!
0
,
this
.
getEmployee
(),
console
.
log
(
e
,
t
,
a
,
this
.
groupInfo
)},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
perId
=
e
.
employeeClerkId
,
this
.
showEmployee
=
t
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
storeId
:
e
.
storeId
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
showEmployee
=
t
,
a
.
storeInfo
=
e
.
data
.
result
):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
deleteDepart
:
function
(
e
){
var
t
=
this
;
t
.
$confirm
(
"是否要删除当前分组?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
t
.
postDeleteDepart
(
e
)})},
postDeleteDepart
:
function
(
e
){
var
t
=
this
,
a
=
{
sharedContactGroupIdList
:[
e
]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/del-shared-group"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
E
.
a
.
showmsg
(
"删除成功"
,
"success"
),
t
.
getShareRelation
()):
x
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
delMembers
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否要删除选中的员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
t
=
[];
e
.
selectedList
.
forEach
(
function
(
e
){
t
.
push
(
e
.
sharedContactEmployeeStoreId
)});
var
a
=
{
sharedContactEmployeeStoreIdList
:
t
};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/del-shared-member"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
e
.
getEmployee
()):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})})},
setChildMemberShow
:
function
(){
this
.
getEmployee
()},
getGroupData
:
function
(
e
){
var
t
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/find-shared-group"
,{}).
then
(
function
(
e
){
e
.
data
.
result
.
forEach
(
function
(
e
){
e
.
groupId
=
e
.
sharedContactGroupId
}),
t
.
menuData
=
e
.
data
.
result
||
[],
t
.
menuData
.
some
(
function
(
e
){
return
0
==
e
.
level
&&
(
t
.
groupInfo
.
departmentId
=
e
.
groupId
,
t
.
groupInfo
.
groupName
=
e
.
name
),
0
==
e
.
level
}),
t
.
getEmployee
(),
t
.
getRelationIds
(
t
.
menuData
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
getRelationIds
:
function
(
e
){
var
t
=
window
.
localStorage
.
getItem
(
"userInfo"
),
a
=
JSON
.
parse
(
t
).
enterpriseId
,
o
=
[];
e
.
forEach
(
function
(
e
){
0
==
e
.
level
&&
e
.
enterpriseId
!=
a
&&
o
.
push
(
e
.
enterpriseId
)}),
o
=
[].
concat
(
n
()(
new
s
.
a
(
o
))),
this
.
sharedContactRelationId
=
o
},
getShareRelation
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/find-shared-contact-relation"
,{
searchGroup
:
1
}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?(
e
.
menuData
=
a
.
result
||
[],
e
.
loading
=!
1
):(
x
.
a
.
errorMsg
(
a
),
e
.
loading
=!
1
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
getEmployeeFirst
:
function
(
e
){
this
.
groupInfo
=
e
,
console
.
log
(
"First:"
,
e
),
this
.
getEmployee
()},
getEmployee
:
function
(){
var
e
=
this
,
t
=
{
sharedContactGroupId
:
e
.
groupInfo
.
id
,
findChildren
:
e
.
showChildMember
};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/find-shared-member"
,
t
).
then
(
function
(
t
){
var
a
=
[],
o
=
0
;
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
list
||
[],
o
=
t
.
data
.
result
.
pageInfo
.
total
||
0
),
e
.
employeeList
=
a
,
e
.
total
=
o
,
e
.
loading
=!
1
}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
message
:
t
.
message
})})}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
&&!
this
.
setDisabledDel
}}},
M
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
,
style
:{
minHeight
:
e
.
windowH
,
"overflow-y"
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"administrative-estrutura-container"
},[
e
.
menuData
.
length
>
0
?[
a
(
"search-menu"
,{
attrs
:{
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleEmployeeSelection
:
e
.
handleEmployeeSelection
,
getEmployeeFirst
:
e
.
getEmployeeFirst
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"p"
,{
staticClass
:
"add-share"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/shareCode"
}},[
a
(
"el-button"
,[
e
.
_v
(
"建立共享企业"
)])],
1
)])])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"employee-info"
,{
attrs
:{
perId
:
e
.
perId
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
storeInfo
:
e
.
storeInfo
}}):
"permission"
==
e
.
showEmployee
?
a
(
"permission-set"
,{
attrs
:{
groupInfo
:
e
.
groupInfo
},
on
:{
cancelSet
:
e
.
cancelSet
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"af-right-container"
},[
a
(
"div"
,{
staticClass
:
"af-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"人)"
),
a
(
"span"
,{
staticClass
:
"not-show-app"
},[
e
.
_v
(
"本企业通讯录APP中不展示"
)])]),
e
.
_v
(
" "
),
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
?
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
t
){
e
.
dlgTitle
=
"分组"
,
e
.
dlgShow
=!
0
}}},[
e
.
_v
(
"添加子分组"
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
e
.
editGroup
}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
function
(
t
){
e
.
deleteDepart
(
e
.
groupInfo
.
id
)}}},[
e
.
_v
(
"删除子分组"
)]):
e
.
_e
()]):
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"a"
,{
staticClass
:
"J_add-child a-href"
,
on
:{
click
:
function
(
t
){
e
.
dlgTitle
=
"部门"
,
e
.
newGroupName
=
""
,
e
.
dlgShow
=!
0
}}},[
e
.
_v
(
"
\
n 添加子部门
\
n "
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?[
a
(
"span"
,{
staticClass
:
"hurdle"
}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
e
.
editGroup
}},[
e
.
_v
(
"
\
n 编辑
\
n "
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
function
(
t
){
e
.
deleteDepart
(
e
.
groupInfo
.
id
)}}},[
e
.
_v
(
"删除子分组"
)]):
e
.
_e
()]:
e
.
_e
()],
2
)]:[
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
showEmployee
=
"permission"
}}},[
e
.
_v
(
"设置可见权限"
)])]],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?[
a
(
"div"
,{
staticClass
:
"af-right-button-box"
},[
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
&&
1
*
e
.
groupInfo
.
level
>
0
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}},[
e
.
_v
(
"
\
n 添加门店
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
callEmployeeSelector
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
plain
:
""
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delMembers
}},[
e
.
_v
(
"批量删除"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"J_show-children"
},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}}),
a
(
"a"
,{
staticClass
:
"a-href"
},[
e
.
_v
(
"显示子成员"
)])],
1
)],
2
),
e
.
_v
(
" "
),
1
==
e
.
groupInfo
.
isStoreGroup
?
a
(
"clerk-view"
,{
attrs
:{
tableData
:
e
.
employeeList
},
on
:{
selectMember
:
e
.
selectMember
}}):
a
(
"employee-list"
,{
attrs
:{
employeeList
:
e
.
employeeList
,
groupInfo
:
e
.
groupInfo
},
on
:{
selectMember
:
e
.
selectMember
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)]:[
a
(
"div"
,{
staticClass
:
"af-right-button-box"
},[
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}},[
e
.
_v
(
"
\
n 添加门店
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
callEmployeeSelector
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
()]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}}),
a
(
"a"
,{
staticClass
:
"a-href"
},[
e
.
_v
(
"显示子成员"
)])],
1
)],
2
),
e
.
_v
(
" "
),
a
(
"add-new-guid"
,{
attrs
:{
groupInfo
:
e
.
groupInfo
},
on
:{
addEmployee
:
e
.
callEmployeeSelector
,
addStoreEmployee
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}})]],
2
)]:[
a
(
"guid-div"
)]],
2
)])]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"添加子"
+
e
.
dlgTitle
,
visible
:
e
.
dlgShow
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dlgShow
=
t
}}},[
a
(
"div"
,{
staticStyle
:{
padding
:
"30px"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入"
+
e
.
dlgTitle
+
"名称"
},
model
:{
value
:
e
.
newGroupName
,
callback
:
function
(
t
){
e
.
newGroupName
=
t
},
expression
:
"newGroupName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dlgShow
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
subSonGroupAdd
(
0
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"编辑"
+
e
.
dlgTitle
,
visible
:
e
.
editDlgShow
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
editDlgShow
=
t
}}},[
a
(
"div"
,{
staticStyle
:{
padding
:
"30px"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入"
+
e
.
dlgTitle
+
"名称"
},
model
:{
value
:
e
.
newGroupName
,
callback
:
function
(
t
){
e
.
newGroupName
=
t
},
expression
:
"newGroupName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
editDlgShow
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
subSonGroupAdd
(
1
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"selectEmployee"
,
attrs
:{
onlyPerson
:
!
0
,
treeData
:
e
.
treeData
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
T
=
a
(
"VU/8"
)(
j
,
M
,
!
1
,
function
(
e
){
a
(
"dTTS"
)},
null
,
null
);
t
.
default
=
T
.
exports
},
GwAO
:
function
(
e
,
t
){},
HpRW
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"kM2E"
),
s
=
a
(
"lOnJ"
),
r
=
a
(
"+ZMJ"
),
n
=
a
(
"NWt+"
);
e
.
exports
=
function
(
e
){
o
(
o
.
S
,
e
,{
from
:
function
(
e
){
var
t
,
a
,
o
,
i
,
l
=
arguments
[
1
];
return
s
(
this
),(
t
=
void
0
!==
l
)
&&
s
(
l
),
void
0
==
e
?
new
this
:(
a
=
[],
t
?(
o
=
0
,
i
=
r
(
l
,
arguments
[
2
],
2
),
n
(
e
,
!
1
,
function
(
e
){
a
.
push
(
i
(
e
,
o
++
))})):
n
(
e
,
!
1
,
a
.
push
,
a
),
new
this
(
a
))}})}},
JBRo
:
function
(
e
,
t
){},
LIJb
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"EqjI"
);
e
.
exports
=
function
(
e
,
t
){
if
(
!
o
(
e
)
||
e
.
_t
!==
t
)
throw
TypeError
(
"Incompatible receiver, "
+
t
+
" required!"
);
return
e
}},
NBVb
:
function
(
e
,
t
,
a
){
e
.
exports
=
a
.
p
+
"static/img/guid2.c4a077f.png"
},
NXrz
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADACAYAAACDO2h3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj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F/QrwDTijUAC0BkKeVO03mjnJG/J6ejcAPNOSLwRAa0HktP/7YJfY/FR5CYs/wh4GfKamsboWwNKHu/na+EXzlAhTIv4O/psi/k+JuD+RnfZGO/H9Mf7NUaM6q1iZPixbuT1Fsd2C2Jz7yR3v9wO8QUlGVhwGFQOVpoEVakGgUiPgcpSmj1FKR+Yq89NT6AKLq+btWjtvGcBrHswDKTYDjMFJ1yALboPAeWYyzXH5Sv7UIuWirHS6IFXpmTIuGeXEoPG0I5zVsxbg+ZNxrYqFsGVoT3mGBlsGyVt6fTR5mDKyuECZk5VG30tNoZkosBEm/bTfr9JmXzetb+lU136xV93Q3NEzps9tPJ+27axYkNrpCgABHGeRsGVqJgFQApo2QikuylGmZaZRaVoKlaDdWMxQKgoNU/outtPFWfiqSo2ArQa2E8BtbetSK6r20xe1LaqRV5u4ndqhWTuANDXxRFFV814OmPZIH6/NwPEaa9ni3VwjLmROSuZXEMJg/Oqm+It4sNpVvAxfIZm8wqTIFmLKhmjGVTVHx20D+TGzxeCNEPg8oXStrAvtBGC+lIvnlG8nAJulPDynhMt8MNqATVoIL21A92vAbcDBCkLaNJMo2ENRsJ0ADKo95CSzQow7naUf0BlStRqtPaI8TVEyh7ciT15GQuzp3cJGQsikleLtAGCkol1ccCw4dBzYc2PBgyye5rJb2wbNp5k/2SeTZsMnMDjsE6lgelU0c0U2zACqSL9m3RF/RzPVTief5rAbHXxijcgx+YAh5g/5jBoBV+jfoZCpTn560lzuGbpIZGuZmowgEgmAIgFQJBIARQKgSKSn/wswAJ9xy6rr0P+IAAAAAElFTkSuQmCC"
},
PPN0
:
function
(
e
,
t
){},
W6b0
:
function
(
e
,
t
){},
XOpN
:
function
(
e
,
t
){},
YieV
:
function
(
e
,
t
){},
dTTS
:
function
(
e
,
t
){},
ioQ5
:
function
(
e
,
t
,
a
){
a
(
"HpRW"
)(
"Set"
)},
kZOa
:
function
(
e
,
t
){},
lHA8
:
function
(
e
,
t
,
a
){
e
.
exports
=
{
default
:
a
(
"pPW7"
),
__esModule
:
!
0
}},
m9gC
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"RY/4"
),
s
=
a
(
"4WTo"
);
e
.
exports
=
function
(
e
){
return
function
(){
if
(
o
(
this
)
!=
e
)
throw
TypeError
(
e
+
"#toJSON isn't generic"
);
return
s
(
this
)}}},
mxqO
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAACPCAYAAABwDvegAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAABMGSURBVHhe7Z2Ld1TVFcb7F7bWVttqfbS2q+/WR1cfWrUvrFYryFNFGxAUITwTQEAkCYRHIEACJJAQ3o9AlMxk3u/d853k1juTk5k7d2aSe0++31qfRpNJJnet82Xvc/be5xtCCCGWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYSEsoKRXVPwpF9TH+g5B5hMZGGgYGNpUqytDtvHSczsjKA0lZsjMu/9wxLXz85u6EfHI0JSev5GQiVpQCzY60EBob8U06V5JzN/Py0eGUvKbM64+bYvLTtVF59J2IfPOtyTJ9++1JeWpNRJ7fMCV/3x6Xd/YlpXckJ7FUiREdaTo0NlI3eZVeDtzIybqelLy4OSY/XDXbyGoJRvecMrmlexNydMbgCGkWNDZSFw/iRelU6eZLytB+sKJ+Q6vUt/4zKc9vjGmTvDpR0HtyhDQKjY14BsaDtPOZ96PyLYNJNSKY5L87EzJ4Iy/Z/MwPJMQnNDbiibF7BVmxPymP+0g7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PPN+680Ulymv2D/dSuU+NCCLExrbIgN3k+L6uec2TOlbnkwmESahTQzpJ26roqkRBxrbIgSFpuhGeKMzoQ3uidXNryNrpfBev7c8Ir9ZN6XLWHApcnr23clkEUNjW8SghQtFqOt6UvLq1pi8tEVpc/D1antclu9LyrERjusmZmhsRAN7wAEDrrALsvAemW6SWtDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIZYj8D3jm/DexJ3hWAAAAAElFTkSuQmCC"
},
oNmr
:
function
(
e
,
t
,
a
){
a
(
"9Bbf"
)(
"Set"
)},
oeOm
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"7Doy"
);
e
.
exports
=
function
(
e
,
t
){
return
new
(
o
(
e
))(
t
)}},
pPW7
:
function
(
e
,
t
,
a
){
a
(
"M6a0"
),
a
(
"zQR9"
),
a
(
"+tPU"
),
a
(
"ttyz"
),
a
(
"BDhv"
),
a
(
"oNmr"
),
a
(
"ioQ5"
),
e
.
exports
=
a
(
"FeBl"
).
Set
},
qo66
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"7KvD"
),
s
=
a
(
"kM2E"
),
r
=
a
(
"06OY"
),
n
=
a
(
"S82l"
),
i
=
a
(
"hJx8"
),
l
=
a
(
"xH/j"
),
c
=
a
(
"NWt+"
),
u
=
a
(
"2KxR"
),
d
=
a
(
"EqjI"
),
p
=
a
(
"e6n0"
),
h
=
a
(
"evD5"
).
f
,
f
=
a
(
"ALrJ"
)(
0
),
m
=
a
(
"+E39"
);
e
.
exports
=
function
(
e
,
t
,
a
,
g
,
v
,
b
){
var
C
=
o
[
e
],
I
=
C
,
A
=
v
?
"set"
:
"add"
,
D
=
I
&&
I
.
prototype
,
y
=
{};
return
m
&&
"function"
==
typeof
I
&&
(
b
||
D
.
forEach
&&!
n
(
function
(){(
new
I
).
entries
().
next
()}))?(
I
=
t
(
function
(
t
,
a
){
u
(
t
,
I
,
e
,
"_c"
),
t
.
_c
=
new
C
,
void
0
!=
a
&&
c
(
a
,
v
,
t
[
A
],
t
)}),
f
(
"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON"
.
split
(
","
),
function
(
e
){
var
t
=
"add"
==
e
||
"set"
==
e
;
e
in
D
&&
(
!
b
||
"clear"
!=
e
)
&&
i
(
I
.
prototype
,
e
,
function
(
a
,
o
){
if
(
u
(
this
,
I
,
e
),
!
t
&&
b
&&!
d
(
a
))
return
"get"
==
e
&&
void
0
;
var
s
=
this
.
_c
[
e
](
0
===
a
?
0
:
a
,
o
);
return
t
?
this
:
s
})}),
b
||
h
(
I
.
prototype
,
"size"
,{
get
:
function
(){
return
this
.
_c
.
size
}})):(
I
=
g
.
getConstructor
(
t
,
e
,
v
,
A
),
l
(
I
.
prototype
,
a
),
r
.
NEED
=!
0
),
p
(
I
,
e
),
y
[
e
]
=
I
,
s
(
s
.
G
+
s
.
W
+
s
.
F
,
y
),
b
||
g
.
setStrong
(
I
,
e
,
v
),
I
}},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
s
=
a
.
n
(
o
),
r
=
a
(
"Xxa5"
),
n
=
a
.
n
(
r
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
u
=
a
.
n
(
c
),
d
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
h
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
m
=
a
.
n
(
f
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
h
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
o
){
return
a
&&
e
.
storeInfo
.
closeTime
?
o
():
o
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
o
){
if
(
!
a
)
return
o
(
new
Error
(
"请输入手机号码"
));
new
m
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
).
isValid
()?
o
():
o
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
imgs
=
e
},
deleteImage
:
function
(
e
){
this
.
imgs
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
u
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
o
,
s
,
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
o
,
s
,
r
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
e
.
storeInfoData
,
o
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
o
.
push
(
e
.
url
)}),
a
.
imageUrls
=
o
.
join
(
","
),
Object
(
d
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}];
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
this
.
imgs
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
s
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"kZOa"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
ttyz
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"9C8M"
),
s
=
a
(
"LIJb"
);
e
.
exports
=
a
(
"qo66"
)(
"Set"
,
function
(
e
){
return
function
(){
return
e
(
this
,
arguments
.
length
>
0
?
arguments
[
0
]:
void
0
)}},{
add
:
function
(
e
){
return
o
.
def
(
s
(
this
,
"Set"
),
e
=
0
===
e
?
0
:
e
,
e
)}},
o
)},
vvXe
:
function
(
e
,
t
){},
z6bE
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgo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3wtH6p58oN6YdV0TQGp+t9dZZ4Pjil77+m3HOlQMjldH9/lMjciDxKa3OlY1blkiRAJAEiCRBpsPU/AQYA8WB1pb8eLF8AAAAASUVORK5CYII="
}});
\ No newline at end of file
dist/static/js/2.592033393573b820aeb9.js
deleted
100644 → 0
View file @
8f9bb669
webpackJsonp
([
2
],{
"4IxG"
:
function
(
e
,
t
){},
"4WTo"
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"NWt+"
);
e
.
exports
=
function
(
e
,
t
){
var
a
=
[];
return
o
(
e
,
!
1
,
a
.
push
,
a
,
t
),
a
}},
"7Doy"
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"EqjI"
),
s
=
a
(
"7UMu"
),
r
=
a
(
"dSzd"
)(
"species"
);
e
.
exports
=
function
(
e
){
var
t
;
return
s
(
e
)
&&
(
"function"
!=
typeof
(
t
=
e
.
constructor
)
||
t
!==
Array
&&!
s
(
t
.
prototype
)
||
(
t
=
void
0
),
o
(
t
)
&&
null
===
(
t
=
t
[
r
])
&&
(
t
=
void
0
)),
void
0
===
t
?
Array
:
t
}},
"9Bbf"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"kM2E"
);
e
.
exports
=
function
(
e
){
o
(
o
.
S
,
e
,{
of
:
function
(){
for
(
var
e
=
arguments
.
length
,
t
=
new
Array
(
e
);
e
--
;)
t
[
e
]
=
arguments
[
e
];
return
new
this
(
t
)}})}},
"9C8M"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"evD5"
).
f
,
s
=
a
(
"Yobk"
),
r
=
a
(
"xH/j"
),
n
=
a
(
"+ZMJ"
),
i
=
a
(
"2KxR"
),
l
=
a
(
"NWt+"
),
c
=
a
(
"vIB/"
),
u
=
a
(
"EGZi"
),
d
=
a
(
"bRrM"
),
p
=
a
(
"+E39"
),
h
=
a
(
"06OY"
).
fastKey
,
f
=
a
(
"LIJb"
),
m
=
p
?
"_s"
:
"size"
,
g
=
function
(
e
,
t
){
var
a
,
o
=
h
(
t
);
if
(
"F"
!==
o
)
return
e
.
_i
[
o
];
for
(
a
=
e
.
_f
;
a
;
a
=
a
.
n
)
if
(
a
.
k
==
t
)
return
a
};
e
.
exports
=
{
getConstructor
:
function
(
e
,
t
,
a
,
c
){
var
u
=
e
(
function
(
e
,
o
){
i
(
e
,
u
,
t
,
"_i"
),
e
.
_t
=
t
,
e
.
_i
=
s
(
null
),
e
.
_f
=
void
0
,
e
.
_l
=
void
0
,
e
[
m
]
=
0
,
void
0
!=
o
&&
l
(
o
,
a
,
e
[
c
],
e
)});
return
r
(
u
.
prototype
,{
clear
:
function
(){
for
(
var
e
=
f
(
this
,
t
),
a
=
e
.
_i
,
o
=
e
.
_f
;
o
;
o
=
o
.
n
)
o
.
r
=!
0
,
o
.
p
&&
(
o
.
p
=
o
.
p
.
n
=
void
0
),
delete
a
[
o
.
i
];
e
.
_f
=
e
.
_l
=
void
0
,
e
[
m
]
=
0
},
delete
:
function
(
e
){
var
a
=
f
(
this
,
t
),
o
=
g
(
a
,
e
);
if
(
o
){
var
s
=
o
.
n
,
r
=
o
.
p
;
delete
a
.
_i
[
o
.
i
],
o
.
r
=!
0
,
r
&&
(
r
.
n
=
s
),
s
&&
(
s
.
p
=
r
),
a
.
_f
==
o
&&
(
a
.
_f
=
s
),
a
.
_l
==
o
&&
(
a
.
_l
=
r
),
a
[
m
]
--
}
return
!!
o
},
forEach
:
function
(
e
){
f
(
this
,
t
);
for
(
var
a
,
o
=
n
(
e
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
3
);
a
=
a
?
a
.
n
:
this
.
_f
;)
for
(
o
(
a
.
v
,
a
.
k
,
this
);
a
&&
a
.
r
;)
a
=
a
.
p
},
has
:
function
(
e
){
return
!!
g
(
f
(
this
,
t
),
e
)}}),
p
&&
o
(
u
.
prototype
,
"size"
,{
get
:
function
(){
return
f
(
this
,
t
)[
m
]}}),
u
},
def
:
function
(
e
,
t
,
a
){
var
o
,
s
,
r
=
g
(
e
,
t
);
return
r
?
r
.
v
=
a
:(
e
.
_l
=
r
=
{
i
:
s
=
h
(
t
,
!
0
),
k
:
t
,
v
:
a
,
p
:
o
=
e
.
_l
,
n
:
void
0
,
r
:
!
1
},
e
.
_f
||
(
e
.
_f
=
r
),
o
&&
(
o
.
n
=
r
),
e
[
m
]
++
,
"F"
!==
s
&&
(
e
.
_i
[
s
]
=
r
)),
e
},
getEntry
:
g
,
setStrong
:
function
(
e
,
t
,
a
){
c
(
e
,
t
,
function
(
e
,
a
){
this
.
_t
=
f
(
e
,
t
),
this
.
_k
=
a
,
this
.
_l
=
void
0
},
function
(){
for
(
var
e
=
this
.
_k
,
t
=
this
.
_l
;
t
&&
t
.
r
;)
t
=
t
.
p
;
return
this
.
_t
&&
(
this
.
_l
=
t
=
t
?
t
.
n
:
this
.
_t
.
_f
)?
u
(
0
,
"keys"
==
e
?
t
.
k
:
"values"
==
e
?
t
.
v
:[
t
.
k
,
t
.
v
]):(
this
.
_t
=
void
0
,
u
(
1
))},
a
?
"entries"
:
"values"
,
!
a
,
!
0
),
d
(
t
)}}},
ALrJ
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"+ZMJ"
),
s
=
a
(
"MU5D"
),
r
=
a
(
"sB3e"
),
n
=
a
(
"QRG4"
),
i
=
a
(
"oeOm"
);
e
.
exports
=
function
(
e
,
t
){
var
a
=
1
==
e
,
l
=
2
==
e
,
c
=
3
==
e
,
u
=
4
==
e
,
d
=
6
==
e
,
p
=
5
==
e
||
d
,
h
=
t
||
i
;
return
function
(
t
,
i
,
f
){
for
(
var
m
,
g
,
v
=
r
(
t
),
b
=
s
(
v
),
C
=
o
(
i
,
f
,
3
),
I
=
n
(
b
.
length
),
A
=
0
,
y
=
a
?
h
(
t
,
I
):
l
?
h
(
t
,
0
):
void
0
;
I
>
A
;
A
++
)
if
((
p
||
A
in
b
)
&&
(
g
=
C
(
m
=
b
[
A
],
A
,
v
),
e
))
if
(
a
)
y
[
A
]
=
g
;
else
if
(
g
)
switch
(
e
){
case
3
:
return
!
0
;
case
5
:
return
m
;
case
6
:
return
A
;
case
2
:
y
.
push
(
m
)}
else
if
(
u
)
return
!
1
;
return
d
?
-
1
:
c
||
u
?
u
:
y
}}},
BDhv
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"kM2E"
);
o
(
o
.
P
+
o
.
R
,
"Set"
,{
toJSON
:
a
(
"m9gC"
)(
"Set"
)})},
Gfms
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"lHA8"
),
s
=
a
.
n
(
o
),
r
=
a
(
"Gu7T"
),
n
=
a
.
n
(
r
),
i
=
a
(
"3Xzz"
),
l
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
menuDataMine
:[],
defaultOpen
:[],
shareArea
:[]}},
methods
:{
formatGroupData
:
function
(
e
){
var
t
=
this
,
a
=
[],
o
=
window
.
localStorage
.
getItem
(
"userInfo"
),
s
=
JSON
.
parse
(
o
).
enterpriseId
,
r
=!
1
;
e
.
forEach
(
function
(
o
,
n
){
if
(
o
.
exportEnterpriseId
==
s
){
var
i
=
{
title
:
o
.
title
,
sharedContactRelationId
:
o
.
sharedContactRelationId
,
id
:
o
.
sharedContactRelationId
,
shares
:[
o
]};
o
.
childrens
=
o
.
ext
.
sharedContactDepartmentStoreGroupList
,
o
.
childrens
.
forEach
(
function
(
e
){
t
.
formatGroup
(
e
,
1
)}),
r
||
(
r
=!
0
,
t
.
$emit
(
"getEmployeeFirst"
,
o
.
childrens
[
0
])),
t
.
defaultOpen
.
push
(
o
.
childrens
[
0
].
id
),
t
.
defaultOpen
.
push
(
o
.
childrens
[
1
].
id
),
e
.
forEach
(
function
(
e
){
e
.
exportEnterpriseId
==
o
.
importEnterpriseId
&&
(
e
.
childrens
=
e
.
ext
.
sharedContactDepartmentStoreGroupList
,
e
.
childrens
.
forEach
(
function
(
e
){
t
.
formatGroup
(
e
,
0
)}),
i
.
shares
.
push
(
e
),
t
.
defaultOpen
.
push
(
e
.
childrens
[
0
].
id
),
t
.
defaultOpen
.
push
(
e
.
childrens
[
1
].
id
))}),
a
.
push
(
i
)}}),
t
.
shareArea
=
a
,
t
.
$forceUpdate
()},
formatGroup
:
function
(
e
,
t
){
var
a
=
this
;
e
.
id
=
e
.
sharedContactGroupId
,
e
.
label
=
e
.
name
,
e
.
isMine
=
t
,
e
.
ext
&&
e
.
ext
.
sharedContactDepartmentStoreGroupList
&&
(
e
.
childrens
=
e
.
ext
.
sharedContactDepartmentStoreGroupList
,
e
.
childrens
.
forEach
(
function
(
e
){
a
.
formatGroup
(
e
,
t
)}))},
clearFn
:
function
(){
this
.
searchResultShow
=!
1
},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
var
e
=
[];
this
.
searchResult
.
employeeStoreList
&&
this
.
searchResult
.
employeeStoreList
.
forEach
(
function
(
t
){
t
.
ext
.
employeeClerk
?(
t
.
employeeClerkId
=
t
.
ext
.
employeeClerk
.
employeeClerkId
,
t
.
name
=
t
.
employeeStoreName
,
e
.
push
(
t
)):
t
.
ext
.
store
.
ext
.
employeeClerkList
.
forEach
(
function
(
t
){
e
.
push
(
t
)})});
return
e
},
storeList
:
function
(){
var
e
=
[];
this
.
searchResult
.
employeeStoreList
&&
this
.
searchResult
.
employeeStoreList
.
forEach
(
function
(
t
){
t
.
ext
.
store
&&
(
t
.
storeId
=
t
.
employeeStoreId
,
t
.
name
=
t
.
employeeStoreName
,
e
.
push
(
t
))});
return
e
},
departmentList
:
function
(){
return
this
.
searchResult
.
groupList
?(
this
.
searchResult
.
groupList
.
forEach
(
function
(
e
){
e
.
id
=
e
.
sharedContactGroupId
}),
this
.
searchResult
.
groupList
):[]}},
watch
:{
treeData
:
function
(
e
,
t
){
this
.
formatGroupData
(
e
)}},
mounted
:
function
(){
this
.
formatGroupData
(
this
.
treeData
)}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
)],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
storeList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
storeId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
o
){
return
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]):[
e
.
_l
(
e
.
shareArea
,
function
(
t
){
return
[
a
(
"div"
,{
key
:
t
.
sharedContactRelationId
},[
a
(
"p"
,{
staticClass
:
"area-title"
},[
e
.
_v
(
e
.
_s
(
t
.
title
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"share-title"
},[
e
.
_v
(
"我方共享给对方的所有人员"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"p-0-15"
,
attrs
:{
id
:
"id"
+
t
.
shares
[
0
].
sharedContactRelationId
}},[
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
t
.
shares
[
0
].
childrens
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
o
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
),
e
.
_v
(
" "
),
e
.
_m
(
0
,
!
0
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"p-0-15"
,
attrs
:{
id
:
"id"
+
t
.
shares
[
1
].
sharedContactRelationId
}},[
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
t
.
shares
[
1
].
childrens
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
o
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
)])]})]],
2
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"p"
,{
staticClass
:
"share-title"
},[
this
.
_v
(
"对方共享给我方的所有人员"
),
t
(
"i"
,{
staticClass
:
"el-icon-upload"
})])}]};
var
u
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"W6b0"
)},
null
,
null
).
exports
,
d
=
a
(
"P9l9"
),
p
=
a
(
"c4uw"
),
h
=
{
name
:
"employeeInfo"
,
components
:{
vueSelectEmployee
:
p
.
a
},
props
:{
perId
:{
type
:[
String
,
Number
],
default
:
""
},
isNew
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
info
:{
name
:
""
,
phoneNumber
:
""
,
departmentId
:
""
,
departmentName
:
""
,
managerMode
:
!
1
},
treeData
:{},
disabled
:
!
0
,
employeeInfo
:{
name
:
""
,
phoneNumber
:
""
,
departmentName
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入员工姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
!
t
)
return
a
(
new
Error
(
"请输入手机号"
));
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
void
0
:
a
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
departmentId
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}]},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
}}},
methods
:{
getGroupData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
a
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
a
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callGroupSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
info
.
departmentId
=
e
.
id
,
this
.
info
.
departmentName
=
e
.
label
},
getEmployInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
employeeClerkId
?
e
.
$route
.
query
.
employeeClerkId
:
e
.
perId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
e
.
info
=
t
.
data
.
result
,
e
.
info
.
managerMode
=!!
t
.
data
.
result
.
managerMode
}).
catch
(
function
(
e
){})}},
beforeMount
:
function
(){
this
.
getGroupData
(),
this
.
isNew
||
this
.
getEmployInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getEmployInfo
()}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"employee-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"员工信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
staticClass
:
"employee-info-form"
,
attrs
:{
model
:
e
.
info
,
"label-width"
:
"70px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名:"
,
prop
:
"name"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
name
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号:"
,
prop
:
"phoneNumber"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
"86"
==
e
.
info
.
nationcode
?
e
.
info
.
phoneNumber
:
"+"
+
e
.
info
.
nationcode
+
"-"
+
e
.
info
.
phoneNumber
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"部门:"
,
prop
:
"departmentId"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
departmentName
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位:"
,
prop
:
"positionName"
}},[
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
info
.
positionName
))])])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"parentSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
treeData
:
e
.
treeData
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
h
,
f
,
!
1
,
function
(
e
){
a
(
"vvXe"
)},
null
,
null
).
exports
,
g
=
a
(
"qsKc"
),
v
=
{
name
:
"employee-table"
,
props
:{
employeeList
:{
type
:
Array
,
default
:
function
(){
return
[]}},
headList
:{
type
:
Array
,
default
:
function
(){
return
[
"selection"
,
"name"
,
"phoneNumber"
,
"positionName"
,
"activationStatus"
]}},
groupInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
250
,
tableData
:[]}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)},
linkToDetail
:
function
(
e
){
this
.
groupInfo
.
isMine
?
window
.
location
.
href
=
"#/employee?employeeClerkId="
+
e
.
employeeClerkId
:
window
.
location
.
href
=
"#/employee?readOnly=1&employeeClerkId="
+
e
.
employeeClerkId
}},
mounted
:
function
(){
var
e
=
[];
this
.
employeeList
.
forEach
(
function
(
t
){
t
.
ext
.
employeeClerk
.
sharedContactEmployeeStoreId
=
t
.
sharedContactEmployeeStoreId
,
e
.
push
(
t
.
ext
.
employeeClerk
)}),
this
.
tableData
=
e
},
watch
:{
employeeList
:
function
(
e
){
var
t
=
[];
e
.
forEach
(
function
(
e
){
e
.
ext
.
employeeClerk
.
sharedContactEmployeeStoreId
=
e
.
sharedContactEmployeeStoreId
,
t
.
push
(
e
.
ext
.
employeeClerk
)}),
this
.
tableData
=
t
}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"employee-table"
},[
a
(
"el-table"
,{
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
,
"row-click"
:
e
.
linkToDetail
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
?
t
.
row
.
phoneNumber
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
phoneNumber
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
positionName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
e
.
row
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
C
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"YieV"
)},
null
,
null
).
exports
,
I
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
250
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)}},
mounted
:
function
(){
this
.
tableData
.
forEach
(
function
(
e
){
e
.
ext
.
store
=
e
.
ext
.
store
?
e
.
ext
.
store
:{},
e
.
ext
.
store
.
ext
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
:{
employeeClerkList
:[]},
e
.
ext
.
store
.
ext
||
(
e
.
ext
.
store
.
ext
=
{
employeeClerkList
:[]}),
e
.
ext
.
store
.
ext
.
employeeClerkList
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
.
employeeClerkList
:[],
e
.
storeCode
=
e
.
ext
.
store
?
e
.
ext
.
store
.
storeCode
:
""
})},
watch
:{
tableData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
ext
.
store
=
e
.
ext
.
store
?
e
.
ext
.
store
:{},
e
.
ext
.
store
.
ext
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
:{
employeeClerkList
:[]},
e
.
ext
.
store
.
ext
||
(
e
.
ext
.
store
.
ext
=
{
employeeClerkList
:[]}),
e
.
ext
.
store
.
ext
.
employeeClerkList
=
e
.
ext
.
store
?
e
.
ext
.
store
.
ext
.
employeeClerkList
:[],
e
.
storeCode
=
e
.
ext
.
store
?
e
.
ext
.
store
.
storeCode
:
""
})}}},
A
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"175"
,
prop
:
"employeeStoreName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"175"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)])])]}},{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
ext
.
store
.
ext
.
employeeClerkList
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
t
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
t
.
positionName
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
t
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])])])}))]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
y
=
a
(
"VU/8"
)(
I
,
A
,
!
1
,
function
(
e
){
a
(
"PPN0"
)},
null
,
null
).
exports
,
D
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"guid-div"
},[
this
.
_m
(
0
),
this
.
_v
(
" "
),
this
.
_m
(
1
),
this
.
_v
(
" "
),
t
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
,
"margin-top"
:
"50px"
}},[
t
(
"a"
,{
attrs
:{
href
:
"#/shareCode"
}},[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
this
.
_v
(
"建立共享企业"
)])],
1
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"guid"
},[
o
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"共享通讯录操作引导"
)]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"flex-div"
},[
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"z6bE"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"点击建立共享企业,下载二维码 发给所要建立共享的企业"
)])]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"NBVb"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"从企业通讯录中添加对方可见我方 企业的成员及门店"
)])]),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"step"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"NXrz"
)}}),
e
.
_v
(
" "
),
o
(
"p"
,[
e
.
_v
(
"添加完成之后必须点击发布,所添加或 修改的信息才会同步至对方共享通讯录中"
)])])])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"guid"
},[
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"应用场景"
)]),
this
.
_v
(
" "
),
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"适用于集团公司与子公司建立通讯录部分成员共享机制"
)]),
this
.
_v
(
" "
),
t
(
"p"
,{
staticClass
:
"des"
},[
this
.
_v
(
"适用于总部与代理商、加盟商建立通讯录部分成员共享机制"
)])])}]};
var
S
=
a
(
"VU/8"
)(
null
,
D
,
!
1
,
function
(
e
){
a
(
"XOpN"
)},
null
,
null
).
exports
,
w
=
{
name
:
"addNewGuid"
,
props
:{
groupInfo
:{
type
:
Object
,
required
:
!
0
}},
methods
:{
addNew
:
function
(){
this
.
groupInfo
.
isStoreGroup
?
this
.
$emit
(
"addStoreEmployee"
):
this
.
$emit
(
"addEmployee"
)}}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"tip-area"
},[
o
(
"img"
,{
attrs
:{
src
:
a
(
"mxqO"
)}}),
e
.
_v
(
" "
),
e
.
groupInfo
.
isMine
?[
e
.
groupInfo
.
level
?
o
(
"p"
,[
e
.
_v
(
"暂无成员,开始添加成员吧"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
groupInfo
.
level
?
e
.
_e
():
o
(
"p"
,[
e
.
_v
(
"暂无成员,开始添加子分组吧"
)]),
e
.
_v
(
" "
),
e
.
groupInfo
.
level
?
o
(
"el-button"
,{
staticClass
:
"add-new-btn"
,
on
:{
click
:
e
.
addNew
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
()]:
o
(
"p"
,[
e
.
_v
(
"暂无成员,联系建立共享企业的管理员,对方添加后即可查看"
)])],
2
)},
staticRenderFns
:[]};
var
k
=
a
(
"VU/8"
)(
w
,
N
,
!
1
,
function
(
e
){
a
(
"GwAO"
)},
null
,
null
).
exports
,
E
=
a
(
"3E4D"
),
x
=
a
(
"Ch4/"
),
G
=
a
(
"Ie7z"
),
Y
=
{
name
:
"permission-set"
,
components
:{
vueSelectStore
:
G
.
a
,
vueSelectEmployee
:
p
.
a
},
props
:{
groupInfo
:{
type
:
Object
,
required
:
!
0
}},
data
:
function
(){
return
{
visibleList
:[],
visibleStoreList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
perTreeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
dialogVisible
:
!
0
,
changed
:
""
}},
methods
:{
getVisibleRange
:
function
(){
var
e
=
this
,
t
=
{
sharedContactGroupId
:
e
.
groupInfo
.
sharedContactGroupId
};
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/get-shared-group-visible-range"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
formatList
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatList
:
function
(
e
){
var
t
=
[],
a
=
[];
e
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
1
==
e
.
type
?(
e
.
employeeClerkId
=
e
.
id
,
t
.
push
(
e
)):(
e
.
storeId
=
e
.
id
,
a
.
push
(
e
))}),
this
.
visibleList
=
t
,
this
.
visibleStoreList
=
a
},
delCurrent
:
function
(
e
,
t
){
var
a
=
this
[
t
].
indexOf
(
e
);
this
[
t
].
splice
(
a
,
1
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
callPerSelector
:
function
(){
this
.
changed
=
"permission"
,
this
.
perTreeSet
.
dialogVisible
=!
0
},
setSharedGroupVisible
:
function
(){
var
e
=
this
,
t
=
[];
e
.
visibleList
.
concat
(
e
.
visibleStoreList
).
forEach
(
function
(
e
){
var
a
=
e
.
employeeClerkId
?
1
:
2
;
t
.
push
({
id
:
e
.
id
,
type
:
a
})});
var
a
=
{
visibleMemberList
:[{
memberList
:
t
,
sharedContactGroupId
:
e
.
groupInfo
.
id
}]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/set-shared-group-visible-range"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
e
.
getVisibleRange
()):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
cancelSet
:
function
(){
this
.
$emit
(
"cancelSet"
)},
handleSelectedList
:
function
(
e
){
this
.
visibleStoreList
=
e
},
handlePerSelectedList
:
function
(
e
){
this
.
visibleList
=
e
}},
beforeMount
:
function
(){
this
.
getVisibleRange
()},
mounted
:
function
(){}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"per-set-div"
},[
a
(
"el-form"
,{
attrs
:{
"label-width"
:
"150px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"当前范围:"
}},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
label
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置可见范围(员工):"
}},[
a
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
visibleList
,
function
(
t
,
o
){
return
[
t
.
employeeClerkId
?
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
id
,
staticClass
:
"item person-item"
},[
t
.
headPic
?
a
(
"img"
,{
attrs
:{
src
:
t
.
headPic
}}):
a
(
"div"
,{
staticClass
:
"replace-head-img"
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
label
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
a
){
e
.
delCurrent
(
t
,
"visibleList"
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"item J_add-btn"
,
on
:{
click
:
e
.
callPerSelector
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"设置可见范围(门店):"
}},[
a
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
visibleStoreList
,
function
(
t
,
o
){
return
[
a
(
"li"
,{
key
:
o
+
"_"
+
t
.
id
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
label
)
+
"
\
n "
),
a
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
a
){
e
.
delCurrent
(
t
,
"visibleStoreList"
)}}})])]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"item J_add-btn"
,
on
:{
click
:
e
.
callSelector
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
setSharedGroupVisible
}},[
e
.
_v
(
"确定"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancelSet
}},[
e
.
_v
(
"取消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
visibleStoreList
,
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"selectEmployee"
,
attrs
:{
defaultSelection
:
e
.
visibleList
,
onlyPerson
:
!
0
,
treeSet
:
e
.
perTreeSet
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handlePerSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
R
=
a
(
"VU/8"
)(
Y
,
L
,
!
1
,
function
(
e
){
a
(
"JBRo"
)},
null
,
null
).
exports
,
j
=
{
name
:
"shareContact"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
u
,
employeeInfo
:
m
,
employeeList
:
C
,
guidDiv
:
S
,
clerkView
:
y
,
vueSelectEmployee
:
p
.
a
,
vueSelectStore
:
G
.
a
,
permissionSet
:
R
,
addNewGuid
:
k
,
storeInfo
:
g
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"共享通讯录"
,
path
:
""
}],
windowH
:
window
.
screen
.
availHeight
-
440
+
"px"
,
boxHeight
:
window
.
screen
.
availHeight
-
440
-
48
+
"px"
,
showChildMember
:
!
1
,
setDisabledDel
:
!
1
,
menuData
:[],
pageSize
:
20
,
currentPage
:
1
,
selectedList
:[],
total
:
0
,
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
employeeList
:[],
searchResult
:{},
showEmployee
:
""
,
perId
:
""
,
sharedContactRelationId
:[],
shareMember
:
!
1
,
shareSale
:
!
1
,
disabled
:
!
0
,
treeData
:{},
sldType
:
1
,
dlgTitle
:
""
,
dlgShow
:
!
1
,
editDlgShow
:
!
1
,
newGroupName
:
""
,
storeInfo
:{}}},
created
:
function
(){},
beforeMount
:
function
(){
this
.
getShareRelation
()},
methods
:{
editGroup
:
function
(){
this
.
dlgTitle
=
"部门"
,
this
.
newGroupName
=
this
.
groupInfo
.
groupName
,
this
.
editDlgShow
=!
0
},
subSonGroupAdd
:
function
(
e
){
var
t
=
this
;
if
(
""
==
t
.
newGroupName
)
t
.
$message
.
error
({
message
:
"名称不能为空"
});
else
{
var
a
=
{
parentSharedContactGroupId
:
e
?
t
.
groupInfo
.
parentId
:
t
.
groupInfo
.
id
,
name
:
t
.
newGroupName
};
e
?
a
.
sharedContactGroupId
=
t
.
groupInfo
.
id
:
delete
a
.
sharedContactGroupId
,
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/set-shared-group"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
e
.
data
.
message
}),
t
.
getShareRelation
(),
t
.
dlgShow
=!
1
,
t
.
editDlgShow
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}},
callEmployeeSelector
:
function
(){
this
.
sldType
=
1
,
this
.
$refs
.
selectEmployee
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
var
t
=
this
,
a
=
[];
e
.
forEach
(
function
(
e
){
a
.
push
({
id
:
e
.
id
,
type
:
t
.
sldType
})});
var
o
=
{
overwrite
:
!
1
,
sharedContactMemberList
:[{
sharedContactGroupId
:
t
.
groupInfo
.
id
,
memberList
:
a
}]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/add-shared-member"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
e
.
data
.
message
}),
t
.
getEmployee
()):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmployee
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getEmployee
()},
cancelSet
:
function
(){
console
.
log
(
"Cancel"
),
this
.
showEmployee
=!
1
},
subShareSet
:
function
(){
var
e
=
this
,
t
=
{
visibleData
:{
shareMember
:
1
*
e
.
shareMember
,
shareSale
:
1
*
e
.
shareSale
,
sharedContactRelationId
:
e
.
sharedContactRelationId
.
join
(
","
)}};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/set-shared-store-visible-data"
,
t
).
then
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyword
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/search-shared-contact"
,
a
).
then
(
function
(
e
){
e
.
data
.
result
&&
(
t
.
searchResult
=
e
.
data
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
=
e
,
this
.
groupInfo
.
departmentId
=
e
.
id
,
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
showEmployee
=
a
,
this
.
loading
=!
0
,
this
.
getEmployee
(),
console
.
log
(
e
,
t
,
a
,
this
.
groupInfo
)},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
perId
=
e
.
employeeClerkId
,
this
.
showEmployee
=
t
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
storeId
:
e
.
storeId
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
showEmployee
=
t
,
a
.
storeInfo
=
e
.
data
.
result
):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
deleteDepart
:
function
(
e
){
var
t
=
this
;
t
.
$confirm
(
"是否要删除当前分组?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
t
.
postDeleteDepart
(
e
)})},
postDeleteDepart
:
function
(
e
){
var
t
=
this
,
a
=
{
sharedContactGroupIdList
:[
e
]};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/del-shared-group"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
E
.
a
.
showmsg
(
"删除成功"
,
"success"
),
t
.
getShareRelation
()):
x
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
delMembers
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否要删除选中的员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
t
=
[];
e
.
selectedList
.
forEach
(
function
(
e
){
t
.
push
(
e
.
sharedContactEmployeeStoreId
)});
var
a
=
{
sharedContactEmployeeStoreIdList
:
t
};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/del-shared-member"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
e
.
getEmployee
()):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})})},
setChildMemberShow
:
function
(){
this
.
getEmployee
()},
getGroupData
:
function
(
e
){
var
t
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/find-shared-group"
,{}).
then
(
function
(
e
){
e
.
data
.
result
.
forEach
(
function
(
e
){
e
.
groupId
=
e
.
sharedContactGroupId
}),
t
.
menuData
=
e
.
data
.
result
||
[],
t
.
menuData
.
some
(
function
(
e
){
return
0
==
e
.
level
&&
(
t
.
groupInfo
.
departmentId
=
e
.
groupId
,
t
.
groupInfo
.
groupName
=
e
.
name
),
0
==
e
.
level
}),
t
.
getEmployee
(),
t
.
getRelationIds
(
t
.
menuData
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
getRelationIds
:
function
(
e
){
var
t
=
window
.
localStorage
.
getItem
(
"userInfo"
),
a
=
JSON
.
parse
(
t
).
enterpriseId
,
o
=
[];
e
.
forEach
(
function
(
e
){
0
==
e
.
level
&&
e
.
enterpriseId
!=
a
&&
o
.
push
(
e
.
enterpriseId
)}),
o
=
[].
concat
(
n
()(
new
s
.
a
(
o
))),
this
.
sharedContactRelationId
=
o
},
getShareRelation
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/shared-contact/find-shared-contact-relation"
,{
searchGroup
:
1
}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?(
e
.
menuData
=
a
.
result
||
[],
e
.
loading
=!
1
):(
x
.
a
.
errorMsg
(
a
),
e
.
loading
=!
1
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
getEmployeeFirst
:
function
(
e
){
this
.
groupInfo
=
e
,
console
.
log
(
"First:"
,
e
),
this
.
getEmployee
()},
getEmployee
:
function
(){
var
e
=
this
,
t
=
{
sharedContactGroupId
:
e
.
groupInfo
.
id
,
findChildren
:
e
.
showChildMember
};
Object
(
d
.
d
)(
"/haoban-manage-web/shared-contact/find-shared-member"
,
t
).
then
(
function
(
t
){
var
a
=
[],
o
=
0
;
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
list
||
[],
o
=
t
.
data
.
result
.
pageInfo
.
total
||
0
),
e
.
employeeList
=
a
,
e
.
total
=
o
,
e
.
loading
=!
1
}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
message
:
t
.
message
})})}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
&&!
this
.
setDisabledDel
}}},
M
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
,
style
:{
minHeight
:
e
.
windowH
,
"overflow-y"
:
"auto"
}},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"administrative-estrutura-container"
},[
e
.
menuData
.
length
>
0
?[
a
(
"search-menu"
,{
attrs
:{
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleEmployeeSelection
:
e
.
handleEmployeeSelection
,
getEmployeeFirst
:
e
.
getEmployeeFirst
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"p"
,{
staticClass
:
"add-share"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/shareCode"
}},[
a
(
"el-button"
,[
e
.
_v
(
"建立共享企业"
)])],
1
)])])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"employee-info"
,{
attrs
:{
perId
:
e
.
perId
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
storeInfo
:
e
.
storeInfo
}}):
"permission"
==
e
.
showEmployee
?
a
(
"permission-set"
,{
attrs
:{
groupInfo
:
e
.
groupInfo
},
on
:{
cancelSet
:
e
.
cancelSet
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"af-right-container"
},[
a
(
"div"
,{
staticClass
:
"af-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"人)"
),
a
(
"span"
,{
staticClass
:
"not-show-app"
},[
e
.
_v
(
"本企业通讯录APP中不展示"
)])]),
e
.
_v
(
" "
),
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
?
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
t
){
e
.
dlgTitle
=
"分组"
,
e
.
dlgShow
=!
0
}}},[
e
.
_v
(
"添加子分组"
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
e
.
editGroup
}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
function
(
t
){
e
.
deleteDepart
(
e
.
groupInfo
.
id
)}}},[
e
.
_v
(
"删除子分组"
)]):
e
.
_e
()]):
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"a"
,{
staticClass
:
"J_add-child a-href"
,
on
:{
click
:
function
(
t
){
e
.
dlgTitle
=
"部门"
,
e
.
newGroupName
=
""
,
e
.
dlgShow
=!
0
}}},[
e
.
_v
(
"
\
n 添加子部门
\
n "
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?[
a
(
"span"
,{
staticClass
:
"hurdle"
}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
e
.
editGroup
}},[
e
.
_v
(
"
\
n 编辑
\
n "
)]),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"span"
,{
staticClass
:
"hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
0
!=
e
.
groupInfo
.
level
?
a
(
"a"
,{
staticClass
:
"J_edit a-href"
,
on
:{
click
:
function
(
t
){
e
.
deleteDepart
(
e
.
groupInfo
.
id
)}}},[
e
.
_v
(
"删除子分组"
)]):
e
.
_e
()]:
e
.
_e
()],
2
)]:[
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
showEmployee
=
"permission"
}}},[
e
.
_v
(
"设置可见权限"
)])]],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?[
a
(
"div"
,{
staticClass
:
"af-right-button-box"
},[
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
&&
1
*
e
.
groupInfo
.
level
>
0
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}},[
e
.
_v
(
"
\
n 添加门店
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
callEmployeeSelector
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
plain
:
""
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delMembers
}},[
e
.
_v
(
"批量删除"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"J_show-children"
},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}}),
a
(
"a"
,{
staticClass
:
"a-href"
},[
e
.
_v
(
"显示子成员"
)])],
1
)],
2
),
e
.
_v
(
" "
),
1
==
e
.
groupInfo
.
isStoreGroup
?
a
(
"clerk-view"
,{
attrs
:{
tableData
:
e
.
employeeList
},
on
:{
selectMember
:
e
.
selectMember
}}):
a
(
"employee-list"
,{
attrs
:{
employeeList
:
e
.
employeeList
,
groupInfo
:
e
.
groupInfo
},
on
:{
selectMember
:
e
.
selectMember
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)]:[
a
(
"div"
,{
staticClass
:
"af-right-button-box"
},[
e
.
groupInfo
.
isMine
?[
1
==
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}},[
e
.
_v
(
"
\
n 添加门店
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
e
.
groupInfo
.
isStoreGroup
&&
0
!=
e
.
groupInfo
.
level
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
callEmployeeSelector
}},[
e
.
_v
(
"添加成员"
)]):
e
.
_e
()]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}}),
a
(
"a"
,{
staticClass
:
"a-href"
},[
e
.
_v
(
"显示子成员"
)])],
1
)],
2
),
e
.
_v
(
" "
),
a
(
"add-new-guid"
,{
attrs
:{
groupInfo
:
e
.
groupInfo
},
on
:{
addEmployee
:
e
.
callEmployeeSelector
,
addStoreEmployee
:
function
(
t
){
e
.
$refs
.
storeSelector
.
treeSet
.
dialogVisible
=!
0
,
e
.
sldType
=
2
}}})]],
2
)]:[
a
(
"guid-div"
)]],
2
)])]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"添加子"
+
e
.
dlgTitle
,
visible
:
e
.
dlgShow
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dlgShow
=
t
}}},[
a
(
"div"
,{
staticStyle
:{
padding
:
"30px"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入"
+
e
.
dlgTitle
+
"名称"
},
model
:{
value
:
e
.
newGroupName
,
callback
:
function
(
t
){
e
.
newGroupName
=
t
},
expression
:
"newGroupName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dlgShow
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
subSonGroupAdd
(
0
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"编辑"
+
e
.
dlgTitle
,
visible
:
e
.
editDlgShow
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
editDlgShow
=
t
}}},[
a
(
"div"
,{
staticStyle
:{
padding
:
"30px"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入"
+
e
.
dlgTitle
+
"名称"
},
model
:{
value
:
e
.
newGroupName
,
callback
:
function
(
t
){
e
.
newGroupName
=
t
},
expression
:
"newGroupName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
editDlgShow
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
subSonGroupAdd
(
1
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"selectEmployee"
,
attrs
:{
onlyPerson
:
!
0
,
treeData
:
e
.
treeData
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
T
=
a
(
"VU/8"
)(
j
,
M
,
!
1
,
function
(
e
){
a
(
"dTTS"
)},
null
,
null
);
t
.
default
=
T
.
exports
},
GwAO
:
function
(
e
,
t
){},
HpRW
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"kM2E"
),
s
=
a
(
"lOnJ"
),
r
=
a
(
"+ZMJ"
),
n
=
a
(
"NWt+"
);
e
.
exports
=
function
(
e
){
o
(
o
.
S
,
e
,{
from
:
function
(
e
){
var
t
,
a
,
o
,
i
,
l
=
arguments
[
1
];
return
s
(
this
),(
t
=
void
0
!==
l
)
&&
s
(
l
),
void
0
==
e
?
new
this
:(
a
=
[],
t
?(
o
=
0
,
i
=
r
(
l
,
arguments
[
2
],
2
),
n
(
e
,
!
1
,
function
(
e
){
a
.
push
(
i
(
e
,
o
++
))})):
n
(
e
,
!
1
,
a
.
push
,
a
),
new
this
(
a
))}})}},
JBRo
:
function
(
e
,
t
){},
LIJb
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"EqjI"
);
e
.
exports
=
function
(
e
,
t
){
if
(
!
o
(
e
)
||
e
.
_t
!==
t
)
throw
TypeError
(
"Incompatible receiver, "
+
t
+
" required!"
);
return
e
}},
NBVb
:
function
(
e
,
t
,
a
){
e
.
exports
=
a
.
p
+
"static/img/guid2.c4a077f.png"
},
NXrz
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADACAYAAACDO2h3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ3OUQzQzk3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcE1NOkluc3RhbmNlSUQ9In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RqtPaI8TVEyh7ciT15GQuzp3cJGQsikleLtAGCkol1ccCw4dBzYc2PBgyye5rJb2wbNp5k/2SeTZsMnMDjsE6lgelU0c0U2zACqSL9m3RF/RzPVTief5rAbHXxijcgx+YAh5g/5jBoBV+jfoZCpTn560lzuGbpIZGuZmowgEgmAIgFQJBIARQKgSKSn/wswAJ9xy6rr0P+IAAAAAElFTkSuQmCC"
},
PPN0
:
function
(
e
,
t
){},
W6b0
:
function
(
e
,
t
){},
XOpN
:
function
(
e
,
t
){},
YieV
:
function
(
e
,
t
){},
dTTS
:
function
(
e
,
t
){},
ioQ5
:
function
(
e
,
t
,
a
){
a
(
"HpRW"
)(
"Set"
)},
lHA8
:
function
(
e
,
t
,
a
){
e
.
exports
=
{
default
:
a
(
"pPW7"
),
__esModule
:
!
0
}},
m9gC
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"RY/4"
),
s
=
a
(
"4WTo"
);
e
.
exports
=
function
(
e
){
return
function
(){
if
(
o
(
this
)
!=
e
)
throw
TypeError
(
e
+
"#toJSON isn't generic"
);
return
s
(
this
)}}},
mxqO
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAACPCAYAAABwDvegAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAABMGSURBVHhe7Z2Ld1TVFcb7F7bWVttqfbS2q+/WR1cfWrUvrFYryFNFGxAUITwTQEAkCYRHIEACJJAQ3o9AlMxk3u/d853k1juTk5k7d2aSe0++31qfRpNJJnet82Xvc/be5xtCCCGWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgH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1l/DsMYUX3QyI/mhr4YHGFlCwP4TFhMirXuHgwD2N4upEQf62rTXTPCCMBEeq+8mxrJzzcEsVSizwtXhNK05qMRYJe2ruZ4AU0vSsqgn7lOgGoaGFDxrbIgAR4NK9rSnOdYQ5bLig5b1DaemrcufBwI2SvPtFWn7+4VRLelah5zdMyZjrVJQsPmhsiwBELth/e3pN86Mjt5BOYh7bW3uScmiovCMCp7W9owV5a3dK3yfa7NTTLeyhRTxcsEzshca2SLhyPy9LdrQuHXULhwqvbk1Ix5mcSjsxg01kz0Be/rrN/+1UXvWzD6K6Nc3ddUEWHzS2RQIWOnodf93WmraqSsHAMFBy/ZGMbDqO/bR4S6M0CPt1KOlwN/+TxQmNbRGBuzNRRvLzD5vbwjSXsIn/+KqIPPN+680Ulymv2D/dSuU+NCCLExrbIgN3k+L6uec2TOlbnkwmESahTQzpJ26roqkRBxrbIgSFpuhGeKMzoQ3uidXNryNrpfBev7c8Ir9ZN6XLWHApcnr23clkEUNjW8SghQtFqOt6UvLq1pi8tEVpc/D1antclu9LyrERjusmZmhsRAN7wAEDrrALsvAemW6SWtDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIddDYCCHWQWMjhFgHjY0QYh00NkKIZYj8D3jm/DexJ3hWAAAAAElFTkSuQmCC"
},
oNmr
:
function
(
e
,
t
,
a
){
a
(
"9Bbf"
)(
"Set"
)},
oeOm
:
function
(
e
,
t
,
a
){
var
o
=
a
(
"7Doy"
);
e
.
exports
=
function
(
e
,
t
){
return
new
(
o
(
e
))(
t
)}},
pPW7
:
function
(
e
,
t
,
a
){
a
(
"M6a0"
),
a
(
"zQR9"
),
a
(
"+tPU"
),
a
(
"ttyz"
),
a
(
"BDhv"
),
a
(
"oNmr"
),
a
(
"ioQ5"
),
e
.
exports
=
a
(
"FeBl"
).
Set
},
qo66
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"7KvD"
),
s
=
a
(
"kM2E"
),
r
=
a
(
"06OY"
),
n
=
a
(
"S82l"
),
i
=
a
(
"hJx8"
),
l
=
a
(
"xH/j"
),
c
=
a
(
"NWt+"
),
u
=
a
(
"2KxR"
),
d
=
a
(
"EqjI"
),
p
=
a
(
"e6n0"
),
h
=
a
(
"evD5"
).
f
,
f
=
a
(
"ALrJ"
)(
0
),
m
=
a
(
"+E39"
);
e
.
exports
=
function
(
e
,
t
,
a
,
g
,
v
,
b
){
var
C
=
o
[
e
],
I
=
C
,
A
=
v
?
"set"
:
"add"
,
y
=
I
&&
I
.
prototype
,
D
=
{};
return
m
&&
"function"
==
typeof
I
&&
(
b
||
y
.
forEach
&&!
n
(
function
(){(
new
I
).
entries
().
next
()}))?(
I
=
t
(
function
(
t
,
a
){
u
(
t
,
I
,
e
,
"_c"
),
t
.
_c
=
new
C
,
void
0
!=
a
&&
c
(
a
,
v
,
t
[
A
],
t
)}),
f
(
"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON"
.
split
(
","
),
function
(
e
){
var
t
=
"add"
==
e
||
"set"
==
e
;
e
in
y
&&
(
!
b
||
"clear"
!=
e
)
&&
i
(
I
.
prototype
,
e
,
function
(
a
,
o
){
if
(
u
(
this
,
I
,
e
),
!
t
&&
b
&&!
d
(
a
))
return
"get"
==
e
&&
void
0
;
var
s
=
this
.
_c
[
e
](
0
===
a
?
0
:
a
,
o
);
return
t
?
this
:
s
})}),
b
||
h
(
I
.
prototype
,
"size"
,{
get
:
function
(){
return
this
.
_c
.
size
}})):(
I
=
g
.
getConstructor
(
t
,
e
,
v
,
A
),
l
(
I
.
prototype
,
a
),
r
.
NEED
=!
0
),
p
(
I
,
e
),
D
[
e
]
=
I
,
s
(
s
.
G
+
s
.
W
+
s
.
F
,
D
),
b
||
g
.
setStrong
(
I
,
e
,
v
),
I
}},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
s
=
a
.
n
(
o
),
r
=
a
(
"Xxa5"
),
n
=
a
.
n
(
r
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
u
=
a
.
n
(
c
),
d
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
h
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
m
=
a
.
n
(
f
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
h
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
o
){
return
a
&&
e
.
storeInfo
.
closeTime
?
o
():
o
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
o
){
if
(
!
a
)
return
o
(
new
Error
(
"请输入手机号码"
));
new
m
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
).
isValid
()?
o
():
o
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
imgs
=
e
},
deleteImage
:
function
(
e
){
this
.
imgs
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
u
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
o
,
s
,
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
o
,
s
,
r
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
e
.
storeInfoData
,
o
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
o
.
push
(
e
.
url
)}),
a
.
imageUrls
=
o
.
join
(
","
),
Object
(
d
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}];
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
this
.
imgs
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
s
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
location
,
callback
:
function
(
t
){
e
.
location
=
t
},
expression
:
"location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"4IxG"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
ttyz
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"9C8M"
),
s
=
a
(
"LIJb"
);
e
.
exports
=
a
(
"qo66"
)(
"Set"
,
function
(
e
){
return
function
(){
return
e
(
this
,
arguments
.
length
>
0
?
arguments
[
0
]:
void
0
)}},{
add
:
function
(
e
){
return
o
.
def
(
s
(
this
,
"Set"
),
e
=
0
===
e
?
0
:
e
,
e
)}},
o
)},
vvXe
:
function
(
e
,
t
){},
z6bE
:
function
(
e
,
t
){
e
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAADACAYAAADfsStTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmU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wI4ErkcCsCUakIKVw+PFagNWDJhUuar9khwJWHsJ6xpMQPh6LsoebkD4VpBfh7QVKOdHwnE4YEyDaDWYIgGEIPh7b4xwOl8ubSqYD4eXaMYIyiGztmoAYY3ALRyOc73PoJWy1YyNMvObKSZhHbCapiQg/KOxTmfS5rWZajBjFt8+q2V69c4nCg7JGJjY1/BNkkqO73e5nmRgKb96w1g4qg/CNmd3oJNarxhGblRRJ9UXX7DfzB/m0uo0zM2MBjTMDarN7NXA6/0dDP0gWa1ToCypYqCs3fUEylrNnxUfnlBtE+JXRcG+SsH1DrEr1D74zUNiQu3lKD0cbrtCAFUyWRe85r367wxdUz1ZVwlA/j9UzeiqHDjBKf3wtH6p58oN6YdV0TQGp+t9dZZ4Pjil77+m3HOlQMjldH9/lMjciDxKa3OlY1blkiRAJAEiCRBpsPU/AQYA8WB1pb8eLF8AAAAASUVORK5CYII="
}});
\ No newline at end of file
dist/static/js/6.21d51030f91361ba32ce.js
deleted
100644 → 0
View file @
8f9bb669
webpackJsonp
([
6
],{
"4IxG"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"ATfr"
),
c
=
a
(
"P9l9"
),
d
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
""
;
if
(
t
)
s
=
e
.
storeId
;
else
{
var
r
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
r
.
push
(
e
.
storeId
)}),
s
=
r
.
join
(
","
)}
var
o
=
{
ids
:
s
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"sC3T"
)},
null
,
null
).
exports
,
f
=
a
(
"Ie7z"
),
p
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
f
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
s
=
e
),
1
==
e
.
isManager
});
var
r
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
s
.
employeeClerkId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/setManager"
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"操作成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
s
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
s
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
s
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
s
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
s
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
s
,
r
){
return
a
(
"li"
,{
key
:
s
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
s
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
s
)}}},[
e
.
_v
(
e
.
_s
(
s
.
name
))]),
e
.
_v
(
" "
),
1
==
s
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
s
.
nationcode
?
s
.
phoneNumber
:
"+"
+
s
.
nationcode
+
"-"
+
s
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
s
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
s
.
status
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
s
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
s
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
s
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
s
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
p
,
h
,
!
1
,
function
(
e
){
a
(
"crdp"
)},
"data-v-8355f47c"
,
null
).
exports
,
v
=
a
(
"qsKc"
),
b
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
c
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"fAiH"
)},
null
,
null
).
exports
,
C
=
a
(
"WSbm"
),
y
=
a
(
"oncj"
),
k
=
a
(
"Ch4/"
),
w
=
a
(
"unF8"
),
S
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
l
.
a
,
storeView
:
m
,
clerkView
:
g
,
employeeInfo
:
C
.
a
,
storeInfo
:
v
.
a
,
addBrand
:
_
,
clerkInfo
:
y
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
n
()(
r
.
a
.
mark
(
function
s
(){
return
r
.
a
.
wrap
(
function
(
s
){
for
(;;)
switch
(
s
.
prev
=
s
.
next
){
case
0
:
return
a
.
perId
=
e
.
employeeClerkId
,
a
.
userId
=
e
.
brandId
,
a
.
showEmployee
=
t
,
s
.
next
=
5
,
a
.
getGicData
();
case
5
:
case
"end"
:
return
s
.
stop
()}},
s
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
storeInfo
=
e
.
data
.
result
,
a
.
groupInfo
.
brandId
=
e
.
data
.
result
.
brandId
,
a
.
showEmployee
=
t
,
a
.
getGicData
()):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
if
(
!
e
.
groupInfo
.
departmentId
)
return
e
.
loading
=!
1
,
!
1
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
loading
=!
1
,
e
.
total
=
t
.
data
.
result
.
total
,
t
.
data
.
result
.
list
&&
t
.
data
.
result
.
list
.
length
&&
t
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
t
.
data
.
result
.
list
||
[],
e
.
getRecycle
()):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
t
(){
var
a
,
s
,
o
,
n
;
return
r
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
s
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
w
.
a
)(
s
);
case
9
:
o
=
t
.
sent
,
1
==
(
n
=
o
.
data
).
errorCode
?
a
.
gicFlag
=
n
.
result
:
k
.
a
.
errorMsg
(
n
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
D
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
S
,
D
,
!
1
,
function
(
e
){
a
(
"A6TM"
)},
null
,
null
);
t
.
default
=
x
.
exports
},
A6TM
:
function
(
e
,
t
){},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"0xDb"
),
r
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
r
=
Object
(
s
.
c
)(
e
);
a
.
defaultOpen
=
r
.
defaultOpen
,
a
.
menuData
=
r
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
s
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
s
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
s
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
s
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
s
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
o
,
!
1
,
function
(
e
){
a
(
"MEND"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
Au0v
:
function
(
e
,
t
){},
MEND
:
function
(
e
,
t
){},
crdp
:
function
(
e
,
t
){},
fAiH
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"Ie7z"
),
r
=
a
(
"P9l9"
),
o
=
a
(
"XDyb"
),
n
=
a
(
"T+u5"
),
i
=
a
.
n
(
n
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号"
));
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
).
isValid
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
console
.
log
(
e
),
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
console
.
log
(
this
.
clerkInfo
),
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
r
.
a
)(
o
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"Au0v"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
m
=
a
(
"Ie7z"
),
f
=
a
(
"XDyb"
),
p
=
a
(
"T+u5"
),
h
=
a
.
n
(
p
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
m
.
a
,
countryMobile
:
f
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
return
a
&&
e
.
storeInfo
.
closeTime
?
s
():
s
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号码"
));
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
).
isValid
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
imgs
=
e
},
deleteImage
:
function
(
e
){
this
.
imgs
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
d
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
s
,
r
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
s
,
r
,
o
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
e
.
storeInfoData
,
s
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
s
.
push
(
e
.
url
)}),
a
.
imageUrls
=
s
.
join
(
","
),
Object
(
u
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}];
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
this
.
imgs
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
r
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
location
,
callback
:
function
(
t
){
e
.
location
=
t
},
expression
:
"location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"4IxG"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
sC3T
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/6.fd32835ad9f5defa17cd.js
0 → 100644
View file @
2d151bed
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"ATfr"
),
c
=
a
(
"P9l9"
),
d
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
""
;
if
(
t
)
s
=
e
.
storeId
;
else
{
var
r
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
r
.
push
(
e
.
storeId
)}),
s
=
r
.
join
(
","
)}
var
o
=
{
ids
:
s
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"sC3T"
)},
null
,
null
).
exports
,
f
=
a
(
"Ie7z"
),
p
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
f
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
s
=
e
),
1
==
e
.
isManager
});
var
r
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
s
.
employeeClerkId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/setManager"
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"操作成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
s
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
s
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
s
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
s
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
s
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
s
,
r
){
return
a
(
"li"
,{
key
:
s
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
s
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
s
)}}},[
e
.
_v
(
e
.
_s
(
s
.
name
))]),
e
.
_v
(
" "
),
1
==
s
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
s
.
nationcode
?
s
.
phoneNumber
:
"+"
+
s
.
nationcode
+
"-"
+
s
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
s
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
s
.
status
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
s
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
s
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
s
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
s
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
p
,
h
,
!
1
,
function
(
e
){
a
(
"crdp"
)},
"data-v-8355f47c"
,
null
).
exports
,
v
=
a
(
"qsKc"
),
b
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
c
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"fAiH"
)},
null
,
null
).
exports
,
C
=
a
(
"WSbm"
),
y
=
a
(
"oncj"
),
k
=
a
(
"Ch4/"
),
w
=
a
(
"unF8"
),
S
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
l
.
a
,
storeView
:
m
,
clerkView
:
g
,
employeeInfo
:
C
.
a
,
storeInfo
:
v
.
a
,
addBrand
:
_
,
clerkInfo
:
y
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
n
()(
r
.
a
.
mark
(
function
s
(){
return
r
.
a
.
wrap
(
function
(
s
){
for
(;;)
switch
(
s
.
prev
=
s
.
next
){
case
0
:
return
a
.
perId
=
e
.
employeeClerkId
,
a
.
userId
=
e
.
brandId
,
a
.
showEmployee
=
t
,
s
.
next
=
5
,
a
.
getGicData
();
case
5
:
case
"end"
:
return
s
.
stop
()}},
s
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
storeInfo
=
e
.
data
.
result
,
a
.
groupInfo
.
brandId
=
e
.
data
.
result
.
brandId
,
a
.
showEmployee
=
t
,
a
.
getGicData
()):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
if
(
!
e
.
groupInfo
.
departmentId
)
return
e
.
loading
=!
1
,
!
1
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
loading
=!
1
,
e
.
total
=
t
.
data
.
result
.
total
,
t
.
data
.
result
.
list
&&
t
.
data
.
result
.
list
.
length
&&
t
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
t
.
data
.
result
.
list
||
[],
e
.
getRecycle
()):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
t
(){
var
a
,
s
,
o
,
n
;
return
r
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
s
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
w
.
a
)(
s
);
case
9
:
o
=
t
.
sent
,
1
==
(
n
=
o
.
data
).
errorCode
?
a
.
gicFlag
=
n
.
result
:
k
.
a
.
errorMsg
(
n
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
D
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
S
,
D
,
!
1
,
function
(
e
){
a
(
"A6TM"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
A6TM
:
function
(
e
,
t
){},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"0xDb"
),
r
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
r
=
Object
(
s
.
c
)(
e
);
a
.
defaultOpen
=
r
.
defaultOpen
,
a
.
menuData
=
r
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
s
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
s
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
s
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
s
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
s
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
o
,
!
1
,
function
(
e
){
a
(
"MEND"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
Au0v
:
function
(
e
,
t
){},
MEND
:
function
(
e
,
t
){},
crdp
:
function
(
e
,
t
){},
fAiH
:
function
(
e
,
t
){},
kZOa
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"Ie7z"
),
r
=
a
(
"P9l9"
),
o
=
a
(
"XDyb"
),
n
=
a
(
"T+u5"
),
i
=
a
.
n
(
n
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号"
));
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
).
isValid
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
console
.
log
(
e
),
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
console
.
log
(
this
.
clerkInfo
),
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
r
.
a
)(
o
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"Au0v"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
m
=
a
(
"Ie7z"
),
f
=
a
(
"XDyb"
),
p
=
a
(
"T+u5"
),
h
=
a
.
n
(
p
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
m
.
a
,
countryMobile
:
f
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
return
a
&&
e
.
storeInfo
.
closeTime
?
s
():
s
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号码"
));
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
).
isValid
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
imgs
=
e
},
deleteImage
:
function
(
e
){
this
.
imgs
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
d
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
s
,
r
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
s
,
r
,
o
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
e
.
storeInfoData
,
s
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
s
.
push
(
e
.
url
)}),
a
.
imageUrls
=
s
.
join
(
","
),
Object
(
u
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}];
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
this
.
imgs
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
r
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"kZOa"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
sC3T
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
02e8b6c38cd565b6bd30
.js
→
dist/static/js/manifest.
221675e18119e050c7bd
.js
View file @
2d151bed
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
d
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
d
.
length
;
i
++
)
t
=
d
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
d
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
d
=
{},
a
=
{
81
:
0
};
function
f
(
c
){
if
(
d
[
c
])
return
d
[
c
].
exports
;
var
a
=
d
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
f
),
a
.
l
=!
0
,
a
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
d
=
new
Promise
(
function
(
d
,
f
){
c
=
a
[
e
]
=
[
d
,
f
]});
c
[
2
]
=
d
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"af175d6abf03f8f2bb2c"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"592033393573b820aeb9"
,
3
:
"3282d88c1532d0ca9c9e"
,
4
:
"01be0f85b0acd6f1d6df"
,
5
:
"4d8ee14718aaa4455e12"
,
6
:
"21d51030f91361ba32ce"
,
7
:
"57af0bc90206c6098149"
,
8
:
"9bd56928cea92db3c119"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"16767ca611d2bc93e32e"
,
11
:
"2d0a192288361dd95250"
,
12
:
"3d3797e96dc9e8cc5bd4"
,
13
:
"c01b6415e93d21d1c19f"
,
14
:
"d9f8f7e5598d599d6b6a"
,
15
:
"360a92075d219ac84088"
,
16
:
"bdc37aea4c14db4484c6"
,
17
:
"18d7b200f29fbb0cc9c8"
,
18
:
"592a30eba9c353c71b69"
,
19
:
"965b8dce6882a5f7758c"
,
20
:
"21122bbe5eed4cd0e49b"
,
21
:
"b0e7348ff74371924c3b"
,
22
:
"ae3ca1d035af160b7832"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"e0b684b65d0dbf5d032b"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"e1b3c97634b8203082e4"
,
29
:
"a00a8b4033e1feddfe67"
,
30
:
"07a39afe8e9361ef44b8"
,
31
:
"8e77909f1af264b00346"
,
32
:
"ec0bbd85e6d55909453d"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"629893b7dd561b646232"
,
35
:
"d6f0ed32cea79ea624b3"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"4353ffce2e97d528bc9b"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"45b7d5b9dbe354877342"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"56b8d3d551364d7fcf73"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"deb9f07fde1e218414cf"
,
45
:
"feeb9dd78b7b12f700d2"
,
46
:
"d0bd18109c44c009e363"
,
47
:
"cb78788c573a2fd0eac5"
,
48
:
"b8b992cf4ecabb60167d"
,
49
:
"396af20a99e901a3b8b5"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"3ee35b29a67a32a31d1d"
,
53
:
"8ea56d269da04331dd65"
,
54
:
"4b3de5b9c967cbdcb803"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"03f9fa2efa7f832146f1"
,
57
:
"ec64d57876772f26c560"
,
58
:
"f8f6469b19558b91d2af"
,
59
:
"014ae5d12d19afa067f5"
,
60
:
"633307c153fec68e7774"
,
61
:
"a6c4d42ed111c8f08d58"
,
62
:
"1b7880620e9dff5a28ed"
,
63
:
"02272fe3caa4b8c63c2a"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"57f329b5a1c3658845e9"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"ca033eca1f91dddaa6b2"
,
74
:
"317ccff353170ac7c01f"
,
75
:
"44714b271d06e1e87012"
,
76
:
"7eaab216a287b1ffca0e"
,
77
:
"01b9dbf75e1040e81146"
,
80
:
"c4a24f0beb29dbd2892a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
d
},
f
.
m
=
e
,
f
.
c
=
d
,
f
.
d
=
function
(
e
,
c
,
d
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
d
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
d
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
d
.
length
;
i
++
)
t
=
d
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
d
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
d
=
{},
a
=
{
81
:
0
};
function
f
(
c
){
if
(
d
[
c
])
return
d
[
c
].
exports
;
var
a
=
d
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
f
),
a
.
l
=!
0
,
a
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
d
=
new
Promise
(
function
(
d
,
f
){
c
=
a
[
e
]
=
[
d
,
f
]});
c
[
2
]
=
d
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"af175d6abf03f8f2bb2c"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"1fdb06ae0d169e84edcf"
,
3
:
"3282d88c1532d0ca9c9e"
,
4
:
"01be0f85b0acd6f1d6df"
,
5
:
"4d8ee14718aaa4455e12"
,
6
:
"fd32835ad9f5defa17cd"
,
7
:
"57af0bc90206c6098149"
,
8
:
"9bd56928cea92db3c119"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"16767ca611d2bc93e32e"
,
11
:
"2d0a192288361dd95250"
,
12
:
"3d3797e96dc9e8cc5bd4"
,
13
:
"c01b6415e93d21d1c19f"
,
14
:
"d9f8f7e5598d599d6b6a"
,
15
:
"360a92075d219ac84088"
,
16
:
"bdc37aea4c14db4484c6"
,
17
:
"18d7b200f29fbb0cc9c8"
,
18
:
"592a30eba9c353c71b69"
,
19
:
"965b8dce6882a5f7758c"
,
20
:
"21122bbe5eed4cd0e49b"
,
21
:
"b0e7348ff74371924c3b"
,
22
:
"ae3ca1d035af160b7832"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"e0b684b65d0dbf5d032b"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"e1b3c97634b8203082e4"
,
29
:
"a00a8b4033e1feddfe67"
,
30
:
"07a39afe8e9361ef44b8"
,
31
:
"8e77909f1af264b00346"
,
32
:
"ec0bbd85e6d55909453d"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"629893b7dd561b646232"
,
35
:
"d6f0ed32cea79ea624b3"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"4353ffce2e97d528bc9b"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"45b7d5b9dbe354877342"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"56b8d3d551364d7fcf73"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"deb9f07fde1e218414cf"
,
45
:
"feeb9dd78b7b12f700d2"
,
46
:
"d0bd18109c44c009e363"
,
47
:
"cb78788c573a2fd0eac5"
,
48
:
"b8b992cf4ecabb60167d"
,
49
:
"396af20a99e901a3b8b5"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"3ee35b29a67a32a31d1d"
,
53
:
"8ea56d269da04331dd65"
,
54
:
"4b3de5b9c967cbdcb803"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"03f9fa2efa7f832146f1"
,
57
:
"ec64d57876772f26c560"
,
58
:
"f8f6469b19558b91d2af"
,
59
:
"014ae5d12d19afa067f5"
,
60
:
"633307c153fec68e7774"
,
61
:
"a6c4d42ed111c8f08d58"
,
62
:
"1b7880620e9dff5a28ed"
,
63
:
"02272fe3caa4b8c63c2a"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"57f329b5a1c3658845e9"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"ca033eca1f91dddaa6b2"
,
74
:
"317ccff353170ac7c01f"
,
75
:
"44714b271d06e1e87012"
,
76
:
"7eaab216a287b1ffca0e"
,
77
:
"01b9dbf75e1040e81146"
,
80
:
"c4a24f0beb29dbd2892a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
d
},
f
.
m
=
e
,
f
.
c
=
d
,
f
.
d
=
function
(
e
,
c
,
d
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
d
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/contacts/storeFrame/storeInfo.vue
View file @
2d151bed
...
...
@@ -66,7 +66,7 @@
</el-input>
</el-form-item>
<el-form-item
label=
"GPS坐标"
prop=
"location"
>
<el-input
class=
"w-500 m-r-10"
v-model=
"location"
></el-input>
<el-input
class=
"w-500 m-r-10"
v-model=
"
storeInfoData.
location"
></el-input>
<a
href=
"http://m.gpsspg.com/maps.htm"
class=
"a-href"
target=
"_blank"
>
经纬度测试工具
</a>
</el-form-item>
<el-form-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment