견적서 수정
This commit is contained in:
parent
7a7c34de4d
commit
9e1a0699b2
@ -356,6 +356,7 @@ export default function Estimate({ params }) {
|
|||||||
if (item2.itemId === item.itemId) {
|
if (item2.itemId === item.itemId) {
|
||||||
updateList.push({
|
updateList.push({
|
||||||
...item,
|
...item,
|
||||||
|
openFlg: item2.unitPrice === '0.0' ? '1' : '0',
|
||||||
salePrice: item2.unitPrice === null ? '0' : item2.unitPrice,
|
salePrice: item2.unitPrice === null ? '0' : item2.unitPrice,
|
||||||
saleTotPrice: (item.amount * item2.unitPrice).toString(),
|
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 = (res.salePrice * estimateContextState.itemList[index].amount).toString()
|
||||||
// updates.saleTotPrice = ''
|
// updates.saleTotPrice = ''
|
||||||
updates.amount = ''
|
updates.amount = ''
|
||||||
|
updates.openFlg = res.openFlg
|
||||||
|
|
||||||
if (estimateContextState.estimateType === 'YJSS') {
|
if (estimateContextState.estimateType === 'YJSS') {
|
||||||
if (res.pkgMaterialFlg === '0') {
|
if (res.pkgMaterialFlg === '0') {
|
||||||
@ -1322,9 +1324,9 @@ export default function Estimate({ params }) {
|
|||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col width={50} />
|
<col width={50} />
|
||||||
<col width={50} />
|
<col width={60} />
|
||||||
<col />
|
<col />
|
||||||
<col width={250} />
|
<col width={300} />
|
||||||
<col width={90} />
|
<col width={90} />
|
||||||
<col width={80} />
|
<col width={80} />
|
||||||
<col width={170} />
|
<col width={170} />
|
||||||
@ -1451,9 +1453,11 @@ export default function Estimate({ params }) {
|
|||||||
maxLength={12}
|
maxLength={12}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/* <div className="btn-area">
|
{item.openFlg === '1' && (
|
||||||
<span className="tb_ico open_check"></span>
|
<div className="btn-area">
|
||||||
</div> */}
|
<span className="tb_ico open_check"></span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="al-r">
|
<td className="al-r">
|
||||||
|
|||||||
@ -89,6 +89,7 @@ export const useEstimateController = (planNo) => {
|
|||||||
partAdd: '1', //NEW 체인지 플래그
|
partAdd: '1', //NEW 체인지 플래그
|
||||||
delFlg: '0', //삭제 플래그 0 삭제하면 1
|
delFlg: '0', //삭제 플래그 0 삭제하면 1
|
||||||
addFlg: true,
|
addFlg: true,
|
||||||
|
paDispOrder: null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user