| | |
| | | // 提交节假日 |
| | | function handleSaveHolidaysForm() { |
| | | const hasValidDates = formHolidays.value.holidays.some( |
| | | (item) => item.enddate && item.startdate && item.describe |
| | | (item) => { |
| | | console.log(item,"some") |
| | | if(!item.describe !="" && item.startdate !="" && item.enddate!=="" ){ |
| | | return true |
| | | }else{ |
| | | return false |
| | | } |
| | | console.log(hasValidDates, "hasValidDates"); |
| | | } |
| | | ); |
| | | console.log(hasValidDates, "hasValidDates"); |
| | | // holidaysRef.value.validate((valid) => { |
| | |
| | | { |
| | | title: t("plan.table.itemNumber"), |
| | | field: "itemNumber", |
| | | width: "auto", |
| | | type: "html", |
| | | }, |
| | | { |