spring
10 小时以前 0b8b77e3320c45260f28f92dadf9c66515d75328
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'
    })
}
}
// 各生产订单的完成进度统计
// /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'
    })
}