From e3b84d48cef3e024e4a17b4df35f47cf3e63e820 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 10 四月 2024 00:05:59 +0800
Subject: [PATCH] #

---
 pages/phyz/order/outOrder.vue |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/pages/phyz/order/outOrder.vue b/pages/phyz/order/outOrder.vue
index 49bcd2e..bb601fd 100644
--- a/pages/phyz/order/outOrder.vue
+++ b/pages/phyz/order/outOrder.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="container">
 		<view class="code">
-			<uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput()"
+			<uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput2()"
 				maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�">
 			</uni-search-bar>
 			<view class="code-title">
@@ -57,6 +57,25 @@
 		},
 		
 		methods: {
+			searchValueInput2() {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/order/head/page/auth`,
+					header: {'token': uni.getStorageSync('token')},
+					data: {
+						curr: 1,
+						limit: 30,
+						order_no: _this.searchValue
+					},
+					method: 'GET',
+					success(res) {
+						res = res.data
+						if (res.code === 200) {
+							_this.dataList = res.data.records
+						} 
+					}
+				})
+			},
 			searchValueInput() {
 				let count = 0
 				let sign = 0
@@ -108,14 +127,13 @@
 					header: {'token': uni.getStorageSync('token')},
 					data: {
 						curr: 1,
-						limit: 1000,
+						limit: 30,
 					},
 					method: 'GET',
 					success(res) {
 						res = res.data
 						if (res.code === 200) {
 							_this.dataList = res.data
-							_this.oldDataList = [..._this.dataList]
 						} 
 					}
 				})

--
Gitblit v1.9.1