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
d3b9bec7
Commit
d3b9bec7
authored
Jul 02, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改门店架构选择
parent
88bf0c40
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
99 additions
and
47 deletions
+99
-47
index.html
dist/index.html
+2
-2
0.52c14bd90f98515af27d.js
dist/static/js/0.52c14bd90f98515af27d.js
+0
-0
20.663ea5d2777417161410.js
dist/static/js/20.663ea5d2777417161410.js
+0
-2
20.d5bc42e9568015f2689e.js
dist/static/js/20.d5bc42e9568015f2689e.js
+2
-2
21.93b01771494d9916a557.js
dist/static/js/21.93b01771494d9916a557.js
+2
-0
6.f23f1b5d7188825408f6.js
dist/static/js/6.f23f1b5d7188825408f6.js
+2
-2
app.ae32de3d5f895c010a31.js
dist/static/js/app.ae32de3d5f895c010a31.js
+2
-2
manifest.0700ec8d324c899e45a5.js
dist/static/js/manifest.0700ec8d324c899e45a5.js
+2
-2
vueSelectStore.vue
src/components/common/vueSelectStore.vue
+87
-33
clerkInfo.vue
src/components/contacts/storeFrame/clerkInfo.vue
+0
-2
No files found.
dist/index.html
View file @
d3b9bec7
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.331635e1d8d4bf397026093390c55587.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.43077fb326b227d79690.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ccdd3a2984b37616bc62.js
></script><script
type=
text/javascript
src=
./static/js/app.d0684246c06d34757221.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.331635e1d8d4bf397026093390c55587.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.0700ec8d324c899e45a5.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ccdd3a2984b37616bc62.js
></script><script
type=
text/javascript
src=
./static/js/app.ae32de3d5f895c010a31.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/0.
4f8a57d44a06171c53f3
.js
→
dist/static/js/0.
52c14bd90f98515af27d
.js
View file @
d3b9bec7
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/20.663ea5d2777417161410.js
deleted
100644 → 0
View file @
88bf0c40
webpackJsonp
([
20
],{
"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
:
""
,
gicFlag
:
!
(
!
this
.
$route
.
query
.
gicFlag
||
"false"
==
this
.
$route
.
query
.
gicFlag
)}},
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
,
gicFlag
:
this
.
gicFlag
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
s
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"Tb0k"
)},
null
,
null
);
t
.
default
=
s
.
exports
},
GAtE
:
function
(
e
,
t
){},
Tb0k
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"Ie7z"
),
o
=
r
(
"P9l9"
),
a
=
r
(
"XDyb"
),
s
=
r
(
"T+u5"
),
i
=
r
.
n
(
s
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
n
.
a
,
countryMobile
:
a
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
!
r
)
return
n
(
new
Error
(
"请输入手机号"
));
var
o
=
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
r
);
o
.
isValid
()
&&
o
.
isMobile
()?
n
():
n
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
console
.
log
(
e
),
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
console
.
log
(
this
.
clerkInfo
),
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
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
||
""
,
nationcode
:
e
.
nationcode
},
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
:
""
,
nationcode
:
"86"
},
r
.
defaultList
=
[],
r
.
$refs
.
clerk_info
.
resetFields
()):
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
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
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"
,{
staticClass
:
"clerk-info-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
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
r
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
r
(
"GAtE"
)},
null
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
dist/static/js/2
1.b0e7348ff74371924c3b
.js
→
dist/static/js/2
0.d5bc42e9568015f2689e
.js
View file @
d3b9bec7
webpackJsonp
([
21
],{
SxZy
:
function
(
e
,
t
){},
Xwfy
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"woOf"
),
s
=
r
.
n
(
a
),
l
=
r
(
"mvHQ"
),
i
=
r
.
n
(
l
),
o
=
r
(
"gBtx"
),
n
=
r
.
n
(
o
),
c
=
r
(
"3Xzz"
),
d
=
r
(
"fZjL"
),
u
=
r
.
n
(
d
),
h
=
{
name
:
"set-permiss-data"
,
components
:{},
props
:{
value
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
title
:{
type
:
String
}},
data
:
function
(){
return
{
defaultSelection
:
this
.
value
||
[]}},
methods
:{
delCurrent
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
updateList
:
function
(
e
){
this
.
$emit
(
"input"
,
e
)},
handleSelectedList
:
function
(
e
){},
showSelector
:
function
(){
this
.
$emit
(
"showSelect"
)}},
watch
:{
value
:
function
(
e
,
t
){
this
.
defaultSelection
=
e
}},
mounted
:
function
(){
this
.
defaultSelection
=
this
.
value
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"select-area"
},[
r
(
"div"
,{
staticClass
:
"setting-name"
,
staticStyle
:{
"font-size"
:
"14px"
,
color
:
"#606266"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
title
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
a
){
return
[
1
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"item person-item"
},[
r
(
"div"
,{
class
:[
"img-wrap"
,
"flex"
,
"flex-align-center"
,
"flex-pack-center"
,
t
.
headPic
?
""
:
"img-wrap-bg"
]},[
t
.
headPic
?
r
(
"img"
,{
attrs
:{
src
:
t
.
headPic
,
alt
:
"headPic"
}}):
r
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
}),
e
.
_v
(
" "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
label
))])]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
type
||
3
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
||
t
.
label
)
+
"
\
n "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"item J_add-btn flex flex-align-center flex-pack-center"
,
on
:{
click
:
e
.
showSelector
}},[
r
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])},
staticRenderFns
:[]};
var
p
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
e
){
r
(
"gvjp"
)},
null
,
null
).
exports
,
f
=
r
(
"c4uw"
),
v
=
r
(
"Ie7z"
),
g
=
r
(
"3E4D"
),
b
=
r
(
"Ch4/"
),
S
=
r
(
"PI0u"
),
C
=
r
(
"P9l9"
),
k
=
{
name
:
""
,
props
:{
authData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
permType
:{
type
:[
Number
,
String
]}},
data
:
function
(){
return
{
projectName
:
""
,
ruleForm
:{
radio
:
1
,
visibleAll
:[],
visibleStoreAll
:[]},
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
treeData
:{},
defaultSelection
:[],
onlyPerson
:
!
1
,
changed
:
""
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
beforeMount
:
function
(){
var
e
=
window
.
location
.
origin
;
"-1"
!=
e
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
e
},
methods
:{
changeRadio
:
function
(
e
){
this
.
ruleForm
.
visibleAll
=
[],
this
.
ruleForm
.
visibleStoreAll
=
[]},
submitForm
:
Object
(
S
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
r
=
{
allowCherkIds
:[],
allowDepartIds
:[],
allowStoreIds
:[],
brandId
:
t
.
ruleForm
.
brandId
,
groupId
:
t
.
ruleForm
.
groupId
,
radio
:
t
.
ruleForm
.
radio
};
3
!=
t
.
ruleForm
.
radio
||
t
.
ruleForm
.
visibleAll
.
length
||
t
.
ruleForm
.
visibleStoreAll
.
length
?(
3
==
t
.
ruleForm
.
radio
&&
(
t
.
ruleForm
.
visibleAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)
&&
r
.
allowDepartIds
.
push
(
e
.
id
)}),
t
.
ruleForm
.
visibleStoreAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
e
.
hasOwnProperty
(
"storeId"
)?
r
.
allowStoreIds
.
push
(
e
.
storeId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)?
r
.
allowDepartIds
.
push
(
e
.
id
):
3
===
n
()(
e
.
type
)
&&
r
.
allowStoreIds
.
push
(
e
.
id
)})),
t
.
setStoreAuth
(
r
,
t
.
permType
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
})})},
400
),
setStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
type
:
t
,
brandId
:
e
.
brandId
,
groupId
:
e
.
groupId
,
storeEmployeeAuth
:
e
.
radio
,
storeManagerAuth
:
e
.
radio
,
allowCherkIds
:
e
.
allowCherkIds
.
join
(
","
),
allowDepartIds
:
e
.
allowDepartIds
.
join
(
","
),
allowStoreIds
:
e
.
allowStoreIds
.
join
(
","
)};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
a
).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
==
r
.
errorCode
)
return
2
==
t
&&
g
.
a
.
showmsg
(
"保存成功"
,
"success"
),
!
1
;
b
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleAuthData
:
function
(
e
){
var
t
=
this
;
u
()(
e
).
length
&&
(
t
.
ruleForm
.
brandId
=
e
.
brandId
,
t
.
ruleForm
.
groupId
=
e
.
groupId
,
1
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeEmployeeAuth
||
1
,
e
.
employeeAuthList
.
length
&&
e
.
employeeAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
employeeAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
),
2
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeManagerAuth
||
1
,
e
.
managerAuthList
.
length
&&
e
.
managerAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
managerAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
))},
showSelect
:
function
(
e
){
if
(
"store"
===
e
)
return
this
.
defaultStoreList
=
this
.
ruleForm
.
visibleStoreAll
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
});
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
},
this
.
defaultSelection
=
this
.
ruleForm
.
visibleAll
},
handleSelectedList
:
function
(
e
){
this
.
defaultSelection
=
e
,
this
.
ruleForm
.
visibleAll
=
e
},
handleSelectedStoreList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
ruleForm
.
visibleStoreAll
=
e
},
getDepartData
:
function
(
e
){
var
t
=
this
;
Object
(
C
.
e
)(
"/haoban-manage-web/dept/deptListForCompany"
,{}).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
!=
r
.
errorCode
)
b
.
a
.
errorMsg
(
r
);
else
if
(
r
.
result
){
var
a
=
[],
s
=
[];
1
==
e
.
data
.
errorCode
&&
(
a
=
e
.
data
.
result
.
departmentList
||
[],
s
=
e
.
data
.
result
.
searchList
||
[]),
t
.
treeData
=
{
treeData
:
a
,
personData
:
s
},
t
.
$forceUpdate
()}
else
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
authData
:
function
(
e
,
t
){
this
.
handleAuthData
(
e
)}},
mounted
:
function
(){
this
.
handleAuthData
(
this
.
authData
),
this
.
getDepartData
()},
components
:{
setPermissData
:
p
,
vueSelectEmployee
:
f
.
a
,
vueSelectStore
:
v
.
a
}},
w
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"permiss-wrap"
},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
"label-width"
:
"110px"
,
model
:
e
.
ruleForm
}},[
r
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeRadio
},
model
:{
value
:
e
.
ruleForm
.
radio
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"radio"
,
t
)},
expression
:
"ruleForm.radio"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
permType
?
"店员可见权限"
:
"店长可见权限"
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"可见所有品牌门店架构和行政架构"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"门店仅可见自己门店"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"自定义可见权限"
)])],
1
),
e
.
_v
(
" "
),
3
==
e
.
ruleForm
.
radio
?
r
(
"div"
,{
staticClass
:
"permiss-child-cell"
},[
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许行政架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"depart"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleAll"
,
t
)},
expression
:
"ruleForm.visibleAll"
}}),
e
.
_v
(
" "
),
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许门店架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"store"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleStoreAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleStoreAll"
,
t
)},
expression
:
"ruleForm.visibleStoreAll"
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-employee"
,{
attrs
:{
defaultSelection
:
e
.
defaultSelection
,
treeSet
:
e
.
treeSet
,
onlyPerson
:
e
.
onlyPerson
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedStoreList
}})],
1
)},
staticRenderFns
:[]};
var
y
=
r
(
"VU/8"
)(
k
,
w
,
!
1
,
function
(
e
){
r
(
"SxZy"
)},
"data-v-194844d0"
,
null
).
exports
,
A
=
{
name
:
"storePermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"门店权限设置"
,
path
:
""
}],
activeName
:
""
,
brandList
:[],
switchList
:{
addName
:
"新增门店成员"
,
addStoreClerkCheck
:
!
1
,
delName
:
"删除门店成员"
,
deleteStoreClerkCheck
:
!
1
,
modName
:
"门店信息变更"
,
storeInformationChangeCheck
:
!
1
}}},
computed
:{},
methods
:{
toStoreAdd
:
function
(){
this
.
$router
.
push
(
"/storeFrame"
)},
handleClick
:
function
(
e
,
t
){
this
.
getStoreAuth
(
e
.
name
,
n
()(
e
.
index
)),
this
.
activeName
=
e
.
name
},
saveSwitch
:
Object
(
S
.
a
)(
function
(){
var
e
=
JSON
.
parse
(
i
()(
this
.
switchList
));
e
.
addStoreClerkCheck
=
1
==
e
.
addStoreClerkCheck
?
1
:
0
,
e
.
deleteStoreClerkCheck
=
1
==
e
.
deleteStoreClerkCheck
?
1
:
0
,
e
.
storeInformationChangeCheck
=
1
==
e
.
storeInformationChangeCheck
?
1
:
0
,
this
.
setStoreAuth
(
e
)},
600
),
saveAll
:
Object
(
S
.
a
)(
function
(){
var
e
=
this
;
if
(
3
==
e
.
$refs
.
clerkPermiss
.
ruleForm
.
radio
&&!
e
.
$refs
.
clerkPermiss
.
ruleForm
.
visibleAll
.
length
&&!
e
.
$refs
.
clerkPermiss
.
ruleForm
.
visibleStoreAll
.
length
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
}),
!
1
;
if
(
3
==
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
radio
&&!
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
visibleAll
.
length
&&!
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
visibleStoreAll
.
length
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
}),
!
1
;
e
.
$refs
.
clerkPermiss
.
submitForm
(
"ruleForm"
);
var
t
=
setTimeout
(
function
(){
e
.
$refs
.
clerkManagePermiss
.
submitForm
(
"ruleForm"
),
clearTimeout
(
t
)},
500
)},
500
),
setStoreAuth
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
e
.
brandId
,
groupId
:
t
.
activeName
,
addStoreClerkCheck
:
e
.
addStoreClerkCheck
,
deleteStoreClerkCheck
:
e
.
deleteStoreClerkCheck
,
storeInformationChangeCheck
:
e
.
storeInformationChangeCheck
};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
b
.
a
.
errorMsg
(
t
):
g
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
groupId
:
e
};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/storeAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
!=
t
.
errorCode
)
b
.
a
.
errorMsg
(
t
);
else
if
(
t
.
result
){
r
.
brandList
.
clerkData
=
t
.
result
,
r
.
brandList
.
managerData
=
t
.
result
;
var
a
=
t
.
result
.
brandDTO
;
a
.
addStoreClerkCheck
=
1
==
a
.
addStoreClerkCheck
,
a
.
deleteStoreClerkCheck
=
1
==
a
.
deleteStoreClerkCheck
,
a
.
storeInformationChangeCheck
=
1
==
a
.
storeInformationChangeCheck
,
r
.
switchList
=
s
()(
r
.
switchList
,
a
),
r
.
$forceUpdate
()}}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
C
.
e
)(
"/haoban-manage-web/brand/list"
,{}).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
b
.
a
.
errorMsg
(
r
):
r
.
result
&&
r
.
result
.
length
&&
(
e
.
brandList
=
r
.
result
,
e
.
activeName
=
r
.
result
[
0
].
groupId
,
e
.
getStoreAuth
(
r
.
result
[
0
].
groupId
,
0
))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getBrandData
()},
components
:{
navCrumb
:
c
.
a
,
setPermiss
:
y
}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
r
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
background
:
"unset"
,
padding
:
"0"
}},[
r
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
e
.
_l
(
e
.
brandList
,
function
(
e
,
t
){
return
[
r
(
"el-tab-pane"
,{
key
:
"name"
+
t
,
attrs
:{
label
:
e
.
name
,
name
:
e
.
groupId
}})]})],
2
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-title font-w-500"
},[
e
.
_v
(
"
\
n 门店成员通讯录可见权限
\
n "
)]),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"bg-fff permiss-contain"
},[
r
(
"set-permiss"
,{
ref
:
"clerkPermiss"
,
attrs
:{
permType
:
1
,
authData
:
e
.
brandList
.
clerkData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"b-l"
}),
e
.
_v
(
" "
),
r
(
"set-permiss"
,{
ref
:
"clerkManagePermiss"
,
attrs
:{
permType
:
2
,
authData
:
e
.
brandList
.
managerData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-110 m-t-15"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveAll
}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"storePermission-wrap-switch m-t-24"
},[
r
(
"div"
,{
staticClass
:
"storePermission-switch-title font-w-500"
},[
e
.
_v
(
"
\
n 门店信息变更是否需要审核
\
n "
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-switch-body"
},[
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
addName
},
model
:{
value
:
e
.
switchList
.
addStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"addStoreClerkCheck"
,
t
)},
expression
:
"switchList.addStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
delName
},
model
:{
value
:
e
.
switchList
.
deleteStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"deleteStoreClerkCheck"
,
t
)},
expression
:
"switchList.deleteStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
modName
},
model
:{
value
:
e
.
switchList
.
storeInformationChangeCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"storeInformationChangeCheck"
,
t
)},
expression
:
"switchList.storeInformationChangeCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-94"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveSwitch
}},[
e
.
_v
(
"保 存"
)])],
1
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
e
.
_e
():
r
(
"div"
,{
staticClass
:
"no-brand-content p-20 bg-fff text-center p-t-185"
},[
r
(
"p"
,{
staticClass
:
"font-14 color-909399 m-b-10"
},[
e
.
_v
(
"请创建品牌后进行门店权限设置"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toStoreAdd
}},[
e
.
_v
(
"马上新建品牌"
)])],
1
)],
1
)]),
e
.
_v
(
" "
),
r
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
F
=
r
(
"VU/8"
)(
A
,
I
,
!
1
,
function
(
e
){
r
(
"y3Ol"
)},
"data-v-5775d876"
,
null
);
t
.
default
=
F
.
exports
},
gvjp
:
function
(
e
,
t
){},
y3Ol
:
function
(
e
,
t
){}});
webpackJsonp
([
20
],{
SxZy
:
function
(
e
,
t
){},
Xwfy
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"woOf"
),
s
=
r
.
n
(
a
),
l
=
r
(
"mvHQ"
),
i
=
r
.
n
(
l
),
o
=
r
(
"gBtx"
),
n
=
r
.
n
(
o
),
c
=
r
(
"3Xzz"
),
d
=
r
(
"fZjL"
),
u
=
r
.
n
(
d
),
h
=
{
name
:
"set-permiss-data"
,
components
:{},
props
:{
value
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
title
:{
type
:
String
}},
data
:
function
(){
return
{
defaultSelection
:
this
.
value
||
[]}},
methods
:{
delCurrent
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
updateList
:
function
(
e
){
this
.
$emit
(
"input"
,
e
)},
handleSelectedList
:
function
(
e
){},
showSelector
:
function
(){
this
.
$emit
(
"showSelect"
)}},
watch
:{
value
:
function
(
e
,
t
){
this
.
defaultSelection
=
e
}},
mounted
:
function
(){
this
.
defaultSelection
=
this
.
value
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"select-area"
},[
r
(
"div"
,{
staticClass
:
"setting-name"
,
staticStyle
:{
"font-size"
:
"14px"
,
color
:
"#606266"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
title
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
a
){
return
[
1
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"item person-item"
},[
r
(
"div"
,{
class
:[
"img-wrap"
,
"flex"
,
"flex-align-center"
,
"flex-pack-center"
,
t
.
headPic
?
""
:
"img-wrap-bg"
]},[
t
.
headPic
?
r
(
"img"
,{
attrs
:{
src
:
t
.
headPic
,
alt
:
"headPic"
}}):
r
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
}),
e
.
_v
(
" "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
label
))])]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
type
||
3
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
||
t
.
label
)
+
"
\
n "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"item J_add-btn flex flex-align-center flex-pack-center"
,
on
:{
click
:
e
.
showSelector
}},[
r
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])},
staticRenderFns
:[]};
var
p
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
e
){
r
(
"gvjp"
)},
null
,
null
).
exports
,
f
=
r
(
"c4uw"
),
v
=
r
(
"Ie7z"
),
g
=
r
(
"3E4D"
),
b
=
r
(
"Ch4/"
),
S
=
r
(
"PI0u"
),
C
=
r
(
"P9l9"
),
k
=
{
name
:
""
,
props
:{
authData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
permType
:{
type
:[
Number
,
String
]}},
data
:
function
(){
return
{
projectName
:
""
,
ruleForm
:{
radio
:
1
,
visibleAll
:[],
visibleStoreAll
:[]},
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
treeData
:{},
defaultSelection
:[],
onlyPerson
:
!
1
,
changed
:
""
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
beforeMount
:
function
(){
var
e
=
window
.
location
.
origin
;
"-1"
!=
e
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
e
},
methods
:{
changeRadio
:
function
(
e
){
this
.
ruleForm
.
visibleAll
=
[],
this
.
ruleForm
.
visibleStoreAll
=
[]},
submitForm
:
Object
(
S
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
r
=
{
allowCherkIds
:[],
allowDepartIds
:[],
allowStoreIds
:[],
brandId
:
t
.
ruleForm
.
brandId
,
groupId
:
t
.
ruleForm
.
groupId
,
radio
:
t
.
ruleForm
.
radio
};
3
!=
t
.
ruleForm
.
radio
||
t
.
ruleForm
.
visibleAll
.
length
||
t
.
ruleForm
.
visibleStoreAll
.
length
?(
3
==
t
.
ruleForm
.
radio
&&
(
t
.
ruleForm
.
visibleAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)
&&
r
.
allowDepartIds
.
push
(
e
.
id
)}),
t
.
ruleForm
.
visibleStoreAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
e
.
hasOwnProperty
(
"storeId"
)?
r
.
allowStoreIds
.
push
(
e
.
storeId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)?
r
.
allowDepartIds
.
push
(
e
.
id
):
3
===
n
()(
e
.
type
)
&&
r
.
allowStoreIds
.
push
(
e
.
id
)})),
t
.
setStoreAuth
(
r
,
t
.
permType
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
})})},
400
),
setStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
type
:
t
,
brandId
:
e
.
brandId
,
groupId
:
e
.
groupId
,
storeEmployeeAuth
:
e
.
radio
,
storeManagerAuth
:
e
.
radio
,
allowCherkIds
:
e
.
allowCherkIds
.
join
(
","
),
allowDepartIds
:
e
.
allowDepartIds
.
join
(
","
),
allowStoreIds
:
e
.
allowStoreIds
.
join
(
","
)};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
a
).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
==
r
.
errorCode
)
return
2
==
t
&&
g
.
a
.
showmsg
(
"保存成功"
,
"success"
),
!
1
;
b
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleAuthData
:
function
(
e
){
var
t
=
this
;
u
()(
e
).
length
&&
(
t
.
ruleForm
.
brandId
=
e
.
brandId
,
t
.
ruleForm
.
groupId
=
e
.
groupId
,
1
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeEmployeeAuth
||
1
,
e
.
employeeAuthList
.
length
&&
e
.
employeeAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
employeeAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
),
2
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeManagerAuth
||
1
,
e
.
managerAuthList
.
length
&&
e
.
managerAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
managerAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
))},
showSelect
:
function
(
e
){
if
(
"store"
===
e
)
return
this
.
defaultStoreList
=
this
.
ruleForm
.
visibleStoreAll
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
});
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
},
this
.
defaultSelection
=
this
.
ruleForm
.
visibleAll
},
handleSelectedList
:
function
(
e
){
this
.
defaultSelection
=
e
,
this
.
ruleForm
.
visibleAll
=
e
},
handleSelectedStoreList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
ruleForm
.
visibleStoreAll
=
e
},
getDepartData
:
function
(
e
){
var
t
=
this
;
Object
(
C
.
e
)(
"/haoban-manage-web/dept/deptListForCompany"
,{}).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
!=
r
.
errorCode
)
b
.
a
.
errorMsg
(
r
);
else
if
(
r
.
result
){
var
a
=
[],
s
=
[];
1
==
e
.
data
.
errorCode
&&
(
a
=
e
.
data
.
result
.
departmentList
||
[],
s
=
e
.
data
.
result
.
searchList
||
[]),
t
.
treeData
=
{
treeData
:
a
,
personData
:
s
},
t
.
$forceUpdate
()}
else
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
authData
:
function
(
e
,
t
){
this
.
handleAuthData
(
e
)}},
mounted
:
function
(){
this
.
handleAuthData
(
this
.
authData
),
this
.
getDepartData
()},
components
:{
setPermissData
:
p
,
vueSelectEmployee
:
f
.
a
,
vueSelectStore
:
v
.
a
}},
w
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"permiss-wrap"
},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
"label-width"
:
"110px"
,
model
:
e
.
ruleForm
}},[
r
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeRadio
},
model
:{
value
:
e
.
ruleForm
.
radio
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"radio"
,
t
)},
expression
:
"ruleForm.radio"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
permType
?
"店员可见权限"
:
"店长可见权限"
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"可见所有品牌门店架构和行政架构"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"门店仅可见自己门店"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"自定义可见权限"
)])],
1
),
e
.
_v
(
" "
),
3
==
e
.
ruleForm
.
radio
?
r
(
"div"
,{
staticClass
:
"permiss-child-cell"
},[
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许行政架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"depart"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleAll"
,
t
)},
expression
:
"ruleForm.visibleAll"
}}),
e
.
_v
(
" "
),
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许门店架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"store"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleStoreAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleStoreAll"
,
t
)},
expression
:
"ruleForm.visibleStoreAll"
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-employee"
,{
attrs
:{
defaultSelection
:
e
.
defaultSelection
,
treeSet
:
e
.
treeSet
,
onlyPerson
:
e
.
onlyPerson
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedStoreList
}})],
1
)},
staticRenderFns
:[]};
var
y
=
r
(
"VU/8"
)(
k
,
w
,
!
1
,
function
(
e
){
r
(
"SxZy"
)},
"data-v-194844d0"
,
null
).
exports
,
A
=
{
name
:
"storePermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"门店权限设置"
,
path
:
""
}],
activeName
:
""
,
brandList
:[],
switchList
:{
addName
:
"新增门店成员"
,
addStoreClerkCheck
:
!
1
,
delName
:
"删除门店成员"
,
deleteStoreClerkCheck
:
!
1
,
modName
:
"门店信息变更"
,
storeInformationChangeCheck
:
!
1
}}},
computed
:{},
methods
:{
toStoreAdd
:
function
(){
this
.
$router
.
push
(
"/storeFrame"
)},
handleClick
:
function
(
e
,
t
){
this
.
getStoreAuth
(
e
.
name
,
n
()(
e
.
index
)),
this
.
activeName
=
e
.
name
},
saveSwitch
:
Object
(
S
.
a
)(
function
(){
var
e
=
JSON
.
parse
(
i
()(
this
.
switchList
));
e
.
addStoreClerkCheck
=
1
==
e
.
addStoreClerkCheck
?
1
:
0
,
e
.
deleteStoreClerkCheck
=
1
==
e
.
deleteStoreClerkCheck
?
1
:
0
,
e
.
storeInformationChangeCheck
=
1
==
e
.
storeInformationChangeCheck
?
1
:
0
,
this
.
setStoreAuth
(
e
)},
600
),
saveAll
:
Object
(
S
.
a
)(
function
(){
var
e
=
this
;
if
(
3
==
e
.
$refs
.
clerkPermiss
.
ruleForm
.
radio
&&!
e
.
$refs
.
clerkPermiss
.
ruleForm
.
visibleAll
.
length
&&!
e
.
$refs
.
clerkPermiss
.
ruleForm
.
visibleStoreAll
.
length
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
}),
!
1
;
if
(
3
==
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
radio
&&!
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
visibleAll
.
length
&&!
e
.
$refs
.
clerkManagePermiss
.
ruleForm
.
visibleStoreAll
.
length
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
}),
!
1
;
e
.
$refs
.
clerkPermiss
.
submitForm
(
"ruleForm"
);
var
t
=
setTimeout
(
function
(){
e
.
$refs
.
clerkManagePermiss
.
submitForm
(
"ruleForm"
),
clearTimeout
(
t
)},
500
)},
500
),
setStoreAuth
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
e
.
brandId
,
groupId
:
t
.
activeName
,
addStoreClerkCheck
:
e
.
addStoreClerkCheck
,
deleteStoreClerkCheck
:
e
.
deleteStoreClerkCheck
,
storeInformationChangeCheck
:
e
.
storeInformationChangeCheck
};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
b
.
a
.
errorMsg
(
t
):
g
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
groupId
:
e
};
Object
(
C
.
e
)(
"/haoban-manage-web/brand/storeAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
!=
t
.
errorCode
)
b
.
a
.
errorMsg
(
t
);
else
if
(
t
.
result
){
r
.
brandList
.
clerkData
=
t
.
result
,
r
.
brandList
.
managerData
=
t
.
result
;
var
a
=
t
.
result
.
brandDTO
;
a
.
addStoreClerkCheck
=
1
==
a
.
addStoreClerkCheck
,
a
.
deleteStoreClerkCheck
=
1
==
a
.
deleteStoreClerkCheck
,
a
.
storeInformationChangeCheck
=
1
==
a
.
storeInformationChangeCheck
,
r
.
switchList
=
s
()(
r
.
switchList
,
a
),
r
.
$forceUpdate
()}}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
C
.
e
)(
"/haoban-manage-web/brand/list"
,{}).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
b
.
a
.
errorMsg
(
r
):
r
.
result
&&
r
.
result
.
length
&&
(
e
.
brandList
=
r
.
result
,
e
.
activeName
=
r
.
result
[
0
].
groupId
,
e
.
getStoreAuth
(
r
.
result
[
0
].
groupId
,
0
))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getBrandData
()},
components
:{
navCrumb
:
c
.
a
,
setPermiss
:
y
}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
r
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
background
:
"unset"
,
padding
:
"0"
}},[
r
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
e
.
_l
(
e
.
brandList
,
function
(
e
,
t
){
return
[
r
(
"el-tab-pane"
,{
key
:
"name"
+
t
,
attrs
:{
label
:
e
.
name
,
name
:
e
.
groupId
}})]})],
2
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-title font-w-500"
},[
e
.
_v
(
"
\
n 门店成员通讯录可见权限
\
n "
)]),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"bg-fff permiss-contain"
},[
r
(
"set-permiss"
,{
ref
:
"clerkPermiss"
,
attrs
:{
permType
:
1
,
authData
:
e
.
brandList
.
clerkData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"b-l"
}),
e
.
_v
(
" "
),
r
(
"set-permiss"
,{
ref
:
"clerkManagePermiss"
,
attrs
:{
permType
:
2
,
authData
:
e
.
brandList
.
managerData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-110 m-t-15"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveAll
}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"storePermission-wrap-switch m-t-24"
},[
r
(
"div"
,{
staticClass
:
"storePermission-switch-title font-w-500"
},[
e
.
_v
(
"
\
n 门店信息变更是否需要审核
\
n "
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-switch-body"
},[
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
addName
},
model
:{
value
:
e
.
switchList
.
addStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"addStoreClerkCheck"
,
t
)},
expression
:
"switchList.addStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
delName
},
model
:{
value
:
e
.
switchList
.
deleteStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"deleteStoreClerkCheck"
,
t
)},
expression
:
"switchList.deleteStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
modName
},
model
:{
value
:
e
.
switchList
.
storeInformationChangeCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"storeInformationChangeCheck"
,
t
)},
expression
:
"switchList.storeInformationChangeCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-94"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveSwitch
}},[
e
.
_v
(
"保 存"
)])],
1
)])]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
e
.
_e
():
r
(
"div"
,{
staticClass
:
"no-brand-content p-20 bg-fff text-center p-t-185"
},[
r
(
"p"
,{
staticClass
:
"font-14 color-909399 m-b-10"
},[
e
.
_v
(
"请创建品牌后进行门店权限设置"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toStoreAdd
}},[
e
.
_v
(
"马上新建品牌"
)])],
1
)],
1
)]),
e
.
_v
(
" "
),
r
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
F
=
r
(
"VU/8"
)(
A
,
I
,
!
1
,
function
(
e
){
r
(
"y3Ol"
)},
"data-v-5775d876"
,
null
);
t
.
default
=
F
.
exports
},
gvjp
:
function
(
e
,
t
){},
y3Ol
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/21.93b01771494d9916a557.js
0 → 100644
View file @
d3b9bec7
webpackJsonp
([
21
],{
"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
:
""
,
gicFlag
:
!
(
!
this
.
$route
.
query
.
gicFlag
||
"false"
==
this
.
$route
.
query
.
gicFlag
)}},
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
,
gicFlag
:
this
.
gicFlag
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
s
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"Tb0k"
)},
null
,
null
);
t
.
default
=
s
.
exports
},
Rc4o
:
function
(
e
,
t
){},
Tb0k
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"Ie7z"
),
o
=
r
(
"P9l9"
),
a
=
r
(
"XDyb"
),
s
=
r
(
"T+u5"
),
i
=
r
.
n
(
s
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
n
.
a
,
countryMobile
:
a
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
!
r
)
return
n
(
new
Error
(
"请输入手机号"
));
var
o
=
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
r
);
o
.
isValid
()
&&
o
.
isMobile
()?
n
():
n
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
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
||
""
,
nationcode
:
e
.
nationcode
},
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
:
""
,
nationcode
:
"86"
},
r
.
defaultList
=
[],
r
.
$refs
.
clerk_info
.
resetFields
()):
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
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
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"
,{
staticClass
:
"clerk-info-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
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
r
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
r
(
"Rc4o"
)},
null
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
dist/static/js/6.
12282235c2ce7ff45d5
6.js
→
dist/static/js/6.
f23f1b5d7188825408f
6.js
View file @
d3b9bec7
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"ATfr"
),
c
=
a
(
"P9l9"
),
d
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
""
;
if
(
t
)
s
=
e
.
storeId
;
else
{
var
r
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
r
.
push
(
e
.
storeId
)}),
s
=
r
.
join
(
","
)}
var
o
=
{
ids
:
s
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"sC3T"
)},
null
,
null
).
exports
,
f
=
a
(
"Ie7z"
),
p
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
f
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
s
=
e
),
1
==
e
.
isManager
});
var
r
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
s
.
employeeClerkId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/setManager"
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"操作成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
s
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
s
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
s
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
s
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
s
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
s
,
r
){
return
a
(
"li"
,{
key
:
s
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
s
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
s
)}}},[
e
.
_v
(
e
.
_s
(
s
.
name
))]),
e
.
_v
(
" "
),
1
==
s
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
s
.
nationcode
?
s
.
phoneNumber
:
"+"
+
s
.
nationcode
+
"-"
+
s
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
s
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
s
.
status
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
s
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
s
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
s
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
s
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
p
,
h
,
!
1
,
function
(
e
){
a
(
"crdp"
)},
"data-v-8355f47c"
,
null
).
exports
,
v
=
a
(
"qsKc"
),
b
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
c
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"fAiH"
)},
null
,
null
).
exports
,
C
=
a
(
"WSbm"
),
y
=
a
(
"oncj"
),
k
=
a
(
"Ch4/"
),
w
=
a
(
"unF8"
),
S
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
l
.
a
,
storeView
:
m
,
clerkView
:
g
,
employeeInfo
:
C
.
a
,
storeInfo
:
v
.
a
,
addBrand
:
_
,
clerkInfo
:
y
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
n
()(
r
.
a
.
mark
(
function
s
(){
return
r
.
a
.
wrap
(
function
(
s
){
for
(;;)
switch
(
s
.
prev
=
s
.
next
){
case
0
:
return
a
.
perId
=
e
.
employeeClerkId
,
a
.
userId
=
e
.
brandId
,
a
.
showEmployee
=
t
,
s
.
next
=
5
,
a
.
getGicData
();
case
5
:
case
"end"
:
return
s
.
stop
()}},
s
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
storeInfo
=
e
.
data
.
result
,
a
.
groupInfo
.
brandId
=
e
.
data
.
result
.
brandId
,
a
.
showEmployee
=
t
,
a
.
getGicData
()):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
if
(
!
e
.
groupInfo
.
departmentId
)
return
e
.
loading
=!
1
,
!
1
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
loading
=!
1
,
e
.
total
=
t
.
data
.
result
.
total
,
t
.
data
.
result
.
list
&&
t
.
data
.
result
.
list
.
length
&&
t
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
t
.
data
.
result
.
list
||
[],
e
.
getRecycle
()):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
t
(){
var
a
,
s
,
o
,
n
;
return
r
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
s
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
w
.
a
)(
s
);
case
9
:
o
=
t
.
sent
,
1
==
(
n
=
o
.
data
).
errorCode
?
a
.
gicFlag
=
n
.
result
:
k
.
a
.
errorMsg
(
n
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
D
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
S
,
D
,
!
1
,
function
(
e
){
a
(
"A6TM"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
A6TM
:
function
(
e
,
t
){},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"0xDb"
),
r
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
r
=
Object
(
s
.
c
)(
e
);
a
.
defaultOpen
=
r
.
defaultOpen
,
a
.
menuData
=
r
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
s
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
s
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
s
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
s
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
s
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
o
,
!
1
,
function
(
e
){
a
(
"MEND"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
GAtE
:
function
(
e
,
t
){},
MEND
:
function
(
e
,
t
){},
cPpO
:
function
(
e
,
t
){},
crdp
:
function
(
e
,
t
){},
fAiH
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"Ie7z"
),
r
=
a
(
"P9l9"
),
o
=
a
(
"XDyb"
),
n
=
a
(
"T+u5"
),
i
=
a
.
n
(
n
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号"
));
var
r
=
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
r
.
isValid
()
&&
r
.
isMobile
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
console
.
log
(
e
),
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
console
.
log
(
this
.
clerkInfo
),
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
r
.
a
)(
o
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"GAtE"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
m
=
a
(
"Ie7z"
),
f
=
a
(
"XDyb"
),
p
=
a
(
"T+u5"
),
h
=
a
.
n
(
p
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
m
.
a
,
countryMobile
:
f
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
return
a
&&
e
.
storeInfo
.
closeTime
?
s
():
s
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号码"
));
var
r
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
r
.
isValid
()
&&
r
.
isMobile
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
d
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
s
,
r
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
s
,
r
,
o
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
JSON
.
parse
(
r
()(
e
.
storeInfoData
)),
s
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
s
.
push
(
e
.
url
)}),
a
.
imageUrls
=
s
.
join
(
","
),
Object
(
u
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
e
.
imageUrls
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
r
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
storeInfoData
.
imageUrls
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"cPpO"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
sC3T
:
function
(
e
,
t
){}});
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"ATfr"
),
c
=
a
(
"P9l9"
),
d
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
1
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
""
;
if
(
t
)
s
=
e
.
storeId
;
else
{
var
r
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
r
.
push
(
e
.
storeId
)}),
s
=
r
.
join
(
","
)}
var
o
=
{
ids
:
s
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
attrs
:{
href
:
"#/storeInfo?firstLevelId="
+
e
.
firstLevelId
}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"#/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"sC3T"
)},
null
,
null
).
exports
,
f
=
a
(
"Ie7z"
),
p
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
f
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
showChildMember
:
!
1
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
s
=
e
),
1
==
e
.
isManager
});
var
r
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
s
.
employeeClerkId
};
Object
(
c
.
a
)(
"/haoban-manage-web/emp/setManager"
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
s
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"操作成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
s
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
s
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
s
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
s
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
s
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByStatus
},
model
:{
value
:
e
.
storeStatus
,
callback
:
function
(
t
){
e
.
storeStatus
=
t
},
expression
:
"storeStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"正常"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"停业整顿"
,
value
:
3
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
s
,
r
){
return
a
(
"li"
,{
key
:
s
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
s
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
s
)}}},[
e
.
_v
(
e
.
_s
(
s
.
name
))]),
e
.
_v
(
" "
),
1
==
s
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
s
.
nationcode
?
s
.
phoneNumber
:
"+"
+
s
.
nationcode
+
"-"
+
s
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
s
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
s
.
status
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
attrs
:{
href
:
"#/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
s
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
s
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
s
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
s
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
r
,
s
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
p
,
h
,
!
1
,
function
(
e
){
a
(
"crdp"
)},
"data-v-8355f47c"
,
null
).
exports
,
v
=
a
(
"qsKc"
),
b
=
{
name
:
"add-brand-dialog"
,
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
c
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"m-t-20"
,
model
:{
value
:
e
.
brandName
,
callback
:
function
(
t
){
e
.
brandName
=
t
},
expression
:
"brandName"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"fAiH"
)},
null
,
null
).
exports
,
C
=
a
(
"WSbm"
),
y
=
a
(
"oncj"
),
k
=
a
(
"Ch4/"
),
w
=
a
(
"unF8"
),
S
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
i
.
a
,
searchMenu
:
l
.
a
,
storeView
:
m
,
clerkView
:
g
,
employeeInfo
:
C
.
a
,
storeInfo
:
v
.
a
,
addBrand
:
_
,
clerkInfo
:
y
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
1
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
1
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
n
()(
r
.
a
.
mark
(
function
s
(){
return
r
.
a
.
wrap
(
function
(
s
){
for
(;;)
switch
(
s
.
prev
=
s
.
next
){
case
0
:
return
a
.
perId
=
e
.
employeeClerkId
,
a
.
userId
=
e
.
brandId
,
a
.
showEmployee
=
t
,
s
.
next
=
5
,
a
.
getGicData
();
case
5
:
case
"end"
:
return
s
.
stop
()}},
s
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
location
.
href
=
"#/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
;
location
.
href
=
"#/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
storeId
:
e
.
storeId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findStoreById"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
storeInfo
=
e
.
data
.
result
,
a
.
groupInfo
.
brandId
=
e
.
data
.
result
.
brandId
,
a
.
showEmployee
=
t
,
a
.
getGicData
()):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
1
,
this
.
storeStatus
=
""
,
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
c
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(){
var
e
=
this
;
if
(
!
e
.
groupInfo
.
departmentId
)
return
e
.
loading
=!
1
,
!
1
;
e
.
loading
=!
0
;
var
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
,
showChild
:
1
*
e
.
showChildMember
,
showType
:
e
.
tableView
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
e
.
storeStatus
,
storeType
:
e
.
storeType
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
loading
=!
1
,
e
.
total
=
t
.
data
.
result
.
total
,
t
.
data
.
result
.
list
&&
t
.
data
.
result
.
list
.
length
&&
t
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
e
.
storeList
=
t
.
data
.
result
.
list
||
[],
e
.
getRecycle
()):(
e
.
loading
=!
1
,
e
.
storeList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
c
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
t
(){
var
a
,
s
,
o
,
n
;
return
r
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
s
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
w
.
a
)(
s
);
case
9
:
o
=
t
.
sent
,
1
==
(
n
=
o
.
data
).
errorCode
?
a
.
gicFlag
=
n
.
result
:
k
.
a
.
errorMsg
(
n
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
D
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
attrs
:{
href
:
"#/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
S
,
D
,
!
1
,
function
(
e
){
a
(
"A6TM"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
A6TM
:
function
(
e
,
t
){},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"0xDb"
),
r
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
r
=
Object
(
s
.
c
)(
e
);
a
.
defaultOpen
=
r
.
defaultOpen
,
a
.
menuData
=
r
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
"姓名/手机号/部门名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
s
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
s
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
s
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
s
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
s
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
s
){
return
a
(
"li"
,{
key
:
s
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
o
,
!
1
,
function
(
e
){
a
(
"MEND"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
MEND
:
function
(
e
,
t
){},
Rc4o
:
function
(
e
,
t
){},
cPpO
:
function
(
e
,
t
){},
crdp
:
function
(
e
,
t
){},
fAiH
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"Ie7z"
),
r
=
a
(
"P9l9"
),
o
=
a
(
"XDyb"
),
n
=
a
(
"T+u5"
),
i
=
a
.
n
(
n
),
l
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
10
,
message
:
"长度在 2 到 10 个字符"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号"
));
var
r
=
new
i
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
r
.
isValid
()
&&
r
.
isMobile
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
message
:
"请输入code"
,
trigger
:
"blur"
},{
min
:
2
,
max
:
20
,
message
:
"长度在 2 到 20 个字符"
,
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
r
.
a
)(
o
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
r
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)},
expression
:
"clerkInfo.name"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
e
.
gicFlag
&&!
e
.
isAddnew
},
on
:{
blur
:
function
(
t
){
return
e
.
toInputCode
(
t
)}},
model
:{
value
:
e
.
clerkInfo
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)},
expression
:
"clerkInfo.code"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
model
:{
value
:
e
.
clerkInfo
.
positionName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)},
expression
:
"clerkInfo.positionName"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"Rc4o"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"//Fk"
),
l
=
a
.
n
(
i
),
c
=
a
(
"exGp"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
m
=
a
(
"Ie7z"
),
f
=
a
(
"XDyb"
),
p
=
a
(
"T+u5"
),
h
=
a
.
n
(
p
),
g
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
m
.
a
,
countryMobile
:
f
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
this
.
storeInfo
,
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
return
a
&&
e
.
storeInfo
.
closeTime
?
s
():
s
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"门店代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
s
){
if
(
!
a
)
return
s
(
new
Error
(
"请输入手机号码"
));
var
r
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
r
.
isValid
()
&&
r
.
isMobile
()?
s
():
s
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
t
.
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
a
(
new
Error
(
"店长代码不能是中文或表情"
)):
a
();
return
a
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
d
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
s
,
r
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
s
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
r
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
l
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
l
.
a
.
all
([
s
,
r
,
o
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
JSON
.
parse
(
r
()(
e
.
storeInfoData
)),
s
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
s
.
push
(
e
.
url
)}),
a
.
imageUrls
=
s
.
join
(
","
),
Object
(
u
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
e
.
imageUrls
=
a
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
r
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)},
expression
:
"storeInfoData.storeName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
storeInfoData
.
storeName
?
e
.
storeInfoData
.
storeName
.
length
:
0
)
+
"/20
\
n "
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
storeInfoData
.
imageUrls
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
postAddress
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"postAddress"
,
t
)},
expression
:
"storeInfoData.postAddress"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
postAddress
||
""
).
length
)
+
"/50"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
storeCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)},
expression
:
"storeInfoData.storeCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
storeCode
||
""
).
length
)
+
"/20"
)])],
2
)],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)},
expression
:
"storeInfoData.managerName"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
managerName
||
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerCode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)},
expression
:
"storeInfoData.managerCode"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
((
e
.
storeInfoData
.
managerCode
||
""
).
length
)
+
"/20
\
n "
)])],
2
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
specialService
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)},
expression
:
"storeInfoData.specialService"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
specialService
||
""
).
length
)
+
"/20"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
personCost
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)},
expression
:
"storeInfoData.personCost"
}},[
a
(
"template"
,{
slot
:
"suffix"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
personCost
+
""
).
length
)
+
"/10"
)])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
recommendGoods
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)},
expression
:
"storeInfoData.recommendGoods"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/100"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
type
:
"textarea"
,
rows
:
2
},
model
:{
value
:
e
.
storeInfoData
.
brandDes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)},
expression
:
"storeInfoData.brandDes"
}}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"counter t-rt c-909399"
},[
e
.
_v
(
e
.
_s
((
e
.
storeInfoData
.
recommendGoods
||
""
).
length
)
+
"/200"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
,
forbidenList
:[
e
.
storeInfoData
.
storeGroupId
]},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
v
,
!
1
,
function
(
e
){
a
(
"cPpO"
)},
null
,
null
);
t
.
a
=
b
.
exports
},
sC3T
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/app.
d0684246c06d3475722
1.js
→
dist/static/js/app.
ae32de3d5f895c010a3
1.js
View file @
d3b9bec7
webpackJsonp
([
79
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
n
){
n
(
"j1ja"
),
e
.
exports
=
n
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
n
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
a
){
n
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
a
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"mvHQ"
),
o
=
n
.
n
(
a
),
p
=
(
n
(
"j1ja"
),
n
(
"hKoQ"
)),
r
=
n
.
n
(
p
),
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
s
=
n
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
i
,
!
1
,
function
(
e
){
n
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
n
(
"lRwf"
),
m
=
n
.
n
(
c
),
d
=
n
(
"pRNm"
),
u
=
n
.
n
(
d
),
l
=
n
(
"5tgt"
),
v
=
n
.
n
(
l
);
m
.
a
.
use
(
u
.
a
);
var
h
=
function
(
e
){
n
.
e
(
1
).
then
(
n
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
A
,
f
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
v
()(
"login"
,
"index"
)},{
path
:
"/download"
,
name
:
"下载"
,
component
:
v
()(
"download"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
v
()(
"index"
,
"index"
)},{
path
:
"/sign"
,
name
:
"index"
,
component
:
v
()(
"sign"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"administrativeFrame"
,
component
:
v
()(
"contacts"
,
"index"
),
children
:[{
path
:
"/administrativeFrame"
,
name
:
"行政架构"
,
component
:
v
()(
"contacts"
,
"administrativeFrame"
)},{
path
:
"/employeeIo"
,
name
:
"批量导入/导出"
,
component
:
v
()(
"contacts"
,
"employeeIo"
)},{
path
:
"/addDepartment"
,
name
:
"添加部门"
,
component
:
v
()(
"contacts"
,
"addDepartment"
)},{
path
:
"/addClerk"
,
name
:
"添加店员"
,
component
:
v
()(
"contacts"
,
"addClerk"
)},{
path
:
"/storeFrame"
,
name
:
"门店架构"
,
component
:
v
()(
"contacts"
,
"storeFrame"
)},{
path
:
"/addGroup"
,
name
:
"添加子分组"
,
component
:
v
()(
"contacts"
,
"addGroup"
)},{
path
:
"/storeIo"
,
name
:
"门店导入/导出"
,
component
:
v
()(
"contacts"
,
"storeIo"
)},{
path
:
"/storeInfo"
,
name
:
"编辑门店"
,
component
:
v
()(
"contacts"
,
"storeInfo"
)},{
path
:
"/recycle"
,
name
:
"门店回收站"
,
component
:
v
()(
"contacts"
,
"recycle"
)},{
path
:
"/employee"
,
name
:
"编辑员工"
,
component
:
v
()(
"contacts"
,
"employee"
)},{
path
:
"/unemployee"
,
name
:
"离职员工"
,
component
:
v
()(
"contacts"
,
"unemployee"
)},{
path
:
"/fileSet"
,
name
:
"档案设置"
,
component
:
v
()(
"contacts"
,
"fileSet"
)},{
path
:
"/recordInfo"
,
name
:
"编辑员工信息"
,
component
:
v
()(
"contacts"
,
"recordInfo"
)},{
path
:
"/recordIo"
,
name
:
"导入导出员工档案"
,
component
:
v
()(
"contacts"
,
"recordIo"
)},{
path
:
"/shareContact"
,
name
:
"共享通讯录"
,
component
:
v
()(
"contacts"
,
"shareContact"
)},{
path
:
"/shareCode"
,
name
:
"共享通讯录二维码"
,
component
:
v
()(
"contacts"
,
"shareCode"
)},{
path
:
"/employeeRecord"
,
name
:
"在职员工"
,
component
:
v
()(
"contacts"
,
"employeeRecord"
)}]},{
path
:
"/enterpriseApp"
,
name
:
"企业应用"
,
redirect
:
"appcenter"
,
component
:
v
()(
"enterpriseApp"
,
"index"
),
children
:[{
path
:
"/appcenter"
,
name
:
"企业应用中心"
,
component
:
v
()(
"enterpriseApp"
,
"appcenter"
)},{
path
:
"/mycustomer"
,
name
:
"我的顾客"
,
component
:
v
()(
"enterpriseApp"
,
"mycustomer"
)},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"customReport"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"taskDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/noticeList"
,
name
:
"企业公告"
,
redirect
:
"/noticeList"
,
component
:
v
()(
"enterpriseApp/notice"
,
"index"
),
children
:[{
path
:
"/noticeList"
,
name
:
"企业公告列表"
,
component
:
v
()(
"enterpriseApp/notice"
,
"noticeList"
)},{
path
:
"/addNotice"
,
name
:
"新建公告"
,
component
:
v
()(
"enterpriseApp/notice"
,
"addNotice"
)}]},{
path
:
"/badEvaluate"
,
name
:
"不良评价"
,
redirect
:
"/badEvaluateRecord"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"index"
),
children
:[{
path
:
"/badEvaluateRecord"
,
name
:
"不良评价记录"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateRecord"
)},{
path
:
"/badEvaluateDetail"
,
name
:
"不良评价详情"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateDetail"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
v
()(
"enterpriseApp/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
v
()(
"enterpriseApp/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
v
()(
"enterpriseApp/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
v
()(
"enterpriseApp/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/signList"
,
name
:
"企业公告"
,
redirect
:
"/signList"
,
component
:
v
()(
"enterpriseApp/signApp"
,
"index"
),
children
:[{
path
:
"/signList"
,
name
:
"企业公告列表"
,
component
:
v
()(
"enterpriseApp/signApp"
,
"signList"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
v
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
v
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
v
()(
"reviewCenter"
,
"unreview"
)}]},{
path
:
"/setCenter"
,
name
:
"设置"
,
redirect
:
"companyAddress"
,
component
:
v
()(
"setting"
,
"index"
),
children
:[{
path
:
"/companyAddress"
,
name
:
"企业地址"
,
component
:
v
()(
"setting"
,
"companyAddress"
)},{
path
:
"/companyCertify"
,
name
:
"企业认证"
,
component
:
v
()(
"setting"
,
"companyCertify"
)},{
path
:
"/staffDetails"
,
name
:
"员工详情字段"
,
component
:
v
()(
"setting"
,
"staffDetails"
)},{
path
:
"/storePermission"
,
name
:
"门店权限设置"
,
component
:
v
()(
"setting"
,
"storePermission"
)},{
path
:
"/replaceAdmin"
,
name
:
"更换超级管理员"
,
component
:
v
()(
"setting"
,
"replaceAdmin"
)},{
path
:
"/setChildAdmin"
,
name
:
"设置子管理员"
,
component
:
v
()(
"setting"
,
"setChildAdmin"
)},{
path
:
"/addAdmin"
,
name
:
"添加管理员"
,
component
:
v
()(
"setting"
,
"addAdmin"
)},{
path
:
"/addAdminRole"
,
name
:
"添加管理员角色"
,
component
:
v
()(
"setting"
,
"addAdminRole"
)}]},{
path
:
"/staffRecordsTemplate"
,
name
:
"员工档案设置"
,
component
:
v
()(
"contacts"
,
"staffRecordsTemplate"
)},{
path
:
"/systemReportSet"
,
name
:
"系统报表设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"systemReportSet"
)},{
path
:
"/template"
,
name
:
"模板设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"template"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
h
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
h
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
h
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
y
=
new
u
.
a
({
routes
:
f
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
g
=
n
(
"zL8q"
),
k
=
n
.
n
(
g
),
D
=
n
(
"Rf8U"
),
x
=
n
.
n
(
D
),
R
=
n
(
"mtWM"
),
w
=
n
.
n
(
R
),
C
=
n
(
"bOdI"
),
b
=
n
.
n
(
C
),
I
=
n
(
"SJI6"
),
T
=
n
.
n
(
I
);
m
.
a
.
use
(
T
.
a
);
var
E
=
new
T
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
},
mutations
:(
A
=
{},
b
()(
A
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
A
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
A
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
A
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
A
)}),
S
=
(
n
(
"4qCZ"
),
n
(
"uKUT"
),
n
(
"Xcu2"
),
n
(
"TUaa"
)),
q
=
n
.
n
(
S
),
V
=
n
(
"tyqE"
),
L
=
n
.
n
(
V
),
P
=
n
(
"pRVe"
),
j
=
n
.
n
(
P
),
F
=
n
(
"SE7k"
),
G
=
n
.
n
(
F
),
N
=
n
(
"XsK6"
),
O
=
n
.
n
(
N
),
K
=
n
(
"QRL9"
),
z
=
n
.
n
(
K
),
H
=
n
(
"2Pnh"
),
J
=
n
.
n
(
H
),
M
=
n
(
"l9mu"
),
U
=
n
.
n
(
M
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
J
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
n
=
t
.
width
,
a
=
t
.
height
,
o
=
n
/
592.28
*
841.89
,
p
=
a
,
r
=
0
,
i
=
592.28
/
n
*
a
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
U
.
a
(
""
,
"pt"
,
"a4"
);
if
(
p
<
o
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
p
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
r
,
595.28
,
i
),
r
-=
841.89
,(
p
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}};
r
.
a
.
polyfill
(),
Vue
.
use
(
X
),
Vue
.
use
(
O
.
a
),
Vue
.
use
(
z
.
a
),
Vue
.
use
(
G
.
a
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
k
.
a
,{
size
:
"large"
}),
Vue
.
use
(
x
.
a
,
w
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
y
.
beforeEach
(
function
(
e
,
t
,
n
){
var
a
=
void
0
,
p
=
window
.
location
.
origin
;
a
=-
1
!=
p
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
p
,
localStorage
.
getItem
(
"userInfo"
)
||
w
.
a
.
get
(
a
+
"/haoban-manage-web/emp/get-user-info"
,{}).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
||
localStorage
.
setItem
(
"userInfo"
,
o
()(
t
.
result
))}).
catch
(
function
(
e
){
g
.
Message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
"/"
==
e
.
path
?
n
({
path
:
"/login"
}):
n
()}),
new
Vue
({
el
:
"#app"
,
router
:
y
,
store
:
E
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
n
){
var
a
=
{
"./contacts/addClerk.vue"
:[
"27o1"
,
0
,
20
],
"./contacts/addDepartment.vue"
:[
"HHRu"
,
0
,
16
],
"./contacts/addEmployee.vue"
:[
"00Sv"
,
48
],
"./contacts/addGroup.vue"
:[
"mPjx"
,
0
,
76
],
"./contacts/administrativeFrame.vue"
:[
"kLcy"
,
0
,
4
],
"./contacts/employee.vue"
:[
"AdJp"
,
0
,
39
],
"./contacts/employeeIo.vue"
:[
"Rwbg"
,
0
,
44
],
"./contacts/employeeRecord.vue"
:[
"zGJY"
,
0
,
8
],
"./contacts/fileSet.vue"
:[
"CSjr"
,
0
,
11
],
"./contacts/index.vue"
:[
"41Rh"
,
0
,
74
],
"./contacts/recordInfo.vue"
:[
"67iC"
,
0
,
13
],
"./contacts/recordIo.vue"
:[
"738z"
,
0
,
18
],
"./contacts/recycle.vue"
:[
"HkK0"
,
0
,
26
],
"./contacts/shareAddDepartment.vue"
:[
"q5Ri"
,
0
,
15
],
"./contacts/shareCode.vue"
:[
"JsWW"
,
0
,
64
],
"./contacts/shareContact.vue"
:[
"Gfms"
,
0
,
2
],
"./contacts/staffRecordsTemplate.vue"
:[
"lFAe"
,
0
,
75
],
"./contacts/storeFrame.vue"
:[
"7SJI"
,
0
,
6
],
"./contacts/storeInfo.vue"
:[
"h/6A"
,
0
,
67
],
"./contacts/storeIo.vue"
:[
"RHxA"
,
0
,
77
],
"./contacts/unemployee.vue"
:[
"TGrv"
,
0
,
14
],
"./download/index.vue"
:[
"ASGJ"
,
0
,
9
],
"./enterpriseApp/appcenter.vue"
:[
"yuVF"
,
0
,
29
],
"./enterpriseApp/badEvaluate/badEvaluateDetail.vue"
:[
"4m/B"
,
0
,
32
],
"./enterpriseApp/badEvaluate/badEvaluateRecord.vue"
:[
"r//C"
,
0
,
58
],
"./enterpriseApp/badEvaluate/badEvaluateSet.vue"
:[
"XzAK"
,
0
,
69
],
"./enterpriseApp/badEvaluate/index.vue"
:[
"W0k8"
,
0
,
36
],
"./enterpriseApp/cloudDaily/customReport.vue"
:[
"DxdI"
,
0
,
37
],
"./enterpriseApp/cloudDaily/dailyDetail.vue"
:[
"5nNU"
,
0
,
30
],
"./enterpriseApp/cloudDaily/dailyRecord.vue"
:[
"Ujni"
,
0
,
31
],
"./enterpriseApp/cloudDaily/index.vue"
:[
"Knd1"
,
0
,
73
],
"./enterpriseApp/cloudDaily/systemReport.vue"
:[
"Y8F9"
,
0
,
54
],
"./enterpriseApp/cloudDaily/systemReportSet.vue"
:[
"VE2c"
,
0
,
7
],
"./enterpriseApp/cloudDaily/taskAssign.vue"
:[
"5x7s"
,
0
,
46
],
"./enterpriseApp/cloudDaily/template.vue"
:[
"IA9l"
,
0
,
5
],
"./enterpriseApp/cloudDaily/template/block.vue"
:[
"PAYw"
,
72
],
"./enterpriseApp/cloudDaily/template/date-range.vue"
:[
"79Bk"
,
59
],
"./enterpriseApp/cloudDaily/template/image.vue"
:[
"H8Kg"
,
55
],
"./enterpriseApp/cloudDaily/template/input.vue"
:[
"s4D+"
,
57
],
"./enterpriseApp/cloudDaily/template/select.vue"
:[
"t0b0"
,
35
],
"./enterpriseApp/index.vue"
:[
"da9f"
,
49
],
"./enterpriseApp/mycustomer.vue"
:[
"cuIN"
,
0
,
43
],
"./enterpriseApp/notice/addNotice.vue"
:[
"G5PL"
,
0
,
3
],
"./enterpriseApp/notice/index.vue"
:[
"av/3"
,
0
,
47
],
"./enterpriseApp/notice/noticeList.vue"
:[
"OVYO"
,
0
,
22
],
"./enterpriseApp/quota/companyDaySet.vue"
:[
"xk7v"
,
0
,
71
],
"./enterpriseApp/quota/index.vue"
:[
"FB5x"
,
0
,
68
],
"./enterpriseApp/quota/monthList.vue"
:[
"ZxDn"
,
0
,
38
],
"./enterpriseApp/quota/monthTask.vue"
:[
"cK0D"
,
0
,
34
],
"./enterpriseApp/quota/monthTaskDetail.vue"
:[
"jMbb"
,
0
,
56
],
"./enterpriseApp/quota/salerMonthDetail.vue"
:[
"IKv2"
,
0
,
40
],
"./enterpriseApp/quota/storeMonthTask.vue"
:[
"kF1j"
,
0
,
60
],
"./enterpriseApp/signApp/index.vue"
:[
"Gk4o"
,
0
,
41
],
"./enterpriseApp/signApp/signList.vue"
:[
"kCy7"
,
0
,
66
],
"./enterpriseApp/trafficTask/index.vue"
:[
"e88N"
,
0
,
45
],
"./enterpriseApp/trafficTask/taskDetail.vue"
:[
"A33E"
,
0
,
53
],
"./enterpriseApp/trafficTask/taskRecord.vue"
:[
"iG3v"
,
0
,
42
],
"./enterpriseApp/trafficTask/trafficTaskSet.vue"
:[
"4H54"
,
0
,
62
],
"./errorPage/403.vue"
:[
"6XGN"
,
25
],
"./errorPage/404.vue"
:[
"AejC"
,
27
],
"./errorPage/500.vue"
:[
"FskK"
,
23
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
28
],
"./login/index.vue"
:[
"T+/8"
,
0
,
10
],
"./reviewCenter/index.vue"
:[
"+lem"
,
52
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
17
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
19
],
"./setting/addAdmin.vue"
:[
"rs/A"
,
0
,
51
],
"./setting/addAdminRole.vue"
:[
"fZsz"
,
0
,
70
],
"./setting/companyAddress.vue"
:[
"SKyE"
,
0
,
63
],
"./setting/companyCertify.vue"
:[
"3zYh"
,
0
,
12
],
"./setting/index.vue"
:[
"VlR1"
,
33
],
"./setting/replaceAdmin.vue"
:[
"ys9I"
,
0
,
61
],
"./setting/setChildAdmin.vue"
:[
"VqB7"
,
0
,
50
],
"./setting/staffDetails.vue"
:[
"Zyzf"
,
0
,
24
],
"./setting/storePermission.vue"
:[
"Xwfy"
,
0
,
21
],
"./sign/index.vue"
:[
"RQuk"
,
0
,
65
]};
function
o
(
e
){
var
t
=
a
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
n
.
e
)).
then
(
function
(){
return
n
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
a
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
t
){}},[
0
]);
webpackJsonp
([
79
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
n
){
n
(
"j1ja"
),
e
.
exports
=
n
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
n
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
a
){
n
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
a
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"mvHQ"
),
o
=
n
.
n
(
a
),
p
=
(
n
(
"j1ja"
),
n
(
"hKoQ"
)),
r
=
n
.
n
(
p
),
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
s
=
n
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
i
,
!
1
,
function
(
e
){
n
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
n
(
"lRwf"
),
m
=
n
.
n
(
c
),
d
=
n
(
"pRNm"
),
u
=
n
.
n
(
d
),
l
=
n
(
"5tgt"
),
v
=
n
.
n
(
l
);
m
.
a
.
use
(
u
.
a
);
var
h
=
function
(
e
){
n
.
e
(
1
).
then
(
n
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
A
,
f
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
v
()(
"login"
,
"index"
)},{
path
:
"/download"
,
name
:
"下载"
,
component
:
v
()(
"download"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
v
()(
"index"
,
"index"
)},{
path
:
"/sign"
,
name
:
"index"
,
component
:
v
()(
"sign"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"administrativeFrame"
,
component
:
v
()(
"contacts"
,
"index"
),
children
:[{
path
:
"/administrativeFrame"
,
name
:
"行政架构"
,
component
:
v
()(
"contacts"
,
"administrativeFrame"
)},{
path
:
"/employeeIo"
,
name
:
"批量导入/导出"
,
component
:
v
()(
"contacts"
,
"employeeIo"
)},{
path
:
"/addDepartment"
,
name
:
"添加部门"
,
component
:
v
()(
"contacts"
,
"addDepartment"
)},{
path
:
"/addClerk"
,
name
:
"添加店员"
,
component
:
v
()(
"contacts"
,
"addClerk"
)},{
path
:
"/storeFrame"
,
name
:
"门店架构"
,
component
:
v
()(
"contacts"
,
"storeFrame"
)},{
path
:
"/addGroup"
,
name
:
"添加子分组"
,
component
:
v
()(
"contacts"
,
"addGroup"
)},{
path
:
"/storeIo"
,
name
:
"门店导入/导出"
,
component
:
v
()(
"contacts"
,
"storeIo"
)},{
path
:
"/storeInfo"
,
name
:
"编辑门店"
,
component
:
v
()(
"contacts"
,
"storeInfo"
)},{
path
:
"/recycle"
,
name
:
"门店回收站"
,
component
:
v
()(
"contacts"
,
"recycle"
)},{
path
:
"/employee"
,
name
:
"编辑员工"
,
component
:
v
()(
"contacts"
,
"employee"
)},{
path
:
"/unemployee"
,
name
:
"离职员工"
,
component
:
v
()(
"contacts"
,
"unemployee"
)},{
path
:
"/fileSet"
,
name
:
"档案设置"
,
component
:
v
()(
"contacts"
,
"fileSet"
)},{
path
:
"/recordInfo"
,
name
:
"编辑员工信息"
,
component
:
v
()(
"contacts"
,
"recordInfo"
)},{
path
:
"/recordIo"
,
name
:
"导入导出员工档案"
,
component
:
v
()(
"contacts"
,
"recordIo"
)},{
path
:
"/shareContact"
,
name
:
"共享通讯录"
,
component
:
v
()(
"contacts"
,
"shareContact"
)},{
path
:
"/shareCode"
,
name
:
"共享通讯录二维码"
,
component
:
v
()(
"contacts"
,
"shareCode"
)},{
path
:
"/employeeRecord"
,
name
:
"在职员工"
,
component
:
v
()(
"contacts"
,
"employeeRecord"
)}]},{
path
:
"/enterpriseApp"
,
name
:
"企业应用"
,
redirect
:
"appcenter"
,
component
:
v
()(
"enterpriseApp"
,
"index"
),
children
:[{
path
:
"/appcenter"
,
name
:
"企业应用中心"
,
component
:
v
()(
"enterpriseApp"
,
"appcenter"
)},{
path
:
"/mycustomer"
,
name
:
"我的顾客"
,
component
:
v
()(
"enterpriseApp"
,
"mycustomer"
)},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"customReport"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"taskDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
v
()(
"enterpriseApp/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/noticeList"
,
name
:
"企业公告"
,
redirect
:
"/noticeList"
,
component
:
v
()(
"enterpriseApp/notice"
,
"index"
),
children
:[{
path
:
"/noticeList"
,
name
:
"企业公告列表"
,
component
:
v
()(
"enterpriseApp/notice"
,
"noticeList"
)},{
path
:
"/addNotice"
,
name
:
"新建公告"
,
component
:
v
()(
"enterpriseApp/notice"
,
"addNotice"
)}]},{
path
:
"/badEvaluate"
,
name
:
"不良评价"
,
redirect
:
"/badEvaluateRecord"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"index"
),
children
:[{
path
:
"/badEvaluateRecord"
,
name
:
"不良评价记录"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateRecord"
)},{
path
:
"/badEvaluateDetail"
,
name
:
"不良评价详情"
,
component
:
v
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateDetail"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
v
()(
"enterpriseApp/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
v
()(
"enterpriseApp/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
v
()(
"enterpriseApp/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
v
()(
"enterpriseApp/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
v
()(
"enterpriseApp/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/signList"
,
name
:
"企业公告"
,
redirect
:
"/signList"
,
component
:
v
()(
"enterpriseApp/signApp"
,
"index"
),
children
:[{
path
:
"/signList"
,
name
:
"企业公告列表"
,
component
:
v
()(
"enterpriseApp/signApp"
,
"signList"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
v
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
v
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
v
()(
"reviewCenter"
,
"unreview"
)}]},{
path
:
"/setCenter"
,
name
:
"设置"
,
redirect
:
"companyAddress"
,
component
:
v
()(
"setting"
,
"index"
),
children
:[{
path
:
"/companyAddress"
,
name
:
"企业地址"
,
component
:
v
()(
"setting"
,
"companyAddress"
)},{
path
:
"/companyCertify"
,
name
:
"企业认证"
,
component
:
v
()(
"setting"
,
"companyCertify"
)},{
path
:
"/staffDetails"
,
name
:
"员工详情字段"
,
component
:
v
()(
"setting"
,
"staffDetails"
)},{
path
:
"/storePermission"
,
name
:
"门店权限设置"
,
component
:
v
()(
"setting"
,
"storePermission"
)},{
path
:
"/replaceAdmin"
,
name
:
"更换超级管理员"
,
component
:
v
()(
"setting"
,
"replaceAdmin"
)},{
path
:
"/setChildAdmin"
,
name
:
"设置子管理员"
,
component
:
v
()(
"setting"
,
"setChildAdmin"
)},{
path
:
"/addAdmin"
,
name
:
"添加管理员"
,
component
:
v
()(
"setting"
,
"addAdmin"
)},{
path
:
"/addAdminRole"
,
name
:
"添加管理员角色"
,
component
:
v
()(
"setting"
,
"addAdminRole"
)}]},{
path
:
"/staffRecordsTemplate"
,
name
:
"员工档案设置"
,
component
:
v
()(
"contacts"
,
"staffRecordsTemplate"
)},{
path
:
"/systemReportSet"
,
name
:
"系统报表设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"systemReportSet"
)},{
path
:
"/template"
,
name
:
"模板设置"
,
component
:
v
()(
"enterpriseApp/cloudDaily"
,
"template"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
h
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
h
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
h
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
y
=
new
u
.
a
({
routes
:
f
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
g
=
n
(
"zL8q"
),
k
=
n
.
n
(
g
),
D
=
n
(
"Rf8U"
),
x
=
n
.
n
(
D
),
R
=
n
(
"mtWM"
),
w
=
n
.
n
(
R
),
C
=
n
(
"bOdI"
),
b
=
n
.
n
(
C
),
I
=
n
(
"SJI6"
),
T
=
n
.
n
(
I
);
m
.
a
.
use
(
T
.
a
);
var
E
=
new
T
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
},
mutations
:(
A
=
{},
b
()(
A
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
A
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
A
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
A
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
A
)}),
S
=
(
n
(
"4qCZ"
),
n
(
"uKUT"
),
n
(
"Xcu2"
),
n
(
"TUaa"
)),
q
=
n
.
n
(
S
),
V
=
n
(
"tyqE"
),
L
=
n
.
n
(
V
),
P
=
n
(
"pRVe"
),
j
=
n
.
n
(
P
),
F
=
n
(
"SE7k"
),
G
=
n
.
n
(
F
),
N
=
n
(
"XsK6"
),
O
=
n
.
n
(
N
),
K
=
n
(
"QRL9"
),
z
=
n
.
n
(
K
),
H
=
n
(
"2Pnh"
),
J
=
n
.
n
(
H
),
M
=
n
(
"l9mu"
),
U
=
n
.
n
(
M
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
J
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
n
=
t
.
width
,
a
=
t
.
height
,
o
=
n
/
592.28
*
841.89
,
p
=
a
,
r
=
0
,
i
=
592.28
/
n
*
a
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
U
.
a
(
""
,
"pt"
,
"a4"
);
if
(
p
<
o
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
p
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
r
,
595.28
,
i
),
r
-=
841.89
,(
p
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}};
r
.
a
.
polyfill
(),
Vue
.
use
(
X
),
Vue
.
use
(
O
.
a
),
Vue
.
use
(
z
.
a
),
Vue
.
use
(
G
.
a
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
k
.
a
,{
size
:
"large"
}),
Vue
.
use
(
x
.
a
,
w
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
y
.
beforeEach
(
function
(
e
,
t
,
n
){
var
a
=
void
0
,
p
=
window
.
location
.
origin
;
a
=-
1
!=
p
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
p
,
localStorage
.
getItem
(
"userInfo"
)
||
w
.
a
.
get
(
a
+
"/haoban-manage-web/emp/get-user-info"
,{}).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
||
localStorage
.
setItem
(
"userInfo"
,
o
()(
t
.
result
))}).
catch
(
function
(
e
){
g
.
Message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
"/"
==
e
.
path
?
n
({
path
:
"/login"
}):
n
()}),
new
Vue
({
el
:
"#app"
,
router
:
y
,
store
:
E
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
n
){
var
a
=
{
"./contacts/addClerk.vue"
:[
"27o1"
,
0
,
21
],
"./contacts/addDepartment.vue"
:[
"HHRu"
,
0
,
16
],
"./contacts/addEmployee.vue"
:[
"00Sv"
,
48
],
"./contacts/addGroup.vue"
:[
"mPjx"
,
0
,
76
],
"./contacts/administrativeFrame.vue"
:[
"kLcy"
,
0
,
4
],
"./contacts/employee.vue"
:[
"AdJp"
,
0
,
39
],
"./contacts/employeeIo.vue"
:[
"Rwbg"
,
0
,
44
],
"./contacts/employeeRecord.vue"
:[
"zGJY"
,
0
,
8
],
"./contacts/fileSet.vue"
:[
"CSjr"
,
0
,
11
],
"./contacts/index.vue"
:[
"41Rh"
,
0
,
74
],
"./contacts/recordInfo.vue"
:[
"67iC"
,
0
,
13
],
"./contacts/recordIo.vue"
:[
"738z"
,
0
,
18
],
"./contacts/recycle.vue"
:[
"HkK0"
,
0
,
26
],
"./contacts/shareAddDepartment.vue"
:[
"q5Ri"
,
0
,
15
],
"./contacts/shareCode.vue"
:[
"JsWW"
,
0
,
64
],
"./contacts/shareContact.vue"
:[
"Gfms"
,
0
,
2
],
"./contacts/staffRecordsTemplate.vue"
:[
"lFAe"
,
0
,
75
],
"./contacts/storeFrame.vue"
:[
"7SJI"
,
0
,
6
],
"./contacts/storeInfo.vue"
:[
"h/6A"
,
0
,
67
],
"./contacts/storeIo.vue"
:[
"RHxA"
,
0
,
77
],
"./contacts/unemployee.vue"
:[
"TGrv"
,
0
,
14
],
"./download/index.vue"
:[
"ASGJ"
,
0
,
9
],
"./enterpriseApp/appcenter.vue"
:[
"yuVF"
,
0
,
29
],
"./enterpriseApp/badEvaluate/badEvaluateDetail.vue"
:[
"4m/B"
,
0
,
32
],
"./enterpriseApp/badEvaluate/badEvaluateRecord.vue"
:[
"r//C"
,
0
,
58
],
"./enterpriseApp/badEvaluate/badEvaluateSet.vue"
:[
"XzAK"
,
0
,
69
],
"./enterpriseApp/badEvaluate/index.vue"
:[
"W0k8"
,
0
,
36
],
"./enterpriseApp/cloudDaily/customReport.vue"
:[
"DxdI"
,
0
,
37
],
"./enterpriseApp/cloudDaily/dailyDetail.vue"
:[
"5nNU"
,
0
,
30
],
"./enterpriseApp/cloudDaily/dailyRecord.vue"
:[
"Ujni"
,
0
,
31
],
"./enterpriseApp/cloudDaily/index.vue"
:[
"Knd1"
,
0
,
73
],
"./enterpriseApp/cloudDaily/systemReport.vue"
:[
"Y8F9"
,
0
,
54
],
"./enterpriseApp/cloudDaily/systemReportSet.vue"
:[
"VE2c"
,
0
,
7
],
"./enterpriseApp/cloudDaily/taskAssign.vue"
:[
"5x7s"
,
0
,
46
],
"./enterpriseApp/cloudDaily/template.vue"
:[
"IA9l"
,
0
,
5
],
"./enterpriseApp/cloudDaily/template/block.vue"
:[
"PAYw"
,
72
],
"./enterpriseApp/cloudDaily/template/date-range.vue"
:[
"79Bk"
,
59
],
"./enterpriseApp/cloudDaily/template/image.vue"
:[
"H8Kg"
,
55
],
"./enterpriseApp/cloudDaily/template/input.vue"
:[
"s4D+"
,
57
],
"./enterpriseApp/cloudDaily/template/select.vue"
:[
"t0b0"
,
35
],
"./enterpriseApp/index.vue"
:[
"da9f"
,
49
],
"./enterpriseApp/mycustomer.vue"
:[
"cuIN"
,
0
,
43
],
"./enterpriseApp/notice/addNotice.vue"
:[
"G5PL"
,
0
,
3
],
"./enterpriseApp/notice/index.vue"
:[
"av/3"
,
0
,
47
],
"./enterpriseApp/notice/noticeList.vue"
:[
"OVYO"
,
0
,
22
],
"./enterpriseApp/quota/companyDaySet.vue"
:[
"xk7v"
,
0
,
71
],
"./enterpriseApp/quota/index.vue"
:[
"FB5x"
,
0
,
68
],
"./enterpriseApp/quota/monthList.vue"
:[
"ZxDn"
,
0
,
38
],
"./enterpriseApp/quota/monthTask.vue"
:[
"cK0D"
,
0
,
34
],
"./enterpriseApp/quota/monthTaskDetail.vue"
:[
"jMbb"
,
0
,
56
],
"./enterpriseApp/quota/salerMonthDetail.vue"
:[
"IKv2"
,
0
,
40
],
"./enterpriseApp/quota/storeMonthTask.vue"
:[
"kF1j"
,
0
,
60
],
"./enterpriseApp/signApp/index.vue"
:[
"Gk4o"
,
0
,
41
],
"./enterpriseApp/signApp/signList.vue"
:[
"kCy7"
,
0
,
66
],
"./enterpriseApp/trafficTask/index.vue"
:[
"e88N"
,
0
,
45
],
"./enterpriseApp/trafficTask/taskDetail.vue"
:[
"A33E"
,
0
,
53
],
"./enterpriseApp/trafficTask/taskRecord.vue"
:[
"iG3v"
,
0
,
42
],
"./enterpriseApp/trafficTask/trafficTaskSet.vue"
:[
"4H54"
,
0
,
62
],
"./errorPage/403.vue"
:[
"6XGN"
,
25
],
"./errorPage/404.vue"
:[
"AejC"
,
27
],
"./errorPage/500.vue"
:[
"FskK"
,
23
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
28
],
"./login/index.vue"
:[
"T+/8"
,
0
,
10
],
"./reviewCenter/index.vue"
:[
"+lem"
,
52
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
17
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
19
],
"./setting/addAdmin.vue"
:[
"rs/A"
,
0
,
51
],
"./setting/addAdminRole.vue"
:[
"fZsz"
,
0
,
70
],
"./setting/companyAddress.vue"
:[
"SKyE"
,
0
,
63
],
"./setting/companyCertify.vue"
:[
"3zYh"
,
0
,
12
],
"./setting/index.vue"
:[
"VlR1"
,
33
],
"./setting/replaceAdmin.vue"
:[
"ys9I"
,
0
,
61
],
"./setting/setChildAdmin.vue"
:[
"VqB7"
,
0
,
50
],
"./setting/staffDetails.vue"
:[
"Zyzf"
,
0
,
24
],
"./setting/storePermission.vue"
:[
"Xwfy"
,
0
,
20
],
"./sign/index.vue"
:[
"RQuk"
,
0
,
65
]};
function
o
(
e
){
var
t
=
a
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
n
.
e
)).
then
(
function
(){
return
n
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
a
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
43077fb326b227d79690
.js
→
dist/static/js/manifest.
0700ec8d324c899e45a5
.js
View file @
d3b9bec7
!
function
(
e
){
var
d
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
d
&&
d
(
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
=
{},
a
=
{
81
:
0
};
function
f
(
d
){
if
(
c
[
d
])
return
c
[
d
].
exports
;
var
a
=
c
[
d
]
=
{
i
:
d
,
l
:
!
1
,
exports
:{}};
return
e
[
d
].
call
(
a
.
exports
,
a
,
a
.
exports
,
f
),
a
.
l
=!
0
,
a
.
exports
}
f
.
e
=
function
(
e
){
var
d
=
a
[
e
];
if
(
0
===
d
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
d
)
return
d
[
2
];
var
c
=
new
Promise
(
function
(
c
,
f
){
d
=
a
[
e
]
=
[
c
,
f
]});
d
[
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
:
"4f8a57d44a06171c53f3"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"fdf82093764059c1200c"
,
3
:
"3282d88c1532d0ca9c9e"
,
4
:
"01be0f85b0acd6f1d6df"
,
5
:
"b4c96ac4faf7502b62f1"
,
6
:
"12282235c2ce7ff45d56"
,
7
:
"57af0bc90206c6098149"
,
8
:
"9bd56928cea92db3c119"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"956d97940afe04265b88"
,
11
:
"2d0a192288361dd95250"
,
12
:
"3d3797e96dc9e8cc5bd4"
,
13
:
"c01b6415e93d21d1c19f"
,
14
:
"d9f8f7e5598d599d6b6a"
,
15
:
"360a92075d219ac84088"
,
16
:
"bdc37aea4c14db4484c6"
,
17
:
"18d7b200f29fbb0cc9c8"
,
18
:
"abdaeaa2156762ec876d"
,
19
:
"2b9b49e18e64eeb57067"
,
20
:
"663ea5d2777417161410"
,
21
:
"b0e7348ff74371924c3b"
,
22
:
"ae3ca1d035af160b7832"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"e0b684b65d0dbf5d032b"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"e1b3c97634b8203082e4"
,
29
:
"a00a8b4033e1feddfe67"
,
30
:
"07a39afe8e9361ef44b8"
,
31
:
"8e77909f1af264b00346"
,
32
:
"ec0bbd85e6d55909453d"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"629893b7dd561b646232"
,
35
:
"d6f0ed32cea79ea624b3"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"4353ffce2e97d528bc9b"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"45b7d5b9dbe354877342"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"56b8d3d551364d7fcf73"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"28172dd8dbf35ac350fa"
,
45
:
"bfad77aa2ad556a32c7c"
,
46
:
"5e58d02bfb5d53a3e1b5"
,
47
:
"de0e290ed4c878d0c8c3"
,
48
:
"6d564387f233c08c800d"
,
49
:
"eec7bfd1339e83b6fbaf"
,
50
:
"100db538fff484dd15a0"
,
51
:
"2710eabc553efae96bbc"
,
52
:
"1604f87e176e9b354231"
,
53
:
"42705000b69211a7f7c9"
,
54
:
"0ec4dfcab9e82667bc72"
,
55
:
"4b30f436aa310224c29c"
,
56
:
"d314f0b594c371787d1b"
,
57
:
"bd1111dcf7321d41dfc1"
,
58
:
"0b7db83130f5e98d8d8c"
,
59
:
"9c18352c710f14a3d66d"
,
60
:
"a91050b5b99485f47ea9"
,
61
:
"574bada574060a38996c"
,
62
:
"2f343bde61cf6cf1f46b"
,
63
:
"038dd5957146c985c766"
,
64
:
"fa6912661e4aa582bced"
,
65
:
"9e73109e0288d419a92a"
,
66
:
"630e2da73073a213de7f"
,
67
:
"6ebaabb1bf8bdb208677"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"18ea446164b9b7002fde"
,
74
:
"3a4f20982bf349c4bf08"
,
75
:
"9d6001a41243544ee007"
,
76
:
"20c34513d3349ef2f6ee"
,
77
:
"9f9f5c7a26a4045cd5f7"
,
80
:
"c4a24f0beb29dbd2892a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
d
=
a
[
e
];
0
!==
d
&&
(
d
&&
d
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
f
.
m
=
e
,
f
.
c
=
c
,
f
.
d
=
function
(
e
,
d
,
c
){
f
.
o
(
e
,
d
)
||
Object
.
defineProperty
(
e
,
d
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
f
.
n
=
function
(
e
){
var
d
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
d
,
"a"
,
d
),
d
},
f
.
o
=
function
(
e
,
d
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
d
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
d
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
d
&&
d
(
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
=
{},
a
=
{
81
:
0
};
function
f
(
d
){
if
(
c
[
d
])
return
c
[
d
].
exports
;
var
a
=
c
[
d
]
=
{
i
:
d
,
l
:
!
1
,
exports
:{}};
return
e
[
d
].
call
(
a
.
exports
,
a
,
a
.
exports
,
f
),
a
.
l
=!
0
,
a
.
exports
}
f
.
e
=
function
(
e
){
var
d
=
a
[
e
];
if
(
0
===
d
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
d
)
return
d
[
2
];
var
c
=
new
Promise
(
function
(
c
,
f
){
d
=
a
[
e
]
=
[
c
,
f
]});
d
[
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
:
"52c14bd90f98515af27d"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"fdf82093764059c1200c"
,
3
:
"3282d88c1532d0ca9c9e"
,
4
:
"01be0f85b0acd6f1d6df"
,
5
:
"b4c96ac4faf7502b62f1"
,
6
:
"f23f1b5d7188825408f6"
,
7
:
"57af0bc90206c6098149"
,
8
:
"9bd56928cea92db3c119"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"956d97940afe04265b88"
,
11
:
"2d0a192288361dd95250"
,
12
:
"3d3797e96dc9e8cc5bd4"
,
13
:
"c01b6415e93d21d1c19f"
,
14
:
"d9f8f7e5598d599d6b6a"
,
15
:
"360a92075d219ac84088"
,
16
:
"bdc37aea4c14db4484c6"
,
17
:
"18d7b200f29fbb0cc9c8"
,
18
:
"abdaeaa2156762ec876d"
,
19
:
"2b9b49e18e64eeb57067"
,
20
:
"d5bc42e9568015f2689e"
,
21
:
"93b01771494d9916a557"
,
22
:
"ae3ca1d035af160b7832"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"e0b684b65d0dbf5d032b"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"e1b3c97634b8203082e4"
,
29
:
"a00a8b4033e1feddfe67"
,
30
:
"07a39afe8e9361ef44b8"
,
31
:
"8e77909f1af264b00346"
,
32
:
"ec0bbd85e6d55909453d"
,
33
:
"d649a5e4d061985d1c3a"
,
34
:
"629893b7dd561b646232"
,
35
:
"d6f0ed32cea79ea624b3"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"4353ffce2e97d528bc9b"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"45b7d5b9dbe354877342"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"56b8d3d551364d7fcf73"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"28172dd8dbf35ac350fa"
,
45
:
"bfad77aa2ad556a32c7c"
,
46
:
"5e58d02bfb5d53a3e1b5"
,
47
:
"de0e290ed4c878d0c8c3"
,
48
:
"6d564387f233c08c800d"
,
49
:
"eec7bfd1339e83b6fbaf"
,
50
:
"100db538fff484dd15a0"
,
51
:
"2710eabc553efae96bbc"
,
52
:
"1604f87e176e9b354231"
,
53
:
"42705000b69211a7f7c9"
,
54
:
"0ec4dfcab9e82667bc72"
,
55
:
"4b30f436aa310224c29c"
,
56
:
"d314f0b594c371787d1b"
,
57
:
"bd1111dcf7321d41dfc1"
,
58
:
"0b7db83130f5e98d8d8c"
,
59
:
"9c18352c710f14a3d66d"
,
60
:
"a91050b5b99485f47ea9"
,
61
:
"574bada574060a38996c"
,
62
:
"2f343bde61cf6cf1f46b"
,
63
:
"038dd5957146c985c766"
,
64
:
"fa6912661e4aa582bced"
,
65
:
"9e73109e0288d419a92a"
,
66
:
"630e2da73073a213de7f"
,
67
:
"6ebaabb1bf8bdb208677"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"18ea446164b9b7002fde"
,
74
:
"3a4f20982bf349c4bf08"
,
75
:
"9d6001a41243544ee007"
,
76
:
"20c34513d3349ef2f6ee"
,
77
:
"9f9f5c7a26a4045cd5f7"
,
80
:
"c4a24f0beb29dbd2892a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
d
=
a
[
e
];
0
!==
d
&&
(
d
&&
d
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
f
.
m
=
e
,
f
.
c
=
c
,
f
.
d
=
function
(
e
,
d
,
c
){
f
.
o
(
e
,
d
)
||
Object
.
defineProperty
(
e
,
d
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
f
.
n
=
function
(
e
){
var
d
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
d
,
"a"
,
d
),
d
},
f
.
o
=
function
(
e
,
d
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
d
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/common/vueSelectStore.vue
View file @
d3b9bec7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</div>
</div>
<div
class=
"search-tree"
v-show=
"searchText != ''"
>
<div
class=
"search-tree"
v-show=
"searchText != ''"
>
<el-tree
class=
"search-menu"
node-key=
"id"
ref=
"searchTree"
:check-strictly=
"true"
:data=
"searchTextData"
show-checkbox
:highlight-current=
"true"
:expand-on-click-node=
"false"
icon-class=
"open-child"
:props=
"myProps"
@
check
-change
=
"searchCheck"
>
<el-tree
class=
"search-menu"
node-key=
"id"
ref=
"searchTree"
:check-strictly=
"true"
:data=
"searchTextData"
show-checkbox
:highlight-current=
"true"
:expand-on-click-node=
"false"
icon-class=
"open-child"
:props=
"myProps"
@
check=
"searchCheck"
>
<span
class=
"custom-tree-node"
:class=
"data.disableOpen ? 'disable-open' : ''"
slot-scope=
"
{ node, data }">
<span
class=
"custom-tree-node"
:class=
"data.disableOpen ? 'disable-open' : ''"
slot-scope=
"
{ node, data }">
<span>
{{
data
.
label
}}
</span>
<span>
{{
data
.
label
}}
</span>
</span>
</span>
...
@@ -143,6 +143,7 @@ export default {
...
@@ -143,6 +143,7 @@ export default {
*/
*/
toInput
:
_debounce
(
function
(
e
,
value
)
{
toInput
:
_debounce
(
function
(
e
,
value
)
{
let
that
=
this
;
let
that
=
this
;
that
.
copyData
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectedList
));
if
(
value
==
''
)
{
if
(
value
==
''
)
{
return
false
;
return
false
;
}
}
...
@@ -167,15 +168,16 @@ export default {
...
@@ -167,15 +168,16 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
that
.
searchTextData
=
[];
//
that.searchTextData = [];
let
mergeData
=
[...
resData
.
result
.
departmentList
,
...
resData
.
result
.
storeList
,
...
resData
.
result
.
searchList
];
let
mergeData
=
[...
resData
.
result
.
departmentList
,
...
resData
.
result
.
storeList
,
...
resData
.
result
.
searchList
];
mergeData
.
forEach
(
ele
=>
{
mergeData
.
forEach
(
ele
=>
{
ele
.
label
=
ele
.
name
||
ele
.
storeName
;
// 新增
ele
.
label
=
ele
.
name
||
ele
.
storeName
;
// 新增
ele
.
id
=
ele
.
groupId
||
ele
.
storeId
||
ele
.
employeeClerkId
;
// 新增
ele
.
id
=
ele
.
groupId
||
ele
.
storeId
||
ele
.
employeeClerkId
;
// 新增
});
});
that
.
searchTextData
=
mergeData
;
that
.
searchTextData
=
mergeData
;
// console.log(that.selectedList);
that
.
$nextTick
(()
=>
{
that
.
$nextTick
(()
=>
{
that
.
$refs
.
searchTree
.
setCheckedNodes
(
that
.
copyData
);
// that.$refs.searchTree.setCheckedKeys(that.copyData.map(ele => ele.id)
);
});
});
}
else
{
}
else
{
errMsg
.
errorMsg
(
resData
);
errMsg
.
errorMsg
(
resData
);
...
@@ -285,32 +287,82 @@ export default {
...
@@ -285,32 +287,82 @@ export default {
// console.log('复选框状态变化:', data, ifChecked, son); // 之前会重复触发,原来是每次变化触发了监听 defaultList 方法
// console.log('复选框状态变化:', data, ifChecked, son); // 之前会重复触发,原来是每次变化触发了监听 defaultList 方法
let
that
=
this
;
let
that
=
this
;
data
.
disableOpen
=
ifChecked
;
data
.
disableOpen
=
ifChecked
;
that
.
$nextTick
(()
=>
{
if
(
ifChecked
)
{
that
.
selectedList
=
that
.
deleteRepeat
(
that
.
$refs
.
tree
.
getCheckedNodes
().
concat
(
that
.
$refs
.
searchTree
.
getCheckedNodes
()));
// 选择
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
that
.
$nextTick
(()
=>
{
let
index
=
that
.
selectedList
.
indexOf
(
data
);
// 有一个重复的问题
that
.
selectedList
.
splice
(
1
-
index
,
1
);
that
.
selectedList
.
push
(
data
);
that
.
$refs
.
tree
.
setCheckedNodes
(
that
.
selectedList
);
let
copySelectedList
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectedList
));
}
let
midData
=
[];
});
copySelectedList
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
id
!=
data
.
id
)
{
midData
.
push
(
ele
);
}
});
midData
.
push
(
data
);
that
.
selectedList
=
midData
;
// console.log(that.selectedList);
that
.
$refs
.
tree
.
setCheckedKeys
(
that
.
selectedList
.
map
(
ele
=>
ele
.
id
));
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
that
.
selectedList
=
[
data
];
that
.
$refs
.
tree
.
setCheckedKeys
([
data
.
id
]);
}
});
}
else
{
// 取消选择
that
.
$nextTick
(()
=>
{
let
copySelectedList
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectedList
));
let
midData
=
[];
copySelectedList
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
id
!=
data
.
id
)
{
midData
.
push
(
ele
);
}
});
that
.
selectedList
=
midData
;
that
.
$refs
.
tree
.
setCheckedKeys
(
that
.
selectedList
.
map
(
ele
=>
ele
.
id
));
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
that
.
selectedList
=
[];
}
});
}
},
100
),
},
100
),
/**
/**
* 搜索 tree 选择
* 搜索 tree 选择
*
*
*/
*/
searchCheck
:
_throttle
(
function
(
obj
,
isCheck
,
child
)
{
searchCheck
:
_throttle
(
function
(
obj
,
checkObj
)
{
let
that
=
this
;
let
that
=
this
;
// console.log(obj, isCheck, child);
if
(
checkObj
.
checkedKeys
.
includes
(
obj
.
id
))
{
that
.
$nextTick
(()
=>
{
that
.
selectedList
.
push
(
obj
);
that
.
selectedList
=
that
.
deleteRepeat
(
that
.
$refs
.
searchTree
.
getCheckedNodes
().
concat
(
that
.
$refs
.
tree
.
getCheckedNodes
()));
let
copySelectedList
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectedList
));
// 判断单选
let
midData
=
[];
copySelectedList
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
id
!=
obj
.
id
)
{
midData
.
push
(
ele
);
}
});
midData
.
push
(
obj
);
that
.
selectedList
=
midData
;
that
.
$refs
.
tree
.
setCheckedKeys
(
that
.
selectedList
.
map
(
ele
=>
ele
.
id
));
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
let
index
=
that
.
selectedList
.
indexOf
(
obj
);
that
.
selectedList
=
[
obj
];
that
.
selectedList
.
splice
(
1
-
index
,
1
);
that
.
$refs
.
tree
.
setCheckedKeys
([
obj
.
id
]);
that
.
$refs
.
searchTree
.
setCheckedNodes
(
that
.
selectedList
);
that
.
$refs
.
searchTree
.
setCheckedKeys
([
obj
.
id
]);
that
.
$refs
.
tree
.
setCheckedNodes
(
that
.
selectedList
);
}
}
});
}
else
{
let
copySelectedList
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectedList
));
let
midData
=
[];
copySelectedList
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
id
!=
obj
.
id
)
{
midData
.
push
(
ele
);
}
});
that
.
selectedList
=
midData
;
that
.
$refs
.
tree
.
setCheckedKeys
(
that
.
selectedList
.
map
(
ele
=>
ele
.
id
));
if
(
that
.
treeSet
.
isSingle
&&
that
.
selectedList
.
length
>
1
)
{
that
.
selectedList
=
[];
}
}
},
100
),
},
100
),
/**
/**
* 节点展开时,禁用复选框
* 节点展开时,禁用复选框
...
@@ -318,11 +370,11 @@ export default {
...
@@ -318,11 +370,11 @@ export default {
nodeOpen
(
data
,
node
)
{
nodeOpen
(
data
,
node
)
{
// 如果是第一级(顶级分组即品牌)展开下级,禁用复选框
// 如果是第一级(顶级分组即品牌)展开下级,禁用复选框
if
(
data
.
level
==
0
)
{
if
(
data
.
level
==
0
)
{
data
.
disabled
=
true
;
//
data.disabled = true;
}
}
// 如果不是第一级不是门店,展开下级,禁用复选框
// 如果不是第一级不是门店,展开下级,禁用复选框
if
(
data
.
level
!=
0
&&
data
.
type
!=
1
)
{
if
(
data
.
level
!=
0
&&
data
.
type
!=
1
)
{
data
.
disabled
=
true
;
//
data.disabled = true;
}
}
// 如果是首次追加的空数据,先把 childrens 清空;
// 如果是首次追加的空数据,先把 childrens 清空;
if
(
!!
data
.
childrens
.
length
&&
data
.
childrens
[
0
].
label
==
''
)
{
if
(
!!
data
.
childrens
.
length
&&
data
.
childrens
[
0
].
label
==
''
)
{
...
@@ -492,9 +544,9 @@ export default {
...
@@ -492,9 +544,9 @@ export default {
/**
/**
* 选择品牌
* 选择品牌
*/
*/
selectBrand
(
val
)
{
async
selectBrand
(
val
)
{
let
that
=
this
;
let
that
=
this
;
that
.
getSearchData
();
await
that
.
getSearchData
();
that
.
$nextTick
(()
=>
{
that
.
$nextTick
(()
=>
{
that
.
menuData
=
[
that
.
brands
[
val
]];
// 默认品牌数据为分组第一层数据
that
.
menuData
=
[
that
.
brands
[
val
]];
// 默认品牌数据为分组第一层数据
that
.
brands
[
val
].
hasLoad
=
true
;
that
.
brands
[
val
].
hasLoad
=
true
;
...
@@ -537,13 +589,14 @@ export default {
...
@@ -537,13 +589,14 @@ export default {
// 为了切换路由后可以重新选择品牌
// 为了切换路由后可以重新选择品牌
let
that
=
this
;
let
that
=
this
;
if
(
!!
that
.
currentBrand
)
{
if
(
!!
that
.
currentBrand
)
{
setTimeout
(()
=>
{
const
mountTime
=
setTimeout
(()
=>
{
that
.
brands
.
forEach
((
ele
,
index
)
=>
{
that
.
brands
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
id
==
that
.
currentBrand
)
{
// 目前有些问题,brands 中只有groupId ,没有 brandId
if
(
ele
.
id
==
that
.
currentBrand
)
{
// 目前有些问题,brands 中只有groupId ,没有 brandId
that
.
brandSelection
=
index
;
// 之前 that.brandSelection 都是取得索引值,不是 id 值
that
.
brandSelection
=
index
;
// 之前 that.brandSelection 都是取得索引值,不是 id 值
}
}
})
})
that
.
selectBrand
(
that
.
brandSelection
);
that
.
selectBrand
(
that
.
brandSelection
);
clearTimeout
(
mountTime
);
},
500
);
},
500
);
}
}
},
},
...
@@ -591,14 +644,15 @@ export default {
...
@@ -591,14 +644,15 @@ export default {
currentBrand
:
function
(
newData
,
oldData
)
{
currentBrand
:
function
(
newData
,
oldData
)
{
let
that
=
this
;
let
that
=
this
;
if
(
!!
newData
)
{
if
(
!!
newData
)
{
that
.
brands
.
forEach
((
ele
,
index
)
=>
{
let
currentTime
=
setTimeout
((
)
=>
{
if
(
ele
.
id
==
newData
)
{
// 目前有些问题,brands 中只有groupId ,没有 brandId
that
.
brands
.
forEach
((
ele
,
index
)
=>
{
that
.
brandSelection
=
index
;
// 之前 that.brandSelection 都是取得索引值,不是 id 值
if
(
ele
.
id
==
newData
)
{
// 目前有些问题,brands 中只有groupId ,没有 brandId
}
that
.
brandSelection
=
index
;
// 之前 that.brandSelection 都是取得索引值,不是 id 值
})
}
that
.
$nextTick
(
function
()
{
})
that
.
selectBrand
(
that
.
brandSelection
);
that
.
selectBrand
(
that
.
brandSelection
);
})
clearTimeout
(
currentTime
);
},
500
)
}
}
}
}
},
},
...
...
src/components/contacts/storeFrame/clerkInfo.vue
View file @
d3b9bec7
...
@@ -129,10 +129,8 @@ export default {
...
@@ -129,10 +129,8 @@ export default {
},
},
handleSelectedList
(
list
)
{
handleSelectedList
(
list
)
{
/* eslint-disable */
/* eslint-disable */
console
.
log
(
list
)
this
.
clerkInfo
.
storeName
=
!!
list
&&
!!
list
.
length
?
list
[
0
].
label
:
''
;
this
.
clerkInfo
.
storeName
=
!!
list
&&
!!
list
.
length
?
list
[
0
].
label
:
''
;
this
.
clerkInfo
.
storeId
=
!!
list
&&
!!
list
.
length
?
list
[
0
].
id
:
''
;
this
.
clerkInfo
.
storeId
=
!!
list
&&
!!
list
.
length
?
list
[
0
].
id
:
''
;
console
.
log
(
this
.
clerkInfo
);
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
/**
/**
...
...
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