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
857036eb
Commit
857036eb
authored
Oct 15, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改门店视图
parent
87da7bff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
7 deletions
+32
-7
index.html
dist/index.html
+2
-2
6.41136898d8d19a7f2916.js
dist/static/js/6.41136898d8d19a7f2916.js
+0
-2
6.6a834f62aa41ea5c742a.js
dist/static/js/6.6a834f62aa41ea5c742a.js
+2
-0
manifest.2f3470391414d00d1084.js
dist/static/js/manifest.2f3470391414d00d1084.js
+2
-2
storeFrame.vue
src/views/contacts/storeFrame.vue
+26
-1
No files found.
dist/index.html
View file @
857036eb
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.5dcfef030e83e0198d1273dbdd590046.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.09d00b151a1d60fbec8e.js
></script><script
type=
text/javascript
src=
./static/js/vendor.edfe69b49db0b6363a08.js
></script><script
type=
text/javascript
src=
./static/js/app.bde07d678e54852a7960.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.5dcfef030e83e0198d1273dbdd590046.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.2f3470391414d00d1084.js
></script><script
type=
text/javascript
src=
./static/js/vendor.edfe69b49db0b6363a08.js
></script><script
type=
text/javascript
src=
./static/js/app.bde07d678e54852a7960.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/6.41136898d8d19a7f2916.js
deleted
100644 → 0
View file @
87da7bff
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
u
=
a
(
"ATfr"
),
d
=
a
(
"P9l9"
),
p
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
)}}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组门店"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"asBg"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
d
.
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
;
if
(
1
==
t
.
isManager
)
return
!
1
;
t
.
isManager
=
1
,
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
isManager
=
0
,
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){
t
.
isManager
=
0
})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"设置成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
,
activationStatus
:
e
.
activationStatus
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
d
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
"1"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
"0"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&storeName="
+
t
.
row
.
storeName
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"680"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell flex-1"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
,
"white-space"
:
"pre-wrap"
,
"word-break"
:
"break-all"
}},[
e
.
_v
(
e
.
_s
(
r
.
name
))])]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone flex-1"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-code flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status flex-1"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle flex-1"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name flex-1"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone flex-1"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"code flex-1"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position flex-1"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status flex-1"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"operate flex-1"
},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"CNZL"
)},
"data-v-0d326ef6"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
d
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"t0BL"
)},
null
,
null
).
exports
,
k
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
u
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
k
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
S
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
,
this
.
getGroupData
()},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
(
r
=
a
).
tempSearchData
=
e
,
r
.
perId
=
e
.
employeeClerkId
,
r
.
userId
=
e
.
brandId
,
r
.
getStoreList
(
e
),
t
.
next
=
7
,
r
.
getGicData
();
case
7
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
getStoreList
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
e
?
e
.
storeGroupId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
x
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
L
,
x
,
!
1
,
function
(
e
){
a
(
"WlRQ"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"KvXJ"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
CNZL
:
function
(
e
,
t
){},
KvXJ
:
function
(
e
,
t
){},
SJ4E
:
function
(
e
,
t
){},
UYLh
:
function
(
e
,
t
){},
WlRQ
:
function
(
e
,
t
){},
asBg
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"SJ4E"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
o
=
a
(
"//Fk"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"mvHQ"
),
u
=
a
.
n
(
c
),
d
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
m
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
h
=
a
.
n
(
f
),
g
=
a
(
"l46T"
),
v
=
a
(
"Kkt8"
),
b
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
m
.
a
,
limitInput
:
g
.
a
,
limitTextarea
:
v
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
currentBrand
:
this
.
storeInfo
.
storeGroupId
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
JSON
.
parse
(
u
()(
this
.
storeInfo
)),
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
&&
e
.
storeInfo
.
closeTime
?
r
():
r
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
storeCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号码"
));
var
s
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
managerCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
l
()(
s
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
i
;
return
s
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
r
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
i
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
n
.
a
.
all
([
r
,
o
,
i
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
JSON
.
parse
(
u
()(
e
.
storeInfoData
)),
r
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
r
.
push
(
e
.
url
)}),
a
.
imageUrls
=
r
.
join
(
","
),
Object
(
d
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
e
.
imageUrls
=
a
,
e
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
u
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeName
,
holder
:
"请输入门店名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
storeInfoData
.
imageUrls
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
holder
:
"请输入门店地址"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入门店代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerName
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
specialService
,
holder
:
"请输入特色服务"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
personCost
,
holder
:
"请输入人均消费"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
recommendGoods
,
holder
:
"请输入推荐商品"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
brandDes
,
holder
:
"请输入品牌介绍"
,
getByType
:
"word"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
currentBrand
:
e
.
currentBrand
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"UYLh"
)},
null
,
null
);
t
.
a
=
_
.
exports
},
t0BL
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/6.6a834f62aa41ea5c742a.js
0 → 100644
View file @
857036eb
webpackJsonp
([
6
],{
"6i/b"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
u
=
a
(
"ATfr"
),
d
=
a
(
"P9l9"
),
p
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
)}}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组门店"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"asBg"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
d
.
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
;
if
(
1
==
t
.
isManager
)
return
!
1
;
t
.
isManager
=
1
,
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
isManager
=
0
,
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){
t
.
isManager
=
0
})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"设置成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
,
activationStatus
:
e
.
activationStatus
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
d
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
"1"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
"0"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&storeName="
+
t
.
row
.
storeName
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"680"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell flex-1"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
,
"white-space"
:
"pre-wrap"
,
"word-break"
:
"break-all"
}},[
e
.
_v
(
e
.
_s
(
r
.
name
))])]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone flex-1"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-code flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status flex-1"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle flex-1"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name flex-1"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone flex-1"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"code flex-1"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position flex-1"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status flex-1"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"operate flex-1"
},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"CNZL"
)},
"data-v-0d326ef6"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
d
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"t0BL"
)},
null
,
null
).
exports
,
k
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
u
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
k
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
S
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
,
this
.
getGroupData
()},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
(
r
=
a
).
tempSearchData
=
e
,
r
.
perId
=
e
.
employeeClerkId
,
r
.
userId
=
e
.
brandId
,
r
.
getStoreList
(
e
),
t
.
next
=
7
,
r
.
getGicData
();
case
7
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
groupInfo
.
departmentId
=
e
.
storeGroupId
,
this
.
getGroupInfo
(
e
.
storeGroupId
),
this
.
getStoreList
(
e
)},
getGroupInfo
:
function
(
e
){
var
t
=
this
,
a
=
{
groupId
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/dept/findDeptById"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
groupInfo
.
groupName
=
e
.
data
.
result
.
name
,
t
.
groupInfo
.
level
=
e
.
data
.
result
.
level
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
e
?
e
.
storeGroupId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
x
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
L
,
x
,
!
1
,
function
(
e
){
a
(
"6i/b"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"KvXJ"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
CNZL
:
function
(
e
,
t
){},
KvXJ
:
function
(
e
,
t
){},
SJ4E
:
function
(
e
,
t
){},
UYLh
:
function
(
e
,
t
){},
asBg
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"SJ4E"
)},
null
,
null
);
t
.
a
=
d
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
o
=
a
(
"//Fk"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"mvHQ"
),
u
=
a
.
n
(
c
),
d
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
m
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
h
=
a
.
n
(
f
),
g
=
a
(
"l46T"
),
v
=
a
(
"Kkt8"
),
b
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
m
.
a
,
limitInput
:
g
.
a
,
limitTextarea
:
v
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
currentBrand
:
this
.
storeInfo
.
storeGroupId
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
JSON
.
parse
(
u
()(
this
.
storeInfo
)),
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
&&
e
.
storeInfo
.
closeTime
?
r
():
r
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
storeCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号码"
));
var
s
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
managerCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
l
()(
s
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
i
;
return
s
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
r
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
i
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
n
.
a
.
all
([
r
,
o
,
i
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
JSON
.
parse
(
u
()(
e
.
storeInfoData
)),
r
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
r
.
push
(
e
.
url
)}),
a
.
imageUrls
=
r
.
join
(
","
),
Object
(
d
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
e
.
imageUrls
=
a
,
e
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
u
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeName
,
holder
:
"请输入门店名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
storeInfoData
.
imageUrls
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
holder
:
"请输入门店地址"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入门店代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerName
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
specialService
,
holder
:
"请输入特色服务"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
personCost
,
holder
:
"请输入人均消费"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
recommendGoods
,
holder
:
"请输入推荐商品"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
brandDes
,
holder
:
"请输入品牌介绍"
,
getByType
:
"word"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
currentBrand
:
e
.
currentBrand
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"UYLh"
)},
null
,
null
);
t
.
a
=
_
.
exports
},
t0BL
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
09d00b151a1d60fbec8e
.js
→
dist/static/js/manifest.
2f3470391414d00d1084
.js
View file @
857036eb
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
f
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
82
:
0
};
function
d
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
a
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
d
),
a
.
l
=!
0
,
a
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
d
){
c
=
a
[
e
]
=
[
f
,
d
]});
c
[
2
]
=
f
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"f1a4e987923def348c64"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"8395d509643f9050abf2"
,
3
:
"a6ed24739d348fdb0720"
,
4
:
"bb1e76ff09fd35ac7977"
,
5
:
"45c2de5cc6177f0c2c94"
,
6
:
"41136898d8d19a7f2916"
,
7
:
"d1e90f61da5d9a61970b"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"93700fe8139e670391cb"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"5ff8e6bfa5229f0cc4a5"
,
12
:
"0fa9e20f2bdacbcea112"
,
13
:
"9e506d54cdba12c2e790"
,
14
:
"2418ce50b68a710ea982"
,
15
:
"f5c123ee9d3b568ec3ab"
,
16
:
"7baf4f32fc538710e826"
,
17
:
"7871abe213e0b8ed1de0"
,
18
:
"a4da9ca6924d9eeef493"
,
19
:
"668853a66590f0293dff"
,
20
:
"f16230f4c8ec98d9b1cf"
,
21
:
"a5179fb200817e04c3d4"
,
22
:
"8797d6dd1dc244338e63"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"3ae82214b65939d3d2e0"
,
25
:
"7fb3c35f8744d169948f"
,
26
:
"6edcfae9732c7cc8dc3e"
,
27
:
"f9eb8425e9bc9c62cc23"
,
28
:
"140ad99228544036c969"
,
29
:
"917a8e756aeaf2086d1c"
,
30
:
"744556205cec828a76ea"
,
31
:
"d81ddf1fefcc1d3a47a7"
,
32
:
"f16a9c1d7d41282b0c79"
,
33
:
"fb15c42c766ddc6cc1be"
,
34
:
"7ce5b9bc76c9f4edd546"
,
35
:
"35b567009e4ba9a5816b"
,
36
:
"fec31c60594287a3e052"
,
37
:
"4fb3a95cbffb8a1ffc07"
,
38
:
"7da020455236ec9cc0e6"
,
39
:
"15d26bb7dbb61687ff18"
,
40
:
"eee91e60652d480f2f07"
,
41
:
"b49ca24a7f2842610cd5"
,
42
:
"0e58ab95080bcc4df5cf"
,
43
:
"4046191fdd891ae5f85a"
,
44
:
"7551d839084cf2a421ea"
,
45
:
"5e37827888b66626cf85"
,
46
:
"72b62e14ef88e73c8722"
,
47
:
"b46b54529745d9b83a23"
,
48
:
"4327d27183217fc3efcd"
,
49
:
"89f7e6818cad5f518362"
,
50
:
"5dd6553b73a0c68d6c32"
,
51
:
"f4890fcbb5225ce39528"
,
52
:
"f75812b6be04556a8914"
,
53
:
"691b37ea66a7d1045f01"
,
54
:
"6fcfa7c3e0c269d06e47"
,
55
:
"d9617fb11eb15186b28e"
,
56
:
"b89876f59d4e4966e655"
,
57
:
"281970fcbb06c8d23158"
,
58
:
"3f72f09028b158b7f7ac"
,
59
:
"fb07a55acf1bc63162ad"
,
60
:
"d5656c812ecc4a3ebf19"
,
61
:
"0c43a88e30632bd3a3aa"
,
62
:
"518a8e08f0bc605416ae"
,
63
:
"08e2efb5c655dddc9d6f"
,
64
:
"c92b9cd27e5d1b51280b"
,
65
:
"647689488ac42762cd8a"
,
66
:
"b0337efe66bc49dab26a"
,
67
:
"8ec5c06ff870186a6459"
,
68
:
"bad812977f20be800fbd"
,
69
:
"043a9ff888724ef485e5"
,
70
:
"ba1dca067cd9ca2181b7"
,
71
:
"74c8ed41b4c317f93b41"
,
72
:
"23018d5b885323795371"
,
73
:
"749c430a694d4f9d4c17"
,
74
:
"1c7b042a899c0dff465f"
,
75
:
"291656b59e1107466939"
,
76
:
"68785c01c3049bfb66cd"
,
77
:
"a7085591a8256fc5abef"
,
78
:
"e0c61a4d30aa1232772c"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
f
},
d
.
m
=
e
,
d
.
c
=
f
,
d
.
d
=
function
(
e
,
c
,
f
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
f
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
82
:
0
};
function
d
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
a
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
d
),
a
.
l
=!
0
,
a
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
d
){
c
=
a
[
e
]
=
[
f
,
d
]});
c
[
2
]
=
f
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"f1a4e987923def348c64"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"8395d509643f9050abf2"
,
3
:
"a6ed24739d348fdb0720"
,
4
:
"bb1e76ff09fd35ac7977"
,
5
:
"45c2de5cc6177f0c2c94"
,
6
:
"6a834f62aa41ea5c742a"
,
7
:
"d1e90f61da5d9a61970b"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"93700fe8139e670391cb"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"5ff8e6bfa5229f0cc4a5"
,
12
:
"0fa9e20f2bdacbcea112"
,
13
:
"9e506d54cdba12c2e790"
,
14
:
"2418ce50b68a710ea982"
,
15
:
"f5c123ee9d3b568ec3ab"
,
16
:
"7baf4f32fc538710e826"
,
17
:
"7871abe213e0b8ed1de0"
,
18
:
"a4da9ca6924d9eeef493"
,
19
:
"668853a66590f0293dff"
,
20
:
"f16230f4c8ec98d9b1cf"
,
21
:
"a5179fb200817e04c3d4"
,
22
:
"8797d6dd1dc244338e63"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"3ae82214b65939d3d2e0"
,
25
:
"7fb3c35f8744d169948f"
,
26
:
"6edcfae9732c7cc8dc3e"
,
27
:
"f9eb8425e9bc9c62cc23"
,
28
:
"140ad99228544036c969"
,
29
:
"917a8e756aeaf2086d1c"
,
30
:
"744556205cec828a76ea"
,
31
:
"d81ddf1fefcc1d3a47a7"
,
32
:
"f16a9c1d7d41282b0c79"
,
33
:
"fb15c42c766ddc6cc1be"
,
34
:
"7ce5b9bc76c9f4edd546"
,
35
:
"35b567009e4ba9a5816b"
,
36
:
"fec31c60594287a3e052"
,
37
:
"4fb3a95cbffb8a1ffc07"
,
38
:
"7da020455236ec9cc0e6"
,
39
:
"15d26bb7dbb61687ff18"
,
40
:
"eee91e60652d480f2f07"
,
41
:
"b49ca24a7f2842610cd5"
,
42
:
"0e58ab95080bcc4df5cf"
,
43
:
"4046191fdd891ae5f85a"
,
44
:
"7551d839084cf2a421ea"
,
45
:
"5e37827888b66626cf85"
,
46
:
"72b62e14ef88e73c8722"
,
47
:
"b46b54529745d9b83a23"
,
48
:
"4327d27183217fc3efcd"
,
49
:
"89f7e6818cad5f518362"
,
50
:
"5dd6553b73a0c68d6c32"
,
51
:
"f4890fcbb5225ce39528"
,
52
:
"f75812b6be04556a8914"
,
53
:
"691b37ea66a7d1045f01"
,
54
:
"6fcfa7c3e0c269d06e47"
,
55
:
"d9617fb11eb15186b28e"
,
56
:
"b89876f59d4e4966e655"
,
57
:
"281970fcbb06c8d23158"
,
58
:
"3f72f09028b158b7f7ac"
,
59
:
"fb07a55acf1bc63162ad"
,
60
:
"d5656c812ecc4a3ebf19"
,
61
:
"0c43a88e30632bd3a3aa"
,
62
:
"518a8e08f0bc605416ae"
,
63
:
"08e2efb5c655dddc9d6f"
,
64
:
"c92b9cd27e5d1b51280b"
,
65
:
"647689488ac42762cd8a"
,
66
:
"b0337efe66bc49dab26a"
,
67
:
"8ec5c06ff870186a6459"
,
68
:
"bad812977f20be800fbd"
,
69
:
"043a9ff888724ef485e5"
,
70
:
"ba1dca067cd9ca2181b7"
,
71
:
"74c8ed41b4c317f93b41"
,
72
:
"23018d5b885323795371"
,
73
:
"749c430a694d4f9d4c17"
,
74
:
"1c7b042a899c0dff465f"
,
75
:
"291656b59e1107466939"
,
76
:
"68785c01c3049bfb66cd"
,
77
:
"a7085591a8256fc5abef"
,
78
:
"e0c61a4d30aa1232772c"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
f
},
d
.
m
=
e
,
d
.
c
=
f
,
d
.
d
=
function
(
e
,
c
,
f
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/contacts/storeFrame.vue
View file @
857036eb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2019-10-15 1
5:49:1
2
* @LastEditTime: 2019-10-15 1
6:50:5
2
-->
-->
<
template
>
<
template
>
<div
class=
"common-set-wrap store-frame-wrap"
>
<div
class=
"common-set-wrap store-frame-wrap"
>
...
@@ -204,6 +204,8 @@ export default {
...
@@ -204,6 +204,8 @@ export default {
handleStoreSelection
(
store
,
type
)
{
handleStoreSelection
(
store
,
type
)
{
const
that
=
this
;
const
that
=
this
;
that
.
tempSearchData
=
store
;
that
.
tempSearchData
=
store
;
that
.
groupInfo
.
departmentId
=
store
.
storeGroupId
;
that
.
getGroupInfo
(
store
.
storeGroupId
);
that
.
getStoreList
(
store
);
that
.
getStoreList
(
store
);
/* let params = { storeId: store.storeId };
/* let params = { storeId: store.storeId };
getRequest('/haoban-manage-web/store/findStoreById', params).then(res => {
getRequest('/haoban-manage-web/store/findStoreById', params).then(res => {
...
@@ -220,6 +222,29 @@ export default {
...
@@ -220,6 +222,29 @@ export default {
}
}
}); */
}); */
},
},
getGroupInfo
(
groupId
)
{
// 获取门店信息
const
that
=
this
;
let
params
=
{
groupId
:
groupId
};
getRequest
(
'/haoban-manage-web/dept/findDeptById'
,
params
)
.
then
(
res
=>
{
if
(
res
.
data
.
errorCode
==
1
)
{
that
.
groupInfo
.
groupName
=
res
.
data
.
result
.
name
;
that
.
groupInfo
.
level
=
res
.
data
.
result
.
level
;
}
else
{
that
.
$message
.
error
({
message
:
res
.
data
.
message
});
}
})
.
catch
(
e
=>
{
that
.
$message
.
error
({
message
:
e
.
message
});
});
},
handleSizeChange
(
size
)
{
handleSizeChange
(
size
)
{
this
.
pageSize
=
size
;
this
.
pageSize
=
size
;
this
.
getStoreList
();
this
.
getStoreList
();
...
...
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