| | |
| | | <template> |
| | | <ElDialog |
| | | :model-value="visible" |
| | | title="波次下发任务" |
| | | :title="t('pages.orders.wave.publicTask.title')" |
| | | width="88%" |
| | | destroy-on-close |
| | | @update:model-value="handleVisibleChange" |
| | | > |
| | | <div class="flex max-h-[calc(100vh-240px)] flex-col gap-4 overflow-hidden"> |
| | | <ElDescriptions :column="4" border> |
| | | <ElDescriptionsItem label="波次单号">{{ wave.code || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem label="波次类型">{{ wave.typeLabel || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem label="波次状态">{{ wave.exceStatusText || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem label="执行数量">{{ wave.workQty ?? '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem :label="t('pages.orders.wave.publicTask.code')">{{ wave.code || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem :label="t('pages.orders.wave.publicTask.type')">{{ wave.typeLabel || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem :label="t('pages.orders.wave.publicTask.exceStatus')">{{ wave.exceStatusText || '--' }}</ElDescriptionsItem> |
| | | <ElDescriptionsItem :label="t('pages.orders.wave.publicTask.workQty')">{{ wave.workQty ?? '--' }}</ElDescriptionsItem> |
| | | </ElDescriptions> |
| | | |
| | | <ElAlert |
| | |
| | | |
| | | <template #footer> |
| | | <div class="flex items-center justify-end gap-3"> |
| | | <ElButton @click="handleVisibleChange(false)">关闭</ElButton> |
| | | <ElButton @click="handleVisibleChange(false)">{{ t('common.close') }}</ElButton> |
| | | <ElButton type="primary" :loading="submitLoading" :disabled="!canSubmit" @click="$emit('submit')"> |
| | | 下发任务 |
| | | {{ t('pages.orders.wave.actions.publicTask') }} |
| | | </ElButton> |
| | | </div> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { useI18n } from 'vue-i18n' |
| | | |
| | | defineOptions({ name: 'WavePublicTaskDialog' }) |
| | | const { t } = useI18n() |
| | | |
| | | defineProps({ |
| | | visible: { type: Boolean, default: false }, |
| | |
| | | columns: { type: Array, default: () => [] }, |
| | | pagination: { type: Object, default: () => ({ current: 1, size: 20, total: 0 }) }, |
| | | canSubmit: { type: Boolean, default: false }, |
| | | warningText: { type: String, default: '波次预览数据不可用,请先检查库位配置' } |
| | | warningText: { type: String, default: '' } |
| | | }) |
| | | |
| | | const emit = defineEmits(['update:visible', 'size-change', 'current-change', 'submit']) |