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
9a7cd6ab
Commit
9a7cd6ab
authored
Sep 06, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改样式和bug
parent
b228d75d
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
18 deletions
+23
-18
index.js
config/index.js
+1
-1
proxyList.js
config/proxyList.js
+3
-3
index.html
dist/index.html
+2
-2
app.7f025a684d12e4246a555c261ed0f3c9.css
dist/static/css/app.7f025a684d12e4246a555c261ed0f3c9.css
+0
-0
15.92854409541cf66d1361.js
dist/static/js/15.92854409541cf66d1361.js
+2
-2
6.864d62ab6b379f7b0f55.js
dist/static/js/6.864d62ab6b379f7b0f55.js
+0
-2
6.a833ce8868ce70c6219e.js
dist/static/js/6.a833ce8868ce70c6219e.js
+2
-0
8.4210ed7b336c1bcfc531.js
dist/static/js/8.4210ed7b336c1bcfc531.js
+2
-2
manifest.9694efd06783188973e1.js
dist/static/js/manifest.9694efd06783188973e1.js
+2
-2
clerkView.vue
src/components/contacts/storeFrame/clerkView.vue
+8
-3
employeeList.vue
src/components/employeeRecord/employeeList.vue
+1
-1
No files found.
config/index.js
View file @
9a7cd6ab
...
...
@@ -10,7 +10,7 @@ module.exports = {
// Paths
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{},
//
proxyConfig.proxyList,
proxyTable
:
proxyConfig
.
proxyList
,
// Various Dev Server settings
// host: '0.0.0.0', // can be overwritten by process.env.HOST
...
...
config/proxyList.js
View file @
9a7cd6ab
module
.
exports
=
{
proxyList
:
{
'/
api-auth
/'
:
{
target
:
'http
://gicdev.demogic.com/api-auth
/'
,
'/
haoban-manage-web
/'
:
{
target
:
'http
s://www.gicdev.com/haoban-manage-web
/'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/
api-auth
'
:
''
'^/
haoban-manage-web
'
:
''
}
},
'/api-admin/'
:
{
...
...
dist/index.html
View file @
9a7cd6ab
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.52e8641459134e5ba069a3277de408b1.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.9b1e4bb94dc95351954d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.bea79e4d35b85719c4de.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.7f025a684d12e4246a555c261ed0f3c9.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.9694efd06783188973e1.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.bea79e4d35b85719c4de.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
52e8641459134e5ba069a3277de408b1
.css
→
dist/static/css/app.
7f025a684d12e4246a555c261ed0f3c9
.css
View file @
9a7cd6ab
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/15.
ed6f2f9ae725367ccfc3
.js
→
dist/static/js/15.
92854409541cf66d1361
.js
View file @
9a7cd6ab
webpackJsonp
([
15
],{
NNAT
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"fZjL"
),
i
=
a
.
n
(
o
),
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
n
=
a
(
"P9l9"
),
l
=
a
(
"Xxa5"
),
c
=
a
.
n
(
l
),
d
=
a
(
"exGp"
),
p
=
a
.
n
(
d
),
u
=
a
(
"0xDb"
),
h
=
a
(
"unF8"
),
m
=
a
(
"Ch4/"
),
f
=
{
name
:
"list-item"
,
props
:{
item
:{
type
:
String
,
required
:
!
0
}},
filters
:{
formatDate
:
u
.
b
},
data
:
function
(){
return
{
typeList
:[
"全部"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
statusList
:[
"全部"
,
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
propList
:{
headPic
:{
label
:
""
,
slot
:
!
0
,
width
:
50
},
clerkName
:{
label
:
"姓名"
,
width
:
90
},
clerkPhone
:{
label
:
"手机号"
},
groupName
:{
label
:
"部门"
},
clerkCode
:{
label
:
"code"
},
positionName
:{
label
:
"职位"
},
clerkType
:{
label
:
"员工类型"
,
slot
:
!
0
},
clerkStatus
:{
label
:
"员工状态"
,
slot
:
!
0
},
hireDate
:{
label
:
"入职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
correctionDate
:{
label
:
"转正日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireDate
:{
label
:
"离职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireReason
:{
label
:
"离职原因"
,
slot
:
!
0
},
handleEmployee
:{
label
:
"操作"
,
slot
:
!
0
},
handleUnEmployee
:{
label
:
"操作"
,
slot
:
!
0
}}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
callHandle
:
function
(
e
){
if
(
"编辑员工资料"
!=
e
.
typeTitle
)
this
.
$emit
(
"callHandle"
,
e
.
obj
,
e
.
type
,
e
.
typeTitle
);
else
{
var
t
=
"/recordInfo?recordId="
+
e
.
obj
.
recordId
;
this
.
changeRouter
(
t
)}},
getGicData
:
function
(
e
){
var
t
=
this
;
return
p
()(
c
.
a
.
mark
(
function
a
(){
var
o
,
i
,
s
,
r
;
return
c
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
o
=
t
,
i
=
{
type
:
3
,
businessId
:
e
.
obj
.
recordId
},
a
.
next
=
4
,
Object
(
h
.
a
)(
i
);
case
4
:
if
(
s
=
a
.
sent
,
1
!=
(
r
=
s
.
data
).
errorCode
){
a
.
next
=
12
;
break
}
if
(
!
r
.
result
){
a
.
next
=
10
;
break
}
return
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
"已经与 GIC 门店同步,暂无操作权限"
}),
a
.
abrupt
(
"return"
,
!
1
);
case
10
:
a
.
next
=
13
;
break
;
case
12
:
m
.
a
.
errorMsg
(
r
);
case
13
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()}},
mounted
:
function
(){}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
e
.
propList
[
e
.
item
].
slot
?
a
(
"el-table-column"
,{
attrs
:{
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
sortable
:
e
.
propList
[
e
.
item
].
needSort
,
prop
:
e
.
item
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"clerkType"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeList
[
t
.
row
[
e
.
item
]
||
5
])
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"clerkStatus"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
statusList
[
t
.
row
[
e
.
item
]]
||
"无状态"
)
+
"
\
n "
)]):
"hireDate"
==
e
.
item
||
"correctionDate"
==
e
.
item
||
"fireDate"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
row
[
e
.
item
],
"YY-MM-DD"
)
||
"--"
)
+
"
\
n "
)]):
"headPic"
==
e
.
item
?
a
(
"div"
,[
t
.
row
[
e
.
item
]?
a
(
"img"
,{
staticClass
:
"header-pic"
,
attrs
:{
src
:
t
.
row
[
e
.
item
]}}):
a
(
"div"
,{
staticClass
:
"replace-head-img"
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]):
"fireReason"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
reasons
[
t
.
row
[
e
.
item
]]
||
"--"
)
+
"
\
n "
)]):
"handleEmployee"
==
e
.
item
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-handle"
},[
a
(
"el-dropdown"
,{
staticClass
:
"more"
,
on
:{
command
:
e
.
callHandle
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
e
.
_v
(
" 更多"
),
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
2
==
t
.
row
.
clerkStatus
?[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"turnPositive"
,
typeTitle
:
"办理转正"
}}},[
e
.
_v
(
"办理转正"
)]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"eidtCorrectionTime"
,
typeTitle
:
"修改转正时间"
}}},[
e
.
_v
(
"修改转正时间"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"editEmployee"
,
typeTitle
:
"编辑员工资料"
}}},[
e
.
_v
(
"编辑员工资料"
)]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"resignation"
,
typeTitle
:
"办理离职"
}}},[
e
.
_v
(
"办理离职"
)])],
2
)],
1
)],
1
)]):
"handleUnEmployee"
==
e
.
item
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/recordInfo?recordId="
+
t
.
row
.
recordId
+
"&type=unemployee"
)}}},[
e
.
_v
(
"编辑"
)])])]):
e
.
_e
()]}}])}):
"clerkPhone"
!=
e
.
item
?
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
}}):
"clerkPhone"
==
e
.
item
?
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
||
null
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}):
e
.
_e
()},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
f
,
y
,
!
1
,
function
(
e
){
a
(
"yjiq"
)},
null
,
null
).
exports
,
v
=
a
(
"IVno"
),
S
=
a
(
"Ie7z"
),
k
=
a
(
"c4uw"
),
b
=
{
name
:
"employeeRecordList"
,
props
:{
isUnEmployee
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
listItem
:
g
,
handleDialog
:
v
.
a
,
vueSelectStore
:
S
.
a
,
vueSelectEmployee
:
k
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
160
,
pickerOptions2
:{
shortcuts
:[{
text
:
"最近一周"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
6048
e5
),
e
.
$emit
(
"pick"
,[
a
,
t
])}},{
text
:
"最近一个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
2592
e6
),
e
.
$emit
(
"pick"
,[
a
,
t
])}},{
text
:
"最近三个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
7776
e6
),
e
.
$emit
(
"pick"
,[
a
,
t
])}}]},
employeeList
:[],
pageNum
:
1
,
pageSize
:
20
,
sortType
:
"desc"
,
sortColumn
:
"hireDate"
,
statusList
:[{
label
:
"全部状态"
,
id
:
"0"
},{
label
:
"正式"
,
id
:
"1"
},{
label
:
"试用"
,
id
:
"2"
},{
label
:
"无状态"
,
id
:
"-1"
}],
typeLsit
:[
"全部类型"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
clerkType
:
0
,
clerkStatus
:
"0"
,
total
:
0
,
handleType
:
"turnPositive"
,
typeTitle
:
""
,
dialogVisible
:
!
1
,
employeeObj
:{},
fireDate
:[],
startDate
:
""
,
endDate
:
""
,
showSelector
:
!
0
,
searchParam
:
""
,
departMentSet
:{},
storeSet
:{},
treeData
:{},
selectionList
:[],
disabled
:
!
0
,
chooseClerkIdList
:[],
chooseGroupIdList
:[],
chooseStoreIdList
:[],
adDefaultSelection
:[],
changed
:
0
,
defaultStoreList
:[],
treeSetDepart
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
treeSetStore
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
}}},
methods
:{
searchFn
:
function
(){
this
.
getEmloyeeList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
n
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
a
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
a
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callSelector
:
function
(){
this
.
treeSetDepart
.
dialogVisible
=!
0
},
callStoreSelector
:
function
(){
this
.
treeSetStore
.
dialogVisible
=!
0
},
showExportSet
:
function
(){
if
(
this
.
isUnEmployee
){
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
);
var
t
=
0
==
this
.
clerkType
?
""
:
this
.
clerkType
;
location
.
href
=
e
+
"/haoban-manage-web/record/export-fire-employee-record?clerkType="
+
t
+
"&sortType="
+
this
.
sortType
+
"&sortColumn="
+
this
.
sortColumn
+
"&startDate="
+
this
.
startDate
+
"&endDate="
+
this
.
endDate
+
"&searchParam="
+
this
.
searchParam
+
"&chooseClerkIdList="
+
this
.
chooseClerkIdList
.
join
(
","
)
+
"&chooseGroupIdList="
+
this
.
chooseGroupIdList
.
join
(
","
)
+
"&chooseStoreIdList="
+
this
.
chooseStoreIdList
.
join
(
","
)}
else
this
.
$emit
(
"showExportSetFn"
)},
handleSelectedList
:
function
(
e
){
this
.
adDefaultSelection
=
e
||
[],
this
.
concatList
()},
handleStoreSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
||
[],
this
.
concatList
()},
concatList
:
function
(){
this
.
selectionList
=
this
.
adDefaultSelection
.
concat
(
this
.
defaultStoreList
),
this
.
formatSelectionList
(
this
.
selectionList
)},
formatSelectionList
:
function
(
e
){
var
t
=
this
,
a
=
t
.
unique
(
e
);
t
.
selectionList
=
a
,
t
.
chooseClerkIdList
=
[],
t
.
chooseStoreIdList
=
[],
t
.
chooseGroupIdList
=
[],
a
.
length
&&
a
.
forEach
(
function
(
e
){
1
==
e
.
type
?
t
.
chooseClerkIdList
.
push
(
e
.
employeeClerkId
):
3
==
e
.
type
?
t
.
chooseStoreIdList
.
push
(
e
.
storeId
):
2
==
e
.
type
&&
t
.
chooseGroupIdList
.
push
(
e
.
groupId
)}),
t
.
pageNum
=
1
,
t
.
getEmloyeeList
()},
unique
:
function
(
e
){
var
t
=
{};
return
e
.
forEach
(
function
(
e
){
t
[
r
()(
e
)]
=
e
}),
e
=
i
()(
t
).
map
(
function
(
e
){
return
JSON
.
parse
(
e
)})},
delSld
:
function
(
e
,
t
){
var
a
=
this
,
o
=
a
.
selectionList
.
indexOf
(
e
);
a
.
selectionList
.
splice
(
o
,
1
),(
3
==
e
.
type
||
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
1
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
1
==
e
.
isClerk
)
&&
a
.
defaultStoreList
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
a
.
defaultStoreList
.
splice
(
o
,
1
)}),(
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
0
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
0
==
e
.
isClerk
)
&&
a
.
adDefaultSelection
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
a
.
adDefaultSelection
.
splice
(
o
,
1
)}),
a
.
formatSelectionList
(
a
.
selectionList
),
a
.
changed
+=
1
},
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
getEmloyeeList
()},
callHandle
:
function
(
e
,
t
,
a
){
this
.
handleType
=
t
,
this
.
employeeObj
=
e
,
this
.
typeTitle
=
a
,
this
.
dialogVisible
=!
0
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmloyeeList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNum
=
e
,
this
.
getEmloyeeList
()},
sortList
:
function
(
e
){
this
.
sortColumn
=
e
.
prop
,
this
.
sortType
=
"descending"
==
e
.
order
?
"desc"
:
"asc"
,
this
.
getEmloyeeList
()},
reGetList
:
function
(){
this
.
getEmloyeeList
()},
getEmloyeeList
:
function
(){
var
e
=
this
,
t
=
e
.
isUnEmployee
,
a
=
t
?
"/haoban-manage-web/record/find-fire-employee-record-page"
:
"/haoban-manage-web/record/find-on-work-employee-record-page"
,
o
=
{
pageNum
:
e
.
pageNum
,
chooseClerkIdList
:
e
.
chooseClerkIdList
.
join
(
","
),
chooseGroupIdList
:
e
.
chooseGroupIdList
.
join
(
","
),
chooseStoreIdList
:
e
.
chooseStoreIdList
.
join
(
","
),
pageSize
:
e
.
pageSize
,
sortType
:
e
.
sortType
,
clerkStatus
:
0
==
e
.
clerkStatus
?
""
:
e
.
clerkStatus
,
sortColumn
:
e
.
sortColumn
,
clerkType
:
0
==
e
.
clerkType
?
""
:
e
.
clerkType
,
startDate
:
e
.
startDate
,
endDate
:
e
.
endDate
,
searchParam
:
e
.
searchParam
};
Object
(
n
.
a
)(
a
,
o
).
then
(
function
(
a
){
1
==
a
.
data
.
errorCode
?(
e
.
employeeList
=
a
.
data
.
result
.
list
,
e
.
total
=
t
?
a
.
data
.
result
.
total
:
a
.
data
.
result
.
pageInfo
.
total
):
e
.
$message
.
error
({
message
:
a
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
selectDate
:
function
(
e
){
e
?(
this
.
startDate
=
e
[
0
],
this
.
endDate
=
e
[
1
]):(
this
.
startDate
=
""
,
this
.
endDate
=
""
),
this
.
getEmloyeeList
()}},
beforeMount
:
function
(){
this
.
getEmloyeeList
(),
this
.
getGroupData
()},
computed
:{
propList
:
function
(){
return
this
.
isUnEmployee
?[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"fireDate"
,
"fireReason"
,
"handleUnEmployee"
]:[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"correctionDate"
,
"handleEmployee"
]}}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"e-r-l-container"
},[
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"div"
,{
staticClass
:
"flex1"
},[
a
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
attrs
:{
disabled
:
e
.
disabled
},
on
:{
click
:
e
.
callSelector
}},[
e
.
_v
(
"行政架构选人"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
on
:{
click
:
e
.
callStoreSelector
}},[
e
.
_v
(
"门店架构选人"
)]),
e
.
_v
(
" "
),
e
.
isUnEmployee
?
a
(
"div"
,{
staticClass
:
"block"
},[
a
(
"span"
,{
staticClass
:
"demonstration"
},[
e
.
_v
(
"离职日期"
)]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
1
):[
a
(
"el-select"
,{
staticClass
:
"m-r-10 w-130"
,
attrs
:{
placeholder
:
"选择类型"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkType
,
callback
:
function
(
t
){
e
.
clerkType
=
t
},
expression
:
"clerkType"
}},
e
.
_l
(
e
.
typeLsit
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130"
,
attrs
:{
placeholder
:
"选择状态"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkStatus
,
callback
:
function
(
t
){
e
.
clerkStatus
=
t
},
expression
:
"clerkStatus"
}},
e
.
_l
(
e
.
statusList
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"demonstration p-l-10"
,
staticStyle
:{
"line-height"
:
"34px"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
"入职时间"
)]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"218px"
,
"margin-left"
:
"10px"
},
attrs
:{
placeholder
:
"请输入姓名/手机号/员工code"
,
clearable
:
""
},
on
:{
clear
:
e
.
searchFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchParam
,
callback
:
function
(
t
){
e
.
searchParam
=
t
},
expression
:
"searchParam"
}})],
2
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
showExportSet
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
selectionList
.
length
?
a
(
"ul"
,{
staticClass
:
"selector-selected-list"
},[
e
.
_l
(
e
.
selectionList
,
function
(
t
,
o
){
return
[
a
(
"li"
,{
key
:
o
+
t
.
id
+
t
.
label
,
staticClass
:
"sld"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
a
){
e
.
delSld
(
t
,
t
.
isStoreGroup
)}}})])]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"sld tip"
},[
e
.
_v
(
"共筛选出"
+
e
.
_s
(
e
.
total
)
+
"人"
)])],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticClass
:
"list-table"
,
attrs
:{
data
:
e
.
employeeList
,
"default-sort"
:{
prop
:
"hireDate"
,
order
:
"descending"
}},
on
:{
"sort-change"
:
e
.
sortList
}},[
e
.
_l
(
e
.
propList
,
function
(
t
){
return
[
a
(
"list-item"
,{
key
:
t
,
attrs
:{
item
:
t
},
on
:{
callHandle
:
e
.
callHandle
}})]})],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
a
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNum
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
typeTitle
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
employeeObj
,
handleType
:
e
.
handleType
,
typeTitle
:
e
.
typeTitle
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultStoreList
,
treeSet
:
e
.
treeSetStore
},
on
:{
handleSelectedList
:
e
.
handleStoreSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"departmentSelector"
,
attrs
:{
treeSet
:
e
.
treeSetDepart
,
changed
:
e
.
changed
,
treeData
:
e
.
treeData
,
defaultSelection
:
e
.
adDefaultSelection
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
w
=
a
(
"VU/8"
)(
b
,
L
,
!
1
,
function
(
e
){
a
(
"Rm52"
)},
null
,
null
);
t
.
a
=
w
.
exports
},
Rm52
:
function
(
e
,
t
){},
TGrv
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"3Xzz"
),
i
=
a
(
"NNAT"
),
s
=
{
name
:
"employeeRecord"
,
components
:{
navCrumb
:
o
.
a
,
employeeList
:
i
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"离职员工"
,
path
:
""
}],
typeObj
:{
onWorkCout
:
"在职员工"
,
allWorkCount
:
"全职"
,
partTimeWorkCount
:
"兼职"
,
outWorkCount
:
"外包"
,
practiceWorkCount
:
"实习"
,
noTypeWorkCount
:
"无类型"
,
regularCount
:
"正式"
,
onTrialCount
:
"试用"
,
noStatusCount
:
"无状态"
},
countObj
:{}}},
beforeMount
:
function
(){}},
r
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap unemployee-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"e-record-container"
},[
t
(
"employee-list"
,{
attrs
:{
isUnEmployee
:
!
0
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
r
,
!
1
,
function
(
e
){
a
(
"XAGK"
)},
null
,
null
);
t
.
default
=
n
.
exports
},
XAGK
:
function
(
e
,
t
){},
yjiq
:
function
(
e
,
t
){}});
\ No newline at end of file
webpackJsonp
([
15
],{
NNAT
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"fZjL"
),
i
=
a
.
n
(
o
),
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
n
=
a
(
"P9l9"
),
l
=
a
(
"Xxa5"
),
c
=
a
.
n
(
l
),
d
=
a
(
"exGp"
),
p
=
a
.
n
(
d
),
u
=
a
(
"0xDb"
),
h
=
a
(
"unF8"
),
m
=
a
(
"Ch4/"
),
f
=
{
name
:
"list-item"
,
props
:{
item
:{
type
:
String
,
required
:
!
0
}},
filters
:{
formatDate
:
u
.
b
},
data
:
function
(){
return
{
typeList
:[
"全部"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
statusList
:[
"全部"
,
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
propList
:{
headPic
:{
label
:
""
,
slot
:
!
0
,
width
:
50
},
clerkName
:{
label
:
"姓名"
,
width
:
90
},
clerkPhone
:{
label
:
"手机号"
},
groupName
:{
label
:
"部门"
},
clerkCode
:{
label
:
"code"
},
positionName
:{
label
:
"职位"
},
clerkType
:{
label
:
"员工类型"
,
slot
:
!
0
},
clerkStatus
:{
label
:
"员工状态"
,
slot
:
!
0
},
hireDate
:{
label
:
"入职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
correctionDate
:{
label
:
"转正日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireDate
:{
label
:
"离职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireReason
:{
label
:
"离职原因"
,
slot
:
!
0
},
handleEmployee
:{
label
:
"操作"
,
slot
:
!
0
},
handleUnEmployee
:{
label
:
"操作"
,
slot
:
!
0
}}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
callHandle
:
function
(
e
){
if
(
"编辑员工资料"
!=
e
.
typeTitle
)
this
.
$emit
(
"callHandle"
,
e
.
obj
,
e
.
type
,
e
.
typeTitle
);
else
{
var
t
=
"/recordInfo?recordId="
+
e
.
obj
.
recordId
;
this
.
changeRouter
(
t
)}},
getGicData
:
function
(
e
){
var
t
=
this
;
return
p
()(
c
.
a
.
mark
(
function
a
(){
var
o
,
i
,
s
,
r
;
return
c
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
o
=
t
,
i
=
{
type
:
3
,
businessId
:
e
.
obj
.
recordId
},
a
.
next
=
4
,
Object
(
h
.
a
)(
i
);
case
4
:
if
(
s
=
a
.
sent
,
1
!=
(
r
=
s
.
data
).
errorCode
){
a
.
next
=
12
;
break
}
if
(
!
r
.
result
){
a
.
next
=
10
;
break
}
return
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
"已经与 GIC 门店同步,暂无操作权限"
}),
a
.
abrupt
(
"return"
,
!
1
);
case
10
:
a
.
next
=
13
;
break
;
case
12
:
m
.
a
.
errorMsg
(
r
);
case
13
:
case
"end"
:
return
a
.
stop
()}},
a
,
t
)}))()}},
mounted
:
function
(){}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
e
.
propList
[
e
.
item
].
slot
?
a
(
"el-table-column"
,{
attrs
:{
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
sortable
:
e
.
propList
[
e
.
item
].
needSort
,
prop
:
e
.
item
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"clerkType"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeList
[
t
.
row
[
e
.
item
]
||
5
])
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"clerkStatus"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
statusList
[
t
.
row
[
e
.
item
]]
||
"无状态"
)
+
"
\
n "
)]):
"hireDate"
==
e
.
item
||
"correctionDate"
==
e
.
item
||
"fireDate"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
row
[
e
.
item
],
"YY-MM-DD"
)
||
"--"
)
+
"
\
n "
)]):
"headPic"
==
e
.
item
?
a
(
"div"
,[
t
.
row
[
e
.
item
]?
a
(
"img"
,{
staticClass
:
"header-pic"
,
attrs
:{
src
:
t
.
row
[
e
.
item
]}}):
a
(
"div"
,{
staticClass
:
"replace-head-img"
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]):
"fireReason"
==
e
.
item
?
a
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
reasons
[
t
.
row
[
e
.
item
]]
||
"--"
)
+
"
\
n "
)]):
"handleEmployee"
==
e
.
item
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-handle"
},[
a
(
"el-dropdown"
,{
staticClass
:
"more"
,
on
:{
command
:
e
.
callHandle
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
e
.
_v
(
" 更多"
),
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
2
==
t
.
row
.
clerkStatus
?[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"turnPositive"
,
typeTitle
:
"办理转正"
}}},[
e
.
_v
(
"办理转正"
)]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"eidtCorrectionTime"
,
typeTitle
:
"修改转正时间"
}}},[
e
.
_v
(
"修改转正时间"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"editEmployee"
,
typeTitle
:
"编辑员工资料"
}}},[
e
.
_v
(
"编辑员工资料"
)]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"resignation"
,
typeTitle
:
"办理离职"
}}},[
e
.
_v
(
"办理离职"
)])],
2
)],
1
)],
1
)]):
"handleUnEmployee"
==
e
.
item
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"table-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/recordInfo?recordId="
+
t
.
row
.
recordId
+
"&type=unemployee"
)}}},[
e
.
_v
(
"编辑"
)])])]):
e
.
_e
()]}}])}):
"clerkPhone"
!=
e
.
item
?
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
}}):
"clerkPhone"
==
e
.
item
?
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
||
null
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}):
e
.
_e
()},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
f
,
y
,
!
1
,
function
(
e
){
a
(
"yjiq"
)},
null
,
null
).
exports
,
v
=
a
(
"IVno"
),
S
=
a
(
"Ie7z"
),
k
=
a
(
"c4uw"
),
b
=
{
name
:
"employeeRecordList"
,
props
:{
isUnEmployee
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
listItem
:
g
,
handleDialog
:
v
.
a
,
vueSelectStore
:
S
.
a
,
vueSelectEmployee
:
k
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
160
,
pickerOptions2
:{
shortcuts
:[{
text
:
"最近一周"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
6048
e5
),
e
.
$emit
(
"pick"
,[
a
,
t
])}},{
text
:
"最近一个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
2592
e6
),
e
.
$emit
(
"pick"
,[
a
,
t
])}},{
text
:
"最近三个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
a
=
new
Date
;
a
.
setTime
(
a
.
getTime
()
-
7776
e6
),
e
.
$emit
(
"pick"
,[
a
,
t
])}}]},
employeeList
:[],
pageNum
:
1
,
pageSize
:
20
,
sortType
:
"desc"
,
sortColumn
:
"hireDate"
,
statusList
:[{
label
:
"全部状态"
,
id
:
"0"
},{
label
:
"正式"
,
id
:
"1"
},{
label
:
"试用"
,
id
:
"2"
},{
label
:
"无状态"
,
id
:
"-1"
}],
typeLsit
:[
"全部类型"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
clerkType
:
0
,
clerkStatus
:
"0"
,
total
:
0
,
handleType
:
"turnPositive"
,
typeTitle
:
""
,
dialogVisible
:
!
1
,
employeeObj
:{},
fireDate
:[],
startDate
:
""
,
endDate
:
""
,
showSelector
:
!
0
,
searchParam
:
""
,
departMentSet
:{},
storeSet
:{},
treeData
:{},
selectionList
:[],
disabled
:
!
0
,
chooseClerkIdList
:[],
chooseGroupIdList
:[],
chooseStoreIdList
:[],
adDefaultSelection
:[],
changed
:
0
,
defaultStoreList
:[],
treeSetDepart
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
treeSetStore
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
}}},
methods
:{
searchFn
:
function
(){
this
.
getEmloyeeList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
n
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
a
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
a
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
a
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callSelector
:
function
(){
this
.
treeSetDepart
.
dialogVisible
=!
0
},
callStoreSelector
:
function
(){
this
.
treeSetStore
.
dialogVisible
=!
0
},
showExportSet
:
function
(){
if
(
this
.
isUnEmployee
){
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
);
var
t
=
0
==
this
.
clerkType
?
""
:
this
.
clerkType
;
location
.
href
=
e
+
"/haoban-manage-web/record/export-fire-employee-record?clerkType="
+
t
+
"&sortType="
+
this
.
sortType
+
"&sortColumn="
+
this
.
sortColumn
+
"&startDate="
+
this
.
startDate
+
"&endDate="
+
this
.
endDate
+
"&searchParam="
+
this
.
searchParam
+
"&chooseClerkIdList="
+
this
.
chooseClerkIdList
.
join
(
","
)
+
"&chooseGroupIdList="
+
this
.
chooseGroupIdList
.
join
(
","
)
+
"&chooseStoreIdList="
+
this
.
chooseStoreIdList
.
join
(
","
)}
else
this
.
$emit
(
"showExportSetFn"
)},
handleSelectedList
:
function
(
e
){
this
.
adDefaultSelection
=
e
||
[],
this
.
concatList
()},
handleStoreSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
||
[],
this
.
concatList
()},
concatList
:
function
(){
this
.
selectionList
=
this
.
adDefaultSelection
.
concat
(
this
.
defaultStoreList
),
this
.
formatSelectionList
(
this
.
selectionList
)},
formatSelectionList
:
function
(
e
){
var
t
=
this
,
a
=
t
.
unique
(
e
);
t
.
selectionList
=
a
,
t
.
chooseClerkIdList
=
[],
t
.
chooseStoreIdList
=
[],
t
.
chooseGroupIdList
=
[],
a
.
length
&&
a
.
forEach
(
function
(
e
){
1
==
e
.
type
?
t
.
chooseClerkIdList
.
push
(
e
.
employeeClerkId
):
3
==
e
.
type
?
t
.
chooseStoreIdList
.
push
(
e
.
storeId
):
2
==
e
.
type
&&
t
.
chooseGroupIdList
.
push
(
e
.
groupId
)}),
t
.
pageNum
=
1
,
t
.
getEmloyeeList
()},
unique
:
function
(
e
){
var
t
=
{};
return
e
.
forEach
(
function
(
e
){
t
[
r
()(
e
)]
=
e
}),
e
=
i
()(
t
).
map
(
function
(
e
){
return
JSON
.
parse
(
e
)})},
delSld
:
function
(
e
,
t
){
var
a
=
this
,
o
=
a
.
selectionList
.
indexOf
(
e
);
a
.
selectionList
.
splice
(
o
,
1
),(
3
==
e
.
type
||
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
1
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
1
==
e
.
isClerk
)
&&
a
.
defaultStoreList
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
a
.
defaultStoreList
.
splice
(
o
,
1
)}),(
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
0
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
0
==
e
.
isClerk
)
&&
a
.
adDefaultSelection
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
a
.
adDefaultSelection
.
splice
(
o
,
1
)}),
a
.
formatSelectionList
(
a
.
selectionList
),
a
.
changed
+=
1
},
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
getEmloyeeList
()},
callHandle
:
function
(
e
,
t
,
a
){
this
.
handleType
=
t
,
this
.
employeeObj
=
e
,
this
.
typeTitle
=
a
,
this
.
dialogVisible
=!
0
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmloyeeList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNum
=
e
,
this
.
getEmloyeeList
()},
sortList
:
function
(
e
){
this
.
sortColumn
=
e
.
prop
,
this
.
sortType
=
"descending"
==
e
.
order
?
"desc"
:
"asc"
,
this
.
getEmloyeeList
()},
reGetList
:
function
(){
this
.
getEmloyeeList
()},
getEmloyeeList
:
function
(){
var
e
=
this
,
t
=
e
.
isUnEmployee
,
a
=
t
?
"/haoban-manage-web/record/find-fire-employee-record-page"
:
"/haoban-manage-web/record/find-on-work-employee-record-page"
,
o
=
{
pageNum
:
e
.
pageNum
,
chooseClerkIdList
:
e
.
chooseClerkIdList
.
join
(
","
),
chooseGroupIdList
:
e
.
chooseGroupIdList
.
join
(
","
),
chooseStoreIdList
:
e
.
chooseStoreIdList
.
join
(
","
),
pageSize
:
e
.
pageSize
,
sortType
:
e
.
sortType
,
clerkStatus
:
0
==
e
.
clerkStatus
?
""
:
e
.
clerkStatus
,
sortColumn
:
e
.
sortColumn
,
clerkType
:
0
==
e
.
clerkType
?
""
:
e
.
clerkType
,
startDate
:
e
.
startDate
,
endDate
:
e
.
endDate
,
searchParam
:
e
.
searchParam
};
Object
(
n
.
a
)(
a
,
o
).
then
(
function
(
a
){
1
==
a
.
data
.
errorCode
?(
e
.
employeeList
=
a
.
data
.
result
.
list
,
e
.
total
=
t
?
a
.
data
.
result
.
total
:
a
.
data
.
result
.
pageInfo
.
total
):
e
.
$message
.
error
({
message
:
a
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
selectDate
:
function
(
e
){
e
?(
this
.
startDate
=
e
[
0
],
this
.
endDate
=
e
[
1
]):(
this
.
startDate
=
""
,
this
.
endDate
=
""
),
this
.
getEmloyeeList
()}},
beforeMount
:
function
(){
this
.
getEmloyeeList
(),
this
.
getGroupData
()},
computed
:{
propList
:
function
(){
return
this
.
isUnEmployee
?[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"fireDate"
,
"fireReason"
,
"handleUnEmployee"
]:[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"correctionDate"
,
"handleEmployee"
]}}},
L
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"e-r-l-container"
},[
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"div"
,{
staticClass
:
"flex1"
},[
a
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
attrs
:{
disabled
:
e
.
disabled
},
on
:{
click
:
e
.
callSelector
}},[
e
.
_v
(
"行政架构选人"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
on
:{
click
:
e
.
callStoreSelector
}},[
e
.
_v
(
"门店架构选人"
)]),
e
.
_v
(
" "
),
e
.
isUnEmployee
?
a
(
"div"
,{
staticClass
:
"block"
},[
a
(
"span"
,{
staticClass
:
"demonstration"
},[
e
.
_v
(
"离职日期"
)]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
1
):[
a
(
"el-select"
,{
staticClass
:
"m-r-10 w-130"
,
attrs
:{
placeholder
:
"选择类型"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkType
,
callback
:
function
(
t
){
e
.
clerkType
=
t
},
expression
:
"clerkType"
}},
e
.
_l
(
e
.
typeLsit
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130"
,
attrs
:{
placeholder
:
"选择状态"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkStatus
,
callback
:
function
(
t
){
e
.
clerkStatus
=
t
},
expression
:
"clerkStatus"
}},
e
.
_l
(
e
.
statusList
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"demonstration p-l-10"
,
staticStyle
:{
"line-height"
:
"34px"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
"入职时间"
)]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
e
.
_v
(
" "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
,
"margin-left"
:
"10px"
},
attrs
:{
placeholder
:
"请输入姓名/手机号/员工code"
,
clearable
:
""
},
on
:{
clear
:
e
.
searchFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchParam
,
callback
:
function
(
t
){
e
.
searchParam
=
t
},
expression
:
"searchParam"
}})],
2
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
showExportSet
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
selectionList
.
length
?
a
(
"ul"
,{
staticClass
:
"selector-selected-list"
},[
e
.
_l
(
e
.
selectionList
,
function
(
t
,
o
){
return
[
a
(
"li"
,{
key
:
o
+
t
.
id
+
t
.
label
,
staticClass
:
"sld"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
a
){
e
.
delSld
(
t
,
t
.
isStoreGroup
)}}})])]}),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"sld tip"
},[
e
.
_v
(
"共筛选出"
+
e
.
_s
(
e
.
total
)
+
"人"
)])],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticClass
:
"list-table"
,
attrs
:{
data
:
e
.
employeeList
,
"default-sort"
:{
prop
:
"hireDate"
,
order
:
"descending"
}},
on
:{
"sort-change"
:
e
.
sortList
}},[
e
.
_l
(
e
.
propList
,
function
(
t
){
return
[
a
(
"list-item"
,{
key
:
t
,
attrs
:{
item
:
t
},
on
:{
callHandle
:
e
.
callHandle
}})]})],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
a
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNum
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
typeTitle
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
employeeObj
,
handleType
:
e
.
handleType
,
typeTitle
:
e
.
typeTitle
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultStoreList
,
treeSet
:
e
.
treeSetStore
},
on
:{
handleSelectedList
:
e
.
handleStoreSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
ref
:
"departmentSelector"
,
attrs
:{
treeSet
:
e
.
treeSetDepart
,
changed
:
e
.
changed
,
treeData
:
e
.
treeData
,
defaultSelection
:
e
.
adDefaultSelection
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
w
=
a
(
"VU/8"
)(
b
,
L
,
!
1
,
function
(
e
){
a
(
"uGJV"
)},
null
,
null
);
t
.
a
=
w
.
exports
},
TGrv
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"3Xzz"
),
i
=
a
(
"NNAT"
),
s
=
{
name
:
"employeeRecord"
,
components
:{
navCrumb
:
o
.
a
,
employeeList
:
i
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"离职员工"
,
path
:
""
}],
typeObj
:{
onWorkCout
:
"在职员工"
,
allWorkCount
:
"全职"
,
partTimeWorkCount
:
"兼职"
,
outWorkCount
:
"外包"
,
practiceWorkCount
:
"实习"
,
noTypeWorkCount
:
"无类型"
,
regularCount
:
"正式"
,
onTrialCount
:
"试用"
,
noStatusCount
:
"无状态"
},
countObj
:{}}},
beforeMount
:
function
(){}},
r
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap unemployee-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"e-record-container"
},[
t
(
"employee-list"
,{
attrs
:{
isUnEmployee
:
!
0
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
r
,
!
1
,
function
(
e
){
a
(
"XAGK"
)},
null
,
null
);
t
.
default
=
n
.
exports
},
XAGK
:
function
(
e
,
t
){},
uGJV
:
function
(
e
,
t
){},
yjiq
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/6.864d62ab6b379f7b0f55.js
deleted
100644 → 0
View file @
b228d75d
webpackJsonp
([
6
],{
"1ThA"
:
function
(
e
,
t
){},
"4kf4"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
d
=
a
(
"ATfr"
),
u
=
a
(
"P9l9"
),
p
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
u
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
)}}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组门店"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"BQJE"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
u
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
u
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"设置成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
||
""
,
status
:
e
.
storeStatus
||
""
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
u
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
u
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
0
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组门店"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
e
.
_v
(
e
.
_s
(
r
.
name
))]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"Sxtf"
)},
"data-v-6d27ed5e"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
u
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
k
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"nmDM"
)},
null
,
null
).
exports
,
S
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
d
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
S
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
k
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
r
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
(
r
=
a
).
tempSearchData
=
e
,
r
.
perId
=
e
.
employeeClerkId
,
r
.
userId
=
e
.
brandId
,
r
.
getStoreList
(
e
),
t
.
next
=
7
,
r
.
getGicData
();
case
7
:
case
"end"
:
return
t
.
stop
()}},
t
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
getStoreList
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
u
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
L
,
N
,
!
1
,
function
(
e
){
a
(
"kcn3"
)},
null
,
null
);
t
.
default
=
x
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"4kf4"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
BQJE
:
function
(
e
,
t
){},
Sxtf
:
function
(
e
,
t
){},
bY6o
:
function
(
e
,
t
){},
kcn3
:
function
(
e
,
t
){},
nmDM
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入code"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入code"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"bY6o"
)},
null
,
null
);
t
.
a
=
u
.
exports
},
qsKc
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
o
=
a
(
"//Fk"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"mvHQ"
),
d
=
a
.
n
(
c
),
u
=
a
(
"P9l9"
),
p
=
a
(
"Ie7z"
),
m
=
a
(
"XDyb"
),
f
=
a
(
"T+u5"
),
h
=
a
.
n
(
f
),
g
=
a
(
"l46T"
),
v
=
a
(
"Kkt8"
),
b
=
{
name
:
"store-detail"
,
components
:{
vueSelectStore
:
p
.
a
,
countryMobile
:
m
.
a
,
limitInput
:
g
.
a
,
limitTextarea
:
v
.
a
},
props
:{
storeInfo
:{
type
:
Object
,
default
:
function
(){
return
{}}},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
var
e
=
this
;
return
{
areaChainName
:
""
,
location
:
""
,
areaOptions
:{},
imgs
:[],
uploadUrl
:
"/haoban-manage-web/upload-img"
,
defaultList
:[],
currentBrand
:
this
.
storeInfo
.
storeGroupId
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfo
.
brandId
,
openNextBool
:
!
0
},
selectType
:
"group"
,
disableFlag
:
!
1
,
storeInfoData
:
JSON
.
parse
(
d
()(
this
.
storeInfo
)),
rules
:{
storeName
:[{
required
:
!
0
,
message
:
"请输入门店名称"
,
trigger
:
"blur"
}],
departmentName
:[{
required
:
!
0
,
message
:
"请选择所属分组"
,
trigger
:
"blur"
}],
groupChainName
:[{
required
:
!
0
,
message
:
"请选择部门"
,
trigger
:
"change"
}],
imageUrls
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请选择门店图片"
,
trigger
:
"change"
}],
areaId
:[{
required
:
!
0
,
message
:
"请选择门店地址"
,
trigger
:
"blur"
}],
storeType
:[{
required
:
!
0
,
message
:
"请选择门店类型"
,
trigger
:
"blur"
}],
openTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
&&
e
.
storeInfo
.
closeTime
?
r
():
r
(
new
Error
(
"请选择营业时间"
))},
trigger
:
"blur"
}],
location
:[{
required
:
!
0
,
message
:
"请选择经纬度"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
e
,
t
,
a
){
return
t
?
a
():
a
(
new
Error
(
"请输入联系电话"
))},
trigger
:
"blur"
}],
storeCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
storeCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入门店代码"
))},
trigger
:
"blur"
}],
managerName
:[{
required
:
!
0
,
message
:
"请输入店长姓名"
,
trigger
:
"blur"
}],
managerPhone
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号码"
));
var
s
=
new
h
.
a
(
"+"
+
e
.
storeInfoData
.
managerNationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
managerCode
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
return
a
?
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
void
(
e
.
storeInfoData
.
managerCode
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)):
r
(
new
Error
(
"请输入店长代码"
))},
trigger
:
"blur"
}],
specialService
:[{
max
:
20
,
message
:
"长度在 20 个字符以内"
,
trigger
:
"blur"
}],
personCost
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
t
)
return
/^
\d
+
(\.\d
+
)?
$/
.
test
(
1
*
t
)?
a
():
a
(
new
Error
(
"人均消费只能为非负整数或者小数"
));
return
a
()},
trigger
:
"blur"
}]}}},
methods
:{
inputBlur
:
function
(
e
){
this
.
storeInfoData
.
storeArea
||
(
this
.
storeInfoData
.
storeArea
=
""
),
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
storeInfoData
.
storeArea
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
storeInfoData
.
storeArea
=
Number
(
this
.
storeInfoData
.
storeArea
).
toFixed
(
2
),
this
.
storeInfoData
.
storeArea
>=
999999
&&
(
this
.
storeInfoData
.
storeArea
=
Number
(
999999
).
toFixed
(
2
))},
callSelector
:
function
(){
this
.
treeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
0
,
groupId
:
this
.
storeInfoData
.
brandId
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
storeInfoData
.
groupChainName
=
e
.
length
?
e
[
0
].
chainName
:
""
,
this
.
storeInfoData
.
departmentName
=
e
.
length
?
e
[
0
].
label
:
""
,
this
.
storeInfoData
.
storeGroupId
=
e
.
length
?
e
[
0
].
id
:
""
},
selected
:
function
(
e
){
this
.
areaChainName
=
e
.
provinceName
+
"/"
+
e
.
cityName
+
"/"
+
e
.
countryName
},
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
sortImg
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
=
e
},
deleteImage
:
function
(
e
){
this
.
storeInfoData
.
imageUrls
.
splice
(
e
,
1
)},
clickToSave
:
function
(){
var
e
=
this
;
return
l
()(
s
.
a
.
mark
(
function
t
(){
var
a
,
r
,
o
,
i
;
return
s
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
a
=
e
,
r
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeInfoData
.
validate
(
function
(
t
){
t
&&
e
()})}),
o
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeManagerForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
i
=
new
n
.
a
(
function
(
e
,
t
){
a
.
$refs
.
storeOperateForm
.
validate
(
function
(
t
){
t
&&
e
()})}),
n
.
a
.
all
([
r
,
o
,
i
]).
then
(
function
(){
a
.
save
()});
case
5
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()},
save
:
function
(){
var
e
=
this
,
t
=
e
.
location
.
split
(
","
);
e
.
storeInfoData
.
longitude
=
t
[
1
],
e
.
storeInfoData
.
latitude
=
2
!==
t
.
length
?
""
:
t
[
0
],
e
.
storeInfoData
.
managerPhone
=
e
.
storeInfoData
.
managerPhone
,
e
.
storeInfoData
.
areaChainName
=
e
.
areaOptions
.
provinceName
+
"/"
+
e
.
areaOptions
.
cityName
+
"/"
+
e
.
areaOptions
.
countryName
;
var
a
=
JSON
.
parse
(
d
()(
e
.
storeInfoData
)),
r
=
[];
e
.
storeInfoData
.
imageUrls
.
forEach
(
function
(
e
){
r
.
push
(
e
.
url
)}),
a
.
imageUrls
=
r
.
join
(
","
),
Object
(
u
.
e
)(
"/haoban-manage-web/store/update"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$message
.
success
({
message
:
"操作成功!"
}):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatStoreInfo
:
function
(
e
){
this
.
defaultList
=
[{
id
:
e
.
storeGroupId
,
label
:
e
.
departmentName
}],
e
.
managerNationcode
||
(
e
.
managerNationcode
=
"86"
);
var
t
=
(
e
.
areaChainName
||
""
).
split
(
"/"
);
this
.
areaOptions
=
{
provinceName
:
t
[
0
],
provinceId
:
e
.
provinceId
,
cityName
:
t
[
1
],
cityId
:
e
.
cityId
,
countryName
:
t
[
2
],
countyId
:
e
.
countyId
},
this
.
imgs
=
e
.
imageUrl
?
e
.
imageUrl
.
split
(
","
):[];
var
a
=
[];
this
.
imgs
.
forEach
(
function
(
e
){
a
.
push
({
url
:
e
})}),
e
.
imageUrls
=
a
,
e
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
location
=
e
.
longitude
?
e
.
latitude
+
","
+
e
.
longitude
:
""
,
this
.
disableFlag
=!!
e
.
managerPhone
}},
watch
:{
storeInfo
:
function
(
e
){
this
.
treeSet
.
groupId
=
e
.
brandId
,
this
.
storeInfoData
=
e
,
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
storeInfo
.
brandId
},
mounted
:
function
(){
this
.
storeInfoData
=
JSON
.
parse
(
d
()(
this
.
storeInfo
)),
this
.
formatStoreInfo
(
this
.
storeInfoData
)}},
I
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"store-info"
},[
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"门店信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeInfoData"
,
staticClass
:
"store-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeName
,
holder
:
"请输入门店名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"departmentName"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
attrs
:{
disabled
:
e
.
gicFlag
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
storeInfoData
.
groupChainName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"groupChainName"
,
t
)},
expression
:
"storeInfoData.groupChainName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-arrow-down"
,
attrs
:{
slot
:
"suffix"
},
slot
:
"suffix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店图片(640*340)"
,
prop
:
"imageUrls"
}},[
a
(
"div"
,{
staticClass
:
"member-upload-image"
},[
a
(
"vue-office-upload-image"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
storeInfoData
.
imageUrls
,
limitW
:
640
,
limitH
:
340
,
maxImageLength
:
10
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tip font-12 color-909399 m-t-8 line-h-1"
},[
e
.
_v
(
"门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"联系电话"
,
prop
:
"phoneNumber"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
model
:{
value
:
e
.
storeInfoData
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"phoneNumber"
,
t
)},
expression
:
"storeInfoData.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"营业时间"
,
prop
:
"openTime"
}},[
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"起始时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
}},
model
:{
value
:
e
.
storeInfoData
.
openTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"openTime"
,
t
)},
expression
:
"storeInfoData.openTime"
}}),
e
.
_v
(
"
\
n ~
\
n "
),
a
(
"el-time-select"
,{
attrs
:{
placeholder
:
"结束时间"
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:05"
,
end
:
"24:00"
,
minTime
:
e
.
storeInfoData
.
openTime
}},
model
:{
value
:
e
.
storeInfoData
.
closeTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"closeTime"
,
t
)},
expression
:
"storeInfoData.closeTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeType"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
storeInfoData
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeType"
,
t
)},
expression
:
"storeInfoData.storeType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
0
}},[
e
.
_v
(
"自营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"联营"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"代理"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"代销"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
4
}},[
e
.
_v
(
"托管"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店地址"
,
prop
:
"areaId"
}},[
a
(
"vue-office-area"
,{
attrs
:{
areaOptions
:
e
.
areaOptions
,
projectName
:
"haoban-web"
,
postUrl
:
"/api-admin/dict-district-list"
},
on
:{
selected
:
e
.
selected
}}),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
holder
:
"请输入门店地址"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"GPS坐标"
,
prop
:
"location"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500 m-r-10"
,
model
:{
value
:
e
.
storeInfoData
.
location
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"location"
,
t
)},
expression
:
"storeInfoData.location"
}}),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"http://m.gpsspg.com/maps.htm"
,
target
:
"_blank"
}},[
e
.
_v
(
"经纬度测试工具"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"template"
,{
slot
:
"label"
},[
e
.
_v
(
"
\
n 门店代码
\
n "
)]),
e
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
storeCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入门店代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeCode"
,
t
)}}})],
2
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店面积"
}},[
a
(
"el-input"
,{
staticClass
:
"w-500"
,
on
:{
blur
:
function
(
t
){
return
e
.
inputBlur
(
t
)}},
model
:{
value
:
e
.
storeInfoData
.
storeArea
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"storeArea"
,
t
)},
expression
:
"storeInfoData.storeArea"
}}),
a
(
"span"
,{
staticClass
:
"font-14 p-l-10"
},[
e
.
_v
(
"平方米"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"店长信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeManagerForm"
,
staticClass
:
"store-manager-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长姓名"
,
prop
:
"managerName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerName
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
500
,
nationCode
:
e
.
storeInfoData
.
managerNationcode
,
holder
:
"请输入手机号"
,
disflag
:
e
.
disableFlag
||
e
.
gicFlag
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerNationcode"
,
t
)}},
model
:{
value
:
e
.
storeInfoData
.
managerPhone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerPhone"
,
t
)},
expression
:
"storeInfoData.managerPhone"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长性别"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
e
.
gicFlag
},
model
:{
value
:
e
.
storeInfoData
.
managerSex
,
callback
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerSex"
,
t
)},
expression
:
"storeInfoData.managerSex"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"男"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"女"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"店长代码"
,
prop
:
"managerCode"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
managerCode
,
disflag
:
e
.
gicFlag
,
holder
:
"请输入店长代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"managerCode"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"info-cell"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"经营信息"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"storeOperateForm"
,
staticClass
:
"operate-info-form info-form"
,
attrs
:{
"label-width"
:
"90px"
,
rules
:
e
.
rules
,
model
:
e
.
storeInfoData
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"特色服务"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
specialService
,
holder
:
"请输入特色服务"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"specialService"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人均消费"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
personCost
,
holder
:
"请输入人均消费"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"personCost"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"推荐商品"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
recommendGoods
,
holder
:
"请输入推荐商品"
,
getByType
:
"word"
,
maxLength
:
100
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"recommendGoods"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"品牌介绍"
}},[
a
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
storeInfoData
.
brandDes
,
holder
:
"请输入品牌介绍"
,
getByType
:
"word"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
storeInfoData
,
"brandDes"
,
t
)}}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
clickToSave
}},[
e
.
_v
(
"保 存"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
currentBrand
:
e
.
currentBrand
,
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
a
(
"VU/8"
)(
b
,
I
,
!
1
,
function
(
e
){
a
(
"1ThA"
)},
null
,
null
);
t
.
a
=
_
.
exports
}});
\ No newline at end of file
dist/static/js/6.a833ce8868ce70c6219e.js
0 → 100644
View file @
9a7cd6ab
webpackJsonp
([
6
],{
"1ThA"
:
function
(
e
,
t
){},
"3lRV"
:
function
(
e
,
t
){},
"4kf4"
:
function
(
e
,
t
){},
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
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
(
"BQJE"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
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
;
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
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
:
"300"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"300"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"675"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
},
on
:{
click
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
e
.
_v
(
e
.
_s
(
r
.
name
))])]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"name"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticStyle
:{
width
:
"200px"
}},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"3lRV"
)},
"data-v-2b35142c"
,
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
k
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"nmDM"
)},
null
,
null
).
exports
,
S
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
u
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
S
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
k
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
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
},
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
:
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
}},
N
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
x
=
a
(
"VU/8"
)(
L
,
N
,
!
1
,
function
(
e
){
a
(
"kcn3"
)},
null
,
null
);
t
.
default
=
x
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"4kf4"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
BQJE
:
function
(
e
,
t
){},
bY6o
:
function
(
e
,
t
){},
kcn3
:
function
(
e
,
t
){},
nmDM
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入code"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}],
positionName
:[{
required
:
!
0
,
message
:
"请输入店员职位"
,
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
""
,
storeId
:
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
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
:
"请输入code"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"bY6o"
)},
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
(
"1ThA"
)},
null
,
null
);
t
.
a
=
_
.
exports
}});
\ No newline at end of file
dist/static/js/8.
02a2bbb61efe1946f33b
.js
→
dist/static/js/8.
4210ed7b336c1bcfc531
.js
View file @
9a7cd6ab
webpackJsonp
([
8
],{
J8vX
:
function
(
e
,
t
){},
NNAT
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"fZjL"
),
a
=
i
.
n
(
o
),
s
=
i
(
"mvHQ"
),
n
=
i
.
n
(
s
),
r
=
i
(
"P9l9"
),
l
=
i
(
"Xxa5"
),
c
=
i
.
n
(
l
),
d
=
i
(
"exGp"
),
h
=
i
.
n
(
d
),
u
=
i
(
"0xDb"
),
p
=
i
(
"unF8"
),
m
=
i
(
"Ch4/"
),
f
=
{
name
:
"list-item"
,
props
:{
item
:{
type
:
String
,
required
:
!
0
}},
filters
:{
formatDate
:
u
.
b
},
data
:
function
(){
return
{
typeList
:[
"全部"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
statusList
:[
"全部"
,
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
propList
:{
headPic
:{
label
:
""
,
slot
:
!
0
,
width
:
50
},
clerkName
:{
label
:
"姓名"
,
width
:
90
},
clerkPhone
:{
label
:
"手机号"
},
groupName
:{
label
:
"部门"
},
clerkCode
:{
label
:
"code"
},
positionName
:{
label
:
"职位"
},
clerkType
:{
label
:
"员工类型"
,
slot
:
!
0
},
clerkStatus
:{
label
:
"员工状态"
,
slot
:
!
0
},
hireDate
:{
label
:
"入职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
correctionDate
:{
label
:
"转正日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireDate
:{
label
:
"离职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireReason
:{
label
:
"离职原因"
,
slot
:
!
0
},
handleEmployee
:{
label
:
"操作"
,
slot
:
!
0
},
handleUnEmployee
:{
label
:
"操作"
,
slot
:
!
0
}}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
callHandle
:
function
(
e
){
if
(
"编辑员工资料"
!=
e
.
typeTitle
)
this
.
$emit
(
"callHandle"
,
e
.
obj
,
e
.
type
,
e
.
typeTitle
);
else
{
var
t
=
"/recordInfo?recordId="
+
e
.
obj
.
recordId
;
this
.
changeRouter
(
t
)}},
getGicData
:
function
(
e
){
var
t
=
this
;
return
h
()(
c
.
a
.
mark
(
function
i
(){
var
o
,
a
,
s
,
n
;
return
c
.
a
.
wrap
(
function
(
i
){
for
(;;)
switch
(
i
.
prev
=
i
.
next
){
case
0
:
return
o
=
t
,
a
=
{
type
:
3
,
businessId
:
e
.
obj
.
recordId
},
i
.
next
=
4
,
Object
(
p
.
a
)(
a
);
case
4
:
if
(
s
=
i
.
sent
,
1
!=
(
n
=
s
.
data
).
errorCode
){
i
.
next
=
12
;
break
}
if
(
!
n
.
result
){
i
.
next
=
10
;
break
}
return
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
"已经与 GIC 门店同步,暂无操作权限"
}),
i
.
abrupt
(
"return"
,
!
1
);
case
10
:
i
.
next
=
13
;
break
;
case
12
:
m
.
a
.
errorMsg
(
n
);
case
13
:
case
"end"
:
return
i
.
stop
()}},
i
,
t
)}))()}},
mounted
:
function
(){}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
e
.
propList
[
e
.
item
].
slot
?
i
(
"el-table-column"
,{
attrs
:{
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
sortable
:
e
.
propList
[
e
.
item
].
needSort
,
prop
:
e
.
item
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"clerkType"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeList
[
t
.
row
[
e
.
item
]
||
5
])
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"clerkStatus"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
statusList
[
t
.
row
[
e
.
item
]]
||
"无状态"
)
+
"
\
n "
)]):
"hireDate"
==
e
.
item
||
"correctionDate"
==
e
.
item
||
"fireDate"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
row
[
e
.
item
],
"YY-MM-DD"
)
||
"--"
)
+
"
\
n "
)]):
"headPic"
==
e
.
item
?
i
(
"div"
,[
t
.
row
[
e
.
item
]?
i
(
"img"
,{
staticClass
:
"header-pic"
,
attrs
:{
src
:
t
.
row
[
e
.
item
]}}):
i
(
"div"
,{
staticClass
:
"replace-head-img"
},[
i
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]):
"fireReason"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
reasons
[
t
.
row
[
e
.
item
]]
||
"--"
)
+
"
\
n "
)]):
"handleEmployee"
==
e
.
item
?
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"table-handle"
},[
i
(
"el-dropdown"
,{
staticClass
:
"more"
,
on
:{
command
:
e
.
callHandle
}},[
i
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
e
.
_v
(
" 更多"
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
i
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
2
==
t
.
row
.
clerkStatus
?[
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"turnPositive"
,
typeTitle
:
"办理转正"
}}},[
e
.
_v
(
"办理转正"
)]),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"eidtCorrectionTime"
,
typeTitle
:
"修改转正时间"
}}},[
e
.
_v
(
"修改转正时间"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"editEmployee"
,
typeTitle
:
"编辑员工资料"
}}},[
e
.
_v
(
"编辑员工资料"
)]),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"resignation"
,
typeTitle
:
"办理离职"
}}},[
e
.
_v
(
"办理离职"
)])],
2
)],
1
)],
1
)]):
"handleUnEmployee"
==
e
.
item
?
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"table-handle"
},[
i
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
i
){
e
.
changeRouter
(
"/recordInfo?recordId="
+
t
.
row
.
recordId
+
"&type=unemployee"
)}}},[
e
.
_v
(
"编辑"
)])])]):
e
.
_e
()]}}])}):
"clerkPhone"
!=
e
.
item
?
i
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
}}):
"clerkPhone"
==
e
.
item
?
i
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
||
null
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}):
e
.
_e
()},
staticRenderFns
:[]};
var
g
=
i
(
"VU/8"
)(
f
,
v
,
!
1
,
function
(
e
){
i
(
"yjiq"
)},
null
,
null
).
exports
,
k
=
i
(
"IVno"
),
y
=
i
(
"Ie7z"
),
C
=
i
(
"c4uw"
),
b
=
{
name
:
"employeeRecordList"
,
props
:{
isUnEmployee
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
listItem
:
g
,
handleDialog
:
k
.
a
,
vueSelectStore
:
y
.
a
,
vueSelectEmployee
:
C
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
160
,
pickerOptions2
:{
shortcuts
:[{
text
:
"最近一周"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
6048
e5
),
e
.
$emit
(
"pick"
,[
i
,
t
])}},{
text
:
"最近一个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
2592
e6
),
e
.
$emit
(
"pick"
,[
i
,
t
])}},{
text
:
"最近三个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
7776
e6
),
e
.
$emit
(
"pick"
,[
i
,
t
])}}]},
employeeList
:[],
pageNum
:
1
,
pageSize
:
20
,
sortType
:
"desc"
,
sortColumn
:
"hireDate"
,
statusList
:[{
label
:
"全部状态"
,
id
:
"0"
},{
label
:
"正式"
,
id
:
"1"
},{
label
:
"试用"
,
id
:
"2"
},{
label
:
"无状态"
,
id
:
"-1"
}],
typeLsit
:[
"全部类型"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
clerkType
:
0
,
clerkStatus
:
"0"
,
total
:
0
,
handleType
:
"turnPositive"
,
typeTitle
:
""
,
dialogVisible
:
!
1
,
employeeObj
:{},
fireDate
:[],
startDate
:
""
,
endDate
:
""
,
showSelector
:
!
0
,
searchParam
:
""
,
departMentSet
:{},
storeSet
:{},
treeData
:{},
selectionList
:[],
disabled
:
!
0
,
chooseClerkIdList
:[],
chooseGroupIdList
:[],
chooseStoreIdList
:[],
adDefaultSelection
:[],
changed
:
0
,
defaultStoreList
:[],
treeSetDepart
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
treeSetStore
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
}}},
methods
:{
searchFn
:
function
(){
this
.
getEmloyeeList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
i
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
i
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
i
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callSelector
:
function
(){
this
.
treeSetDepart
.
dialogVisible
=!
0
},
callStoreSelector
:
function
(){
this
.
treeSetStore
.
dialogVisible
=!
0
},
showExportSet
:
function
(){
if
(
this
.
isUnEmployee
){
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
);
var
t
=
0
==
this
.
clerkType
?
""
:
this
.
clerkType
;
location
.
href
=
e
+
"/haoban-manage-web/record/export-fire-employee-record?clerkType="
+
t
+
"&sortType="
+
this
.
sortType
+
"&sortColumn="
+
this
.
sortColumn
+
"&startDate="
+
this
.
startDate
+
"&endDate="
+
this
.
endDate
+
"&searchParam="
+
this
.
searchParam
+
"&chooseClerkIdList="
+
this
.
chooseClerkIdList
.
join
(
","
)
+
"&chooseGroupIdList="
+
this
.
chooseGroupIdList
.
join
(
","
)
+
"&chooseStoreIdList="
+
this
.
chooseStoreIdList
.
join
(
","
)}
else
this
.
$emit
(
"showExportSetFn"
)},
handleSelectedList
:
function
(
e
){
this
.
adDefaultSelection
=
e
||
[],
this
.
concatList
()},
handleStoreSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
||
[],
this
.
concatList
()},
concatList
:
function
(){
this
.
selectionList
=
this
.
adDefaultSelection
.
concat
(
this
.
defaultStoreList
),
this
.
formatSelectionList
(
this
.
selectionList
)},
formatSelectionList
:
function
(
e
){
var
t
=
this
,
i
=
t
.
unique
(
e
);
t
.
selectionList
=
i
,
t
.
chooseClerkIdList
=
[],
t
.
chooseStoreIdList
=
[],
t
.
chooseGroupIdList
=
[],
i
.
length
&&
i
.
forEach
(
function
(
e
){
1
==
e
.
type
?
t
.
chooseClerkIdList
.
push
(
e
.
employeeClerkId
):
3
==
e
.
type
?
t
.
chooseStoreIdList
.
push
(
e
.
storeId
):
2
==
e
.
type
&&
t
.
chooseGroupIdList
.
push
(
e
.
groupId
)}),
t
.
pageNum
=
1
,
t
.
getEmloyeeList
()},
unique
:
function
(
e
){
var
t
=
{};
return
e
.
forEach
(
function
(
e
){
t
[
n
()(
e
)]
=
e
}),
e
=
a
()(
t
).
map
(
function
(
e
){
return
JSON
.
parse
(
e
)})},
delSld
:
function
(
e
,
t
){
var
i
=
this
,
o
=
i
.
selectionList
.
indexOf
(
e
);
i
.
selectionList
.
splice
(
o
,
1
),(
3
==
e
.
type
||
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
1
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
1
==
e
.
isClerk
)
&&
i
.
defaultStoreList
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
i
.
defaultStoreList
.
splice
(
o
,
1
)}),(
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
0
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
0
==
e
.
isClerk
)
&&
i
.
adDefaultSelection
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
i
.
adDefaultSelection
.
splice
(
o
,
1
)}),
i
.
formatSelectionList
(
i
.
selectionList
),
i
.
changed
+=
1
},
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
getEmloyeeList
()},
callHandle
:
function
(
e
,
t
,
i
){
this
.
handleType
=
t
,
this
.
employeeObj
=
e
,
this
.
typeTitle
=
i
,
this
.
dialogVisible
=!
0
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmloyeeList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNum
=
e
,
this
.
getEmloyeeList
()},
sortList
:
function
(
e
){
this
.
sortColumn
=
e
.
prop
,
this
.
sortType
=
"descending"
==
e
.
order
?
"desc"
:
"asc"
,
this
.
getEmloyeeList
()},
reGetList
:
function
(){
this
.
getEmloyeeList
()},
getEmloyeeList
:
function
(){
var
e
=
this
,
t
=
e
.
isUnEmployee
,
i
=
t
?
"/haoban-manage-web/record/find-fire-employee-record-page"
:
"/haoban-manage-web/record/find-on-work-employee-record-page"
,
o
=
{
pageNum
:
e
.
pageNum
,
chooseClerkIdList
:
e
.
chooseClerkIdList
.
join
(
","
),
chooseGroupIdList
:
e
.
chooseGroupIdList
.
join
(
","
),
chooseStoreIdList
:
e
.
chooseStoreIdList
.
join
(
","
),
pageSize
:
e
.
pageSize
,
sortType
:
e
.
sortType
,
clerkStatus
:
0
==
e
.
clerkStatus
?
""
:
e
.
clerkStatus
,
sortColumn
:
e
.
sortColumn
,
clerkType
:
0
==
e
.
clerkType
?
""
:
e
.
clerkType
,
startDate
:
e
.
startDate
,
endDate
:
e
.
endDate
,
searchParam
:
e
.
searchParam
};
Object
(
r
.
a
)(
i
,
o
).
then
(
function
(
i
){
1
==
i
.
data
.
errorCode
?(
e
.
employeeList
=
i
.
data
.
result
.
list
,
e
.
total
=
t
?
i
.
data
.
result
.
total
:
i
.
data
.
result
.
pageInfo
.
total
):
e
.
$message
.
error
({
message
:
i
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
selectDate
:
function
(
e
){
e
?(
this
.
startDate
=
e
[
0
],
this
.
endDate
=
e
[
1
]):(
this
.
startDate
=
""
,
this
.
endDate
=
""
),
this
.
getEmloyeeList
()}},
beforeMount
:
function
(){
this
.
getEmloyeeList
(),
this
.
getGroupData
()},
computed
:{
propList
:
function
(){
return
this
.
isUnEmployee
?[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"fireDate"
,
"fireReason"
,
"handleUnEmployee"
]:[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"correctionDate"
,
"handleEmployee"
]}}},
S
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"e-r-l-container"
},[
i
(
"div"
,{
staticClass
:
"handle-area"
},[
i
(
"div"
,{
staticClass
:
"flex1"
},[
i
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
attrs
:{
disabled
:
e
.
disabled
},
on
:{
click
:
e
.
callSelector
}},[
e
.
_v
(
"行政架构选人"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
on
:{
click
:
e
.
callStoreSelector
}},[
e
.
_v
(
"门店架构选人"
)]),
e
.
_v
(
" "
),
e
.
isUnEmployee
?
i
(
"div"
,{
staticClass
:
"block"
},[
i
(
"span"
,{
staticClass
:
"demonstration"
},[
e
.
_v
(
"离职日期"
)]),
e
.
_v
(
" "
),
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
1
):[
i
(
"el-select"
,{
staticClass
:
"m-r-10 w-130"
,
attrs
:{
placeholder
:
"选择类型"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkType
,
callback
:
function
(
t
){
e
.
clerkType
=
t
},
expression
:
"clerkType"
}},
e
.
_l
(
e
.
typeLsit
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
i
(
"el-select"
,{
staticClass
:
"w-130"
,
attrs
:{
placeholder
:
"选择状态"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkStatus
,
callback
:
function
(
t
){
e
.
clerkStatus
=
t
},
expression
:
"clerkStatus"
}},
e
.
_l
(
e
.
statusList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"demonstration p-l-10"
,
staticStyle
:{
"line-height"
:
"34px"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
"入职时间"
)]),
e
.
_v
(
" "
),
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
e
.
_v
(
" "
),
i
(
"el-input"
,{
staticStyle
:{
width
:
"218px"
,
"margin-left"
:
"10px"
},
attrs
:{
placeholder
:
"请输入姓名/手机号/员工code"
,
clearable
:
""
},
on
:{
clear
:
e
.
searchFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchParam
,
callback
:
function
(
t
){
e
.
searchParam
=
t
},
expression
:
"searchParam"
}})],
2
),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
showExportSet
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
selectionList
.
length
?
i
(
"ul"
,{
staticClass
:
"selector-selected-list"
},[
e
.
_l
(
e
.
selectionList
,
function
(
t
,
o
){
return
[
i
(
"li"
,{
key
:
o
+
t
.
id
+
t
.
label
,
staticClass
:
"sld"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
i
){
e
.
delSld
(
t
,
t
.
isStoreGroup
)}}})])]}),
e
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"sld tip"
},[
e
.
_v
(
"共筛选出"
+
e
.
_s
(
e
.
total
)
+
"人"
)])],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-table"
,{
staticClass
:
"list-table"
,
attrs
:{
data
:
e
.
employeeList
,
"default-sort"
:{
prop
:
"hireDate"
,
order
:
"descending"
}},
on
:{
"sort-change"
:
e
.
sortList
}},[
e
.
_l
(
e
.
propList
,
function
(
t
){
return
[
i
(
"list-item"
,{
key
:
t
,
attrs
:{
item
:
t
},
on
:{
callHandle
:
e
.
callHandle
}})]})],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
i
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNum
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
e
.
typeTitle
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
i
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
employeeObj
,
handleType
:
e
.
handleType
,
typeTitle
:
e
.
typeTitle
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
),
e
.
_v
(
" "
),
i
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultStoreList
,
treeSet
:
e
.
treeSetStore
},
on
:{
handleSelectedList
:
e
.
handleStoreSelectedList
}}),
e
.
_v
(
" "
),
i
(
"vue-select-employee"
,{
ref
:
"departmentSelector"
,
attrs
:{
treeSet
:
e
.
treeSetDepart
,
changed
:
e
.
changed
,
treeData
:
e
.
treeData
,
defaultSelection
:
e
.
adDefaultSelection
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
L
=
i
(
"VU/8"
)(
b
,
S
,
!
1
,
function
(
e
){
i
(
"Rm52"
)},
null
,
null
);
t
.
a
=
L
.
exports
},
O3H5
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"mvHQ"
),
a
=
i
.
n
(
o
),
s
=
i
(
"P9l9"
),
n
=
i
(
"DAYN"
),
r
=
{
name
:
"export-set"
,
components
:{
draggable
:
i
.
n
(
n
).
a
},
data
:
function
(){
return
{
tempList
:[],
checkList
:[],
origin
:[],
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
checkedList
:[]}},
methods
:{
deleteField
:
function
(
e
){
this
.
checkedList
.
splice
(
e
,
1
);
var
t
=
this
.
checkedList
.
map
(
function
(
e
){
return
e
.
fieldCode
});
this
.
origin
.
forEach
(
function
(
e
,
i
){
t
.
includes
(
e
.
fieldCode
)?
e
.
checked
=!
0
:
e
.
checked
=!
1
}),
this
.
checkHalf
()},
checkHalf
:
function
(){
if
(
0
===
this
.
checkedList
.
length
)
return
this
.
isIndeterminate
=!
1
,
!
1
;
this
.
checkedList
.
length
===
this
.
origin
.
length
?
this
.
isIndeterminate
=!
1
:
this
.
isIndeterminate
=!
0
},
checkThis
:
function
(
e
){
var
t
=
this
;
e
.
checked
?
t
.
checkedList
.
push
(
e
):
t
.
checkedList
.
forEach
(
function
(
i
,
o
){
i
.
fieldCode
===
e
.
fieldCode
&&
t
.
checkedList
.
splice
(
o
,
1
)}),
t
.
checkHalf
()},
handleCheckAllChange
:
function
(
e
){
this
.
checkedList
=
[],
this
.
origin
.
forEach
(
function
(
t
,
i
){
t
.
checked
=
e
,
e
&&
(
t
.
order
=
i
+
1
)}),
e
&&
(
this
.
checkedList
=
this
.
origin
.
slice
(
0
)),
this
.
checkHalf
()},
getTemplate
:
function
(){
var
e
=
this
;
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
formatTemplateList
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatTemplateList
:
function
(
e
){
var
t
=
[],
i
=
[],
o
=
e
;
e
.
forEach
(
function
(
e
){
e
.
title
=
e
.
fieldName
,
e
.
name
=
e
.
fieldName
,
e
.
checked
=!
1
;
var
i
=
[];
o
.
forEach
(
function
(
t
){
t
.
parentCode
==
e
.
fieldCode
&&
i
.
push
(
t
)}),
i
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
i
.
length
>
0
&&
(
e
.
childrens
=
i
),
0
==
e
.
parentCode
&&
t
.
push
(
e
)}),
t
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
t
.
forEach
(
function
(
e
){
i
=
i
.
concat
(
e
.
childrens
)}),
this
.
origin
=
i
,
this
.
tempList
=
t
},
cancelCho
:
function
(){
this
.
origin
.
forEach
(
function
(
e
){
e
.
checked
=!
1
}),
this
.
$emit
(
"cancelCho"
)},
exportCho
:
function
(){
var
e
=
[];
this
.
checkedList
.
forEach
(
function
(
t
){
t
.
checked
&&
e
.
push
({
fieldCode
:
t
.
fieldCode
,
fieldName
:
t
.
fieldName
})});
a
()(
e
);
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),
location
.
href
=
t
+
"/haoban-manage-web/record/define-export?exportTitleContent="
+
a
()(
e
),
this
.
$emit
(
"cancelCho"
)}},
beforeMount
:
function
(){
this
.
getTemplate
()}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"export-set-container"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-list"
},[
i
(
"draggable"
,{
model
:{
value
:
e
.
checkedList
,
callback
:
function
(
t
){
e
.
checkedList
=
t
},
expression
:
"checkedList"
}},[
e
.
_l
(
e
.
checkedList
,
function
(
t
,
o
){
return
[
t
.
checked
?
i
(
"div"
,{
key
:
t
.
fieldCode
+
o
,
staticClass
:
"cho"
},[
e
.
_v
(
e
.
_s
(
t
.
fieldName
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
deleteField
(
o
)}}})]):
e
.
_e
()]})],
2
)],
1
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
e
.
_v
(
"选择需要导出的字段"
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area-group"
},[
i
(
"div"
,{
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
}),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
i
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
tempList
,
function
(
t
,
o
){
return
i
(
"div"
,{
key
:
t
.
fieldCode
+
o
,
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
},[
e
.
_v
(
e
.
_s
(
t
.
title
))]),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
e
.
_l
(
e
.
origin
,
function
(
o
){
return
[
o
.
parentCode
==
t
.
fieldCode
?
i
(
"li"
,{
key
:
o
.
fieldCode
},[
i
(
"el-checkbox"
,{
key
:
o
.
fieldCode
,
attrs
:{
label
:
o
.
fieldName
},
on
:{
change
:
function
(
t
){
e
.
checkThis
(
o
)}},
model
:{
value
:
o
.
checked
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"checked"
,
t
)},
expression
:
"items.checked"
}},[
e
.
_v
(
e
.
_s
(
o
.
fieldName
))])],
1
):
e
.
_e
()]})],
2
)])})],
2
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"handle-cho-btn"
},[
i
(
"el-button"
,{
staticClass
:
"export-btn"
,
attrs
:{
type
:
"primary"
,
disabled
:
e
.
checkedList
.
length
<
1
},
on
:{
click
:
e
.
exportCho
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
cancelCho
}},[
e
.
_v
(
"取消"
)])],
1
)])},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"title"
},[
this
.
_v
(
"已选择字段"
),
t
(
"span"
,[
this
.
_v
(
"导出的列表中将按顺序显示这些字段(可拖拽排序)"
)])])}]};
var
c
=
i
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
e
){
i
(
"J8vX"
)},
null
,
null
);
t
.
a
=
c
.
exports
},
Rm52
:
function
(
e
,
t
){},
nyZT
:
function
(
e
,
t
){},
yjiq
:
function
(
e
,
t
){},
zGJY
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
i
(
"3Xzz"
),
a
=
i
(
"P9l9"
),
s
=
i
(
"O3H5"
),
n
=
i
(
"NNAT"
),
r
=
{
name
:
"employeeRecord"
,
components
:{
navCrumb
:
o
.
a
,
employeeList
:
n
.
a
,
exportSet
:
s
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
""
}],
typeObj
:{
onWorkCout
:
"在职员工"
,
allWorkCount
:
"全职"
,
partTimeWorkCount
:
"兼职"
,
outWorkCount
:
"外包"
,
practiceWorkCount
:
"实习"
,
noTypeWorkCount
:
"无类型"
,
regularCount
:
"正式"
,
onTrialCount
:
"试用"
,
noStatusCount
:
"无状态"
},
otherSet
:{},
countObj
:{},
showExportSet
:
!
1
}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
cancelCho
:
function
(){
this
.
showExportSet
=!
1
},
showExportSetFn
:
function
(){
this
.
showExportSet
=!
0
},
getEmployeeCount
:
function
(){
var
e
=
this
;
Object
(
a
.
a
)(
"/haoban-manage-web/record/employee-count-detail"
,{}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
countObj
=
t
.
data
.
result
:
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}},
beforeMount
:
function
(){
this
.
getEmployeeCount
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap employee-record-wrap"
},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
,
slotFlag
:
!
0
}},[[
i
(
"div"
,{
staticClass
:
"top-area"
},[
i
(
"div"
,{
staticClass
:
"top-title"
},[
i
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
"在职员工"
)]),
e
.
_v
(
" "
),
i
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recordIo?importCode=record"
)}}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"导入员工档案"
),
i
(
"i"
,{
staticClass
:
"el-icon-upload el-icon--right"
})])],
1
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"e-type-num-title"
},
e
.
_l
(
e
.
countObj
,
function
(
t
,
o
){
return
i
(
"div"
,{
key
:
o
,
staticClass
:
"type-cell"
,
class
:
"onWorkCout"
==
o
||
"noTypeWorkCount"
==
o
?
"with-bdr"
:
""
},[
i
(
"p"
,{
staticClass
:
"type-name"
},[
e
.
_v
(
e
.
_s
(
e
.
typeObj
[
o
]))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
e
.
_s
(
t
))])])}))])]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"e-record-container"
},[
e
.
showExportSet
?[
i
(
"export-set"
,{
attrs
:{
otherSet
:
e
.
otherSet
},
on
:{
cancelCho
:
e
.
cancelCho
}})]:[
i
(
"employee-list"
,{
on
:{
showExportSetFn
:
e
.
showExportSetFn
}})]],
2
)])]),
e
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
c
=
i
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
e
){
i
(
"nyZT"
)},
null
,
null
);
t
.
default
=
c
.
exports
}});
\ No newline at end of file
webpackJsonp
([
8
],{
J8vX
:
function
(
e
,
t
){},
NNAT
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"fZjL"
),
a
=
i
.
n
(
o
),
s
=
i
(
"mvHQ"
),
n
=
i
.
n
(
s
),
r
=
i
(
"P9l9"
),
l
=
i
(
"Xxa5"
),
c
=
i
.
n
(
l
),
d
=
i
(
"exGp"
),
h
=
i
.
n
(
d
),
u
=
i
(
"0xDb"
),
p
=
i
(
"unF8"
),
m
=
i
(
"Ch4/"
),
f
=
{
name
:
"list-item"
,
props
:{
item
:{
type
:
String
,
required
:
!
0
}},
filters
:{
formatDate
:
u
.
b
},
data
:
function
(){
return
{
typeList
:[
"全部"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
statusList
:[
"全部"
,
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
propList
:{
headPic
:{
label
:
""
,
slot
:
!
0
,
width
:
50
},
clerkName
:{
label
:
"姓名"
,
width
:
90
},
clerkPhone
:{
label
:
"手机号"
},
groupName
:{
label
:
"部门"
},
clerkCode
:{
label
:
"code"
},
positionName
:{
label
:
"职位"
},
clerkType
:{
label
:
"员工类型"
,
slot
:
!
0
},
clerkStatus
:{
label
:
"员工状态"
,
slot
:
!
0
},
hireDate
:{
label
:
"入职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
correctionDate
:{
label
:
"转正日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireDate
:{
label
:
"离职日期"
,
needSort
:
"custom"
,
slot
:
!
0
},
fireReason
:{
label
:
"离职原因"
,
slot
:
!
0
},
handleEmployee
:{
label
:
"操作"
,
slot
:
!
0
},
handleUnEmployee
:{
label
:
"操作"
,
slot
:
!
0
}}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
callHandle
:
function
(
e
){
if
(
"编辑员工资料"
!=
e
.
typeTitle
)
this
.
$emit
(
"callHandle"
,
e
.
obj
,
e
.
type
,
e
.
typeTitle
);
else
{
var
t
=
"/recordInfo?recordId="
+
e
.
obj
.
recordId
;
this
.
changeRouter
(
t
)}},
getGicData
:
function
(
e
){
var
t
=
this
;
return
h
()(
c
.
a
.
mark
(
function
i
(){
var
o
,
a
,
s
,
n
;
return
c
.
a
.
wrap
(
function
(
i
){
for
(;;)
switch
(
i
.
prev
=
i
.
next
){
case
0
:
return
o
=
t
,
a
=
{
type
:
3
,
businessId
:
e
.
obj
.
recordId
},
i
.
next
=
4
,
Object
(
p
.
a
)(
a
);
case
4
:
if
(
s
=
i
.
sent
,
1
!=
(
n
=
s
.
data
).
errorCode
){
i
.
next
=
12
;
break
}
if
(
!
n
.
result
){
i
.
next
=
10
;
break
}
return
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
"已经与 GIC 门店同步,暂无操作权限"
}),
i
.
abrupt
(
"return"
,
!
1
);
case
10
:
i
.
next
=
13
;
break
;
case
12
:
m
.
a
.
errorMsg
(
n
);
case
13
:
case
"end"
:
return
i
.
stop
()}},
i
,
t
)}))()}},
mounted
:
function
(){}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
e
.
propList
[
e
.
item
].
slot
?
i
(
"el-table-column"
,{
attrs
:{
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
sortable
:
e
.
propList
[
e
.
item
].
needSort
,
prop
:
e
.
item
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"clerkType"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeList
[
t
.
row
[
e
.
item
]
||
5
])
+
"
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"clerkStatus"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
statusList
[
t
.
row
[
e
.
item
]]
||
"无状态"
)
+
"
\
n "
)]):
"hireDate"
==
e
.
item
||
"correctionDate"
==
e
.
item
||
"fireDate"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
row
[
e
.
item
],
"YY-MM-DD"
)
||
"--"
)
+
"
\
n "
)]):
"headPic"
==
e
.
item
?
i
(
"div"
,[
t
.
row
[
e
.
item
]?
i
(
"img"
,{
staticClass
:
"header-pic"
,
attrs
:{
src
:
t
.
row
[
e
.
item
]}}):
i
(
"div"
,{
staticClass
:
"replace-head-img"
},[
i
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]):
"fireReason"
==
e
.
item
?
i
(
"div"
,[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
reasons
[
t
.
row
[
e
.
item
]]
||
"--"
)
+
"
\
n "
)]):
"handleEmployee"
==
e
.
item
?
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"table-handle"
},[
i
(
"el-dropdown"
,{
staticClass
:
"more"
,
on
:{
command
:
e
.
callHandle
}},[
i
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
e
.
_v
(
" 更多"
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
i
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
2
==
t
.
row
.
clerkStatus
?[
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"turnPositive"
,
typeTitle
:
"办理转正"
}}},[
e
.
_v
(
"办理转正"
)]),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"eidtCorrectionTime"
,
typeTitle
:
"修改转正时间"
}}},[
e
.
_v
(
"修改转正时间"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"editEmployee"
,
typeTitle
:
"编辑员工资料"
}}},[
e
.
_v
(
"编辑员工资料"
)]),
e
.
_v
(
" "
),
i
(
"el-dropdown-item"
,{
attrs
:{
command
:{
obj
:
t
.
row
,
type
:
"resignation"
,
typeTitle
:
"办理离职"
}}},[
e
.
_v
(
"办理离职"
)])],
2
)],
1
)],
1
)]):
"handleUnEmployee"
==
e
.
item
?
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"table-handle"
},[
i
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
i
){
e
.
changeRouter
(
"/recordInfo?recordId="
+
t
.
row
.
recordId
+
"&type=unemployee"
)}}},[
e
.
_v
(
"编辑"
)])])]):
e
.
_e
()]}}])}):
"clerkPhone"
!=
e
.
item
?
i
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
}}):
"clerkPhone"
==
e
.
item
?
i
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"clerkName"
==
e
.
item
?
"control-width"
:
""
,
label
:
e
.
propList
[
e
.
item
].
label
,
width
:
e
.
propList
[
e
.
item
].
width
,
prop
:
e
.
item
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
||
null
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}):
e
.
_e
()},
staticRenderFns
:[]};
var
g
=
i
(
"VU/8"
)(
f
,
v
,
!
1
,
function
(
e
){
i
(
"yjiq"
)},
null
,
null
).
exports
,
k
=
i
(
"IVno"
),
y
=
i
(
"Ie7z"
),
C
=
i
(
"c4uw"
),
b
=
{
name
:
"employeeRecordList"
,
props
:{
isUnEmployee
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
listItem
:
g
,
handleDialog
:
k
.
a
,
vueSelectStore
:
y
.
a
,
vueSelectEmployee
:
C
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
160
,
pickerOptions2
:{
shortcuts
:[{
text
:
"最近一周"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
6048
e5
),
e
.
$emit
(
"pick"
,[
i
,
t
])}},{
text
:
"最近一个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
2592
e6
),
e
.
$emit
(
"pick"
,[
i
,
t
])}},{
text
:
"最近三个月"
,
onClick
:
function
(
e
){
var
t
=
new
Date
,
i
=
new
Date
;
i
.
setTime
(
i
.
getTime
()
-
7776
e6
),
e
.
$emit
(
"pick"
,[
i
,
t
])}}]},
employeeList
:[],
pageNum
:
1
,
pageSize
:
20
,
sortType
:
"desc"
,
sortColumn
:
"hireDate"
,
statusList
:[{
label
:
"全部状态"
,
id
:
"0"
},{
label
:
"正式"
,
id
:
"1"
},{
label
:
"试用"
,
id
:
"2"
},{
label
:
"无状态"
,
id
:
"-1"
}],
typeLsit
:[
"全部类型"
,
"全职"
,
"兼职"
,
"外包"
,
"实习"
,
"无类型"
],
clerkType
:
0
,
clerkStatus
:
"0"
,
total
:
0
,
handleType
:
"turnPositive"
,
typeTitle
:
""
,
dialogVisible
:
!
1
,
employeeObj
:{},
fireDate
:[],
startDate
:
""
,
endDate
:
""
,
showSelector
:
!
0
,
searchParam
:
""
,
departMentSet
:{},
storeSet
:{},
treeData
:{},
selectionList
:[],
disabled
:
!
0
,
chooseClerkIdList
:[],
chooseGroupIdList
:[],
chooseStoreIdList
:[],
adDefaultSelection
:[],
changed
:
0
,
defaultStoreList
:[],
treeSetDepart
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
treeSetStore
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
}}},
methods
:{
searchFn
:
function
(){
this
.
getEmloyeeList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
r
.
a
)(
"/haoban-manage-web/dept/deptListForCompany"
,{
isStoreGroup
:
0
}).
then
(
function
(
t
){
var
i
=
[],
o
=
[];
1
==
t
.
data
.
errorCode
&&
(
i
=
t
.
data
.
result
.
departmentList
||
[],
o
=
t
.
data
.
result
.
searchList
||
[]),
e
.
treeData
=
{
treeData
:
i
,
personData
:
o
},
e
.
disabled
=!
1
}).
catch
(
function
(
e
){})},
callSelector
:
function
(){
this
.
treeSetDepart
.
dialogVisible
=!
0
},
callStoreSelector
:
function
(){
this
.
treeSetStore
.
dialogVisible
=!
0
},
showExportSet
:
function
(){
if
(
this
.
isUnEmployee
){
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
);
var
t
=
0
==
this
.
clerkType
?
""
:
this
.
clerkType
;
location
.
href
=
e
+
"/haoban-manage-web/record/export-fire-employee-record?clerkType="
+
t
+
"&sortType="
+
this
.
sortType
+
"&sortColumn="
+
this
.
sortColumn
+
"&startDate="
+
this
.
startDate
+
"&endDate="
+
this
.
endDate
+
"&searchParam="
+
this
.
searchParam
+
"&chooseClerkIdList="
+
this
.
chooseClerkIdList
.
join
(
","
)
+
"&chooseGroupIdList="
+
this
.
chooseGroupIdList
.
join
(
","
)
+
"&chooseStoreIdList="
+
this
.
chooseStoreIdList
.
join
(
","
)}
else
this
.
$emit
(
"showExportSetFn"
)},
handleSelectedList
:
function
(
e
){
this
.
adDefaultSelection
=
e
||
[],
this
.
concatList
()},
handleStoreSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
||
[],
this
.
concatList
()},
concatList
:
function
(){
this
.
selectionList
=
this
.
adDefaultSelection
.
concat
(
this
.
defaultStoreList
),
this
.
formatSelectionList
(
this
.
selectionList
)},
formatSelectionList
:
function
(
e
){
var
t
=
this
,
i
=
t
.
unique
(
e
);
t
.
selectionList
=
i
,
t
.
chooseClerkIdList
=
[],
t
.
chooseStoreIdList
=
[],
t
.
chooseGroupIdList
=
[],
i
.
length
&&
i
.
forEach
(
function
(
e
){
1
==
e
.
type
?
t
.
chooseClerkIdList
.
push
(
e
.
employeeClerkId
):
3
==
e
.
type
?
t
.
chooseStoreIdList
.
push
(
e
.
storeId
):
2
==
e
.
type
&&
t
.
chooseGroupIdList
.
push
(
e
.
groupId
)}),
t
.
pageNum
=
1
,
t
.
getEmloyeeList
()},
unique
:
function
(
e
){
var
t
=
{};
return
e
.
forEach
(
function
(
e
){
t
[
n
()(
e
)]
=
e
}),
e
=
a
()(
t
).
map
(
function
(
e
){
return
JSON
.
parse
(
e
)})},
delSld
:
function
(
e
,
t
){
var
i
=
this
,
o
=
i
.
selectionList
.
indexOf
(
e
);
i
.
selectionList
.
splice
(
o
,
1
),(
3
==
e
.
type
||
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
1
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
1
==
e
.
isClerk
)
&&
i
.
defaultStoreList
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
i
.
defaultStoreList
.
splice
(
o
,
1
)}),(
e
.
hasOwnProperty
(
"isStoreGroup"
)
&&
0
==
e
.
isStoreGroup
||
e
.
hasOwnProperty
(
"isClerk"
)
&&
0
==
e
.
isClerk
)
&&
i
.
adDefaultSelection
.
forEach
(
function
(
t
,
o
){
t
.
id
==
e
.
id
&&
i
.
adDefaultSelection
.
splice
(
o
,
1
)}),
i
.
formatSelectionList
(
i
.
selectionList
),
i
.
changed
+=
1
},
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
getEmloyeeList
()},
callHandle
:
function
(
e
,
t
,
i
){
this
.
handleType
=
t
,
this
.
employeeObj
=
e
,
this
.
typeTitle
=
i
,
this
.
dialogVisible
=!
0
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getEmloyeeList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNum
=
e
,
this
.
getEmloyeeList
()},
sortList
:
function
(
e
){
this
.
sortColumn
=
e
.
prop
,
this
.
sortType
=
"descending"
==
e
.
order
?
"desc"
:
"asc"
,
this
.
getEmloyeeList
()},
reGetList
:
function
(){
this
.
getEmloyeeList
()},
getEmloyeeList
:
function
(){
var
e
=
this
,
t
=
e
.
isUnEmployee
,
i
=
t
?
"/haoban-manage-web/record/find-fire-employee-record-page"
:
"/haoban-manage-web/record/find-on-work-employee-record-page"
,
o
=
{
pageNum
:
e
.
pageNum
,
chooseClerkIdList
:
e
.
chooseClerkIdList
.
join
(
","
),
chooseGroupIdList
:
e
.
chooseGroupIdList
.
join
(
","
),
chooseStoreIdList
:
e
.
chooseStoreIdList
.
join
(
","
),
pageSize
:
e
.
pageSize
,
sortType
:
e
.
sortType
,
clerkStatus
:
0
==
e
.
clerkStatus
?
""
:
e
.
clerkStatus
,
sortColumn
:
e
.
sortColumn
,
clerkType
:
0
==
e
.
clerkType
?
""
:
e
.
clerkType
,
startDate
:
e
.
startDate
,
endDate
:
e
.
endDate
,
searchParam
:
e
.
searchParam
};
Object
(
r
.
a
)(
i
,
o
).
then
(
function
(
i
){
1
==
i
.
data
.
errorCode
?(
e
.
employeeList
=
i
.
data
.
result
.
list
,
e
.
total
=
t
?
i
.
data
.
result
.
total
:
i
.
data
.
result
.
pageInfo
.
total
):
e
.
$message
.
error
({
message
:
i
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
selectDate
:
function
(
e
){
e
?(
this
.
startDate
=
e
[
0
],
this
.
endDate
=
e
[
1
]):(
this
.
startDate
=
""
,
this
.
endDate
=
""
),
this
.
getEmloyeeList
()}},
beforeMount
:
function
(){
this
.
getEmloyeeList
(),
this
.
getGroupData
()},
computed
:{
propList
:
function
(){
return
this
.
isUnEmployee
?[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"fireDate"
,
"fireReason"
,
"handleUnEmployee"
]:[
"headPic"
,
"clerkName"
,
"clerkPhone"
,
"groupName"
,
"clerkCode"
,
"positionName"
,
"clerkType"
,
"clerkStatus"
,
"hireDate"
,
"correctionDate"
,
"handleEmployee"
]}}},
S
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"e-r-l-container"
},[
i
(
"div"
,{
staticClass
:
"handle-area"
},[
i
(
"div"
,{
staticClass
:
"flex1"
},[
i
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
attrs
:{
disabled
:
e
.
disabled
},
on
:{
click
:
e
.
callSelector
}},[
e
.
_v
(
"行政架构选人"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
staticStyle
:{
"margin-right"
:
"10px"
,
height
:
"32px"
},
on
:{
click
:
e
.
callStoreSelector
}},[
e
.
_v
(
"门店架构选人"
)]),
e
.
_v
(
" "
),
e
.
isUnEmployee
?
i
(
"div"
,{
staticClass
:
"block"
},[
i
(
"span"
,{
staticClass
:
"demonstration"
},[
e
.
_v
(
"离职日期"
)]),
e
.
_v
(
" "
),
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
1
):[
i
(
"el-select"
,{
staticClass
:
"m-r-10 w-130"
,
attrs
:{
placeholder
:
"选择类型"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkType
,
callback
:
function
(
t
){
e
.
clerkType
=
t
},
expression
:
"clerkType"
}},
e
.
_l
(
e
.
typeLsit
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
i
(
"el-select"
,{
staticClass
:
"w-130"
,
attrs
:{
placeholder
:
"选择状态"
},
on
:{
change
:
e
.
reGetList
},
model
:{
value
:
e
.
clerkStatus
,
callback
:
function
(
t
){
e
.
clerkStatus
=
t
},
expression
:
"clerkStatus"
}},
e
.
_l
(
e
.
statusList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
id
}})})),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"demonstration p-l-10"
,
staticStyle
:{
"line-height"
:
"34px"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
"入职时间"
)]),
e
.
_v
(
" "
),
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
align
:
"right"
,
"value-format"
:
"yyyy-MM-dd"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"picker-options"
:
e
.
pickerOptions2
},
on
:{
change
:
e
.
selectDate
},
model
:{
value
:
e
.
fireDate
,
callback
:
function
(
t
){
e
.
fireDate
=
t
},
expression
:
"fireDate"
}})],
e
.
_v
(
" "
),
i
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
,
"margin-left"
:
"10px"
},
attrs
:{
placeholder
:
"请输入姓名/手机号/员工code"
,
clearable
:
""
},
on
:{
clear
:
e
.
searchFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchParam
,
callback
:
function
(
t
){
e
.
searchParam
=
t
},
expression
:
"searchParam"
}})],
2
),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
showExportSet
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
selectionList
.
length
?
i
(
"ul"
,{
staticClass
:
"selector-selected-list"
},[
e
.
_l
(
e
.
selectionList
,
function
(
t
,
o
){
return
[
i
(
"li"
,{
key
:
o
+
t
.
id
+
t
.
label
,
staticClass
:
"sld"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
i
){
e
.
delSld
(
t
,
t
.
isStoreGroup
)}}})])]}),
e
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"sld tip"
},[
e
.
_v
(
"共筛选出"
+
e
.
_s
(
e
.
total
)
+
"人"
)])],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-table"
,{
staticClass
:
"list-table"
,
attrs
:{
data
:
e
.
employeeList
,
"default-sort"
:{
prop
:
"hireDate"
,
order
:
"descending"
}},
on
:{
"sort-change"
:
e
.
sortList
}},[
e
.
_l
(
e
.
propList
,
function
(
t
){
return
[
i
(
"list-item"
,{
key
:
t
,
attrs
:{
item
:
t
},
on
:{
callHandle
:
e
.
callHandle
}})]})],
2
),
e
.
_v
(
" "
),
e
.
employeeList
.
length
?
i
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNum
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
e
.
typeTitle
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
i
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
employeeObj
,
handleType
:
e
.
handleType
,
typeTitle
:
e
.
typeTitle
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
),
e
.
_v
(
" "
),
i
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultStoreList
,
treeSet
:
e
.
treeSetStore
},
on
:{
handleSelectedList
:
e
.
handleStoreSelectedList
}}),
e
.
_v
(
" "
),
i
(
"vue-select-employee"
,{
ref
:
"departmentSelector"
,
attrs
:{
treeSet
:
e
.
treeSetDepart
,
changed
:
e
.
changed
,
treeData
:
e
.
treeData
,
defaultSelection
:
e
.
adDefaultSelection
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
L
=
i
(
"VU/8"
)(
b
,
S
,
!
1
,
function
(
e
){
i
(
"uGJV"
)},
null
,
null
);
t
.
a
=
L
.
exports
},
O3H5
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"mvHQ"
),
a
=
i
.
n
(
o
),
s
=
i
(
"P9l9"
),
n
=
i
(
"DAYN"
),
r
=
{
name
:
"export-set"
,
components
:{
draggable
:
i
.
n
(
n
).
a
},
data
:
function
(){
return
{
tempList
:[],
checkList
:[],
origin
:[],
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
checkedList
:[]}},
methods
:{
deleteField
:
function
(
e
){
this
.
checkedList
.
splice
(
e
,
1
);
var
t
=
this
.
checkedList
.
map
(
function
(
e
){
return
e
.
fieldCode
});
this
.
origin
.
forEach
(
function
(
e
,
i
){
t
.
includes
(
e
.
fieldCode
)?
e
.
checked
=!
0
:
e
.
checked
=!
1
}),
this
.
checkHalf
()},
checkHalf
:
function
(){
if
(
0
===
this
.
checkedList
.
length
)
return
this
.
isIndeterminate
=!
1
,
!
1
;
this
.
checkedList
.
length
===
this
.
origin
.
length
?
this
.
isIndeterminate
=!
1
:
this
.
isIndeterminate
=!
0
},
checkThis
:
function
(
e
){
var
t
=
this
;
e
.
checked
?
t
.
checkedList
.
push
(
e
):
t
.
checkedList
.
forEach
(
function
(
i
,
o
){
i
.
fieldCode
===
e
.
fieldCode
&&
t
.
checkedList
.
splice
(
o
,
1
)}),
t
.
checkHalf
()},
handleCheckAllChange
:
function
(
e
){
this
.
checkedList
=
[],
this
.
origin
.
forEach
(
function
(
t
,
i
){
t
.
checked
=
e
,
e
&&
(
t
.
order
=
i
+
1
)}),
e
&&
(
this
.
checkedList
=
this
.
origin
.
slice
(
0
)),
this
.
checkHalf
()},
getTemplate
:
function
(){
var
e
=
this
;
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
formatTemplateList
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
formatTemplateList
:
function
(
e
){
var
t
=
[],
i
=
[],
o
=
e
;
e
.
forEach
(
function
(
e
){
e
.
title
=
e
.
fieldName
,
e
.
name
=
e
.
fieldName
,
e
.
checked
=!
1
;
var
i
=
[];
o
.
forEach
(
function
(
t
){
t
.
parentCode
==
e
.
fieldCode
&&
i
.
push
(
t
)}),
i
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
i
.
length
>
0
&&
(
e
.
childrens
=
i
),
0
==
e
.
parentCode
&&
t
.
push
(
e
)}),
t
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
t
.
forEach
(
function
(
e
){
i
=
i
.
concat
(
e
.
childrens
)}),
this
.
origin
=
i
,
this
.
tempList
=
t
},
cancelCho
:
function
(){
this
.
origin
.
forEach
(
function
(
e
){
e
.
checked
=!
1
}),
this
.
$emit
(
"cancelCho"
)},
exportCho
:
function
(){
var
e
=
[];
this
.
checkedList
.
forEach
(
function
(
t
){
t
.
checked
&&
e
.
push
({
fieldCode
:
t
.
fieldCode
,
fieldName
:
t
.
fieldName
})});
a
()(
e
);
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),
location
.
href
=
t
+
"/haoban-manage-web/record/define-export?exportTitleContent="
+
a
()(
e
),
this
.
$emit
(
"cancelCho"
)}},
beforeMount
:
function
(){
this
.
getTemplate
()}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"export-set-container"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-list"
},[
i
(
"draggable"
,{
model
:{
value
:
e
.
checkedList
,
callback
:
function
(
t
){
e
.
checkedList
=
t
},
expression
:
"checkedList"
}},[
e
.
_l
(
e
.
checkedList
,
function
(
t
,
o
){
return
[
t
.
checked
?
i
(
"div"
,{
key
:
t
.
fieldCode
+
o
,
staticClass
:
"cho"
},[
e
.
_v
(
e
.
_s
(
t
.
fieldName
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
deleteField
(
o
)}}})]):
e
.
_e
()]})],
2
)],
1
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
e
.
_v
(
"选择需要导出的字段"
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area-group"
},[
i
(
"div"
,{
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
}),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
i
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
tempList
,
function
(
t
,
o
){
return
i
(
"div"
,{
key
:
t
.
fieldCode
+
o
,
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
},[
e
.
_v
(
e
.
_s
(
t
.
title
))]),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
e
.
_l
(
e
.
origin
,
function
(
o
){
return
[
o
.
parentCode
==
t
.
fieldCode
?
i
(
"li"
,{
key
:
o
.
fieldCode
},[
i
(
"el-checkbox"
,{
key
:
o
.
fieldCode
,
attrs
:{
label
:
o
.
fieldName
},
on
:{
change
:
function
(
t
){
e
.
checkThis
(
o
)}},
model
:{
value
:
o
.
checked
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"checked"
,
t
)},
expression
:
"items.checked"
}},[
e
.
_v
(
e
.
_s
(
o
.
fieldName
))])],
1
):
e
.
_e
()]})],
2
)])})],
2
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"handle-cho-btn"
},[
i
(
"el-button"
,{
staticClass
:
"export-btn"
,
attrs
:{
type
:
"primary"
,
disabled
:
e
.
checkedList
.
length
<
1
},
on
:{
click
:
e
.
exportCho
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
cancelCho
}},[
e
.
_v
(
"取消"
)])],
1
)])},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"title"
},[
this
.
_v
(
"已选择字段"
),
t
(
"span"
,[
this
.
_v
(
"导出的列表中将按顺序显示这些字段(可拖拽排序)"
)])])}]};
var
c
=
i
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
e
){
i
(
"J8vX"
)},
null
,
null
);
t
.
a
=
c
.
exports
},
nyZT
:
function
(
e
,
t
){},
uGJV
:
function
(
e
,
t
){},
yjiq
:
function
(
e
,
t
){},
zGJY
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
i
(
"3Xzz"
),
a
=
i
(
"P9l9"
),
s
=
i
(
"O3H5"
),
n
=
i
(
"NNAT"
),
r
=
{
name
:
"employeeRecord"
,
components
:{
navCrumb
:
o
.
a
,
employeeList
:
n
.
a
,
exportSet
:
s
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
""
}],
typeObj
:{
onWorkCout
:
"在职员工"
,
allWorkCount
:
"全职"
,
partTimeWorkCount
:
"兼职"
,
outWorkCount
:
"外包"
,
practiceWorkCount
:
"实习"
,
noTypeWorkCount
:
"无类型"
,
regularCount
:
"正式"
,
onTrialCount
:
"试用"
,
noStatusCount
:
"无状态"
},
otherSet
:{},
countObj
:{},
showExportSet
:
!
1
}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
cancelCho
:
function
(){
this
.
showExportSet
=!
1
},
showExportSetFn
:
function
(){
this
.
showExportSet
=!
0
},
getEmployeeCount
:
function
(){
var
e
=
this
;
Object
(
a
.
a
)(
"/haoban-manage-web/record/employee-count-detail"
,{}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
countObj
=
t
.
data
.
result
:
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}},
beforeMount
:
function
(){
this
.
getEmployeeCount
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap employee-record-wrap"
},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
,
slotFlag
:
!
0
}},[[
i
(
"div"
,{
staticClass
:
"top-area"
},[
i
(
"div"
,{
staticClass
:
"top-title"
},[
i
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
"在职员工"
)]),
e
.
_v
(
" "
),
i
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recordIo?importCode=record"
)}}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"导入员工档案"
),
i
(
"i"
,{
staticClass
:
"el-icon-upload el-icon--right"
})])],
1
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"e-type-num-title"
},
e
.
_l
(
e
.
countObj
,
function
(
t
,
o
){
return
i
(
"div"
,{
key
:
o
,
staticClass
:
"type-cell"
,
class
:
"onWorkCout"
==
o
||
"noTypeWorkCount"
==
o
?
"with-bdr"
:
""
},[
i
(
"p"
,{
staticClass
:
"type-name"
},[
e
.
_v
(
e
.
_s
(
e
.
typeObj
[
o
]))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
e
.
_s
(
t
))])])}))])]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"e-record-container"
},[
e
.
showExportSet
?[
i
(
"export-set"
,{
attrs
:{
otherSet
:
e
.
otherSet
},
on
:{
cancelCho
:
e
.
cancelCho
}})]:[
i
(
"employee-list"
,{
on
:{
showExportSetFn
:
e
.
showExportSetFn
}})]],
2
)])]),
e
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
c
=
i
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
e
){
i
(
"nyZT"
)},
null
,
null
);
t
.
default
=
c
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.9
b1e4bb94dc95351954d
.js
→
dist/static/js/manifest.9
694efd06783188973e1
.js
View file @
9a7cd6ab
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
82
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52553b96345dd3750f43"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"18929084ede2c2225e24"
,
5
:
"baa22d481d8bbd83425c"
,
6
:
"864d62ab6b379f7b0f55"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"02a2bbb61efe1946f33b"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"8a2d85b6cc3b95b868d9"
,
15
:
"ed6f2f9ae725367ccfc3"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"a579fe9e82eab9ece806"
,
26
:
"8f0bb144b5e757399727"
,
27
:
"b5f0e5bd5920771b58af"
,
28
:
"140ad99228544036c969"
,
29
:
"36261093da9264fa5f33"
,
30
:
"0d4999d53befa8fd9eaa"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"031f3a5aae4656aba067"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"d17e2c61f3cc8d6972fa"
,
40
:
"56797b378549955e7f19"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"9dce74b07cc47cdf56db"
,
54
:
"1503b643475934e2b5e1"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"94bbfa32e0086c5f0bbc"
,
57
:
"a5308ec502fd9436e4d8"
,
58
:
"78fea9e14de750887bf1"
,
59
:
"e232c753f68c56d9e59c"
,
60
:
"2a9bebb0261ef9a7a939"
,
61
:
"8833a156f1e38036fb28"
,
62
:
"44d1241f8d57451d0c10"
,
63
:
"25cb3ac91e9616a47dde"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"d7e3675c4b4931db738d"
,
68
:
"13404d9aa7a460952885"
,
69
:
"ff1445c96fd757245229"
,
70
:
"3720d31e136a7f99a873"
,
71
:
"458af30d30795059cdbe"
,
72
:
"cba3aa56f0a846445e33"
,
73
:
"dc84bab89c2090b47673"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"e24f155e1168c927ee44"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
82
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"52553b96345dd3750f43"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"18929084ede2c2225e24"
,
5
:
"baa22d481d8bbd83425c"
,
6
:
"a833ce8868ce70c6219e"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"4210ed7b336c1bcfc531"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"8a2d85b6cc3b95b868d9"
,
15
:
"92854409541cf66d1361"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"a579fe9e82eab9ece806"
,
26
:
"8f0bb144b5e757399727"
,
27
:
"b5f0e5bd5920771b58af"
,
28
:
"140ad99228544036c969"
,
29
:
"36261093da9264fa5f33"
,
30
:
"0d4999d53befa8fd9eaa"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"031f3a5aae4656aba067"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"23b83bd7920693bc35c6"
,
39
:
"d17e2c61f3cc8d6972fa"
,
40
:
"56797b378549955e7f19"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"9dce74b07cc47cdf56db"
,
54
:
"1503b643475934e2b5e1"
,
55
:
"c423570fcbf037d349d9"
,
56
:
"94bbfa32e0086c5f0bbc"
,
57
:
"a5308ec502fd9436e4d8"
,
58
:
"78fea9e14de750887bf1"
,
59
:
"e232c753f68c56d9e59c"
,
60
:
"2a9bebb0261ef9a7a939"
,
61
:
"8833a156f1e38036fb28"
,
62
:
"44d1241f8d57451d0c10"
,
63
:
"25cb3ac91e9616a47dde"
,
64
:
"ebc341a9017c4b2c1112"
,
65
:
"afcb60484e7a9ec39f28"
,
66
:
"0c2656f4decfecb59972"
,
67
:
"d7e3675c4b4931db738d"
,
68
:
"13404d9aa7a460952885"
,
69
:
"ff1445c96fd757245229"
,
70
:
"3720d31e136a7f99a873"
,
71
:
"458af30d30795059cdbe"
,
72
:
"cba3aa56f0a846445e33"
,
73
:
"dc84bab89c2090b47673"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"e24f155e1168c927ee44"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
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
src/components/contacts/storeFrame/clerkView.vue
View file @
9a7cd6ab
...
...
@@ -14,7 +14,7 @@
<el-option
label=
"已使用好办"
:value=
"1"
></el-option>
<el-option
label=
"未使用好办"
:value=
"0"
></el-option>
</el-select>
<span
style=
"vertical-align: middle;margin-right: 0"
class=
"J_show-children el-button"
size=
"small"
>
<el-checkbox
class=
"m-r-10"
v-model=
"showChildMember"
@
change=
"setChildMemberShow"
>
显示子分组
门店
</el-checkbox><a
class=
"a-href"
></a>
</span>
<span
style=
"vertical-align: middle;margin-right: 0"
class=
"J_show-children el-button"
size=
"small"
>
<el-checkbox
class=
"m-r-10"
v-model=
"showChildMember"
@
change=
"setChildMemberShow"
>
显示子分组
成员
</el-checkbox><a
class=
"a-href"
></a>
</span>
<el-button
class=
"vertical-middle"
plain
@
click=
"exportClerk"
>
批量导出
</el-button>
</div>
<el-table
ref=
"clerkViewTable"
class=
"diy-table"
:data=
"tableData"
>
...
...
@@ -43,7 +43,9 @@
<ul>
<li
v-for=
"(clerk, index) in scope.row.clerks"
:key=
"clerk.employeeClerkId"
class=
"clerk-obj-li"
>
<div
class=
"clerk-name clerk-cell"
>
<el-radio
:value=
"1"
:label=
"clerk.isManager"
@
change=
"changeManager(scope.row, clerk)"
>
{{
clerk
.
name
}}
</el-radio>
<el-radio
:value=
"1"
:label=
"clerk.isManager"
><span
style=
"display: inline-block"
@
click=
"changeManager(scope.row, clerk)"
>
{{
clerk
.
name
}}
</span></el-radio
>
<span
class=
"manager"
v-if=
"clerk.isManager == 1"
>
店长
</span>
</div>
<div
class=
"clerk-cell clerk-phone"
>
{{
clerk
.
nationcode
==
'86'
?
clerk
.
phoneNumber
:
'+'
+
clerk
.
nationcode
+
'-'
+
clerk
.
phoneNumber
}}
</div>
...
...
@@ -180,6 +182,9 @@ export default {
*/
changeManager
(
row
,
clerk
)
{
let
that
=
this
;
if
(
clerk
.
isManager
==
1
)
{
return
false
;
}
that
.
$confirm
(
'确定设置为店长?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -275,7 +280,7 @@ export default {
let
params
=
{
groupId
:
that
.
clerkStoreId
,
type
:
that
.
storeType
||
''
,
status
:
that
.
store
Status
||
''
,
activationStatus
:
that
.
activation
Status
||
''
,
showChild
:
!!
that
.
showChildMember
?
1
:
0
};
postExcel
(
'/haoban-manage-web/store/clerk-batch-export'
,
params
)
...
...
src/components/employeeRecord/employeeList.vue
View file @
9a7cd6ab
...
...
@@ -18,7 +18,7 @@
<span
class=
"demonstration"
>
离职日期
</span>
<el-date-picker
v-model=
"fireDate"
type=
"daterange"
align=
"right"
value-format=
"yyyy-MM-dd"
unlink-panels
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"selectDate"
:picker-options=
"pickerOptions2"
>
</el-date-picker>
</div>
<el-input
v-model=
"searchParam"
placeholder=
"请输入姓名/手机号/员工code"
style=
"width: 2
18
px;margin-left:10px;"
@
keyup
.
enter
.
native=
"searchFn"
clearable
@
clear=
"searchFn"
></el-input>
<el-input
v-model=
"searchParam"
placeholder=
"请输入姓名/手机号/员工code"
style=
"width: 2
40
px;margin-left:10px;"
@
keyup
.
enter
.
native=
"searchFn"
clearable
@
clear=
"searchFn"
></el-input>
</div>
<el-button
type=
"primary"
@
click=
"showExportSet"
><i
class=
"iconfont icon-icon_yunxiazai p-r-6"
></i>
导出
</el-button>
</div>
...
...
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