From 397e60a9ce73d42c23bb4a85106ce427bb9aa15b Mon Sep 17 00:00:00 2001 From: lzm <2316711944@qq.com> Date: Wed, 29 Apr 2026 17:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tjt/output-split/index.vue | 13 +++++++++---- src/views/tjt/report-budget/index.vue | 6 ++++++ src/views/tjt/report-project-quarter/index.vue | 17 +++++++++++------ src/views/tjt/report-specialty-person/index.vue | 15 ++++++++++----- src/views/tjt/staff-assignment/index.vue | 13 +++++++++---- 5 files changed, 45 insertions(+), 19 deletions(-) diff --git a/src/views/tjt/output-split/index.vue b/src/views/tjt/output-split/index.vue index e11de6e..5dc7737 100644 --- a/src/views/tjt/output-split/index.vue +++ b/src/views/tjt/output-split/index.vue @@ -68,7 +68,7 @@ - {{ currentProject?.projectName || '专业所规划列表' }} + {{ currentProject?.projectName || '合约规划列表' }} + + + {{ getOwnershipTypeLabel(scope.row.ownershipType) }} + + @@ -190,7 +195,7 @@ - + @@ -259,7 +264,7 @@ import * as OutputSplitApi from '@/api/tjt/outputSplit' import { formatAmountText, fromPercentValue, - isMajorOwnership, + getOwnershipTypeLabel, OUTPUT_SPLIT_SPECIALTY_OPTIONS, QUARTER_OPTIONS, toPercentValue @@ -578,7 +583,7 @@ const getPlanningList = async () => { planningLoading.value = true try { const list = await PlanningApi.getProjectPlanningListByProjectId(currentProject.value.id) - planningList.value = list.filter((item) => isMajorOwnership(item.ownershipType)) + planningList.value = list if (!planningList.value.length) { currentPlanning.value = undefined formData.value = undefined diff --git a/src/views/tjt/report-budget/index.vue b/src/views/tjt/report-budget/index.vue index 291998b..8c6c785 100644 --- a/src/views/tjt/report-budget/index.vue +++ b/src/views/tjt/report-budget/index.vue @@ -188,6 +188,11 @@ {{ getOwnershipTypeLabel(scope.row.ownershipType) }} + + + {{ getCalculationMethodLabel(scope.row.calculationMethod) }} + + @@ -214,6 +219,7 @@ import { CONTRACT_SIGN_OPTIONS, formatAmountText, formatAreaText, + getCalculationMethodLabel, getOwnershipTypeLabel } from '@/views/tjt/shared/planning' diff --git a/src/views/tjt/report-project-quarter/index.vue b/src/views/tjt/report-project-quarter/index.vue index 7f1da31..28af9ca 100644 --- a/src/views/tjt/report-project-quarter/index.vue +++ b/src/views/tjt/report-project-quarter/index.vue @@ -68,7 +68,7 @@ - {{ currentProject?.projectName || '专业所规划列表' }} + {{ currentProject?.projectName || '合约规划列表' }} + + + {{ getOwnershipTypeLabel(scope.row.ownershipType) }} + + @@ -201,7 +206,7 @@ - + @@ -216,7 +221,7 @@ import * as ReportApi from '@/api/tjt/report' import download from '@/utils/download' import { formatAmountText, - isMajorOwnership, + getOwnershipTypeLabel, OUTPUT_SPLIT_SPECIALTY_OPTIONS, QUARTER_OPTIONS, toPercentValue @@ -481,7 +486,7 @@ const getPlanningList = async () => { planningLoading.value = true try { const list = await PlanningApi.getProjectPlanningListByProjectId(currentProject.value.id) - planningList.value = list.filter((item) => isMajorOwnership(item.ownershipType)) + planningList.value = list if (!planningList.value.length) { currentPlanning.value = undefined formData.value = undefined @@ -544,7 +549,7 @@ const handleCurrentPlanningChange = async (row?: PlanningApi.ProjectPlanningVO) const handleExportProjectQuarter = async () => { if (!currentPlanning.value?.id) { - message.warning('请先选择专业所规划') + message.warning('请先选择合约规划') return } try { @@ -559,7 +564,7 @@ const handleExportProjectQuarter = async () => { const handleExportProjectLeadQuarter = async () => { if (!currentPlanning.value?.id) { - message.warning('请先选择专业所规划') + message.warning('请先选择合约规划') return } try { diff --git a/src/views/tjt/report-specialty-person/index.vue b/src/views/tjt/report-specialty-person/index.vue index b013ed2..62384f9 100644 --- a/src/views/tjt/report-specialty-person/index.vue +++ b/src/views/tjt/report-specialty-person/index.vue @@ -70,7 +70,7 @@ - {{ currentProject?.projectName || '专业所规划列表' }} + {{ currentProject?.projectName || '合约规划列表' }} + + + {{ getOwnershipTypeLabel(scope.row.ownershipType) }} + + @@ -163,7 +168,7 @@ - + @@ -175,7 +180,7 @@ import * as ProjectApi from '@/api/tjt/project' import * as ReportApi from '@/api/tjt/report' import * as SpecialtyRoleSplitApi from '@/api/tjt/specialtyRoleSplit' import download from '@/utils/download' -import { formatAmountText, formatPercentText, isMajorOwnership } from '@/views/tjt/shared/planning' +import { formatAmountText, formatPercentText, getOwnershipTypeLabel } from '@/views/tjt/shared/planning' defineOptions({ name: 'TjtReportSpecialtyPerson' }) @@ -335,7 +340,7 @@ const getPlanningList = async () => { planningLoading.value = true try { const list = await PlanningApi.getProjectPlanningListByProjectId(currentProject.value.id) - planningList.value = list.filter((item) => isMajorOwnership(item.ownershipType)) + planningList.value = list if (!planningList.value.length) { currentPlanning.value = undefined roleList.value = [] @@ -381,7 +386,7 @@ const handleCurrentPlanningChange = async (row?: PlanningApi.ProjectPlanningVO) const handleExportSpecialtyPerson = async () => { if (!currentPlanning.value?.id) { - message.warning('请先选择专业所规划') + message.warning('请先选择合约规划') return } if (!canExportCurrentGroup.value || !currentGroup.value?.specialtyCode) { diff --git a/src/views/tjt/staff-assignment/index.vue b/src/views/tjt/staff-assignment/index.vue index eb784cc..6757120 100644 --- a/src/views/tjt/staff-assignment/index.vue +++ b/src/views/tjt/staff-assignment/index.vue @@ -70,7 +70,7 @@ - {{ currentProject?.projectName || '专业所规划列表' }} + {{ currentProject?.projectName || '合约规划列表' }} + + + {{ getOwnershipTypeLabel(scope.row.ownershipType) }} + + @@ -161,7 +166,7 @@ - + @@ -307,7 +312,7 @@ import { formatAmountText, formatPercentText, fromPercentValue, - isMajorOwnership, + getOwnershipTypeLabel, toPercentValue } from '@/views/tjt/shared/planning' @@ -764,7 +769,7 @@ const getPlanningList = async () => { planningLoading.value = true try { const list = await PlanningApi.getProjectPlanningListByProjectId(currentProject.value.id) - planningList.value = list.filter((item) => isMajorOwnership(item.ownershipType)) + planningList.value = list if (!planningList.value.length) { currentPlanning.value = undefined roleList.value = []