修改商品数量可为小数
This commit is contained in:
@@ -120,13 +120,14 @@
|
|||||||
<el-table-column label="采购数量" align="center" prop="count" width="100">
|
<el-table-column label="采购数量" align="center" prop="count" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.count" clearable placeholder=""
|
<el-input v-model="scope.row.count" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" @input="calculation(scope.row,'count')" />
|
oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
|
||||||
|
@input="calculation(scope.row,'count')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量(pcs)" prop="pcsCount" align="center" width="100">
|
<el-table-column label="数量(pcs)" prop="pcsCount" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.pcsCount" clearable placeholder=""
|
<el-input v-model="scope.row.pcsCount" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" />
|
oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="数量(pcs)" prop="pcsNum" width="120" align="center" /> -->
|
<!-- <el-table-column label="数量(pcs)" prop="pcsNum" width="120" align="center" /> -->
|
||||||
|
|||||||
Reference in New Issue
Block a user