From c338f12193ffea6922df314c4cb552ecea762fe3 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 06 一月 2026 20:00:52 +0800
Subject: [PATCH] #

---
 pages/emptyTray/inBound.vue |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/pages/emptyTray/inBound.vue b/pages/emptyTray/inBound.vue
index f7dd07f..eaa1675 100644
--- a/pages/emptyTray/inBound.vue
+++ b/pages/emptyTray/inBound.vue
@@ -4,7 +4,7 @@
 			<view class="cu-form-group margin-top">
 				<view class="title">瀹瑰櫒鍙�</view>
 				<input placeholder="璇锋壂瀹瑰櫒鏉$爜" v-model="container"></input>
-				<text class='cuIcon-search text-blue' @click="search"></text>
+				<!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
 			</view>
 			<view class="cu-form-group ">
 				<view class="title">鎺ラ┏绔欑偣</view>
@@ -65,8 +65,8 @@
 
 
 		<view class="cu-bar btn-group foot">
-			<button class="cu-btn text-blue line-blue shadow" @click="clear">娓呯┖</button>
-			<button class="cu-btn bg-blue shadow-blur" @click="confirm">鍥炲簱</button>
+			<button v-if="hasButtonPermission('reset')" class="cu-btn text-blue line-blue shadow" @click="clear">娓呯┖</button>
+			<button v-if="hasButtonPermission('submit')" class="cu-btn bg-blue shadow-blur" @click="confirm">鍥炲簱</button>
 		</view>
 
 		<uni-popup ref="popup" class="cu-popup">
@@ -113,13 +113,18 @@
 				container: '',
 				list: [],
 				range: [],
-				curCode: ''
+				curCode: '',
+				buttonPermissions: [] // 鎸夐挳鏉冮檺鍒楄〃
 			}
 		},
 		computed: {
 			...mapState('user', ['dynamicFields']),
 		},
-		mounted() {},
+		mounted() {
+			// 鑾峰彇鎸夐挳鏉冮檺
+			this.buttonPermissions = uni.getStorageSync('buttonPermissions') || [];
+			console.log('褰撳墠椤甸潰鎸夐挳鏉冮檺:', this.buttonPermissions);
+		},
 		methods: {
 			async search() {
 				const {
@@ -140,6 +145,11 @@
 						icon: "none",
 					})
 				}
+			},
+			
+			// 妫�鏌ユ寜閽潈闄�
+			hasButtonPermission(route) {
+				return this.buttonPermissions.includes(route);
 			},
 
 			remove(index) {
@@ -186,14 +196,14 @@
 					code,
 					data,
 					msg
-				} = await request('/AGV/staBind',{
-						barcode: this.container,
-						sta: this.barcode
+				} = await request('/in/emptyContainer/warehousing',{
+						containerNo: this.container,
+						transferStationNo: this.barcode
 					}
 				)
 				if (code === 200) {
 					uni.showToast({
-						title: '缁戝畾鎴愬姛'
+						title: '鍛煎彨鍏ュ簱鎴愬姛'
 					})
 					this.clear()
 				} else {

--
Gitblit v1.9.1