From 8f9fdc8da87fb3e097e61e9b4086e5be84cbe0be Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 21 三月 2024 17:13:46 +0800
Subject: [PATCH] #

---
 pages/phyz/order/orderList.vue     |   39 +++++++++++++++++++++++++++++++++++++++
 pages/phyz/order/purchaseOrder.vue |    4 ++--
 2 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/pages/phyz/order/orderList.vue b/pages/phyz/order/orderList.vue
index a6012ee..a74fbfc 100644
--- a/pages/phyz/order/orderList.vue
+++ b/pages/phyz/order/orderList.vue
@@ -32,6 +32,9 @@
 	export default {
 		data() {
 			return {
+				baseUrl: '',
+				token: '',
+				orderId: '',
 				matFocus: true,
 				matnr: '',
 				checck: true,
@@ -121,10 +124,46 @@
 				allCheckBtnTitle: '鍏ㄩ��'
 			}
 		},
+		onLoad() {
+			let that = this
+			// const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
+			const eventChannel = this.getOpenerEventChannel();
+			
+			// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
+			eventChannel.on('item', function(data) {
+				console.log(data);
+				that.orderId = data.item.orderId 
+				
+			})
+		},
 		onShow() {
+			this.baseUrl = uni.getStorageSync('baseUrl');
+			this.token = uni.getStorageSync('token');
 			this.oldDataList = [...this.dataList]
+			this.getOrderDetl(this.orderId)
 		},
 		methods: {
+			// 璁㈠崟鏄庣粏
+			getOrderDetl(id) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/orderDetl/list/auth`,
+					header: {'token': uni.getStorageSync('token')},
+					data: {
+						curr: 1,
+						limit: 1000,
+						order_id: id
+					},
+					method: 'GET',
+					success(res) {
+						res = res.data
+						console.log(res);
+						if (res.code === 200) {
+							_this.dataList = res.data.records
+						} 
+					}
+				})
+			},
 			matInput() {
 				let count = 0
 				let sign = 0
diff --git a/pages/phyz/order/purchaseOrder.vue b/pages/phyz/order/purchaseOrder.vue
index 8f964c8..4b26296 100644
--- a/pages/phyz/order/purchaseOrder.vue
+++ b/pages/phyz/order/purchaseOrder.vue
@@ -45,7 +45,7 @@
 				oldDataList: [],
 				newDataList: [],
 				allCheck: false,
-				allCheckBtnTitle: '鍏ㄩ��'
+				allCheckBtnTitle: '鍏ㄩ��',
 			}
 		},
 		onShow() {
@@ -121,7 +121,7 @@
 					header: {'token': uni.getStorageSync('token')},
 					data: {
 						curr: 1,
-						limit: 1000
+						limit: 1000,
 					},
 					method: 'GET',
 					success(res) {

--
Gitblit v1.9.1