Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘自豪 Rambo Pan
shld-databoard-ui
Commits
110cae9e
Commit
110cae9e
authored
Sep 14, 2023
by
张恒
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '230911_zh' into release_uat
# Conflicts: # src/module/databoard/index.vue
parents
0cd0544d
4cae58b1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
24 deletions
+25
-24
apiList.js
src/module/api/apiList.js
+13
-0
ar-company-bar.vue
src/module/databoard/components/chart/ar-company-bar.vue
+2
-4
ar-company-monthly-bar.vue
...ule/databoard/components/chart/ar-company-monthly-bar.vue
+3
-5
ar-monthly-bar.vue
src/module/databoard/components/chart/ar-monthly-bar.vue
+2
-4
ar-monthly-company-bar.vue
...ule/databoard/components/chart/ar-monthly-company-bar.vue
+2
-5
index.vue
src/module/databoard/index.vue
+3
-6
No files found.
src/module/api/apiList.js
View file @
110cae9e
...
...
@@ -20,3 +20,16 @@ export const userLogin = (username, pass, captchaSign, verificationcode, captcha
}
},
'POST'
);
// 应收账款汇总
export
const
arSummaryBar
=
()
=>
fetch
(
"/api/query/dash_board/action/get_ar_summary_bar"
,
{},
"POST"
)
// 应收账款列表
export
const
arCompanyList
=
()
=>
fetch
(
"/api/query/dash_board/action/get_ar_company_list"
,
{},
"POST"
)
// 应收账款(结算单位)
export
const
arCompanyBar
=
()
=>
fetch
(
"/api/query/dash_board/action/get_ar_company_bar"
,
{},
"POST"
)
// 应收账款(开票月份)
export
const
arMonthlyBar
=
()
=>
fetch
(
"/api/query/dash_board/action/get_ar_monthly_bar"
,
{},
"POST"
)
// 结算单位 应收账款(开票月份)
export
const
arCompanyMonthlyBar
=
(
company
)
=>
fetch
(
"/api/query/dash_board/action/get_ar_company_monthly_bar"
,
{
aux
:
{
company
:
company
}},
"POST"
)
// 开票月份 应收账款(结算单位)
export
const
arMonthlyCompanyBar
=
(
month
)
=>
fetch
(
"/api/query/dash_board/action/get_ar_monthly_company_bar"
,
{
aux
:
{
month
:
month
}},
"POST"
)
src/module/databoard/components/chart/ar-company-bar.vue
View file @
110cae9e
...
...
@@ -4,6 +4,7 @@
<
script
>
import
*
as
echarts
from
"echarts"
;
import
{
arCompanyBar
}
from
"../../../api/apiList"
;
export
default
{
name
:
"ArCompanyBar"
,
...
...
@@ -112,11 +113,8 @@ export default {
},
mounted
()
{
// 获取图表数据
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_company_bar"
,
{
headers
:
{
'content-type'
:
'application/json'
}
}).
then
(
res
=>
{
arCompanyBar
().
then
(
res
=>
{
let
data
=
res
.
data
.
data
console
.
log
(
"arCompanyBar"
,
data
)
let
xAxisData
=
[]
let
seriesData
=
[]
for
(
let
item
of
data
)
{
...
...
src/module/databoard/components/chart/ar-company-monthly-bar.vue
View file @
110cae9e
...
...
@@ -4,6 +4,7 @@
<
script
>
import
*
as
echarts
from
"echarts"
;
import
{
arCompanyMonthlyBar
}
from
"../../../api/apiList"
;
export
default
{
name
:
"ArCompanyMonthlyBar"
,
...
...
@@ -118,12 +119,9 @@ export default {
}
this
.
barChart
.
title
.
text
=
company
+
" 已开票未收款(开票月份)"
// 获取图表数据
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_company_monthly_bar"
,
{
headers
:
{
'content-type'
:
'application/json'
},
aux
:
{
company
:
company
},
}).
then
(
res
=>
{
arCompanyMonthlyBar
(
company
).
then
(
res
=>
{
let
data
=
res
.
data
.
data
console
.
log
(
"arCompanyMonthlyBar"
,
data
)
let
xAxisData
=
[]
let
seriesData0
=
[]
let
seriesData1
=
[]
...
...
src/module/databoard/components/chart/ar-monthly-bar.vue
View file @
110cae9e
...
...
@@ -4,6 +4,7 @@
<
script
>
import
*
as
echarts
from
"echarts"
;
import
{
arMonthlyBar
}
from
"../../../api/apiList"
;
export
default
{
name
:
"ArMonthlyBar"
,
...
...
@@ -107,11 +108,8 @@ export default {
},
mounted
()
{
// 获取图表数据
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_monthly_bar"
,
{
headers
:
{
'content-type'
:
'application/json'
}
}).
then
(
res
=>
{
arMonthlyBar
().
then
(
res
=>
{
let
data
=
res
.
data
.
data
console
.
log
(
"arMonthlyBar"
,
data
)
let
xAxisData
=
[]
let
seriesData
=
[]
for
(
let
item
of
data
)
{
...
...
src/module/databoard/components/chart/ar-monthly-company-bar.vue
View file @
110cae9e
...
...
@@ -4,6 +4,7 @@
<
script
>
import
*
as
echarts
from
"echarts"
;
import
{
arMonthlyCompanyBar
}
from
"../../../api/apiList"
;
export
default
{
name
:
"ArMonthlyCompanyBar"
,
...
...
@@ -104,12 +105,8 @@ export default {
}
this
.
barChart
.
title
.
text
=
month
+
" 已开票未收款(结算单位)"
// 获取图表数据
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_monthly_company_bar"
,
{
headers
:
{
'content-type'
:
'application/json'
},
aux
:
{
month
:
month
},
}).
then
(
res
=>
{
arMonthlyCompanyBar
(
month
).
then
(
res
=>
{
let
data
=
res
.
data
.
data
console
.
log
(
"arMonthlyCompanyBar"
,
data
)
let
xAxisData
=
[]
let
seriesData
=
[]
for
(
let
item
of
data
)
{
...
...
src/module/databoard/index.vue
View file @
110cae9e
...
...
@@ -105,6 +105,7 @@ import WinnersList from "./components/card/winners-list.vue";
import
TitleContentMark
from
"./components/layout/title-content-mark.vue"
;
import
TableColumn
from
"./components/table/table-column.vue"
;
import
RingPieChart
from
"./components/chart/ring-pie-chart.vue"
;
import
{
arSummaryBar
,
arCompanyList
}
from
"../api/apiList"
export
default
{
components
:
{
...
...
@@ -385,9 +386,7 @@ export default {
},
// 获取应收账款数据
getArSummaryBar
()
{
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_summary_bar"
,
{
headers
:
{
'content-type'
:
'application/json'
}
}).
then
(
res
=>
{
arSummaryBar
().
then
(
res
=>
{
let
data
=
res
.
data
.
data
let
seriesData
=
[]
seriesData
.
push
(
data
.
unsettled_amount
)
...
...
@@ -402,9 +401,7 @@ export default {
},
// 获取已开票未收款排行
getArCompanyList
()
{
window
.
axios
.
post
(
"/api/query/dash_board/action/get_ar_company_list"
,
{
headers
:
{
'content-type'
:
'application/json'
},
}).
then
(
res
=>
{
arCompanyList
().
then
(
res
=>
{
if
(
res
.
data
.
data
.
length
)
{
this
.
arCompanyList
=
res
.
data
.
data
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment