移除掉拆分的接口

This commit is contained in:
jishenghua
2024-02-04 00:16:32 +08:00
parent 847acce9a4
commit 8f2ea06175
5 changed files with 12 additions and 268 deletions

View File

@@ -1,10 +1,8 @@
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
//首页统计
const getBuyAndSaleStatisticsByType = (params)=>getAction("/depotHead/getBuyAndSaleStatisticsByType",params);
const getBuyPrice = (params)=>getAction("/depotItem/getBuyPrice",params);
const getSalePrice = (params)=>getAction("/depotItem/getSalePrice",params);
const getRetailPrice = (params)=>getAction("/depotItem/getRetailPrice",params);
const getBuyAndSaleStatistics = (params)=>getAction("/depotHead/getBuyAndSaleStatistics",params);
const buyOrSalePrice = (params)=>getAction("/depotItem/buyOrSalePrice",params);
//租户管理
const checkTenant = (params)=>getAction("/tenant/checkIsNameExist",params);
const editTenant = (params)=>putAction("/tenant/update",params);
@@ -115,10 +113,8 @@ const getBatchNumberList = (params)=>getAction("/depotItem/getBatchNumberList",p
const findFinancialDetailByNumber = (params)=>getAction("/accountHead/getDetailByNumber",params);
export {
getBuyAndSaleStatisticsByType,
getBuyPrice,
getSalePrice,
getRetailPrice,
getBuyAndSaleStatistics,
buyOrSalePrice,
checkTenant,
editTenant,
addRole,

View File

@@ -156,10 +156,9 @@
import LineChartMultid from '@/components/chart/LineChartMultid'
import HeadInfo from '@/components/tools/HeadInfo.vue'
import Trend from '@/components/Trend'
import { getBuyAndSaleStatisticsByType, getBuyPrice, getSalePrice, getRetailPrice, getPlatformConfigByKey } from '@/api/api'
import { getBuyAndSaleStatistics, buyOrSalePrice, getPlatformConfigByKey } from '@/api/api'
import { handleIntroJs } from "@/utils/util"
import { getAction,postAction } from '../../api/manage'
import Vue from 'vue'
export default {
name: "IndexChart",
@@ -213,46 +212,15 @@
},
methods: {
initInfo () {
getBuyAndSaleStatisticsByType({"type": "today"}).then((res)=>{
getBuyAndSaleStatistics().then((res)=>{
if(res.code === 200){
this.statistics.todayBuy = res.data.todayBuy;
this.statistics.todaySale = res.data.todaySale;
this.statistics.todayRetailSale = res.data.todayRetailSale;
this.statistics = res.data;
}
})
getBuyAndSaleStatisticsByType({"type": "month"}).then((res)=>{
if(res.code === 200){
this.statistics.monthBuy = res.data.monthBuy;
this.statistics.monthSale = res.data.monthSale;
this.statistics.monthRetailSale = res.data.monthRetailSale;
}
})
getBuyAndSaleStatisticsByType({"type": "yesterday"}).then((res)=>{
if(res.code === 200){
this.statistics.yesterdayBuy = res.data.yesterdayBuy;
this.statistics.yesterdaySale = res.data.yesterdaySale;
this.statistics.yesterdayRetailSale = res.data.yesterdayRetailSale;
}
})
getBuyAndSaleStatisticsByType({"type": "year"}).then((res)=>{
if(res.code === 200){
this.statistics.yearBuy = res.data.yearBuy;
this.statistics.yearSale = res.data.yearSale;
this.statistics.yearRetailSale = res.data.yearRetailSale;
}
})
getBuyPrice().then(res=>{
buyOrSalePrice().then(res=>{
if(res.code === 200){
this.buyPriceData = res.data.buyPriceList;
}
})
getSalePrice().then(res=>{
if(res.code === 200){
this.salePriceData = res.data.salePriceList;
}
})
getRetailPrice().then(res=>{
if(res.code === 200){
this.retailPriceData = res.data.retailPriceList;
}
})