src/views/mes/wm/outsourcereceipt/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 { MesProWorkOrderApi } from '#/api/mes/pro/workorder';
import type { MesWmOutsourceReceiptApi } from '#/api/mes/wm/outsourcereceipt';
@@ -12,8 +12,8 @@
  MesAutoCodeRuleCode,
  MesProWorkOrderStatusEnum,
  MesProWorkOrderTypeEnum,
} from '..\..\..\..\packages\constants\src';
import { getDictOptions } from '..\..\..\..\packages\effects\hooks\src';
} from '../../../../packages/constants/src';
import { getDictOptions } from '../../../../packages/effects/hooks/src';
import { Button } from 'ant-design-vue';
@@ -95,10 +95,10 @@
    },
    {
      fieldName: 'workOrderId',
      label: '外协工单',
      label: '外协订单',
      component: markRaw(ProWorkOrderSelect),
      componentProps: {
        // 选择外协工单后,自动回填供应商
        // 选择外协订单后,自动回填供应商
        onChange: async (workOrder?: MesProWorkOrderApi.WorkOrder) => {
          await formApi?.setFieldValue('vendorId', workOrder?.vendorId);
        },
@@ -162,11 +162,11 @@
    },
    {
      fieldName: 'workOrderCode',
      label: '外协工单号',
      label: '外协订单号',
      component: 'Input',
      componentProps: {
        allowClear: true,
        placeholder: '请输入外协工单号',
        placeholder: '请输入外协订单号',
      },
    },
    {
@@ -218,7 +218,7 @@
    },
    {
      field: 'workOrderCode',
      title: '外协工单号',
      title: '外协订单号',
      minWidth: 140,
    },
    {