From 7947d8e88bbfa1bc434213324c38fad83005a50b Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 14 十二月 2023 15:18:25 +0800
Subject: [PATCH] #

---
 pages/pakin/goodsUp.vue |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pages/pakin/goodsUp.vue b/pages/pakin/goodsUp.vue
index 7ad1284..b72479d 100644
--- a/pages/pakin/goodsUp.vue
+++ b/pages/pakin/goodsUp.vue
@@ -79,6 +79,7 @@
 						<view class="popup-item-right">
 							<input type="text" v-model="matnr" disabled="true"
 								style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;">
+								
 						</view>
 					</view>
 					<!-- <view class="popup-item">
@@ -274,6 +275,13 @@
 								// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
 								events: {
 									matList: function(data) {
+										if(data.data.batch == "" || data.data.batch == null){
+											const now = new Date();
+											const year = now.getFullYear();
+											const month = now.getMonth() + 1; // 鏈堜唤浠�0寮�濮嬶紝闇�瑕佸姞1
+											const day = now.getDate();
+											data.data.batch = (""+year+month+day)
+										}
 										that.checkMat(data.data)
 									},
 								},
@@ -327,6 +335,7 @@
 				var len = this.dataList.length
 				var add = true ,sameItem = false
 				for (var i = 0; i < len; i++) {
+					
 					if (mat.matnr == this.dataList[i].matnr) {
 						for (var j = 0; j < len; j++) {
 							if (mat.batch == this.dataList[j].batch) {

--
Gitblit v1.9.1