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
c46c6395
Commit
c46c6395
authored
Dec 17, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改卡券
parent
3d3bbe4f
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
73 additions
and
73 deletions
+73
-73
index.html
dist/index.html
+2
-2
app.c472dab32df3e0cc526ebfb45ffd7250.css
dist/static/css/app.c472dab32df3e0cc526ebfb45ffd7250.css
+0
-0
24.56085041ae784faf3c32.js
dist/static/js/24.56085041ae784faf3c32.js
+2
-2
25.1f0440574e8a0bac19bb.js
dist/static/js/25.1f0440574e8a0bac19bb.js
+2
-2
28.09ba708b317cd863bd41.js
dist/static/js/28.09ba708b317cd863bd41.js
+2
-2
5.992fbbfa5966c95375ae.js
dist/static/js/5.992fbbfa5966c95375ae.js
+2
-2
6.68d292195a881fcb1c0d.js
dist/static/js/6.68d292195a881fcb1c0d.js
+2
-2
65.efbf8d97795f3130cf2a.js
dist/static/js/65.efbf8d97795f3130cf2a.js
+2
-2
66.ee588b2e7cc90c1990d4.js
dist/static/js/66.ee588b2e7cc90c1990d4.js
+2
-2
67.dba142827d793ce3c03c.js
dist/static/js/67.dba142827d793ce3c03c.js
+2
-2
68.1fa9254f23908356844f.js
dist/static/js/68.1fa9254f23908356844f.js
+2
-2
69.da63bdfde8b85b8101a0.js
dist/static/js/69.da63bdfde8b85b8101a0.js
+2
-2
70.86604494d6befb3b7fe1.js
dist/static/js/70.86604494d6befb3b7fe1.js
+2
-2
71.c31161658f3f378b6d48.js
dist/static/js/71.c31161658f3f378b6d48.js
+2
-2
72.5d421834f52ef801a2b6.js
dist/static/js/72.5d421834f52ef801a2b6.js
+2
-2
73.965c68191fa7d46bd0fa.js
dist/static/js/73.965c68191fa7d46bd0fa.js
+2
-2
74.4f9487c75611c4f24957.js
dist/static/js/74.4f9487c75611c4f24957.js
+2
-2
75.ae3378ba5883737ee93e.js
dist/static/js/75.ae3378ba5883737ee93e.js
+2
-2
76.7bde1c1a121b6289d5ec.js
dist/static/js/76.7bde1c1a121b6289d5ec.js
+2
-2
77.400573827121945ff6ec.js
dist/static/js/77.400573827121945ff6ec.js
+2
-2
78.4e1aa8a9d072352195d3.js
dist/static/js/78.4e1aa8a9d072352195d3.js
+2
-2
79.538d5c8bcccf2e7791b5.js
dist/static/js/79.538d5c8bcccf2e7791b5.js
+2
-2
80.d63547dbc4122065934a.js
dist/static/js/80.d63547dbc4122065934a.js
+2
-2
81.dc300d9df998b44e6232.js
dist/static/js/81.dc300d9df998b44e6232.js
+2
-2
82.144114e508b0964b3a4a.js
dist/static/js/82.144114e508b0964b3a4a.js
+2
-2
83.8f8eee29795665b74226.js
dist/static/js/83.8f8eee29795665b74226.js
+2
-2
84.ae9e016eb15a5ec99e7f.js
dist/static/js/84.ae9e016eb15a5ec99e7f.js
+2
-2
85.bfae8273934cbb68d34c.js
dist/static/js/85.bfae8273934cbb68d34c.js
+2
-2
86.62d40f9d4fac7cd847c0.js
dist/static/js/86.62d40f9d4fac7cd847c0.js
+2
-2
87.0fb42cff2a7382428597.js
dist/static/js/87.0fb42cff2a7382428597.js
+2
-2
88.4baa99b5ba65f517e6b4.js
dist/static/js/88.4baa99b5ba65f517e6b4.js
+2
-2
89.56ead064ee0a4d3c0039.js
dist/static/js/89.56ead064ee0a4d3c0039.js
+2
-2
90.8e9170a6a4b5293ea50b.js
dist/static/js/90.8e9170a6a4b5293ea50b.js
+2
-2
app.012ec3c0463bf6f4161a.js
dist/static/js/app.012ec3c0463bf6f4161a.js
+2
-2
manifest.75e8d27e680007041051.js
dist/static/js/manifest.75e8d27e680007041051.js
+2
-2
clerkInfo.vue
src/components/contacts/storeFrame/clerkInfo.vue
+2
-2
contactPermission.vue
src/views/setting/contactPermission.vue
+3
-3
No files found.
dist/index.html
View file @
c46c6395
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.f585b4c0ce8deda7ba9434d71ea7eb34.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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.18f41cf9bb78a4d667cc.js
></script><script
type=
text/javascript
src=
./static/js/vendor.4cb881ee73a47d4b4440.js
></script><script
type=
text/javascript
src=
./static/js/app.7fc781e648e9d0eb7f04.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.c472dab32df3e0cc526ebfb45ffd7250.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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.75e8d27e680007041051.js
></script><script
type=
text/javascript
src=
./static/js/vendor.4cb881ee73a47d4b4440.js
></script><script
type=
text/javascript
src=
./static/js/app.012ec3c0463bf6f4161a.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
f585b4c0ce8deda7ba9434d71ea7eb34
.css
→
dist/static/css/app.
c472dab32df3e0cc526ebfb45ffd7250
.css
View file @
c46c6395
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/2
5.d3508ee6e53c11c834a8
.js
→
dist/static/js/2
4.56085041ae784faf3c32
.js
View file @
c46c6395
webpackJsonp
([
25
],{
"738z"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"3Xzz"
),
s
=
i
(
"elmV"
),
n
=
i
(
"P9l9"
),
l
=
i
(
"O3H5"
),
o
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
a
.
a
,
uploadExcelComponent
:
s
.
a
,
exportSet
:
l
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
"/employeeRecord"
},{
name
:
"导入员工档案"
,
path
:
""
}],
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
host
:
window
.
location
.
origin
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/record/record-template-file-upload"
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
,
tempList
:[],
dialogVisible
:
!
1
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
};
Object
(
n
.
a
)(
"/haoban-manage-web/record/find-error-log"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
.
result
,
t
.
formatData
(
e
.
data
.
result
.
template
,
e
.
data
.
result
.
page
.
result
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatData
:
function
(
t
,
e
){
var
i
=
[];
t
.
forEach
(
function
(
t
){
i
.
push
({
fieldCode
:
t
.
fieldCode
,
fieldName
:
t
.
fieldName
})}),
this
.
tempList
=
i
,
this
.
logList
=
e
,
this
.
loading
=!
1
},
beforeAvatarUpload
:
function
(
t
){
var
e
=
t
.
name
.
lastIndexOf
(
"."
);
if
(
e
<
0
)
return
this
.
$message
.
error
(
"文件格式不正确!"
),
!
1
;
var
i
=
t
.
name
.
substring
(
e
+
1
,
t
.
name
.
length
),
a
=
i
.
includes
(
"xls"
)
||
i
.
includes
(
"xlsx"
);
return
a
||
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
a
},
uploadSuccess
:
function
(
t
,
e
){
var
i
=
this
;
1
==
t
.
errorCode
?(
i
.
fileList
=
[],
i
.
$forceUpdate
(),
i
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
i
.
$nextTick
(
function
(){
i
.
fileList
=
[]})):
i
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
getChange
:
function
(
t
,
e
){
var
i
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
a
=
t
.
name
.
lastIndexOf
(
"."
),
s
=
t
.
name
.
substring
(
a
+
1
,
t
.
name
.
length
);
if
(
!
(
s
.
includes
(
"xls"
)
||
s
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
i
,
1
),
!
1
;
this
.
fileList
=
[
e
[
i
]]},
callExport
:
function
(){
this
.
dialogVisible
=!
0
},
cancelCho
:
function
(){
this
.
dialogVisible
=!
1
}},
beforeMount
:
function
(){
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap record-io-wrap"
,
style
:{
height
:
t
.
windowH
}},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"io-container"
},[
t
.
dialogVisible
?[
i
(
"export-set"
,{
on
:{
cancelCho
:
t
.
cancelCho
}})]:[
t
.
_m
(
0
),
t
.
_v
(
" "
),
i
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
i
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入员工档案"
)]),
t
.
_v
(
" "
),
i
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
i
(
"div"
,{
staticClass
:
"handle-area import"
},[
i
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载模板
\
n "
),
i
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/record/export-record-template.json"
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"下载"
),
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"step-div"
},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传员工档案
\
n "
),
i
(
"div"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
"on-remove"
:
t
.
handleRemove
}},[
i
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"up-btn-div"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
"export"
==
t
.
type
?
i
(
"div"
,{
staticClass
:
"handle-area import"
},[
i
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出员工档案
\
n "
),
i
(
"a"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
callExport
}},[
t
.
_v
(
"下载"
),
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"step-div"
},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传更新后的员工档案
\
n "
),
i
(
"div"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-upload"
,{
ref
:
"uploadEdit"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
}},[
i
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"up-btn-div"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"uploadEdit"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
i
(
"div"
,{
staticClass
:
"error-log import"
},[
i
(
"div"
,{
staticClass
:
"title-area"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
i
(
"a"
,{
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/record/error-log-export?importCode="
+
t
.
$route
.
query
.
importCode
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
i
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
,
height
:
"400"
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"fieldValue"
,
label
:
"字段值"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"fieldName"
,
label
:
"字段名"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"failReason"
,
label
:
"错误原因"
}}),
t
.
_v
(
" "
),
t
.
_l
(
t
.
tempList
,
function
(
t
){
return
[
i
(
"el-table-column"
,{
key
:
t
.
fieldCode
,
attrs
:{
width
:
"200"
,
label
:
t
.
fieldName
,
prop
:
t
.
fieldCode
}})]})],
2
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
i
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}}):
t
.
_e
()],
1
)]],
2
)])]),
t
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"ul"
,{
staticClass
:
"tip-area"
},[
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号
\
n "
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)
\
n "
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"如果想要新增字段,可在后台档案设置中增加,再导入模板"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"字段类型为图片上传、多选的字段无法导入、导出"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入
\
n "
)])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"tip"
},[
this
.
_v
(
"导入总条数:0条,成功导入0条,"
),
e
(
"span"
,{
staticClass
:
"red"
},[
this
.
_v
(
"错误导入0条"
)])])}]};
var
c
=
i
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
i
(
"zcLw"
)},
null
,
null
);
e
.
default
=
c
.
exports
},
O3H5
:
function
(
t
,
e
,
i
){
"use strict"
;
var
a
=
i
(
"mvHQ"
),
s
=
i
.
n
(
a
),
n
=
i
(
"P9l9"
),
l
=
i
(
"DAYN"
),
o
=
{
name
:
"export-set"
,
components
:{
draggable
:
i
.
n
(
l
).
a
},
data
:
function
(){
return
{
tempList
:[],
checkList
:[],
origin
:[],
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
checkedList
:[]}},
methods
:{
deleteField
:
function
(
t
){
this
.
checkedList
.
splice
(
t
,
1
);
var
e
=
this
.
checkedList
.
map
(
function
(
t
){
return
t
.
fieldCode
});
this
.
origin
.
forEach
(
function
(
t
,
i
){
e
.
includes
(
t
.
fieldCode
)?
t
.
checked
=!
0
:
t
.
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
(
t
){
var
e
=
this
;
t
.
checked
?
e
.
checkedList
.
push
(
t
):
e
.
checkedList
.
forEach
(
function
(
i
,
a
){
i
.
fieldCode
===
t
.
fieldCode
&&
e
.
checkedList
.
splice
(
a
,
1
)}),
e
.
checkHalf
()},
handleCheckAllChange
:
function
(
t
){
this
.
checkedList
=
[],
this
.
origin
.
forEach
(
function
(
e
,
i
){
e
.
checked
=
t
,
t
&&
(
e
.
order
=
i
+
1
)}),
t
&&
(
this
.
checkedList
=
this
.
origin
.
slice
(
0
)),
this
.
checkHalf
()},
getTemplate
:
function
(){
var
t
=
this
;
Object
(
n
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?
t
.
formatTemplateList
(
e
.
data
.
result
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatTemplateList
:
function
(
t
){
var
e
=
[],
i
=
[],
a
=
t
;
t
.
forEach
(
function
(
t
){
t
.
title
=
t
.
fieldName
,
t
.
name
=
t
.
fieldName
,
t
.
checked
=!
1
;
var
i
=
[];
a
.
forEach
(
function
(
e
){
e
.
parentCode
==
t
.
fieldCode
&&
i
.
push
(
e
)}),
i
.
sort
(
function
(
t
,
e
){
return
1
*
t
.
sort
-
1
*
e
.
sort
}),
i
.
length
>
0
&&
(
t
.
childrens
=
i
),
0
==
t
.
parentCode
&&
e
.
push
(
t
)}),
e
.
sort
(
function
(
t
,
e
){
return
1
*
t
.
sort
-
1
*
e
.
sort
}),
e
.
forEach
(
function
(
t
){
i
=
i
.
concat
(
t
.
childrens
)}),
this
.
origin
=
i
,
this
.
tempList
=
e
},
cancelCho
:
function
(){
this
.
origin
.
forEach
(
function
(
t
){
t
.
checked
=!
1
}),
this
.
$emit
(
"cancelCho"
)},
exportCho
:
function
(){
var
t
=
[];
this
.
checkedList
.
forEach
(
function
(
e
){
e
.
checked
&&
t
.
push
({
fieldCode
:
e
.
fieldCode
,
fieldName
:
e
.
fieldName
})});
s
()(
t
);
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
),
location
.
href
=
e
+
"/haoban-manage-web/record/define-export?exportTitleContent="
+
s
()(
t
),
this
.
$emit
(
"cancelCho"
)}},
beforeMount
:
function
(){
this
.
getTemplate
()}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"export-set-container"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-list"
},[
i
(
"draggable"
,{
model
:{
value
:
t
.
checkedList
,
callback
:
function
(
e
){
t
.
checkedList
=
e
},
expression
:
"checkedList"
}},[
t
.
_l
(
t
.
checkedList
,
function
(
e
,
a
){
return
[
e
.
checked
?
i
(
"div"
,{
key
:
e
.
fieldCode
+
a
,
staticClass
:
"cho"
},[
t
.
_v
(
t
.
_s
(
e
.
fieldName
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
e
){
t
.
deleteField
(
a
)}}})]):
t
.
_e
()]})],
2
)],
1
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
t
.
_v
(
"选择需要导出的字段"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area-group"
},[
i
(
"div"
,{
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
}),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
i
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
t
.
isIndeterminate
},
on
:{
change
:
t
.
handleCheckAllChange
},
model
:{
value
:
t
.
checkAll
,
callback
:
function
(
e
){
t
.
checkAll
=
e
},
expression
:
"checkAll"
}},[
t
.
_v
(
"全选"
)])],
1
)]),
t
.
_v
(
" "
),
t
.
_l
(
t
.
tempList
,
function
(
e
,
a
){
return
i
(
"div"
,{
key
:
e
.
fieldCode
+
a
,
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
t
.
_l
(
t
.
origin
,
function
(
a
){
return
[
a
.
parentCode
==
e
.
fieldCode
?
i
(
"li"
,{
key
:
a
.
fieldCode
},[
i
(
"el-checkbox"
,{
key
:
a
.
fieldCode
,
attrs
:{
label
:
a
.
fieldName
},
on
:{
change
:
function
(
e
){
t
.
checkThis
(
a
)}},
model
:{
value
:
a
.
checked
,
callback
:
function
(
e
){
t
.
$set
(
a
,
"checked"
,
e
)},
expression
:
"items.checked"
}},[
t
.
_v
(
t
.
_s
(
a
.
fieldName
))])],
1
):
t
.
_e
()]})],
2
)])})],
2
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"handle-cho-btn"
},[
i
(
"el-button"
,{
staticClass
:
"export-btn"
,
attrs
:{
type
:
"primary"
,
disabled
:
t
.
checkedList
.
length
<
1
},
on
:{
click
:
t
.
exportCho
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
t
.
cancelCho
}},[
t
.
_v
(
"取消"
)])],
1
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"title"
},[
this
.
_v
(
"已选择字段"
),
e
(
"span"
,[
this
.
_v
(
"导出的列表中将按顺序显示这些字段(可拖拽排序)"
)])])}]};
var
c
=
i
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
i
(
"fI5Z"
)},
null
,
null
);
e
.
a
=
c
.
exports
},
fI5Z
:
function
(
t
,
e
){},
zcLw
:
function
(
t
,
e
){}});
webpackJsonp
([
24
],{
"738z"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"3Xzz"
),
s
=
i
(
"elmV"
),
n
=
i
(
"P9l9"
),
l
=
i
(
"O3H5"
),
o
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
a
.
a
,
uploadExcelComponent
:
s
.
a
,
exportSet
:
l
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
"/employeeRecord"
},{
name
:
"导入员工档案"
,
path
:
""
}],
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
host
:
window
.
location
.
origin
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/record/record-template-file-upload"
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
,
tempList
:[],
dialogVisible
:
!
1
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
};
Object
(
n
.
a
)(
"/haoban-manage-web/record/find-error-log"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
.
result
,
t
.
formatData
(
e
.
data
.
result
.
template
,
e
.
data
.
result
.
page
.
result
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatData
:
function
(
t
,
e
){
var
i
=
[];
t
.
forEach
(
function
(
t
){
i
.
push
({
fieldCode
:
t
.
fieldCode
,
fieldName
:
t
.
fieldName
})}),
this
.
tempList
=
i
,
this
.
logList
=
e
,
this
.
loading
=!
1
},
beforeAvatarUpload
:
function
(
t
){
var
e
=
t
.
name
.
lastIndexOf
(
"."
);
if
(
e
<
0
)
return
this
.
$message
.
error
(
"文件格式不正确!"
),
!
1
;
var
i
=
t
.
name
.
substring
(
e
+
1
,
t
.
name
.
length
),
a
=
i
.
includes
(
"xls"
)
||
i
.
includes
(
"xlsx"
);
return
a
||
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
a
},
uploadSuccess
:
function
(
t
,
e
){
var
i
=
this
;
1
==
t
.
errorCode
?(
i
.
fileList
=
[],
i
.
$forceUpdate
(),
i
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
i
.
$nextTick
(
function
(){
i
.
fileList
=
[]})):
i
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
getChange
:
function
(
t
,
e
){
var
i
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
a
=
t
.
name
.
lastIndexOf
(
"."
),
s
=
t
.
name
.
substring
(
a
+
1
,
t
.
name
.
length
);
if
(
!
(
s
.
includes
(
"xls"
)
||
s
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
i
,
1
),
!
1
;
this
.
fileList
=
[
e
[
i
]]},
callExport
:
function
(){
this
.
dialogVisible
=!
0
},
cancelCho
:
function
(){
this
.
dialogVisible
=!
1
}},
beforeMount
:
function
(){
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap record-io-wrap"
,
style
:{
height
:
t
.
windowH
}},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"io-container"
},[
t
.
dialogVisible
?[
i
(
"export-set"
,{
on
:{
cancelCho
:
t
.
cancelCho
}})]:[
t
.
_m
(
0
),
t
.
_v
(
" "
),
i
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
i
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入员工档案"
)]),
t
.
_v
(
" "
),
i
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
i
(
"div"
,{
staticClass
:
"handle-area import"
},[
i
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载模板
\
n "
),
i
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/record/export-record-template.json"
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"下载"
),
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"step-div"
},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传员工档案
\
n "
),
i
(
"div"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
"on-remove"
:
t
.
handleRemove
}},[
i
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"up-btn-div"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
"export"
==
t
.
type
?
i
(
"div"
,{
staticClass
:
"handle-area import"
},[
i
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出员工档案
\
n "
),
i
(
"a"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
callExport
}},[
t
.
_v
(
"下载"
),
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"step-div"
},[
i
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传更新后的员工档案
\
n "
),
i
(
"div"
,{
staticClass
:
"d-u-btn"
},[
i
(
"el-upload"
,{
ref
:
"uploadEdit"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
}},[
i
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"up-btn-div"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"uploadEdit"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
i
(
"div"
,{
staticClass
:
"error-log import"
},[
i
(
"div"
,{
staticClass
:
"title-area"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
i
(
"a"
,{
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/record/error-log-export?importCode="
+
t
.
$route
.
query
.
importCode
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
i
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
,
height
:
"400"
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"fieldValue"
,
label
:
"字段值"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"fieldName"
,
label
:
"字段名"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
prop
:
"failReason"
,
label
:
"错误原因"
}}),
t
.
_v
(
" "
),
t
.
_l
(
t
.
tempList
,
function
(
t
){
return
[
i
(
"el-table-column"
,{
key
:
t
.
fieldCode
,
attrs
:{
width
:
"200"
,
label
:
t
.
fieldName
,
prop
:
t
.
fieldCode
}})]})],
2
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
i
(
"el-pagination"
,{
staticClass
:
"pagination"
,
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}}):
t
.
_e
()],
1
)]],
2
)])]),
t
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"ul"
,{
staticClass
:
"tip-area"
},[
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号
\
n "
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)
\
n "
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"如果想要新增字段,可在后台档案设置中增加,再导入模板"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"字段类型为图片上传、多选的字段无法导入、导出"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入
\
n "
)])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"tip"
},[
this
.
_v
(
"导入总条数:0条,成功导入0条,"
),
e
(
"span"
,{
staticClass
:
"red"
},[
this
.
_v
(
"错误导入0条"
)])])}]};
var
c
=
i
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
i
(
"zcLw"
)},
null
,
null
);
e
.
default
=
c
.
exports
},
O3H5
:
function
(
t
,
e
,
i
){
"use strict"
;
var
a
=
i
(
"mvHQ"
),
s
=
i
.
n
(
a
),
n
=
i
(
"P9l9"
),
l
=
i
(
"DAYN"
),
o
=
{
name
:
"export-set"
,
components
:{
draggable
:
i
.
n
(
l
).
a
},
data
:
function
(){
return
{
tempList
:[],
checkList
:[],
origin
:[],
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
checkedList
:[]}},
methods
:{
deleteField
:
function
(
t
){
this
.
checkedList
.
splice
(
t
,
1
);
var
e
=
this
.
checkedList
.
map
(
function
(
t
){
return
t
.
fieldCode
});
this
.
origin
.
forEach
(
function
(
t
,
i
){
e
.
includes
(
t
.
fieldCode
)?
t
.
checked
=!
0
:
t
.
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
(
t
){
var
e
=
this
;
t
.
checked
?
e
.
checkedList
.
push
(
t
):
e
.
checkedList
.
forEach
(
function
(
i
,
a
){
i
.
fieldCode
===
t
.
fieldCode
&&
e
.
checkedList
.
splice
(
a
,
1
)}),
e
.
checkHalf
()},
handleCheckAllChange
:
function
(
t
){
this
.
checkedList
=
[],
this
.
origin
.
forEach
(
function
(
e
,
i
){
e
.
checked
=
t
,
t
&&
(
e
.
order
=
i
+
1
)}),
t
&&
(
this
.
checkedList
=
this
.
origin
.
slice
(
0
)),
this
.
checkHalf
()},
getTemplate
:
function
(){
var
t
=
this
;
Object
(
n
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?
t
.
formatTemplateList
(
e
.
data
.
result
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatTemplateList
:
function
(
t
){
var
e
=
[],
i
=
[],
a
=
t
;
t
.
forEach
(
function
(
t
){
t
.
title
=
t
.
fieldName
,
t
.
name
=
t
.
fieldName
,
t
.
checked
=!
1
;
var
i
=
[];
a
.
forEach
(
function
(
e
){
e
.
parentCode
==
t
.
fieldCode
&&
i
.
push
(
e
)}),
i
.
sort
(
function
(
t
,
e
){
return
1
*
t
.
sort
-
1
*
e
.
sort
}),
i
.
length
>
0
&&
(
t
.
childrens
=
i
),
0
==
t
.
parentCode
&&
e
.
push
(
t
)}),
e
.
sort
(
function
(
t
,
e
){
return
1
*
t
.
sort
-
1
*
e
.
sort
}),
e
.
forEach
(
function
(
t
){
i
=
i
.
concat
(
t
.
childrens
)}),
this
.
origin
=
i
,
this
.
tempList
=
e
},
cancelCho
:
function
(){
this
.
origin
.
forEach
(
function
(
t
){
t
.
checked
=!
1
}),
this
.
$emit
(
"cancelCho"
)},
exportCho
:
function
(){
var
t
=
[];
this
.
checkedList
.
forEach
(
function
(
e
){
e
.
checked
&&
t
.
push
({
fieldCode
:
e
.
fieldCode
,
fieldName
:
e
.
fieldName
})});
s
()(
t
);
var
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)
&&
(
e
=
"http://www.gicdev.com"
),
location
.
href
=
e
+
"/haoban-manage-web/record/define-export?exportTitleContent="
+
s
()(
t
),
this
.
$emit
(
"cancelCho"
)}},
beforeMount
:
function
(){
this
.
getTemplate
()}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"export-set-container"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-list"
},[
i
(
"draggable"
,{
model
:{
value
:
t
.
checkedList
,
callback
:
function
(
e
){
t
.
checkedList
=
e
},
expression
:
"checkedList"
}},[
t
.
_l
(
t
.
checkedList
,
function
(
e
,
a
){
return
[
e
.
checked
?
i
(
"div"
,{
key
:
e
.
fieldCode
+
a
,
staticClass
:
"cho"
},[
t
.
_v
(
t
.
_s
(
e
.
fieldName
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
e
){
t
.
deleteField
(
a
)}}})]):
t
.
_e
()]})],
2
)],
1
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
t
.
_v
(
"选择需要导出的字段"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"cho-area-group"
},[
i
(
"div"
,{
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
}),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
i
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
t
.
isIndeterminate
},
on
:{
change
:
t
.
handleCheckAllChange
},
model
:{
value
:
t
.
checkAll
,
callback
:
function
(
e
){
t
.
checkAll
=
e
},
expression
:
"checkAll"
}},[
t
.
_v
(
"全选"
)])],
1
)]),
t
.
_v
(
" "
),
t
.
_l
(
t
.
tempList
,
function
(
e
,
a
){
return
i
(
"div"
,{
key
:
e
.
fieldCode
+
a
,
staticClass
:
"group-div"
},[
i
(
"div"
,{
staticClass
:
"group-title"
},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"group-son-list"
},[
t
.
_l
(
t
.
origin
,
function
(
a
){
return
[
a
.
parentCode
==
e
.
fieldCode
?
i
(
"li"
,{
key
:
a
.
fieldCode
},[
i
(
"el-checkbox"
,{
key
:
a
.
fieldCode
,
attrs
:{
label
:
a
.
fieldName
},
on
:{
change
:
function
(
e
){
t
.
checkThis
(
a
)}},
model
:{
value
:
a
.
checked
,
callback
:
function
(
e
){
t
.
$set
(
a
,
"checked"
,
e
)},
expression
:
"items.checked"
}},[
t
.
_v
(
t
.
_s
(
a
.
fieldName
))])],
1
):
t
.
_e
()]})],
2
)])})],
2
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"handle-cho-btn"
},[
i
(
"el-button"
,{
staticClass
:
"export-btn"
,
attrs
:{
type
:
"primary"
,
disabled
:
t
.
checkedList
.
length
<
1
},
on
:{
click
:
t
.
exportCho
}},[
i
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
t
.
cancelCho
}},[
t
.
_v
(
"取消"
)])],
1
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"title"
},[
this
.
_v
(
"已选择字段"
),
e
(
"span"
,[
this
.
_v
(
"导出的列表中将按顺序显示这些字段(可拖拽排序)"
)])])}]};
var
c
=
i
(
"VU/8"
)(
o
,
r
,
!
1
,
function
(
t
){
i
(
"fI5Z"
)},
null
,
null
);
e
.
a
=
c
.
exports
},
fI5Z
:
function
(
t
,
e
){},
zcLw
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/2
4.0cf65e860beee78f7a6c
.js
→
dist/static/js/2
5.1f0440574e8a0bac19bb
.js
View file @
c46c6395
webpackJsonp
([
24
],{
"33SU"
:
function
(
t
,
e
){},
JDTu
:
function
(
t
,
e
){},
ahzF
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"card-record-table"
,
props
:{
tableData
:{
type
:[
Array
,
Object
],
default
:
function
(){
return
[]}},
activeTab
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"52"
}}},
data
:
function
(){
return
{}},
filters
:{
percenteNum
:
function
(
t
){
return
t
>
0
?
Number
(
100
*
t
).
toFixed
(
2
)
+
"%"
:
Number
(
t
).
toFixed
(
2
)
+
"%"
}},
methods
:{
toSendDetail
:
function
(
t
,
e
,
a
){
this
.
$router
.
push
(
"/"
+
(
1
==
a
?
"cardSendRecord"
:
"cardGetRecord"
)
+
"?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&coupCardId="
+
e
.
coupCardId
)}}},
o
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"card-record-table m-t-20"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
cardName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
""
,
width
:
"96"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"发送卡券数量,包含扫码发券数"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"发送数量"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
issuingQuantity
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"领取数量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
getedQuantity
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"领取率"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"percenteNum"
)(
e
.
row
.
getedRate
)))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"使用数量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
usageQuantity
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"核销率"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"percenteNum"
)(
e
.
row
.
verificationRate
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"销售额"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
saleAmount
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"发送卡券的导购总人数,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
sendMemberCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
width
:
"200"
,
label
:
"操作"
,
fixed
:
"right"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"1"
)}}},[
t
.
_v
(
"发送记录"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"2"
)}}},[
t
.
_v
(
"领取记录"
)])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
t
){
a
(
"JDTu"
)},
"data-v-96f4e55e"
,
null
).
exports
,
r
=
{
name
:
"card-list-table"
,
props
:{
tableData
:{
type
:[
Array
,
Object
],
default
:
function
(){
return
[]}},
activeTab
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"51"
}}},
data
:
function
(){
return
{}},
methods
:{
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除选中的分类?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
$emit
(
"delCard"
,
e
.
coupCardId
)}).
catch
(
function
(){})},
toEdit
:
function
(
t
,
e
){
this
.
$router
.
push
(
"/newCard?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&coupCardId="
+
e
.
coupCardId
)}}},
l
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
cardName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"兑换券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
effectDateString
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"库存"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
couponStock
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
t
){
a
(
"33SU"
)},
"data-v-552374d2"
,
null
).
exports
,
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"3E4D"
),
p
=
a
(
"PI0u"
),
f
=
{
name
:
"online-chat"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
cardRecordTable
:
i
,
cardListTable
:
n
},
data
:
function
(){
return
{
activeTab
:
"1"
,
leftData
:[{
tabId
:
"1"
,
tabName
:
"短信提醒"
},{
tabId
:
"2"
,
tabName
:
"模板消息"
},{
tabId
:
"3"
,
tabName
:
"图文"
},{
tabId
:
"4"
,
tabName
:
"商品"
},{
tabId
:
"5"
,
tabName
:
"卡券"
,
children
:[{
tabId
:
"51"
,
tabName
:
"卡券列表"
},{
tabId
:
"52"
,
tabName
:
"卡券记录"
}]}],
chatData
:{
chatFlag
:
!
1
,
isMessageRemind
:
!
1
,
messageRemindTime
:
""
,
isTemplateMessage
:
!
1
,
isImgMessage
:
!
1
,
isGoodMessage
:
!
1
,
isIntegralGoodMessage
:
!
1
},
rules
:{
messageRemindTime
:[{
required
:
!
0
,
message
:
"请选择时间"
,
trigger
:
"blur"
}]},
templateName
:
""
,
articleList
:[],
pageSize
:
4
,
pageNum
:
1
,
total
:
0
,
activeName
:
"first"
,
goodsList
:[],
pointList
:[],
cardCoupChatSwitch
:
!
1
,
cardListData
:[],
cardRecordData
:[]}},
methods
:{
toNewCard
:
function
(){
this
.
$router
.
push
(
"/newCard?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
delCard
:
function
(
t
){
this
.
delCardList
(
t
)},
toSendDetail
:
function
(
t
,
e
,
a
){
this
.
$router
.
push
(
"/sendRecord?activeTab="
+
this
.
activeTab
+
"&tabType="
+
a
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&relatedId="
+
(
e
.
id
||
e
.
goodId
))},
changeChatFlag
:
function
(){
this
.
postSave
(
this
.
brandId
)},
handleCurrentChange
:
function
(
t
){
this
.
pageNum
=
t
,
3
==
this
.
activeTab
?
this
.
getArticleList
(
this
.
brandId
):
4
==
this
.
activeTab
?
"first"
==
this
.
activeName
?
this
.
getGoodsList
(
this
.
brandId
):
this
.
getPointList
(
this
.
brandId
):
51
==
this
.
activeTab
?
this
.
getCardList
(
this
.
brandId
):
52
==
this
.
activeTab
&&
this
.
getCardRecord
(
this
.
brandId
)},
saveData
:
Object
(
p
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
postSave
(
e
.
brandId
)})},
500
),
postSave
:
function
(
t
){
var
e
=
this
;
e
.
pageNum
=
1
,
e
.
chatData
.
isIntegralGoodMessage
&&!
e
.
chatData
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
);
var
a
=
{
brandId
:
t
,
chatFlag
:
e
.
chatData
.
chatFlag
?
1
:
0
,
isMessageRemind
:
e
.
chatData
.
isMessageRemind
?
1
:
0
,
messageRemindTime
:
e
.
chatData
.
messageRemindTime
,
isTemplateMessage
:
e
.
chatData
.
isTemplateMessage
?
1
:
0
,
isImgMessage
:
e
.
chatData
.
isImgMessage
?
1
:
0
,
isGoodMessage
:
e
.
chatData
.
isGoodMessage
?
1
:
0
,
isIntegralGoodMessage
:
e
.
chatData
.
isIntegralGoodMessage
?
1
:
0
,
mainStoreFlag
:
e
.
chatData
.
mainStoreFlag
,
minorStoreFlag
:
e
.
chatData
.
minorStoreFlag
,
openCardStoreFlag
:
e
.
chatData
.
openCardStoreFlag
,
clerkSeeOtherFlag
:
e
.
chatData
.
clerkSeeOtherFlag
,
allowGuideContact
:
e
.
chatData
.
allowGuideContact
,
allowGuideMobile
:
e
.
chatData
.
allowGuideMobile
,
allowGuideMessage
:
e
.
chatData
.
allowGuideMessage
,
allowGuideOnlineChat
:
e
.
chatData
.
allowGuideOnlineChat
,
isSeeAuthMember
:
e
.
chatData
.
isSeeAuthMember
,
showFreezeFlag
:
e
.
chatData
.
showFreezeFlag
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/save-member-show-setting"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
if
(
1
==
s
.
errorCode
)
return
u
.
a
.
showmsg
(
"保存成功"
,
"success"
),
3
==
e
.
activeTab
&&
e
.
chatData
.
isImgMessage
&&
e
.
getArticleList
(
t
),
void
(
4
==
e
.
activeTab
&&
(
e
.
chatData
.
isGoodMessage
&&
e
.
getGoodsList
(
t
),
e
.
chatData
.
isIntegralGoodMessage
&&
e
.
getPointList
(
t
),
e
.
chatData
.
isIntegralGoodMessage
&&!
e
.
chatData
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
),
e
.
chatData
.
isGoodMessage
&&!
e
.
chatData
.
isIntegralGoodMessage
&&
(
e
.
activeName
=
"first"
)));
d
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeTab
:
function
(
t
){
if
(
t
.
children
)
return
this
.
activeTab
=
t
.
children
[
0
].
tabId
,
this
.
getCardSet
(
this
.
brandId
),
!
1
;
this
.
pageNum
=
1
,
this
.
activeTab
=
t
.
tabId
,
this
.
getChatSet
(
this
.
brandId
),
this
.
getCardSet
(
this
.
brandId
)},
handleTab
:
function
(
t
,
e
){
this
.
pageNum
=
1
,
"first"
==
t
.
name
?
this
.
getGoodsList
(
this
.
brandId
):
this
.
getPointList
(
this
.
brandId
)},
getTemplate
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_message_template"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
d
.
a
.
errorMsg
(
a
):
e
.
templateName
=
a
.
result
||
"--"
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGoodsList
:
function
(
t
){
var
e
=
this
,
a
=
{
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
,
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_good_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
goodsList
=
a
.
result
.
list
||
[],
void
(
"first"
==
e
.
activeName
&&
(
e
.
total
=
a
.
result
.
total
));
e
.
goodsList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getPointList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_integal_good_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
pointList
=
a
.
result
.
list
||
[],
void
(
"second"
==
e
.
activeName
&&
(
e
.
total
=
a
.
result
.
total
));
e
.
pointList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getArticleList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_img_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
articleList
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
total
);
e
.
articleList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delCardList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
e
.
brandId
,
coupCardId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/del-card-coup"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getCardList
(
e
.
brandId
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/find-card-page"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
cardListData
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
pageInfo
.
total
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardRecord
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/find-card-log-page"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
cardRecordData
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
pageInfo
.
total
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
{
cardCoupChatSwitch
:
e
.
cardCoupChatSwitch
?
1
:
0
,
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/save-card-coup-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"设置成功"
,
"success"
),
void
(
e
.
cardCoupChatSwitch
&&
e
.
getCardList
(
e
.
brandId
));
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardSet
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find-card-coup-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardCoupChatSwitch
=
1
==
a
.
result
.
cardCoupChatSwitch
,
e
.
cardCoupChatSwitch
=
a
.
result
.
cardCoupChatSwitch
,
"51"
==
e
.
activeTab
&&
e
.
cardCoupChatSwitch
&&
(
e
.
pageSize
=
4
,
e
.
getCardList
(
e
.
brandId
)),
void
(
"52"
==
e
.
activeTab
&&
(
e
.
pageSize
=
6
,
e
.
getCardRecord
(
e
.
brandId
)));
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getChatSet
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find-online-chat-setting"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
1
!=
s
.
errorCode
?
d
.
a
.
errorMsg
(
s
):
s
.
result
&&
(
s
.
result
.
chatFlag
=
1
==
s
.
result
.
chatFlag
,
s
.
result
.
isMessageRemind
=
1
==
s
.
result
.
isMessageRemind
,
s
.
result
.
messageRemindTime
=
s
.
result
.
messageRemindTime
,
s
.
result
.
isTemplateMessage
=
1
==
s
.
result
.
isTemplateMessage
,
s
.
result
.
isImgMessage
=
1
==
s
.
result
.
isImgMessage
,
s
.
result
.
isGoodMessage
=
1
==
s
.
result
.
isGoodMessage
,
s
.
result
.
isIntegralGoodMessage
=
1
==
s
.
result
.
isIntegralGoodMessage
,
e
.
chatData
=
s
.
result
,
2
==
e
.
activeTab
&&
e
.
getTemplate
(
t
),
3
==
e
.
activeTab
&&
s
.
result
.
isImgMessage
&&
(
e
.
pageSize
=
4
,
e
.
getArticleList
(
t
)),
4
==
e
.
activeTab
&&
(
e
.
pageSize
=
3
,
s
.
result
.
isGoodMessage
&&
e
.
getGoodsList
(
t
),
s
.
result
.
isIntegralGoodMessage
&&
e
.
getPointList
(
t
),
s
.
result
.
isIntegralGoodMessage
&&!
s
.
result
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
),
s
.
result
.
isGoodMessage
&&!
s
.
result
.
isIntegralGoodMessage
&&
(
e
.
activeName
=
"first"
)))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
""
!=
t
&&
(
this
.
getChatSet
(
t
),
this
.
getCardSet
(
t
))}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
""
!=
this
.
brandId
&&
(
this
.
getChatSet
(
this
.
brandId
),
this
.
getCardSet
(
this
.
brandId
)),
""
!=
this
.
$route
.
query
.
activeTab
&&
(
this
.
activeTab
=
this
.
$route
.
query
.
activeTab
||
"1"
)}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"online-chat-content border-box"
},[
a
(
"div"
,{
staticClass
:
"online-chat-switch"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-18"
},[
t
.
_v
(
"在线沟通"
)]),
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
t
.
changeChatFlag
},
model
:{
value
:
t
.
chatData
.
chatFlag
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"chatFlag"
,
e
)},
expression
:
"chatData.chatFlag"
}}),
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"online-chat-body"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"online-chat-left"
},[
a
(
"ul"
,[
t
.
_l
(
t
.
leftData
,
function
(
e
,
s
){
return
[
a
(
"li"
,{
key
:
s
+
"left"
,
class
:[
"online-chat-left_li"
,
t
.
activeTab
==
e
.
tabId
?
"active-li"
:
""
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
e
)}}},[
t
.
_v
(
t
.
_s
(
e
.
tabName
))]),
t
.
_v
(
" "
),
e
.
children
&&
e
.
children
.
length
?
a
(
"ul"
,{
key
:
s
+
"left1"
},[
t
.
_l
(
e
.
children
,
function
(
e
,
s
){
return
[
a
(
"li"
,{
key
:
s
+
"left12"
,
class
:[
"online-chat-left_li child-li"
,
t
.
activeTab
==
e
.
tabId
?
"active-li"
:
""
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
e
)}}},[
t
.
_v
(
t
.
_s
(
e
.
tabName
))])]})],
2
):
t
.
_e
()]})],
2
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"online-chat-right border-box"
},[
a
(
"div"
,{
staticClass
:
"online-chat-right_body"
},[
1
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-message"
},[
a
(
"el-form"
,{
ref
:
"msgForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
chatData
,
rules
:
t
.
rules
,
"label-width"
:
"70px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"短信提醒"
,
prop
:
"name"
}},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isMessageRemind
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isMessageRemind"
,
e
)},
expression
:
"chatData.isMessageRemind"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心"
)])],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isMessageRemind
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
,
prop
:
"messageRemindTime"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
t
.
_v
(
"下发时间设置"
)]),
a
(
"el-time-select"
,{
attrs
:{
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:15"
,
end
:
"23:59"
},
placeholder
:
"选择时间"
},
model
:{
value
:
t
.
chatData
.
messageRemindTime
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"messageRemindTime"
,
e
)},
expression
:
"chatData.messageRemindTime"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-20"
},[
t
.
_v
(
"该事件设置将在当日生效"
)])],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
chatData
.
isMessageRemind
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
saveData
(
"msgForm"
)}}},[
t
.
_v
(
"保存"
)])],
1
):
t
.
_e
()],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-template"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-23"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"模板消息"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-20"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isTemplateMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isTemplateMessage"
,
e
)},
expression
:
"chatData.isTemplateMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-23"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"模板名字:"
)]),
t
.
_v
(
t
.
_s
(
t
.
templateName
))])]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-article"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"图文"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-20"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isImgMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isImgMessage"
,
e
)},
expression
:
"chatData.isImgMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"开启后,导购与会员聊天可发送GIC图文"
)])],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isImgMessage
?
a
(
"div"
,{
staticClass
:
"m-t-20 p-l-50"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
articleList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"图片"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap border-box flex flex-align-center flex-pack-center"
},[
e
.
row
.
img
?
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
img
,
alt
:
""
}}):
t
.
_e
()]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title font-14 color-606266 p-l-10"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
title
)
+
"
\
n "
)])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"作者"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
authorName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"4"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
),
t
.
_v
(
" "
),
0
!=
t
.
articleList
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()]):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-goods"
},[
t
.
_m
(
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"达摩微商城"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isGoodMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isGoodMessage"
,
e
)},
expression
:
"chatData.isGoodMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-40"
},[
t
.
_v
(
"积分商城"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isIntegralGoodMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isIntegralGoodMessage"
,
e
)},
expression
:
"chatData.isIntegralGoodMessage"
}})],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isGoodMessage
||
t
.
chatData
.
isIntegralGoodMessage
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-tabs"
,{
attrs
:{
type
:
"card"
},
on
:{
"tab-click"
:
t
.
handleTab
},
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
t
.
chatData
.
isGoodMessage
?
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"达摩微商城"
,
name
:
"first"
}},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
goodsList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"商品信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap flex flex-align-center flex-pack-center border-box"
},[
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
goodImg
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title flex flex-column"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodName
))]),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodCode
))])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"单价(元)"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodPrice
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"库存"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
stock
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"总销量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
saleAmount
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发布时间"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
publishTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
publishTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"1"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
chatData
.
isIntegralGoodMessage
?
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"积分商城"
,
name
:
"second"
}},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
pointList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"商品信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap border-box"
},[
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
goodImg
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title flex flex-column"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodName
))]),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodCode
))])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"积分费用"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
integral
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"现金费用"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodPrice
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"创建时间"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
publishTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
publishTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"2"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
)],
1
):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
0
!=
t
.
goodsList
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()]):
t
.
_e
(),
t
.
_v
(
" "
),
51
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-card"
},[
t
.
_m
(
3
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20 m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"card-top-left"
}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"card-top-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
toNewCard
}},[
t
.
_v
(
"新建卡券"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"card-list-table"
,{
attrs
:{
activeTab
:
t
.
activeTab
,
tableData
:
t
.
cardListData
},
on
:{
delCard
:
t
.
delCard
}}),
t
.
_v
(
" "
),
t
.
cardListData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
52
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-card_record"
},[
t
.
_m
(
4
),
t
.
_v
(
" "
),
a
(
"card-record-table"
,{
attrs
:{
activeTab
:
t
.
activeTab
,
tableData
:
t
.
cardRecordData
}}),
t
.
_v
(
" "
),
t
.
cardRecordData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()])])])])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"
),
e
(
"br"
),
this
.
_v
(
"
\
n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"
),
e
(
"br"
),
this
.
_v
(
"
\
n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录"
)])])])}]};
var
g
=
a
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
t
){
a
(
"xrmF"
)},
"data-v-8c1d5ea6"
,
null
);
e
.
default
=
g
.
exports
},
xrmF
:
function
(
t
,
e
){}});
webpackJsonp
([
25
],{
"33SU"
:
function
(
t
,
e
){},
JDTu
:
function
(
t
,
e
){},
ahzF
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"card-record-table"
,
props
:{
tableData
:{
type
:[
Array
,
Object
],
default
:
function
(){
return
[]}},
activeTab
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"52"
}}},
data
:
function
(){
return
{}},
filters
:{
percenteNum
:
function
(
t
){
return
t
>
0
?
Number
(
100
*
t
).
toFixed
(
2
)
+
"%"
:
Number
(
t
).
toFixed
(
2
)
+
"%"
}},
methods
:{
toSendDetail
:
function
(
t
,
e
,
a
){
this
.
$router
.
push
(
"/"
+
(
1
==
a
?
"cardSendRecord"
:
"cardGetRecord"
)
+
"?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&coupCardId="
+
e
.
coupCardId
)}}},
o
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"card-record-table m-t-20"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
cardName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
""
,
width
:
"96"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"发送卡券数量,包含扫码发券数"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"发送数量"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
issuingQuantity
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"领取数量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
getedQuantity
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"领取率"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"percenteNum"
)(
e
.
row
.
getedRate
)))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"使用数量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
usageQuantity
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"核销率"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"percenteNum"
)(
e
.
row
.
verificationRate
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"销售额"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
saleAmount
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"发送卡券的导购总人数,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
sendMemberCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
width
:
"200"
,
label
:
"操作"
,
fixed
:
"right"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"1"
)}}},[
t
.
_v
(
"发送记录"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"2"
)}}},[
t
.
_v
(
"领取记录"
)])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
t
){
a
(
"JDTu"
)},
"data-v-96f4e55e"
,
null
).
exports
,
r
=
{
name
:
"card-list-table"
,
props
:{
tableData
:{
type
:[
Array
,
Object
],
default
:
function
(){
return
[]}},
activeTab
:{
type
:[
String
,
Number
],
default
:
function
(){
return
"51"
}}},
data
:
function
(){
return
{}},
methods
:{
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除选中的分类?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
$emit
(
"delCard"
,
e
.
coupCardId
)}).
catch
(
function
(){})},
toEdit
:
function
(
t
,
e
){
this
.
$router
.
push
(
"/newCard?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&coupCardId="
+
e
.
coupCardId
)}}},
l
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
cardName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"兑换券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
effectDateString
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"库存"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
couponStock
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
t
){
a
(
"33SU"
)},
"data-v-552374d2"
,
null
).
exports
,
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"3E4D"
),
p
=
a
(
"PI0u"
),
f
=
{
name
:
"online-chat"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
cardRecordTable
:
i
,
cardListTable
:
n
},
data
:
function
(){
return
{
activeTab
:
"1"
,
leftData
:[{
tabId
:
"1"
,
tabName
:
"短信提醒"
},{
tabId
:
"2"
,
tabName
:
"模板消息"
},{
tabId
:
"3"
,
tabName
:
"图文"
},{
tabId
:
"4"
,
tabName
:
"商品"
},{
tabId
:
"5"
,
tabName
:
"卡券"
,
children
:[{
tabId
:
"51"
,
tabName
:
"卡券列表"
},{
tabId
:
"52"
,
tabName
:
"卡券记录"
}]}],
chatData
:{
chatFlag
:
!
1
,
isMessageRemind
:
!
1
,
messageRemindTime
:
""
,
isTemplateMessage
:
!
1
,
isImgMessage
:
!
1
,
isGoodMessage
:
!
1
,
isIntegralGoodMessage
:
!
1
},
rules
:{
messageRemindTime
:[{
required
:
!
0
,
message
:
"请选择时间"
,
trigger
:
"blur"
}]},
templateName
:
""
,
articleList
:[],
pageSize
:
4
,
pageNum
:
1
,
total
:
0
,
activeName
:
"first"
,
goodsList
:[],
pointList
:[],
cardCoupChatSwitch
:
!
1
,
cardListData
:[],
cardRecordData
:[]}},
methods
:{
toNewCard
:
function
(){
this
.
$router
.
push
(
"/newCard?activeTab="
+
this
.
activeTab
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
delCard
:
function
(
t
){
this
.
delCardList
(
t
)},
toSendDetail
:
function
(
t
,
e
,
a
){
this
.
$router
.
push
(
"/sendRecord?activeTab="
+
this
.
activeTab
+
"&tabType="
+
a
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&relatedId="
+
(
e
.
id
||
e
.
goodId
))},
changeChatFlag
:
function
(){
this
.
postSave
(
this
.
brandId
)},
handleCurrentChange
:
function
(
t
){
this
.
pageNum
=
t
,
3
==
this
.
activeTab
?
this
.
getArticleList
(
this
.
brandId
):
4
==
this
.
activeTab
?
"first"
==
this
.
activeName
?
this
.
getGoodsList
(
this
.
brandId
):
this
.
getPointList
(
this
.
brandId
):
51
==
this
.
activeTab
?
this
.
getCardList
(
this
.
brandId
):
52
==
this
.
activeTab
&&
this
.
getCardRecord
(
this
.
brandId
)},
saveData
:
Object
(
p
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
postSave
(
e
.
brandId
)})},
500
),
postSave
:
function
(
t
){
var
e
=
this
;
e
.
pageNum
=
1
,
e
.
chatData
.
isIntegralGoodMessage
&&!
e
.
chatData
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
);
var
a
=
{
brandId
:
t
,
chatFlag
:
e
.
chatData
.
chatFlag
?
1
:
0
,
isMessageRemind
:
e
.
chatData
.
isMessageRemind
?
1
:
0
,
messageRemindTime
:
e
.
chatData
.
messageRemindTime
,
isTemplateMessage
:
e
.
chatData
.
isTemplateMessage
?
1
:
0
,
isImgMessage
:
e
.
chatData
.
isImgMessage
?
1
:
0
,
isGoodMessage
:
e
.
chatData
.
isGoodMessage
?
1
:
0
,
isIntegralGoodMessage
:
e
.
chatData
.
isIntegralGoodMessage
?
1
:
0
,
mainStoreFlag
:
e
.
chatData
.
mainStoreFlag
,
minorStoreFlag
:
e
.
chatData
.
minorStoreFlag
,
openCardStoreFlag
:
e
.
chatData
.
openCardStoreFlag
,
clerkSeeOtherFlag
:
e
.
chatData
.
clerkSeeOtherFlag
,
allowGuideContact
:
e
.
chatData
.
allowGuideContact
,
allowGuideMobile
:
e
.
chatData
.
allowGuideMobile
,
allowGuideMessage
:
e
.
chatData
.
allowGuideMessage
,
allowGuideOnlineChat
:
e
.
chatData
.
allowGuideOnlineChat
,
isSeeAuthMember
:
e
.
chatData
.
isSeeAuthMember
,
showFreezeFlag
:
e
.
chatData
.
showFreezeFlag
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/save-member-show-setting"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
if
(
1
==
s
.
errorCode
)
return
u
.
a
.
showmsg
(
"保存成功"
,
"success"
),
3
==
e
.
activeTab
&&
e
.
chatData
.
isImgMessage
&&
e
.
getArticleList
(
t
),
void
(
4
==
e
.
activeTab
&&
(
e
.
chatData
.
isGoodMessage
&&
e
.
getGoodsList
(
t
),
e
.
chatData
.
isIntegralGoodMessage
&&
e
.
getPointList
(
t
),
e
.
chatData
.
isIntegralGoodMessage
&&!
e
.
chatData
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
),
e
.
chatData
.
isGoodMessage
&&!
e
.
chatData
.
isIntegralGoodMessage
&&
(
e
.
activeName
=
"first"
)));
d
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeTab
:
function
(
t
){
if
(
t
.
children
)
return
this
.
activeTab
=
t
.
children
[
0
].
tabId
,
this
.
getCardSet
(
this
.
brandId
),
!
1
;
this
.
pageNum
=
1
,
this
.
activeTab
=
t
.
tabId
,
this
.
getChatSet
(
this
.
brandId
),
this
.
getCardSet
(
this
.
brandId
)},
handleTab
:
function
(
t
,
e
){
this
.
pageNum
=
1
,
"first"
==
t
.
name
?
this
.
getGoodsList
(
this
.
brandId
):
this
.
getPointList
(
this
.
brandId
)},
getTemplate
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_message_template"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
d
.
a
.
errorMsg
(
a
):
e
.
templateName
=
a
.
result
||
"--"
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGoodsList
:
function
(
t
){
var
e
=
this
,
a
=
{
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
,
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_good_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
goodsList
=
a
.
result
.
list
||
[],
void
(
"first"
==
e
.
activeName
&&
(
e
.
total
=
a
.
result
.
total
));
e
.
goodsList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getPointList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_integal_good_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
pointList
=
a
.
result
.
list
||
[],
void
(
"second"
==
e
.
activeName
&&
(
e
.
total
=
a
.
result
.
total
));
e
.
pointList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getArticleList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find_img_list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
articleList
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
total
);
e
.
articleList
=
[],
e
.
total
=
0
,
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delCardList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
e
.
brandId
,
coupCardId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/del-card-coup"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getCardList
(
e
.
brandId
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardList
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/find-card-page"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
cardListData
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
pageInfo
.
total
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardRecord
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNum
};
Object
(
c
.
e
)(
"/haoban-app-member-web/cardCoupon/find-card-log-page"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
cardRecordData
=
a
.
result
.
list
||
[],
void
(
e
.
total
=
a
.
result
.
pageInfo
.
total
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
{
cardCoupChatSwitch
:
e
.
cardCoupChatSwitch
?
1
:
0
,
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/save-card-coup-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"设置成功"
,
"success"
),
void
(
e
.
cardCoupChatSwitch
&&
e
.
getCardList
(
e
.
brandId
));
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getCardSet
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find-card-coup-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardCoupChatSwitch
=
1
==
a
.
result
.
cardCoupChatSwitch
,
e
.
cardCoupChatSwitch
=
a
.
result
.
cardCoupChatSwitch
,
"51"
==
e
.
activeTab
&&
e
.
cardCoupChatSwitch
&&
(
e
.
pageSize
=
4
,
e
.
getCardList
(
e
.
brandId
)),
void
(
"52"
==
e
.
activeTab
&&
(
e
.
pageSize
=
6
,
e
.
getCardRecord
(
e
.
brandId
)));
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getChatSet
:
function
(
t
){
var
e
=
this
,
a
=
{
brandId
:
t
};
Object
(
c
.
e
)(
"/haoban-app-member-web/customer/find-online-chat-setting"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
1
!=
s
.
errorCode
?
d
.
a
.
errorMsg
(
s
):
s
.
result
&&
(
s
.
result
.
chatFlag
=
1
==
s
.
result
.
chatFlag
,
s
.
result
.
isMessageRemind
=
1
==
s
.
result
.
isMessageRemind
,
s
.
result
.
messageRemindTime
=
s
.
result
.
messageRemindTime
,
s
.
result
.
isTemplateMessage
=
1
==
s
.
result
.
isTemplateMessage
,
s
.
result
.
isImgMessage
=
1
==
s
.
result
.
isImgMessage
,
s
.
result
.
isGoodMessage
=
1
==
s
.
result
.
isGoodMessage
,
s
.
result
.
isIntegralGoodMessage
=
1
==
s
.
result
.
isIntegralGoodMessage
,
e
.
chatData
=
s
.
result
,
2
==
e
.
activeTab
&&
e
.
getTemplate
(
t
),
3
==
e
.
activeTab
&&
s
.
result
.
isImgMessage
&&
(
e
.
pageSize
=
4
,
e
.
getArticleList
(
t
)),
4
==
e
.
activeTab
&&
(
e
.
pageSize
=
3
,
s
.
result
.
isGoodMessage
&&
e
.
getGoodsList
(
t
),
s
.
result
.
isIntegralGoodMessage
&&
e
.
getPointList
(
t
),
s
.
result
.
isIntegralGoodMessage
&&!
s
.
result
.
isGoodMessage
&&
(
e
.
activeName
=
"second"
),
s
.
result
.
isGoodMessage
&&!
s
.
result
.
isIntegralGoodMessage
&&
(
e
.
activeName
=
"first"
)))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
""
!=
t
&&
(
this
.
getChatSet
(
t
),
this
.
getCardSet
(
t
))}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
""
!=
this
.
brandId
&&
(
this
.
getChatSet
(
this
.
brandId
),
this
.
getCardSet
(
this
.
brandId
)),
""
!=
this
.
$route
.
query
.
activeTab
&&
(
this
.
activeTab
=
this
.
$route
.
query
.
activeTab
||
"1"
)}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"online-chat-content border-box"
},[
a
(
"div"
,{
staticClass
:
"online-chat-switch"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-18"
},[
t
.
_v
(
"在线沟通"
)]),
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
t
.
changeChatFlag
},
model
:{
value
:
t
.
chatData
.
chatFlag
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"chatFlag"
,
e
)},
expression
:
"chatData.chatFlag"
}}),
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"online-chat-body"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"online-chat-left"
},[
a
(
"ul"
,[
t
.
_l
(
t
.
leftData
,
function
(
e
,
s
){
return
[
a
(
"li"
,{
key
:
s
+
"left"
,
class
:[
"online-chat-left_li"
,
t
.
activeTab
==
e
.
tabId
?
"active-li"
:
""
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
e
)}}},[
t
.
_v
(
t
.
_s
(
e
.
tabName
))]),
t
.
_v
(
" "
),
e
.
children
&&
e
.
children
.
length
?
a
(
"ul"
,{
key
:
s
+
"left1"
},[
t
.
_l
(
e
.
children
,
function
(
e
,
s
){
return
[
a
(
"li"
,{
key
:
s
+
"left12"
,
class
:[
"online-chat-left_li child-li"
,
t
.
activeTab
==
e
.
tabId
?
"active-li"
:
""
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
e
)}}},[
t
.
_v
(
t
.
_s
(
e
.
tabName
))])]})],
2
):
t
.
_e
()]})],
2
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"online-chat-right border-box"
},[
a
(
"div"
,{
staticClass
:
"online-chat-right_body"
},[
1
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-message"
},[
a
(
"el-form"
,{
ref
:
"msgForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
chatData
,
rules
:
t
.
rules
,
"label-width"
:
"70px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"短信提醒"
,
prop
:
"name"
}},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isMessageRemind
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isMessageRemind"
,
e
)},
expression
:
"chatData.isMessageRemind"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心"
)])],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isMessageRemind
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
,
prop
:
"messageRemindTime"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
t
.
_v
(
"下发时间设置"
)]),
a
(
"el-time-select"
,{
attrs
:{
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:15"
,
end
:
"23:59"
},
placeholder
:
"选择时间"
},
model
:{
value
:
t
.
chatData
.
messageRemindTime
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"messageRemindTime"
,
e
)},
expression
:
"chatData.messageRemindTime"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-20"
},[
t
.
_v
(
"该事件设置将在当日生效"
)])],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
chatData
.
isMessageRemind
?
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
saveData
(
"msgForm"
)}}},[
t
.
_v
(
"保存"
)])],
1
):
t
.
_e
()],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-template"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-23"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"模板消息"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-20"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isTemplateMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isTemplateMessage"
,
e
)},
expression
:
"chatData.isTemplateMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-23"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"模板名字:"
)]),
t
.
_v
(
t
.
_s
(
t
.
templateName
))])]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-article"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"图文"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-20"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isImgMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isImgMessage"
,
e
)},
expression
:
"chatData.isImgMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-24"
},[
t
.
_v
(
"开启后,导购与会员聊天可发送GIC图文"
)])],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isImgMessage
?
a
(
"div"
,{
staticClass
:
"m-t-20 p-l-50"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
articleList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"图片"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap border-box flex flex-align-center flex-pack-center"
},[
e
.
row
.
img
?
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
img
,
alt
:
""
}}):
t
.
_e
()]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title font-14 color-606266 p-l-10"
},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
title
)
+
"
\
n "
)])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"作者"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
authorName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"4"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
),
t
.
_v
(
" "
),
0
!=
t
.
articleList
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()]):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-goods"
},[
t
.
_m
(
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"达摩微商城"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isGoodMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isGoodMessage"
,
e
)},
expression
:
"chatData.isGoodMessage"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-40"
},[
t
.
_v
(
"积分商城"
)]),
a
(
"el-switch"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"active-text"
:
""
,
"inactive-text"
:
""
},
on
:{
change
:
function
(
e
){
t
.
postSave
(
t
.
brandId
)}},
model
:{
value
:
t
.
chatData
.
isIntegralGoodMessage
,
callback
:
function
(
e
){
t
.
$set
(
t
.
chatData
,
"isIntegralGoodMessage"
,
e
)},
expression
:
"chatData.isIntegralGoodMessage"
}})],
1
),
t
.
_v
(
" "
),
t
.
chatData
.
isGoodMessage
||
t
.
chatData
.
isIntegralGoodMessage
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-tabs"
,{
attrs
:{
type
:
"card"
},
on
:{
"tab-click"
:
t
.
handleTab
},
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
t
.
chatData
.
isGoodMessage
?
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"达摩微商城"
,
name
:
"first"
}},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
goodsList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"商品信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap flex flex-align-center flex-pack-center border-box"
},[
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
goodImg
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title flex flex-column"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodName
))]),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodCode
))])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"单价(元)"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodPrice
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"库存"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
stock
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"总销量"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
saleAmount
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发布时间"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
publishTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
publishTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"1"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
chatData
.
isIntegralGoodMessage
?
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"积分商城"
,
name
:
"second"
}},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"calc(100% - 3px)"
},
attrs
:{
data
:
t
.
pointList
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"商品信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"img-wrap border-box"
},[
a
(
"img"
,{
attrs
:{
src
:
e
.
row
.
goodImg
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"article-title flex flex-column"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodName
))]),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodCode
))])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"积分费用"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
integral
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"现金费用"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
goodPrice
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"创建时间"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
publishTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
publishTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"导购发送图文的总人数统计,次日刷新"
,
placement
:
"right"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
}},[
t
.
_v
(
"导购发送图文人数"
),
a
(
"i"
,{
staticClass
:
"el-icon-info font-12 color-606266"
})])])]}},{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
pushCount
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toSendDetail
(
e
.
$index
,
e
.
row
,
"2"
)}}},[
t
.
_v
(
"发送记录"
)])]}}])})],
1
)],
1
):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
0
!=
t
.
goodsList
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()]):
t
.
_e
(),
t
.
_v
(
" "
),
51
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-card"
},[
t
.
_m
(
3
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20 m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"card-top-left"
}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"card-top-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
toNewCard
}},[
t
.
_v
(
"新建卡券"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"card-list-table"
,{
attrs
:{
activeTab
:
t
.
activeTab
,
tableData
:
t
.
cardListData
},
on
:{
delCard
:
t
.
delCard
}}),
t
.
_v
(
" "
),
t
.
cardListData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
52
==
t
.
activeTab
?
a
(
"div"
,{
staticClass
:
"online-chat-card_record"
},[
t
.
_m
(
4
),
t
.
_v
(
" "
),
a
(
"card-record-table"
,{
attrs
:{
activeTab
:
t
.
activeTab
,
tableData
:
t
.
cardRecordData
}}),
t
.
_v
(
" "
),
t
.
cardRecordData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
"current-page"
:
t
.
pageNum
,
"page-size"
:
t
.
pageSize
,
layout
:
"total, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
):
t
.
_e
()])])])])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"
),
e
(
"br"
),
this
.
_v
(
"
\
n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"
),
e
(
"br"
),
this
.
_v
(
"
\
n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员"
)])])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert--info"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-1890ff"
,
staticStyle
:{
"align-self"
:
"flex-start"
}}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录"
)])])])}]};
var
g
=
a
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
t
){
a
(
"dSep"
)},
"data-v-4bbc7905"
,
null
);
e
.
default
=
g
.
exports
},
dSep
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/28.
46b6307b4aa0b1ade043
.js
→
dist/static/js/28.
09ba708b317cd863bd41
.js
View file @
c46c6395
webpackJsonp
([
28
],{
"27o1"
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
r
(
"3Xzz"
),
o
=
{
name
:
"add-clerk-page"
,
components
:{
clerkInfo
:
r
(
"oncj"
).
a
,
navCrumb
:
n
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"新增店员"
,
path
:
""
}],
isAddnew
:
!
1
,
firstLevelId
:
""
,
storeType
:
""
,
gicFlag
:
!
(
!
this
.
$route
.
query
.
gicFlag
||
"false"
==
this
.
$route
.
query
.
gicFlag
)}},
beforeMount
:
function
(){
this
.
firstLevelId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
storeType
=
this
.
$route
.
query
.
type
,
this
.
$route
.
query
.
clerkId
?(
this
.
isAddnew
=!
1
,
this
.
navpath
[
3
].
name
=
"编辑店员"
):
this
.
isAddnew
=!
0
}},
a
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap add-clerk-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"add-clerk-page"
},[
t
(
"clerk-info"
,{
attrs
:{
storeType
:
this
.
storeType
,
firstLevelId
:
this
.
firstLevelId
,
isAddnew
:
this
.
isAddnew
,
gicFlag
:
this
.
gicFlag
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
i
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"Xx3p"
)},
null
,
null
);
t
.
default
=
i
.
exports
},
Xx3p
:
function
(
e
,
t
){},
bpS1
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"l46T"
),
o
=
r
(
"Ie7z"
),
a
=
r
(
"P9l9"
),
i
=
r
(
"XDyb"
),
s
=
r
(
"T+u5"
),
l
=
r
.
n
(
s
),
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
:
o
.
a
,
countryMobile
:
i
.
a
,
limitInput
:
n
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
!
r
)
return
n
(
new
Error
(
"请输入手机号"
));
var
o
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
r
);
o
.
isValid
()
&&
o
.
isMobile
()?
n
():
n
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
""
==
r
)
return
n
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
r
)?
n
():
e
.
clerkInfo
.
code
=
r
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
r
=
this
,
n
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
r
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
a
.
a
)(
o
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
r
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
r
.
defaultList
=
[],
r
.
$refs
.
clerk_info
.
resetFields
()):
r
.
$router
.
push
(
"/storeFrame"
)):
r
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
a
.
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
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
r
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
r
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}}),
e
.
_v
(
" "
),
e
.
isAddnew
?
e
.
_e
():
r
(
"div"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
"设置修改后,修改姓名会覆盖移动端姓名"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
r
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"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
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
r
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
r
(
"bpS1"
)},
null
,
null
);
t
.
a
=
u
.
exports
}});
webpackJsonp
([
28
],{
"27o1"
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
r
(
"3Xzz"
),
o
=
{
name
:
"add-clerk-page"
,
components
:{
clerkInfo
:
r
(
"oncj"
).
a
,
navCrumb
:
n
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"新增店员"
,
path
:
""
}],
isAddnew
:
!
1
,
firstLevelId
:
""
,
storeType
:
""
,
gicFlag
:
!
(
!
this
.
$route
.
query
.
gicFlag
||
"false"
==
this
.
$route
.
query
.
gicFlag
)}},
beforeMount
:
function
(){
this
.
firstLevelId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
storeType
=
this
.
$route
.
query
.
type
,
this
.
$route
.
query
.
clerkId
?(
this
.
isAddnew
=!
1
,
this
.
navpath
[
3
].
name
=
"编辑店员"
):
this
.
isAddnew
=!
0
}},
a
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"common-set-wrap add-clerk-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
this
.
navpath
}}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
},[
t
(
"div"
,{
staticClass
:
"add-clerk-page"
},[
t
(
"clerk-info"
,{
attrs
:{
storeType
:
this
.
storeType
,
firstLevelId
:
this
.
firstLevelId
,
isAddnew
:
this
.
isAddnew
,
gicFlag
:
this
.
gicFlag
}})],
1
)])]),
this
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
i
=
r
(
"VU/8"
)(
o
,
a
,
!
1
,
function
(
e
){
r
(
"Xx3p"
)},
null
,
null
);
t
.
default
=
i
.
exports
},
Xx3p
:
function
(
e
,
t
){},
eBhI
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
r
){
"use strict"
;
var
n
=
r
(
"l46T"
),
o
=
r
(
"Ie7z"
),
a
=
r
(
"P9l9"
),
i
=
r
(
"XDyb"
),
s
=
r
(
"T+u5"
),
l
=
r
.
n
(
s
),
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
:
o
.
a
,
countryMobile
:
i
.
a
,
limitInput
:
n
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
!
r
)
return
n
(
new
Error
(
"请输入手机号"
));
var
o
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
r
);
o
.
isValid
()
&&
o
.
isMobile
()?
n
():
n
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
r
,
n
){
if
(
""
==
r
)
return
n
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
r
)?
n
():
e
.
clerkInfo
.
code
=
r
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
r
=
this
,
n
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
o
=
r
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
a
.
a
)(
o
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
r
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
r
.
defaultList
=
[],
r
.
$refs
.
clerk_info
.
resetFields
()):
r
.
$router
.
push
(
"/storeFrame"
)):
r
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
a
.
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
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
r
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
r
(
"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
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
r
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
r
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
r
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
r
(
"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
(
" "
),
r
(
"div"
,{
staticClass
:
"btn-box"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
r
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
r
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
r
(
"eBhI"
)},
null
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/5.
08440951267a02e0f40a
.js
→
dist/static/js/5.
992fbbfa5966c95375ae
.js
View file @
c46c6395
webpackJsonp
([
5
,
55
,
67
,
76
,
82
,
97
],{
"1NWy"
:
function
(
t
,
e
){},
"79Bk"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"date-range-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
startTitle
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
startTitle
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"b-t-1 flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
endTitle
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
endTitle
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"Dy6z"
)},
"data-v-05d718c8"
,
null
);
e
.
default
=
l
.
exports
},
Dy6z
:
function
(
t
,
e
){},
FdYP
:
function
(
t
,
e
){},
H8Kg
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"image-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"image-com flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"must"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))]),
t
.
_v
(
" "
),
t
.
_m
(
0
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"draged-item-show"
},[
e
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
e
(
"i"
,{
staticClass
:
"iconfont icon-icon"
})])])}]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"FdYP"
)},
"data-v-6c75d59f"
,
null
);
e
.
default
=
l
.
exports
},
IA9l
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"//Fk"
),
s
=
i
.
n
(
a
),
l
=
i
(
"Gu7T"
),
n
=
i
.
n
(
l
),
c
=
i
(
"gBtx"
),
o
=
i
.
n
(
c
),
r
=
i
(
"mvHQ"
),
d
=
i
.
n
(
r
),
m
=
i
(
"DAYN"
),
p
=
i
.
n
(
m
),
u
=
i
(
"Isrn"
),
v
=
i
(
"l46T"
),
h
=
i
(
"H8Kg"
),
f
=
i
(
"t0b0"
),
_
=
i
(
"79Bk"
),
g
=
i
(
"s4D+"
),
y
=
i
(
"PAYw"
),
C
=
i
(
"fPyK"
),
b
=
i
(
"3E4D"
),
I
=
i
(
"Ch4/"
),
x
=
i
(
"PI0u"
),
w
=
i
(
"P9l9"
),
k
=
{
name
:
"customSetTemplate"
,
data
:
function
(){
return
{
activeName
:
"first"
,
rightName
:
"second"
,
dialogVisible
:
!
1
,
bodyHeight
:(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
+
"px"
,
isDragging
:
!
1
,
delayedDragging
:
!
1
,
leftOption
:{
group
:{
name
:
"people"
,
pull
:
"clone"
,
put
:
!
1
},
sort
:
!
1
,
disabled
:
!
1
},
leftDefineOption
:{
group
:{
name
:
"people"
,
pull
:
"clone"
,
put
:
!
1
},
sort
:
!
1
,
disabled
:
!
1
},
templateId
:
""
,
oparateType
:
""
,
counter
:
1
,
selectKey
:
""
,
tradeInfo
:[],
personInfo
:[],
goodsInfo
:[],
competeInfo
:[],
defineInfo
:[],
currentIndex
:
0
,
currentChildKey
:
null
,
currentChildIndex
:
null
,
childIndex
:
0
,
tempaletDataList
:[],
setList
:[],
templateObj
:{
title
:
""
,
description
:
""
,
storeType
:
""
,
momory
:[]},
storeList
:[{
id
:
"0"
,
name
:
"自营门店"
,
disabled
:
!
1
},{
id
:
"1"
,
name
:
"联营门店"
,
disabled
:
!
1
},{
id
:
"2"
,
name
:
"代理门店"
,
disabled
:
!
1
},{
id
:
"3"
,
name
:
"代销门店"
,
disabled
:
!
1
},{
id
:
"4"
,
name
:
"托管门店"
,
disabled
:
!
1
}]}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)},
returnBack
:
function
(){
this
.
changeRoute
(
"/customReport?brandId="
+
this
.
brandId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
cloneItem
:
function
(
t
){
var
e
=
JSON
.
parse
(
d
()(
t
));
return
e
.
cid
=
"c"
+
this
.
counter
,
e
.
systemFlag
||
(
e
.
name
.
includes
(
"textc"
)
&&
(
e
.
name
=
"textc"
+
this
.
counter
),
e
.
name
.
includes
(
"paragraphc"
)
&&
(
e
.
name
=
"paragraphc"
+
this
.
counter
),
e
.
name
.
includes
(
"numberc"
)
&&
(
e
.
name
=
"numberc"
+
this
.
counter
),
e
.
name
.
includes
(
"checkboxesOrRadioc"
)
&&
(
e
.
name
=
"checkboxesOrRadioc"
+
this
.
counter
),
e
.
name
.
includes
(
"datec"
)
&&
(
e
.
name
=
"datec"
+
this
.
counter
),
e
.
name
.
includes
(
"dateareac"
)
&&
(
e
.
name
=
"dateareac"
+
this
.
counter
),
e
.
name
.
includes
(
"picc"
)
&&
(
e
.
name
=
"picc"
+
this
.
counter
),
e
.
name
.
includes
(
"introductionc"
)
&&
(
e
.
name
=
"introductionc"
+
this
.
counter
),
e
.
name
.
includes
(
"pricec"
)
&&
(
e
.
name
=
"pricec"
+
this
.
counter
),
e
.
name
.
includes
(
"groupc"
)
&&
(
e
.
name
=
"groupc"
+
this
.
counter
,
e
.
title
=
""
+
e
.
title
+
this
.
counter
)),
e
},
onMove
:
function
(
t
){
var
e
=
t
.
draggedContext
.
element
;
return
!
this
.
tempaletDataList
.
map
(
function
(
t
){
return
t
.
name
}).
includes
(
e
.
name
)
&&!
e
.
fixed
},
onChildMove
:
function
(
t
){
var
e
=!
0
;
return
-
1
!=
t
.
dragged
.
className
.
indexOf
(
"block-class"
)
&&-
1
!=
t
.
to
.
className
.
indexOf
(
"block-wrap"
)
&&
(
e
=!
1
),
e
},
itemMoveEnd
:
function
(
t
){
var
e
=
this
;
function
i
(
t
){
e
[
t
].
forEach
(
function
(
t
,
i
){
t
.
name
==
e
.
selectKey
&&
(
t
.
fixed
=!
0
)})}
e
.
isDragging
=!
1
,
e
.
selectKey
=
""
,
e
.
selectKey
=
t
.
clone
.
dataset
.
name
,
e
.
tempaletDataList
.
forEach
(
function
(
t
,
a
){
t
.
name
==
e
.
selectKey
&&
i
(
t
.
parentCode
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
,
a
){
t
.
name
==
e
.
selectKey
&&
i
(
t
.
parentCode
)})}),
e
.
selectKey
=
""
,
e
.
tempaletDataList
=
JSON
.
parse
(
d
()(
e
.
tempaletDataList
)),
e
.
$forceUpdate
(),
e
.
counter
=
e
.
counter
+
1
},
selectItem
:
function
(
t
,
e
){
this
.
currentIndex
=
e
,
this
.
currentChildIndex
=
null
},
deleteItem
:
function
(
t
,
e
,
i
,
a
){
var
s
=
this
;
if
(
s
.
tempaletDataList
.
splice
(
i
,
1
),
s
.
currentIndex
--
,
s
.
currentIndex
<=
0
&&
(
s
.
currentIndex
=
0
),
!
a
.
systemFlag
)
return
a
.
name
.
includes
(
"groupc"
)
&&
a
.
children
.
length
&&
a
.
children
.
forEach
(
function
(
t
){
t
.
systemFlag
&&
s
[
t
.
parentCode
].
forEach
(
function
(
e
){
e
.
name
==
t
.
name
&&
(
e
.
fixed
=!
1
)})}),
!
1
;
s
[
e
].
forEach
(
function
(
e
,
i
){
e
.
name
==
t
&&
(
e
.
fixed
=!
1
)})},
addDragItem
:
function
(
t
){
return
!
1
},
selectChildItem
:
function
(
t
,
e
,
i
,
a
){
this
.
currentIndex
=
null
,
this
.
currentChildKey
=
t
,
this
.
childIndex
=
e
,
this
.
currentChildIndex
=
i
},
deleteChildItem
:
function
(
t
,
e
,
i
,
a
,
s
){
if
(
this
.
childIndex
=
e
,
this
.
currentIndex
=
null
,
this
.
currentChildKey
=
this
.
tempaletDataList
[
e
].
children
[
i
].
name
,
this
.
currentChildIndex
--
,
this
.
currentChildIndex
<=
0
&&
(
this
.
currentChildIndex
=
0
),
this
.
tempaletDataList
=
JSON
.
parse
(
d
()(
this
.
tempaletDataList
)),
this
.
tempaletDataList
[
e
].
children
.
splice
(
i
,
1
),
!
s
.
systemFlag
)
return
!
1
;
this
[
s
.
parentCode
].
forEach
(
function
(
e
,
i
){
e
.
name
===
t
&&
(
e
.
fixed
=!
1
)})},
delChildItem
:
function
(
t
,
e
,
i
){
i
.
list
.
splice
(
e
,
1
)},
addChildItem
:
function
(
t
,
e
,
i
){
if
(
19
!=
e
){
i
.
list
.
push
({
value
:
"选项"
+
(
e
+
2
),
key
:
e
+
2
});
var
a
=
i
.
list
.
map
(
function
(
t
){
return
t
.
value
});
this
.
isRepeat
(
a
)
&&
(
i
.
list
.
splice
(
i
.
list
.
length
-
1
,
1
),
a
.
splice
(
i
.
list
.
length
-
1
,
1
),
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"选项不能重复"
}))}
else
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加 20 项"
})},
changeMust
:
function
(
t
,
e
,
i
){
e
&&
i
.
list
.
forEach
(
function
(
e
){
e
.
isMust
=!!
t
})},
isRepeat
:
function
(
t
){
var
e
=
{};
for
(
var
i
in
t
){
if
(
e
[
t
[
i
]])
return
!
0
;
e
[
t
[
i
]]
=!
0
}
return
!
1
},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
checkTag
:
function
(
t
){
var
e
=
{
filedFlag
:
!
0
,
filedRepeat
:
!
1
},
i
=
[];
return
t
.
forEach
(
function
(
t
){
if
(
""
==
t
.
title
)
return
e
.
filedFlag
=!
1
,
e
.
name
=
t
.
title
||
""
,
!
1
;
i
.
push
(
t
.
title
),
t
.
hasOwnProperty
(
"children"
)
&&
t
.
children
.
length
&&
t
.
children
.
forEach
(
function
(
t
){
if
(
t
.
systemFlag
&&
""
==
t
.
title
)
return
e
.
filedFlag
=!
1
,
e
.
name
=
t
.
title
||
""
,
!
1
;
i
.
push
(
t
.
title
)})}),
this
.
isRepeat
(
i
)
&&
(
e
.
filedRepeat
=!
0
),
e
},
checkTemplateObj
:
function
(){
var
t
=!
0
;
return
this
.
templateObj
.
title
&&
this
.
templateObj
.
description
&&
this
.
templateObj
.
storeType
||
(
t
=!
1
),
t
},
getUuid
:
function
(){
return
"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx"
.
replace
(
/
[
xy
]
/g
,
function
(
t
){
var
e
=
16
*
Math
.
random
()
|
0
;
return
(
"x"
==
t
?
e
:
3
&
e
|
8
).
toString
(
16
)})},
saveAndBack
:
Object
(
x
.
a
)(
function
(
t
){
if
(
!
this
.
checkTemplateObj
())
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请完善模板设置内容"
}),
!
1
;
var
e
=
JSON
.
parse
(
d
()(
this
.
tempaletDataList
)),
i
=
this
.
checkTag
(
e
);
if
(
!
i
.
filedFlag
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
i
.
name
+
"字段标题不能为空"
}),
!
1
;
if
(
i
.
filedRepeat
)
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"字段标题不能重复"
});
else
{
if
(
e
.
forEach
(
function
(
t
,
e
){
t
.
sort
=
e
,
t
.
isMust
=
t
.
isMust
?
1
:
0
,
t
.
memory
=
t
.
memory
?
1
:
0
,
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=
t
.
openCapitalize
?
1
:
0
),
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=
t
.
isMust
?
1
:
0
}),
t
.
hasOwnProperty
(
"children"
)
&&
(
t
.
children
.
forEach
(
function
(
t
,
e
){
t
.
sort
=
e
,
t
.
isMust
=
t
.
isMust
?
1
:
0
,
t
.
memory
=
t
.
memory
?
1
:
0
,
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=
t
.
isMust
?
1
:
0
}),
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=
t
.
openCapitalize
?
1
:
0
)}),
t
.
list
=
t
.
children
)}),
!
e
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先配置字段"
}),
!
1
;
"save"
===
t
?
this
.
saveAllData
(
e
):
this
.
postPreview
(
e
)}},
500
),
saveAllData
:
function
(
t
){
var
e
=
this
,
i
=
{
status
:
1
,
brandId
:
e
.
brandId
,
templateContent
:
d
()(
t
),
title
:
e
.
templateObj
.
title
,
description
:
e
.
templateObj
.
description
,
storeType
:
e
.
templateObj
.
storeType
,
memory
:[]};
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/save-define-template"
,
i
).
then
(
function
(
t
){
var
i
=
t
.
data
;
if
(
1
==
i
.
errorCode
)
return
b
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
changeRoute
(
"/customReport?brandId="
+
e
.
brandId
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
);
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
postPreview
:
function
(
t
){
var
e
=
this
,
i
=
{
templateType
:
1
,
brandId
:
e
.
brandId
,
templateContent
:
d
()(
t
)};
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/preview-template"
,
i
).
then
(
function
(
t
){
var
i
=
t
.
data
;
if
(
1
==
i
.
errorCode
){
var
a
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
s
=
window
.
location
.
origin
+
"/office-mobile/#/defineTemplate?enterpriseId="
+
a
+
"&templateId="
+
i
.
result
+
"&brandId="
+
e
.
brandId
;
return
e
.
$refs
.
qrcodePreview
.
qrcode
(
s
,
"daily-preview"
),
void
(
e
.
dialogVisible
=!
0
)}
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
closeDialog
:
function
(){
this
.
dialogVisible
=!
1
},
getHasStores
:
function
(){
var
t
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/has-defined-template-store-type"
,{
brandId
:
t
.
brandId
}).
then
(
function
(
e
){
var
i
=
e
.
data
;
1
!=
i
.
errorCode
?
I
.
a
.
errorMsg
(
i
):
t
.
storeList
.
forEach
(
function
(
e
){
i
.
result
&&
i
.
result
.
length
&&
i
.
result
.
includes
(
o
()(
e
.
id
))
&&
(
e
.
disabled
=!
0
),
"edit"
==
t
.
oparateType
&&
t
.
storeType
==
e
.
id
&&
(
e
.
disabled
=!
1
)})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getAllFields
:
function
(
t
){
var
e
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/get-template-items"
,{
brandId
:
e
.
brandId
,
type
:
t
}).
then
(
function
(
i
){
var
a
=
i
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
forEach
(
function
(
e
){
e
.
isMust
=!!
e
.
isMust
,
e
.
memory
=!!
e
.
memory
,
e
.
title
=
e
.
title
.
trim
(),
e
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
e
.
openCapitalize
=!!
e
.
openCapitalize
),
e
.
hasOwnProperty
(
"list"
)
&&
e
.
list
&&
e
.
list
.
length
&&
e
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=!!
t
.
isMust
}),
e
.
systemFlag
=
3
!=
t
,
e
.
name
.
includes
(
"groupc"
)
&&
(
e
.
children
=
[])}),
void
(
3
==
t
?
e
.
defineInfo
=
a
.
result
:
e
.
handleAllFields
(
a
.
result
));
I
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleAllFields
:
function
(
t
){
var
e
=
this
;
t
.
forEach
(
function
(
t
){
t
.
fixed
=!
1
,
1
==
t
.
classify
&&
(
t
.
parentCode
=
"tradeInfo"
,
e
.
tradeInfo
.
push
(
t
)),
2
==
t
.
classify
&&
(
t
.
parentCode
=
"personInfo"
,
e
.
personInfo
.
push
(
t
)),
3
==
t
.
classify
&&
(
t
.
parentCode
=
"goodsInfo"
,
e
.
goodsInfo
.
push
(
t
)),
4
==
t
.
classify
&&
(
t
.
parentCode
=
"competeInfo"
,
e
.
competeInfo
.
push
(
t
))})},
getInfo
:
function
(){
var
t
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/get-define-template"
,{
templateId
:
t
.
templateId
}).
then
(
function
(
e
){
var
i
=
e
.
data
;
if
(
1
==
i
.
errorCode
)
return
t
.
setList
=
[],
i
.
result
&&
(
t
.
templateObj
.
title
=
i
.
result
.
title
,
t
.
templateObj
.
description
=
i
.
result
.
description
,
t
.
storeType
=
"edit"
==
t
.
oparateType
?
String
(
i
.
result
.
storeType
):
""
,
t
.
templateObj
.
storeType
=
"edit"
==
t
.
oparateType
?
String
(
i
.
result
.
storeType
):
""
,
i
.
result
.
templateContent
&&
i
.
result
.
templateContent
.
length
&&
t
.
handleGetInfo
(
i
.
result
.
templateContent
)),
void
t
.
getHasStores
();
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
treeData
:
function
(
t
){
var
e
=
t
.
filter
(
function
(
e
){
var
i
=
t
.
filter
(
function
(
t
){
return
e
.
fieldCode
==
t
.
parentCode
});
return
i
.
length
>
0
&&
(
e
.
children
=
i
),
0
==
e
.
parentCode
});
return
e
.
sort
(
function
(
t
,
e
){
return
t
.
sort
-
e
.
sort
}),
e
.
forEach
(
function
(
t
,
e
){
t
.
children
.
sort
(
function
(
t
,
e
){
return
t
.
sort
-
e
.
sort
})}),
e
},
handleGetInfo
:
function
(
t
){
var
e
=
this
,
i
=
JSON
.
parse
(
d
()(
t
));
e
.
cids
=
[],
e
.
setParent
=
[],
i
.
forEach
(
function
(
t
,
i
){
t
.
title
=
t
.
title
.
trim
(),
t
.
isMust
=!!
t
.
isMust
,
t
.
memory
=!!
t
.
memory
,
t
.
name
.
includes
(
"textc"
)
||
t
.
name
.
includes
(
"paragraphc"
)
||
t
.
name
.
includes
(
"numberc"
)
||
t
.
name
.
includes
(
"checkboxesOrRadioc"
)
||
t
.
name
.
includes
(
"datec"
)
||
t
.
name
.
includes
(
"dateareac"
)
||
t
.
name
.
includes
(
"picc"
)
||
t
.
name
.
includes
(
"introductionc"
)
||
t
.
name
.
includes
(
"pricec"
)
||
t
.
name
.
includes
(
"groupc"
)?(
t
.
systemFlag
=!
1
,
t
.
parentCode
=
"defineInfo"
):(
e
.
setParent
.
push
(
t
.
name
),
t
.
systemFlag
=!
0
,
1
==
t
.
classify
&&
(
t
.
parentCode
=
"tradeInfo"
),
2
==
t
.
classify
&&
(
t
.
parentCode
=
"personInfo"
),
3
==
t
.
classify
&&
(
t
.
parentCode
=
"goodsInfo"
),
4
==
t
.
classify
&&
(
t
.
parentCode
=
"competeInfo"
)),
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=!!
t
.
openCapitalize
),
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
&&
t
.
list
.
length
&&
(
t
.
list
.
forEach
(
function
(
i
){(
i
.
isMust
=!!
i
.
isMust
,
t
.
name
.
includes
(
"groupc"
))
&&
(
i
.
isMust
=!!
i
.
isMust
,
i
.
memory
=!!
i
.
memory
,
i
.
name
.
includes
(
"textc"
)
||
i
.
name
.
includes
(
"paragraphc"
)
||
i
.
name
.
includes
(
"numberc"
)
||
i
.
name
.
includes
(
"checkboxesOrRadioc"
)
||
i
.
name
.
includes
(
"datec"
)
||
i
.
name
.
includes
(
"dateareac"
)
||
i
.
name
.
includes
(
"picc"
)
||
i
.
name
.
includes
(
"introductionc"
)
||
i
.
name
.
includes
(
"pricec"
)
||
i
.
name
.
includes
(
"groupc"
)?
i
.
systemFlag
=!
1
:(
e
.
setParent
.
push
(
i
.
name
),
i
.
systemFlag
=!
0
,
1
==
i
.
classify
&&
(
i
.
parentCode
=
"tradeInfo"
),
2
==
i
.
classify
&&
(
i
.
parentCode
=
"personInfo"
),
3
==
i
.
classify
&&
(
i
.
parentCode
=
"goodsInfo"
),
4
==
i
.
classify
&&
(
i
.
parentCode
=
"competeInfo"
)))}),
t
.
name
.
includes
(
"groupc"
)
&&
(
t
.
children
=
t
.
list
)),
e
.
cids
.
push
(
o
()(
t
.
cid
.
match
(
/
\d
+/g
))),
t
.
hasOwnProperty
(
"children"
)
&&
t
.
children
.
forEach
(
function
(
t
){
t
.
isMust
=!!
t
.
isMust
,
t
.
memory
=!!
t
.
memory
,
e
.
cids
.
push
(
o
()(
t
.
cid
.
match
(
/
\d
+/g
)))})}),
e
.
counter
=
Math
.
max
.
apply
(
Math
,
n
()(
e
.
cids
)),
e
.
tempaletDataList
=
i
,
setTimeout
(
function
(){
e
.
setFixed
()},
500
)},
setFixed
:
function
(){
var
t
=
this
;[
"tradeInfo"
,
"personInfo"
,
"goodsInfo"
,
"competeInfo"
].
forEach
(
function
(
e
){
t
[
e
].
forEach
(
function
(
e
){
t
.
setParent
.
includes
(
e
.
name
)
&&
(
e
.
fixed
=!
0
)})})}},
watch
:{
isDragging
:
function
(
t
){
var
e
=
this
;
t
?
e
.
delayedDragging
=!
0
:
e
.
$nextTick
(
function
(){
e
.
delayedDragging
=!
1
})}},
components
:{
draggable
:
p
.
a
,
AddInput
:
u
.
a
,
limitInput
:
v
.
a
,
imageCom
:
h
.
default
,
selectCom
:
f
.
default
,
dateRangeCom
:
_
.
default
,
inputCom
:
g
.
default
,
blockCom
:
y
.
default
,
qrcodeDialog
:
C
.
a
},
mounted
:
function
(){
var
t
=
this
,
e
=
t
.
$route
.
query
;
t
.
brandId
=
t
.
$route
.
query
.
brandId
,
s
.
a
.
all
([
t
.
getAllFields
(
2
)]).
then
(
function
(
i
){
t
.
getAllFields
(
3
),
e
.
hasOwnProperty
(
"templateId"
)?(
t
.
templateId
=
e
.
templateId
,
t
.
oparateType
=
e
.
type
,
t
.
getInfo
()):
t
.
getHasStores
()}).
catch
(
function
(
t
){
console
.
log
(
t
)}),
document
.
body
.
ondrop
=
function
(
t
){
t
.
preventDefault
(),
t
.
stopPropagation
()}}},
T
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"template-wrap"
,
style
:{
height
:
t
.
bodyHeight
}},[
a
(
"div"
,{
staticClass
:
"template-contain"
},[
a
(
"div"
,{
staticClass
:
"template-head"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-btns flex-1 flex-r"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
function
(
e
){
t
.
saveAndBack
(
"preview"
)}}},[
t
.
_v
(
"预 览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
returnBack
}},[
t
.
_v
(
"返 回"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
saveAndBack
(
"save"
)}}},[
t
.
_v
(
"保存并启用"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-body"
},[
a
(
"div"
,{
staticClass
:
"template-cell template-cell-l"
},[
a
(
"el-tabs"
,{
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"系统字段"
,
name
:
"first"
}},[
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"交易"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list1"
,
list
:
t
.
tradeInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
tradeInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
,
"aria-hidden"
:
"true"
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"人员"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list2"
,
list
:
t
.
personInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
personInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"商品"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list3"
,
list
:
t
.
goodsInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
goodsInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"竞品"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list4"
,
list
:
t
.
competeInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
competeInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
)]),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"自定义字段"
,
name
:
"second"
}},[
a
(
"div"
,{
staticClass
:
"filed-item-title"
}),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list5"
,
list
:
t
.
defineInfo
,
options
:
t
.
leftDefineOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onChildMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
defineInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
,
11
==
e
.
type
?
"block-class"
:
""
],
attrs
:{
"data-type"
:
e
.
fieldCode
}},[
0
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
5
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
9
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
10
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
11
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
0
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-one"
}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-two"
}):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-three"
}):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-four"
}):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-five"
}):
t
.
_e
(),
t
.
_v
(
" "
),
5
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-six"
}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-seven"
}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-eight"
}):
t
.
_e
(),
t
.
_v
(
" "
),
9
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-ten"
}):
t
.
_e
(),
t
.
_v
(
" "
),
10
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-eleven"
}):
t
.
_e
(),
t
.
_v
(
" "
),
11
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-twelve"
}):
t
.
_e
()])}))],
1
)])],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-cell template-cell-m"
},[
a
(
"div"
,{
staticClass
:
"phone-view"
},[
a
(
"div"
,{
staticClass
:
"phone-show-content"
},[
a
(
"div"
,{
staticClass
:
"drag-show-content"
},[
a
(
"div"
,{
staticClass
:
"view-container"
},[
a
(
"ul"
,{
staticClass
:
"view-content"
,
attrs
:{
id
:
"showPhoneView"
}},[
0
==
t
.
tempaletDataList
.
length
?[
a
(
"img"
,{
staticClass
:
"templet-null-img"
,
attrs
:{
src
:
i
(
"Y7wY"
)}})]:
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
model
:{
value
:
t
.
tempaletDataList
,
callback
:
function
(
e
){
t
.
tempaletDataList
=
e
},
expression
:
"tempaletDataList"
}},
t
.
_l
(
t
.
tempaletDataList
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
"li1"
+
i
,
class
:[
"filed-item"
,
t
.
currentIndex
==
i
?
"active-item"
:
""
,
"li-block"
],
on
:{
click
:
function
(
a
){
t
.
selectItem
(
e
.
fieldCode
,
i
)}}},[
"baseInfo"
!=
e
.
fieldCode
?
a
(
"span"
,{
staticClass
:
"item-close p-item-close"
,
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
deleteItem
(
e
.
name
,
e
.
parentCode
,
i
,
e
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-close"
})]):
t
.
_e
(),
t
.
_v
(
" "
),
e
.
systemFlag
||!
e
.
name
.
includes
(
"groupc"
)?
a
(
"div"
,[
1
==
e
.
type
||
2
==
e
.
type
||
3
==
e
.
type
||
10
==
e
.
type
||
9
==
e
.
type
?
a
(
"input-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
||
5
==
e
.
type
?
a
(
"select-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"date-range-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"image-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"11"
==
e
.
type
?
a
(
"block-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
()],
1
):
t
.
_e
(),
t
.
_v
(
" "
),[
e
.
name
.
includes
(
"groupc"
)?
a
(
"div"
,{
staticClass
:
"block"
},[
a
(
"div"
,{
staticClass
:
"block-head"
},[
a
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
e
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
title
))])]),
t
.
_v
(
" "
),
a
(
"ul"
,{
staticClass
:
"view-content"
},[
a
(
"draggable"
,{
class
:[
"drag-wrap"
,
"block-wrap"
,
e
.
fieldCode
],
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
add
:
t
.
addDragItem
},
model
:{
value
:
e
.
children
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"children"
,
i
)},
expression
:
"item.children"
}},
t
.
_l
(
e
.
children
,
function
(
s
,
l
){
return
a
(
"li"
,{
key
:
"li"
+
l
,
class
:[
"filed-item"
,
"child-filed-item"
,
t
.
currentChildKey
==
s
.
name
&&
t
.
currentChildIndex
==
l
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
selectChildItem
(
s
.
name
,
i
,
l
,
e
.
children
)}}},[
a
(
"span"
,{
staticClass
:
"item-close child-item-close"
,
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
deleteChildItem
(
s
.
name
,
i
,
l
,
e
.
children
,
s
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-close"
})]),
t
.
_v
(
" "
),
4
==
s
.
type
||
5
==
s
.
type
?
a
(
"select-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
s
.
type
?
a
(
"date-range-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
s
.
type
?
a
(
"image-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
s
.
type
||
2
==
s
.
type
||
3
==
s
.
type
||
10
==
s
.
type
||
9
==
s
.
type
?
a
(
"input-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"11"
==
s
.
type
&&
s
.
systemFlag
?
a
(
"block-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
()],
1
)}))],
1
)]):
t
.
_e
()]],
2
)}))],
2
)])])])])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-cell template-cell-r define-template-tab"
},[
a
(
"el-tabs"
,{
model
:{
value
:
t
.
rightName
,
callback
:
function
(
e
){
t
.
rightName
=
e
},
expression
:
"rightName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"控件设置"
,
name
:
"first"
}},[
a
(
"div"
,{
attrs
:{
id
:
"edit-box"
}},[
a
(
"div"
,{
staticClass
:
"edit-view baby-info-flag baby-info"
},[
t
.
_l
(
t
.
tempaletDataList
,
function
(
e
,
i
){
return
[
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
6
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
title
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"title"
,
i
)}}}),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"p"
,{
staticStyle
:{
"margin-top"
:
"8px"
,
"font-size"
:
"12px"
,
color
:
"rgba(255, 255, 255, 0.7)"
}},[
t
.
_v
(
"
\
n 图片最多可添加9张
\
n "
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child62"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
startTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"startTitle"
,
i
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child64"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题2 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
endTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"endTitle"
,
i
)}}})],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
11
==
e
.
type
||
5
==
e
.
type
||
7
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child1"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"提示文字最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
2
==
e
.
type
||
9
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入500个字,可显示多行内容"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入100个字,仅可显示一行内容"
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
3
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child11"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"单位最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最大限制为12位数"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
"4"
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child111"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"选项 "
),
e
.
systemFlag
?
t
.
_e
():
a
(
"span"
,[
t
.
_v
(
"最多20项,每项最多10个字"
)])]),
t
.
_v
(
" "
),
t
.
_l
(
e
.
list
,
function
(
s
,
l
){
return
[
a
(
"div"
,{
key
:
"child10"
+
l
,
staticClass
:
"margin-t-15 limit-w-340"
,
style
:
0
==
l
?
"margin-top: 0"
:
""
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
s
.
value
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
s
,
"value"
,
e
)}}}),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
e
.
list
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-remove del-item"
,
on
:{
click
:
function
(
a
){
t
.
delChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
l
<
19
?[
l
==
e
.
list
.
length
-
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-circle-plus add-item"
,
on
:{
click
:
function
(
a
){
t
.
addChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
()]:
t
.
_e
()],
2
)]})],
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"parent22"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"选择框类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"item.chooseType"
}},[
t
.
_v
(
"单选"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"item.chooseType"
}},[
t
.
_v
(
"多选"
)])],
1
)])],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
5
!=
e
.
type
&&
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child117"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"日期类型"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"item.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日 时 分
\
n "
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"item.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日
\
n "
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
10
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent210"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"大写"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
openCapitalize
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"openCapitalize"
,
i
)},
expression
:
"item.openCapitalize"
}},[
t
.
_v
(
"显示大写"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
name
.
includes
(
"groupc"
)?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent2"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
on
:{
change
:
function
(
i
){
t
.
changeMust
(
i
,
!!
e
.
list
,
e
)}},
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"item.isMust"
}},[
t
.
_v
(
"必填"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
"performanceKing"
!=
e
.
name
&&
"competitorInfo"
!=
e
.
name
?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent21"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证 是否必填"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"must-list"
},
t
.
_l
(
e
.
list
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
"list"
+
i
,
staticClass
:
"must-list-cell m-b-10"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"listItem.isMust"
}},[
t
.
_v
(
t
.
_s
(
e
.
title
))])],
1
)}))])],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
name
.
includes
(
"groupc"
)?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent3"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"记忆"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
memory
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"memory"
,
i
)},
expression
:
"item.memory"
}},[
t
.
_v
(
"是否记忆"
)])],
1
)],
t
.
_v
(
" "
),
t
.
childIndex
==
i
&&
e
.
children
&&
e
.
children
.
length
?[
t
.
_l
(
e
.
children
,
function
(
e
,
s
){
return
[
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
6
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
title
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"title"
,
i
)}}}),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"p"
,{
staticStyle
:{
"margin-top"
:
"8px"
,
"font-size"
:
"12px"
,
color
:
"rgba(255, 255, 255, 0.7)"
}},[
t
.
_v
(
"
\
n 图片最多可添加9张
\
n "
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child2"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
startTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"startTitle"
,
i
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child4"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题2 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
endTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"endTitle"
,
i
)}}})],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
5
==
e
.
type
||
7
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child1"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"提示文字最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
2
==
e
.
type
||
9
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入500个字,可显示多行内容"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入100个字,仅可显示一行内容"
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
3
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child6"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"单位最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
unit
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"unit"
,
i
)}}}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最大限制为12位数"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
5
!=
e
.
type
&&
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child7"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"日期类型"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"childItem.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日 时 分
\
n "
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"childItem.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日
\
n "
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
"4"
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child9"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"选项 "
),
e
.
systemFlag
?
t
.
_e
():
a
(
"span"
,[
t
.
_v
(
"最多20项,每项最多10个字"
)])]),
t
.
_v
(
" "
),
t
.
_l
(
e
.
list
,
function
(
s
,
l
){
return
[
a
(
"div"
,{
key
:
"child10"
+
l
,
staticClass
:
"margin-t-15 limit-w-340"
,
style
:
0
==
l
?
"margin-top: 0"
:
""
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
s
.
value
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
s
,
"value"
,
e
)}}}),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
e
.
list
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-remove del-item"
,
on
:{
click
:
function
(
a
){
t
.
delChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
l
<
19
?[
l
==
e
.
list
.
length
-
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-circle-plus add-item"
,
on
:{
click
:
function
(
a
){
t
.
addChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
()]:
t
.
_e
()],
2
)]})],
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child922"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"选择框类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"childItem.chooseType"
}},[
t
.
_v
(
"单选"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"childItem.chooseType"
}},[
t
.
_v
(
"多选"
)])],
1
)])],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
10
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child910"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"大写"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
openCapitalize
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"openCapitalize"
,
i
)},
expression
:
"childItem.openCapitalize"
}},[
t
.
_v
(
"显示大写"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
==
s
?[
a
(
"div"
,{
key
:
"child11"
+
s
,
staticClass
:
"edit-item"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"验证"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
on
:{
change
:
function
(
i
){
t
.
changeMust
(
i
,
!!
e
.
list
,
e
)}},
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"childItem.isMust"
}},[
t
.
_v
(
"必填"
)])],
1
)]:
t
.
_e
(),
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
"performanceKing"
!=
e
.
name
&&
"competitorInfo"
!=
e
.
name
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child111"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证 是否必填"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"must-list"
},
t
.
_l
(
e
.
list
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
"list111"
+
i
,
staticClass
:
"must-list-cell m-b-10"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"listItem.isMust"
}},[
t
.
_v
(
t
.
_s
(
e
.
title
))])],
1
)}))])],
t
.
_v
(
" "
),
t
.
currentChildIndex
==
s
?[
a
(
"div"
,{
key
:
"child12"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"记忆"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
memory
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"memory"
,
i
)},
expression
:
"childItem.memory"
}},[
t
.
_v
(
"是否记忆"
)])],
1
)]:
t
.
_e
()]})]:
t
.
_e
()]})],
2
)])]),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"模板设置"
,
name
:
"second"
}},[
a
(
"div"
,{
staticClass
:
"template-item limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"模板名称 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
t
.
templateObj
.
title
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"title"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-item limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"模板描述 最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
t
.
templateObj
.
description
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"description"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"门店类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"store-type-list"
},
t
.
_l
(
t
.
storeList
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
e
.
name
+
i
,
staticClass
:
"store-type-cell m-b-20"
},[
a
(
"el-radio"
,{
attrs
:{
label
:
e
.
id
,
disabled
:
e
.
disabled
},
model
:{
value
:
t
.
templateObj
.
storeType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"storeType"
,
e
)},
expression
:
"templateObj.storeType"
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])],
1
)}))])])],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
t
.
dialogVisible
,
callback
:
function
(
e
){
t
.
dialogVisible
=
e
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"template-title flex-1"
},[
e
(
"img"
,{
attrs
:{
src
:
i
(
"LbEI"
),
alt
:
"logo"
}}),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"template-title-span"
},[
this
.
_v
(
"日报设置"
)])])}]};
var
M
=
i
(
"VU/8"
)(
k
,
T
,
!
1
,
function
(
t
){
i
(
"fsiN"
)},
"data-v-21e1f76a"
,
null
);
e
.
default
=
M
.
exports
},
PAYw
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"block-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"block block-field"
},[
i
(
"div"
,{
staticClass
:
"block-head"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
childItem
.
title
.
length
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))])]),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"view-content"
},
t
.
_l
(
t
.
childItem
.
list
,
function
(
e
,
a
){
return
i
(
"li"
,{
key
:
"performance"
+
a
,
staticClass
:
"block-filed-item border-bottom-1"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
e
.
title
.
length
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag "
},[
t
.
_v
(
t
.
_s
(
e
.
placeholder
)
+
" "
+
t
.
_s
(
e
.
isMust
?
"(必填)"
:
""
))])])])})),
t
.
_v
(
" "
),
"competitorInfo"
==
t
.
childItem
.
name
?
i
(
"div"
,{
staticClass
:
"compete-add"
},[
t
.
_v
(
"
\
n +竞品信息
\
n "
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"1NWy"
)},
"data-v-97f6d394"
,
null
);
e
.
default
=
l
.
exports
},
"fIe/"
:
function
(
t
,
e
){},
fsiN
:
function
(
t
,
e
){},
lpYn
:
function
(
t
,
e
){},
"s4D+"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"input-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
class
:[
2
==
t
.
childItem
.
type
?
"h-66"
:
""
]},[
9
!=
t
.
childItem
.
type
?
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag"
,
style
:{
"padding-left"
:
9
==
t
.
childItem
.
type
?
"15px"
:
"0"
}},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))])]),
t
.
_v
(
" "
),
10
==
t
.
childItem
.
type
&&
t
.
childItem
.
openCapitalize
?
i
(
"div"
,{
staticClass
:
"show-capitalize font-12 color-909399 p-l-10 border-box"
},[
t
.
_v
(
"大写:壹万元整(示例)"
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"lpYn"
)},
"data-v-51432d8f"
,
null
);
e
.
default
=
l
.
exports
},
t0b0
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"select-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"fIe/"
)},
"data-v-3fd29910"
,
null
);
e
.
default
=
l
.
exports
}});
webpackJsonp
([
5
,
55
,
66
,
75
,
81
,
97
],{
"1NWy"
:
function
(
t
,
e
){},
"79Bk"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"date-range-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
startTitle
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
startTitle
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"b-t-1 flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
endTitle
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
endTitle
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"Dy6z"
)},
"data-v-05d718c8"
,
null
);
e
.
default
=
l
.
exports
},
Dy6z
:
function
(
t
,
e
){},
FdYP
:
function
(
t
,
e
){},
H8Kg
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"image-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"image-com flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"must"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))]),
t
.
_v
(
" "
),
t
.
_m
(
0
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"draged-item-show"
},[
e
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
e
(
"i"
,{
staticClass
:
"iconfont icon-icon"
})])])}]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"FdYP"
)},
"data-v-6c75d59f"
,
null
);
e
.
default
=
l
.
exports
},
IA9l
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"//Fk"
),
s
=
i
.
n
(
a
),
l
=
i
(
"Gu7T"
),
n
=
i
.
n
(
l
),
c
=
i
(
"gBtx"
),
o
=
i
.
n
(
c
),
r
=
i
(
"mvHQ"
),
d
=
i
.
n
(
r
),
m
=
i
(
"DAYN"
),
p
=
i
.
n
(
m
),
u
=
i
(
"Isrn"
),
v
=
i
(
"l46T"
),
h
=
i
(
"H8Kg"
),
f
=
i
(
"t0b0"
),
_
=
i
(
"79Bk"
),
g
=
i
(
"s4D+"
),
y
=
i
(
"PAYw"
),
C
=
i
(
"fPyK"
),
b
=
i
(
"3E4D"
),
I
=
i
(
"Ch4/"
),
x
=
i
(
"PI0u"
),
w
=
i
(
"P9l9"
),
k
=
{
name
:
"customSetTemplate"
,
data
:
function
(){
return
{
activeName
:
"first"
,
rightName
:
"second"
,
dialogVisible
:
!
1
,
bodyHeight
:(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
+
"px"
,
isDragging
:
!
1
,
delayedDragging
:
!
1
,
leftOption
:{
group
:{
name
:
"people"
,
pull
:
"clone"
,
put
:
!
1
},
sort
:
!
1
,
disabled
:
!
1
},
leftDefineOption
:{
group
:{
name
:
"people"
,
pull
:
"clone"
,
put
:
!
1
},
sort
:
!
1
,
disabled
:
!
1
},
templateId
:
""
,
oparateType
:
""
,
counter
:
1
,
selectKey
:
""
,
tradeInfo
:[],
personInfo
:[],
goodsInfo
:[],
competeInfo
:[],
defineInfo
:[],
currentIndex
:
0
,
currentChildKey
:
null
,
currentChildIndex
:
null
,
childIndex
:
0
,
tempaletDataList
:[],
setList
:[],
templateObj
:{
title
:
""
,
description
:
""
,
storeType
:
""
,
momory
:[]},
storeList
:[{
id
:
"0"
,
name
:
"自营门店"
,
disabled
:
!
1
},{
id
:
"1"
,
name
:
"联营门店"
,
disabled
:
!
1
},{
id
:
"2"
,
name
:
"代理门店"
,
disabled
:
!
1
},{
id
:
"3"
,
name
:
"代销门店"
,
disabled
:
!
1
},{
id
:
"4"
,
name
:
"托管门店"
,
disabled
:
!
1
}]}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)},
returnBack
:
function
(){
this
.
changeRoute
(
"/customReport?brandId="
+
this
.
brandId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
cloneItem
:
function
(
t
){
var
e
=
JSON
.
parse
(
d
()(
t
));
return
e
.
cid
=
"c"
+
this
.
counter
,
e
.
systemFlag
||
(
e
.
name
.
includes
(
"textc"
)
&&
(
e
.
name
=
"textc"
+
this
.
counter
),
e
.
name
.
includes
(
"paragraphc"
)
&&
(
e
.
name
=
"paragraphc"
+
this
.
counter
),
e
.
name
.
includes
(
"numberc"
)
&&
(
e
.
name
=
"numberc"
+
this
.
counter
),
e
.
name
.
includes
(
"checkboxesOrRadioc"
)
&&
(
e
.
name
=
"checkboxesOrRadioc"
+
this
.
counter
),
e
.
name
.
includes
(
"datec"
)
&&
(
e
.
name
=
"datec"
+
this
.
counter
),
e
.
name
.
includes
(
"dateareac"
)
&&
(
e
.
name
=
"dateareac"
+
this
.
counter
),
e
.
name
.
includes
(
"picc"
)
&&
(
e
.
name
=
"picc"
+
this
.
counter
),
e
.
name
.
includes
(
"introductionc"
)
&&
(
e
.
name
=
"introductionc"
+
this
.
counter
),
e
.
name
.
includes
(
"pricec"
)
&&
(
e
.
name
=
"pricec"
+
this
.
counter
),
e
.
name
.
includes
(
"groupc"
)
&&
(
e
.
name
=
"groupc"
+
this
.
counter
,
e
.
title
=
""
+
e
.
title
+
this
.
counter
)),
e
},
onMove
:
function
(
t
){
var
e
=
t
.
draggedContext
.
element
;
return
!
this
.
tempaletDataList
.
map
(
function
(
t
){
return
t
.
name
}).
includes
(
e
.
name
)
&&!
e
.
fixed
},
onChildMove
:
function
(
t
){
var
e
=!
0
;
return
-
1
!=
t
.
dragged
.
className
.
indexOf
(
"block-class"
)
&&-
1
!=
t
.
to
.
className
.
indexOf
(
"block-wrap"
)
&&
(
e
=!
1
),
e
},
itemMoveEnd
:
function
(
t
){
var
e
=
this
;
function
i
(
t
){
e
[
t
].
forEach
(
function
(
t
,
i
){
t
.
name
==
e
.
selectKey
&&
(
t
.
fixed
=!
0
)})}
e
.
isDragging
=!
1
,
e
.
selectKey
=
""
,
e
.
selectKey
=
t
.
clone
.
dataset
.
name
,
e
.
tempaletDataList
.
forEach
(
function
(
t
,
a
){
t
.
name
==
e
.
selectKey
&&
i
(
t
.
parentCode
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
,
a
){
t
.
name
==
e
.
selectKey
&&
i
(
t
.
parentCode
)})}),
e
.
selectKey
=
""
,
e
.
tempaletDataList
=
JSON
.
parse
(
d
()(
e
.
tempaletDataList
)),
e
.
$forceUpdate
(),
e
.
counter
=
e
.
counter
+
1
},
selectItem
:
function
(
t
,
e
){
this
.
currentIndex
=
e
,
this
.
currentChildIndex
=
null
},
deleteItem
:
function
(
t
,
e
,
i
,
a
){
var
s
=
this
;
if
(
s
.
tempaletDataList
.
splice
(
i
,
1
),
s
.
currentIndex
--
,
s
.
currentIndex
<=
0
&&
(
s
.
currentIndex
=
0
),
!
a
.
systemFlag
)
return
a
.
name
.
includes
(
"groupc"
)
&&
a
.
children
.
length
&&
a
.
children
.
forEach
(
function
(
t
){
t
.
systemFlag
&&
s
[
t
.
parentCode
].
forEach
(
function
(
e
){
e
.
name
==
t
.
name
&&
(
e
.
fixed
=!
1
)})}),
!
1
;
s
[
e
].
forEach
(
function
(
e
,
i
){
e
.
name
==
t
&&
(
e
.
fixed
=!
1
)})},
addDragItem
:
function
(
t
){
return
!
1
},
selectChildItem
:
function
(
t
,
e
,
i
,
a
){
this
.
currentIndex
=
null
,
this
.
currentChildKey
=
t
,
this
.
childIndex
=
e
,
this
.
currentChildIndex
=
i
},
deleteChildItem
:
function
(
t
,
e
,
i
,
a
,
s
){
if
(
this
.
childIndex
=
e
,
this
.
currentIndex
=
null
,
this
.
currentChildKey
=
this
.
tempaletDataList
[
e
].
children
[
i
].
name
,
this
.
currentChildIndex
--
,
this
.
currentChildIndex
<=
0
&&
(
this
.
currentChildIndex
=
0
),
this
.
tempaletDataList
=
JSON
.
parse
(
d
()(
this
.
tempaletDataList
)),
this
.
tempaletDataList
[
e
].
children
.
splice
(
i
,
1
),
!
s
.
systemFlag
)
return
!
1
;
this
[
s
.
parentCode
].
forEach
(
function
(
e
,
i
){
e
.
name
===
t
&&
(
e
.
fixed
=!
1
)})},
delChildItem
:
function
(
t
,
e
,
i
){
i
.
list
.
splice
(
e
,
1
)},
addChildItem
:
function
(
t
,
e
,
i
){
if
(
19
!=
e
){
i
.
list
.
push
({
value
:
"选项"
+
(
e
+
2
),
key
:
e
+
2
});
var
a
=
i
.
list
.
map
(
function
(
t
){
return
t
.
value
});
this
.
isRepeat
(
a
)
&&
(
i
.
list
.
splice
(
i
.
list
.
length
-
1
,
1
),
a
.
splice
(
i
.
list
.
length
-
1
,
1
),
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"选项不能重复"
}))}
else
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加 20 项"
})},
changeMust
:
function
(
t
,
e
,
i
){
e
&&
i
.
list
.
forEach
(
function
(
e
){
e
.
isMust
=!!
t
})},
isRepeat
:
function
(
t
){
var
e
=
{};
for
(
var
i
in
t
){
if
(
e
[
t
[
i
]])
return
!
0
;
e
[
t
[
i
]]
=!
0
}
return
!
1
},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
checkTag
:
function
(
t
){
var
e
=
{
filedFlag
:
!
0
,
filedRepeat
:
!
1
},
i
=
[];
return
t
.
forEach
(
function
(
t
){
if
(
""
==
t
.
title
)
return
e
.
filedFlag
=!
1
,
e
.
name
=
t
.
title
||
""
,
!
1
;
i
.
push
(
t
.
title
),
t
.
hasOwnProperty
(
"children"
)
&&
t
.
children
.
length
&&
t
.
children
.
forEach
(
function
(
t
){
if
(
t
.
systemFlag
&&
""
==
t
.
title
)
return
e
.
filedFlag
=!
1
,
e
.
name
=
t
.
title
||
""
,
!
1
;
i
.
push
(
t
.
title
)})}),
this
.
isRepeat
(
i
)
&&
(
e
.
filedRepeat
=!
0
),
e
},
checkTemplateObj
:
function
(){
var
t
=!
0
;
return
this
.
templateObj
.
title
&&
this
.
templateObj
.
description
&&
this
.
templateObj
.
storeType
||
(
t
=!
1
),
t
},
getUuid
:
function
(){
return
"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx"
.
replace
(
/
[
xy
]
/g
,
function
(
t
){
var
e
=
16
*
Math
.
random
()
|
0
;
return
(
"x"
==
t
?
e
:
3
&
e
|
8
).
toString
(
16
)})},
saveAndBack
:
Object
(
x
.
a
)(
function
(
t
){
if
(
!
this
.
checkTemplateObj
())
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请完善模板设置内容"
}),
!
1
;
var
e
=
JSON
.
parse
(
d
()(
this
.
tempaletDataList
)),
i
=
this
.
checkTag
(
e
);
if
(
!
i
.
filedFlag
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
i
.
name
+
"字段标题不能为空"
}),
!
1
;
if
(
i
.
filedRepeat
)
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"字段标题不能重复"
});
else
{
if
(
e
.
forEach
(
function
(
t
,
e
){
t
.
sort
=
e
,
t
.
isMust
=
t
.
isMust
?
1
:
0
,
t
.
memory
=
t
.
memory
?
1
:
0
,
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=
t
.
openCapitalize
?
1
:
0
),
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=
t
.
isMust
?
1
:
0
}),
t
.
hasOwnProperty
(
"children"
)
&&
(
t
.
children
.
forEach
(
function
(
t
,
e
){
t
.
sort
=
e
,
t
.
isMust
=
t
.
isMust
?
1
:
0
,
t
.
memory
=
t
.
memory
?
1
:
0
,
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=
t
.
isMust
?
1
:
0
}),
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=
t
.
openCapitalize
?
1
:
0
)}),
t
.
list
=
t
.
children
)}),
!
e
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先配置字段"
}),
!
1
;
"save"
===
t
?
this
.
saveAllData
(
e
):
this
.
postPreview
(
e
)}},
500
),
saveAllData
:
function
(
t
){
var
e
=
this
,
i
=
{
status
:
1
,
brandId
:
e
.
brandId
,
templateContent
:
d
()(
t
),
title
:
e
.
templateObj
.
title
,
description
:
e
.
templateObj
.
description
,
storeType
:
e
.
templateObj
.
storeType
,
memory
:[]};
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/save-define-template"
,
i
).
then
(
function
(
t
){
var
i
=
t
.
data
;
if
(
1
==
i
.
errorCode
)
return
b
.
a
.
showmsg
(
"保存成功"
,
"success"
),
void
e
.
changeRoute
(
"/customReport?brandId="
+
e
.
brandId
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
);
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
postPreview
:
function
(
t
){
var
e
=
this
,
i
=
{
templateType
:
1
,
brandId
:
e
.
brandId
,
templateContent
:
d
()(
t
)};
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/preview-template"
,
i
).
then
(
function
(
t
){
var
i
=
t
.
data
;
if
(
1
==
i
.
errorCode
){
var
a
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
s
=
window
.
location
.
origin
+
"/office-mobile/#/defineTemplate?enterpriseId="
+
a
+
"&templateId="
+
i
.
result
+
"&brandId="
+
e
.
brandId
;
return
e
.
$refs
.
qrcodePreview
.
qrcode
(
s
,
"daily-preview"
),
void
(
e
.
dialogVisible
=!
0
)}
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
closeDialog
:
function
(){
this
.
dialogVisible
=!
1
},
getHasStores
:
function
(){
var
t
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/has-defined-template-store-type"
,{
brandId
:
t
.
brandId
}).
then
(
function
(
e
){
var
i
=
e
.
data
;
1
!=
i
.
errorCode
?
I
.
a
.
errorMsg
(
i
):
t
.
storeList
.
forEach
(
function
(
e
){
i
.
result
&&
i
.
result
.
length
&&
i
.
result
.
includes
(
o
()(
e
.
id
))
&&
(
e
.
disabled
=!
0
),
"edit"
==
t
.
oparateType
&&
t
.
storeType
==
e
.
id
&&
(
e
.
disabled
=!
1
)})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getAllFields
:
function
(
t
){
var
e
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/get-template-items"
,{
brandId
:
e
.
brandId
,
type
:
t
}).
then
(
function
(
i
){
var
a
=
i
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
forEach
(
function
(
e
){
e
.
isMust
=!!
e
.
isMust
,
e
.
memory
=!!
e
.
memory
,
e
.
title
=
e
.
title
.
trim
(),
e
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
e
.
openCapitalize
=!!
e
.
openCapitalize
),
e
.
hasOwnProperty
(
"list"
)
&&
e
.
list
&&
e
.
list
.
length
&&
e
.
list
.
forEach
(
function
(
t
){
t
.
isMust
=!!
t
.
isMust
}),
e
.
systemFlag
=
3
!=
t
,
e
.
name
.
includes
(
"groupc"
)
&&
(
e
.
children
=
[])}),
void
(
3
==
t
?
e
.
defineInfo
=
a
.
result
:
e
.
handleAllFields
(
a
.
result
));
I
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleAllFields
:
function
(
t
){
var
e
=
this
;
t
.
forEach
(
function
(
t
){
t
.
fixed
=!
1
,
1
==
t
.
classify
&&
(
t
.
parentCode
=
"tradeInfo"
,
e
.
tradeInfo
.
push
(
t
)),
2
==
t
.
classify
&&
(
t
.
parentCode
=
"personInfo"
,
e
.
personInfo
.
push
(
t
)),
3
==
t
.
classify
&&
(
t
.
parentCode
=
"goodsInfo"
,
e
.
goodsInfo
.
push
(
t
)),
4
==
t
.
classify
&&
(
t
.
parentCode
=
"competeInfo"
,
e
.
competeInfo
.
push
(
t
))})},
getInfo
:
function
(){
var
t
=
this
;
Object
(
w
.
e
)(
"/haoban-app-daily-web/daily/get-define-template"
,{
templateId
:
t
.
templateId
}).
then
(
function
(
e
){
var
i
=
e
.
data
;
if
(
1
==
i
.
errorCode
)
return
t
.
setList
=
[],
i
.
result
&&
(
t
.
templateObj
.
title
=
i
.
result
.
title
,
t
.
templateObj
.
description
=
i
.
result
.
description
,
t
.
storeType
=
"edit"
==
t
.
oparateType
?
String
(
i
.
result
.
storeType
):
""
,
t
.
templateObj
.
storeType
=
"edit"
==
t
.
oparateType
?
String
(
i
.
result
.
storeType
):
""
,
i
.
result
.
templateContent
&&
i
.
result
.
templateContent
.
length
&&
t
.
handleGetInfo
(
i
.
result
.
templateContent
)),
void
t
.
getHasStores
();
I
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
treeData
:
function
(
t
){
var
e
=
t
.
filter
(
function
(
e
){
var
i
=
t
.
filter
(
function
(
t
){
return
e
.
fieldCode
==
t
.
parentCode
});
return
i
.
length
>
0
&&
(
e
.
children
=
i
),
0
==
e
.
parentCode
});
return
e
.
sort
(
function
(
t
,
e
){
return
t
.
sort
-
e
.
sort
}),
e
.
forEach
(
function
(
t
,
e
){
t
.
children
.
sort
(
function
(
t
,
e
){
return
t
.
sort
-
e
.
sort
})}),
e
},
handleGetInfo
:
function
(
t
){
var
e
=
this
,
i
=
JSON
.
parse
(
d
()(
t
));
e
.
cids
=
[],
e
.
setParent
=
[],
i
.
forEach
(
function
(
t
,
i
){
t
.
title
=
t
.
title
.
trim
(),
t
.
isMust
=!!
t
.
isMust
,
t
.
memory
=!!
t
.
memory
,
t
.
name
.
includes
(
"textc"
)
||
t
.
name
.
includes
(
"paragraphc"
)
||
t
.
name
.
includes
(
"numberc"
)
||
t
.
name
.
includes
(
"checkboxesOrRadioc"
)
||
t
.
name
.
includes
(
"datec"
)
||
t
.
name
.
includes
(
"dateareac"
)
||
t
.
name
.
includes
(
"picc"
)
||
t
.
name
.
includes
(
"introductionc"
)
||
t
.
name
.
includes
(
"pricec"
)
||
t
.
name
.
includes
(
"groupc"
)?(
t
.
systemFlag
=!
1
,
t
.
parentCode
=
"defineInfo"
):(
e
.
setParent
.
push
(
t
.
name
),
t
.
systemFlag
=!
0
,
1
==
t
.
classify
&&
(
t
.
parentCode
=
"tradeInfo"
),
2
==
t
.
classify
&&
(
t
.
parentCode
=
"personInfo"
),
3
==
t
.
classify
&&
(
t
.
parentCode
=
"goodsInfo"
),
4
==
t
.
classify
&&
(
t
.
parentCode
=
"competeInfo"
)),
t
.
hasOwnProperty
(
"openCapitalize"
)
&&
(
t
.
openCapitalize
=!!
t
.
openCapitalize
),
t
.
hasOwnProperty
(
"list"
)
&&
t
.
list
&&
t
.
list
.
length
&&
(
t
.
list
.
forEach
(
function
(
i
){(
i
.
isMust
=!!
i
.
isMust
,
t
.
name
.
includes
(
"groupc"
))
&&
(
i
.
isMust
=!!
i
.
isMust
,
i
.
memory
=!!
i
.
memory
,
i
.
name
.
includes
(
"textc"
)
||
i
.
name
.
includes
(
"paragraphc"
)
||
i
.
name
.
includes
(
"numberc"
)
||
i
.
name
.
includes
(
"checkboxesOrRadioc"
)
||
i
.
name
.
includes
(
"datec"
)
||
i
.
name
.
includes
(
"dateareac"
)
||
i
.
name
.
includes
(
"picc"
)
||
i
.
name
.
includes
(
"introductionc"
)
||
i
.
name
.
includes
(
"pricec"
)
||
i
.
name
.
includes
(
"groupc"
)?
i
.
systemFlag
=!
1
:(
e
.
setParent
.
push
(
i
.
name
),
i
.
systemFlag
=!
0
,
1
==
i
.
classify
&&
(
i
.
parentCode
=
"tradeInfo"
),
2
==
i
.
classify
&&
(
i
.
parentCode
=
"personInfo"
),
3
==
i
.
classify
&&
(
i
.
parentCode
=
"goodsInfo"
),
4
==
i
.
classify
&&
(
i
.
parentCode
=
"competeInfo"
)))}),
t
.
name
.
includes
(
"groupc"
)
&&
(
t
.
children
=
t
.
list
)),
e
.
cids
.
push
(
o
()(
t
.
cid
.
match
(
/
\d
+/g
))),
t
.
hasOwnProperty
(
"children"
)
&&
t
.
children
.
forEach
(
function
(
t
){
t
.
isMust
=!!
t
.
isMust
,
t
.
memory
=!!
t
.
memory
,
e
.
cids
.
push
(
o
()(
t
.
cid
.
match
(
/
\d
+/g
)))})}),
e
.
counter
=
Math
.
max
.
apply
(
Math
,
n
()(
e
.
cids
)),
e
.
tempaletDataList
=
i
,
setTimeout
(
function
(){
e
.
setFixed
()},
500
)},
setFixed
:
function
(){
var
t
=
this
;[
"tradeInfo"
,
"personInfo"
,
"goodsInfo"
,
"competeInfo"
].
forEach
(
function
(
e
){
t
[
e
].
forEach
(
function
(
e
){
t
.
setParent
.
includes
(
e
.
name
)
&&
(
e
.
fixed
=!
0
)})})}},
watch
:{
isDragging
:
function
(
t
){
var
e
=
this
;
t
?
e
.
delayedDragging
=!
0
:
e
.
$nextTick
(
function
(){
e
.
delayedDragging
=!
1
})}},
components
:{
draggable
:
p
.
a
,
AddInput
:
u
.
a
,
limitInput
:
v
.
a
,
imageCom
:
h
.
default
,
selectCom
:
f
.
default
,
dateRangeCom
:
_
.
default
,
inputCom
:
g
.
default
,
blockCom
:
y
.
default
,
qrcodeDialog
:
C
.
a
},
mounted
:
function
(){
var
t
=
this
,
e
=
t
.
$route
.
query
;
t
.
brandId
=
t
.
$route
.
query
.
brandId
,
s
.
a
.
all
([
t
.
getAllFields
(
2
)]).
then
(
function
(
i
){
t
.
getAllFields
(
3
),
e
.
hasOwnProperty
(
"templateId"
)?(
t
.
templateId
=
e
.
templateId
,
t
.
oparateType
=
e
.
type
,
t
.
getInfo
()):
t
.
getHasStores
()}).
catch
(
function
(
t
){
console
.
log
(
t
)}),
document
.
body
.
ondrop
=
function
(
t
){
t
.
preventDefault
(),
t
.
stopPropagation
()}}},
T
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"template-wrap"
,
style
:{
height
:
t
.
bodyHeight
}},[
a
(
"div"
,{
staticClass
:
"template-contain"
},[
a
(
"div"
,{
staticClass
:
"template-head"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-btns flex-1 flex-r"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
function
(
e
){
t
.
saveAndBack
(
"preview"
)}}},[
t
.
_v
(
"预 览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
returnBack
}},[
t
.
_v
(
"返 回"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
saveAndBack
(
"save"
)}}},[
t
.
_v
(
"保存并启用"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-body"
},[
a
(
"div"
,{
staticClass
:
"template-cell template-cell-l"
},[
a
(
"el-tabs"
,{
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"系统字段"
,
name
:
"first"
}},[
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"交易"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list1"
,
list
:
t
.
tradeInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
tradeInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
,
"aria-hidden"
:
"true"
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"人员"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list2"
,
list
:
t
.
personInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
personInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"商品"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list3"
,
list
:
t
.
goodsInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
goodsInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"filed-item-title"
},[
t
.
_v
(
"竞品"
)]),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list4"
,
list
:
t
.
competeInfo
,
options
:
t
.
leftOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
competeInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
],
attrs
:{
"data-name"
:
e
.
name
}},[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))])])}))],
1
)]),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"自定义字段"
,
name
:
"second"
}},[
a
(
"div"
,{
staticClass
:
"filed-item-title"
}),
t
.
_v
(
" "
),
a
(
"ul"
,[
a
(
"draggable"
,{
staticClass
:
"compenent"
,
attrs
:{
id
:
"list5"
,
list
:
t
.
defineInfo
,
options
:
t
.
leftDefineOption
,
clone
:
t
.
cloneItem
,
move
:
t
.
onChildMove
},
on
:{
start
:
function
(
e
){
t
.
isDragging
=!
0
},
end
:
t
.
itemMoveEnd
}},
t
.
_l
(
t
.
defineInfo
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
i
,
class
:[
"compenent-item"
,
1
==
e
.
fixed
?
"fixed-item"
:
""
,
11
==
e
.
type
?
"block-class"
:
""
],
attrs
:{
"data-type"
:
e
.
fieldCode
}},[
0
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
5
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
9
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
10
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
11
==
e
.
type
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
0
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-one"
}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-two"
}):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-three"
}):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-four"
}):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-five"
}):
t
.
_e
(),
t
.
_v
(
" "
),
5
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-six"
}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-seven"
}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-eight"
}):
t
.
_e
(),
t
.
_v
(
" "
),
9
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-ten"
}):
t
.
_e
(),
t
.
_v
(
" "
),
10
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-eleven"
}):
t
.
_e
(),
t
.
_v
(
" "
),
11
==
e
.
type
?
a
(
"i"
,{
staticClass
:
"bg-icon bg-icon-twelve"
}):
t
.
_e
()])}))],
1
)])],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-cell template-cell-m"
},[
a
(
"div"
,{
staticClass
:
"phone-view"
},[
a
(
"div"
,{
staticClass
:
"phone-show-content"
},[
a
(
"div"
,{
staticClass
:
"drag-show-content"
},[
a
(
"div"
,{
staticClass
:
"view-container"
},[
a
(
"ul"
,{
staticClass
:
"view-content"
,
attrs
:{
id
:
"showPhoneView"
}},[
0
==
t
.
tempaletDataList
.
length
?[
a
(
"img"
,{
staticClass
:
"templet-null-img"
,
attrs
:{
src
:
i
(
"Y7wY"
)}})]:
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
model
:{
value
:
t
.
tempaletDataList
,
callback
:
function
(
e
){
t
.
tempaletDataList
=
e
},
expression
:
"tempaletDataList"
}},
t
.
_l
(
t
.
tempaletDataList
,
function
(
e
,
i
){
return
a
(
"li"
,{
key
:
"li1"
+
i
,
class
:[
"filed-item"
,
t
.
currentIndex
==
i
?
"active-item"
:
""
,
"li-block"
],
on
:{
click
:
function
(
a
){
t
.
selectItem
(
e
.
fieldCode
,
i
)}}},[
"baseInfo"
!=
e
.
fieldCode
?
a
(
"span"
,{
staticClass
:
"item-close p-item-close"
,
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
deleteItem
(
e
.
name
,
e
.
parentCode
,
i
,
e
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-close"
})]):
t
.
_e
(),
t
.
_v
(
" "
),
e
.
systemFlag
||!
e
.
name
.
includes
(
"groupc"
)?
a
(
"div"
,[
1
==
e
.
type
||
2
==
e
.
type
||
3
==
e
.
type
||
10
==
e
.
type
||
9
==
e
.
type
?
a
(
"input-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
4
==
e
.
type
||
5
==
e
.
type
?
a
(
"select-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
e
.
type
?
a
(
"date-range-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"image-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"11"
==
e
.
type
?
a
(
"block-com"
,{
attrs
:{
childItem
:
e
}}):
t
.
_e
()],
1
):
t
.
_e
(),
t
.
_v
(
" "
),[
e
.
name
.
includes
(
"groupc"
)?
a
(
"div"
,{
staticClass
:
"block"
},[
a
(
"div"
,{
staticClass
:
"block-head"
},[
a
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
e
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
title
))])]),
t
.
_v
(
" "
),
a
(
"ul"
,{
staticClass
:
"view-content"
},[
a
(
"draggable"
,{
class
:[
"drag-wrap"
,
"block-wrap"
,
e
.
fieldCode
],
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
add
:
t
.
addDragItem
},
model
:{
value
:
e
.
children
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"children"
,
i
)},
expression
:
"item.children"
}},
t
.
_l
(
e
.
children
,
function
(
s
,
l
){
return
a
(
"li"
,{
key
:
"li"
+
l
,
class
:[
"filed-item"
,
"child-filed-item"
,
t
.
currentChildKey
==
s
.
name
&&
t
.
currentChildIndex
==
l
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
selectChildItem
(
s
.
name
,
i
,
l
,
e
.
children
)}}},[
a
(
"span"
,{
staticClass
:
"item-close child-item-close"
,
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
t
.
deleteChildItem
(
s
.
name
,
i
,
l
,
e
.
children
,
s
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-close"
})]),
t
.
_v
(
" "
),
4
==
s
.
type
||
5
==
s
.
type
?
a
(
"select-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
6
==
s
.
type
?
a
(
"date-range-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
7
==
s
.
type
?
a
(
"image-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
s
.
type
||
2
==
s
.
type
||
3
==
s
.
type
||
10
==
s
.
type
||
9
==
s
.
type
?
a
(
"input-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
(),
t
.
_v
(
" "
),
"11"
==
s
.
type
&&
s
.
systemFlag
?
a
(
"block-com"
,{
attrs
:{
childItem
:
s
}}):
t
.
_e
()],
1
)}))],
1
)]):
t
.
_e
()]],
2
)}))],
2
)])])])])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-cell template-cell-r define-template-tab"
},[
a
(
"el-tabs"
,{
model
:{
value
:
t
.
rightName
,
callback
:
function
(
e
){
t
.
rightName
=
e
},
expression
:
"rightName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"控件设置"
,
name
:
"first"
}},[
a
(
"div"
,{
attrs
:{
id
:
"edit-box"
}},[
a
(
"div"
,{
staticClass
:
"edit-view baby-info-flag baby-info"
},[
t
.
_l
(
t
.
tempaletDataList
,
function
(
e
,
i
){
return
[
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
6
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
title
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"title"
,
i
)}}}),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"p"
,{
staticStyle
:{
"margin-top"
:
"8px"
,
"font-size"
:
"12px"
,
color
:
"rgba(255, 255, 255, 0.7)"
}},[
t
.
_v
(
"
\
n 图片最多可添加9张
\
n "
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child62"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
startTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"startTitle"
,
i
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child64"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题2 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
endTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"endTitle"
,
i
)}}})],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
11
==
e
.
type
||
5
==
e
.
type
||
7
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child1"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"提示文字最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
2
==
e
.
type
||
9
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入500个字,可显示多行内容"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入100个字,仅可显示一行内容"
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
3
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child11"
+
i
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"单位最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最大限制为12位数"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
"4"
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child111"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"选项 "
),
e
.
systemFlag
?
t
.
_e
():
a
(
"span"
,[
t
.
_v
(
"最多20项,每项最多10个字"
)])]),
t
.
_v
(
" "
),
t
.
_l
(
e
.
list
,
function
(
s
,
l
){
return
[
a
(
"div"
,{
key
:
"child10"
+
l
,
staticClass
:
"margin-t-15 limit-w-340"
,
style
:
0
==
l
?
"margin-top: 0"
:
""
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
s
.
value
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
s
,
"value"
,
e
)}}}),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
e
.
list
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-remove del-item"
,
on
:{
click
:
function
(
a
){
t
.
delChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
l
<
19
?[
l
==
e
.
list
.
length
-
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-circle-plus add-item"
,
on
:{
click
:
function
(
a
){
t
.
addChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
()]:
t
.
_e
()],
2
)]})],
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"parent22"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"选择框类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"item.chooseType"
}},[
t
.
_v
(
"单选"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"item.chooseType"
}},[
t
.
_v
(
"多选"
)])],
1
)])],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
5
!=
e
.
type
&&
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child117"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"日期类型"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"item.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日 时 分
\
n "
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"item.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日
\
n "
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
systemFlag
||
10
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent210"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"大写"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
openCapitalize
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"openCapitalize"
,
i
)},
expression
:
"item.openCapitalize"
}},[
t
.
_v
(
"显示大写"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
name
.
includes
(
"groupc"
)?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent2"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
on
:{
change
:
function
(
i
){
t
.
changeMust
(
i
,
!!
e
.
list
,
e
)}},
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"item.isMust"
}},[
t
.
_v
(
"必填"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
"performanceKing"
!=
e
.
name
&&
"competitorInfo"
!=
e
.
name
?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent21"
+
i
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证 是否必填"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"must-list"
},
t
.
_l
(
e
.
list
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
"list"
+
i
,
staticClass
:
"must-list-cell m-b-10"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"listItem.isMust"
}},[
t
.
_v
(
t
.
_s
(
e
.
title
))])],
1
)}))])],
t
.
_v
(
" "
),
t
.
currentIndex
!=
i
||
e
.
name
.
includes
(
"groupc"
)?
t
.
_e
():[
a
(
"div"
,{
key
:
"parent3"
+
i
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"记忆"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
memory
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"memory"
,
i
)},
expression
:
"item.memory"
}},[
t
.
_v
(
"是否记忆"
)])],
1
)],
t
.
_v
(
" "
),
t
.
childIndex
==
i
&&
e
.
children
&&
e
.
children
.
length
?[
t
.
_l
(
e
.
children
,
function
(
e
,
s
){
return
[
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
6
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
title
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"title"
,
i
)}}}),
t
.
_v
(
" "
),
7
==
e
.
type
?
a
(
"p"
,{
staticStyle
:{
"margin-top"
:
"8px"
,
"font-size"
:
"12px"
,
color
:
"rgba(255, 255, 255, 0.7)"
}},[
t
.
_v
(
"
\
n 图片最多可添加9张
\
n "
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child2"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
startTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"startTitle"
,
i
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child4"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"标题2 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
endTitle
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"endTitle"
,
i
)}}})],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
5
==
e
.
type
||
7
==
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child1"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"提示文字最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
placeholder
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"placeholder"
,
i
)}}}),
t
.
_v
(
" "
),
2
==
e
.
type
||
9
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入500个字,可显示多行内容"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
type
?
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最多输入100个字,仅可显示一行内容"
)]):
t
.
_e
()],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
3
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child6"
+
s
,
staticClass
:
"edit-item test-title limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"单位最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
e
.
unit
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
i
){
t
.
$set
(
e
,
"unit"
,
i
)}}}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 m-t-10"
},[
t
.
_v
(
"内容最大限制为12位数"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
5
!=
e
.
type
&&
6
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child7"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"日期类型"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"childItem.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日 时 分
\
n "
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
dateType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"dateType"
,
i
)},
expression
:
"childItem.dateType"
}},[
t
.
_v
(
"
\
n 年-月-日
\
n "
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
"4"
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child9"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"选项 "
),
e
.
systemFlag
?
t
.
_e
():
a
(
"span"
,[
t
.
_v
(
"最多20项,每项最多10个字"
)])]),
t
.
_v
(
" "
),
t
.
_l
(
e
.
list
,
function
(
s
,
l
){
return
[
a
(
"div"
,{
key
:
"child10"
+
l
,
staticClass
:
"margin-t-15 limit-w-340"
,
style
:
0
==
l
?
"margin-top: 0"
:
""
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
s
.
value
,
holder
:
""
,
disflag
:
e
.
systemFlag
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
s
,
"value"
,
e
)}}}),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
e
.
list
.
length
>
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-remove del-item"
,
on
:{
click
:
function
(
a
){
t
.
delChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
!
e
.
systemFlag
&&
l
<
19
?[
l
==
e
.
list
.
length
-
1
?
a
(
"i"
,{
staticClass
:
"opt-btn el-icon-circle-plus add-item"
,
on
:{
click
:
function
(
a
){
t
.
addChildItem
(
i
,
l
,
e
)}}}):
t
.
_e
()]:
t
.
_e
()],
2
)]})],
2
),
t
.
_v
(
" "
),
a
(
"div"
,{
key
:
"child922"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"选择框类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"childItem.chooseType"
}},[
t
.
_v
(
"单选"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
e
.
chooseType
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"chooseType"
,
i
)},
expression
:
"childItem.chooseType"
}},[
t
.
_v
(
"多选"
)])],
1
)])],
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
e
.
systemFlag
||
10
!=
e
.
type
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child910"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"大写"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
openCapitalize
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"openCapitalize"
,
i
)},
expression
:
"childItem.openCapitalize"
}},[
t
.
_v
(
"显示大写"
)])],
1
)],
t
.
_v
(
" "
),
t
.
currentChildIndex
==
s
?[
a
(
"div"
,{
key
:
"child11"
+
s
,
staticClass
:
"edit-item"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title"
},[
t
.
_v
(
"验证"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
on
:{
change
:
function
(
i
){
t
.
changeMust
(
i
,
!!
e
.
list
,
e
)}},
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"childItem.isMust"
}},[
t
.
_v
(
"必填"
)])],
1
)]:
t
.
_e
(),
t
.
_v
(
" "
),
t
.
currentChildIndex
!=
s
||
"performanceKing"
!=
e
.
name
&&
"competitorInfo"
!=
e
.
name
?
t
.
_e
():[
a
(
"div"
,{
key
:
"child111"
+
s
,
staticClass
:
"edit-item m-b-10"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"验证 是否必填"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"must-list"
},
t
.
_l
(
e
.
list
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
"list111"
+
i
,
staticClass
:
"must-list-cell m-b-10"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
isMust
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"isMust"
,
i
)},
expression
:
"listItem.isMust"
}},[
t
.
_v
(
t
.
_s
(
e
.
title
))])],
1
)}))])],
t
.
_v
(
" "
),
t
.
currentChildIndex
==
s
?[
a
(
"div"
,{
key
:
"child12"
+
s
,
staticClass
:
"edit-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"记忆"
)]),
t
.
_v
(
" "
),
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
memory
,
callback
:
function
(
i
){
t
.
$set
(
e
,
"memory"
,
i
)},
expression
:
"childItem.memory"
}},[
t
.
_v
(
"是否记忆"
)])],
1
)]:
t
.
_e
()]})]:
t
.
_e
()]})],
2
)])]),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"模板设置"
,
name
:
"second"
}},[
a
(
"div"
,{
staticClass
:
"template-item limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"模板名称 最多10个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
t
.
templateObj
.
title
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"title"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-item limit-w-340"
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"模板描述 最多20个字"
)]),
t
.
_v
(
" "
),
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
limitClass
:
"limit-color"
,
inputValue
:
t
.
templateObj
.
description
,
holder
:
""
,
disflag
:
!
1
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"description"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"template-item "
},[
a
(
"div"
,{
staticClass
:
"edit-item-title edit-title-padding"
},[
t
.
_v
(
"门店类型"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"store-type-list"
},
t
.
_l
(
t
.
storeList
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
e
.
name
+
i
,
staticClass
:
"store-type-cell m-b-20"
},[
a
(
"el-radio"
,{
attrs
:{
label
:
e
.
id
,
disabled
:
e
.
disabled
},
model
:{
value
:
t
.
templateObj
.
storeType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
templateObj
,
"storeType"
,
e
)},
expression
:
"templateObj.storeType"
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])],
1
)}))])])],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
t
.
dialogVisible
,
callback
:
function
(
e
){
t
.
dialogVisible
=
e
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"template-title flex-1"
},[
e
(
"img"
,{
attrs
:{
src
:
i
(
"LbEI"
),
alt
:
"logo"
}}),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"template-title-span"
},[
this
.
_v
(
"日报设置"
)])])}]};
var
M
=
i
(
"VU/8"
)(
k
,
T
,
!
1
,
function
(
t
){
i
(
"fsiN"
)},
"data-v-21e1f76a"
,
null
);
e
.
default
=
M
.
exports
},
PAYw
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"block-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"block block-field"
},[
i
(
"div"
,{
staticClass
:
"block-head"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
childItem
.
title
.
length
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))])]),
t
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"view-content"
},
t
.
_l
(
t
.
childItem
.
list
,
function
(
e
,
a
){
return
i
(
"li"
,{
key
:
"performance"
+
a
,
staticClass
:
"block-filed-item border-bottom-1"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
e
.
title
.
length
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag "
},[
t
.
_v
(
t
.
_s
(
e
.
placeholder
)
+
" "
+
t
.
_s
(
e
.
isMust
?
"(必填)"
:
""
))])])])})),
t
.
_v
(
" "
),
"competitorInfo"
==
t
.
childItem
.
name
?
i
(
"div"
,{
staticClass
:
"compete-add"
},[
t
.
_v
(
"
\
n +竞品信息
\
n "
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"1NWy"
)},
"data-v-97f6d394"
,
null
);
e
.
default
=
l
.
exports
},
"fIe/"
:
function
(
t
,
e
){},
fsiN
:
function
(
t
,
e
){},
lpYn
:
function
(
t
,
e
){},
"s4D+"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"input-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
class
:[
2
==
t
.
childItem
.
type
?
"h-66"
:
""
]},[
9
!=
t
.
childItem
.
type
?
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag"
,
style
:{
"padding-left"
:
9
==
t
.
childItem
.
type
?
"15px"
:
"0"
}},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))])]),
t
.
_v
(
" "
),
10
==
t
.
childItem
.
type
&&
t
.
childItem
.
openCapitalize
?
i
(
"div"
,{
staticClass
:
"show-capitalize font-12 color-909399 p-l-10 border-box"
},[
t
.
_v
(
"大写:壹万元整(示例)"
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"lpYn"
)},
"data-v-51432d8f"
,
null
);
e
.
default
=
l
.
exports
},
t0b0
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
{
name
:
"select-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])},
staticRenderFns
:[]};
var
l
=
i
(
"VU/8"
)(
a
,
s
,
!
1
,
function
(
t
){
i
(
"fIe/"
)},
"data-v-3fd29910"
,
null
);
e
.
default
=
l
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/6.
383047e2e447a7e22614
.js
→
dist/static/js/6.
68d292195a881fcb1c0d
.js
View file @
c46c6395
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
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
(
"asBg"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
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
;
if
(
1
==
t
.
isManager
)
return
!
1
;
t
.
isManager
=
1
,
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
isManager
=
0
,
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){
t
.
isManager
=
0
})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
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
,
activationStatus
:
e
.
activationStatus
,
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
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&storeName="
+
t
.
row
.
storeName
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"680"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell flex-1"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
,
"white-space"
:
"pre-wrap"
,
"word-break"
:
"break-all"
}},[
e
.
_v
(
e
.
_s
(
r
.
name
))])]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone flex-1"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-code flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status flex-1"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle flex-1"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name flex-1"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone flex-1"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"code flex-1"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position flex-1"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status flex-1"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"operate flex-1"
},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"CNZL"
)},
"data-v-0d326ef6"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
u
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
S
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"t0BL"
)},
null
,
null
).
exports
,
k
=
a
(
"WSbm"
),
w
=
a
(
"oncj"
),
D
=
a
(
"unF8"
),
L
=
{
name
:
"storeEstruturaContainer"
,
components
:{
navCrumb
:
c
.
a
,
searchMenu
:
d
.
a
,
storeView
:
f
,
clerkView
:
I
,
employeeInfo
:
k
.
a
,
storeInfo
:
_
.
a
,
addBrand
:
S
,
clerkInfo
:
w
.
a
},
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
""
}],
menuData
:[],
searchResult
:{},
loading
:
!
0
,
groupInfo
:{
groupName
:
""
,
departmentId
:
""
},
total
:
0
,
showChildMember
:
!
0
,
pageSize
:
20
,
pageNumber
:
1
,
storeList
:[],
tableView
:
2
,
showEmployee
:
"node"
,
perId
:
""
,
storeInfo
:{},
disableBtn
:
!
0
,
storeStatus
:
""
,
storeType
:
""
,
activationStatus
:
""
,
recycleCount
:
0
,
firstLevelId
:
""
,
gicFlag
:
!
0
,
tempSearchData
:{}}},
beforeRouteUpdate
:
function
(
e
,
t
,
a
){
a
()},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSearchKey
:
function
(
e
){
var
t
=
this
,
a
=
{
keyWord
:
e
};
Object
(
u
.
a
)(
"/haoban-manage-web/store/searchpage"
,
a
).
then
(
function
(
e
){
t
.
searchResult
=
e
.
data
.
result
||
{}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
clearSearch
:
function
(){
this
.
tempSearchData
=
null
,
this
.
getGroupData
()},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
r
(){
var
s
;
return
n
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
return
console
.
log
(
"employee, type:"
,
e
,
t
),(
s
=
a
).
tempSearchData
=
e
,
s
.
perId
=
e
.
employeeClerkId
,
s
.
userId
=
e
.
brandId
,
s
.
groupInfo
.
departmentId
=
e
.
departmentId
,
s
.
getGroupInfo
(
e
.
departmentId
),
s
.
getStoreList
(
e
),
r
.
next
=
10
,
s
.
getGicData
();
case
10
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
groupInfo
.
departmentId
=
e
.
storeGroupId
,
this
.
getGroupInfo
(
e
.
storeGroupId
),
this
.
getStoreList
(
e
)},
getGroupInfo
:
function
(
e
){
var
t
=
this
,
a
=
{
groupId
:
e
};
Object
(
u
.
a
)(
"/haoban-manage-web/dept/findDeptById"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
groupInfo
.
groupName
=
e
.
data
.
result
.
name
,
t
.
groupInfo
.
level
=
e
.
data
.
result
.
level
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
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
:
e
?
e
.
storeGroupId
||
e
.
departmentId
:
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
}},
x
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-10"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"GIC导购未同步到门店架构,可能原因:1.行政架构成员已存在;2.成员在审核中心-待审核中。"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div m-t-10"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
L
,
x
,
!
1
,
function
(
e
){
a
(
"uc8i"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"KvXJ"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
CNZL
:
function
(
e
,
t
){},
"Hh+f"
:
function
(
e
,
t
){},
KvXJ
:
function
(
e
,
t
){},
asBg
:
function
(
e
,
t
){},
bpS1
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
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
)}}}),
e
.
_v
(
" "
),
e
.
isAddnew
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
"设置修改后,修改姓名会覆盖移动端姓名"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"bpS1"
)},
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
(
"Hh+f"
)},
null
,
null
);
t
.
a
=
_
.
exports
},
t0BL
:
function
(
e
,
t
){},
uc8i
:
function
(
e
,
t
){}});
webpackJsonp
([
6
],{
"7SJI"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
o
=
a
(
"Xxa5"
),
n
=
a
.
n
(
o
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"3Xzz"
),
u
=
a
(
"ATfr"
),
d
=
a
(
"P9l9"
),
p
=
{
name
:
"storeView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
departmentId
:{
type
:[
String
,
Number
],
default
:
""
},
brandId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
selectedList
:[],
showChildMember
:
!
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
statusArr
:[
"待审核"
,
"正常"
,
"审核失败"
,
"停业整顿"
,
"回收站"
,
"删除"
]}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
delStores
:
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
this
;
a
.
$confirm
(
"是否删除所选店铺"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
""
;
if
(
t
)
r
=
e
.
storeId
;
else
{
var
s
=
[];
a
.
selectedList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
storeId
)}),
r
=
s
.
join
(
","
)}
var
o
=
{
ids
:
r
};
a
.
postDel
(
o
)})},
postDel
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/store/delByIds"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
}),
t
&&
(
t
.
popVisible
=!
1
),
a
.
$emit
(
"getStoreList"
)):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
cancelDelTag
:
function
(
e
,
t
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
){
var
a
=
{
ids
:
t
.
storeId
};
this
.
postDel
(
a
,
t
)}},
computed
:{
disabledDel
:
function
(){
return
this
.
selectedList
.
length
<
1
}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"common-right-button-box"
},[
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeInfo?firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
e
.
_v
(
"添加门店"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/storeIo?importCode=store&departmentId="
+
e
.
departmentId
+
"&showChildMember="
+
1
*
e
.
showChildMember
+
"&brandId="
+
e
.
brandId
)}}},[
a
(
"el-button"
,[
e
.
_v
(
"批量导入/导出"
)])],
1
),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
disabled
:
e
.
disabledDel
},
on
:{
click
:
e
.
delStores
}},[
e
.
_v
(
"批量删除"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组门店"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"table1"
,
attrs
:{
data
:
e
.
tableData
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
,
width
:
"140"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地区"
,
prop
:
"areaChainName"
,
"show-overflow-tooltip"
:
!
0
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
areaChainName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"所属分组"
,
prop
:
"groupChainName"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/storeInfo?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&firstLevelId="
+
e
.
firstLevelId
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
t
.
row
.
popVisible
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"popVisible"
,
a
)},
expression
:
"scope.row.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)]}}])})],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"asBg"
)},
null
,
null
).
exports
,
h
=
a
(
"Ie7z"
),
g
=
a
(
"Ch4/"
),
v
=
{
name
:
"clerkView"
,
props
:{
tableData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
},
clerkStoreId
:{
type
:
String
,
default
:
""
}},
components
:{
vueSelectStore
:
h
.
a
},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
440
-
180
-
70
,
storeType
:
0
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
storeStatus
:
""
,
activationStatus
:
""
,
showChildMember
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[],
transferObj
:{}}},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSelectedList
:
function
(
e
){
e
&&
e
.
length
&&
this
.
postTrans
(
e
)},
postTrans
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
transferObj
.
employeeClerkId
,
storeId
:
e
[
0
].
id
,
oldStoreId
:
t
.
transferObj
.
storeId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/clerkMove"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
$message
.
success
({
message
:
"转移成功"
}),
t
.
$emit
(
"refreshClerkData"
)):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
setChildMemberShow
:
function
(){
this
.
$emit
(
"setChildMemberShow"
,
this
.
showChildMember
)},
changeManager
:
function
(
e
,
t
){
var
a
=
this
;
if
(
1
==
t
.
isManager
)
return
!
1
;
t
.
isManager
=
1
,
a
.
$confirm
(
"确定设置为店长?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
isManager
=
0
,
a
.
postChangeManager
(
e
,
t
)}).
catch
(
function
(){
t
.
isManager
=
0
})},
postChangeManager
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{};
e
.
clerks
.
some
(
function
(
e
){
return
1
==
e
.
isManager
&&
(
r
=
e
),
1
==
e
.
isManager
});
var
s
=
{
employeeClerkId
:
t
.
employeeClerkId
,
managerId
:
r
.
employeeClerkId
};
Object
(
d
.
a
)(
"/haoban-manage-web/emp/setManager"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
isManager
=
0
,
t
.
isManager
=
1
,
a
.
$message
.
success
({
message
:
"设置成功"
})):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
selectByStatus
:
function
(
e
){
this
.
$emit
(
"selectByStatus"
,
e
)},
selectByActivate
:
function
(
e
){
this
.
$emit
(
"selectActivate"
,
e
)},
selectByType
:
function
(
e
){
var
t
=
""
;
0
!=
e
&&
(
t
=
1
*
e
-
1
),
this
.
$emit
(
"selectByType"
,
t
)},
addZero
:
function
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
},
formatDate
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
,
r
=
e
.
getDate
(),
s
=
e
.
getHours
(),
o
=
e
.
getMinutes
(),
n
=
e
.
getSeconds
();
return
t
+
"-"
+
this
.
addZero
(
a
)
+
"-"
+
this
.
addZero
(
r
)
+
" "
+
this
.
addZero
(
s
)
+
"_"
+
this
.
addZero
(
o
)
+
"_"
+
this
.
addZero
(
n
)},
exportClerk
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
clerkStoreId
,
type
:
e
.
storeType
,
activationStatus
:
e
.
activationStatus
,
showChild
:
e
.
showChildMember
?
1
:
0
};
Object
(
d
.
b
)(
"/haoban-manage-web/store/clerk-batch-export"
,
t
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
g
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
r
=
"门店成员信息表"
+
e
.
formatDate
()
+
".csv"
,
s
=
document
.
createElement
(
"a"
);
s
.
download
=
r
,
s
.
style
.
display
=
"none"
,
s
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
s
),
s
.
click
(),
URL
.
revokeObjectURL
(
s
.
href
),
document
.
body
.
removeChild
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
delClerk
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
a
.
postDel
(
r
,
t
,
e
)})},
postDel
:
function
(
e
,
t
,
a
){
var
r
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/emp/del"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
clerks
.
forEach
(
function
(
e
){
e
.
employeeClerkId
==
a
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
e
),
1
)}),
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功"
})):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelDelTag
:
function
(
e
,
t
,
a
){
t
.
popVisible
=!
1
},
toDelTag
:
function
(
e
,
t
,
a
){
var
r
=
{
ids
:
t
.
employeeClerkId
};
this
.
postDel
(
r
,
a
,
t
)},
toTransfer
:
function
(
e
,
t
,
a
){
this
.
transferObj
=
t
,
this
.
treeSet
.
storeType
=
"addClerk"
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
defaultList
=
[{
id
:
t
.
storeId
,
label
:
t
.
storeName
}],
this
.
treeSet
.
dialogVisible
=!
0
},
addClerkBtn
:
function
(
e
,
t
){
this
.
$router
.
push
({
path
:
"/addClerk"
,
query
:{
storeId
:
t
.
storeId
,
firstLevelId
:
this
.
firstLevelId
,
type
:
e
}})}}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"sf-right-button-box common-right-button-box"
},[
a
(
"el-select"
,{
attrs
:{
size
:
"small"
},
on
:{
change
:
e
.
selectByType
},
model
:{
value
:
e
.
storeType
,
callback
:
function
(
t
){
e
.
storeType
=
t
},
expression
:
"storeType"
}},
e
.
_l
(
e
.
typeArr
,
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
t
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
attrs
:{
size
:
"small"
,
placeholder
:
"好办使用状态"
},
on
:{
change
:
e
.
selectByActivate
},
model
:{
value
:
e
.
activationStatus
,
callback
:
function
(
t
){
e
.
activationStatus
=
t
},
expression
:
"activationStatus"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部使用状态"
,
value
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"已使用好办"
,
value
:
"1"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"未使用好办"
,
value
:
"0"
}})],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"J_show-children el-button"
,
staticStyle
:{
"vertical-align"
:
"middle"
,
"margin-right"
:
"0"
},
attrs
:{
size
:
"small"
}},[
a
(
"el-checkbox"
,{
staticClass
:
"m-r-10"
,
on
:{
change
:
e
.
setChildMemberShow
},
model
:{
value
:
e
.
showChildMember
,
callback
:
function
(
t
){
e
.
showChildMember
=
t
},
expression
:
"showChildMember"
}},[
e
.
_v
(
"显示子分组成员"
)]),
a
(
"a"
,{
staticClass
:
"a-href"
})],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"vertical-middle"
,
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
exportClerk
}},[
e
.
_v
(
"批量导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkViewTable"
,
staticClass
:
"diy-table"
,
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"m-b-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&storeName="
+
t
.
row
.
storeName
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"新增店员"
)])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"680"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"ul"
,
e
.
_l
(
t
.
row
.
clerks
,
function
(
r
,
s
){
return
a
(
"li"
,{
key
:
r
.
employeeClerkId
,
staticClass
:
"clerk-obj-li"
},[
a
(
"div"
,{
staticClass
:
"clerk-name clerk-cell flex-1"
},[
a
(
"el-radio"
,{
attrs
:{
value
:
1
,
label
:
r
.
isManager
},
on
:{
change
:
function
(
a
){
e
.
changeManager
(
t
.
row
,
r
)}}},[
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
,
"white-space"
:
"pre-wrap"
,
"word-break"
:
"break-all"
}},[
e
.
_v
(
e
.
_s
(
r
.
name
))])]),
e
.
_v
(
" "
),
1
==
r
.
isManager
?
a
(
"span"
,{
staticClass
:
"manager"
},[
e
.
_v
(
"店长"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-phone flex-1"
},[
e
.
_v
(
e
.
_s
(
"86"
==
r
.
nationcode
?
r
.
phoneNumber
:
"+"
+
r
.
nationcode
+
"-"
+
r
.
phoneNumber
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-code flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
code
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-position flex-1"
},[
e
.
_v
(
e
.
_s
(
r
.
positionName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-status flex-1"
},[
a
(
"div"
,{
staticClass
:
"status-icon"
,
class
:
1
==
r
.
activationStatus
?
"is-active"
:
""
},[
a
(
"i"
,{
staticClass
:
"iconfont icon-shouji"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-cell clerk-handle flex-1"
},[
a
(
"a"
,{
staticClass
:
"a-href m-r-20"
,
on
:{
click
:
function
(
a
){
e
.
changeRouter
(
"/addClerk?gicFlag="
+
e
.
gicFlag
+
"&storeId="
+
t
.
row
.
storeId
+
"&clerkId="
+
r
.
employeeClerkId
+
"&firstLevelId="
+
e
.
firstLevelId
+
"&type=addClerk"
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"160"
},
model
:{
value
:
r
.
popVisible
,
callback
:
function
(
t
){
e
.
$set
(
r
,
"popVisible"
,
t
)},
expression
:
"clerk.popVisible"
}},[
a
(
"p"
,{
staticStyle
:{
"line-height"
:
"1.5"
,
padding
:
"10px 10px 20px"
}},[
e
.
_v
(
"确认删除吗?"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"text-align"
:
"right"
,
margin
:
"0"
}},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
cancelDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
toDelTag
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"确定"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"p-l-10"
,
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
),
e
.
_v
(
" "
),
1
!=
r
.
isManager
?
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toTransfer
(
s
,
r
,
t
.
row
)}}},[
e
.
_v
(
"转移"
)]):
e
.
_e
()],
1
)])}))]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"ul"
,{
staticClass
:
"diy-header"
},[
a
(
"li"
,{
staticClass
:
"name flex-1"
},[
e
.
_v
(
"姓名"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"phone flex-1"
},[
e
.
_v
(
"手机号"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"code flex-1"
},[
e
.
_v
(
"员工code"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"position flex-1"
},[
e
.
_v
(
"职位"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"status flex-1"
},[
e
.
_v
(
"状态"
)]),
e
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"operate flex-1"
},[
e
.
_v
(
"操作"
)])])])],
2
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"CNZL"
)},
"data-v-0d326ef6"
,
null
).
exports
,
_
=
a
(
"qsKc"
),
C
=
{
name
:
"add-brand-dialog"
,
components
:{
limitInput
:
a
(
"l46T"
).
a
},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
brandName
:
""
,
brand
:
""
}},
methods
:{
saveFn
:
function
(){
if
(
this
.
brandName
){
var
e
=
this
,
t
=
{
brandName
:
e
.
brandName
};
Object
(
d
.
a
)(
"/haoban-manage-web/brand/insert"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
$emit
(
"addSuccess"
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}
else
this
.
$message
.
error
({
message
:
"请输入品牌名称"
})}}},
y
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"el-dialog"
,{
attrs
:{
title
:
"新建品牌"
,
width
:
"422px"
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"p"
,[
e
.
_v
(
"请输入品牌名称"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
brandName
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
brandName
=
t
}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box t-rt m-t-20 m-b-10"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"确定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
k
=
a
(
"VU/8"
)(
C
,
y
,
!
1
,
function
(
e
){
a
(
"t0BL"
)},
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
,
this
.
getGroupData
()},
handleEmployeeSelection
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
n
.
a
.
mark
(
function
r
(){
var
s
;
return
n
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
return
console
.
log
(
"employee, type:"
,
e
,
t
),(
s
=
a
).
tempSearchData
=
e
,
s
.
perId
=
e
.
employeeClerkId
,
s
.
userId
=
e
.
brandId
,
s
.
groupInfo
.
departmentId
=
e
.
departmentId
,
s
.
getGroupInfo
(
e
.
departmentId
),
s
.
getStoreList
(
e
),
r
.
next
=
10
,
s
.
getGicData
();
case
10
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
addBrand
:
function
(){
this
.
$refs
.
add_brand
.
dialogVisible
=!
0
},
addSon
:
function
(){
var
e
=
"/addGroup?addnew=1&type=childgroup&groupId="
+
this
.
groupInfo
.
departmentId
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
e
)},
goToEdit
:
function
(
e
){
var
t
=
0
==
e
?
"brand"
:
"group"
,
a
=
"/addGroup?groupId="
+
this
.
groupInfo
.
departmentId
+
"&type="
+
t
+
"&firstLevelId="
+
this
.
firstLevelId
;
this
.
changeRouter
(
a
)},
addSuccess
:
function
(){
this
.
getGroupData
(),
this
.
$refs
.
add_brand
.
dialogVisible
=!
1
},
handleStoreSelection
:
function
(
e
,
t
){
this
.
tempSearchData
=
e
,
this
.
groupInfo
.
departmentId
=
e
.
storeGroupId
,
this
.
getGroupInfo
(
e
.
storeGroupId
),
this
.
getStoreList
(
e
)},
getGroupInfo
:
function
(
e
){
var
t
=
this
,
a
=
{
groupId
:
e
};
Object
(
d
.
a
)(
"/haoban-manage-web/dept/findDeptById"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
groupInfo
.
groupName
=
e
.
data
.
result
.
name
,
t
.
groupInfo
.
level
=
e
.
data
.
result
.
level
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getStoreList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getStoreList
()},
switchView
:
function
(
e
){
if
(
this
.
pageSize
=
20
,
this
.
pageNumber
=
1
,
this
.
storeList
=
[],
this
.
showChildMember
=!
0
,
this
.
storeStatus
=
""
,
this
.
tempSearchData
&&
s
()(
this
.
tempSearchData
).
length
)
return
this
.
getStoreList
(
this
.
tempSearchData
),
!
1
;
this
.
getStoreList
()},
setChildMemberShow
:
function
(
e
){
this
.
showChildMember
=
e
,
this
.
getStoreList
()},
refreshClerkData
:
function
(){
this
.
getStoreList
()},
getGroupData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage-web/dept/deptList"
,{
isStoreGroup
:
1
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
menuData
=
t
.
data
.
result
||
[],
t
.
data
.
result
.
some
(
function
(
t
){
return
0
==
t
.
level
&&
(
e
.
groupInfo
.
brandId
=
t
.
brandId
,
e
.
groupInfo
.
departmentId
=
t
.
groupId
,
e
.
groupInfo
.
groupName
=
t
.
name
,
e
.
groupInfo
.
hasPression
=
t
.
hasPression
,
e
.
firstLevelId
=
t
.
chainId
.
split
(
"-"
)[
1
],
e
.
groupInfo
.
level
=
0
),
0
==
t
.
level
}),
e
.
getStoreList
(),
e
.
getGicData
()):(
e
.
menuData
=
[],
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getStoreList
:
function
(
e
){
var
t
=
this
;
if
(
!
t
.
groupInfo
.
departmentId
)
return
t
.
loading
=!
1
,
!
1
;
t
.
loading
=!
0
;
var
a
=
{
storeGroupId
:
e
?
e
.
storeGroupId
||
e
.
departmentId
:
t
.
groupInfo
.
departmentId
,
showChild
:
1
*
t
.
showChildMember
,
showType
:
t
.
tableView
,
pageSize
:
t
.
pageSize
,
pageNum
:
t
.
pageNumber
,
status
:
t
.
storeStatus
,
storeType
:
t
.
storeType
,
activationStatus
:
t
.
activationStatus
,
storeId
:
e
?
e
.
storeId
:
""
,
employeeClerkId
:
e
?
e
.
employeeClerkId
:
""
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
loading
=!
1
,
t
.
total
=
e
.
data
.
result
.
total
,
e
.
data
.
result
.
list
&&
e
.
data
.
result
.
list
.
length
&&
e
.
data
.
result
.
list
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
,
e
.
clerks
&&
e
.
clerks
.
length
&&
e
.
clerks
.
forEach
(
function
(
e
,
t
){
e
.
popVisible
=!
1
})}),
t
.
storeList
=
e
.
data
.
result
.
list
||
[],
t
.
getRecycle
()):(
t
.
loading
=!
1
,
t
.
storeList
=
[],
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
}))}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleTreeSelection
:
function
(
e
,
t
,
a
){
this
.
groupInfo
.
departmentId
=
e
.
groupId
,
this
.
firstLevelId
=
e
.
chainId
.
split
(
"-"
)[
1
],
this
.
groupInfo
.
groupName
=
e
.
name
,
this
.
groupInfo
.
brandId
=
e
.
brandId
,
this
.
showEmployee
=
a
,
this
.
groupInfo
.
hasPression
=
e
.
hasPression
,
this
.
groupInfo
.
level
=
e
.
level
,
this
.
storeStatus
=
""
,
this
.
getStoreList
(),
this
.
getRecycle
(),
this
.
getGicData
()},
selectByStatus
:
function
(
e
){
this
.
storeStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectActivate
:
function
(
e
){
this
.
activationStatus
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
selectByType
:
function
(
e
){
this
.
storeType
=
e
,
this
.
pageNumber
=
1
,
this
.
getStoreList
()},
cancelClerkInfo
:
function
(
e
){
e
&&
(
this
.
showEmployee
=
""
)},
getRecycle
:
function
(){
var
e
=
this
,
t
=
{
storeGroupId
:
e
.
groupInfo
.
departmentId
};
Object
(
d
.
a
)(
"/haoban-manage-web/store/get-recycle-count"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?
e
.
recycleCount
=
a
.
result
:
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getGicData
:
function
(){
var
e
=
this
;
return
l
()(
n
.
a
.
mark
(
function
t
(){
var
a
,
r
,
s
,
o
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
if
(
"store"
!=
(
a
=
e
).
showEmployee
||
a
.
groupInfo
.
brandId
){
t
.
next
=
4
;
break
}
return
a
.
loading
=!
1
,
t
.
abrupt
(
"return"
,
!
1
);
case
4
:
if
(
a
.
userId
||
a
.
groupInfo
.
brandId
){
t
.
next
=
6
;
break
}
return
t
.
abrupt
(
"return"
,
!
1
);
case
6
:
return
r
=
{
type
:
1
,
businessId
:
"employee"
==
a
.
showEmployee
?
a
.
userId
:
a
.
groupInfo
.
brandId
},
t
.
next
=
9
,
Object
(
D
.
a
)(
r
);
case
9
:
s
=
t
.
sent
,
1
==
(
o
=
s
.
data
).
errorCode
?
a
.
gicFlag
=
o
.
result
:
g
.
a
.
errorMsg
(
o
);
case
12
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
)}))()}},
beforeMount
:
function
(){
this
.
getGroupData
()},
mounted
:
function
(){
this
.
disableBtn
=!
1
}},
x
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap store-frame-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"store-estrutura-container common-frame-container"
},[
a
(
"search-menu"
,{
ref
:
"searchMenu"
,
attrs
:{
storeFrame
:
!
0
,
treeData
:
e
.
menuData
,
searchResult
:
e
.
searchResult
},
on
:{
clearSearch
:
e
.
clearSearch
,
handleSearchKey
:
e
.
handleSearchKey
,
handleTreeSelection
:
e
.
handleTreeSelection
,
handleStoreSelection
:
e
.
handleStoreSelection
,
handleEmployeeSelection
:
e
.
handleEmployeeSelection
}},[
a
(
"template"
,{
slot
:
"buttonBox"
},[
a
(
"div"
,{
staticClass
:
"slot-button"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
e
.
disableBtn
},
on
:{
click
:
e
.
addBrand
}},[
e
.
_v
(
"新建品牌"
)]),
e
.
_v
(
" "
),
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])],
2
),
e
.
_v
(
" "
),
"employee"
==
e
.
showEmployee
?
a
(
"clerk-info"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
perId
:
e
.
perId
},
on
:{
cancelClerkInfo
:
e
.
cancelClerkInfo
}}):
"store"
==
e
.
showEmployee
?
a
(
"store-info"
,{
ref
:
"store_info"
,
attrs
:{
gicFlag
:
e
.
gicFlag
,
storeInfo
:
e
.
storeInfo
}}):
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"sf-right-container common-right-container"
},[
a
(
"div"
,{
staticClass
:
"sf-right-header common-right-header"
},[
a
(
"span"
,{
staticClass
:
"title-span"
},[
e
.
_v
(
e
.
_s
(
e
.
groupInfo
.
groupName
)
+
"("
+
e
.
_s
(
e
.
total
)
+
"家)"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"id-span"
},[
e
.
_v
(
"部门ID: "
+
e
.
_s
(
e
.
groupInfo
.
departmentId
))]),
e
.
_v
(
" "
),
e
.
gicFlag
?
a
(
"el-popover"
,{
attrs
:{
placement
:
"right"
,
width
:
"200"
,
content
:
"该品牌已与 GIC门店同步"
,
trigger
:
"hover"
}},[
a
(
"i"
,{
staticClass
:
"el-icon-info"
,
staticStyle
:{
color
:
"#c0c4cc"
,
cursor
:
"pointer"
},
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"handle-area"
},[
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
e
.
addSon
}},[
e
.
_v
(
" 添加子分组 "
)]),
a
(
"span"
,{
staticClass
:
"hurdle"
}),
a
(
"el-button"
,{
staticClass
:
"no-bdr-btn"
,
on
:{
click
:
function
(
t
){
e
.
goToEdit
(
e
.
groupInfo
.
level
)}}},[
e
.
_v
(
" 编辑 "
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-10"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"GIC导购未同步到门店架构,可能原因:1.行政架构成员已存在;2.成员在审核中心-待审核中。"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"tab-div m-t-10"
},[
a
(
"el-radio-group"
,{
on
:{
change
:
e
.
switchView
},
model
:{
value
:
e
.
tableView
,
callback
:
function
(
t
){
e
.
tableView
=
t
},
expression
:
"tableView"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"门店视图"
)]),
e
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"店员视图"
)])],
1
),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href fr"
,
on
:{
click
:
function
(
t
){
e
.
changeRouter
(
"/recycle?brandId="
+
e
.
groupInfo
.
brandId
+
"&dept="
+
e
.
groupInfo
.
departmentId
+
"&showChild=1&type="
+
e
.
storeType
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-delete"
}},[
e
.
_v
(
"回收站("
+
e
.
_s
(
e
.
recycleCount
)
+
")"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
1
==
e
.
tableView
?[
a
(
"store-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
departmentId
:
e
.
groupInfo
.
departmentId
,
brandId
:
e
.
groupInfo
.
brandId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
getStoreList
:
e
.
getStoreList
}})]:[
a
(
"clerk-view"
,{
attrs
:{
gicFlag
:
e
.
gicFlag
,
tableData
:
e
.
storeList
,
clerkStoreId
:
e
.
groupInfo
.
departmentId
,
firstLevelId
:
e
.
firstLevelId
},
on
:{
setChildMemberShow
:
e
.
setChildMemberShow
,
selectByStatus
:
e
.
selectByStatus
,
selectByType
:
e
.
selectByType
,
selectActivate
:
e
.
selectActivate
,
refreshClerkData
:
e
.
refreshClerkData
}})]],
2
),
e
.
_v
(
" "
),
e
.
storeList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"add-brand"
,{
ref
:
"add_brand"
,
on
:{
addSuccess
:
e
.
addSuccess
}})],
1
)])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
N
=
a
(
"VU/8"
)(
L
,
x
,
!
1
,
function
(
e
){
a
(
"uc8i"
)},
null
,
null
);
t
.
default
=
N
.
exports
},
ATfr
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"0xDb"
),
s
=
{
name
:
"searchMenu"
,
components
:{},
props
:{
treeData
:{
type
:
Array
,
required
:
!
0
},
searchResult
:{
type
:
Object
,
required
:
!
0
},
storeFrame
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
searchKey
:
""
,
searchResultShow
:
!
1
,
myProps
:{
children
:
"childrens"
,
label
:
"label"
,
disabled
:
"disabled"
},
menuData
:[],
defaultOpen
:[],
defaultId
:
""
}},
methods
:{
clearFn
:
function
(){
this
.
searchResultShow
=!
1
,
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)}),
this
.
$emit
(
"clearSearch"
)},
searchFn
:
function
(){
if
(
""
==
this
.
searchKey
)
return
this
.
searchResultShow
=!
1
,
!
1
;
this
.
searchResultShow
=!
0
,
this
.
$emit
(
"handleSearchKey"
,
this
.
searchKey
)},
handleNodeClick
:
function
(
e
,
t
){
e
.
id
!=
this
.
defaultId
&&
document
.
querySelector
(
".el-tree-node"
)
&&
document
.
querySelector
(
".el-tree-node"
).
classList
.
remove
(
"is-current"
),
this
.
defaultId
=
e
.
groupId
,
this
.
$emit
(
"handleTreeSelection"
,
e
,
t
,
"node"
)},
selectEmployee
:
function
(
e
){
this
.
defaultId
=
e
.
employeeClerkId
,
this
.
$emit
(
"handleEmployeeSelection"
,
e
,
"employee"
)},
handleStoreClick
:
function
(
e
){
this
.
$emit
(
"handleStoreSelection"
,
e
,
"store"
)}},
filter
:{},
computed
:{
employeeList
:
function
(){
return
this
.
searchResult
.
searchList
?
this
.
searchResult
.
searchList
:[]},
departmentList
:
function
(){
return
this
.
searchResult
.
departmentList
?
this
.
searchResult
.
departmentList
:[]},
brandList
:
function
(){
return
this
.
searchResult
.
brandList
?
this
.
searchResult
.
brandList
:[]}},
watch
:{
treeData
:
function
(
e
,
t
){
var
a
=
this
,
s
=
Object
(
r
.
c
)(
e
);
a
.
defaultOpen
=
s
.
defaultOpen
,
a
.
menuData
=
s
.
menuArr
,
a
.
menuData
.
length
&&
a
.
$nextTick
(
function
(){
a
.
defaultId
=
a
.
menuData
.
length
?
a
.
menuData
[
0
].
id
:
""
,
document
.
querySelector
(
".el-tree-node"
).
classList
.
add
(
"is-current"
)})}}},
o
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"searh-menu-container"
},[
a
(
"div"
,{
staticClass
:
"p-0-15"
},[
a
(
"el-input"
,{
attrs
:{
"prefix-icon"
:
"el-icon-search"
,
placeholder
:
e
.
storeFrame
?
"姓名/手机号/部门/code"
:
"姓名/手机号/部门"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearFn
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
searchFn
(
t
):
null
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}}),
e
.
_v
(
" "
),
e
.
_t
(
"buttonBox"
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
e
.
_e
():
a
(
"el-tree"
,{
staticClass
:
"search-menu"
,
attrs
:{
"node-key"
:
"id"
,
"default-expanded-keys"
:
e
.
defaultOpen
,
data
:
e
.
menuData
,
"highlight-current"
:
!
0
,
"expand-on-click-node"
:
!
1
,
props
:
e
.
myProps
},
on
:{
"node-click"
:
e
.
handleNodeClick
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
;
return
t
.
data
,
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"i"
,{
staticClass
:
"iconfont"
,
class
:
1
==
r
.
level
?
"icon-2zuzhijiagou"
:
"icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
2
),
e
.
_v
(
" "
),
e
.
searchResultShow
?
a
(
"div"
,{
staticClass
:
"search-result-container m-t-15"
},[
e
.
storeFrame
?[
e
.
_l
(
e
.
brandList
,
function
(
t
,
r
){
return
[
t
.
departmentList
.
length
>
0
||
t
.
storeList
.
length
>
0
||
t
.
searchList
.
length
>
0
?
a
(
"div"
,{
key
:
t
.
topDepartment
.
brandId
+
"_"
+
r
},[
a
(
"div"
,[
a
(
"p"
,{
staticClass
:
"brand-title"
},[
e
.
_v
(
e
.
_s
(
t
.
topDepartment
.
name
))]),
e
.
_v
(
" "
),
t
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"分组列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
storeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"门店列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
storeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
storeGroupId
,
staticClass
:
"group-item items"
,
on
:{
click
:
function
(
a
){
e
.
handleStoreClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
storeName
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
searchList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title store-frame-title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
t
.
searchList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"person-item items"
,
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
()])]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
brandList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]:[
e
.
departmentList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"部门列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
departmentList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
groupId
,
class
:[
"group-item items"
,
e
.
defaultId
==
t
.
groupId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
handleNodeClick
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-tongshi-zuzhijiagou"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
)])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
employeeList
.
length
>
0
?
a
(
"ul"
,{
staticClass
:
"search-result-ul"
},[
a
(
"p"
,{
staticClass
:
"title"
},[
e
.
_v
(
"人员列表"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
employeeList
,
function
(
t
,
r
){
return
a
(
"li"
,{
key
:
r
+
"_"
+
t
.
employeeClerkId
,
class
:[
"person-item items"
,
e
.
defaultId
==
t
.
employeeClerkId
?
"active-item"
:
""
],
on
:{
click
:
function
(
a
){
e
.
selectEmployee
(
t
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-chengyuan"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
)
+
"
\
n "
),
a
(
"span"
,{
staticClass
:
"from-group"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])])})],
2
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
departmentList
.
length
<
1
&&
e
.
employeeList
.
length
<
1
?
a
(
"p"
,{
staticClass
:
"no-data-tip"
},[
e
.
_v
(
"暂无数据"
)]):
e
.
_e
()]],
2
):
e
.
_e
()])},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
o
,
!
1
,
function
(
e
){
a
(
"KvXJ"
)},
null
,
null
);
t
.
a
=
n
.
exports
},
CNZL
:
function
(
e
,
t
){},
"Hh+f"
:
function
(
e
,
t
){},
KvXJ
:
function
(
e
,
t
){},
asBg
:
function
(
e
,
t
){},
eBhI
:
function
(
e
,
t
){},
oncj
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"l46T"
),
s
=
a
(
"Ie7z"
),
o
=
a
(
"P9l9"
),
n
=
a
(
"XDyb"
),
i
=
a
(
"T+u5"
),
l
=
a
.
n
(
i
),
c
=
{
name
:
"clerk-info-form"
,
props
:{
isAddnew
:{
type
:
Boolean
,
default
:
!
1
},
perId
:{
type
:[
String
,
Number
],
default
:
""
},
firstLevelId
:{
type
:[
String
,
Number
],
default
:
""
},
storeType
:{
type
:[
String
,
Number
],
default
:
""
},
gicFlag
:{
type
:
Boolean
,
default
:
!
1
}},
components
:{
vueSelectStore
:
s
.
a
,
countryMobile
:
n
.
a
,
limitInput
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入店员姓名"
,
trigger
:
"blur"
}],
phoneNumber
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
!
a
)
return
r
(
new
Error
(
"请输入手机号"
));
var
s
=
new
l
.
a
(
"+"
+
e
.
clerkInfo
.
nationcode
+
a
);
s
.
isValid
()
&&
s
.
isMobile
()?
r
():
r
(
new
Error
(
"手机号格式不正确"
))},
trigger
:
"blur"
}],
storeName
:[{
required
:
!
0
,
message
:
"请选择门店"
,
trigger
:
"change"
}],
code
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
r
){
if
(
""
==
a
)
return
r
(
new
Error
(
"请输入工号或员工代码"
));
/^
[
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+$/
.
test
(
a
)?
r
():
e
.
clerkInfo
.
code
=
a
.
replace
(
/
[^
A-Za-z0-9_
\u
4e00-
\u
9fa5
]
+/g
,
""
)},
trigger
:
"blur"
}]},
clerkInfo
:{
storeName
:
this
.
$route
.
query
.
storeName
||
""
,
storeId
:
this
.
$route
.
query
.
storeId
||
""
,
managerMode
:
!
1
,
positionName
:
"职员"
,
nationcode
:
"86"
},
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
,
storeType
:
""
,
openNextBool
:
!
0
},
defaultList
:[{
id
:
this
.
$route
.
query
.
storeId
,
label
:
this
.
$route
.
query
.
storeName
}]}},
methods
:{
toInputCode
:
function
(
e
){
var
t
=
this
.
clerkInfo
.
code
;
""
!==
t
&&
(
this
.
clerkInfo
.
code
=
t
.
replace
(
/
[^
A-Za-z0-9
]
+/g
,
""
))},
saveFn
:
function
(
e
){
var
t
=!
0
;
this
.
$refs
.
clerk_info
.
validate
(
function
(
e
){
e
||
(
t
=!
1
)}),
t
&&
this
.
addEmployee
(
this
.
clerkInfo
,
e
)},
callSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
handleSelectedList
:
function
(
e
){
this
.
clerkInfo
.
storeName
=
e
&&
e
.
length
?
e
[
0
].
label
:
""
,
this
.
clerkInfo
.
storeId
=
e
&&
e
.
length
?
e
[
0
].
id
:
""
,
this
.
$forceUpdate
()},
addEmployee
:
function
(
e
,
t
){
var
a
=
this
,
r
=
{
name
:
e
.
name
,
isClerk
:
1
,
phoneNumber
:
e
.
phoneNumber
,
positionName
:
e
.
positionName
,
storeId
:
e
.
storeId
,
managerMode
:
1
*
e
.
managerMode
,
code
:
e
.
code
,
employeeClerkId
:
e
.
employeeClerkId
||
""
,
nationcode
:
e
.
nationcode
},
s
=
a
.
isAddnew
?
"/haoban-manage-web/emp/add"
:
"/haoban-manage-web/emp/update"
;
Object
(
o
.
a
)(
s
,
r
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
a
.
$message
.
success
({
message
:
"操作成功"
}),
1
==
t
?(
a
.
clerkInfo
=
{
name
:
""
,
isClerk
:
1
,
phoneNumber
:
""
,
positionName
:
"职员"
,
storeId
:
""
,
managerMode
:
!
1
,
code
:
""
,
nationcode
:
"86"
},
a
.
defaultList
=
[],
a
.
$refs
.
clerk_info
.
resetFields
()):
a
.
$router
.
push
(
"/storeFrame"
)):
a
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
message
:
e
.
message
})})},
cancel
:
function
(){
var
e
=
this
;
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getClerkInfo
:
function
(){
var
e
=
this
,
t
=
{
id
:
e
.
$route
.
query
.
clerkId
?
e
.
$route
.
query
.
clerkId
:
e
.
perId
};
Object
(
o
.
a
)(
"/haoban-manage-web/emp/findOne"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
clerkInfo
=
t
.
data
.
result
,
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
storeId
,
label
:
t
.
data
.
result
.
storeName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
})})}},
beforeMount
:
function
(){
this
.
treeSet
.
storeType
=
this
.
storeType
,
this
.
treeSet
.
groupId
=
this
.
firstLevelId
,
this
.
isAddnew
||
this
.
getClerkInfo
()},
watch
:{
perId
:
function
(
e
,
t
){
this
.
getClerkInfo
(
e
)}}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"form-container bdr-box"
},[
a
(
"el-form"
,{
ref
:
"clerk_info"
,
staticClass
:
"add-clerk-form"
,
attrs
:{
model
:
e
.
clerkInfo
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
name
,
holder
:
"请输入姓名"
,
maxLength
:
10
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"name"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}},[
a
(
"countryMobile"
,{
attrs
:{
inputWidth
:
380
,
nationCode
:
e
.
clerkInfo
.
nationcode
,
holder
:
"请输入手机号"
,
disflag
:
!
e
.
isAddnew
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
clerkInfo
.
phoneNumber
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"phoneNumber"
,
t
)},
expression
:
"clerkInfo.phoneNumber"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"门店"
,
prop
:
"storeName"
}},[
a
(
"el-input"
,{
staticClass
:
"clerk-info-input"
,
attrs
:{
disabled
:
!
e
.
isAddnew
},
on
:{
focus
:
e
.
callSelector
},
model
:{
value
:
e
.
clerkInfo
.
storeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"storeName"
,
t
)},
expression
:
"clerkInfo.storeName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"code"
,
prop
:
"code"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
disflag
:
e
.
gicFlag
&&!
e
.
isAddnew
,
inputValue
:
e
.
clerkInfo
.
code
,
holder
:
"请输入工号或员工代码"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"code"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
clerkInfo
.
positionName
,
holder
:
"请输入职位"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
clerkInfo
,
"positionName"
,
t
)}}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"btn-box"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveFn
}},[
e
.
_v
(
"保 存"
)]),
e
.
_v
(
" "
),
!
e
.
gicFlag
&&
e
.
isAddnew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveFn
(
1
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
gicFlag
?
e
.
_e
():
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取 消"
)])],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
selectType
:
"store"
,
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"eBhI"
)},
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
(
"Hh+f"
)},
null
,
null
);
t
.
a
=
_
.
exports
},
t0BL
:
function
(
e
,
t
){},
uc8i
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/6
6.922989ef9cae8ae8fa0d
.js
→
dist/static/js/6
5.efbf8d97795f3130cf2a
.js
View file @
c46c6395
webpackJsonp
([
66
],{
"4H54"
:
function
(
t
,
e
,
s
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"2eFk"
),
i
=
s
(
"Ke24"
),
n
=
s
(
"PI0u"
),
o
=
s
(
"Ch4/"
),
l
=
s
(
"3E4D"
),
r
=
s
(
"P9l9"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeId
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"话务任务设置"
}],
setObj
:{
taskType
:
1
,
overDayJudge
:
""
,
distributeTypeJudge
:
""
,
posDistributeJudge
:
""
,
giveUpJudge
:
""
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
n
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
1
,
overDayJudge
:
t
.
setObj
.
overDayJudge
,
giveUpJudge
:
t
.
setObj
.
giveUpJudge
,
distributeTypeJudge
:
t
.
setObj
.
distributeTypeJudge
,
posDistributeJudge
:
t
.
setObj
.
posDistributeJudge
};
Object
(
r
.
e
)(
"/haoban-app-tel-task-web/setting/save-task-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
o
.
a
.
errorMsg
(
e
):
l
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
1
};
Object
(
r
.
e
)(
"/haoban-app-tel-task-web/setting/find-task-setting"
,
e
).
then
(
function
(
e
){
var
s
=
e
.
data
;
1
!=
s
.
errorCode
?
o
.
a
.
errorMsg
(
s
):
t
.
setObj
=
s
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
a
.
a
,
commonDetailTop
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
s
=
t
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
s
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
s
(
"div"
,{
staticClass
:
"task-set-cell"
},[
s
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-20 font-w-500"
},[
t
.
_v
(
"话务任务逾期时间设置"
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"话务任务下发"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
overDayJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"overDayJudge"
,
e
)},
expression
:
"setObj.overDayJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-15"
},[
t
.
_v
(
"注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成"
)])],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
t
.
setObj
.
distributeTypeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeTypeJudge"
,
e
)},
expression
:
"setObj.distributeTypeJudge"
}},[
t
.
_v
(
"分配给主门店店长"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
distributeTypeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeTypeJudge"
,
e
)},
expression
:
"setObj.distributeTypeJudge"
}},[
t
.
_v
(
"分配给专属导购"
)])],
1
),
t
.
_v
(
" "
),
t
.
_m
(
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
t
.
setObj
.
posDistributeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"posDistributeJudge"
,
e
)},
expression
:
"setObj.posDistributeJudge"
}},[
t
.
_v
(
"分配给主门店店长"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
posDistributeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"posDistributeJudge"
,
e
)},
expression
:
"setObj.posDistributeJudge"
}},[
t
.
_v
(
"分配给专属导购"
)])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"话务任务放弃前提"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
giveUpJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"giveUpJudge"
,
e
)},
expression
:
"setObj.giveUpJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"次"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"呼叫后无响应"
)])],
1
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"set-line-item"
},[
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
this
.
_v
(
"话务任务下发"
)]),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
this
.
_v
(
"微信会员"
)])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"set-line-item"
},[
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266 w-320"
},[
this
.
_v
(
"POS会员 "
),
e
(
"i"
,{
staticClass
:
"font-10 color-909399"
},[
this
.
_v
(
"注:若无pos会员,请忽略此项设置"
)])])])}]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
s
(
"KFm9"
)},
"data-v-6ce6cbe1"
,
null
);
e
.
default
=
u
.
exports
},
KFm9
:
function
(
t
,
e
){}});
webpackJsonp
([
65
],{
"4H54"
:
function
(
t
,
e
,
s
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"2eFk"
),
i
=
s
(
"Ke24"
),
n
=
s
(
"PI0u"
),
o
=
s
(
"Ch4/"
),
l
=
s
(
"3E4D"
),
r
=
s
(
"P9l9"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeId
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"话务任务设置"
}],
setObj
:{
taskType
:
1
,
overDayJudge
:
""
,
distributeTypeJudge
:
""
,
posDistributeJudge
:
""
,
giveUpJudge
:
""
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
n
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
1
,
overDayJudge
:
t
.
setObj
.
overDayJudge
,
giveUpJudge
:
t
.
setObj
.
giveUpJudge
,
distributeTypeJudge
:
t
.
setObj
.
distributeTypeJudge
,
posDistributeJudge
:
t
.
setObj
.
posDistributeJudge
};
Object
(
r
.
e
)(
"/haoban-app-tel-task-web/setting/save-task-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
o
.
a
.
errorMsg
(
e
):
l
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
1
};
Object
(
r
.
e
)(
"/haoban-app-tel-task-web/setting/find-task-setting"
,
e
).
then
(
function
(
e
){
var
s
=
e
.
data
;
1
!=
s
.
errorCode
?
o
.
a
.
errorMsg
(
s
):
t
.
setObj
=
s
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
a
.
a
,
commonDetailTop
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
s
=
t
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
s
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
s
(
"div"
,{
staticClass
:
"task-set-cell"
},[
s
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-20 font-w-500"
},[
t
.
_v
(
"话务任务逾期时间设置"
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"话务任务下发"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
overDayJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"overDayJudge"
,
e
)},
expression
:
"setObj.overDayJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-15"
},[
t
.
_v
(
"注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成"
)])],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
t
.
setObj
.
distributeTypeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeTypeJudge"
,
e
)},
expression
:
"setObj.distributeTypeJudge"
}},[
t
.
_v
(
"分配给主门店店长"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
distributeTypeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeTypeJudge"
,
e
)},
expression
:
"setObj.distributeTypeJudge"
}},[
t
.
_v
(
"分配给专属导购"
)])],
1
),
t
.
_v
(
" "
),
t
.
_m
(
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
0
},
model
:{
value
:
t
.
setObj
.
posDistributeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"posDistributeJudge"
,
e
)},
expression
:
"setObj.posDistributeJudge"
}},[
t
.
_v
(
"分配给主门店店长"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
posDistributeJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"posDistributeJudge"
,
e
)},
expression
:
"setObj.posDistributeJudge"
}},[
t
.
_v
(
"分配给专属导购"
)])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"话务任务放弃前提"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
giveUpJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"giveUpJudge"
,
e
)},
expression
:
"setObj.giveUpJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"次"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"呼叫后无响应"
)])],
1
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"set-line-item"
},[
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
this
.
_v
(
"话务任务下发"
)]),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
this
.
_v
(
"微信会员"
)])])},
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"set-line-item"
},[
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
}),
this
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266 w-320"
},[
this
.
_v
(
"POS会员 "
),
e
(
"i"
,{
staticClass
:
"font-10 color-909399"
},[
this
.
_v
(
"注:若无pos会员,请忽略此项设置"
)])])])}]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
s
(
"KFm9"
)},
"data-v-6ce6cbe1"
,
null
);
e
.
default
=
u
.
exports
},
KFm9
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/6
7.87953f37519f1ef07363
.js
→
dist/static/js/6
6.ee588b2e7cc90c1990d4
.js
View file @
c46c6395
webpackJsonp
([
67
],{
FdYP
:
function
(
t
,
e
){},
H8Kg
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"image-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
a
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"image-com flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"must"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))]),
t
.
_v
(
" "
),
t
.
_m
(
0
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"draged-item-show"
},[
e
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
e
(
"i"
,{
staticClass
:
"iconfont icon-icon"
})])])}]};
var
c
=
i
(
"VU/8"
)(
s
,
a
,
!
1
,
function
(
t
){
i
(
"FdYP"
)},
"data-v-6c75d59f"
,
null
);
e
.
default
=
c
.
exports
}});
webpackJsonp
([
66
],{
FdYP
:
function
(
t
,
e
){},
H8Kg
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"image-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
a
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"image-com flex"
},[
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"must"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))]),
t
.
_v
(
" "
),
t
.
_m
(
0
)])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"draged-item-show"
},[
e
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
e
(
"i"
,{
staticClass
:
"iconfont icon-icon"
})])])}]};
var
c
=
i
(
"VU/8"
)(
s
,
a
,
!
1
,
function
(
t
){
i
(
"FdYP"
)},
"data-v-6c75d59f"
,
null
);
e
.
default
=
c
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/6
8.49617d8ce02518b3ba55
.js
→
dist/static/js/6
7.dba142827d793ce3c03c
.js
View file @
c46c6395
webpackJsonp
([
68
],{
"4Vni"
:
function
(
e
,
t
){},
"av/3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
r
=
a
(
"Qie6"
),
o
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"企业公告"
,
appIcon
:
"icon-gonggao"
,
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
id
:
"1"
,
name
:
"企业公告列表"
,
icon
:
""
,
onlyIconActive
:
!
1
},{
id
:
"2"
,
name
:
"新建公告"
,
icon
:
""
,
onlyIconActive
:
!
1
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
forbidFlag
:
"forbid"
,
gicEnterpriseId
:
""
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"forbid"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
r
.
a
,
expiredDialog
:
o
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"4Vni"
)},
"data-v-6a56e090"
,
null
);
t
.
default
=
u
.
exports
}});
webpackJsonp
([
67
],{
"4Vni"
:
function
(
e
,
t
){},
"av/3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
r
=
a
(
"Qie6"
),
o
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"企业公告"
,
appIcon
:
"icon-gonggao"
,
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
id
:
"1"
,
name
:
"企业公告列表"
,
icon
:
""
,
onlyIconActive
:
!
1
},{
id
:
"2"
,
name
:
"新建公告"
,
icon
:
""
,
onlyIconActive
:
!
1
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
forbidFlag
:
"forbid"
,
gicEnterpriseId
:
""
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"forbid"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
r
.
a
,
expiredDialog
:
o
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"4Vni"
)},
"data-v-6a56e090"
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/6
9.e1def1703e6f72e40d82
.js
→
dist/static/js/6
8.1fa9254f23908356844f
.js
View file @
c46c6395
webpackJsonp
([
69
],{
IKv2
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"mvHQ"
),
o
=
r
.
n
(
a
),
n
=
r
(
"2eFk"
),
s
=
r
(
"Ke24"
),
c
=
r
(
"PI0u"
),
l
=
r
(
"Ch4/"
),
i
=
r
(
"3E4D"
),
u
=
r
(
"P9l9"
),
f
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"3"
,
name
:
"门店月指标"
,
path
:
"storeMonthTask?yearMonth="
+
this
.
$route
.
query
.
yearMonth
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"4"
,
name
:
"导购月指标详情"
,
path
:
""
}],
activeId
:
"4"
,
tableData
:[],
performanceSum
:
""
,
clerkObj
:{
storeId
:
""
,
storeName
:
""
,
yearMonth
:
""
,
settingAble
:
1
,
storePerformance
:
""
},
equalFlag
:
!
0
}},
computed
:{},
methods
:{
inputPerformance
:
function
(
e
,
t
,
r
){
r
.
clerkPerformance
=
Number
(
r
.
clerkPerformance
.
replace
(
/
[^\d
.
]
/g
,
""
))?
r
.
clerkPerformance
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
r
.
clerkPerformance
=
Number
(
r
.
clerkPerformance
).
toFixed
(
2
);
var
a
=
0
;
this
.
tableData
.
forEach
(
function
(
e
){
a
+=
Number
(
e
.
clerkPerformance
)}),
this
.
performanceSum
=
Number
(
a
).
toFixed
(
2
),
this
.
diffData
()},
inputMonthPerformance
:
function
(
e
){
this
.
clerkObj
.
storePerformance
=
Number
(
this
.
clerkObj
.
storePerformance
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
clerkObj
.
storePerformance
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
clerkObj
.
storePerformance
=
Number
(
this
.
clerkObj
.
storePerformance
).
toFixed
(
2
),
this
.
diffData
()},
diffData
:
function
(){
var
e
=
Number
(
this
.
performanceSum
)
==
Number
(
this
.
clerkObj
.
storePerformance
);
return
this
.
equalFlag
=!!
e
,
e
},
saveSet
:
Object
(
c
.
a
)(
function
(){
if
(
!
this
.
diffData
())
return
!
1
;
if
(
""
==
this
.
clerkObj
.
storePerformance
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入门店月指标"
}),
!
1
;
var
e
=
{
clerkPerformanceList
:
this
.
tableData
,
storePerformance
:
this
.
clerkObj
.
storePerformance
};
this
.
postSave
(
e
)},
500
),
postSave
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
t
.
activeBrand
,
storeId
:
t
.
clerkObj
.
storeId
,
yearMonth
:
t
.
clerkObj
.
yearMonth
,
performance
:
o
()(
e
)};
Object
(
u
.
e
)(
"/haoban-app-performance-web/performance/save-clerk-month-performance"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
l
.
a
.
errorMsg
(
t
):
i
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
brandId
:
e
.
activeBrand
,
storeId
:
e
.
clerkObj
.
storeId
,
yearMonth
:
e
.
clerkObj
.
yearMonth
};
Object
(
u
.
e
)(
"/haoban-app-performance-web/performance/query-clerk-month-performance"
,
t
).
then
(
function
(
t
){
var
r
=
t
.
data
;
if
(
1
==
r
.
errorCode
){
r
.
result
.
clerkPerformanceList
&&
r
.
result
.
clerkPerformanceList
.
length
&&
(
r
.
result
.
clerkPerformanceList
.
forEach
(
function
(
e
){
e
.
clerkPerformance
=
Number
(
e
.
clerkPerformance
).
toFixed
(
2
)}),
e
.
tableData
=
r
.
result
.
clerkPerformanceList
||
[]),
r
.
result
.
storePerformance
=
Number
(
r
.
result
.
storePerformance
).
toFixed
(
2
),
e
.
clerkObj
=
r
.
result
;
var
a
=
0
;
return
e
.
tableData
.
forEach
(
function
(
e
){
a
+=
Number
(
e
.
clerkPerformance
)}),
void
(
e
.
performanceSum
=
Number
(
a
).
toFixed
(
2
))}
l
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
clerkObj
.
yearMonth
=
this
.
$route
.
query
.
yearMonth
,
this
.
clerkObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"11"
),
this
.
brandId
&&
(
this
.
clerkObj
.
yearMonth
=
this
.
$route
.
query
.
yearMonth
,
this
.
clerkObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
getData
())},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
n
.
a
,
commonDetailTop
:
s
.
a
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"app-detail-wrap common-right-wrap"
},[
r
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
r
(
"div"
,{
staticClass
:
"saler-set-title flex flex-space-between m-b-15"
},[
r
(
"div"
,{
staticClass
:
"saler-set-title_left"
},[
r
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
clerkObj
.
yearMonth
))]),
r
(
"span"
,{
staticClass
:
"p-l-18"
},[
e
.
_v
(
e
.
_s
(
e
.
clerkObj
.
storeName
)
+
"门店导购月指标详情"
)])]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"saler-set-title_right"
},[
r
(
"span"
,[
e
.
_v
(
"门店月指标:"
)]),
r
(
"el-input"
,{
staticClass
:
"w-105 p-l-8"
,
attrs
:{
placeholder
:
"请输入指标值"
,
disabled
:
0
==
e
.
clerkObj
.
settingAble
},
on
:{
blur
:
function
(
t
){
return
e
.
inputMonthPerformance
(
t
)}},
model
:{
value
:
e
.
clerkObj
.
storePerformance
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkObj
,
"storePerformance"
,
t
)},
expression
:
"clerkObj.storePerformance"
}})],
1
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"saler-set-table"
},[
r
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"导购"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"月指标"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,[
r
(
"el-input"
,{
staticClass
:
"w-105 p-l-8"
,
attrs
:{
placeholder
:
"请输入指标值"
,
disabled
:
0
==
e
.
clerkObj
.
settingAble
},
on
:{
blur
:
function
(
r
){
return
e
.
inputPerformance
(
r
,
t
.
$index
,
t
.
row
)}},
model
:{
value
:
t
.
row
.
clerkPerformance
,
callback
:
function
(
r
){
e
.
$set
(
t
.
row
,
"clerkPerformance"
,
r
)},
expression
:
"scope.row.clerkPerformance"
}})],
1
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"task-set-save text-center m-t-30"
},[
r
(
"span"
,{
staticClass
:
"saler-set-sum"
},[
e
.
_v
(
"导购总计:"
),
r
(
"span"
,{
class
:[
"font-20"
,
e
.
equalFlag
?
"color-1890ff"
:
"color-f5222d"
]},[
e
.
_v
(
e
.
_s
(
e
.
performanceSum
))])]),
e
.
_v
(
" "
),
1
==
e
.
clerkObj
.
settingAble
?
r
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
equalFlag
,
type
:
"primary"
},
on
:{
click
:
e
.
saveSet
}},[
e
.
_v
(
"确 认"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
equalFlag
?
e
.
_e
():
r
(
"span"
,{
staticClass
:
"font-14 color-f5222d p-l-24"
},[
e
.
_v
(
"请确保导购月指标总计 = 门店月指标"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
r
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
e
){
r
(
"Uf20"
)},
"data-v-69b1dd14"
,
null
);
t
.
default
=
d
.
exports
},
Uf20
:
function
(
e
,
t
){}});
webpackJsonp
([
68
],{
IKv2
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"mvHQ"
),
o
=
r
.
n
(
a
),
n
=
r
(
"2eFk"
),
s
=
r
(
"Ke24"
),
c
=
r
(
"PI0u"
),
l
=
r
(
"Ch4/"
),
i
=
r
(
"3E4D"
),
u
=
r
(
"P9l9"
),
f
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"3"
,
name
:
"门店月指标"
,
path
:
"storeMonthTask?yearMonth="
+
this
.
$route
.
query
.
yearMonth
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"4"
,
name
:
"导购月指标详情"
,
path
:
""
}],
activeId
:
"4"
,
tableData
:[],
performanceSum
:
""
,
clerkObj
:{
storeId
:
""
,
storeName
:
""
,
yearMonth
:
""
,
settingAble
:
1
,
storePerformance
:
""
},
equalFlag
:
!
0
}},
computed
:{},
methods
:{
inputPerformance
:
function
(
e
,
t
,
r
){
r
.
clerkPerformance
=
Number
(
r
.
clerkPerformance
.
replace
(
/
[^\d
.
]
/g
,
""
))?
r
.
clerkPerformance
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
r
.
clerkPerformance
=
Number
(
r
.
clerkPerformance
).
toFixed
(
2
);
var
a
=
0
;
this
.
tableData
.
forEach
(
function
(
e
){
a
+=
Number
(
e
.
clerkPerformance
)}),
this
.
performanceSum
=
Number
(
a
).
toFixed
(
2
),
this
.
diffData
()},
inputMonthPerformance
:
function
(
e
){
this
.
clerkObj
.
storePerformance
=
Number
(
this
.
clerkObj
.
storePerformance
.
replace
(
/
[^\d
.
]
/g
,
""
))?
this
.
clerkObj
.
storePerformance
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
""
):
""
,
this
.
clerkObj
.
storePerformance
=
Number
(
this
.
clerkObj
.
storePerformance
).
toFixed
(
2
),
this
.
diffData
()},
diffData
:
function
(){
var
e
=
Number
(
this
.
performanceSum
)
==
Number
(
this
.
clerkObj
.
storePerformance
);
return
this
.
equalFlag
=!!
e
,
e
},
saveSet
:
Object
(
c
.
a
)(
function
(){
if
(
!
this
.
diffData
())
return
!
1
;
if
(
""
==
this
.
clerkObj
.
storePerformance
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入门店月指标"
}),
!
1
;
var
e
=
{
clerkPerformanceList
:
this
.
tableData
,
storePerformance
:
this
.
clerkObj
.
storePerformance
};
this
.
postSave
(
e
)},
500
),
postSave
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
t
.
activeBrand
,
storeId
:
t
.
clerkObj
.
storeId
,
yearMonth
:
t
.
clerkObj
.
yearMonth
,
performance
:
o
()(
e
)};
Object
(
u
.
e
)(
"/haoban-app-performance-web/performance/save-clerk-month-performance"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
l
.
a
.
errorMsg
(
t
):
i
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
,
t
=
{
brandId
:
e
.
activeBrand
,
storeId
:
e
.
clerkObj
.
storeId
,
yearMonth
:
e
.
clerkObj
.
yearMonth
};
Object
(
u
.
e
)(
"/haoban-app-performance-web/performance/query-clerk-month-performance"
,
t
).
then
(
function
(
t
){
var
r
=
t
.
data
;
if
(
1
==
r
.
errorCode
){
r
.
result
.
clerkPerformanceList
&&
r
.
result
.
clerkPerformanceList
.
length
&&
(
r
.
result
.
clerkPerformanceList
.
forEach
(
function
(
e
){
e
.
clerkPerformance
=
Number
(
e
.
clerkPerformance
).
toFixed
(
2
)}),
e
.
tableData
=
r
.
result
.
clerkPerformanceList
||
[]),
r
.
result
.
storePerformance
=
Number
(
r
.
result
.
storePerformance
).
toFixed
(
2
),
e
.
clerkObj
=
r
.
result
;
var
a
=
0
;
return
e
.
tableData
.
forEach
(
function
(
e
){
a
+=
Number
(
e
.
clerkPerformance
)}),
void
(
e
.
performanceSum
=
Number
(
a
).
toFixed
(
2
))}
l
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
clerkObj
.
yearMonth
=
this
.
$route
.
query
.
yearMonth
,
this
.
clerkObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"11"
),
this
.
brandId
&&
(
this
.
clerkObj
.
yearMonth
=
this
.
$route
.
query
.
yearMonth
,
this
.
clerkObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
getData
())},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
n
.
a
,
commonDetailTop
:
s
.
a
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"app-detail-wrap common-right-wrap"
},[
r
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
r
(
"div"
,{
staticClass
:
"saler-set-title flex flex-space-between m-b-15"
},[
r
(
"div"
,{
staticClass
:
"saler-set-title_left"
},[
r
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
clerkObj
.
yearMonth
))]),
r
(
"span"
,{
staticClass
:
"p-l-18"
},[
e
.
_v
(
e
.
_s
(
e
.
clerkObj
.
storeName
)
+
"门店导购月指标详情"
)])]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"saler-set-title_right"
},[
r
(
"span"
,[
e
.
_v
(
"门店月指标:"
)]),
r
(
"el-input"
,{
staticClass
:
"w-105 p-l-8"
,
attrs
:{
placeholder
:
"请输入指标值"
,
disabled
:
0
==
e
.
clerkObj
.
settingAble
},
on
:{
blur
:
function
(
t
){
return
e
.
inputMonthPerformance
(
t
)}},
model
:{
value
:
e
.
clerkObj
.
storePerformance
,
callback
:
function
(
t
){
e
.
$set
(
e
.
clerkObj
,
"storePerformance"
,
t
)},
expression
:
"clerkObj.storePerformance"
}})],
1
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"saler-set-table"
},[
r
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
r
(
"el-table-column"
,{
attrs
:{
label
:
"导购"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))])]}}])}),
e
.
_v
(
" "
),
r
(
"el-table-column"
,{
attrs
:{
label
:
"月指标"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
r
(
"div"
,[
r
(
"el-input"
,{
staticClass
:
"w-105 p-l-8"
,
attrs
:{
placeholder
:
"请输入指标值"
,
disabled
:
0
==
e
.
clerkObj
.
settingAble
},
on
:{
blur
:
function
(
r
){
return
e
.
inputPerformance
(
r
,
t
.
$index
,
t
.
row
)}},
model
:{
value
:
t
.
row
.
clerkPerformance
,
callback
:
function
(
r
){
e
.
$set
(
t
.
row
,
"clerkPerformance"
,
r
)},
expression
:
"scope.row.clerkPerformance"
}})],
1
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"task-set-save text-center m-t-30"
},[
r
(
"span"
,{
staticClass
:
"saler-set-sum"
},[
e
.
_v
(
"导购总计:"
),
r
(
"span"
,{
class
:[
"font-20"
,
e
.
equalFlag
?
"color-1890ff"
:
"color-f5222d"
]},[
e
.
_v
(
e
.
_s
(
e
.
performanceSum
))])]),
e
.
_v
(
" "
),
1
==
e
.
clerkObj
.
settingAble
?
r
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
equalFlag
,
type
:
"primary"
},
on
:{
click
:
e
.
saveSet
}},[
e
.
_v
(
"确 认"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
equalFlag
?
e
.
_e
():
r
(
"span"
,{
staticClass
:
"font-14 color-f5222d p-l-24"
},[
e
.
_v
(
"请确保导购月指标总计 = 门店月指标"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
r
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
e
){
r
(
"Uf20"
)},
"data-v-69b1dd14"
,
null
);
t
.
default
=
d
.
exports
},
Uf20
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/
70.1016099bd834fbabb9f9
.js
→
dist/static/js/
69.da63bdfde8b85b8101a0
.js
View file @
c46c6395
webpackJsonp
([
70
],{
SxT2
:
function
(
e
,
t
){},
kCy7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"Ke24"
),
n
=
a
(
"Ie7z"
),
i
=
a
(
"P9l9"
),
s
=
a
(
"PI0u"
),
r
=
a
(
"Ch4/"
),
c
=
{
name
:
"noticeList"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
var
e
=
this
;
return
{
topMenuData
:[{
id
:
"1"
,
name
:
"签到记录"
}],
activeId
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
conditionObj
:{
keyword
:
""
,
storeGroup
:[],
signStatus
:
""
,
choiceDate
:[]},
signStatusOptions
:[{
value
:
""
,
label
:
"所有状态"
},{
value
:
"0"
,
label
:
"签到"
},{
value
:
"1"
,
label
:
"签退"
}],
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
o
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
o
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
2592
e6
,
o
=
e
.
choiceDateCopy
[
0
]
+
2592
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
o
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
o
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
+
"-"
+
o
},
formatTimeHMS
:
function
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
activeBrand
=
this
.
brandId
;
var
t
=
new
Date
,
a
=
t
.
getTime
()
-
2592
e6
,
o
=
t
.
getFullYear
(),
n
=
t
.
getMonth
()
+
1
,
i
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
s
=
n
<
10
?
"0"
+
n
:
n
,
r
=
new
Date
(
a
),
c
=
r
.
getFullYear
(),
l
=
r
.
getMonth
()
+
1
,
u
=
r
.
getDate
()
<
10
?
"0"
+
r
.
getDate
():
r
.
getDate
(),
d
=
l
<
10
?
"0"
+
l
:
l
;
e
.
conditionObj
.
choiceDate
=
[
c
+
"-"
+
d
+
"-"
+
u
,
o
+
"-"
+
s
+
"-"
+
i
],
e
.
brandId
&&
e
.
$nextTick
(
function
(
t
){
e
.
getTableList
()})},
methods
:{
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
getTableList
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
[],
a
=
[],
o
=
[
"星期天"
,
"星期一"
,
"星期二"
,
"星期三"
,
"星期四"
,
"星期五"
,
"星期六"
];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
choiceDate
||
(
e
.
conditionObj
.
choiceDate
=
[]);
var
n
=
{
haobanEnterpriseId
:
localStorage
.
getItem
(
"userInfo"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
:
""
,
search
:
e
.
conditionObj
.
keyword
||
""
,
haobanBrandId
:
e
.
activeBrand
,
storeIds
:
a
.
join
(
","
)
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
signType
:
e
.
conditionObj
.
signStatus
||
""
,
startDate
:
e
.
conditionObj
&&
e
.
conditionObj
.
choiceDate
[
0
]?
e
.
conditionObj
.
choiceDate
[
0
]:
""
,
endDate
:
e
.
conditionObj
&&
e
.
conditionObj
.
choiceDate
[
1
]?
e
.
conditionObj
.
choiceDate
[
1
]:
""
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
i
.
a
)(
"/haoban-app-sign-web/sign/sign-list"
,
n
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
1
==
a
.
errorCode
)
return
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
week
=
o
[
new
Date
(
e
.
signDay
).
getDay
()]}),
e
.
tableData
=
a
.
result
.
list
||
[],
e
.
totalCount
=
a
.
result
.
pageInfo
.
total
,
!
1
;
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
choiceDate
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
searchPeople
:
Object
(
s
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
exportData
:
function
(){
if
(
!
this
.
conditionObj
.
choiceDate
||!
this
.
conditionObj
.
choiceDate
[
0
]
||!
this
.
conditionObj
.
choiceDate
[
1
])
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择日期区间"
}),
!
1
;
this
.
postExportData
()},
postExportData
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)});
var
o
=
{
haobanEnterpriseId
:
localStorage
.
getItem
(
"userInfo"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
:
""
,
search
:
e
.
conditionObj
.
keyword
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
signType
:
e
.
conditionObj
.
signStatus
||
""
,
startDate
:
e
.
conditionObj
.
choiceDate
[
0
]?
e
.
conditionObj
.
choiceDate
[
0
]:
""
,
endDate
:
e
.
conditionObj
.
choiceDate
[
1
]?
e
.
conditionObj
.
choiceDate
[
1
]:
""
,
haobanBrandId
:
e
.
activeBrand
};
Object
(
i
.
b
)(
"/haoban-app-sign-web/sign/export-sign-list"
,
o
).
then
(
function
(
e
){
if
(
!
e
.
data
)
return
r
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
t
=
new
Blob
([
e
.
data
],{
type
:
"application/vnd.ms-excel"
}),
a
=
o
.
startDate
.
replace
(
/-/g
,
""
)
+
"-"
+
o
.
endDate
.
replace
(
/-/g
,
""
)
+
"签到报表.xlsx"
,
n
=
document
.
createElement
(
"a"
);
n
.
download
=
a
,
n
.
style
.
display
=
"none"
,
n
.
href
=
URL
.
createObjectURL
(
t
),
document
.
body
.
appendChild
(
n
),
n
.
click
(),
URL
.
revokeObjectURL
(
n
.
href
),
document
.
body
.
removeChild
(
n
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
components
:{
vueSelectStore
:
n
.
a
,
commonDetailTop
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"notice-list-wrap"
},[
a
(
"div"
,{
staticClass
:
"notice-list"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-list-table"
},[
a
(
"div"
,{
staticClass
:
"search-wrap"
},[
a
(
"el-input"
,{
staticClass
:
"search-input"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入姓名/员工代码"
,
"prefix-icon"
:
"el-icon-search"
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchPeople
(
a
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
keyword
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"keyword"
,
t
)},
expression
:
"conditionObj.keyword"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block m-l-10"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
conditionObj
.
storeGroup
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc"
},[
e
.
_v
(
"请选择门店分组"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
e
.
_l
(
e
.
conditionObj
.
storeGroup
,
function
(
t
,
o
){
return
[
a
(
"span"
,{
key
:
o
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
o
,
e
.
conditionObj
.
storeGroup
)}}})])]})],
2
)])])])]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-112 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
signStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"signStatus"
,
t
)},
expression
:
"conditionObj.signStatus"
}},
e
.
_l
(
e
.
signStatusOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"search-date"
,
attrs
:{
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
editable
:
!
1
,
"picker-options"
:
e
.
pickerOptions
,
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
choiceDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"choiceDate"
,
t
)},
expression
:
"conditionObj.choiceDate"
}}),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"fr"
,
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
exportData
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeName"
,
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"员工代码"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkCode
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
signType
?
"签退"
:
"签到"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
t
.
row
.
signDay
?
a
(
"div"
,{
staticClass
:
"time-wrap"
},[
a
(
"p"
,{
class
:[
"星期六"
==
t
.
row
.
week
||
"星期天"
==
t
.
row
.
week
?
"color-f56c6c"
:
""
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
signDay
))
+
" "
+
e
.
_s
(
t
.
row
.
week
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
signTime
)))])]):
a
(
"div"
,[
e
.
_v
(
"--"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"打卡坐标"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
signLongitude
||
"-"
)
+
" "
),
t
.
row
.
signLatitude
?
a
(
"span"
,[
e
.
_v
(
","
)]):
e
.
_e
(),
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
signLatitude
||
"-"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店坐标"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
storeLongitude
||
"-"
)
+
" "
),
t
.
row
.
storeLatitude
?
a
(
"span"
,[
e
.
_v
(
","
)]):
e
.
_e
(),
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
storeLatitude
||
"-"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"距离"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
distance
||
"--"
)
+
"
\
n "
)]}}])})],
1
),
e
.
_v
(
" "
),
e
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
totalCount
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
l
,
!
1
,
function
(
e
){
a
(
"SxT2"
)},
"data-v-68394700"
,
null
);
t
.
default
=
u
.
exports
}});
webpackJsonp
([
69
],{
SxT2
:
function
(
e
,
t
){},
kCy7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"Ke24"
),
n
=
a
(
"Ie7z"
),
i
=
a
(
"P9l9"
),
s
=
a
(
"PI0u"
),
r
=
a
(
"Ch4/"
),
c
=
{
name
:
"noticeList"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
var
e
=
this
;
return
{
topMenuData
:[{
id
:
"1"
,
name
:
"签到记录"
}],
activeId
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
conditionObj
:{
keyword
:
""
,
storeGroup
:[],
signStatus
:
""
,
choiceDate
:[]},
signStatusOptions
:[{
value
:
""
,
label
:
"所有状态"
},{
value
:
"0"
,
label
:
"签到"
},{
value
:
"1"
,
label
:
"签退"
}],
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
o
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
o
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
2592
e6
,
o
=
e
.
choiceDateCopy
[
0
]
+
2592
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
o
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
tableData
:[],
pageSize
:
20
,
currentPage
:
1
,
totalCount
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
o
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
+
"-"
+
o
},
formatTimeHMS
:
function
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
activeBrand
=
this
.
brandId
;
var
t
=
new
Date
,
a
=
t
.
getTime
()
-
2592
e6
,
o
=
t
.
getFullYear
(),
n
=
t
.
getMonth
()
+
1
,
i
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
s
=
n
<
10
?
"0"
+
n
:
n
,
r
=
new
Date
(
a
),
c
=
r
.
getFullYear
(),
l
=
r
.
getMonth
()
+
1
,
u
=
r
.
getDate
()
<
10
?
"0"
+
r
.
getDate
():
r
.
getDate
(),
d
=
l
<
10
?
"0"
+
l
:
l
;
e
.
conditionObj
.
choiceDate
=
[
c
+
"-"
+
d
+
"-"
+
u
,
o
+
"-"
+
s
+
"-"
+
i
],
e
.
brandId
&&
e
.
$nextTick
(
function
(
t
){
e
.
getTableList
()})},
methods
:{
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
getTableList
:
function
(){
var
e
=
this
;
e
.
loading
=!
0
;
var
t
=
[],
a
=
[],
o
=
[
"星期天"
,
"星期一"
,
"星期二"
,
"星期三"
,
"星期四"
,
"星期五"
,
"星期六"
];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
choiceDate
||
(
e
.
conditionObj
.
choiceDate
=
[]);
var
n
=
{
haobanEnterpriseId
:
localStorage
.
getItem
(
"userInfo"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
:
""
,
search
:
e
.
conditionObj
.
keyword
||
""
,
haobanBrandId
:
e
.
activeBrand
,
storeIds
:
a
.
join
(
","
)
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
signType
:
e
.
conditionObj
.
signStatus
||
""
,
startDate
:
e
.
conditionObj
&&
e
.
conditionObj
.
choiceDate
[
0
]?
e
.
conditionObj
.
choiceDate
[
0
]:
""
,
endDate
:
e
.
conditionObj
&&
e
.
conditionObj
.
choiceDate
[
1
]?
e
.
conditionObj
.
choiceDate
[
1
]:
""
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
i
.
a
)(
"/haoban-app-sign-web/sign/sign-list"
,
n
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
1
==
a
.
errorCode
)
return
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
week
=
o
[
new
Date
(
e
.
signDay
).
getDay
()]}),
e
.
tableData
=
a
.
result
.
list
||
[],
e
.
totalCount
=
a
.
result
.
pageInfo
.
total
,
!
1
;
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
choiceDate
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
searchPeople
:
Object
(
s
.
a
)(
function
(
e
){
this
.
currentPage
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
exportData
:
function
(){
if
(
!
this
.
conditionObj
.
choiceDate
||!
this
.
conditionObj
.
choiceDate
[
0
]
||!
this
.
conditionObj
.
choiceDate
[
1
])
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择日期区间"
}),
!
1
;
this
.
postExportData
()},
postExportData
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)});
var
o
=
{
haobanEnterpriseId
:
localStorage
.
getItem
(
"userInfo"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
:
""
,
search
:
e
.
conditionObj
.
keyword
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
signType
:
e
.
conditionObj
.
signStatus
||
""
,
startDate
:
e
.
conditionObj
.
choiceDate
[
0
]?
e
.
conditionObj
.
choiceDate
[
0
]:
""
,
endDate
:
e
.
conditionObj
.
choiceDate
[
1
]?
e
.
conditionObj
.
choiceDate
[
1
]:
""
,
haobanBrandId
:
e
.
activeBrand
};
Object
(
i
.
b
)(
"/haoban-app-sign-web/sign/export-sign-list"
,
o
).
then
(
function
(
e
){
if
(
!
e
.
data
)
return
r
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
t
=
new
Blob
([
e
.
data
],{
type
:
"application/vnd.ms-excel"
}),
a
=
o
.
startDate
.
replace
(
/-/g
,
""
)
+
"-"
+
o
.
endDate
.
replace
(
/-/g
,
""
)
+
"签到报表.xlsx"
,
n
=
document
.
createElement
(
"a"
);
n
.
download
=
a
,
n
.
style
.
display
=
"none"
,
n
.
href
=
URL
.
createObjectURL
(
t
),
document
.
body
.
appendChild
(
n
),
n
.
click
(),
URL
.
revokeObjectURL
(
n
.
href
),
document
.
body
.
removeChild
(
n
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
components
:{
vueSelectStore
:
n
.
a
,
commonDetailTop
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"notice-list-wrap"
},[
a
(
"div"
,{
staticClass
:
"notice-list"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-list-table"
},[
a
(
"div"
,{
staticClass
:
"search-wrap"
},[
a
(
"el-input"
,{
staticClass
:
"search-input"
,
attrs
:{
clearable
:
""
,
placeholder
:
"请输入姓名/员工代码"
,
"prefix-icon"
:
"el-icon-search"
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchPeople
(
a
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
keyword
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"keyword"
,
t
)},
expression
:
"conditionObj.keyword"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block m-l-10"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
conditionObj
.
storeGroup
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc"
},[
e
.
_v
(
"请选择门店分组"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
e
.
_l
(
e
.
conditionObj
.
storeGroup
,
function
(
t
,
o
){
return
[
a
(
"span"
,{
key
:
o
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
o
,
e
.
conditionObj
.
storeGroup
)}}})])]})],
2
)])])])]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-112 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
signStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"signStatus"
,
t
)},
expression
:
"conditionObj.signStatus"
}},
e
.
_l
(
e
.
signStatusOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"search-date"
,
attrs
:{
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
editable
:
!
1
,
"picker-options"
:
e
.
pickerOptions
,
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
choiceDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"choiceDate"
,
t
)},
expression
:
"conditionObj.choiceDate"
}}),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"fr"
,
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
exportData
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
e
.
_v
(
"导出"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeName"
,
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"员工代码"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkCode
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
signType
?
"签退"
:
"签到"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
t
.
row
.
signDay
?
a
(
"div"
,{
staticClass
:
"time-wrap"
},[
a
(
"p"
,{
class
:[
"星期六"
==
t
.
row
.
week
||
"星期天"
==
t
.
row
.
week
?
"color-f56c6c"
:
""
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
signDay
))
+
" "
+
e
.
_s
(
t
.
row
.
week
))]),
e
.
_v
(
" "
),
a
(
"p"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
signTime
)))])]):
a
(
"div"
,[
e
.
_v
(
"--"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"打卡坐标"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
signLongitude
||
"-"
)
+
" "
),
t
.
row
.
signLatitude
?
a
(
"span"
,[
e
.
_v
(
","
)]):
e
.
_e
(),
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
signLatitude
||
"-"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店坐标"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
storeLongitude
||
"-"
)
+
" "
),
t
.
row
.
storeLatitude
?
a
(
"span"
,[
e
.
_v
(
","
)]):
e
.
_e
(),
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
storeLatitude
||
"-"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"距离"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
distance
||
"--"
)
+
"
\
n "
)]}}])})],
1
),
e
.
_v
(
" "
),
e
.
totalCount
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
totalCount
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
l
,
!
1
,
function
(
e
){
a
(
"SxT2"
)},
"data-v-68394700"
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
1.a126863a54dd53b34f9e
.js
→
dist/static/js/7
0.86604494d6befb3b7fe1
.js
View file @
c46c6395
webpackJsonp
([
71
],{
"5nNU"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"fZjL"
),
n
=
a
.
n
(
o
),
l
=
a
(
"2eFk"
),
i
=
a
(
"Ke24"
),
s
=
a
(
"LRn8"
),
r
=
a
(
"fPyK"
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"3E4D"
),
f
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
0
]:
"--"
},
formatTimeHMS
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
1
]:
"--"
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeId
:
"2"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"云日报记录"
,
path
:
"/dailyRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"日报详情"
,
path
:
""
}],
selectRadio
:
0
,
showDialog
:
!
1
,
conditionObj
:{
completed
:
""
,
overdue
:
""
},
completedOptions
:[{
label
:
"已完成"
,
value
:
"1"
},{
label
:
"未完成"
,
value
:
"0"
}],
overOptions
:[{
label
:
"已逾期"
,
value
:
"1"
},{
label
:
"未逾期"
,
value
:
"0"
}],
tableData
:[],
multipleSelection
:[],
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
selectBrandId
:
function
(
e
){
this
.
activeBrand
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
n
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
,
taskIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
taskId
})
||
""
,
overdue
:
t
.
conditionObj
.
overdue
||
""
,
completed
:
t
.
conditionObj
.
completed
||
""
,
reason
:
e
.
reason
,
brandId
:
t
.
activeBrand
,
chooseAll
:
t
.
selectRadio
};
Object
(
c
.
e
)(
"/haoban-app-daily-web/daily/batch-delete-store-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
taskId
:
t
.
taskId
};
Object
(
c
.
a
)(
"/haoban-app-daily-web/daily/delete-task-items"
,
o
).
then
(
function
(
t
){
var
o
=
t
.
data
;
if
(
1
==
o
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
e
,
1
);
d
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handlePreview
:
function
(
e
,
t
){
this
.
postPreview
(
e
,
t
)},
postPreview
:
function
(
e
,
t
){
var
a
=
""
+
t
.
taskId
;
this
.
$refs
.
qrcodePreview
.
qrcode
(
a
,
"daily-detail"
),
this
.
dialogVisible
=!
0
},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
||
""
,
overdue
:
t
.
conditionObj
.
overdue
||
""
,
completed
:
t
.
conditionObj
.
completed
||
""
,
currentPage
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
c
.
a
)(
"/haoban-app-daily-web/daily/page-store-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
result
||
[],
void
(
t
.
total
=
a
.
result
.
totalCount
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
conditionObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
brandId
&&
this
.
getTableList
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
l
.
a
,
commonDetailTop
:
i
.
a
,
multipleDel
:
s
.
a
,
qrcodeDialog
:
r
.
a
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-select"
,{
staticClass
:
"w-105"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
completed
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"completed"
,
t
)},
expression
:
"conditionObj.completed"
}},
e
.
_l
(
e
.
completedOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
overdue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"overdue"
,
t
)},
expression
:
"conditionObj.overdue"
}},
e
.
_l
(
e
.
overOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"指派对象"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex flex-pack-center flex-start"
},[
a
(
"div"
,{
class
:[
"image-wrap flex flex-align-center flex-pack-center"
,
t
.
row
.
headImgUrl
?
"bg-eceaeb"
:
"bg-82c5ff"
]},[
t
.
row
.
headImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headImgUrl
,
alt
:
""
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-info flex flex-column flex-space-between m-l-16"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"创建时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成期限"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
lastTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
lastTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"逾期情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isOverTime
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isCompleted
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
finishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
finishTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handlePreview
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"预览"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
0
},
on
:{
hideDialog
:
e
.
hideDialog
}}),
e
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
e
.
dialogVisible
,
callback
:
function
(
t
){
e
.
dialogVisible
=
t
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
e
){
a
(
"KPe4"
)},
"data-v-656927f2"
,
null
);
t
.
default
=
p
.
exports
},
KPe4
:
function
(
e
,
t
){}});
webpackJsonp
([
70
],{
"5nNU"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"fZjL"
),
n
=
a
.
n
(
o
),
l
=
a
(
"2eFk"
),
i
=
a
(
"Ke24"
),
s
=
a
(
"LRn8"
),
r
=
a
(
"fPyK"
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"3E4D"
),
f
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
0
]:
"--"
},
formatTimeHMS
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
1
]:
"--"
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeId
:
"2"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"云日报记录"
,
path
:
"/dailyRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"日报详情"
,
path
:
""
}],
selectRadio
:
0
,
showDialog
:
!
1
,
conditionObj
:{
completed
:
""
,
overdue
:
""
},
completedOptions
:[{
label
:
"已完成"
,
value
:
"1"
},{
label
:
"未完成"
,
value
:
"0"
}],
overOptions
:[{
label
:
"已逾期"
,
value
:
"1"
},{
label
:
"未逾期"
,
value
:
"0"
}],
tableData
:[],
multipleSelection
:[],
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
selectBrandId
:
function
(
e
){
this
.
activeBrand
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
n
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
,
taskIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
taskId
})
||
""
,
overdue
:
t
.
conditionObj
.
overdue
||
""
,
completed
:
t
.
conditionObj
.
completed
||
""
,
reason
:
e
.
reason
,
brandId
:
t
.
activeBrand
,
chooseAll
:
t
.
selectRadio
};
Object
(
c
.
e
)(
"/haoban-app-daily-web/daily/batch-delete-store-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
taskId
:
t
.
taskId
};
Object
(
c
.
a
)(
"/haoban-app-daily-web/daily/delete-task-items"
,
o
).
then
(
function
(
t
){
var
o
=
t
.
data
;
if
(
1
==
o
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
e
,
1
);
d
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handlePreview
:
function
(
e
,
t
){
this
.
postPreview
(
e
,
t
)},
postPreview
:
function
(
e
,
t
){
var
a
=
""
+
t
.
taskId
;
this
.
$refs
.
qrcodePreview
.
qrcode
(
a
,
"daily-detail"
),
this
.
dialogVisible
=!
0
},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
||
""
,
overdue
:
t
.
conditionObj
.
overdue
||
""
,
completed
:
t
.
conditionObj
.
completed
||
""
,
currentPage
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
c
.
a
)(
"/haoban-app-daily-web/daily/page-store-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
result
||
[],
void
(
t
.
total
=
a
.
result
.
totalCount
);
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
conditionObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
brandId
&&
this
.
getTableList
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
l
.
a
,
commonDetailTop
:
i
.
a
,
multipleDel
:
s
.
a
,
qrcodeDialog
:
r
.
a
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-select"
,{
staticClass
:
"w-105"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
completed
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"completed"
,
t
)},
expression
:
"conditionObj.completed"
}},
e
.
_l
(
e
.
completedOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
overdue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"overdue"
,
t
)},
expression
:
"conditionObj.overdue"
}},
e
.
_l
(
e
.
overOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"指派对象"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex flex-pack-center flex-start"
},[
a
(
"div"
,{
class
:[
"image-wrap flex flex-align-center flex-pack-center"
,
t
.
row
.
headImgUrl
?
"bg-eceaeb"
:
"bg-82c5ff"
]},[
t
.
row
.
headImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headImgUrl
,
alt
:
""
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-info flex flex-column flex-space-between m-l-16"
},[
a
(
"p"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"创建时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成期限"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
lastTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
lastTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"逾期情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isOverTime
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isCompleted
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
finishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
finishTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handlePreview
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"预览"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
0
},
on
:{
hideDialog
:
e
.
hideDialog
}}),
e
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
e
.
dialogVisible
,
callback
:
function
(
t
){
e
.
dialogVisible
=
t
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
f
,
m
,
!
1
,
function
(
e
){
a
(
"KPe4"
)},
"data-v-656927f2"
,
null
);
t
.
default
=
p
.
exports
},
KPe4
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
2.98189992ad9c810067b6
.js
→
dist/static/js/7
1.c31161658f3f378b6d48
.js
View file @
c46c6395
webpackJsonp
([
72
],{
"41Rh"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
{
name
:
"contact"
,
components
:{
topNav
:
a
(
"3Xzz"
).
a
},
data
:
function
(){
return
{
rightH
:(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
64
+
"px"
,
projectName
:
"haoban-manage-web"
,
collapseFlag
:
!
1
,
navpath
:[{
name
:
"首页"
,
path
:
"/"
},{
name
:
"通讯录"
,
path
:
""
},{
name
:
"企业通讯录"
},{
name
:
"行政架构"
}]}},
methods
:{
toRouterView
:
function
(
t
){
this
.
$router
.
push
({
path
:
t
.
path
})},
collapseTag
:
function
(
t
){
this
.
collapseFlag
=
t
}},
watch
:{
$route
:{
handler
:
function
(
t
,
e
){
this
.
$refs
.
asideMenu
.
refreshRoute
()},
deep
:
!
0
}},
mounted
:
function
(){},
computed
:{}},
n
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"contact-wrap"
},[
a
(
"vue-office-header"
,{
attrs
:{
projectName
:
t
.
projectName
},
on
:{
collapseTag
:
t
.
collapseTag
,
toRouterView
:
t
.
toRouterView
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"contact-wrap__body"
,
style
:{
height
:
t
.
rightH
}},[
a
(
"vue-office-aside"
,{
ref
:
"asideMenu"
,
attrs
:{
projectName
:
t
.
projectName
,
collapseFlag
:
t
.
collapseFlag
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"contact-wrap__right"
,
style
:{
height
:
t
.
rightH
}},[
a
(
"div"
,{
staticClass
:
"contact-wrap__right__body"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
)],
1
)],
1
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
o
,
n
,
!
1
,
function
(
t
){
a
(
"P4oC"
)},
null
,
null
);
e
.
default
=
c
.
exports
},
P4oC
:
function
(
t
,
e
){}});
webpackJsonp
([
71
],{
"41Rh"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
{
name
:
"contact"
,
components
:{
topNav
:
a
(
"3Xzz"
).
a
},
data
:
function
(){
return
{
rightH
:(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
64
+
"px"
,
projectName
:
"haoban-manage-web"
,
collapseFlag
:
!
1
,
navpath
:[{
name
:
"首页"
,
path
:
"/"
},{
name
:
"通讯录"
,
path
:
""
},{
name
:
"企业通讯录"
},{
name
:
"行政架构"
}]}},
methods
:{
toRouterView
:
function
(
t
){
this
.
$router
.
push
({
path
:
t
.
path
})},
collapseTag
:
function
(
t
){
this
.
collapseFlag
=
t
}},
watch
:{
$route
:{
handler
:
function
(
t
,
e
){
this
.
$refs
.
asideMenu
.
refreshRoute
()},
deep
:
!
0
}},
mounted
:
function
(){},
computed
:{}},
n
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"contact-wrap"
},[
a
(
"vue-office-header"
,{
attrs
:{
projectName
:
t
.
projectName
},
on
:{
collapseTag
:
t
.
collapseTag
,
toRouterView
:
t
.
toRouterView
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"contact-wrap__body"
,
style
:{
height
:
t
.
rightH
}},[
a
(
"vue-office-aside"
,{
ref
:
"asideMenu"
,
attrs
:{
projectName
:
t
.
projectName
,
collapseFlag
:
t
.
collapseFlag
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"contact-wrap__right"
,
style
:{
height
:
t
.
rightH
}},[
a
(
"div"
,{
staticClass
:
"contact-wrap__right__body"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
)],
1
)],
1
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
o
,
n
,
!
1
,
function
(
t
){
a
(
"P4oC"
)},
null
,
null
);
e
.
default
=
c
.
exports
},
P4oC
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
3.342e27abafffffa6e51e
.js
→
dist/static/js/7
2.5d421834f52ef801a2b6
.js
View file @
c46c6395
webpackJsonp
([
73
],{
"7S4r"
:
function
(
e
,
t
){},
mPjx
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"l46T"
),
n
=
a
(
"3Xzz"
),
s
=
a
(
"Ie7z"
),
i
=
a
(
"P9l9"
),
o
=
{
name
:
"store-view-group-info"
,
components
:{
navCrumb
:
n
.
a
,
limitInput
:
r
.
a
,
vueSelectStore
:
s
.
a
},
data
:
function
(){
return
{
departInfo
:{
name
:
""
,
parentName
:
""
,
parentId
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入部门名称"
,
trigger
:
"blur"
},{
min
:
1
,
max
:
20
,
message
:
"长度在 1 到 20 个字符"
,
trigger
:
"blur"
}],
parentId
:[{
required
:
!
0
,
message
:
"请选择父级部门"
,
trigger
:
"change"
}]},
disabled
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
},
currentBrand
:
this
.
$route
.
query
.
groupId
,
defaultList
:[]}},
methods
:{
delGroup
:
function
(){
var
e
=
this
;
e
.
$confirm
(
" 是否确认删除分组 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
a
)(
"/haoban-manage-web/dept/del"
,{
groupId
:
e
.
$route
.
query
.
groupId
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
window
.
history
.
go
(
-
1
)):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}).
catch
(
function
(
e
){})},
handleSelectedList
:
function
(
e
){
var
t
=
e
[
0
];
this
.
departInfo
.
parentId
=
t
?
t
.
id
:
""
,
this
.
departInfo
.
parentName
=
t
?
t
.
chainName
:
""
},
callGroupSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
saveEdit
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
""
;
this
.
$refs
.
departForm
.
validate
(
function
(
a
){
if
(
!
a
)
return
!
1
;
var
r
=
e
,
n
=
{
parentId
:
r
.
departInfo
.
parentId
,
name
:
r
.
departInfo
.
name
},
s
=
""
;
r
.
isAddNew
?
s
=
"/haoban-manage-web/dept/insert"
:(
s
=
"/haoban-manage-web/dept/update"
,
n
.
groupId
=
r
.
$route
.
query
.
groupId
,
n
.
isStoreGroup
=
1
),
Object
(
i
.
a
)(
s
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功!"
}),
"continue"
==
t
?(
r
.
departInfo
=
{
name
:
""
,
parentName
:
""
,
parentId
:
" "
},
r
.
defaultList
=
[]):
window
.
history
.
go
(
-
1
)):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
cancel
:
function
(){
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
window
.
history
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getGroupInfo
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
$route
.
query
.
groupId
};
Object
(
i
.
a
)(
"/haoban-manage-web/dept/findDeptById"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
departInfo
=
{
name
:
t
.
data
.
result
.
name
,
parentName
:
t
.
data
.
result
.
chainName
,
parentId
:
t
.
data
.
result
.
parentId
},
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
parentId
,
label
:
t
.
data
.
result
.
parentGroupName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}},
computed
:{
isAddNew
:
function
(){
return
!
(
1
!=
this
.
$route
.
query
.
addnew
)},
forbidenList
:
function
(){
return
this
.
isAddNew
?[]:[
this
.
$route
.
query
.
groupId
]},
navpath
:
function
(){
return
[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"group"
==
this
.
$route
.
query
.
type
?
"编辑分组"
:
this
.
isAddNew
?
"添加子分组"
:
"品牌编辑"
,
path
:
""
}]}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
isAddNew
||
this
.
getGroupInfo
()},
mounted
:
function
(){
this
.
disabled
=!
1
},
watch
:{
treeData
:
function
(){
this
.
disabled
=!
1
}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"add-department-container"
},[
a
(
"div"
,{
staticClass
:
"setting-cell"
},[
a
(
"el-form"
,{
ref
:
"departForm"
,
staticClass
:
"department-info-form"
,
attrs
:{
"label-position"
:
"right"
,
rules
:
e
.
rules
,
model
:
e
.
departInfo
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"brand"
==
e
.
$route
.
query
.
type
?
"品牌名称"
:
"部门名称"
,
prop
:
"name"
}},[
"brand"
==
e
.
$route
.
query
.
type
?
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
departInfo
.
name
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"name"
,
t
)}}}):
e
.
_e
(),
e
.
_v
(
" "
),
"brand"
!=
e
.
$route
.
query
.
type
?
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
departInfo
.
name
,
holder
:
"请输入部门名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"name"
,
t
)}}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
"group"
==
e
.
$route
.
query
.
type
||
e
.
isAddNew
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"部门排序调整"
,
prop
:
"parentId"
}},[
a
(
"el-input"
,{
attrs
:{
disabled
:
e
.
disabled
,
readonly
:
""
,
"suffix-icon"
:
"el-icon-arrow-down"
},
on
:{
focus
:
e
.
callGroupSelector
},
model
:{
value
:
e
.
departInfo
.
parentName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"parentName"
,
t
)},
expression
:
"departInfo.parentName"
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"setting-cell"
},[
a
(
"div"
,{
staticClass
:
"btn-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveEdit
}},[
e
.
_v
(
"保存"
)]),
e
.
_v
(
" "
),
e
.
isAddNew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveEdit
(
"continue"
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
delGroup
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
currentBrand
:
e
.
currentBrand
,
selectType
:
"group"
,
forbidenList
:
e
.
forbidenList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])])],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
o
,
d
,
!
1
,
function
(
e
){
a
(
"7S4r"
)},
null
,
null
);
t
.
default
=
u
.
exports
}});
webpackJsonp
([
72
],{
"7S4r"
:
function
(
e
,
t
){},
mPjx
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"l46T"
),
n
=
a
(
"3Xzz"
),
s
=
a
(
"Ie7z"
),
i
=
a
(
"P9l9"
),
o
=
{
name
:
"store-view-group-info"
,
components
:{
navCrumb
:
n
.
a
,
limitInput
:
r
.
a
,
vueSelectStore
:
s
.
a
},
data
:
function
(){
return
{
departInfo
:{
name
:
""
,
parentName
:
""
,
parentId
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入部门名称"
,
trigger
:
"blur"
},{
min
:
1
,
max
:
20
,
message
:
"长度在 1 到 20 个字符"
,
trigger
:
"blur"
}],
parentId
:[{
required
:
!
0
,
message
:
"请选择父级部门"
,
trigger
:
"change"
}]},
disabled
:
!
0
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
groupId
:
""
},
currentBrand
:
this
.
$route
.
query
.
groupId
,
defaultList
:[]}},
methods
:{
delGroup
:
function
(){
var
e
=
this
;
e
.
$confirm
(
" 是否确认删除分组 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
a
)(
"/haoban-manage-web/dept/del"
,{
groupId
:
e
.
$route
.
query
.
groupId
}).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
$message
.
success
({
message
:
t
.
data
.
message
}),
window
.
history
.
go
(
-
1
)):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}).
catch
(
function
(
e
){})},
handleSelectedList
:
function
(
e
){
var
t
=
e
[
0
];
this
.
departInfo
.
parentId
=
t
?
t
.
id
:
""
,
this
.
departInfo
.
parentName
=
t
?
t
.
chainName
:
""
},
callGroupSelector
:
function
(){
this
.
treeSet
.
dialogVisible
=!
0
},
saveEdit
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
""
;
this
.
$refs
.
departForm
.
validate
(
function
(
a
){
if
(
!
a
)
return
!
1
;
var
r
=
e
,
n
=
{
parentId
:
r
.
departInfo
.
parentId
,
name
:
r
.
departInfo
.
name
},
s
=
""
;
r
.
isAddNew
?
s
=
"/haoban-manage-web/dept/insert"
:(
s
=
"/haoban-manage-web/dept/update"
,
n
.
groupId
=
r
.
$route
.
query
.
groupId
,
n
.
isStoreGroup
=
1
),
Object
(
i
.
a
)(
s
,
n
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
r
.
$message
.
success
({
duration
:
1
e3
,
message
:
"操作成功!"
}),
"continue"
==
t
?(
r
.
departInfo
=
{
name
:
""
,
parentName
:
""
,
parentId
:
" "
},
r
.
defaultList
=
[]):
window
.
history
.
go
(
-
1
)):
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})},
cancel
:
function
(){
this
.
$confirm
(
" 是否确认取消,取消后当前页面信息将丢失 ?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
window
.
history
.
go
(
-
1
)}).
catch
(
function
(
e
){})},
getGroupInfo
:
function
(){
var
e
=
this
,
t
=
{
groupId
:
e
.
$route
.
query
.
groupId
};
Object
(
i
.
a
)(
"/haoban-manage-web/dept/findDeptById"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
departInfo
=
{
name
:
t
.
data
.
result
.
name
,
parentName
:
t
.
data
.
result
.
chainName
,
parentId
:
t
.
data
.
result
.
parentId
},
e
.
defaultList
=
[{
id
:
t
.
data
.
result
.
parentId
,
label
:
t
.
data
.
result
.
parentGroupName
}]):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})}},
computed
:{
isAddNew
:
function
(){
return
!
(
1
!=
this
.
$route
.
query
.
addnew
)},
forbidenList
:
function
(){
return
this
.
isAddNew
?[]:[
this
.
$route
.
query
.
groupId
]},
navpath
:
function
(){
return
[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame"
},{
name
:
"group"
==
this
.
$route
.
query
.
type
?
"编辑分组"
:
this
.
isAddNew
?
"添加子分组"
:
"品牌编辑"
,
path
:
""
}]}},
beforeMount
:
function
(){
this
.
treeSet
.
groupId
=
this
.
$route
.
query
.
firstLevelId
,
this
.
isAddNew
||
this
.
getGroupInfo
()},
mounted
:
function
(){
this
.
disabled
=!
1
},
watch
:{
treeData
:
function
(){
this
.
disabled
=!
1
}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"add-department-container"
},[
a
(
"div"
,{
staticClass
:
"setting-cell"
},[
a
(
"el-form"
,{
ref
:
"departForm"
,
staticClass
:
"department-info-form"
,
attrs
:{
"label-position"
:
"right"
,
rules
:
e
.
rules
,
model
:
e
.
departInfo
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"brand"
==
e
.
$route
.
query
.
type
?
"品牌名称"
:
"部门名称"
,
prop
:
"name"
}},[
"brand"
==
e
.
$route
.
query
.
type
?
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
departInfo
.
name
,
holder
:
"请输入品牌名称"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"name"
,
t
)}}}):
e
.
_e
(),
e
.
_v
(
" "
),
"brand"
!=
e
.
$route
.
query
.
type
?
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
380
,
inputValue
:
e
.
departInfo
.
name
,
holder
:
"请输入部门名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"name"
,
t
)}}}):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
"group"
==
e
.
$route
.
query
.
type
||
e
.
isAddNew
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"部门排序调整"
,
prop
:
"parentId"
}},[
a
(
"el-input"
,{
attrs
:{
disabled
:
e
.
disabled
,
readonly
:
""
,
"suffix-icon"
:
"el-icon-arrow-down"
},
on
:{
focus
:
e
.
callGroupSelector
},
model
:{
value
:
e
.
departInfo
.
parentName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
departInfo
,
"parentName"
,
t
)},
expression
:
"departInfo.parentName"
}})],
1
):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"setting-cell"
},[
a
(
"div"
,{
staticClass
:
"btn-area"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveEdit
}},[
e
.
_v
(
"保存"
)]),
e
.
_v
(
" "
),
e
.
isAddNew
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
saveEdit
(
"continue"
)}}},[
e
.
_v
(
"保存并继续添加"
)]):
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
delGroup
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
defaultList
:
e
.
defaultList
,
treeSet
:
e
.
treeSet
,
currentBrand
:
e
.
currentBrand
,
selectType
:
"group"
,
forbidenList
:
e
.
forbidenList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])])],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
o
,
d
,
!
1
,
function
(
e
){
a
(
"7S4r"
)},
null
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
4.8217c8f19cc950e71bcc
.js
→
dist/static/js/7
3.965c68191fa7d46bd0fa
.js
View file @
c46c6395
webpackJsonp
([
74
],{
Nt2k
:
function
(
t
,
e
){},
XzAK
:
function
(
t
,
e
,
s
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"2eFk"
),
i
=
s
(
"Ke24"
),
o
=
s
(
"PI0u"
),
n
=
s
(
"Ch4/"
),
r
=
s
(
"3E4D"
),
l
=
s
(
"P9l9"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"不良评价回访设置"
}],
activeId
:
"1"
,
setObj
:{
taskType
:
0
,
overDayJudge
:
""
,
distributeTypeJudge
:
""
,
distributeCustomerJudge
:
1
,
giveUpJudge
:
""
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
o
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
0
,
overDayJudge
:
t
.
setObj
.
overDayJudge
,
giveUpJudge
:
t
.
setObj
.
giveUpJudge
,
distributeTypeJudge
:
t
.
setObj
.
distributeTypeJudge
,
distributeCustomerJudge
:
t
.
setObj
.
distributeCustomerJudge
};
Object
(
l
.
e
)(
"/haoban-app-tel-task-web/setting/save-task-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
n
.
a
.
errorMsg
(
e
):
r
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
0
};
Object
(
l
.
e
)(
"/haoban-app-tel-task-web/setting/find-task-setting"
,
e
).
then
(
function
(
e
){
var
s
=
e
.
data
;
1
!=
s
.
errorCode
?
n
.
a
.
errorMsg
(
s
):
t
.
setObj
=
s
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"3"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
a
.
a
,
commonDetailTop
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
s
=
t
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
s
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
s
(
"div"
,{
staticClass
:
"task-set-cell"
},[
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"任务分配"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
distributeCustomerJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeCustomerJudge"
,
e
)},
expression
:
"setObj.distributeCustomerJudge"
}},[
t
.
_v
(
"分配给消费门店店长"
)]),
s
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长"
,
placement
:
"top-start"
}},[
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
}},[
s
(
"span"
,{
staticClass
:
"el-icon-info font-12 color-909399 p-l-3"
})])]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
staticClass
:
"p-l-10"
,
attrs
:{
label
:
2
},
model
:{
value
:
t
.
setObj
.
distributeCustomerJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeCustomerJudge"
,
e
)},
expression
:
"setObj.distributeCustomerJudge"
}},[
t
.
_v
(
"分配给专属导购"
)]),
s
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购"
,
placement
:
"top-start"
}},[
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
}},[
s
(
"span"
,{
staticClass
:
"el-icon-info font-12 color-909399 p-l-3"
})])])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"逾期设置"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"不良评价回访下发后"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
overDayJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"overDayJudge"
,
e
)},
expression
:
"setObj.overDayJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-15"
},[
t
.
_v
(
"注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成"
)])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"放弃任务条件"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"不良评价放弃前提"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
giveUpJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"giveUpJudge"
,
e
)},
expression
:
"setObj.giveUpJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"次"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"呼叫后无响应"
)])],
1
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
s
(
"Nt2k"
)},
"data-v-5890570c"
,
null
);
e
.
default
=
u
.
exports
}});
webpackJsonp
([
73
],{
Nt2k
:
function
(
t
,
e
){},
XzAK
:
function
(
t
,
e
,
s
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"2eFk"
),
i
=
s
(
"Ke24"
),
o
=
s
(
"PI0u"
),
n
=
s
(
"Ch4/"
),
r
=
s
(
"3E4D"
),
l
=
s
(
"P9l9"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"不良评价回访设置"
}],
activeId
:
"1"
,
setObj
:{
taskType
:
0
,
overDayJudge
:
""
,
distributeTypeJudge
:
""
,
distributeCustomerJudge
:
1
,
giveUpJudge
:
""
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
o
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
0
,
overDayJudge
:
t
.
setObj
.
overDayJudge
,
giveUpJudge
:
t
.
setObj
.
giveUpJudge
,
distributeTypeJudge
:
t
.
setObj
.
distributeTypeJudge
,
distributeCustomerJudge
:
t
.
setObj
.
distributeCustomerJudge
};
Object
(
l
.
e
)(
"/haoban-app-tel-task-web/setting/save-task-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
n
.
a
.
errorMsg
(
e
):
r
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
taskType
:
0
};
Object
(
l
.
e
)(
"/haoban-app-tel-task-web/setting/find-task-setting"
,
e
).
then
(
function
(
e
){
var
s
=
e
.
data
;
1
!=
s
.
errorCode
?
n
.
a
.
errorMsg
(
s
):
t
.
setObj
=
s
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"3"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
a
.
a
,
commonDetailTop
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
s
=
t
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
s
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
s
(
"div"
,{
staticClass
:
"task-set-cell"
},[
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"任务分配"
)]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
attrs
:{
label
:
1
},
model
:{
value
:
t
.
setObj
.
distributeCustomerJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeCustomerJudge"
,
e
)},
expression
:
"setObj.distributeCustomerJudge"
}},[
t
.
_v
(
"分配给消费门店店长"
)]),
s
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长"
,
placement
:
"top-start"
}},[
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
}},[
s
(
"span"
,{
staticClass
:
"el-icon-info font-12 color-909399 p-l-3"
})])]),
t
.
_v
(
" "
),
s
(
"el-radio"
,{
staticClass
:
"p-l-10"
,
attrs
:{
label
:
2
},
model
:{
value
:
t
.
setObj
.
distributeCustomerJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"distributeCustomerJudge"
,
e
)},
expression
:
"setObj.distributeCustomerJudge"
}},[
t
.
_v
(
"分配给专属导购"
)]),
s
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购"
,
placement
:
"top-start"
}},[
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
}},[
s
(
"span"
,{
staticClass
:
"el-icon-info font-12 color-909399 p-l-3"
})])])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"逾期设置"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"不良评价回访下发后"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
overDayJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"overDayJudge"
,
e
)},
expression
:
"setObj.overDayJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-909399 p-l-15"
},[
t
.
_v
(
"注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成"
)])],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"set-line-item"
},[
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-303211"
},[
t
.
_v
(
"放弃任务条件"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"set-line-item_title font-14 color-606266"
},[
t
.
_v
(
"不良评价放弃前提"
)]),
t
.
_v
(
" "
),
s
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
placeholder
:
"请输入内容"
,
step
:
1
,
"step-strictly"
:
!
0
,
min
:
0
,
max
:
99999999
},
model
:{
value
:
t
.
setObj
.
giveUpJudge
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setObj
,
"giveUpJudge"
,
e
)},
expression
:
"setObj.giveUpJudge"
}}),
s
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"次"
)]),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"呼叫后无响应"
)])],
1
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
s
(
"Nt2k"
)},
"data-v-5890570c"
,
null
);
e
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
5.e2071474899e555b8051
.js
→
dist/static/js/7
4.4f9487c75611c4f24957
.js
View file @
c46c6395
webpackJsonp
([
75
],{
"/rje"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"我的顾客"
,
appIcon
:
"icon-ribao"
,
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"会员基础设置"
,
icon
:
"icon-sousuoshezhi"
},{
tabId
:
"2"
,
tabName
:
"在线沟通设置"
,
icon
:
"icon-zaixiangoutong"
},{
tabId
:
"3"
,
tabName
:
"聊天记录"
,
icon
:
"icon-liaotianjilu"
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
c
.
a
.
errorMsg
(
a
):
a
.
result
?(
e
.
expiredFlag
=
a
.
result
,
e
.
forbidFlag
=
"forbid"
):
e
.
getExpired
()}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
,
this
.
getUpdated
()},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
this
.
changeRoute
(
"memeberBaseSet?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
this
.
changeRoute
(
"onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"3"
:
this
.
changeRoute
(
"chatRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"stNO"
)},
"data-v-53578641"
,
null
);
t
.
default
=
u
.
exports
},
stNO
:
function
(
e
,
t
){}});
webpackJsonp
([
74
],{
"/rje"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"我的顾客"
,
appIcon
:
"icon-ribao"
,
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"会员基础设置"
,
icon
:
"icon-sousuoshezhi"
},{
tabId
:
"2"
,
tabName
:
"在线沟通设置"
,
icon
:
"icon-zaixiangoutong"
},{
tabId
:
"3"
,
tabName
:
"聊天记录"
,
icon
:
"icon-liaotianjilu"
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
c
.
a
.
errorMsg
(
a
):
a
.
result
?(
e
.
expiredFlag
=
a
.
result
,
e
.
forbidFlag
=
"forbid"
):
e
.
getExpired
()}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
,
this
.
getUpdated
()},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
this
.
changeRoute
(
"memeberBaseSet?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
this
.
changeRoute
(
"onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"3"
:
this
.
changeRoute
(
"chatRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"stNO"
)},
"data-v-53578641"
,
null
);
t
.
default
=
u
.
exports
},
stNO
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
6.1a4d5717a57004080583
.js
→
dist/static/js/7
5.ae3378ba5883737ee93e
.js
View file @
c46c6395
webpackJsonp
([
76
],{
lpYn
:
function
(
t
,
e
){},
"s4D+"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
l
=
{
name
:
"input-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
a
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
class
:[
2
==
t
.
childItem
.
type
?
"h-66"
:
""
]},[
9
!=
t
.
childItem
.
type
?
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag"
,
style
:{
"padding-left"
:
9
==
t
.
childItem
.
type
?
"15px"
:
"0"
}},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))])]),
t
.
_v
(
" "
),
10
==
t
.
childItem
.
type
&&
t
.
childItem
.
openCapitalize
?
i
(
"div"
,{
staticClass
:
"show-capitalize font-12 color-909399 p-l-10 border-box"
},[
t
.
_v
(
"大写:壹万元整(示例)"
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
c
=
i
(
"VU/8"
)(
l
,
a
,
!
1
,
function
(
t
){
i
(
"lpYn"
)},
"data-v-51432d8f"
,
null
);
e
.
default
=
c
.
exports
}});
webpackJsonp
([
75
],{
lpYn
:
function
(
t
,
e
){},
"s4D+"
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
l
=
{
name
:
"input-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
i
=
0
;
i
<
t
.
length
;
i
++
){
null
!=
t
.
charAt
(
i
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
a
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
class
:[
2
==
t
.
childItem
.
type
?
"h-66"
:
""
]},[
9
!=
t
.
childItem
.
type
?
i
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]):
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"draged-item-show"
},[
i
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag"
,
style
:{
"padding-left"
:
9
==
t
.
childItem
.
type
?
"15px"
:
"0"
}},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
))])]),
t
.
_v
(
" "
),
10
==
t
.
childItem
.
type
&&
t
.
childItem
.
openCapitalize
?
i
(
"div"
,{
staticClass
:
"show-capitalize font-12 color-909399 p-l-10 border-box"
},[
t
.
_v
(
"大写:壹万元整(示例)"
)]):
t
.
_e
()])},
staticRenderFns
:[]};
var
c
=
i
(
"VU/8"
)(
l
,
a
,
!
1
,
function
(
t
){
i
(
"lpYn"
)},
"data-v-51432d8f"
,
null
);
e
.
default
=
c
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
7.753919eb9dec9fd8e128
.js
→
dist/static/js/7
6.7bde1c1a121b6289d5ec
.js
View file @
c46c6395
webpackJsonp
([
77
],{
VqB7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"3Xzz"
),
n
=
a
(
"3E4D"
),
i
=
a
(
"Ch4/"
),
r
=
a
(
"P9l9"
),
l
=
{
name
:
"setChildAdmin"
,
data
:
function
(){
return
{
windowH
:
window
.
screen
.
availHeight
-
180
-
15
+
"px"
,
tableH
:
window
.
screen
.
availHeight
-
440
-
180
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"设置子管理员"
,
path
:
""
}],
boxHeight
:
window
.
screen
.
availHeight
-
20
+
"px"
,
isAddAdmin
:
""
,
activeId
:
""
,
activeBrandId
:
""
,
roleListData
:[],
roleRightObj
:{
roleName
:
"超级管理员"
,
tip
:
"企业的创建者,拥有企业的所有权限,只会有一个"
,
roleCode
:
""
,
isEdit
:
0
},
tableData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
toRoleDetail
:
function
(
e
){
this
.
changeRoute
(
"/addAdminRole?roleId="
+
this
.
activeId
+
"&type="
+
e
+
"&brandId="
+
this
.
activeBrandId
)},
toDelRole
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postToDelRole
()}).
catch
(
function
(){})},
postToDelRole
:
function
(){
var
e
=
this
,
t
=
{
roleId
:
e
.
activeId
,
brandId
:
e
.
activeBrandId
};
Object
(
r
.
e
)(
"/haoban-manage-web/del-role"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
n
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getRoles
();
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
selectRole
:
function
(
e
,
t
){
this
.
activeId
=
e
.
roleId
,
this
.
activeBrandId
=
t
,
this
.
roleRightObj
=
e
,
this
.
getRoleUsers
()},
toAddRole
:
function
(
e
){
this
.
changeRoute
(
"/addAdmin?roleId="
+
this
.
activeId
+
"&roleCode="
+
e
+
"&brandId="
+
this
.
activeBrandId
)},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$alert
(
"确定要删除?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
}).
then
(
function
(
o
){
o
.
value
;
a
.
postDelUser
(
t
.
userId
,
e
)}).
catch
(
function
(){})},
postDelUser
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
roleId
:
a
.
activeId
,
userId
:
e
,
brandId
:
a
.
activeBrandId
};
Object
(
r
.
e
)(
"/haoban-manage-web/del-role-user"
,
o
).
then
(
function
(
e
){
var
o
=
e
.
data
;
if
(
1
==
o
.
errorCode
)
return
n
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
t
,
1
);
i
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleShow
:
function
(
e
,
t
,
a
){
this
.
changeRoute
(
"/addAdmin?roleId="
+
this
.
activeId
+
"&roleCode="
+
a
+
"&userId="
+
t
.
userId
+
"&brandId="
+
this
.
activeBrandId
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getRoleUsers
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getRoleUsers
()},
getRoleUsers
:
function
(){
var
e
=
this
,
t
=
{
roleId
:
e
.
activeId
,
brandId
:
e
.
activeBrandId
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
};
Object
(
r
.
e
)(
"/haoban-manage-web/role-user-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
&&
a
.
result
.
result
?(
e
.
tableData
=
a
.
result
.
result
,
void
(
e
.
total
=
a
.
result
.
totalCount
)):(
e
.
tableData
=
[],
!
1
);
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getRoles
:
function
(){
var
e
=
this
;
Object
(
r
.
e
)(
"/haoban-manage-web/role-list"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
isAddAdmin
=
a
.
result
.
isAddAdmin
,
e
.
roleListData
=
a
.
result
.
roleList
||
[],
void
(
a
.
result
&&
a
.
result
.
roleList
.
length
&&
(
e
.
activeId
=
e
.
roleListData
[
0
].
roleList
[
0
].
roleId
,
e
.
activeBrandId
=
e
.
roleListData
[
0
].
brandId
,
e
.
roleRightObj
=
e
.
roleListData
[
0
].
roleList
[
0
],
e
.
getRoleUsers
()));
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
boxHeight
=
window
.
screen
.
availHeight
-
430
+
"px"
,
this
.
getRoles
()},
components
:{
navCrumb
:
o
.
a
}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap common-set-wrap"
,
style
:{
height
:
e
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-body flex"
},[
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-left w-260"
,
style
:{
height
:
e
.
boxHeight
}},
e
.
_l
(
e
.
roleListData
,
function
(
t
,
o
){
return
a
(
"div"
,{
key
:
o
,
staticClass
:
"m-t-20"
},[
a
(
"div"
,{
staticClass
:
"role-cell-head flex"
},[
a
(
"div"
,{
staticClass
:
"flex-1 max-half role-cell-head_name"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
brandName
))]),
a
(
"el-tooltip"
,{
attrs
:{
effect
:
"light"
,
placement
:
"right"
}},[
-
1
==
t
.
brandId
?
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
.
_v
(
"
\
n 集团角色设置管理员,需选择门店架构为全部分组,"
),
a
(
"br"
),
e
.
_v
(
"
\
n 才能管理品牌数据,如进入我的顾客可看到品牌。
\
n "
)]):
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
.
_v
(
"品牌角色可设置门店架构为部分分组,可见品牌数据。"
)]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"iconfont icon-xinxixianshi cursor-pointer font-14 color-909399 p-l-6"
})])],
1
),
e
.
_v
(
" "
),
t
.
canAddRole
?
a
(
"div"
,{
staticClass
:
"text-right flex-1 "
},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
changeRoute
(
"/addAdminRole?brandId="
+
t
.
brandId
)}}},[
e
.
_v
(
"新增角色"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"ul"
,
e
.
_l
(
t
.
roleList
,
function
(
o
,
n
){
return
a
(
"li"
,{
key
:
n
,
class
:[
"role-cell border-bottom-1"
,
t
.
brandId
==
e
.
activeBrandId
&&
o
.
roleId
==
e
.
activeId
?
"role-active"
:
""
],
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
e
.
selectRole
(
o
,
t
.
brandId
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-lizhi p-r-6"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
o
.
roleName
)
+
"
\
n "
)])}))])})),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-right box-sizing"
},[
a
(
"div"
,{
staticClass
:
"role-title flex flex-between m-b-25"
},[
a
(
"span"
,{
staticClass
:
"font-20 color-303133"
},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
roleRightObj
.
roleName
)
+
" "
)]),
"child_admin"
!=
e
.
roleRightObj
.
roleCode
?
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter"
,
on
:{
click
:
function
(
t
){
e
.
toRoleDetail
(
"show"
)}}},[
e
.
_v
(
" 查看权限 "
)]):
e
.
_e
(),
"child_admin"
==
e
.
roleRightObj
.
roleCode
?
a
(
"span"
,[
e
.
tableData
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter p-r-6"
,
on
:{
click
:
e
.
toDelRole
}},[
e
.
_v
(
" 删除角色 "
)]),
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter"
,
on
:{
click
:
function
(
t
){
e
.
toRoleDetail
(
"edit"
)}}},[
e
.
_v
(
"
\
n 编辑权限
\
n "
)])]):
e
.
_e
()]),
e
.
_v
(
" "
),
"master_admin"
===
e
.
roleRightObj
.
roleCode
||
"admin"
===
e
.
roleRightObj
.
roleCode
?
a
(
"div"
,{
staticClass
:
"role-tip "
},[
a
(
"el-alert"
,{
attrs
:{
title
:
"master_admin"
===
e
.
roleRightObj
.
roleCode
?
"企业的创建者,拥有企业的所有权限,只会有一个"
:
"admin"
===
e
.
roleRightObj
.
roleCode
?
"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个"
:
""
,
type
:
"info"
,
closable
:
!
1
,
"show-icon"
:
""
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
roleRightObj
.
isEdit
?
a
(
"div"
,{
staticClass
:
"role-add m-t-27"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
toAddRole
(
e
.
roleRightObj
.
roleCode
)}}},[
e
.
_v
(
"添加成员"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
class
:[
"role-table"
,
e
.
roleRightObj
.
isEdit
?
""
:
"m-t-27"
]},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"clerkName"
,
label
:
"姓名"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"groupName"
,
label
:
"部门"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
1
==
t
.
row
.
canEdit
?[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleShow
(
t
.
$index
,
t
.
row
,
e
.
roleRightObj
.
roleCode
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)])]:
void
0
}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
10
,
20
,
30
,
40
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])])])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
s
,
!
1
,
function
(
e
){
a
(
"jULD"
)},
"data-v-50707a52"
,
null
);
t
.
default
=
d
.
exports
},
jULD
:
function
(
e
,
t
){}});
webpackJsonp
([
76
],{
VqB7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"3Xzz"
),
n
=
a
(
"3E4D"
),
i
=
a
(
"Ch4/"
),
r
=
a
(
"P9l9"
),
l
=
{
name
:
"setChildAdmin"
,
data
:
function
(){
return
{
windowH
:
window
.
screen
.
availHeight
-
180
-
15
+
"px"
,
tableH
:
window
.
screen
.
availHeight
-
440
-
180
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"设置子管理员"
,
path
:
""
}],
boxHeight
:
window
.
screen
.
availHeight
-
20
+
"px"
,
isAddAdmin
:
""
,
activeId
:
""
,
activeBrandId
:
""
,
roleListData
:[],
roleRightObj
:{
roleName
:
"超级管理员"
,
tip
:
"企业的创建者,拥有企业的所有权限,只会有一个"
,
roleCode
:
""
,
isEdit
:
0
},
tableData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
toRoleDetail
:
function
(
e
){
this
.
changeRoute
(
"/addAdminRole?roleId="
+
this
.
activeId
+
"&type="
+
e
+
"&brandId="
+
this
.
activeBrandId
)},
toDelRole
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postToDelRole
()}).
catch
(
function
(){})},
postToDelRole
:
function
(){
var
e
=
this
,
t
=
{
roleId
:
e
.
activeId
,
brandId
:
e
.
activeBrandId
};
Object
(
r
.
e
)(
"/haoban-manage-web/del-role"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
n
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getRoles
();
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
selectRole
:
function
(
e
,
t
){
this
.
activeId
=
e
.
roleId
,
this
.
activeBrandId
=
t
,
this
.
roleRightObj
=
e
,
this
.
getRoleUsers
()},
toAddRole
:
function
(
e
){
this
.
changeRoute
(
"/addAdmin?roleId="
+
this
.
activeId
+
"&roleCode="
+
e
+
"&brandId="
+
this
.
activeBrandId
)},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$alert
(
"确定要删除?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
}).
then
(
function
(
o
){
o
.
value
;
a
.
postDelUser
(
t
.
userId
,
e
)}).
catch
(
function
(){})},
postDelUser
:
function
(
e
,
t
){
var
a
=
this
,
o
=
{
roleId
:
a
.
activeId
,
userId
:
e
,
brandId
:
a
.
activeBrandId
};
Object
(
r
.
e
)(
"/haoban-manage-web/del-role-user"
,
o
).
then
(
function
(
e
){
var
o
=
e
.
data
;
if
(
1
==
o
.
errorCode
)
return
n
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
t
,
1
);
i
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleShow
:
function
(
e
,
t
,
a
){
this
.
changeRoute
(
"/addAdmin?roleId="
+
this
.
activeId
+
"&roleCode="
+
a
+
"&userId="
+
t
.
userId
+
"&brandId="
+
this
.
activeBrandId
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getRoleUsers
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getRoleUsers
()},
getRoleUsers
:
function
(){
var
e
=
this
,
t
=
{
roleId
:
e
.
activeId
,
brandId
:
e
.
activeBrandId
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
currentPage
};
Object
(
r
.
e
)(
"/haoban-manage-web/role-user-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
&&
a
.
result
.
result
?(
e
.
tableData
=
a
.
result
.
result
,
void
(
e
.
total
=
a
.
result
.
totalCount
)):(
e
.
tableData
=
[],
!
1
);
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getRoles
:
function
(){
var
e
=
this
;
Object
(
r
.
e
)(
"/haoban-manage-web/role-list"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
isAddAdmin
=
a
.
result
.
isAddAdmin
,
e
.
roleListData
=
a
.
result
.
roleList
||
[],
void
(
a
.
result
&&
a
.
result
.
roleList
.
length
&&
(
e
.
activeId
=
e
.
roleListData
[
0
].
roleList
[
0
].
roleId
,
e
.
activeBrandId
=
e
.
roleListData
[
0
].
brandId
,
e
.
roleRightObj
=
e
.
roleListData
[
0
].
roleList
[
0
],
e
.
getRoleUsers
()));
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
boxHeight
=
window
.
screen
.
availHeight
-
430
+
"px"
,
this
.
getRoles
()},
components
:{
navCrumb
:
o
.
a
}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap common-set-wrap"
,
style
:{
height
:
e
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-body flex"
},[
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-left w-260"
,
style
:{
height
:
e
.
boxHeight
}},
e
.
_l
(
e
.
roleListData
,
function
(
t
,
o
){
return
a
(
"div"
,{
key
:
o
,
staticClass
:
"m-t-20"
},[
a
(
"div"
,{
staticClass
:
"role-cell-head flex"
},[
a
(
"div"
,{
staticClass
:
"flex-1 max-half role-cell-head_name"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
brandName
))]),
a
(
"el-tooltip"
,{
attrs
:{
effect
:
"light"
,
placement
:
"right"
}},[
-
1
==
t
.
brandId
?
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
.
_v
(
"
\
n 集团角色设置管理员,需选择门店架构为全部分组,"
),
a
(
"br"
),
e
.
_v
(
"
\
n 才能管理品牌数据,如进入我的顾客可看到品牌。
\
n "
)]):
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
.
_v
(
"品牌角色可设置门店架构为部分分组,可见品牌数据。"
)]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"iconfont icon-xinxixianshi cursor-pointer font-14 color-909399 p-l-6"
})])],
1
),
e
.
_v
(
" "
),
t
.
canAddRole
?
a
(
"div"
,{
staticClass
:
"text-right flex-1 "
},[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
},
on
:{
click
:
function
(
a
){
e
.
changeRoute
(
"/addAdminRole?brandId="
+
t
.
brandId
)}}},[
e
.
_v
(
"新增角色"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"ul"
,
e
.
_l
(
t
.
roleList
,
function
(
o
,
n
){
return
a
(
"li"
,{
key
:
n
,
class
:[
"role-cell border-bottom-1"
,
t
.
brandId
==
e
.
activeBrandId
&&
o
.
roleId
==
e
.
activeId
?
"role-active"
:
""
],
on
:{
click
:
function
(
a
){
a
.
stopPropagation
(),
e
.
selectRole
(
o
,
t
.
brandId
)}}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-lizhi p-r-6"
}),
e
.
_v
(
"
\
n "
+
e
.
_s
(
o
.
roleName
)
+
"
\
n "
)])}))])})),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"setChildAdmin-wrap-right box-sizing"
},[
a
(
"div"
,{
staticClass
:
"role-title flex flex-between m-b-25"
},[
a
(
"span"
,{
staticClass
:
"font-20 color-303133"
},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
roleRightObj
.
roleName
)
+
" "
)]),
"child_admin"
!=
e
.
roleRightObj
.
roleCode
?
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter"
,
on
:{
click
:
function
(
t
){
e
.
toRoleDetail
(
"show"
)}}},[
e
.
_v
(
" 查看权限 "
)]):
e
.
_e
(),
"child_admin"
==
e
.
roleRightObj
.
roleCode
?
a
(
"span"
,[
e
.
tableData
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter p-r-6"
,
on
:{
click
:
e
.
toDelRole
}},[
e
.
_v
(
" 删除角色 "
)]),
a
(
"span"
,{
staticClass
:
"font-14 color-1890ff pinter"
,
on
:{
click
:
function
(
t
){
e
.
toRoleDetail
(
"edit"
)}}},[
e
.
_v
(
"
\
n 编辑权限
\
n "
)])]):
e
.
_e
()]),
e
.
_v
(
" "
),
"master_admin"
===
e
.
roleRightObj
.
roleCode
||
"admin"
===
e
.
roleRightObj
.
roleCode
?
a
(
"div"
,{
staticClass
:
"role-tip "
},[
a
(
"el-alert"
,{
attrs
:{
title
:
"master_admin"
===
e
.
roleRightObj
.
roleCode
?
"企业的创建者,拥有企业的所有权限,只会有一个"
:
"admin"
===
e
.
roleRightObj
.
roleCode
?
"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个"
:
""
,
type
:
"info"
,
closable
:
!
1
,
"show-icon"
:
""
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
roleRightObj
.
isEdit
?
a
(
"div"
,{
staticClass
:
"role-add m-t-27"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
toAddRole
(
e
.
roleRightObj
.
roleCode
)}}},[
e
.
_v
(
"添加成员"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
class
:[
"role-table"
,
e
.
roleRightObj
.
isEdit
?
""
:
"m-t-27"
]},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"clerkName"
,
label
:
"姓名"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"86"
==
t
.
row
.
nationcode
?
t
.
row
.
clerkPhone
:
"+"
+
t
.
row
.
nationcode
+
"-"
+
t
.
row
.
clerkPhone
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"groupName"
,
label
:
"部门"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
1
==
t
.
row
.
canEdit
?[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleShow
(
t
.
$index
,
t
.
row
,
e
.
roleRightObj
.
roleCode
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)])]:
void
0
}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
10
,
20
,
30
,
40
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)])])])]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
s
,
!
1
,
function
(
e
){
a
(
"jULD"
)},
"data-v-50707a52"
,
null
);
t
.
default
=
d
.
exports
},
jULD
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
8.b18aacbbfed76627d59
c.js
→
dist/static/js/7
7.400573827121945ff6e
c.js
View file @
c46c6395
webpackJsonp
([
78
],{
Akas
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
i
=
a
(
"2eFk"
),
s
=
a
(
"Ie7z"
),
l
=
a
(
"Ke24"
),
r
=
a
(
"LRn8"
),
c
=
a
(
"P9l9"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
h
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
topMenuData
:[{
id
:
"1"
,
name
:
"话务任务记录"
,
path
:
"/taskRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"任务详情"
,
path
:
""
}],
activeId
:
"2"
,
showDialog
:
!
1
,
conditionObj
:{
searchInput
:
""
,
storeGroup
:[],
storeType
:
""
,
dateRange
:[]},
storeTypeOptions
:[{
value
:
""
,
label
:
"所有"
},{
value
:
"0"
,
label
:
"自营"
},{
value
:
"1"
,
label
:
"联营"
},{
value
:
"2"
,
label
:
"代理"
},{
value
:
"3"
,
label
:
"代销"
},{
value
:
"4"
,
label
:
"托管"
}],
selectRadio
:
0
,
tableData
:[],
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
computed
:{},
methods
:{
changeTable
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
changeStoreType
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
o
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
[],
n
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
n
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
search
:
t
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
n
.
join
(
","
)
||
""
,
storeGroupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
storeId
}).
join
(
","
)
||
""
,
storeType
:
t
.
conditionObj
.
storeType
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
t
.
activeBrand
,
delTaskStatus
:
e
.
delOptFlag
,
reason
:
e
.
reason
,
isAll
:
t
.
selectRadio
};
Object
(
c
.
e
)(
"/haoban-app-tel-task-web/task/batch-del-store-task-list"
,
o
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)});
var
n
=
{
search
:
e
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
a
.
join
(
","
)
||
""
,
storeGroupIds
:
t
.
join
(
","
)
||
""
,
storeType
:
e
.
conditionObj
.
storeType
||
""
,
startDate
:
e
.
conditionObj
.
dateRange
?
e
.
conditionObj
.
dateRange
[
0
]:
""
,
endDate
:
e
.
conditionObj
.
dateRange
?
e
.
conditionObj
.
dateRange
[
1
]:
""
,
brandId
:
e
.
activeBrand
};
Object
(
c
.
b
)(
"/haoban-app-tel-task-web/task/export-store-task-list"
,
n
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
p
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
n
=
(
e
.
tableData
[
0
]?
e
.
tableData
[
0
].
storeName
:
""
)
+
"门店任务报表.csv"
,
o
=
document
.
createElement
(
"a"
);
o
.
download
=
n
,
o
.
style
.
display
=
"none"
,
o
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
o
),
o
.
click
(),
URL
.
revokeObjectURL
(
o
.
href
),
document
.
body
.
removeChild
(
o
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
toDetail
:
function
(
e
,
t
){
this
.
$router
.
push
(
"taskDetail?storeId="
+
t
.
storeId
+
"&ecmId="
+
this
.
$route
.
query
.
ecmId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
n
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
n
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
ecmId
:
t
.
$route
.
query
.
ecmId
,
search
:
t
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
n
.
join
(
","
)
||
""
,
storeGroupIds
:
a
.
join
(
","
)
||
""
,
storeType
:
t
.
conditionObj
.
storeType
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
c
.
a
)(
"/haoban-app-tel-task-web/task/store-task-list"
,
o
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initDataRange
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getTime
()
-
7776
e6
,
a
=
e
.
getFullYear
(),
n
=
e
.
getMonth
()
+
1
,
o
=
e
.
getDate
()
<
10
?
"0"
+
e
.
getDate
():
e
.
getDate
(),
i
=
n
<
10
?
"0"
+
n
:
n
,
s
=
new
Date
(
t
),
l
=
s
.
getFullYear
(),
r
=
s
.
getMonth
()
+
1
,
c
=
s
.
getDate
()
<
10
?
"0"
+
s
.
getDate
():
s
.
getDate
();
return
[
l
+
"-"
+
(
r
<
10
?
"0"
+
r
:
r
)
+
"-"
+
c
,
a
+
"-"
+
i
+
"-"
+
o
]}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
conditionObj
.
dateRange
=
e
.
initDataRange
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
e
.
activeBrand
=
e
.
brandId
,
e
.
brandId
&&
e
.
$nextTick
(
function
(){
e
.
getTableList
()})},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonDetailTop
:
l
.
a
,
vueSelectStore
:
s
.
a
,
multipleDel
:
r
.
a
}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap task-view-detail"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入门店名称"
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block m-l-10"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
conditionObj
.
storeGroup
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc"
},[
e
.
_v
(
"请选择门店分组"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
e
.
_l
(
e
.
conditionObj
.
storeGroup
,
function
(
t
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
e
.
conditionObj
.
storeGroup
)}}})])]})],
2
)])])])]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeStoreType
},
model
:{
value
:
e
.
conditionObj
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"storeType"
,
t
)},
expression
:
"conditionObj.storeType"
}},
e
.
_l
(
e
.
storeTypeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
width
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"任务总数"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
taskCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"已完成(含放弃)"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
completedCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成率(含放弃)"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
completedRate
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"待完成"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
noCompletedCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"逾期中"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
overdueCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toDetail
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"查看详情"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
1
},
on
:{
hideDialog
:
e
.
hideDialog
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
g
,
!
1
,
function
(
e
){
a
(
"m8tU"
)},
"data-v-4b967a5a"
,
null
);
t
.
default
=
b
.
exports
},
m8tU
:
function
(
e
,
t
){}});
webpackJsonp
([
77
],{
Akas
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
i
=
a
(
"2eFk"
),
s
=
a
(
"Ie7z"
),
l
=
a
(
"Ke24"
),
r
=
a
(
"LRn8"
),
c
=
a
(
"P9l9"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
h
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
topMenuData
:[{
id
:
"1"
,
name
:
"话务任务记录"
,
path
:
"/taskRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"任务详情"
,
path
:
""
}],
activeId
:
"2"
,
showDialog
:
!
1
,
conditionObj
:{
searchInput
:
""
,
storeGroup
:[],
storeType
:
""
,
dateRange
:[]},
storeTypeOptions
:[{
value
:
""
,
label
:
"所有"
},{
value
:
"0"
,
label
:
"自营"
},{
value
:
"1"
,
label
:
"联营"
},{
value
:
"2"
,
label
:
"代理"
},{
value
:
"3"
,
label
:
"代销"
},{
value
:
"4"
,
label
:
"托管"
}],
selectRadio
:
0
,
tableData
:[],
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
computed
:{},
methods
:{
changeTable
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
changeStoreType
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
o
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
[],
n
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
n
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
search
:
t
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
n
.
join
(
","
)
||
""
,
storeGroupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
storeId
}).
join
(
","
)
||
""
,
storeType
:
t
.
conditionObj
.
storeType
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
t
.
activeBrand
,
delTaskStatus
:
e
.
delOptFlag
,
reason
:
e
.
reason
,
isAll
:
t
.
selectRadio
};
Object
(
c
.
e
)(
"/haoban-app-tel-task-web/task/batch-del-store-task-list"
,
o
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)});
var
n
=
{
search
:
e
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
a
.
join
(
","
)
||
""
,
storeGroupIds
:
t
.
join
(
","
)
||
""
,
storeType
:
e
.
conditionObj
.
storeType
||
""
,
startDate
:
e
.
conditionObj
.
dateRange
?
e
.
conditionObj
.
dateRange
[
0
]:
""
,
endDate
:
e
.
conditionObj
.
dateRange
?
e
.
conditionObj
.
dateRange
[
1
]:
""
,
brandId
:
e
.
activeBrand
};
Object
(
c
.
b
)(
"/haoban-app-tel-task-web/task/export-store-task-list"
,
n
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
p
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
n
=
(
e
.
tableData
[
0
]?
e
.
tableData
[
0
].
storeName
:
""
)
+
"门店任务报表.csv"
,
o
=
document
.
createElement
(
"a"
);
o
.
download
=
n
,
o
.
style
.
display
=
"none"
,
o
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
o
),
o
.
click
(),
URL
.
revokeObjectURL
(
o
.
href
),
document
.
body
.
removeChild
(
o
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
toDetail
:
function
(
e
,
t
){
this
.
$router
.
push
(
"taskDetail?storeId="
+
t
.
storeId
+
"&ecmId="
+
this
.
$route
.
query
.
ecmId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
n
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
n
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
ecmId
:
t
.
$route
.
query
.
ecmId
,
search
:
t
.
conditionObj
.
searchInput
||
""
,
filterStoreIds
:
n
.
join
(
","
)
||
""
,
storeGroupIds
:
a
.
join
(
","
)
||
""
,
storeType
:
t
.
conditionObj
.
storeType
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
c
.
a
)(
"/haoban-app-tel-task-web/task/store-task-list"
,
o
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initDataRange
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getTime
()
-
7776
e6
,
a
=
e
.
getFullYear
(),
n
=
e
.
getMonth
()
+
1
,
o
=
e
.
getDate
()
<
10
?
"0"
+
e
.
getDate
():
e
.
getDate
(),
i
=
n
<
10
?
"0"
+
n
:
n
,
s
=
new
Date
(
t
),
l
=
s
.
getFullYear
(),
r
=
s
.
getMonth
()
+
1
,
c
=
s
.
getDate
()
<
10
?
"0"
+
s
.
getDate
():
s
.
getDate
();
return
[
l
+
"-"
+
(
r
<
10
?
"0"
+
r
:
r
)
+
"-"
+
c
,
a
+
"-"
+
i
+
"-"
+
o
]}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
conditionObj
.
dateRange
=
e
.
initDataRange
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
e
.
activeBrand
=
e
.
brandId
,
e
.
brandId
&&
e
.
$nextTick
(
function
(){
e
.
getTableList
()})},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonDetailTop
:
l
.
a
,
vueSelectStore
:
s
.
a
,
multipleDel
:
r
.
a
}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap task-view-detail"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入门店名称"
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block m-l-10"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
conditionObj
.
storeGroup
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc"
},[
e
.
_v
(
"请选择门店分组"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
e
.
_l
(
e
.
conditionObj
.
storeGroup
,
function
(
t
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
e
.
conditionObj
.
storeGroup
)}}})])]})],
2
)])])])]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeStoreType
},
model
:{
value
:
e
.
conditionObj
.
storeType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"storeType"
,
t
)},
expression
:
"conditionObj.storeType"
}},
e
.
_l
(
e
.
storeTypeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
width
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"任务总数"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
taskCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"已完成(含放弃)"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
completedCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成率(含放弃)"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
completedRate
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"待完成"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
noCompletedCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"逾期中"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
overdueCount
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
toDetail
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"查看详情"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
1
},
on
:{
hideDialog
:
e
.
hideDialog
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
g
,
!
1
,
function
(
e
){
a
(
"m8tU"
)},
"data-v-4b967a5a"
,
null
);
t
.
default
=
b
.
exports
},
m8tU
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/7
9.3017187b97af5175c76a
.js
→
dist/static/js/7
8.4e1aa8a9d072352195d3
.js
View file @
c46c6395
webpackJsonp
([
79
],{
YqmZ
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
o
=
a
.
n
(
i
),
n
=
a
(
"Ie7z"
),
s
=
a
(
"Ke24"
),
l
=
a
(
"b28S"
),
r
=
a
(
"P9l9"
),
c
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
s
.
a
,
vueSelectStore
:
n
.
a
,
chatLogList
:
l
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"在线沟通设置"
,
path
:
"/onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&activeTab="
+
this
.
$route
.
query
.
activeTab
},{
id
:
"2"
,
name
:
"卡券领取记录"
}],
tableData
:[],
conditionObj
:{
searchInput
:
""
,
searchType
:
"1"
,
storeGroup
:[],
dateRange
:[]},
choiceDateCopy
:[],
pickerOptions
:{
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
])}}],
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
i
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
i
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
i
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
i
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
showFlag
:
!
1
,
itemRow
:{}}},
methods
:{
delSelectData
:
function
(
e
){
this
.
defaultStoreList
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
showSingleInfo
:
function
(
e
){},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[],
i
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
i
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
relatedId
:
e
.
$route
.
query
.
relatedId
,
search
:
e
.
conditionObj
.
searchInput
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
clerkIds
:
i
.
join
(
","
)
||
""
,
startTime
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
e
.
activeBrand
};
Object
(
r
.
b
)(
"/haoban-app-member-web/customer/export_message_log"
,
o
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
c
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
i
=
(
e
.
tableData
[
0
]?
e
.
tableData
[
0
].
storeName
:
""
)
+
"发送记录报表.csv"
,
o
=
document
.
createElement
(
"a"
);
o
.
download
=
i
,
o
.
style
.
display
=
"none"
,
o
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
o
),
o
.
click
(),
URL
.
revokeObjectURL
(
o
.
href
),
document
.
body
.
removeChild
(
o
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
dateRange
=
[]),
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDetail
:
function
(
e
,
t
){
this
.
showFlag
=!
0
;
var
a
=
JSON
.
parse
(
o
()(
t
));
a
.
userMessageId
=
""
,
this
.
itemRow
=
a
},
hideDetail
:
function
(){
this
.
showFlag
=!
1
,
this
.
itemRow
=
{},
this
.
$nextTick
(
function
(){
document
.
body
.
style
.
overflow
=
"auto"
})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
i
=
[],
o
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
o
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
i
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
n
=
{
coupCardId
:
t
.
$route
.
query
.
coupCardId
,
search
:
t
.
conditionObj
.
searchInput
||
""
,
groupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
i
.
join
(
","
)
||
""
,
clerkIds
:
o
.
join
(
","
)
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
r
.
e
)(
"/haoban-app-member-web/cardCoupon/find-receive-card-page"
,
n
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log border-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content border-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"请输入导购姓名/手机号/code"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}}),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 m-r-10"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}}),
a
(
"el-button"
,{
staticStyle
:{
"vertical-align"
:
"middle"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
_v
(
"门店架构选人"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
})]),
e
.
_v
(
" "
),
e
.
defaultStoreList
.
length
?
a
(
"div"
,{
staticClass
:
"select-data-wrap m-b-20"
},[
a
(
"ul"
,{
staticClass
:
"selector-selected-list flex flex-wrap"
},[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"li"
,{
key
:
i
+
t
.
id
+
t
.
label
,
staticClass
:
"select-item"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
t
){
e
.
delSelectData
(
i
)}}})])]})],
2
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"导购信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"400"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
applyId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
t
.
row
.
clerkImage
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImage
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info-right flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"apply-info-name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
),
a
(
"i"
,{
class
:[
2
==
t
.
row
.
sex
?
"icon-xingbienv color-FF585C"
:
"icon-xingbienan color-508CEE"
,
"iconfont"
]})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-code"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"员工代码:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkCode
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-job"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"职位:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
positionName
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属门店:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
clerkImage
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImage
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"导购手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
memberUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
memberUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberCardNo
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberPhone
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"来源"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
receiveName
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"领取时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
receiveTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
receiveTime
)))])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"chat-log-list"
,{
attrs
:{
brandId
:
e
.
brandId
,
itemRow
:
e
.
itemRow
,
showFlag
:
e
.
showFlag
},
on
:{
hideDetail
:
e
.
hideDetail
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"ag8q"
)},
"data-v-482d4abd"
,
null
);
t
.
default
=
h
.
exports
},
ag8q
:
function
(
e
,
t
){}});
webpackJsonp
([
78
],{
YqmZ
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
o
=
a
.
n
(
i
),
n
=
a
(
"Ie7z"
),
s
=
a
(
"Ke24"
),
l
=
a
(
"b28S"
),
r
=
a
(
"P9l9"
),
c
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
s
.
a
,
vueSelectStore
:
n
.
a
,
chatLogList
:
l
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"在线沟通设置"
,
path
:
"/onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&activeTab="
+
this
.
$route
.
query
.
activeTab
},{
id
:
"2"
,
name
:
"卡券领取记录"
}],
tableData
:[],
conditionObj
:{
searchInput
:
""
,
searchType
:
"1"
,
storeGroup
:[],
dateRange
:[]},
choiceDateCopy
:[],
pickerOptions
:{
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
])}}],
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
i
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
i
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
i
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
i
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
showFlag
:
!
1
,
itemRow
:{}}},
methods
:{
delSelectData
:
function
(
e
){
this
.
defaultStoreList
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
showSingleInfo
:
function
(
e
){},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[],
i
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
i
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
relatedId
:
e
.
$route
.
query
.
relatedId
,
search
:
e
.
conditionObj
.
searchInput
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
clerkIds
:
i
.
join
(
","
)
||
""
,
startTime
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
e
.
activeBrand
};
Object
(
r
.
b
)(
"/haoban-app-member-web/customer/export_message_log"
,
o
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
c
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
i
=
(
e
.
tableData
[
0
]?
e
.
tableData
[
0
].
storeName
:
""
)
+
"发送记录报表.csv"
,
o
=
document
.
createElement
(
"a"
);
o
.
download
=
i
,
o
.
style
.
display
=
"none"
,
o
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
o
),
o
.
click
(),
URL
.
revokeObjectURL
(
o
.
href
),
document
.
body
.
removeChild
(
o
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
dateRange
=
[]),
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDetail
:
function
(
e
,
t
){
this
.
showFlag
=!
0
;
var
a
=
JSON
.
parse
(
o
()(
t
));
a
.
userMessageId
=
""
,
this
.
itemRow
=
a
},
hideDetail
:
function
(){
this
.
showFlag
=!
1
,
this
.
itemRow
=
{},
this
.
$nextTick
(
function
(){
document
.
body
.
style
.
overflow
=
"auto"
})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
i
=
[],
o
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
o
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
i
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
n
=
{
coupCardId
:
t
.
$route
.
query
.
coupCardId
,
search
:
t
.
conditionObj
.
searchInput
||
""
,
groupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
i
.
join
(
","
)
||
""
,
clerkIds
:
o
.
join
(
","
)
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
r
.
e
)(
"/haoban-app-member-web/cardCoupon/find-receive-card-page"
,
n
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log border-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content border-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"请输入导购姓名/手机号/code"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}}),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 m-r-10"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}}),
a
(
"el-button"
,{
staticStyle
:{
"vertical-align"
:
"middle"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
_v
(
"门店架构选人"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
})]),
e
.
_v
(
" "
),
e
.
defaultStoreList
.
length
?
a
(
"div"
,{
staticClass
:
"select-data-wrap m-b-20"
},[
a
(
"ul"
,{
staticClass
:
"selector-selected-list flex flex-wrap"
},[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"li"
,{
key
:
i
+
t
.
id
+
t
.
label
,
staticClass
:
"select-item"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
t
){
e
.
delSelectData
(
i
)}}})])]})],
2
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"导购信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"400"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
applyId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
t
.
row
.
clerkImage
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImage
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info-right flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"apply-info-name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
),
a
(
"i"
,{
class
:[
2
==
t
.
row
.
sex
?
"icon-xingbienv color-FF585C"
:
"icon-xingbienan color-508CEE"
,
"iconfont"
]})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-code"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"员工代码:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkCode
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-job"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"职位:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
positionName
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属门店:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
clerkImage
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImage
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"导购手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
memberUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
memberUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberCardNo
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberPhone
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"来源"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
receiveName
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"领取时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
receiveTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
receiveTime
)))])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"chat-log-list"
,{
attrs
:{
brandId
:
e
.
brandId
,
itemRow
:
e
.
itemRow
,
showFlag
:
e
.
showFlag
},
on
:{
hideDetail
:
e
.
hideDetail
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"ag8q"
)},
"data-v-482d4abd"
,
null
);
t
.
default
=
h
.
exports
},
ag8q
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/
80.869ac1a7d3180d2bc8f8
.js
→
dist/static/js/
79.538d5c8bcccf2e7791b5
.js
View file @
c46c6395
webpackJsonp
([
80
],{
"5+o4"
:
function
(
e
,
t
){},
jMbb
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
i
=
a
(
"Ke24"
),
l
=
a
(
"LRn8"
),
s
=
a
(
"P9l9"
),
r
=
a
(
"Ch4/"
),
c
=
a
(
"3E4D"
),
d
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
0
]:
"--"
},
formatTimeHMS
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
1
]:
"--"
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeId
:
"3"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标任务"
,
path
:
"/monthTask?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"3"
,
name
:
"月指标任务详情"
,
path
:
""
}],
selectRadio
:
0
,
showDialog
:
!
1
,
conditionObj
:{
isCompleted
:
""
,
isOverTime
:
""
,
dateRange
:[]},
completedOptions
:[{
label
:
"完成情况"
,
value
:
""
},{
label
:
"已完成"
,
value
:
"1"
},{
label
:
"未完成"
,
value
:
"0"
}],
overOptions
:[{
label
:
"逾期情况"
,
value
:
""
},{
label
:
"已逾期"
,
value
:
"1"
},{
label
:
"未逾期"
,
value
:
"0"
}],
tableData
:[],
multipleSelection
:[],
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
init
:
function
(){
var
e
=
this
.
$route
.
query
.
startDate
,
t
=
this
.
$route
.
query
.
endDate
;
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"13"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
conditionObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
conditionObj
.
dateRange
=
t
?[
e
,
t
]:[],
this
.
brandId
&&
this
.
getTableList
()},
selectInit
:
function
(
e
,
t
){
return
0
!=
e
.
removeAble
},
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
selectBrandId
:
function
(
e
){
this
.
activeBrand
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
o
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
,
taskIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
taskId
}).
join
(
","
)
||
""
,
isOverTime
:
t
.
conditionObj
.
isOverTime
||
""
,
isCompleted
:
t
.
conditionObj
.
isCompleted
||
""
,
reason
:
e
.
reason
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
t
.
activeBrand
,
isAll
:
t
.
selectRadio
};
Object
(
s
.
e
)(
"/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
c
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
this
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
n
=
{
taskId
:
t
.
taskId
,
brandId
:
this
.
activeBrand
};
Object
(
s
.
a
)(
"/haoban-app-performance-web/performance/remove-clerk-month-performance-task"
,
n
).
then
(
function
(
t
){
var
n
=
t
.
data
;
if
(
1
==
n
.
errorCode
)
return
a
.
total
--
,
a
.
tableData
.
splice
(
e
,
1
),
0
==
a
.
tableData
.
length
&&
(
a
.
currentPage
>
1
?(
a
.
currentPage
--
,
a
.
getTableList
()):
a
.
total
>
0
&&
a
.
getTableList
()),
void
a
.
$message
.
success
(
"删除成功"
);
r
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
||
""
,
isOverTime
:
t
.
conditionObj
.
isOverTime
||
""
,
isCompleted
:
t
.
conditionObj
.
isCompleted
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
s
.
a
)(
"/haoban-app-performance-web/performance/query-clerk-month-performance-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
void
(
t
.
total
=
a
.
result
.
pageInfo
.
total
);
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())}},
activated
:
function
(){
this
.
init
()},
mounted
:
function
(){
this
.
init
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
commonDetailTop
:
i
.
a
,
multipleDel
:
l
.
a
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap common-right-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
isOverTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"isOverTime"
,
t
)},
expression
:
"conditionObj.isOverTime"
}},
e
.
_l
(
e
.
overOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
isCompleted
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"isCompleted"
,
t
)},
expression
:
"conditionObj.isCompleted"
}},
e
.
_l
(
e
.
completedOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
staticStyle
:{
width
:
"310px"
},
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM"
,
type
:
"monthrange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始月份"
,
"end-placeholder"
:
"结束月份"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
,
selectable
:
e
.
selectInit
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"指派对象"
,
width
:
"260"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex flex-pack-center flex-start"
},[
a
(
"div"
,{
class
:[
"image-wrap flex flex-align-center flex-pack-center"
,
t
.
row
.
headImgUrl
?
"bg-eceaeb"
:
"bg-82c5ff"
]},[
t
.
row
.
headImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headImgUrl
,
alt
:
""
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-info flex flex-column flex-space-between m-l-16"
},[
a
(
"p"
,{
staticClass
:
"first-item font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"创建时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成期限"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
lastTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
lastTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"逾期情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isOverTime
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isCompleted
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
finishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
finishTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
removeAble
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
a
(
"span"
,[
e
.
_v
(
"--"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
0
,
detailShowFlag
:
!
0
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"5+o4"
)},
"data-v-47935b7a"
,
null
);
t
.
default
=
m
.
exports
}});
webpackJsonp
([
79
],{
"5+o4"
:
function
(
e
,
t
){},
jMbb
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
i
=
a
(
"Ke24"
),
l
=
a
(
"LRn8"
),
s
=
a
(
"P9l9"
),
r
=
a
(
"Ch4/"
),
c
=
a
(
"3E4D"
),
d
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
filters
:{
formatTimeYMD
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
0
]:
"--"
},
formatTimeHMS
:
function
(
e
){
return
e
&&
"- -"
!=
e
?
e
.
split
(
" "
)[
1
]:
"--"
}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeId
:
"3"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标任务"
,
path
:
"/monthTask?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"3"
,
name
:
"月指标任务详情"
,
path
:
""
}],
selectRadio
:
0
,
showDialog
:
!
1
,
conditionObj
:{
isCompleted
:
""
,
isOverTime
:
""
,
dateRange
:[]},
completedOptions
:[{
label
:
"完成情况"
,
value
:
""
},{
label
:
"已完成"
,
value
:
"1"
},{
label
:
"未完成"
,
value
:
"0"
}],
overOptions
:[{
label
:
"逾期情况"
,
value
:
""
},{
label
:
"已逾期"
,
value
:
"1"
},{
label
:
"未逾期"
,
value
:
"0"
}],
tableData
:[],
multipleSelection
:[],
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
}},
computed
:{},
methods
:{
init
:
function
(){
var
e
=
this
.
$route
.
query
.
startDate
,
t
=
this
.
$route
.
query
.
endDate
;
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"13"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
conditionObj
.
storeId
=
this
.
$route
.
query
.
storeId
,
this
.
conditionObj
.
dateRange
=
t
?[
e
,
t
]:[],
this
.
brandId
&&
this
.
getTableList
()},
selectInit
:
function
(
e
,
t
){
return
0
!=
e
.
removeAble
},
handleCommand
:
function
(
e
){
this
.
selectRadio
=
e
},
selectBrandId
:
function
(
e
){
this
.
activeBrand
=
e
},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
changeSelect
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
showDialog
=!
0
},
hideDialog
:
function
(
e
){
if
(
this
.
showDialog
=!
1
,
!
o
()(
e
).
length
)
return
!
1
;
this
.
postMultDel
(
e
)},
postMultDel
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
,
taskIds
:
t
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
taskId
}).
join
(
","
)
||
""
,
isOverTime
:
t
.
conditionObj
.
isOverTime
||
""
,
isCompleted
:
t
.
conditionObj
.
isCompleted
||
""
,
reason
:
e
.
reason
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
t
.
activeBrand
,
isAll
:
t
.
selectRadio
};
Object
(
s
.
e
)(
"/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
c
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
t
.
getTableList
();
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleDel
:
function
(
e
,
t
){
var
a
=
this
;
this
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
n
=
{
taskId
:
t
.
taskId
,
brandId
:
this
.
activeBrand
};
Object
(
s
.
a
)(
"/haoban-app-performance-web/performance/remove-clerk-month-performance-task"
,
n
).
then
(
function
(
t
){
var
n
=
t
.
data
;
if
(
1
==
n
.
errorCode
)
return
a
.
total
--
,
a
.
tableData
.
splice
(
e
,
1
),
0
==
a
.
tableData
.
length
&&
(
a
.
currentPage
>
1
?(
a
.
currentPage
--
,
a
.
getTableList
()):
a
.
total
>
0
&&
a
.
getTableList
()),
void
a
.
$message
.
success
(
"删除成功"
);
r
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
storeId
:
t
.
conditionObj
.
storeId
||
""
,
isOverTime
:
t
.
conditionObj
.
isOverTime
||
""
,
isCompleted
:
t
.
conditionObj
.
isCompleted
||
""
,
startDate
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
s
.
a
)(
"/haoban-app-performance-web/performance/query-clerk-month-performance-task"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
void
(
t
.
total
=
a
.
result
.
pageInfo
.
total
);
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())}},
activated
:
function
(){
this
.
init
()},
mounted
:
function
(){
this
.
init
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
commonDetailTop
:
i
.
a
,
multipleDel
:
l
.
a
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap common-right-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
isOverTime
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"isOverTime"
,
t
)},
expression
:
"conditionObj.isOverTime"
}},
e
.
_l
(
e
.
overOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-105 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeSelect
},
model
:{
value
:
e
.
conditionObj
.
isCompleted
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"isCompleted"
,
t
)},
expression
:
"conditionObj.isCompleted"
}},
e
.
_l
(
e
.
completedOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
staticStyle
:{
width
:
"310px"
},
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM"
,
type
:
"monthrange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始月份"
,
"end-placeholder"
:
"结束月份"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量删除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"35"
,
selectable
:
e
.
selectInit
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
e
.
_u
([{
key
:
"header"
,
fn
:
function
(
t
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
e
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"el-icon-arrow-down el-icon--right"
})]),
e
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择当页"
)])]),
e
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
e
.
selectRadio
?
"#1890ff"
:
"#606266"
}},[
e
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
e
){}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"指派对象"
,
width
:
"260"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex flex-pack-center flex-start"
},[
a
(
"div"
,{
class
:[
"image-wrap flex flex-align-center flex-pack-center"
,
t
.
row
.
headImgUrl
?
"bg-eceaeb"
:
"bg-82c5ff"
]},[
t
.
row
.
headImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headImgUrl
,
alt
:
""
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"clerk-info flex flex-column flex-space-between m-l-16"
},[
a
(
"p"
,{
staticClass
:
"first-item font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
))]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhone
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"创建时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"完成期限"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
lastTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
lastTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"逾期情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isOverTime
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成情况"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
isCompleted
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"完成时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYMD"
)(
t
.
row
.
finishTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeHMS"
)(
t
.
row
.
finishTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
removeAble
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
a
(
"span"
,[
e
.
_v
(
"--"
)])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"multiple-del"
,{
attrs
:{
showDialog
:
e
.
showDialog
,
detailFlag
:
!
0
,
detailShowFlag
:
!
0
},
on
:{
hideDialog
:
e
.
hideDialog
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"5+o4"
)},
"data-v-47935b7a"
,
null
);
t
.
default
=
m
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
1.b642770f6bb541055105
.js
→
dist/static/js/8
0.d63547dbc4122065934a
.js
View file @
c46c6395
webpackJsonp
([
81
],{
SPOA
:
function
(
e
,
r
){},
fZsz
:
function
(
e
,
r
,
t
){
"use strict"
;
Object
.
defineProperty
(
r
,
"__esModule"
,{
value
:
!
0
});
var
a
=
t
(
"//Fk"
),
o
=
t
.
n
(
a
),
i
=
t
(
"mvHQ"
),
n
=
t
.
n
(
i
),
l
=
t
(
"3Xzz"
),
s
=
t
(
"l46T"
),
u
=
t
(
"Kkt8"
),
c
=
t
(
"3E4D"
),
h
=
t
(
"Ch4/"
),
d
=
t
(
"PI0u"
),
m
=
t
(
"P9l9"
),
p
=
{
name
:
"addAdminRole"
,
data
:
function
(){
return
{
menuH
:
window
.
screen
.
availHeight
-
695
+
"px"
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"设置子管理员"
,
path
:
"/setChildAdmin"
},{
name
:
"新增管理员角色"
,
path
:
""
}],
showFlag
:
!
1
,
ruleForm
:{
roleId
:
""
,
roleName
:
""
,
remark
:
"角色说明"
,
leftChecked
:[],
menuTree
:[],
left
:[],
rightChecked
:[],
right
:[],
leftCheckedApp
:[],
leftApp
:[],
rightCheckedApp
:[],
rightApp
:[],
appRightList
:[]},
rules
:{
roleName
:[{
required
:
!
0
,
message
:
"请填写角色名称"
,
trigger
:
"blur"
}],
remark
:[{
required
:
!
0
,
message
:
"请填写角色说明"
,
trigger
:
"blur"
}]},
defaultProps
:{
children
:
"children"
,
label
:
"rightName"
},
appDataList
:[{
appId
:
"1"
,
appName
:
"签到"
,
appDesc
:
"签到"
,
appBackgroudColor
:
"#1890ff"
,
appIcon
:
"icon-hangzhengjiagou"
,
appType
:
0
,
status
:
3
,
remark
:
""
,
check
:
!
1
}]}},
computed
:{},
methods
:{
selectApp
:
function
(
e
){
if
(
this
.
showFlag
)
return
!
1
;
e
.
check
=!
e
.
check
},
submitForm
:
Object
(
d
.
a
)(
function
(
e
){
var
r
=
this
,
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
a
=
[];
r
.
$refs
.
tree
.
getCheckedKeys
().
concat
(
r
.
$refs
.
tree
.
getHalfCheckedKeys
()).
forEach
(
function
(
e
,
r
){
a
.
push
({
rightId
:
e
})}),
t
.
ruleForm
.
appRightList
=
[],
t
.
appDataList
.
forEach
(
function
(
e
){
1
==
e
.
check
&&
t
.
ruleForm
.
appRightList
.
push
(
e
.
appId
)}),
t
.
postSave
(
a
)})},
500
),
postSave
:
function
(
e
){
var
r
=
this
,
t
=
{
data
:
n
()(
e
),
roleId
:
r
.
ruleForm
.
roleId
,
roleName
:
r
.
ruleForm
.
roleName
,
remark
:
r
.
ruleForm
.
remark
,
brandId
:
r
.
ruleForm
.
brandId
,
appRightList
:
r
.
ruleForm
.
appRightList
.
join
(
","
)};
Object
(
m
.
e
)(
"/haoban-manage-web/save-role"
,
t
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
c
.
a
.
showmsg
(
"操作成功"
,
"success"
),
void
r
.
$router
.
push
(
"/setChildAdmin"
);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getMenuList
:
function
(){
var
e
=
this
;
Object
(
m
.
e
)(
"/haoban-manage-web/menu-list"
,{}).
then
(
function
(
r
){
var
t
=
r
.
data
;
if
(
1
!=
t
.
errorCode
)
h
.
a
.
errorMsg
(
t
);
else
{
if
(
t
.
result
&&
t
.
result
.
length
){
var
a
=
[];
t
.
result
.
forEach
(
function
(
r
,
t
){
e
.
ruleForm
.
roleId
&&
e
.
showFlag
&&
(
r
.
disabled
=!
0
),
r
.
display
&&
a
.
push
(
r
)}),
e
.
ruleForm
.
menuTree
=
e
.
treeData
(
a
)}
e
.
ruleForm
.
roleId
&&
e
.
getRoleDetail
(
e
.
ruleForm
.
roleId
)}}).
catch
(
function
(
r
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
r
.
message
})})},
treeData
:
function
(
e
){
return
e
.
filter
(
function
(
r
){
var
t
=
e
.
filter
(
function
(
e
){
return
r
.
haobanMenuRightId
==
e
.
parentRightId
});
return
t
.
length
>
0
&&
(
r
.
children
=
t
),
-
1
==
r
.
parentRightId
})},
getRoleDetail
:
function
(
e
){
var
r
=
this
,
t
=
{
roleId
:
e
};
Object
(
m
.
e
)(
"/haoban-manage-web/role-detail"
,
t
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
){
if
(
r
.
ruleForm
.
roleId
=
t
.
result
.
role
.
roleId
,
r
.
ruleForm
.
roleName
=
t
.
result
.
role
.
roleName
,
r
.
ruleForm
.
roleCode
=
t
.
result
.
role
.
roleCode
,
r
.
ruleForm
.
remark
=
t
.
result
.
role
.
remark
,
r
.
ruleForm
.
appRightList
=
t
.
result
.
appRightList
||
[],
r
.
ruleForm
.
right
.
length
){
var
a
=
r
.
ruleForm
.
right
.
map
(
function
(
e
){
return
e
.
rightId
}),
o
=
[];
t
.
result
.
menuRightList
.
forEach
(
function
(
e
,
r
){
a
.
includes
(
e
.
rightId
)
&&
o
.
push
(
e
.
rightId
)}),
r
.
ruleForm
.
rightChecked
=
o
}
var
i
=
[];
return
t
.
result
.
menuRightList
.
forEach
(
function
(
e
,
t
){
r
.
$refs
.
tree
.
getNode
(
e
.
rightId
).
isLeaf
&&
i
.
push
(
e
.
rightId
)}),
r
.
$refs
.
tree
.
setCheckedKeys
(
i
),
void
r
.
appDataList
.
forEach
(
function
(
e
){
r
.
ruleForm
.
appRightList
.
includes
(
e
.
appId
)
&&
(
e
.
check
=!
0
)})}
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
leftChange
:
function
(
e
,
r
){
var
t
=
this
;
t
.
ruleForm
.
leftChecked
=
e
;
var
a
=
e
.
includes
(
r
[
0
]);
function
o
(){
t
.
ruleForm
.
right
=
[],
t
.
ruleForm
.
left
.
forEach
(
function
(
e
,
o
){
e
.
rightId
.
includes
(
r
[
0
])
&&
(
e
.
check
=!!
a
,
e
.
children
&&
e
.
children
.
length
&&
e
.
children
.
forEach
(
function
(
e
,
r
){
t
.
ruleForm
.
right
.
push
(
e
)}))})}
e
.
includes
(
r
[
0
]),
o
(),
t
.
ruleForm
.
rightChecked
=
t
.
ruleForm
.
right
.
map
(
function
(
e
){
if
(
!
0
===
e
.
check
)
return
e
.
rightId
})},
rightChange
:
function
(
e
,
r
){
var
t
=
e
.
includes
(
r
[
0
]);
this
.
ruleForm
.
rightChecked
=
e
,
this
.
ruleForm
.
left
.
forEach
(
function
(
e
,
a
){
e
.
children
&&
e
.
children
.
length
&&
e
.
children
.
forEach
(
function
(
e
,
a
){
e
.
rightId
.
includes
(
r
[
0
])
&&
(
e
.
check
=!!
t
)})})},
getAppList
:
function
(){
var
e
=
this
;
Object
(
m
.
e
)(
"/haoban-manage-web/application-list"
,{}).
then
(
function
(
r
){
var
t
=
r
.
data
;
if
(
1
==
t
.
errorCode
)
return
t
.
result
&&
t
.
result
.
length
&&
t
.
result
.
forEach
(
function
(
e
){
e
.
check
=!
1
}),
void
(
e
.
appDataList
=
t
.
result
||
[]);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
r
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
r
.
message
})})}},
mounted
:
function
(){
var
e
=
this
;
e
.
$route
.
query
.
hasOwnProperty
(
"roleId"
)
&&
(
e
.
ruleForm
.
roleId
=
e
.
$route
.
query
.
roleId
,
e
.
navpath
[
3
].
name
=
"管理员角色"
,
"show"
===
e
.
$route
.
query
.
type
&&
(
e
.
showFlag
=!
0
)),
e
.
$route
.
query
.
hasOwnProperty
(
"brandId"
)
&&
(
e
.
ruleForm
.
brandId
=
e
.
$route
.
query
.
brandId
),
o
.
a
.
all
([
e
.
getAppList
()]).
then
(
function
(
r
){
e
.
getMenuList
()}).
catch
(
function
(
e
){})},
components
:{
navCrumb
:
l
.
a
,
limitInput
:
s
.
a
,
limitTextarea
:
u
.
a
}},
f
=
{
render
:
function
(){
var
e
=
this
,
r
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
r
;
return
t
(
"div"
,{
staticClass
:
"companyAddress-wrap common-set-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
$store
.
state
.
bgHeight
}},[
t
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"100px"
}},[
t
(
"el-form-item"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"roleName"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
ruleForm
.
roleName
,
disflag
:
!!
e
.
showFlag
,
holder
:
"请输入角色名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
r
){
e
.
$set
(
e
.
ruleForm
,
"roleName"
,
r
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"角色说明"
,
prop
:
"remark"
}},[
t
(
"limitTextarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
ruleForm
.
remark
,
holder
:
"请输入角色说明"
,
disInput
:
!!
e
.
showFlag
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
r
){
e
.
$set
(
e
.
ruleForm
,
"remark"
,
r
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
staticClass
:
"m-t-44"
,
attrs
:{
label
:
"菜单权限"
,
prop
:
"leftChecked"
}},[
t
(
"div"
,{
staticClass
:
"w-500 border-1 p-10 border-box el-form-item_menu"
,
style
:{
"max-height"
:
e
.
menuH
}},[
t
(
"el-tree"
,{
ref
:
"tree"
,
attrs
:{
data
:
e
.
ruleForm
.
menuTree
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"rightId"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"应用权限"
,
prop
:
""
}},[
t
(
"div"
,{
staticClass
:
"apps-content"
},[
t
(
"ul"
,{
staticClass
:
"flex flex-row flex-wrap"
},
e
.
_l
(
e
.
appDataList
,
function
(
r
,
a
){
return
t
(
"li"
,{
key
:
a
,
class
:[
"flex flex-align-center border-box flex"
,
r
.
check
?
"border-active"
:
""
],
on
:{
click
:
function
(
t
){
e
.
selectApp
(
r
)}}},[
t
(
"span"
,{
staticClass
:
"square-item flex flex-align-center flex-pack-center"
,
style
:{
background
:
r
.
appBackgroudColor
}},[
t
(
"img"
,{
attrs
:{
src
:
r
.
appIcon
,
alt
:
""
}})]),
e
.
_v
(
" "
),
t
(
"span"
,{
staticClass
:
"color-303133 font-14 p-l-8"
},[
e
.
_v
(
e
.
_s
(
r
.
appName
))]),
e
.
_v
(
" "
),
r
.
check
?
t
(
"div"
,{
staticClass
:
"common-cell_radio"
},[
t
(
"div"
,{
staticClass
:
"box-triangle"
},[
t
(
"div"
,{
staticClass
:
"wrap__box__outer"
},[
t
(
"i"
,{
staticClass
:
"el-icon-upload-success el-icon-check"
})])])]):
e
.
_e
()])}))])]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
showFlag
,
type
:
"primary"
},
on
:{
click
:
function
(
r
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
)],
1
)]),
e
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
g
=
t
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
t
(
"SPOA"
)},
"data-v-4226f61e"
,
null
);
r
.
default
=
g
.
exports
}});
webpackJsonp
([
80
],{
SPOA
:
function
(
e
,
r
){},
fZsz
:
function
(
e
,
r
,
t
){
"use strict"
;
Object
.
defineProperty
(
r
,
"__esModule"
,{
value
:
!
0
});
var
a
=
t
(
"//Fk"
),
o
=
t
.
n
(
a
),
i
=
t
(
"mvHQ"
),
n
=
t
.
n
(
i
),
l
=
t
(
"3Xzz"
),
s
=
t
(
"l46T"
),
u
=
t
(
"Kkt8"
),
c
=
t
(
"3E4D"
),
h
=
t
(
"Ch4/"
),
d
=
t
(
"PI0u"
),
m
=
t
(
"P9l9"
),
p
=
{
name
:
"addAdminRole"
,
data
:
function
(){
return
{
menuH
:
window
.
screen
.
availHeight
-
695
+
"px"
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"设置子管理员"
,
path
:
"/setChildAdmin"
},{
name
:
"新增管理员角色"
,
path
:
""
}],
showFlag
:
!
1
,
ruleForm
:{
roleId
:
""
,
roleName
:
""
,
remark
:
"角色说明"
,
leftChecked
:[],
menuTree
:[],
left
:[],
rightChecked
:[],
right
:[],
leftCheckedApp
:[],
leftApp
:[],
rightCheckedApp
:[],
rightApp
:[],
appRightList
:[]},
rules
:{
roleName
:[{
required
:
!
0
,
message
:
"请填写角色名称"
,
trigger
:
"blur"
}],
remark
:[{
required
:
!
0
,
message
:
"请填写角色说明"
,
trigger
:
"blur"
}]},
defaultProps
:{
children
:
"children"
,
label
:
"rightName"
},
appDataList
:[{
appId
:
"1"
,
appName
:
"签到"
,
appDesc
:
"签到"
,
appBackgroudColor
:
"#1890ff"
,
appIcon
:
"icon-hangzhengjiagou"
,
appType
:
0
,
status
:
3
,
remark
:
""
,
check
:
!
1
}]}},
computed
:{},
methods
:{
selectApp
:
function
(
e
){
if
(
this
.
showFlag
)
return
!
1
;
e
.
check
=!
e
.
check
},
submitForm
:
Object
(
d
.
a
)(
function
(
e
){
var
r
=
this
,
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
a
=
[];
r
.
$refs
.
tree
.
getCheckedKeys
().
concat
(
r
.
$refs
.
tree
.
getHalfCheckedKeys
()).
forEach
(
function
(
e
,
r
){
a
.
push
({
rightId
:
e
})}),
t
.
ruleForm
.
appRightList
=
[],
t
.
appDataList
.
forEach
(
function
(
e
){
1
==
e
.
check
&&
t
.
ruleForm
.
appRightList
.
push
(
e
.
appId
)}),
t
.
postSave
(
a
)})},
500
),
postSave
:
function
(
e
){
var
r
=
this
,
t
=
{
data
:
n
()(
e
),
roleId
:
r
.
ruleForm
.
roleId
,
roleName
:
r
.
ruleForm
.
roleName
,
remark
:
r
.
ruleForm
.
remark
,
brandId
:
r
.
ruleForm
.
brandId
,
appRightList
:
r
.
ruleForm
.
appRightList
.
join
(
","
)};
Object
(
m
.
e
)(
"/haoban-manage-web/save-role"
,
t
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
c
.
a
.
showmsg
(
"操作成功"
,
"success"
),
void
r
.
$router
.
push
(
"/setChildAdmin"
);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getMenuList
:
function
(){
var
e
=
this
;
Object
(
m
.
e
)(
"/haoban-manage-web/menu-list"
,{}).
then
(
function
(
r
){
var
t
=
r
.
data
;
if
(
1
!=
t
.
errorCode
)
h
.
a
.
errorMsg
(
t
);
else
{
if
(
t
.
result
&&
t
.
result
.
length
){
var
a
=
[];
t
.
result
.
forEach
(
function
(
r
,
t
){
e
.
ruleForm
.
roleId
&&
e
.
showFlag
&&
(
r
.
disabled
=!
0
),
r
.
display
&&
a
.
push
(
r
)}),
e
.
ruleForm
.
menuTree
=
e
.
treeData
(
a
)}
e
.
ruleForm
.
roleId
&&
e
.
getRoleDetail
(
e
.
ruleForm
.
roleId
)}}).
catch
(
function
(
r
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
r
.
message
})})},
treeData
:
function
(
e
){
return
e
.
filter
(
function
(
r
){
var
t
=
e
.
filter
(
function
(
e
){
return
r
.
haobanMenuRightId
==
e
.
parentRightId
});
return
t
.
length
>
0
&&
(
r
.
children
=
t
),
-
1
==
r
.
parentRightId
})},
getRoleDetail
:
function
(
e
){
var
r
=
this
,
t
=
{
roleId
:
e
};
Object
(
m
.
e
)(
"/haoban-manage-web/role-detail"
,
t
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
){
if
(
r
.
ruleForm
.
roleId
=
t
.
result
.
role
.
roleId
,
r
.
ruleForm
.
roleName
=
t
.
result
.
role
.
roleName
,
r
.
ruleForm
.
roleCode
=
t
.
result
.
role
.
roleCode
,
r
.
ruleForm
.
remark
=
t
.
result
.
role
.
remark
,
r
.
ruleForm
.
appRightList
=
t
.
result
.
appRightList
||
[],
r
.
ruleForm
.
right
.
length
){
var
a
=
r
.
ruleForm
.
right
.
map
(
function
(
e
){
return
e
.
rightId
}),
o
=
[];
t
.
result
.
menuRightList
.
forEach
(
function
(
e
,
r
){
a
.
includes
(
e
.
rightId
)
&&
o
.
push
(
e
.
rightId
)}),
r
.
ruleForm
.
rightChecked
=
o
}
var
i
=
[];
return
t
.
result
.
menuRightList
.
forEach
(
function
(
e
,
t
){
r
.
$refs
.
tree
.
getNode
(
e
.
rightId
).
isLeaf
&&
i
.
push
(
e
.
rightId
)}),
r
.
$refs
.
tree
.
setCheckedKeys
(
i
),
void
r
.
appDataList
.
forEach
(
function
(
e
){
r
.
ruleForm
.
appRightList
.
includes
(
e
.
appId
)
&&
(
e
.
check
=!
0
)})}
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
leftChange
:
function
(
e
,
r
){
var
t
=
this
;
t
.
ruleForm
.
leftChecked
=
e
;
var
a
=
e
.
includes
(
r
[
0
]);
function
o
(){
t
.
ruleForm
.
right
=
[],
t
.
ruleForm
.
left
.
forEach
(
function
(
e
,
o
){
e
.
rightId
.
includes
(
r
[
0
])
&&
(
e
.
check
=!!
a
,
e
.
children
&&
e
.
children
.
length
&&
e
.
children
.
forEach
(
function
(
e
,
r
){
t
.
ruleForm
.
right
.
push
(
e
)}))})}
e
.
includes
(
r
[
0
]),
o
(),
t
.
ruleForm
.
rightChecked
=
t
.
ruleForm
.
right
.
map
(
function
(
e
){
if
(
!
0
===
e
.
check
)
return
e
.
rightId
})},
rightChange
:
function
(
e
,
r
){
var
t
=
e
.
includes
(
r
[
0
]);
this
.
ruleForm
.
rightChecked
=
e
,
this
.
ruleForm
.
left
.
forEach
(
function
(
e
,
a
){
e
.
children
&&
e
.
children
.
length
&&
e
.
children
.
forEach
(
function
(
e
,
a
){
e
.
rightId
.
includes
(
r
[
0
])
&&
(
e
.
check
=!!
t
)})})},
getAppList
:
function
(){
var
e
=
this
;
Object
(
m
.
e
)(
"/haoban-manage-web/application-list"
,{}).
then
(
function
(
r
){
var
t
=
r
.
data
;
if
(
1
==
t
.
errorCode
)
return
t
.
result
&&
t
.
result
.
length
&&
t
.
result
.
forEach
(
function
(
e
){
e
.
check
=!
1
}),
void
(
e
.
appDataList
=
t
.
result
||
[]);
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
r
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
r
.
message
})})}},
mounted
:
function
(){
var
e
=
this
;
e
.
$route
.
query
.
hasOwnProperty
(
"roleId"
)
&&
(
e
.
ruleForm
.
roleId
=
e
.
$route
.
query
.
roleId
,
e
.
navpath
[
3
].
name
=
"管理员角色"
,
"show"
===
e
.
$route
.
query
.
type
&&
(
e
.
showFlag
=!
0
)),
e
.
$route
.
query
.
hasOwnProperty
(
"brandId"
)
&&
(
e
.
ruleForm
.
brandId
=
e
.
$route
.
query
.
brandId
),
o
.
a
.
all
([
e
.
getAppList
()]).
then
(
function
(
r
){
e
.
getMenuList
()}).
catch
(
function
(
e
){})},
components
:{
navCrumb
:
l
.
a
,
limitInput
:
s
.
a
,
limitTextarea
:
u
.
a
}},
f
=
{
render
:
function
(){
var
e
=
this
,
r
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
r
;
return
t
(
"div"
,{
staticClass
:
"companyAddress-wrap common-set-wrap"
},[
t
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"right-content"
},[
t
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
$store
.
state
.
bgHeight
}},[
t
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"100px"
}},[
t
(
"el-form-item"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"roleName"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
ruleForm
.
roleName
,
disflag
:
!!
e
.
showFlag
,
holder
:
"请输入角色名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
r
){
e
.
$set
(
e
.
ruleForm
,
"roleName"
,
r
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"角色说明"
,
prop
:
"remark"
}},[
t
(
"limitTextarea"
,{
attrs
:{
inputWidth
:
500
,
inputValue
:
e
.
ruleForm
.
remark
,
holder
:
"请输入角色说明"
,
disInput
:
!!
e
.
showFlag
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
r
){
e
.
$set
(
e
.
ruleForm
,
"remark"
,
r
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
staticClass
:
"m-t-44"
,
attrs
:{
label
:
"菜单权限"
,
prop
:
"leftChecked"
}},[
t
(
"div"
,{
staticClass
:
"w-500 border-1 p-10 border-box el-form-item_menu"
,
style
:{
"max-height"
:
e
.
menuH
}},[
t
(
"el-tree"
,{
ref
:
"tree"
,
attrs
:{
data
:
e
.
ruleForm
.
menuTree
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"rightId"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"应用权限"
,
prop
:
""
}},[
t
(
"div"
,{
staticClass
:
"apps-content"
},[
t
(
"ul"
,{
staticClass
:
"flex flex-row flex-wrap"
},
e
.
_l
(
e
.
appDataList
,
function
(
r
,
a
){
return
t
(
"li"
,{
key
:
a
,
class
:[
"flex flex-align-center border-box flex"
,
r
.
check
?
"border-active"
:
""
],
on
:{
click
:
function
(
t
){
e
.
selectApp
(
r
)}}},[
t
(
"span"
,{
staticClass
:
"square-item flex flex-align-center flex-pack-center"
,
style
:{
background
:
r
.
appBackgroudColor
}},[
t
(
"img"
,{
attrs
:{
src
:
r
.
appIcon
,
alt
:
""
}})]),
e
.
_v
(
" "
),
t
(
"span"
,{
staticClass
:
"color-303133 font-14 p-l-8"
},[
e
.
_v
(
e
.
_s
(
r
.
appName
))]),
e
.
_v
(
" "
),
r
.
check
?
t
(
"div"
,{
staticClass
:
"common-cell_radio"
},[
t
(
"div"
,{
staticClass
:
"box-triangle"
},[
t
(
"div"
,{
staticClass
:
"wrap__box__outer"
},[
t
(
"i"
,{
staticClass
:
"el-icon-upload-success el-icon-check"
})])])]):
e
.
_e
()])}))])]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
showFlag
,
type
:
"primary"
},
on
:{
click
:
function
(
r
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
)],
1
)]),
e
.
_v
(
" "
),
t
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
g
=
t
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
t
(
"SPOA"
)},
"data-v-4226f61e"
,
null
);
r
.
default
=
g
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
2.e93e0b8dc9338a7e214e
.js
→
dist/static/js/8
1.dc300d9df998b44e6232
.js
View file @
c46c6395
webpackJsonp
([
82
],{
"fIe/"
:
function
(
t
,
e
){},
t0b0
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"select-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
a
=
0
;
a
<
t
.
length
;
a
++
){
null
!=
t
.
charAt
(
a
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"draged-item-show"
},[
a
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
t
){
a
(
"fIe/"
)},
"data-v-3fd29910"
,
null
);
e
.
default
=
l
.
exports
}});
webpackJsonp
([
81
],{
"fIe/"
:
function
(
t
,
e
){},
t0b0
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
{
name
:
"select-com"
,
props
:{
childItem
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}}},
methods
:{
getZhLen
:
function
(
t
){
for
(
var
e
=
0
,
a
=
0
;
a
<
t
.
length
;
a
++
){
null
!=
t
.
charAt
(
a
).
match
(
/
[^\x
00-
\x
ff
]
/gi
)?
e
+=
1
:
e
+=
.
5
}
return
Math
.
ceil
(
e
)}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
class
:[
"opencard-item-title"
,
t
.
getZhLen
(
t
.
childItem
.
title
)
>=
6
?
"title-pre-wrap"
:
""
]},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
title
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"draged-item-show"
},[
a
(
"span"
,{
staticClass
:
"show-warm-text show-warm-text-flag select-flag"
},[
t
.
_v
(
t
.
_s
(
t
.
childItem
.
placeholder
)
+
" "
+
t
.
_s
(
t
.
childItem
.
isMust
?
"(必填)"
:
""
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
})])])])},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
t
){
a
(
"fIe/"
)},
"data-v-3fd29910"
,
null
);
e
.
default
=
l
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
3.51b9cb2cf0033f7c0e2
a.js
→
dist/static/js/8
2.144114e508b0964b3a4
a.js
View file @
c46c6395
webpackJsonp
([
83
],{
ByKK
:
function
(
e
,
t
){},
Knd1
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"云日报"
,
appIcon
:
window
.
unescape
(
this
.
$route
.
query
.
appIcon
),
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"云日报记录"
,
icon
:
"icon-ribao1"
,
onlyIconActive
:
!
1
},{
tabId
:
"22"
,
tabName
:
"任务下发设置"
,
icon
:
""
},{
tabId
:
"2"
,
tabName
:
"云日报设置"
,
icon
:
"icon-ribaoshezhi"
,
onlyIconActive
:
!
1
,
children
:[{
tabId
:
"21"
,
tabName
:
"模板配置"
,
icon
:
""
,
children
:[{
tabId
:
"211"
,
tabName
:
"系统报表"
,
icon
:
""
},{
tabId
:
"212"
,
tabName
:
"自定义报表"
,
icon
:
""
}]}]}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
c
.
a
.
errorMsg
(
a
):
a
.
result
?(
e
.
expiredFlag
=
a
.
result
,
e
.
forbidFlag
=
"forbid"
):
e
.
getExpired
()}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
,
this
.
getUpdated
()},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
this
.
changeRoute
(
"dailyRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
case
"21"
:
case
"211"
:
this
.
changeRoute
(
"systemReport?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"212"
:
this
.
changeRoute
(
"customReport?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"22"
:
this
.
changeRoute
(
"taskAssign?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"ByKK"
)},
"data-v-3cfa1f85"
,
null
);
t
.
default
=
u
.
exports
}});
webpackJsonp
([
82
],{
ByKK
:
function
(
e
,
t
){},
Knd1
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"云日报"
,
appIcon
:
window
.
unescape
(
this
.
$route
.
query
.
appIcon
),
activeSelTab
:
"1"
,
activeTab
:
"1"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"云日报记录"
,
icon
:
"icon-ribao1"
,
onlyIconActive
:
!
1
},{
tabId
:
"22"
,
tabName
:
"任务下发设置"
,
icon
:
""
},{
tabId
:
"2"
,
tabName
:
"云日报设置"
,
icon
:
"icon-ribaoshezhi"
,
onlyIconActive
:
!
1
,
children
:[{
tabId
:
"21"
,
tabName
:
"模板配置"
,
icon
:
""
,
children
:[{
tabId
:
"211"
,
tabName
:
"系统报表"
,
icon
:
""
},{
tabId
:
"212"
,
tabName
:
"自定义报表"
,
icon
:
""
}]}]}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
c
.
a
.
errorMsg
(
a
):
a
.
result
?(
e
.
expiredFlag
=
a
.
result
,
e
.
forbidFlag
=
"forbid"
):
e
.
getExpired
()}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
,
this
.
getUpdated
()},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
this
.
changeRoute
(
"dailyRecord?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
case
"21"
:
case
"211"
:
this
.
changeRoute
(
"systemReport?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"212"
:
this
.
changeRoute
(
"customReport?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"22"
:
this
.
changeRoute
(
"taskAssign?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"ByKK"
)},
"data-v-3cfa1f85"
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
4.623af63bdee6d478308d
.js
→
dist/static/js/8
3.8f8eee29795665b74226
.js
View file @
c46c6395
webpackJsonp
([
84
],{
Rwbg
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"3Xzz"
),
i
=
a
(
"elmV"
),
o
=
a
(
"P9l9"
),
n
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
s
.
a
,
uploadExcelComponent
:
i
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"行政架构"
,
path
:
"administrativeFrame"
},{
name
:
"批量导入导出"
,
path
:
""
}],
host
:
window
.
location
.
origin
,
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/emp/upload"
,
uploadSuccessMsg
:
""
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
};
Object
(
o
.
a
)(
"/haoban-manage-web/error-log-page"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
.
result
,
t
.
loading
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
uploadSuccess
:
function
(
t
){
var
e
=
this
;
1
==
t
.
errorCode
?(
e
.
$forceUpdate
(),
e
.
uploadSuccessMsg
=
t
.
message
.
split
(
","
),
e
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
e
.
$nextTick
(
function
(){
e
.
fileList
=
[]})):
e
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
getChange
:
function
(
t
,
e
){
var
a
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
s
=
t
.
name
.
lastIndexOf
(
"."
),
i
=
t
.
name
.
substring
(
s
+
1
,
t
.
name
.
length
);
if
(
!
(
i
.
includes
(
"xls"
)
||
i
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
a
,
1
),
!
1
;
this
.
fileList
=
[
e
[
a
]]}},
beforeMount
:
function
(){
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
height
:
t
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"io-container border-box "
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入通讯录"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"export"
}},[
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载员工通讯录模板,统一收集员工信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"step-div"
},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传收集完毕的员工信息表
\
n "
),
a
(
"div"
,{
staticClass
:
"d-u-btn"
},[
a
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"on-remove"
:
t
.
handleRemove
}},[
a
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"up-btn-div"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
"export"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出所有员工信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/emp/export?departmentId="
+
t
.
$route
.
query
.
departmentId
+
"&showChild="
+
t
.
$route
.
query
.
showChildMember
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
),
t
.
_v
(
"
\
n 批量修改员工信息
\
n "
)])]):
a
(
"div"
,{
staticClass
:
"error-log import"
},[
a
(
"div"
,{
staticClass
:
"title-area"
},[
a
(
"div"
,{
staticClass
:
"tip"
},[
t
.
_v
(
t
.
_s
(
t
.
uploadSuccessMsg
))]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/error-improt-log-export?importCode="
+
t
.
$route
.
query
.
importCode
+
"&departmentId="
+
t
.
$route
.
query
.
departmentId
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误提示"
,
prop
:
"failReason"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"部门ID"
,
prop
:
"departmentId"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"是否此部门负责人(是/否)"
,
prop
:
"isManager"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
1
==
e
.
row
.
isManager
?
"是"
:
"否"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"入职时间"
,
prop
:
"hireDate"
}})],
1
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"ul"
,{
staticClass
:
"tip-area border-box "
},[
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/companyCertify"
}},[
t
.
_v
(
"企业认证"
)])]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"不能在本excel表中对员工信息类别进行增加、删除、修改"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"标*字段为必填字段,未标*字段为选填字段"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证"
)])])}]};
var
l
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
t
){
a
(
"V5lM"
)},
null
,
null
);
e
.
default
=
l
.
exports
},
V5lM
:
function
(
t
,
e
){}});
webpackJsonp
([
83
],{
Rwbg
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"3Xzz"
),
i
=
a
(
"elmV"
),
o
=
a
(
"P9l9"
),
n
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
s
.
a
,
uploadExcelComponent
:
i
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"行政架构"
,
path
:
"administrativeFrame"
},{
name
:
"批量导入导出"
,
path
:
""
}],
host
:
window
.
location
.
origin
,
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/emp/upload"
,
uploadSuccessMsg
:
""
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
};
Object
(
o
.
a
)(
"/haoban-manage-web/error-log-page"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
.
result
,
t
.
loading
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
uploadSuccess
:
function
(
t
){
var
e
=
this
;
1
==
t
.
errorCode
?(
e
.
$forceUpdate
(),
e
.
uploadSuccessMsg
=
t
.
message
.
split
(
","
),
e
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
e
.
$nextTick
(
function
(){
e
.
fileList
=
[]})):
e
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
getChange
:
function
(
t
,
e
){
var
a
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
s
=
t
.
name
.
lastIndexOf
(
"."
),
i
=
t
.
name
.
substring
(
s
+
1
,
t
.
name
.
length
);
if
(
!
(
i
.
includes
(
"xls"
)
||
i
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
a
,
1
),
!
1
;
this
.
fileList
=
[
e
[
a
]]}},
beforeMount
:
function
(){
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
height
:
t
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"io-container border-box "
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
a
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入通讯录"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"export"
}},[
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载员工通讯录模板,统一收集员工信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"step-div"
},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传收集完毕的员工信息表
\
n "
),
a
(
"div"
,{
staticClass
:
"d-u-btn"
},[
a
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"auto-upload"
:
!
1
,
"on-remove"
:
t
.
handleRemove
}},[
a
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"up-btn-div"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"上传"
)])],
1
)]):
"export"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出所有员工信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/emp/export?departmentId="
+
t
.
$route
.
query
.
departmentId
+
"&showChild="
+
t
.
$route
.
query
.
showChildMember
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
),
t
.
_v
(
"
\
n 批量修改员工信息
\
n "
)])]):
a
(
"div"
,{
staticClass
:
"error-log import"
},[
a
(
"div"
,{
staticClass
:
"title-area"
},[
a
(
"div"
,{
staticClass
:
"tip"
},[
t
.
_v
(
t
.
_s
(
t
.
uploadSuccessMsg
))]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/error-improt-log-export?importCode="
+
t
.
$route
.
query
.
importCode
+
"&departmentId="
+
t
.
$route
.
query
.
departmentId
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误提示"
,
prop
:
"failReason"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phoneNumber"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"部门ID"
,
prop
:
"departmentId"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
,
prop
:
"positionName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"是否此部门负责人(是/否)"
,
prop
:
"isManager"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
1
==
e
.
row
.
isManager
?
"是"
:
"否"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"入职时间"
,
prop
:
"hireDate"
}})],
1
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"ul"
,{
staticClass
:
"tip-area border-box "
},[
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/companyCertify"
}},[
t
.
_v
(
"企业认证"
)])]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"不能在本excel表中对员工信息类别进行增加、删除、修改"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"标*字段为必填字段,未标*字段为选填字段"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证"
)])])}]};
var
l
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
t
){
a
(
"V5lM"
)},
null
,
null
);
e
.
default
=
l
.
exports
},
V5lM
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
5.bb3f229cc47b83dec5db
.js
→
dist/static/js/8
4.ae9e016eb15a5ec99e7f
.js
View file @
c46c6395
webpackJsonp
([
85
],{
"5x7s"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"2eFk"
),
n
=
a
(
"Ke24"
),
i
=
a
(
"PI0u"
),
o
=
a
(
"Ch4/"
),
c
=
a
(
"3E4D"
),
r
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"任务下发设置"
}],
activeId
:
"1"
,
setData
:{
status
:
!
1
,
time
:
"12:00"
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
i
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
status
:
t
.
setData
.
status
?
"1"
:
"0"
,
time
:
t
.
setData
.
time
};
Object
(
r
.
e
)(
"/haoban-app-daily-web/daily/create-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
o
.
a
.
errorMsg
(
e
):
c
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
};
Object
(
r
.
e
)(
"/haoban-app-daily-web/daily/get-setting"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
setData
.
status
=
1
==
a
.
result
.
status
,
void
(
t
.
setData
.
time
=
a
.
result
.
time
);
o
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"22"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
s
.
a
,
commonDetailTop
:
n
.
a
}},
l
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"task-set-cell"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-10 font-w-500"
},[
t
.
_v
(
"日报开关设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-606266 m-b-16"
},[
t
.
_v
(
"开启后,日报将定时发送"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
" "
,
"inactive-text"
:
" "
},
model
:{
value
:
t
.
setData
.
status
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setData
,
"status"
,
e
)},
expression
:
"setData.status"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-cell"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-10 font-w-500"
},[
t
.
_v
(
"日报每日下发时间设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-606266 m-b-16"
},[
t
.
_v
(
"该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-time-select"
,{
staticClass
:
"w-118"
,
attrs
:{
editable
:
!
1
,
clearable
:
!
1
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:15"
,
end
:
"23:45"
},
placeholder
:
"选择时间"
},
model
:{
value
:
t
.
setData
.
time
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setData
,
"time"
,
e
)},
expression
:
"setData.time"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
l
,
!
1
,
function
(
t
){
a
(
"IIkM"
)},
"data-v-35e62cb4"
,
null
);
e
.
default
=
u
.
exports
},
IIkM
:
function
(
t
,
e
){}});
webpackJsonp
([
84
],{
"5x7s"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"2eFk"
),
n
=
a
(
"Ke24"
),
i
=
a
(
"PI0u"
),
o
=
a
(
"Ch4/"
),
c
=
a
(
"3E4D"
),
r
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
topMenuData
:[{
id
:
"1"
,
name
:
"任务下发设置"
}],
activeId
:
"1"
,
setData
:{
status
:
!
1
,
time
:
"12:00"
}}},
computed
:{},
methods
:{
saveSet
:
Object
(
i
.
a
)(
function
(){
this
.
postSave
()},
500
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
,
status
:
t
.
setData
.
status
?
"1"
:
"0"
,
time
:
t
.
setData
.
time
};
Object
(
r
.
e
)(
"/haoban-app-daily-web/daily/create-setting"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
1
!=
e
.
errorCode
?
o
.
a
.
errorMsg
(
e
):
c
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
t
=
this
,
e
=
{
brandId
:
t
.
activeBrand
};
Object
(
r
.
e
)(
"/haoban-app-daily-web/daily/get-setting"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
setData
.
status
=
1
==
a
.
result
.
status
,
void
(
t
.
setData
.
time
=
a
.
result
.
time
);
o
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"22"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
s
.
a
,
commonDetailTop
:
n
.
a
}},
l
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"task-set-cell"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-10 font-w-500"
},[
t
.
_v
(
"日报开关设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-606266 m-b-16"
},[
t
.
_v
(
"开启后,日报将定时发送"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{},[
a
(
"el-switch"
,{
attrs
:{
"active-text"
:
" "
,
"inactive-text"
:
" "
},
model
:{
value
:
t
.
setData
.
status
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setData
,
"status"
,
e
)},
expression
:
"setData.status"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-cell"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-606266 m-b-10 font-w-500"
},[
t
.
_v
(
"日报每日下发时间设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-14 color-606266 m-b-16"
},[
t
.
_v
(
"该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置"
)]),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-time-select"
,{
staticClass
:
"w-118"
,
attrs
:{
editable
:
!
1
,
clearable
:
!
1
,
"picker-options"
:{
start
:
"00:00"
,
step
:
"00:15"
,
end
:
"23:45"
},
placeholder
:
"选择时间"
},
model
:{
value
:
t
.
setData
.
time
,
callback
:
function
(
e
){
t
.
$set
(
t
.
setData
,
"time"
,
e
)},
expression
:
"setData.time"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"task-set-save m-t-30"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
l
,
!
1
,
function
(
t
){
a
(
"IIkM"
)},
"data-v-35e62cb4"
,
null
);
e
.
default
=
u
.
exports
},
IIkM
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
6.3399c563d69998ce97e8
.js
→
dist/static/js/8
5.bfae8273934cbb68d34c
.js
View file @
c46c6395
webpackJsonp
([
86
],{
cK0D
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"2eFk"
),
o
=
a
(
"Ke24"
),
i
=
a
(
"nsZK"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"PI0u"
),
l
=
a
(
"Ch4/"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标任务"
,
path
:
""
}],
showDialog
:
!
1
,
conditionObj
:{
searchInput
:
""
,
storeGroupIds
:[],
storeStatus
:
""
,
dateRange
:[]},
storeStatusOptions
:[{
value
:
""
,
label
:
"所有门店状态"
},{
value
:
"0"
,
label
:
"待审核"
},{
value
:
"1"
,
label
:
"正常"
},{
value
:
"2"
,
label
:
"审核失败"
},{
value
:
"3"
,
label
:
"停业整顿"
},{
value
:
"4"
,
label
:
"回收站"
},{
value
:
"5"
,
label
:
"删除"
}],
selectRadio
:
0
,
tableData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
loading
:
!
1
}},
computed
:{},
methods
:{
handleCommand
:
function
(
t
){
this
.
selectRadio
=
t
},
setSelectTab
:
function
(
t
){
this
.
activeTab
=
t
.
tabId
},
toInput
:
Object
(
s
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
checkStoreGroupIds
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
conditionObj
.
storeGroupIds
=
t
,
this
.
getTableList
()},
changeStoreStatus
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
t
){
t
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
exportExcel
:
function
(){
var
t
=
this
,
e
=
{
keyword
:
t
.
conditionObj
.
searchInput
,
storeGroupIds
:
t
.
conditionObj
.
storeGroupIds
.
map
(
function
(
t
){
return
t
.
groupId
}).
join
(
","
)
||
""
,
storeStatus
:
t
.
conditionObj
.
storeStatus
,
startDate
:
t
.
conditionObj
.
dateRange
?
t
.
conditionObj
.
dateRange
[
0
]:
""
,
endDate
:
t
.
conditionObj
.
dateRange
?
t
.
conditionObj
.
dateRange
[
1
]:
""
,
brandId
:
t
.
activeBrand
};
Object
(
r
.
b
)(
"/haoban-app-performance-web/performance/export-store-month-performance-task"
,
e
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
l
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
e
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
a
=
document
.
createElement
(
"a"
);
a
.
download
=
"store-month-performance-task.xls"
,
a
.
style
.
display
=
"none"
,
a
.
href
=
URL
.
createObjectURL
(
e
),
document
.
body
.
appendChild
(
a
),
a
.
click
(),
URL
.
revokeObjectURL
(
a
.
href
),
document
.
body
.
removeChild
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
toDetail
:
function
(
t
,
e
){
var
a
=
""
,
n
=
""
;
this
.
conditionObj
.
dateRange
.
length
>
0
&&
(
a
=
this
.
conditionObj
.
dateRange
[
0
],
n
=
this
.
conditionObj
.
dateRange
[
1
]),
this
.
$router
.
push
(
"monthTaskDetail?storeId="
+
e
.
storeId
+
"&startDate="
+
a
+
"&endDate="
+
n
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
getTableList
:
function
(
t
){
var
e
=
this
;
e
.
loading
=!
0
,
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
a
=
{
keyword
:
e
.
conditionObj
.
searchInput
||
""
,
storeGroupIds
:
e
.
conditionObj
.
storeGroupIds
.
map
(
function
(
t
){
return
t
.
groupId
}).
join
(
","
)
||
""
,
storeStatus
:
e
.
conditionObj
.
storeStatus
||
""
,
startDate
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
brandId
:
e
.
activeBrand
};
Object
(
r
.
a
)(
"/haoban-app-performance-web/performance/query-store-month-performance-task"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
list
||
[],
e
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getTableList
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"13"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
activeGroup
=
this
.
activeGroupId
,
this
.
brandId
&&
this
.
getTableList
()},
destroyed
:
function
(){
this
.
activeGroup
=
""
,
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
n
.
a
,
commonDetailTop
:
o
.
a
,
storeTreeSelect
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap common-right-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入门店名称/code"
},
nativeOn
:{
keyup
:
function
(
e
){
return
a
=
e
,
t
.
toInput
(
a
,
t
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
t
.
conditionObj
.
searchInput
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"searchInput"
,
e
)},
expression
:
"conditionObj.searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
t
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeStoreStatus
},
model
:{
value
:
t
.
conditionObj
.
storeStatus
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"storeStatus"
,
e
)},
expression
:
"conditionObj.storeStatus"
}},
t
.
_l
(
t
.
storeStatusOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})})),
t
.
_v
(
" "
),
a
(
"store-tree-select"
,{
attrs
:{
brandId
:
t
.
brandId
,
activeGroupId
:
t
.
activeGroupId
},
on
:{
checkStoreGroupIds
:
t
.
checkStoreGroupIds
}}),
t
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
staticStyle
:{
width
:
"310px"
},
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM"
,
type
:
"monthrange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始月份"
,
"end-placeholder"
:
"结束月份"
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
conditionObj
.
dateRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"dateRange"
,
e
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
exportExcel
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeName"
,
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"taskCount"
,
label
:
"任务总数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"completedCount"
,
label
:
"已完成(含放弃)"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"completedRate"
,
label
:
"完成率(含放弃)"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"noCompletedCount"
,
label
:
"待完成"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"overdueCount"
,
label
:
"逾期中"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toDetail
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"查看详情"
)])]}}])})],
1
),
t
.
_v
(
" "
),
0
!=
t
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
t
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
a
(
"xyyH"
)},
"data-v-30fad0e2"
,
null
);
e
.
default
=
u
.
exports
},
xyyH
:
function
(
t
,
e
){}});
webpackJsonp
([
85
],{
cK0D
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"2eFk"
),
o
=
a
(
"Ke24"
),
i
=
a
(
"nsZK"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"PI0u"
),
l
=
a
(
"Ch4/"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
activeTab
:
"1"
,
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"指标管理"
,
path
:
"/monthList?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
"月指标任务"
,
path
:
""
}],
showDialog
:
!
1
,
conditionObj
:{
searchInput
:
""
,
storeGroupIds
:[],
storeStatus
:
""
,
dateRange
:[]},
storeStatusOptions
:[{
value
:
""
,
label
:
"所有门店状态"
},{
value
:
"0"
,
label
:
"待审核"
},{
value
:
"1"
,
label
:
"正常"
},{
value
:
"2"
,
label
:
"审核失败"
},{
value
:
"3"
,
label
:
"停业整顿"
},{
value
:
"4"
,
label
:
"回收站"
},{
value
:
"5"
,
label
:
"删除"
}],
selectRadio
:
0
,
tableData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
loading
:
!
1
}},
computed
:{},
methods
:{
handleCommand
:
function
(
t
){
this
.
selectRadio
=
t
},
setSelectTab
:
function
(
t
){
this
.
activeTab
=
t
.
tabId
},
toInput
:
Object
(
s
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
checkStoreGroupIds
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
conditionObj
.
storeGroupIds
=
t
,
this
.
getTableList
()},
changeStoreStatus
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
t
){
t
||
(
this
.
conditionObj
.
dateRange
=
[]),
this
.
currentPage
=
1
,
this
.
getTableList
()},
exportExcel
:
function
(){
var
t
=
this
,
e
=
{
keyword
:
t
.
conditionObj
.
searchInput
,
storeGroupIds
:
t
.
conditionObj
.
storeGroupIds
.
map
(
function
(
t
){
return
t
.
groupId
}).
join
(
","
)
||
""
,
storeStatus
:
t
.
conditionObj
.
storeStatus
,
startDate
:
t
.
conditionObj
.
dateRange
?
t
.
conditionObj
.
dateRange
[
0
]:
""
,
endDate
:
t
.
conditionObj
.
dateRange
?
t
.
conditionObj
.
dateRange
[
1
]:
""
,
brandId
:
t
.
activeBrand
};
Object
(
r
.
b
)(
"/haoban-app-performance-web/performance/export-store-month-performance-task"
,
e
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
l
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
e
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
a
=
document
.
createElement
(
"a"
);
a
.
download
=
"store-month-performance-task.xls"
,
a
.
style
.
display
=
"none"
,
a
.
href
=
URL
.
createObjectURL
(
e
),
document
.
body
.
appendChild
(
a
),
a
.
click
(),
URL
.
revokeObjectURL
(
a
.
href
),
document
.
body
.
removeChild
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
toDetail
:
function
(
t
,
e
){
var
a
=
""
,
n
=
""
;
this
.
conditionObj
.
dateRange
.
length
>
0
&&
(
a
=
this
.
conditionObj
.
dateRange
[
0
],
n
=
this
.
conditionObj
.
dateRange
[
1
]),
this
.
$router
.
push
(
"monthTaskDetail?storeId="
+
e
.
storeId
+
"&startDate="
+
a
+
"&endDate="
+
n
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
getTableList
:
function
(
t
){
var
e
=
this
;
e
.
loading
=!
0
,
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
a
=
{
keyword
:
e
.
conditionObj
.
searchInput
||
""
,
storeGroupIds
:
e
.
conditionObj
.
storeGroupIds
.
map
(
function
(
t
){
return
t
.
groupId
}).
join
(
","
)
||
""
,
storeStatus
:
e
.
conditionObj
.
storeStatus
||
""
,
startDate
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endDate
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
brandId
:
e
.
activeBrand
};
Object
(
r
.
a
)(
"/haoban-app-performance-web/performance/query-store-month-performance-task"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
e
.
loading
=!
1
,
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
list
||
[],
e
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
getTableList
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"13"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
activeGroup
=
this
.
activeGroupId
,
this
.
brandId
&&
this
.
getTableList
()},
destroyed
:
function
(){
this
.
activeGroup
=
""
,
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
n
.
a
,
commonDetailTop
:
o
.
a
,
storeTreeSelect
:
i
.
a
}},
d
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap common-right-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"daily-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-23"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入门店名称/code"
},
nativeOn
:{
keyup
:
function
(
e
){
return
a
=
e
,
t
.
toInput
(
a
,
t
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
t
.
conditionObj
.
searchInput
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"searchInput"
,
e
)},
expression
:
"conditionObj.searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
t
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeStoreStatus
},
model
:{
value
:
t
.
conditionObj
.
storeStatus
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"storeStatus"
,
e
)},
expression
:
"conditionObj.storeStatus"
}},
t
.
_l
(
t
.
storeStatusOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})})),
t
.
_v
(
" "
),
a
(
"store-tree-select"
,{
attrs
:{
brandId
:
t
.
brandId
,
activeGroupId
:
t
.
activeGroupId
},
on
:{
checkStoreGroupIds
:
t
.
checkStoreGroupIds
}}),
t
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10"
,
staticStyle
:{
width
:
"310px"
},
attrs
:{
editable
:
!
1
,
"value-format"
:
"yyyy-MM"
,
type
:
"monthrange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始月份"
,
"end-placeholder"
:
"结束月份"
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
conditionObj
.
dateRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
conditionObj
,
"dateRange"
,
e
)},
expression
:
"conditionObj.dateRange"
}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
exportExcel
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeName"
,
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"taskCount"
,
label
:
"任务总数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"completedCount"
,
label
:
"已完成(含放弃)"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"completedRate"
,
label
:
"完成率(含放弃)"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"noCompletedCount"
,
label
:
"待完成"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"overdueCount"
,
label
:
"逾期中"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
t
.
toDetail
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"查看详情"
)])]}}])})],
1
),
t
.
_v
(
" "
),
0
!=
t
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
t
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
t
){
a
(
"xyyH"
)},
"data-v-30fad0e2"
,
null
);
e
.
default
=
u
.
exports
},
xyyH
:
function
(
t
,
e
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
7.29432e7113f42af0aa23
.js
→
dist/static/js/8
6.62d40f9d4fac7cd847c0
.js
View file @
c46c6395
webpackJsonp
([
87
],{
"8msp"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
o
=
a
.
n
(
i
),
n
=
a
(
"Ie7z"
),
s
=
a
(
"Ke24"
),
r
=
a
(
"b28S"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
s
.
a
,
vueSelectStore
:
n
.
a
,
chatLogList
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
enterpriseId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"在线沟通设置"
,
path
:
"/onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&activeTab="
+
this
.
$route
.
query
.
activeTab
},{
id
:
"2"
,
name
:
3
==
this
.
$route
.
query
.
activeTab
?
"图文发送记录"
:
1
==
this
.
$route
.
query
.
tabType
?
"微商城商品发送记录"
:
2
==
this
.
$route
.
query
.
tabType
?
"积分商城商品发送记录"
:
""
}],
tableData
:[],
conditionObj
:{
searchInput
:
""
,
searchType
:
"1"
,
storeGroup
:[],
dateRange
:[]},
choiceDateCopy
:[],
pickerOptions
:{
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
])}}],
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
i
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
i
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
i
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
i
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
showFlag
:
!
1
,
itemRow
:{}}},
methods
:{
delSelectData
:
function
(
e
){
this
.
defaultStoreList
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
showSingleInfo
:
function
(
e
){},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[],
i
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
i
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
enterpriseId
:
e
.
enterpriseId
,
relatedId
:
e
.
$route
.
query
.
relatedId
,
type
:
e
.
$route
.
query
.
tabType
,
keyword
:
e
.
conditionObj
.
searchInput
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
clerkIds
:
i
.
join
(
","
)
||
""
,
startTime
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
e
.
activeBrand
};
Object
(
l
.
b
)(
"/haoban-app-member-web/customer/export_message_log"
,
o
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
c
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
1
==
e
.
$route
.
query
.
tabType
?
"微商城商品"
:
2
==
e
.
$route
.
query
.
tabType
?
"积分商城商品"
:
"图文"
,
i
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
o
=
a
+
"发送记录.csv"
,
n
=
document
.
createElement
(
"a"
);
n
.
download
=
o
,
n
.
style
.
display
=
"none"
,
n
.
href
=
URL
.
createObjectURL
(
i
),
document
.
body
.
appendChild
(
n
),
n
.
click
(),
URL
.
revokeObjectURL
(
n
.
href
),
document
.
body
.
removeChild
(
n
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
dateRange
=
[]),
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDetail
:
function
(
e
,
t
){
this
.
showFlag
=!
0
;
var
a
=
JSON
.
parse
(
o
()(
t
));
a
.
userMessageId
=
""
,
this
.
itemRow
=
a
},
hideDetail
:
function
(){
this
.
showFlag
=!
1
,
this
.
itemRow
=
{},
this
.
$nextTick
(
function
(){
document
.
body
.
style
.
overflow
=
"auto"
})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
i
=
[],
o
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
o
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
i
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
n
=
{
enterpriseId
:
t
.
enterpriseId
,
relatedId
:
t
.
$route
.
query
.
relatedId
,
type
:
t
.
$route
.
query
.
tabType
,
keyword
:
t
.
conditionObj
.
searchInput
||
""
,
groupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
i
.
join
(
","
)
||
""
,
clerkIds
:
o
.
join
(
","
)
||
""
,
startTime
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
l
.
e
)(
"/haoban-app-member-web/customer/send_message_log"
,
n
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
total
,
!
1
;
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log border-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content border-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-20"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"请输入导购姓名/手机号/code"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}}),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 m-r-10"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}}),
a
(
"el-button"
,{
staticStyle
:{
"vertical-align"
:
"middle"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
_v
(
"门店架构选人"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
})]),
e
.
_v
(
" "
),
e
.
defaultStoreList
.
length
?
a
(
"div"
,{
staticClass
:
"select-data-wrap m-b-20"
},[
a
(
"ul"
,{
staticClass
:
"selector-selected-list flex flex-wrap"
},[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"li"
,{
key
:
i
+
t
.
id
+
t
.
label
,
staticClass
:
"select-item"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
t
){
e
.
delSelectData
(
i
)}}})])]})],
2
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"导购信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"400"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
applyId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
t
.
row
.
clerkImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info-right flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"apply-info-name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
),
a
(
"i"
,{
class
:[
2
==
t
.
row
.
sex
?
"icon-xingbienv color-FF585C"
:
"icon-xingbienan color-508CEE"
,
"iconfont"
]})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-code"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"员工代码:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkCode
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhoneNumber
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-job"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"职位:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
positionName
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属门店:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
clerkImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info over-hidden"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"导购手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhoneNumber
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
memberImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
memberImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberPhoneNumber
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"发送时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"chat-log-list"
,{
attrs
:{
brandId
:
e
.
brandId
,
itemRow
:
e
.
itemRow
,
showFlag
:
e
.
showFlag
},
on
:{
hideDetail
:
e
.
hideDetail
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"LOWD"
)},
"data-v-304d5fad"
,
null
);
t
.
default
=
h
.
exports
},
LOWD
:
function
(
e
,
t
){}});
webpackJsonp
([
86
],{
"8msp"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
o
=
a
.
n
(
i
),
n
=
a
(
"Ie7z"
),
s
=
a
(
"Ke24"
),
r
=
a
(
"b28S"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
s
.
a
,
vueSelectStore
:
n
.
a
,
chatLogList
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
enterpriseId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"在线沟通设置"
,
path
:
"/onlineChatSet?appIcon="
+
this
.
$route
.
query
.
appIcon
+
"&activeTab="
+
this
.
$route
.
query
.
activeTab
},{
id
:
"2"
,
name
:
3
==
this
.
$route
.
query
.
activeTab
?
"图文发送记录"
:
1
==
this
.
$route
.
query
.
tabType
?
"微商城商品发送记录"
:
2
==
this
.
$route
.
query
.
tabType
?
"积分商城商品发送记录"
:
""
}],
tableData
:[],
conditionObj
:{
searchInput
:
""
,
searchType
:
"1"
,
storeGroup
:[],
dateRange
:[]},
choiceDateCopy
:[],
pickerOptions
:{
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
])}}],
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
i
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
i
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
i
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
i
||
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}
return
t
.
getTime
()
>
Date
.
now
()
-
864
e4
}},
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
showFlag
:
!
1
,
itemRow
:{}}},
methods
:{
delSelectData
:
function
(
e
){
this
.
defaultStoreList
.
splice
(
e
,
1
),
this
.
currentPage
=
1
,
this
.
getTableList
()},
showSingleInfo
:
function
(
e
){},
exportExcel
:
function
(){
var
e
=
this
,
t
=
[],
a
=
[],
i
=
[];
e
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
i
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
t
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
e
.
conditionObj
.
dateRange
||
(
e
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
enterpriseId
:
e
.
enterpriseId
,
relatedId
:
e
.
$route
.
query
.
relatedId
,
type
:
e
.
$route
.
query
.
tabType
,
keyword
:
e
.
conditionObj
.
searchInput
||
""
,
groupIds
:
t
.
join
(
","
)
||
""
,
storeIds
:
a
.
join
(
","
)
||
""
,
clerkIds
:
i
.
join
(
","
)
||
""
,
startTime
:
e
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
e
.
conditionObj
.
dateRange
[
1
]
||
""
,
brandId
:
e
.
activeBrand
};
Object
(
l
.
b
)(
"/haoban-app-member-web/customer/export_message_log"
,
o
).
then
(
function
(
t
){
if
(
!
t
.
data
)
return
c
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
1
==
e
.
$route
.
query
.
tabType
?
"微商城商品"
:
2
==
e
.
$route
.
query
.
tabType
?
"积分商城商品"
:
"图文"
,
i
=
new
Blob
([
t
.
data
],{
type
:
"application/vnd.ms-excel"
}),
o
=
a
+
"发送记录.csv"
,
n
=
document
.
createElement
(
"a"
);
n
.
download
=
o
,
n
.
style
.
display
=
"none"
,
n
.
href
=
URL
.
createObjectURL
(
i
),
document
.
body
.
appendChild
(
n
),
n
.
click
(),
URL
.
revokeObjectURL
(
n
.
href
),
document
.
body
.
removeChild
(
n
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toInput
:
Object
(
d
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
changeDate
:
function
(
e
){
e
||
(
this
.
choiceDateCopy
=
[],
this
.
conditionObj
.
dateRange
=
[]),
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
changed
=
e
,
this
.
defaultStoreList
=
t
,
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
}},
handleSelectedList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
conditionObj
.
storeGroup
=
e
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
showDetail
:
function
(
e
,
t
){
this
.
showFlag
=!
0
;
var
a
=
JSON
.
parse
(
o
()(
t
));
a
.
userMessageId
=
""
,
this
.
itemRow
=
a
},
hideDetail
:
function
(){
this
.
showFlag
=!
1
,
this
.
itemRow
=
{},
this
.
$nextTick
(
function
(){
document
.
body
.
style
.
overflow
=
"auto"
})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
[],
i
=
[],
o
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
o
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
i
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
n
=
{
enterpriseId
:
t
.
enterpriseId
,
relatedId
:
t
.
$route
.
query
.
relatedId
,
type
:
t
.
$route
.
query
.
tabType
,
keyword
:
t
.
conditionObj
.
searchInput
||
""
,
groupIds
:
a
.
join
(
","
)
||
""
,
storeIds
:
i
.
join
(
","
)
||
""
,
clerkIds
:
o
.
join
(
","
)
||
""
,
startTime
:
t
.
conditionObj
.
dateRange
[
0
]
||
""
,
endTime
:
t
.
conditionObj
.
dateRange
[
1
]
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
l
.
e
)(
"/haoban-app-member-web/customer/send_message_log"
,
n
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
total
,
!
1
;
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log border-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content border-box"
},[
a
(
"div"
,{
staticClass
:
"table-condition flex flex-space-between m-b-20"
},[
a
(
"div"
,{
staticClass
:
"table-condition-left"
},[
a
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"请输入导购姓名/手机号/code"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
conditionObj
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
conditionObj
.
searchInput
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"searchInput"
,
t
)},
expression
:
"conditionObj.searchInput"
}}),
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 m-r-10"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
e
.
conditionObj
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
conditionObj
,
"dateRange"
,
t
)},
expression
:
"conditionObj.dateRange"
}}),
a
(
"el-button"
,{
staticStyle
:{
"vertical-align"
:
"middle"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
conditionObj
.
storeGroup
)}}},[
e
.
_v
(
"门店架构选人"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-condition-right"
})]),
e
.
_v
(
" "
),
e
.
defaultStoreList
.
length
?
a
(
"div"
,{
staticClass
:
"select-data-wrap m-b-20"
},[
a
(
"ul"
,{
staticClass
:
"selector-selected-list flex flex-wrap"
},[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"li"
,{
key
:
i
+
t
.
id
+
t
.
label
,
staticClass
:
"select-item"
},[
e
.
_v
(
e
.
_s
(
t
.
label
)
+
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-close"
,
on
:{
click
:
function
(
t
){
e
.
delSelectData
(
i
)}}})])]})],
2
)]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"导购信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"400"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
applyId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
t
.
row
.
clerkImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info-right flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"apply-info-name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerkName
)
+
"
\
n "
),
a
(
"i"
,{
class
:[
2
==
t
.
row
.
sex
?
"icon-xingbienv color-FF585C"
:
"icon-xingbienan color-508CEE"
,
"iconfont"
]})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-code"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"员工代码:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkCode
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhoneNumber
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-job"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"职位:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
positionName
||
"--"
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属门店:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
clerkImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
clerkImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info over-hidden"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"导购手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
clerkPhoneNumber
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex nowrap"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
memberImgUrl
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
memberImgUrl
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"会员手机号"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberPhoneNumber
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"发送时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"color-606266 line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"chat-log-list"
,{
attrs
:{
brandId
:
e
.
brandId
,
itemRow
:
e
.
itemRow
,
showFlag
:
e
.
showFlag
},
on
:{
hideDetail
:
e
.
hideDetail
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"LOWD"
)},
"data-v-304d5fad"
,
null
);
t
.
default
=
h
.
exports
},
LOWD
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
8.5a4d2e0328d3aceb6b2
7.js
→
dist/static/js/8
7.0fb42cff2a738242859
7.js
View file @
c46c6395
webpackJsonp
([
88
],{
DxdI
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"2eFk"
),
n
=
a
(
"Ke24"
),
i
=
a
(
"fPyK"
),
l
=
a
(
"P9l9"
),
r
=
a
(
"Ch4/"
),
s
=
a
(
"3E4D"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
+
"px"
,
topMenuData
:[{
id
:
"1"
,
name
:
"自定义报表"
}],
activeId
:
"1"
,
activeTab
:
"1"
,
activeBrand
:
"1"
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
handlePreview
:
function
(
e
,
t
){
var
a
=
window
.
location
.
origin
+
"/office-mobile/#/defineTemplate?templateId="
+
t
.
dailyReportTemplateId
;
this
.
$refs
.
qrcodePreview
.
qrcode
(
a
,
"daily-preview"
),
this
.
dialogVisible
=!
0
},
toCustomSet
:
function
(){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleCopy
:
function
(
e
,
t
){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&templateId="
+
t
.
dailyReportTemplateId
+
"&type=copy&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleEdit
:
function
(
e
,
t
){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&templateId="
+
t
.
dailyReportTemplateId
+
"&type=edit&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleDelete
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
deleteTemplate
(
e
,
t
)}).
catch
(
function
(){})},
deleteTemplate
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
l
.
e
)(
"/haoban-app-daily-web/daily/del-define-template"
,{
templateId
:
t
.
dailyReportTemplateId
}).
then
(
function
(
t
){
var
o
=
t
.
data
;
if
(
1
==
o
.
errorCode
)
return
s
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
e
,
1
);
r
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
;
Object
(
l
.
e
)(
"/haoban-app-daily-web/daily/list-define-template"
,{
brandId
:
e
.
brandId
}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
[],
void
(
a
.
result
&&
a
.
result
.
length
&&
(
e
.
tableData
=
a
.
result
));
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"212"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
o
.
a
,
commonDetailTop
:
n
.
a
,
qrcodeDialog
:
i
.
a
}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"custom-set-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"custom-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between flex-pack-center m-b-23 m-t-30"
},[
a
(
"div"
,{
staticClass
:
"custom-set-title flex flex-pack-center"
},[
a
(
"span"
,[
e
.
_v
(
"模板列表("
+
e
.
_s
(
e
.
tableData
.
length
)
+
")"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"注:创建自定义日报后才能下发日报"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"button"
},
on
:{
click
:
function
(
t
){
e
.
toCustomSet
(
""
)}}},[
e
.
_v
(
"新建模板"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
title
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"模板描述"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
description
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"address"
,
label
:
"门店类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"自营门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"联营门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"代理门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"代销门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"托管门店"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handlePreview
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"预览"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleCopy
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"复制"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDelete
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
e
.
dialogVisible
,
callback
:
function
(
t
){
e
.
dialogVisible
=
t
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"sgiw"
)},
"data-v-2dc7d0eb"
,
null
);
t
.
default
=
u
.
exports
},
sgiw
:
function
(
e
,
t
){}});
webpackJsonp
([
87
],{
DxdI
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"2eFk"
),
n
=
a
(
"Ke24"
),
i
=
a
(
"fPyK"
),
l
=
a
(
"P9l9"
),
r
=
a
(
"Ch4/"
),
s
=
a
(
"3E4D"
),
c
=
{
name
:
"reviewed"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
1
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
+
"px"
,
topMenuData
:[{
id
:
"1"
,
name
:
"自定义报表"
}],
activeId
:
"1"
,
activeTab
:
"1"
,
activeBrand
:
"1"
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
changeRouter
:
function
(
e
){
this
.
$router
.
push
(
e
)},
setSelectTab
:
function
(
e
){
this
.
activeTab
=
e
.
tabId
},
handlePreview
:
function
(
e
,
t
){
var
a
=
window
.
location
.
origin
+
"/office-mobile/#/defineTemplate?templateId="
+
t
.
dailyReportTemplateId
;
this
.
$refs
.
qrcodePreview
.
qrcode
(
a
,
"daily-preview"
),
this
.
dialogVisible
=!
0
},
toCustomSet
:
function
(){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleCopy
:
function
(
e
,
t
){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&templateId="
+
t
.
dailyReportTemplateId
+
"&type=copy&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleEdit
:
function
(
e
,
t
){
this
.
changeRouter
(
"/template?brandId="
+
this
.
brandId
+
"&templateId="
+
t
.
dailyReportTemplateId
+
"&type=edit&appIcon="
+
this
.
$route
.
query
.
appIcon
)},
handleDelete
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
deleteTemplate
(
e
,
t
)}).
catch
(
function
(){})},
deleteTemplate
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
l
.
e
)(
"/haoban-app-daily-web/daily/del-define-template"
,{
templateId
:
t
.
dailyReportTemplateId
}).
then
(
function
(
t
){
var
o
=
t
.
data
;
if
(
1
==
o
.
errorCode
)
return
s
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
tableData
.
splice
(
e
,
1
);
r
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(){
var
e
=
this
;
Object
(
l
.
e
)(
"/haoban-app-daily-web/daily/list-define-template"
,{
brandId
:
e
.
brandId
}).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
[],
void
(
a
.
result
&&
a
.
result
.
length
&&
(
e
.
tableData
=
a
.
result
));
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getData
())}},
mounted
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
$emit
(
"showTab"
,
"212"
),
this
.
brandId
&&
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
o
.
a
,
commonDetailTop
:
n
.
a
,
qrcodeDialog
:
i
.
a
}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"custom-set-wrap"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"custom-set-content boder-box"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between flex-pack-center m-b-23 m-t-30"
},[
a
(
"div"
,{
staticClass
:
"custom-set-title flex flex-pack-center"
},[
a
(
"span"
,[
e
.
_v
(
"模板列表("
+
e
.
_s
(
e
.
tableData
.
length
)
+
")"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"注:创建自定义日报后才能下发日报"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"button"
},
on
:{
click
:
function
(
t
){
e
.
toCustomSet
(
""
)}}},[
e
.
_v
(
"新建模板"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
title
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"模板描述"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
description
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"address"
,
label
:
"门店类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"自营门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"联营门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"代理门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"代销门店"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
storeType
?
a
(
"span"
,[
e
.
_v
(
"托管门店"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handlePreview
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"预览"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleCopy
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"复制"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
a
){
e
.
handleDelete
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"qrcode-dialog"
,{
ref
:
"qrcodePreview"
,
model
:{
value
:
e
.
dialogVisible
,
callback
:
function
(
t
){
e
.
dialogVisible
=
t
},
expression
:
"dialogVisible"
}})],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
a
(
"sgiw"
)},
"data-v-2dc7d0eb"
,
null
);
t
.
default
=
u
.
exports
},
sgiw
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/8
9.4186a9a4419d0d1ed6c7
.js
→
dist/static/js/8
8.4baa99b5ba65f517e6b4
.js
View file @
c46c6395
webpackJsonp
([
89
],{
vgwM
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"考勤打卡"
,
appIcon
:
"icon-ribao"
,
activeSelTab
:
"11"
,
activeTab
:
"11"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"考勤统计"
,
icon
:
"icon-kaoqinjilu"
,
onlyIconActive
:
!
1
,
children
:[{
tabId
:
"11"
,
tabName
:
"每日统计"
,
icon
:
""
}]},{
tabId
:
"2"
,
tabName
:
"考勤设置"
,
icon
:
"icon-kaoqinshezhi"
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"forbid"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
case
"11"
:
this
.
changeRoute
(
"dayStatistics?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
this
.
changeRoute
(
"workSet?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"zKoH"
)},
"data-v-2dc38950"
,
null
);
t
.
default
=
u
.
exports
},
zKoH
:
function
(
e
,
t
){}});
webpackJsonp
([
88
],{
vgwM
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"2eFk"
),
n
=
a
(
"fvdr"
),
o
=
a
(
"Qie6"
),
r
=
a
(
"F3nK"
),
c
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
d
=
{
name
:
"reviewed"
,
data
:
function
(){
return
{
bgHeight
:
window
.
screen
.
availHeight
-
380
+
"px"
,
appName
:
"考勤打卡"
,
appIcon
:
"icon-ribao"
,
activeSelTab
:
"11"
,
activeTab
:
"11"
,
tabListData
:[{
tabId
:
"1"
,
tabName
:
"考勤统计"
,
icon
:
"icon-kaoqinjilu"
,
onlyIconActive
:
!
1
,
children
:[{
tabId
:
"11"
,
tabName
:
"每日统计"
,
icon
:
""
}]},{
tabId
:
"2"
,
tabName
:
"考勤设置"
,
icon
:
"icon-kaoqinshezhi"
}],
activeBrand
:
""
,
activeGroup
:
""
,
expiredFlag
:
!
1
,
gicEnterpriseId
:
""
,
forbidFlag
:
"forbid"
}},
computed
:{},
methods
:{
getExpired
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-over"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"expired"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getUpdated
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
gicEnterpriseId
};
Object
(
s
.
a
)(
"/haoban-manage-web/enterprise/enterprise-is-use-three"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
expiredFlag
=
a
.
result
,
void
(
e
.
forbidFlag
=
"forbid"
);
c
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
selectBrandId
:
function
(
e
,
t
,
a
){
this
.
activeBrand
=
e
,
this
.
activeGroup
=
t
,
this
.
gicEnterpriseId
=
a
},
setSelectTab
:
function
(
e
){
switch
(
this
.
activeTab
=
e
.
tabId
,
e
.
tabId
){
case
"1"
:
case
"11"
:
this
.
changeRoute
(
"dayStatistics?appIcon="
+
this
.
$route
.
query
.
appIcon
);
break
;
case
"2"
:
this
.
changeRoute
(
"workSet?appIcon="
+
this
.
$route
.
query
.
appIcon
)}},
showTab
:
function
(
e
){
this
.
activeTab
=
e
,
this
.
activeSelTab
=
e
,
this
.
tabListData
.
forEach
(
function
(
t
){
t
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
1
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
),
a
.
children
&&
a
.
children
.
forEach
(
function
(
a
){
a
.
tabId
==
e
&&
(
t
.
onlyIconActive
=!
0
)})})})}},
watch
:{
activeBrand
:
function
(
e
,
t
){
this
.
activeBrand
=
e
},
activeGroup
:
function
(
e
,
t
){
this
.
activeGroup
=
e
}},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
appIcon
;
e
&&
(
this
.
appIcon
=
window
.
unescape
(
e
)),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
appDetail
:
i
.
a
,
commonAppTop
:
n
.
a
,
commonDetailLeft
:
o
.
a
,
expiredDialog
:
r
.
a
}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"common-app-top"
,{
attrs
:{
appName
:
e
.
appName
,
appIcon
:
e
.
appIcon
},
on
:{
selectBrandId
:
e
.
selectBrandId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"div"
,{
staticClass
:
"apps-content-left w-157"
,
style
:{
"min-height"
:
e
.
bgHeight
}},[
a
(
"common-detail-left"
,{
attrs
:{
tabListData
:
e
.
tabListData
,
activeSelTab
:
e
.
activeSelTab
},
on
:{
setSelectTab
:
e
.
setSelectTab
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
a
(
"router-view"
,{
attrs
:{
brandId
:
e
.
activeBrand
,
activeGroupId
:
e
.
activeGroup
,
tabType
:
e
.
activeTab
},
on
:{
showTab
:
e
.
showTab
}})],
1
)],
1
)])])],
1
),
e
.
_v
(
" "
),
e
.
expiredFlag
?
a
(
"expired-dialog"
,{
attrs
:{
forbidFlag
:
e
.
forbidFlag
}}):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
p
,
!
1
,
function
(
e
){
a
(
"zKoH"
)},
"data-v-2dc38950"
,
null
);
t
.
default
=
u
.
exports
},
zKoH
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/
90.861b3c7eee0a1ad2166b
.js
→
dist/static/js/
89.56ead064ee0a4d3c0039
.js
View file @
c46c6395
webpackJsonp
([
90
],{
HHra
:
function
(
t
,
e
){},
RHxA
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"elmV"
),
c
=
a
(
"P9l9"
),
u
=
a
(
"unF8"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
i
.
a
,
uploadExcelComponent
:
l
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"storeFrame"
},{
name
:
"批量导入导出"
,
path
:
""
}],
host
:
window
.
location
.
origin
,
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/store/upload"
,
uploadSuccessMsg
:
""
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
,
gicFlag
:
!
0
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
};
Object
(
c
.
a
)(
"/haoban-manage-web/error-log-page"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
,
t
.
loading
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
handlePreview
:
function
(
t
){},
beforeAvatarUpload
:
function
(
t
){
var
e
=
t
.
name
.
lastIndexOf
(
"."
);
if
(
e
<
0
)
return
this
.
$message
.
error
(
"文件格式不正确!"
),
!
1
;
var
a
=
t
.
name
.
substring
(
e
+
1
,
t
.
name
.
length
),
s
=
a
.
includes
(
"xls"
)
||
a
.
includes
(
"xlsx"
);
return
s
||
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
s
},
getChange
:
function
(
t
,
e
){
var
a
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
s
=
t
.
name
.
lastIndexOf
(
"."
),
r
=
t
.
name
.
substring
(
s
+
1
,
t
.
name
.
length
);
if
(
!
(
r
.
includes
(
"xls"
)
||
r
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
a
,
1
),
!
1
;
this
.
fileList
=
[
e
[
a
]]},
uploadSuccess
:
function
(
t
,
e
){
var
a
=
this
;
1
==
t
.
errorCode
?(
a
.
$forceUpdate
(),
a
.
uploadSuccessMsg
=
t
.
message
.
split
(
","
),
a
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
a
.
$nextTick
(
function
(){
a
.
fileList
=
[]})):
a
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
getGicData
:
function
(
t
){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
a
(){
var
s
,
o
,
n
,
i
;
return
r
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
if
(
s
=
e
,
t
){
a
.
next
=
3
;
break
}
return
a
.
abrupt
(
"return"
,
!
1
);
case
3
:
return
o
=
{
type
:
1
,
businessId
:
t
},
a
.
next
=
6
,
Object
(
u
.
a
)(
o
);
case
6
:
n
=
a
.
sent
,
1
==
(
i
=
n
.
data
).
errorCode
?(
s
.
gicFlag
=
i
.
result
,
s
.
type
=
i
.
result
?
"export"
:
"import"
):
p
.
a
.
errorMsg
(
i
);
case
9
:
case
"end"
:
return
a
.
stop
()}},
a
,
e
)}))()}},
beforeMount
:
function
(){
var
t
=
this
.
$route
.
query
.
brandId
;
this
.
getGicData
(
t
),
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
height
:
t
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"io-container border-box "
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
t
.
gicFlag
?
t
.
_e
():
a
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入门店"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"export"
}},[
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载门店导入模板,批量填写门店信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"step-div"
},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传填写好的门店信息
\
n "
),
a
(
"div"
,{
staticClass
:
"d-u-btn"
},[
a
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
+
"?brandId="
+
t
.
$route
.
query
.
brandId
,
"auto-upload"
:
!
1
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"on-remove"
:
t
.
handleRemove
}},[
a
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"up-btn-div"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"
\
n 上传
\
n "
)])],
1
)]):
"export"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出门店
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
"/haoban-manage-web/store/export?storeGroupId="
+
t
.
$route
.
query
.
departmentId
+
"&showChild="
+
t
.
$route
.
query
.
showChildMember
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
),
t
.
_v
(
"
\
n 批量修改门店信息
\
n "
)])]):
a
(
"div"
,{
staticClass
:
"error-log import"
},[
a
(
"div"
,{
staticClass
:
"title-area"
},[
a
(
"div"
,{
staticClass
:
"tip"
},[
t
.
_v
(
t
.
_s
(
t
.
uploadSuccessMsg
))]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"/haoban-manage-web/error-improt-log-export?importCode="
+
t
.
$route
.
query
.
importCode
+
"&departmentId="
+
t
.
$route
.
query
.
departmentId
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误提示"
,
prop
:
"failReason"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店分组ID"
,
prop
:
"storeGroupId"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeTypeStr"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店状态"
,
prop
:
"statusStr"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"店长"
,
prop
:
"managerName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
"86"
==
e
.
row
.
managerNationcode
||
null
==
e
.
row
.
managerNationcode
?
e
.
row
.
managerPhone
:
"+"
+
e
.
row
.
nationcode
+
"-"
+
e
.
row
.
managerPhone
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"店长编码"
,
prop
:
"managerCode"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
,
prop
:
"managerPostionName"
}})],
1
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"ul"
,{
staticClass
:
"tip-area border-box "
},[
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/companyCertify"
}},[
t
.
_v
(
"企业认证"
)])]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"不能在本excel表中对门店信息类别进行增加、删除、修改"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"标*字段为必填字段,未标*字段为选填字段"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入"
)])])}]};
var
g
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
t
){
a
(
"HHra"
)},
null
,
null
);
e
.
default
=
g
.
exports
}});
webpackJsonp
([
89
],{
HHra
:
function
(
t
,
e
){},
RHxA
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"Xxa5"
),
r
=
a
.
n
(
s
),
o
=
a
(
"exGp"
),
n
=
a
.
n
(
o
),
i
=
a
(
"3Xzz"
),
l
=
a
(
"elmV"
),
c
=
a
(
"P9l9"
),
u
=
a
(
"unF8"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"employee-io"
,
components
:{
navCrumb
:
i
.
a
,
uploadExcelComponent
:
l
.
a
},
data
:
function
(){
var
t
=
window
.
location
.
origin
;
return
-
1
!=
t
.
indexOf
(
"localhost"
)
&&
(
t
=
"http://www.gicdev.com"
),{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"storeFrame"
},{
name
:
"批量导入导出"
,
path
:
""
}],
host
:
window
.
location
.
origin
,
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
type
:
"import"
,
fileList
:[],
url
:
t
+
"/haoban-manage-web/store/upload"
,
uploadSuccessMsg
:
""
,
logList
:[],
loading
:
!
0
,
pageSize
:
20
,
currentPage
:
1
,
total
:
0
,
gicFlag
:
!
0
}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getErrorNote
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getErrorNote
()},
resetList
:
function
(
t
){
this
.
fileList
=
[],
"note"
==
t
&&
this
.
getErrorNote
()},
getErrorNote
:
function
(){
var
t
=
this
,
e
=
{
departmentId
:
t
.
$route
.
query
.
departmentId
,
importCode
:
t
.
$route
.
query
.
importCode
};
Object
(
c
.
a
)(
"/haoban-manage-web/error-log-page"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
total
=
e
.
data
.
result
.
totalCount
,
t
.
logList
=
e
.
data
.
result
,
t
.
loading
=!
1
):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
handleRemove
:
function
(
t
,
e
){
this
.
fileList
=
[]},
handlePreview
:
function
(
t
){},
beforeAvatarUpload
:
function
(
t
){
var
e
=
t
.
name
.
lastIndexOf
(
"."
);
if
(
e
<
0
)
return
this
.
$message
.
error
(
"文件格式不正确!"
),
!
1
;
var
a
=
t
.
name
.
substring
(
e
+
1
,
t
.
name
.
length
),
s
=
a
.
includes
(
"xls"
)
||
a
.
includes
(
"xlsx"
);
return
s
||
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
s
},
getChange
:
function
(
t
,
e
){
var
a
=
e
.
length
-
1
<
0
?
0
:
e
.
length
-
1
,
s
=
t
.
name
.
lastIndexOf
(
"."
),
r
=
t
.
name
.
substring
(
s
+
1
,
t
.
name
.
length
);
if
(
!
(
r
.
includes
(
"xls"
)
||
r
.
includes
(
"xlsx"
)))
return
this
.
$message
.
error
(
"文件格式必须为 xls 或 xlsx 格式!"
),
this
.
fileList
.
splice
(
a
,
1
),
!
1
;
this
.
fileList
=
[
e
[
a
]]},
uploadSuccess
:
function
(
t
,
e
){
var
a
=
this
;
1
==
t
.
errorCode
?(
a
.
$forceUpdate
(),
a
.
uploadSuccessMsg
=
t
.
message
.
split
(
","
),
a
.
$message
({
message
:
t
.
message
,
type
:
"success"
}),
a
.
$nextTick
(
function
(){
a
.
fileList
=
[]})):
a
.
$message
.
error
(
t
.
message
)},
submitUpload
:
function
(
t
){
this
.
$refs
[
t
].
submit
()},
getGicData
:
function
(
t
){
var
e
=
this
;
return
n
()(
r
.
a
.
mark
(
function
a
(){
var
s
,
o
,
n
,
i
;
return
r
.
a
.
wrap
(
function
(
a
){
for
(;;)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
if
(
s
=
e
,
t
){
a
.
next
=
3
;
break
}
return
a
.
abrupt
(
"return"
,
!
1
);
case
3
:
return
o
=
{
type
:
1
,
businessId
:
t
},
a
.
next
=
6
,
Object
(
u
.
a
)(
o
);
case
6
:
n
=
a
.
sent
,
1
==
(
i
=
n
.
data
).
errorCode
?(
s
.
gicFlag
=
i
.
result
,
s
.
type
=
i
.
result
?
"export"
:
"import"
):
p
.
a
.
errorMsg
(
i
);
case
9
:
case
"end"
:
return
a
.
stop
()}},
a
,
e
)}))()}},
beforeMount
:
function
(){
var
t
=
this
.
$route
.
query
.
brandId
;
this
.
getGicData
(
t
),
"note"
==
this
.
type
&&
this
.
getErrorNote
(),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
height
:
t
.
windowH
}},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
a
(
"div"
,{
staticClass
:
"io-container border-box "
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"el-radio-group"
,{
staticClass
:
"m-t-20"
,
on
:{
change
:
t
.
resetList
},
model
:{
value
:
t
.
type
,
callback
:
function
(
e
){
t
.
type
=
e
},
expression
:
"type"
}},[
t
.
gicFlag
?
t
.
_e
():
a
(
"el-radio-button"
,{
attrs
:{
label
:
"import"
}},[
t
.
_v
(
"导入门店"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"export"
}},[
t
.
_v
(
"导出"
)]),
t
.
_v
(
" "
),
a
(
"el-radio-button"
,{
attrs
:{
label
:
"note"
}},[
t
.
_v
(
"错误记录"
)])],
1
),
t
.
_v
(
" "
),
"import"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"下载门店导入模板,批量填写门店信息
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
t
.
host
+
"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"step-div"
},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"②"
)]),
t
.
_v
(
"上传填写好的门店信息
\
n "
),
a
(
"div"
,{
staticClass
:
"d-u-btn"
},[
a
(
"el-upload"
,{
ref
:
"upload"
,
staticClass
:
"upload-demo"
,
attrs
:{
action
:
t
.
url
+
"?brandId="
+
t
.
$route
.
query
.
brandId
,
"auto-upload"
:
!
1
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-success"
:
t
.
uploadSuccess
,
"on-change"
:
t
.
getChange
,
multiple
:
!
1
,
"file-list"
:
t
.
fileList
,
"on-remove"
:
t
.
handleRemove
}},[
a
(
"el-button"
,{
attrs
:{
slot
:
"trigger"
,
size
:
"small"
,
type
:
"primary"
},
slot
:
"trigger"
},[
t
.
_v
(
"选取文件"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-upload__tip"
,
attrs
:{
slot
:
"tip"
},
slot
:
"tip"
},[
t
.
_v
(
"文件格式必须为xls或xlsx格式"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"up-btn-div"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
disabled
:
0
==
t
.
fileList
.
length
},
on
:{
click
:
function
(
e
){
t
.
submitUpload
(
"upload"
)}}},[
t
.
_v
(
"
\
n 上传
\
n "
)])],
1
)]):
"export"
==
t
.
type
?
a
(
"div"
,{
staticClass
:
"handle-area import"
},[
a
(
"div"
,{
staticClass
:
"step-div"
,
staticStyle
:{
"margin-bottom"
:
"90px"
,
"line-height"
:
"32px"
}},[
a
(
"span"
,{
staticClass
:
"ft-large"
},[
t
.
_v
(
"①"
)]),
t
.
_v
(
"导出门店
\
n "
),
a
(
"a"
,{
staticClass
:
"d-u-btn"
,
attrs
:{
href
:
"/haoban-manage-web/store/export?storeGroupId="
+
t
.
$route
.
query
.
departmentId
+
"&showChild="
+
t
.
$route
.
query
.
showChildMember
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
" 下载"
),
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai m-l-5"
})])],
1
),
t
.
_v
(
"
\
n 批量修改门店信息
\
n "
)])]):
a
(
"div"
,{
staticClass
:
"error-log import"
},[
a
(
"div"
,{
staticClass
:
"title-area"
},[
a
(
"div"
,{
staticClass
:
"tip"
},[
t
.
_v
(
t
.
_s
(
t
.
uploadSuccessMsg
))]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
"/haoban-manage-web/error-improt-log-export?importCode="
+
t
.
$route
.
query
.
importCode
+
"&departmentId="
+
t
.
$route
.
query
.
departmentId
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
}},[
t
.
_v
(
"导出错误记录"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"m-t-20"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
logList
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
width
:
"50"
,
label
:
"序号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"错误提示"
,
prop
:
"failReason"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店code"
,
prop
:
"storeCode"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店分组ID"
,
prop
:
"storeGroupId"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店类型"
,
prop
:
"storeTypeStr"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店状态"
,
prop
:
"statusStr"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"店长"
,
prop
:
"managerName"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"managerPhone"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
"86"
==
e
.
row
.
managerNationcode
||
null
==
e
.
row
.
managerNationcode
?
e
.
row
.
managerPhone
:
"+"
+
e
.
row
.
nationcode
+
"-"
+
e
.
row
.
managerPhone
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"店长编码"
,
prop
:
"managerCode"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"职位"
,
prop
:
"managerPostionName"
}})],
1
),
t
.
_v
(
" "
),
t
.
logList
.
length
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
"current-page"
:
t
.
currentPage
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"ul"
,{
staticClass
:
"tip-area border-box "
},[
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"
),
a
(
"a"
,{
staticClass
:
"a-href"
,
attrs
:{
href
:
"#/companyCertify"
}},[
t
.
_v
(
"企业认证"
)])]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"不能在本excel表中对门店信息类别进行增加、删除、修改"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"标*字段为必填字段,未标*字段为选填字段"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"
\
n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面
\
n "
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证"
)]),
t
.
_v
(
" "
),
a
(
"li"
,{
staticClass
:
"tip"
},[
t
.
_v
(
"每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入"
)])])}]};
var
g
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
t
){
a
(
"HHra"
)},
null
,
null
);
e
.
default
=
g
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/
65.07d108afee3ba276d3b0
.js
→
dist/static/js/
90.8e9170a6a4b5293ea50b
.js
View file @
c46c6395
webpackJsonp
([
65
],{
"6zFj"
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
c
=
e
(
"3Xzz"
),
n
=
e
(
"3E4D"
),
i
=
e
(
"Ch4/"
),
o
=
e
(
"PI0u"
),
s
=
e
(
"P9l9"
),
r
=
{
name
:
"contactPermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"通讯录控制"
,
path
:
""
}],
contactHideFlag
:
!
1
}},
methods
:{
saveSet
:
Object
(
o
.
a
)(
function
(){
var
t
=
this
,
a
=
{
contactHideFlag
:
t
.
contactHideFlag
?
"1"
:
"0"
};
Object
(
s
.
e
)(
"/haoban-manage-web/contact/save-contact-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
i
.
a
.
errorMsg
(
a
):
n
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
300
),
getSetData
:
function
(){
var
t
=
this
;
Object
(
s
.
e
)(
"/haoban-manage-web/contact/find-contact-setting"
,{}).
then
(
function
(
a
){
var
e
=
a
.
data
;
1
!=
e
.
errorCode
?
i
.
a
.
errorMsg
(
e
):
t
.
contactHideFlag
=
1
==
e
.
result
.
contactHideFlag
}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
mounted
:
function
(){
this
.
getSetData
()},
components
:{
navCrumb
:
c
.
a
}},
l
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
e
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"right-content"
},[
e
(
"div"
,{
staticClass
:
"right-box"
},[
e
(
"div"
,{},[
e
(
"div"
,{
staticClass
:
"check-box-wrap inline-block vertical-top"
},[
e
(
"el-checkbox"
,{
model
:{
value
:
t
.
contactHideFlag
,
callback
:
function
(
a
){
t
.
contactHideFlag
=
a
},
expression
:
"contactHideFlag"
}},[
t
.
_v
(
"隐藏通讯录模块"
)])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"tip-text-wrap w-440 inline-block vertical-top"
},[
t
.
_v
(
"注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。"
)])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-b-20"
},[
e
(
"div"
,{
staticClass
:
"check-box-wrap inline-block vertical-top"
},[
e
(
"el-checkbox"
,{
model
:{
value
:
t
.
contactHideFlag
,
callback
:
function
(
a
){
t
.
contactHideFlag
=
a
},
expression
:
"contactHideFlag"
}},[
t
.
_v
(
"通讯录姓名修改后覆盖用户姓名"
)])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"tip-text-wrap w-440 inline-block vertical-top"
})]),
t
.
_v
(
" "
),
e
(
"div"
,[
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])]),
t
.
_v
(
" "
),
e
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
v
=
e
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
t
){
e
(
"G7r0"
)},
"data-v-736373a2"
,
null
);
a
.
default
=
v
.
exports
},
G7r0
:
function
(
t
,
a
){}});
webpackJsonp
([
90
],{
"6zFj"
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
n
=
e
(
"3Xzz"
),
c
=
e
(
"3E4D"
),
s
=
e
(
"Ch4/"
),
o
=
e
(
"PI0u"
),
i
=
e
(
"P9l9"
),
r
=
{
name
:
"contactPermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"通讯录控制"
,
path
:
""
}],
contactHideFlag
:
!
1
}},
methods
:{
saveSet
:
Object
(
o
.
a
)(
function
(){
var
t
=
this
,
a
=
{
contactHideFlag
:
t
.
contactHideFlag
?
"1"
:
"0"
};
Object
(
i
.
e
)(
"/haoban-manage-web/contact/save-contact-setting"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
s
.
a
.
errorMsg
(
a
):
c
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
300
),
getSetData
:
function
(){
var
t
=
this
;
Object
(
i
.
e
)(
"/haoban-manage-web/contact/find-contact-setting"
,{}).
then
(
function
(
a
){
var
e
=
a
.
data
;
1
!=
e
.
errorCode
?
s
.
a
.
errorMsg
(
e
):
t
.
contactHideFlag
=
1
==
e
.
result
.
contactHideFlag
}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
mounted
:
function
(){
this
.
getSetData
()},
components
:{
navCrumb
:
n
.
a
}},
l
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
e
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"right-content"
},[
e
(
"div"
,{
staticClass
:
"right-box"
},[
e
(
"div"
,{},[
e
(
"div"
,{
staticClass
:
"check-box-wrap inline-block vertical-top"
},[
e
(
"el-checkbox"
,{
model
:{
value
:
t
.
contactHideFlag
,
callback
:
function
(
a
){
t
.
contactHideFlag
=
a
},
expression
:
"contactHideFlag"
}},[
t
.
_v
(
"隐藏通讯录模块"
)])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"tip-text-wrap w-440 inline-block vertical-top"
},[
t
.
_v
(
"注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。"
)])]),
t
.
_v
(
" "
),
e
(
"div"
,[
e
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveSet
}},[
t
.
_v
(
"保 存"
)])],
1
)])]),
t
.
_v
(
" "
),
e
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
v
=
e
(
"VU/8"
)(
r
,
l
,
!
1
,
function
(
t
){
e
(
"ls4v"
)},
"data-v-264f1639"
,
null
);
a
.
default
=
v
.
exports
},
ls4v
:
function
(
t
,
a
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/app.
7fc781e648e9d0eb7f04
.js
→
dist/static/js/app.
012ec3c0463bf6f4161a
.js
View file @
c46c6395
webpackJsonp
([
101
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
n
){
n
(
"j1ja"
),
e
.
exports
=
n
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
n
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
a
){
n
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
a
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"mvHQ"
),
r
=
n
.
n
(
a
),
o
=
n
(
"fZjL"
),
p
=
n
.
n
(
o
),
i
=
(
n
(
"j1ja"
),
n
(
"hKoQ"
)),
s
=
n
.
n
(
i
),
c
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
n
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
c
,
!
1
,
function
(
e
){
n
(
"/NA0"
)},
null
,
null
).
exports
,
d
=
n
(
"lRwf"
),
u
=
n
.
n
(
d
),
l
=
n
(
"pRNm"
),
h
=
n
.
n
(
l
),
v
=
n
(
"5tgt"
),
g
=
n
.
n
(
v
);
u
.
a
.
use
(
h
.
a
);
var
A
=
function
(
e
){
n
.
e
(
1
).
then
(
n
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
y
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
g
()(
"login"
,
"index"
)},{
path
:
"/download"
,
name
:
"下载"
,
component
:
g
()(
"download"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
g
()(
"index"
,
"index"
)},{
path
:
"/sign"
,
name
:
"index"
,
component
:
g
()(
"sign"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"administrativeFrame"
,
component
:
g
()(
"contacts"
,
"index"
),
children
:[{
path
:
"/administrativeFrame"
,
name
:
"行政架构"
,
component
:
g
()(
"contacts"
,
"administrativeFrame"
)},{
path
:
"/employeeIo"
,
name
:
"批量导入/导出"
,
component
:
g
()(
"contacts"
,
"employeeIo"
)},{
path
:
"/addDepartment"
,
name
:
"添加部门"
,
component
:
g
()(
"contacts"
,
"addDepartment"
)},{
path
:
"/addClerk"
,
name
:
"添加店员"
,
component
:
g
()(
"contacts"
,
"addClerk"
)},{
path
:
"/storeFrame"
,
name
:
"门店架构"
,
component
:
g
()(
"contacts"
,
"storeFrame"
)},{
path
:
"/addGroup"
,
name
:
"添加子分组"
,
component
:
g
()(
"contacts"
,
"addGroup"
)},{
path
:
"/storeIo"
,
name
:
"门店导入/导出"
,
component
:
g
()(
"contacts"
,
"storeIo"
)},{
path
:
"/storeInfo"
,
name
:
"编辑门店"
,
component
:
g
()(
"contacts"
,
"storeInfo"
)},{
path
:
"/recycle"
,
name
:
"门店回收站"
,
component
:
g
()(
"contacts"
,
"recycle"
)},{
path
:
"/employee"
,
name
:
"编辑员工"
,
component
:
g
()(
"contacts"
,
"employee"
)},{
path
:
"/unemployee"
,
name
:
"离职员工"
,
component
:
g
()(
"contacts"
,
"unemployee"
)},{
path
:
"/fileSet"
,
name
:
"档案设置"
,
component
:
g
()(
"contacts"
,
"fileSet"
)},{
path
:
"/recordInfo"
,
name
:
"编辑员工信息"
,
component
:
g
()(
"contacts"
,
"recordInfo"
)},{
path
:
"/recordIo"
,
name
:
"导入导出员工档案"
,
component
:
g
()(
"contacts"
,
"recordIo"
)},{
path
:
"/shareContact"
,
name
:
"共享通讯录"
,
component
:
g
()(
"contacts"
,
"shareContact"
)},{
path
:
"/shareCode"
,
name
:
"共享通讯录二维码"
,
component
:
g
()(
"contacts"
,
"shareCode"
)},{
path
:
"/employeeRecord"
,
name
:
"在职员工"
,
component
:
g
()(
"contacts"
,
"employeeRecord"
)}]},{
path
:
"/enterpriseApp"
,
name
:
"企业应用"
,
redirect
:
"appcenter"
,
component
:
g
()(
"enterpriseApp"
,
"index"
),
children
:[{
path
:
"/appcenter"
,
name
:
"企业应用中心"
,
component
:
g
()(
"enterpriseApp"
,
"appcenter"
)},{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memeberBaseSet"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"index"
),
children
:[{
path
:
"/memeberBaseSet"
,
name
:
"会员基础设置"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"memeberBaseSet"
)},{
path
:
"/onlineChatSet"
,
name
:
"在线沟通设置"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"onlineChatSet"
)},{
path
:
"/chatRecord"
,
name
:
"聊天记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"chatRecord"
)},{
path
:
"/sendRecord"
,
name
:
"发送记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"sendRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"newCard"
)},{
path
:
"/cardSendRecord"
,
name
:
"卡券发送记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"cardSendRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"卡券领取卡券"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"cardGetRecord"
)}]},{
path
:
"/marketing"
,
name
:
"营销素材"
,
redirect
:
"/imageText"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"index"
),
children
:[{
path
:
"/imageText"
,
name
:
"图文素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"imageText"
)},{
path
:
"/newImageText"
,
name
:
"选择图文"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"newImageText"
)},{
path
:
"/enjoyMaterial"
,
name
:
"纷享素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"enjoyMaterial"
)},{
path
:
"/newEnjoy"
,
name
:
"新建素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"newEnjoy"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"customReport"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/noticeList"
,
name
:
"企业公告"
,
redirect
:
"/noticeList"
,
component
:
g
()(
"enterpriseApp/notice"
,
"index"
),
children
:[{
path
:
"/noticeList"
,
name
:
"企业公告列表"
,
component
:
g
()(
"enterpriseApp/notice"
,
"noticeList"
)},{
path
:
"/addNotice"
,
name
:
"新建公告"
,
component
:
g
()(
"enterpriseApp/notice"
,
"addNotice"
)}]},{
path
:
"/badEvaluate"
,
name
:
"不良评价"
,
redirect
:
"/badEvaluateRecord"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"index"
),
children
:[{
path
:
"/badEvaluateRecord"
,
name
:
"不良评价记录"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateRecord"
)},{
path
:
"/badEvaluateDetail"
,
name
:
"不良评价详情"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateDetail"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
g
()(
"enterpriseApp/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
g
()(
"enterpriseApp/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
g
()(
"enterpriseApp/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
g
()(
"enterpriseApp/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/signList"
,
name
:
"企业公告"
,
redirect
:
"/signList"
,
component
:
g
()(
"enterpriseApp/signApp"
,
"index"
),
children
:[{
path
:
"/signList"
,
name
:
"企业公告列表"
,
component
:
g
()(
"enterpriseApp/signApp"
,
"signList"
)}]},{
path
:
"/clockin"
,
name
:
"考勤打卡"
,
redirect
:
"/dayStatistics"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"index"
),
children
:[{
path
:
"/dayStatistics"
,
name
:
"日统计"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"dayStatistics"
)},{
path
:
"/workSet"
,
name
:
"考勤设置"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workSet"
)},{
path
:
"/workGroupSet"
,
name
:
"考勤设置"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workGroupSet"
)},{
path
:
"/workTimeManage"
,
name
:
"排班管理"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workTimeManage"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
g
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
g
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
g
()(
"reviewCenter"
,
"unreview"
)}]},{
path
:
"/setCenter"
,
name
:
"设置"
,
redirect
:
"companyAddress"
,
component
:
g
()(
"setting"
,
"index"
),
children
:[{
path
:
"/companyAddress"
,
name
:
"企业地址"
,
component
:
g
()(
"setting"
,
"companyAddress"
)},{
path
:
"/companyCertify"
,
name
:
"企业认证"
,
component
:
g
()(
"setting"
,
"companyCertify"
)},{
path
:
"/staffDetails"
,
name
:
"员工详情字段"
,
component
:
g
()(
"setting"
,
"staffDetails"
)},{
path
:
"/storePermission"
,
name
:
"门店权限设置"
,
component
:
g
()(
"setting"
,
"storePermission"
)},{
path
:
"/contactPermission"
,
name
:
"通讯录控制"
,
component
:
g
()(
"setting"
,
"contactPermission"
)},{
path
:
"/replaceAdmin"
,
name
:
"更换超级管理员"
,
component
:
g
()(
"setting"
,
"replaceAdmin"
)},{
path
:
"/setChildAdmin"
,
name
:
"设置子管理员"
,
component
:
g
()(
"setting"
,
"setChildAdmin"
)},{
path
:
"/addAdmin"
,
name
:
"添加管理员"
,
component
:
g
()(
"setting"
,
"addAdmin"
)},{
path
:
"/addAdminRole"
,
name
:
"添加管理员角色"
,
component
:
g
()(
"setting"
,
"addAdminRole"
)}]},{
path
:
"/staffRecordsTemplate"
,
name
:
"员工档案设置"
,
component
:
g
()(
"contacts"
,
"staffRecordsTemplate"
)},{
path
:
"/systemReportSet"
,
name
:
"系统报表设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"systemReportSet"
)},{
path
:
"/template"
,
name
:
"模板设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"template"
)},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
g
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
A
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
A
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
A
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
k
=
new
h
.
a
({
routes
:
y
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
w
=
n
(
"zL8q"
),
D
=
n
.
n
(
w
),
x
=
n
(
"Rf8U"
),
S
=
n
.
n
(
x
),
R
=
n
(
"mtWM"
),
C
=
n
.
n
(
R
),
T
=
n
(
"bOdI"
),
M
=
n
.
n
(
T
),
b
=
n
(
"SJI6"
),
E
=
n
.
n
(
b
);
u
.
a
.
use
(
E
.
a
);
var
I
=
new
E
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
},
mutations
:(
f
=
{},
M
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
M
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
M
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
M
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
f
)}),
j
=
(
n
(
"4qCZ"
),
n
(
"uKUT"
),
n
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
n
=
new
Date
(
e
),
a
=
{
"M+"
:
n
.
getMonth
()
+
1
,
"D+"
:
n
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
n
.
getDay
()),
"h+"
:
n
.
getHours
(),
"m+"
:
n
.
getMinutes
(),
"s+"
:
n
.
getSeconds
(),
"q+"
:
Math
.
floor
((
n
.
getMonth
()
+
3
)
/
3
),
S
:
n
.
getMilliseconds
()};
for
(
var
r
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
n
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
a
)
new
RegExp
(
"("
+
r
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
a
[
r
]:(
"00"
+
a
[
r
]).
substr
((
""
+
a
[
r
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
,
o
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
i
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
r
+
"-"
+
a
+
" "
+
o
+
":"
+
p
+
":"
+
i
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
;
return
t
.
getFullYear
()
+
"-"
+
r
+
"-"
+
a
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
,
o
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
i
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
r
+
"."
+
a
+
" "
+
o
+
":"
+
p
+
":"
+
i
}}}),
V
=
n
(
"TUaa"
),
q
=
n
.
n
(
V
),
P
=
n
(
"tyqE"
),
G
=
n
.
n
(
P
),
H
=
n
(
"pRVe"
),
L
=
n
.
n
(
H
),
F
=
n
(
"XsK6"
),
O
=
n
.
n
(
F
),
N
=
n
(
"QRL9"
),
z
=
n
.
n
(
N
),
Y
=
n
(
"2Pnh"
),
J
=
n
.
n
(
Y
),
K
=
n
(
"l9mu"
),
B
=
n
.
n
(
K
),
U
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
J
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
n
=
t
.
width
,
a
=
t
.
height
,
r
=
n
/
592.28
*
841.89
,
o
=
a
,
p
=
0
,
i
=
592.28
/
n
*
a
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
B
.
a
(
""
,
"pt"
,
"a4"
);
if
(
o
<
r
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
o
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
p
,
595.28
,
i
),
p
-=
841.89
,(
o
-=
r
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
X
=
n
(
"/IwO"
),
Q
=
n
.
n
(
X
);
s
.
a
.
polyfill
(),
Vue
.
use
(
Q
.
a
),
Q
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
U
),
Vue
.
use
(
O
.
a
),
Vue
.
use
(
z
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
use
(
G
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
D
.
a
,{
size
:
"large"
}),
Vue
.
use
(
S
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
p
()(
j
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
j
[
e
])}),
k
.
beforeEach
(
function
(
e
,
t
,
n
){
var
a
=
void
0
,
o
=
window
.
location
.
origin
;
a
=-
1
!=
o
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
o
,
localStorage
.
getItem
(
"userInfo"
)
||
C
.
a
.
get
(
a
+
"/haoban-manage-web/emp/get-user-info"
,{}).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
||
localStorage
.
setItem
(
"userInfo"
,
r
()(
t
.
result
))}).
catch
(
function
(
e
){
w
.
Message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
"/"
==
e
.
path
?
n
({
path
:
"/login"
}):
n
()}),
new
Vue
({
el
:
"#app"
,
router
:
k
,
store
:
I
,
components
:{
App
:
m
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
n
){
var
a
=
{
"./contacts/addClerk.vue"
:[
"27o1"
,
0
,
28
],
"./contacts/addDepartment.vue"
:[
"HHRu"
,
0
,
21
],
"./contacts/addEmployee.vue"
:[
"00Sv"
,
64
],
"./contacts/addGroup.vue"
:[
"mPjx"
,
0
,
73
],
"./contacts/administrativeFrame.vue"
:[
"kLcy"
,
0
,
4
],
"./contacts/employee.vue"
:[
"AdJp"
,
0
,
62
],
"./contacts/employeeIo.vue"
:[
"Rwbg"
,
0
,
84
],
"./contacts/employeeRecord.vue"
:[
"zGJY"
,
0
,
9
],
"./contacts/fileSet.vue"
:[
"CSjr"
,
0
,
11
],
"./contacts/index.vue"
:[
"41Rh"
,
0
,
72
],
"./contacts/recordInfo.vue"
:[
"67iC"
,
0
,
17
],
"./contacts/recordIo.vue"
:[
"738z"
,
0
,
25
],
"./contacts/recycle.vue"
:[
"HkK0"
,
0
,
38
],
"./contacts/shareAddDepartment.vue"
:[
"q5Ri"
,
0
,
20
],
"./contacts/shareCode.vue"
:[
"JsWW"
,
0
,
43
],
"./contacts/shareContact.vue"
:[
"Gfms"
,
0
,
3
],
"./contacts/staffRecordsTemplate.vue"
:[
"lFAe"
,
0
,
59
],
"./contacts/storeFrame.vue"
:[
"7SJI"
,
0
,
6
],
"./contacts/storeInfo.vue"
:[
"h/6A"
,
0
,
60
],
"./contacts/storeIo.vue"
:[
"RHxA"
,
0
,
90
],
"./contacts/unemployee.vue"
:[
"TGrv"
,
0
,
19
],
"./download/index.vue"
:[
"ASGJ"
,
0
,
8
],
"./enterpriseApp/appcenter.vue"
:[
"yuVF"
,
0
,
40
],
"./enterpriseApp/badEvaluate/badEvaluateDetail.vue"
:[
"4m/B"
,
0
,
61
],
"./enterpriseApp/badEvaluate/badEvaluateRecord.vue"
:[
"r//C"
,
0
,
53
],
"./enterpriseApp/badEvaluate/badEvaluateSet.vue"
:[
"XzAK"
,
0
,
74
],
"./enterpriseApp/badEvaluate/index.vue"
:[
"W0k8"
,
0
,
51
],
"./enterpriseApp/cloudDaily/customReport.vue"
:[
"DxdI"
,
0
,
88
],
"./enterpriseApp/cloudDaily/dailyDetail.vue"
:[
"5nNU"
,
0
,
71
],
"./enterpriseApp/cloudDaily/dailyRecord.vue"
:[
"Ujni"
,
0
,
31
],
"./enterpriseApp/cloudDaily/index.vue"
:[
"Knd1"
,
0
,
83
],
"./enterpriseApp/cloudDaily/systemReport.vue"
:[
"Y8F9"
,
0
,
42
],
"./enterpriseApp/cloudDaily/systemReportSet.vue"
:[
"VE2c"
,
0
,
7
],
"./enterpriseApp/cloudDaily/taskAssign.vue"
:[
"5x7s"
,
0
,
85
],
"./enterpriseApp/cloudDaily/template.vue"
:[
"IA9l"
,
0
,
5
],
"./enterpriseApp/cloudDaily/template/block.vue"
:[
"PAYw"
,
55
],
"./enterpriseApp/cloudDaily/template/date-range.vue"
:[
"79Bk"
,
97
],
"./enterpriseApp/cloudDaily/template/image.vue"
:[
"H8Kg"
,
67
],
"./enterpriseApp/cloudDaily/template/input.vue"
:[
"s4D+"
,
76
],
"./enterpriseApp/cloudDaily/template/select.vue"
:[
"t0b0"
,
82
],
"./enterpriseApp/dailyAttendance/dayStatistics.vue"
:[
"gncU"
,
0
,
41
],
"./enterpriseApp/dailyAttendance/index.vue"
:[
"vgwM"
,
0
,
89
],
"./enterpriseApp/dailyAttendance/monthStatistics.vue"
:[
"z8Gq"
,
99
],
"./enterpriseApp/dailyAttendance/workGroupSet.vue"
:[
"estW"
,
0
,
14
],
"./enterpriseApp/dailyAttendance/workSet.vue"
:[
"A/XQ"
,
0
,
33
],
"./enterpriseApp/dailyAttendance/workTimeManage.vue"
:[
"/n/x"
,
0
,
35
],
"./enterpriseApp/index.vue"
:[
"da9f"
,
52
],
"./enterpriseApp/marketingMaterial/enjoyMaterial.vue"
:[
"SB6x"
,
0
,
26
],
"./enterpriseApp/marketingMaterial/imageText.vue"
:[
"0qiV"
,
0
,
23
],
"./enterpriseApp/marketingMaterial/index.vue"
:[
"m0O4"
,
0
,
45
],
"./enterpriseApp/marketingMaterial/newEnjoy.vue"
:[
"7fkC"
,
0
,
18
],
"./enterpriseApp/marketingMaterial/newImageText.vue"
:[
"NajC"
,
0
,
15
],
"./enterpriseApp/myCustomer/cardGetRecord.vue"
:[
"YqmZ"
,
0
,
79
],
"./enterpriseApp/myCustomer/cardSendRecord.vue"
:[
"+Q5U"
,
0
,
96
],
"./enterpriseApp/myCustomer/chatRecord.vue"
:[
"gjw3"
,
0
,
58
],
"./enterpriseApp/myCustomer/index.vue"
:[
"/rje"
,
0
,
75
],
"./enterpriseApp/myCustomer/memeberBaseSet.vue"
:[
"N+Or"
,
0
,
94
],
"./enterpriseApp/myCustomer/newCard.vue"
:[
"G/J9"
,
0
,
91
],
"./enterpriseApp/myCustomer/onlineChatSet.vue"
:[
"ahzF"
,
0
,
24
],
"./enterpriseApp/myCustomer/sendRecord.vue"
:[
"8msp"
,
0
,
87
],
"./enterpriseApp/mycustomer.vue"
:[
"cuIN"
,
0
,
49
],
"./enterpriseApp/notice/addNotice.vue"
:[
"G5PL"
,
0
,
2
],
"./enterpriseApp/notice/index.vue"
:[
"av/3"
,
0
,
68
],
"./enterpriseApp/notice/noticeList.vue"
:[
"OVYO"
,
0
,
12
],
"./enterpriseApp/quota/companyDaySet.vue"
:[
"xk7v"
,
0
,
47
],
"./enterpriseApp/quota/index.vue"
:[
"FB5x"
,
0
,
63
],
"./enterpriseApp/quota/monthList.vue"
:[
"ZxDn"
,
0
,
57
],
"./enterpriseApp/quota/monthTask.vue"
:[
"cK0D"
,
0
,
86
],
"./enterpriseApp/quota/monthTaskDetail.vue"
:[
"jMbb"
,
0
,
80
],
"./enterpriseApp/quota/salerMonthDetail.vue"
:[
"IKv2"
,
0
,
69
],
"./enterpriseApp/quota/storeMonthTask.vue"
:[
"kF1j"
,
0
,
46
],
"./enterpriseApp/signApp/index.vue"
:[
"Gk4o"
,
0
,
48
],
"./enterpriseApp/signApp/signList.vue"
:[
"kCy7"
,
0
,
70
],
"./enterpriseApp/trafficTask/index.vue"
:[
"e88N"
,
0
,
98
],
"./enterpriseApp/trafficTask/taskDetail.vue"
:[
"A33E"
,
0
,
50
],
"./enterpriseApp/trafficTask/taskRecord.vue"
:[
"iG3v"
,
0
,
30
],
"./enterpriseApp/trafficTask/taskViewDetail.vue"
:[
"Akas"
,
0
,
78
],
"./enterpriseApp/trafficTask/trafficTaskSet.vue"
:[
"4H54"
,
0
,
66
],
"./errorPage/403.vue"
:[
"6XGN"
,
36
],
"./errorPage/404.vue"
:[
"AejC"
,
39
],
"./errorPage/500.vue"
:[
"FskK"
,
29
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
34
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
37
],
"./login/index.vue"
:[
"T+/8"
,
0
,
10
],
"./reviewCenter/index.vue"
:[
"+lem"
,
93
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
22
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
13
],
"./setting/addAdmin.vue"
:[
"rs/A"
,
0
,
56
],
"./setting/addAdminRole.vue"
:[
"fZsz"
,
0
,
81
],
"./setting/companyAddress.vue"
:[
"SKyE"
,
0
,
54
],
"./setting/companyCertify.vue"
:[
"3zYh"
,
0
,
16
],
"./setting/contactPermission.vue"
:[
"6zFj"
,
0
,
65
],
"./setting/index.vue"
:[
"VlR1"
,
44
],
"./setting/replaceAdmin.vue"
:[
"ys9I"
,
0
,
92
],
"./setting/setChildAdmin.vue"
:[
"VqB7"
,
0
,
77
],
"./setting/staffDetails.vue"
:[
"Zyzf"
,
0
,
32
],
"./setting/storePermission.vue"
:[
"Xwfy"
,
0
,
27
],
"./sign/index.vue"
:[
"RQuk"
,
0
,
95
]};
function
r
(
e
){
var
t
=
a
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
n
.
e
)).
then
(
function
(){
return
n
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
r
.
keys
=
function
(){
return
Object
.
keys
(
a
)},
r
.
id
=
"Opzk"
,
e
.
exports
=
r
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
t
){}},[
0
]);
webpackJsonp
([
101
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
n
){
n
(
"j1ja"
),
e
.
exports
=
n
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
n
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
a
){
n
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
a
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"mvHQ"
),
r
=
n
.
n
(
a
),
o
=
n
(
"fZjL"
),
p
=
n
.
n
(
o
),
i
=
(
n
(
"j1ja"
),
n
(
"hKoQ"
)),
s
=
n
.
n
(
i
),
c
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
m
=
n
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
c
,
!
1
,
function
(
e
){
n
(
"/NA0"
)},
null
,
null
).
exports
,
d
=
n
(
"lRwf"
),
u
=
n
.
n
(
d
),
l
=
n
(
"pRNm"
),
h
=
n
.
n
(
l
),
v
=
n
(
"5tgt"
),
g
=
n
.
n
(
v
);
u
.
a
.
use
(
h
.
a
);
var
A
=
function
(
e
){
n
.
e
(
1
).
then
(
n
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
y
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
g
()(
"login"
,
"index"
)},{
path
:
"/download"
,
name
:
"下载"
,
component
:
g
()(
"download"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
g
()(
"index"
,
"index"
)},{
path
:
"/sign"
,
name
:
"index"
,
component
:
g
()(
"sign"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"administrativeFrame"
,
component
:
g
()(
"contacts"
,
"index"
),
children
:[{
path
:
"/administrativeFrame"
,
name
:
"行政架构"
,
component
:
g
()(
"contacts"
,
"administrativeFrame"
)},{
path
:
"/employeeIo"
,
name
:
"批量导入/导出"
,
component
:
g
()(
"contacts"
,
"employeeIo"
)},{
path
:
"/addDepartment"
,
name
:
"添加部门"
,
component
:
g
()(
"contacts"
,
"addDepartment"
)},{
path
:
"/addClerk"
,
name
:
"添加店员"
,
component
:
g
()(
"contacts"
,
"addClerk"
)},{
path
:
"/storeFrame"
,
name
:
"门店架构"
,
component
:
g
()(
"contacts"
,
"storeFrame"
)},{
path
:
"/addGroup"
,
name
:
"添加子分组"
,
component
:
g
()(
"contacts"
,
"addGroup"
)},{
path
:
"/storeIo"
,
name
:
"门店导入/导出"
,
component
:
g
()(
"contacts"
,
"storeIo"
)},{
path
:
"/storeInfo"
,
name
:
"编辑门店"
,
component
:
g
()(
"contacts"
,
"storeInfo"
)},{
path
:
"/recycle"
,
name
:
"门店回收站"
,
component
:
g
()(
"contacts"
,
"recycle"
)},{
path
:
"/employee"
,
name
:
"编辑员工"
,
component
:
g
()(
"contacts"
,
"employee"
)},{
path
:
"/unemployee"
,
name
:
"离职员工"
,
component
:
g
()(
"contacts"
,
"unemployee"
)},{
path
:
"/fileSet"
,
name
:
"档案设置"
,
component
:
g
()(
"contacts"
,
"fileSet"
)},{
path
:
"/recordInfo"
,
name
:
"编辑员工信息"
,
component
:
g
()(
"contacts"
,
"recordInfo"
)},{
path
:
"/recordIo"
,
name
:
"导入导出员工档案"
,
component
:
g
()(
"contacts"
,
"recordIo"
)},{
path
:
"/shareContact"
,
name
:
"共享通讯录"
,
component
:
g
()(
"contacts"
,
"shareContact"
)},{
path
:
"/shareCode"
,
name
:
"共享通讯录二维码"
,
component
:
g
()(
"contacts"
,
"shareCode"
)},{
path
:
"/employeeRecord"
,
name
:
"在职员工"
,
component
:
g
()(
"contacts"
,
"employeeRecord"
)}]},{
path
:
"/enterpriseApp"
,
name
:
"企业应用"
,
redirect
:
"appcenter"
,
component
:
g
()(
"enterpriseApp"
,
"index"
),
children
:[{
path
:
"/appcenter"
,
name
:
"企业应用中心"
,
component
:
g
()(
"enterpriseApp"
,
"appcenter"
)},{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memeberBaseSet"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"index"
),
children
:[{
path
:
"/memeberBaseSet"
,
name
:
"会员基础设置"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"memeberBaseSet"
)},{
path
:
"/onlineChatSet"
,
name
:
"在线沟通设置"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"onlineChatSet"
)},{
path
:
"/chatRecord"
,
name
:
"聊天记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"chatRecord"
)},{
path
:
"/sendRecord"
,
name
:
"发送记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"sendRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"newCard"
)},{
path
:
"/cardSendRecord"
,
name
:
"卡券发送记录"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"cardSendRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"卡券领取卡券"
,
component
:
g
()(
"enterpriseApp/myCustomer"
,
"cardGetRecord"
)}]},{
path
:
"/marketing"
,
name
:
"营销素材"
,
redirect
:
"/imageText"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"index"
),
children
:[{
path
:
"/imageText"
,
name
:
"图文素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"imageText"
)},{
path
:
"/newImageText"
,
name
:
"选择图文"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"newImageText"
)},{
path
:
"/enjoyMaterial"
,
name
:
"纷享素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"enjoyMaterial"
)},{
path
:
"/newEnjoy"
,
name
:
"新建素材"
,
component
:
g
()(
"enterpriseApp/marketingMaterial"
,
"newEnjoy"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"customReport"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
g
()(
"enterpriseApp/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/noticeList"
,
name
:
"企业公告"
,
redirect
:
"/noticeList"
,
component
:
g
()(
"enterpriseApp/notice"
,
"index"
),
children
:[{
path
:
"/noticeList"
,
name
:
"企业公告列表"
,
component
:
g
()(
"enterpriseApp/notice"
,
"noticeList"
)},{
path
:
"/addNotice"
,
name
:
"新建公告"
,
component
:
g
()(
"enterpriseApp/notice"
,
"addNotice"
)}]},{
path
:
"/badEvaluate"
,
name
:
"不良评价"
,
redirect
:
"/badEvaluateRecord"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"index"
),
children
:[{
path
:
"/badEvaluateRecord"
,
name
:
"不良评价记录"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateRecord"
)},{
path
:
"/badEvaluateDetail"
,
name
:
"不良评价详情"
,
component
:
g
()(
"enterpriseApp/badEvaluate"
,
"badEvaluateDetail"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
g
()(
"enterpriseApp/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
g
()(
"enterpriseApp/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
g
()(
"enterpriseApp/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
g
()(
"enterpriseApp/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
g
()(
"enterpriseApp/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/signList"
,
name
:
"企业公告"
,
redirect
:
"/signList"
,
component
:
g
()(
"enterpriseApp/signApp"
,
"index"
),
children
:[{
path
:
"/signList"
,
name
:
"企业公告列表"
,
component
:
g
()(
"enterpriseApp/signApp"
,
"signList"
)}]},{
path
:
"/clockin"
,
name
:
"考勤打卡"
,
redirect
:
"/dayStatistics"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"index"
),
children
:[{
path
:
"/dayStatistics"
,
name
:
"日统计"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"dayStatistics"
)},{
path
:
"/workSet"
,
name
:
"考勤设置"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workSet"
)},{
path
:
"/workGroupSet"
,
name
:
"考勤设置"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workGroupSet"
)},{
path
:
"/workTimeManage"
,
name
:
"排班管理"
,
component
:
g
()(
"enterpriseApp/dailyAttendance"
,
"workTimeManage"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
g
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
g
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
g
()(
"reviewCenter"
,
"unreview"
)}]},{
path
:
"/setCenter"
,
name
:
"设置"
,
redirect
:
"companyAddress"
,
component
:
g
()(
"setting"
,
"index"
),
children
:[{
path
:
"/companyAddress"
,
name
:
"企业地址"
,
component
:
g
()(
"setting"
,
"companyAddress"
)},{
path
:
"/companyCertify"
,
name
:
"企业认证"
,
component
:
g
()(
"setting"
,
"companyCertify"
)},{
path
:
"/staffDetails"
,
name
:
"员工详情字段"
,
component
:
g
()(
"setting"
,
"staffDetails"
)},{
path
:
"/storePermission"
,
name
:
"门店权限设置"
,
component
:
g
()(
"setting"
,
"storePermission"
)},{
path
:
"/contactPermission"
,
name
:
"通讯录控制"
,
component
:
g
()(
"setting"
,
"contactPermission"
)},{
path
:
"/replaceAdmin"
,
name
:
"更换超级管理员"
,
component
:
g
()(
"setting"
,
"replaceAdmin"
)},{
path
:
"/setChildAdmin"
,
name
:
"设置子管理员"
,
component
:
g
()(
"setting"
,
"setChildAdmin"
)},{
path
:
"/addAdmin"
,
name
:
"添加管理员"
,
component
:
g
()(
"setting"
,
"addAdmin"
)},{
path
:
"/addAdminRole"
,
name
:
"添加管理员角色"
,
component
:
g
()(
"setting"
,
"addAdminRole"
)}]},{
path
:
"/staffRecordsTemplate"
,
name
:
"员工档案设置"
,
component
:
g
()(
"contacts"
,
"staffRecordsTemplate"
)},{
path
:
"/systemReportSet"
,
name
:
"系统报表设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"systemReportSet"
)},{
path
:
"/template"
,
name
:
"模板设置"
,
component
:
g
()(
"enterpriseApp/cloudDaily"
,
"template"
)},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
g
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
A
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
A
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
A
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
k
=
new
h
.
a
({
routes
:
y
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
w
=
n
(
"zL8q"
),
D
=
n
.
n
(
w
),
x
=
n
(
"Rf8U"
),
S
=
n
.
n
(
x
),
R
=
n
(
"mtWM"
),
C
=
n
.
n
(
R
),
T
=
n
(
"bOdI"
),
M
=
n
.
n
(
T
),
b
=
n
(
"SJI6"
),
E
=
n
.
n
(
b
);
u
.
a
.
use
(
E
.
a
);
var
I
=
new
E
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
},
mutations
:(
f
=
{},
M
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
M
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
M
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
M
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
f
)}),
j
=
(
n
(
"4qCZ"
),
n
(
"uKUT"
),
n
(
"Xcu2"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
n
=
new
Date
(
e
),
a
=
{
"M+"
:
n
.
getMonth
()
+
1
,
"D+"
:
n
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
n
.
getDay
()),
"h+"
:
n
.
getHours
(),
"m+"
:
n
.
getMinutes
(),
"s+"
:
n
.
getSeconds
(),
"q+"
:
Math
.
floor
((
n
.
getMonth
()
+
3
)
/
3
),
S
:
n
.
getMilliseconds
()};
for
(
var
r
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
n
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
a
)
new
RegExp
(
"("
+
r
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
a
[
r
]:(
"00"
+
a
[
r
]).
substr
((
""
+
a
[
r
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
,
o
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
i
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
r
+
"-"
+
a
+
" "
+
o
+
":"
+
p
+
":"
+
i
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
;
return
t
.
getFullYear
()
+
"-"
+
r
+
"-"
+
a
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
n
=
t
.
getMonth
()
+
1
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
r
=
n
<
10
?
"0"
+
n
:
n
,
o
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
i
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
r
+
"."
+
a
+
" "
+
o
+
":"
+
p
+
":"
+
i
}}}),
V
=
n
(
"TUaa"
),
q
=
n
.
n
(
V
),
P
=
n
(
"tyqE"
),
G
=
n
.
n
(
P
),
H
=
n
(
"pRVe"
),
L
=
n
.
n
(
H
),
F
=
n
(
"XsK6"
),
O
=
n
.
n
(
F
),
N
=
n
(
"QRL9"
),
z
=
n
.
n
(
N
),
Y
=
n
(
"2Pnh"
),
J
=
n
.
n
(
Y
),
K
=
n
(
"l9mu"
),
B
=
n
.
n
(
K
),
U
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
J
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
n
=
t
.
width
,
a
=
t
.
height
,
r
=
n
/
592.28
*
841.89
,
o
=
a
,
p
=
0
,
i
=
592.28
/
n
*
a
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
B
.
a
(
""
,
"pt"
,
"a4"
);
if
(
o
<
r
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
o
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
p
,
595.28
,
i
),
p
-=
841.89
,(
o
-=
r
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
X
=
n
(
"/IwO"
),
Q
=
n
.
n
(
X
);
s
.
a
.
polyfill
(),
Vue
.
use
(
Q
.
a
),
Q
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
U
),
Vue
.
use
(
O
.
a
),
Vue
.
use
(
z
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
use
(
G
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
D
.
a
,{
size
:
"large"
}),
Vue
.
use
(
S
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
p
()(
j
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
j
[
e
])}),
k
.
beforeEach
(
function
(
e
,
t
,
n
){
var
a
=
void
0
,
o
=
window
.
location
.
origin
;
a
=-
1
!=
o
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
o
,
localStorage
.
getItem
(
"userInfo"
)
||
C
.
a
.
get
(
a
+
"/haoban-manage-web/emp/get-user-info"
,{}).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
||
localStorage
.
setItem
(
"userInfo"
,
r
()(
t
.
result
))}).
catch
(
function
(
e
){
w
.
Message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})}),
"/"
==
e
.
path
?
n
({
path
:
"/login"
}):
n
()}),
new
Vue
({
el
:
"#app"
,
router
:
k
,
store
:
I
,
components
:{
App
:
m
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
n
){
var
a
=
{
"./contacts/addClerk.vue"
:[
"27o1"
,
0
,
28
],
"./contacts/addDepartment.vue"
:[
"HHRu"
,
0
,
21
],
"./contacts/addEmployee.vue"
:[
"00Sv"
,
64
],
"./contacts/addGroup.vue"
:[
"mPjx"
,
0
,
72
],
"./contacts/administrativeFrame.vue"
:[
"kLcy"
,
0
,
4
],
"./contacts/employee.vue"
:[
"AdJp"
,
0
,
62
],
"./contacts/employeeIo.vue"
:[
"Rwbg"
,
0
,
83
],
"./contacts/employeeRecord.vue"
:[
"zGJY"
,
0
,
9
],
"./contacts/fileSet.vue"
:[
"CSjr"
,
0
,
11
],
"./contacts/index.vue"
:[
"41Rh"
,
0
,
71
],
"./contacts/recordInfo.vue"
:[
"67iC"
,
0
,
17
],
"./contacts/recordIo.vue"
:[
"738z"
,
0
,
24
],
"./contacts/recycle.vue"
:[
"HkK0"
,
0
,
38
],
"./contacts/shareAddDepartment.vue"
:[
"q5Ri"
,
0
,
20
],
"./contacts/shareCode.vue"
:[
"JsWW"
,
0
,
43
],
"./contacts/shareContact.vue"
:[
"Gfms"
,
0
,
3
],
"./contacts/staffRecordsTemplate.vue"
:[
"lFAe"
,
0
,
59
],
"./contacts/storeFrame.vue"
:[
"7SJI"
,
0
,
6
],
"./contacts/storeInfo.vue"
:[
"h/6A"
,
0
,
60
],
"./contacts/storeIo.vue"
:[
"RHxA"
,
0
,
89
],
"./contacts/unemployee.vue"
:[
"TGrv"
,
0
,
19
],
"./download/index.vue"
:[
"ASGJ"
,
0
,
8
],
"./enterpriseApp/appcenter.vue"
:[
"yuVF"
,
0
,
40
],
"./enterpriseApp/badEvaluate/badEvaluateDetail.vue"
:[
"4m/B"
,
0
,
61
],
"./enterpriseApp/badEvaluate/badEvaluateRecord.vue"
:[
"r//C"
,
0
,
53
],
"./enterpriseApp/badEvaluate/badEvaluateSet.vue"
:[
"XzAK"
,
0
,
73
],
"./enterpriseApp/badEvaluate/index.vue"
:[
"W0k8"
,
0
,
51
],
"./enterpriseApp/cloudDaily/customReport.vue"
:[
"DxdI"
,
0
,
87
],
"./enterpriseApp/cloudDaily/dailyDetail.vue"
:[
"5nNU"
,
0
,
70
],
"./enterpriseApp/cloudDaily/dailyRecord.vue"
:[
"Ujni"
,
0
,
31
],
"./enterpriseApp/cloudDaily/index.vue"
:[
"Knd1"
,
0
,
82
],
"./enterpriseApp/cloudDaily/systemReport.vue"
:[
"Y8F9"
,
0
,
42
],
"./enterpriseApp/cloudDaily/systemReportSet.vue"
:[
"VE2c"
,
0
,
7
],
"./enterpriseApp/cloudDaily/taskAssign.vue"
:[
"5x7s"
,
0
,
84
],
"./enterpriseApp/cloudDaily/template.vue"
:[
"IA9l"
,
0
,
5
],
"./enterpriseApp/cloudDaily/template/block.vue"
:[
"PAYw"
,
55
],
"./enterpriseApp/cloudDaily/template/date-range.vue"
:[
"79Bk"
,
97
],
"./enterpriseApp/cloudDaily/template/image.vue"
:[
"H8Kg"
,
66
],
"./enterpriseApp/cloudDaily/template/input.vue"
:[
"s4D+"
,
75
],
"./enterpriseApp/cloudDaily/template/select.vue"
:[
"t0b0"
,
81
],
"./enterpriseApp/dailyAttendance/dayStatistics.vue"
:[
"gncU"
,
0
,
41
],
"./enterpriseApp/dailyAttendance/index.vue"
:[
"vgwM"
,
0
,
88
],
"./enterpriseApp/dailyAttendance/monthStatistics.vue"
:[
"z8Gq"
,
99
],
"./enterpriseApp/dailyAttendance/workGroupSet.vue"
:[
"estW"
,
0
,
14
],
"./enterpriseApp/dailyAttendance/workSet.vue"
:[
"A/XQ"
,
0
,
33
],
"./enterpriseApp/dailyAttendance/workTimeManage.vue"
:[
"/n/x"
,
0
,
35
],
"./enterpriseApp/index.vue"
:[
"da9f"
,
52
],
"./enterpriseApp/marketingMaterial/enjoyMaterial.vue"
:[
"SB6x"
,
0
,
26
],
"./enterpriseApp/marketingMaterial/imageText.vue"
:[
"0qiV"
,
0
,
23
],
"./enterpriseApp/marketingMaterial/index.vue"
:[
"m0O4"
,
0
,
45
],
"./enterpriseApp/marketingMaterial/newEnjoy.vue"
:[
"7fkC"
,
0
,
18
],
"./enterpriseApp/marketingMaterial/newImageText.vue"
:[
"NajC"
,
0
,
15
],
"./enterpriseApp/myCustomer/cardGetRecord.vue"
:[
"YqmZ"
,
0
,
78
],
"./enterpriseApp/myCustomer/cardSendRecord.vue"
:[
"+Q5U"
,
0
,
96
],
"./enterpriseApp/myCustomer/chatRecord.vue"
:[
"gjw3"
,
0
,
58
],
"./enterpriseApp/myCustomer/index.vue"
:[
"/rje"
,
0
,
74
],
"./enterpriseApp/myCustomer/memeberBaseSet.vue"
:[
"N+Or"
,
0
,
94
],
"./enterpriseApp/myCustomer/newCard.vue"
:[
"G/J9"
,
0
,
91
],
"./enterpriseApp/myCustomer/onlineChatSet.vue"
:[
"ahzF"
,
0
,
25
],
"./enterpriseApp/myCustomer/sendRecord.vue"
:[
"8msp"
,
0
,
86
],
"./enterpriseApp/mycustomer.vue"
:[
"cuIN"
,
0
,
49
],
"./enterpriseApp/notice/addNotice.vue"
:[
"G5PL"
,
0
,
2
],
"./enterpriseApp/notice/index.vue"
:[
"av/3"
,
0
,
67
],
"./enterpriseApp/notice/noticeList.vue"
:[
"OVYO"
,
0
,
12
],
"./enterpriseApp/quota/companyDaySet.vue"
:[
"xk7v"
,
0
,
47
],
"./enterpriseApp/quota/index.vue"
:[
"FB5x"
,
0
,
63
],
"./enterpriseApp/quota/monthList.vue"
:[
"ZxDn"
,
0
,
57
],
"./enterpriseApp/quota/monthTask.vue"
:[
"cK0D"
,
0
,
85
],
"./enterpriseApp/quota/monthTaskDetail.vue"
:[
"jMbb"
,
0
,
79
],
"./enterpriseApp/quota/salerMonthDetail.vue"
:[
"IKv2"
,
0
,
68
],
"./enterpriseApp/quota/storeMonthTask.vue"
:[
"kF1j"
,
0
,
46
],
"./enterpriseApp/signApp/index.vue"
:[
"Gk4o"
,
0
,
48
],
"./enterpriseApp/signApp/signList.vue"
:[
"kCy7"
,
0
,
69
],
"./enterpriseApp/trafficTask/index.vue"
:[
"e88N"
,
0
,
98
],
"./enterpriseApp/trafficTask/taskDetail.vue"
:[
"A33E"
,
0
,
50
],
"./enterpriseApp/trafficTask/taskRecord.vue"
:[
"iG3v"
,
0
,
30
],
"./enterpriseApp/trafficTask/taskViewDetail.vue"
:[
"Akas"
,
0
,
77
],
"./enterpriseApp/trafficTask/trafficTaskSet.vue"
:[
"4H54"
,
0
,
65
],
"./errorPage/403.vue"
:[
"6XGN"
,
36
],
"./errorPage/404.vue"
:[
"AejC"
,
39
],
"./errorPage/500.vue"
:[
"FskK"
,
29
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
34
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
37
],
"./login/index.vue"
:[
"T+/8"
,
0
,
10
],
"./reviewCenter/index.vue"
:[
"+lem"
,
93
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
22
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
13
],
"./setting/addAdmin.vue"
:[
"rs/A"
,
0
,
56
],
"./setting/addAdminRole.vue"
:[
"fZsz"
,
0
,
80
],
"./setting/companyAddress.vue"
:[
"SKyE"
,
0
,
54
],
"./setting/companyCertify.vue"
:[
"3zYh"
,
0
,
16
],
"./setting/contactPermission.vue"
:[
"6zFj"
,
0
,
90
],
"./setting/index.vue"
:[
"VlR1"
,
44
],
"./setting/replaceAdmin.vue"
:[
"ys9I"
,
0
,
92
],
"./setting/setChildAdmin.vue"
:[
"VqB7"
,
0
,
76
],
"./setting/staffDetails.vue"
:[
"Zyzf"
,
0
,
32
],
"./setting/storePermission.vue"
:[
"Xwfy"
,
0
,
27
],
"./sign/index.vue"
:[
"RQuk"
,
0
,
95
]};
function
r
(
e
){
var
t
=
a
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
n
.
e
)).
then
(
function
(){
return
n
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
r
.
keys
=
function
(){
return
Object
.
keys
(
a
)},
r
.
id
=
"Opzk"
,
e
.
exports
=
r
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
uKUT
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
18f41cf9bb78a4d667cc
.js
→
dist/static/js/manifest.
75e8d27e680007041051
.js
View file @
c46c6395
!
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
=
{
103
:
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
:
"129caf163abfe2429ea4"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"b4cd547e4cd1c85c02dd"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"08440951267a02e0f40a"
,
6
:
"383047e2e447a7e22614"
,
7
:
"b545128585c9ed62a709"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"06ac195b892351e84380"
,
13
:
"bc52bf775945fbeea217"
,
14
:
"4fca81a28867daa95602"
,
15
:
"d251e8a6c8d22c33bf8f"
,
16
:
"f483f95dbac654c7de5a"
,
17
:
"ff6edf624b982c354977"
,
18
:
"d2d67b4f5729ae6df7c6"
,
19
:
"d7d09ae4564d64842009"
,
20
:
"455fd80bd8af15457c57"
,
21
:
"c1b5e15e28768af52654"
,
22
:
"2a873e819c6c369d5cd1"
,
23
:
"83fde8c1a7dc128b4ba0"
,
24
:
"0cf65e860beee78f7a6c"
,
25
:
"d3508ee6e53c11c834a8"
,
26
:
"a4696a3d8f883d26cbba"
,
27
:
"80efeaa8fe902850d85c"
,
28
:
"46b6307b4aa0b1ade043"
,
29
:
"c5bb15e8e1bd17cdc0f7"
,
30
:
"5121cd15c522ec6aff68"
,
31
:
"6deea165c9172e1ef861"
,
32
:
"fc2213c2b57da6c25ea2"
,
33
:
"2384428cead47e1eec9d"
,
34
:
"73fbd87b52c9c1d20823"
,
35
:
"803f0fd338c68f9b9535"
,
36
:
"afbe204dbc41d7c5c89b"
,
37
:
"4871f1bc03003253497b"
,
38
:
"b38b04eff6b00a23650d"
,
39
:
"66cef0827526e8ede05b"
,
40
:
"a79be724c9e18f8dd17d"
,
41
:
"8091d9c715151eadc03e"
,
42
:
"54f2f4850c109391114a"
,
43
:
"fb46c0bad10552e7ef89"
,
44
:
"3d32c7e1954754671303"
,
45
:
"a9716608f3af52ee74c5"
,
46
:
"84083eac0c5c5b14a99f"
,
47
:
"5fba8d62f07fd68c7875"
,
48
:
"3d2a2f4e5dca20f701e8"
,
49
:
"c0c90eb73e8637aa4caf"
,
50
:
"d121c16edea8a23b184c"
,
51
:
"aa5454e0664f02f5f5f6"
,
52
:
"906057051eeca0acab78"
,
53
:
"ad34897b3043dc2ba8c4"
,
54
:
"6d6fb15946a63d0c8b8a"
,
55
:
"b43dde027408aa464eec"
,
56
:
"6832c3f53087f9be96f5"
,
57
:
"1b38513e926d99c9a5cf"
,
58
:
"c88fe58752788c30d808"
,
59
:
"eb86cb17b78ab558ad58"
,
60
:
"f5022ecb9fdbdd4f43c7"
,
61
:
"d591ce152461dfb3a63c"
,
62
:
"123750c66202ba673c34"
,
63
:
"0dc959e55244f121f914"
,
64
:
"dbe66f6cdec81545653c"
,
65
:
"07d108afee3ba276d3b0"
,
66
:
"922989ef9cae8ae8fa0d"
,
67
:
"87953f37519f1ef07363"
,
68
:
"49617d8ce02518b3ba55"
,
69
:
"e1def1703e6f72e40d82"
,
70
:
"1016099bd834fbabb9f9"
,
71
:
"a126863a54dd53b34f9e"
,
72
:
"98189992ad9c810067b6"
,
73
:
"342e27abafffffa6e51e"
,
74
:
"8217c8f19cc950e71bcc"
,
75
:
"e2071474899e555b8051"
,
76
:
"1a4d5717a57004080583"
,
77
:
"753919eb9dec9fd8e128"
,
78
:
"b18aacbbfed76627d59c"
,
79
:
"3017187b97af5175c76a"
,
80
:
"869ac1a7d3180d2bc8f8"
,
81
:
"b642770f6bb541055105"
,
82
:
"e93e0b8dc9338a7e214e"
,
83
:
"51b9cb2cf0033f7c0e2a"
,
84
:
"623af63bdee6d478308d"
,
85
:
"bb3f229cc47b83dec5db"
,
86
:
"3399c563d69998ce97e8"
,
87
:
"29432e7113f42af0aa23"
,
88
:
"5a4d2e0328d3aceb6b27"
,
89
:
"4186a9a4419d0d1ed6c7"
,
90
:
"861b3c7eee0a1ad2166b"
,
91
:
"1cc9efd6670312886795"
,
92
:
"e9bfe7d79655e973771e"
,
93
:
"6dca776ce9bed1cf9310"
,
94
:
"09be9a6fc81c6d292ce5"
,
95
:
"c3f379ca4f3ce71e3bfb"
,
96
:
"2efbe74c26dcfb77650f"
,
97
:
"ac2cf8e5e0e144c3b742"
,
98
:
"e0fd2c832397fdb94924"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"2c7e1d628bd2f4ac709c"
}[
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
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
f
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
103
:
0
};
function
d
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
a
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
d
),
a
.
l
=!
0
,
a
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
d
){
c
=
a
[
e
]
=
[
f
,
d
]});
c
[
2
]
=
f
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"129caf163abfe2429ea4"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"b4cd547e4cd1c85c02dd"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"992fbbfa5966c95375ae"
,
6
:
"68d292195a881fcb1c0d"
,
7
:
"b545128585c9ed62a709"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"06ac195b892351e84380"
,
13
:
"bc52bf775945fbeea217"
,
14
:
"4fca81a28867daa95602"
,
15
:
"d251e8a6c8d22c33bf8f"
,
16
:
"f483f95dbac654c7de5a"
,
17
:
"ff6edf624b982c354977"
,
18
:
"d2d67b4f5729ae6df7c6"
,
19
:
"d7d09ae4564d64842009"
,
20
:
"455fd80bd8af15457c57"
,
21
:
"c1b5e15e28768af52654"
,
22
:
"2a873e819c6c369d5cd1"
,
23
:
"83fde8c1a7dc128b4ba0"
,
24
:
"56085041ae784faf3c32"
,
25
:
"1f0440574e8a0bac19bb"
,
26
:
"a4696a3d8f883d26cbba"
,
27
:
"80efeaa8fe902850d85c"
,
28
:
"09ba708b317cd863bd41"
,
29
:
"c5bb15e8e1bd17cdc0f7"
,
30
:
"5121cd15c522ec6aff68"
,
31
:
"6deea165c9172e1ef861"
,
32
:
"fc2213c2b57da6c25ea2"
,
33
:
"2384428cead47e1eec9d"
,
34
:
"73fbd87b52c9c1d20823"
,
35
:
"803f0fd338c68f9b9535"
,
36
:
"afbe204dbc41d7c5c89b"
,
37
:
"4871f1bc03003253497b"
,
38
:
"b38b04eff6b00a23650d"
,
39
:
"66cef0827526e8ede05b"
,
40
:
"a79be724c9e18f8dd17d"
,
41
:
"8091d9c715151eadc03e"
,
42
:
"54f2f4850c109391114a"
,
43
:
"fb46c0bad10552e7ef89"
,
44
:
"3d32c7e1954754671303"
,
45
:
"a9716608f3af52ee74c5"
,
46
:
"84083eac0c5c5b14a99f"
,
47
:
"5fba8d62f07fd68c7875"
,
48
:
"3d2a2f4e5dca20f701e8"
,
49
:
"c0c90eb73e8637aa4caf"
,
50
:
"d121c16edea8a23b184c"
,
51
:
"aa5454e0664f02f5f5f6"
,
52
:
"906057051eeca0acab78"
,
53
:
"ad34897b3043dc2ba8c4"
,
54
:
"6d6fb15946a63d0c8b8a"
,
55
:
"b43dde027408aa464eec"
,
56
:
"6832c3f53087f9be96f5"
,
57
:
"1b38513e926d99c9a5cf"
,
58
:
"c88fe58752788c30d808"
,
59
:
"eb86cb17b78ab558ad58"
,
60
:
"f5022ecb9fdbdd4f43c7"
,
61
:
"d591ce152461dfb3a63c"
,
62
:
"123750c66202ba673c34"
,
63
:
"0dc959e55244f121f914"
,
64
:
"dbe66f6cdec81545653c"
,
65
:
"efbf8d97795f3130cf2a"
,
66
:
"ee588b2e7cc90c1990d4"
,
67
:
"dba142827d793ce3c03c"
,
68
:
"1fa9254f23908356844f"
,
69
:
"da63bdfde8b85b8101a0"
,
70
:
"86604494d6befb3b7fe1"
,
71
:
"c31161658f3f378b6d48"
,
72
:
"5d421834f52ef801a2b6"
,
73
:
"965c68191fa7d46bd0fa"
,
74
:
"4f9487c75611c4f24957"
,
75
:
"ae3378ba5883737ee93e"
,
76
:
"7bde1c1a121b6289d5ec"
,
77
:
"400573827121945ff6ec"
,
78
:
"4e1aa8a9d072352195d3"
,
79
:
"538d5c8bcccf2e7791b5"
,
80
:
"d63547dbc4122065934a"
,
81
:
"dc300d9df998b44e6232"
,
82
:
"144114e508b0964b3a4a"
,
83
:
"8f8eee29795665b74226"
,
84
:
"ae9e016eb15a5ec99e7f"
,
85
:
"bfae8273934cbb68d34c"
,
86
:
"62d40f9d4fac7cd847c0"
,
87
:
"0fb42cff2a7382428597"
,
88
:
"4baa99b5ba65f517e6b4"
,
89
:
"56ead064ee0a4d3c0039"
,
90
:
"8e9170a6a4b5293ea50b"
,
91
:
"1cc9efd6670312886795"
,
92
:
"e9bfe7d79655e973771e"
,
93
:
"6dca776ce9bed1cf9310"
,
94
:
"09be9a6fc81c6d292ce5"
,
95
:
"c3f379ca4f3ce71e3bfb"
,
96
:
"2efbe74c26dcfb77650f"
,
97
:
"ac2cf8e5e0e144c3b742"
,
98
:
"e0fd2c832397fdb94924"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"2c7e1d628bd2f4ac709c"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
f
},
d
.
m
=
e
,
d
.
c
=
f
,
d
.
d
=
function
(
e
,
c
,
f
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/contacts/storeFrame/clerkInfo.vue
View file @
c46c6395
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-02-19 12:20:38
* @Date: 2019-02-19 12:20:38
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-12-1
4 15:35:22
* @LastEditTime: 2020-12-1
6 15:10:35
-->
-->
<
template
>
<
template
>
<div
class=
"form-container bdr-box"
>
<div
class=
"form-container bdr-box"
>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-form-item
label=
"姓名"
prop=
"name"
>
<el-form-item
label=
"姓名"
prop=
"name"
>
<!--
<el-input
class=
"clerk-info-input"
v-model=
"clerkInfo.name"
></el-input>
-->
<!--
<el-input
class=
"clerk-info-input"
v-model=
"clerkInfo.name"
></el-input>
-->
<limitInput
:inputWidth=
"380"
:inputValue
.
sync=
"clerkInfo.name"
:holder=
"'请输入姓名'"
:maxLength=
"10"
>
</limitInput>
<limitInput
:inputWidth=
"380"
:inputValue
.
sync=
"clerkInfo.name"
:holder=
"'请输入姓名'"
:maxLength=
"10"
>
</limitInput>
<
div
v-if=
"!isAddnew"
class=
"font-12 color-909399"
>
设置修改后,修改姓名会覆盖移动端姓名
</div
>
<
!--
<div
v-if=
"!isAddnew"
class=
"font-12 color-909399"
>
设置修改后,修改姓名会覆盖移动端姓名
</div>
--
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"手机号"
prop=
"phoneNumber"
>
<el-form-item
label=
"手机号"
prop=
"phoneNumber"
>
<!--
<el-input
class=
"clerk-info-input"
v-model=
"clerkInfo.phoneNumber"
:disabled=
"!isAddnew"
></el-input>
-->
<!--
<el-input
class=
"clerk-info-input"
v-model=
"clerkInfo.phoneNumber"
:disabled=
"!isAddnew"
></el-input>
-->
...
...
src/views/setting/contactPermission.vue
View file @
c46c6395
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-08-01 14:42:38
* @Date: 2019-08-01 14:42:38
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-12-1
4 15:24:29
* @LastEditTime: 2020-12-1
7 11:09:05
-->
-->
<
template
>
<
template
>
<div
class=
"storePermission-wrap common-set-wrap"
>
<div
class=
"storePermission-wrap common-set-wrap"
>
...
@@ -17,12 +17,12 @@
...
@@ -17,12 +17,12 @@
</div>
</div>
<div
class=
"tip-text-wrap w-440 inline-block vertical-top"
>
注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。
</div>
<div
class=
"tip-text-wrap w-440 inline-block vertical-top"
>
注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。
</div>
</div>
</div>
<div
class=
"m-b-20"
>
<
!--
<
div
class=
"m-b-20"
>
<div
class=
"check-box-wrap inline-block vertical-top"
>
<div
class=
"check-box-wrap inline-block vertical-top"
>
<el-checkbox
v-model=
"contactHideFlag"
>
通讯录姓名修改后覆盖用户姓名
</el-checkbox>
<el-checkbox
v-model=
"contactHideFlag"
>
通讯录姓名修改后覆盖用户姓名
</el-checkbox>
</div>
</div>
<div
class=
"tip-text-wrap w-440 inline-block vertical-top"
></div>
<div
class=
"tip-text-wrap w-440 inline-block vertical-top"
></div>
</div>
</div>
-->
<div>
<div>
<el-button
type=
"primary"
@
click=
"saveSet"
>
保 存
</el-button>
<el-button
type=
"primary"
@
click=
"saveSet"
>
保 存
</el-button>
</div>
</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