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