称重钱保留后两位

This commit is contained in:
魏啾
2024-12-06 10:35:56 +08:00
parent 85d5d59863
commit 38b640e82b

View File

@@ -31,7 +31,7 @@
<button @click="deleteLast"></button> <button @click="deleteLast"></button>
</view> </view>
<view class="classmoney"> <view class="classmoney">
{{ form.goods.lowPrice * currentInput }} {{ (form.goods.lowPrice * currentInput).toFixed(2) }}
</view> </view>
<view class="classconfirm" @click="clickconfirm"> <view class="classconfirm" @click="clickconfirm">
确认 确认
@@ -90,8 +90,10 @@
// 首位不能输入0 // 首位不能输入0
if (currentInput.value === '') { if (currentInput.value === '') {
uni.showToast({ uni.showToast({
title: '请输入' title: '请输入',
icon:'none'
}) })
return false;
} }
emit('weighgoodsUpdate', form.foodsindex, form.index, true, '', currentInput.value) emit('weighgoodsUpdate', form.foodsindex, form.index, true, '', currentInput.value)
overlayshow.value = false overlayshow.value = false