update: 定价编辑不需要计算金额 经营概况中显示保留整数

This commit is contained in:
admin 2024-06-18 15:57:20 +08:00
parent 4dbcdab87b
commit efc830622e
2 changed files with 8 additions and 7 deletions

View File

@ -22,7 +22,7 @@
<view v-for="(item, index) in gridList1" :key="index"> <view v-for="(item, index) in gridList1" :key="index">
<text v-if="item.name">{{ item.name }}</text <text v-if="item.name">{{ item.name }}</text
><text v-if="item.name" ><text v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 2) }} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0) }}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>
@ -33,7 +33,7 @@
<text v-if="item.name">{{ item.name }}</text <text v-if="item.name">{{ item.name }}</text
> >
<text :class="{'highLight': item.isHighLight || false}" v-if="item.name" <text :class="{'highLight': item.isHighLight || false}" v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, item.decimal) }} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0) }}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>
@ -43,7 +43,7 @@
<view v-for="(item, index) in gridList3" :key="index"> <view v-for="(item, index) in gridList3" :key="index">
<text>{{ item.name }}</text <text>{{ item.name }}</text
><text :class="item.isHighLight ? 'highLight' : ''" ><text :class="item.isHighLight ? 'highLight' : ''"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, item.decimal)}} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0)}}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>

View File

@ -550,10 +550,11 @@ watch(
model1.order.netWeight * ((100 - model1.order.subtractNum) / 100); model1.order.netWeight * ((100 - model1.order.subtractNum) / 100);
} }
} }
model1.order.totalPrice = // totalPrice
Math.round( // model1.order.totalPrice =
(model1.order.price || 0) * (model1.order.netWeight || 0) * 100 // Math.round(
) / 100; // (model1.order.price || 0) * (model1.order.netWeight || 0) * 100
// ) / 100;
// = // =
if (<number>model1.order.balanceTotalPrice <= 0) { if (<number>model1.order.balanceTotalPrice <= 0) {