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
86ed9486
Commit
86ed9486
authored
Mar 28, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改编辑店员
parent
f1124bf8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
index.html
dist/index.html
+2
-2
19.7ed28ae00b8809d6d671.js
dist/static/js/19.7ed28ae00b8809d6d671.js
+2
-2
5.49d43c4faafde713ab7c.js
dist/static/js/5.49d43c4faafde713ab7c.js
+2
-2
manifest.f042f113466b86d8812a.js
dist/static/js/manifest.f042f113466b86d8812a.js
+2
-2
clerkInfo.vue
src/components/contacts/storeFrame/clerkInfo.vue
+2
-2
No files found.
dist/index.html
View file @
86ed9486
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.a09acdf52f7dee6480e9de6246f97e25.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
https://cdn.ravenjs.com/3.26.2/vue/raven.min.js
crossorigin=
anonymous
></script><script>
Raven
.
config
(
'https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672'
).
install
();
</script><script
type=
text/javascript
src=
./static/js/manifest.b11aa5033b92674bd98e.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2a06374a31d674ca49d2.js
></script><script
type=
text/javascript
src=
./static/js/app.de606905f517085064f4.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.a09acdf52f7dee6480e9de6246f97e25.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
https://cdn.ravenjs.com/3.26.2/vue/raven.min.js
crossorigin=
anonymous
></script><script>
Raven
.
config
(
'https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672'
).
install
();
</script><script
type=
text/javascript
src=
./static/js/manifest.f042f113466b86d8812a.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2a06374a31d674ca49d2.js
></script><script
type=
text/javascript
src=
./static/js/app.de606905f517085064f4.js
></script></body></html>
\ No newline at end of file
dist/static/js/19.
1d4be27d98ef4654a893
.js
→
dist/static/js/19.
7ed28ae00b8809d6d671
.js
View file @
86ed9486
webpackJsonp
([
19
],{
"27o1"
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
r
(
"3Xzz"
),
o
=
{
name
:
"add-clerk-page"
,
components
:{
clerkInfo
:
r
(
"oncj"
).
a
,
navCrumb
:
n
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"新增店员"
,
path
:
""
}],
isAddnew
:
!
1
,
firstLevelId
:
""
,
storeType
:
""
}},
beforeMount
:
function
(){
this
.
firstLevelId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
storeType
=
this
.
$route
.
query
.
type
,
this
.
$route
.
query
.
clerkId
?(
this
.
isAddnew
=!
1
,
this
.
navpath
[
3
].
name
=
"编辑店员"
):
this
.
isAddnew
=!
0
}},
a
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap add-clerk-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"add-clerk-page"
},[
t
(
"clerk-info"
,{
attrs
:{
storeType
:
this
.
storeType
,
firstLevelId
:
this
.
firstLevelId
,
isAddnew
:
this
.
isAddnew
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
s
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"f+lP"
)},
null
,
null
);
t
.
default
=
s
.
exports
},
KPid
:
function
(
e
,
t
){},
"f+lP"
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"Ie7z"
),
o
=
r
(
"P9l9"
),
a
=
r
(
"PI0u"
),
s
=
{
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
:
""
}},
components
:{
vueSelectStore
:
n
.
a
},
data
:
function
(){
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
r
){
if
(
t
)
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
r
():
r
(
new
Error
(
"手机号格式不正确"
));
return
r
(
new
Error
(
"请输入手机号"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
}}},
methods
:{
toInput
:
Object
(
a
.
a
)(
function
(
e
){
var
t
=
e
.
target
.
value
.
match
(
/
[
A-Za-z0-9
]
/g
);
t
?(
t
=
t
.
join
(
""
),
this
.
clerkInfo
.
code
=
t
):
this
.
clerkInfo
.
code
=
""
},
500
),
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
:
""
},
addEmployee
:
function
(
e
,
t
){
var
r
=
this
,
n
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
},
a
=
r
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
a
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?
r
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
}:
r
.
$router
.
push
(
"/storeFrame"
)):
r
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$emit
(
"cancelClerkInfo"
,
!
0
)}).
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
.
$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
)}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
r
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
r
(
"el-input"
,{
attrs
:{
disabled
:
!
e
.
isAddnew
},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"el-input"
,{
nativeOn
:{
keyup
:
function
(
t
){
return
r
=
t
,
e
.
toInput
(
r
);
var
r
}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
r
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
e
){
r
(
"KPid"
)},
null
,
null
);
t
.
a
=
l
.
exports
}});
\ No newline at end of file
webpackJsonp
([
19
],{
"27o1"
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
r
(
"3Xzz"
),
o
=
{
name
:
"add-clerk-page"
,
components
:{
clerkInfo
:
r
(
"oncj"
).
a
,
navCrumb
:
n
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"新增店员"
,
path
:
""
}],
isAddnew
:
!
1
,
firstLevelId
:
""
,
storeType
:
""
}},
beforeMount
:
function
(){
this
.
firstLevelId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
storeType
=
this
.
$route
.
query
.
type
,
this
.
$route
.
query
.
clerkId
?(
this
.
isAddnew
=!
1
,
this
.
navpath
[
3
].
name
=
"编辑店员"
):
this
.
isAddnew
=!
0
}},
a
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap add-clerk-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"add-clerk-page"
},[
t
(
"clerk-info"
,{
attrs
:{
storeType
:
this
.
storeType
,
firstLevelId
:
this
.
firstLevelId
,
isAddnew
:
this
.
isAddnew
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
s
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"f+lP"
)},
null
,
null
);
t
.
default
=
s
.
exports
},
"f+lP"
:
function
(
e
,
t
){},
fbQD
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"Ie7z"
),
o
=
r
(
"P9l9"
),
a
=
r
(
"PI0u"
),
s
=
{
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
:
""
}},
components
:{
vueSelectStore
:
n
.
a
},
data
:
function
(){
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
r
){
if
(
t
)
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
r
():
r
(
new
Error
(
"手机号格式不正确"
));
return
r
(
new
Error
(
"请输入手机号"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
}}},
methods
:{
toInput
:
Object
(
a
.
a
)(
function
(
e
){
var
t
=
e
.
target
.
value
.
match
(
/
[
A-Za-z0-9
]
/g
);
t
?(
t
=
t
.
join
(
""
),
this
.
clerkInfo
.
code
=
t
):
this
.
clerkInfo
.
code
=
""
},
500
),
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
:
""
},
addEmployee
:
function
(
e
,
t
){
var
r
=
this
,
n
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
},
a
=
r
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
a
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?
r
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
}:
r
.
$router
.
push
(
"/storeFrame"
)):
r
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$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
.
$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
)}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
r
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
r
(
"el-input"
,{
attrs
:{
disabled
:
!
e
.
isAddnew
},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"el-input"
,{
nativeOn
:{
keyup
:
function
(
t
){
return
r
=
t
,
e
.
toInput
(
r
);
var
r
}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
r
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
e
){
r
(
"fbQD"
)},
null
,
null
);
t
.
a
=
l
.
exports
}});
\ No newline at end of file
dist/static/js/5.4
a4d61786f8e44839bf6
.js
→
dist/static/js/5.4
9d43c4faafde713ab7c
.js
View file @
86ed9486
webpackJsonp
([
5
],{
"+GZy"
:
function
(
e
,
t
){},
"/1A4"
:
function
(
e
,
t
){},
"/Gg9"
:
function
(
e
,
t
){},
"77K1"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"3Xzz"
),
o
=
s
(
"ATfr"
),
r
=
s
(
"P9l9"
),
n
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
s
=
this
;
s
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
a
=
""
;
if
(
t
)
a
=
e
.
storeId
;
else
{
var
o
=
[];
s
.
selectedList
.
forEach
(
function
(
e
){
o
.
push
(
e
.
storeId
)}),
a
=
o
.
join
(
","
)}
var
r
=
{
ids
:
a
};
s
.
postDel
(
r
)})},
postDel
:
function
(
e
){
var
t
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
.
$emit
(
"getStoreList"
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$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
s
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
s
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
s
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
s
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
s
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
s
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
s
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
s
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
s
(
"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
(
" "
),
s
(
"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
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
s
){
e
.
$set
(
t
.
row
,
"popVisible"
,
s
)},
expression
:
"scope.row.popVisible"
}},[
s
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
s
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
e
){
s
(
"rPot"
)},
null
,
null
).
exports
,
c
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
}},
methods
:{
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
s
=
this
,
a
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
a
=
e
),
1
==
e
.
isManager
});
var
o
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
a
.
employeeClerkId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/setManager"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
isManager
=
0
,
t
.
isManager
=
1
,
s
.
$message
.
success
({
message
:
"操作成功"
})):
s
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
s
=
this
;
s
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
a
=
{
ids
:
e
.
employeeClerkId
};
s
.
postDel
(
a
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
s
){
var
a
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
s
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
s
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
s
){
var
a
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
a
,
s
,
t
)},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
s
(
"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
s
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
s
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
s
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
s
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"div"
,[
s
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
s
(
"p"
,[
s
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
a
,
o
){
return
s
(
"li"
,{
key
:
a
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
s
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
s
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
a
.
isManager
},
on
:{
change
:
function
(
s
){
e
.
changeManager
(
t
.
row
,
a
)}}},[
e
.
_v
(
e
.
_s
(
a
.
name
))]),
e
.
_v
(
" "
),
1
==
a
.
isManager
?
s
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
a
.
phoneNumber
))]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
a
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
s
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
a
.
status
?
"is-active"
:
""
},[
s
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
s
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
a
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
a
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
a
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
s
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
s
){
e
.
cancelDelTag
(
o
,
a
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
toDelTag
(
o
,
a
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)],
1
)])}))]}}])},[
s
(
"template"
,{
slot
:
"header"
},[
s
(
"ul"
,{
staticClass
:
"diy-header"
},[
s
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
s
(
"/1A4"
)},
"data-v-27ff0d20"
,
null
).
exports
,
m
=
s
(
"qsKc"
),
p
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
r
.
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
:
"请输入品牌名称"
})}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
s
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
s
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
h
=
s
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
s
(
"fAiH"
)},
null
,
null
).
exports
,
v
=
s
(
"WSbm"
),
g
=
s
(
"oncj"
),
b
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
a
.
a
,
searchMenu
:
o
.
a
,
storeView
:
l
,
clerkView
:
u
,
employeeInfo
:
v
.
a
,
storeInfo
:
m
.
a
,
addBrand
:
h
,
clerkInfo
:
g
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
minH
:
window
.
screen
.
availHeight
-
300
-
140
+
"px"
,
windowH
:
window
.
screen
.
availHeight
-
440
+
"px"
,
tableH
:
window
.
screen
.
availHeight
-
440
-
180
+
"px"
,
boxHeight
:
window
.
screen
.
availHeight
+
"px"
,
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleList
:[],
recycleBool
:
!
1
,
firstLevelId
:
""
}},
beforeRouteUpdate
:
function
(
e
,
t
,
s
){
s
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
s
=
{
keyWord
:
e
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/searchpage"
,
s
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
perId
=
e
.
employeeClerkId
,
this
.
showEmployee
=
t
},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
){
var
t
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
storeInfo
=
e
.
data
.
result
,
t
.
showEmployee
=
"store"
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
r
.
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
.
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
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
recycleBool
?
4
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
s
){
1
==
s
.
data
.
errorCode
?(
e
.
loading
=!
1
,
4
==
t
.
status
?(
e
.
recycleList
=
s
.
data
.
result
.
list
||
[],
e
.
recycleBool
=!
1
):(
e
.
total
=
s
.
data
.
result
.
total
,
s
.
data
.
result
.
list
&&
s
.
data
.
result
.
list
.
length
&&
s
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
s
.
data
.
result
.
list
||
[],
e
.
recycleBool
=!
0
,
e
.
getStoreList
())):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
s
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
s
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
s
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
recycleListBtn
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
recycleListBtn
:
function
(){
this
.
storeStatus
=
4
,
this
.
getStoreList
()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
s
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"right-content"
,
style
:{
minHeight
:
e
.
minH
}},[
s
(
"div"
,{
staticClass
:
"right-box"
},[
s
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
s
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
s
(
"template"
,{
slot
:
"buttonBox"
},[
s
(
"div"
,{
staticClass
:
"slot-button"
},[
s
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
s
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
s
(
"clerk-info"
,{
attrs
:{
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
s
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
storeInfo
:
e
.
storeInfo
}}):
s
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
s
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
s
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"handle-area"
},[
s
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
s
(
"span"
,{
staticClass
:
"hurdle"
}),
s
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
"
\
n 编辑
\
n "
)])],
1
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"tab-div"
},[
s
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
s
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
s
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
s
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild="
+
1
*
e
.
showChildMember
+
"&type="
+
e
.
storeType
}},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleList
.
length
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,[
1
==
e
.
tableView
?[
s
(
"store-view"
,{
attrs
:{
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
s
(
"clerk-view"
,{
attrs
:{
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
s
(
"div"
,{
staticClass
:
"pagination"
},[
s
(
"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
(
" "
),
s
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
s
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
I
=
s
(
"VU/8"
)(
b
,
_
,
!
1
,
function
(
e
){
s
(
"+GZy"
)},
null
,
null
);
t
.
default
=
I
.
exports
},
ATfr
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"0xDb"
),
o
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
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
s
=
this
,
o
=
Object
(
a
.
c
)(
e
);
s
.
defaultOpen
=
o
.
defaultOpen
,
s
.
menuData
=
o
.
menuArr
,
s
.
menuData
.
length
&&
s
.
$nextTick
(
function
(){
s
.
defaultId
=
s
.
menuData
.
length
?
s
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
s
(
"div"
,{
staticClass
:
"p-0-15"
},[
s
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
s
(
"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
,
s
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
s
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
a
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
s
(
"span"
,[
e
.
_v
(
e
.
_s
(
a
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
s
(
"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
?[
s
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
a
},[
s
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleNodeClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleStoreClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
s
){
e
.
selectEmployee
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
s
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]:
e
.
_e
()}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
s
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleNodeClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
s
){
e
.
selectEmployee
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
s
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
s
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
s
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
e
){
s
(
"/Gg9"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
KPid
:
function
(
e
,
t
){},
fAiH
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"Ie7z"
),
o
=
s
(
"P9l9"
),
r
=
s
(
"PI0u"
),
n
=
{
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
:
""
}},
components
:{
vueSelectStore
:
a
.
a
},
data
:
function
(){
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
s
){
if
(
t
)
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
s
():
s
(
new
Error
(
"手机号格式不正确"
));
return
s
(
new
Error
(
"请输入手机号"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
}}},
methods
:{
toInput
:
Object
(
r
.
a
)(
function
(
e
){
var
t
=
e
.
target
.
value
.
match
(
/
[
A-Za-z0-9
]
/g
);
t
?(
t
=
t
.
join
(
""
),
this
.
clerkInfo
.
code
=
t
):
this
.
clerkInfo
.
code
=
""
},
500
),
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
:
""
},
addEmployee
:
function
(
e
,
t
){
var
s
=
this
,
a
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
},
r
=
s
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
r
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?
s
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
}:
s
.
$router
.
push
(
"/storeFrame"
)):
s
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$emit
(
"cancelClerkInfo"
,
!
0
)}).
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
.
$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
)}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
s
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
s
(
"el-input"
,{
attrs
:{
disabled
:
!
e
.
isAddnew
},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
s
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
s
(
"el-input"
,{
nativeOn
:{
keyup
:
function
(
t
){
return
s
=
t
,
e
.
toInput
(
s
);
var
s
}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"btn-box"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
e
.
isAddnew
?
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
s
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
e
){
s
(
"KPid"
)},
null
,
null
);
t
.
a
=
l
.
exports
},
qsKc
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"P9l9"
),
o
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
s
(
"Ie7z"
).
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
},
selectType
:
"group"
}},
methods
:{
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
storeInfo
.
departmentName
=
e
[
0
].
label
,
this
.
storeInfo
.
storeGroupId
=
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
(){},
deleteImage
:
function
(){},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfo
.
longitude
=
t
[
0
],
e
.
storeInfo
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
1
],
e
.
storeInfo
.
managerPhone
=
e
.
storeInfo
.
managerPhoneNumber
,
e
.
storeInfo
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
s
=
e
.
storeInfo
,
o
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
o
.
push
(
e
.
url
)}),
s
.
imageUrls
=
o
.
join
(
","
),
Object
(
a
.
a
)(
"/haoban-manage-web/store/update"
,
s
).
then
(
function
(
t
){
console
.
log
(
t
,
"eidt result"
),
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
){
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
s
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
s
.
push
({
url
:
e
})}),
this
.
imgs
=
s
,
this
.
location
=
e
.
longitude
+
","
+
e
.
latitude
}},
mounted
:
function
(){
this
.
formatStoreInfo
(
this
.
storeInfo
)},
watch
:{
$route
:
function
(
e
){
console
.
log
(
e
,
"to"
)}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"store-info"
},[
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeName"
,
t
)},
expression
:
"storeInfo.storeName"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
(
e
.
storeInfo
.
storeName
?
e
.
storeInfo
.
storeName
.
length
:
0
)
+
"/20"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
s
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfo
.
departmentName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"departmentName"
,
t
)},
expression
:
"storeInfo.departmentName"
}},[
s
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
s
(
"div"
,{
staticClass
:
"member-upload-image"
},[
s
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
5
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
)]),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"phoneNumber"
,
t
)},
expression
:
"storeInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"phoneNumber"
}},[
s
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfo
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"openTime"
,
t
)},
expression
:
"storeInfo.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
s
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfo
.
openTime
}},
model
:{
value
:
e
.
storeInfo
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"closeTime"
,
t
)},
expression
:
"storeInfo.closeTime"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
}},[
s
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfo
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeType"
,
t
)},
expression
:
"storeInfo.storeType"
}},[
s
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
}},[
s
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"postAddress"
,
t
)},
expression
:
"storeInfo.postAddress"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
}},[
s
(
"el-input"
,{
staticClass
:
"m-r-10"
,
model
:{
value
:
e
.
location
,
callback
:
function
(
t
){
e
.
location
=
t
},
expression
:
"location"
}}),
e
.
_v
(
" "
),
s
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,[
s
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
),
s
(
"i"
,{
staticClass
:
"el-icon-question"
,
staticStyle
:{
color
:
"#C0C4CC"
}})]),
e
.
_v
(
" "
),
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeCode"
,
t
)},
expression
:
"storeInfo.storeCode"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerName"
,
t
)},
expression
:
"storeInfo.managerName"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"phone"
}},[
s
(
"el-input"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
e
.
storeInfo
.
managerPhoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerPhoneNumber"
,
t
)},
expression
:
"storeInfo.managerPhoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
s
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfo
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerSex"
,
t
)},
expression
:
"storeInfo.managerSex"
}},[
s
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerCode"
,
t
)},
expression
:
"storeInfo.managerCode"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
managerCode
||
""
).
length
)
+
"/20"
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"specialService"
,
t
)},
expression
:
"storeInfo.specialService"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"personCost"
,
t
)},
expression
:
"storeInfo.personCost"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"recommendGoods"
,
t
)},
expression
:
"storeInfo.recommendGoods"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"brandDes"
,
t
)},
expression
:
"storeInfo.brandDes"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"handle-area"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
save
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
s
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfo
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
n
=
s
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
e
){
s
(
"77K1"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
rPot
:
function
(
e
,
t
){}});
\ No newline at end of file
webpackJsonp
([
5
],{
"+GZy"
:
function
(
e
,
t
){},
"/1A4"
:
function
(
e
,
t
){},
"/Gg9"
:
function
(
e
,
t
){},
"77K1"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"3Xzz"
),
o
=
s
(
"ATfr"
),
r
=
s
(
"P9l9"
),
n
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
s
=
this
;
s
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
a
=
""
;
if
(
t
)
a
=
e
.
storeId
;
else
{
var
o
=
[];
s
.
selectedList
.
forEach
(
function
(
e
){
o
.
push
(
e
.
storeId
)}),
a
=
o
.
join
(
","
)}
var
r
=
{
ids
:
a
};
s
.
postDel
(
r
)})},
postDel
:
function
(
e
){
var
t
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
.
$emit
(
"getStoreList"
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$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
s
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
s
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
s
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
s
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
s
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
s
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
s
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
s
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
s
(
"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
(
" "
),
s
(
"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
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
s
){
e
.
$set
(
t
.
row
,
"popVisible"
,
s
)},
expression
:
"scope.row.popVisible"
}},[
s
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
s
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
e
){
s
(
"rPot"
)},
null
,
null
).
exports
,
c
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
}},
methods
:{
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
s
=
this
,
a
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
a
=
e
),
1
==
e
.
isManager
});
var
o
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
a
.
employeeClerkId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/setManager"
,
o
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
isManager
=
0
,
t
.
isManager
=
1
,
s
.
$message
.
success
({
message
:
"操作成功"
})):
s
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
s
=
this
;
s
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
a
=
{
ids
:
e
.
employeeClerkId
};
s
.
postDel
(
a
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
s
){
var
a
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
s
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
s
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
s
){
var
a
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
a
,
s
,
t
)},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
s
(
"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
s
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
s
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
s
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
s
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"div"
,[
s
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
s
(
"p"
,[
s
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
a
,
o
){
return
s
(
"li"
,{
key
:
a
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
s
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
s
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
a
.
isManager
},
on
:{
change
:
function
(
s
){
e
.
changeManager
(
t
.
row
,
a
)}}},[
e
.
_v
(
e
.
_s
(
a
.
name
))]),
e
.
_v
(
" "
),
1
==
a
.
isManager
?
s
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
a
.
phoneNumber
))]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
a
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
s
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
a
.
status
?
"is-active"
:
""
},[
s
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
s
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
a
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
a
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
a
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
s
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
s
){
e
.
cancelDelTag
(
o
,
a
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
toDelTag
(
o
,
a
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)],
1
)])}))]}}])},[
s
(
"template"
,{
slot
:
"header"
},[
s
(
"ul"
,{
staticClass
:
"diy-header"
},[
s
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
s
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
s
(
"/1A4"
)},
"data-v-27ff0d20"
,
null
).
exports
,
m
=
s
(
"qsKc"
),
p
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
r
.
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
:
"请输入品牌名称"
})}}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,[
s
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
s
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
s
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
h
=
s
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
s
(
"fAiH"
)},
null
,
null
).
exports
,
v
=
s
(
"WSbm"
),
g
=
s
(
"oncj"
),
b
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
a
.
a
,
searchMenu
:
o
.
a
,
storeView
:
l
,
clerkView
:
u
,
employeeInfo
:
v
.
a
,
storeInfo
:
m
.
a
,
addBrand
:
h
,
clerkInfo
:
g
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
minH
:
window
.
screen
.
availHeight
-
300
-
140
+
"px"
,
windowH
:
window
.
screen
.
availHeight
-
440
+
"px"
,
tableH
:
window
.
screen
.
availHeight
-
440
-
180
+
"px"
,
boxHeight
:
window
.
screen
.
availHeight
+
"px"
,
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleList
:[],
recycleBool
:
!
1
,
firstLevelId
:
""
}},
beforeRouteUpdate
:
function
(
e
,
t
,
s
){
s
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
s
=
{
keyWord
:
e
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/searchpage"
,
s
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
this
.
perId
=
e
.
employeeClerkId
,
this
.
showEmployee
=
t
},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
){
var
t
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
storeInfo
=
e
.
data
.
result
,
t
.
showEmployee
=
"store"
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
r
.
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
.
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
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
recycleBool
?
4
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
r
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
s
){
1
==
s
.
data
.
errorCode
?(
e
.
loading
=!
1
,
4
==
t
.
status
?(
e
.
recycleList
=
s
.
data
.
result
.
list
||
[],
e
.
recycleBool
=!
1
):(
e
.
total
=
s
.
data
.
result
.
total
,
s
.
data
.
result
.
list
&&
s
.
data
.
result
.
list
.
length
&&
s
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
s
.
data
.
result
.
list
||
[],
e
.
recycleBool
=!
0
,
e
.
getStoreList
())):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
s
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
s
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
s
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
recycleListBtn
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
recycleListBtn
:
function
(){
this
.
storeStatus
=
4
,
this
.
getStoreList
()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
s
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"right-content"
,
style
:{
minHeight
:
e
.
minH
}},[
s
(
"div"
,{
staticClass
:
"right-box"
},[
s
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
s
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
s
(
"template"
,{
slot
:
"buttonBox"
},[
s
(
"div"
,{
staticClass
:
"slot-button"
},[
s
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
s
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
s
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
s
(
"clerk-info"
,{
attrs
:{
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
s
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
storeInfo
:
e
.
storeInfo
}}):
s
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
s
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
s
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"handle-area"
},[
s
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
s
(
"span"
,{
staticClass
:
"hurdle"
}),
s
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
attrs
:{
disabled
:
1
!=
e
.
groupInfo
.
hasPression
},
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
"
\
n 编辑
\
n "
)])],
1
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"tab-div"
},[
s
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
s
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
s
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
s
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild="
+
1
*
e
.
showChildMember
+
"&type="
+
e
.
storeType
}},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleList
.
length
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,[
1
==
e
.
tableView
?[
s
(
"store-view"
,{
attrs
:{
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
s
(
"clerk-view"
,{
attrs
:{
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
s
(
"div"
,{
staticClass
:
"pagination"
},[
s
(
"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
(
" "
),
s
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
s
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
I
=
s
(
"VU/8"
)(
b
,
_
,
!
1
,
function
(
e
){
s
(
"+GZy"
)},
null
,
null
);
t
.
default
=
I
.
exports
},
ATfr
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"0xDb"
),
o
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
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
s
=
this
,
o
=
Object
(
a
.
c
)(
e
);
s
.
defaultOpen
=
o
.
defaultOpen
,
s
.
menuData
=
o
.
menuArr
,
s
.
menuData
.
length
&&
s
.
$nextTick
(
function
(){
s
.
defaultId
=
s
.
menuData
.
length
?
s
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
s
(
"div"
,{
staticClass
:
"p-0-15"
},[
s
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
s
(
"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
,
s
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
s
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
a
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
s
(
"span"
,[
e
.
_v
(
e
.
_s
(
a
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
s
(
"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
?[
s
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
a
},[
s
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleNodeClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleStoreClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
s
){
e
.
selectEmployee
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
s
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]:
e
.
_e
()}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
s
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
s
){
e
.
handleNodeClick
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
s
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
a
){
return
s
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
s
){
e
.
selectEmployee
(
t
)}}},[
s
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
s
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
s
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
s
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
e
){
s
(
"/Gg9"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
fAiH
:
function
(
e
,
t
){},
fbQD
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"Ie7z"
),
o
=
s
(
"P9l9"
),
r
=
s
(
"PI0u"
),
n
=
{
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
:
""
}},
components
:{
vueSelectStore
:
a
.
a
},
data
:
function
(){
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
s
){
if
(
t
)
return
/^1
[
34578
]\d{9}
$/
.
test
(
t
)?
s
():
s
(
new
Error
(
"手机号格式不正确"
));
return
s
(
new
Error
(
"请输入手机号"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
}}},
methods
:{
toInput
:
Object
(
r
.
a
)(
function
(
e
){
var
t
=
e
.
target
.
value
.
match
(
/
[
A-Za-z0-9
]
/g
);
t
?(
t
=
t
.
join
(
""
),
this
.
clerkInfo
.
code
=
t
):
this
.
clerkInfo
.
code
=
""
},
500
),
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
:
""
},
addEmployee
:
function
(
e
,
t
){
var
s
=
this
,
a
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
},
r
=
s
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
r
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?
s
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
}:
s
.
$router
.
push
(
"/storeFrame"
)):
s
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$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
.
$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
)}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
s
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
s
(
"el-input"
,{
attrs
:{
disabled
:
!
e
.
isAddnew
},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
s
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
s
(
"el-input"
,{
nativeOn
:{
keyup
:
function
(
t
){
return
s
=
t
,
e
.
toInput
(
s
);
var
s
}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"btn-box"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
e
.
isAddnew
?
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
s
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
"store"
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
e
){
s
(
"fbQD"
)},
null
,
null
);
t
.
a
=
l
.
exports
},
qsKc
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"P9l9"
),
o
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
s
(
"Ie7z"
).
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
data
:
function
(){
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
},
selectType
:
"group"
}},
methods
:{
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
storeInfo
.
departmentName
=
e
[
0
].
label
,
this
.
storeInfo
.
storeGroupId
=
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
(){},
deleteImage
:
function
(){},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfo
.
longitude
=
t
[
0
],
e
.
storeInfo
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
1
],
e
.
storeInfo
.
managerPhone
=
e
.
storeInfo
.
managerPhoneNumber
,
e
.
storeInfo
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
s
=
e
.
storeInfo
,
o
=
[];
e
.
imgs
.
forEach
(
function
(
e
){
o
.
push
(
e
.
url
)}),
s
.
imageUrls
=
o
.
join
(
","
),
Object
(
a
.
a
)(
"/haoban-manage-web/store/update"
,
s
).
then
(
function
(
t
){
console
.
log
(
t
,
"eidt result"
),
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
){
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
s
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
s
.
push
({
url
:
e
})}),
this
.
imgs
=
s
,
this
.
location
=
e
.
longitude
+
","
+
e
.
latitude
}},
mounted
:
function
(){
this
.
formatStoreInfo
(
this
.
storeInfo
)},
watch
:{
$route
:
function
(
e
){
console
.
log
(
e
,
"to"
)}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"store-info"
},[
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeName"
,
t
)},
expression
:
"storeInfo.storeName"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
(
e
.
storeInfo
.
storeName
?
e
.
storeInfo
.
storeName
.
length
:
0
)
+
"/20"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
s
(
"el-input"
,{
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfo
.
departmentName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"departmentName"
,
t
)},
expression
:
"storeInfo.departmentName"
}},[
s
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
s
(
"div"
,{
staticClass
:
"member-upload-image"
},[
s
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
imgs
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
5
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
)]),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"phoneNumber"
,
t
)},
expression
:
"storeInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"phoneNumber"
}},[
s
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfo
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"openTime"
,
t
)},
expression
:
"storeInfo.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
s
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfo
.
openTime
}},
model
:{
value
:
e
.
storeInfo
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"closeTime"
,
t
)},
expression
:
"storeInfo.closeTime"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
}},[
s
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfo
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeType"
,
t
)},
expression
:
"storeInfo.storeType"
}},[
s
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
}},[
s
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"postAddress"
,
t
)},
expression
:
"storeInfo.postAddress"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
}},[
s
(
"el-input"
,{
staticClass
:
"m-r-10"
,
model
:{
value
:
e
.
location
,
callback
:
function
(
t
){
e
.
location
=
t
},
expression
:
"location"
}}),
e
.
_v
(
" "
),
s
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,[
s
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
),
s
(
"i"
,{
staticClass
:
"el-icon-question"
,
staticStyle
:{
color
:
"#C0C4CC"
}})]),
e
.
_v
(
" "
),
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"storeCode"
,
t
)},
expression
:
"storeInfo.storeCode"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"name"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerName"
,
t
)},
expression
:
"storeInfo.managerName"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"phone"
}},[
s
(
"el-input"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
e
.
storeInfo
.
managerPhoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerPhoneNumber"
,
t
)},
expression
:
"storeInfo.managerPhoneNumber"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
s
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfo
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerSex"
,
t
)},
expression
:
"storeInfo.managerSex"
}},[
s
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"managerCode"
,
t
)},
expression
:
"storeInfo.managerCode"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
managerCode
||
""
).
length
)
+
"/20"
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"info-cell"
},[
s
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"specialService"
,
t
)},
expression
:
"storeInfo.specialService"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
storeInfo
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"personCost"
,
t
)},
expression
:
"storeInfo.personCost"
}},[
s
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"recommendGoods"
,
t
)},
expression
:
"storeInfo.recommendGoods"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfo
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfo
,
"brandDes"
,
t
)},
expression
:
"storeInfo.brandDes"
}}),
e
.
_v
(
" "
),
s
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfo
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"handle-area"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
save
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
s
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfo
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
n
=
s
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
e
){
s
(
"77K1"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
rPot
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
b11aa5033b92674bd98e
.js
→
dist/static/js/manifest.
f042f113466b86d8812a
.js
View file @
86ed9486
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
c
[
t
]
&&
u
.
push
(
c
[
t
][
0
]),
c
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
f
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
c
=
{
73
:
0
};
function
d
(
a
){
if
(
f
[
a
])
return
f
[
a
].
exports
;
var
c
=
f
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
c
.
exports
,
c
,
c
.
exports
,
d
),
c
.
l
=!
0
,
c
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
c
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
f
=
new
Promise
(
function
(
f
,
d
){
a
=
c
[
e
]
=
[
f
,
d
]});
a
[
2
]
=
f
;
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
:
"a445e74b3900f3876c72"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"c8863e7a9d4b284238db"
,
3
:
"882bbad4c581b9592e94"
,
4
:
"61ce87adaae2220ab03f"
,
5
:
"4a4d61786f8e44839bf6"
,
6
:
"00b931389a74250125a3"
,
7
:
"50747c5f602fa39713ee"
,
8
:
"ccfd1bb81626da46f432"
,
9
:
"b916c8d12141617e4db2"
,
10
:
"8032088f1d097c923b52"
,
11
:
"48cce40bd1119cfef79d"
,
12
:
"8a1633b353b37d5bfcd2"
,
13
:
"50f2f7291e012aa2feab"
,
14
:
"94920536d81601122060"
,
15
:
"35d29be8ae21328d7a1a"
,
16
:
"7016f834cadae9b57028"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"d07d6af2aa0d5ee86261"
,
19
:
"1d4be27d98ef4654a893"
,
20
:
"8f48037229efe39f46f1"
,
21
:
"2103d8428d4f707fa369"
,
22
:
"dec9447a8c45f2a2c7bb"
,
23
:
"bd9202e3991ee39668e6"
,
24
:
"54f2906c51709913d672"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"1649432938888d71b3c9"
,
27
:
"67137144c98b28cc5a30"
,
28
:
"140ad99228544036c969"
,
29
:
"30037b5674e7675b1da7"
,
30
:
"fa0e0e20a9883b94be73"
,
31
:
"a8e20732b0b0f62f5c5a"
,
32
:
"70afe6349f18d59979c9"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"4977e6b9167f796404b9"
,
35
:
"718d90637b7e54754f31"
,
36
:
"1a465f5679ee0e71dfa6"
,
37
:
"888b85a3993974fb43af"
,
38
:
"906dd52db56ce245bd63"
,
39
:
"9b6dad740714bbea21b8"
,
40
:
"5e1e9bd1ea4f73d73124"
,
41
:
"f650191e4adbbe354c40"
,
42
:
"1f852a650fdbf7a7eaad"
,
43
:
"a147b7c79aa18ed9a99e"
,
44
:
"dec3da02237fe589835d"
,
45
:
"59e18b2a7837adcacf03"
,
46
:
"d79eb9d8085d7ba704a4"
,
47
:
"6c6eccf53f8373fee856"
,
48
:
"6fc7a09d73cb37b4ea8d"
,
49
:
"a3b12f9c57387195f4a7"
,
50
:
"f945b3c39e8aede6b070"
,
51
:
"1fb22e0e70218f91d029"
,
52
:
"ec3446ccbe126ad8228d"
,
53
:
"6d17da8a725f667f9138"
,
54
:
"d246f8dfaeac3f9c1044"
,
55
:
"e59741e60bac30a67736"
,
56
:
"24585d1bb0ebbe860416"
,
57
:
"e265d12ce5a0a24c2064"
,
58
:
"78da3efa372379321cfe"
,
59
:
"be8f5205cfd8e904c6f2"
,
60
:
"b6a35d8ea1b736261422"
,
61
:
"ccd9812bb3bb7bdf57e7"
,
62
:
"6b6bfcaa666e2c35399e"
,
63
:
"b05b4ec28d2829c54f65"
,
64
:
"0be98c69b2be684d451f"
,
65
:
"e069a6e1df52acf3f14f"
,
66
:
"9f1afb5a13b54ea92a02"
,
67
:
"d674abd10a01e3c004c8"
,
68
:
"2189902bf2848c91608c"
,
69
:
"4087b90ee08d0100519f"
,
72
:
"e19aae5a21dcfad3391e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
c
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
f
},
d
.
m
=
e
,
d
.
c
=
f
,
d
.
d
=
function
(
e
,
a
,
f
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
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
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
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
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
d
=
{
73
:
0
};
function
f
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
d
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
a
=
d
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
f
){
a
=
d
[
e
]
=
[
c
,
f
]});
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
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a445e74b3900f3876c72"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"c8863e7a9d4b284238db"
,
3
:
"882bbad4c581b9592e94"
,
4
:
"61ce87adaae2220ab03f"
,
5
:
"49d43c4faafde713ab7c"
,
6
:
"00b931389a74250125a3"
,
7
:
"50747c5f602fa39713ee"
,
8
:
"ccfd1bb81626da46f432"
,
9
:
"b916c8d12141617e4db2"
,
10
:
"8032088f1d097c923b52"
,
11
:
"48cce40bd1119cfef79d"
,
12
:
"8a1633b353b37d5bfcd2"
,
13
:
"50f2f7291e012aa2feab"
,
14
:
"94920536d81601122060"
,
15
:
"35d29be8ae21328d7a1a"
,
16
:
"7016f834cadae9b57028"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"d07d6af2aa0d5ee86261"
,
19
:
"7ed28ae00b8809d6d671"
,
20
:
"8f48037229efe39f46f1"
,
21
:
"2103d8428d4f707fa369"
,
22
:
"dec9447a8c45f2a2c7bb"
,
23
:
"bd9202e3991ee39668e6"
,
24
:
"54f2906c51709913d672"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"1649432938888d71b3c9"
,
27
:
"67137144c98b28cc5a30"
,
28
:
"140ad99228544036c969"
,
29
:
"30037b5674e7675b1da7"
,
30
:
"fa0e0e20a9883b94be73"
,
31
:
"a8e20732b0b0f62f5c5a"
,
32
:
"70afe6349f18d59979c9"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"4977e6b9167f796404b9"
,
35
:
"718d90637b7e54754f31"
,
36
:
"1a465f5679ee0e71dfa6"
,
37
:
"888b85a3993974fb43af"
,
38
:
"906dd52db56ce245bd63"
,
39
:
"9b6dad740714bbea21b8"
,
40
:
"5e1e9bd1ea4f73d73124"
,
41
:
"f650191e4adbbe354c40"
,
42
:
"1f852a650fdbf7a7eaad"
,
43
:
"a147b7c79aa18ed9a99e"
,
44
:
"dec3da02237fe589835d"
,
45
:
"59e18b2a7837adcacf03"
,
46
:
"d79eb9d8085d7ba704a4"
,
47
:
"6c6eccf53f8373fee856"
,
48
:
"6fc7a09d73cb37b4ea8d"
,
49
:
"a3b12f9c57387195f4a7"
,
50
:
"f945b3c39e8aede6b070"
,
51
:
"1fb22e0e70218f91d029"
,
52
:
"ec3446ccbe126ad8228d"
,
53
:
"6d17da8a725f667f9138"
,
54
:
"d246f8dfaeac3f9c1044"
,
55
:
"e59741e60bac30a67736"
,
56
:
"24585d1bb0ebbe860416"
,
57
:
"e265d12ce5a0a24c2064"
,
58
:
"78da3efa372379321cfe"
,
59
:
"be8f5205cfd8e904c6f2"
,
60
:
"b6a35d8ea1b736261422"
,
61
:
"ccd9812bb3bb7bdf57e7"
,
62
:
"6b6bfcaa666e2c35399e"
,
63
:
"b05b4ec28d2829c54f65"
,
64
:
"0be98c69b2be684d451f"
,
65
:
"e069a6e1df52acf3f14f"
,
66
:
"9f1afb5a13b54ea92a02"
,
67
:
"d674abd10a01e3c004c8"
,
68
:
"2189902bf2848c91608c"
,
69
:
"4087b90ee08d0100519f"
,
72
:
"e19aae5a21dcfad3391e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
d
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
f
.
m
=
e
,
f
.
c
=
c
,
f
.
d
=
function
(
e
,
a
,
c
){
f
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
f
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
a
,
"a"
,
a
),
a
},
f
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/contacts/storeFrame/clerkInfo.vue
View file @
86ed9486
...
...
@@ -175,8 +175,8 @@ export default {
type
:
'warning'
})
.
then
(()
=>
{
// window.history
.go(-1);
this
.
$emit
(
'cancelClerkInfo'
,
true
);
this
.
$router
.
go
(
-
1
);
//
this.$emit('cancelClerkInfo', true);
})
/* eslint-disable */
.
catch
(
e
=>
{
...
...
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