3 小时以前 5367b3b4d92588c4e76728e6bd4ad6aae0cbb967
src/views/wls/arrivalnotice/data.ts
@@ -11,8 +11,8 @@
import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { getItemPage } from '#/api/mdm/item';
import { getRangePickerDefaultProps } from '#/utils';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdVendorSelect } from '#/views/mes/md/vendor/components';
import { ErpPurchaseOrderSelect } from '#/views/erp/purchase/order/components';
@@ -307,6 +307,12 @@
      },
    },
    {
      field: 'iqcCheckResult',
      title: '质检结果',
      width: 100,
      slots: { default: 'iqcCheckResult' },
    },
    {
      field: 'qualifiedQuantity',
      title: '合格数量',
      width: 100,
@@ -315,6 +321,7 @@
      field: 'iqcCode',
      title: '检验单号',
      minWidth: 140,
      slots: { default: 'iqcCode' },
    },
    {
      field: 'remark',
@@ -340,11 +347,21 @@
    {
      fieldName: 'itemId',
      label: '物料',
      component: markRaw(MdItemSelect),
      component: 'ApiSelect',
      componentProps: {
        placeholder: '请选择物料',
        allowClear: true,
        showSearch: true,
        api: getItemPage,
        resultField: 'list',
        labelField: 'name',
        valueField: 'id',
        optionRender: (option: any) => {
          const item = option.data;
          return `${item.code} - ${item.name}`;
        },
      },
      rules: 'selectRequired',
      rules: 'required',
    },
    {
      fieldName: 'arrivalQuantity',