견적서
This commit is contained in:
parent
19ed919cc1
commit
b728be3786
@ -530,8 +530,8 @@ export default function Estimate({ params }) {
|
||||
|
||||
if (estimateContextState.estimateType === 'YJSS') {
|
||||
if (res.pkgMaterialFlg === '0') {
|
||||
//updates.showSalePrice = '0'
|
||||
//updates.showSaleTotPrice = '0'
|
||||
updates.showSalePrice = '0'
|
||||
updates.showSaleTotPrice = '0'
|
||||
}
|
||||
}
|
||||
//104671
|
||||
@ -642,8 +642,8 @@ export default function Estimate({ params }) {
|
||||
console.log('YJOD 토탈만들어주기::::::::::', estimateContextState.itemList)
|
||||
|
||||
estimateContextState.itemList.map((item) => {
|
||||
//delete item.showSalePrice
|
||||
//delete item.showSaleTotPrice
|
||||
delete item.showSalePrice
|
||||
delete item.showSaleTotPrice
|
||||
if (item.delFlg === '0') {
|
||||
let amount = Number(item?.amount?.replace(/[^0-9]/g, '').replaceAll(',', ''))
|
||||
if (isNaN(amount)) {
|
||||
@ -720,8 +720,8 @@ export default function Estimate({ params }) {
|
||||
if (!item.paDispOrder) {
|
||||
//paDispOrder
|
||||
if (item.pkgMaterialFlg === '0') {
|
||||
//item.showSalePrice = '0'
|
||||
//item.showSaleTotPrice = '0'
|
||||
item.showSalePrice = '0'
|
||||
item.showSaleTotPrice = '0'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1271,7 +1271,7 @@ export default function Estimate({ params }) {
|
||||
<col width={250} />
|
||||
<col width={90} />
|
||||
<col width={80} />
|
||||
<col width={140} />
|
||||
<col width={170} />
|
||||
<col width={190} />
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -1397,16 +1397,13 @@ export default function Estimate({ params }) {
|
||||
/>
|
||||
</div>
|
||||
{/* <div className="btn-area">
|
||||
<span className="tb_ico open_check">OPEN아이콘 처리</span>
|
||||
</div> */}
|
||||
<span className="tb_ico open_check"></span>
|
||||
</div> */}
|
||||
</div>
|
||||
</td>
|
||||
<td className="al-r">{convertNumberToPriceDecimal(item?.saleTotPrice?.replaceAll(',', ''))}</td>
|
||||
{/* {item?.showSaleTotPrice === '0' ? (
|
||||
<td className="al-r"></td>
|
||||
) : (
|
||||
<td className="al-r">{convertNumberToPriceDecimalToFixed(item?.saleTotPrice?.replaceAll(',', ''), 2)}</td>
|
||||
)} */}
|
||||
<td className="al-r">
|
||||
{convertNumberToPriceDecimal(item?.showSaleTotPrice === '0' ? null : item?.saleTotPrice?.replaceAll(',', ''))}
|
||||
</td>
|
||||
</tr>
|
||||
)
|
||||
} else {
|
||||
|
||||
@ -179,9 +179,7 @@ export const useEstimateController = (planNo) => {
|
||||
return alert(getMessage('estimate.detail.save.requiredAmount'))
|
||||
}
|
||||
|
||||
console.log('상세::', estimateData)
|
||||
if (estimateData.estimateType !== 'YJSS') {
|
||||
console.log('아이템 체크::', item.salePrice)
|
||||
if (isNaN(item.salePrice)) {
|
||||
item.salePrice = '0'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user