update: 定价编辑不需要计算金额 经营概况中显示保留整数
This commit is contained in:
parent
4dbcdab87b
commit
efc830622e
|
@ -22,7 +22,7 @@
|
|||
<view v-for="(item, index) in gridList1" :key="index">
|
||||
<text v-if="item.name">{{ item.name }}:</text
|
||||
><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 }}
|
||||
</text>
|
||||
</view>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<text v-if="item.name">{{ item.name }}:</text
|
||||
>
|
||||
<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 }}
|
||||
</text>
|
||||
</view>
|
||||
|
@ -43,7 +43,7 @@
|
|||
<view v-for="(item, index) in gridList3" :key="index">
|
||||
<text>{{ item.name }}:</text
|
||||
><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 }}
|
||||
</text>
|
||||
</view>
|
||||
|
|
|
@ -550,10 +550,11 @@ watch(
|
|||
model1.order.netWeight * ((100 - model1.order.subtractNum) / 100);
|
||||
}
|
||||
}
|
||||
model1.order.totalPrice =
|
||||
Math.round(
|
||||
(model1.order.price || 0) * (model1.order.netWeight || 0) * 100
|
||||
) / 100;
|
||||
// 定价的时候不对totalPrice 进行处理
|
||||
// model1.order.totalPrice =
|
||||
// Math.round(
|
||||
// (model1.order.price || 0) * (model1.order.netWeight || 0) * 100
|
||||
// ) / 100;
|
||||
|
||||
// 货款金额默认=预估总价,当系统自动算出预估总价时,值需同步
|
||||
if (<number>model1.order.balanceTotalPrice <= 0) {
|
||||
|
|
Loading…
Reference in New Issue