From e157c5fc93c19d9a2e48eb6a887d307c0482019b Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 2 Sep 2024 10:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=92=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=91=E7=A5=A8=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home.js | 13 +++ src/api/invoice.js | 37 ++++++ src/components/charts/bar.vue | 35 ++++-- src/components/charts/pie.vue | 64 ++++++----- src/view/customer/wxulist.vue | 66 +++++------ src/view/invoice/headlist.vue | 110 ++++++++++++++++++ src/view/invoice/reqlist.vue | 158 ++++++++++++++++++++++++++ src/view/single-page/home/example.vue | 118 ++++++++++--------- src/view/single-page/home/home.vue | 141 +++++++++++++---------- 9 files changed, 556 insertions(+), 186 deletions(-) create mode 100644 src/api/home.js create mode 100644 src/api/invoice.js create mode 100644 src/view/invoice/headlist.vue create mode 100644 src/view/invoice/reqlist.vue diff --git a/src/api/home.js b/src/api/home.js new file mode 100644 index 0000000..254181f --- /dev/null +++ b/src/api/home.js @@ -0,0 +1,13 @@ +import axios from '@/libs/api.request' + +/** + * 获取发票申请列表数据 + * @returns {wx.RequestTask | never} + */ +export const getHome = (params) => { + return axios.request({ + url: 'Index/statistics', + method: 'get', + params: params + }) +} diff --git a/src/api/invoice.js b/src/api/invoice.js new file mode 100644 index 0000000..6a91ceb --- /dev/null +++ b/src/api/invoice.js @@ -0,0 +1,37 @@ +import axios from '@/libs/api.request' + +/** + * 获取发票申请列表数据 + * @returns {wx.RequestTask | never} + */ +export const getinvoiceList = (params) => { + return axios.request({ + url: 'InvoiceIssuance/index', + method: 'get', + params: params + }) +} + +/** + * 获取发票项目选项 + * @returns {wx.RequestTask | never} + */ +export const getIndexData = (params) => { + return axios.request({ + url: 'InvoiceIssuance/getIndexData', + method: 'get', + params: params + }) +} + +/** + * 获取发票抬头数据 + * @returns {wx.RequestTask | never} + */ +export const getInvoiceHead = (params) => { + return axios.request({ + url: 'InvoiceHead/index', + method: 'get', + params: params + }) +} diff --git a/src/components/charts/bar.vue b/src/components/charts/bar.vue index b0a2709..f84ad03 100644 --- a/src/components/charts/bar.vue +++ b/src/components/charts/bar.vue @@ -1,5 +1,5 @@ diff --git a/src/components/charts/pie.vue b/src/components/charts/pie.vue index c86d68c..3df48d7 100644 --- a/src/components/charts/pie.vue +++ b/src/components/charts/pie.vue @@ -1,5 +1,5 @@ diff --git a/src/view/customer/wxulist.vue b/src/view/customer/wxulist.vue index 8d22b4b..5af46fc 100644 --- a/src/view/customer/wxulist.vue +++ b/src/view/customer/wxulist.vue @@ -1,36 +1,35 @@ diff --git a/src/view/invoice/reqlist.vue b/src/view/invoice/reqlist.vue new file mode 100644 index 0000000..3cd8de2 --- /dev/null +++ b/src/view/invoice/reqlist.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/view/single-page/home/example.vue b/src/view/single-page/home/example.vue index ff06acd..41d46ea 100644 --- a/src/view/single-page/home/example.vue +++ b/src/view/single-page/home/example.vue @@ -1,5 +1,5 @@ diff --git a/src/view/single-page/home/home.vue b/src/view/single-page/home/home.vue index b23276e..440c598 100644 --- a/src/view/single-page/home/home.vue +++ b/src/view/single-page/home/home.vue @@ -1,43 +1,45 @@ -