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
2e00b98f
Commit
2e00b98f
authored
Dec 15, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改卡券
parent
cabad270
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
index.html
dist/index.html
+2
-2
12.a5f9a2b161799c2c5bb9.js
dist/static/js/12.a5f9a2b161799c2c5bb9.js
+2
-0
12.bdd66da18ed7226ccbe8.js
dist/static/js/12.bdd66da18ed7226ccbe8.js
+0
-2
manifest.4218f26fcbd4351151f5.js
dist/static/js/manifest.4218f26fcbd4351151f5.js
+2
-2
select-card.vue
src/components/app/card/select-card.vue
+1
-1
No files found.
dist/index.html
View file @
2e00b98f
<!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.09c79c9251545158553608412375c6c9.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.ce0fc2bb88c5c192dccb.js
></script><script
type=
text/javascript
src=
./static/js/vendor.eba504b5417c438bb1ca.js
></script><script
type=
text/javascript
src=
./static/js/app.0b462e9f90e379f91bd2.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.09c79c9251545158553608412375c6c9.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.4218f26fcbd4351151f5.js
></script><script
type=
text/javascript
src=
./static/js/vendor.eba504b5417c438bb1ca.js
></script><script
type=
text/javascript
src=
./static/js/app.0b462e9f90e379f91bd2.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/12.a5f9a2b161799c2c5bb9.js
0 → 100644
View file @
2e00b98f
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
:
"请输入卡券名称"
,
maxlength
:
"50"
,
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
:{
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
cardName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
""
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
putEffectDateString
||
"--"
)
+
"
\
n "
)]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"span"
,{
staticStyle
:{
width
:
"69px"
,
display
:
"inline-block"
,
"line-height"
:
"18px"
}},[
e
.
_v
(
"卡券模板投放期限"
)])])],
2
),
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
.
effectDateString
||
"--"
)
+
"
\
n "
)]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"span"
,{
staticStyle
:{
width
:
"69px"
,
display
:
"inline-block"
,
"line-height"
:
"18px"
}},[
e
.
_v
(
"用户使用有效期"
)])])],
2
),
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
(
"RUVm"
)},
"data-v-33d29a88"
,
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
(
"M5nA"
)},
"data-v-65c7b2aa"
,
null
).
exports
,
f
=
a
(
"3E4D"
),
v
=
{
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
})))},
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
||
"0"
,
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
);
100013
==
a
.
errorCode
&&
(
e
.
formData
.
coupCardId
=
""
,
e
.
addTag
=!
0
),
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
}},
b
=
{
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 p-l-8"
},[
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"
,
staticStyle
:{
"margin-left"
:
"38px"
},
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"
,
staticStyle
:{
"margin-left"
:
"38px"
},
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
_
=
a
(
"VU/8"
)(
v
,
b
,
!
1
,
function
(
e
){
a
(
"7CVT"
)},
"data-v-5d58bf60"
,
null
);
t
.
default
=
_
.
exports
},
"7CVT"
:
function
(
e
,
t
){},
M5nA
:
function
(
e
,
t
){},
RUVm
:
function
(
e
,
t
){},
SUXL
:
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
:
"请输入门店名称"
,
maxlength
:
"50"
,
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
(
"SUXL"
)},
"data-v-7b2a27e4"
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
dist/static/js/12.bdd66da18ed7226ccbe8.js
deleted
100644 → 0
View file @
cabad270
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
:
"请输入卡券名称"
,
maxlength
:
"50"
,
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
:{
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
cardName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
""
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
||
"--"
)
+
"
\
n "
)]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"span"
,{
staticStyle
:{
width
:
"69px"
,
display
:
"inline-block"
,
"line-height"
:
"18px"
}},[
e
.
_v
(
"卡券模板投放期限"
)])])],
2
),
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
.
effectDateString
||
"--"
)
+
"
\
n "
)]}}])},[
a
(
"template"
,{
slot
:
"header"
},[
a
(
"span"
,{
staticStyle
:{
width
:
"69px"
,
display
:
"inline-block"
,
"line-height"
:
"18px"
}},[
e
.
_v
(
"用户使用有效期"
)])])],
2
),
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
(
"RUVm"
)},
"data-v-33d29a88"
,
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
(
"M5nA"
)},
"data-v-65c7b2aa"
,
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
})))},
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
||
"0"
,
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
);
100013
==
a
.
errorCode
&&
(
e
.
formData
.
coupCardId
=
""
,
e
.
addTag
=!
0
),
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 p-l-8"
},[
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"
,
staticStyle
:{
"margin-left"
:
"38px"
},
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"
,
staticStyle
:{
"margin-left"
:
"38px"
},
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
_
=
a
(
"VU/8"
)(
b
,
v
,
!
1
,
function
(
e
){
a
(
"7CVT"
)},
"data-v-5d58bf60"
,
null
);
t
.
default
=
_
.
exports
},
"7CVT"
:
function
(
e
,
t
){},
M5nA
:
function
(
e
,
t
){},
RUVm
:
function
(
e
,
t
){},
SUXL
:
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
:
"请输入门店名称"
,
maxlength
:
"50"
,
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
(
"SUXL"
)},
"data-v-7b2a27e4"
,
null
);
t
.
a
=
d
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
ce0fc2bb88c5c192dccb
.js
→
dist/static/js/manifest.
4218f26fcbd4351151f5
.js
View file @
2e00b98f
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
d
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
d
.
length
;
i
++
)
t
=
d
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
d
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
d
=
{},
a
=
{
90
:
0
};
function
f
(
c
){
if
(
d
[
c
])
return
d
[
c
].
exports
;
var
a
=
d
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
f
),
a
.
l
=!
0
,
a
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
d
=
new
Promise
(
function
(
d
,
f
){
c
=
a
[
e
]
=
[
d
,
f
]});
c
[
2
]
=
d
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ba129d3b4f512eeaa1b6"
,
1
:
"2fe1fea28b338647500e"
,
2
:
"1ee388c2d99a13efc1ce"
,
3
:
"bdfd1dea1968b59c4721"
,
4
:
"d9188c5ef11d148a9172"
,
5
:
"d3f88d7a7ab12a0c3ee3"
,
6
:
"3014e775749d7f5b55f5"
,
7
:
"c7a7f149b9bda67ba206"
,
8
:
"44ef777174215bae215b"
,
9
:
"a62fb8970e3ef30127ce"
,
10
:
"546b16617e8d45a97acd"
,
11
:
"fce5fcc498c4ce97d798"
,
12
:
"bdd66da18ed7226ccbe8"
,
13
:
"acdad5e4c434690dabb4"
,
14
:
"0515ff16e22ad1985252"
,
15
:
"5145c587ec0a653fd73e"
,
16
:
"7400088166b56885fd23"
,
17
:
"df7d17412a0cb4c4d42f"
,
18
:
"58b1bcc5d40ec97c9ccd"
,
19
:
"f11c386818436323fde4"
,
20
:
"e3adbfd3e776cf2e8f9f"
,
21
:
"d78352462bc271cf6c69"
,
22
:
"b775cd5a3407a1f4c844"
,
23
:
"ed8ffa7851cf7b93d55d"
,
24
:
"76079e07f55c773e8ebe"
,
25
:
"755d295db713955f70d0"
,
26
:
"033c6e723fba9da08a93"
,
27
:
"8ae3986881568fb833a3"
,
28
:
"f1937bdc9b58f02047ba"
,
29
:
"9fc187d28f0558e31cb3"
,
30
:
"a383e23152f401e14903"
,
31
:
"a81d5594ab762bad1101"
,
32
:
"18695c9f2b46cc400c85"
,
33
:
"0a4442de53039502010e"
,
34
:
"e1c92d68f0bd271d5f80"
,
35
:
"ea6b99a3057b0b403906"
,
36
:
"47f03b8472e95e8be943"
,
37
:
"e3388332c83433feb21d"
,
38
:
"0542c39c04f998333558"
,
39
:
"2bb602426d304fcd7094"
,
40
:
"db819bd27dc38965bea1"
,
41
:
"3cb068afd8ac14727454"
,
42
:
"1353238a90cf41857acd"
,
43
:
"d3b1480cc3da06f0e5ad"
,
44
:
"c3c053883f6e1a8bc5b5"
,
45
:
"3e3c2814f2f4dd046509"
,
46
:
"9fdc2afb9afcb2febfff"
,
47
:
"f285e67e8e1c64e62f98"
,
48
:
"86d8f05f428187b8cbb5"
,
49
:
"5fe4d82dc60e13b63747"
,
50
:
"47021614c317a7887445"
,
51
:
"16a6ad4cd62038a8e7f5"
,
52
:
"2d7171cb51a511e3c9d7"
,
53
:
"ca67cc9462193af0a5b0"
,
54
:
"ae3dde631a8a551ebb99"
,
55
:
"3e1030263a334927802b"
,
56
:
"19d7d91cdee929782a7b"
,
57
:
"a2c026b3f95f859b9e14"
,
58
:
"f099b7cf189020e78d5c"
,
59
:
"fbdf692d4d60874dbc72"
,
60
:
"f4ccd1a957338c1fac1d"
,
61
:
"bd012bc42649c4354ab6"
,
62
:
"9d2c7a0219c01d18680c"
,
63
:
"43127785681a412ff10e"
,
64
:
"ddadfb520817e737b7ba"
,
65
:
"8cc800e31738b5e6ec04"
,
66
:
"d96b50c60d1318b9cd5e"
,
67
:
"3217c7fb038b3607490e"
,
68
:
"10019405023074d8884d"
,
69
:
"e8bb4a2dc30748f8c86f"
,
70
:
"be0ace71c4ab70921bf2"
,
71
:
"3b76393d37e218db1edc"
,
72
:
"87361d87caa3c4b6c414"
,
73
:
"a9cb9070eb6f88b67de0"
,
74
:
"ed4697a92f8f1214de4d"
,
75
:
"edd89ba2b2d753c494cc"
,
76
:
"968e9276b0a38016d558"
,
77
:
"16af377178647ebac827"
,
78
:
"483fad30b165a7d4b355"
,
79
:
"510a6d59b3808c0ba62c"
,
80
:
"080b532cea2b17b0ede7"
,
81
:
"c4163ef5fac02ab01e3e"
,
82
:
"fcbb6ef04a6f77624db4"
,
83
:
"32b1d7c9ef64aff93dd3"
,
84
:
"7828f9a76760d609f2a2"
,
85
:
"af97159587cda007ae6c"
,
86
:
"31c91be5699d4c6698ad"
,
87
:
"3cdfa496ad47fb7e6ffd"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
d
},
f
.
m
=
e
,
f
.
c
=
d
,
f
.
d
=
function
(
e
,
c
,
d
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
d
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
d
=
{
90
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
d
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ba129d3b4f512eeaa1b6"
,
1
:
"2fe1fea28b338647500e"
,
2
:
"1ee388c2d99a13efc1ce"
,
3
:
"bdfd1dea1968b59c4721"
,
4
:
"d9188c5ef11d148a9172"
,
5
:
"d3f88d7a7ab12a0c3ee3"
,
6
:
"3014e775749d7f5b55f5"
,
7
:
"c7a7f149b9bda67ba206"
,
8
:
"44ef777174215bae215b"
,
9
:
"a62fb8970e3ef30127ce"
,
10
:
"546b16617e8d45a97acd"
,
11
:
"fce5fcc498c4ce97d798"
,
12
:
"a5f9a2b161799c2c5bb9"
,
13
:
"acdad5e4c434690dabb4"
,
14
:
"0515ff16e22ad1985252"
,
15
:
"5145c587ec0a653fd73e"
,
16
:
"7400088166b56885fd23"
,
17
:
"df7d17412a0cb4c4d42f"
,
18
:
"58b1bcc5d40ec97c9ccd"
,
19
:
"f11c386818436323fde4"
,
20
:
"e3adbfd3e776cf2e8f9f"
,
21
:
"d78352462bc271cf6c69"
,
22
:
"b775cd5a3407a1f4c844"
,
23
:
"ed8ffa7851cf7b93d55d"
,
24
:
"76079e07f55c773e8ebe"
,
25
:
"755d295db713955f70d0"
,
26
:
"033c6e723fba9da08a93"
,
27
:
"8ae3986881568fb833a3"
,
28
:
"f1937bdc9b58f02047ba"
,
29
:
"9fc187d28f0558e31cb3"
,
30
:
"a383e23152f401e14903"
,
31
:
"a81d5594ab762bad1101"
,
32
:
"18695c9f2b46cc400c85"
,
33
:
"0a4442de53039502010e"
,
34
:
"e1c92d68f0bd271d5f80"
,
35
:
"ea6b99a3057b0b403906"
,
36
:
"47f03b8472e95e8be943"
,
37
:
"e3388332c83433feb21d"
,
38
:
"0542c39c04f998333558"
,
39
:
"2bb602426d304fcd7094"
,
40
:
"db819bd27dc38965bea1"
,
41
:
"3cb068afd8ac14727454"
,
42
:
"1353238a90cf41857acd"
,
43
:
"d3b1480cc3da06f0e5ad"
,
44
:
"c3c053883f6e1a8bc5b5"
,
45
:
"3e3c2814f2f4dd046509"
,
46
:
"9fdc2afb9afcb2febfff"
,
47
:
"f285e67e8e1c64e62f98"
,
48
:
"86d8f05f428187b8cbb5"
,
49
:
"5fe4d82dc60e13b63747"
,
50
:
"47021614c317a7887445"
,
51
:
"16a6ad4cd62038a8e7f5"
,
52
:
"2d7171cb51a511e3c9d7"
,
53
:
"ca67cc9462193af0a5b0"
,
54
:
"ae3dde631a8a551ebb99"
,
55
:
"3e1030263a334927802b"
,
56
:
"19d7d91cdee929782a7b"
,
57
:
"a2c026b3f95f859b9e14"
,
58
:
"f099b7cf189020e78d5c"
,
59
:
"fbdf692d4d60874dbc72"
,
60
:
"f4ccd1a957338c1fac1d"
,
61
:
"bd012bc42649c4354ab6"
,
62
:
"9d2c7a0219c01d18680c"
,
63
:
"43127785681a412ff10e"
,
64
:
"ddadfb520817e737b7ba"
,
65
:
"8cc800e31738b5e6ec04"
,
66
:
"d96b50c60d1318b9cd5e"
,
67
:
"3217c7fb038b3607490e"
,
68
:
"10019405023074d8884d"
,
69
:
"e8bb4a2dc30748f8c86f"
,
70
:
"be0ace71c4ab70921bf2"
,
71
:
"3b76393d37e218db1edc"
,
72
:
"87361d87caa3c4b6c414"
,
73
:
"a9cb9070eb6f88b67de0"
,
74
:
"ed4697a92f8f1214de4d"
,
75
:
"edd89ba2b2d753c494cc"
,
76
:
"968e9276b0a38016d558"
,
77
:
"16af377178647ebac827"
,
78
:
"483fad30b165a7d4b355"
,
79
:
"510a6d59b3808c0ba62c"
,
80
:
"080b532cea2b17b0ede7"
,
81
:
"c4163ef5fac02ab01e3e"
,
82
:
"fcbb6ef04a6f77624db4"
,
83
:
"32b1d7c9ef64aff93dd3"
,
84
:
"7828f9a76760d609f2a2"
,
85
:
"af97159587cda007ae6c"
,
86
:
"31c91be5699d4c6698ad"
,
87
:
"3cdfa496ad47fb7e6ffd"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/app/card/select-card.vue
View file @
2e00b98f
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<span
style=
"width: 69px; display: inline-block;line-height: 18px;"
>
卡券模板投放期限
</span>
<span
style=
"width: 69px; display: inline-block;line-height: 18px;"
>
卡券模板投放期限
</span>
</
template
>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
subName
||
'--'
}}
{{
scope
.
row
.
putEffectDateString
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
""
show-overflow-tooltip
>
<el-table-column
prop=
""
label=
""
show-overflow-tooltip
>
...
...
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