캔버스 메뉴 탭에 물건정보 & 견적서 페이지 이동 추가
This commit is contained in:
parent
7ac7168150
commit
65a7126a59
@ -135,6 +135,15 @@ export default function CanvasMenu(props) {
|
|||||||
|
|
||||||
const onClickNav = (menu) => {
|
const onClickNav = (menu) => {
|
||||||
switch (menu.index) {
|
switch (menu.index) {
|
||||||
|
case 0:
|
||||||
|
swalFire({
|
||||||
|
text: getMessage('stuff.detail.move.confirmMsg'),
|
||||||
|
type: 'confirm',
|
||||||
|
confirmFn: () => {
|
||||||
|
router.push(`/management/stuff/detail?objectNo=${objectNo}`)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
break
|
||||||
case 1:
|
case 1:
|
||||||
setType('placementShape')
|
setType('placementShape')
|
||||||
onClickPlacementInitialMenu()
|
onClickPlacementInitialMenu()
|
||||||
@ -153,6 +162,11 @@ export default function CanvasMenu(props) {
|
|||||||
case 4:
|
case 4:
|
||||||
setType('module')
|
setType('module')
|
||||||
break
|
break
|
||||||
|
case 5:
|
||||||
|
setMenuNumber(menu.index)
|
||||||
|
setCurrentMenu(menu.title)
|
||||||
|
router.push(`/floor-plan/estimate/5?pid=${pid}&objectNo=${objectNo}`)
|
||||||
|
break
|
||||||
case 6:
|
case 6:
|
||||||
promiseGet({ url: `/api/estimate/${objectNo}/${pid}/detail` }).then((res) => {
|
promiseGet({ url: `/api/estimate/${objectNo}/${pid}/detail` }).then((res) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
@ -169,12 +183,14 @@ export default function CanvasMenu(props) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menu.index !== 6) {
|
if (menu.index !== 6 && menu.index !== 0) {
|
||||||
setMenuNumber(menu.index)
|
setMenuNumber(menu.index)
|
||||||
setCurrentMenu(menu.title)
|
setCurrentMenu(menu.title)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pathname !== '/floor-plan') router.push(`/floor-plan?pid=${pid}&objectNo=${objectNo}`)
|
if (pathname !== '/floor-plan' && pathname !== '/floor-plan/estimate/5') {
|
||||||
|
router.push(`/floor-plan?pid=${pid}&objectNo=${objectNo}`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const changeSelectedRoofMaterial = (e) => {
|
const changeSelectedRoofMaterial = (e) => {
|
||||||
@ -236,6 +252,7 @@ export default function CanvasMenu(props) {
|
|||||||
|
|
||||||
// 견적서 초기화 버튼
|
// 견적서 초기화 버튼
|
||||||
const handleEstimateReset = () => {
|
const handleEstimateReset = () => {
|
||||||
|
return alert('개발전입니다;;;')
|
||||||
// console.log('estimateRecoilState::', estimateRecoilState)
|
// console.log('estimateRecoilState::', estimateRecoilState)
|
||||||
//objectNo, planNo
|
//objectNo, planNo
|
||||||
swalFire({
|
swalFire({
|
||||||
|
|||||||
@ -687,6 +687,7 @@
|
|||||||
"stuff.detail.save.valierror2": "設置高さ0より大きい値を入力してください",
|
"stuff.detail.save.valierror2": "設置高さ0より大きい値を入力してください",
|
||||||
"stuff.detail.save.valierror3": "{0} 必須入力項目です.",
|
"stuff.detail.save.valierror3": "{0} 必須入力項目です.",
|
||||||
"stuff.detail.save.valierror4": "二次販売店名は必須オプションです.",
|
"stuff.detail.save.valierror4": "二次販売店名は必須オプションです.",
|
||||||
|
"stuff.detail.move.confirmMsg": "商品情報画面に移動します。 [保存]していない図面情報は削除されます。商品情報画面に移動しますか?",
|
||||||
"stuff.planReqPopup.popTitle": "設計依頼検索",
|
"stuff.planReqPopup.popTitle": "設計依頼検索",
|
||||||
"stuff.planReqPopup.btn1": "検索",
|
"stuff.planReqPopup.btn1": "検索",
|
||||||
"stuff.planReqPopup.btn2": "初期化",
|
"stuff.planReqPopup.btn2": "初期化",
|
||||||
|
|||||||
@ -697,6 +697,7 @@
|
|||||||
"stuff.detail.save.valierror2": "설치높이는 0보다 큰 값을 입력하세요",
|
"stuff.detail.save.valierror2": "설치높이는 0보다 큰 값을 입력하세요",
|
||||||
"stuff.detail.save.valierror3": "{0} 필수 입력 항목입니다.",
|
"stuff.detail.save.valierror3": "{0} 필수 입력 항목입니다.",
|
||||||
"stuff.detail.save.valierror4": "2차 판매점명은 필수 선택사항입니다.",
|
"stuff.detail.save.valierror4": "2차 판매점명은 필수 선택사항입니다.",
|
||||||
|
"stuff.detail.move.confirmMsg": "물건정보 화면으로 이동합니다. [저장]하지 않은 도면정보는 삭제됩니다. 물건정보 화면으로 이동하시겠습니까?",
|
||||||
"stuff.planReqPopup.popTitle": "설계 의뢰 검색",
|
"stuff.planReqPopup.popTitle": "설계 의뢰 검색",
|
||||||
"stuff.planReqPopup.btn1": "검색",
|
"stuff.planReqPopup.btn1": "검색",
|
||||||
"stuff.planReqPopup.btn2": "초기화",
|
"stuff.planReqPopup.btn2": "초기화",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user