gaoluyang
2026-08-31 8f8dcdae7e40ba4e94a363aa8eb91c7665810bc3
src/views/wls/productreceipt/data.ts
@@ -1,4 +1,4 @@
import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MesWmMaterialStockApi } from '#/api/mes/wm/materialstock';
import type { MesWmProductReceiptApi } from '#/api/mes/wm/productreceipt';
@@ -98,7 +98,7 @@
        class: '!w-full',
        format: 'YYYY-MM-DD',
        placeholder: '请选择入库日期',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD',
      },
      rules: 'required',
    },
@@ -108,6 +108,7 @@
      component: markRaw(ProWorkOrderSelect),
      componentProps: {
        status: MesProWorkOrderStatusEnum.CONFIRMED,
        checkMethod: (row: any) => row.productionStatus !== 0,
      },
    },
    {
@@ -191,6 +192,12 @@
      },
    },
    {
      field: 'feedbackId',
      title: '来源',
      width: 100,
      slots: { default: 'source' },
    },
    {
      title: '操作',
      width: 240,
      fixed: 'right',
@@ -236,10 +243,29 @@
      width: 100,
    },
    {
      field: 'qualityStatus',
      title: '质量状态',
      width: 100,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.MES_WM_QUALITY_STATUS },
      },
    },
    {
      field: 'batchCode',
      title: '批次号',
      minWidth: 120,
    },
    ...(stockable
      ? [
          {
            field: 'isStock',
            title: '是否入库',
            width: 100,
            slots: { default: 'isStock' },
          } as const,
        ]
      : []),
    ...(editable || stockable
      ? [
          {