물건상세화면 문서다운로드 조건 추가
This commit is contained in:
parent
7b5c0b615c
commit
ea7203b7f0
@ -282,27 +282,26 @@ export default function StuffDetail() {
|
|||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
cellStyle: { justifyContent: 'center' },
|
cellStyle: { justifyContent: 'center' },
|
||||||
cellRenderer: (params) => {
|
cellRenderer: (params) => {
|
||||||
let buttonStyle = { display: 'flex' }
|
let buttonStyle = ''
|
||||||
let buttonStyle2 = { display: 'flex' }
|
let buttonStyle2 = ''
|
||||||
if (params.value == null) {
|
if (params.value == null) {
|
||||||
buttonStyle = {
|
buttonStyle = 'none'
|
||||||
display: 'none',
|
buttonStyle2 = 'none'
|
||||||
}
|
|
||||||
buttonStyle2 = {
|
|
||||||
display: 'none',
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (params?.data?.createSaleStoreId === 'T01') {
|
if (params?.data?.createSaleStoreId === 'T01') {
|
||||||
if (session?.storeId !== 'T01') {
|
if (session?.storeId !== 'T01') {
|
||||||
buttonStyle = { display: 'none' }
|
buttonStyle = 'none'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (params?.data?.tempFlg === '1') {
|
||||||
|
buttonStyle2 = 'none'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="grid-cell-btn">
|
<div className="grid-cell-btn">
|
||||||
<button
|
<button
|
||||||
style={buttonStyle}
|
style={{ display: buttonStyle }}
|
||||||
type="button"
|
type="button"
|
||||||
className="grid-btn"
|
className="grid-btn"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -316,7 +315,7 @@ export default function StuffDetail() {
|
|||||||
{getMessage('stuff.detail.planGrid.btn1')}
|
{getMessage('stuff.detail.planGrid.btn1')}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
style={buttonStyle2}
|
style={{ display: buttonStyle2 }}
|
||||||
type="button"
|
type="button"
|
||||||
className="grid-btn"
|
className="grid-btn"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user