From 4d1b99c033d27af5a83d8df7da5568dc3dcfbfc7 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 25 二月 2026 11:41:13 +0800
Subject: [PATCH] 经销商管理

---
 mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue |   81 ++++++++++++++++++++++++++++++----------
 1 files changed, 60 insertions(+), 21 deletions(-)

diff --git a/mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue b/mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue
index e4f7193..74330c1 100644
--- a/mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue
+++ b/mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue
@@ -1,39 +1,38 @@
 <template>
 	<view class="box">
 		<view class="yue">
-			<view class="yue-a">鎻愮幇</view>
-			<view class="yue-b">-楼1000.00</view>
-			<view class="yue-c succ">瀹℃牳涓�</view>
+			<!-- <view class="yue-a">鎻愮幇</view> -->
+			<view class="yue-b">-楼{{(info.amount || 0).toFixed(2)}}</view>
+			<view class="yue-c err"  v-if="info.status == 2">鏈�氳繃</view>
+			<view class="yue-c succ" v-else-if="info.status == 1">宸查�氳繃</view>
+			<view class="yue-c err" v-else>瀹℃壒涓�</view>
 		</view>
 		<view class="info">
 			<view class="info-item">
 				<view class="info-item-label">鎻愪氦鏃堕棿</view>
-				<view class="info-item-val">2025-12-31 21:00:22</view>
+				<view class="info-item-val">{{info.createDate ||''}}</view>
 			</view>
 			<view class="info-item">
 				<view class="info-item-label">鎻愮幇閾惰</view>
-				<view class="info-item-val">涓浗宸ュ晢閾惰澶ч挓妤兼敮琛�(8788)</view>
+				<view class="info-item-val">{{info.bankName ||''}}</view>
 			</view>
-			<view class="info-item">
+			<view class="info-item" v-if="info.status == 1 || info.status == 2">
 				<view class="info-item-label">瀹℃牳鏃堕棿</view>
-				<view class="info-item-val">2025-12-31 21:00:22</view>
+				<view class="info-item-val">{{info.auditTime ||''}}</view>
 			</view>
-			<view class="info-item">
-				<view class="info-item-label">鎵撴閾惰</view>
-				<view class="info-item-val">涓浗宸ュ晢閾惰澶ч挓妤兼敮琛�</view>
+			<view class="info-item" v-if="info.status == 1">
+				<view class="info-item-label"> 鎵撴閾惰</view>
+				<view class="info-item-val">{{info.bankName ||''}}</view>
 			</view>
-			<view class="info-item">
+			<view class="info-item"  v-if="info.status == 1 || info.status == 2">
 				<view class="info-item-label">澶囨敞淇℃伅</view>
-				<view class="info-item-val">-</view>
+				<view class="info-item-val">{{info.auditRemark ||'-'}}</view>
 			</view>
-			<view class="info-item">
-				<view class="info-item-label">鎵撴鍑瘉</view>
+			<view class="info-item"v-if="info.status == 1 && info.payFileList && info.payFileList.length">
+				<view class="info-item-label" >鎵撴鍑瘉</view>
 				<view class="info-item-list">
-					<view class="info-item-list-item">
-						<image src="/static/logo.png" mode="widthFix"></image>
-					</view>
-					<view class="info-item-list-item">
-						<image src="/static/logo.png" mode="widthFix"></image>
+					<view class="info-item-list-item" v-for="(item,index) in info.payFileList" :key="index" >
+						<image :src="item.fileFullUrl?item.fileFullUrl:'/static/icon/default2.png'" mode="widthFix" @click="previewImage(index)"></image>
 					</view>
 					<view style="width: 120rpx; height: 0rpx;"></view>
 					<view style="width: 120rpx; height: 0rpx;"></view>
@@ -44,11 +43,51 @@
 </template>
 
 <script>
+	import { mapState } from 'vuex'
 	export default {
+		computed: {
+			...mapState(['navHeight', 'statusbarHeight','shopInfo', 'shopToken'])
+		},
 		data() {
-			return {
-				
+			return { 
+				id:null, 
+				shop:{},
+				info:{}
 			};
+		}, 
+		onLoad(options) {
+			this.id = options.id
+			this.info={}
+			this.shop  ={}
+			this.checkShopLogin()
+			this.shop = this.shopInfo || {} 
+			this.getDataDetail()
+		},
+		methods:{ 
+			previewImage (index)  {
+				if (this.info.payFileList && this.info.payFileList.length) {
+					var urls = this.info.payFileList.map((item)=>{return item.fileFullUrl })
+					uni.previewImage({
+						urls:urls,
+						current:index ||0
+					})
+				}
+			},
+			async  getDataDetail(){
+				var that =this 
+				let res = await that.$u.api.withdrawDetail({id:this.id,tokenType:1  })
+				if (res.code === 200) { 
+					this.info = res.data 
+				} 
+			},
+			checkShopLogin(){
+				var that =this
+				if( this.shopInfo ==null || this.shopInfo.id==null ||  this.shopToken==null || this.shopToken==''){
+					uni.navigateTo({
+						url: '/pages/login/login'
+					})
+				} 
+			}
 		}
 	}
 </script>

--
Gitblit v1.9.3