| | |
| | | |
| | | <script setup> |
| | | import { computed, ref } from 'vue' |
| | | import { useI18n } from 'vue-i18n' |
| | | import { useTable } from '@/hooks/core/useTable' |
| | | import { fetchGetInStatisticItemDetail, fetchInStatisticItemPage } from '@/api/in-statistic-item' |
| | | import { |
| | |
| | | import InStatisticItemDetailDrawer from './modules/in-statistic-item-detail-drawer.vue' |
| | | |
| | | defineOptions({ name: 'InStatisticItem' }) |
| | | const { t } = useI18n() |
| | | |
| | | const searchForm = ref(createInStatisticItemSearchState()) |
| | | const detailDrawerVisible = ref(false) |
| | |
| | | |
| | | const searchItems = computed(() => [ |
| | | { |
| | | label: '关键字', |
| | | label: t('pages.manager.inStatisticItem.search.condition'), |
| | | key: 'condition', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入物料名称/编码/批次' |
| | | placeholder: t('pages.manager.inStatisticItem.search.conditionPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '统计日期', |
| | | label: t('pages.manager.inStatisticItem.search.dayTime'), |
| | | key: 'dayTime', |
| | | type: 'date', |
| | | props: { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '物料名称', |
| | | label: t('pages.manager.inStatisticItem.search.maktx'), |
| | | key: 'maktx', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入物料名称' |
| | | placeholder: t('pages.manager.inStatisticItem.search.maktxPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '物料编码', |
| | | label: t('pages.manager.inStatisticItem.search.matnrCode'), |
| | | key: 'matnrCode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入物料编码' |
| | | placeholder: t('pages.manager.inStatisticItem.search.matnrCodePlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: '批次', |
| | | label: t('pages.manager.inStatisticItem.search.batch'), |
| | | key: 'batch', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入批次' |
| | | placeholder: t('pages.manager.inStatisticItem.search.batchPlaceholder') |
| | | } |
| | | } |
| | | ]) |