견적서

This commit is contained in:
basssy 2024-11-27 17:06:35 +09:00
parent 74f64cce56
commit 24e32f6a4a

View File

@ -660,31 +660,25 @@ export default function Estimate({ params }) {
} }
}) })
let estimateOption = estimateContextState?.estimateOption?.split('、') let estimateOption = estimateContextState?.estimateOption?.split('、')
estimateOption = estimateOption.filter((option) => !pushData.includes(option)) let removeEstimateOption = estimateOption.filter((option) => pushData.includes(option))
let estimateOptionString = estimateOption.join('、') // let estimateOptionString = estimateOption.join('')
console.log('바꾼값:::::::', estimateOptionString)
console.log('SpecialNoteLis::', specialNoteList) // console.log('SpecialNoteLis::', specialNoteList)
// .. specialNoteList.map((row) => {
// specialNoteList.map((row) => { row.check = false
// let spnAttrCds = res?.spnAttrCds?.split('') estimateOption.map((row2) => {
// let estimateOption = estimateContextState?.estimateOption?.split('') if (row.pkgYn === '0') {
// let combineArray = Array.from(new Set([...spnAttrCds, ...estimateOption])).sort() if (row2 === row.code) {
// row.check = false row.check = true
// combineArray.map((row2) => { }
// if (row.pkgYn === '0') { } else {
// if (row2 === row.code) { console.log('제품가대세팅::::', row.code)
// row.check = true console.log('removeEstimateOption::::', removeEstimateOption)
// } return
// } else { }
// if (row.code.includes(row2)) { })
// row.check = true })
// return
// }
// }
// })
// })
estimateContextState.itemList.map((item) => { estimateContextState.itemList.map((item) => {
delete item.showSalePrice delete item.showSalePrice
@ -707,6 +701,7 @@ export default function Estimate({ params }) {
// const price // const price
totAmount += amount totAmount += amount
supplyPrice += price supplyPrice += price
console.log('공급가액::::::::::::::::::::::', supplyPrice)
} }
}) })
@ -771,7 +766,7 @@ export default function Estimate({ params }) {
} }
} }
}) })
supplyPrice = addSupplyPrice + Number(estimateContextState.pkgTotPrice) supplyPrice = addSupplyPrice + Number(estimateContextState.pkgTotPrice / 1000)
vatPrice = supplyPrice * 0.1 vatPrice = supplyPrice * 0.1
totPrice = supplyPrice + vatPrice totPrice = supplyPrice + vatPrice
setEstimateContextState({ setEstimateContextState({