| | |
| | | |
| | | <script setup> |
| | | import { computed, ref } from 'vue' |
| | | import { useI18n } from 'vue-i18n' |
| | | import { useUserStore } from '@/store/modules/user' |
| | | import { useTable } from '@/hooks/core/useTable' |
| | | import { usePrintExportPage } from '@/views/system/common/usePrintExportPage' |
| | |
| | | defineOptions({ name: 'TaskLog' }) |
| | | |
| | | const userStore = useUserStore() |
| | | const { t } = useI18n() |
| | | const searchForm = ref(createTaskLogSearchState()) |
| | | const detailDrawerVisible = ref(false) |
| | | const detailData = ref({}) |
| | |
| | | |
| | | const searchItems = computed(() => [ |
| | | { |
| | | label: '关键字', |
| | | label: t('table.keyword'), |
| | | key: 'condition', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入任务号/托盘码/机器人编码' |
| | | placeholder: t('pages.manager.taskLog.search.conditionPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '任务号', |
| | | label: t('pages.manager.taskLog.table.taskCode'), |
| | | key: 'taskCode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入任务号' |
| | | placeholder: t('pages.manager.taskLog.search.taskCodePlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '源库位', |
| | | label: t('pages.manager.taskLog.table.orgLoc'), |
| | | key: 'orgLoc', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入源库位' |
| | | placeholder: t('pages.manager.taskLog.search.orgLocPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '目标库位', |
| | | label: t('pages.manager.taskLog.table.targLoc'), |
| | | key: 'targLoc', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入目标库位' |
| | | placeholder: t('pages.manager.taskLog.search.targLocPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '托盘码', |
| | | label: t('pages.manager.taskLog.table.barcode'), |
| | | key: 'barcode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入托盘码' |
| | | placeholder: t('pages.manager.taskLog.search.barcodePlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '机器人编码', |
| | | label: t('pages.manager.taskLog.table.robotCode'), |
| | | key: 'robotCode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入机器人编码' |
| | | placeholder: t('pages.manager.taskLog.search.robotCodePlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '开始日期', |
| | | label: t('pages.manager.taskLog.search.timeStart'), |
| | | key: 'timeStart', |
| | | type: 'date', |
| | | props: { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '结束日期', |
| | | label: t('pages.manager.taskLog.search.timeEnd'), |
| | | key: 'timeEnd', |
| | | type: 'date', |
| | | props: { |