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
f96be526
Commit
f96be526
authored
Aug 20, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改卡券
parent
880b0985
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
12 deletions
+7
-12
index.html
dist/index.html
+2
-2
app.464bfa72c321b9baef7855f40a75042a.css
dist/static/css/app.464bfa72c321b9baef7855f40a75042a.css
+0
-0
10.4f5224ee5b9c2452e83a.js
dist/static/js/10.4f5224ee5b9c2452e83a.js
+2
-2
manifest.1cc90c4ac9dba314d4bf.js
dist/static/js/manifest.1cc90c4ac9dba314d4bf.js
+2
-2
newCard.vue
src/views/apps/card/newCard.vue
+1
-6
No files found.
dist/index.html
View file @
f96be526
<!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>
<!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.464bfa72c321b9baef7855f40a75042a.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.1cc90c4ac9dba314d4bf.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.
cf9bc48f92805985c16c561c33c9301d
.css
→
dist/static/css/app.
464bfa72c321b9baef7855f40a75042a
.css
View file @
f96be526
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/10.
e304fd17b7015bf7e94d
.js
→
dist/static/js/10.
4f5224ee5b9c2452e83a
.js
View file @
f96be526
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
){}});
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
})))},
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
(
"BM8j"
)},
"data-v-88cb0e62"
,
null
);
t
.
default
=
C
.
exports
},
AlZ0
:
function
(
e
,
t
){},
BM8j
:
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
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
671ca5c3662e3ae4919c
.js
→
dist/static/js/manifest.
1cc90c4ac9dba314d4bf
.js
View file @
f96be526
!
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
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
88
:
0
};
function
b
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
b
){
a
=
f
[
e
]
=
[
c
,
b
]});
a
[
2
]
=
c
;
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
:
"4f5224ee5b9c2452e83a"
,
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
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
a
,
c
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
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 @
f96be526
...
@@ -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:1
1:18
* @LastEditTime: 2020-08-20 11:1
3:50
-->
-->
<
template
>
<
template
>
...
@@ -214,11 +214,6 @@ export default {
...
@@ -214,11 +214,6 @@ export default {
return
false
;
return
false
;
}
}
if
(
that
.
formData
.
sendType
==
'1'
&&
!
that
.
formData
.
totalSendTimes
)
{
if
(
that
.
formData
.
sendType
==
'1'
&&
!
that
.
formData
.
totalSendTimes
)
{
that
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
return
false
;
}
});
return
false
;
return
false
;
}
}
/* if (that.formData.receiveType == '1' && !that.formData.totalReceiveTimes) {
/* if (that.formData.receiveType == '1' && !that.formData.totalReceiveTimes) {
...
...
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