From c9ece393fc028ffecca0915d1b9af62d51b5aef6 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 13 八月 2024 17:21:19 +0800
Subject: [PATCH] 1

---
 sub_pages/supplier/order-settlement/order-settlement.vue |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/sub_pages/supplier/order-settlement/order-settlement.vue b/sub_pages/supplier/order-settlement/order-settlement.vue
index 3bd6fe3..f76c55c 100644
--- a/sub_pages/supplier/order-settlement/order-settlement.vue
+++ b/sub_pages/supplier/order-settlement/order-settlement.vue
@@ -59,8 +59,7 @@
 							</view>
 						</view>
 					</view>
-
-					<view class="line"></view>
+					<!-- <view class="line"></view> -->
 					<view class="form">
 						<view class="flex">
 							<view class="form-item">
@@ -84,6 +83,7 @@
 </template>
 
 <script>
+import moment from 'moment'
 	export default {
 		data() {
 			return {
@@ -97,16 +97,19 @@
 		onLoad() {
 			var currentMonthStr = this.$util.toDate(new Date()).substring(0, 8) + '01'
 			this.query.startDateStr = currentMonthStr
-			var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + 3600_000 * 24 *
-				40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1)
+			var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + 3600000 * 24 *
+				40).substring(0, 8) + '01').getTime() - 3600000 * 24 * 1)
 			this.query.endDateStr = this.$util.toDate(lastMonthDate)
-
-			this.listApi = '/api/partner/settlement/list'
+			// #ifdef PUB_PARTNER
+			this.listApi = '/api/partner/settlement/list'			
+			// #endif
+			// #ifdef PUB_SUPPLIER
+			this.listApi = '/api/supplier/settlement/list'						
+			// #endif
 			this.getList()
 
 		},
 		onReachBottom() {
-			this.page.current += 1
 			this.getMore()
 		},
 		async onPullDownRefresh() {
@@ -127,6 +130,7 @@
 					if (index === 0) {
 						var currentMonthStr = this.$util.toDate(new Date()).substring(0, 8) + '01'
 						this.query.startDateStr = currentMonthStr
+						// moment().startOf
 						var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() +
 							3600_000 * 24 * 40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1)
 						this.query.endDateStr = this.$util.toDate(lastMonthDate)
@@ -138,11 +142,6 @@
 
 				}
 			},
-			toDetail(item) {
-				// uni.navigateTo({
-				// 	url: `/pages/notice/notice?id=${item.id}`
-				// })
-			}
 		}
 	}
 </script>
@@ -168,8 +167,8 @@
 			}
 
 			.form {
-				display: flex;
-				flex-wrap: wrap;
+				// display: flex;
+				// flex-wrap: wrap;
 
 				.form-item {
 					flex: 1;
@@ -196,6 +195,8 @@
 						font-size: 24rpx;
 						color: #000000;
 						line-height: 34rpx;
+						text-align: center;
+						flex: 1;
 					}
 
 					.value.red {

--
Gitblit v1.9.3