Commit 3439ecac authored by rencs's avatar rencs

10.21 比例

parent c76daee9
......@@ -110,35 +110,46 @@
</el-form-item>
<el-row v-if="dialogFrom.type == 66">
<el-col :span="12">
<el-col :span="24">
<el-form-item label="收车服务费">
<el-input
v-model="dialogFrom.closedVehicleAmout"
<el-input-number
:min="0"
:precision="2"
:step="0.01"
v-model="closedVehicleAmout"
placeholder="请输入收车服务费"
></el-input>
<span style="color: #bfcbd9"></span>
></el-input-number>
<span style="color: #bfcbd9">收车服务费(输入具体金额)</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="dialogFrom.type == 66">
<el-col :span="12">
<el-col :span="24">
<el-form-item label="平台抽成比">
<el-input
v-model="dialogFrom.orderExtract"
<el-input-number
:min="0"
:max="100"
:step="1"
:precision="0"
v-model="orderExtract"
placeholder="请输入平台抽成比例"
></el-input>
<span style="color: #bfcbd9"></span>
></el-input-number>
<span style="color: #bfcbd9">平台抽成比例(输入百分比)</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="dialogFrom.type == 66">
<el-col :span="12">
<el-col :span="24">
<el-form-item label="订单抽成比">
<el-input
v-model="dialogFrom.platformExtract"
<el-input-number
:min="0"
:max="100"
:step="1"
:precision="0"
v-model="platformExtract"
placeholder="请输入订单抽成比例"
></el-input>
<span style="color: #bfcbd9"></span>
></el-input-number>
<span style="color: #bfcbd9">订单抽成比例(输入百分比)</span>
</el-form-item>
</el-col>
</el-row>
......@@ -347,6 +358,9 @@ export default {
withdrawWay: 1,
params: "",
},
closedVehicleAmout: 0,
orderExtract: 0,
platformExtract: 0,
rules: {
title: {
type: "string",
......@@ -455,16 +469,14 @@ export default {
this.dialogVisible = true;
this.cleanDialogFrom();
typeof row.params == "object" ? delete row.params : row;
this.dialogFrom = row;
if (row.type == 66) {
this.dialogFrom.closedVehicleAmout = JSON.parse(
row.params
).closedVehicleAmout;
this.dialogFrom.orderExtract = JSON.parse(row.params).orderExtract;
this.dialogFrom.platformExtract = JSON.parse(
row.params
).platformExtract;
this.closedVehicleAmout = JSON.parse(row.params).closedVehicleAmout;
this.orderExtract = JSON.parse(row.params).orderExtract;
this.platformExtract = JSON.parse(row.params).platformExtract;
}
this.dialogFrom = row;
this.activeName2 = "first";
},
......@@ -550,7 +562,7 @@ export default {
value: this.dialogFrom.value,
params: this.dialogFrom.params,
};
if (this.dialogFrom.type == 88) {
if (this.dialogFrom.type == 88 || this.dialogFrom.type == 66) {
//提现规则
let p = {
minAmount: this.dialogFrom.minAmount,
......@@ -560,6 +572,9 @@ export default {
maxNumberOfMonth: this.dialogFrom.maxNumberOfMonth,
maxNumberOfDay: this.dialogFrom.maxNumberOfDay,
withdrawWay: this.dialogFrom.withdrawWay,
closedVehicleAmout: this.closedVehicleAmout,
orderExtract: this.orderExtract,
platformExtract: this.platformExtract,
};
params.params = JSON.stringify(p);
} else {
......@@ -605,7 +620,7 @@ export default {
value: this.dialogFrom.value,
params: this.dialogVisible.params,
};
if (this.dialogFrom.type == 88) {
if (this.dialogFrom.type == 88 || this.dialogFrom.type == 66) {
//提现规则
let p = {
minAmount: this.dialogFrom.minAmount,
......@@ -615,6 +630,9 @@ export default {
maxNumberOfMonth: this.dialogFrom.maxNumberOfMonth,
maxNumberOfDay: this.dialogFrom.maxNumberOfDay,
withdrawWay: this.dialogFrom.withdrawWay,
closedVehicleAmout: this.closedVehicleAmout,
orderExtract: this.orderExtract,
platformExtract: this.platformExtract,
};
params.params = JSON.stringify(p);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment