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
ff4b57dc
Commit
ff4b57dc
authored
Apr 29, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改内购券
parent
0c273854
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
8 deletions
+12
-8
index.html
dist/index.html
+2
-2
app.a32c5b53731f5e3da23d4584d8615695.css
dist/static/css/app.a32c5b53731f5e3da23d4584d8615695.css
+0
-0
7.3beaf932d34a9c7fd79b.js
dist/static/js/7.3beaf932d34a9c7fd79b.js
+2
-0
7.9da1de67db7645d0f333.js
dist/static/js/7.9da1de67db7645d0f333.js
+0
-2
manifest.a443195e5e0c28bdcd81.js
dist/static/js/manifest.a443195e5e0c28bdcd81.js
+2
-2
newCardStrategy.vue
src/views/apps/protectCard/newCardStrategy.vue
+6
-2
No files found.
dist/index.html
View file @
ff4b57dc
<!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.7940404a4a5f2a3ec3aa02503a367b20.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.0e20624144d1f95d39cf.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.9bd0abfca377b0d5ca05.js
></script></body></html>
<!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.a32c5b53731f5e3da23d4584d8615695.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.a443195e5e0c28bdcd81.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.9bd0abfca377b0d5ca05.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
7940404a4a5f2a3ec3aa02503a367b20
.css
→
dist/static/css/app.
a32c5b53731f5e3da23d4584d8615695
.css
View file @
ff4b57dc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/7.3beaf932d34a9c7fd79b.js
0 → 100644
View file @
ff4b57dc
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"
),
console
.
log
(
"handleClose:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
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
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"returnData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$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
});
console
.
log
(
"initData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
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
(
"MkDK"
)},
"data-v-5bff7566"
,
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
:
""
,
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
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
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
e
){
console
.
log
(
e
),
/^
[
0-9
]
*$/
.
test
(
e
.
target
.
value
)
||
(
this
.
formData
.
sendTimes
=
1
)},
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
.
formData
.
departmentJson
=
[],
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
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
console
.
log
(
"arr:"
,
a
),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
console
.
log
(
e
.
templateId
,
t
.
templateId
),
e
.
templateId
==
t
.
templateId
&&
(
console
.
log
(
e
.
templateId
),
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
console
.
log
(
"data:"
,
e
),
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
)})},
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
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
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
)},
1
e3
),
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
:
"1"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
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
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"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
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
o
){
return
[
a
(
"span"
,{
key
:
o
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
o
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
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"
,{
staticClass
:
" no-position-tag"
,
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
)])],
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"
,{
staticStyle
:{
"margin-right"
:
"0px"
},
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
e
.
_v
(
" "
),
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
(
"每月循环"
)])]),
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
,
"margin-left"
:
"30px"
},
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"第n月发送次数,例如第3,6,9月,每月1次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
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
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
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
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
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
(
"Ftcy"
)},
"data-v-8e98009a"
,
null
);
t
.
default
=
f
.
exports
},
Ftcy
:
function
(
e
,
t
){},
MkDK
:
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
}):[],
n
.
initData
();
case
10
:
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
o
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
n
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
n
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
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
},
open
:
e
.
initData
}},[
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
(
"luVN"
)},
"data-v-46733412"
,
null
);
t
.
a
=
u
.
exports
},
luVN
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/7.9da1de67db7645d0f333.js
deleted
100644 → 0
View file @
0c273854
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"
),
console
.
log
(
"handleClose:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
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
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"returnData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$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
});
console
.
log
(
"initData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
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
(
"MkDK"
)},
"data-v-5bff7566"
,
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
:
""
,
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
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
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
e
){
console
.
log
(
e
),
/^
[
0-9
]
*$/
.
test
(
e
.
target
.
value
)
||
(
this
.
formData
.
sendTimes
=
1
)},
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
.
formData
.
departmentJson
=
[],
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
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
console
.
log
(
"arr:"
,
a
),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
console
.
log
(
e
.
templateId
,
t
.
templateId
),
e
.
templateId
==
t
.
templateId
&&
(
e
=
t
)})}),
console
.
log
(
"data:"
,
e
),
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
)})},
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
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
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
)},
1
e3
),
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
:
"1"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
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
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"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
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
o
){
return
[
a
(
"span"
,{
key
:
o
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
o
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
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"
,{
staticClass
:
" no-position-tag"
,
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
)])],
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"
,{
staticStyle
:{
"margin-right"
:
"0px"
},
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
e
.
_v
(
" "
),
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
(
"每月循环"
)])]),
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
,
"margin-left"
:
"30px"
},
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"第n月发送次数,例如第3,6,9月,每月1次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
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
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
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
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
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
(
"c3hj"
)},
"data-v-6d4b2850"
,
null
);
t
.
default
=
f
.
exports
},
MkDK
:
function
(
e
,
t
){},
c3hj
:
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
}):[],
n
.
initData
();
case
10
:
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
o
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
o
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
n
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
n
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
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
},
open
:
e
.
initData
}},[
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
(
"luVN"
)},
"data-v-46733412"
,
null
);
t
.
a
=
u
.
exports
},
luVN
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
0e20624144d1f95d39cf
.js
→
dist/static/js/manifest.
a443195e5e0c28bdcd81
.js
View file @
ff4b57dc
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
d
=
{
72
:
0
};
function
f
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
d
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
a
=
d
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
f
){
a
=
d
[
e
]
=
[
c
,
f
]});
a
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"17ce4536e839cb94db23"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"235ca242db5e3701cacc"
,
7
:
"9da1de67db7645d0f333"
,
8
:
"5cbeb9fde8d49bf97a09"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"bea8c520754411c19a1a"
,
19
:
"7a53269ddf9f15768789"
,
20
:
"f4ca923a45be4e175087"
,
21
:
"3b62dd9c716d4bbba918"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"4a9b3d64a1064ee4d046"
,
27
:
"db4da52504dc5a56b7ca"
,
28
:
"e87e178de592c4a24589"
,
29
:
"937ff315bfafad7ed54b"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"23f5807c069d97f13536"
,
32
:
"4de4968d6e57140dee2d"
,
33
:
"d38da5f20bcf32129f71"
,
34
:
"93b49282fdccc322c7b8"
,
35
:
"b7ed1be0435910e43e30"
,
36
:
"ac81ef630923456184e4"
,
37
:
"eb2f2f6d2d73849ad275"
,
38
:
"2a2dffae80d1e724ae87"
,
39
:
"36ad49af4ad28511cb7e"
,
40
:
"53d1aada48d77cf4670b"
,
41
:
"b7276467d43930494f90"
,
42
:
"cef9078afe497dcad23b"
,
43
:
"d48de5dac078d9ad90c4"
,
44
:
"2f296520a0f2f8e08b22"
,
45
:
"51e99e798679d95cece8"
,
46
:
"d4ce1c561d67b0c04425"
,
47
:
"ad442acf84af3ae5af46"
,
48
:
"b6999b3e3d10f4e9e1b2"
,
49
:
"28f36a322fb5ce8b38ba"
,
50
:
"2a2d88a499f0fba9e56d"
,
51
:
"5f9f5e97d731a80596b2"
,
52
:
"fb0811092c28fc953a79"
,
53
:
"86b265345fd4634133ee"
,
54
:
"b75395d4ff7b536d99df"
,
55
:
"0f82c63e3f81be4eff4a"
,
56
:
"b0c7cb028dd5bae1b24f"
,
57
:
"16123859e261720cfa3a"
,
58
:
"2d1da1431da8457de660"
,
59
:
"8728a07090d298eca736"
,
60
:
"ea646a16378473525d63"
,
61
:
"06e1a024061daba215e4"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
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
a
=
d
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
f
.
m
=
e
,
f
.
c
=
c
,
f
.
d
=
function
(
e
,
a
,
c
){
f
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
f
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
a
,
"a"
,
a
),
a
},
f
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
72
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"17ce4536e839cb94db23"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"235ca242db5e3701cacc"
,
7
:
"3beaf932d34a9c7fd79b"
,
8
:
"5cbeb9fde8d49bf97a09"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"bea8c520754411c19a1a"
,
19
:
"7a53269ddf9f15768789"
,
20
:
"f4ca923a45be4e175087"
,
21
:
"3b62dd9c716d4bbba918"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"4a9b3d64a1064ee4d046"
,
27
:
"db4da52504dc5a56b7ca"
,
28
:
"e87e178de592c4a24589"
,
29
:
"937ff315bfafad7ed54b"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"23f5807c069d97f13536"
,
32
:
"4de4968d6e57140dee2d"
,
33
:
"d38da5f20bcf32129f71"
,
34
:
"93b49282fdccc322c7b8"
,
35
:
"b7ed1be0435910e43e30"
,
36
:
"ac81ef630923456184e4"
,
37
:
"eb2f2f6d2d73849ad275"
,
38
:
"2a2dffae80d1e724ae87"
,
39
:
"36ad49af4ad28511cb7e"
,
40
:
"53d1aada48d77cf4670b"
,
41
:
"b7276467d43930494f90"
,
42
:
"cef9078afe497dcad23b"
,
43
:
"d48de5dac078d9ad90c4"
,
44
:
"2f296520a0f2f8e08b22"
,
45
:
"51e99e798679d95cece8"
,
46
:
"d4ce1c561d67b0c04425"
,
47
:
"ad442acf84af3ae5af46"
,
48
:
"b6999b3e3d10f4e9e1b2"
,
49
:
"28f36a322fb5ce8b38ba"
,
50
:
"2a2d88a499f0fba9e56d"
,
51
:
"5f9f5e97d731a80596b2"
,
52
:
"fb0811092c28fc953a79"
,
53
:
"86b265345fd4634133ee"
,
54
:
"b75395d4ff7b536d99df"
,
55
:
"0f82c63e3f81be4eff4a"
,
56
:
"b0c7cb028dd5bae1b24f"
,
57
:
"16123859e261720cfa3a"
,
58
:
"2d1da1431da8457de660"
,
59
:
"8728a07090d298eca736"
,
60
:
"ea646a16378473525d63"
,
61
:
"06e1a024061daba215e4"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
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
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/apps/protectCard/newCardStrategy.vue
View file @
ff4b57dc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-04-29 17:
18:0
2
* @LastEditTime: 2020-04-29 17:
25:2
2
-->
-->
<
template
>
<
template
>
...
@@ -345,7 +345,11 @@ export default {
...
@@ -345,7 +345,11 @@ export default {
arr
.
forEach
(
el
=>
{
arr
.
forEach
(
el
=>
{
console
.
log
(
ele
.
templateId
,
el
.
templateId
);
console
.
log
(
ele
.
templateId
,
el
.
templateId
);
if
(
ele
.
templateId
==
el
.
templateId
)
{
if
(
ele
.
templateId
==
el
.
templateId
)
{
ele
=
el
;
console
.
log
(
ele
.
templateId
);
ele
.
effectiveType
=
el
.
effectiveType
;
ele
.
dateRange
=
el
.
dateRange
;
ele
.
sendNumberDay
=
el
.
sendNumberDay
;
ele
.
effectiveDay
=
el
.
effectiveDay
;
}
}
});
});
});
});
...
...
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