From ca7a65d30d4e620974f851aa34cdcc0003bafbcd Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 14 十二月 2023 16:58:58 +0800
Subject: [PATCH] #

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

diff --git a/pages/pakin/goodsDown.vue b/pages/pakin/goodsDown.vue
index 1c86b81..d5a376d 100644
--- a/pages/pakin/goodsDown.vue
+++ b/pages/pakin/goodsDown.vue
@@ -255,6 +255,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)
 									},
 								},

--
Gitblit v1.9.1