1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<template>
<div class="d-page d-flex flex-column">
<title-bar :title="title" @clickLeft="onClick">
<van-icon slot="left" name="cross" size="24" />
</title-bar>
<anchor-nav ref="anchorNav" :navList="navList">
<template>
<div slot="projectInfo">
<!-- 项目信息 -->
<table-double-view
:data="resInfo"
:keyValue="projectActionsKeys"
></table-double-view>
</div>
<div slot="wealthList">
<!-- 资产负债表 -->
<table style="margin-left: 20px" class="customer-management-information-form">
<tr>
<td>行次</td>
<td>项目</td>
<td>期初数</td>
<td>期末数</td>
</tr>
<tr v-if="wealthList.length == 0">
<td style="text-align: center" colspan="6">暂无数据!</td>
</tr>
<tr
v-if="wealthList.length != 0 && item"
v-for="(item, index) in wealthList"
:key="index"
>
<td>{{ item.fncConfOrder }}</td>
<td>{{ item.itemName }}</td>
<td>{{ item.data1 }}</td>
<td>{{ item.data2 }}</td>
</tr>
</table>
</div>
<div slot="profitList">
<!-- 损益表 -->
<table style="margin-left: 20px" class="customer-management-information-form">
<tr>
<td>行次</td>
<td>项目</td>
<td>上期金额</td>
<td>本期金额</td>
</tr>
<tr v-if="profitList.length == 0">
<td style="text-align: center" colspan="6">暂无数据!</td>
</tr>
<tr
v-if="profitList.length != 0 && item"
v-for="(item, index) in profitList"
:key="index"
>
<td>{{ item.fncConfOrder }}</td>
<td>{{ item.itemName }}</td>
<td>{{ item.data1 }}</td>
<td>{{ item.data2 }}</td>
</tr>
</table>
</div>
<div slot="cashFlowList">
<!-- 现金流表 -->
<table style="margin-left: 20px" class="customer-management-information-form">
<tr>
<td>行次</td>
<td>项目</td>
<td>上期金额</td>
<td>本期金额</td>
</tr>
<tr v-if="cashFlowList.length == 0">
<td style="text-align: center" colspan="6">暂无数据!</td>
</tr>
<tr
v-if="cashFlowList.length != 0 && item"
v-for="(item, index) in cashFlowList"
:key="index"
>
<td>{{ item.fncConfOrder }}</td>
<td>{{ item.itemName }}</td>
<td>{{ item.data1 }}</td>
<td>{{ item.data2 }}</td>
</tr>
</table>
</div>
<div slot="projectActionList">
<!-- 项目行为信息 -->
<table style="margin-left: 20px" class="customer-management-information-form">
<tr>
<td>行次</td>
<td>项目</td>
<td>指标值(比率:%)</td>
</tr>
<tr v-if="list.length == 0">
<td style="text-align: center" colspan="6">暂无数据!</td>
</tr>
<tr
v-if="list.length != 0 && item"
v-for="(item, index) in list"
:key="index"
>
<td>{{ item.fncConfOrder }}</td>
<td>{{ item.itemName }}</td>
<td>{{ item.data1 }}</td>
</tr>
</table>
</div>
</template>
</anchor-nav>
<!-- <div v-else align="center">
<img
src="@/assets/images/nodata.png"
style="width: 40%; margin-top: 137px"
/>
</div> -->
</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import TitleBar from "@/components/general/TitleBar.vue";
import nettyApi from "@/constants/api/ms-netty/netty.api.ts";
import IF from "@/public/factory/InterFaceFactory";
import { NativeUI } from "@/public/ts/NativeUI";
import TableDoubleView from "@/public/TableDoubleView.vue";
import TableSingleView from "@/public/TableSingleView.vue";
/**
* @Description 项目信息
* @Author JiangTao
* @Date 2021-11-10 下午 03:17
*/
@Component({
name: "FinancialInfoDetail",
components: { TitleBar },
})
export default class FinancialInfoDetail extends Vue {
title = "财务详情信息"; // 页面标题
navList = [
{
key: "projectInfo",
titleText: "基本信息",
},
{
key: "wealthList",
titleText: "资产负债表",
},
{
key: "profitList",
titleText: "损益表",
},
{
key: "cashFlowList",
titleText: "现金流量表",
},
{
key: "projectActionList",
titleText: "财务指标表",
},
];
list = [];
wealthList = []; //资产负债表数据
profitList = []; //损益表
cashFlowList = []; //现金流表
itemData = {
/* a: '2021-07-20 11:17:53',
b: '通过',
c: '-',
d: '未通过',
e: '工商行政触发历史涉诉',
f: '89906043'*/
};
resInfo: any = {};
projectActionsKeys = {
cusName: "公司名称",
fncConfDisName: "表名",
inputBrName: "编制单位",
inputDate: "编制时间",
};
time: any = "";
value1 = 0;
value2 = 0;
option1 = [
{ text: "年报", value: 0 },
/* { text: '季报', value: 1 }*/
];
option2 = [
/* { text: '2021年', value: 0 },
{ text: '2020年', value: 1 },
{ text: '2019年', value: 2 }*/
];
companyInfo = {};
inputBrName = "";
fncConfDisName = "";
concatName = "";
timeDu = "";
stat_prd_style_cnName: any = "";
onClick() {
this.$router.go(-1);
}
mounted() {
this.getCwxxInfo("01");
this.getCwxxInfo("02");
this.getCwxxInfo("03");
this.getCwxxInfo("04");
this.stat_prd_style_cnName = this.$route.query.stat_prd_style_cnName;
this.time = this.$route.query.stat_prd;
}
getCwxxInfo(val:any) {
var me = this;
var param = {
cus_id: this.$store.getters.getCusInfo.cus_id,
fnc_conf_typ: val,
stat_prd: this.$route.query.stat_prd,
stat_style: this.$route.query.stat_style,
stat_prd_style: this.$route.query.stat_prd_style,
tc: nettyApi.TRADE_CODE.selectCBXQ,
};
NativeUI.showWaiting("正在查询...");
IF.transferDataInter(nettyApi.commonRq, param).then((res: any) => {
NativeUI.closeWaiting();
if (res.rc === "1") {
if(val == '01'){
me.wealthList = res.cusFncStatIColl;
}else if(val == '02'){
me.profitList = res.cusFncStatIColl;
}else if(val == '03'){
me.cashFlowList = res.cusFncStatIColl;
}else if(val == '04'){
me.list = res.cusFncStatIColl;
}
this.resInfo = res;
this.inputBrName = res.inputBrName;
this.fncConfDisName = res.fncConfDisName;
this.concatName = this.inputBrName;
this.timeDu = res.inputDate;
console.log(me.list);
} else {
NativeUI.toast(res.msg);
}
});
}
}
</script>
<style scoped>
::v-deep .van-index-bar__sidebar {
top: 130px !important;
right: 5px !important;
transform: unset;
}
.no-data-class {
width: 40%;
}
.line-class {
width: 80%;
margin: 0 10%;
background: #e0e1e2;
height: 1px;
}
.company-box {
display: flex;
font-size: 16px;
height: 48px;
align-items: center;
justify-content: space-around;
}
</style>