From b4109c203742424cc795bdca9ca1e00d5602e241 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期六, 26 十月 2024 08:24:15 +0800
Subject: [PATCH] #

---
 pages/order/orderList.vue |   51 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 48 insertions(+), 3 deletions(-)

diff --git a/pages/order/orderList.vue b/pages/order/orderList.vue
index 8c40407..665abc1 100644
--- a/pages/order/orderList.vue
+++ b/pages/order/orderList.vue
@@ -1,30 +1,76 @@
 <template>
 	<view>
+		<view class="status_bar">
+			<!-- 杩欓噷鏄姸鎬佹爮 -->
+		</view>
+		<uni-nav-bar left-icon="left" background-color="#f8f8f8" title="骞冲簱璁㈠崟涓嬫灦" @clickLeft="back"  :fixed="true"
+			:border="false" rightWidth="160rpx" leftWidth="160rpx"
+			>
+			<block slot="right">
+				<view class="city">
+					<view>
+						<text class="uni-nav-bar-text">{{store}}</text>
+					</view>
+				</view>
+			</block>
+		 </uni-nav-bar>
+		<!-- 鎼滅储妗� -->
+		<view class="search-bar">
+			<uni-search-bar v-model="orderNo" placeholder=" 杈撳叆璁㈠崟鍙�" bgColor="#EEEEEE" @input="search" />
+		</view>
 		<view class="card" v-for="item in menuList" @click="chose(item)">
 			{{item}}
 		</view>
 	</view>
 </template>
-
 <script>
 	export default {
 		data() {
 			return {
 				baseUrl: '',
 				token: '',
+				storeId: 0,
+				store: '',
+				orderNo: '',
 				menuList: []
 			}
 		},
 		onShow() {
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
+			this.storeId = uni.getStorageSync('store')
+			if (this.storeId == 1) {
+				this.store = '瀹佹尝浠�'
+			}
+			if (this.storeId == 2) {
+				this.store = '鏂版槍浠�'
+			}
 			this.getOrderNoList()
 		},
 		methods: {
+			back() {
+				uni.navigateBack({})
+			},
 			getOrderNoList() {
 				let that = this
 				uni.request({
 					url: this.baseUrl + '/outOrder/list/all',
+					data: "",
+					header: {
+						'token': uni.getStorageSync('token')
+					},
+					method: 'POST',
+					success(res) {
+						res = res.data
+						that.menuList = res.data
+					}
+				})
+			},
+			search() {
+				let that = this
+				uni.request({
+					url: this.baseUrl + '/outOrder/list/all',
+					data: that.orderNo,
 					header: {
 						'token': uni.getStorageSync('token')
 					},
@@ -52,8 +98,6 @@
 							that.input(that.matnr)
 						},
 					},
-				
-				
 				});
 			}
 		}
@@ -61,6 +105,7 @@
 </script>
 
 <style>
+	@import url('../../static/css/wms.css/wms.css');
 	.card {
 		margin: 20rpx;
 		padding: 30rpx;

--
Gitblit v1.9.1