| | |
| | | import { useLocale } from '/@/locales/useLocale'; |
| | | import { MesWoStatus } from '/@/api/tigerapi/mes/wo'; |
| | | import { useI18n } from '/@/hooks/web/useI18n'; |
| | | import { GetEnum } from '/@/api/tigerapi/system'; |
| | | |
| | | const { getLocale } = useLocale(); |
| | | const { t } = useI18n(); |
| | |
| | | switch (status) { |
| | | case 0: |
| | | text = '待配置'; |
| | | color = '#515151'; |
| | | color = '#8a8a8a'; |
| | | break; |
| | | case 1: |
| | | text = '已配置'; |
| | |
| | | switch (status) { |
| | | case 0: |
| | | text = '初始化'; |
| | | color = '#515151'; |
| | | color = '#8a8a8a'; |
| | | break; |
| | | case 1: |
| | | text = '已导入'; |
| | |
| | | component: 'ApiSelect', |
| | | colProps: { span: 8 }, |
| | | componentProps: { |
| | | api: MesWoStatus, |
| | | api: GetEnum, |
| | | params: { name: 'BIZ_MES_WO+STATUSs' }, |
| | | resultField: 'Data', |
| | | labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name', |
| | | valueField: 'Value', |