|
|
@ -1,22 +1,25 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view> |
|
|
<view> |
|
|
<u-alert description="点击可跳转至入库单" type="primary"></u-alert> |
|
|
<u-alert description="点击可跳转至入库单" type="primary"></u-alert> |
|
|
<u-cell-group :title="consigneeName" :customStyle="{'background-color':'#ffffff'}"> |
|
|
<view class="ulList" v-if="list.length > 0"> |
|
|
<u-cell clickable |
|
|
<ul> |
|
|
v-for="(item,indx) in list" :key="indx" :label="item.createTime" > |
|
|
<li v-for="item in list" @tap="gotoDetail(item.id)"> |
|
|
<view slot="title" class="u-slot-title"> |
|
|
<uni-card :title="item.id" :sub-title="item.createTime" :extra="'共'+item.totalAmount + '件'" |
|
|
<view class="u-cell-text">销售金额:{{ item.totalAmount }}</view> |
|
|
thumbnail="/static/images/dingdan/dd1.png"> |
|
|
<view class="u-cell-text"> 应付金额:{{ item.shouldPay }}</view> |
|
|
<view class="uni-body"><text class="cardText">销售员:</text> {{item.createBy}}</view> |
|
|
|
|
|
<view class="uni-body"> <text class="cardText"> 总成本:</text> <text class="priceText"> |
|
|
|
|
|
{{item.shouldPay}} </text> <text decode class="cardText"> |
|
|
|
|
|
{{' 欠款: '}} </text> <text class="priceText">{{item.noPay}} |
|
|
|
|
|
</text></view> |
|
|
|
|
|
<view class="uni-body"> <text class="cardText"> |
|
|
|
|
|
订单状态:</text>{{item.inStorageStatus == 0 ?'未入库' :'已入库'}} |
|
|
</view> |
|
|
</view> |
|
|
<view slot="value" class="right"> |
|
|
</uni-card> |
|
|
<view class="u-cell-text">已付:{{ item.alreadyPay }}</view> |
|
|
</li> |
|
|
<view class="u-cell-text"> 未付:{{ item.noPay }}</view> |
|
|
</ul> |
|
|
|
|
|
<u-loadmore :status="status" /> |
|
|
</view> |
|
|
</view> |
|
|
<view slot="right-icon"> |
|
|
<u-empty v-else mode="order" margin-top="200"></u-empty> |
|
|
<u-button type="primary" size="mini" text="回款"></u-button> |
|
|
|
|
|
</view> |
|
|
|
|
|
</u-cell> |
|
|
|
|
|
</u-cell-group> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
@ -33,9 +36,18 @@ export default { |
|
|
return { |
|
|
return { |
|
|
supplierId: '', |
|
|
supplierId: '', |
|
|
consigneeName: '', |
|
|
consigneeName: '', |
|
|
list: [] |
|
|
list: [], |
|
|
|
|
|
// status: 'loadmore', |
|
|
|
|
|
// page: 1, |
|
|
|
|
|
// totalPages: 0, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// onReachBottom() { |
|
|
|
|
|
// if (this.page >= this.totalPages) return; |
|
|
|
|
|
// this.status = 'loading'; |
|
|
|
|
|
// this.page = ++this.page; |
|
|
|
|
|
// this.getList(); |
|
|
|
|
|
// }, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
this.supplierId = options.supplierId |
|
|
this.supplierId = options.supplierId |
|
|
this.consigneeName = options.consigneeName |
|
|
this.consigneeName = options.consigneeName |
|
|
@ -54,22 +66,35 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
goDetail(){ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
.u-cell-text { |
|
|
.ulList { |
|
|
color: #333333; |
|
|
ul { |
|
|
|
|
|
li { |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
|
|
|
|
.floatRight { |
|
|
|
|
|
float: right; |
|
|
|
|
|
padding: 14rpx; |
|
|
|
|
|
color: $u-primary; |
|
|
|
|
|
font-size: 26upx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.cardText { |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.priceText { |
|
|
|
|
|
color: $u-primary; |
|
|
|
|
|
font-size: 14px; |
|
|
} |
|
|
} |
|
|
.u-cell-text-time { |
|
|
|
|
|
font-size: 22rpx; |
|
|
|
|
|
color: grey; |
|
|
|
|
|
} |
|
|
} |
|
|
.right { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
} |
|
|
} |
|
|
.huikuananniu { |
|
|
|
|
|
color: #4a67d6; |
|
|
|
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |