USER-20230908AJ\Administrator 1 年間 前
コミット
4afbdb7879

+ 1 - 1
pages/index/index.vue

@@ -3,7 +3,7 @@
 		<Nav :title="'工作台导航'" :back="false" :is_fixed="true" :opacity="scrollTop" :justify="'left'" :color="'#fff'">
 			<view class="p-20">
 				<IndexPersonal @setMemberData="setMemberData"></IndexPersonal>
-				<IndexColumn :memberData="memberData"></IndexColumn>
+				<IndexColumn :memberData="memberData" :model-time="modelTime"></IndexColumn>
 			</view>
 		</Nav>
 		<view class="p-lr20 m-tb30">

+ 48 - 11
pages/index/module/index_column.vue

@@ -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"

+ 2 - 2
pages/statistics/module/head_data.vue

@@ -2,7 +2,7 @@
 	<view>
 		<view class="head_data row-justify-sb center m-t30">
 			<view class="data_item page-box-bg-fff column-c r-30 p-tb25">
-				<image class="wh-80" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/statistics/stat-up.png" mode=""></image>
+				<image class="wh-80" src="/static/img/statistics/stat-up.png" mode=""></image>
 				<view class="row-c p-tb20">
 					<text class="size-40 sys-weight-600 text-color-E83">{{(moneyData.out_money).toFixed(2)}}</text>
 					<text class="size-24 text-color-666 m-l10">万</text>
@@ -10,7 +10,7 @@
 				<text class="num r-10 sys-from-background-color size-24 text-color-666">放款{{moneyData.out_num}}笔</text>
 			</view>
 			<view class="data_item page-box-bg-fff column-c r-30 p-tb25">
-				<image class="wh-80" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/statistics/stat-down.png" mode=""></image>
+				<image class="wh-80" src="/static/img/statistics/stat-down.png" mode=""></image>
 				<view class="row-c p-tb20">
 					<text class="size-40 text-color-108 sys-weight-600">{{(moneyData.put_money).toFixed(2)}}</text>
 					<text class="size-24 text-color-666 m-l10">万</text>

+ 1 - 1
pages/statistics/module/head_filter.vue

@@ -78,7 +78,7 @@
 				}],
 
 				dateTypeObj: {
-					dateType: 4, //时间类型
+					dateType: 1, //时间类型
 					selectDate: '', //自定义的时候传数组,其它传开始日期
 					money_type: 1,
 					censusUserType: 0,