견적서 수정
This commit is contained in:
parent
44323266e5
commit
cf6e5da7a0
@ -167,29 +167,31 @@ export const useEstimateController = (planNo) => {
|
|||||||
|
|
||||||
if (fileFlg) {
|
if (fileFlg) {
|
||||||
estimateData.itemList.map((item) => {
|
estimateData.itemList.map((item) => {
|
||||||
item.amount = item.amount?.replaceAll(',', '')
|
if (item.delFlg === '0') {
|
||||||
item.salePrice = parseFloat(item.salePrice?.replaceAll(',', '')).toFixed(2)
|
item.amount = item.amount?.replaceAll(',', '')
|
||||||
item.saleTotPrice = parseFloat(item.saleTotPrice?.replaceAll(',', '')).toFixed(2)
|
item.salePrice = parseFloat(item.salePrice?.replaceAll(',', '')).toFixed(2)
|
||||||
|
item.saleTotPrice = parseFloat(item.saleTotPrice?.replaceAll(',', '')).toFixed(2)
|
||||||
|
|
||||||
if (!item.paDispOrder) {
|
if (!item.paDispOrder) {
|
||||||
if (itemFlg) {
|
if (itemFlg) {
|
||||||
if (isNaN(item.amount)) {
|
if (isNaN(item.amount)) {
|
||||||
item.amount = '0'
|
item.amount = '0'
|
||||||
}
|
|
||||||
|
|
||||||
if (item.amount < 1) {
|
|
||||||
itemFlg = false
|
|
||||||
return alert(getMessage('estimate.detail.save.requiredAmount'))
|
|
||||||
}
|
|
||||||
|
|
||||||
if (estimateData.estimateType !== 'YJSS') {
|
|
||||||
if (isNaN(item.salePrice)) {
|
|
||||||
item.salePrice = '0'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.salePrice < 1) {
|
if (item.amount < 1) {
|
||||||
itemFlg = false
|
itemFlg = false
|
||||||
return alert(getMessage('estimate.detail.save.requiredSalePrice'))
|
return alert(getMessage('estimate.detail.save.requiredAmount'))
|
||||||
|
}
|
||||||
|
|
||||||
|
if (estimateData.estimateType !== 'YJSS') {
|
||||||
|
if (isNaN(item.salePrice)) {
|
||||||
|
item.salePrice = '0'
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.salePrice < 1) {
|
||||||
|
itemFlg = false
|
||||||
|
return alert(getMessage('estimate.detail.save.requiredSalePrice'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user