견적서 특이사항 수정
This commit is contained in:
parent
204a222e13
commit
5e51952aab
@ -360,7 +360,6 @@ export default function Estimate({ params }) {
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
setEstimateContextState({
|
||||
specialNoteList: specialNoteList,
|
||||
uniqueData: uniqueData,
|
||||
@ -473,7 +472,7 @@ export default function Estimate({ params }) {
|
||||
//주택PKG input 변경
|
||||
const onChangePkgAsp = (value) => {
|
||||
if (estimateContextState.estimateType === 'YJSS') {
|
||||
let pkgAsp = Number(value.replaceAll(',', ''))
|
||||
let pkgAsp = Number(value.replace(/[^0-9]/g, '').replaceAll(',', ''))
|
||||
if (isNaN(pkgAsp)) {
|
||||
pkgAsp = 0
|
||||
} else {
|
||||
@ -482,7 +481,7 @@ export default function Estimate({ params }) {
|
||||
//현재 PKG용량값 가져오기
|
||||
|
||||
let totVolKw = estimateContextState.totVolKw * 1000
|
||||
let pkgTotPrice = pkgAsp.replaceAll(',', '') * totVolKw * 1000
|
||||
let pkgTotPrice = pkgAsp?.replaceAll(',', '') * totVolKw * 1000
|
||||
|
||||
setEstimateContextState({
|
||||
pkgAsp: pkgAsp,
|
||||
|
||||
@ -256,6 +256,7 @@ export const useEstimateController = (planNo) => {
|
||||
})
|
||||
|
||||
let estimateOptions = ''
|
||||
let estimateOptionsArray
|
||||
estimateData.specialNoteList.map((item) => {
|
||||
if (item.pkgYn === '0') {
|
||||
if (item.check) {
|
||||
@ -279,6 +280,12 @@ export const useEstimateController = (planNo) => {
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
estimateOptionsArray = estimateOptions.split('、').sort()
|
||||
estimateOptionsArray = Array.from(new Set(estimateOptionsArray))
|
||||
|
||||
estimateOptions = estimateOptionsArray.join('、')
|
||||
|
||||
estimateData.estimateOption = estimateOptions
|
||||
console.log('최종아이템:::', estimateData.itemList)
|
||||
console.log('최종저장::', estimateData)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user