|
|
@@ -2,12 +2,17 @@
|
|
|
<view style="background-color: #f2f2f6;padding-bottom: 0.01rpx;" :class="mask ? 'tl-show': ''">
|
|
|
<!-- <view style="background-color: #fff;position: fixed;top: var(--window-top);width: 100%;z-index: 8;">
|
|
|
<u-tabs :list="tabsList" itemStyle="height:88rpx;" lineColor="#FD4B09" @click="tabsClick" :current="current">
|
|
|
- </u-tabs>
|
|
|
- <view style="background-color: #fff;padding: 10rpx 20rpx;">
|
|
|
- <u-search placeholder="请输入客户名称" v-model="form.corpsName" @custom="custom"></u-search>
|
|
|
+ </u-tabs>
|
|
|
+ <view style="background-color: #fff;padding: 10rpx 20rpx;">
|
|
|
+ <u-search placeholder="请输入客户名称" v-model="form.corpsName" @custom="custom"></u-search>
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
-
|
|
|
+ </view> -->
|
|
|
+ <view class="contentBox" style="margin-top: 10px;">
|
|
|
+ <view class="textBox">
|
|
|
+ <view>待收款总金额: <text style="font-size: 40rpx;">¥{{amountSum}}</text>
|
|
|
+ 元</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- <view class="contentBox" style="margin-top: 100px;">
|
|
|
<view class="textBox">
|
|
|
<view>待收款总金额</view>
|
|
|
@@ -27,14 +32,14 @@
|
|
|
<view>流动资金增长率:{{statistics.flowAmount}}%</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
- <view class="content">
|
|
|
+ <view class="content">
|
|
|
<!-- @click="choice(item,index)" -->
|
|
|
<view class="contentBox" v-for="(item,index) in dataList" :key="index" >
|
|
|
<view style="width: 100%;margin: 0 auto;">
|
|
|
<u-cell-group :border="false">
|
|
|
<u-cell :border="false" center :title="item.customerName" arrow-direction="down">
|
|
|
<view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
|
|
|
- <view slot="value">
|
|
|
+ <view slot="value">
|
|
|
<view>{{item.region?item.region:'--'}}</view>
|
|
|
</view>
|
|
|
</u-cell>
|
|
|
@@ -43,47 +48,49 @@
|
|
|
<!-- <view style="font-size: 32rpx;">{{item.customerName}}</view> -->
|
|
|
<view>{{item.createTime?item.createTime.slice(0,10):''}}</view>
|
|
|
</view>
|
|
|
- <view class="textBox">
|
|
|
- <view>业务员:{{item.salerName}}</view>
|
|
|
- <view style="color: #FD4B09;font-size: 32rpx;">{{'未收款:¥' + item.unpaidAmount+'元'}}</view>
|
|
|
+ <view class="textBox">
|
|
|
+ <view>业务员:{{item.salerName}}</view>
|
|
|
+ <view style="color: #FD4B09;font-size: 32rpx;">{{'未收款:¥' + item.unpaidAmount+'元'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- <u-loadmore v-if="total !== 0 && dataList.length != 0" :status="status"/>
|
|
|
+
|
|
|
+ <u-loadmore v-if="total !== 0 && dataList.length != 0" :status="status"/>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- orderCollectionStatistics,
|
|
|
- profitStatistics,
|
|
|
+ getPendingPaymentList,
|
|
|
+ getPendingPaymentSum,
|
|
|
} from '@/api/views/sale/salesOrderList.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- statistics: {
|
|
|
- flowAmount: "0.00",
|
|
|
- month: "0.00",
|
|
|
- total: "0.00"
|
|
|
- },
|
|
|
- mask:false,
|
|
|
- current: 0,
|
|
|
- tabsList: [],
|
|
|
- form: {
|
|
|
- current: 1,
|
|
|
- size: 20,
|
|
|
- },
|
|
|
- dataList: [],
|
|
|
- total: 0,
|
|
|
+ statistics: {
|
|
|
+ flowAmount: "0.00",
|
|
|
+ month: "0.00",
|
|
|
+ total: "0.00"
|
|
|
+ },
|
|
|
+ mask:false,
|
|
|
+ current: 0,
|
|
|
+ tabsList: [],
|
|
|
+ form: {
|
|
|
+ current: 1,
|
|
|
+ size: 20,
|
|
|
+ },
|
|
|
+ dataList: [],
|
|
|
+ total: 0,
|
|
|
status: 'loadmore',
|
|
|
+ amountSum: 0.00
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
this.dataList = []
|
|
|
this.orderCollectionStatisticsfun()
|
|
|
+ this.getAmountSum()
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
this.status = 'loading'
|
|
|
@@ -94,22 +101,29 @@
|
|
|
this.status = 'nomore'
|
|
|
}
|
|
|
},
|
|
|
- methods: {
|
|
|
- custom(e){
|
|
|
- this.form = {
|
|
|
- current: 1,
|
|
|
- size: 10,
|
|
|
- corpsName:e
|
|
|
- }
|
|
|
- this.dataList = []
|
|
|
- this.orderCollectionStatisticsfun()
|
|
|
+ methods: {
|
|
|
+ custom(e){
|
|
|
+ this.form = {
|
|
|
+ current: 1,
|
|
|
+ size: 10,
|
|
|
+ corpsName:e
|
|
|
+ }
|
|
|
+ this.dataList = []
|
|
|
+ this.orderCollectionStatisticsfun()
|
|
|
},
|
|
|
choice(item, index) {
|
|
|
uni.$u.route('/pages/views/salesSlip/salesOrderDetails', {
|
|
|
- id: item.id,
|
|
|
+ id: item.id,
|
|
|
corpId:item.corpId
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ getAmountSum(){
|
|
|
+ console.info('1212121212')
|
|
|
+ getPendingPaymentSum().then(res => {
|
|
|
+ this.amountSum = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
//查询
|
|
|
orderCollectionStatisticsfun() {
|
|
|
uni.showLoading({
|
|
|
@@ -119,7 +133,7 @@
|
|
|
// profitStatistics(this.form).then(res => {
|
|
|
// this.statistics = res.data
|
|
|
// })
|
|
|
- orderCollectionStatistics({
|
|
|
+ getPendingPaymentList({
|
|
|
...this.form
|
|
|
}).then(res => {
|
|
|
if (res.data.records) {
|
|
|
@@ -138,23 +152,23 @@
|
|
|
this.form = {
|
|
|
current: 1,
|
|
|
size: 20
|
|
|
- }
|
|
|
+ }
|
|
|
this.mask = false
|
|
|
this.dataList = []
|
|
|
this.orderCollectionStatisticsfun()
|
|
|
}
|
|
|
},
|
|
|
- confirm(e) {
|
|
|
- if(this.screen[0] == "corpId"){
|
|
|
- this.form = {
|
|
|
- current: 1,
|
|
|
- size: 20,
|
|
|
- corpId: e.value[0].id
|
|
|
- }
|
|
|
- this.dataList = []
|
|
|
- this.orderCollectionStatisticsfun()
|
|
|
- this.show = false
|
|
|
- this.mask = false
|
|
|
+ confirm(e) {
|
|
|
+ if(this.screen[0] == "corpId"){
|
|
|
+ this.form = {
|
|
|
+ current: 1,
|
|
|
+ size: 20,
|
|
|
+ corpId: e.value[0].id
|
|
|
+ }
|
|
|
+ this.dataList = []
|
|
|
+ this.orderCollectionStatisticsfun()
|
|
|
+ this.show = false
|
|
|
+ this.mask = false
|
|
|
}else if (this.screen[1] == "salesName") {
|
|
|
this.form = {
|
|
|
current: 1,
|
|
|
@@ -165,13 +179,13 @@
|
|
|
this.orderCollectionStatisticsfun()
|
|
|
this.show = false
|
|
|
this.mask = false
|
|
|
- }else{
|
|
|
- this.formTwo.account = e.value[0].dictValue
|
|
|
- this.show = false
|
|
|
- this.mask = false
|
|
|
+ }else{
|
|
|
+ this.formTwo.account = e.value[0].dictValue
|
|
|
+ this.show = false
|
|
|
+ this.mask = false
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -213,4 +227,4 @@
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|