From d59c9d8cca3797af2803513b0db2af06c5b07936 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 28 Aug 2024 14:18:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=8F=8A=E6=B5=8B=E8=AF=95=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?,=E5=90=8C=E6=AD=A5=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/ProjectApply.vue | 29 +- .../DetailComponent/ProjectAttachment.vue | 17 +- .../DetailComponent/SummaryDetail.vue | 26 +- src/components/steps/index.vue | 13 +- src/views/project-demand/summary/add.vue | 116 +++---- .../implementation/phase.vue | 46 +-- .../mobledetail/ApprovalDetailMoblie.vue | 299 ++++++------------ .../mobledetail/OpinionMoblie.vue | 3 +- .../mobledetail/StepsMoblie.vue | 142 ++++++--- .../mobledetail/SummaryDetailMoblie.vue | 34 +- .../project-management/mobledetail/index.vue | 34 +- .../phaseDetailMoblie/index.vue | 9 +- 12 files changed, 380 insertions(+), 388 deletions(-) diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index ed46a65..66d94fa 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -491,17 +491,17 @@ const handleSubmit = async () => { files.push(getFileParam(item)) }) } - // if (!attachment.value.isHaveOneFile) { - // attachment.value.validate() - // ElNotification({ - // title: '提示', - // message: '请上传附件', - // type: 'error' - // }) - // return; - // } else { - // attachment.value.clearValidate() - // } + if (!attachment.value.isHaveOneFile) { + attachment.value.validate() + ElNotification({ + title: '提示', + message: '请上传附件', + type: 'error' + }) + return; + } else { + attachment.value.clearValidate() + } let projectPersonIds = [] for (const item of projectPersonUserList.value) { projectPersonIds.push(parseInt(item.id)) @@ -616,6 +616,7 @@ const init = async () => { } watchEffect(() => { + console.info("🚀 ~method:;props.formData.projectChargePerson -----", props.formData.projectChargePerson) if (props.formData.projectChargePerson == null) { projectChargePersonUserList.value = [] } else { @@ -628,9 +629,9 @@ watchEffect(() => { } projectPersonUserList.value = props.formData.projectPersonList ? props.formData.projectPersonList : [] let flag = Object.keys(props.formData).length && (localFormData.value = props.formData) - if (props.formData.projectChargePerson != null) { - localFormData.value.projectChargePerson = props.formData.projectChargePerson.id - } + // if (props.formData.projectChargePerson != null) { + // localFormData.value.projectChargePerson = props.formData.projectChargePerson.id + // } if (localStorage.getItem('preProcess')) { let param = JSON.parse(localStorage.getItem('preProcess')) diff --git a/src/components/DetailComponent/ProjectAttachment.vue b/src/components/DetailComponent/ProjectAttachment.vue index 5ae511e..91bb019 100644 --- a/src/components/DetailComponent/ProjectAttachment.vue +++ b/src/components/DetailComponent/ProjectAttachment.vue @@ -1,5 +1,5 @@