|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="row-c m-t20">
|
|
|
- <view class="column_item sys-background-dominant r-30 column-justify-sb" v-if="!is_admin">
|
|
|
+ <view class="column_item sys-background-dominant r-30 column-justify-sb" v-if="enteringType===1">
|
|
|
<view class="column_build column-c">
|
|
|
<view class="row-c" @click="onCreationTask">
|
|
|
<image class="wh-80 m-r30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-add.png" mode="">
|
|
|
@@ -36,9 +36,9 @@
|
|
|
<text class="text-color-12 sys-weight-600 size-24 m-l10">今日放款</text>
|
|
|
</view>
|
|
|
<view class="row-justify-sb center m-t20 line-40">
|
|
|
- <text class="sys-weight-600" style="color: #02154E;">13678.45万</text>
|
|
|
+ <text class="sys-weight-600" style="color: #02154E;">{{(moneyData.out_money).toFixed(2)}}万</text>
|
|
|
<view class="row-c">
|
|
|
- <text style="color: #02154E;padding-right: 6rpx;">34</text>
|
|
|
+ <text class="sys-weight-600" style="color: #02154E;padding-right: 6rpx;">{{moneyData.out_num}}</text>
|
|
|
<text class="size-24 text-color-999">笔</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -50,9 +50,9 @@
|
|
|
<text class="text-color-12 sys-weight-600 size-24 m-l10">今日回款</text>
|
|
|
</view>
|
|
|
<view class="row-justify-sb center m-t20 line-40">
|
|
|
- <text class="sys-weight-600" style="color: #02154E;">78459.80万</text>
|
|
|
+ <text class="sys-weight-600" style="color: #02154E;">{{(moneyData.put_money).toFixed(2)}}万</text>
|
|
|
<view class="row-c">
|
|
|
- <text style="color: #02154E;padding-right: 6rpx;">56</text>
|
|
|
+ <text class="sys-weight-600" style="color: #02154E;padding-right: 6rpx;">{{moneyData.put_num}}</text>
|
|
|
<text class="size-24 text-color-999">笔</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -84,7 +84,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- export default {
|
|
|
+ import tools from "@/service/tools";
|
|
|
+ import {getSysCashier} from "@/api/statistics";
|
|
|
+
|
|
|
+ export default {
|
|
|
name: 'index_column',
|
|
|
props: {
|
|
|
memberData:{
|
|
|
@@ -105,17 +108,51 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
- data: {
|
|
|
- type: Object,
|
|
|
- default: () => {}
|
|
|
- },
|
|
|
+
|
|
|
+ modelTime:{
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ 'modelTime':function () {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ enteringType:0,
|
|
|
+ moneyData: {
|
|
|
+ out_money: 0,
|
|
|
+ out_num: 0,
|
|
|
+ put_money: 0,
|
|
|
+ put_num: 0,
|
|
|
+ },
|
|
|
+ dateTypeObj: {
|
|
|
+ dateType: 1, //时间类型
|
|
|
+ selectDate: '', //自定义的时候传数组,其它传开始日期
|
|
|
+ money_type: 1,
|
|
|
+ censusUserType: 0,
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ this.enteringType=tools.getEnteringType();
|
|
|
+ if(this.enteringType!==1){
|
|
|
+ this.getSysCashier()
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getSysCashier() {
|
|
|
+ if(this.enteringType===1 || this.modelTime===''){
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ this.dateTypeObj.selectDate=this.modelTime
|
|
|
+ getSysCashier(this.dateTypeObj).then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.moneyData = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onGetDraft(){
|
|
|
uni.navigateTo({
|
|
|
url: "/page_task/draft/index"
|