| | |
| | | export const ASN_ORDER_REPORT_TITLE = '入库通知单报表' |
| | | import { $t } from '@/locales' |
| | | |
| | | export const ASN_ORDER_REPORT_TITLE = $t('pages.orders.asnOrder.reportTitle') |
| | | export const ASN_ORDER_REPORT_STYLE = { |
| | | titleAlign: 'center', |
| | | titleLevel: 'strong', |
| | |
| | | } |
| | | |
| | | const ASN_ORDER_STATUS_MAP = { |
| | | 0: { label: '未执行', tagType: 'info' }, |
| | | 1: { label: '执行中', tagType: 'warning' }, |
| | | 2: { label: '收货完成', tagType: 'success' }, |
| | | 3: { label: '任务执行中', tagType: 'warning' }, |
| | | 4: { label: '已完成', tagType: 'success' }, |
| | | 8: { label: '取消', tagType: 'danger' }, |
| | | 9: { label: '已关闭', tagType: 'info' } |
| | | 0: { label: $t('pages.orders.asnOrder.status.pending'), tagType: 'info' }, |
| | | 1: { label: $t('pages.orders.asnOrder.status.running'), tagType: 'warning' }, |
| | | 2: { label: $t('pages.orders.asnOrder.status.receiving'), tagType: 'success' }, |
| | | 3: { label: $t('pages.orders.asnOrder.status.taskRunning'), tagType: 'warning' }, |
| | | 4: { label: $t('pages.orders.asnOrder.status.completed'), tagType: 'success' }, |
| | | 8: { label: $t('pages.orders.asnOrder.status.cancelled'), tagType: 'danger' }, |
| | | 9: { label: $t('pages.orders.asnOrder.status.closed'), tagType: 'info' } |
| | | } |
| | | |
| | | function normalizeText(value) { |
| | |
| | | return [ |
| | | { |
| | | key: 'view', |
| | | label: '查看详情', |
| | | label: $t('pages.orders.asnOrder.actions.view'), |
| | | icon: 'ri:eye-line' |
| | | }, |
| | | { |
| | | key: 'items', |
| | | label: '收货明细', |
| | | label: $t('pages.orders.asnOrder.actions.items'), |
| | | icon: 'ri:list-check-3' |
| | | }, |
| | | { |
| | | key: 'print', |
| | | label: '打印', |
| | | label: $t('pages.orders.asnOrder.actions.print'), |
| | | icon: 'ri:printer-line' |
| | | }, |
| | | { |
| | | key: 'complete', |
| | | label: '完成', |
| | | label: $t('pages.orders.asnOrder.actions.complete'), |
| | | icon: 'ri:check-line', |
| | | color: 'var(--el-color-success)', |
| | | disabled: !normalizedRow.canComplete |