feat: 更新审批逻辑、分页功能及表格列显示
fix(leave): 将请假天数审批阈值从3天改为72小时 feat(coilTable): 添加分页大小和当前页改变处理方法 refactor(column): 简化发货相关表格列标题 feat(eqp): 在备件和辅料管理中添加机组筛选和显示
This commit is contained in:
@@ -331,7 +331,7 @@ export default {
|
||||
// 2. 循环处理每个时段,逐个发送请求
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
const item = list[i];
|
||||
const approvalType = parseInt(item.leaveDays) > 3 ? 'multi' : 'single';
|
||||
const approvalType = parseInt(item.leaveDays) > 72 ? 'multi' : 'single';
|
||||
const singleRequestData = {
|
||||
...commonFields,
|
||||
startTime: item.startTime,
|
||||
|
||||
@@ -81,6 +81,17 @@ export default {
|
||||
showPagination() {
|
||||
return this.totalPage > 1
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 分页大小改变时触发
|
||||
handleSizeChange(val) {
|
||||
this.pageSize = val
|
||||
this.pageNum = 1
|
||||
},
|
||||
// 分页当前页改变时触发
|
||||
handleCurrentChange(val) {
|
||||
this.pageNum = val
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -248,22 +248,22 @@ const defaultColumns = {
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "发货绑定车牌号",
|
||||
title: "车牌号",
|
||||
prop: "bindLicensePlate",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "发货绑定目标客户",
|
||||
title: "目标客户",
|
||||
prop: "bindConsigneeUnit",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "发货绑定单位",
|
||||
title: "发货单位",
|
||||
prop: "bindSenderUnit",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "发货绑定负责人",
|
||||
title: "发货负责人",
|
||||
prop: "bindPrincipal",
|
||||
align: "center",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user