报餐统计
This commit is contained in:
parent
78ee4c0278
commit
2aee85ae1b
@ -130,7 +130,6 @@ public class FtOrderDaoController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/getStatisGetOrderOfDay")
|
||||
public AjaxResult getStatisGetOrderOfDay(@RequestBody JSONObject params) {
|
||||
System.out.println(params);
|
||||
Date selectDay = params.getDate("selectDay");
|
||||
return iFtOrderDaoService.statisGetOrderOfDate(selectDay);
|
||||
}
|
||||
@ -138,16 +137,19 @@ public class FtOrderDaoController extends BaseController {
|
||||
/**
|
||||
* 统计周报餐信息
|
||||
*/
|
||||
@GetMapping("/getStatisGetOrderOfWeek")
|
||||
public AjaxResult getStatisGetOrderOfWeek(@RequestParam Date date) {
|
||||
return iFtOrderDaoService.statisGetOrderOfWeek(date);
|
||||
@PostMapping("/getStatisGetOrderOfWeek")
|
||||
public AjaxResult getStatisGetOrderOfWeek(@RequestBody JSONObject params) {
|
||||
System.out.println(params);
|
||||
Date selectWeek = params.getDate("selectWeek");
|
||||
return iFtOrderDaoService.statisGetOrderOfWeek(selectWeek);
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计月报餐信息
|
||||
*/
|
||||
@GetMapping("/getStatisGetOrderOfMonth")
|
||||
public AjaxResult getStatisGetOrderOfMonth(@RequestParam Date date) {
|
||||
return iFtOrderDaoService.statisGetOrderOfMonth(date);
|
||||
@PostMapping("/getStatisGetOrderOfMonth")
|
||||
public AjaxResult getStatisGetOrderOfMonth(@RequestBody JSONObject params) {
|
||||
Date selectMonth = params.getDate("selectMonth");
|
||||
return iFtOrderDaoService.statisGetOrderOfMonth(selectMonth);
|
||||
}
|
||||
}
|
||||
|
@ -62,19 +62,19 @@ export function getStatisGetOrderOfDay(data) {
|
||||
}
|
||||
|
||||
// 周报餐信息
|
||||
export function getStatisGetOrderOfWeek() {
|
||||
export function getStatisGetOrderOfWeek(data) {
|
||||
return request({
|
||||
url: '/fantang/order/getStatisGetOrderOfWeek',
|
||||
method: 'get',
|
||||
params: query
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 月报餐信息
|
||||
export function getStatisGetOrderOfMonth() {
|
||||
export function getStatisGetOrderOfMonth(data) {
|
||||
return request({
|
||||
url: '/fantang/order/getStatisGetOrderOfMonth',
|
||||
method: 'get',
|
||||
params: query
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
@ -43,6 +43,9 @@
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="onMonthSubmit">统计</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="resetCount">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
||||
@ -200,6 +203,8 @@ import {
|
||||
exportOrder,
|
||||
getOrder,
|
||||
getStatisGetOrderOfDay,
|
||||
getStatisGetOrderOfMonth,
|
||||
getStatisGetOrderOfWeek,
|
||||
listOrder,
|
||||
updateOrder
|
||||
} from "@/api/fantang/order";
|
||||
@ -266,17 +271,36 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
resetCount() {
|
||||
this.formDay = {
|
||||
selectDay: null
|
||||
}
|
||||
this.formWeek = {
|
||||
selectWeek: null
|
||||
}
|
||||
this.formMonth = {
|
||||
selectMonth: null
|
||||
}
|
||||
this.orderCountList = null
|
||||
},
|
||||
formatOrderType(row) {
|
||||
return this.selectDictLabel(this.typeOptions, row.orderType);
|
||||
},
|
||||
onMonthSubmit() {
|
||||
if (this.formMonth.selectMonth != null) {
|
||||
console.log(this.formMonth)
|
||||
getStatisGetOrderOfMonth(this.formMonth).then(response => {
|
||||
this.orderCountList = response.data;
|
||||
})
|
||||
}
|
||||
},
|
||||
onWeekSubmit() {
|
||||
if (this.formWeek.selectWeek != null) {
|
||||
console.log(this.formWeek)
|
||||
getStatisGetOrderOfWeek(this.formWeek).then(response => {
|
||||
console.log(response)
|
||||
this.orderCountList = response.data;
|
||||
})
|
||||
}
|
||||
},
|
||||
onDaySubmit() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user