liu
3 天以前 ee7ac8df8bce38add1f75baf876b49de94b9e00a
src/views/mes/pro/pallet/data.ts
@@ -10,6 +10,7 @@
/** 列表的搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
  return [
    { fieldName: 'businessCode', label: '业务码', component: 'Input', componentProps: { allowClear: true, placeholder: '请输入出入库业务码' } },
    {
      fieldName: 'code',
      label: '托盘码',
@@ -53,12 +54,17 @@
/** 列表的字段 */
export function useGridColumns(): VxeTableGridOptions<MesProPalletApi.Pallet>['columns'] {
  return [
    { type: 'checkbox', width: 50 },
    { field: 'businessCode', title: '业务码(出入库)', minWidth: 210 },
    {
      field: 'code',
      title: '托盘码',
      fixed: 'left',
      minWidth: 210,
      slots: { default: 'code' },
    },
    { field: 'itemName', title: '品种名称', minWidth: 150 },
    { field: 'itemCode', title: '品种编码', minWidth: 150 },
    {
      field: 'palletNo',
      title: '托盘序号',
@@ -68,17 +74,14 @@
      field: 'batchCode',
      title: '批次号',
      minWidth: 190,
    },
    {
      field: 'capacity',
      title: '可装袋数(袋/托盘)',
      width: 150,
      slots: { default: 'batchCode' },
    },
    {
      field: 'bagCount',
      title: '已绑袋码数量',
      width: 120,
    },
    { field: 'inboundTime', title: '入库状态', width: 100, formatter: ({ cellValue }) => cellValue ? '已入库' : '未入库' },
    {
      field: 'status',
      title: '托盘状态',
@@ -101,7 +104,7 @@
    },
    {
      title: '操作',
      width: 200,
      width: 350,
      fixed: 'right',
      slots: { default: 'actions' },
    },