견적서
This commit is contained in:
parent
5c3e4d76cf
commit
b6873f4d27
@ -422,7 +422,8 @@ export default function Estimate({ params }) {
|
|||||||
//현재 PKG용량값 가져오기
|
//현재 PKG용량값 가져오기
|
||||||
|
|
||||||
let totVolKw = estimateContextState.totVolKw * 1000
|
let totVolKw = estimateContextState.totVolKw * 1000
|
||||||
let pkgTotPrice = pkgAsp.replaceAll(',', '') * totVolKw
|
let pkgTotPrice = pkgAsp.replaceAll(',', '') * totVolKw * 1000
|
||||||
|
|
||||||
setEstimateContextState({
|
setEstimateContextState({
|
||||||
pkgAsp: pkgAsp,
|
pkgAsp: pkgAsp,
|
||||||
pkgTotPrice: pkgTotPrice.toFixed(3),
|
pkgTotPrice: pkgTotPrice.toFixed(3),
|
||||||
@ -655,6 +656,7 @@ export default function Estimate({ params }) {
|
|||||||
if (item.moduleFlg === '1') {
|
if (item.moduleFlg === '1') {
|
||||||
//용량(Kw)은 모듈플래그 1만 합산
|
//용량(Kw)은 모듈플래그 1만 합산
|
||||||
const volKw = (item.pnowW * amount) / 1000
|
const volKw = (item.pnowW * amount) / 1000
|
||||||
|
// const volKw = item.pnowW * amount
|
||||||
totVolKw += volKw
|
totVolKw += volKw
|
||||||
}
|
}
|
||||||
// const price
|
// const price
|
||||||
@ -699,11 +701,11 @@ export default function Estimate({ params }) {
|
|||||||
if (item.moduleFlg === '1') {
|
if (item.moduleFlg === '1') {
|
||||||
//용량(Kw)은 모듈플래그 1만 합산
|
//용량(Kw)은 모듈플래그 1만 합산
|
||||||
const volKw = (item.pnowW * amount) / 1000
|
const volKw = (item.pnowW * amount) / 1000
|
||||||
|
// const volKw = item.pnowW * amount
|
||||||
totVolKw += volKw
|
totVolKw += volKw
|
||||||
}
|
}
|
||||||
|
|
||||||
setEstimateContextState({
|
setEstimateContextState({
|
||||||
pkgTotPrice: estimateContextState.pkgAsp.replaceAll(',', '') * totVolKw,
|
pkgTotPrice: estimateContextState.pkgAsp.replaceAll(',', '') * totVolKw * 1000,
|
||||||
})
|
})
|
||||||
//pkgTotPrice
|
//pkgTotPrice
|
||||||
// const saleTotPrice
|
// const saleTotPrice
|
||||||
|
|||||||
@ -173,7 +173,7 @@ export const useEstimateController = (planNo) => {
|
|||||||
if (isNaN(item.amount)) {
|
if (isNaN(item.amount)) {
|
||||||
item.amount = 0
|
item.amount = 0
|
||||||
} else {
|
} else {
|
||||||
Number(item.amount)
|
item.amount = Number(item.amount)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.amount < 1) {
|
if (item.amount < 1) {
|
||||||
@ -181,7 +181,13 @@ export const useEstimateController = (planNo) => {
|
|||||||
return alert(getMessage('estimate.detail.save.requiredAmount'))
|
return alert(getMessage('estimate.detail.save.requiredAmount'))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Number(item.salePrice) < 1) {
|
if (isNaN(item.salePrice)) {
|
||||||
|
item.salePrice = 0
|
||||||
|
} else {
|
||||||
|
item.salePrice = Number(item.salePrice)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.salePrice < 1) {
|
||||||
itemFlg = false
|
itemFlg = false
|
||||||
return alert(getMessage('estimate.detail.save.requiredSalePrice'))
|
return alert(getMessage('estimate.detail.save.requiredSalePrice'))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user