견적서 상세

This commit is contained in:
basssy 2024-11-19 09:45:32 +09:00
parent 5131b0d049
commit 246bf3ea41
4 changed files with 18 additions and 14 deletions

View File

@ -35,6 +35,7 @@ import { MENU } from '@/common/common'
import { useEstimateController } from '@/hooks/floorPlan/estimate/useEstimateController' import { useEstimateController } from '@/hooks/floorPlan/estimate/useEstimateController'
import { estimateState } from '@/store/floorPlanObjectAtom' import { estimateState } from '@/store/floorPlanObjectAtom'
import DocDownOptionPop from '../estimate/popup/DocDownOptionPop' import DocDownOptionPop from '../estimate/popup/DocDownOptionPop'
import { button } from '@nextui-org/react'
export default function CanvasMenu(props) { export default function CanvasMenu(props) {
const { menuNumber, setMenuNumber } = props const { menuNumber, setMenuNumber } = props
@ -168,7 +169,6 @@ export default function CanvasMenu(props) {
*/ */
const handleEstimateCopy = () => { const handleEstimateCopy = () => {
// console.log('estimateRecoilState::', estimateRecoilState)
//objectNo, planNo //objectNo, planNo
console.log('복사') console.log('복사')
console.log('물건정보+도면+견적서를 모두 복사') console.log('물건정보+도면+견적서를 모두 복사')
@ -279,7 +279,6 @@ export default function CanvasMenu(props) {
<span className="ico ico02"></span> <span className="ico ico02"></span>
<span>{getMessage('plan.menu.estimate.save')}</span> <span>{getMessage('plan.menu.estimate.save')}</span>
</button> </button>
{/* {estimateRecoilState?.docNo != null && ( */}
<button <button
className="btn-frame gray ico-flx" className="btn-frame gray ico-flx"
onClick={() => { onClick={() => {
@ -289,17 +288,19 @@ export default function CanvasMenu(props) {
<span className="ico ico03"></span> <span className="ico ico03"></span>
<span>{getMessage('plan.menu.estimate.reset')}</span> <span>{getMessage('plan.menu.estimate.reset')}</span>
</button> </button>
{/* )} */}
<button {estimateRecoilState?.docNo !== null && (sessionState.storeId === 'T01' || sessionState.storeLvl === '1') && (
className="btn-frame gray ico-flx" <button
onClick={() => { type="button"
handleEstimateCopy() className="btn-frame gray ico-flx"
}} onClick={() => {
> handleEstimateCopy()
<span className="ico ico04"></span> }}
<span>{getMessage('plan.menu.estimate.copy')}</span> >
</button> <span className="ico ico04"></span>
<span>{getMessage('plan.menu.estimate.copy')}</span>
</button>
)}
</div> </div>
</> </>
)} )}

View File

@ -6,6 +6,7 @@ import { estimateState, floorPlanObjectState } from '@/store/floorPlanObjectAtom
import { isObjectNotEmpty } from '@/util/common-utils' import { isObjectNotEmpty } from '@/util/common-utils'
import { SessionContext } from '@/app/SessionProvider' import { SessionContext } from '@/app/SessionProvider'
import { useMessage } from '@/hooks/useMessage' import { useMessage } from '@/hooks/useMessage'
import { useRouter } from 'next/navigation'
const reducer = (prevState, nextState) => { const reducer = (prevState, nextState) => {
return { ...prevState, ...nextState } return { ...prevState, ...nextState }
@ -34,6 +35,7 @@ const updateItemInList = (itemList, dispOrder, updates) => {
} }
export const useEstimateController = (planNo) => { export const useEstimateController = (planNo) => {
const router = useRouter()
const { session } = useContext(SessionContext) const { session } = useContext(SessionContext)
const globalLocaleState = useRecoilValue(globalLocaleStore) const globalLocaleState = useRecoilValue(globalLocaleStore)
const objectRecoil = useRecoilValue(floorPlanObjectState) const objectRecoil = useRecoilValue(floorPlanObjectState)
@ -185,6 +187,7 @@ export const useEstimateController = (planNo) => {
// console.log('최종 남은 아이템정보:::', estimateData.itemList) // console.log('최종 남은 아이템정보:::', estimateData.itemList)
console.log('최종 정보::;', estimateData) console.log('최종 정보::;', estimateData)
//drawingFlg null ???? //drawingFlg null ????
//2. 상세데이터 저장 //2. 상세데이터 저장
// return // return

View File

@ -160,7 +160,7 @@
"plan.menu.estimate.docDown": "文書のダウンロード", "plan.menu.estimate.docDown": "文書のダウンロード",
"plan.menu.estimate.save": "保存", "plan.menu.estimate.save": "保存",
"plan.menu.estimate.reset": "初期化", "plan.menu.estimate.reset": "初期化",
"plan.menu.estimate.copy": "コピー", "plan.menu.estimate.copy": "見積書のコピー",
"plan.menu.simulation": "発展シミュレーション", "plan.menu.simulation": "発展シミュレーション",
"plan.menu.simulation.excel": "Excel", "plan.menu.simulation.excel": "Excel",
"plan.menu.simulation.pdf": "PDF", "plan.menu.simulation.pdf": "PDF",

View File

@ -164,7 +164,7 @@
"plan.menu.estimate.docDown": "문서 다운로드", "plan.menu.estimate.docDown": "문서 다운로드",
"plan.menu.estimate.save": "저장", "plan.menu.estimate.save": "저장",
"plan.menu.estimate.reset": "초기화", "plan.menu.estimate.reset": "초기화",
"plan.menu.estimate.copy": "복사", "plan.menu.estimate.copy": "견적서 복사",
"plan.menu.simulation": "발전 시뮬레이션", "plan.menu.simulation": "발전 시뮬레이션",
"plan.menu.simulation.excel": "Excel", "plan.menu.simulation.excel": "Excel",
"plan.menu.simulation.pdf": "PDF", "plan.menu.simulation.pdf": "PDF",