상단 메뉴 명 / 이동경로 변경
물건현황 목록화면 수정
This commit is contained in:
parent
ff8d7f4cbc
commit
ed90f71908
@ -89,8 +89,8 @@ export default function Header(props) {
|
|||||||
name: 'header.menus.management',
|
name: 'header.menus.management',
|
||||||
url: '',
|
url: '',
|
||||||
children: [
|
children: [
|
||||||
{ id: 3, name: 'header.menus.management.stuff', url: '/management/stuff', children: [] },
|
{ id: 3, name: 'header.menus.management.newStuff', url: '/management/stuff/tempdetail', children: [] },
|
||||||
{ id: 4, name: 'header.menus.management.plan', url: '/floor-plan', children: [] },
|
{ id: 4, name: 'header.menus.management.stuffList', url: '/management/stuff', children: [] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -71,7 +71,7 @@ export default function Stuff() {
|
|||||||
// headerCheckboxSelectionCurrentPageOnly: true, //페이징시 현재 페이지만 체크되도록
|
// headerCheckboxSelectionCurrentPageOnly: true, //페이징시 현재 페이지만 체크되도록
|
||||||
// checkboxSelection: true,
|
// checkboxSelection: true,
|
||||||
// showDisabledCheckboxes: true,
|
// showDisabledCheckboxes: true,
|
||||||
cellStyle: { textAlign: 'center' },
|
cellStyle: { justifyContent: 'center' },
|
||||||
valueFormatter: function (params) {
|
valueFormatter: function (params) {
|
||||||
if (params.value) {
|
if (params.value) {
|
||||||
return dayjs(params?.value).format('YYYY.MM.DD HH:mm:ss')
|
return dayjs(params?.value).format('YYYY.MM.DD HH:mm:ss')
|
||||||
@ -85,31 +85,32 @@ export default function Stuff() {
|
|||||||
minWidth: 230,
|
minWidth: 230,
|
||||||
headerName: getMessage('stuff.gridHeader.objectNo'),
|
headerName: getMessage('stuff.gridHeader.objectNo'),
|
||||||
cellRenderer: function (params) {
|
cellRenderer: function (params) {
|
||||||
|
let objectNo = params.value.substring(0, 1)
|
||||||
if (params.data.objectNo) {
|
if (params.data.objectNo) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="copy-ico-wrap" onDoubleClick={onDoubleClick}>
|
||||||
<Button
|
{params.value.toLocaleString()}
|
||||||
size="sm"
|
{objectNo === 'R' && (
|
||||||
color="default"
|
<button
|
||||||
onPress={() => {
|
type="button"
|
||||||
|
className="copy_ico"
|
||||||
|
onClick={() => {
|
||||||
copyNo(params.value)
|
copyNo(params.value)
|
||||||
}}
|
}}
|
||||||
>
|
></button>
|
||||||
복사
|
)}
|
||||||
</Button>
|
|
||||||
<span onDoubleClick={onDoubleClick}>{params.value}</span>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cellRendererParams: {
|
cellRendererParams: {
|
||||||
onPress: copyNo,
|
onClick: copyNo,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'planTotCnt',
|
field: 'planTotCnt',
|
||||||
headerName: getMessage('stuff.gridHeader.planTotCnt'),
|
headerName: getMessage('stuff.gridHeader.planTotCnt'),
|
||||||
cellStyle: { textAlign: 'right' },
|
cellStyle: { justifyContent: 'center' },
|
||||||
},
|
},
|
||||||
{ field: 'objectName', headerName: getMessage('stuff.gridHeader.objectName'), cellStyle: { textAlign: 'left' } },
|
{ field: 'objectName', headerName: getMessage('stuff.gridHeader.objectName'), cellStyle: { textAlign: 'left' } },
|
||||||
{
|
{
|
||||||
@ -131,7 +132,7 @@ export default function Stuff() {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cellStyle: { textAlign: 'center' },
|
cellStyle: { justifyContent: 'center' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'createDatetime',
|
field: 'createDatetime',
|
||||||
@ -143,7 +144,7 @@ export default function Stuff() {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cellStyle: { textAlign: 'center' },
|
cellStyle: { justifyContent: 'center' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
gridCount: 0,
|
gridCount: 0,
|
||||||
|
|||||||
@ -25,18 +25,36 @@ export default function StuffSubHeader({ type }) {
|
|||||||
const moveFloorPlan = () => {
|
const moveFloorPlan = () => {
|
||||||
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
|
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
|
||||||
|
|
||||||
router.push('/floor-plan')
|
//상단 헤더에서 이동할땐 무조건 첫번째 플랜으로
|
||||||
|
router.push('/floor-plan/estimate/5/1')
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<div className="sub-header">
|
<div className="sub-header">
|
||||||
<div className="sub-header-inner">
|
<div className="sub-header-inner">
|
||||||
{type === 'list' && (
|
{type === 'list' && (
|
||||||
|
<>
|
||||||
<Link href={'#'}>
|
<Link href={'#'}>
|
||||||
<h1 className="sub-header-title">{getMessage('header.menus.management')}</h1>
|
<h1 className="sub-header-title">{getMessage('header.menus.management')}</h1>
|
||||||
</Link>
|
</Link>
|
||||||
|
<ul className="sub-header-location">
|
||||||
|
<li className="location-item">
|
||||||
|
<span className="home">
|
||||||
|
<Image src="/static/images/main/home_icon.svg" alt="react" width={16} height={16} />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li className="location-item">
|
||||||
|
<span>{getMessage('header.menus.management')}</span>
|
||||||
|
</li>
|
||||||
|
<li className="location-item">
|
||||||
|
<span>{getMessage('header.menus.management.stuffList')}</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
{type === 'temp' && (
|
{type === 'temp' && (
|
||||||
|
<>
|
||||||
<ul className="sub-header-title-wrap">
|
<ul className="sub-header-title-wrap">
|
||||||
<li className="title-item">
|
<li className="title-item">
|
||||||
<Link className="sub-header-title" href={'#'}>
|
<Link className="sub-header-title" href={'#'}>
|
||||||
@ -44,8 +62,23 @@ export default function StuffSubHeader({ type }) {
|
|||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul className="sub-header-location">
|
||||||
|
<li className="location-item">
|
||||||
|
<span className="home">
|
||||||
|
<Image src="/static/images/main/home_icon.svg" alt="react" width={16} height={16} />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li className="location-item">
|
||||||
|
<span>{getMessage('header.menus.management')}</span>
|
||||||
|
</li>
|
||||||
|
<li className="location-item">
|
||||||
|
<span>{getMessage('header.menus.management.newStuff')}</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
{type === 'detail' && (
|
{type === 'detail' && (
|
||||||
|
<>
|
||||||
<ul className="sub-header-title-wrap">
|
<ul className="sub-header-title-wrap">
|
||||||
<li className="title-item">
|
<li className="title-item">
|
||||||
<Link className="sub-header-title" href={'#'}>
|
<Link className="sub-header-title" href={'#'}>
|
||||||
@ -59,9 +92,6 @@ export default function StuffSubHeader({ type }) {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
|
||||||
|
|
||||||
{type !== 'detail' && (
|
|
||||||
<ul className="sub-header-location">
|
<ul className="sub-header-location">
|
||||||
<li className="location-item">
|
<li className="location-item">
|
||||||
<span className="home">
|
<span className="home">
|
||||||
@ -72,11 +102,13 @@ export default function StuffSubHeader({ type }) {
|
|||||||
<span>{getMessage('header.menus.management')}</span>
|
<span>{getMessage('header.menus.management')}</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="location-item">
|
<li className="location-item">
|
||||||
<span>{getMessage('header.menus.management.stuff')}</span>
|
<span>{getMessage('header.menus.management.newStuff')}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
"welcome": "환영합니다. {0}님",
|
"welcome": "환영합니다. {0}님",
|
||||||
"header.menus.home": "ホームへv",
|
"header.menus.home": "ホームへv",
|
||||||
"header.menus.management": "物品及び図面管理",
|
"header.menus.management": "物品及び図面管理",
|
||||||
"header.menus.management.stuff": "新規物件登録",
|
"header.menus.management.newStuff": "新規 物件 登録",
|
||||||
"header.menus.management.plan": "モノ/図面管理",
|
"header.menus.management.stuffList": "物件の状況",
|
||||||
"header.menus.community": "コミュニティ",
|
"header.menus.community": "コミュニティ",
|
||||||
"header.menus.community.notice": "お知らせ",
|
"header.menus.community.notice": "お知らせ",
|
||||||
"header.menus.community.faq": "FAQ",
|
"header.menus.community.faq": "FAQ",
|
||||||
@ -606,7 +606,7 @@
|
|||||||
"stuff.planReqPopup.search.schDateGbnR": "受付日",
|
"stuff.planReqPopup.search.schDateGbnR": "受付日",
|
||||||
"stuff.planReqPopup.error.message1": "設計依頼を選択してください。",
|
"stuff.planReqPopup.error.message1": "設計依頼を選択してください。",
|
||||||
"stuff.search.title": "物件状況",
|
"stuff.search.title": "物件状況",
|
||||||
"stuff.search.btn1": "物件登録",
|
"stuff.search.btn1": "新規 物件 登録",
|
||||||
"stuff.search.btn2": "照会",
|
"stuff.search.btn2": "照会",
|
||||||
"stuff.search.btn3": "初期化",
|
"stuff.search.btn3": "初期化",
|
||||||
"stuff.search.schObjectNo": "品番",
|
"stuff.search.schObjectNo": "品番",
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
"welcome": "환영합니다. {0}님",
|
"welcome": "환영합니다. {0}님",
|
||||||
"header.menus.home": "Home",
|
"header.menus.home": "Home",
|
||||||
"header.menus.management": "물건 및 도면 관리",
|
"header.menus.management": "물건 및 도면 관리",
|
||||||
"header.menus.management.stuff": "신규 물건 등록",
|
"header.menus.management.newStuff": "신규 물건 등록",
|
||||||
"header.menus.management.plan": "사물/도면 관리",
|
"header.menus.management.stuffList": "물건 현황",
|
||||||
"header.menus.community": "커뮤니티",
|
"header.menus.community": "커뮤니티",
|
||||||
"header.menus.community.notice": "공지",
|
"header.menus.community.notice": "공지",
|
||||||
"header.menus.community.faq": "FAQ",
|
"header.menus.community.faq": "FAQ",
|
||||||
@ -611,7 +611,7 @@
|
|||||||
"stuff.planReqPopup.search.schDateGbnR": "접수일",
|
"stuff.planReqPopup.search.schDateGbnR": "접수일",
|
||||||
"stuff.planReqPopup.error.message1": "설계의뢰를 선택해주세요.",
|
"stuff.planReqPopup.error.message1": "설계의뢰를 선택해주세요.",
|
||||||
"stuff.search.title": "물건현황",
|
"stuff.search.title": "물건현황",
|
||||||
"stuff.search.btn1": "신규등록",
|
"stuff.search.btn1": "신규 물건 등록",
|
||||||
"stuff.search.btn2": "조회",
|
"stuff.search.btn2": "조회",
|
||||||
"stuff.search.btn3": "초기화",
|
"stuff.search.btn3": "초기화",
|
||||||
"stuff.search.schObjectNo": "물건번호",
|
"stuff.search.schObjectNo": "물건번호",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user