// 首页接口
|
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'
|
})
|
}
|
|
// 产品大类分布
|
// /home/productCategoryDistribution
|
export const productCategoryDistribution = () => {
|
return request({
|
url: '/home/productCategoryDistribution',
|
method: 'get'
|
})
|
}
|