价格 修改

This commit is contained in:
shidongli 2022-11-24 16:04:50 +08:00
parent a96866f2bf
commit 61362dfe05
2 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,7 @@
<el-table-column label="商品单价" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.goodsPrice"
type="number"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"

View File

@ -323,6 +323,7 @@
<el-table-column property="price" label="价格" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.price"
placeholder="小数点后两位(元)"
type="number"