mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-19 19:15:06 +09:00
fix : 견적요청, 상세규격 validation 체크 필요 ,상세 규격 닫기 버그 해결
This commit is contained in:
@@ -64,21 +64,37 @@ const params = reactive({
|
||||
|
||||
const validation = () => {
|
||||
if(!params.cateSelect){
|
||||
notyf.error("필수값 입니다.")
|
||||
cateSelectRef.value.focus() //todo 선택박스 필수값 체크하기
|
||||
console.log(params.cateSelect)
|
||||
notyf.error("분야는 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.title){
|
||||
notyf.error("필수값 입니다.")
|
||||
titleRef.value.focus()
|
||||
notyf.error("제목는 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.content){
|
||||
notyf.error("필수값 입니다.")
|
||||
contentRef.value.focus()
|
||||
notyf.error("내용은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
//todo 견적요청 , 규격입력
|
||||
if(!params.prcsBizs){
|
||||
notyf.error("견적요청은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.regSdat){
|
||||
notyf.error("등록기간 시작일은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.regEdat){
|
||||
notyf.error("등록기간 종료일은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(generalParams.regSdat > generalParams.regEdat){
|
||||
notyf.error("등록 종료일은 등록 시작일보다 빠를 수 없습니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import {getDetailPrcs, updatePrice, deletePrcsFile} from '/src/service/priceApi'
|
||||
import {getDetailPrcs, updatePrice, deletePrcsFile} from '/@src/service/priceApi'
|
||||
import {type iPbAtt, type Person} from '/@src/utils/types'
|
||||
import {formatBizNum, formatDatefromString, formatDateHourMinutefromString} from "/@src/utils/common/comfunc.ts";
|
||||
const notyf = useNotyf()
|
||||
@@ -98,7 +98,7 @@ function getDetailList(arg){
|
||||
params.prcsAtts = arg.prcsAtts
|
||||
}
|
||||
|
||||
const changeButton = () => {
|
||||
const changeButton = (close) => {
|
||||
//todo 상세 규격 api 테우기
|
||||
params.btnChangeFlag = true
|
||||
close()
|
||||
@@ -106,6 +106,36 @@ const changeButton = () => {
|
||||
|
||||
const validation = () => {
|
||||
notyf.dismissAll()
|
||||
if(!params.cateSelect){
|
||||
notyf.error("분야는 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.title){
|
||||
notyf.error("제목는 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.content){
|
||||
notyf.error("내용은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
//todo 견적요청 , 규격입력
|
||||
if(!params.prcsBizs){
|
||||
notyf.error("견적요청은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.regSdat){
|
||||
notyf.error("등록기간 시작일은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(!generalParams.regEdat){
|
||||
notyf.error("등록기간 종료일은 필수값입니다.")
|
||||
return false
|
||||
}
|
||||
|
||||
if(generalParams.regSdat > generalParams.regEdat){
|
||||
notyf.error("등록 종료일은 등록 시작일보다 빠를 수 없습니다.")
|
||||
return false
|
||||
@@ -500,8 +530,8 @@ const moveDown = (index: number) => {
|
||||
</VButton>
|
||||
</div>
|
||||
</template>
|
||||
<template #action>
|
||||
<VButton color="primary" @click="changeButton">
|
||||
<template #action="{ close }">
|
||||
<VButton color="primary" @click="changeButton(close)">
|
||||
등록
|
||||
</VButton>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user