更新订单管理结算金额
This commit is contained in:
parent
7ffeadfa4d
commit
fcc75803ef
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view>
|
||||
<view style="padding-bottom: 30rpx;">
|
||||
<view class="order-index" ref="container">
|
||||
<view class="header acea-row">
|
||||
<navigator class="item" :url="`/pages/admin/orderList/index?types=1&merId=${mer_id}`"
|
||||
|
@ -80,11 +80,11 @@
|
|||
<view class="turnover">结算金额</view>
|
||||
</view>
|
||||
<view class="conter">
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item, index) in list" :key="index">
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item, index) in list" :key="index" @click="navToOrder(item)">
|
||||
<view class="data">{{ item.day }}</view>
|
||||
<view class="browse">{{ item.total }}</view>
|
||||
<view class="turnover">{{ item.pay_price }}</view>
|
||||
<view class="turnover">{{ item.pay_price }}</view>
|
||||
<view class="turnover">{{ toFixed2(item.settlement_price) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -270,6 +270,20 @@
|
|||
this.OrderList = res.data
|
||||
// console.log(this.OrderList);
|
||||
})
|
||||
},
|
||||
// 保留两位小数
|
||||
toFixed2(num){
|
||||
let str = num;
|
||||
if(typeof num =='string'){
|
||||
str = +str;
|
||||
str = str.toFixed(2);
|
||||
}else str = str.toFixed(2);
|
||||
return str || '0.00';
|
||||
},
|
||||
navToOrder(item){
|
||||
uni.navigateTo({
|
||||
url: `/pages/admin/orderList/index?merId=${this.mer_id}&types=2&pay_time=${item.pay_time.split(' ')[0]}`
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
|
|
@ -263,7 +263,8 @@
|
|||
limit: 10,
|
||||
status: 1,
|
||||
search_info: '',
|
||||
product_type: ''
|
||||
product_type: '',
|
||||
pay_time: null,
|
||||
},
|
||||
list: [],
|
||||
loaded: false,
|
||||
|
@ -292,6 +293,9 @@
|
|||
this.where.status = option.types
|
||||
this.current = "";
|
||||
this.merId = option.merId;
|
||||
if(option.pay_time){
|
||||
this.where.pay_time = option.pay_time;
|
||||
}
|
||||
|
||||
this.getIndex();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue