|
|
@@ -180,14 +180,6 @@ const formDataBaseRules = reactive({
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- constructionBrief: {
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- errorMessage: `请输入当日施工简报`,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
});
|
|
|
|
|
|
function debounce(func, delay) {
|
|
|
@@ -214,8 +206,10 @@ const validate = async () => {
|
|
|
if (istime.value === "true") {
|
|
|
return await reportFormRef.value.validateField([
|
|
|
"constructionBrief",
|
|
|
- ...NON_PROD_FIELDS.map(item => item.key),
|
|
|
- "otherNptReason",
|
|
|
+ ...form.platformIds.flatMap(pid => [
|
|
|
+ ...NON_PROD_FIELDS.map(item => `${pid}.${item.key}`),
|
|
|
+ `${pid}.otherNptReason`,
|
|
|
+ ]),
|
|
|
]);
|
|
|
} else return await reportFormRef.value.validate();
|
|
|
};
|
|
|
@@ -1319,7 +1313,10 @@ watch(
|
|
|
class="form-item"
|
|
|
label="当日施工简报"
|
|
|
required
|
|
|
- name="constructionBrief">
|
|
|
+ name="constructionBrief"
|
|
|
+ :rules="[
|
|
|
+ { required: istime === 'true', errorMessage: '请输入当日施工简报' },
|
|
|
+ ]">
|
|
|
<uni-easyinput
|
|
|
class="digit-item"
|
|
|
type="textarea"
|