Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 943a0449
authored
Mar 31, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
日期传参形式,提交返回,批量提交picker值绑定,提交失败和成功提示
1 parent
84b1b65a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
163 additions
and
149 deletions
src/views/customer/collectionManagement/index.vue
src/views/customer/newEquityCard/index.vue
src/views/customer/rightsCardManagement/index.vue
src/views/customer/collectionManagement/index.vue
View file @
943a044
This diff is collapsed.
Click to expand it.
src/views/customer/newEquityCard/index.vue
View file @
943a044
<!-- -->
<
template
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"200px"
class=
"demo-ruleForm"
label-position=
"right"
>
<div
class=
"baseinformation"
>
基础信息
</div>
<div
class=
"itemContainer"
>
<el-form-item
label=
"权益卡名称:"
prop=
"name"
>
<el-input
v-model=
"ruleForm.name"
style=
"width: 60%"
></el-input>
</el-form-item>
<el-form-item
label=
"权益卡说明:"
prop=
"explain"
>
<el-input
type=
"textarea"
v-model=
"ruleForm.explain"
style=
"width: 60%"
></el-input>
</el-form-item>
<el-form-item
label=
"套餐有效期:"
prop=
"validity"
>
领卡时起
<el-input-number
v-model=
"ruleForm.validity"
controls-position=
"right"
:min=
"0"
:max=
"10"
size=
"mini"
></el-input-number>
月内有效
</el-form-item>
</div>
<div>
权益配置
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.currencyCheckbox"
>
停驶返嘀币
</el-checkbox>
</el-form-item>
<el-form-item
label=
"返嘀币(每小时):"
prop=
"currencyInpution"
>
<el-input
v-model=
"ruleForm.currencyInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.currencyCheckbox"
></el-input>
个
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.oilCheckbox"
>
加油无忧
</el-checkbox>
</el-form-item>
<el-form-item
label=
"油站推荐半径:"
prop=
"oilInpution"
>
<el-input
v-model=
"ruleForm.oilInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
></el-input>
公里
</el-form-item>
<el-form-item
label=
"加油优惠推送最长间隔 :"
prop=
"timeInpution"
>
<el-input
v-model=
"ruleForm.timeInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
></el-input>
天
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.worryFreeCheckbox"
>
出险无忧
</el-checkbox>
</el-form-item>
<el-form-item
label=
"启用碰撞推送:"
prop=
"pushCollision"
>
<el-switch
v-model=
"ruleForm.pushCollision"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
:disabled=
"!ruleForm.worryFreeCheckbox"
<div
class=
"container"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"200px"
class=
"demo-ruleForm"
label-position=
"right"
>
<div
class=
"baseinformation"
>
基础信息
</div>
<div
class=
"itemContainer"
>
<el-form-item
label=
"权益卡名称:"
prop=
"name"
>
</el-switch>
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.specialOfferCheckbox"
>
特惠商品
</el-checkbox>
</el-form-item>
<el-form-item
label=
"嘀币返利比例(%):"
prop=
"rebateRatio"
>
<el-input
v-model=
"ruleForm.rebateRatio"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.specialOfferCheckbox"
></el-input>
</el-form-item>
<el-input
v-model=
"ruleForm.name"
style=
"width: 60%"
></el-input>
</el-form-item>
<el-form-item
label=
"权益卡说明:"
prop=
"explain"
>
<el-input
type=
"textarea"
v-model=
"ruleForm.explain"
style=
"width: 60%"
></el-input>
</el-form-item>
<el-form-item
label=
"套餐有效期:"
prop=
"validity"
>
领卡时起
<el-input-number
v-model=
"ruleForm.validity"
controls-position=
"right"
:min=
"0"
:max=
"10"
size=
"mini"
></el-input-number>
月内有效
</el-form-item>
</div>
<div>
权益配置
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.currencyCheckbox"
>
停驶返嘀币
</el-checkbox>
</el-form-item>
<el-form-item
label=
"返嘀币(每小时):"
prop=
"currencyInpution"
>
<el-input
v-model=
"ruleForm.currencyInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.currencyCheckbox"
></el-input>
个
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.oilCheckbox"
>
加油无忧
</el-checkbox>
</el-form-item>
<el-form-item
label=
"油站推荐半径:"
prop=
"oilInpution"
>
<el-input
v-model=
"ruleForm.oilInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
></el-input>
公里
</el-form-item>
<el-form-item
label=
"加油优惠推送最长间隔 :"
prop=
"timeInpution"
>
<el-input
v-model=
"ruleForm.timeInpution"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
></el-input>
天
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.worryFreeCheckbox"
>
出险无忧
</el-checkbox>
</el-form-item>
<el-form-item
label=
"启用碰撞推送:"
prop=
"pushCollision"
>
<el-switch
v-model=
"ruleForm.pushCollision"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
:disabled=
"!ruleForm.worryFreeCheckbox"
>
</el-switch>
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.specialOfferCheckbox"
>
特惠商品
</el-checkbox>
</el-form-item>
<el-form-item
label=
"嘀币返利比例(%):"
prop=
"rebateRatio"
>
<el-input
v-model=
"ruleForm.rebateRatio"
size=
"middle"
style=
"width: 60%"
:disabled=
"!ruleForm.specialOfferCheckbox"
></el-input>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.rescueCheckbox"
>
救援无忧
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.creditCheckbox"
>
微众车主信用分期
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.meituanCheckbox"
>
美团外卖,天天好劵
</el-checkbox>
</el-form-item>
</div>
<div
class=
"buttonContainer"
>
<el-button
size=
"middle"
>
取消
</el-button>
<el-button
size=
"middle"
type=
"primary"
@
click=
"jump"
>
提交
</el-button>
</div>
</el-form>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.rescueCheckbox"
>
救援无忧
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.creditCheckbox"
>
微众车主信用分期
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.meituanCheckbox"
>
美团外卖,天天好劵
</el-checkbox>
</el-form-item>
</div>
<div
class=
"buttonContainer"
>
<el-button
size=
"middle"
>
取消
</el-button>
<el-button
:plain=
"true"
size=
"middle"
@
click=
"jump"
type=
"primary"
>
提交
</el-button>
</div>
</el-form>
</div>
</
template
>
<
script
>
...
...
@@ -235,6 +238,7 @@ export default {
// creditInstallment: this.ruleForm.creditInstallment + '',
// meiTuan: this.ruleForm.meiTuan + ''
// }
}
if
(
this
.
ruleForm
.
currencyCheckbox
)
{
...
...
@@ -279,9 +283,18 @@ export default {
equityItemJson
:
JSON
.
stringify
(
equityItemJson
)
})
}
insertMemberCardDefineRf
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
>
0
)
{
window
.
history
.
go
(
-
1
)
}
else
{
this
.
$message
({
message
:
'增添失败!'
,
type
:
'error'
})
}
})
}
// inableInpution(checkStatus, inputStatus) {
...
...
@@ -301,6 +314,10 @@ export default {
margin
:
0
;
border
:
0
;
}
.container
{
overflow-y
:
scroll
;
height
:
900px
;
}
.itemContainer
{
margin-left
:
20px
;
margin-top
:
20px
;
...
...
src/views/customer/rightsCardManagement/index.vue
View file @
943a044
...
...
@@ -77,16 +77,12 @@ export default {
},
{
label
:
'状态'
,
prop
:
'status'
// formatter: (cellValue) => {
// return {
// 0: '进行中',
// 1: '未完成',
// 2: '已过期',
// 3: '线下关闭',
// 4: '线上关闭'
// }[cellValue.status]
// }
prop
:
'status'
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
'正常'
,
}[
cellValue
.
status
]
}
},
{
...
...
@@ -104,7 +100,8 @@ export default {
},
methods
:
{
addCard
()
{
window
.
location
.
href
=
'http://glsx-oss-equity2.frontend.test.glsx.com.cn/customer/newEquityCard.html'
// window.location.href = 'http://glsx-oss-equity2.frontend.test.glsx.com.cn/customer/newEquityCard.html'
window
.
location
.
href
=
'http://192.168.1.158:8085/customer/newEquityCard.html'
}
// handleEdit() {
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment