fix : 불필요한 코드 제거 및 상태코드 따른 버튼 설정

This commit is contained in:
Yesol Choi
2025-06-04 21:49:40 +09:00
parent 9d357672a2
commit 4a853b696a
2 changed files with 5 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ onBeforeMount(async ()=>{
result = await getContractDetail(history.state.key)
getDetailBeforeList(result)
}else if(history.state.status == '0300'){
params.contStatCd = history.state.status
// 대금지급 전 slip api 에서 결재선까지 받아옴
result = await getBeforeSlipDetail(history.state.key)
getDetailList(result)
@@ -111,6 +112,7 @@ const getDetailList = (item) => {
const getDetailBeforeList = (item) => {
console.log("item before",item)
params.contStatCd = item.contStatCd
params.contNo = item.contNo
params.place = item.compNm// !!!!!!업체명 bupla
params.bktxt = item.title //!!!!!!계약명
@@ -663,7 +665,8 @@ const moveDown = (index: number) => {
</tbody>
</table>
<div class="bottom-button">
<VButton @click="createChit"> </VButton>
<VButton v-if="params.contStatCd == '0200'" @click="createChit"> </VButton>
<VButton v-else-if="params.contStatCd == '0300'" @click="updateChit"> </VButton>
<VButton @click="cancel"> </VButton>
</div>
<div class="column is-12">