DESKTOP-70VPDLK\Administrator 1 سال پیش
والد
کامیت
914dcc951a

+ 2 - 1
common/task/task_ima_tab.vue

@@ -74,6 +74,7 @@
 					'listType': this.listType
 				}).then(res => {
 					if (res.code === 1) {
+            this.navList[0].num=0
 						res.data.forEach(item => {
 							this.navList[0].num += item.num
 							if (this.numType > 0) {
@@ -98,4 +99,4 @@
 
 <style lang="scss" scoped>
 
-</style>
+</style>

+ 1 - 0
components/en-utils/en-number/en-number.vue

@@ -28,6 +28,7 @@ export default {
   },
   watch:{
     'endNum':function () {
+      console.log('-------------------')
       this.startNumber()
     }
   },

+ 2 - 1
page_task/gain_task/gain_task.vue

@@ -7,7 +7,7 @@
 <!--				@change="changeTab" paddingItem="0 50rpx">-->
 <!--			</k-tabs-swiper>-->
 <!--		</view>-->
-    <task-ima-tab @setProductId="setProductId" :num-type="1"></task-ima-tab>
+    <task-ima-tab @setProductId="setProductId" ref="taskTabObj" :num-type="1"></task-ima-tab>
 		<EnScroll ref="scroll" :navHeight="110" class="main" @onRefresh="onRefresh" @onScrollBottom="onScrollBottom">
 			<TaskItem :type="2" :task-list="taskList" is_bottom @takeTask="setTakeTask"></TaskItem>
 		</EnScroll>
@@ -76,6 +76,7 @@
 			setTakeTask(index) {
 				console.log('index:' + index)
 				this.taskList.splice(index, 1)
+        this.$refs.taskTabObj.getTaskType()
 				uni.$emit('newReceiving')
 			},
 

+ 3 - 2
page_task/task_details/task_details.vue

@@ -30,7 +30,7 @@
 						</view>
 						<view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
 							<text class="size-28 text-color-E21 sys-weight-600">{{applyFor.quota}}万</text>
-							<text>{{business.status_name}}</text>
+							<text>{{business.stageName}}</text>
 							<text>{{applyFor.use_date}}用款</text>
 							<view class="row-c">
 								<image class="wh-25 m-r10" src="/page_task/static/img/task-details/usrr.png" mode="">
@@ -375,6 +375,7 @@
 				if (res.code === 1) {
 					this.product = res.data.product
 					this.business = res.data.business
+					this.business.stageName = res.data.stageData.stageName
 					this.propertyList = res.data.propertyList
 					this.applyFor = res.data.applyFor
 					this.tripartite = res.data.tripartite
@@ -588,4 +589,4 @@
 	.swiper-wrapper {
 		z-index: 0 !important;
 	}
-</style>
+</style>

+ 13 - 11
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 ref="memberObj" @setMemberData="setMemberData"></IndexPersonal>
-				<IndexColumn :memberData="memberData" :model-time="modelTime"></IndexColumn>
+				<IndexColumn ref="columnObj" :memberData="memberData" :model-time="modelTime"></IndexColumn>
 			</view>
 		</Nav>
 		<view class="p-lr20 m-tb30">
@@ -20,7 +20,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="page-box-bg-fff m-t30 m-lr20 r-30 row-justify-sb flex p-b30">
+		<view class="page-box-bg-fff m-t30 m-lr20 r-30 row-justify-sb flex p-b30" v-if="statisticsData.totalNum>0">
 			<view class="">
 				<view class="row-c">
 					<view class="pie_chart column-c">
@@ -123,6 +123,7 @@
 		onShow() {
 			this.startList()
 			this.$refs.memberObj.getMemberInfo()
+			this.$refs.columnObj.getSysCashier()
 		},
 		onPageScroll(res) {
 			this.scrollTop = res.scrollTop / 120
@@ -138,20 +139,21 @@
 				}).then(res => {
 					if (res.code === 1) {
 						if (res.data.totalNum > 0) {
-							this.chartList[0].value = (res.data.exceedNum / res.data.totalNum * 100).toFixed(0) *
-								1;
+							this.chartList[0].value = (res.data.exceedNum / res.data.totalNum * 100).toFixed(0) *1;
 							this.chartList[1].value = (res.data.lagNum / res.data.totalNum * 100).toFixed(0) * 1;
-							this.chartList[2].value = (res.data.normalNum / res.data.totalNum * 100).toFixed(0) *
-								1;
-							this.$refs.circleObj.setServerData((res.data.endNum / res.data.totalNum).toFixed(2) *
-								1)
+							this.chartList[2].value = (res.data.normalNum / res.data.totalNum * 100).toFixed(0) *1;
+              setTimeout(()=>{
+                this.$refs.circleObj.setServerData((res.data.endNum / res.data.totalNum).toFixed(2) *1)
+                this.$refs.pieChart.setData(this.chartList)
+              },50)
+
 						} else {
 							this.chartList[0].value = 0;
 							this.chartList[1].value = 0;
 							this.chartList[2].value = 0;
-							this.$refs.circleObj.setServerData(0)
+							// this.$refs.circleObj.setServerData(0)
 						}
-						this.$refs.pieChart.setData(this.chartList)
+
 					}
 				})
 			},
@@ -210,4 +212,4 @@
 		height: 16rpx;
 		border-radius: 50%;
 	}
-</style>
+</style>

+ 6 - 10
pages/index/module/index_column.vue

@@ -39,8 +39,7 @@
 				</view>
 				<view class="row-justify-sb center m-t20 line-40">
 					<view class=" row-justify-l">
-						<en-number :end-num="memberData.out_money" :text-color="'color-02154E'" :text-weight="'sys-weight-600'"
-							:text-size="'size-30'"></en-number>
+            <en-number :end-num="moneyData.out_money" :text-color="'color-02154E'" :text-weight="'sys-weight-600'" :text-size="'size-30'"></en-number>
 						<view class="row-justify-sb center line-40 sys-weight-600 color-02154E">万</view>
 					</view>
 					<view class="row-c">
@@ -58,8 +57,7 @@
 				</view>
 				<view class="row-justify-sb center m-t20 line-40">
 					<view class=" row-justify-l">
-						<en-number :end-num="moneyData.put_money" :text-color="'color-02154E'"
-							:text-weight="'sys-weight-600'" :text-size="'size-30'"></en-number>
+						<en-number :end-num="moneyData.put_money" :text-color="'color-02154E'":text-weight="'sys-weight-600'" :text-size="'size-30'"></en-number>
 						<view class="row-justify-sb center line-40 sys-weight-600 color-02154E">万</view>
 					</view>
 					<view class="row-c">
@@ -136,14 +134,14 @@
 		},
 		watch: {
 			'modelTime': function() {
-
+        this.getSysCashier()
 			}
 		},
 		data() {
 			return {
 				enteringType: 0,
 				moneyData: {
-					out_money: 0,
+          out_money: 0,
 					out_num: 0,
 					put_money: 0,
 					put_num: 0,
@@ -158,9 +156,6 @@
 		},
 		mounted() {
 			this.enteringType = tools.getEnteringType();
-			if (this.enteringType !== 1) {
-				this.getSysCashier()
-			}
 		},
 		methods: {
 			getSysCashier() {
@@ -171,6 +166,7 @@
 				getSysCashier(this.dateTypeObj).then((res) => {
 					if (res.code === 1) {
 						this.moneyData = res.data
+            console.log(	this.moneyData )
 					}
 				})
 			},
@@ -267,4 +263,4 @@
 		top: -10rpx;
 		// line-height: 30rpx;
 	}
-</style>
+</style>

+ 7 - 2
pages/loan/loan.vue

@@ -3,7 +3,7 @@
 		<view class="task-bg">
 			<Nav :title="'贷后管理'" :genre="1" :back="false" is_fixed></Nav>
 			<view>
-				<Search :placeholder="'贷款人姓名或电话'"></Search>
+				<Search :placeholder="'贷款人姓名或电话'" @setSearch="setSearch"></Search>
 				<view class="page-box-bg-fff m-lr20 r-20">
 					<z-tabs ref="tabs" :list="tabsList"
 						:active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
@@ -93,6 +93,7 @@
 					residue_num: '', //剩余期数
 					product_name: '', //产品名称
 					phone: '', //电话号码
+          selectStr: '', //电话号码
 					name: '', //客户名称
 					productId: '', //产品ID
 					page: 1,
@@ -115,6 +116,10 @@
 			this.getList()
 		},
 		methods: {
+      setSearch(text){
+        this.fromData.selectStr=text
+        this.startList()
+      },
 			getList() {
 				getLoanList(this.fromData).then((res) => {
 					if (res.code === 1) {
@@ -211,4 +216,4 @@
 	//   }
 
 	// }
-</style>
+</style>

+ 6 - 2
pages/task/task.vue

@@ -2,7 +2,7 @@
 	<view class="total-page page-box page-env-20 scroll_content task-bg">
 		<Nav :title="'任务'" :genre="1" :back="false" is_fixed></Nav>
 		<view>
-			<Search :placeholder="'客户姓名或电话'"></Search>
+			<Search :placeholder="'客户姓名或电话'" @setSearch="setSearch"></Search>
 			<view style="height: 100rpx;">
 				<z-tabs ref="tabs" :list="tabsList" :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'28rpx'}"
 					:bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
@@ -93,6 +93,10 @@
 
 		},
 		methods: {
+      setSearch(text){
+        this.selectStr=text
+        this.startList()
+      },
 			setProductId(productId) {
 				console.log('productId:' + productId)
 				this.productId = productId
@@ -174,4 +178,4 @@
 </script>
 <style lang="scss" scoped>
 
-</style>
+</style>