feat(报餐记录): 修改默认截止时间并支持动态配置
从系统配置获取报餐截止时间,默认值从12:00改为16:00
This commit is contained in:
@@ -199,6 +199,7 @@ import { listMealReport, getMealReport, delMealReport, addMealReport, updateMeal
|
|||||||
import DictSelect from "@/components/DictSelect";
|
import DictSelect from "@/components/DictSelect";
|
||||||
import EmployeeSelector from "@/components/EmployeeSelector";
|
import EmployeeSelector from "@/components/EmployeeSelector";
|
||||||
import { listDept } from "@/api/wms/dept"
|
import { listDept } from "@/api/wms/dept"
|
||||||
|
import { getConfigKey } from '@/api/system/config'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MealReport",
|
name: "MealReport",
|
||||||
@@ -233,7 +234,7 @@ export default {
|
|||||||
deptName: undefined,
|
deptName: undefined,
|
||||||
reportUserName: undefined,
|
reportUserName: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
deadlineTime: '12:00:00' // 新增:截至时间默认12点
|
deadlineTime: '16:00:00' // 新增:截至时间默认12点
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
reportId: undefined,
|
reportId: undefined,
|
||||||
@@ -276,6 +277,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
this.getDeadlineConfig();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'form.dineInPeople': {
|
'form.dineInPeople': {
|
||||||
@@ -297,6 +299,11 @@ export default {
|
|||||||
this.deptOptions = response.data
|
this.deptOptions = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDeadlineConfig() {
|
||||||
|
getConfigKey('hrm.meal.deadline').then(response => {
|
||||||
|
this.queryParams.deadlineTime = response.msg || '16:00:00'
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 查询部门报餐主列表 */
|
/** 查询部门报餐主列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user