func : 계약관리 수정 폼 작성

This commit is contained in:
Yesol Choi
2025-05-27 14:08:17 +09:00
parent c39290f146
commit b82053a51d
3 changed files with 747 additions and 22 deletions

View File

@@ -2,13 +2,12 @@
import {getContractList} from "/src/service/contract";
import regex, {formatCurrency} from "/@src/utils/common/regex.ts";
export type MinimalTheme = 'darker' | 'light'
const emits = defineEmits(['on-search', 'on-tr-click'])
const selUser = ref()
const masks = ref({
modelValue: 'YYYY-MM-DD',
})
const router = useRouter()
const selectedCode = ref()
@@ -23,6 +22,8 @@ const data = reactive({
onBeforeMount(async () => {
await getContractListView()
const userSession = useUserSession()
params.sessionUser = userSession.user.data
})
async function getContractListView() {
@@ -39,6 +40,7 @@ async function getContractListView() {
}
const params = reactive({
sessionUser:'',
flexColumn: [
{ key: 'cateNm', label: '분야' },
{ key: 'title', label: '계약명' },
@@ -51,7 +53,14 @@ const params = reactive({
],
})
function getContractDetail(){
//contStatCd 결재상태 코드 [계약전:0000, 계약종료:0100, ]
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/priceDetail', state: { key: arguments[0].prcsNo }})
}
}
</script>
<template>
@@ -179,6 +188,7 @@ const params = reactive({
:clickable="true"
:rounded="true"
:compact="true"
@rowClick="getContractDetail"
/>
</div>
</div>