mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 03:12:27 +09:00
fix : 상세 화면은 수정 버튼이 보이면 안됨
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { getContractDetail, updateContract, saveContract } from "/src/service/contractApi.ts";
|
import { getContractDetail, updateContract, saveContract } from "/src/service/contractApi.ts";
|
||||||
|
import {changeConfirm, signStart} from "/@src/service/signDocApi.ts";
|
||||||
|
|
||||||
onBeforeMount(async ()=>{
|
onBeforeMount(async ()=>{
|
||||||
const result = await getContractDetail(history.state.key)
|
const result = await getContractDetail(history.state.key)
|
||||||
@@ -99,6 +100,7 @@ function getDetailList(arg){
|
|||||||
completedPriceDataParams.contAmt = arg.contAmt
|
completedPriceDataParams.contAmt = arg.contAmt
|
||||||
// completedPriceDataParams.svyDt = arg.signDt 계약체결일 todo
|
// completedPriceDataParams.svyDt = arg.signDt 계약체결일 todo
|
||||||
completedPriceDataParams.reason = arg.reason
|
completedPriceDataParams.reason = arg.reason
|
||||||
|
params.contStatCd = arg.contStatCd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -201,39 +203,17 @@ function handleFileChange(e, idx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const saveContOne = async () => {
|
const moveList = () => {
|
||||||
|
router.push('/app/contractManagement')
|
||||||
|
}
|
||||||
|
|
||||||
|
const onChangeSign = async() => {
|
||||||
let res = null
|
let res = null
|
||||||
try{
|
try{
|
||||||
loading.value = true
|
loading.value = true
|
||||||
// if (!validation()) {
|
res = await changeConfirm(params.contNo)
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
const paramsCont ={
|
|
||||||
prcsNo: completedPriceDataParams.prcsNo,
|
|
||||||
bizNo: completedPriceDataParams.bizNo,
|
|
||||||
compNm: completedPriceDataParams.compNm,
|
|
||||||
title: completedPriceDataParams.title,
|
|
||||||
regSdat: formatMonthDate(completedPriceDataParams.regSdat),
|
|
||||||
regEdat: formatMonthDate(completedPriceDataParams.regEdat),
|
|
||||||
contAmt: completedPriceDataParams.contAmt,
|
|
||||||
signDt: formatMonthDate(completedPriceDataParams.svyDt),
|
|
||||||
reason: completedPriceDataParams.reason,
|
|
||||||
exeYn: true, // 가격조사 예외여부 확인필요
|
|
||||||
// cateCd: completedPriceDataParams.cateCd,
|
|
||||||
// cateNm: completedPriceDataParams.cateNm,
|
|
||||||
// content: completedPriceDataParams.content,
|
|
||||||
// regSabun: completedPriceDataParams.regSabun,
|
|
||||||
// regNm: completedPriceDataParams.regNm,
|
|
||||||
// regDt: formatMonthDate(completedPriceDataParams.regDt),
|
|
||||||
// stCd: completedPriceDataParams.stCd,
|
|
||||||
// stNm: completedPriceDataParams.stNm,
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
res = await updateContract(paramsCont)
|
|
||||||
|
|
||||||
if(res.request.status == '200'){
|
if(res.request.status == '200'){
|
||||||
notyf.primary('등록 되었습니다.')
|
notyf.primary('전자결재 조회 되었습니다.')
|
||||||
router.push({path: '/app/contractManagement'})
|
router.push({path: '/app/contractManagement'})
|
||||||
}
|
}
|
||||||
}catch(e){
|
}catch(e){
|
||||||
@@ -242,10 +222,6 @@ const saveContOne = async () => {
|
|||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const moveList = () => {
|
|
||||||
router.push('/app/contractManagement')
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -546,7 +522,8 @@ const moveList = () => {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="bottom-button">
|
<div class="bottom-button">
|
||||||
<VButton @click="saveContOne">수 정</VButton>
|
<VButton v-if="params.contStatCd == '0100'" @click="onChangeSign">전자결재(상세)</VButton>
|
||||||
|
<VButton v-else-if="params.contStatCd == '0200'" @click="onChangeSign">대금지급 전자결재(상세)</VButton>
|
||||||
<VButton @click="moveList">취 소</VButton>
|
<VButton @click="moveList">취 소</VButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user