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