|
|
@@ -20,10 +20,13 @@
|
|
|
</view>
|
|
|
<view class="order-page">
|
|
|
<view class="order_list">
|
|
|
- <!-- 总欠款统计 -->
|
|
|
+ <!-- 总待结统计:金额与笔数均由接口全店汇总(与分页列表无关) -->
|
|
|
<view class="total-debt-header" v-if="isNormalList">
|
|
|
<text class="debt-title">总待结</text>
|
|
|
- <text class="debt-amount">¥{{Math.abs(parseFloat(info.totalDebtAmount || 0))}}</text>
|
|
|
+ <view class="debt-summary">
|
|
|
+ <text class="debt-count">{{info.totalDebtNum || 0}} 笔</text>
|
|
|
+ <text class="debt-amount">¥{{Math.abs(parseFloat(info.totalDebtAmount || 0))}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 列表内容 -->
|
|
|
@@ -256,10 +259,9 @@ export default {
|
|
|
}
|
|
|
return parseFloat(item.debtAmount || 0)
|
|
|
},
|
|
|
- // 是否有待结:以 debtNum 或待结金额为准
|
|
|
+ // 是否有待结:金额优先,避免「N 笔 0 元」仍展示
|
|
|
hasSupplierPending(item) {
|
|
|
- const debtNum = Number(item.debtNum || 0)
|
|
|
- return debtNum > 0 || this.supplierPendingAmount(item) > 0
|
|
|
+ return this.supplierPendingAmount(item) > 0
|
|
|
},
|
|
|
changeLocation(ghs){
|
|
|
let that = this
|
|
|
@@ -549,7 +551,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .debt-summary {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .debt-count {
|
|
|
+ font-size: 28upx;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+
|
|
|
.debt-amount {
|
|
|
+ margin-left: 16upx;
|
|
|
font-size: 34upx;
|
|
|
color: #ff4d4f;
|
|
|
font-weight: bold;
|