<template>
|
<!-- 列表页面 -->
|
<view>
|
<view class="p15" style="min-height: calc(100vh - 260rpx);">
|
<no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
|
<view v-else class="m-b-24">
|
<view class="notice-item flex">
|
<view class="m-r-20">送货日期</view>
|
<view class="num m-l-15 m-r-10">数量</view>
|
<view class="price t-red m-l-0 m-r-a">汇总金额</view>
|
</view>
|
</view>
|
<view v-for="(item,index) in list" :key="index" class="m-b-24">
|
<view class="notice-item flex">
|
<view class="m-r-10">{{item.date}}</view>
|
<view class="num m-auto">{{item.num || 0}}</view>
|
<view class="price t-red m-auto">¥{{item.price || 0}}</view>
|
<view class="buttons m-l-a m-r-0">
|
<view @click.stop="toDetailFlower(item)" class="button button-1 m-r-0">
|
送货单
|
</view>
|
<view @click.stop="toDetailSettlement(item)" class="m-l-10 button button-0">
|
结算详情
|
</view>
|
</view>
|
|
</view>
|
</view>
|
</view>
|
|
<!-- 判断是否到底了,自动吧 -->
|
<footer-msg :more="page.total>0&&page.total>page.current*page.size"></footer-msg>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
query: {}
|
}
|
},
|
onLoad() {
|
this.listApi = '/api/supplier/delivery/mine/list'
|
this.getList()
|
|
},
|
onReachBottom() {
|
this.getMore()
|
},
|
async onPullDownRefresh() {
|
this.page.current = 1
|
await this.getList()
|
uni.stopPullDownRefresh()
|
},
|
methods: {
|
toDetailFlower(item) {
|
uni.navigateTo({
|
url: `/sub_pages/supplier/order-manage/order-manage-flower?day=${item.date}`
|
})
|
},
|
toDetailSettlement(item) {
|
uni.navigateTo({
|
url: `/sub_pages/supplier/order-manage/order-manage-settlement?day=${item.date}`
|
})
|
},
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.notice-item {
|
padding: 20rpx;
|
font-size: 28rpx;
|
font-weight: 600;
|
background-color: #fff;
|
line-height: 60rpx;
|
.buttons {
|
display: flex;
|
margin-left: auto;
|
width: fit-content;
|
|
.button {
|
// width: 216rpx;
|
padding: 10rpx 20rpx;
|
line-height: 34rpx;
|
font-size: 24rpx;
|
height: 34rpx;
|
background: #20613D;
|
text-align: center;
|
border-radius: 30rpx;
|
|
}
|
|
.button-1 {
|
background: #fff;
|
color: #333;
|
border: 2rpx solid #333;
|
|
}
|
|
.button-0 {
|
color: #fff;
|
border: 2rpx solid #20613D;
|
}
|
}
|
}
|
</style>
|