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
5518bb17
Commit
5518bb17
authored
Apr 15, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改卡券‘
parent
6c35c365
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
69 deletions
+11
-69
index.html
dist/index.html
+2
-2
app.1b598af1a0cd5bca04a66403956e50ae.css
dist/static/css/app.1b598af1a0cd5bca04a66403956e50ae.css
+0
-0
20.1ff87ac578a8c1455a10.js
dist/static/js/20.1ff87ac578a8c1455a10.js
+0
-2
20.6b59d2136e6a9e97fa0a.js
dist/static/js/20.6b59d2136e6a9e97fa0a.js
+2
-0
manifest.ff6d01d940a33b9452d6.js
dist/static/js/manifest.ff6d01d940a33b9452d6.js
+2
-2
newCard.vue
src/views/apps/card/newCard.vue
+5
-63
No files found.
dist/index.html
View file @
5518bb17
<!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.4c22ee047bb8ef41cff2c088febd136e.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.d480a441f4934aaa7a7e.js
></script><script
type=
text/javascript
src=
./static/js/vendor.014a23eec35e9d02ede3.js
></script><script
type=
text/javascript
src=
./static/js/app.cab60607f14f05d6275e.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.1b598af1a0cd5bca04a66403956e50ae.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.ff6d01d940a33b9452d6.js
></script><script
type=
text/javascript
src=
./static/js/vendor.014a23eec35e9d02ede3.js
></script><script
type=
text/javascript
src=
./static/js/app.cab60607f14f05d6275e.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
4c22ee047bb8ef41cff2c088febd136
e.css
→
dist/static/css/app.
1b598af1a0cd5bca04a66403956e50a
e.css
View file @
5518bb17
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/20.1ff87ac578a8c1455a10.js
deleted
100644 → 0
View file @
6c35c365
webpackJsonp
([
20
],{
"7/Zw"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"Ggl+"
),
o
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
n
=
a
(
"PI0u"
),
i
=
{
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
(
n
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
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
(
s
.
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
;
o
.
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
()}},
l
=
{
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
(
"el-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
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"F0H0"
)},
"data-v-3f3f56a1"
,
null
).
exports
,
d
=
a
(
"3E4D"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
c
,
gicSelectGroup
:
r
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCardId
:
""
,
selectCoupCard
:{},
selectList
:
""
,
appScene
:
2
,
defaultStoreList
:[],
selectType
:
"store"
,
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
groupTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
formData
:{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
t
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
e
.
formData
.
selectList
.
length
?
void
r
():
r
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
t
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
e
.
formData
.
totalSendTimes
?
void
r
():
r
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
}},
methods
:{
checkGroupIds
:
function
(
e
){
console
.
log
(
e
),
this
.
formData
.
selectList
=
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
},
submitForm
:
Object
(
n
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
!
(
"1"
==
a
.
formData
.
sendType
&&!
a
.
formData
.
totalSendTimes
)
&&
(
!
(
"1"
==
a
.
formData
.
receiveType
&&!
a
.
formData
.
totalReceiveTimes
)
&&
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)})))},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
formData
.
id
,
coupCardId
:
t
.
formData
.
coupCardId
,
sendRange
:
t
.
formData
.
sendRange
,
selectList
:
1
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
groupId
||
e
.
id
}).
join
(
","
):
2
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeId
||
e
.
id
}).
join
(
","
):
""
,
eachSendTimes
:
t
.
formData
.
eachSendTimes
,
sendType
:
t
.
formData
.
sendType
,
totalSendTimes
:
t
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
t
.
brandId
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
s
.
d
)(
t
.
$route
.
query
.
coupCardId
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
d
.
a
.
showmsg
(
t
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
e
?(
t
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
t
.
tableData
.
forEach
(
function
(
e
){
e
.
coupCardId
==
t
.
selectCoupCardId
&&
(
e
.
selected
=
1
)}),
t
.
$nextTick
(
function
(){
t
.
selectCoupCardId
=
""
})):
t
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
t
.
$route
.
query
.
activeTab
+
"&appIcon="
+
t
.
$route
.
query
.
appIcon
)),
o
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
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
=
[]},
showDialogLayer
:
function
(
e
,
t
){
this
.
selectType
=
e
,
this
.
defaultStoreList
=
t
,
"store"
==
e
?
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
,
openNextBool
:
!
0
}:
this
.
groupTreeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
1
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
formData
.
selectList
=
e
,
this
.
defaultStoreList
=
e
},
delDepart
:
function
(
e
,
t
,
a
){
t
.
splice
(
e
,
1
)},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
coupCardId
:
e
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
s
.
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
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
}),
e
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
e
.
defaultStoreList
=
0
!=
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
:[],
e
.
selectCoupCardId
=
a
.
result
.
detail
.
coupCardId
,
!
1
;
o
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
)},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
$route
.
query
.
coupCardId
&&
this
.
getCardData
()}},
p
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"选择卡券"
,
prop
:
"coupCardId"
}},[
e
.
formData
.
coupCardId
?
e
.
_e
():
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
(
" "
),
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
):
e
.
_e
()]),
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"
,
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"
,
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
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
formData
.
selectList
)}}},[
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
e
.
_l
(
e
.
formData
.
selectList
,
function
(
t
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
r
,
e
.
formData
.
selectList
)}}})])]})],
2
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
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"
,
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"
,
min
:
1
},
model
:{
value
:
e
.
formData
.
totalSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"totalSendTimes"
,
t
)},
expression
:
"formData.totalSendTimes"
}}):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
coupCardId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
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
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
e
){
a
(
"LVNv"
)},
"data-v-218da802"
,
null
);
t
.
default
=
m
.
exports
},
F0H0
:
function
(
e
,
t
){},
LVNv
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/20.6b59d2136e6a9e97fa0a.js
0 → 100644
View file @
5518bb17
webpackJsonp
([
20
],{
"7/Zw"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"Ggl+"
),
o
=
a
(
"Ch4/"
),
s
=
a
(
"P9l9"
),
n
=
a
(
"PI0u"
),
l
=
{
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
(
t
){
this
.
$emit
(
"closeCard"
)},
toConfirm
:
function
(){
var
t
=
this
,
e
=
{};
t
.
tableData
.
forEach
(
function
(
a
){
a
.
coupCardId
==
t
.
selectCoupCardId
&&
(
e
=
a
)}),
t
.
$emit
(
"returnId"
,
t
.
selectCoupCardId
,
e
)},
toCancel
:
function
(){
this
.
$emit
(
"closeCard"
)},
toInput
:
Object
(
n
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
t
){
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
getTableList
:
function
(
t
){
var
e
=
this
,
a
=
{
cardName
:
e
.
searchInput
||
""
,
pageNum
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
s
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-select-card-page"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
list
||
[],
e
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
o
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
this
.
getTableList
()},
coupCardId
:
function
(
t
,
e
){
t
&&
(
this
.
selectCoupCardId
=
t
)}},
mounted
:
function
(){
this
.
selectCoupCardId
=
this
.
coupCardId
,
this
.
brandId
&&
this
.
getTableList
()}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"卡券选择"
,
visible
:
t
.
dialogVisible
,
width
:
"994px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{
staticClass
:
"search-div"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入卡券名称"
,
clearable
:
""
},
on
:{
clear
:
t
.
clearInput
},
nativeOn
:{
keyup
:
function
(
e
){
return
a
=
e
,
t
.
toInput
(
a
,
t
.
searchInput
);
var
a
}},
model
:{
value
:
t
.
searchInput
,
callback
:
function
(
e
){
t
.
searchInput
=
e
},
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"
},[
t
.
_v
(
"仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"
+
t
.
_s
(
t
.
total
)
+
"张"
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content boder-box m-t-20"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"hide-ellipsis"
,
label
:
""
,
width
:
"50"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-radio"
,{
attrs
:{
disabled
:
1
==
e
.
row
.
selected
,
label
:
e
.
row
.
coupCardId
},
model
:{
value
:
t
.
selectCoupCardId
,
callback
:
function
(
e
){
t
.
selectCoupCardId
=
e
},
expression
:
"selectCoupCardId"
}},[
t
.
_v
(
t
.
_s
(
""
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardName"
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
subName
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"effectDateString"
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardLimit"
,
label
:
"领取限制"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeMode"
,
label
:
"适用门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
0
==
e
.
row
.
storeMode
?
"所有门店"
:
1
==
e
.
row
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"couponStock"
,
label
:
"库存"
,
"show-overflow-tooltip"
:
""
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"getedQuantity"
,
label
:
"领取次数"
,
"show-overflow-tooltip"
:
""
}})],
1
),
t
.
_v
(
" "
),
0
!=
t
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
t
.
currentPage
,
"page-size"
:
t
.
pageSize
,
layout
:
" prev, pager, next"
,
total
:
t
.
total
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer m-b-20"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
toConfirm
}},[
t
.
_v
(
"确认"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
l
,
i
,
!
1
,
function
(
t
){
a
(
"F0H0"
)},
"data-v-3f3f56a1"
,
null
).
exports
,
d
=
a
(
"3E4D"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
c
,
gicSelectGroup
:
r
.
a
},
data
:
function
(){
var
t
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
t
.
formData
.
selectList
.
length
?
void
r
():
r
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
e
,
a
,
r
){
return
""
==
a
?
r
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
t
.
formData
.
totalSendTimes
?
void
r
():
r
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
}},
methods
:{
checkGroupIds
:
function
(
t
){
console
.
log
(
t
),
this
.
formData
.
selectList
=
t
},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
t
,
e
){
this
.
formData
.
coupCardId
=
t
,
this
.
selectCoupCard
=
e
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
n
.
a
)(
function
(
t
,
e
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
!
(
"1"
==
a
.
formData
.
sendType
&&!
a
.
formData
.
totalSendTimes
)
&&
(
!
(
"1"
==
a
.
formData
.
receiveType
&&!
a
.
formData
.
totalReceiveTimes
)
&&
void
a
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
a
.
postSaveCard
(
e
)})))},
300
),
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
{
id
:
e
.
formData
.
id
,
coupCardId
:
e
.
formData
.
coupCardId
,
sendRange
:
e
.
formData
.
sendRange
,
selectList
:
1
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
):
2
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
t
){
return
t
.
storeId
}).
join
(
","
):
""
,
eachSendTimes
:
e
.
formData
.
eachSendTimes
,
sendType
:
e
.
formData
.
sendType
,
totalSendTimes
:
e
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
e
.
brandId
,
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
s
.
d
)(
e
.
$route
.
query
.
coupCardId
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
d
.
a
.
showmsg
(
e
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
t
?(
e
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
e
.
selectCoupCard
=
{}):
e
.
$router
.
push
(
"/cardList"
)),
o
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toReturn
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
t
.
$route
.
query
.
activeTab
+
"&appIcon="
+
t
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeRange
:
function
(
t
){
this
.
formData
.
selectList
=
[]},
showDialogLayer
:
function
(
t
,
e
){
this
.
selectType
=
t
,
this
.
defaultStoreList
=
e
,
"store"
==
t
?
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
,
openNextBool
:
!
0
}:
this
.
groupTreeSet
=
{
isSelectPerson
:
!
1
,
dialogVisible
:
!
0
,
isSingle
:
!
1
,
openNextBool
:
!
0
}},
handleSelectedList
:
function
(
t
){
this
.
formData
.
selectList
=
t
,
this
.
defaultStoreList
=
t
},
delDepart
:
function
(
t
,
e
,
a
){
e
.
splice
(
t
,
1
)},
getCardData
:
function
(){
var
t
=
this
,
e
=
{
coupCardId
:
t
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
s
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
t
){
t
.
label
=
t
.
name
}),
t
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
t
.
defaultStoreList
=
0
!=
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
:[],
!
1
;
o
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
)},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
$route
.
query
.
coupCardId
&&
this
.
getCardData
()}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
formData
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"选择卡券"
,
prop
:
"coupCardId"
}},[
t
.
formData
.
coupCardId
?
t
.
_e
():
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
t
.
showCard
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-12 color-909399"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
t
.
_v
(
"添加卡券"
)])]),
t
.
_v
(
" "
),
t
.
formData
.
coupCardId
?
a
(
"div"
,{
staticClass
:
"selected-card-body flex"
},[
a
(
"div"
,{
staticClass
:
"selected-card font-14 color-909399"
},[
t
.
_v
(
t
.
_s
(
t
.
selectCoupCard
.
cardName
)
+
" | "
+
t
.
_s
(
t
.
selectCoupCard
.
effectDateString
)
+
" | 限制"
+
t
.
_s
(
t
.
selectCoupCard
.
cardLimit
)
+
"张/人 | 适用门店:"
+
t
.
_s
(
0
==
t
.
selectCoupCard
.
storeMode
?
"所有门店"
:
1
==
t
.
selectCoupCard
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
" | 库存:"
+
t
.
_s
(
t
.
selectCoupCard
.
couponStock
))]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
showCard
}},[
t
.
_v
(
"重新选择"
)])],
1
):
t
.
_e
()]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"选择发送范围"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
t
.
changeRange
},
model
:{
value
:
t
.
formData
.
sendRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendRange"
,
e
)},
expression
:
"formData.sendRange"
}},[
t
.
_v
(
"所有门店"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
t
.
changeRange
},
model
:{
value
:
t
.
formData
.
sendRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendRange"
,
e
)},
expression
:
"formData.sendRange"
}},[
t
.
_v
(
"部分分组"
)]),
t
.
_v
(
" "
),
1
==
t
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
t
.
brandId
,
width
:
213
,
selectData
:
t
.
formData
.
selectList
},
on
:{
checkGroupIds
:
t
.
checkGroupIds
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
t
.
changeRange
},
model
:{
value
:
t
.
formData
.
sendRange
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendRange"
,
e
)},
expression
:
"formData.sendRange"
}},[
t
.
_v
(
"部分门店"
)]),
t
.
_v
(
" "
),
2
==
t
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"213px"
},
on
:{
click
:
function
(
e
){
t
.
showDialogLayer
(
"store"
,
t
.
formData
.
selectList
)}}},[
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"181px"
}},[
a
(
"span"
,[
t
.
_l
(
t
.
formData
.
selectList
,
function
(
e
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
t
.
_v
(
t
.
_s
(
e
.
name
||
e
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
e
){
e
.
stopPropagation
(),
t
.
delDepart
(
r
,
t
.
formData
.
selectList
)}}})])]})],
2
)])])])]):
t
.
_e
(),
t
.
_v
(
" "
),
"1"
!=
t
.
formData
.
sendRange
&&
"2"
!=
t
.
formData
.
sendRange
||
t
.
formData
.
selectList
.
length
?
t
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
t
.
_v
(
"请选择发送范围"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券限制每个会员最大发放次数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"券发放张数"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-90"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
0
,
max
:
20
},
model
:{
value
:
t
.
formData
.
eachSendTimes
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"eachSendTimes"
,
e
)},
expression
:
"formData.eachSendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-20"
},[
t
.
_v
(
"最多20张每人"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券发放总数,不得超过券库存数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"券发放总数"
)])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
t
.
_v
(
"无限制"
)]),
t
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
model
:{
value
:
t
.
formData
.
sendType
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"sendType"
,
e
)},
expression
:
"formData.sendType"
}},[
t
.
_v
(
"限制总数"
)]),
1
==
t
.
formData
.
sendType
?
a
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
},
model
:{
value
:
t
.
formData
.
totalSendTimes
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"totalSendTimes"
,
e
)},
expression
:
"formData.totalSendTimes"
}}):
t
.
_e
()],
1
)]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确认"
+
t
.
_s
(
t
.
$route
.
query
.
coupCardId
?
"编辑"
:
"新建"
))]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
t
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
t
.
cardSelectShow
?
a
(
"select-card"
,{
attrs
:{
coupCardId
:
t
.
formData
.
coupCardId
,
brandId
:
t
.
brandId
},
on
:{
closeCard
:
t
.
closeCard
,
returnId
:
t
.
returnId
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
p
,
!
1
,
function
(
t
){
a
(
"C6vb"
)},
"data-v-574647ea"
,
null
);
e
.
default
=
m
.
exports
},
C6vb
:
function
(
t
,
e
){},
F0H0
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/manifest.
d480a441f4934aaa7a7e
.js
→
dist/static/js/manifest.
ff6d01d940a33b9452d6
.js
View file @
5518bb17
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
63
:
0
};
function
b
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
c
=
f
[
e
]
=
[
a
,
b
]});
c
[
2
]
=
a
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d05ce1ecbdd1111eed60"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"d4743236110d9eea460a"
,
3
:
"a97b31cca482f40d5c87"
,
4
:
"6397838f67f240e44931"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"aadb949ab3bea612d805"
,
7
:
"c9ccf52380a5efb8720c"
,
8
:
"872afc6f0c6c0be091e8"
,
9
:
"aa16369ac132fab2a89c"
,
10
:
"935a69797af3baaa97b8"
,
11
:
"73a9b934417c9bc16fc6"
,
12
:
"59db86ef512a3a65e1ce"
,
13
:
"ebba5b82c2826c9ba6e1"
,
14
:
"a49fd9e52a864dbd5831"
,
15
:
"3719b48003ce60ac35cf"
,
16
:
"880047853fa23da0e4eb"
,
17
:
"fca3406ba0423dbc034e"
,
18
:
"31d8270b74259075ac18"
,
19
:
"7a53269ddf9f15768789"
,
20
:
"1ff87ac578a8c1455a10"
,
21
:
"9e35f4bb567c79f900c4"
,
22
:
"4657c811baa7a2a81fa8"
,
23
:
"b696c3789461b84413c4"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"3c38b82373fa7e0a809a"
,
32
:
"d68d3e9c2138e9b0b094"
,
33
:
"17b587ea836e40e85f6c"
,
34
:
"fe5fa10071f728bce540"
,
35
:
"58646980a26370faba20"
,
36
:
"11a1a313d8ff29508d13"
,
37
:
"4eb8995550564944b43d"
,
38
:
"2b9cdeede733af9be322"
,
39
:
"9aa77e3defecaceb244e"
,
40
:
"5c88eb3d24b8c0c5c765"
,
41
:
"754895d6e8968f855a79"
,
42
:
"43bbedbec5d68a86dac1"
,
43
:
"87c1782754b0b05f7608"
,
44
:
"aa371b07acf3ccb8cf7b"
,
45
:
"67d74a26606b9aaaaf36"
,
46
:
"533788c46e1defe672d3"
,
47
:
"12481e6bfc90de853c84"
,
48
:
"31977b1cfef3f8807123"
,
49
:
"15bc78cea887de215d32"
,
50
:
"c2932bcd17cb7bb00ef7"
,
51
:
"6ecd1c76f129643c28a8"
,
52
:
"763413fcd4e918278c7c"
,
53
:
"63a56532e0b00a60682a"
,
54
:
"5953756da77aa423a0f0"
,
55
:
"507e3a26f9dc9383df97"
,
56
:
"0c71414a670bc8546178"
,
57
:
"1a7102c508e3c1a0a222"
,
58
:
"a7fa96edb1538ed5b7ff"
,
59
:
"c71bd5036dd611ea623a"
,
60
:
"775007688f0115e168fb"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
c
,
a
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
b
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
c
,
"a"
,
c
),
c
},
b
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
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
=
{
63
:
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
:
"d05ce1ecbdd1111eed60"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"d4743236110d9eea460a"
,
3
:
"a97b31cca482f40d5c87"
,
4
:
"6397838f67f240e44931"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"aadb949ab3bea612d805"
,
7
:
"c9ccf52380a5efb8720c"
,
8
:
"872afc6f0c6c0be091e8"
,
9
:
"aa16369ac132fab2a89c"
,
10
:
"935a69797af3baaa97b8"
,
11
:
"73a9b934417c9bc16fc6"
,
12
:
"59db86ef512a3a65e1ce"
,
13
:
"ebba5b82c2826c9ba6e1"
,
14
:
"a49fd9e52a864dbd5831"
,
15
:
"3719b48003ce60ac35cf"
,
16
:
"880047853fa23da0e4eb"
,
17
:
"fca3406ba0423dbc034e"
,
18
:
"31d8270b74259075ac18"
,
19
:
"7a53269ddf9f15768789"
,
20
:
"6b59d2136e6a9e97fa0a"
,
21
:
"9e35f4bb567c79f900c4"
,
22
:
"4657c811baa7a2a81fa8"
,
23
:
"b696c3789461b84413c4"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"3c38b82373fa7e0a809a"
,
32
:
"d68d3e9c2138e9b0b094"
,
33
:
"17b587ea836e40e85f6c"
,
34
:
"fe5fa10071f728bce540"
,
35
:
"58646980a26370faba20"
,
36
:
"11a1a313d8ff29508d13"
,
37
:
"4eb8995550564944b43d"
,
38
:
"2b9cdeede733af9be322"
,
39
:
"9aa77e3defecaceb244e"
,
40
:
"5c88eb3d24b8c0c5c765"
,
41
:
"754895d6e8968f855a79"
,
42
:
"43bbedbec5d68a86dac1"
,
43
:
"87c1782754b0b05f7608"
,
44
:
"aa371b07acf3ccb8cf7b"
,
45
:
"67d74a26606b9aaaaf36"
,
46
:
"533788c46e1defe672d3"
,
47
:
"12481e6bfc90de853c84"
,
48
:
"31977b1cfef3f8807123"
,
49
:
"15bc78cea887de215d32"
,
50
:
"c2932bcd17cb7bb00ef7"
,
51
:
"6ecd1c76f129643c28a8"
,
52
:
"763413fcd4e918278c7c"
,
53
:
"63a56532e0b00a60682a"
,
54
:
"5953756da77aa423a0f0"
,
55
:
"507e3a26f9dc9383df97"
,
56
:
"0c71414a670bc8546178"
,
57
:
"1a7102c508e3c1a0a222"
,
58
:
"a7fa96edb1538ed5b7ff"
,
59
:
"c71bd5036dd611ea623a"
,
60
:
"775007688f0115e168fb"
}[
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 @
5518bb17
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 1
5:03:05
* @LastEditTime: 2020-04-15 1
9:43:32
-->
-->
<
template
>
<
template
>
...
@@ -26,20 +26,6 @@
...
@@ -26,20 +26,6 @@
<el-radio
v-model=
"formData.sendRange"
label=
"0"
@
change=
"changeRange"
>
所有门店
</el-radio>
<el-radio
v-model=
"formData.sendRange"
label=
"0"
@
change=
"changeRange"
>
所有门店
</el-radio>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendRange"
label=
"1"
@
change=
"changeRange"
>
部分分组
</el-radio>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendRange"
label=
"1"
@
change=
"changeRange"
>
部分分组
</el-radio>
<div
v-if=
"formData.sendRange == 1"
class=
"w-240 inline-block item-cell-select"
>
<div
v-if=
"formData.sendRange == 1"
class=
"w-240 inline-block item-cell-select"
>
<!--
<div
class=
"depart-item-wrap"
>
<div
style=
"width:213px"
class=
"el-select el-select--large depart-item-content"
@
click=
"showDialogLayer('group', formData.selectList)"
>
<div
class=
"el-select__tags"
style=
"max-width: 181px;"
>
<span>
<template
v-for=
"(item, index) in formData.selectList"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index"
>
<span
class=
"el-select__tags-text"
>
{{
item
.
name
||
item
.
storeName
}}
</span
><i
class=
"el-tag__close el-icon-close"
@
click
.
stop=
"delDepart(index, formData.selectList)"
></i>
</span>
</
template
>
</span>
</div>
</div>
</div>
-->
<gic-select-group
:brandId=
"brandId"
class=
"m-l-10"
:width=
"213"
:selectData=
"formData.selectList"
@
checkGroupIds=
"checkGroupIds"
>
</gic-select-group>
<gic-select-group
:brandId=
"brandId"
class=
"m-l-10"
:width=
"213"
:selectData=
"formData.selectList"
@
checkGroupIds=
"checkGroupIds"
>
</gic-select-group>
</div>
</div>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendRange"
label=
"2"
@
change=
"changeRange"
>
部分门店
</el-radio>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendRange"
label=
"2"
@
change=
"changeRange"
>
部分门店
</el-radio>
...
@@ -77,21 +63,9 @@
...
@@ -77,21 +63,9 @@
<el-radio
class=
"m-l-40"
v-model=
"formData.sendType"
label=
"1"
>
限制总数
</el-radio><el-input-number
v-if=
"formData.sendType == 1"
class=
"m-l-10"
v-model=
"formData.totalSendTimes"
controls-position=
"right"
:min=
"1"
></el-input-number>
<el-radio
class=
"m-l-40"
v-model=
"formData.sendType"
label=
"1"
>
限制总数
</el-radio><el-input-number
v-if=
"formData.sendType == 1"
class=
"m-l-10"
v-model=
"formData.totalSendTimes"
controls-position=
"right"
:min=
"1"
></el-input-number>
</div>
</div>
</div>
</div>
<!-- <div class="el-form-item el-form-item--large">
<label for="name" class="el-form-item__label" style="width: 120px; cursor: pointer;">
<el-tooltip class="item" effect="dark" content="卡券领取总数,不得超过券库存数" placement="top-start">
<span>券领取总数<span class="el-icon-info font-12 color-909399"></span> :</span></el-tooltip
>
</label>
<div class="el-form-item__content" style="margin-left: 120px;">
<el-radio v-model="formData.receiveType" label="0">无限制</el-radio>
<el-radio class="m-l-40" v-model="formData.receiveType" label="1">限制总数</el-radio><el-input-number v-if="formData.receiveType == 1" class="m-l-10" v-model="formData.totalReceiveTimes" controls-position="right" :min="1"></el-input-number>
</div>
</div> -->
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
确认{{ $route.query.coupCardId ? '编辑' : '新建' }}
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
确认{{ $route.query.coupCardId ? '编辑' : '新建' }}
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm', 'flag')"
>
确认并继续新建
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm', 'flag')"
>
确认并继续新建
</el-button>
<!-- <el-button @click="toReturn">取消</el-button> -->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -101,8 +75,6 @@
...
@@ -101,8 +75,6 @@
<
script
>
<
script
>
import
gicSelectGroup
from
'@/components/common/gic-select-group.vue'
;
import
gicSelectGroup
from
'@/components/common/gic-select-group.vue'
;
import
selectCard
from
'@/components/app/card/select-card.vue'
;
import
selectCard
from
'@/components/app/card/select-card.vue'
;
// import commonDetailTop from '@/components/app/common-detail-top.vue';
// import vueSelectStore from 'components/common/vueSelectStore';
import
{
getRequest
,
postRequest
}
from
'@/api/api'
;
import
{
getRequest
,
postRequest
}
from
'@/api/api'
;
import
showMsg
from
'@/common/js/showmsg'
;
import
showMsg
from
'@/common/js/showmsg'
;
import
errMsg
from
'@/common/js/error'
;
import
errMsg
from
'@/common/js/error'
;
...
@@ -124,8 +96,6 @@ export default {
...
@@ -124,8 +96,6 @@ export default {
}
}
},
},
components
:
{
components
:
{
// commonDetailTop,
// vueSelectStore,
selectCard
,
selectCard
,
gicSelectGroup
gicSelectGroup
},
},
...
@@ -162,26 +132,7 @@ export default {
...
@@ -162,26 +132,7 @@ export default {
activeGroup
:
this
.
activeGroupId
,
// 商户(品牌) groupId
activeGroup
:
this
.
activeGroupId
,
// 商户(品牌) groupId
activeId
:
'3'
,
activeId
:
'3'
,
wxEnterpriseId
:
localStorage
.
getItem
(
'userInfos'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'userInfos'
)).
wxEnterpriseId
:
''
,
wxEnterpriseId
:
localStorage
.
getItem
(
'userInfos'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'userInfos'
)).
wxEnterpriseId
:
''
,
selectCoupCard
:
{},
//已选卡券对象
selectCoupCardId
:
''
,
selectCoupCard
:
{},
selectList
:
''
,
// 门店选择
appScene
:
2
,
defaultStoreList
:
[],
selectType
:
'store'
,
storeTreeSet
:
{
isSelectPerson
:
false
,
// 控制只能选部门(false)
dialogVisible
:
false
,
// 控制显示/隐藏
isSingle
:
false
// 是否单选
},
groupTreeSet
:
{
isSelectPerson
:
false
,
// 控制只能选部门(false)
dialogVisible
:
false
,
// 控制显示/隐藏
isSingle
:
false
// 是否单选
},
formData
:
{
formData
:
{
id
:
''
,
id
:
''
,
coupCardId
:
''
,
coupCardId
:
''
,
...
@@ -258,7 +209,7 @@ export default {
...
@@ -258,7 +209,7 @@ export default {
id
:
that
.
formData
.
id
,
id
:
that
.
formData
.
id
,
coupCardId
:
that
.
formData
.
coupCardId
,
coupCardId
:
that
.
formData
.
coupCardId
,
sendRange
:
that
.
formData
.
sendRange
,
sendRange
:
that
.
formData
.
sendRange
,
selectList
:
that
.
formData
.
sendRange
==
1
?
that
.
formData
.
selectList
.
map
(
item
=>
item
.
groupId
||
item
.
id
).
join
(
','
)
:
that
.
formData
.
sendRange
==
2
?
that
.
formData
.
selectList
.
map
(
item
=>
item
.
storeId
||
item
.
i
d
).
join
(
','
)
:
''
,
selectList
:
that
.
formData
.
sendRange
==
1
?
that
.
formData
.
selectList
.
map
(
item
=>
item
.
storeGroupId
).
join
(
','
)
:
that
.
formData
.
sendRange
==
2
?
that
.
formData
.
selectList
.
map
(
item
=>
item
.
storeI
d
).
join
(
','
)
:
''
,
eachSendTimes
:
that
.
formData
.
eachSendTimes
,
eachSendTimes
:
that
.
formData
.
eachSendTimes
,
sendType
:
that
.
formData
.
sendType
,
sendType
:
that
.
formData
.
sendType
,
totalSendTimes
:
that
.
formData
.
totalSendTimes
,
totalSendTimes
:
that
.
formData
.
totalSendTimes
,
...
@@ -273,7 +224,7 @@ export default {
...
@@ -273,7 +224,7 @@ export default {
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
that
.
$route
.
query
.
coupCardId
?
'编辑卡券成功'
:
'新建卡券成功'
,
'success'
);
showMsg
.
showmsg
(
that
.
$route
.
query
.
coupCardId
?
'编辑卡券成功'
:
'新建卡券成功'
,
'success'
);
if
(
!
flag
)
{
if
(
!
flag
)
{
that
.
$router
.
push
(
`/
onlineChatSet?activeTab=
${
that
.
$route
.
query
.
activeTab
}
&appIcon=
${
that
.
$route
.
query
.
appIcon
}
`
);
that
.
$router
.
push
(
`/
cardList
`
);
}
else
{
}
else
{
that
.
formData
=
{
that
.
formData
=
{
id
:
''
,
id
:
''
,
...
@@ -286,15 +237,7 @@ export default {
...
@@ -286,15 +237,7 @@ export default {
// receiveType: '0',
// receiveType: '0',
// totalReceiveTimes: 0
// totalReceiveTimes: 0
};
};
// 禁用
that
.
selectCoupCard
=
{};
that
.
tableData
.
forEach
(
ele
=>
{
if
(
ele
.
coupCardId
==
that
.
selectCoupCardId
)
{
ele
.
selected
=
1
;
}
});
that
.
$nextTick
(()
=>
{
that
.
selectCoupCardId
=
''
;
});
}
}
}
}
errMsg
.
errorMsg
(
resData
);
errMsg
.
errorMsg
(
resData
);
...
@@ -395,7 +338,6 @@ export default {
...
@@ -395,7 +338,6 @@ export default {
// totalReceiveTimes: resData.result.detail.totalReceiveTimes
// totalReceiveTimes: resData.result.detail.totalReceiveTimes
};
};
that
.
defaultStoreList
=
resData
.
result
.
detail
.
sendRange
!=
0
?
resData
.
result
.
list
:
[];
that
.
defaultStoreList
=
resData
.
result
.
detail
.
sendRange
!=
0
?
resData
.
result
.
list
:
[];
that
.
selectCoupCardId
=
resData
.
result
.
detail
.
coupCardId
;
return
false
;
return
false
;
}
}
errMsg
.
errorMsg
(
resData
);
errMsg
.
errorMsg
(
resData
);
...
...
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