시연용 임시 주석 제거
This commit is contained in:
parent
11f0fa6d4b
commit
0271716e91
@ -85,8 +85,8 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown
|
|||||||
link.remove()
|
link.remove()
|
||||||
window.URL.revokeObjectURL(fileUrl)
|
window.URL.revokeObjectURL(fileUrl)
|
||||||
//문서 다운받으면 lockFlg = 1 잠금상태로!
|
//문서 다운받으면 lockFlg = 1 잠금상태로!
|
||||||
// estimateRecoilState.lockFlg = '1'
|
estimateRecoilState.lockFlg = '1'
|
||||||
// docDownPopLockFlg()
|
docDownPopLockFlg()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|||||||
@ -150,7 +150,7 @@ export default function CanvasMenu(props) {
|
|||||||
text: getMessage('stuff.detail.move.confirmMsg'),
|
text: getMessage('stuff.detail.move.confirmMsg'),
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
confirmFn: () => {
|
confirmFn: () => {
|
||||||
router.push(`/management/stuff/detail?objectNo=${objectNo}`)
|
router.push(`/management/stuff/detail?objectNo=${objectNo}`, { scroll: false })
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
@ -331,33 +331,33 @@ export default function CanvasMenu(props) {
|
|||||||
if (isObjectNotEmpty(estimateRecoilState)) {
|
if (isObjectNotEmpty(estimateRecoilState)) {
|
||||||
if (estimateRecoilState?.createUser === 'T01') {
|
if (estimateRecoilState?.createUser === 'T01') {
|
||||||
if (sessionState.userId !== 'T01') {
|
if (sessionState.userId !== 'T01') {
|
||||||
setButtonStyle('none')
|
// setButtonStyle('none')
|
||||||
// setButtonStyle1('none')
|
setButtonStyle1('none')
|
||||||
// setButtonStyle2('none')
|
setButtonStyle2('none')
|
||||||
// setButtonStyle3('none')
|
setButtonStyle3('none')
|
||||||
// setButtonStyle4('none')
|
setButtonStyle4('none')
|
||||||
// setButtonStyle5('none')
|
setButtonStyle5('none')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (estimateRecoilState?.tempFlg === '1') {
|
if (estimateRecoilState?.tempFlg === '1') {
|
||||||
// setButtonStyle1('none')
|
setButtonStyle1('none')
|
||||||
// setButtonStyle2('')
|
setButtonStyle2('')
|
||||||
// setButtonStyle3('none')
|
setButtonStyle3('none')
|
||||||
// setButtonStyle4('none')
|
setButtonStyle4('none')
|
||||||
// setButtonStyle5('none')
|
setButtonStyle5('none')
|
||||||
} else {
|
} else {
|
||||||
if (estimateRecoilState?.tempFlg === '0' && estimateRecoilState?.lockFlg === '0') {
|
if (estimateRecoilState?.tempFlg === '0' && estimateRecoilState?.lockFlg === '0') {
|
||||||
// setButtonStyle1('')
|
setButtonStyle1('')
|
||||||
// setButtonStyle2('')
|
setButtonStyle2('')
|
||||||
// setButtonStyle3('')
|
setButtonStyle3('')
|
||||||
// setButtonStyle4('')
|
setButtonStyle4('')
|
||||||
// setButtonStyle5('')
|
setButtonStyle5('')
|
||||||
} else {
|
} else {
|
||||||
// setButtonStyle1('')
|
setButtonStyle1('')
|
||||||
// setButtonStyle2('none')
|
setButtonStyle2('none')
|
||||||
// setButtonStyle3('none')
|
setButtonStyle3('none')
|
||||||
// setButtonStyle4('')
|
setButtonStyle4('')
|
||||||
// setButtonStyle5('')
|
setButtonStyle5('')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -524,20 +524,20 @@ export default function CanvasMenu(props) {
|
|||||||
{menuNumber === 5 && (
|
{menuNumber === 5 && (
|
||||||
<>
|
<>
|
||||||
<div className="ico-btn-from">
|
<div className="ico-btn-from">
|
||||||
<button className="btn-frame gray ico-flx" onClick={() => setEstimatePopupOpen(true)}>
|
{/* <button className="btn-frame gray ico-flx" onClick={() => setEstimatePopupOpen(true)}> */}
|
||||||
{/* <button type="button" style={{ display: buttonStyle1 }} className="btn-frame gray ico-flx" onClick={() => setEstimatePopupOpen(true)}> */}
|
<button type="button" style={{ display: buttonStyle1 }} className="btn-frame gray ico-flx" onClick={() => setEstimatePopupOpen(true)}>
|
||||||
<span className="ico ico01"></span>
|
<span className="ico ico01"></span>
|
||||||
<span className="name">{getMessage('plan.menu.estimate.docDown')}</span>
|
<span className="name">{getMessage('plan.menu.estimate.docDown')}</span>
|
||||||
</button>
|
</button>
|
||||||
{/* <button type="button" style={{ display: buttonStyle2 }} className="btn-frame gray ico-flx" onClick={handleEstimateSubmit}> */}
|
<button type="button" style={{ display: buttonStyle2 }} className="btn-frame gray ico-flx" onClick={handleEstimateSubmit}>
|
||||||
<button type="button" style={{ display: buttonStyle }} className="btn-frame gray ico-flx" onClick={handleEstimateSubmit}>
|
{/* <button type="button" style={{ display: buttonStyle }} className="btn-frame gray ico-flx" onClick={handleEstimateSubmit}> */}
|
||||||
<span className="ico ico02"></span>
|
<span className="ico ico02"></span>
|
||||||
<span className="name">{getMessage('plan.menu.estimate.save')}</span>
|
<span className="name">{getMessage('plan.menu.estimate.save')}</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
// style={{ display: buttonStyle3 }}
|
style={{ display: buttonStyle3 }}
|
||||||
style={{ display: buttonStyle }}
|
// style={{ display: buttonStyle }}
|
||||||
className="btn-frame gray ico-flx"
|
className="btn-frame gray ico-flx"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
handleEstimateReset()
|
handleEstimateReset()
|
||||||
@ -550,8 +550,8 @@ export default function CanvasMenu(props) {
|
|||||||
{estimateRecoilState?.docNo !== null && (sessionState.storeId === 'T01' || sessionState.storeLvl === '1') && (
|
{estimateRecoilState?.docNo !== null && (sessionState.storeId === 'T01' || sessionState.storeLvl === '1') && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
// style={{ display: buttonStyle4 }}
|
style={{ display: buttonStyle4 }}
|
||||||
style={{ display: buttonStyle }}
|
// style={{ display: buttonStyle }}
|
||||||
className="btn-frame gray ico-flx"
|
className="btn-frame gray ico-flx"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setEstimateCopyPopupOpen(true)
|
setEstimateCopyPopupOpen(true)
|
||||||
@ -563,13 +563,13 @@ export default function CanvasMenu(props) {
|
|||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
// style={{ display: buttonStyle5 }}
|
style={{ display: buttonStyle5 }}
|
||||||
style={{ display: buttonStyle }}
|
// style={{ display: buttonStyle }}
|
||||||
className="btn-frame gray ico-flx"
|
className="btn-frame gray ico-flx"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
//시연준비
|
//시연준비
|
||||||
alert('작업중입니다')
|
// alert('작업중입니다')
|
||||||
// handleEstimateLockController(estimateRecoilState)
|
handleEstimateLockController(estimateRecoilState)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="ico ico05"></span>
|
<span className="ico ico05"></span>
|
||||||
@ -601,8 +601,8 @@ export default function CanvasMenu(props) {
|
|||||||
</div>
|
</div>
|
||||||
{/* 견적서(menuNumber=== 5) 상세화면인경우 문서다운로드 팝업 */}
|
{/* 견적서(menuNumber=== 5) 상세화면인경우 문서다운로드 팝업 */}
|
||||||
{estimatePopupOpen && (
|
{estimatePopupOpen && (
|
||||||
// <DocDownOptionPop planNo={estimateRecoilState?.planNo} setEstimatePopupOpen={setEstimatePopupOpen} docDownPopLockFlg={docDownPopLockFlg} />
|
<DocDownOptionPop planNo={estimateRecoilState?.planNo} setEstimatePopupOpen={setEstimatePopupOpen} docDownPopLockFlg={docDownPopLockFlg} />
|
||||||
<DocDownOptionPop planNo={estimateRecoilState?.planNo} setEstimatePopupOpen={setEstimatePopupOpen} />
|
// <DocDownOptionPop planNo={estimateRecoilState?.planNo} setEstimatePopupOpen={setEstimatePopupOpen} />
|
||||||
)}
|
)}
|
||||||
{/* 견적서(menuNumber ===5)복사 팝업 */}
|
{/* 견적서(menuNumber ===5)복사 팝업 */}
|
||||||
{estimateCopyPopupOpen && <EstimateCopyPop planNo={estimateRecoilState?.planNo} setEstimateCopyPopupOpen={setEstimateCopyPopupOpen} />}
|
{estimateCopyPopupOpen && <EstimateCopyPop planNo={estimateRecoilState?.planNo} setEstimateCopyPopupOpen={setEstimateCopyPopupOpen} />}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user