소스 정리

This commit is contained in:
basssy 2025-02-05 16:54:50 +09:00
parent ae2541164f
commit ccbceb020e
3 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown
// EXCEL // EXCEL
const [schUnitPriceFlg, setSchUnitPriceFlg] = useState('0') const [schUnitPriceFlg, setSchUnitPriceFlg] = useState('0')
// //
const [schDisplayFlg, setSchSchDisplayFlg] = useState('0') const [schDisplayFlg, setSchDisplayFlg] = useState('0')
// (:1 : 0) // (:1 : 0)
const [schWeightFlg, setSchWeightFlg] = useState('1') const [schWeightFlg, setSchWeightFlg] = useState('1')
/// ///
@ -208,7 +208,7 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown
value={'0'} value={'0'}
checked={schDisplayFlg === '0'} checked={schDisplayFlg === '0'}
onChange={(e) => { onChange={(e) => {
setSchSchDisplayFlg(e.target.value) setSchDisplayFlg(e.target.value)
}} }}
/> />
<label htmlFor="schDisplayFlg0">{getMessage('estimate.detail.docPopup.schDisplayFlg.schDisplayFlg0')}</label> <label htmlFor="schDisplayFlg0">{getMessage('estimate.detail.docPopup.schDisplayFlg.schDisplayFlg0')}</label>
@ -221,7 +221,7 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown
value={'1'} value={'1'}
checked={schDisplayFlg === '1'} checked={schDisplayFlg === '1'}
onChange={(e) => { onChange={(e) => {
setSchSchDisplayFlg(e.target.value) setSchDisplayFlg(e.target.value)
}} }}
/> />
<label htmlFor="schDisplayFlg1">{getMessage('estimate.detail.docPopup.schDisplayFlg.schDisplayFlg1')}</label> <label htmlFor="schDisplayFlg1">{getMessage('estimate.detail.docPopup.schDisplayFlg.schDisplayFlg1')}</label>

View File

@ -69,7 +69,7 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) {
get({ url: url }).then((res) => { get({ url: url }).then((res) => {
if (!isEmptyArray(res)) { if (!isEmptyArray(res)) {
res.map((row) => { res.map((row) => {
row.value == row.saleStoreId row.value = row.saleStoreId
row.label = row.saleStoreName row.label = row.saleStoreName
}) })
otherList = res otherList = res

View File

@ -7,16 +7,16 @@ export default function ProductFeaturesPop({ popShowSpecialNoteList, showProduct
useEffect(() => { useEffect(() => {
let pushData = [] let pushData = []
popShowSpecialNoteList.map((row) => { popShowSpecialNoteList.forEach((row) => {
let option = showProductFeatureData.split('、') let option = showProductFeatureData.split('、')
option.map((row2) => { option.forEach((row2) => {
if (row.code === row2) { if (row.code === row2) {
pushData.push(row) pushData.push(row)
} }
}) })
}) })
setShowSpecialNoteList(pushData) setShowSpecialNoteList(pushData)
}, [popShowSpecialNoteList]) }, [popShowSpecialNoteList, showProductFeatureData])
return ( return (
<div className="modal-popup"> <div className="modal-popup">