diff --git a/src/common/rateConfig.ts b/src/common/rateConfig.ts index b894a2e..92f4b32 100644 --- a/src/common/rateConfig.ts +++ b/src/common/rateConfig.ts @@ -7,11 +7,11 @@ const rateLevelConfig: RateLevelConfig = { // AR: { badge: "3", ranking: "20%" }, // BR: { ranking: "30%" }, // CR: { ranking: "40%" }, - AAAʀ: { badge: "1", ranking: "5%" }, - AAʀ: { badge: "2", ranking: "10" }, - Aʀ: { badge: "3", ranking: "20%" }, - Bʀ: { ranking: "30%" }, - Cʀ: { ranking: "40%" } + AAA: { badge: "1", ranking: "5%" }, + AA: { badge: "2", ranking: "10" }, + A: { badge: "3", ranking: "20%" }, + B: { ranking: "30%" }, + C: { ranking: "40%" } // B: { ranking: "50%" }, // CCC: { ranking: "60%" }, // CC: { ranking: "80%" }, diff --git a/src/types/bj.ts b/src/types/bj.ts index 1c2834a..a883ff8 100644 --- a/src/types/bj.ts +++ b/src/types/bj.ts @@ -41,12 +41,25 @@ interface Indicator { 得分: number; 档位: string; } + +interface 指标数值与得分{ + 指标: string + 数值: number + 单位: string + 权重: number + 得分: number +} interface RateResContent { - final_scope: number; - final_level: string; - level: string; - total_score: number; - indicator: Indicator[]; + 评级结果:{ + 级别:string, + 总分:number + } + 指标数值与得分:指标数值与得分[] + // final_scope: number; + // final_level: string; + // level: string; + // total_score: number; + // indicator: Indicator[]; } const RateDataMock: RateData[] = [ diff --git a/src/views/rate/companyDataManage.vue b/src/views/rate/companyDataManage.vue index 0542519..86f36b2 100644 --- a/src/views/rate/companyDataManage.vue +++ b/src/views/rate/companyDataManage.vue @@ -258,17 +258,18 @@ :column-config="scope.row" v-if="tableEditAble" class="max-w-[12rem]" - :model-value="manDataEditTemp[scope.row?.key]" + :model-value="manDataEditTemp['经营问卷'][scope.row?.key]" :size="'small'" - @update:model-value="(newVal)=>manDataEditTemp[scope.row?.key] = newVal" + @update:model-value="(newVal)=>manDataEditTemp['经营问卷'][scope.row?.key] = newVal" > -
{{ manDataEditTemp[scope.row?.key] }}
+
{{ manDataEditTemp['经营问卷'][scope.row?.key] }}
+
编辑 @@ -282,11 +283,11 @@
@@ -297,26 +298,28 @@ > {{ scope.row?.name }}
+
{{ scope.row?.name }}
@@ -327,6 +330,22 @@ +
+ + {{ item }}: + + + + {{ manDataEditTemp["财务问卷"][item] }} + + +
编辑 @@ -433,11 +452,12 @@ const detailEditTab = ref("企业填报数据-问卷"); const tableEditAble = ref(false) const rowTemp = ref(null); const manDataEditTemp = ref({ - "问卷数据": {}, - "财报数据": { - "2023": {}, - "2022": {}, - "2021": {}, + "经营问卷": {}, + "财务问卷": { + 资产负债表: {}, + 利润表: {}, + 是否审计: null, + 会计事务所: null } }); @@ -522,15 +542,16 @@ function showDetailEdit(row: RateData) { rowTemp.value = res.data if (!rowTemp.value?.man_data) { manDataEditTemp.value = { - "问卷数据": {}, - "财报数据": { - "2023": {}, - "2022": {}, - "2021": {}, + "经营问卷": {}, + "财务问卷": { + 资产负债表: {}, + 利润表: {}, + 是否审计: null, + 会计事务所: null } }; } else { - // manDataEditTemp.value = JSON.parse(rowTemp.value.man_data); + manDataEditTemp.value = JSON.parse(rowTemp.value.man_data); } // if (!rowTemp.value?.file_data) { @@ -557,7 +578,7 @@ function showDetailEdit(row: RateData) { const arraySpanMethod = ({row, column, rowIndex, columnIndex}) => { if (row.type == "label") { - return [1, Object.keys(manDataEditTemp.value['财报数据']).length + 1]; + return [1, 3 + 1]; } }; diff --git a/src/views/rate/rateManage.vue b/src/views/rate/rateManage.vue index 9130c57..56a3f16 100644 --- a/src/views/rate/rateManage.vue +++ b/src/views/rate/rateManage.vue @@ -128,13 +128,17 @@ prop="rate_time" width="180" > - +