|
|
@@ -387,33 +387,22 @@
|
|
|
title: '加载中'
|
|
|
})
|
|
|
|
|
|
- let params = {
|
|
|
- startDate: '',
|
|
|
- endDate: '',
|
|
|
- factoriesId: 0
|
|
|
- }
|
|
|
- let nowYear = getDateNew('year') + '-01-01'
|
|
|
- let nowMonth = getDateNew('month') + '-01'
|
|
|
- let now = getDateNew()
|
|
|
- console.log(now, nowYear, nowMonth);
|
|
|
- params.endDate = now
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
const res1 = await getCount()
|
|
|
const res2 = await getGoodsPage()
|
|
|
const res3 = await getYearAmount()
|
|
|
const res4 = await getReceivableAmount()
|
|
|
const res5 = await getPayableAmount()
|
|
|
+ // 年度
|
|
|
const res6 = await getProduceAmount({
|
|
|
- ...params,
|
|
|
- startDate: nowYear
|
|
|
+ createTimeStart: getDateNew('year') + '-01',
|
|
|
+ createTimeEnd: getDateNew('year') + '-12',
|
|
|
+ factoryId: null
|
|
|
})
|
|
|
+ // 本月
|
|
|
const res7 = await getProduceAmount({
|
|
|
- ...params,
|
|
|
- startDate: nowMonth
|
|
|
+ createTimeStart: getDateNew('month'),
|
|
|
+ createTimeEnd: getDateNew('month'),
|
|
|
+ factoryId: null
|
|
|
})
|
|
|
|
|
|
|