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