mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:22:33 +09:00
fix : 불필요한 코드 제거 및 상태코드 따른 버튼 설정
This commit is contained in:
@@ -3,8 +3,6 @@ import {getContractList} from "/src/service/contractApi";
|
|||||||
import {formatCurrency} from "/@src/utils/common/regex.ts";
|
import {formatCurrency} from "/@src/utils/common/regex.ts";
|
||||||
import { formatDatefromString } from '/@src/utils/common/comfunc'
|
import { formatDatefromString } from '/@src/utils/common/comfunc'
|
||||||
|
|
||||||
const emits = defineEmits(['on-search', 'on-tr-click'])
|
|
||||||
const selUser = ref()
|
|
||||||
const masks = ref({
|
const masks = ref({
|
||||||
modelValue: 'YYYY-MM-DD',
|
modelValue: 'YYYY-MM-DD',
|
||||||
})
|
})
|
||||||
@@ -121,7 +119,6 @@ function getContractDetail(){
|
|||||||
function getBilling(row){
|
function getBilling(row){
|
||||||
if(params.sessionUser.sabun == row.regSabun && (row.contStatCd == '0200' || row.contStatCd == '0300')){
|
if(params.sessionUser.sabun == row.regSabun && (row.contStatCd == '0200' || row.contStatCd == '0300')){
|
||||||
//대금지급 전
|
//대금지급 전
|
||||||
|
|
||||||
const statusFlag = row.contStatCd
|
const statusFlag = row.contStatCd
|
||||||
router.push({ path: '/app/documentManagementInsertUpdate', state: { key: row.contNo, status: statusFlag}})
|
router.push({ path: '/app/documentManagementInsertUpdate', state: { key: row.contNo, status: statusFlag}})
|
||||||
}else if(params.sessionUser.sabun == row.regSabun && (row.contStatCd == '0400' || row.contStatCd == '0500')){
|
}else if(params.sessionUser.sabun == row.regSabun && (row.contStatCd == '0400' || row.contStatCd == '0500')){
|
||||||
@@ -141,7 +138,6 @@ watch(currentPage, (newParams) => {
|
|||||||
<div>
|
<div>
|
||||||
<div class="datatable-toolbar">
|
<div class="datatable-toolbar">
|
||||||
<div class="column is-2">
|
<div class="column is-2">
|
||||||
<!-- <VUserList v-model="selUser"/>-->
|
|
||||||
<VField class="pr-2">
|
<VField class="pr-2">
|
||||||
<VLabel class="has-fullwidth">
|
<VLabel class="has-fullwidth">
|
||||||
분야
|
분야
|
||||||
@@ -152,7 +148,7 @@ watch(currentPage, (newParams) => {
|
|||||||
</VField>
|
</VField>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-2">
|
<div class="column is-2">
|
||||||
<!-- <VUserList v-model="selUser"/>-->
|
|
||||||
<VField class="pr-2">
|
<VField class="pr-2">
|
||||||
<VLabel class="has-fullwidth">
|
<VLabel class="has-fullwidth">
|
||||||
계약번호
|
계약번호
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ onBeforeMount(async ()=>{
|
|||||||
result = await getContractDetail(history.state.key)
|
result = await getContractDetail(history.state.key)
|
||||||
getDetailBeforeList(result)
|
getDetailBeforeList(result)
|
||||||
}else if(history.state.status == '0300'){
|
}else if(history.state.status == '0300'){
|
||||||
|
params.contStatCd = history.state.status
|
||||||
// 대금지급 전 slip api 에서 결재선까지 받아옴
|
// 대금지급 전 slip api 에서 결재선까지 받아옴
|
||||||
result = await getBeforeSlipDetail(history.state.key)
|
result = await getBeforeSlipDetail(history.state.key)
|
||||||
getDetailList(result)
|
getDetailList(result)
|
||||||
@@ -111,6 +112,7 @@ const getDetailList = (item) => {
|
|||||||
|
|
||||||
const getDetailBeforeList = (item) => {
|
const getDetailBeforeList = (item) => {
|
||||||
console.log("item before",item)
|
console.log("item before",item)
|
||||||
|
params.contStatCd = item.contStatCd
|
||||||
params.contNo = item.contNo
|
params.contNo = item.contNo
|
||||||
params.place = item.compNm// !!!!!!업체명 bupla
|
params.place = item.compNm// !!!!!!업체명 bupla
|
||||||
params.bktxt = item.title //!!!!!!계약명
|
params.bktxt = item.title //!!!!!!계약명
|
||||||
@@ -663,7 +665,8 @@ const moveDown = (index: number) => {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="bottom-button">
|
<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>
|
<VButton @click="cancel">취 소</VButton>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-12">
|
<div class="column is-12">
|
||||||
|
|||||||
Reference in New Issue
Block a user