Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 4fd138a0
authored
Feb 07, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户管理-财务添加字段
1 parent
43d696c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
53 deletions
src/views/systemConfig/merchantDetail.vue
src/views/systemConfig/merchantDetail.vue
View file @
4fd138a
...
...
@@ -102,15 +102,15 @@
</el-form-item>
<el-form-item
label=
"阳光激励费"
prop=
"incentive
Cost
"
prop=
"incentive
Value
"
>
<el-input
size=
"mini"
v-model=
"form.incentive
Cost
"
v-model=
"form.incentive
Value
"
placeholder=
"请输入阳光激励费"
class=
"input-with-select"
style=
"width: 240px;"
@
input=
"handle
IncentiveCost
"
@
input=
"handle
incentiveValue
"
>
<el-select
slot=
"prepend"
...
...
@@ -219,7 +219,7 @@ export default {
partnerProfitPer
:
''
,
merchantProfitValue
:
''
,
incentiveType
:
1
,
incentive
Cost
:
''
incentive
Value
:
''
},
adminInfo
:
{
name
:
''
,
...
...
@@ -241,7 +241,7 @@ export default {
merchantProfitType
:
[
{
required
:
true
,
message
:
'请选择结算比例'
,
trigger
:
'change'
}
],
incentive
Cost
:
[
incentive
Value
:
[
{
required
:
true
,
message
:
'请输入阳光激励费'
,
trigger
:
'change'
}
],
partnerProfitType
:
[
...
...
@@ -272,7 +272,7 @@ export default {
confLabel
:
'金额'
}],
oldVal
:
{
incentive
Cost
:
''
incentive
Value
:
''
}
}
},
...
...
@@ -331,63 +331,65 @@ export default {
})
},
handle
IncentiveCost
(
newVal
)
{
this
.
form
.
incentive
Cost
=
this
.
form
.
incentiveType
===
1
?
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveCost
,
3
,
0
,
0
,
100
)
:
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveCost
,
6
,
2
)
this
.
oldVal
.
incentive
Cost
=
this
.
form
.
incentiveCost
handle
incentiveValue
(
newVal
)
{
this
.
form
.
incentive
Value
=
this
.
form
.
incentiveType
===
1
?
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveValue
,
3
,
0
,
0
,
100
)
:
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveValue
,
6
,
2
)
this
.
oldVal
.
incentive
Value
=
this
.
form
.
incentiveValue
},
handleChangeType
()
{
this
.
form
.
incentive
Cost
=
''
this
.
oldVal
.
incentive
Cost
=
''
this
.
form
.
incentive
Value
=
''
this
.
oldVal
.
incentive
Value
=
''
},
onSubmit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
const
form
=
this
.
form
const
params
=
{
merchantId
:
this
.
merchantId
,
channelType
:
this
.
channelType
,
smsCode
:
form
.
smsCode
}
if
(
form
.
autoFlag
)
{
params
.
autoFlag
=
form
.
autoFlag
}
if
(
form
.
settleTimeType
)
{
params
.
settleTimeType
=
form
.
settleTimeType
}
if
(
form
.
settleAmountType
)
{
params
.
settleAmountType
=
form
.
settleAmountType
}
if
(
form
.
merchantSettleType
)
{
params
.
merchantSettleType
=
form
.
merchantSettleType
}
// if (valid) {
const
form
=
this
.
form
const
params
=
{
merchantId
:
this
.
merchantId
,
channelType
:
this
.
channelType
,
smsCode
:
form
.
smsCode
}
if
(
form
.
merchantProfitType
===
1
)
{
params
.
merchantProfitValue
=
form
.
merchantProfitValue
}
else
{
params
.
merchantProfitValue
=
-
1
}
if
(
form
.
autoFlag
)
{
params
.
autoFlag
=
form
.
autoFlag
}
if
(
form
.
settleTimeType
)
{
params
.
settleTimeType
=
form
.
settleTimeType
}
if
(
form
.
settleAmountType
)
{
params
.
settleAmountType
=
form
.
settleAmountType
}
if
(
form
.
merchantSettleType
)
{
params
.
merchantSettleType
=
form
.
merchantSettleType
}
if
(
form
.
partner
ProfitType
===
1
)
{
params
.
partnerProfitPer
=
form
.
partnerProfitPer
}
else
{
params
.
partnerProfitPer
=
-
1
}
if
(
form
.
merchant
ProfitType
===
1
)
{
params
.
merchantProfitValue
=
form
.
merchantProfitValue
}
else
{
params
.
merchantProfitValue
=
-
1
}
updateRule
(
params
).
then
((
res
)
=>
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
})
this
.
close
({
tagName
:
'/merchantManage'
})
this
.
$router
.
push
({
name
:
'merchantManage'
})
})
if
(
form
.
partnerProfitType
===
1
)
{
params
.
partnerProfitPer
=
form
.
partnerProfitPer
}
else
{
console
.
log
(
'error submit!!'
)
return
false
params
.
partnerProfitPer
=
-
1
}
if
(
form
.
incentiveType
)
params
.
incentiveType
=
form
.
incentiveType
if
(
form
.
incentiveValue
)
params
.
incentiveValue
=
form
.
incentiveValue
console
.
log
(
params
)
// updateRule(params).then((res) => {
// this.$message({
// message: '修改成功',
// type: 'success'
// })
// this.close({ tagName: '/merchantManage' })
// this.$router.push({
// name: 'merchantManage'
// })
// })
// } else {
// console.log('error submit!!')
// return false
// }
})
},
onCancel
()
{
...
...
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