mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 04:52:31 +09:00
fix : 전표 검색 기능 추가 및 확인 필요, 대금청구 버튼 분리
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import {getContractList} from "/src/service/contractApi";
|
||||
import regex, {formatCurrency} from "/@src/utils/common/regex.ts";
|
||||
import { formatDatefromString } from '/@src/utils/common/comfunc'
|
||||
|
||||
const emits = defineEmits(['on-search', 'on-tr-click'])
|
||||
const selUser = ref()
|
||||
@@ -27,20 +28,40 @@ onBeforeMount(async () => {
|
||||
})
|
||||
|
||||
async function getContractListView() {
|
||||
const today = new Date()
|
||||
params.regSdt = new Date().setDate(today.getDate() - 30)
|
||||
const contractParams = {
|
||||
params:{
|
||||
title: '',
|
||||
regSdt:formatDatefromString(params.regSdt),
|
||||
regEdt:'',
|
||||
page: '1',
|
||||
row: '10'
|
||||
}
|
||||
}
|
||||
const result = await getContractList(contractParams)
|
||||
data.contractData = result
|
||||
}
|
||||
|
||||
const onSearch = async () => {
|
||||
const contractParams = {
|
||||
params:{
|
||||
cateCd: selectedCode.value,
|
||||
regSdt:formatDatefromString(params.regSdt),
|
||||
regEdt:formatDatefromString(params.regEdt),
|
||||
page: '1',
|
||||
row: '10'
|
||||
}
|
||||
}
|
||||
const result = await getContractList(contractParams)
|
||||
data.contractData = result
|
||||
console.log('result', result)
|
||||
}
|
||||
|
||||
const params = reactive({
|
||||
sessionUser:'',
|
||||
contNo: '',
|
||||
regNm: '',
|
||||
regSdt:'',
|
||||
regEdt: '',
|
||||
flexColumn: [
|
||||
{ key: 'cateNm', label: '분야', cellClass: 'contractColumn1'},
|
||||
{ key: 'title', label: '계약명', cellClass: 'contractColumn2' },
|
||||
@@ -55,13 +76,19 @@ const params = reactive({
|
||||
})
|
||||
|
||||
function getContractDetail(){
|
||||
//contStatCd 결재상태 코드 [계약전:0000, 계약종료:0100, ]
|
||||
//contStatCd 결재상태 코드 [계약전:0000, 계약중:0100, 계약종료:0200 ]
|
||||
if(params.sessionUser.sabun == arguments[0].regSabun && arguments[0].contStatCd == '0000'){
|
||||
router.push({ path: '/app/contractUpdate', state: { key: arguments[0].contNo}})
|
||||
}else{
|
||||
router.push({ path: '/app/contractDetail', state: { key: arguments[0].contNo }})
|
||||
}
|
||||
}
|
||||
|
||||
function getBilling(row){
|
||||
if(params.sessionUser.sabun == row.regSabun && row.contStatCd == '0200'){
|
||||
router.push({ path: '/app/DocumentManagement', state: { key: row.contNo}})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -87,7 +114,7 @@ function getContractDetail(){
|
||||
</VLabel>
|
||||
<VControl>
|
||||
<input
|
||||
v-model="params.title"
|
||||
v-model="params.contNo"
|
||||
class="input custom-text-filter"
|
||||
placeholder="계약번호"
|
||||
>
|
||||
@@ -173,7 +200,7 @@ function getContractDetail(){
|
||||
color="primary"
|
||||
elevated
|
||||
icon="fas fa-search"
|
||||
@click.stop="emits('on-search', params)"
|
||||
@click="onSearch"
|
||||
>
|
||||
검색
|
||||
</VButton>
|
||||
@@ -209,11 +236,10 @@ function getContractDetail(){
|
||||
<template #body-cell-charge="{ row }">
|
||||
<div>
|
||||
<VButton
|
||||
v-if="row.contStat==='계약종료'"
|
||||
v-if="row.contStatCd==='0200'"
|
||||
color="info"
|
||||
size="small"
|
||||
to="/app/DocumentManagement"
|
||||
@click.stop
|
||||
@click.stop="getBilling(row)"
|
||||
>
|
||||
대금청구
|
||||
</VButton>
|
||||
|
||||
Reference in New Issue
Block a user