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 @@