| | |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesProBagCodeApi } from '#/api/mes/pro/bagCode'; |
| | | |
| | | import { markRaw } from 'vue'; |
| | | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | |
| | | import { MdmItemSelect } from '#/views/basicData/mdm/components'; |
| | | |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | |
| | |
| | | return [ |
| | | { |
| | | fieldName: 'code', |
| | | label: '袋码', |
| | | label: '追溯码', |
| | | component: 'Input', |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请输入袋码(二维码内容)', |
| | | placeholder: '请输入追溯码', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'businessCode', label: '业务码', component: 'Input', |
| | | componentProps: { allowClear: true, placeholder: '请输入出入库业务码' }, |
| | | }, |
| | | { |
| | | fieldName: 'batchCode', |
| | |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请输入生成组编号', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '品种', |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | placeholder: '请选择品种(产品品种)', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | { type: 'checkbox', width: 50 }, |
| | | { |
| | | field: 'code', |
| | | title: '袋码(二维码内容)', |
| | | title: '追溯码', |
| | | fixed: 'left', |
| | | minWidth: 220, |
| | | }, |
| | | { field: 'businessCode', title: '业务码(出入库)', minWidth: 210 }, |
| | | { |
| | | field: 'bagNo', |
| | | title: '袋序号', |
| | |
| | | minWidth: 190, |
| | | }, |
| | | { |
| | | field: 'itemCode', |
| | | title: '品种编码', |
| | | width: 120, |
| | | }, |
| | | { |
| | | field: 'itemName', |
| | | title: '品种名称', |
| | | width: 140, |
| | | }, |
| | | { |
| | | field: 'lineCode', |
| | | title: '产线编码', |
| | | width: 100, |
| | |
| | | title: '绑定托盘码', |
| | | minWidth: 190, |
| | | }, |
| | | { field: 'inboundTime', title: '入库状态', width: 100, formatter: ({ cellValue }) => cellValue ? '已入库' : '未入库' }, |
| | | { |
| | | field: 'status', |
| | | title: '袋码状态', |
| | |
| | | formatter: 'formatDateTime', |
| | | }, |
| | | { |
| | | field: 'cancelTime', |
| | | title: '作废时间', |
| | | width: 170, |
| | | formatter: 'formatDateTime', |
| | | }, |
| | | { |
| | | field: 'cancelReason', |
| | | title: '作废原因', |
| | | minWidth: 160, |
| | | }, |
| | | { |
| | | field: 'createTime', |
| | | title: '创建时间', |
| | | width: 170, |
| | |
| | | }, |
| | | { |
| | | title: '操作', |
| | | width: 200, |
| | | width: 350, |
| | | fixed: 'right', |
| | | slots: { default: 'actions' }, |
| | | }, |