跟新
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user