|
|
|
|
@ -42,6 +42,7 @@
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type='primary' icon='Search' @click='handleQuery'>搜索</el-button>
|
|
|
|
|
<el-button icon='Refresh' @click='resetQuery'>重置</el-button>
|
|
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExport">导出</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-card>
|
|
|
|
|
@ -61,9 +62,9 @@
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<div class="cell-content">
|
|
|
|
|
<div v-for="plan in getPlansForShift(row, shift.shiftId)" :key="plan.planId" class="cell-item material-item">
|
|
|
|
|
<el-tooltip
|
|
|
|
|
:content="plan.materialName"
|
|
|
|
|
placement="top"
|
|
|
|
|
<el-tooltip
|
|
|
|
|
:content="plan.materialName"
|
|
|
|
|
placement="top"
|
|
|
|
|
:show-after="500">
|
|
|
|
|
<span class="material-name">{{ plan.materialName }}</span>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
@ -121,7 +122,7 @@ import {
|
|
|
|
|
delPlanInfo,
|
|
|
|
|
addPlanInfo,
|
|
|
|
|
updatePlanInfo,
|
|
|
|
|
orderAddProductPlanList, issuePlanInfo, queryMoritorPageList, queryMoritorList
|
|
|
|
|
orderAddProductPlanList, issuePlanInfo, queryMoritorList
|
|
|
|
|
} from '@/api/mes/planInfo';
|
|
|
|
|
import { PlanInfoVO, PlanInfoQuery, PlanInfoForm } from '@/api/mes/planInfo/types';
|
|
|
|
|
import { getBaseShiftInfoList } from '@/api/mes/baseShiftInfo';
|
|
|
|
|
@ -486,6 +487,14 @@ const handleDateRangeChange = (val) => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出按钮操作
|
|
|
|
|
function handleExport() {
|
|
|
|
|
proxy.download('/mes/planInfo/exportMonitor', {
|
|
|
|
|
...queryParams.value
|
|
|
|
|
}, `生产计划监控_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
/* 设置头部样式 */
|
|
|
|
|
|