From a47164c66ab37e53d9ab6ec14843ba751da13bc5 Mon Sep 17 00:00:00 2001
From: zhangdi <1104545947@qq.com>
Date: Mon, 1 Jun 2026 13:56:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=AE=A1=E7=90=86=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/flowManagement/addDialog.vue | 5 ++-
src/views/flowManagement/milestoneDialog.vue | 40 ++++++++++----------
2 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/src/views/flowManagement/addDialog.vue b/src/views/flowManagement/addDialog.vue
index 4c9b976a..20efcdba 100644
--- a/src/views/flowManagement/addDialog.vue
+++ b/src/views/flowManagement/addDialog.vue
@@ -186,7 +186,10 @@
- {{ scope.row.delayTime ? scope.row.delayTime.substring(0, 10) : '' }}
+
+ {{ scope.row.delayTime ? scope.row.delayTime.substring(0, 10) : '' }}
+
+
diff --git a/src/views/flowManagement/milestoneDialog.vue b/src/views/flowManagement/milestoneDialog.vue
index ebf8f7fa..5fc23aa7 100644
--- a/src/views/flowManagement/milestoneDialog.vue
+++ b/src/views/flowManagement/milestoneDialog.vue
@@ -204,26 +204,26 @@ export default {
milestoneMemo: [{ required: true, message: '请填写里程碑描述', trigger: 'blur' }],
evolve: [{ required: true, message: '请填写里程碑进展', trigger: 'blur' }],
lastPlan: [{ required: true, message: '请填写下一步计划', trigger: 'blur' }],
- // attachList: [
- // {
- // required: true,
- // validator: (rule, value, callback) => {
- // // 如果 subTitle 是 '执行',则附件必填
- // if (this.subTitle === '执行') {
- // // 检查 fileList 是否为空
- // if (!this.fileList || this.fileList.length === 0) {
- // callback(new Error('请上传附件'));
- // } else {
- // callback();
- // }
- // } else {
- // // 其他状态可选填或不校验
- // callback();
- // }
- // },
- // trigger: 'change',
- // },
- // ],
+ attachList: [
+ {
+ required: true,
+ validator: (rule, value, callback) => {
+ // 如果 subTitle 是 '执行',则附件必填
+ if (this.subTitle === '执行') {
+ // 检查 fileList 是否为空
+ if (!this.fileList || this.fileList.length === 0) {
+ callback(new Error('请上传附件'));
+ } else {
+ callback();
+ }
+ } else {
+ // 其他状态可选填或不校验
+ callback();
+ }
+ },
+ trigger: 'change',
+ },
+ ],
userId: [
{
required: true,