From 84747858c5f143f761c776f27400782ef20a12e8 Mon Sep 17 00:00:00 2001 From: "kaf829@naver.com" Date: Fri, 25 Aug 2023 10:34:52 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20'=EB=B0=9C=EC=A3=BC=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=ED=92=88=EB=AA=A9=EC=B6=94=EA=B0=80=20#19'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/redux/slices/porderModalDuck.js | 1 - .../src/views/dashboard/components/PorderComponents2.js | 2 -- .../src/views/dashboard/components/modal/PorderModal.js | 6 +----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/redux/slices/porderModalDuck.js b/frontend/src/redux/slices/porderModalDuck.js index a65f577..c6ac5ba 100644 --- a/frontend/src/redux/slices/porderModalDuck.js +++ b/frontend/src/redux/slices/porderModalDuck.js @@ -15,7 +15,6 @@ const porderModalReducer = createSlice({ reducers: { open_Modal: (state) => { state.openModal = true; - console.log('모달오픈()') }, close_Modal: (state) => { state.openModal = false; diff --git a/frontend/src/views/dashboard/components/PorderComponents2.js b/frontend/src/views/dashboard/components/PorderComponents2.js index 331005f..353a2d0 100644 --- a/frontend/src/views/dashboard/components/PorderComponents2.js +++ b/frontend/src/views/dashboard/components/PorderComponents2.js @@ -90,7 +90,6 @@ const PorderComponets2 = () => { return formattedDate } const pOrderitemInsert = () => { - console.log("발주코드" + pOrderCode); const data = { itemCode: itemCode, receiveDeadline: formatDate(selectedDateTime), @@ -204,7 +203,6 @@ const PorderComponets2 = () => { receiveDeadline: formatDate(editReceiveDeadLine), pOrderPrice: editPOrderItemPrice } - console.log(pOrderItemStateModifyDto) axios.patch(`http://localhost:8888/api/porder-item/modify?pOrderItemNo=${pOrderItemNo}`, pOrderItemStateModifyDto) .then(() => { diff --git a/frontend/src/views/dashboard/components/modal/PorderModal.js b/frontend/src/views/dashboard/components/modal/PorderModal.js index dfba612..603a7c7 100644 --- a/frontend/src/views/dashboard/components/modal/PorderModal.js +++ b/frontend/src/views/dashboard/components/modal/PorderModal.js @@ -94,8 +94,6 @@ const PorderModal = () => { pOrderDate: formatDate(new Date()), manager: manageName, } - console.log("피오더데이트" + saveData.pOrderDate); - console.log("pOrderComponent2" + JSON.stringify(saveData)) itemAddAxios(saveData); dispatch(close_Modal());//위에 dispatch를 사용하면 지워야함 setSelectedItems([]); @@ -119,7 +117,6 @@ const PorderModal = () => { const handleRowClick = (clickedItem) => { // 이미 선택된 로우는 중복 추가하지 않습니다. if (!selectedItems.some(item => item.itemCode === clickedItem.itemCode)) { - console.log(clickedItem) const newItem = { itemCode: clickedItem.itemCode, pOrderCount: '0', // 초기에는 수량을 0으로 설정합니다. @@ -142,7 +139,7 @@ const PorderModal = () => { const newData = prevData.map((item) => item.itemCode === editedData.itemCode ? { ...item, pOrderCount: editedData.pOrderCount, pOrderPrice: editedData.pOrderPrice } : item ); - console.log(newData); + return newData; }); @@ -180,7 +177,6 @@ const PorderModal = () => { const formattedDate = format(receiveDeadline, 'yyyy-MM-dd HH:mm:ss'); // "yyyy-MM-dd HH:mm:ss" 형식으로 변환 setSelectedItems(prevItems => { const updatedItems = [...prevItems]; - console.log("Formatted Date:", formattedDate); updatedItems[index].receiveDeadline = formattedDate; return updatedItems; });