Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
haoban-3
Commits
dbcf7719
Commit
dbcf7719
authored
Apr 27, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改内购券
parent
cacd5d87
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
19 deletions
+20
-19
index.html
dist/index.html
+2
-2
app.62e013248104cf461604be8b368f24cd.css
dist/static/css/app.62e013248104cf461604be8b368f24cd.css
+0
-0
6.8eb26935705e144eb957.js
dist/static/js/6.8eb26935705e144eb957.js
+2
-2
7.bd30aff9416a51d4f9d5.js
dist/static/js/7.bd30aff9416a51d4f9d5.js
+2
-2
8.4cb8d8e46bcf6128d48d.js
dist/static/js/8.4cb8d8e46bcf6128d48d.js
+2
-2
app.ada29f5f19f1511d7817.js
dist/static/js/app.ada29f5f19f1511d7817.js
+2
-2
manifest.d81c8e034ca554fa8d5b.js
dist/static/js/manifest.d81c8e034ca554fa8d5b.js
+2
-2
newCardPut.vue
src/views/apps/protectCard/newCardPut.vue
+6
-6
newCardStrategy.vue
src/views/apps/protectCard/newCardStrategy.vue
+2
-1
No files found.
dist/index.html
View file @
dbcf7719
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.ad08d07515b2544a1a35fc530b38792f.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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.7921d2aec9d27ba5a36b.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.deb8537a68603564aeea.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.62e013248104cf461604be8b368f24cd.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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.d81c8e034ca554fa8d5b.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.ada29f5f19f1511d7817.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
ad08d07515b2544a1a35fc530b38792f
.css
→
dist/static/css/app.
62e013248104cf461604be8b368f24cd
.css
View file @
dbcf7719
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/
8.5cbeb9fde8d49bf97a09
.js
→
dist/static/js/
6.8eb26935705e144eb957
.js
View file @
dbcf7719
webpackJsonp
([
8
],{
CJE6
:
function
(
e
,
t
){},
Zx22
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
{
name
:
"custom-dialog"
,
props
:{
value
:{
type
:
Boolean
,
default
:
!
1
},
storeChangeData
:{
type
:[
Object
,
Array
]}},
data
:
function
(){
return
{
repProjectName
:
"haoban-web"
,
customDialog
:
this
.
value
,
leftData
:[],
rightData
:[]}},
methods
:{
handleCardClose
:
function
(){
this
.
customCancel
()},
customCancel
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"input"
,
this
.
customDialog
)},
formatDate
:
function
(
e
,
t
){
function
a
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
}
var
s
=
new
Date
(
e
),
i
=
s
.
getFullYear
(),
o
=
s
.
getMonth
()
+
1
,
n
=
s
.
getDate
();
return
i
+
t
+
a
(
o
)
+
t
+
a
(
n
)
+
t
}},
watch
:{
value
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
storeChangeData
:
function
(
e
,
t
){
this
.
leftData
=
e
.
beforeContent
,
this
.
rightData
=
e
.
afterContent
}},
mounted
:
function
(){
this
.
leftData
=
this
.
storeChangeData
.
beforeContent
,
this
.
rightData
=
this
.
storeChangeData
.
afterContent
}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"custom-dialog-wrap"
},[
a
(
"el-dialog"
,{
attrs
:{
title
:
"门店图片变更"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleCardClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"dialog-content"
},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"div"
,{
staticClass
:
"grid-content bg-purple-dark"
},[
e
.
_v
(
"
\
n 变更前
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"data-body"
},[
a
(
"div"
,{
staticClass
:
"data-body-content flex flex-column"
},[
e
.
_l
(
e
.
leftData
,
function
(
e
,
t
){
return
[
a
(
"img"
,{
key
:
"img"
+
t
,
attrs
:{
src
:
e
,
alt
:
""
}})]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"div"
,{
staticClass
:
"grid-content bg-purple-dark"
},[
e
.
_v
(
"
\
n 变更后
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"data-body"
},[
a
(
"div"
,{
staticClass
:
"data-body-content flex flex-column"
},[
e
.
_l
(
e
.
rightData
,
function
(
e
,
t
){
return
[
a
(
"img"
,{
key
:
"img0"
+
t
,
attrs
:{
src
:
e
,
alt
:
""
}})]})],
2
)])])],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
e
){
a
(
"CJE6"
)},
"data-v-5a02018c"
,
null
);
t
.
a
=
o
.
exports
},
nWkG
:
function
(
e
,
t
){},
pOpB
:
function
(
e
,
t
){},
uEj7
:
function
(
e
,
t
){},
xCEU
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"//Fk"
),
i
=
a
.
n
(
s
),
o
=
a
(
"Zx22"
),
n
=
{
name
:
"record-list"
,
props
:{
detailShow
:{
type
:
Boolean
,
default
:
!
1
},
tableListData
:{
type
:
Object
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
tableData
:[]}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideDetailDialog"
)}},
watch
:{
detailShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
tableListData
:
function
(
e
,
t
){
this
.
tableData
=
e
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
detailShow
,
this
.
tableData
=
this
.
tableListData
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"审核详情"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
height
:
"332"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"审核事项"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
auditingType
?
"门店信息变更"
:
1
==
t
.
row
.
auditingType
?
"新增成员"
:
2
==
t
.
row
.
auditingType
?
"成员离职"
:
"转移成员"
)
+
"
\
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
.
brandName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交人"
,
width
:
"150"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
headPic
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headPic
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
applyName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-13 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))])])])]}}])}),
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
)))])]}}])}),
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
.
auditStatus
)
+
"
\
n "
)]}}])})],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
n
,
l
,
!
1
,
function
(
e
){
a
(
"nWkG"
)},
"data-v-55dc7f0b"
,
null
).
exports
,
c
=
{
name
:
"record-list"
,
props
:{
resultText
:{
type
:
String
,
default
:
""
},
resultShow
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
customDialog
:
this
.
resultShow
}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideResultDialog"
)},
showDetail
:
function
(){
this
.
$emit
(
"showResultDetail"
)}},
watch
:{
resultShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
resultShow
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"提示"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"div"
,{
staticClass
:
"result-content"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
resultText
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showDetail
}},[
e
.
_v
(
"查看详情"
)])],
1
)])])],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"uEj7"
)},
"data-v-305aa100"
,
null
).
exports
,
f
=
a
(
"3E4D"
),
h
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
v
=
a
(
"P9l9"
),
g
=
{
name
:
"unreview"
,
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
auditName
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
filterValue
:
""
,
filterBrand
:
""
,
brandOptions
:[],
searchValue
:
""
,
filterOptions
:[{
label
:
"全部事项"
,
value
:
""
},{
label
:
"门店信息变更"
,
value
:
"1"
}],
tableData
:[],
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
selectId
:
""
,
ruleForm
:{
refuseReason
:
""
},
rules
:{
refuseReason
:[{
required
:
!
0
,
message
:
"拒绝理由不能为空"
,
trigger
:
"change"
},{
min
:
1
,
max
:
50
,
message
:
"长度在 1 到 50 个字"
,
trigger
:
"change"
}]},
showStoreDialog
:
!
1
,
storeChangeData
:{
beforeContent
:[],
afterContent
:[]},
approveVisible
:
!
1
,
refuseVisible
:
!
1
,
detailShow
:
!
1
,
resultShow
:
!
1
,
tableListData
:[],
resultText
:
""
,
userData
:{
staffName
:
""
,
phoneNumber
:
""
,
nationCode
:
""
,
postion
:
""
,
departmentName
:
""
,
headImg
:
""
}}},
computed
:{},
methods
:{
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
searchEnterFun
:
Object
(
p
.
a
)(
function
(
e
){
if
(
!
String
(
e
.
target
.
value
).
trim
())
return
!
1
;
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
hideDetailDialog
:
function
(){
this
.
detailShow
=!
1
},
hideResultDialog
:
function
(){
this
.
resultShow
=!
1
,
this
.
getTableList
()},
showResultDetail
:
function
(){
this
.
detailShow
=!
0
},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleClick
:
function
(
e
,
t
,
a
){
var
s
=
this
;
if
(
s
.
selectId
=
t
.
auditId
,
a
&&
(
s
.
refuseVisible
=!
0
),
a
)
return
!
1
;
s
.
$confirm
(
"是否确认同意?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
s
.
sendApprove
()}).
catch
(
function
(){
s
.
selectId
=
""
})},
sendApprove
:
Object
(
p
.
a
)(
function
(){
this
.
postApprove
(
this
.
selectId
)},
500
),
approveAll
:
function
(){
var
e
=
this
,
t
=
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
auditId
}):
""
;
if
(
!
t
)
return
e
.
$message
({
message
:
"请至少选择一条审核事项"
,
type
:
"warning"
}),
!
1
;
e
.
$confirm
(
"是否批量同意?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postAllApprove
(
t
)})},
postApprove
:
function
(
e
){
var
t
=
this
,
a
=
{
auditId
:
e
,
auditName
:
t
.
auditName
};
Object
(
v
.
d
)(
"/haoban-manage3-web/audit/audit"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
f
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
approveVisible
=!
1
,
t
.
getTableList
(),
void
t
.
$forceUpdate
();
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
postAllApprove
:
function
(
e
){
var
t
=
this
,
a
=
{
auditIds
:
e
};
Object
(
v
.
d
)(
"/haoban-manage3-web/audit/batch-approve"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
){
var
s
=
a
.
result
.
list
;
return
t
.
resultText
=
a
.
result
.
auditResult
,
t
.
tableListData
=
[],
t
.
tableData
.
forEach
(
function
(
e
){
s
.
forEach
(
function
(
a
){
a
.
auditId
==
e
.
auditId
&&
(
e
.
auditStatus
=
1
==
a
.
auditStatus
?
"成功"
:
"失败"
,
t
.
tableListData
.
push
(
e
))})}),
void
(
t
.
resultShow
=!
0
)}
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelRefuse
:
function
(
e
){
this
.
refuseVisible
=!
1
,
this
.
$refs
.
ruleForm
.
resetFields
()},
sendRefuse
:
Object
(
p
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postRefuse
()})},
500
),
postRefuse
:
function
(){
var
e
=
this
,
t
=
{
auditName
:
e
.
auditName
,
auditId
:
e
.
selectId
,
auditReason
:
e
.
ruleForm
.
refuseReason
};
Object
(
v
.
a
)(
"/haoban-manage3-web/audit/refuse"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
f
.
a
.
showmsg
(
"操作成功"
,
"success"
),
e
.
refuseVisible
=!
1
,
e
.
$refs
.
ruleForm
.
resetFields
(),
void
e
.
getTableList
();
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
showSingleInfo
:
function
(
e
){
var
t
=
this
,
a
=
{
staffId
:
e
};
Object
(
v
.
d
)(
"/haoban-manage3-web/get-staff-info"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
h
.
a
.
errorMsg
(
a
):
t
.
userData
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
showStoreChange
:
function
(
e
){
this
.
storeChangeData
=
{
beforeContent
:[],
afterContent
:[]},
this
.
showStoreDialog
=!
0
,
this
.
storeChangeData
=
{
beforeContent
:
""
!=
e
.
oldValue
?
e
.
oldValue
.
split
(
","
):[],
afterContent
:
""
!=
e
.
newValue
?
e
.
newValue
.
split
(
","
):[]}},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
v
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
h
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
e
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toLogin
:
function
(){
var
e
=
this
;
return
new
i
.
a
(
function
(
t
,
a
){
Object
(
v
.
a
)(
"/haoban-manage3-web/get-login-info"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?(
h
.
a
.
errorMsg
(
a
),
t
({
wxEnterpriseId
:
""
})):
t
(
a
.
result
.
wxEnterpriseId
)}).
catch
(
function
(
a
){
t
({
wxEnterpriseId
:
""
}),
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})})},
getTableList
:
function
(
e
){
var
t
=
this
;
e
&&
(
t
.
currentPage
=
1
);
var
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
,
auditType
:
t
.
filterValue
,
auditStatus
:
"0"
,
auditFlag
:
"0"
,
search
:
t
.
searchValue
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
enterpriseId
:
t
.
filterBrand
};
Object
(
v
.
a
)(
"/haoban-manage3-web/audit/find-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
result
||
[],
void
(
t
.
total
=
a
.
result
.
totalCount
);
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
this
.
getTableList
(),
this
.
getBrandData
()},
components
:{
storeChange
:
o
.
a
,
reviewResultDetail
:
r
,
reviewResult
:
d
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"unreview-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 126px)"
}},[
a
(
"div"
,{
staticClass
:
"reviewed-body-head flex flex-space-between"
},[
a
(
"div"
,[
a
(
"el-input"
,{
staticClass
:
"w-250 "
,
attrs
:{
placeholder
:
"请输入提交人姓名或门店名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchEnterFun
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"searchValue"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130 m-l-10"
,
attrs
:{
placeholder
:
"全部事项"
},
on
:{
change
:
e
.
getTableList
},
model
:{
value
:
e
.
filterValue
,
callback
:
function
(
t
){
e
.
filterValue
=
t
},
expression
:
"filterValue"
}},
e
.
_l
(
e
.
filterOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-select"
,{
staticClass
:
"w-168 m-l-10"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
e
.
getTableList
},
model
:{
value
:
e
.
filterBrand
,
callback
:
function
(
t
){
e
.
filterBrand
=
t
},
expression
:
"filterBrand"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部品牌"
,
value
:
""
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
brandOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
enterpriseId
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}})})],
2
)],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"reviewed-body-content"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"审核事项"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
auditType
?
"门店信息变更"
:
1
==
t
.
row
.
auditType
?
"新增成员"
:
2
==
t
.
row
.
auditType
?
"成员离职"
:
"转移成员"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"300"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
commitStaffId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
e
.
userData
.
headImg
?
a
(
"img"
,{
attrs
:{
src
:
e
.
userData
.
headImg
,
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
(
e
.
userData
.
staffName
||
"--"
)
+
" ( "
+
e
.
_s
(
e
.
userData
.
position
||
"--"
)
+
")
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
"86"
==
e
.
userData
.
nationCode
?
e
.
userData
.
phoneNumber
:
"+"
+
e
.
userData
.
nationCode
+
"-"
+
e
.
userData
.
phoneNumber
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属部门:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
e
.
userData
.
departmentName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"
},[
t
.
row
.
commitStaffImg
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
commitStaffImg
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
,
staticStyle
:{
overflow
:
"hidden"
,
"text-overflow"
:
"ellipsis"
,
"white-space"
:
"nowrap"
}},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
commitStaffName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-13"
,
staticStyle
:{
overflow
:
"hidden"
,
"text-overflow"
:
"ellipsis"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
e
.
_s
(
t
.
row
.
commitStoreName
||
"--"
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"详情"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
6
!=
t
.
row
.
changeField
?
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
detail
))]):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
row
.
changeField
?
a
(
"div"
,{
staticClass
:
"line-hidden-2"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
detail
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
showStoreChange
(
t
.
row
)}}},[
e
.
_v
(
"查看详情"
)])],
1
):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"line-h-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-h-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleClick
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"同意"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleClick
(
t
.
$index
,
t
.
row
,
"refuse"
)}}},[
e
.
_v
(
"拒绝"
)])]}}])})],
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"
:[
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
(
"storeChange"
,{
attrs
:{
storeChangeData
:
e
.
storeChangeData
},
model
:{
value
:
e
.
showStoreDialog
,
callback
:
function
(
t
){
e
.
showStoreDialog
=
t
},
expression
:
"showStoreDialog"
}}),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
staticClass
:
"approve-dialog"
,
attrs
:{
title
:
""
,
visible
:
e
.
approveVisible
,
width
:
"422px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
approveVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"approve-body text-center"
},[
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-success"
}),
a
(
"span"
,{
staticClass
:
"approve-icon-tip"
},[
e
.
_v
(
"同意"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-tip"
},[
e
.
_v
(
"是否确认同意"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-footer dialog-footer"
,
staticStyle
:{
"text-align"
:
"center"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
approveVisible
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sendApprove
}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
staticClass
:
"refuse-dialog"
,
attrs
:{
title
:
"提示"
,
visible
:
e
.
refuseVisible
,
"before-close"
:
e
.
cancelRefuse
,
width
:
"422px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
refuseVisible
=
t
}}},[
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"refuse-tip"
},[
e
.
_v
(
"请输入拒绝理由"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
""
,
prop
:
"refuseReason"
}},[
a
(
"el-input"
,{
staticClass
:
"font-14"
,
attrs
:{
type
:
"textarea"
,
placeholder
:
"最多 50 个字"
,
rows
:
3
},
model
:{
value
:
e
.
ruleForm
.
refuseReason
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"refuseReason"
,
t
)},
expression
:
"ruleForm.refuseReason"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-footer dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
cancelRefuse
(
"ruleForm"
)}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
sendRefuse
(
"ruleForm"
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"review-result-detail"
,{
attrs
:{
tableListData
:
e
.
tableListData
,
detailShow
:
e
.
detailShow
},
on
:{
hideDetailDialog
:
e
.
hideDetailDialog
}}),
e
.
_v
(
" "
),
a
(
"review-result"
,{
attrs
:{
resultText
:
e
.
resultText
,
resultShow
:
e
.
resultShow
},
on
:{
showResultDetail
:
e
.
showResultDetail
,
hideResultDialog
:
e
.
hideResultDialog
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
m
,
!
1
,
function
(
e
){
a
(
"pOpB"
)},
"data-v-3e5c6cfe"
,
null
);
t
.
default
=
b
.
exports
}});
\ No newline at end of file
webpackJsonp
([
6
],{
CJE6
:
function
(
e
,
t
){},
Zx22
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
{
name
:
"custom-dialog"
,
props
:{
value
:{
type
:
Boolean
,
default
:
!
1
},
storeChangeData
:{
type
:[
Object
,
Array
]}},
data
:
function
(){
return
{
repProjectName
:
"haoban-web"
,
customDialog
:
this
.
value
,
leftData
:[],
rightData
:[]}},
methods
:{
handleCardClose
:
function
(){
this
.
customCancel
()},
customCancel
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"input"
,
this
.
customDialog
)},
formatDate
:
function
(
e
,
t
){
function
a
(
e
){
return
e
>
9
?
""
+
e
:
"0"
+
e
}
var
s
=
new
Date
(
e
),
i
=
s
.
getFullYear
(),
o
=
s
.
getMonth
()
+
1
,
n
=
s
.
getDate
();
return
i
+
t
+
a
(
o
)
+
t
+
a
(
n
)
+
t
}},
watch
:{
value
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
storeChangeData
:
function
(
e
,
t
){
this
.
leftData
=
e
.
beforeContent
,
this
.
rightData
=
e
.
afterContent
}},
mounted
:
function
(){
this
.
leftData
=
this
.
storeChangeData
.
beforeContent
,
this
.
rightData
=
this
.
storeChangeData
.
afterContent
}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"custom-dialog-wrap"
},[
a
(
"el-dialog"
,{
attrs
:{
title
:
"门店图片变更"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleCardClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"dialog-content"
},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"div"
,{
staticClass
:
"grid-content bg-purple-dark"
},[
e
.
_v
(
"
\
n 变更前
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"data-body"
},[
a
(
"div"
,{
staticClass
:
"data-body-content flex flex-column"
},[
e
.
_l
(
e
.
leftData
,
function
(
e
,
t
){
return
[
a
(
"img"
,{
key
:
"img"
+
t
,
attrs
:{
src
:
e
,
alt
:
""
}})]})],
2
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"div"
,{
staticClass
:
"grid-content bg-purple-dark"
},[
e
.
_v
(
"
\
n 变更后
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"data-body"
},[
a
(
"div"
,{
staticClass
:
"data-body-content flex flex-column"
},[
e
.
_l
(
e
.
rightData
,
function
(
e
,
t
){
return
[
a
(
"img"
,{
key
:
"img0"
+
t
,
attrs
:{
src
:
e
,
alt
:
""
}})]})],
2
)])])],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
s
,
i
,
!
1
,
function
(
e
){
a
(
"CJE6"
)},
"data-v-5a02018c"
,
null
);
t
.
a
=
o
.
exports
},
nWkG
:
function
(
e
,
t
){},
pOpB
:
function
(
e
,
t
){},
uEj7
:
function
(
e
,
t
){},
xCEU
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"//Fk"
),
i
=
a
.
n
(
s
),
o
=
a
(
"Zx22"
),
n
=
{
name
:
"record-list"
,
props
:{
detailShow
:{
type
:
Boolean
,
default
:
!
1
},
tableListData
:{
type
:
Object
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
customDialog
:
!
1
,
tableData
:[]}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideDetailDialog"
)}},
watch
:{
detailShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
},
tableListData
:
function
(
e
,
t
){
this
.
tableData
=
e
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
detailShow
,
this
.
tableData
=
this
.
tableListData
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"审核详情"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
height
:
"332"
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"publishRecordId"
,
label
:
"审核事项"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
auditingType
?
"门店信息变更"
:
1
==
t
.
row
.
auditingType
?
"新增成员"
:
2
==
t
.
row
.
auditingType
?
"成员离职"
:
"转移成员"
)
+
"
\
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
.
brandName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交人"
,
width
:
"150"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"
},[
t
.
row
.
headPic
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
headPic
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
},[
a
(
"span"
,{
staticClass
:
"text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
applyName
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-13 text-ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
))])])])]}}])}),
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
)))])]}}])}),
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
.
auditStatus
)
+
"
\
n "
)]}}])})],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
n
,
l
,
!
1
,
function
(
e
){
a
(
"nWkG"
)},
"data-v-55dc7f0b"
,
null
).
exports
,
c
=
{
name
:
"record-list"
,
props
:{
resultText
:{
type
:
String
,
default
:
""
},
resultShow
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
customDialog
:
this
.
resultShow
}},
methods
:{
handleClose
:
function
(
e
){
e
(),
this
.
hideDialog
()},
customCancel
:
function
(){
this
.
hideDialog
()},
hideDialog
:
function
(){
this
.
customDialog
=!
1
,
this
.
$emit
(
"hideResultDialog"
)},
showDetail
:
function
(){
this
.
$emit
(
"showResultDetail"
)}},
watch
:{
resultShow
:
function
(
e
,
t
){
this
.
customDialog
=
e
}},
mounted
:
function
(){
this
.
customDialog
=
this
.
resultShow
}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
customDialog
,
expression
:
"customDialog"
}]},[
a
(
"el-dialog"
,{
staticClass
:
"edit-dialog"
,
attrs
:{
title
:
"提示"
,
visible
:
e
.
customDialog
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
customDialog
=
t
}}},[
a
(
"div"
,{
staticClass
:
"edit-dialog-body"
},[
a
(
"div"
,{
staticClass
:
"result-content"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
resultText
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showDetail
}},[
e
.
_v
(
"查看详情"
)])],
1
)])])],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
a
(
"uEj7"
)},
"data-v-305aa100"
,
null
).
exports
,
f
=
a
(
"3E4D"
),
h
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
v
=
a
(
"P9l9"
),
g
=
{
name
:
"unreview"
,
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
auditName
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
filterValue
:
""
,
filterBrand
:
""
,
brandOptions
:[],
searchValue
:
""
,
filterOptions
:[{
label
:
"全部事项"
,
value
:
""
},{
label
:
"门店信息变更"
,
value
:
"1"
}],
tableData
:[],
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
selectId
:
""
,
ruleForm
:{
refuseReason
:
""
},
rules
:{
refuseReason
:[{
required
:
!
0
,
message
:
"拒绝理由不能为空"
,
trigger
:
"change"
},{
min
:
1
,
max
:
50
,
message
:
"长度在 1 到 50 个字"
,
trigger
:
"change"
}]},
showStoreDialog
:
!
1
,
storeChangeData
:{
beforeContent
:[],
afterContent
:[]},
approveVisible
:
!
1
,
refuseVisible
:
!
1
,
detailShow
:
!
1
,
resultShow
:
!
1
,
tableListData
:[],
resultText
:
""
,
userData
:{
staffName
:
""
,
phoneNumber
:
""
,
nationCode
:
""
,
postion
:
""
,
departmentName
:
""
,
headImg
:
""
}}},
computed
:{},
methods
:{
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
searchEnterFun
:
Object
(
p
.
a
)(
function
(
e
){
if
(
!
String
(
e
.
target
.
value
).
trim
())
return
!
1
;
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
hideDetailDialog
:
function
(){
this
.
detailShow
=!
1
},
hideResultDialog
:
function
(){
this
.
resultShow
=!
1
,
this
.
getTableList
()},
showResultDetail
:
function
(){
this
.
detailShow
=!
0
},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
handleClick
:
function
(
e
,
t
,
a
){
var
s
=
this
;
if
(
s
.
selectId
=
t
.
auditId
,
a
&&
(
s
.
refuseVisible
=!
0
),
a
)
return
!
1
;
s
.
$confirm
(
"是否确认同意?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
s
.
sendApprove
()}).
catch
(
function
(){
s
.
selectId
=
""
})},
sendApprove
:
Object
(
p
.
a
)(
function
(){
this
.
postApprove
(
this
.
selectId
)},
500
),
approveAll
:
function
(){
var
e
=
this
,
t
=
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
auditId
}):
""
;
if
(
!
t
)
return
e
.
$message
({
message
:
"请至少选择一条审核事项"
,
type
:
"warning"
}),
!
1
;
e
.
$confirm
(
"是否批量同意?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postAllApprove
(
t
)})},
postApprove
:
function
(
e
){
var
t
=
this
,
a
=
{
auditId
:
e
,
auditName
:
t
.
auditName
};
Object
(
v
.
d
)(
"/haoban-manage3-web/audit/audit"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
f
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
approveVisible
=!
1
,
t
.
getTableList
(),
void
t
.
$forceUpdate
();
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
postAllApprove
:
function
(
e
){
var
t
=
this
,
a
=
{
auditIds
:
e
};
Object
(
v
.
d
)(
"/haoban-manage3-web/audit/batch-approve"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
){
var
s
=
a
.
result
.
list
;
return
t
.
resultText
=
a
.
result
.
auditResult
,
t
.
tableListData
=
[],
t
.
tableData
.
forEach
(
function
(
e
){
s
.
forEach
(
function
(
a
){
a
.
auditId
==
e
.
auditId
&&
(
e
.
auditStatus
=
1
==
a
.
auditStatus
?
"成功"
:
"失败"
,
t
.
tableListData
.
push
(
e
))})}),
void
(
t
.
resultShow
=!
0
)}
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
cancelRefuse
:
function
(
e
){
this
.
refuseVisible
=!
1
,
this
.
$refs
.
ruleForm
.
resetFields
()},
sendRefuse
:
Object
(
p
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postRefuse
()})},
500
),
postRefuse
:
function
(){
var
e
=
this
,
t
=
{
auditName
:
e
.
auditName
,
auditId
:
e
.
selectId
,
auditReason
:
e
.
ruleForm
.
refuseReason
};
Object
(
v
.
a
)(
"/haoban-manage3-web/audit/refuse"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
f
.
a
.
showmsg
(
"操作成功"
,
"success"
),
e
.
refuseVisible
=!
1
,
e
.
$refs
.
ruleForm
.
resetFields
(),
void
e
.
getTableList
();
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
showSingleInfo
:
function
(
e
){
var
t
=
this
,
a
=
{
staffId
:
e
};
Object
(
v
.
d
)(
"/haoban-manage3-web/get-staff-info"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
h
.
a
.
errorMsg
(
a
):
t
.
userData
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
showStoreChange
:
function
(
e
){
this
.
storeChangeData
=
{
beforeContent
:[],
afterContent
:[]},
this
.
showStoreDialog
=!
0
,
this
.
storeChangeData
=
{
beforeContent
:
""
!=
e
.
oldValue
?
e
.
oldValue
.
split
(
","
):[],
afterContent
:
""
!=
e
.
newValue
?
e
.
newValue
.
split
(
","
):[]}},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
v
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
h
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
e
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toLogin
:
function
(){
var
e
=
this
;
return
new
i
.
a
(
function
(
t
,
a
){
Object
(
v
.
a
)(
"/haoban-manage3-web/get-login-info"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?(
h
.
a
.
errorMsg
(
a
),
t
({
wxEnterpriseId
:
""
})):
t
(
a
.
result
.
wxEnterpriseId
)}).
catch
(
function
(
a
){
t
({
wxEnterpriseId
:
""
}),
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})})},
getTableList
:
function
(
e
){
var
t
=
this
;
e
&&
(
t
.
currentPage
=
1
);
var
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
,
auditType
:
t
.
filterValue
,
auditStatus
:
"0"
,
auditFlag
:
"0"
,
search
:
t
.
searchValue
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
enterpriseId
:
t
.
filterBrand
};
Object
(
v
.
a
)(
"/haoban-manage3-web/audit/find-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
result
||
[],
void
(
t
.
total
=
a
.
result
.
totalCount
);
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
this
.
getTableList
(),
this
.
getBrandData
()},
components
:{
storeChange
:
o
.
a
,
reviewResultDetail
:
r
,
reviewResult
:
d
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"unreview-wrap common-set-wrap"
},[
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 126px)"
}},[
a
(
"div"
,{
staticClass
:
"reviewed-body-head flex flex-space-between"
},[
a
(
"div"
,[
a
(
"el-input"
,{
staticClass
:
"w-250 "
,
attrs
:{
placeholder
:
"请输入提交人姓名或门店名称"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
searchEnterFun
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"searchValue"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"w-130 m-l-10"
,
attrs
:{
placeholder
:
"全部事项"
},
on
:{
change
:
e
.
getTableList
},
model
:{
value
:
e
.
filterValue
,
callback
:
function
(
t
){
e
.
filterValue
=
t
},
expression
:
"filterValue"
}},
e
.
_l
(
e
.
filterOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-select"
,{
staticClass
:
"w-168 m-l-10"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
e
.
getTableList
},
model
:{
value
:
e
.
filterBrand
,
callback
:
function
(
t
){
e
.
filterBrand
=
t
},
expression
:
"filterBrand"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"全部品牌"
,
value
:
""
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
brandOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
enterpriseId
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}})})],
2
)],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"reviewed-body-content"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"审核事项"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
auditType
?
"门店信息变更"
:
1
==
t
.
row
.
auditType
?
"新增成员"
:
2
==
t
.
row
.
auditType
?
"成员离职"
:
"转移成员"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"el-popover"
,{
attrs
:{
placement
:
"top-start"
,
width
:
"300"
,
trigger
:
"hover"
},
on
:{
show
:
function
(
a
){
e
.
showSingleInfo
(
t
.
row
.
commitStaffId
)}}},[
a
(
"div"
,{
staticClass
:
"apply-info-detail"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"apply-info-img flex-align-center flex-pack-center bg-82C5FF "
},[
e
.
userData
.
headImg
?
a
(
"img"
,{
attrs
:{
src
:
e
.
userData
.
headImg
,
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
(
e
.
userData
.
staffName
||
"--"
)
+
" ( "
+
e
.
_s
(
e
.
userData
.
position
||
"--"
)
+
")
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-phone"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"手机号:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
"86"
==
e
.
userData
.
nationCode
?
e
.
userData
.
phoneNumber
:
"+"
+
e
.
userData
.
nationCode
+
"-"
+
e
.
userData
.
phoneNumber
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"apply-info-store"
},[
a
(
"span"
,{
staticClass
:
"w-80"
},[
e
.
_v
(
"所属部门:"
)]),
a
(
"span"
,{
staticClass
:
"w-130"
},[
e
.
_v
(
e
.
_s
(
e
.
userData
.
departmentName
||
"--"
))])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"
},[
t
.
row
.
commitStaffImg
?
a
(
"img"
,{
attrs
:{
src
:
t
.
row
.
commitStaffImg
,
alt
:
"img"
}}):
a
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex flex-column apply-info"
,
staticStyle
:{
overflow
:
"hidden"
,
"text-overflow"
:
"ellipsis"
,
"white-space"
:
"nowrap"
}},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
commitStaffName
||
"--"
))]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-13"
,
staticStyle
:{
overflow
:
"hidden"
,
"text-overflow"
:
"ellipsis"
,
"white-space"
:
"nowrap"
}},[
e
.
_v
(
e
.
_s
(
t
.
row
.
commitStoreName
||
"--"
))])])],
1
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"详情"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
6
!=
t
.
row
.
changeField
?
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
detail
))]):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
row
.
changeField
?
a
(
"div"
,{
staticClass
:
"line-hidden-2"
},[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
detail
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
showStoreChange
(
t
.
row
)}}},[
e
.
_v
(
"查看详情"
)])],
1
):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"提交时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"line-h-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
createTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-h-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
createTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleClick
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"同意"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
handleClick
(
t
.
$index
,
t
.
row
,
"refuse"
)}}},[
e
.
_v
(
"拒绝"
)])]}}])})],
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"
:[
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
(
"storeChange"
,{
attrs
:{
storeChangeData
:
e
.
storeChangeData
},
model
:{
value
:
e
.
showStoreDialog
,
callback
:
function
(
t
){
e
.
showStoreDialog
=
t
},
expression
:
"showStoreDialog"
}}),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
staticClass
:
"approve-dialog"
,
attrs
:{
title
:
""
,
visible
:
e
.
approveVisible
,
width
:
"422px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
approveVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"approve-body text-center"
},[
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-success"
}),
a
(
"span"
,{
staticClass
:
"approve-icon-tip"
},[
e
.
_v
(
"同意"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-tip"
},[
e
.
_v
(
"是否确认同意"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-footer dialog-footer"
,
staticStyle
:{
"text-align"
:
"center"
},
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
approveVisible
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sendApprove
}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
staticClass
:
"refuse-dialog"
,
attrs
:{
title
:
"提示"
,
visible
:
e
.
refuseVisible
,
"before-close"
:
e
.
cancelRefuse
,
width
:
"422px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
refuseVisible
=
t
}}},[
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"refuse-tip"
},[
e
.
_v
(
"请输入拒绝理由"
)]),
e
.
_v
(
" "
),
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
""
,
prop
:
"refuseReason"
}},[
a
(
"el-input"
,{
staticClass
:
"font-14"
,
attrs
:{
type
:
"textarea"
,
placeholder
:
"最多 50 个字"
,
rows
:
3
},
model
:{
value
:
e
.
ruleForm
.
refuseReason
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"refuseReason"
,
t
)},
expression
:
"ruleForm.refuseReason"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"approve-footer dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
cancelRefuse
(
"ruleForm"
)}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
sendRefuse
(
"ruleForm"
)}}},[
e
.
_v
(
"确 定"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"review-result-detail"
,{
attrs
:{
tableListData
:
e
.
tableListData
,
detailShow
:
e
.
detailShow
},
on
:{
hideDetailDialog
:
e
.
hideDetailDialog
}}),
e
.
_v
(
" "
),
a
(
"review-result"
,{
attrs
:{
resultText
:
e
.
resultText
,
resultShow
:
e
.
resultShow
},
on
:{
showResultDetail
:
e
.
showResultDetail
,
hideResultDialog
:
e
.
hideResultDialog
}})],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
g
,
m
,
!
1
,
function
(
e
){
a
(
"pOpB"
)},
"data-v-3e5c6cfe"
,
null
);
t
.
default
=
b
.
exports
}});
\ No newline at end of file
dist/static/js/
6.82c5ff224e4f8c4f14a2
.js
→
dist/static/js/
7.bd30aff9416a51d4f9d5
.js
View file @
dbcf7719
webpackJsonp
([
6
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
);
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
(
console
.
log
(
"close:"
,
e
.
$refs
.
multipleTable
),
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
),
console
.
log
(
"close:"
,
a
.
templateId
))})})},
submitForm
:
function
(){
return
this
.
multipleSelection
.
length
?
this
.
multipleSelection
.
length
>
20
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):
void
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){
var
a
=
this
;
e
.
length
&&
setTimeout
(
function
(){
var
e
=
a
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
e
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})},
100
)}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"eRt+"
)},
"data-v-4eee4574"
,
null
);
t
.
a
=
c
.
exports
},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
e
){
console
.
log
(
"store:"
,
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
e
))},
checkGroupIds
:
function
(
e
){
console
.
log
(
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
repairId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
u
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
e
.
dateRange
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
""
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
a
.
result
.
fixdTimes
},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"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
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"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
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"g6bQ"
)},
"data-v-f2a809e0"
,
null
);
t
.
default
=
f
.
exports
},
Xls0
:
function
(
e
,
t
){},
"eRt+"
:
function
(
e
,
t
){},
g6bQ
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
s
=
a
.
n
(
n
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
r
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
e
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)))}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
e
){
a
(
"Xls0"
)},
"data-v-6e5cfde8"
,
null
);
t
.
a
=
m
.
exports
}});
\ No newline at end of file
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
);
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
(
console
.
log
(
"close:"
,
e
.
$refs
.
multipleTable
),
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
),
console
.
log
(
"close:"
,
a
.
templateId
))})})},
submitForm
:
function
(){
return
this
.
multipleSelection
.
length
?
this
.
multipleSelection
.
length
>
20
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):
void
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){
var
a
=
this
;
e
.
length
&&
setTimeout
(
function
(){
var
e
=
a
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
e
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})},
100
)}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"eRt+"
)},
"data-v-4eee4574"
,
null
);
t
.
a
=
c
.
exports
},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
u
=
a
(
"PI0u"
),
p
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
e
){
console
.
log
(
"store:"
,
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
e
))},
checkGroupIds
:
function
(
e
){
console
.
log
(
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
repairId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
u
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
e
.
dateRange
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
""
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
a
.
result
.
fixdTimes
},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"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
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"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
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
a
(
"TZwI"
)},
"data-v-26d5a250"
,
null
);
t
.
default
=
f
.
exports
},
TZwI
:
function
(
e
,
t
){},
Xls0
:
function
(
e
,
t
){},
"eRt+"
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
s
=
a
.
n
(
n
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
u
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
r
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
e
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)))}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
e
){
a
(
"Xls0"
)},
"data-v-6e5cfde8"
,
null
);
t
.
a
=
m
.
exports
}});
\ No newline at end of file
dist/static/js/
7.95369d0641c2146f0629
.js
→
dist/static/js/
8.4cb8d8e46bcf6128d48d
.js
View file @
dbcf7719
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"3Xzz"
),
n
=
a
(
"Qs+A"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
);
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
(
console
.
log
(
"close:"
,
e
.
$refs
.
multipleTable
),
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
),
console
.
log
(
"close:"
,
a
.
templateId
))})})},
submitForm
:
function
(){
return
this
.
multipleSelection
.
length
?
this
.
multipleSelection
.
length
>
20
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):
void
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){
var
a
=
this
;
e
.
length
&&
setTimeout
(
function
(){
var
e
=
a
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
e
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})},
100
)}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
o
.
a
,
setDepartment
:
n
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"eRt+"
)},
"data-v-4eee4574"
,
null
);
t
.
a
=
c
.
exports
},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
r
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
m
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
r
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"0"
},
cardErr
:
!
1
,
rules
:{
policyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
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
]
-
31536
e6
,
o
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
o
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
n
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
e
){
console
.
log
(
"store:"
,
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
checkGroupIds
:
function
(
e
){
console
.
log
(
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
policyId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
d
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
a
.
formData
.
validDateRange
||
(
a
.
formData
.
validDateRange
=
[]),
!
(
1
!=
a
.
formData
.
policyExpireDateType
||
a
.
formData
.
validDateRange
&&
a
.
formData
.
validDateRange
.
length
))
return
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择固定期限日期"
}),
!
1
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
o
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
e
.
dateRange
||
(
e
.
dateRange
=
[],
o
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
o
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
1
!=
a
.
formData
.
sendMonthType
||
a
.
formData
.
sendMonthTimes
.
length
?
a
.
formData
.
sendTimes
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环执行次数"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
policyId
:
t
.
formData
.
policyId
,
policyName
:
t
.
formData
.
policyName
,
cardTemplateJson
:
n
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
n
()(
t
.
formData
.
departmentJson
),
sendMonthType
:
t
.
formData
.
sendMonthType
,
sendTimes
:
t
.
formData
.
sendTimes
,
sendMonthTimes
:
t
.
formData
.
sendMonthTimes
.
length
?
t
.
formData
.
sendMonthTimes
.
join
(
","
):
""
,
policyExpireDateType
:
t
.
formData
.
policyExpireDateType
,
startTimeString
:
t
.
formData
.
validDateRange
[
0
],
endTimeString
:
t
.
formData
.
validDateRange
[
1
],
onlineFlag
:
t
.
formData
.
onlineFlag
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
policyId
,
"/haoban-app-customer-web/inner/save-policy"
),
a
).
then
(
function
(
a
){
var
o
=
a
.
data
;
1
==
o
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
policyId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"0"
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
policyId
:
e
.
$route
.
query
.
policyId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-policy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
sendNumberDay
=
String
(
e
.
sendNumberDay
),
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
policyId
:
a
.
result
.
policyId
,
policyName
:
a
.
result
.
policyName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
noPosition
:
!
(
!
a
.
result
.
positionNames
.
includes
(
"-1"
)
&&!
a
.
result
.
positionNames
.
includes
(
-
1
)),
positionNames
:
a
.
result
.
positionNames
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
sendMonthType
:
String
(
a
.
result
.
sendMonthType
),
sendTimes
:
a
.
result
.
sendTimes
,
sendMonthTimes
:
a
.
result
.
sendMonthTimes
.
length
?
a
.
result
.
sendMonthTimes
.
split
(
","
):[],
policyExpireDateType
:
String
(
a
.
result
.
policyExpireDateType
),
startTimeString
:
a
.
result
.
startTimeString
,
endTimeString
:
a
.
result
.
endTimeString
,
onlineFlag
:
a
.
result
.
onlineFlag
,
validDateRange
:[
a
.
result
.
startTimeString
?
a
.
result
.
startTimeString
:
""
,
a
.
result
.
endTimeString
?
a
.
result
.
endTimeString
:
""
]},
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
policyId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"2"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
policyId
&&
e
.
getCardData
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"policyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
e
.
formData
.
policyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"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
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
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
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"每月该策略针对单一成员执行几次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"策略执行次数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
"每月循环"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
"多月循环"
)]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"每月"
)]),
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"第"
)]),
a
(
"el-select"
,{
staticClass
:
"w-150"
,
attrs
:{
multiple
:
""
,
"collapse-tags"
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sendMonthTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthTimes"
,
t
)},
expression
:
"formData.sendMonthTimes"
}},
e
.
_l
(
e
.
monthOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-input-number"
,{
staticClass
:
"m-l-10 w-100"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略有效期
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"长期有效"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"固定期限"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
policyExpireDateType
?
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-date-picker"
,{
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
"default-time"
:[
"00:00:00"
,
"23:59:59"
],
type
:
"datetimerange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
formData
.
validDateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validDateRange"
,
t
)},
expression
:
"formData.validDateRange"
}})],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
policyId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
policyId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
m
,
u
,
!
1
,
function
(
e
){
a
(
"GuBR"
)},
"data-v-ad4a951e"
,
null
);
t
.
default
=
f
.
exports
},
GuBR
:
function
(
e
,
t
){},
Xls0
:
function
(
e
,
t
){},
"eRt+"
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
o
(){
var
n
;
return
s
.
a
.
wrap
(
function
(
o
){
for
(;;)
switch
(
o
.
prev
=
o
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
n
=
a
,
0
!==
e
.
level
){
o
.
next
=
6
;
break
}
return
o
.
abrupt
(
"return"
,
t
(
n
.
getGroup
()));
case
6
:
return
o
.
next
=
8
,
n
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
n
.
checkedKeys
=
n
.
departArr
.
length
?
n
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
o
.
stop
()}},
o
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
o
=
this
,
n
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
n
).
then
(
function
(
n
){
var
r
=
n
.
data
;
if
(
1
==
r
.
errorCode
)
return
r
.
result
&&
r
.
result
.
length
&&
r
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
r
.
result
),
t
.
children
||
o
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
o
.
$forceUpdate
(),
!
1
):(
o
.
groupData
=
r
.
result
||
[],
void
console
.
log
(
o
.
groupData
));
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
n
()(
this
.
departArr
)))}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
,
n
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
n
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
n
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
o
){
return
a
(
"el-checkbox"
,{
key
:
o
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
e
){
a
(
"Xls0"
)},
"data-v-6e5cfde8"
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
webpackJsonp
([
8
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"3Xzz"
),
n
=
a
(
"Qs+A"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
);
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
(
console
.
log
(
"close:"
,
e
.
$refs
.
multipleTable
),
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
),
console
.
log
(
"close:"
,
a
.
templateId
))})})},
submitForm
:
function
(){
return
this
.
multipleSelection
.
length
?
this
.
multipleSelection
.
length
>
20
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):
void
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){
var
a
=
this
;
e
.
length
&&
setTimeout
(
function
(){
var
e
=
a
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
e
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})},
100
)}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
o
.
a
,
setDepartment
:
n
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"eRt+"
)},
"data-v-4eee4574"
,
null
);
t
.
a
=
c
.
exports
},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
r
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
m
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
r
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"0"
},
cardErr
:
!
1
,
rules
:{
policyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
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
]
-
31536
e6
,
o
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
o
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
n
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
e
){
console
.
log
(
"store:"
,
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
checkGroupIds
:
function
(
e
){
console
.
log
(
e
),
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
policyId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
d
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
a
.
formData
.
validDateRange
||
(
a
.
formData
.
validDateRange
=
[]),
!
(
1
!=
a
.
formData
.
policyExpireDateType
||
a
.
formData
.
validDateRange
&&
a
.
formData
.
validDateRange
.
length
))
return
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择固定期限日期"
}),
!
1
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
o
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
e
.
dateRange
||
(
e
.
dateRange
=
[],
o
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
o
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
1
!=
a
.
formData
.
sendMonthType
||
a
.
formData
.
sendMonthTimes
.
length
?
a
.
formData
.
sendTimes
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环执行次数"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
policyId
:
t
.
formData
.
policyId
,
policyName
:
t
.
formData
.
policyName
,
cardTemplateJson
:
n
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
n
()(
t
.
formData
.
departmentJson
),
sendMonthType
:
t
.
formData
.
sendMonthType
,
sendTimes
:
t
.
formData
.
sendTimes
,
sendMonthTimes
:
t
.
formData
.
sendMonthTimes
.
length
?
t
.
formData
.
sendMonthTimes
.
join
(
","
):
""
,
policyExpireDateType
:
t
.
formData
.
policyExpireDateType
,
startTimeString
:
t
.
formData
.
validDateRange
[
0
],
endTimeString
:
t
.
formData
.
validDateRange
[
1
],
onlineFlag
:
t
.
formData
.
onlineFlag
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
policyId
,
"/haoban-app-customer-web/inner/save-policy"
),
a
).
then
(
function
(
a
){
var
o
=
a
.
data
;
1
==
o
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
policyId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"0"
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
policyId
:
e
.
$route
.
query
.
policyId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-policy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
sendNumberDay
=
String
(
e
.
sendNumberDay
),
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
policyId
:
a
.
result
.
policyId
,
policyName
:
a
.
result
.
policyName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
noPosition
:
!
(
!
a
.
result
.
positionNames
.
includes
(
"-1"
)
&&!
a
.
result
.
positionNames
.
includes
(
-
1
)),
positionNames
:
a
.
result
.
positionNames
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
sendMonthType
:
String
(
a
.
result
.
sendMonthType
),
sendTimes
:
a
.
result
.
sendTimes
,
sendMonthTimes
:
a
.
result
.
sendMonthTimes
.
length
?
a
.
result
.
sendMonthTimes
.
split
(
","
):[],
policyExpireDateType
:
String
(
a
.
result
.
policyExpireDateType
),
startTimeString
:
a
.
result
.
startTimeString
,
endTimeString
:
a
.
result
.
endTimeString
,
onlineFlag
:
a
.
result
.
onlineFlag
,
validDateRange
:[
a
.
result
.
startTimeString
?
a
.
result
.
startTimeString
:
""
,
a
.
result
.
endTimeString
?
a
.
result
.
endTimeString
:
""
]},
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
policyId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"2"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
policyId
&&
e
.
getCardData
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"policyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
e
.
formData
.
policyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"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
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
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
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"每月该策略针对单一成员执行几次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"策略执行次数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
"每月循环"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
"多月循环"
)]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"每月"
)]),
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"第"
)]),
a
(
"el-select"
,{
staticClass
:
"w-150"
,
attrs
:{
multiple
:
""
,
"collapse-tags"
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sendMonthTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthTimes"
,
t
)},
expression
:
"formData.sendMonthTimes"
}},
e
.
_l
(
e
.
monthOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-input-number"
,{
staticClass
:
"m-l-10 w-100"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略有效期
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"长期有效"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"固定期限"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
policyExpireDateType
?
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-date-picker"
,{
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
"default-time"
:[
"00:00:00"
,
"23:59:59"
],
type
:
"datetimerange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
formData
.
validDateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validDateRange"
,
t
)},
expression
:
"formData.validDateRange"
}})],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
policyId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
policyId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
m
,
u
,
!
1
,
function
(
e
){
a
(
"gdq4"
)},
"data-v-1e2fd92d"
,
null
);
t
.
default
=
f
.
exports
},
Xls0
:
function
(
e
,
t
){},
"eRt+"
:
function
(
e
,
t
){},
gdq4
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
o
(){
var
n
;
return
s
.
a
.
wrap
(
function
(
o
){
for
(;;)
switch
(
o
.
prev
=
o
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
n
=
a
,
0
!==
e
.
level
){
o
.
next
=
6
;
break
}
return
o
.
abrupt
(
"return"
,
t
(
n
.
getGroup
()));
case
6
:
return
o
.
next
=
8
,
n
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
n
.
checkedKeys
=
n
.
departArr
.
length
?
n
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
o
.
stop
()}},
o
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
o
=
this
,
n
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
n
).
then
(
function
(
n
){
var
r
=
n
.
data
;
if
(
1
==
r
.
errorCode
)
return
r
.
result
&&
r
.
result
.
length
&&
r
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
r
.
result
),
t
.
children
||
o
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
o
.
$forceUpdate
(),
!
1
):(
o
.
groupData
=
r
.
result
||
[],
void
console
.
log
(
o
.
groupData
));
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
n
()(
this
.
departArr
)))}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
o
=
t
.
node
,
n
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
n
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
n
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
o
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
o
){
return
a
(
"el-checkbox"
,{
key
:
o
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
e
){
a
(
"Xls0"
)},
"data-v-6e5cfde8"
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/app.
deb8537a68603564aeea
.js
→
dist/static/js/app.
ada29f5f19f1511d7817
.js
View file @
dbcf7719
webpackJsonp
([
71
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
i
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
d
=
a
(
"pRNm"
),
m
=
a
.
n
(
d
),
l
=
a
(
"5tgt"
),
v
=
a
.
n
(
l
);
u
.
a
.
use
(
m
.
a
);
var
h
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
v
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
v
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
v
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
v
()(
"business"
,
"contacts"
)},{
path
:
"/orgStructSet"
,
name
:
"组织架构管理"
,
component
:
v
()(
"business"
,
"orgStructSet"
)},{
path
:
"/recycle"
,
name
:
"组织架构管理"
,
component
:
v
()(
"business"
,
"recycle"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
v
()(
"business"
,
"syncLog"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
v
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
v
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
v
()(
"enterprise"
,
"adminList"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
v
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
v
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
v
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
v
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberSearchSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
v
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
v
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
v
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
v
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
v
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
v
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
v
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
v
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
v
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
v
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
v
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
v
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
v
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
v
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
v
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
v
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
v
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
v
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
v
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
v
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
v
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
v
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
v
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
v
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
v
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
v
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
v
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
v
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
v
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
v
()(
"apps/protectCard"
,
"cardGetRecord"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
v
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
v
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
v
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
v
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
v
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
h
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
h
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
h
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
m
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
y
=
a
(
"Rf8U"
),
x
=
a
.
n
(
y
),
k
=
a
(
"mtWM"
),
T
=
a
.
n
(
k
),
C
=
a
(
"bOdI"
),
b
=
a
.
n
(
C
),
R
=
a
(
"SJI6"
),
A
=
a
.
n
(
R
);
u
.
a
.
use
(
A
.
a
);
var
E
=
new
A
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
M
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
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
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
i
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
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
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
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
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
i
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
console
.
log
(
a
),
a
<
0
)
return
""
;
var
n
=
Math
.
floor
(
a
/
864
e5
);
console
.
log
(
a
,
n
);
var
o
=
a
%
864
e5
,
r
=
o
%
36
e5
;
return
n
+
"天"
+
Math
.
floor
(
o
/
36
e5
)
+
"小时"
+
Math
.
floor
(
r
/
6
e4
)
+
"分"
}}}),
P
=
a
(
"TUaa"
),
L
=
a
.
n
(
P
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
H
=
a
(
"pRVe"
),
I
=
a
.
n
(
H
),
Y
=
a
(
"XsK6"
),
j
=
a
.
n
(
Y
),
G
=
a
(
"QRL9"
),
N
=
a
.
n
(
G
),
O
=
a
(
"2Pnh"
),
F
=
a
.
n
(
O
),
J
=
a
(
"l9mu"
),
U
=
a
.
n
(
J
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
F
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
i
=
592.28
/
a
*
n
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
U
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
r
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
p
,
595.28
,
i
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
N
.
a
),
Vue
.
use
(
I
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
x
.
a
,
T
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
M
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
M
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
E
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
37
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
57
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
44
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
22
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
42
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
13
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
32
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
10
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
29
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
4
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
11
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
16
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
49
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
35
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
5
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
25
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
41
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
43
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
56
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
67
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
50
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
39
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
24
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
40
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
53
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
45
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
54
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
65
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
60
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
21
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
59
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
48
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
6
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
7
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
47
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
64
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
28
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
52
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
31
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
36
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
68
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
63
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
62
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
12
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
55
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
19
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
38
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
69
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
2
],
"./business/index.vue"
:[
"jPcV"
,
0
,
66
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
3
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
58
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
23
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
26
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
34
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
27
],
"./errorPage/403.vue"
:[
"6XGN"
,
18
],
"./errorPage/404.vue"
:[
"AejC"
,
20
],
"./errorPage/500.vue"
:[
"FskK"
,
15
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
17
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
30
],
"./login/index.vue"
:[
"T+/8"
,
0
,
14
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
51
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
33
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
61
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
46
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
9
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
8
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
webpackJsonp
([
71
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
i
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
d
=
a
(
"pRNm"
),
m
=
a
.
n
(
d
),
l
=
a
(
"5tgt"
),
v
=
a
.
n
(
l
);
u
.
a
.
use
(
m
.
a
);
var
h
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
v
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
v
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
v
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
v
()(
"business"
,
"contacts"
)},{
path
:
"/orgStructSet"
,
name
:
"组织架构管理"
,
component
:
v
()(
"business"
,
"orgStructSet"
)},{
path
:
"/recycle"
,
name
:
"组织架构管理"
,
component
:
v
()(
"business"
,
"recycle"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
v
()(
"business"
,
"syncLog"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
v
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
v
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
v
()(
"enterprise"
,
"adminList"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
v
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
v
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
v
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
v
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
v
()(
"apps/customerApp"
,
"memberSearchSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
v
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
v
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
v
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
v
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
v
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
v
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
v
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
v
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
v
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
v
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
v
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
v
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
v
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
v
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
v
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
v
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
v
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
v
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
v
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
v
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
v
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
v
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
v
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
v
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
v
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
v
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
v
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
v
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
v
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
v
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
v
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
v
()(
"apps/protectCard"
,
"cardGetRecord"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
v
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
v
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
v
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
v
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
v
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
h
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
h
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
h
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
m
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
y
=
a
(
"Rf8U"
),
x
=
a
.
n
(
y
),
k
=
a
(
"mtWM"
),
T
=
a
.
n
(
k
),
C
=
a
(
"bOdI"
),
b
=
a
.
n
(
C
),
R
=
a
(
"SJI6"
),
A
=
a
.
n
(
R
);
u
.
a
.
use
(
A
.
a
);
var
E
=
new
A
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
M
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
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
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
i
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
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
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
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
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
i
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
console
.
log
(
a
),
a
<
0
)
return
""
;
var
n
=
Math
.
floor
(
a
/
864
e5
);
console
.
log
(
a
,
n
);
var
o
=
a
%
864
e5
,
r
=
o
%
36
e5
;
return
n
+
"天"
+
Math
.
floor
(
o
/
36
e5
)
+
"小时"
+
Math
.
floor
(
r
/
6
e4
)
+
"分"
}}}),
P
=
a
(
"TUaa"
),
L
=
a
.
n
(
P
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
H
=
a
(
"pRVe"
),
I
=
a
.
n
(
H
),
Y
=
a
(
"XsK6"
),
j
=
a
.
n
(
Y
),
G
=
a
(
"QRL9"
),
N
=
a
.
n
(
G
),
O
=
a
(
"2Pnh"
),
F
=
a
.
n
(
O
),
J
=
a
(
"l9mu"
),
U
=
a
.
n
(
J
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
F
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
i
=
592.28
/
a
*
n
,
s
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
U
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
s
,
"JPEG"
,
0
,
0
,
595.28
,
i
);
else
for
(;
r
>
0
;)
c
.
addImage
(
s
,
"JPEG"
,
0
,
p
,
595.28
,
i
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
N
.
a
),
Vue
.
use
(
I
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
L
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
x
.
a
,
T
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
M
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
M
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
E
,
components
:{
App
:
s
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
37
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
57
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
44
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
22
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
42
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
13
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
32
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
10
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
29
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
4
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
11
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
16
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
49
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
35
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
5
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
25
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
41
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
43
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
56
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
67
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
50
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
39
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
24
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
40
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
53
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
45
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
54
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
65
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
60
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
21
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
59
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
48
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
7
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
8
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
47
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
64
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
28
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
52
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
31
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
36
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
68
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
63
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
62
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
12
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
55
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
19
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
38
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
69
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
2
],
"./business/index.vue"
:[
"jPcV"
,
0
,
66
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
3
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
58
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
23
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
26
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
34
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
27
],
"./errorPage/403.vue"
:[
"6XGN"
,
18
],
"./errorPage/404.vue"
:[
"AejC"
,
20
],
"./errorPage/500.vue"
:[
"FskK"
,
15
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
17
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
30
],
"./login/index.vue"
:[
"T+/8"
,
0
,
14
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
51
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
33
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
61
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
46
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
9
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
6
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
dist/static/js/manifest.
7921d2aec9d27ba5a36
b.js
→
dist/static/js/manifest.
d81c8e034ca554fa8d5
b.js
View file @
dbcf7719
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
d
,
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
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
f
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
72
:
0
};
function
b
(
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
,
b
),
a
.
l
=!
0
,
a
.
exports
}
b
.
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
,
b
){
c
=
a
[
e
]
=
[
f
,
b
]});
c
[
2
]
=
f
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"db7fcfd49071bf8a7e4e"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"3527d92b4250c040f53c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"e7a8e7e9a5c3bad45ceb"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"82c5ff224e4f8c4f14a2"
,
7
:
"95369d0641c2146f0629"
,
8
:
"5cbeb9fde8d49bf97a09"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"fffb077a531bceb1b14d"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"00da5d6c69db35a7d4aa"
,
31
:
"cf36baf02e3e24a5f053"
,
32
:
"4de4968d6e57140dee2d"
,
33
:
"4d3acec09b21e4bb12c9"
,
34
:
"9c430f40b3a0c2122fd9"
,
35
:
"9d2f169ffce85f2b33c0"
,
36
:
"cf397756c40d6f8c1420"
,
37
:
"f43da4e4e894a104b34e"
,
38
:
"5f4ce05b4c8050e7ac44"
,
39
:
"63dc54f1a6b7a04b4d41"
,
40
:
"cda2471a85245dcfc0da"
,
41
:
"323d5f1c2fbe72c50184"
,
42
:
"6b570b5f9aa128436f6c"
,
43
:
"9d8e65affd568de30a3f"
,
44
:
"e0ddfc31839e7984dba3"
,
45
:
"7ed750c4b7a52ade71ec"
,
46
:
"37c5b811c39fa9e76a9f"
,
47
:
"62855f543ccd4d38280c"
,
48
:
"c3f2c22b2043b0927337"
,
49
:
"cc5f227c95037a1381f0"
,
50
:
"8214f85f5a021a3f163b"
,
51
:
"f132501d1c80d64a4ce2"
,
52
:
"7be3b5dbb03cde949150"
,
53
:
"bc9bca10fda8dbf20f18"
,
54
:
"970ceeb62d370bb046f9"
,
55
:
"a59eb69795468eaccdab"
,
56
:
"44a19541b1d9d5510256"
,
57
:
"bb35aa59b73ea983662f"
,
58
:
"f4362bcb70641f953b1a"
,
59
:
"e06f1a78a8006e5612fe"
,
60
:
"adcbe5095883589abda8"
,
61
:
"c8bf83503933dbb0d3a7"
,
62
:
"c150bd9c93df08960929"
,
63
:
"ab752ec3ccf9371f123b"
,
64
:
"3b820a9237f2357ff5ae"
,
65
:
"2a89e7c8655aaad5fdfb"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
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
,
d
.
appendChild
(
n
),
f
},
b
.
m
=
e
,
b
.
c
=
f
,
b
.
d
=
function
(
e
,
c
,
f
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
b
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
c
,
"a"
,
c
),
c
},
b
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
d
,
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
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
f
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
72
:
0
};
function
b
(
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
,
b
),
a
.
l
=!
0
,
a
.
exports
}
b
.
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
,
b
){
c
=
a
[
e
]
=
[
f
,
b
]});
c
[
2
]
=
f
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"db7fcfd49071bf8a7e4e"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"3527d92b4250c040f53c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"e7a8e7e9a5c3bad45ceb"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"8eb26935705e144eb957"
,
7
:
"bd30aff9416a51d4f9d5"
,
8
:
"4cb8d8e46bcf6128d48d"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"fffb077a531bceb1b14d"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"00da5d6c69db35a7d4aa"
,
31
:
"cf36baf02e3e24a5f053"
,
32
:
"4de4968d6e57140dee2d"
,
33
:
"4d3acec09b21e4bb12c9"
,
34
:
"9c430f40b3a0c2122fd9"
,
35
:
"9d2f169ffce85f2b33c0"
,
36
:
"cf397756c40d6f8c1420"
,
37
:
"f43da4e4e894a104b34e"
,
38
:
"5f4ce05b4c8050e7ac44"
,
39
:
"63dc54f1a6b7a04b4d41"
,
40
:
"cda2471a85245dcfc0da"
,
41
:
"323d5f1c2fbe72c50184"
,
42
:
"6b570b5f9aa128436f6c"
,
43
:
"9d8e65affd568de30a3f"
,
44
:
"e0ddfc31839e7984dba3"
,
45
:
"7ed750c4b7a52ade71ec"
,
46
:
"37c5b811c39fa9e76a9f"
,
47
:
"62855f543ccd4d38280c"
,
48
:
"c3f2c22b2043b0927337"
,
49
:
"cc5f227c95037a1381f0"
,
50
:
"8214f85f5a021a3f163b"
,
51
:
"f132501d1c80d64a4ce2"
,
52
:
"7be3b5dbb03cde949150"
,
53
:
"bc9bca10fda8dbf20f18"
,
54
:
"970ceeb62d370bb046f9"
,
55
:
"a59eb69795468eaccdab"
,
56
:
"44a19541b1d9d5510256"
,
57
:
"bb35aa59b73ea983662f"
,
58
:
"f4362bcb70641f953b1a"
,
59
:
"e06f1a78a8006e5612fe"
,
60
:
"adcbe5095883589abda8"
,
61
:
"c8bf83503933dbb0d3a7"
,
62
:
"c150bd9c93df08960929"
,
63
:
"ab752ec3ccf9371f123b"
,
64
:
"3b820a9237f2357ff5ae"
,
65
:
"2a89e7c8655aaad5fdfb"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
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
,
d
.
appendChild
(
n
),
f
},
b
.
m
=
e
,
b
.
c
=
f
,
b
.
d
=
function
(
e
,
c
,
f
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
b
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
c
,
"a"
,
c
),
c
},
b
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/views/apps/protectCard/newCardPut.vue
View file @
dbcf7719
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditTime: 2020-04-27 10:2
4:11
* @LastEditTime: 2020-04-27 10:2
8:59
-->
<
template
>
...
...
@@ -576,17 +576,17 @@ export default {
};
</
script
>
<
style
type=
"text/less"
lang=
"less"
scoped
>
.card-add-btn
{
width
:
143px
;
height
:
32px
;
border
:
1px
solid
rgba
(
192
,
196
,
204
,
1
);
}
.cursor-not-allowed
{
cursor
:
not-allowed
;
background-color
:
#f5f7fa
;
border-color
:
#c4c6cf
;
color
:
#c0c4cc
;
}
.card-add-btn
{
width
:
143px
;
height
:
32px
;
border
:
1px
solid
rgba
(
192
,
196
,
204
,
1
);
}
.selected-card
{
height
:
32px
;
line-height
:
32px
;
...
...
src/views/apps/protectCard/newCardStrategy.vue
View file @
dbcf7719
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditTime: 2020-04-27 10:
07:35
* @LastEditTime: 2020-04-27 10:
29:08
-->
<
template
>
...
...
@@ -621,6 +621,7 @@ export default {
height
:
32px
;
border
:
1px
solid
rgba
(
192
,
196
,
204
,
1
);
}
.selected-card
{
height
:
32px
;
line-height
:
32px
;
...
...
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