This commit is contained in:
吴红兵
2026-03-05 19:45:43 +08:00
parent 9bbfc6e736
commit 450e1be7bd
2 changed files with 20 additions and 4 deletions

View File

@@ -138,7 +138,7 @@
<!-- 部门采购会议纪要预算超过2000元必须上传不区分部门自行采购/学校统一采购 -->
<el-row :gutter="16" v-if="showPurchaseDetailBlocks && dataForm.budget != null && dataForm.budget >= BUDGET_DEPT_SELF_MEETING_MINUTES">
<el-col :span="8" class="mb12">
<el-form-item label="部门采购会议纪要" prop="deptSelfMeetingMinutes" required>
<el-form-item label="部门采购会议纪要" prop="deptSelfMeetingMinutes">
<upload-file
v-model="dataForm.deptSelfMeetingMinutes"
:limit="1"
@@ -1633,6 +1633,21 @@ const dataRules = reactive({
trigger: 'change',
},
],
// 部门采购会议纪要预算超过2000元必填
deptSelfMeetingMinutes: [
{
validator: (_rule: any, value: any, callback: (e?: Error) => void) => {
if (dataForm.budget != null && dataForm.budget >= BUDGET_DEPT_SELF_MEETING_MINUTES) {
if (!value || (Array.isArray(value) && value.length === 0) || (typeof value === 'string' && !value.trim())) {
callback(new Error('请上传部门采购会议纪要'));
return;
}
}
callback();
},
trigger: 'change',
},
],
// 学校统一采购时必填
deptClassifyUserId: [
{