diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts index fd59cecba..e159e18ab 100644 --- a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts +++ b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts @@ -7,109 +7,157 @@ export const BalanceChangeHistoryRules = reactive({ export const BalanceChangeHistory = useCrudSchemas(reactive([ { - label: '变更前_物料代码', + label: '前-物料代码', field: 'beforeItemCode', sort: 'custom', isSearch: true, + table: { + width: 180 + }, }, { - label: '变更前_批次', + label: '前-批次', field: 'beforeBatch', sort: 'custom', isSearch: true, + table: { + width: 180 + }, }, { - label: '变更前_包装号', + label: '前-包装号', field: 'beforePackingNumber', sort: 'custom', isSearch: true, + table: { + width: 220 + }, }, { - label: '变更前_库存状态', + label: '前-库存状态', field: 'beforeInventoryStatus', sort: 'custom', isSearch: true, + table: { + width: 180 + }, form: { component: 'Radio' }, }, { - label: '变更前_库位代码', + label: '前-库位代码', field: 'beforeLocationCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更前_数量', + label: '前-数量', field: 'beforeQty', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更前_事务号', + label: '前-事务号', field: 'beforeTransNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更前_id', + label: '前-ID', field: 'beforeId', sort: 'custom', isSearch: true, + table: { + width: 180 + }, form: { component: 'InputNumber', value: 0 }, }, { - label: '变更后_物料代码', + label: '后-物料代码', field: 'afterItemCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_批次', + label: '后-批次', field: 'afterBatch', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_包装号', + label: '后-包装号', field: 'afterPackingNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更后_库存状态', + label: '后-库存状态', field: 'afterInventoryStatus', sort: 'custom', + table: { + width: 180 + }, isSearch: true, form: { component: 'Radio' }, }, { - label: '变更后_库位代码', + label: '后-库位代码', field: 'afterLocationCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_数量', + label: '后-数量', field: 'afterQty', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_事务号', + label: '后-事务号', field: 'afterTransNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更前_id', + label: '后-ID', field: 'afterId', sort: 'custom', + table: { + width: 180 + }, isSearch: true, form: { component: 'InputNumber', @@ -119,12 +167,18 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ { label: '备注', field: 'remark', + table: { + width: 180 + }, sort: 'custom', }, { label: '创建时间', field: 'createTime', sort: 'custom', + table: { + width: 180 + }, formatter: dateFormatter, isSearch: true, search: { @@ -137,13 +191,4 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ }, isForm: false, }, - // { - // label: '操作', - // field: 'action', - // isForm: false, - // table: { - // width: 150, - // fixed: 'right' - // } - // } ]))