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
31d34ee0
Commit
31d34ee0
authored
Apr 23, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改策略
parent
ae0dee53
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
24 deletions
+11
-24
index.html
dist/index.html
+2
-2
app.d2bef814953a4bdca3f12bdde2e6371a.css
dist/static/css/app.d2bef814953a4bdca3f12bdde2e6371a.css
+0
-0
7.b29bf183d2366a3de35c.js
dist/static/js/7.b29bf183d2366a3de35c.js
+0
-2
7.e0a781658d69adfa7cd0.js
dist/static/js/7.e0a781658d69adfa7cd0.js
+2
-0
manifest.9a735c93b5c4151ac5cb.js
dist/static/js/manifest.9a735c93b5c4151ac5cb.js
+2
-2
newCardPut.vue
src/views/apps/protectCard/newCardPut.vue
+5
-18
No files found.
dist/index.html
View file @
31d34ee0
<!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.1fca342dd03fb69b37e81fe764283bbd.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.50df130d2f397015dfba.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.65d1fc8f47eda3ef469e.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.d2bef814953a4bdca3f12bdde2e6371a.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.9a735c93b5c4151ac5cb.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.65d1fc8f47eda3ef469e.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
1fca342dd03fb69b37e81fe764283bbd
.css
→
dist/static/css/app.
d2bef814953a4bdca3f12bdde2e6371a
.css
View file @
31d34ee0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/7.b29bf183d2366a3de35c.js
deleted
100644 → 0
View file @
ae0dee53
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
handleClose
:
function
(){
this
.
$emit
(
"closeTemp"
)},
submitForm
:
function
(){
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
)},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
getTableList
:
function
(
t
){
var
e
=
this
,
a
=
{
keyWord
:
e
.
searchInput
||
""
,
taskId
:
e
.
taskId
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
n
.
a
)(
"/haoban-manage3-web/sync-task-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
,
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
selectTemp
:
function
(
t
,
e
){
var
a
=
this
;
if
(
t
.
length
){
var
r
=
t
.
map
(
function
(
t
){
return
t
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
r
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})}}},
mounted
:
function
(){
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
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
t
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
dataName
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
chainName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
handleClose
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
submitForm
}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
t
){
a
(
"lg11"
)},
"data-v-8489b39a"
,
null
);
e
.
a
=
c
.
exports
},
"6LSi"
:
function
(
t
,
e
){},
"9db3"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__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
t
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
cardStrategyId
:
""
,
cardStrategyName
:
""
,
cardTempData
:[{
templateName
:
""
,
cardType
:
"0"
,
dataType
:
"0"
,
dateRange
:[],
dateDay
:
""
,
dateDayNum
:
"50000"
,
limitType
:
"0"
,
limitCount
:
""
}],
sendType
:
"0"
,
filterCheck
:
!
1
,
noPosition
:
!
1
,
filterData
:[],
departData
:[],
executeType
:
"0"
,
monthNum
:
""
,
multMonth
:[],
multMonthNum
:
""
,
vaildDateType
:
"0"
,
validDateRange
:[]},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
t
.
formData
.
selectList
.
length
?
void
r
():
r
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
t
.
formData
.
totalSendTimes
?
void
r
():
r
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
cardStrategyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
e
){
var
a
=
e
.
maxDate
,
r
=
e
.
minDate
;
t
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
t
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
e
){
if
(
t
.
choiceDateCopy
.
length
){
var
a
=
t
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
t
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
e
.
getTime
()
<
a
||
e
.
getTime
()
>
r
||
e
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
e
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeSendType
:
function
(){
1
==
this
.
formData
.
sendType
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
t
){
if
(
this
.
departShow
=!
1
,
"close"
==
t
)
return
!
1
;
this
.
formData
.
departData
=
t
},
cancelEdit
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
t
){
t
.
forEach
(
function
(
t
){
t
.
dataType
=
0
,
t
.
dateRange
=
[],
t
.
dateDay
=
""
,
t
.
dateDayNum
=
"50000"
,
t
.
limitType
=
0
,
t
.
limitCount
=
""
}),
this
.
formData
.
cardTempData
=
JSON
.
parse
(
o
()(
t
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
t
){
this
.
formData
.
filterData
.
splice
(
this
.
formData
.
filterData
.
indexOf
(
t
),
1
)},
showInput
:
function
(){
var
t
=
this
;
t
.
inputVisible
=!
0
,
t
.
$nextTick
(
function
(
e
){
t
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
t
=
this
.
inputValue
;
t
&&
this
.
formData
.
filterData
.
push
(
t
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
t
,
e
,
a
){
a
.
splice
(
t
,
1
)},
handleDay
:
function
(){
for
(
var
t
=
[],
e
=
0
;
e
<
91
;
e
++
)
0
==
e
?
t
.
push
({
label
:
"当天"
,
value
:
String
(
e
)}):
t
.
push
({
label
:
"第"
+
e
+
"天"
,
value
:
String
(
e
)});
this
.
dateOptions
=
t
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
t
){
console
.
log
(
"store:"
,
t
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
t
))},
checkGroupIds
:
function
(
t
){
console
.
log
(
t
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
t
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
t
,
e
){
this
.
formData
.
coupCardId
=
t
,
this
.
selectCoupCard
=
e
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
u
.
a
)(
function
(
t
,
e
){
var
a
=
this
;
a
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
a
.
postSaveCard
(
e
)})},
300
),
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
{
id
:
e
.
formData
.
id
,
coupCardId
:
e
.
formData
.
coupCardId
,
sendRange
:
e
.
formData
.
sendRange
,
selectList
:
1
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
):
2
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
join
(
","
):
""
,
eachSendTimes
:
e
.
formData
.
eachSendTimes
,
sendType
:
e
.
formData
.
sendType
,
totalSendTimes
:
e
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
e
.
brandId
,
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
l
.
d
)(
e
.
$route
.
query
.
coupCardId
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
e
.
$route
.
query
.
coupCardId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
t
?(
e
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
e
.
selectCoupCard
=
{}):
e
.
$router
.
push
(
"/cardList"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRange
:
function
(
t
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
t
=
this
,
e
=
{
coupCardId
:
t
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
t
){
t
.
label
=
t
.
name
,
t
.
departmentId
=
t
.
id
,
t
.
storeGroupId
=
t
.
id
,
t
.
storeGroupName
=
t
.
name
,
t
.
departmentName
=
t
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
t
.
storeId
=
t
.
id
)}),
t
.
selectCoupCard
=
a
.
result
.
gicDetail
,
t
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
2
==
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
.
map
(
function
(
t
){
return
t
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
this
.
$route
.
query
.
coupCardId
&&
(
this
.
activeBrand
=
t
,
this
.
getCardData
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
var
t
=
this
;
t
.
$emit
(
"showTab"
,
"2"
),
t
.
$nextTick
(
function
(){
t
.
handleDay
()}),
t
.
activeBrand
=
t
.
brandId
,
t
.
$route
.
query
.
coupCardId
&&
t
.
brandId
&&
t
.
getCardData
()}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
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
:
t
.
formData
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"cardStrategyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
t
.
formData
.
cardStrategyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"cardStrategyName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
t
.
_v
(
"卡券选择策略"
)]),
t
.
_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"
}},[
t
.
_v
(
"选择卡券模板"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
t
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"选择卡券模板"
)])]),
t
.
_v
(
" "
),
t
.
formData
.
cardTempData
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
height
:
"450"
,
data
:
t
.
formData
.
cardTempData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
templateName
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
e
.
row
.
dataType
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dataType"
,
a
)},
expression
:
"scope.row.dataType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
t
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
e
.
row
.
dataType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
t
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
e
.
row
.
dateRange
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
dataType
?
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
row
.
dateDay
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDay"
,
a
)},
expression
:
"scope.row.dateDay"
}},
t
.
_l
(
t
.
dateOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})})):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"有效,有效天数"
)]):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
e
.
row
.
dateDayNum
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDayNum"
,
a
)},
expression
:
"scope.row.dateDayNum"
}}):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
e
.
row
.
limitType
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"limitType"
,
a
)},
expression
:
"scope.row.limitType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"限制总数"
,
value
:
"0"
}})],
1
),
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10 vertical-middle"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
row
.
dateDayNum
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDayNum"
,
a
)},
expression
:
"scope.row.dateDayNum"
}})]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDelTemp
(
e
.
$index
,
e
.
row
,
t
.
formData
.
cardTempData
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
t
.
_e
()])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
t
.
_v
(
"执行策略"
)]),
t
.
_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"
}},[
t
.
_v
(
"发送范围"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
t
.
changeSendType
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
t
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
t
.
changeSendType
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
a
(
"span"
,{
on
:{
click
:
t
.
clickSendType
}},[
t
.
_v
(
"部分部门"
)])]),
t
.
_v
(
" "
),
0
==
t
.
formData
.
sendType
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
formData
.
filterCheck
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"filterCheck"
,
e
)},
expression
:
"formData.filterCheck"
}},[
t
.
_v
(
"按职务筛选"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
formData
.
noPosition
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"noPosition"
,
e
)},
expression
:
"formData.noPosition"
}},[
t
.
_v
(
"无职务"
)]),
t
.
_v
(
" "
),
t
.
_l
(
t
.
formData
.
filterData
,
function
(
e
){
return
a
(
"el-tag"
,{
key
:
e
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
t
.
handleClose
(
e
)}}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
)
+
"
\
n "
)])}),
t
.
_v
(
" "
),
t
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
t
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
e
){
return
"button"
in
e
||!
t
.
_k
(
e
.
keyCode
,
"enter"
,
13
,
e
.
key
,
"Enter"
)?
t
.
handleInputConfirm
(
e
):
null
}},
model
:{
value
:
t
.
inputValue
,
callback
:
function
(
e
){
t
.
inputValue
=
e
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
t
.
showInput
}},[
t
.
_v
(
"+ 添加职务"
)])],
2
)]):
t
.
_e
()],
1
)]),
t
.
_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"
}},[
t
.
_v
(
"策略执行次数"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
t
.
formData
.
executeType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"executeType"
,
e
)},
expression
:
"formData.executeType"
}},[
t
.
_v
(
"每月循环"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
t
.
formData
.
executeType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"executeType"
,
e
)},
expression
:
"formData.executeType"
}},[
t
.
_v
(
"多月循环"
)]),
t
.
_v
(
" "
),
0
==
t
.
formData
.
executeType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
t
.
_v
(
"每月"
)]),
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
t
.
formData
.
monthNum
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"monthNum"
,
e
)},
expression
:
"formData.monthNum"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
t
.
_v
(
" 次"
)])],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
t
.
formData
.
executeType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
t
.
_v
(
"第"
)]),
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
multiple
:
""
,
"collapse-tags"
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
formData
.
multMonth
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"multMonth"
,
e
)},
expression
:
"formData.multMonth"
}},
t
.
_l
(
t
.
monthOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
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
:
t
.
formData
.
multMonthNum
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"multMonthNum"
,
e
)},
expression
:
"formData.multMonthNum"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
t
.
_v
(
" 次"
)])])],
1
):
t
.
_e
()],
1
)]),
t
.
_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"
}},[
t
.
_v
(
"
\
n 策略有效期
\
n "
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
t
.
formData
.
vaildDateType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"vaildDateType"
,
e
)},
expression
:
"formData.vaildDateType"
}},[
t
.
_v
(
"长期有效"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
t
.
formData
.
vaildDateType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"vaildDateType"
,
e
)},
expression
:
"formData.vaildDateType"
}},[
t
.
_v
(
"固定期限"
)]),
t
.
_v
(
" "
),
1
==
t
.
formData
.
vaildDateType
?
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-date-picker"
,{
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
t
.
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
:
t
.
formData
.
validDateRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"validDateRange"
,
e
)},
expression
:
"formData.validDateRange"
}})],
1
):
t
.
_e
()],
1
)]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
cancelEdit
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确认"
+
t
.
_s
(
t
.
$route
.
query
.
coupCardId
?
"编辑"
:
"新建"
))]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
t
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
t
.
cardTempShow
?
a
(
"select-card-template"
,{
attrs
:{
selectTemp
:
t
.
formData
.
cardTempData
},
on
:{
returnData
:
t
.
returnData
,
closeTemp
:
t
.
closeTemp
}}):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
t
.
departShow
,
departArr
:
t
.
formData
.
departData
},
on
:{
refreshData
:
t
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
t
){
a
(
"6LSi"
)},
"data-v-254e931a"
,
null
);
e
.
default
=
f
.
exports
},
iKAi
:
function
(
t
,
e
){},
ja1h
:
function
(
t
,
e
,
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
(
t
){
return
t
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
t
,
e
){
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:"
,
t
,
e
),
o
=
a
,
0
!==
t
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
e
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
t
,
t
.
data
,
e
);
case
8
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
t
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
t
=
this
,
e
=
[];
t
.
selDepart
.
forEach
(
function
(
a
){
t
.
checkList
.
includes
(
a
.
departmentId
)
||
e
.
push
(
a
)}),
t
.
selDepart
=
e
,
t
.
$refs
.
tree
.
setCheckedNodes
(
t
.
selDepart
)},
handleClose
:
function
(
t
){
this
.
$emit
(
"refreshData"
,
"close"
),
t
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
t
){
var
e
=
this
;
if
(
""
==
e
.
partForm
.
departmentName
)
return
!
1
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
$emit
(
"refreshData"
,
e
.
selDepart
)})},
getGroup
:
function
(
t
,
e
,
a
){
var
r
=
this
,
o
=
{
parentId
:
e
?
e
.
departmentId
:
""
,
isStore
:
0
};
if
(
t
&&
(
!
e
.
hasSonNode
||
1
==
e
.
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
(
t
){
t
.
expand
=!
1
,
t
.
children
=
[],
t
.
label
=
t
.
departmentName
,
t
.
isLeaf
=!
t
.
hasSonNode
}),
t
?(
a
(
n
.
result
),
e
.
children
||
r
.
$set
(
e
,
"children"
,[]),
e
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
t
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
departShow
:
function
(
t
){
this
.
departVisible
=
t
},
departArr
:
function
(
t
){
t
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
t
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
t
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
departVisible
=
e
}}},[
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"
},[
t
.
_v
(
"组织架构"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
t
.
groupData
,
load
:
t
.
loadNode
,
"default-checked-keys"
:
t
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
t
.
defaultProps
},
on
:{
check
:
t
.
checkGroup
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
var
r
=
e
.
node
,
o
=
e
.
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"
},[
t
.
_v
(
t
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
t
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
t
.
toRight
}},[
t
.
_v
(
"转入"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
t
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
t
.
toLeft
}},[
t
.
_v
(
"移除"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"已选"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
t
.
checkList
,
callback
:
function
(
e
){
t
.
checkList
=
e
},
expression
:
"checkList"
}},[
a
(
"div"
,
t
.
_l
(
t
.
selDepart
,
function
(
e
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
e
.
departmentId
}},[
t
.
_v
(
t
.
_s
(
e
.
departmentName
))])}))])],
1
)])])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
cancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"partForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
t
){
a
(
"iKAi"
)},
"data-v-23a952c8"
,
null
);
e
.
a
=
m
.
exports
},
lg11
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/7.e0a781658d69adfa7cd0.js
0 → 100644
View file @
31d34ee0
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
handleClose
:
function
(){
this
.
$emit
(
"closeTemp"
)},
submitForm
:
function
(){
this
.
$emit
(
"returnData"
,
this
.
multipleSelection
)},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
getTableList
:
function
(
t
){
var
e
=
this
,
a
=
{
keyWord
:
e
.
searchInput
||
""
,
taskId
:
e
.
taskId
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
};
Object
(
n
.
a
)(
"/haoban-manage3-web/sync-task-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
,
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
selectTemp
:
function
(
t
,
e
){
var
a
=
this
;
if
(
t
.
length
){
var
r
=
t
.
map
(
function
(
t
){
return
t
.
templateId
});
a
.
tableData
.
forEach
(
function
(
t
){
r
.
includes
(
t
.
templateId
)
&&
a
.
$refs
.
multipleTable
.
toggleRowSelection
(
t
)})}}},
mounted
:
function
(){
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
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
t
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
dataName
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
chainName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
handleClose
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
submitForm
}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
t
){
a
(
"lg11"
)},
"data-v-8489b39a"
,
null
);
e
.
a
=
c
.
exports
},
"9db3"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__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
t
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
cardStrategyId
:
""
,
cardStrategyName
:
""
,
cardTempData
:[{
templateName
:
""
,
cardType
:
"0"
,
dataType
:
"0"
,
dateRange
:[],
dateDay
:
""
,
dateDayNum
:
"50000"
,
limitType
:
"0"
,
limitCount
:
""
}],
sendType
:
"0"
,
filterCheck
:
!
1
,
noPosition
:
!
1
,
filterData
:[],
departData
:[],
executeType
:
"0"
,
monthNum
:
""
,
multMonth
:[],
multMonthNum
:
""
,
vaildDateType
:
"0"
,
validDateRange
:[]},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
t
.
formData
.
selectList
.
length
?
void
r
():
r
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
t
.
formData
.
totalSendTimes
?
void
r
():
r
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
cardStrategyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
e
){
var
a
=
e
.
maxDate
,
r
=
e
.
minDate
;
t
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
t
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
e
){
if
(
t
.
choiceDateCopy
.
length
){
var
a
=
t
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
t
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
e
.
getTime
()
<
a
||
e
.
getTime
()
>
r
||
e
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
e
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeSendType
:
function
(){
1
==
this
.
formData
.
sendType
?
this
.
departShow
=!
0
:
this
.
departShow
=!
1
},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
t
){
if
(
this
.
departShow
=!
1
,
"close"
==
t
)
return
!
1
;
this
.
formData
.
departData
=
t
},
cancelEdit
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
t
){
t
.
forEach
(
function
(
t
){
t
.
dataType
=
0
,
t
.
dateRange
=
[],
t
.
dateDay
=
""
,
t
.
dateDayNum
=
"50000"
,
t
.
limitType
=
0
,
t
.
limitCount
=
""
}),
this
.
formData
.
cardTempData
=
JSON
.
parse
(
o
()(
t
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
t
){
this
.
formData
.
filterData
.
splice
(
this
.
formData
.
filterData
.
indexOf
(
t
),
1
)},
showInput
:
function
(){
var
t
=
this
;
t
.
inputVisible
=!
0
,
t
.
$nextTick
(
function
(
e
){
t
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
t
=
this
.
inputValue
;
t
&&
this
.
formData
.
filterData
.
push
(
t
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
t
,
e
,
a
){
a
.
splice
(
t
,
1
)},
handleDay
:
function
(){
for
(
var
t
=
[],
e
=
0
;
e
<
91
;
e
++
)
0
==
e
?
t
.
push
({
label
:
"当天"
,
value
:
String
(
e
)}):
t
.
push
({
label
:
"第"
+
e
+
"天"
,
value
:
String
(
e
)});
this
.
dateOptions
=
t
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
returnStores
:
function
(
t
){
console
.
log
(
"store:"
,
t
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
t
))},
checkGroupIds
:
function
(
t
){
console
.
log
(
t
),
this
.
formData
.
selectList
=
JSON
.
parse
(
o
()(
t
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
t
,
e
){
this
.
formData
.
coupCardId
=
t
,
this
.
selectCoupCard
=
e
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
u
.
a
)(
function
(
t
,
e
){
var
a
=
this
;
a
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
a
.
postSaveCard
(
e
)})},
300
),
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
{
id
:
e
.
formData
.
id
,
coupCardId
:
e
.
formData
.
coupCardId
,
sendRange
:
e
.
formData
.
sendRange
,
selectList
:
1
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
):
2
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
join
(
","
):
""
,
eachSendTimes
:
e
.
formData
.
eachSendTimes
,
sendType
:
e
.
formData
.
sendType
,
totalSendTimes
:
e
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
e
.
brandId
,
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
l
.
d
)(
e
.
$route
.
query
.
coupCardId
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
e
.
$route
.
query
.
coupCardId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
t
?(
e
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
e
.
selectCoupCard
=
{}):
e
.
$router
.
push
(
"/cardList"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
changeRange
:
function
(
t
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
t
=
this
,
e
=
{
coupCardId
:
t
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
t
){
t
.
label
=
t
.
name
,
t
.
departmentId
=
t
.
id
,
t
.
storeGroupId
=
t
.
id
,
t
.
storeGroupName
=
t
.
name
,
t
.
departmentName
=
t
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
t
.
storeId
=
t
.
id
)}),
t
.
selectCoupCard
=
a
.
result
.
gicDetail
,
t
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
2
==
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
.
map
(
function
(
t
){
return
t
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
this
.
$route
.
query
.
coupCardId
&&
(
this
.
activeBrand
=
t
,
this
.
getCardData
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
var
t
=
this
;
t
.
$emit
(
"showTab"
,
"2"
),
t
.
$nextTick
(
function
(){
t
.
handleDay
()}),
t
.
activeBrand
=
t
.
brandId
,
t
.
$route
.
query
.
coupCardId
&&
t
.
brandId
&&
t
.
getCardData
()}},
f
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
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
:
t
.
formData
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"cardStrategyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
t
.
formData
.
cardStrategyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"cardStrategyName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
t
.
_v
(
"卡券选择策略"
)]),
t
.
_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"
}},[
t
.
_v
(
"选择卡券模板"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
t
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
t
.
_v
(
"选择卡券模板"
)])]),
t
.
_v
(
" "
),
t
.
formData
.
cardTempData
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
height
:
"450"
,
data
:
t
.
formData
.
cardTempData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
templateName
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"抵金券"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
cardType
?
a
(
"span"
,[
t
.
_v
(
"折扣券"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
e
.
row
.
dataType
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dataType"
,
a
)},
expression
:
"scope.row.dataType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
t
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
e
.
row
.
dataType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
t
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
e
.
row
.
dateRange
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
t
.
_e
(),
t
.
_v
(
" "
),
1
==
e
.
row
.
dataType
?
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
row
.
dateDay
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDay"
,
a
)},
expression
:
"scope.row.dateDay"
}},
t
.
_l
(
t
.
dateOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})})):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"有效,有效天数"
)]):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
e
.
row
.
dateDayNum
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDayNum"
,
a
)},
expression
:
"scope.row.dateDayNum"
}}):
t
.
_e
(),
1
==
e
.
row
.
dataType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"天"
)]):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
e
.
row
.
limitType
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"limitType"
,
a
)},
expression
:
"scope.row.limitType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"限制总数"
,
value
:
"0"
}})],
1
),
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10 vertical-middle"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
row
.
dateDayNum
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"dateDayNum"
,
a
)},
expression
:
"scope.row.dateDayNum"
}})]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDelTemp
(
e
.
$index
,
e
.
row
,
t
.
formData
.
cardTempData
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
t
.
_e
()])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
t
.
_v
(
"执行策略"
)]),
t
.
_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"
}},[
t
.
_v
(
"发送范围"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
t
.
changeSendType
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
t
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
t
.
changeSendType
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
a
(
"span"
,{
on
:{
click
:
t
.
clickSendType
}},[
t
.
_v
(
"部分部门"
)])]),
t
.
_v
(
" "
),
0
==
t
.
formData
.
sendType
?
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
formData
.
filterCheck
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"filterCheck"
,
e
)},
expression
:
"formData.filterCheck"
}},[
t
.
_v
(
"按职务筛选"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
t
.
formData
.
noPosition
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"noPosition"
,
e
)},
expression
:
"formData.noPosition"
}},[
t
.
_v
(
"无职务"
)]),
t
.
_v
(
" "
),
t
.
_l
(
t
.
formData
.
filterData
,
function
(
e
){
return
a
(
"el-tag"
,{
key
:
e
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
t
.
handleClose
(
e
)}}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
)
+
"
\
n "
)])}),
t
.
_v
(
" "
),
t
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
t
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
e
){
return
"button"
in
e
||!
t
.
_k
(
e
.
keyCode
,
"enter"
,
13
,
e
.
key
,
"Enter"
)?
t
.
handleInputConfirm
(
e
):
null
}},
model
:{
value
:
t
.
inputValue
,
callback
:
function
(
e
){
t
.
inputValue
=
e
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
t
.
showInput
}},[
t
.
_v
(
"+ 添加职务"
)])],
2
)]):
t
.
_e
()],
1
)]),
t
.
_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"
}},[
t
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
t
.
formData
.
vaildDateType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"vaildDateType"
,
e
)},
expression
:
"formData.vaildDateType"
}},[
t
.
_v
(
"定时发送"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
9999
},
model
:{
value
:
t
.
formData
.
monthNum
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"monthNum"
,
e
)},
expression
:
"formData.monthNum"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
t
.
_v
(
"分钟后"
)])],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
cancelEdit
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确认"
+
t
.
_s
(
t
.
$route
.
query
.
coupCardId
?
"编辑"
:
"新建"
))]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
t
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
t
.
cardTempShow
?
a
(
"select-card-template"
,{
attrs
:{
selectTemp
:
t
.
formData
.
cardTempData
},
on
:{
returnData
:
t
.
returnData
,
closeTemp
:
t
.
closeTemp
}}):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
t
.
departShow
,
departArr
:
t
.
formData
.
departData
},
on
:{
refreshData
:
t
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
t
){
a
(
"EFhh"
)},
"data-v-546d011d"
,
null
);
e
.
default
=
m
.
exports
},
EFhh
:
function
(
t
,
e
){},
iKAi
:
function
(
t
,
e
){},
ja1h
:
function
(
t
,
e
,
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
(
t
){
return
t
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
t
,
e
){
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:"
,
t
,
e
),
o
=
a
,
0
!==
t
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
e
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
t
,
t
.
data
,
e
);
case
8
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
t
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
t
=
this
,
e
=
[];
t
.
selDepart
.
forEach
(
function
(
a
){
t
.
checkList
.
includes
(
a
.
departmentId
)
||
e
.
push
(
a
)}),
t
.
selDepart
=
e
,
t
.
$refs
.
tree
.
setCheckedNodes
(
t
.
selDepart
)},
handleClose
:
function
(
t
){
this
.
$emit
(
"refreshData"
,
"close"
),
t
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
t
){
var
e
=
this
;
if
(
""
==
e
.
partForm
.
departmentName
)
return
!
1
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
if
(
!
t
)
return
!
1
;
e
.
$emit
(
"refreshData"
,
e
.
selDepart
)})},
getGroup
:
function
(
t
,
e
,
a
){
var
r
=
this
,
o
=
{
parentId
:
e
?
e
.
departmentId
:
""
,
isStore
:
0
};
if
(
t
&&
(
!
e
.
hasSonNode
||
1
==
e
.
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
(
t
){
t
.
expand
=!
1
,
t
.
children
=
[],
t
.
label
=
t
.
departmentName
,
t
.
isLeaf
=!
t
.
hasSonNode
}),
t
?(
a
(
n
.
result
),
e
.
children
||
r
.
$set
(
e
,
"children"
,[]),
e
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
t
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
departShow
:
function
(
t
){
this
.
departVisible
=
t
},
departArr
:
function
(
t
){
t
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
t
)))}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
&&
(
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
t
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
departVisible
=
e
}}},[
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"
},[
t
.
_v
(
"组织架构"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
t
.
groupData
,
load
:
t
.
loadNode
,
"default-checked-keys"
:
t
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
t
.
defaultProps
},
on
:{
check
:
t
.
checkGroup
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
var
r
=
e
.
node
,
o
=
e
.
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"
},[
t
.
_v
(
t
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
t
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
t
.
toRight
}},[
t
.
_v
(
"转入"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
t
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
t
.
toLeft
}},[
t
.
_v
(
"移除"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"已选"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
t
.
checkList
,
callback
:
function
(
e
){
t
.
checkList
=
e
},
expression
:
"checkList"
}},[
a
(
"div"
,
t
.
_l
(
t
.
selDepart
,
function
(
e
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
e
.
departmentId
}},[
t
.
_v
(
t
.
_s
(
e
.
departmentName
))])}))])],
1
)])])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
cancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"partForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
t
){
a
(
"iKAi"
)},
"data-v-23a952c8"
,
null
);
e
.
a
=
f
.
exports
},
lg11
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/manifest.
50df130d2f397015dfba
.js
→
dist/static/js/manifest.
9a735c93b5c4151ac5cb
.js
View file @
31d34ee0
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
72
:
0
};
function
b
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
c
=
f
[
e
]
=
[
a
,
b
]});
c
[
2
]
=
a
;
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
:
"a82a0b7945e1b3a1d374"
,
4
:
"89c3b4703d89fcf83673"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"67f6b30504fceba28318"
,
7
:
"b29bf183d2366a3de35c"
,
8
:
"03ab78983d4191e23a8c"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"2a5eaac9d066753b4c4a"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"d3de2ecd37f4d39cc396"
,
22
:
"961cd55348752b933219"
,
23
:
"651b185e2044c2807304"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"4a9b3d64a1064ee4d046"
,
27
:
"66bd69de59b8deab4ddb"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"5a37b0bffabe56fe5af9"
,
32
:
"f7592089bbd49cf8ae9c"
,
33
:
"6133e1e6b5fd398be401"
,
34
:
"a7c0fb47e627df580877"
,
35
:
"8a6f2eddea986825094c"
,
36
:
"016ee9d9e7ef1ff8c15b"
,
37
:
"5250bd90920b928718d6"
,
38
:
"d34b5cfa10bdec3aff24"
,
39
:
"3f8124e4c436dc8bac2d"
,
40
:
"cda2471a85245dcfc0da"
,
41
:
"323d5f1c2fbe72c50184"
,
42
:
"6b570b5f9aa128436f6c"
,
43
:
"9d8e65affd568de30a3f"
,
44
:
"e0ddfc31839e7984dba3"
,
45
:
"7ed750c4b7a52ade71ec"
,
46
:
"27243f4ca815f71339cb"
,
47
:
"147c6b319fdec8e3ec7c"
,
48
:
"473edfc17340f68bf019"
,
49
:
"c11e4ff91e3e45a0e01a"
,
50
:
"adf06e778b3bb59a4314"
,
51
:
"10da031ace08e3b2f0ec"
,
52
:
"3d733ded8368c35c7db7"
,
53
:
"464efb5dbd1f1a75c07d"
,
54
:
"4c49723130a02a35341c"
,
55
:
"a59eb69795468eaccdab"
,
56
:
"44a19541b1d9d5510256"
,
57
:
"bb35aa59b73ea983662f"
,
58
:
"f4362bcb70641f953b1a"
,
59
:
"35cc1a5bf8e67c4f3717"
,
60
:
"26251b1473ea21594e14"
,
61
:
"546eb6f21413100b354f"
,
62
:
"79bc422b829d3efa5158"
,
63
:
"cce43b49af145ee143b0"
,
64
:
"c32170be4e3a5886e248"
,
65
:
"37df5a0fbbf0fca93437"
,
66
:
"e609fee1fe2f65d80693"
,
67
:
"e9727b8a22c821b587a0"
,
68
:
"33235a28bed976a3e05e"
,
69
:
"b7a1dbc4c26f669ccf29"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
c
,
a
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
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
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
72
:
0
};
function
b
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
c
=
f
[
e
]
=
[
a
,
b
]});
c
[
2
]
=
a
;
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
:
"a82a0b7945e1b3a1d374"
,
4
:
"89c3b4703d89fcf83673"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"67f6b30504fceba28318"
,
7
:
"e0a781658d69adfa7cd0"
,
8
:
"03ab78983d4191e23a8c"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"2a5eaac9d066753b4c4a"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"d3de2ecd37f4d39cc396"
,
22
:
"961cd55348752b933219"
,
23
:
"651b185e2044c2807304"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"4a9b3d64a1064ee4d046"
,
27
:
"66bd69de59b8deab4ddb"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"5a37b0bffabe56fe5af9"
,
32
:
"f7592089bbd49cf8ae9c"
,
33
:
"6133e1e6b5fd398be401"
,
34
:
"a7c0fb47e627df580877"
,
35
:
"8a6f2eddea986825094c"
,
36
:
"016ee9d9e7ef1ff8c15b"
,
37
:
"5250bd90920b928718d6"
,
38
:
"d34b5cfa10bdec3aff24"
,
39
:
"3f8124e4c436dc8bac2d"
,
40
:
"cda2471a85245dcfc0da"
,
41
:
"323d5f1c2fbe72c50184"
,
42
:
"6b570b5f9aa128436f6c"
,
43
:
"9d8e65affd568de30a3f"
,
44
:
"e0ddfc31839e7984dba3"
,
45
:
"7ed750c4b7a52ade71ec"
,
46
:
"27243f4ca815f71339cb"
,
47
:
"147c6b319fdec8e3ec7c"
,
48
:
"473edfc17340f68bf019"
,
49
:
"c11e4ff91e3e45a0e01a"
,
50
:
"adf06e778b3bb59a4314"
,
51
:
"10da031ace08e3b2f0ec"
,
52
:
"3d733ded8368c35c7db7"
,
53
:
"464efb5dbd1f1a75c07d"
,
54
:
"4c49723130a02a35341c"
,
55
:
"a59eb69795468eaccdab"
,
56
:
"44a19541b1d9d5510256"
,
57
:
"bb35aa59b73ea983662f"
,
58
:
"f4362bcb70641f953b1a"
,
59
:
"35cc1a5bf8e67c4f3717"
,
60
:
"26251b1473ea21594e14"
,
61
:
"546eb6f21413100b354f"
,
62
:
"79bc422b829d3efa5158"
,
63
:
"cce43b49af145ee143b0"
,
64
:
"c32170be4e3a5886e248"
,
65
:
"37df5a0fbbf0fca93437"
,
66
:
"e609fee1fe2f65d80693"
,
67
:
"e9727b8a22c821b587a0"
,
68
:
"33235a28bed976a3e05e"
,
69
:
"b7a1dbc4c26f669ccf29"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
c
,
a
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
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 @
31d34ee0
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditTime: 2020-04-23 1
4:40:35
* @LastEditTime: 2020-04-23 1
5:18:37
-->
<
template
>
...
...
@@ -74,27 +74,14 @@
</div>
</div>
</div>
<div
class=
"el-form-item el-form-item--large"
>
<label
for=
"name"
class=
"el-form-item__label"
style=
"width: 120px; cursor: pointer;"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"每月该策略针对单一成员执行几次"
placement=
"top-start"
>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
>
策略执行次数
</span></el-tooltip>
</label>
<div
class=
"el-form-item__content"
style=
"margin-left: 120px;"
>
<el-radio
v-model=
"formData.executeType"
label=
"0"
>
每月循环
</el-radio><el-radio
v-model=
"formData.executeType"
label=
"1"
>
多月循环
</el-radio>
<div
v-if=
"formData.executeType == 0"
class=
"m-t-10 month-recyle"
><span
class=
"font-14 color-606266 p-r-10"
>
每月
</span><el-input-number
class=
"w-100"
v-model=
"formData.monthNum"
controls-position=
"right"
:min=
"1"
:max=
"9999"
></el-input-number><span
class=
"font-14 color-303133 p-l-10"
>
次
</span></div>
<div
v-if=
"formData.executeType == 1"
class=
"m-t-10 month-recyle"
>
<span
class=
"font-14 color-606266 p-r-10"
>
第
</span><el-select
class=
"w-100"
multiple
collapse-tags
v-model=
"formData.multMonth"
placeholder=
"请选择"
>
<el-option
v-for=
"item in monthOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select><el-input-number
class=
"m-l-10 w-100"
style=
"vertical-align:middle;"
v-model=
"formData.multMonthNum"
controls-position=
"right"
:min=
"1"
:max=
"9999"
><span
class=
"font-14 color-303133 p-l-10"
>
次
</span></el-input-number>
</div>
</div>
</div>
<div
class=
"el-form-item el-form-item--large"
>
<label
for=
"name"
class=
"el-form-item__label"
style=
"width: 120px; cursor: pointer;"
>
策略有效期
发送次数设置
</label>
<div
class=
"el-form-item__content"
style=
"margin-left: 120px;"
>
<el-radio
v-model=
"formData.vaildDateType"
label=
"0"
>
长期有效
</el-radio><el-radio
v-model=
"formData.vaildDateType"
label=
"1"
>
固定期限
</el-radio>
<div
v-if=
"formData.vaildDateType == 1"
class=
"date-valid"
>
<el-date-picker
class=
""
prefix-icon=
"el-icon-time"
:picker-options=
"pickerOptions"
v-model=
"formData.validDateRange"
:editable=
"false"
: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=
"结束日期"
>
</el-date-picker>
</div>
<el-radio
v-model=
"formData.vaildDateType"
label=
"0"
>
定时发送
</el-radio>
<div
class=
"date-valid"
><el-input-number
class=
"w-100"
v-model=
"formData.monthNum"
controls-position=
"right"
:min=
"1"
:max=
"9999"
></el-input-number><span
class=
"font-14 color-303133 p-l-10"
>
分钟后
</span></div>
</div>
</div>
<el-form-item>
...
...
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