| | |
| | | import { BasicColumn } from '/@/components/Table'; |
| | | import { FormSchema } from '/@/components/Table'; |
| | | import { BasicColumn, FormSchema } from '/@/components/Table'; |
| | | import { optionsListApi, optionsListApi2, optionsListApi3 } from '/@/api/tigerapi/wms/inventory'; |
| | | import { h, unref } from 'vue'; |
| | | import { Tag, Tooltip } from 'ant-design-vue'; |
| | | import { useI18n } from '/@/hooks/web/useI18n'; |
| | | import { useLocale } from '/@/locales/useLocale'; |
| | | |
| | | const { getLocale } = useLocale(); |
| | | const { t } = useI18n('WMS.Count'); |
| | | //盘点主界面 |
| | | //盘点主界面 |
| | | export const columns: BasicColumn[] = [ |
| | | { |
| | | title: t('单据编码'), |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.STATUS; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '新创建'; |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.COUNT_TYPE; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '年盘'; |
| | |
| | | label: t('盘点单号'), |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true |
| | | dynamicDisabled: true, |
| | | }, |
| | | { |
| | | field: 'COUNT_TYPE', |
| | |
| | | label: t('镜像时间'), |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true |
| | | dynamicDisabled: true, |
| | | }, |
| | | { |
| | | field: 'COUNT_MODE', |
| | |
| | | { |
| | | field: '0', |
| | | component: 'Input', |
| | | label: t(' '), |
| | | label: t(''), |
| | | colSlot: 'add', |
| | | colProps: { |
| | | span: 8, |
| | | span: 4, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'WH_IDS', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'REGION_IDS', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'SHELF_IDS', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'LOCATION_IDS', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'ORG_CODE', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'STATUS', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'CREATE_USER', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'CREATE_TIME', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'AUTH_ORE', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'AUTH_PROD', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'AUTH_WH', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'CREATE_USER', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | }, { |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'UPDATE_USER', |
| | | label: t('UPDATE_USER'), |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'BEGIN_DATE', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | { |
| | | field: 'END_DATE', |
| | |
| | | colProps: { span: 8 }, |
| | | component: 'Input', |
| | | dynamicDisabled: true, |
| | | show: false |
| | | show: false, |
| | | }, |
| | | ]; |
| | | //盘点管理中的盘点明细 |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.STATUS; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '待盘点'; |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.RESULT; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '无结果'; |
| | |
| | | sorter: true, |
| | | width: 180, |
| | | }, |
| | | ] |
| | | ]; |
| | | //储位明细 |
| | | export const LdtlColumns: BasicColumn[] = [ |
| | | { |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.STATUS; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '待盘点'; |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.RESULT; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '未核实'; |
| | |
| | | sorter: true, |
| | | width: 180, |
| | | }, |
| | | ] |
| | | ]; |
| | | //汇总明细 |
| | | export const SumColumns: BasicColumn[] = [ |
| | | { |
| | |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | const status = record.RESULT; |
| | | var text = ''; |
| | | var color = ''; |
| | | let text = ''; |
| | | let color = ''; |
| | | switch (status) { |
| | | case 0: |
| | | text = '无结果'; |
| | |
| | | sorter: true, |
| | | width: 180, |
| | | }, |
| | | |
| | | ] |
| | | ]; |