Commit 1e67e3e5 authored by dragondean@qq.com's avatar dragondean@qq.com

批量加价不能有小数

parent ab00143c
......@@ -12,7 +12,7 @@
<selector :disabled="approval" v-model="form.freightUnitId" :options="unitList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
</div>
<div class="mt-10">
{{$t('清关费加价')}}
{{$t('清关费加价')}}
<!--货币-->
<selector :disabled="approval" v-model="form.clearanceCurrencyId" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
<!--金额-->
......@@ -273,9 +273,8 @@ export default {
methods:{
// 检查正数
checkPositive(object, field){
object[field] = parseInt(object[field])
if(isNaN(object[field]) || object[field] < 0) object[field] = ''
else object[field] = object[field].toString()
object[field] = parseFloat(object[field])
object[field] = isNaN(object[field]) ? '' : object[field].toString()
},
// 表格多选
handleSelectionChange(selection) {
......
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