diff --git a/src/router/index.js b/src/router/index.js index 19de806..09de0bc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -61,6 +61,14 @@ const router = new Router({ requireAuth: true }, component: () => import("view/userInfo/index") + }, + { + path: '/report', + name: '评价报告', + meta: { + requireAuth: true + }, + component: () => import("view/report/index") } ], mode: 'history', diff --git a/src/view/appraisal/credit/stepFinancial.vue b/src/view/appraisal/credit/stepFinancial.vue index 94cd1f6..4d5e200 100644 --- a/src/view/appraisal/credit/stepFinancial.vue +++ b/src/view/appraisal/credit/stepFinancial.vue @@ -16,7 +16,14 @@ 3. 单位:元 - 单位: 元 + + +

@@ -70,6 +77,8 @@ export default { return { prop: "资产负债表", height: 0, + unit: "元", + options: [{ label: "元" }, { label: "万元" }, { label: "亿元" }], success: [false, false, false], prompt: { 研发费用: [ @@ -92,10 +101,10 @@ export default { created() { const that = this; - that.height = window.innerHeight - 600; + that.height = (window.innerHeight - 600).toString(); window.onresize = () => { return (() => { - that.height = window.innerHeight - 600; + that.height = (window.innerHeight - 600).toString(); })(); }; }, @@ -113,7 +122,29 @@ export default { }, backData(val) { - this.data["财务填报"][this.prop] = val; + var data = val.map((item) => { + return Object.keys(item).map((key) => { + if (key !== "报告期") { + if (this.unit === "元") { + return { [key]: item[key] }; + } else if (this.unit === "万元") { + return { [key]: item[key] * 10000 }; + } else { + return { [key]: item[key] * 100000000 }; + } + } else { + return { [key]: item[key] }; + } + }) + }); + data.forEach((item,index)=>{ + var obj = {} + item.forEach(child=>{ + obj = {...obj, ...child} + }) + this.data["财务填报"][this.prop][index] = obj + }) + console.log(this.data["财务填报"]); }, isSuccess(val) { @@ -203,4 +234,10 @@ export default { background-color: #5080fc; color: #fff; } + +.el-select { + float: right; + width: 70px; + margin-bottom: 20px; +} \ No newline at end of file diff --git a/src/view/appraisal/esg/index.vue b/src/view/appraisal/esg/index.vue index 1ffd194..574f181 100644 --- a/src/view/appraisal/esg/index.vue +++ b/src/view/appraisal/esg/index.vue @@ -454,7 +454,7 @@ export default { submit() { get("/esg/submit_esg_rating_input", {}).then((res) => { - this.message.success(res.info); + this.$message.success(res.info); this.visible = false; }); }, diff --git a/src/view/home/children/abstract.vue b/src/view/home/children/abstract.vue index 5ea3ca9..74fef35 100644 --- a/src/view/home/children/abstract.vue +++ b/src/view/home/children/abstract.vue @@ -8,13 +8,62 @@ 受评企业长期综合信用等级分三等九级,即:AAA、AA、A、BBB、BB、B、CCC、CC、C。除AAA级、CCC级(含)以下等级外,每一个信用等级可用“+”、“-”符号进行微调,表示略高或略低于本等级。 + + + +
+ {{ item.title }} +
+
+ {{ item.des }} +
+
+
+
@@ -47,4 +96,26 @@ export default { font-size: 18px; cursor: pointer; } + +.el-card { + padding: 0; + cursor: pointer; + margin-bottom: 20px; + + .card-top { + height: 200px; + line-height: 200px; + text-align: center; + color: #fff; + font-size: 40px; + } + + .card-bottom { + margin: 20px 0; + span { + margin-left: 20px; + font-size: 14px; + } + } +} \ No newline at end of file diff --git a/src/view/report/index.vue b/src/view/report/index.vue new file mode 100644 index 0000000..a5567ef --- /dev/null +++ b/src/view/report/index.vue @@ -0,0 +1,242 @@ + + + + \ No newline at end of file