| | |
| | | */ |
| | | |
| | | import { Tag, Tooltip } from 'ant-design-vue'; |
| | | import { ActionItem, BasicColumn, FormSchema } from '/@/components/Table'; |
| | | import { ActionItem, BasicColumn } from '/@/components/Table'; |
| | | import { useI18n } from '/@/hooks/web/useI18n'; |
| | | import { h } from 'vue'; |
| | | import { getEntity, SaveEntity } from '/@/api/tigerapi/system'; |
| | | import { useLocale } from '/@/locales/useLocale'; |
| | | import { useModal } from '/@/components/Modal'; |
| | | import { CustModalParams, FunctionType } from '/@/api/tigerapi/model/systemModel'; |
| | | import { CustModalParams } from '/@/api/tigerapi/model/systemModel'; |
| | | import { useForm } from '/@/components/Form'; |
| | | import { useMessage } from '/@/hooks/web/useMessage'; |
| | | import { UpdateWoBatchStatus } from '/@/api/tigerapi/mes/wo'; |
| | | import { useUserStore } from '/@/store/modules/user'; |
| | | import { formatToDateTime } from '/@/utils/dateUtil'; |
| | | |
| | | const { getLocale } = useLocale(); |
| | | const { createMessage, createErrorModal } = useMessage(); |
| | | const { t } = useI18n(); |
| | | |
| | | function _default() { |
| | |
| | | * @return {*} |
| | | */ |
| | | GetHomeUrl: (params: {}) => { |
| | | return `/BIZ_U9_ASN/LC/${encodeURI(JSON.stringify({ ID: 'BIZ_U9_ASN',"EntityName":"BIZ_U9_ASN", colSlots: params['colSlots'], crudColSlots: [] }))}`; |
| | | return `/BIZ_U9_ASN/LC/${encodeURI(JSON.stringify({ ID: 'BIZ_U9_ASN', EntityName: 'BIZ_U9_ASN', colSlots: params['colSlots'], crudColSlots: [] }))}`; |
| | | }, |
| | | GetBaseColumns: () => { |
| | | GetBaseColumns: (type: string) => { |
| | | switch (type) { |
| | | case 'BIZ_U9_ASN_DTL': |
| | | return [ |
| | | { |
| | | dataIndex: 'ORDER_NO', |
| | |
| | | color = '#8a8a8a'; |
| | | break; |
| | | case 1: |
| | | text = '已导入';color = 'blue'; |
| | | text = '已导入'; |
| | | color = 'blue'; |
| | | break; |
| | | case 2: |
| | | text = '已送达';color = 'green'; |
| | | text = '已送达'; |
| | | color = 'green'; |
| | | break; |
| | | case 3: |
| | | text = '清点中';color = 'orange'; |
| | | text = '清点中'; |
| | | color = 'orange'; |
| | | break; |
| | | case 4: |
| | | text = '上架中';color = 'red'; |
| | | text = '上架中'; |
| | | color = 'red'; |
| | | break; |
| | | case 5: |
| | | text = '待审核';color = '#e1822c'; |
| | | text = '待审核'; |
| | | color = '#e1822c'; |
| | | break; |
| | | case 6: |
| | | text = '已完成';color = '#009966'; |
| | | text = '已完成'; |
| | | color = '#009966'; |
| | | break; |
| | | case 7: |
| | | text = '已作废';color = '#CCCCCC'; |
| | | text = '已作废'; |
| | | color = '#CCCCCC'; |
| | | break; |
| | | } |
| | | return h(Tooltip, { title: text }, () => h(Tag, { color: color }, () => text)); |
| | |
| | | resizable: true, |
| | | }, |
| | | ]; |
| | | case 'BIZ_U9_ASN_SN': |
| | | return [ |
| | | { |
| | | dataIndex: 'ORDER_NO', |
| | | title: '单据号', |
| | | sorter: true, |
| | | resizable: true, |
| | | }, |
| | | { |
| | | dataIndex: 'LINE_NO', |
| | | title: '单据行号', |
| | | sorter: true, |
| | | resizable: true, |
| | | }, |
| | | { |
| | | dataIndex: 'SN', |
| | | title: '条码', |
| | | sorter: true, |
| | | resizable: true, |
| | | }, |
| | | ]; |
| | | } |
| | | }, |
| | | GetSearchForm: () => { |
| | | return [ |
| | |
| | | }; |
| | | |
| | | /* 以下是内部方法,不export,供上面的方法调用 */ |
| | | |
| | | |
| | | return [methods, ActionColumn]; |
| | | } |