// 首页接口
|
import request from "@/utils/request";
|
|
// 销售-采购-库存数据
|
export const getBusiness = () => {
|
return request({
|
url: "/home/business",
|
method: "get",
|
});
|
};
|
// 客户合同金额分析
|
export const analysisCustomerContractAmounts = () => {
|
return request({
|
url: "/home/analysisCustomerContractAmounts",
|
method: "get",
|
});
|
};
|
// 质检分析
|
export const qualityStatistics = () => {
|
return request({
|
url: "/home/qualityStatistics",
|
method: "get",
|
});
|
};
|
// 应收应付统计
|
export const statisticsReceivablePayable = (query) => {
|
return request({
|
url: "/home/statisticsReceivablePayable",
|
method: "get",
|
params: query,
|
});
|
};
|
// 待办事项
|
export const homeTodos = () => {
|
return request({
|
url: "/home/todos",
|
method: "get",
|
});
|
};
|
|
// 线形图
|
export const getAmountHalfYear = () => {
|
return request({
|
url: "/sales/ledger/getAmountHalfYear",
|
method: "get",
|
});
|
};
|
|
// 各生产订单的完成进度统计
|
// /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",
|
});
|
};
|
|
// 产品销售金额分析
|
export const productSalesAnalysis = () => {
|
return request({
|
url: "/home/productSalesAnalysis",
|
method: "get",
|
});
|
};
|
|
// 原材料采购金额占比
|
export const rawMaterialPurchaseAmountRatio = () => {
|
return request({
|
url: "/home/rawMaterialPurchaseAmountRatio",
|
method: "get",
|
});
|
};
|
|
// 销售/采购/储存产品数
|
export const salesPurchaseStorageProductCount = () => {
|
return request({
|
url: "/home/salesPurchaseStorageProductCount",
|
method: "get",
|
});
|
};
|
|
// 产品出入库分析(可传 productType: 1 原材料 2 半成品 3 成品)
|
export const productInOutAnalysis = (params) => {
|
return request({
|
url: "/home/productInOutAnalysis",
|
method: "get",
|
params,
|
});
|
};
|
|
// 产品周转天数
|
export const productTurnoverDays = () => {
|
return request({
|
url: "/home/productTurnoverDays",
|
method: "get",
|
});
|
};
|
|
// 收支对比分析
|
export const incomeExpenseAnalysis = () => {
|
return request({
|
url: "/home/incomeExpenseAnalysis",
|
method: "get",
|
});
|
};
|
|
// 利润趋势分析
|
export const profitTrendAnalysis = () => {
|
return request({
|
url: "/home/profitTrendAnalysis",
|
method: "get",
|
});
|
};
|
|
// 月度收入
|
export const getMonthlyIncome = () => {
|
return request({
|
url: "/home/monthlyIncome",
|
method: "get",
|
});
|
};
|
|
// 月度支出
|
export const getMonthlyExpenditure = () => {
|
return request({
|
url: "/home/monthlyExpenditure",
|
method: "get",
|
});
|
};
|