Commit 5bfa579a authored by jingnan's avatar jingnan 👀

验收单重量允许填小数

parent 3410a01b
...@@ -96,9 +96,9 @@ ...@@ -96,9 +96,9 @@
:disabled="allDisabled" :disabled="allDisabled"
type="number" type="number"
placeholder="请输入重量" placeholder="请输入重量"
onkeyup="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');"
onafterpaste="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');"
> >
<!-- onkeyup="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');"
onafterpaste="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');" -->
<template slot="append">Kg</template> <template slot="append">Kg</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="重量" label-width="100px"> <el-form-item label="重量" label-width="100px">
<el-input v-model="form.weight" type="number" :disabled="allDisabled" placeholder="请输入重量" clearable onkeyup="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');" onafterpaste="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');"> <!-- <el-input v-model="form.weight" type="number" :disabled="allDisabled" placeholder="请输入重量" clearable onkeyup="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');" onafterpaste="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3');"> -->
<el-input v-model="form.weight" type="number" :disabled="allDisabled" placeholder="请输入重量" clearable>
<template slot="append">Kg</template> <template slot="append">Kg</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment