style:报工记录改名生产记录,集成原生产记录列表

main
黄伟杰 7 days ago
parent a4938860d8
commit f2ed3238cd

@ -5241,6 +5241,7 @@ export default {
WorkReportRecord: { WorkReportRecord: {
moduleName: 'Work Report Record', moduleName: 'Work Report Record',
tabProductionRecord: 'Production Record',
searchBaogongTimeLabel: 'Report Date', searchBaogongTimeLabel: 'Report Date',
searchBaogongTimeStartPlaceholder: 'Start Date', searchBaogongTimeStartPlaceholder: 'Start Date',

@ -5136,6 +5136,7 @@ export default {
}, },
WorkReportRecord: { WorkReportRecord: {
moduleName: '报工记录', moduleName: '报工记录',
tabProductionRecord: '生产记录',
searchBaogongTimeLabel: '报工日期', searchBaogongTimeLabel: '报工日期',
searchBaogongTimeStartPlaceholder: '开始日期', searchBaogongTimeStartPlaceholder: '开始日期',

@ -1,4 +1,12 @@
<template> <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> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form <el-form
@ -70,18 +78,22 @@
@pagination="getList" @pagination="getList"
/> />
</ContentWrap> </ContentWrap>
</template>
<ProductionReport v-else />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download' import download from '@/utils/download'
import { BaogongRecordApi, BaogongRecordStatVO } from '@/api/mes/baogongrecord' import { BaogongRecordApi, BaogongRecordStatVO } from '@/api/mes/baogongrecord'
import ProductionReport from '../productionReport/index.vue'
/** 报工记录统计 列表 */ /** 报工记录统计 列表 */
defineOptions({ name: 'WorkReportRecord' }) defineOptions({ name: 'WorkReportRecord' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
const activeRecordTab = ref('work-report')
const loading = ref(true) // const loading = ref(true) //
const list = ref<BaogongRecordStatVO[]>([]) // const list = ref<BaogongRecordStatVO[]>([]) //

Loading…
Cancel
Save