gaoluyang
2 天以前 6f35f9dc767e99ad701f7f6e2f5d4c52b6cc1d0f
src/views/wls/barcode/data.ts
@@ -13,7 +13,7 @@
  MesProWorkOrderStatusEnum,
} from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { formatDateTime } from '@vben/utils';
import { formatDate } from '@vben/utils';
import { z } from '#/adapter/form';
import { generateBarcodeContent } from '#/api/mes/wm/barcode';
@@ -609,6 +609,7 @@
/** 配置列表的字段 */
export function useConfigGridColumns(
  onAutoGenerateChange: (
    newVal: number | boolean,
    row: MesWmBarcodeConfigApi.BarcodeConfig,
  ) => Promise<boolean>,
): VxeTableGridOptions<MesWmBarcodeConfigApi.BarcodeConfig>['columns'] {
@@ -673,7 +674,7 @@
      field: 'createTime',
      title: '创建时间',
      width: 180,
      formatter: 'formatDateTime',
      formatter: 'formatDate',
    },
    {
      title: '操作',
@@ -729,7 +730,7 @@
    {
      field: 'createTime',
      label: '创建时间',
      render: (value) => formatDateTime(value) || '-',
      render: (value) => formatDate(value) || '-',
    },
  ];
}