提成比例限制0-1之间
This commit is contained in:
parent
c3b9b6ed07
commit
17d5dd8d6b
|
|
@ -239,20 +239,20 @@
|
|||
@click="handleDelete(scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
style="margin: 5px"
|
||||
@click="showBuyView(scope.row)"
|
||||
>购买
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
style="margin: 5px"
|
||||
@click="showPayView()"
|
||||
>支付
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="danger"-->
|
||||
<!-- style="margin: 5px"-->
|
||||
<!-- @click="showBuyView(scope.row)"-->
|
||||
<!-- >购买-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="danger"-->
|
||||
<!-- style="margin: 5px"-->
|
||||
<!-- @click="showPayView()"-->
|
||||
<!-- >支付-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
|||
|
|
@ -92,13 +92,13 @@
|
|||
@click="showPackageView(scope.row)"
|
||||
>服务包
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status==1"
|
||||
size="mini"
|
||||
type="danger"
|
||||
style="margin: 5px"
|
||||
@click="showRefundView(scope.row)"
|
||||
>退款
|
||||
</el-button>
|
||||
<!-- <el-button v-if="scope.row.status==1"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="danger"-->
|
||||
<!-- style="margin: 5px"-->
|
||||
<!-- @click="showRefundView(scope.row)"-->
|
||||
<!-- >退款-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例:</span>
|
||||
<el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%">
|
||||
<el-input style="width:50%;" v-model="rate" type="number" :min="0" :max="1" :step="0.01" placeholder="请输入商家抽成比例,例如:0.1为10%">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;">
|
||||
|
|
@ -232,7 +232,7 @@
|
|||
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例:</span>
|
||||
<el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%">
|
||||
<el-input style="width:50%;" v-model="rate" type="number" :min="0" :max="1" :step="0.01" placeholder="请输入商家抽成比例,例如:0.1为10%">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;">
|
||||
|
|
@ -679,6 +679,18 @@ import { serverPaths } from '@/utils/enumData'
|
|||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}else {
|
||||
alert(this.rate);
|
||||
console.log(this.rate);
|
||||
}
|
||||
if (this.rate < 0 || this.rate > 1) {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
duration: 1800,
|
||||
message: '抽成比例只能设置0-1之间的数字',
|
||||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}
|
||||
if (this.phone === '') {
|
||||
this.$notify({
|
||||
|
|
@ -863,6 +875,15 @@ import { serverPaths } from '@/utils/enumData'
|
|||
});
|
||||
return
|
||||
}
|
||||
if (this.rate < 0 || this.rate > 1) {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
duration: 1800,
|
||||
message: '抽成比例只能设置0-1之间的数字',
|
||||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}
|
||||
if (this.phone === '') {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
|
|
|
|||
|
|
@ -325,7 +325,8 @@
|
|||
</el-button>
|
||||
<el-button size="mini" type="danger" :disabled="!isAuth('orderCenter:wancheng')" v-if="scope.row.status==2||scope.row.status==6||scope.row.status==7||scope.row.status==8"
|
||||
@click="wancheng(scope.row)" style="margin:5px;" plain>完成订单</el-button>
|
||||
<el-button style="margin:5px;" size="mini" type="warning" icon="document" :disabled="!isAuth('orderCenter:quxiao')" v-if="scope.row.status==7||scope.row.status==8" @click="quxiaoBtn(scope.row)" plain>取消订单
|
||||
<!-- <el-button style="margin:5px;" size="mini" type="warning" icon="document" :disabled="!isAuth('orderCenter:quxiao')" v-if="scope.row.status==7||scope.row.status==8" @click="quxiaoBtn(scope.row)" plain>取消订单-->
|
||||
<el-button style="margin:5px;" size="mini" type="warning" icon="document" :disabled="!isAuth('orderCenter:quxiao')" @click="quxiaoBtn(scope.row)" plain>取消订单
|
||||
</el-button>
|
||||
<el-button style="margin:5px;" size="mini" type="warning" icon="document" :disabled="!isAuth('orderCenter:tuikuan')" @click="tuikuanBtn(scope.row)" v-if="scope.row.status!=1&&scope.row.status!=4&&scope.row.status!=3&&scope.row.status!=5">退全款
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -1227,7 +1227,7 @@
|
|||
<el-dialog :title="titleBl" :visible.sync="dialogFormVisible2" center>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">比例:</span>
|
||||
<el-input style="width:50%;" v-model="proportion" type="number" :min="0" :controls="false"
|
||||
<el-input style="width:50%;" v-model="proportion" type="number" :min="0" :max="1" :step="0.01" :controls="false"
|
||||
:placeholder="titleBl"></el-input>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
|
|
@ -1972,6 +1972,24 @@ import { serverPaths } from '@/utils/enumData'
|
|||
this.dialogFormVisible2 = true
|
||||
},
|
||||
StairNoticeTo2() {
|
||||
if (this.proportion === '') {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
duration: 1800,
|
||||
message: '请输入抽成比例',
|
||||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}
|
||||
if (this.proportion < 0 || this.proportion > 1) {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
duration: 1800,
|
||||
message: '抽成比例只能设置0-1之间的数字',
|
||||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}
|
||||
var datas = {}
|
||||
if (this.texts == 'userRate') {
|
||||
datas.userRate = this.proportion
|
||||
|
|
|
|||
Loading…
Reference in New Issue