From 3913b3c5c8cde03f8c92d1c738d28c4a9bae7e55 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 22 十一月 2023 08:48:02 +0800
Subject: [PATCH] #

---
 pages/business/goBusiness/reimburseOnlineDetl.vue |   99 +++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 79 insertions(+), 20 deletions(-)

diff --git a/pages/business/goBusiness/reimburseOnlineDetl.vue b/pages/business/goBusiness/reimburseOnlineDetl.vue
index 84d43b9..66e79f7 100644
--- a/pages/business/goBusiness/reimburseOnlineDetl.vue
+++ b/pages/business/goBusiness/reimburseOnlineDetl.vue
@@ -136,25 +136,14 @@
 			<view class="box">
 				<view class="box-title">娴佺▼鍔ㄦ��</view>
 				<u-steps :current="1" direction="column">
-					<u-steps-item title="寮�濮� 2023-11-09 13:30:54" desc="寮犺姮鍒涘缓浜嗗鎵�">
-					</u-steps-item>
-					<u-steps-item title="閮ㄩ棬缁忕悊瀹℃牳 2023-11-09 13:31:42" desc="閮ㄩ棬缁忕悊寮犺姮瀹℃壒閫氳繃">
-					</u-steps-item>
-					<u-steps-item title="淇炴檽瀹℃牳" desc="">
-					</u-steps-item>
-					<u-steps-item title="鍛ㄦ槬鏉惧鏍�" desc="">
-					</u-steps-item>
-					<u-steps-item title="缃楄悕瀹℃牳" desc="">
-					</u-steps-item>
-					<u-steps-item title="淇炴檽瀹℃牳" desc="">
-					</u-steps-item>
+					<u-steps-item :title="`${item.title} ${item.time ? item.time : ''}`" :desc="item.msg" v-for="item in steps" />
 				</u-steps>
 			</view>
 		</view>
 		
-		<view style="height: 70rpx;">
+		<view style="height: 100rpx;">
 			
-		</view>w
+		</view>
 
 		<view class="floor">
 			<view class="wran">鍒犻櫎</view>
@@ -168,6 +157,7 @@
 	export default {
 		data() {
 			return {
+				steps: [],
 				list: [{
 					templateName: '椤圭洰鏈畬鎴�',
 					checkData: '鍚�',
@@ -176,7 +166,7 @@
 					name$: '娴欐睙澶╂垚鑷帶鑲′唤鏈夐檺鍏徃',
 					status$: '鏈畬鎴�',
 					settle$: '绛夊緟鑺傜偣3瀹℃牳',
-					detl: '鎶ラ攢鏄庣粏',
+					// detl: '鎶ラ攢鏄庣粏',
 					updateUserId$: '寮犺姮',
 					updateTime$: '2023-11-09 13:31:42'
 				}, ],
@@ -209,10 +199,10 @@
 						label: "杩涘害",
 						attribute: "settle$",
 					},
-					{
-						label: "鎶ラ攢鏄庣粏",
-						attribute: "detl",
-					},
+					// {
+					// 	label: "鎶ラ攢鏄庣粏",
+					// 	attribute: "detl",
+					// },
 					{
 						label: "鏇存柊浜哄憳",
 						attribute: "updateUserId$",
@@ -244,10 +234,79 @@
 				]
 			}
 		},
+		onLoad(option) {
+			let _this = this
+			_this.list = []
+			const eventChannel = this.getOpenerEventChannel();
+			eventChannel.on('busunessDetl', function(data) {
+				_this.list.push(data.data)
+				_this.getTableData(data.data.id)
+				_this.getSetps(data.data.id)
+			})
+			
+		},
 		methods: {
+			// 瀹℃壒
+			submit() {
+				let _this = this,param = {planld: 13}
+				
+				uni.request({
+					url: `${_this.baseUrl}/reimburseOnline/approval2/auth`,
+					header: { 
+						'token': uni.getStorageSync('token'),
+						'content-type': 'application/x-www-form-urlencoded;charset=UTF-8'
+					},
+					method: 'POST',
+					sslVerify: false,
+					data: { planId: 13 },
+					success(res) {
+						res = res.data
+						if (res.code === 200) {
+							
+						} else if (res.code === 500) {
+							uni.showToast({title: res.msg, icon: "none", position: 'top'})
+						}
+					}
+				})
+				
+			},
+			getSetps(id) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/reimburseOnline/${id}/auth`,
+					header: { 'token': uni.getStorageSync('token') },
+					success(res) {
+						res = res.data
+						_this.steps = JSON.parse(res.data.settleMsg)
+					}
+				})
+			},
+			getTableData(id) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/reimburseOnlineDetl/list/auth`,
+					header: { 'token': uni.getStorageSync('token') },
+					data: {order_id: id},
+					success(res) {
+						res = res.data
+						if (res.code === 200) {
+							_this.onlineDetl = res.data.records
+							
+						}
+					}
+				})
+			},
 			modiReimburse() {
+				let _this = this
+				_this.list[0]['detl'] = _this.onlineDetl
 				uni.navigateTo({
-					url: '/pages/business/goBusiness/modiReimburseOnlineDetl'
+					url: '/pages/business/goBusiness/modiReimburseOnlineDetl',
+					success: function(res) {
+						res.eventChannel.emit('reimburseOnlineDetl', {
+							data: 'modi',
+							detl: {list: _this.list[0]}
+						})
+					}
 				})
 			},
 			back() {

--
Gitblit v1.9.1