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
d680ecb8
Commit
d680ecb8
authored
Apr 28, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改内购券
parent
c4059083
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
app.37daa9eaeddc5ae44c80a0a8dfcda05f.css
dist/static/css/app.37daa9eaeddc5ae44c80a0a8dfcda05f.css
+0
-0
61.ec6402e5504ab1fa92d6.js
dist/static/js/61.ec6402e5504ab1fa92d6.js
+2
-2
manifest.456fb8aeff1bbdd95387.js
dist/static/js/manifest.456fb8aeff1bbdd95387.js
+2
-2
newCardTemp.vue
src/views/apps/protectCard/newCardTemp.vue
+2
-2
No files found.
dist/index.html
View file @
d680ecb8
<!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.401afc39ecae98b5da491e1c880a4eba.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.36653d3d9cd0be9a346e.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.8072cac049b92d8541cb.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.37daa9eaeddc5ae44c80a0a8dfcda05f.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.456fb8aeff1bbdd95387.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.8072cac049b92d8541cb.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
401afc39ecae98b5da491e1c880a4eba
.css
→
dist/static/css/app.
37daa9eaeddc5ae44c80a0a8dfcda05f
.css
View file @
d680ecb8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/61.
0fa59f36f505fdc092c0
.js
→
dist/static/js/61.
ec6402e5504ab1fa92d6
.js
View file @
d680ecb8
webpackJsonp
([
61
],{
GKUO
:
function
(
e
,
a
){},
tF0P
:
function
(
e
,
a
,
t
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"mvHQ"
),
r
=
t
.
n
(
o
),
i
=
t
(
"l46T"
),
s
=
t
(
"Kkt8"
),
n
=
t
(
"P9l9"
),
l
=
t
(
"3E4D"
),
m
=
t
(
"Ch4/"
),
p
=
t
(
"PI0u"
),
c
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
i
.
a
,
limitTextarea
:
s
.
a
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
commitName
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
formData
:{
templateId
:
""
,
templateName
:
""
,
cardType
:
"0"
,
cardApplicationChannel
:[
"offlineStore"
],
erpDemoCode
:
""
,
cardColor
:
"#2f54eb"
,
cardDenomination
:
"1"
,
minGoodsType
:
"0"
,
minApplicableGoods
:
"1"
,
maxGoodsType
:
"0"
,
maxApplicableGoods
:
"1"
,
useCondition
:{
sale_limit
:{
fee
:
1
},
goods
:{
ok
:
""
,
no
:
""
},
only
:
1
,
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
"1"
,
goods_discounts_number_lower_limit
:
"1"
},
limitTopType
:
"0"
,
limitTop
:
0
,
minCostCheck
:
!
1
,
minCost
:
"1"
,
shareCheck
:
!
1
,
fitGoodCheck
:
!
1
,
fitGoodDes
:
""
,
noFitGoodDes
:
""
,
cardLimitType
:
"0"
,
cardLimit
:
"1"
,
costValue
:
"1"
,
useCustomCode
:
"0"
,
cardExplain
:
""
,
applicationStoreType
:
"1"
,
useDescript
:
""
,
gicEnterpriseId
:
""
},
rules
:{
templateName
:[{
required
:
!
0
,
message
:
"请输入模板名称"
,
trigger
:
"blur"
}],
cardApplicationChannel
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券适用渠道"
,
trigger
:
"change"
}],
cardDenomination
:[{
required
:
!
0
,
message
:
"请输入减免金额"
,
trigger
:
"blur"
}],
costValue
:[{
required
:
!
0
,
message
:
"请输入成本费用"
,
trigger
:
"blur"
}],
cardExplain
:[{
required
:
!
0
,
message
:
"请输入适用门店说明"
,
trigger
:
"blur"
}],
applicationStoreType
:[{
required
:
!
0
,
message
:
"请选择适用门店"
,
trigger
:
"change"
}],
useDescript
:[{
required
:
!
0
,
message
:
"请输入使用说明"
,
trigger
:
"blur"
}],
gicEnterpriseId
:[{
required
:
!
0
,
message
:
"请选择商户"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
brandListData
:[],
chanelList
:[]}},
methods
:{
changeEnterprise
:
function
(){
this
.
formData
.
cardApplicationChannel
=
[],
this
.
getChanel
()},
getChanel
:
function
(){
var
e
=
this
,
a
=
{
gicEnterpriseId
:
e
.
formData
.
gicEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/get-channel-type"
,
a
).
then
(
function
(
a
){
var
t
=
a
.
data
;
return
1
==
t
.
errorCode
&&
(
e
.
chanelList
=
t
.
result
||
[],
t
.
result
.
length
&&!
e
.
$route
.
query
.
templateId
&&
(
e
.
formData
.
cardApplicationChannel
=
[
t
.
result
[
0
].
value
])),
!
1
}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
changeTop
:
function
(
e
){
0
==
e
&&
(
this
.
formData
.
limitTop
=
0
)},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
a
){
var
t
=
this
;
return
t
.
formData
.
fitGoodCheck
&&!
t
.
formData
.
fitGoodDes
&&
t
.
formData
.
noFitGoodDes
?(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"适用商品至少填写一项"
}),
!
1
):
t
.
formData
.
minCostCheck
&&!
t
.
formData
.
minCost
?(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最低消费"
}),
!
1
):
1
!=
t
.
formData
.
limitTopType
||
t
.
formData
.
limitTop
?
1
!=
t
.
formData
.
minGoodsType
||
t
.
formData
.
minApplicableGoods
?
1
!=
t
.
formData
.
maxGoodsType
||
t
.
formData
.
maxApplicableGoods
?
2
!=
t
.
formData
.
cardLimitType
||
t
.
formData
.
cardLimit
?
void
t
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
t
.
postSaveCard
(
a
)}):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入领券限制"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最高适用商品件数"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最低适用商品件数"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入封顶金额"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
a
=
this
,
t
=
{
sale_limit
:{
fee
:
0
},
goods
:{
ok
:
a
.
formData
.
fitGoodDes
,
no
:
a
.
formData
.
noFitGoodDes
},
only
:
a
.
formData
.
shareCheck
?
1
:
0
,
discount_amount_upper_limit
:
1
==
a
.
formData
.
limitTopType
?
a
.
formData
.
limitTop
:
0
,
goods_discounts_number_upper_limit
:
1
==
a
.
formData
.
minGoodsType
?
a
.
formData
.
minApplicableGoods
:
0
,
goods_discounts_number_lower_limit
:
1
==
a
.
formData
.
maxGoodsType
?
a
.
formData
.
maxApplicableGoods
:
0
};
a
.
formData
.
minCostCheck
&&
(
t
.
sale_limit
=
{
fee
:
a
.
formData
.
minCost
});
var
o
=
{
templateId
:
a
.
formData
.
templateId
,
templateName
:
a
.
formData
.
templateName
,
cardType
:
a
.
formData
.
cardType
,
cardApplicationChannel
:
a
.
formData
.
cardApplicationChannel
.
join
(
","
),
erpDemoCode
:
a
.
formData
.
erpDemoCode
,
cardColor
:
a
.
formData
.
cardColor
,
cardDenomination
:
a
.
formData
.
cardDenomination
,
minGoodsType
:
a
.
formData
.
minGoodsType
,
minApplicableGoods
:
a
.
formData
.
minApplicableGoods
,
maxGoodsType
:
a
.
formData
.
maxGoodsType
,
maxApplicableGoods
:
a
.
formData
.
maxApplicableGoods
,
limitTopType
:
a
.
formData
.
limitTopType
,
limitTop
:
a
.
formData
.
limitTop
,
useCondition
:
r
()(
t
),
cardLimitType
:
a
.
formData
.
cardLimitType
,
cardLimit
:
a
.
formData
.
cardLimit
,
costValue
:
a
.
formData
.
costValue
,
useCustomCode
:
a
.
formData
.
useCustomCode
,
cardExplain
:
a
.
formData
.
cardExplain
,
applicationStoreType
:
a
.
formData
.
applicationStoreType
,
useDescript
:
a
.
formData
.
useDescript
,
gicEnterpriseId
:
a
.
formData
.
gicEnterpriseId
,
commitName
:
a
.
commitName
,
wxEnterpriseId
:
a
.
wxEnterpriseId
};
Object
(
n
.
d
)((
a
.
$route
.
query
.
templateId
,
"/haoban-app-customer-web/inner/save-template"
),
o
).
then
(
function
(
t
){
var
o
=
t
.
data
;
1
==
o
.
errorCode
&&
(
l
.
a
.
showmsg
(
a
.
$route
.
query
.
templateId
?
"编辑卡券模板成功"
:
"新建卡券模板成功"
,
"success"
),
e
?(
a
.
formData
=
{
templateId
:
""
,
templateName
:
""
,
cardType
:
"0"
,
cardApplicationChannel
:[],
erpDemoCode
:
""
,
cardColor
:
"#2f54eb"
,
cardDenomination
:
"1"
,
minGoodsType
:
"0"
,
minApplicableGoods
:
"1"
,
maxGoodsType
:
"0"
,
maxApplicableGoods
:
"1"
,
useCondition
:{
sale_limit
:{
fee
:
1
},
goods
:{
ok
:
""
,
no
:
""
},
only
:
1
,
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
"1"
,
goods_discounts_number_lower_limit
:
"1"
},
limitTopType
:
"0"
,
limitTop
:
0
,
minCostCheck
:
!
1
,
minCost
:
"1"
,
shareCheck
:
!
1
,
fitGoodCheck
:
!
1
,
fitGoodDes
:
""
,
noFitGoodDes
:
""
,
cardLimitType
:
"0"
,
cardLimit
:
"1"
,
costValue
:
"1"
,
useCustomCode
:
"0"
,
cardExplain
:
""
,
applicationStoreType
:
"1"
,
useDescript
:
""
,
gicEnterpriseId
:
a
.
brandListData
[
0
].
enterpriseId
},
a
.
getChanel
()):
a
.
$router
.
push
(
"/cardTemplate"
)),
m
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/cardTemplate"
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
a
=
{
templateId
:
e
.
$route
.
query
.
templateId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/find-template"
,
a
).
then
(
function
(
a
){
var
t
=
a
.
data
;
if
(
1
==
t
.
errorCode
){
var
o
=
JSON
.
parse
(
t
.
result
.
useCondition
);
return
e
.
formData
=
{
templateId
:
t
.
result
.
templateId
,
templateName
:
t
.
result
.
templateName
,
cardType
:
String
(
t
.
result
.
cardType
),
cardApplicationChannel
:
t
.
result
.
cardApplicationChannel
.
split
(
","
)
||
[],
erpDemoCode
:
t
.
result
.
erpDemoCode
,
cardColor
:
t
.
result
.
cardColor
,
cardDenomination
:
t
.
result
.
cardDenomination
,
limitTopType
:
String
(
t
.
result
.
limitTopType
),
limitTop
:
t
.
result
.
limitTop
,
minGoodsType
:
String
(
t
.
result
.
minGoodsType
),
minApplicableGoods
:
t
.
result
.
minApplicableGoods
,
maxGoodsType
:
String
(
t
.
result
.
maxGoodsType
),
maxApplicableGoods
:
t
.
result
.
maxApplicableGoods
,
minCostCheck
:
!!
o
.
sale_limit
.
fee
,
minCost
:
o
.
sale_limit
.
fee
?
o
.
sale_limit
.
fee
:
"1"
,
shareCheck
:
!!
o
.
only
,
fitGoodCheck
:
!
(
!
o
.
goods
.
ok
&&!
o
.
goods
.
no
),
fitGoodDes
:
o
.
goods
.
ok
,
noFitGoodDes
:
o
.
goods
.
no
,
cardLimitType
:
String
(
t
.
result
.
cardLimitType
),
cardLimit
:
t
.
result
.
cardLimit
,
costValue
:
t
.
result
.
costValue
,
useCustomCode
:
String
(
t
.
result
.
useCustomCode
),
cardExplain
:
t
.
result
.
cardExplain
,
applicationStoreType
:
String
(
t
.
result
.
applicationStoreType
),
useDescript
:
t
.
result
.
useDescript
,
gicEnterpriseId
:
t
.
result
.
gicEnterpriseId
},
e
.
getChanel
(),
!
1
}
m
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
n
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
a
){
var
t
=
a
.
data
;
if
(
1
==
t
.
errorCode
)
return
e
.
brandListData
=
t
.
result
||
[],
void
(
t
.
result
.
length
&&
(
e
.
formData
.
gicEnterpriseId
=
t
.
result
[
0
].
enterpriseId
,
e
.
getChanel
()));
m
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
a
){
e
&&
this
.
$route
.
query
.
templateId
&&
(
this
.
activeBrand
=
e
)},
activeGroupId
:
function
(
e
,
a
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"1"
),
e
.
getBrandData
(),
e
.
$route
.
query
.
templateId
&&
e
.
$nextTick
(
function
(){
e
.
getCardData
()})}},
d
=
{
render
:
function
(){
var
e
=
this
,
a
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
a
;
return
t
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
t
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
t
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"142px"
}},[
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券模板名称"
,
prop
:
"templateName"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
307
,
inputValue
:
e
.
formData
.
templateName
,
getByType
:
"word"
,
holder
:
"请输入卡券模板名称"
,
maxLength
:
6
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"templateName"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券类型"
,
prop
:
"cardType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
cardType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardType"
,
a
)},
expression
:
"formData.cardType"
}},[
e
.
_v
(
"抵金券"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
cardType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardType"
,
a
)},
expression
:
"formData.cardType"
}},[
e
.
_v
(
"折扣券"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"选择商户"
,
prop
:
"gicEnterpriseId"
}},[
t
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeEnterprise
},
model
:{
value
:
e
.
formData
.
gicEnterpriseId
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"gicEnterpriseId"
,
a
)},
expression
:
"formData.gicEnterpriseId"
}},
e
.
_l
(
e
.
brandListData
,
function
(
e
){
return
t
(
"el-option"
,{
key
:
e
.
enterpriseId
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}})}))],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券适用渠道"
,
prop
:
"cardApplicationChannel"
}},[
t
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
formData
.
cardApplicationChannel
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardApplicationChannel"
,
a
)},
expression
:
"formData.cardApplicationChannel"
}},
e
.
_l
(
e
.
chanelList
,
function
(
a
,
o
){
return
t
(
"el-checkbox"
,{
key
:
o
+
"chanel"
,
attrs
:{
label
:
a
.
value
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])}))],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"demo券号"
,
prop
:
"erpDemoCode"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
307
,
inputValue
:
e
.
formData
.
erpDemoCode
,
getByType
:
"word"
,
holder
:
"请输入demo券号"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"erpDemoCode"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券颜色"
,
prop
:
"cardColor"
}},[
t
(
"div"
,{
staticClass
:
"card-color flex flex-space-between"
},[
t
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
.
cardColor
))]),
e
.
_v
(
" "
),
t
(
"el-color-picker"
,{
model
:{
value
:
e
.
formData
.
cardColor
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardColor"
,
a
)},
expression
:
"formData.cardColor"
}})],
1
)]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"减免金额"
,
prop
:
"cardDenomination"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
cardDenomination
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardDenomination"
,
a
)},
expression
:
"formData.cardDenomination"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"输入大于0的整数"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"折扣额度"
,
prop
:
"cardDenomination"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
precision
:
1
,
min
:
1
,
max
:
9.9
,
step
:.
1
},
model
:{
value
:
e
.
formData
.
cardDenomination
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardDenomination"
,
a
)},
expression
:
"formData.cardDenomination"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"折"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"请填写1-9.9之间的数字"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"优惠金额封顶"
,
prop
:
""
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeTop
},
model
:{
value
:
e
.
formData
.
limitTopType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTopType"
,
a
)},
expression
:
"formData.limitTopType"
}},[
e
.
_v
(
"不封顶"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
limitTopType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTopType"
,
a
)},
expression
:
"formData.limitTopType"
}},[
e
.
_v
(
"限制封顶"
)]),
1
==
e
.
formData
.
limitTopType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
limitTop
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTop"
,
a
)},
expression
:
"formData.limitTop"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
limitTopType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]):
e
.
_e
()],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"最低适用商品件数"
,
prop
:
"minGoodsType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
minGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minGoodsType"
,
a
)},
expression
:
"formData.minGoodsType"
}},[
e
.
_v
(
"不限"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
minGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minGoodsType"
,
a
)},
expression
:
"formData.minGoodsType"
}},[
e
.
_v
(
"限制"
)]),
1
==
e
.
formData
.
minGoodsType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
minApplicableGoods
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minApplicableGoods"
,
a
)},
expression
:
"formData.minApplicableGoods"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
minGoodsType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"件"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"最高适用商品件数"
,
prop
:
"maxGoodsType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
maxGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxGoodsType"
,
a
)},
expression
:
"formData.maxGoodsType"
}},[
e
.
_v
(
"不限"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
maxGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxGoodsType"
,
a
)},
expression
:
"formData.maxGoodsType"
}},[
e
.
_v
(
"限制"
)]),
1
==
e
.
formData
.
maxGoodsType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
maxApplicableGoods
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxApplicableGoods"
,
a
)},
expression
:
"formData.maxApplicableGoods"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
maxGoodsType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"件"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用条件"
,
prop
:
"minCostCheck"
}},[
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
minCostCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minCostCheck"
,
a
)},
expression
:
"formData.minCostCheck"
}},[
e
.
_v
(
"最低消费"
)]),
t
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
minCost
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minCost"
,
a
)},
expression
:
"formData.minCost"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元可用"
)])],
1
),
e
.
_v
(
" "
),
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
fitGoodCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"fitGoodCheck"
,
a
)},
expression
:
"formData.fitGoodCheck"
}},[
e
.
_v
(
"适用商品"
)]),
t
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"(至少填写一项)"
)])],
1
),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"fit-good border-box m-b-20"
},[
t
(
"div"
,[
t
(
"div"
,{
staticClass
:
"m-b-20 flex"
},[
t
(
"span"
,{
staticClass
:
"font-14 color-606266 w-86 m-r-10"
},[
e
.
_v
(
"适用商品:"
)]),
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
300
,
inputValue
:
e
.
formData
.
fitGoodDes
,
getByType
:
"word"
,
holder
:
"请输入内容"
,
maxLength
:
18
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"fitGoodDes"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"flex"
},[
t
(
"span"
,{
staticClass
:
"font-14 color-606266 w-86 m-r-10"
},[
e
.
_v
(
"不适用商品:"
)]),
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
300
,
inputValue
:
e
.
formData
.
noFitGoodDes
,
getByType
:
"word"
,
holder
:
"请输入内容"
,
maxLength
:
18
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"noFitGoodDes"
,
a
)}}})],
1
)])]),
e
.
_v
(
" "
),
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
shareCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"shareCheck"
,
a
)},
expression
:
"formData.shareCheck"
}},[
e
.
_v
(
"不与其他优惠共享"
)])],
1
)]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"领券限制"
,
prop
:
"cardLimitType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"1张/人"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"100张/人"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"2"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"自定义"
)]),
2
==
e
.
formData
.
cardLimitType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
cardLimit
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimit"
,
a
)},
expression
:
"formData.cardLimit"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
e
.
formData
.
cardLimitType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"张/人"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"成本费用"
,
prop
:
"costValue"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
precision
:
2
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
costValue
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"costValue"
,
a
)},
expression
:
"formData.costValue"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"请填写大于0的数字(限制两位小数)"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"code类型"
,
prop
:
"useCustomCode"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
useCustomCode
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"useCustomCode"
,
a
)},
expression
:
"formData.useCustomCode"
}},[
e
.
_v
(
"随机生成"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店说明"
,
prop
:
"cardExplain"
}},[
t
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
450
,
inputValue
:
e
.
formData
.
cardExplain
,
holder
:
"请输入适用门店说明"
,
getByType
:
"word"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardExplain"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店"
,
prop
:
"applicationStoreType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
applicationStoreType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"applicationStoreType"
,
a
)},
expression
:
"formData.applicationStoreType"
}},[
e
.
_v
(
"所有门店"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"使用说明"
,
prop
:
"useDescript"
}},[
t
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
450
,
inputValue
:
e
.
formData
.
useDescript
,
holder
:
"请输入使用说明"
,
getByType
:
"word"
,
maxLength
:
500
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"useDescript"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
templateId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
templateId
?
e
.
_e
():
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
)])},
staticRenderFns
:[]};
var
u
=
t
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
t
(
"GKUO"
)},
"data-v-18868477"
,
null
);
a
.
default
=
u
.
exports
}});
webpackJsonp
([
61
],{
SjN3
:
function
(
e
,
a
){},
tF0P
:
function
(
e
,
a
,
t
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"mvHQ"
),
r
=
t
.
n
(
o
),
i
=
t
(
"l46T"
),
s
=
t
(
"Kkt8"
),
n
=
t
(
"P9l9"
),
l
=
t
(
"3E4D"
),
m
=
t
(
"Ch4/"
),
p
=
t
(
"PI0u"
),
c
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
i
.
a
,
limitTextarea
:
s
.
a
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
commitName
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
formData
:{
templateId
:
""
,
templateName
:
""
,
cardType
:
"0"
,
cardApplicationChannel
:[
"offlineStore"
],
erpDemoCode
:
""
,
cardColor
:
"#2f54eb"
,
cardDenomination
:
"1"
,
minGoodsType
:
"0"
,
minApplicableGoods
:
"1"
,
maxGoodsType
:
"0"
,
maxApplicableGoods
:
"1"
,
useCondition
:{
sale_limit
:{
fee
:
1
},
goods
:{
ok
:
""
,
no
:
""
},
only
:
1
,
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
"1"
,
goods_discounts_number_lower_limit
:
"1"
},
limitTopType
:
"0"
,
limitTop
:
0
,
minCostCheck
:
!
1
,
minCost
:
"1"
,
shareCheck
:
!
1
,
fitGoodCheck
:
!
1
,
fitGoodDes
:
""
,
noFitGoodDes
:
""
,
cardLimitType
:
"0"
,
cardLimit
:
"1"
,
costValue
:
"1"
,
useCustomCode
:
"0"
,
cardExplain
:
""
,
applicationStoreType
:
"1"
,
useDescript
:
""
,
gicEnterpriseId
:
""
},
rules
:{
templateName
:[{
required
:
!
0
,
message
:
"请输入模板名称"
,
trigger
:
"blur"
}],
cardApplicationChannel
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券适用渠道"
,
trigger
:
"change"
}],
cardDenomination
:[{
required
:
!
0
,
message
:
"请输入减免金额"
,
trigger
:
"blur"
}],
costValue
:[{
required
:
!
0
,
message
:
"请输入成本费用"
,
trigger
:
"blur"
}],
cardExplain
:[{
required
:
!
0
,
message
:
"请输入适用门店说明"
,
trigger
:
"blur"
}],
applicationStoreType
:[{
required
:
!
0
,
message
:
"请选择适用门店"
,
trigger
:
"change"
}],
useDescript
:[{
required
:
!
0
,
message
:
"请输入使用说明"
,
trigger
:
"blur"
}],
gicEnterpriseId
:[{
required
:
!
0
,
message
:
"请选择商户"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
brandListData
:[],
chanelList
:[]}},
methods
:{
changeEnterprise
:
function
(){
this
.
formData
.
cardApplicationChannel
=
[],
this
.
getChanel
()},
getChanel
:
function
(){
var
e
=
this
,
a
=
{
gicEnterpriseId
:
e
.
formData
.
gicEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/get-channel-type"
,
a
).
then
(
function
(
a
){
var
t
=
a
.
data
;
return
1
==
t
.
errorCode
&&
(
e
.
chanelList
=
t
.
result
||
[],
t
.
result
.
length
&&!
e
.
$route
.
query
.
templateId
&&
(
e
.
formData
.
cardApplicationChannel
=
[
t
.
result
[
0
].
value
])),
!
1
}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
changeTop
:
function
(
e
){
0
==
e
&&
(
this
.
formData
.
limitTop
=
0
)},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
a
){
var
t
=
this
;
return
t
.
formData
.
fitGoodCheck
&&!
t
.
formData
.
fitGoodDes
&&
t
.
formData
.
noFitGoodDes
?(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"适用商品至少填写一项"
}),
!
1
):
t
.
formData
.
minCostCheck
&&!
t
.
formData
.
minCost
?(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最低消费"
}),
!
1
):
1
!=
t
.
formData
.
limitTopType
||
t
.
formData
.
limitTop
?
1
!=
t
.
formData
.
minGoodsType
||
t
.
formData
.
minApplicableGoods
?
1
!=
t
.
formData
.
maxGoodsType
||
t
.
formData
.
maxApplicableGoods
?
2
!=
t
.
formData
.
cardLimitType
||
t
.
formData
.
cardLimit
?
void
t
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
t
.
postSaveCard
(
a
)}):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入领券限制"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最高适用商品件数"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入最低适用商品件数"
}),
!
1
):(
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请输入封顶金额"
}),
!
1
)},
300
),
postSaveCard
:
function
(
e
){
var
a
=
this
,
t
=
{
sale_limit
:{
fee
:
0
},
goods
:{
ok
:
a
.
formData
.
fitGoodDes
,
no
:
a
.
formData
.
noFitGoodDes
},
only
:
a
.
formData
.
shareCheck
?
1
:
0
,
discount_amount_upper_limit
:
1
==
a
.
formData
.
limitTopType
?
a
.
formData
.
limitTop
:
0
,
goods_discounts_number_upper_limit
:
1
==
a
.
formData
.
minGoodsType
?
a
.
formData
.
minApplicableGoods
:
0
,
goods_discounts_number_lower_limit
:
1
==
a
.
formData
.
maxGoodsType
?
a
.
formData
.
maxApplicableGoods
:
0
};
a
.
formData
.
minCostCheck
&&
(
t
.
sale_limit
=
{
fee
:
a
.
formData
.
minCost
});
var
o
=
{
templateId
:
a
.
formData
.
templateId
,
templateName
:
a
.
formData
.
templateName
,
cardType
:
a
.
formData
.
cardType
,
cardApplicationChannel
:
a
.
formData
.
cardApplicationChannel
.
join
(
","
),
erpDemoCode
:
a
.
formData
.
erpDemoCode
,
cardColor
:
a
.
formData
.
cardColor
,
cardDenomination
:
a
.
formData
.
cardDenomination
,
minGoodsType
:
a
.
formData
.
minGoodsType
,
minApplicableGoods
:
a
.
formData
.
minApplicableGoods
,
maxGoodsType
:
a
.
formData
.
maxGoodsType
,
maxApplicableGoods
:
a
.
formData
.
maxApplicableGoods
,
limitTopType
:
a
.
formData
.
limitTopType
,
limitTop
:
a
.
formData
.
limitTop
,
useCondition
:
r
()(
t
),
cardLimitType
:
a
.
formData
.
cardLimitType
,
cardLimit
:
a
.
formData
.
cardLimit
,
costValue
:
a
.
formData
.
costValue
,
useCustomCode
:
a
.
formData
.
useCustomCode
,
cardExplain
:
a
.
formData
.
cardExplain
,
applicationStoreType
:
a
.
formData
.
applicationStoreType
,
useDescript
:
a
.
formData
.
useDescript
,
gicEnterpriseId
:
a
.
formData
.
gicEnterpriseId
,
commitName
:
a
.
commitName
,
wxEnterpriseId
:
a
.
wxEnterpriseId
};
Object
(
n
.
d
)((
a
.
$route
.
query
.
templateId
,
"/haoban-app-customer-web/inner/save-template"
),
o
).
then
(
function
(
t
){
var
o
=
t
.
data
;
1
==
o
.
errorCode
&&
(
l
.
a
.
showmsg
(
a
.
$route
.
query
.
templateId
?
"编辑卡券模板成功"
:
"新建卡券模板成功"
,
"success"
),
e
?(
a
.
formData
=
{
templateId
:
""
,
templateName
:
""
,
cardType
:
"0"
,
cardApplicationChannel
:[],
erpDemoCode
:
""
,
cardColor
:
"#2f54eb"
,
cardDenomination
:
"1"
,
minGoodsType
:
"0"
,
minApplicableGoods
:
"1"
,
maxGoodsType
:
"0"
,
maxApplicableGoods
:
"1"
,
useCondition
:{
sale_limit
:{
fee
:
1
},
goods
:{
ok
:
""
,
no
:
""
},
only
:
1
,
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
"1"
,
goods_discounts_number_lower_limit
:
"1"
},
limitTopType
:
"0"
,
limitTop
:
0
,
minCostCheck
:
!
1
,
minCost
:
"1"
,
shareCheck
:
!
1
,
fitGoodCheck
:
!
1
,
fitGoodDes
:
""
,
noFitGoodDes
:
""
,
cardLimitType
:
"0"
,
cardLimit
:
"1"
,
costValue
:
"1"
,
useCustomCode
:
"0"
,
cardExplain
:
""
,
applicationStoreType
:
"1"
,
useDescript
:
""
,
gicEnterpriseId
:
a
.
brandListData
[
0
].
enterpriseId
},
a
.
getChanel
()):
a
.
$router
.
push
(
"/cardTemplate"
)),
m
.
a
.
errorMsg
(
o
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/cardTemplate"
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
a
=
{
templateId
:
e
.
$route
.
query
.
templateId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/find-template"
,
a
).
then
(
function
(
a
){
var
t
=
a
.
data
;
if
(
1
==
t
.
errorCode
){
var
o
=
JSON
.
parse
(
t
.
result
.
useCondition
);
return
e
.
formData
=
{
templateId
:
t
.
result
.
templateId
,
templateName
:
t
.
result
.
templateName
,
cardType
:
String
(
t
.
result
.
cardType
),
cardApplicationChannel
:
t
.
result
.
cardApplicationChannel
.
split
(
","
)
||
[],
erpDemoCode
:
t
.
result
.
erpDemoCode
,
cardColor
:
t
.
result
.
cardColor
,
cardDenomination
:
t
.
result
.
cardDenomination
,
limitTopType
:
String
(
t
.
result
.
limitTopType
),
limitTop
:
t
.
result
.
limitTop
,
minGoodsType
:
String
(
t
.
result
.
minGoodsType
),
minApplicableGoods
:
t
.
result
.
minApplicableGoods
,
maxGoodsType
:
String
(
t
.
result
.
maxGoodsType
),
maxApplicableGoods
:
t
.
result
.
maxApplicableGoods
,
minCostCheck
:
!!
o
.
sale_limit
.
fee
,
minCost
:
o
.
sale_limit
.
fee
?
o
.
sale_limit
.
fee
:
"1"
,
shareCheck
:
!!
o
.
only
,
fitGoodCheck
:
!
(
!
o
.
goods
.
ok
&&!
o
.
goods
.
no
),
fitGoodDes
:
o
.
goods
.
ok
,
noFitGoodDes
:
o
.
goods
.
no
,
cardLimitType
:
String
(
t
.
result
.
cardLimitType
),
cardLimit
:
t
.
result
.
cardLimit
,
costValue
:
t
.
result
.
costValue
,
useCustomCode
:
String
(
t
.
result
.
useCustomCode
),
cardExplain
:
t
.
result
.
cardExplain
,
applicationStoreType
:
String
(
t
.
result
.
applicationStoreType
),
useDescript
:
t
.
result
.
useDescript
,
gicEnterpriseId
:
t
.
result
.
gicEnterpriseId
},
e
.
getChanel
(),
!
1
}
m
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
n
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
a
){
var
t
=
a
.
data
;
if
(
1
==
t
.
errorCode
)
return
e
.
brandListData
=
t
.
result
||
[],
void
(
t
.
result
.
length
&&!
e
.
$route
.
query
.
templateId
&&
(
e
.
formData
.
gicEnterpriseId
=
t
.
result
[
0
].
enterpriseId
,
e
.
getChanel
()));
m
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
a
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
a
){
e
&&
this
.
$route
.
query
.
templateId
&&
(
this
.
activeBrand
=
e
)},
activeGroupId
:
function
(
e
,
a
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"1"
),
e
.
getBrandData
(),
e
.
$route
.
query
.
templateId
&&
e
.
$nextTick
(
function
(){
e
.
getCardData
()})}},
d
=
{
render
:
function
(){
var
e
=
this
,
a
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
a
;
return
t
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
t
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
t
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"142px"
}},[
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券模板名称"
,
prop
:
"templateName"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
307
,
inputValue
:
e
.
formData
.
templateName
,
getByType
:
"word"
,
holder
:
"请输入卡券模板名称"
,
maxLength
:
6
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"templateName"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券类型"
,
prop
:
"cardType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
cardType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardType"
,
a
)},
expression
:
"formData.cardType"
}},[
e
.
_v
(
"抵金券"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
cardType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardType"
,
a
)},
expression
:
"formData.cardType"
}},[
e
.
_v
(
"折扣券"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"选择商户"
,
prop
:
"gicEnterpriseId"
}},[
t
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
changeEnterprise
},
model
:{
value
:
e
.
formData
.
gicEnterpriseId
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"gicEnterpriseId"
,
a
)},
expression
:
"formData.gicEnterpriseId"
}},
e
.
_l
(
e
.
brandListData
,
function
(
e
){
return
t
(
"el-option"
,{
key
:
e
.
enterpriseId
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}})}))],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券适用渠道"
,
prop
:
"cardApplicationChannel"
}},[
t
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
formData
.
cardApplicationChannel
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardApplicationChannel"
,
a
)},
expression
:
"formData.cardApplicationChannel"
}},
e
.
_l
(
e
.
chanelList
,
function
(
a
,
o
){
return
t
(
"el-checkbox"
,{
key
:
o
+
"chanel"
,
attrs
:{
label
:
a
.
value
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])}))],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"demo券号"
,
prop
:
"erpDemoCode"
}},[
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
307
,
inputValue
:
e
.
formData
.
erpDemoCode
,
getByType
:
"word"
,
holder
:
"请输入demo券号"
,
maxLength
:
200
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"erpDemoCode"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"卡券颜色"
,
prop
:
"cardColor"
}},[
t
(
"div"
,{
staticClass
:
"card-color flex flex-space-between"
},[
t
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
.
cardColor
))]),
e
.
_v
(
" "
),
t
(
"el-color-picker"
,{
model
:{
value
:
e
.
formData
.
cardColor
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardColor"
,
a
)},
expression
:
"formData.cardColor"
}})],
1
)]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"减免金额"
,
prop
:
"cardDenomination"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
cardDenomination
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardDenomination"
,
a
)},
expression
:
"formData.cardDenomination"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"输入大于0的整数"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"折扣额度"
,
prop
:
"cardDenomination"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
precision
:
1
,
min
:
1
,
max
:
9.9
,
step
:.
1
},
model
:{
value
:
e
.
formData
.
cardDenomination
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardDenomination"
,
a
)},
expression
:
"formData.cardDenomination"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"折"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"请填写1-9.9之间的数字"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
cardType
?
t
(
"el-form-item"
,{
attrs
:{
label
:
"优惠金额封顶"
,
prop
:
""
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeTop
},
model
:{
value
:
e
.
formData
.
limitTopType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTopType"
,
a
)},
expression
:
"formData.limitTopType"
}},[
e
.
_v
(
"不封顶"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
limitTopType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTopType"
,
a
)},
expression
:
"formData.limitTopType"
}},[
e
.
_v
(
"限制封顶"
)]),
1
==
e
.
formData
.
limitTopType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
limitTop
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"limitTop"
,
a
)},
expression
:
"formData.limitTop"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
limitTopType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]):
e
.
_e
()],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"最低适用商品件数"
,
prop
:
"minGoodsType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
minGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minGoodsType"
,
a
)},
expression
:
"formData.minGoodsType"
}},[
e
.
_v
(
"不限"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
minGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minGoodsType"
,
a
)},
expression
:
"formData.minGoodsType"
}},[
e
.
_v
(
"限制"
)]),
1
==
e
.
formData
.
minGoodsType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
minApplicableGoods
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minApplicableGoods"
,
a
)},
expression
:
"formData.minApplicableGoods"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
minGoodsType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"件"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"最高适用商品件数"
,
prop
:
"maxGoodsType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
maxGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxGoodsType"
,
a
)},
expression
:
"formData.maxGoodsType"
}},[
e
.
_v
(
"不限"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
maxGoodsType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxGoodsType"
,
a
)},
expression
:
"formData.maxGoodsType"
}},[
e
.
_v
(
"限制"
)]),
1
==
e
.
formData
.
maxGoodsType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
maxApplicableGoods
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"maxApplicableGoods"
,
a
)},
expression
:
"formData.maxApplicableGoods"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
maxGoodsType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"件"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用条件"
,
prop
:
"minCostCheck"
}},[
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
minCostCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minCostCheck"
,
a
)},
expression
:
"formData.minCostCheck"
}},[
e
.
_v
(
"最低消费"
)]),
t
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
minCost
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"minCost"
,
a
)},
expression
:
"formData.minCost"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元可用"
)])],
1
),
e
.
_v
(
" "
),
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
fitGoodCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"fitGoodCheck"
,
a
)},
expression
:
"formData.fitGoodCheck"
}},[
e
.
_v
(
"适用商品"
)]),
t
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"(至少填写一项)"
)])],
1
),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"fit-good border-box m-b-20"
},[
t
(
"div"
,[
t
(
"div"
,{
staticClass
:
"m-b-20 flex"
},[
t
(
"span"
,{
staticClass
:
"font-14 color-606266 w-86 m-r-10"
},[
e
.
_v
(
"适用商品:"
)]),
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
300
,
inputValue
:
e
.
formData
.
fitGoodDes
,
getByType
:
"word"
,
holder
:
"请输入内容"
,
maxLength
:
18
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"fitGoodDes"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"flex"
},[
t
(
"span"
,{
staticClass
:
"font-14 color-606266 w-86 m-r-10"
},[
e
.
_v
(
"不适用商品:"
)]),
t
(
"limitInput"
,{
attrs
:{
inputWidth
:
300
,
inputValue
:
e
.
formData
.
noFitGoodDes
,
getByType
:
"word"
,
holder
:
"请输入内容"
,
maxLength
:
18
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"noFitGoodDes"
,
a
)}}})],
1
)])]),
e
.
_v
(
" "
),
t
(
"div"
,[
t
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
shareCheck
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"shareCheck"
,
a
)},
expression
:
"formData.shareCheck"
}},[
e
.
_v
(
"不与其他优惠共享"
)])],
1
)]),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"领券限制"
,
prop
:
"cardLimitType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"1张/人"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"100张/人"
)]),
e
.
_v
(
" "
),
t
(
"el-radio"
,{
attrs
:{
label
:
"2"
},
model
:{
value
:
e
.
formData
.
cardLimitType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimitType"
,
a
)},
expression
:
"formData.cardLimitType"
}},[
e
.
_v
(
"自定义"
)]),
2
==
e
.
formData
.
cardLimitType
?
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
cardLimit
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardLimit"
,
a
)},
expression
:
"formData.cardLimit"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
e
.
formData
.
cardLimitType
?
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"张/人"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"成本费用"
,
prop
:
"costValue"
}},[
t
(
"el-input-number"
,{
attrs
:{
"controls-position"
:
"right"
,
precision
:
2
,
min
:
1
,
max
:
99999999
},
model
:{
value
:
e
.
formData
.
costValue
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"costValue"
,
a
)},
expression
:
"formData.costValue"
}}),
t
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
"元"
)]),
t
(
"span"
,{
staticClass
:
"font-12 color-909399 p-l-10"
},[
e
.
_v
(
"请填写大于0的数字(限制两位小数)"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"code类型"
,
prop
:
"useCustomCode"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
useCustomCode
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"useCustomCode"
,
a
)},
expression
:
"formData.useCustomCode"
}},[
e
.
_v
(
"随机生成"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店说明"
,
prop
:
"cardExplain"
}},[
t
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
450
,
inputValue
:
e
.
formData
.
cardExplain
,
holder
:
"请输入适用门店说明"
,
getByType
:
"word"
,
maxLength
:
50
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"cardExplain"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店"
,
prop
:
"applicationStoreType"
}},[
t
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
applicationStoreType
,
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"applicationStoreType"
,
a
)},
expression
:
"formData.applicationStoreType"
}},[
e
.
_v
(
"所有门店"
)])],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
label
:
"使用说明"
,
prop
:
"useDescript"
}},[
t
(
"limit-textarea"
,{
attrs
:{
inputWidth
:
450
,
inputValue
:
e
.
formData
.
useDescript
,
holder
:
"请输入使用说明"
,
getByType
:
"word"
,
maxLength
:
500
},
on
:{
"update:inputValue"
:
function
(
a
){
e
.
$set
(
e
.
formData
,
"useDescript"
,
a
)}}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
templateId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
templateId
?
e
.
_e
():
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
a
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
)])},
staticRenderFns
:[]};
var
u
=
t
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
t
(
"SjN3"
)},
"data-v-1e0215e4"
,
null
);
a
.
default
=
u
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
36653d3d9cd0be9a346e
.js
→
dist/static/js/manifest.
456fb8aeff1bbdd95387
.js
View file @
d680ecb8
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
72
:
0
};
function
d
(
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
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
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
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"1b3dd8d7db6ab8fe280c"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"8eb26935705e144eb957"
,
7
:
"eaa665744f1608c239f0"
,
8
:
"4dcb5fa3511260a1aae0"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"a80db569cdc6371bfcb4"
,
21
:
"3b62dd9c716d4bbba918"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"a4bce345e46c5afab175"
,
28
:
"65284e7ae64fa171aabc"
,
29
:
"485d7c81ce188c3fa687"
,
30
:
"6e3dad3ed142df770d0e"
,
31
:
"010ceac14b8c06871425"
,
32
:
"648e00249c751be0ef72"
,
33
:
"e35089c0ea4dc1809069"
,
34
:
"93b49282fdccc322c7b8"
,
35
:
"b7ed1be0435910e43e30"
,
36
:
"ac81ef630923456184e4"
,
37
:
"eb2f2f6d2d73849ad275"
,
38
:
"8aec5e96713c37c46fb0"
,
39
:
"c19143819ac6f819abe0"
,
40
:
"6ea7694ad3f4d6c00d8b"
,
41
:
"f45f5ebbca597b9a4070"
,
42
:
"1734759b03f37b29d76b"
,
43
:
"728c0abf2adf9945e458"
,
44
:
"01195ec3b8c74435d198"
,
45
:
"451e984fbc6d7f7867a1"
,
46
:
"5a2c0c8cf9627188e3fb"
,
47
:
"3502dd6e0efcd7fd750f"
,
48
:
"f1e620853a55eb6d232e"
,
49
:
"09c754c672ba5540342a"
,
50
:
"82a4e2fa4e310d83b850"
,
51
:
"3fd34d332c39c50a3a23"
,
52
:
"61afa1c3b438630f4851"
,
53
:
"e23426154a883644db3b"
,
54
:
"0357598ff47aaf886736"
,
55
:
"8a346e83243bd0555b4d"
,
56
:
"df8e2c9c0c60de417450"
,
57
:
"557afe6a35079d2e10c5"
,
58
:
"3f145f198ea2a6e8ed7e"
,
59
:
"069cc5b15c055fb63224"
,
60
:
"38d9b2e3096d6c26b466"
,
61
:
"0fa59f36f505fdc092c0"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
72
:
0
};
function
d
(
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
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
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
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"1b3dd8d7db6ab8fe280c"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"8eb26935705e144eb957"
,
7
:
"eaa665744f1608c239f0"
,
8
:
"4dcb5fa3511260a1aae0"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"a80db569cdc6371bfcb4"
,
21
:
"3b62dd9c716d4bbba918"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"58c7c6c2d8897eb7c474"
,
25
:
"9e5733792c18c643ff3a"
,
26
:
"dba4d3332f3dbc9d7649"
,
27
:
"a4bce345e46c5afab175"
,
28
:
"65284e7ae64fa171aabc"
,
29
:
"485d7c81ce188c3fa687"
,
30
:
"6e3dad3ed142df770d0e"
,
31
:
"010ceac14b8c06871425"
,
32
:
"648e00249c751be0ef72"
,
33
:
"e35089c0ea4dc1809069"
,
34
:
"93b49282fdccc322c7b8"
,
35
:
"b7ed1be0435910e43e30"
,
36
:
"ac81ef630923456184e4"
,
37
:
"eb2f2f6d2d73849ad275"
,
38
:
"8aec5e96713c37c46fb0"
,
39
:
"c19143819ac6f819abe0"
,
40
:
"6ea7694ad3f4d6c00d8b"
,
41
:
"f45f5ebbca597b9a4070"
,
42
:
"1734759b03f37b29d76b"
,
43
:
"728c0abf2adf9945e458"
,
44
:
"01195ec3b8c74435d198"
,
45
:
"451e984fbc6d7f7867a1"
,
46
:
"5a2c0c8cf9627188e3fb"
,
47
:
"3502dd6e0efcd7fd750f"
,
48
:
"f1e620853a55eb6d232e"
,
49
:
"09c754c672ba5540342a"
,
50
:
"82a4e2fa4e310d83b850"
,
51
:
"3fd34d332c39c50a3a23"
,
52
:
"61afa1c3b438630f4851"
,
53
:
"e23426154a883644db3b"
,
54
:
"0357598ff47aaf886736"
,
55
:
"8a346e83243bd0555b4d"
,
56
:
"df8e2c9c0c60de417450"
,
57
:
"557afe6a35079d2e10c5"
,
58
:
"3f145f198ea2a6e8ed7e"
,
59
:
"069cc5b15c055fb63224"
,
60
:
"38d9b2e3096d6c26b466"
,
61
:
"ec6402e5504ab1fa92d6"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/apps/protectCard/newCardTemp.vue
View file @
d680ecb8
...
@@ -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-28 10:4
0:49
* @LastEditTime: 2020-04-28 10:4
4:33
-->
-->
<
template
>
<
template
>
...
@@ -477,7 +477,7 @@ export default {
...
@@ -477,7 +477,7 @@ export default {
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
that
.
brandListData
=
resData
.
result
||
[];
that
.
brandListData
=
resData
.
result
||
[];
if
(
resData
.
result
.
length
)
{
if
(
resData
.
result
.
length
&&
!
that
.
$route
.
query
.
templateId
)
{
that
.
formData
.
gicEnterpriseId
=
resData
.
result
[
0
].
enterpriseId
;
that
.
formData
.
gicEnterpriseId
=
resData
.
result
[
0
].
enterpriseId
;
that
.
getChanel
();
that
.
getChanel
();
}
}
...
...
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