|
|
|
|
@ -1,4 +1,12 @@
|
|
|
|
|
<template>
|
|
|
|
|
<ContentWrap>
|
|
|
|
|
<el-tabs v-model="activeRecordTab">
|
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.WorkReportRecord.moduleName')" name="work-report" />
|
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.WorkReportRecord.tabProductionRecord')" name="production-record" />
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
|
|
|
|
|
<template v-if="activeRecordTab === 'work-report'">
|
|
|
|
|
<ContentWrap>
|
|
|
|
|
<!-- 搜索工作栏 -->
|
|
|
|
|
<el-form
|
|
|
|
|
@ -70,18 +78,22 @@
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
</template>
|
|
|
|
|
<ProductionReport v-else />
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
|
import download from '@/utils/download'
|
|
|
|
|
import { BaogongRecordApi, BaogongRecordStatVO } from '@/api/mes/baogongrecord'
|
|
|
|
|
import ProductionReport from '../productionReport/index.vue'
|
|
|
|
|
|
|
|
|
|
/** 报工记录统计 列表 */
|
|
|
|
|
defineOptions({ name: 'WorkReportRecord' })
|
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
const activeRecordTab = ref('work-report')
|
|
|
|
|
|
|
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
|
|
const list = ref<BaogongRecordStatVO[]>([]) // 列表的数据
|
|
|
|
|
|