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
880b0985
Commit
880b0985
authored
Aug 20, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改卡券
parent
df22fd21
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
13 deletions
+16
-13
index.html
dist/index.html
+2
-2
app.cf9bc48f92805985c16c561c33c9301d.css
dist/static/css/app.cf9bc48f92805985c16c561c33c9301d.css
+0
-0
10.e304fd17b7015bf7e94d.js
dist/static/js/10.e304fd17b7015bf7e94d.js
+2
-2
11.675631224d24bc64b905.js
dist/static/js/11.675631224d24bc64b905.js
+2
-2
12.78ccd34a95a7c69f6875.js
dist/static/js/12.78ccd34a95a7c69f6875.js
+2
-2
app.e23a8f0e32ffed33f037.js
dist/static/js/app.e23a8f0e32ffed33f037.js
+2
-2
manifest.671ca5c3662e3ae4919c.js
dist/static/js/manifest.671ca5c3662e3ae4919c.js
+2
-2
newCard.vue
src/views/apps/card/newCard.vue
+4
-1
No files found.
dist/index.html
View file @
880b0985
<!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.e9711748a6acdedd38f34074f5d62256.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
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.4447d6d644d53dfce973.js
></script><script
type=
text/javascript
src=
./static/js/vendor.c9b2df17ceb0429de99c.js
></script><script
type=
text/javascript
src=
./static/js/app.e630e17dadfea4b2609c.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.cf9bc48f92805985c16c561c33c9301d.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
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.671ca5c3662e3ae4919c.js
></script><script
type=
text/javascript
src=
./static/js/vendor.c9b2df17ceb0429de99c.js
></script><script
type=
text/javascript
src=
./static/js/app.e23a8f0e32ffed33f037.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
e9711748a6acdedd38f34074f5d62256
.css
→
dist/static/css/app.
cf9bc48f92805985c16c561c33c9301d
.css
View file @
880b0985
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/1
2.9b520e25e2ce3972f449
.js
→
dist/static/js/1
0.e304fd17b7015bf7e94d
.js
View file @
880b0985
webpackJsonp
([
12
],{
"7/Zw"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"mOmb"
),
l
=
a
(
"Ggl+"
),
n
=
a
(
"Ch4/"
),
i
=
a
(
"P9l9"
),
c
=
a
(
"PI0u"
),
d
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
coupCardId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
selectCoupCardId
:
this
.
coupCardId
||
""
,
tableData
:[],
currentPage
:
1
,
pageSize
:
6
,
total
:
0
}},
methods
:{
handleClose
:
function
(
e
){
this
.
$emit
(
"closeCard"
)},
toConfirm
:
function
(){
var
e
=
this
,
t
=
{};
e
.
tableData
.
forEach
(
function
(
a
){
a
.
coupCardId
==
e
.
selectCoupCardId
&&
(
t
=
a
)}),
e
.
$emit
(
"returnId"
,
e
.
selectCoupCardId
,
t
)},
toCancel
:
function
(){
this
.
$emit
(
"closeCard"
)},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
cardName
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-select-card-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
getTableList
()},
coupCardId
:
function
(
e
,
t
){
e
&&
(
this
.
selectCoupCardId
=
e
)}},
mounted
:
function
(){
this
.
selectCoupCardId
=
this
.
coupCardId
,
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"卡券选择"
,
visible
:
e
.
dialogVisible
,
width
:
"994px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"search-div"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入卡券名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
a
(
"span"
,{
staticClass
:
"search-tip p-l-20 font-14 color-909399"
},[
e
.
_v
(
"仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"
+
e
.
_s
(
e
.
total
)
+
"张"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content boder-box m-t-20"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"hide-ellipsis"
,
label
:
""
,
width
:
"50"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-radio"
,{
attrs
:{
disabled
:
1
==
t
.
row
.
selected
,
label
:
t
.
row
.
coupCardId
},
model
:{
value
:
e
.
selectCoupCardId
,
callback
:
function
(
t
){
e
.
selectCoupCardId
=
t
},
expression
:
"selectCoupCardId"
}},[
e
.
_v
(
e
.
_s
(
""
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardName"
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"effectDateString"
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardLimit"
,
label
:
"领取限制"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeMode"
,
label
:
"适用门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
storeMode
?
"所有门店"
:
1
==
t
.
row
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"couponStock"
,
label
:
"库存"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"getedQuantity"
,
label
:
"领取次数"
,
"show-overflow-tooltip"
:
""
}})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
" prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer m-b-20"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toConfirm
}},[
e
.
_v
(
"确认"
)])],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"XY0T"
)},
"data-v-4cee3a66"
,
null
).
exports
,
m
=
{
name
:
"gic-select-tag"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
storeVisible
:
!
1
,
tags
:[],
dailyRuleForm
:{
tags
:[]},
selectTags
:[]}},
methods
:{
handleStoresChange
:
function
(
e
){
var
t
=
[];
this
.
tags
.
forEach
(
function
(
a
){
e
.
includes
(
a
.
tagId
)
&&
t
.
push
(
a
)}),
this
.
selectTags
=
JSON
.
parse
(
r
()(
t
)),
this
.
$emit
(
"returnTags"
,
this
.
selectTags
)},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
$emit
(
"returnTags"
,
this
.
selectTags
)},
getTagsData
:
function
(){
var
e
=
this
,
t
=
{
gicEnterpriseId
:
e
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-store-tag-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
n
.
a
.
errorMsg
(
a
):
e
.
tags
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[],
this
.
tags
=
[],
this
.
getTagsData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?(
this
.
selectTags
=
JSON
.
parse
(
r
()(
e
)),
this
.
dailyRuleForm
.
tags
=
e
.
map
(
function
(
e
){
return
e
.
tagId
})):(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[])}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
tags
=
[],
this
.
getTagsData
()),
this
.
selectData
.
length
?(
this
.
selectTags
=
JSON
.
parse
(
r
()(
this
.
selectData
)),
this
.
dailyRuleForm
.
tags
=
this
.
selectData
.
map
(
function
(
e
){
return
e
.
tagId
})):(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[])}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
tags
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"tags"
,
t
)},
expression
:
"dailyRuleForm.tags"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
tags
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
tagId
,
staticClass
:
"el-select-dropdown__item"
},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
tagId
}},[
e
.
_v
(
e
.
_s
(
t
.
tagName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
tags
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center el-select-dropdown__item"
},[
a
(
"span"
,[
e
.
_v
(
"暂无门店标签"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
style
:{
width
:
e
.
width
}},[
e
.
dailyRuleForm
.
tags
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}},[
e
.
_v
(
"请选择门店标签"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
selectTags
,
function
(
t
,
s
){
return
[
a
(
"span"
,{
key
:
s
+
"tag"
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
tagName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
s
,
e
.
selectTags
)}}})])]})],
2
)])])])])])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
m
,
g
,
!
1
,
function
(
e
){
a
(
"AlZ0"
)},
"data-v-a129d84c"
,
null
).
exports
,
f
=
a
(
"3E4D"
),
b
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
p
,
gicSelectGroup
:
l
.
a
,
gicSelectStore
:
o
.
a
,
gicSelectTag
:
h
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
loadingPage
:
!
0
,
formData
:{
id
:
""
,
coupCardId
:
this
.
$route
.
query
.
coupCardId
?
this
.
$route
.
query
.
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
e
.
formData
.
selectList
.
length
?
void
s
():
s
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
e
.
formData
.
totalSendTimes
?
void
s
():
s
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
addTag
:
!
0
,
loadingBtn
:
!
1
}},
methods
:{
returnTags
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
coupCardId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
,
this
.
$refs
.
ruleForm
.
validate
(
function
(
e
){
if
(
e
)
return
!
1
})},
submitForm
:
Object
(
c
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
&&
"3"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
"1"
!=
a
.
formData
.
sendType
||
a
.
formData
.
totalSendTimes
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
e
)
return
!
1
}),
!
1
))},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
""
;
1
==
t
.
formData
.
sendRange
?
a
=
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
2
==
t
.
formData
.
sendRange
?
a
=
t
.
formData
.
selectList
.
join
(
","
):
3
==
t
.
formData
.
sendRange
&&
(
a
=
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
tagId
}).
join
(
","
));
var
s
=
{
id
:
t
.
formData
.
id
,
coupCardId
:
t
.
formData
.
coupCardId
,
sendRange
:
t
.
formData
.
sendRange
,
selectList
:
a
,
eachSendTimes
:
t
.
formData
.
eachSendTimes
,
sendType
:
t
.
formData
.
sendType
,
totalSendTimes
:
t
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
t
.
brandId
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
i
.
d
)(
t
.
$route
.
query
.
coupCardId
&&!
t
.
addTag
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
s
).
then
(
function
(
a
){
var
s
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
s
.
errorCode
&&
(
f
.
a
.
showmsg
(
t
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
e
?(
t
.
addTag
=!
0
,
t
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardList"
)),
n
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
e
.
$route
.
query
.
activeTab
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
;
e
.
loadingPage
=!
0
;
var
t
=
{
coupCardId
:
e
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
detail
?(
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
e
.
departmentId
=
e
.
id
,
e
.
storeGroupId
=
e
.
id
,
e
.
storeGroupName
=
e
.
name
,
e
.
departmentName
=
e
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
storeId
=
e
.
id
),
3
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
tagName
=
e
.
name
,
e
.
tagId
=
e
.
id
)}),
e
.
selectCoupCard
=
a
.
result
.
gicDetail
,
e
.
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
(
e
){
return
e
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
e
.
loadingPage
=!
1
,
!
1
):(
e
.
loadingPage
=!
1
,
e
.
addTag
=!
1
,
f
.
a
.
showmsg
(
"请先保存上一个商户的设置内容"
,
"warning"
),
!
1
);
e
.
loadingPage
=!
1
,
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loadingPage
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
if
(
e
&&
this
.
$route
.
query
.
coupCardId
&&
(
this
.
addTag
=!
1
),
e
&&
this
.
$route
.
query
.
coupCardId
&&!
this
.
addTag
)
return
this
.
activeBrand
=
e
,
this
.
getCardData
(),
!
1
;
e
&&
(
this
.
addTag
=!
0
,
this
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
this
.
selectCoupCard
=
{})},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
$route
.
query
.
coupCardId
&&
this
.
brandId
?(
this
.
addTag
=!
1
,
this
.
getCardData
()):
this
.
loadingPage
=!
1
}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loadingPage
,
expression
:
"loadingPage"
}],
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
:
"coupCardId"
}},[
e
.
formData
.
coupCardId
?
a
(
"div"
,{
staticClass
:
"selected-card-body flex"
},[
a
(
"div"
,{
staticClass
:
"selected-card font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selectCoupCard
.
cardName
)
+
" | "
+
e
.
_s
(
e
.
selectCoupCard
.
effectDateString
)
+
" | 限制"
+
e
.
_s
(
e
.
selectCoupCard
.
cardLimit
)
+
"张/人 | 适用门店:"
+
e
.
_s
(
0
==
e
.
selectCoupCard
.
storeMode
?
"所有门店"
:
1
==
e
.
selectCoupCard
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
" | 库存:"
+
e
.
_s
(
e
.
selectCoupCard
.
couponStock
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showCard
}},[
e
.
_v
(
"重新选择"
)])],
1
):
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCard
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-12 color-909399"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
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
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"3"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"门店标签"
)]),
e
.
_v
(
" "
),
3
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-tag"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnTags
:
e
.
returnTags
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
&&
"3"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券限制每个会员最大发放次数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放张数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-90"
,
attrs
:{
"controls-position"
:
"right"
,
precision
:
0
,
"step-strictly"
:
""
,
step
:
1
,
min
:
0
,
max
:
20
},
model
:{
value
:
e
.
formData
.
eachSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"eachSendTimes"
,
t
)},
expression
:
"formData.eachSendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-20"
},[
e
.
_v
(
"最多20张每人"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券发放总数,不得超过券库存数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放总数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"无限制"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"限制总数"
)]),
1
==
e
.
formData
.
sendType
?
a
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
precision
:
0
,
"step-strictly"
:
""
,
step
:
1
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
formData
.
totalSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"totalSendTimes"
,
t
)},
expression
:
"formData.totalSendTimes"
}}):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
coupCardId
&&!
e
.
addTag
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
coupCardId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
cardSelectShow
?
a
(
"select-card"
,{
attrs
:{
coupCardId
:
e
.
formData
.
coupCardId
,
brandId
:
e
.
brandId
},
on
:{
closeCard
:
e
.
closeCard
,
returnId
:
e
.
returnId
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
C
=
a
(
"VU/8"
)(
b
,
v
,
!
1
,
function
(
e
){
a
(
"voV+"
)},
"data-v-319e70eb"
,
null
);
t
.
default
=
C
.
exports
},
AlZ0
:
function
(
e
,
t
){},
XY0T
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"P9l9"
),
l
=
a
(
"Ch4/"
),
n
=
a
(
"PI0u"
),
i
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
n
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
a
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
a
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[]):
a
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
a
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"select-search"
},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchSelect
);
var
a
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center"
},[
a
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-250"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
a
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
a
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
a
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
i
,
c
,
!
1
,
function
(
e
){
a
(
"uit/"
)},
"data-v-c115aac0"
,
null
);
t
.
a
=
d
.
exports
},
"uit/"
:
function
(
e
,
t
){},
"voV+"
:
function
(
e
,
t
){}});
webpackJsonp
([
10
],{
"7/Zw"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"mOmb"
),
l
=
a
(
"Ggl+"
),
n
=
a
(
"Ch4/"
),
i
=
a
(
"P9l9"
),
c
=
a
(
"PI0u"
),
d
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
coupCardId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
selectCoupCardId
:
this
.
coupCardId
||
""
,
tableData
:[],
currentPage
:
1
,
pageSize
:
6
,
total
:
0
}},
methods
:{
handleClose
:
function
(
e
){
this
.
$emit
(
"closeCard"
)},
toConfirm
:
function
(){
var
e
=
this
,
t
=
{};
e
.
tableData
.
forEach
(
function
(
a
){
a
.
coupCardId
==
e
.
selectCoupCardId
&&
(
t
=
a
)}),
e
.
$emit
(
"returnId"
,
e
.
selectCoupCardId
,
t
)},
toCancel
:
function
(){
this
.
$emit
(
"closeCard"
)},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
cardName
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-select-card-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
getTableList
()},
coupCardId
:
function
(
e
,
t
){
e
&&
(
this
.
selectCoupCardId
=
e
)}},
mounted
:
function
(){
this
.
selectCoupCardId
=
this
.
coupCardId
,
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"卡券选择"
,
visible
:
e
.
dialogVisible
,
width
:
"994px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"search-div"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入卡券名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
a
(
"span"
,{
staticClass
:
"search-tip p-l-20 font-14 color-909399"
},[
e
.
_v
(
"仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"
+
e
.
_s
(
e
.
total
)
+
"张"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content boder-box m-t-20"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"hide-ellipsis"
,
label
:
""
,
width
:
"50"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-radio"
,{
attrs
:{
disabled
:
1
==
t
.
row
.
selected
,
label
:
t
.
row
.
coupCardId
},
model
:{
value
:
e
.
selectCoupCardId
,
callback
:
function
(
t
){
e
.
selectCoupCardId
=
t
},
expression
:
"selectCoupCardId"
}},[
e
.
_v
(
e
.
_s
(
""
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardName"
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"effectDateString"
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardLimit"
,
label
:
"领取限制"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeMode"
,
label
:
"适用门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
storeMode
?
"所有门店"
:
1
==
t
.
row
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"couponStock"
,
label
:
"库存"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"getedQuantity"
,
label
:
"领取次数"
,
"show-overflow-tooltip"
:
""
}})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
" prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer m-b-20"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toConfirm
}},[
e
.
_v
(
"确认"
)])],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"XY0T"
)},
"data-v-4cee3a66"
,
null
).
exports
,
m
=
{
name
:
"gic-select-tag"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
storeVisible
:
!
1
,
tags
:[],
dailyRuleForm
:{
tags
:[]},
selectTags
:[]}},
methods
:{
handleStoresChange
:
function
(
e
){
var
t
=
[];
this
.
tags
.
forEach
(
function
(
a
){
e
.
includes
(
a
.
tagId
)
&&
t
.
push
(
a
)}),
this
.
selectTags
=
JSON
.
parse
(
r
()(
t
)),
this
.
$emit
(
"returnTags"
,
this
.
selectTags
)},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
),
this
.
$emit
(
"returnTags"
,
this
.
selectTags
)},
getTagsData
:
function
(){
var
e
=
this
,
t
=
{
gicEnterpriseId
:
e
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-store-tag-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
n
.
a
.
errorMsg
(
a
):
e
.
tags
=
a
.
result
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[],
this
.
tags
=
[],
this
.
getTagsData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?(
this
.
selectTags
=
JSON
.
parse
(
r
()(
e
)),
this
.
dailyRuleForm
.
tags
=
e
.
map
(
function
(
e
){
return
e
.
tagId
})):(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[])}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
tags
=
[],
this
.
getTagsData
()),
this
.
selectData
.
length
?(
this
.
selectTags
=
JSON
.
parse
(
r
()(
this
.
selectData
)),
this
.
dailyRuleForm
.
tags
=
this
.
selectData
.
map
(
function
(
e
){
return
e
.
tagId
})):(
this
.
dailyRuleForm
.
tags
=
[],
this
.
selectTags
=
[])}},
g
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
tags
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"tags"
,
t
)},
expression
:
"dailyRuleForm.tags"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
tags
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
tagId
,
staticClass
:
"el-select-dropdown__item"
},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
tagId
}},[
e
.
_v
(
e
.
_s
(
t
.
tagName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
tags
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center el-select-dropdown__item"
},[
a
(
"span"
,[
e
.
_v
(
"暂无门店标签"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
style
:{
width
:
e
.
width
}},[
e
.
dailyRuleForm
.
tags
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}},[
e
.
_v
(
"请选择门店标签"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
selectTags
,
function
(
t
,
s
){
return
[
a
(
"span"
,{
key
:
s
+
"tag"
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
tagName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
s
,
e
.
selectTags
)}}})])]})],
2
)])])])])])},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
m
,
g
,
!
1
,
function
(
e
){
a
(
"AlZ0"
)},
"data-v-a129d84c"
,
null
).
exports
,
f
=
a
(
"3E4D"
),
b
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
p
,
gicSelectGroup
:
l
.
a
,
gicSelectStore
:
o
.
a
,
gicSelectTag
:
h
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
loadingPage
:
!
0
,
formData
:{
id
:
""
,
coupCardId
:
this
.
$route
.
query
.
coupCardId
?
this
.
$route
.
query
.
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
e
.
formData
.
selectList
.
length
?
void
s
():
s
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
e
.
formData
.
totalSendTimes
?
void
s
():
s
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
addTag
:
!
0
,
loadingBtn
:
!
1
}},
methods
:{
returnTags
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
coupCardId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
,
this
.
$refs
.
ruleForm
.
validate
(
function
(
e
){
if
(
e
)
return
!
1
})},
submitForm
:
Object
(
c
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
&&
"3"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
"1"
!=
a
.
formData
.
sendType
||
a
.
formData
.
totalSendTimes
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
e
)
return
!
1
}),
!
1
))},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
""
;
1
==
t
.
formData
.
sendRange
?
a
=
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
2
==
t
.
formData
.
sendRange
?
a
=
t
.
formData
.
selectList
.
join
(
","
):
3
==
t
.
formData
.
sendRange
&&
(
a
=
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
tagId
}).
join
(
","
));
var
s
=
{
id
:
t
.
formData
.
id
,
coupCardId
:
t
.
formData
.
coupCardId
,
sendRange
:
t
.
formData
.
sendRange
,
selectList
:
a
,
eachSendTimes
:
t
.
formData
.
eachSendTimes
,
sendType
:
t
.
formData
.
sendType
,
totalSendTimes
:
t
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
t
.
brandId
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
i
.
d
)(
t
.
$route
.
query
.
coupCardId
&&!
t
.
addTag
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
s
).
then
(
function
(
a
){
var
s
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
s
.
errorCode
&&
(
f
.
a
.
showmsg
(
t
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
e
?(
t
.
addTag
=!
0
,
t
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardList"
)),
n
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
e
.
$route
.
query
.
activeTab
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
;
e
.
loadingPage
=!
0
;
var
t
=
{
coupCardId
:
e
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
i
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
detail
?(
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
e
.
departmentId
=
e
.
id
,
e
.
storeGroupId
=
e
.
id
,
e
.
storeGroupName
=
e
.
name
,
e
.
departmentName
=
e
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
storeId
=
e
.
id
),
3
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
tagName
=
e
.
name
,
e
.
tagId
=
e
.
id
)}),
e
.
selectCoupCard
=
a
.
result
.
gicDetail
,
e
.
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
(
e
){
return
e
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
e
.
loadingPage
=!
1
,
!
1
):(
e
.
loadingPage
=!
1
,
e
.
addTag
=!
1
,
f
.
a
.
showmsg
(
"请先保存上一个商户的设置内容"
,
"warning"
),
!
1
);
e
.
loadingPage
=!
1
,
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loadingPage
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
if
(
e
&&
this
.
$route
.
query
.
coupCardId
&&
(
this
.
addTag
=!
1
),
e
&&
this
.
$route
.
query
.
coupCardId
&&!
this
.
addTag
)
return
this
.
activeBrand
=
e
,
this
.
getCardData
(),
!
1
;
e
&&
(
this
.
addTag
=!
0
,
this
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
this
.
selectCoupCard
=
{})},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
$route
.
query
.
coupCardId
&&
this
.
brandId
?(
this
.
addTag
=!
1
,
this
.
getCardData
()):
this
.
loadingPage
=!
1
}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loadingPage
,
expression
:
"loadingPage"
}],
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
:
"coupCardId"
}},[
e
.
formData
.
coupCardId
?
a
(
"div"
,{
staticClass
:
"selected-card-body flex"
},[
a
(
"div"
,{
staticClass
:
"selected-card font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selectCoupCard
.
cardName
)
+
" | "
+
e
.
_s
(
e
.
selectCoupCard
.
effectDateString
)
+
" | 限制"
+
e
.
_s
(
e
.
selectCoupCard
.
cardLimit
)
+
"张/人 | 适用门店:"
+
e
.
_s
(
0
==
e
.
selectCoupCard
.
storeMode
?
"所有门店"
:
1
==
e
.
selectCoupCard
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
" | 库存:"
+
e
.
_s
(
e
.
selectCoupCard
.
couponStock
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showCard
}},[
e
.
_v
(
"重新选择"
)])],
1
):
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCard
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-12 color-909399"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
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
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"3"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"门店标签"
)]),
e
.
_v
(
" "
),
3
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-tag"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnTags
:
e
.
returnTags
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
&&
"3"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券限制每个会员最大发放次数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放张数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-90"
,
attrs
:{
"controls-position"
:
"right"
,
precision
:
0
,
"step-strictly"
:
""
,
step
:
1
,
min
:
0
,
max
:
20
},
model
:{
value
:
e
.
formData
.
eachSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"eachSendTimes"
,
t
)},
expression
:
"formData.eachSendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-20"
},[
e
.
_v
(
"最多20张每人"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券发放总数,不得超过券库存数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放总数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"无限制"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"限制总数"
)]),
1
==
e
.
formData
.
sendType
?
a
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
precision
:
0
,
"step-strictly"
:
""
,
step
:
1
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
formData
.
totalSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"totalSendTimes"
,
t
)},
expression
:
"formData.totalSendTimes"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
e
.
formData
.
sendType
||
e
.
formData
.
totalSendTimes
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"
\
n 请选择券发放总数
\
n "
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
coupCardId
&&!
e
.
addTag
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
coupCardId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
cardSelectShow
?
a
(
"select-card"
,{
attrs
:{
coupCardId
:
e
.
formData
.
coupCardId
,
brandId
:
e
.
brandId
},
on
:{
closeCard
:
e
.
closeCard
,
returnId
:
e
.
returnId
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
C
=
a
(
"VU/8"
)(
b
,
v
,
!
1
,
function
(
e
){
a
(
"m1WK"
)},
"data-v-b5d55b20"
,
null
);
t
.
default
=
C
.
exports
},
AlZ0
:
function
(
e
,
t
){},
XY0T
:
function
(
e
,
t
){},
m1WK
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"P9l9"
),
l
=
a
(
"Ch4/"
),
n
=
a
(
"PI0u"
),
i
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
n
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
a
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
a
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[]):
a
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
a
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"select-search"
},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchSelect
);
var
a
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center"
},[
a
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-250"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
a
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
a
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
a
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
i
,
c
,
!
1
,
function
(
e
){
a
(
"uit/"
)},
"data-v-c115aac0"
,
null
);
t
.
a
=
d
.
exports
},
"uit/"
:
function
(
e
,
t
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/1
0.9efa6e13afa9effbf550
.js
→
dist/static/js/1
1.675631224d24bc64b905
.js
View file @
880b0985
webpackJsonp
([
10
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"3Xzz"
),
o
=
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"
),
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
});
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
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$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
:
n
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"6mNu"
)},
"data-v-47815b13"
,
null
);
t
.
a
=
c
.
exports
},
"6mNu"
:
function
(
e
,
t
){},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
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
,
n
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
n
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
n
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
n
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
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
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
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
n
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
n
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
n
?
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
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
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
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
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
n
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
n
.
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
(
n
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
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
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
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"
,
loading
:
e
.
loadingBtn
},
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
(
"Ezmd"
)},
"data-v-e82827c8"
,
null
);
t
.
default
=
f
.
exports
},
Ezmd
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
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
n
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
n
){
for
(;;)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
n
.
next
=
5
;
break
}
return
n
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
n
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
n
.
stop
()}},
n
,
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
n
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
r
=
o
.
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
||
n
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
n
.
$forceUpdate
(),
!
1
):(
n
.
groupData
=
r
.
result
||
[],
void
n
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
n
.
$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
(
o
()(
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
(
o
()(
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
n
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
n
.
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
,
n
){
return
a
(
"el-checkbox"
,{
key
:
n
+
"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
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
u
.
exports
}});
webpackJsonp
([
11
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"3Xzz"
),
o
=
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"
),
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
});
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
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$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
:
n
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"6mNu"
)},
"data-v-47815b13"
,
null
);
t
.
a
=
c
.
exports
},
"6mNu"
:
function
(
e
,
t
){},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
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
,
n
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
n
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
n
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
n
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
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
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
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
n
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
n
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
n
?
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
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
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
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
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
n
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
n
.
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
(
n
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
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
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
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"
,
loading
:
e
.
loadingBtn
},
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
(
"Ezmd"
)},
"data-v-e82827c8"
,
null
);
t
.
default
=
f
.
exports
},
Ezmd
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
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
n
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
n
){
for
(;;)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
n
.
next
=
5
;
break
}
return
n
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
n
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
n
.
stop
()}},
n
,
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
n
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
r
=
o
.
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
||
n
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
n
.
$forceUpdate
(),
!
1
):(
n
.
groupData
=
r
.
result
||
[],
void
n
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
n
.
$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
(
o
()(
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
(
o
()(
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
n
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
n
.
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
,
n
){
return
a
(
"el-checkbox"
,{
key
:
n
+
"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
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/1
1.8cd34604f8364f7ef2a1
.js
→
dist/static/js/1
2.78ccd34a95a7c69f6875
.js
View file @
880b0985
webpackJsonp
([
11
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
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"
),
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
});
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
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$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
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"6mNu"
)},
"data-v-47815b13"
,
null
);
t
.
a
=
c
.
exports
},
"6mNu"
:
function
(
e
,
t
){},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
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
:
""
,
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
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
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
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
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
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
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"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
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
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
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
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
(
r
,
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"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
loading
:
e
.
loadingBtn
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"O9nd"
)},
"data-v-3939eafa"
,
null
);
t
.
default
=
m
.
exports
},
M29i
:
function
(
e
,
t
){},
O9nd
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
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
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
5
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
r
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
r
.
initData
());
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$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
(
o
()(
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
(
o
()(
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
()})}},
u
=
{
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
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
f
.
exports
}});
webpackJsonp
([
12
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
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"
),
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
});
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
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$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
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"6mNu"
)},
"data-v-47815b13"
,
null
);
t
.
a
=
c
.
exports
},
"6mNu"
:
function
(
e
,
t
){},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
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
:
""
,
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
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
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
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
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
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
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"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
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
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
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
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
(
r
,
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"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
loading
:
e
.
loadingBtn
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"O9nd"
)},
"data-v-3939eafa"
,
null
);
t
.
default
=
m
.
exports
},
M29i
:
function
(
e
,
t
){},
O9nd
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
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
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
5
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
r
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
r
.
initData
());
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$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
(
o
()(
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
(
o
()(
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
()})}},
u
=
{
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
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
f
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/app.e
630e17dadfea4b2609c
.js
→
dist/static/js/app.e
23a8f0e32ffed33f037
.js
View file @
880b0985
webpackJsonp
([
87
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/enterpriseData"
,
name
:
"企业数据"
,
redirect
:
"enterpriseUseData"
,
component
:
h
()(
"enterpriseData"
,
"index"
),
children
:[{
path
:
"/enterpriseUseData"
,
name
:
"好办使用详情"
,
component
:
h
()(
"enterpriseData"
,
"enterpriseUseData"
)},{
path
:
"/activeDetail"
,
name
:
"激活人员明细"
,
component
:
h
()(
"enterpriseData"
,
"activeDetail"
)},{
path
:
"/loginDetail"
,
name
:
"登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"loginDetail"
)},{
path
:
"/areaLoginDetail"
,
name
:
"区域登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"areaLoginDetail"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/memberDetailSet"
,
name
:
"会员详情设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberDetailSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
C
=
a
.
n
(
x
),
T
=
a
(
"bOdI"
),
b
=
a
.
n
(
T
),
R
=
a
(
"SJI6"
),
M
=
a
.
n
(
R
);
u
.
a
.
use
(
M
.
a
);
var
A
=
new
M
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
L
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),
a
(
"Q0Ca"
)),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
U
=
a
(
"l9mu"
),
J
=
a
.
n
(
U
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
J
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
L
.
a
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
L
.
a
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
A
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
64
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
55
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
77
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
33
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
65
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
20
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
45
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
12
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
37
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
18
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
28
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
49
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
39
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
7
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
44
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
59
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
60
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
73
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
85
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
67
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
30
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
63
],
"./apps/customerApp/memberDetailSet.vue"
:[
"F1Rz"
,
0
,
43
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
56
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
75
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
71
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
8
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
14
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
62
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
76
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
47
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
72
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
26
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
81
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
78
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
11
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
10
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
42
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
79
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
69
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
36
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
50
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
35
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
74
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
52
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
58
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
57
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
40
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
82
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
16
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
34
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
46
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
51
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
32
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
83
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
53
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
17
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
6
],
"./business/index.vue"
:[
"jPcV"
,
0
,
84
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
80
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
29
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
61
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
15
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
54
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./enterpriseData/activeDetail.vue"
:[
"h9Ca"
,
0
,
22
],
"./enterpriseData/areaLoginDetail.vue"
:[
"TLd+"
,
0
,
19
],
"./enterpriseData/enterpriseUseData.vue"
:[
"i4c9"
,
0
,
5
],
"./enterpriseData/index.vue"
:[
"CTf4"
,
0
,
70
],
"./enterpriseData/loginDetail.vue"
:[
"kX6v"
,
0
,
9
],
"./errorPage/403.vue"
:[
"6XGN"
,
27
],
"./errorPage/404.vue"
:[
"AejC"
,
31
],
"./errorPage/500.vue"
:[
"FskK"
,
25
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
24
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
66
],
"./login/index.vue"
:[
"T+/8"
,
0
,
23
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
68
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
38
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
41
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
48
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
21
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
13
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
Q0Ca
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}},
formatTime
:
function
(
e
){
if
(
!
e
)
return
"00:00:00"
;
var
t
=
e
/
1
e3
,
a
=
Math
.
floor
(
t
/
60
/
60
/
24
);
return
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
<
10
?
"0"
+
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
):
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
)
+
":"
+
(
Math
.
floor
(
t
/
60
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
/
60
)
%
60
:
Math
.
floor
(
t
/
60
)
%
60
)
+
":"
+
(
Math
.
floor
(
t
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
)
%
60
:
Math
.
floor
(
t
)
%
60
)}}},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
webpackJsonp
([
87
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/enterpriseData"
,
name
:
"企业数据"
,
redirect
:
"enterpriseUseData"
,
component
:
h
()(
"enterpriseData"
,
"index"
),
children
:[{
path
:
"/enterpriseUseData"
,
name
:
"好办使用详情"
,
component
:
h
()(
"enterpriseData"
,
"enterpriseUseData"
)},{
path
:
"/activeDetail"
,
name
:
"激活人员明细"
,
component
:
h
()(
"enterpriseData"
,
"activeDetail"
)},{
path
:
"/loginDetail"
,
name
:
"登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"loginDetail"
)},{
path
:
"/areaLoginDetail"
,
name
:
"区域登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"areaLoginDetail"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/memberDetailSet"
,
name
:
"会员详情设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberDetailSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
C
=
a
.
n
(
x
),
T
=
a
(
"bOdI"
),
b
=
a
.
n
(
T
),
R
=
a
(
"SJI6"
),
M
=
a
.
n
(
R
);
u
.
a
.
use
(
M
.
a
);
var
A
=
new
M
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
L
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),
a
(
"Q0Ca"
)),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
U
=
a
(
"l9mu"
),
J
=
a
.
n
(
U
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
J
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
L
.
a
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
L
.
a
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
A
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
64
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
55
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
77
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
33
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
65
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
20
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
45
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
10
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
37
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
18
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
28
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
49
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
39
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
7
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
44
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
59
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
60
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
73
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
85
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
67
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
30
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
63
],
"./apps/customerApp/memberDetailSet.vue"
:[
"F1Rz"
,
0
,
43
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
56
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
75
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
71
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
8
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
14
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
62
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
76
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
47
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
72
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
26
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
81
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
78
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
12
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
11
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
42
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
79
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
69
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
36
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
50
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
35
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
74
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
52
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
58
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
57
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
40
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
82
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
16
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
34
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
46
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
51
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
32
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
83
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
53
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
17
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
6
],
"./business/index.vue"
:[
"jPcV"
,
0
,
84
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
80
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
29
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
61
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
15
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
54
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./enterpriseData/activeDetail.vue"
:[
"h9Ca"
,
0
,
22
],
"./enterpriseData/areaLoginDetail.vue"
:[
"TLd+"
,
0
,
19
],
"./enterpriseData/enterpriseUseData.vue"
:[
"i4c9"
,
0
,
5
],
"./enterpriseData/index.vue"
:[
"CTf4"
,
0
,
70
],
"./enterpriseData/loginDetail.vue"
:[
"kX6v"
,
0
,
9
],
"./errorPage/403.vue"
:[
"6XGN"
,
27
],
"./errorPage/404.vue"
:[
"AejC"
,
31
],
"./errorPage/500.vue"
:[
"FskK"
,
25
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
24
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
66
],
"./login/index.vue"
:[
"T+/8"
,
0
,
23
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
68
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
38
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
41
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
48
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
21
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
13
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
Q0Ca
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}},
formatTime
:
function
(
e
){
if
(
!
e
)
return
"00:00:00"
;
var
t
=
e
/
1
e3
,
a
=
Math
.
floor
(
t
/
60
/
60
/
24
);
return
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
<
10
?
"0"
+
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
):
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
)
+
":"
+
(
Math
.
floor
(
t
/
60
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
/
60
)
%
60
:
Math
.
floor
(
t
/
60
)
%
60
)
+
":"
+
(
Math
.
floor
(
t
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
)
%
60
:
Math
.
floor
(
t
)
%
60
)}}},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
4447d6d644d53dfce973
.js
→
dist/static/js/manifest.
671ca5c3662e3ae4919c
.js
View file @
880b0985
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
c
[
t
]
&&
u
.
push
(
c
[
t
][
0
]),
c
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
f
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
c
=
{
88
:
0
};
function
b
(
a
){
if
(
f
[
a
])
return
f
[
a
].
exports
;
var
c
=
f
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
c
.
exports
,
c
,
c
.
exports
,
b
),
c
.
l
=!
0
,
c
.
exports
}
b
.
e
=
function
(
e
){
var
a
=
c
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
f
=
new
Promise
(
function
(
f
,
b
){
a
=
c
[
e
]
=
[
f
,
b
]});
a
[
2
]
=
f
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"765150d21437c9212924"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"8b5a7a776d5388025833"
,
3
:
"1e3e367b0515b6639885"
,
4
:
"3141fd6c4e6f207ea2ac"
,
5
:
"f7ad326b7bff884d7fb2"
,
6
:
"5ee92f72dd41102d6f5e"
,
7
:
"facffc398c23923c8192"
,
8
:
"7af05b76eacb9f493905"
,
9
:
"963a2a13383e472eca38"
,
10
:
"9efa6e13afa9effbf550"
,
11
:
"8cd34604f8364f7ef2a1"
,
12
:
"9b520e25e2ce3972f449"
,
13
:
"0b6f9fa3dca5445bea41"
,
14
:
"48e54ee2a9b06727d19f"
,
15
:
"1a4794eae71e5676b82a"
,
16
:
"c823b839370adaef5fb7"
,
17
:
"a96f8631a7d98a408422"
,
18
:
"c438c2d212769f8a4db2"
,
19
:
"1f013034b987bc6725d9"
,
20
:
"3bbb37d232617a78f8f5"
,
21
:
"909d0c8e599a956fd7a7"
,
22
:
"5967c8aac0d8efec27bb"
,
23
:
"491faa03cecb9d035fc6"
,
24
:
"8c63bc2c5c38d0efdfab"
,
25
:
"7076feee8fb02a9fbd13"
,
26
:
"b5b7db9a0d380eb65514"
,
27
:
"98b07cae060277f91c6b"
,
28
:
"0a1e4e532e911fe8ee50"
,
29
:
"0bb81c4fabb8b086313b"
,
30
:
"e8acf4370a8d3f28a6aa"
,
31
:
"f15018c679d31a23a484"
,
32
:
"915737f4f806d2dc5ef0"
,
33
:
"d60beb8286a5273c8520"
,
34
:
"74dbee5301dc48a15627"
,
35
:
"cd7b2a7dae393ab5c205"
,
36
:
"e42295b1f10082eedd48"
,
37
:
"27cb05ed00a6f77774b4"
,
38
:
"6380ef21f1904f03f42b"
,
39
:
"b64160a2fdbfc78b53e4"
,
40
:
"58b97f413035bfcac73d"
,
41
:
"3bde66f2e298d3ad896f"
,
42
:
"b49cb3220f9199fe2f52"
,
43
:
"3dc244d19910d9c21a9f"
,
44
:
"a22bd4a80c711131d8cf"
,
45
:
"eba0691dbaf3680ac324"
,
46
:
"58c1c13888c5686231a4"
,
47
:
"70cc2a0b3655268985bd"
,
48
:
"534afe1a47d06e71d7b3"
,
49
:
"d1b418c9a1a90b748bd4"
,
50
:
"e20178299b2dc456b4d8"
,
51
:
"8d3bc732a698489ca3ae"
,
52
:
"f93af5da422d05d2774a"
,
53
:
"0f272faa90b7fec00e38"
,
54
:
"10ecc7ed2ff70a3e11be"
,
55
:
"6278791a036e758fa238"
,
56
:
"ac903e1db186704b98da"
,
57
:
"9f9fb6bfcac478732dad"
,
58
:
"7ca51a6189813a34c8e8"
,
59
:
"94cef91aa20f1ed4e307"
,
60
:
"af4a6c684004f80a7ee0"
,
61
:
"2e48b9d3256cb7f54155"
,
62
:
"306973a81895e421b5f5"
,
63
:
"e5d1cfb8dee067e09550"
,
64
:
"4285972e7bce618c7563"
,
65
:
"bcb2c6c313aed039c66b"
,
66
:
"b5bf727065a1ed5946a8"
,
67
:
"1fe24764bbf2648873df"
,
68
:
"5c88c8205192e47c5440"
,
69
:
"4df5e7e8568b818a23af"
,
70
:
"9659ef903577b569add6"
,
71
:
"7b248fa9ae5be34661ed"
,
72
:
"2a406ab7e8647fc9e8f6"
,
73
:
"22ffedec58d987173423"
,
74
:
"ab3c100dfd2009311e7f"
,
75
:
"251a7f0a164aea4bd0a9"
,
76
:
"04d98376c7148163d09b"
,
77
:
"9568405fcd7f68bbbed2"
,
78
:
"17e2c96b0a1584aa23fb"
,
79
:
"1813052e3f610897c373"
,
80
:
"062ff7e7240f79737a4c"
,
81
:
"68e4dc61e8a53c908430"
,
82
:
"80e1bea9e7c52a0010e2"
,
83
:
"1f973e5fb06a7b6aafb6"
,
84
:
"e08cae32b8d07ae3eb93"
,
85
:
"cb39869b0ab00851c322"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
c
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
f
},
b
.
m
=
e
,
b
.
c
=
f
,
b
.
d
=
function
(
e
,
a
,
f
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
b
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
a
,
"a"
,
a
),
a
},
b
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
c
[
t
]
&&
u
.
push
(
c
[
t
][
0
]),
c
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
f
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
c
=
{
88
:
0
};
function
b
(
a
){
if
(
f
[
a
])
return
f
[
a
].
exports
;
var
c
=
f
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
c
.
exports
,
c
,
c
.
exports
,
b
),
c
.
l
=!
0
,
c
.
exports
}
b
.
e
=
function
(
e
){
var
a
=
c
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
f
=
new
Promise
(
function
(
f
,
b
){
a
=
c
[
e
]
=
[
f
,
b
]});
a
[
2
]
=
f
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"765150d21437c9212924"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"8b5a7a776d5388025833"
,
3
:
"1e3e367b0515b6639885"
,
4
:
"3141fd6c4e6f207ea2ac"
,
5
:
"f7ad326b7bff884d7fb2"
,
6
:
"5ee92f72dd41102d6f5e"
,
7
:
"facffc398c23923c8192"
,
8
:
"7af05b76eacb9f493905"
,
9
:
"963a2a13383e472eca38"
,
10
:
"e304fd17b7015bf7e94d"
,
11
:
"675631224d24bc64b905"
,
12
:
"78ccd34a95a7c69f6875"
,
13
:
"0b6f9fa3dca5445bea41"
,
14
:
"48e54ee2a9b06727d19f"
,
15
:
"1a4794eae71e5676b82a"
,
16
:
"c823b839370adaef5fb7"
,
17
:
"a96f8631a7d98a408422"
,
18
:
"c438c2d212769f8a4db2"
,
19
:
"1f013034b987bc6725d9"
,
20
:
"3bbb37d232617a78f8f5"
,
21
:
"909d0c8e599a956fd7a7"
,
22
:
"5967c8aac0d8efec27bb"
,
23
:
"491faa03cecb9d035fc6"
,
24
:
"8c63bc2c5c38d0efdfab"
,
25
:
"7076feee8fb02a9fbd13"
,
26
:
"b5b7db9a0d380eb65514"
,
27
:
"98b07cae060277f91c6b"
,
28
:
"0a1e4e532e911fe8ee50"
,
29
:
"0bb81c4fabb8b086313b"
,
30
:
"e8acf4370a8d3f28a6aa"
,
31
:
"f15018c679d31a23a484"
,
32
:
"915737f4f806d2dc5ef0"
,
33
:
"d60beb8286a5273c8520"
,
34
:
"74dbee5301dc48a15627"
,
35
:
"cd7b2a7dae393ab5c205"
,
36
:
"e42295b1f10082eedd48"
,
37
:
"27cb05ed00a6f77774b4"
,
38
:
"6380ef21f1904f03f42b"
,
39
:
"b64160a2fdbfc78b53e4"
,
40
:
"58b97f413035bfcac73d"
,
41
:
"3bde66f2e298d3ad896f"
,
42
:
"b49cb3220f9199fe2f52"
,
43
:
"3dc244d19910d9c21a9f"
,
44
:
"a22bd4a80c711131d8cf"
,
45
:
"eba0691dbaf3680ac324"
,
46
:
"58c1c13888c5686231a4"
,
47
:
"70cc2a0b3655268985bd"
,
48
:
"534afe1a47d06e71d7b3"
,
49
:
"d1b418c9a1a90b748bd4"
,
50
:
"e20178299b2dc456b4d8"
,
51
:
"8d3bc732a698489ca3ae"
,
52
:
"f93af5da422d05d2774a"
,
53
:
"0f272faa90b7fec00e38"
,
54
:
"10ecc7ed2ff70a3e11be"
,
55
:
"6278791a036e758fa238"
,
56
:
"ac903e1db186704b98da"
,
57
:
"9f9fb6bfcac478732dad"
,
58
:
"7ca51a6189813a34c8e8"
,
59
:
"94cef91aa20f1ed4e307"
,
60
:
"af4a6c684004f80a7ee0"
,
61
:
"2e48b9d3256cb7f54155"
,
62
:
"306973a81895e421b5f5"
,
63
:
"e5d1cfb8dee067e09550"
,
64
:
"4285972e7bce618c7563"
,
65
:
"bcb2c6c313aed039c66b"
,
66
:
"b5bf727065a1ed5946a8"
,
67
:
"1fe24764bbf2648873df"
,
68
:
"5c88c8205192e47c5440"
,
69
:
"4df5e7e8568b818a23af"
,
70
:
"9659ef903577b569add6"
,
71
:
"7b248fa9ae5be34661ed"
,
72
:
"2a406ab7e8647fc9e8f6"
,
73
:
"22ffedec58d987173423"
,
74
:
"ab3c100dfd2009311e7f"
,
75
:
"251a7f0a164aea4bd0a9"
,
76
:
"04d98376c7148163d09b"
,
77
:
"9568405fcd7f68bbbed2"
,
78
:
"17e2c96b0a1584aa23fb"
,
79
:
"1813052e3f610897c373"
,
80
:
"062ff7e7240f79737a4c"
,
81
:
"68e4dc61e8a53c908430"
,
82
:
"80e1bea9e7c52a0010e2"
,
83
:
"1f973e5fb06a7b6aafb6"
,
84
:
"e08cae32b8d07ae3eb93"
,
85
:
"cb39869b0ab00851c322"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
c
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
f
},
b
.
m
=
e
,
b
.
c
=
f
,
b
.
d
=
function
(
e
,
a
,
f
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
b
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
a
,
"a"
,
a
),
a
},
b
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/apps/card/newCard.vue
View file @
880b0985
...
@@ -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-08-20 11:
05:25
* @LastEditTime: 2020-08-20 11:
11:18
-->
-->
<
template
>
<
template
>
...
@@ -52,6 +52,9 @@
...
@@ -52,6 +52,9 @@
<div
class=
"el-form-item__content"
style=
"margin-left: 120px;"
>
<div
class=
"el-form-item__content"
style=
"margin-left: 120px;"
>
<el-radio
v-model=
"formData.sendType"
label=
"0"
>
无限制
</el-radio>
<el-radio
v-model=
"formData.sendType"
label=
"0"
>
无限制
</el-radio>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendType"
label=
"1"
>
限制总数
</el-radio><el-input-number
v-if=
"formData.sendType == 1"
class=
"m-l-10"
v-model=
"formData.totalSendTimes"
controls-position=
"right"
:precision=
"0"
step-strictly
:step=
"1"
:min=
"1"
:max=
"999999999"
></el-input-number>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendType"
label=
"1"
>
限制总数
</el-radio><el-input-number
v-if=
"formData.sendType == 1"
class=
"m-l-10"
v-model=
"formData.totalSendTimes"
controls-position=
"right"
:precision=
"0"
step-strictly
:step=
"1"
:min=
"1"
:max=
"999999999"
></el-input-number>
<div
v-if=
"formData.sendType == 1 && !formData.totalSendTimes"
class=
"el-form-item__error"
>
请选择券发放总数
</div>
</div>
</div>
</div>
</div>
<!--
<el-form-item
label=
"转赠功能"
prop=
""
>
<!--
<el-form-item
label=
"转赠功能"
prop=
""
>
...
...
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