From dc29de883df104f0ad15ac6fe3fe7aaf5cbd61ee Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 28 一月 2026 11:28:22 +0800
Subject: [PATCH] 来票登记发票金额禁输
---
src/api/viewIndex.js | 118 +++++++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 91 insertions(+), 27 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 23bddd8..355e1b2 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -1,52 +1,116 @@
// 棣栭〉鎺ュ彛
import request from '@/utils/request'
-// 鏈湀鍚堝悓閲戦
-export const getContractAmount = () => {
+// 閿�鍞�-閲囪喘-搴撳瓨鏁版嵁
+export const getBusiness = () => {
return request({
- url: '/sales/ledger/getContractAmount',
+ url: '/home/business',
method: 'get'
})
}
-// 鏈湀寮�绁ㄩ噾棰�
-export const getInvoiceAmount = () => {
+// 瀹㈡埛鍚堝悓閲戦鍒嗘瀽
+export const analysisCustomerContractAmounts = () => {
return request({
- url: '/invoiceLedger/getInvoiceAmount',
+ url: '/home/analysisCustomerContractAmounts',
method: 'get'
})
}
-// 鏈湀鍥炴閲戦
-export const getReceiptAmount = () => {
+// 璐ㄦ鍒嗘瀽
+export const qualityStatistics = () => {
return request({
- url: '/receiptPayment/getReceiptAmount',
+ url: '/home/qualityStatistics',
method: 'get'
})
}
-// 瀹㈡埛鍚堝悓閲戦TOP5缁熻
-export const getTopFiveList = () => {
+// 搴旀敹搴斾粯缁熻
+export const statisticsReceivablePayable = (query) => {
return request({
- url: '/sales/ledger/getTopFiveList',
+ url: '/home/statisticsReceivablePayable',
+ method: 'get',
+ params: query
+ })
+}
+// 寰呭姙浜嬮」
+export const homeTodos = () => {
+ return request({
+ url: '/home/todos',
method: 'get'
})
}
-// 鍥炴楗肩姸鍥�
-export const getAmountMouth = () => {
- return request({
- url: '/receiptPayment/getAmountMouth',
- method: 'get'
- })
-}
-// 浠樻楗肩姸鍥�
-export const paymentMonthList = () => {
- return request({
- url: '/purchase/paymentRegistration/paymentMonthList',
- method: 'get'
- })
-}
+
// 绾垮舰鍥�
export const getAmountHalfYear = () => {
return request({
url: '/sales/ledger/getAmountHalfYear',
method: 'get'
})
-}
\ No newline at end of file
+}
+
+// 鍚勭敓浜ц鍗曠殑瀹屾垚杩涘害缁熻
+// /home/progressStatistics
+export const getProgressStatistics = ()=>{
+ return request({
+ url: '/home/progressStatistics',
+ method: 'get'
+ })
+}
+
+//鍦ㄥ埗鍝佸懆杞儏鍐�
+//home/workInProcessTurnover
+export const getWorkInProcessTurnover = () => {
+ return request({
+ url: '/home/workInProcessTurnover',
+ method: 'get'
+ })
+}
+
+// 瀹㈡埛钀ユ敹璐$尞鏁板�煎垎鏋�
+export const customerRevenueAnalysis = (params) => {
+ return request({
+ url: '/home/customerRevenueAnalysis',
+ method: 'get',
+ params
+ })
+}
+
+// 鍛樺伐-瀹㈡埛-渚涘簲鍟嗘�绘暟
+export const summaryStatistics = () => {
+ return request({
+ url: '/home/summaryStatistics',
+ method: 'get'
+ })
+}
+
+// 鍚勯儴闂ㄤ汉鍛樺垎甯�
+export const deptStaffDistribution = () => {
+ return request({
+ url: '/home/deptStaffDistribution',
+ method: 'get'
+ })
+}
+
+// 渚涘簲鍟嗛噰璐帓鍚�
+export const supplierPurchaseRanking = (query) => {
+ return request({
+ url: '/home/supplierPurchaseRanking',
+ method: 'get',
+ params: query
+ })
+}
+
+// 瀹㈡埛閲戦璐$尞鎺掑悕
+export const customerContributionRanking = (query) => {
+ return request({
+ url: '/home/customerContributionRanking',
+ method: 'get',
+ params: query
+ })
+}
+
+// 鍚勪骇鍝佸ぇ绫诲垎甯�
+export const productCategoryDistribution = () => {
+ return request({
+ url: '/home/productCategoryDistribution',
+ method: 'get'
+ })
+}
--
Gitblit v1.9.3