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
b228d75d
Commit
b228d75d
authored
Sep 04, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改门店架构
parent
31e21389
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
13 deletions
+14
-13
index.html
dist/index.html
+2
-2
4.18929084ede2c2225e24.js
dist/static/js/4.18929084ede2c2225e24.js
+2
-0
4.4e9ee3d2b5f84c0e2710.js
dist/static/js/4.4e9ee3d2b5f84c0e2710.js
+0
-2
6.864d62ab6b379f7b0f55.js
dist/static/js/6.864d62ab6b379f7b0f55.js
+2
-0
6.ff55496a5900f9b1dccf.js
dist/static/js/6.ff55496a5900f9b1dccf.js
+0
-2
manifest.9b1e4bb94dc95351954d.js
dist/static/js/manifest.9b1e4bb94dc95351954d.js
+2
-2
storeFrame.vue
src/views/contacts/storeFrame.vue
+6
-5
No files found.
dist/index.html
View file @
b228d75d
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.52e8641459134e5ba069a3277de408b1.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.8d927ce08b47db7870ed.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.bea79e4d35b85719c4de.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.52e8641459134e5ba069a3277de408b1.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.9b1e4bb94dc95351954d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.bea79e4d35b85719c4de.js
></script></body></html>
\ No newline at end of file
dist/static/js/4.18929084ede2c2225e24.js
0 → 100644
View file @
b228d75d
webpackJsonp
([
4
],{
"4WTo"
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"NWt+"
);
e
.
exports
=
function
(
e
,
t
){
var
n
=
[];
return
a
(
e
,
!
1
,
n
.
push
,
n
,
t
),
n
}},
"4kf4"
:
function
(
e
,
t
){},
"7Doy"
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"EqjI"
),
s
=
n
(
"7UMu"
),
o
=
n
(
"dSzd"
)(
"species"
);
e
.
exports
=
function
(
e
){
var
t
;
return
s
(
e
)
&&
(
"function"
!=
typeof
(
t
=
e
.
constructor
)
||
t
!==
Array
&&!
s
(
t
.
prototype
)
||
(
t
=
void
0
),
a
(
t
)
&&
null
===
(
t
=
t
[
o
])
&&
(
t
=
void
0
)),
void
0
===
t
?
Array
:
t
}},
"9Bbf"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"kM2E"
);
e
.
exports
=
function
(
e
){
a
(
a
.
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
,
n
){
"use strict"
;
var
a
=
n
(
"evD5"
).
f
,
s
=
n
(
"Yobk"
),
o
=
n
(
"xH/j"
),
r
=
n
(
"+ZMJ"
),
i
=
n
(
"2KxR"
),
l
=
n
(
"NWt+"
),
c
=
n
(
"vIB/"
),
u
=
n
(
"EGZi"
),
d
=
n
(
"bRrM"
),
h
=
n
(
"+E39"
),
p
=
n
(
"06OY"
).
fastKey
,
f
=
n
(
"LIJb"
),
m
=
h
?
"_s"
:
"size"
,
v
=
function
(
e
,
t
){
var
n
,
a
=
p
(
t
);
if
(
"F"
!==
a
)
return
e
.
_i
[
a
];
for
(
n
=
e
.
_f
;
n
;
n
=
n
.
n
)
if
(
n
.
k
==
t
)
return
n
};
e
.
exports
=
{
getConstructor
:
function
(
e
,
t
,
n
,
c
){
var
u
=
e
(
function
(
e
,
a
){
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
!=
a
&&
l
(
a
,
n
,
e
[
c
],
e
)});
return
o
(
u
.
prototype
,{
clear
:
function
(){
for
(
var
e
=
f
(
this
,
t
),
n
=
e
.
_i
,
a
=
e
.
_f
;
a
;
a
=
a
.
n
)
a
.
r
=!
0
,
a
.
p
&&
(
a
.
p
=
a
.
p
.
n
=
void
0
),
delete
n
[
a
.
i
];
e
.
_f
=
e
.
_l
=
void
0
,
e
[
m
]
=
0
},
delete
:
function
(
e
){
var
n
=
f
(
this
,
t
),
a
=
v
(
n
,
e
);
if
(
a
){
var
s
=
a
.
n
,
o
=
a
.
p
;
delete
n
.
_i
[
a
.
i
],
a
.
r
=!
0
,
o
&&
(
o
.
n
=
s
),
s
&&
(
s
.
p
=
o
),
n
.
_f
==
a
&&
(
n
.
_f
=
s
),
n
.
_l
==
a
&&
(
n
.
_l
=
o
),
n
[
m
]
--
}
return
!!
a
},
forEach
:
function
(
e
){
f
(
this
,
t
);
for
(
var
n
,
a
=
r
(
e
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
3
);
n
=
n
?
n
.
n
:
this
.
_f
;)
for
(
a
(
n
.
v
,
n
.
k
,
this
);
n
&&
n
.
r
;)
n
=
n
.
p
},
has
:
function
(
e
){
return
!!
v
(
f
(
this
,
t
),
e
)}}),
h
&&
a
(
u
.
prototype
,
"size"
,{
get
:
function
(){
return
f
(
this
,
t
)[
m
]}}),
u
},
def
:
function
(
e
,
t
,
n
){
var
a
,
s
,
o
=
v
(
e
,
t
);
return
o
?
o
.
v
=
n
:(
e
.
_l
=
o
=
{
i
:
s
=
p
(
t
,
!
0
),
k
:
t
,
v
:
n
,
p
:
a
=
e
.
_l
,
n
:
void
0
,
r
:
!
1
},
e
.
_f
||
(
e
.
_f
=
o
),
a
&&
(
a
.
n
=
o
),
e
[
m
]
++
,
"F"
!==
s
&&
(
e
.
_i
[
s
]
=
o
)),
e
},
getEntry
:
v
,
setStrong
:
function
(
e
,
t
,
n
){
c
(
e
,
t
,
function
(
e
,
n
){
this
.
_t
=
f
(
e
,
t
),
this
.
_k
=
n
,
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
))},
n
?
"entries"
:
"values"
,
!
n
,
!
0
),
d
(
t
)}}},
ALrJ
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"+ZMJ"
),
s
=
n
(
"MU5D"
),
o
=
n
(
"sB3e"
),
r
=
n
(
"QRG4"
),
i
=
n
(
"oeOm"
);
e
.
exports
=
function
(
e
,
t
){
var
n
=
1
==
e
,
l
=
2
==
e
,
c
=
3
==
e
,
u
=
4
==
e
,
d
=
6
==
e
,
h
=
5
==
e
||
d
,
p
=
t
||
i
;
return
function
(
t
,
i
,
f
){
for
(
var
m
,
v
,
g
=
o
(
t
),
_
=
s
(
g
),
y
=
a
(
i
,
f
,
3
),
b
=
r
(
_
.
length
),
C
=
0
,
k
=
n
?
p
(
t
,
b
):
l
?
p
(
t
,
0
):
void
0
;
b
>
C
;
C
++
)
if
((
h
||
C
in
_
)
&&
(
v
=
y
(
m
=
_
[
C
],
C
,
g
),
e
))
if
(
n
)
k
[
C
]
=
v
;
else
if
(
v
)
switch
(
e
){
case
3
:
return
!
0
;
case
5
:
return
m
;
case
6
:
return
C
;
case
2
:
k
.
push
(
m
)}
else
if
(
u
)
return
!
1
;
return
d
?
-
1
:
c
||
u
?
u
:
k
}}},
ATfr
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"0xDb"
),
s
=
{
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"
)}),
this
.
$emit
(
"clearSearch"
)},
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
n
=
this
,
s
=
Object
(
a
.
c
)(
e
);
n
.
defaultOpen
=
s
.
defaultOpen
,
n
.
menuData
=
s
.
menuArr
,
n
.
menuData
.
length
&&
n
.
$nextTick
(
function
(){
n
.
defaultId
=
n
.
menuData
.
length
?
n
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
n
(
"div"
,{
staticClass
:
"p-0-15"
},[
n
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
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
():
n
(
"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
a
=
t
.
node
;
return
t
.
data
,
n
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
n
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
a
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
a
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
n
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
a
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
n
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
a
},[
n
(
"div"
,[
n
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
n
){
e
.
handleNodeClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
n
){
e
.
handleStoreClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
n
){
e
.
selectEmployee
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
n
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
n
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
n
){
e
.
handleNodeClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
n
){
e
.
selectEmployee
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
n
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
n
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
r
=
n
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
n
(
"4kf4"
)},
null
,
null
);
t
.
a
=
r
.
exports
},
BDhv
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"kM2E"
);
a
(
a
.
P
+
a
.
R
,
"Set"
,{
toJSON
:
n
(
"m9gC"
)(
"Set"
)})},
BQQe
:
function
(
e
,
t
){},
HpRW
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"kM2E"
),
s
=
n
(
"lOnJ"
),
o
=
n
(
"+ZMJ"
),
r
=
n
(
"NWt+"
);
e
.
exports
=
function
(
e
){
a
(
a
.
S
,
e
,{
from
:
function
(
e
){
var
t
,
n
,
a
,
i
,
l
=
arguments
[
1
];
return
s
(
this
),(
t
=
void
0
!==
l
)
&&
s
(
l
),
void
0
==
e
?
new
this
:(
n
=
[],
t
?(
a
=
0
,
i
=
o
(
l
,
arguments
[
2
],
2
),
r
(
e
,
!
1
,
function
(
e
){
n
.
push
(
i
(
e
,
a
++
))})):
r
(
e
,
!
1
,
n
.
push
,
n
),
new
this
(
n
))}})}},
LIJb
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"EqjI"
);
e
.
exports
=
function
(
e
,
t
){
if
(
!
a
(
e
)
||
e
.
_t
!==
t
)
throw
TypeError
(
"Incompatible receiver, "
+
t
+
" required!"
);
return
e
}},
ioQ5
:
function
(
e
,
t
,
n
){
n
(
"HpRW"
)(
"Set"
)},
kLcy
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"lHA8"
),
s
=
n
.
n
(
a
),
o
=
n
(
"3Xzz"
),
r
=
n
(
"ATfr"
),
i
=
n
(
"WSbm"
),
l
=
{
name
:
"employee-table"
,
props
:{
employeeList
:{
type
:
Array
,
default
:
function
(){
return
[]}},
headList
:{
type
:
Array
,
default
:
function
(){
return
[
"selection"
,
"name"
,
"phoneNumber"
,
"positionName"
,
"activationStatus"
]}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
180
}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)},
linkToDetail
:
function
(
e
){
var
t
=
"/employee?employeeClerkId="
+
e
.
employeeClerkId
;
this
.
$router
.
push
(
t
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"employee-table"
},[
n
(
"el-table"
,{
attrs
:{
data
:
e
.
employeeList
},
on
:{
"selection-change"
:
e
.
selectMember
,
"row-click"
:
e
.
linkToDetail
}},[
e
.
_l
(
e
.
headList
,
function
(
t
){
return
[
"selection"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
type
:
"selection"
,
width
:
"42"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"name"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"姓名"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
name
))]),
e
.
_v
(
" "
),
1
==
t
.
row
.
isManager
?
n
(
"span"
,{
staticClass
:
"is-manager"
},[
e
.
_v
(
"部门负责人"
)]):
e
.
_e
()]}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
"phoneNumber"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
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
.
_e
(),
e
.
_v
(
" "
),
"positionName"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
positionName
?
t
.
row
.
positionName
:
"--"
)
+
"
\
n "
)]}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
"activationStatus"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
n
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
e
.
row
.
activationStatus
?
"is-active"
:
""
},[
n
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]}}])}):
e
.
_e
()]})],
2
)],
1
)},
staticRenderFns
:[]};
var
u
=
n
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
n
(
"BQQe"
)},
null
,
null
).
exports
,
d
=
n
(
"P9l9"
),
h
=
{
name
:
"administrativeEstrutura"
,
components
:{
navCrumb
:
o
.
a
,
searchMenu
:
r
.
a
,
employeeInfo
:
i
.
a
,
employeeList
:
u
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"行政架构"
,
path
:
""
}],
showChildMember
:
!
0
,
setDisabledDel
:
!
1
,
menuData
:[],
pageSize
:
20
,
currentPage
:
1
,
selectedList
:[],
total
:
0
,
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
,
hasPression
:
""
},
employeeList
:[],
searchResult
:{},
showEmployee
:
!
1
,
selectedEmployee
:{}}},
created
:
function
(){},
beforeMount
:
function
(){
this
.
getGroupData
(),
this
.
getEmployee
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmployee
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getEmployee
()},
addSon
:
function
(){
var
e
=
"/addDepartment?type=group&addnew=1&departmentId="
+
this
.
groupInfo
.
departmentId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"company"
:
"group"
,
n
=
"/addDepartment?departmentId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
;
this
.
changeRouter
(
n
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
n
=
{
keyWord
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/searchpage"
,
n
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
}).
catch
(
function
(
e
){})},
handleTreeSelection
:
function
(
e
,
t
,
n
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
showEmployee
=
n
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
loading
=!
0
,
this
.
getEmployee
()},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
selectedEmployee
=
e
,
this
.
showEmployee
=
t
},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
delMembers
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否要删除选中的员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
loading
=!
0
;
var
t
=
[];
if
(
e
.
selectedList
.
forEach
(
function
(
e
){
t
.
push
(
e
.
employeeClerkId
)}),
!
t
.
length
)
return
e
.
$message
({
message
:
"请选择员工"
,
type
:
"warning"
}),
e
.
loading
=!
1
,
!
1
;
var
n
=
{
ids
:
t
.
join
(
","
)};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/del"
,
n
).
then
(
function
(
t
){
if
(
1
==
t
.
data
.
errorCode
){
var
n
=
e
.
selectedList
,
a
=
e
.
employeeList
,
o
=
new
s
.
a
(
n
),
r
=
new
s
.
a
(
a
);
e
.
employeeList
=
n
.
concat
(
a
).
filter
(
function
(
e
){
return
!
o
.
has
(
e
)
||!
r
.
has
(
e
)}),
e
.
$message
.
success
({
message
:
t
.
data
.
message
})}
else
e
.
$message
.
error
({
message
:
t
.
data
.
message
});
e
.
loading
=!
1
}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
message
:
t
.
message
})})})},
setChildMemberShow
:
function
(){
this
.
getEmployee
()},
getGroupData
:
function
(
e
){
var
t
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
e
){
t
.
menuData
=
e
.
data
.
result
.
departmentList
||
[],
t
.
menuData
.
some
(
function
(
e
){
return
0
==
e
.
level
&&
(
t
.
groupInfo
.
departmentId
=
e
.
groupId
,
t
.
groupInfo
.
groupName
=
e
.
name
,
t
.
groupInfo
.
hasPression
=
e
.
hasPression
,
t
.
groupInfo
.
level
=
0
),
0
==
e
.
level
}),
t
.
getEmployee
()}).
catch
(
function
(
e
){
console
.
log
(
e
,
"error"
)})},
getEmployee
:
function
(){
var
e
=
this
,
t
=
{
departmentId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
,
status
:
1
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/findsimplepage"
,
t
).
then
(
function
(
t
){
var
n
=
[],
a
=
0
;
1
==
t
.
data
.
errorCode
&&
(
n
=
t
.
data
.
result
&&
t
.
data
.
result
.
list
?
t
.
data
.
result
.
list
:[],
a
=
t
.
data
.
result
&&
t
.
data
.
result
.
total
?
t
.
data
.
result
.
total
:
0
),
e
.
employeeList
=
n
,
e
.
total
=
a
,
e
.
loading
=!
1
}).
catch
(
function
(
t
){
console
.
log
(
t
,
"error"
),
e
.
loading
=!
1
})}},
computed
:{
disabledDel
:
function
(){
return
!
this
.
selectedList
.
length
&&!
this
.
setDisabledDel
&&
1
!=
this
.
groupInfo
.
hasPression
}}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"common-set-wrap admin-frame"
},[
n
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"right-content"
},[
n
(
"div"
,{
staticClass
:
"right-box"
},[
n
(
"div"
,{
staticClass
:
"administrative-estrutura-container common-frame-container"
,
style
:{
minHeight
:
e
.
$store
.
state
.
bgHeight
}},[
n
(
"search-menu"
,{
attrs
:{
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}}),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
n
(
"employee-info"
,{
attrs
:{
perId
:
e
.
selectedEmployee
.
employeeClerkId
}}):
n
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"af-right-container common-right-container"
},[
n
(
"div"
,{
staticClass
:
"af-right-header common-right-header"
},[
n
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"人)"
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"handle-area"
},[
n
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
"
\
n 添加子分组 "
)]),
n
(
"span"
,{
staticClass
:
"hurdle"
}),
n
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
href
:
"#/addGroup?groupId="
+
e
.
groupInfo
.
departmentId
,
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
"编辑"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"af-right-button-box common-right-button-box"
},[
n
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/employee?addnew=1&departmentId="
+
e
.
groupInfo
.
departmentId
)}}},[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加成员"
)])],
1
),
e
.
_v
(
" "
),
n
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/employeeIo?importCode=employee&departmentId="
+
e
.
groupInfo
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
)}}},[
n
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delMembers
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"J_show-children inline-block el-button"
},[
n
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子部门"
)])],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"employee-list"
,{
attrs
:{
employeeList
:
e
.
employeeList
},
on
:{
selectMember
:
e
.
selectMember
}}),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
n
(
"div"
,{
staticClass
:
"pagination"
},[
n
(
"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
):
e
.
_e
()],
1
)],
1
)])]),
e
.
_v
(
" "
),
n
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
f
=
n
(
"VU/8"
)(
h
,
p
,
!
1
,
function
(
e
){
n
(
"qxxY"
)},
null
,
null
);
t
.
default
=
f
.
exports
},
lHA8
:
function
(
e
,
t
,
n
){
e
.
exports
=
{
default
:
n
(
"pPW7"
),
__esModule
:
!
0
}},
m9gC
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"RY/4"
),
s
=
n
(
"4WTo"
);
e
.
exports
=
function
(
e
){
return
function
(){
if
(
a
(
this
)
!=
e
)
throw
TypeError
(
e
+
"#toJSON isn't generic"
);
return
s
(
this
)}}},
oNmr
:
function
(
e
,
t
,
n
){
n
(
"9Bbf"
)(
"Set"
)},
oeOm
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"7Doy"
);
e
.
exports
=
function
(
e
,
t
){
return
new
(
a
(
e
))(
t
)}},
pPW7
:
function
(
e
,
t
,
n
){
n
(
"M6a0"
),
n
(
"zQR9"
),
n
(
"+tPU"
),
n
(
"ttyz"
),
n
(
"BDhv"
),
n
(
"oNmr"
),
n
(
"ioQ5"
),
e
.
exports
=
n
(
"FeBl"
).
Set
},
qo66
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"7KvD"
),
s
=
n
(
"kM2E"
),
o
=
n
(
"06OY"
),
r
=
n
(
"S82l"
),
i
=
n
(
"hJx8"
),
l
=
n
(
"xH/j"
),
c
=
n
(
"NWt+"
),
u
=
n
(
"2KxR"
),
d
=
n
(
"EqjI"
),
h
=
n
(
"e6n0"
),
p
=
n
(
"evD5"
).
f
,
f
=
n
(
"ALrJ"
)(
0
),
m
=
n
(
"+E39"
);
e
.
exports
=
function
(
e
,
t
,
n
,
v
,
g
,
_
){
var
y
=
a
[
e
],
b
=
y
,
C
=
g
?
"set"
:
"add"
,
k
=
b
&&
b
.
prototype
,
I
=
{};
return
m
&&
"function"
==
typeof
b
&&
(
_
||
k
.
forEach
&&!
r
(
function
(){(
new
b
).
entries
().
next
()}))?(
b
=
t
(
function
(
t
,
n
){
u
(
t
,
b
,
e
,
"_c"
),
t
.
_c
=
new
y
,
void
0
!=
n
&&
c
(
n
,
g
,
t
[
C
],
t
)}),
f
(
"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON"
.
split
(
","
),
function
(
e
){
var
t
=
"add"
==
e
||
"set"
==
e
;
e
in
k
&&
(
!
_
||
"clear"
!=
e
)
&&
i
(
b
.
prototype
,
e
,
function
(
n
,
a
){
if
(
u
(
this
,
b
,
e
),
!
t
&&
_
&&!
d
(
n
))
return
"get"
==
e
&&
void
0
;
var
s
=
this
.
_c
[
e
](
0
===
n
?
0
:
n
,
a
);
return
t
?
this
:
s
})}),
_
||
p
(
b
.
prototype
,
"size"
,{
get
:
function
(){
return
this
.
_c
.
size
}})):(
b
=
v
.
getConstructor
(
t
,
e
,
g
,
C
),
l
(
b
.
prototype
,
n
),
o
.
NEED
=!
0
),
h
(
b
,
e
),
I
[
e
]
=
b
,
s
(
s
.
G
+
s
.
W
+
s
.
F
,
I
),
_
||
v
.
setStrong
(
b
,
e
,
g
),
b
}},
qxxY
:
function
(
e
,
t
){},
ttyz
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"9C8M"
),
s
=
n
(
"LIJb"
);
e
.
exports
=
n
(
"qo66"
)(
"Set"
,
function
(
e
){
return
function
(){
return
e
(
this
,
arguments
.
length
>
0
?
arguments
[
0
]:
void
0
)}},{
add
:
function
(
e
){
return
a
.
def
(
s
(
this
,
"Set"
),
e
=
0
===
e
?
0
:
e
,
e
)}},
a
)}});
\ No newline at end of file
dist/static/js/4.4e9ee3d2b5f84c0e2710.js
deleted
100644 → 0
View file @
31e21389
webpackJsonp
([
4
],{
"4WTo"
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"NWt+"
);
e
.
exports
=
function
(
e
,
t
){
var
n
=
[];
return
a
(
e
,
!
1
,
n
.
push
,
n
,
t
),
n
}},
"7Doy"
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"EqjI"
),
s
=
n
(
"7UMu"
),
o
=
n
(
"dSzd"
)(
"species"
);
e
.
exports
=
function
(
e
){
var
t
;
return
s
(
e
)
&&
(
"function"
!=
typeof
(
t
=
e
.
constructor
)
||
t
!==
Array
&&!
s
(
t
.
prototype
)
||
(
t
=
void
0
),
a
(
t
)
&&
null
===
(
t
=
t
[
o
])
&&
(
t
=
void
0
)),
void
0
===
t
?
Array
:
t
}},
"9Bbf"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"kM2E"
);
e
.
exports
=
function
(
e
){
a
(
a
.
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
,
n
){
"use strict"
;
var
a
=
n
(
"evD5"
).
f
,
s
=
n
(
"Yobk"
),
o
=
n
(
"xH/j"
),
r
=
n
(
"+ZMJ"
),
i
=
n
(
"2KxR"
),
l
=
n
(
"NWt+"
),
c
=
n
(
"vIB/"
),
u
=
n
(
"EGZi"
),
d
=
n
(
"bRrM"
),
h
=
n
(
"+E39"
),
p
=
n
(
"06OY"
).
fastKey
,
m
=
n
(
"LIJb"
),
f
=
h
?
"_s"
:
"size"
,
v
=
function
(
e
,
t
){
var
n
,
a
=
p
(
t
);
if
(
"F"
!==
a
)
return
e
.
_i
[
a
];
for
(
n
=
e
.
_f
;
n
;
n
=
n
.
n
)
if
(
n
.
k
==
t
)
return
n
};
e
.
exports
=
{
getConstructor
:
function
(
e
,
t
,
n
,
c
){
var
u
=
e
(
function
(
e
,
a
){
i
(
e
,
u
,
t
,
"_i"
),
e
.
_t
=
t
,
e
.
_i
=
s
(
null
),
e
.
_f
=
void
0
,
e
.
_l
=
void
0
,
e
[
f
]
=
0
,
void
0
!=
a
&&
l
(
a
,
n
,
e
[
c
],
e
)});
return
o
(
u
.
prototype
,{
clear
:
function
(){
for
(
var
e
=
m
(
this
,
t
),
n
=
e
.
_i
,
a
=
e
.
_f
;
a
;
a
=
a
.
n
)
a
.
r
=!
0
,
a
.
p
&&
(
a
.
p
=
a
.
p
.
n
=
void
0
),
delete
n
[
a
.
i
];
e
.
_f
=
e
.
_l
=
void
0
,
e
[
f
]
=
0
},
delete
:
function
(
e
){
var
n
=
m
(
this
,
t
),
a
=
v
(
n
,
e
);
if
(
a
){
var
s
=
a
.
n
,
o
=
a
.
p
;
delete
n
.
_i
[
a
.
i
],
a
.
r
=!
0
,
o
&&
(
o
.
n
=
s
),
s
&&
(
s
.
p
=
o
),
n
.
_f
==
a
&&
(
n
.
_f
=
s
),
n
.
_l
==
a
&&
(
n
.
_l
=
o
),
n
[
f
]
--
}
return
!!
a
},
forEach
:
function
(
e
){
m
(
this
,
t
);
for
(
var
n
,
a
=
r
(
e
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
3
);
n
=
n
?
n
.
n
:
this
.
_f
;)
for
(
a
(
n
.
v
,
n
.
k
,
this
);
n
&&
n
.
r
;)
n
=
n
.
p
},
has
:
function
(
e
){
return
!!
v
(
m
(
this
,
t
),
e
)}}),
h
&&
a
(
u
.
prototype
,
"size"
,{
get
:
function
(){
return
m
(
this
,
t
)[
f
]}}),
u
},
def
:
function
(
e
,
t
,
n
){
var
a
,
s
,
o
=
v
(
e
,
t
);
return
o
?
o
.
v
=
n
:(
e
.
_l
=
o
=
{
i
:
s
=
p
(
t
,
!
0
),
k
:
t
,
v
:
n
,
p
:
a
=
e
.
_l
,
n
:
void
0
,
r
:
!
1
},
e
.
_f
||
(
e
.
_f
=
o
),
a
&&
(
a
.
n
=
o
),
e
[
f
]
++
,
"F"
!==
s
&&
(
e
.
_i
[
s
]
=
o
)),
e
},
getEntry
:
v
,
setStrong
:
function
(
e
,
t
,
n
){
c
(
e
,
t
,
function
(
e
,
n
){
this
.
_t
=
m
(
e
,
t
),
this
.
_k
=
n
,
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
))},
n
?
"entries"
:
"values"
,
!
n
,
!
0
),
d
(
t
)}}},
ALrJ
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"+ZMJ"
),
s
=
n
(
"MU5D"
),
o
=
n
(
"sB3e"
),
r
=
n
(
"QRG4"
),
i
=
n
(
"oeOm"
);
e
.
exports
=
function
(
e
,
t
){
var
n
=
1
==
e
,
l
=
2
==
e
,
c
=
3
==
e
,
u
=
4
==
e
,
d
=
6
==
e
,
h
=
5
==
e
||
d
,
p
=
t
||
i
;
return
function
(
t
,
i
,
m
){
for
(
var
f
,
v
,
g
=
o
(
t
),
_
=
s
(
g
),
y
=
a
(
i
,
m
,
3
),
b
=
r
(
_
.
length
),
C
=
0
,
k
=
n
?
p
(
t
,
b
):
l
?
p
(
t
,
0
):
void
0
;
b
>
C
;
C
++
)
if
((
h
||
C
in
_
)
&&
(
v
=
y
(
f
=
_
[
C
],
C
,
g
),
e
))
if
(
n
)
k
[
C
]
=
v
;
else
if
(
v
)
switch
(
e
){
case
3
:
return
!
0
;
case
5
:
return
f
;
case
6
:
return
C
;
case
2
:
k
.
push
(
f
)}
else
if
(
u
)
return
!
1
;
return
d
?
-
1
:
c
||
u
?
u
:
k
}}},
ATfr
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"0xDb"
),
s
=
{
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"
)}),
this
.
$emit
(
"clearSearch"
)},
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
n
=
this
,
s
=
Object
(
a
.
c
)(
e
);
n
.
defaultOpen
=
s
.
defaultOpen
,
n
.
menuData
=
s
.
menuArr
,
n
.
menuData
.
length
&&
n
.
$nextTick
(
function
(){
n
.
defaultId
=
n
.
menuData
.
length
?
n
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
n
(
"div"
,{
staticClass
:
"p-0-15"
},[
n
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
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
():
n
(
"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
a
=
t
.
node
;
return
t
.
data
,
n
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
n
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
a
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
a
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
n
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
a
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
n
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
a
},[
n
(
"div"
,[
n
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
n
){
e
.
handleNodeClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
n
){
e
.
handleStoreClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
n
){
e
.
selectEmployee
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
n
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
n
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
n
){
e
.
handleNodeClick
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
n
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
n
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
a
){
return
n
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
n
){
e
.
selectEmployee
(
t
)}}},[
n
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
n
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
n
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
r
=
n
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
n
(
"WUvG"
)},
null
,
null
);
t
.
a
=
r
.
exports
},
BDhv
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"kM2E"
);
a
(
a
.
P
+
a
.
R
,
"Set"
,{
toJSON
:
n
(
"m9gC"
)(
"Set"
)})},
BQQe
:
function
(
e
,
t
){},
HpRW
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"kM2E"
),
s
=
n
(
"lOnJ"
),
o
=
n
(
"+ZMJ"
),
r
=
n
(
"NWt+"
);
e
.
exports
=
function
(
e
){
a
(
a
.
S
,
e
,{
from
:
function
(
e
){
var
t
,
n
,
a
,
i
,
l
=
arguments
[
1
];
return
s
(
this
),(
t
=
void
0
!==
l
)
&&
s
(
l
),
void
0
==
e
?
new
this
:(
n
=
[],
t
?(
a
=
0
,
i
=
o
(
l
,
arguments
[
2
],
2
),
r
(
e
,
!
1
,
function
(
e
){
n
.
push
(
i
(
e
,
a
++
))})):
r
(
e
,
!
1
,
n
.
push
,
n
),
new
this
(
n
))}})}},
LIJb
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"EqjI"
);
e
.
exports
=
function
(
e
,
t
){
if
(
!
a
(
e
)
||
e
.
_t
!==
t
)
throw
TypeError
(
"Incompatible receiver, "
+
t
+
" required!"
);
return
e
}},
WUvG
:
function
(
e
,
t
){},
ioQ5
:
function
(
e
,
t
,
n
){
n
(
"HpRW"
)(
"Set"
)},
kLcy
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"lHA8"
),
s
=
n
.
n
(
a
),
o
=
n
(
"3Xzz"
),
r
=
n
(
"ATfr"
),
i
=
n
(
"WSbm"
),
l
=
{
name
:
"employee-table"
,
props
:{
employeeList
:{
type
:
Array
,
default
:
function
(){
return
[]}},
headList
:{
type
:
Array
,
default
:
function
(){
return
[
"selection"
,
"name"
,
"phoneNumber"
,
"positionName"
,
"activationStatus"
]}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
180
}},
methods
:{
selectMember
:
function
(
e
){
this
.
$emit
(
"selectMember"
,
e
)},
linkToDetail
:
function
(
e
){
var
t
=
"/employee?employeeClerkId="
+
e
.
employeeClerkId
;
this
.
$router
.
push
(
t
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"employee-table"
},[
n
(
"el-table"
,{
attrs
:{
data
:
e
.
employeeList
},
on
:{
"selection-change"
:
e
.
selectMember
,
"row-click"
:
e
.
linkToDetail
}},[
e
.
_l
(
e
.
headList
,
function
(
t
){
return
[
"selection"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
type
:
"selection"
,
width
:
"42"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
"name"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"姓名"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
name
))]),
e
.
_v
(
" "
),
1
==
t
.
row
.
isManager
?
n
(
"span"
,{
staticClass
:
"is-manager"
},[
e
.
_v
(
"部门负责人"
)]):
e
.
_e
()]}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
"phoneNumber"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
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
.
_e
(),
e
.
_v
(
" "
),
"positionName"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
positionName
?
t
.
row
.
positionName
:
"--"
)
+
"
\
n "
)]}}])}):
e
.
_e
(),
e
.
_v
(
" "
),
"activationStatus"
==
t
?
n
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
n
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
e
.
row
.
activationStatus
?
"is-active"
:
""
},[
n
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]}}])}):
e
.
_e
()]})],
2
)],
1
)},
staticRenderFns
:[]};
var
u
=
n
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
n
(
"BQQe"
)},
null
,
null
).
exports
,
d
=
n
(
"P9l9"
),
h
=
{
name
:
"administrativeEstrutura"
,
components
:{
navCrumb
:
o
.
a
,
searchMenu
:
r
.
a
,
employeeInfo
:
i
.
a
,
employeeList
:
u
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"行政架构"
,
path
:
""
}],
showChildMember
:
!
0
,
setDisabledDel
:
!
1
,
menuData
:[],
pageSize
:
20
,
currentPage
:
1
,
selectedList
:[],
total
:
0
,
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
,
hasPression
:
""
},
employeeList
:[],
searchResult
:{},
showEmployee
:
!
1
,
selectedEmployee
:{}}},
created
:
function
(){},
beforeMount
:
function
(){
this
.
getGroupData
(),
this
.
getEmployee
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmployee
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getEmployee
()},
addSon
:
function
(){
var
e
=
"/addDepartment?type=group&addnew=1&departmentId="
+
this
.
groupInfo
.
departmentId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"company"
:
"group"
,
n
=
"/addDepartment?departmentId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
;
this
.
changeRouter
(
n
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
n
=
{
keyWord
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/searchpage"
,
n
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
}).
catch
(
function
(
e
){})},
handleTreeSelection
:
function
(
e
,
t
,
n
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
showEmployee
=
n
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
loading
=!
0
,
this
.
getEmployee
()},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
selectedEmployee
=
e
,
this
.
showEmployee
=
t
},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
delMembers
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否要删除选中的员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
loading
=!
0
;
var
t
=
[];
if
(
e
.
selectedList
.
forEach
(
function
(
e
){
t
.
push
(
e
.
employeeClerkId
)}),
!
t
.
length
)
return
e
.
$message
({
message
:
"请选择员工"
,
type
:
"warning"
}),
e
.
loading
=!
1
,
!
1
;
var
n
=
{
ids
:
t
.
join
(
","
)};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/del"
,
n
).
then
(
function
(
t
){
if
(
1
==
t
.
data
.
errorCode
){
var
n
=
e
.
selectedList
,
a
=
e
.
employeeList
,
o
=
new
s
.
a
(
n
),
r
=
new
s
.
a
(
a
);
e
.
employeeList
=
n
.
concat
(
a
).
filter
(
function
(
e
){
return
!
o
.
has
(
e
)
||!
r
.
has
(
e
)}),
e
.
$message
.
success
({
message
:
t
.
data
.
message
})}
else
e
.
$message
.
error
({
message
:
t
.
data
.
message
});
e
.
loading
=!
1
}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
message
:
t
.
message
})})})},
setChildMemberShow
:
function
(){
this
.
getEmployee
()},
getGroupData
:
function
(
e
){
var
t
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
e
){
t
.
menuData
=
e
.
data
.
result
.
departmentList
||
[],
t
.
menuData
.
some
(
function
(
e
){
return
0
==
e
.
level
&&
(
t
.
groupInfo
.
departmentId
=
e
.
groupId
,
t
.
groupInfo
.
groupName
=
e
.
name
,
t
.
groupInfo
.
hasPression
=
e
.
hasPression
,
t
.
groupInfo
.
level
=
0
),
0
==
e
.
level
}),
t
.
getEmployee
()}).
catch
(
function
(
e
){
console
.
log
(
e
,
"error"
)})},
getEmployee
:
function
(){
var
e
=
this
,
t
=
{
departmentId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
,
status
:
1
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/findsimplepage"
,
t
).
then
(
function
(
t
){
var
n
=
[],
a
=
0
;
1
==
t
.
data
.
errorCode
&&
(
n
=
t
.
data
.
result
&&
t
.
data
.
result
.
list
?
t
.
data
.
result
.
list
:[],
a
=
t
.
data
.
result
&&
t
.
data
.
result
.
total
?
t
.
data
.
result
.
total
:
0
),
e
.
employeeList
=
n
,
e
.
total
=
a
,
e
.
loading
=!
1
}).
catch
(
function
(
t
){
console
.
log
(
t
,
"error"
),
e
.
loading
=!
1
})}},
computed
:{
disabledDel
:
function
(){
return
!
this
.
selectedList
.
length
&&!
this
.
setDisabledDel
&&
1
!=
this
.
groupInfo
.
hasPression
}}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"common-set-wrap admin-frame"
},[
n
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"right-content"
},[
n
(
"div"
,{
staticClass
:
"right-box"
},[
n
(
"div"
,{
staticClass
:
"administrative-estrutura-container common-frame-container"
,
style
:{
minHeight
:
e
.
$store
.
state
.
bgHeight
}},[
n
(
"search-menu"
,{
attrs
:{
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}}),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
n
(
"employee-info"
,{
attrs
:{
perId
:
e
.
selectedEmployee
.
employeeClerkId
}}):
n
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"af-right-container common-right-container"
},[
n
(
"div"
,{
staticClass
:
"af-right-header common-right-header"
},[
n
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"人)"
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"handle-area"
},[
n
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
"
\
n 添加子分组 "
)]),
n
(
"span"
,{
staticClass
:
"hurdle"
}),
n
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
href
:
"#/addGroup?groupId="
+
e
.
groupInfo
.
departmentId
,
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
"编辑"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"af-right-button-box common-right-button-box"
},[
n
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/employee?addnew=1&departmentId="
+
e
.
groupInfo
.
departmentId
)}}},[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加成员"
)])],
1
),
e
.
_v
(
" "
),
n
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/employeeIo?importCode=employee&departmentId="
+
e
.
groupInfo
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
)}}},[
n
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delMembers
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"J_show-children inline-block el-button"
},[
n
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子部门"
)])],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"employee-list"
,{
attrs
:{
employeeList
:
e
.
employeeList
},
on
:{
selectMember
:
e
.
selectMember
}}),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
n
(
"div"
,{
staticClass
:
"pagination"
},[
n
(
"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
):
e
.
_e
()],
1
)],
1
)])]),
e
.
_v
(
" "
),
n
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
m
=
n
(
"VU/8"
)(
h
,
p
,
!
1
,
function
(
e
){
n
(
"qxxY"
)},
null
,
null
);
t
.
default
=
m
.
exports
},
lHA8
:
function
(
e
,
t
,
n
){
e
.
exports
=
{
default
:
n
(
"pPW7"
),
__esModule
:
!
0
}},
m9gC
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"RY/4"
),
s
=
n
(
"4WTo"
);
e
.
exports
=
function
(
e
){
return
function
(){
if
(
a
(
this
)
!=
e
)
throw
TypeError
(
e
+
"#toJSON isn't generic"
);
return
s
(
this
)}}},
oNmr
:
function
(
e
,
t
,
n
){
n
(
"9Bbf"
)(
"Set"
)},
oeOm
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"7Doy"
);
e
.
exports
=
function
(
e
,
t
){
return
new
(
a
(
e
))(
t
)}},
pPW7
:
function
(
e
,
t
,
n
){
n
(
"M6a0"
),
n
(
"zQR9"
),
n
(
"+tPU"
),
n
(
"ttyz"
),
n
(
"BDhv"
),
n
(
"oNmr"
),
n
(
"ioQ5"
),
e
.
exports
=
n
(
"FeBl"
).
Set
},
qo66
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"7KvD"
),
s
=
n
(
"kM2E"
),
o
=
n
(
"06OY"
),
r
=
n
(
"S82l"
),
i
=
n
(
"hJx8"
),
l
=
n
(
"xH/j"
),
c
=
n
(
"NWt+"
),
u
=
n
(
"2KxR"
),
d
=
n
(
"EqjI"
),
h
=
n
(
"e6n0"
),
p
=
n
(
"evD5"
).
f
,
m
=
n
(
"ALrJ"
)(
0
),
f
=
n
(
"+E39"
);
e
.
exports
=
function
(
e
,
t
,
n
,
v
,
g
,
_
){
var
y
=
a
[
e
],
b
=
y
,
C
=
g
?
"set"
:
"add"
,
k
=
b
&&
b
.
prototype
,
I
=
{};
return
f
&&
"function"
==
typeof
b
&&
(
_
||
k
.
forEach
&&!
r
(
function
(){(
new
b
).
entries
().
next
()}))?(
b
=
t
(
function
(
t
,
n
){
u
(
t
,
b
,
e
,
"_c"
),
t
.
_c
=
new
y
,
void
0
!=
n
&&
c
(
n
,
g
,
t
[
C
],
t
)}),
m
(
"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON"
.
split
(
","
),
function
(
e
){
var
t
=
"add"
==
e
||
"set"
==
e
;
e
in
k
&&
(
!
_
||
"clear"
!=
e
)
&&
i
(
b
.
prototype
,
e
,
function
(
n
,
a
){
if
(
u
(
this
,
b
,
e
),
!
t
&&
_
&&!
d
(
n
))
return
"get"
==
e
&&
void
0
;
var
s
=
this
.
_c
[
e
](
0
===
n
?
0
:
n
,
a
);
return
t
?
this
:
s
})}),
_
||
p
(
b
.
prototype
,
"size"
,{
get
:
function
(){
return
this
.
_c
.
size
}})):(
b
=
v
.
getConstructor
(
t
,
e
,
g
,
C
),
l
(
b
.
prototype
,
n
),
o
.
NEED
=!
0
),
h
(
b
,
e
),
I
[
e
]
=
b
,
s
(
s
.
G
+
s
.
W
+
s
.
F
,
I
),
_
||
v
.
setStrong
(
b
,
e
,
g
),
b
}},
qxxY
:
function
(
e
,
t
){},
ttyz
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"9C8M"
),
s
=
n
(
"LIJb"
);
e
.
exports
=
n
(
"qo66"
)(
"Set"
,
function
(
e
){
return
function
(){
return
e
(
this
,
arguments
.
length
>
0
?
arguments
[
0
]:
void
0
)}},{
add
:
function
(
e
){
return
a
.
def
(
s
(
this
,
"Set"
),
e
=
0
===
e
?
0
:
e
,
e
)}},
a
)}});
\ No newline at end of file
dist/static/js/6.864d62ab6b379f7b0f55.js
0 → 100644
View file @
b228d75d
webpackJsonp
([
6
],{
"1ThA"
:
function
(
e
,
t
){},
"4kf4"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
d
=
a
(
"ATfr"
),
u
=
a
(
"P9l9"
),
p
=
{
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
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
u
.
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
}}},
m
=
{
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"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/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
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"BQJE"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
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
(
u
.
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
;
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
u
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
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
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
||
""
,
status
:
e
.
storeStatus
||
""
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
u
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
u
.
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
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
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
}})}}},
b
=
{
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"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
0
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
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
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/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
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
e
.
_v
(
e
.
_s
(
r
.
name
))]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"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
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
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
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
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
:
"name"
},[
e
.
_v
(
"员工code"
)]),
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
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"Sxtf"
)},
"data-v-6d27ed5e"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
u
.
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
:
"请输入品牌名称"
})}}},
y
=
{
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
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
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
)},
staticRenderFns
:[]};
var
k
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"nmDM"
)},
null
,
null
).
exports
,
S
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
d
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
S
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
k
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
(
r
=
a
).
tempSearchData
=
e
,
r
.
perId
=
e
.
employeeClerkId
,
r
.
userId
=
e
.
brandId
,
r
.
getStoreList
(
e
),
t
.
next
=
7
,
r
.
getGicData
();
case
7
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
getStoreList
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
u
.
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
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
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
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
u
.
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
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
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
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
N
=
{
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
:{
clearSearch
:
e
.
clearSearch
,
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"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/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
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
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"
)(
L
,
N
,
!
1
,
function
(
e
){
a
(
"kcn3"
)},
null
,
null
);
t
.
default
=
x
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
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"
)}),
this
.
$emit
(
"clearSearch"
)},
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
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
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
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
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
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"4kf4"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
BQJE
:
function
(
e
,
t
){},
Sxtf
:
function
(
e
,
t
){},
bY6o
:
function
(
e
,
t
){},
kcn3
:
function
(
e
,
t
){},
nmDM
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
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
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入code"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
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
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
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
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
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
(
o
.
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
)}}},
d
=
{
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入code"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
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
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"bY6o"
)},
null
,
null
);
t
.
a
=
u
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
o
=
a
(
"//Fk"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"mvHQ"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
m
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
h
=
a
.
n
(
f
),
g
=
a
(
"l46T"
),
v
=
a
(
"Kkt8"
),
b
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
m
.
a
,
limitInput
:
g
.
a
,
limitTextarea
:
v
.
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
:[],
currentBrand
:
this
.
storeInfo
.
storeGroupId
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
JSON
.
parse
(
d
()(
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
,
r
){
return
a
&&
e
.
storeInfo
.
closeTime
?
r
():
r
(
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
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
storeCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号码"
));
var
s
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
managerCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
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
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
l
()(
s
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
i
;
return
s
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
r
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
i
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
n
.
a
.
all
([
r
,
o
,
i
]).
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
=
JSON
.
parse
(
d
()(
e
.
storeInfoData
)),
r
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
r
.
push
(
e
.
url
)}),
a
.
imageUrls
=
r
.
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
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
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
})}),
e
.
imageUrls
=
a
,
e
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
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
(
d
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
I
=
{
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeName
,
holder
:
"请输入门店名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)}}})],
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
.
storeInfoData
.
imageUrls
,
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
holder
:
"请输入门店地址"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入门店代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerName
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)}}})],
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
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
specialService
,
holder
:
"请输入特色服务"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
personCost
,
holder
:
"请输入人均消费"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
recommendGoods
,
holder
:
"请输入推荐商品"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
brandDes
,
holder
:
"请输入品牌介绍"
,
getByType
:
"word"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)}}})],
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
,
currentBrand
:
e
.
currentBrand
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"1ThA"
)},
null
,
null
);
t
.
a
=
_
.
exports
}});
\ No newline at end of file
dist/static/js/6.ff55496a5900f9b1dccf.js
deleted
100644 → 0
View file @
31e21389
webpackJsonp
([
6
],{
"1ThA"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
d
=
a
(
"ATfr"
),
u
=
a
(
"P9l9"
),
p
=
{
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
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
u
.
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
}}},
m
=
{
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"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/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
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"BQJE"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
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
(
u
.
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
;
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
u
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
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
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
||
""
,
status
:
e
.
storeStatus
||
""
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
u
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
u
.
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
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
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
}})}}},
b
=
{
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"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
0
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
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
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/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
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
e
.
_v
(
e
.
_s
(
r
.
name
))]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"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"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"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
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
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
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
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
:
"name"
},[
e
.
_v
(
"员工code"
)]),
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
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"Sxtf"
)},
"data-v-6d27ed5e"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
u
.
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
:
"请输入品牌名称"
})}}},
y
=
{
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
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
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
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"nmDM"
)},
null
,
null
).
exports
,
k
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
d
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
k
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
S
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
that
.
tempSearchData
=
e
,
a
.
perId
=
e
.
employeeClerkId
,
a
.
userId
=
e
.
brandId
,
a
.
getStoreList
(
e
),
t
.
next
=
6
,
a
.
getGicData
();
case
6
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
getStoreList
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
u
.
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
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
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
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
u
.
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
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
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
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
N
=
{
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
:{
clearSearch
:
e
.
clearSearch
,
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"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/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
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
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"
)(
L
,
N
,
!
1
,
function
(
e
){
a
(
"UhNG"
)},
null
,
null
);
t
.
default
=
x
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
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"
)}),
this
.
$emit
(
"clearSearch"
)},
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
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
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
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
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
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
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"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"WUvG"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
BQJE
:
function
(
e
,
t
){},
Sxtf
:
function
(
e
,
t
){},
UhNG
:
function
(
e
,
t
){},
WUvG
:
function
(
e
,
t
){},
bY6o
:
function
(
e
,
t
){},
nmDM
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
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
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入code"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
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
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
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
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
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
(
o
.
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
)}}},
d
=
{
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入code"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
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
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"bY6o"
)},
null
,
null
);
t
.
a
=
u
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
o
=
a
(
"//Fk"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"mvHQ"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
m
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
h
=
a
.
n
(
f
),
g
=
a
(
"l46T"
),
v
=
a
(
"Kkt8"
),
b
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
m
.
a
,
limitInput
:
g
.
a
,
limitTextarea
:
v
.
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
:[],
currentBrand
:
this
.
storeInfo
.
storeGroupId
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
JSON
.
parse
(
d
()(
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
,
r
){
return
a
&&
e
.
storeInfo
.
closeTime
?
r
():
r
(
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
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
storeCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号码"
));
var
s
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
managerCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
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
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
l
()(
s
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
i
;
return
s
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
r
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
i
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
n
.
a
.
all
([
r
,
o
,
i
]).
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
=
JSON
.
parse
(
d
()(
e
.
storeInfoData
)),
r
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
r
.
push
(
e
.
url
)}),
a
.
imageUrls
=
r
.
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
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
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
})}),
e
.
imageUrls
=
a
,
e
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
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
(
d
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
I
=
{
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeName
,
holder
:
"请输入门店名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)}}})],
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
.
storeInfoData
.
imageUrls
,
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
holder
:
"请输入门店地址"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入门店代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerName
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)}}})],
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
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)}}})],
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
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
specialService
,
holder
:
"请输入特色服务"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
personCost
,
holder
:
"请输入人均消费"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
recommendGoods
,
holder
:
"请输入推荐商品"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
brandDes
,
holder
:
"请输入品牌介绍"
,
getByType
:
"word"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)}}})],
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
,
currentBrand
:
e
.
currentBrand
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"1ThA"
)},
null
,
null
);
t
.
a
=
_
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
8d927ce08b47db7870e
d.js
→
dist/static/js/manifest.
9b1e4bb94dc95351954
d.js
View file @
b228d75d
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
82
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
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
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52553b96345dd3750f43"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"4e9ee3d2b5f84c0e2710"
,
5
:
"baa22d481d8bbd83425c"
,
6
:
"ff55496a5900f9b1dccf"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"02a2bbb61efe1946f33b"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"8a2d85b6cc3b95b868d9"
,
15
:
"ed6f2f9ae725367ccfc3"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"a579fe9e82eab9ece806"
,
26
:
"8f0bb144b5e757399727"
,
27
:
"b5f0e5bd5920771b58af"
,
28
:
"140ad99228544036c969"
,
29
:
"36261093da9264fa5f33"
,
30
:
"0d4999d53befa8fd9eaa"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"031f3a5aae4656aba067"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"d17e2c61f3cc8d6972fa"
,
40
:
"56797b378549955e7f19"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"9dce74b07cc47cdf56db"
,
54
:
"1503b643475934e2b5e1"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"94bbfa32e0086c5f0bbc"
,
57
:
"a5308ec502fd9436e4d8"
,
58
:
"78fea9e14de750887bf1"
,
59
:
"e232c753f68c56d9e59c"
,
60
:
"2a9bebb0261ef9a7a939"
,
61
:
"8833a156f1e38036fb28"
,
62
:
"44d1241f8d57451d0c10"
,
63
:
"25cb3ac91e9616a47dde"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"d7e3675c4b4931db738d"
,
68
:
"13404d9aa7a460952885"
,
69
:
"ff1445c96fd757245229"
,
70
:
"3720d31e136a7f99a873"
,
71
:
"458af30d30795059cdbe"
,
72
:
"cba3aa56f0a846445e33"
,
73
:
"dc84bab89c2090b47673"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"e24f155e1168c927ee44"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
82
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
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
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52553b96345dd3750f43"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"18929084ede2c2225e24"
,
5
:
"baa22d481d8bbd83425c"
,
6
:
"864d62ab6b379f7b0f55"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"02a2bbb61efe1946f33b"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"8a2d85b6cc3b95b868d9"
,
15
:
"ed6f2f9ae725367ccfc3"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"a579fe9e82eab9ece806"
,
26
:
"8f0bb144b5e757399727"
,
27
:
"b5f0e5bd5920771b58af"
,
28
:
"140ad99228544036c969"
,
29
:
"36261093da9264fa5f33"
,
30
:
"0d4999d53befa8fd9eaa"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"031f3a5aae4656aba067"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"d17e2c61f3cc8d6972fa"
,
40
:
"56797b378549955e7f19"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"9dce74b07cc47cdf56db"
,
54
:
"1503b643475934e2b5e1"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"94bbfa32e0086c5f0bbc"
,
57
:
"a5308ec502fd9436e4d8"
,
58
:
"78fea9e14de750887bf1"
,
59
:
"e232c753f68c56d9e59c"
,
60
:
"2a9bebb0261ef9a7a939"
,
61
:
"8833a156f1e38036fb28"
,
62
:
"44d1241f8d57451d0c10"
,
63
:
"25cb3ac91e9616a47dde"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"d7e3675c4b4931db738d"
,
68
:
"13404d9aa7a460952885"
,
69
:
"ff1445c96fd757245229"
,
70
:
"3720d31e136a7f99a873"
,
71
:
"458af30d30795059cdbe"
,
72
:
"cba3aa56f0a846445e33"
,
73
:
"dc84bab89c2090b47673"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"e24f155e1168c927ee44"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/views/contacts/storeFrame.vue
View file @
b228d75d
...
...
@@ -160,12 +160,13 @@ export default {
async
handleEmployeeSelection
(
employee
,
type
)
{
/* eslint-disable */
// console.log('employee, type:', employee, type);
const
that
=
this
;
that
.
tempSearchData
=
employee
;
th
is
.
perId
=
employee
.
employeeClerkId
;
th
is
.
userId
=
employee
.
brandId
;
// userId; // 20190627 改成 brandId
th
is
.
getStoreList
(
employee
)
// th
is
.showEmployee = type;
await
th
is
.
getGicData
();
// 获取 GIC 门店同步状态
th
at
.
perId
=
employee
.
employeeClerkId
;
th
at
.
userId
=
employee
.
brandId
;
// userId; // 20190627 改成 brandId
th
at
.
getStoreList
(
employee
)
// th
at
.showEmployee = type;
await
th
at
.
getGicData
();
// 获取 GIC 门店同步状态
},
/**
* 新建品牌
...
...
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