更新订单管理结算金额
This commit is contained in:
parent
7ffeadfa4d
commit
fcc75803ef
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view style="padding-bottom: 30rpx;">
|
||||||
<view class="order-index" ref="container">
|
<view class="order-index" ref="container">
|
||||||
<view class="header acea-row">
|
<view class="header acea-row">
|
||||||
<navigator class="item" :url="`/pages/admin/orderList/index?types=1&merId=${mer_id}`"
|
<navigator class="item" :url="`/pages/admin/orderList/index?types=1&merId=${mer_id}`"
|
||||||
|
@ -80,11 +80,11 @@
|
||||||
<view class="turnover">结算金额</view>
|
<view class="turnover">结算金额</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="conter">
|
<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="data">{{ item.day }}</view>
|
||||||
<view class="browse">{{ item.total }}</view>
|
<view class="browse">{{ item.total }}</view>
|
||||||
<view class="turnover">{{ item.pay_price }}</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -270,7 +270,21 @@
|
||||||
this.OrderList = res.data
|
this.OrderList = res.data
|
||||||
// console.log(this.OrderList);
|
// 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() {
|
onReachBottom() {
|
||||||
this.getList(this.mer_id)
|
this.getList(this.mer_id)
|
||||||
|
|
|
@ -263,7 +263,8 @@
|
||||||
limit: 10,
|
limit: 10,
|
||||||
status: 1,
|
status: 1,
|
||||||
search_info: '',
|
search_info: '',
|
||||||
product_type: ''
|
product_type: '',
|
||||||
|
pay_time: null,
|
||||||
},
|
},
|
||||||
list: [],
|
list: [],
|
||||||
loaded: false,
|
loaded: false,
|
||||||
|
@ -292,6 +293,9 @@
|
||||||
this.where.status = option.types
|
this.where.status = option.types
|
||||||
this.current = "";
|
this.current = "";
|
||||||
this.merId = option.merId;
|
this.merId = option.merId;
|
||||||
|
if(option.pay_time){
|
||||||
|
this.where.pay_time = option.pay_time;
|
||||||
|
}
|
||||||
|
|
||||||
this.getIndex();
|
this.getIndex();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue