견적서 수정

This commit is contained in:
basssy 2024-11-28 18:04:26 +09:00
parent 7a7c34de4d
commit 9e1a0699b2
2 changed files with 10 additions and 5 deletions

View File

@ -356,6 +356,7 @@ export default function Estimate({ params }) {
if (item2.itemId === item.itemId) {
updateList.push({
...item,
openFlg: item2.unitPrice === '0.0' ? '1' : '0',
salePrice: item2.unitPrice === null ? '0' : item2.unitPrice,
saleTotPrice: (item.amount * item2.unitPrice).toString(),
})
@ -535,6 +536,7 @@ export default function Estimate({ params }) {
updates.saleTotPrice = (res.salePrice * estimateContextState.itemList[index].amount).toString()
// updates.saleTotPrice = ''
updates.amount = ''
updates.openFlg = res.openFlg
if (estimateContextState.estimateType === 'YJSS') {
if (res.pkgMaterialFlg === '0') {
@ -1322,9 +1324,9 @@ export default function Estimate({ params }) {
<table>
<colgroup>
<col width={50} />
<col width={50} />
<col width={60} />
<col />
<col width={250} />
<col width={300} />
<col width={90} />
<col width={80} />
<col width={170} />
@ -1451,9 +1453,11 @@ export default function Estimate({ params }) {
maxLength={12}
/>
</div>
{/* <div className="btn-area">
<span className="tb_ico open_check"></span>
</div> */}
{item.openFlg === '1' && (
<div className="btn-area">
<span className="tb_ico open_check"></span>
</div>
)}
</div>
</td>
<td className="al-r">

View File

@ -89,6 +89,7 @@ export const useEstimateController = (planNo) => {
partAdd: '1', //NEW 체인지 플래그
delFlg: '0', //삭제 플래그 0 삭제하면 1
addFlg: true,
paDispOrder: null,
},
],
})