修复validTaskTypes未定义的错误
This commit is contained in:
parent
820ede57cb
commit
23279568e7
Binary file not shown.
@ -1535,8 +1535,8 @@ const handleSubmit = async () => {
|
||||
await formRef.value.validate()
|
||||
|
||||
// 验证任务类型(一级需求部门且关闭任务明细时跳过验证)
|
||||
const validTaskTypes = formData.taskTypes.filter(item => item.taskTypeId && item.quantity > 0)
|
||||
if (shouldShowTaskDetail.value) {
|
||||
const validTaskTypes = formData.taskTypes.filter(item => item.taskTypeId && item.quantity > 0)
|
||||
if (validTaskTypes.length === 0) {
|
||||
message.error('请至少添加一个任务类型')
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user