From 67714e49aeb4794bab20ee85e779c702a423a636 Mon Sep 17 00:00:00 2001
From: Leeyh1121 <130335980+Leeyh1121@users.noreply.github.com>
Date: Mon, 8 Jul 2024 15:49:01 +0900
Subject: [PATCH] =?UTF-8?q?fit=20:=20=EC=A0=9C=ED=92=88=EC=B6=94=EA=B0=80?=
=?UTF-8?q?=EC=8B=9C=20-=20=EC=A0=9C=EA=B1=B0=ED=95=98=EB=8F=84=EB=A1=9D?=
=?UTF-8?q?=20=EB=B3=80=EA=B2=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp
index 19ff9c1..e46eeaa 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp
@@ -477,12 +477,11 @@
}
const prdFrm = $P.productFormFields.get();
- const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe+prdFrm.mnfNo+prdFrm.mnfSeq;
+ const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe.replaceAll('-','')+prdFrm.mnfNo+prdFrm.mnfSeq;
let isDup = $P.productList
.getDataset()
- .filter(item => prdInfo == ""+item.prductCd+item.prdValidDe+item.mnfNo+item.mnfSeq)
+ .filter(item => prdInfo == ""+item.prductCd+item.prdValidDe.replaceAll('-','')+item.mnfNo+item.mnfSeq)
.length > 0;
-
if(isDup){
const msg = "이미 추가된 제품 입니다
제품코드: " + prdFrm.prductCd +"
유효기간: "+ prdFrm.prdValidDe +"
제조번호: "+ prdFrm.mnfNo +"
제조일련번호: "+ prdFrm.mnfSeq;
dialog.alert({
@@ -491,9 +490,8 @@
return false;
}
- console.log($P.productFormFields.get());
const data = {...$P.productFormFields.get(), keyCnt : ""+prdRowKey++};
- console.log(data);
+ data.prdValidDe = data.prdValidDe.replaceAll('-','');
$P.productList.append([data]);
}