You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.8 KiB
75 lines
1.8 KiB
<template>
|
|
<view>
|
|
<u-alert description="点击可跳转至入库单" type="primary"></u-alert>
|
|
<u-cell-group :title="consigneeName" :customStyle="{'background-color':'#ffffff'}">
|
|
<u-cell clickable
|
|
v-for="(item,indx) in list" :key="indx" :label="item.createTime" >
|
|
<view slot="title" class="u-slot-title">
|
|
<view class="u-cell-text">销售金额:{{ item.totalAmount }}</view>
|
|
<view class="u-cell-text"> 应付金额:{{ item.shouldPay }}</view>
|
|
</view>
|
|
<view slot="value" class="right">
|
|
<view class="u-cell-text">已付:{{ item.alreadyPay }}</view>
|
|
<view class="u-cell-text"> 未付:{{ item.noPay }}</view>
|
|
</view>
|
|
<view slot="right-icon">
|
|
<u-button type="primary" size="mini" text="回款"></u-button>
|
|
</view>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import color from "../../uni_modules/uview-ui/libs/config/color";
|
|
|
|
export default {
|
|
name: "uparrears",
|
|
computed: {
|
|
color() {
|
|
return color
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
supplierId: '',
|
|
consigneeName:'',
|
|
list: []
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.supplierId = options.supplierId
|
|
this.consigneeName = options.consigneeName
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
getList() {
|
|
this.tui.request("/app/purchase/debtPurchase", "get", {
|
|
supplierId: this.supplierId
|
|
}, false, true).then((res) => {
|
|
if(res.code == 200){
|
|
this.list = res.result
|
|
console.log(res)
|
|
}else{
|
|
this.tui.toast(res.message)
|
|
}
|
|
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped lang="scss">
|
|
.u-cell-text {
|
|
color: #333333;
|
|
}
|
|
.u-cell-text-time {
|
|
font-size: 22rpx;
|
|
color: grey;
|
|
}
|
|
.right {
|
|
flex: 1;
|
|
}
|
|
.huikuananniu {
|
|
color: #4a67d6;
|
|
}
|
|
</style>
|
|
|