This commit is contained in:
曹辉 2023-04-13 13:30:54 +08:00
parent cdf7830c88
commit 75e0ee4dfb

View File

@ -322,12 +322,11 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.commissionAmount"
maxlength="8"
placeholder="最多小数点后两位(元)"
@focus="commissionAmountinput(scope.row)"
type="number"
min="0"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)}"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 8) { value = value.slice(0,8) }"
></el-input>
</template>
</el-table-column>
@ -335,12 +334,11 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.commissionRate"
maxlength="4"
@focus="commissionRateoninput(scope.row)"
placeholder="最多小数点后两位(%)"
type="number"
min="0"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} "
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 4) { value = value.slice(0,4) }"
></el-input>
</template>
</el-table-column>