From 44b83f33ff3a35edced78d89927a734f19de81ba Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期日, 28 十二月 2025 18:00:02 +0800
Subject: [PATCH] 更改空托入库,更改出库测量对应楼层禁用,

---
 项目代码/PDA/pages/Inbound/InboundBoxing_New.vue |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/InboundBoxing_New.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/InboundBoxing_New.vue"
index afa8a34..7c76553 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/InboundBoxing_New.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/InboundBoxing_New.vue"
@@ -131,7 +131,7 @@
 				BearingModels:[], // 瀵瑰簲杞﹀瀷涓嬮潰鐨勬墍鏈夎酱鎵垮瀷鍙�
 				templists:[], // 涓存椂淇濆瓨 杞存壙鍨嬪彿 鍜� 鍘傚
 				StateArray: [{
-						label: 'RO',
+						label: 'R0',
 						value: '鏂伴��'
 					},{
 						label: 'R1',
@@ -244,20 +244,33 @@
 				}
 			},
 			initInfo() {
-				_this.madeUnit = '';
-				_this.materielId = '';
-				_this.materielType = '';
-				_this.NewOrOld = '';
+				//_this.madeUnit = '';
+				//_this.materielId = '';
+				//_this.materielType = '';
+				//_this.NewOrOld = '';
 				_this.LotNumber = '';
-				_this.ProductDate = '';
+				//_this.ProductDate = '';
 			},
 			SaveInfomation() {
+				let data = {
+					MainData: {
+						rfid: _this.value_rfid,
+						qrcode: _this.value_qrcode,
+						madeUnit: _this.madeUnit,
+						materielId: _this.materielId,
+						materielType: _this.materielType,
+						NewOrOld: _this.NewOrOld,
+						LotNumber: _this.LotNumber,
+						ProductDate: _this.ProductDate
+					},
+				};
+				console.log("鏈�鍚庢彁浜ょ殑缁勭洏淇℃伅",data)
 				//_this.LotNumber == '' ||
 				if (_this.value_rfid.length == 0 || _this.value_qrcode.length == 0 ||
 					_this.madeUnit == '' || _this.materielId == '' ||
 					_this.materielType == '' || _this.NewOrOld == '' ||
 					 _this.ProductDate == '') {
-
+					
 					uni.showToast({
 						title: "缁勭洏淇℃伅涓嶈兘涓虹┖",
 						duration: 2000,
@@ -304,6 +317,7 @@
 									_this.value_qrcode = "";
 									_this.initInfo();
 									_this.rfidFocus = true;
+									
 								} else {
 									uni.showToast({
 										icon: 'none',
@@ -322,6 +336,17 @@
 					}
 				});
 			},
+			getCurrentDate() {
+			      const now = new Date();
+			      // 鑾峰彇骞淬�佹湀銆佹棩锛堣ˉ0澶勭悊锛岀‘淇濇湀浠�/鏃ユ湡鏄袱浣嶆暟锛�
+			      const year = now.getFullYear();
+			      const month = String(now.getMonth() + 1).padStart(2, '0'); // 鏈堜唤浠�0寮�濮嬶紝闇�+1
+			      const day = String(now.getDate()).padStart(2, '0');
+			      // 鎷兼帴鎴怸YYY-MM-DD鏍煎紡
+			      this.currentDate = `${year}-${month}-${day}`;
+			      // 濡傛灉闇�瑕佽繑鍥炲�硷紙姣斿鎺ュ彛浼犲弬锛夛紝鍙互return杩欎釜缁撴灉
+			      return `${year}-${month}-${day}`;
+			    },
 		},
 		created: function() {
 			// 姣忔杩涘叆鐣岄潰鏃讹紝鍏堟竻闄や箣鍓嶇殑鎵�鏈夊畾鏃跺櫒锛岀劧鍚庡惎鍔ㄦ柊鐨勫畾鏃跺櫒
@@ -341,7 +366,9 @@
 		mounted() {
 			_this = this;
 			_this.rfidFocus = true;
+			_this.ProductDate = this.getCurrentDate();
 			this.VehicleType();
+			
 		},
 
 

--
Gitblit v1.9.3