|
@@ -211,7 +211,13 @@ const handleInputRaw = (val, id, field) => {
|
|
|
const onInputChange = debounce(handleInputRaw, 500);
|
|
const onInputChange = debounce(handleInputRaw, 500);
|
|
|
|
|
|
|
|
const validate = async () => {
|
|
const validate = async () => {
|
|
|
- return await reportFormRef.value.validate();
|
|
|
|
|
|
|
+ if (istime.value === "true") {
|
|
|
|
|
+ return await reportFormRef.value.validateField([
|
|
|
|
|
+ "constructionBrief",
|
|
|
|
|
+ ...NON_PROD_FIELDS.map(item => item.key),
|
|
|
|
|
+ "otherNptReason",
|
|
|
|
|
+ ]);
|
|
|
|
|
+ } else return await reportFormRef.value.validate();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const submitForm = async () => {
|
|
const submitForm = async () => {
|