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.
103 lines
3.3 KiB
103 lines
3.3 KiB
<template>
|
|
<view>
|
|
<u-alert description="点击可跳转至出库单" type="primary"></u-alert>
|
|
<!-- <u-cell-group :title="nickname" :customStyle="{'background-color':'#ffffff'}">
|
|
<u-cell clickable v-for="(item,indx) in list" :key="indx">
|
|
<view slot="title" class="u-slot-title">
|
|
<view class="u-cell-text">销售总金额:{{ item.totalAmount }}</view>
|
|
<view class="u-cell-text"> 应收总金额:{{ item.realAmount }}</view>
|
|
<view class="u-cell-text-time">{{item.createTime}}</view>
|
|
</view>
|
|
<view slot="value" class="right">
|
|
<view class="u-cell-text">已收金额:{{ item.alreadyEarn }}</view>
|
|
<view class="u-cell-text"> 未收金额:{{ item.noEarn }}</view>
|
|
<view style="opacity: 0">123</view>
|
|
</view>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
<u-empty mode="list" v-if="list.length === 0">
|
|
</u-empty> -->
|
|
<view class="ulList" v-if="list.length > 0">
|
|
<ul>
|
|
<li v-for="item in list" @tap="gotoDetail(item.id)">
|
|
<uni-card :title="item.companyName == null ?'暂无':item.companyName" :sub-title="item.createTime == null ?'暂无':item.createTime" :extra="'订单金额:¥'+(item.totalAmount == null ?'暂无':item.totalAmount)"
|
|
thumbnail="/static/images/dingdan/dd1.png">
|
|
<view class="uni-body"><text class="cardText">销售员:</text> {{item.createByName == null ?'暂无':item.createByName}}</view>
|
|
<view class="uni-body"> <text class="cardText"> 销售总额:</text> <text class="priceText">
|
|
{{item.totalAmount == null ?'暂无':item.totalAmount}} </text> <text decode class="cardText">
|
|
{{' 欠款: '}} </text> <text class="priceText">{{item.noEarn == null ?'暂无':item.noEarn}}
|
|
</text></view>
|
|
<view class="uni-body"> <text class="cardText">
|
|
订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}}
|
|
</view>
|
|
</uni-card>
|
|
</li>
|
|
</ul>
|
|
<u-loadmore :status="status" />
|
|
</view>
|
|
<u-empty v-else mode="order" margin-top="200"></u-empty>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import color from "../../uni_modules/uview-ui/libs/config/color";
|
|
|
|
export default {
|
|
name: "downarrears",
|
|
computed: {
|
|
color() {
|
|
return color
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
userId: '',
|
|
nickname: '',
|
|
list: []
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.userId = options.userId
|
|
this.nickname = options.nickname
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
getList() {
|
|
this.tui.request("/app/sale/customSale", "post", {
|
|
userId: this.userId
|
|
}, false, true).then((res) => {
|
|
if (res.code == 200) {
|
|
this.list = res.result
|
|
} else {
|
|
this.tui.toast(res.message)
|
|
}
|
|
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped lang="scss">
|
|
.ulList {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|