From 38631df3f90336dd4e45b52bfb2936d7f628ad6e Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 2 Aug 2024 00:09:19 +0800 Subject: [PATCH 1/8] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=B5=81=E7=A8=8B=E8=AE=BF=E9=97=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project-demand/summary/add.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue index d3a7e5c..28c9e9c 100644 --- a/src/views/project-demand/summary/add.vue +++ b/src/views/project-demand/summary/add.vue @@ -553,7 +553,7 @@ const handleResubmit = debounce((instance) => { const getDetailInfo = async () => { loading.value = true - getDetail(route.query.projectId).then(res => { + await getDetail(route.query.projectId).then(res => { ElNotification({ title: '提示', message: res.msg, From 6e612e1f7a586f0778e71cbe865b34360e4e49f5 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 2 Aug 2024 19:41:51 +0800 Subject: [PATCH 2/8] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=8A=84?= =?UTF-8?q?=E9=80=81=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workflow/process/nodes/CcNode.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/workflow/process/nodes/CcNode.vue b/src/views/workflow/process/nodes/CcNode.vue index 2c5b775..ef712f9 100644 --- a/src/views/workflow/process/nodes/CcNode.vue +++ b/src/views/workflow/process/nodes/CcNode.vue @@ -2,7 +2,7 @@ From fbfbe5c328b7f463f1ff7256f77f5c702db9d03e Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sat, 3 Aug 2024 00:36:51 +0800 Subject: [PATCH 3/8] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E5=88=86=E7=AE=A1=E9=A2=86=E5=AF=BC=E5=9B=9E=E6=98=BE?= =?UTF-8?q?,=E9=9C=80=E6=B1=82=E4=B8=8A=E6=8A=A5=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AttachmentUpload.vue | 2 +- .../DetailComponent/ApprovalDetail.vue | 75 +++-- .../DetailComponent/ProjectApply.vue | 10 +- .../DetailComponent/SummaryDetail.vue | 53 ++-- src/components/NameCircle.vue | 2 +- src/components/Tooltip.vue | 19 +- src/components/steps/index.vue | 4 +- src/views/project-demand/requirement/add.vue | 82 ++++-- src/views/project-demand/summary/add.vue | 258 ++++++++++-------- .../process/common/AvatarEllipsis.vue | 2 +- 10 files changed, 307 insertions(+), 200 deletions(-) diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index e8809c5..5c984d2 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -22,7 +22,7 @@ - + diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue index 2e481b9..e07211c 100644 --- a/src/components/DetailComponent/ApprovalDetail.vue +++ b/src/components/DetailComponent/ApprovalDetail.vue @@ -98,7 +98,8 @@ const executeTableConfig = reactive({ prop: 'originalFileName', label: '文件名', align: 'center', - currentRender: ({row, index}) => (
clickToPreview(row)}>{row.originalFileName}
) + currentRender: ({row, index}) => ( +
clickToPreview(row)}>{row.originalFileName}
) }, { prop: 'tag', @@ -246,9 +247,10 @@ let preProcess = { component: () => (
{ - props.formData.preProcess ? props.formData.preProcess.map((item,index) => { + props.formData.preProcess ? props.formData.preProcess.map((item, index) => { return {item.requestName} {index != (props.formData.preProcess.length -1)? :''} + href={props.formData.preProcessBaseUrl + item.requestId}>{item.requestName} {index != (props.formData.preProcess.length - 1) ? + : ''} }) : {'--'} }
@@ -292,6 +294,23 @@ const schema = computed(() => { ) }, + { + label: '部门分管领导', + prop: 'optionalChargeLeadership', + colProps: { + span: 24 + }, + labelWidth: 'left', + component: () => ( +
+ { + props.formData.optionalChargeLeadership ? props.formData.optionalChargeLeadership.map(item => { + return {item.name} + }) : {'--'} + } +
+ ) + }, ] if (props.preProcessShow == 'EDIT') { preProcess = { @@ -347,22 +366,40 @@ const schema = computed(() => { } } arr.push(preProcess) - arr.push({ - label: '项目验收附件', - prop: 'singleFile', - colProps: { - span: 24 - }, - labelWidth: 'left', - component: () => { - let singleFileArray = [props.formData.singleFile] - return props.formData.singleFile ? - - : -- - } - }) + arr.push( + { + label: '部门分管领导', + prop: 'optionalChargeLeadership', + colProps: { + span: 24 + }, + labelWidth: 'left', + component: () => ( +
+ { + props.formData.optionalChargeLeadership ? props.formData.optionalChargeLeadership.map(item => { + return {item.name} + }) : {'--'} + } +
+ ) + }, + { + label: '项目验收附件', + prop: 'singleFile', + colProps: { + span: 24 + }, + labelWidth: 'left', + component: () => { + let singleFileArray = [props.formData.singleFile] + return props.formData.singleFile ? + + : -- + } + }) } else if (props.type == 'archivist') { arr = [ { diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index 366b649..0ac17ed 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -33,7 +33,7 @@ + label-width="106"> {{ projectChargePersonUserList.length !== 0 ? '更改' : '请选择' }} @@ -46,7 +46,7 @@ + label-width="106"> {{ projectPersonUserList.length !== 0 ? '更改' : getProjectPerson(projectPersonUserList) ? '更改' : '请选择' }} @@ -58,15 +58,15 @@ - + {{ optionalChargeLeadershipList.length !== 0 ? '更改' : getOptionalChargeLeadershipList(optionalChargeLeadershipList) ? '更改' : '请选择' }}
{{ item.name }}
-
diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue index ffe1156..5329f71 100644 --- a/src/components/DetailComponent/SummaryDetail.vue +++ b/src/components/DetailComponent/SummaryDetail.vue @@ -2,7 +2,7 @@
- + {{ localFormData.projectName }} @@ -48,6 +48,11 @@ {{ filterDict(cacheStore.getDict('technical_standard'), localFormData.technicalStandard) }} + + + {{ toThousands(localFormData.economicEstimate) }} + + {{ @@ -62,6 +67,11 @@ }} + + + {{ localFormData.optionalChargeLeadership?.map(item=>item.name).join() }} + + {{ @@ -70,19 +80,28 @@ - - {{ - filterDict(cacheStore.getDict('intellectual_property'), localFormData.intellectualProperty) - }} + + {{ toThousands(localFormData.specialFundAmount) }} + + + + + + {{ filterDict(cacheStore.getDict('result_form'), localFormData.resultForm) }} - - + + + {{ + filterDict(cacheStore.getDict('intellectual_property'), localFormData.intellectualProperty) + }} + @@ -109,28 +128,22 @@ {{ localFormData.other }} - - - {{ toThousands(localFormData.economicEstimate) }} - + + + + - - - {{ toThousands(localFormData.specialFundAmount) }} - - - + {{ localFormData.serviceDescription }} - + {{ localFormData.contentDescription }} - + diff --git a/src/components/NameCircle.vue b/src/components/NameCircle.vue index 4e016aa..75a1481 100644 --- a/src/components/NameCircle.vue +++ b/src/components/NameCircle.vue @@ -3,7 +3,7 @@
- +
-
+
{{ props.content }} @@ -25,15 +25,26 @@ const props = defineProps({ lines: { type: Boolean, default: false - } + }, + textAlign: { + type: String, + default: '' + }, }) const contentRef = ref() const isShow = ref(false) const isShowTooltip = () => { - isShow.value = props.width > contentRef.value.offsetWidth; + isShow.value = parseInt(props.width) > contentRef.value.offsetWidth; } - diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue index c4d1559..a3595ac 100644 --- a/src/views/project-management/implementation/phase.vue +++ b/src/views/project-management/implementation/phase.vue @@ -2,7 +2,7 @@
- + @@ -14,7 +14,7 @@ @getOtherFile="getOtherFile" :showFileList="true" :formData="formData" tag="阶段变更" :preview="name === 'Phase/edit'"/>
-
+
流程图