Explorar o código

收支记录账单详情

@dongkboy hai 3 meses
pai
achega
d3aff3a010
Modificáronse 2 ficheiros con 24 adicións e 14 borrados
  1. 20 9
      pages/wallet/billDetails.vue
  2. 4 5
      pages/wallet/incomeExpenseRecord.vue

+ 20 - 9
pages/wallet/billDetails.vue

@@ -5,23 +5,23 @@
 			<view class="header dis f-c a-c">
 				<image class="bankimage" src="/static/image/zgcx.png" mode=""></image>
 				<!-- 提现银行 -->
-				<text class="bankName mt-1 mb-2">工商银行</text>
+				<text class="bankName mt-1 mb-2">{{info.bankName}}</text>
 				<!-- 提现金额 -->
-				<text class="sum">180.00</text>
+				<text class="sum">{{info.amount}}</text>
 				<!-- 提现状态 -->
-				<text class="status">提现审核中</text>
+				<text class="status">{{statusMap(info.status)}}</text>
 			</view>
 			<view class="item-cell">
 				<view class="cell dis j-s">
 					<text class="title">创建时间</text>
 					<view class="data font-weight">
-						2025.02.02 12:22:00
+						{{info.createTime}}
 					</view>
 				</view>
 				<view class="cell dis j-s">
 					<text class="title">提现账号</text>
 					<view class="data font-weight">
-						招商银行(2325)**玉
+						{{info.bankName}}({{info.bankCardNum.slice(-4)}}){{info.userName}}
 					</view>
 				</view>
 				<view class="cell dis j-s">
@@ -33,7 +33,8 @@
 				<view class="cell dis j-s">
 					<text class="title">审核说明</text>
 					<view class="data font-weight">
-						后台人员审核中,请耐心等待
+						{{info.status==0?'后台人员审核中,请耐心等待':info.status==1?'提现已入账,如有疑问,请联系相关工作人员':info.rejectReason}}
+
 					</view>
 				</view>
 			</view>
@@ -47,7 +48,7 @@
 			return {
 				stepList: [{
 					title: '提交提现申请', // 步骤标题
-					show: true, // 状态:true-成功, false-失败, null-未完成
+					show: false, // 状态:true-成功, false-失败, null-未完成
 					time: '2025.02.02 12:22:00'
 				}, {
 					title: '财务人员审核', // 步骤标题
@@ -64,11 +65,21 @@
 		onShow() {
 
 		},
-		onLoad() {
+		onLoad(options) {
+			if (options) {
+				this.info = JSON.parse(options.info);
 
+			}
 		},
 		methods: {
-
+			statusMap(type) {
+				let MaP = [
+					'待审核',
+					'审核通过',
+					'审核驳回',
+				]
+				return MaP[type]
+			}
 		}
 	}
 </script>

+ 4 - 5
pages/wallet/incomeExpenseRecord.vue

@@ -1,7 +1,6 @@
 <template>
 	<view class="page">
-
-		<u-sticky zIndex="999">
+		<u-sticky zIndex="999" customNavHeight="0">
 			<view class="headerFilter dis ">
 				<view class="FilterItem dis a-c j-c " @click="dateShow=true">
 					<text>2025-01-01</text>
@@ -49,7 +48,7 @@
 				<!-- 数据明细列表 -->
 				<view class="data-details">
 					<view class="item" v-for="(orderItem,orderIndex) in item.incomeAndExpenseList" :key="orderIndex"
-						@click="billDetails">
+						@click="billDetails(orderItem)">
 						<view class="top dis a-c j-s ">
 							<text>{{orderItem.remark}}({{orderItem.licenseNo}})</text>
 							<text
@@ -169,9 +168,9 @@
 
 			},
 			//账单详情
-			billDetails() {
+			billDetails(item) {
 				uni.navigateTo({
-					url: '/pages/wallet/billDetails'
+					url: `/pages/wallet/billDetails?info=${JSON.stringify(item)}`
 				})
 			},
 			//类型筛选回调