This commit is contained in:
曹辉 2023-04-13 13:31:06 +08:00
parent fbef18d095
commit d13e680e7c

View File

@ -341,12 +341,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>
@ -354,12 +353,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>