From 2d96bbda3b7fb23d5d4fee125d8a3f8fceca0e08 Mon Sep 17 00:00:00 2001 From: fks-xuxinyue <2822784518@qq.com> Date: Wed, 24 Jul 2024 15:17:34 +0800 Subject: [PATCH 1/2] taskid:099 remark:'commit' --- .../src/api/carbonEmissionFactorLibrary.ts | 4 + .../carbonEmissions/index.vue | 2 +- .../carbonInventoryCheck/config.ts | 56 ----- .../carbonInventoryCheck/fillInPage/index.vue | 235 +++++++++++++++++---- .../carbonInventoryCheck/index.vue | 16 +- 5 files changed, 212 insertions(+), 101 deletions(-) diff --git a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts index 57e28ca..dcbbfa9 100644 --- a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts +++ b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts @@ -51,4 +51,8 @@ export enum carbonInventoryCheck { create = '/carbon-smart/api/carbon/inventory/create', update = '/carbon-smart/api/carbon/inventory/update', del = '/carbon-smart/api/carbon/inventory/del', + // 获取排放源表格数据 + findUnitById = '/carbon-smartapi/carbon/inventory/findById', + getDetailsList = '/carbon-smart/api/carbon/inventory/details/getDetailsList', + updateTable = '/carbon-smart/api/carbon/inventory/details/update', } \ No newline at end of file diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue index 52ac5ea..652f433 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue @@ -66,7 +66,7 @@ }; } const rowSpan = getRowSpan('cnValue', record, data.value); - if (rowIndex != 0 && data.value[rowIndex - 1].name == record.name) { + if (rowIndex != 0 && data.value[rowIndex - 1].cnValue == record.cnValue) { return { rowSpan: 0, colSpan: 0, diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/config.ts b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/config.ts index 94ed611..f396774 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/config.ts +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/config.ts @@ -1,59 +1,3 @@ -// 填报页表头 -export const columns = [ - { - title: '日期', - dataIndex: 'name', - key: 'name', - width: 100, - fixed: 'left', - }, - { - title: '消耗量', - children: [ - { - title: '数据来源', - dataIndex: 'companyAddress', - key: 'companyAddress', - width: 200, - }, - { - title: '数值', - dataIndex: 'companyName', - key: 'companyName', - }, - ], - }, - { - title: '碳排因子', - children: [ - { - title: '数据来源', - dataIndex: 'companyAddress', - key: 'companyAddress', - width: 200, - }, - { - title: '数值', - dataIndex: 'companyName', - key: 'companyName', - }, - ], - }, - { - title: '排放量', - dataIndex: 'gender', - key: 'gender', - width: 80, - fixed: 'right', - }, - { - title: '操作', - dataIndex: 'action', - key: 'action', - width: 80, - fixed: 'right', - }, -]; // 凭证弹窗表头 export const voucherColumns = [ { diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue index fcf8e50..9fb4af0 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue @@ -4,7 +4,7 @@