Commit 8eb58b82 authored by 张恒's avatar 张恒

应收账款数据对接

parent dfd3bd2b
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
</display-board> </display-board>
<display-board class="trade_middle" corner_size="large"> <display-board class="trade_middle" corner_size="large">
<div style="height: 36%;display: flex;justify-content: space-evenly;padding-top: 1.5rem"> <div style="height: 36%;display: flex;justify-content: space-evenly;padding-top: 1.5rem">
<simple-card v-for="data in mockData.sr" style="width: 30%;height: 100%"> <simple-card v-for="data in arSummary" style="width: 30%;height: 100%">
<title-content-mark style="color: #5eeef4;" :title="data.title" :content="data.value" :mark="'万元'" <title-content-mark style="color: #5eeef4;" :title="data.title" :content="data.value" :mark="'万元'" isCenter isBold/>
isCenter isBold/>
</simple-card> </simple-card>
</div> </div>
<ar-summary-bar ref="arSummaryBar" style="width: 100%; height: 64%;"></ar-summary-bar> <ar-summary-bar ref="arSummaryBar" style="width: 100%; height: 64%;"></ar-summary-bar>
...@@ -224,6 +223,11 @@ export default { ...@@ -224,6 +223,11 @@ export default {
], ],
}, },
}, },
arSummary: [
{title: '累计营业收入(当年)', value: '20,303'},
{title: '应收款(财务)', value: '20,303'},
{title: '应收款(营销)', value: '20,303',},
],
mockData: { mockData: {
zqk: { zqk: {
yszk: { yszk: {
...@@ -460,13 +464,16 @@ export default { ...@@ -460,13 +464,16 @@ export default {
// 获取应收账款数据 // 获取应收账款数据
getArSummaryBar() { getArSummaryBar() {
arSummaryBar().then(res => { arSummaryBar().then(res => {
let data = res.data.data let data = res.data
let seriesData = [] let seriesData = []
seriesData.push(data.unsettled_amount) seriesData.push(data.unsettled_amount)
seriesData.push(data.settled_amount) seriesData.push(data.settled_amount)
seriesData.push(data.unregister_amount) seriesData.push(data.unregister_amount)
seriesData.push(data.receivable_amount) seriesData.push(data.receivable_amount)
seriesData.push(data.cancelled_amount) seriesData.push(data.cancelled_amount)
this.arSummary[0].value = data.total_amount
this.arSummary[1].value = data.unregister_amount
this.arSummary[2].value = data.receivable_amount
this.$refs.arSummaryBar.drawArSummaryBar(seriesData) this.$refs.arSummaryBar.drawArSummaryBar(seriesData)
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
...@@ -475,8 +482,8 @@ export default { ...@@ -475,8 +482,8 @@ export default {
// 获取已开票未收款排行 // 获取已开票未收款排行
getArCompanyList() { getArCompanyList() {
arCompanyList().then(res => { arCompanyList().then(res => {
if (res.data.data.length) { if (res.data.length) {
this.arCompanyList = res.data.data this.arCompanyList = res.data
} }
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment