Commit a435bee0 authored by 张恒's avatar 张恒

封装应收账款请求接口

parent e74c7067
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
mounted() { mounted() {
// 获取图表数据 // 获取图表数据
arCompanyBar().then(res => { arCompanyBar().then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
// 获取图表数据 // 获取图表数据
arCompanyMonthlyBar(company).then(res => { arCompanyMonthlyBar(company).then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData0 = [] let seriesData0 = []
let seriesData1 = [] let seriesData1 = []
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
mounted() { mounted() {
// 获取图表数据 // 获取图表数据
arMonthlyBar().then(res => { arMonthlyBar().then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
this.barChart.title.text = month + " 已开票未收款(结算单位)" this.barChart.title.text = month + " 已开票未收款(结算单位)"
// 获取图表数据 // 获取图表数据
arMonthlyCompanyBar(month).then(res => { arMonthlyCompanyBar(month).then(res => {
let data = res.data.data let data = res.data
let xAxisData = [] let xAxisData = []
let seriesData = [] let seriesData = []
for (let item of data) { for (let item of data) {
......
...@@ -517,7 +517,7 @@ export default { ...@@ -517,7 +517,7 @@ 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)
...@@ -532,8 +532,8 @@ export default { ...@@ -532,8 +532,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