From 234e0265fbed611b20f0903bb69fbf0bd5417c1c Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期一, 10 十一月 2025 15:51:22 +0800
Subject: [PATCH] 最新

---
 项目代码/PDA/pages/EmptyTraycode/EmptyOperator.vue |   67 ++++++++++++++++++++++-----------
 1 files changed, 45 insertions(+), 22 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/EmptyTraycode/EmptyOperator.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/EmptyTraycode/EmptyOperator.vue"
index abb115d..512b237 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/EmptyTraycode/EmptyOperator.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/EmptyTraycode/EmptyOperator.vue"
@@ -1,21 +1,33 @@
 <template>
 	<view class="login__info tn-flex tn-flex-direction-column tn-flex-col-center tn-flex-row-center">
+		
+		<view
+			class="login__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left">
+			<view class="login__info__item__input__content">
+				<input maxlength="500" style="height: 40px;" v-model="barcode" focus="true" placeholder-class="input-placeholder"
+					@input="barcodeInput" placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" />
+			</view>
+		</view>
+		
 		<view
 			class="login__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left">
 			<view class="login__info__item__input__content">
 				<input maxlength="500" v-model="cacheName" placeholder-class="input-placeholder" @click="cacheshow=true"
-					placeholder="璇烽�夋嫨绌烘墭" />
-				<u-picker v-model="cacheshow" mode="selector" :range="selectorCache" range-key="cateName"
+					placeholder="璇烽�夋嫨鎵樼洏绫诲瀷" />
+				<u-picker v-model="cacheshow" mode="selector" :range="selectorCache" range-key="cateName" 
 					@confirm="cacheConfirm"></u-picker>
 			</view>
 		</view>
-
+		
+		
 		<view class="login__info__item__button tn-cool-bg-color-7--reverse" @tap="submit()" hover-class="tn-hover"
-			:hover-stay-time="150">鍛煎彨绌烘墭
+			:hover-stay-time="150">鏂板鎵樼洏
 		</view>
 		<u-toast ref="uToast"></u-toast>
 		
 	</view>
+	
+	
 </template>
 
 <script>
@@ -26,7 +38,9 @@
 				cacheNo: '',
 				cacheName: '',
 				cacheshow: false,
-				selectorCache: []
+				selectorCache: [],
+				barcode:"",
+				
 			}
 		},
 		mounted(){
@@ -39,36 +53,42 @@
 				this.cacheName = x.cateName
 				this.cacheNo = x.id
 			},
+			///鏉$爜
+			barcodeInput: function(e) {
+				this.barcode = e.detail.value;
+			},
 			SetCacheList(){
-				this.$u.get("/api/Sys_Traycodeinfo/SetCacheList").then(res => {
+				this.$u.get("/api/Dt_pallet/SetCacheList").then(res => {
 					for (let i = 0; i < res.data.length; i++) {
 					    this.selectorCache.push({
-					      cateName: res.data[i].traycode_name,
-					      id: res.data[i].traycode_type
+					      cateName: res.data[i].palletname,
+					      id: res.data[i].palletnumber
 					    })
 					  }
 				});
 			},
 			submit() {
-				let radio = ''
-				this.$u.post("/api/Task/EmptyOutbound", {
+				if (this.barcode == '') {
+					this.$t.message.toast('鎵樼洏鏉$爜涓嶈兘涓虹┖');
+					return
+				}
+				if (this.cacheName == '') {
+					this.$t.message.toast('璇烽�夋嫨杞﹀瀷');
+					return
+				}
+				this.$u.post("/api/Sys_Traycodeinfo/AddTenantInfo", {
 					MainData: {
 						cacheNo: this.cacheNo,
+						barcode:this.barcode
 					}
 				}).then(res => {
-					console.log(res)
+					if(res.status){
+						this.barcode="";
+						this.cacheName = '';
+					}
 					this.$t.message.toast(res.message);
+					
 				})
-				
-				// this.$u.post("/api/Task/MaintenanceStorage", {
-				// 	MainData: {
-				// 		barcode: "800010",
-				// 		Stationnumber:"2014"
-				// 	}
-				// }).then(res => {
-				// 	console.log(res)
-				// 	this.$t.message.toast(res.message);
-				// })
 			}
 		}
 	}
@@ -80,7 +100,10 @@
 	.rocket-sussuspension {
 		animation: suspension 3s ease-in-out infinite;
 	}
-
+		
+	.u-icon-plus, .u-icon-minus{
+		width: 40px;
+	}
 	@keyframes suspension {
 
 		0%,

--
Gitblit v1.9.3