Jelajahi Sumber

添加明细下载

zhengkaixin 2 tahun lalu
induk
melakukan
fe4da503d9

+ 41 - 2
pagesFinance/user/applicationDetails.vue

@@ -36,6 +36,15 @@
 						<view class="uni-input">{{info.applicationMonth}}</view>
 					</span>
 				</view>
+				<view class="withdraw-head ">
+					<b>充电收入</b><span class="classFFF">{{info.chargingIncome}}元</span>
+				</view>
+				<view class="withdraw-head border-n">
+					<b>分润提现明细表</b><span class="download"  @click="ckdownload" >
+						<u-icon name="download"></u-icon> 下载
+					</span>
+				</view>
+				
 				<view class="withdraw-head">
 					<b>审核进度</b>
 					<span>
@@ -341,6 +350,33 @@
 			
 		},
 		methods: {
+			ckdownload(){
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				API.profitDetailsExcel({
+					stationId:this.info.stationId,
+					yearMonth:this.info.applicationMonth,
+				
+				}).then((resDown) => {
+						uni.hideLoading()
+					if(resDown.data){
+						window.location.href=resDown.data
+						
+					}else{
+						uni.showToast({
+							title:"无文件下载"
+						})
+					}
+				}).catch(error => {
+					
+					uni.showToast({
+						title:error
+					})
+				})
+				
+			},
 			getInfo(){
 				uni.showLoading({
 					title: "加载中",
@@ -374,10 +410,13 @@
 	}
 </style>
 <style lang="scss" scoped>
+	// .download {
+	// 	color: #185AC6;
+	// }
+
 	.download {
-		color: #185AC6;
+		color: #185AC6 !important;
 	}
-
 	/deep/.u-tab-bar {
 		background-color: #0076FF !important;
 	}

+ 5 - 1
pagesFinance/user/applicationForWithdrawal.vue

@@ -679,13 +679,17 @@
 				
 					return
 				}
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
 				
 				API.profitDetailsExcel({
 					stationId:this.stationObj.id,
 					yearMonth:this.queryTime,
 				
 				}).then((resDown) => {
-					
+						uni.hideLoading()
 					if(resDown.data){
 						window.location.href=resDown.data
 						

+ 1 - 1
pagesFinance/user/index.vue

@@ -406,7 +406,7 @@
 			align-items: center;
 			h2{ 
 				flex: 1;
-				font-size: 32px;
+				font-size: 64rpx;
 				display: flex;
 				justify-content: space-between;
 				.withdraw{