Commit a435bee0 authored by 张恒's avatar 张恒

封装应收账款请求接口

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