5 天以前 91c82965b2d987452ca276e3a03b48c8dcda2ae9
src/views/erp/purchase/request/data.ts
@@ -4,7 +4,7 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
import { getSupplierSimpleList } from '#/api/srm/supplier';
import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
@@ -48,7 +48,7 @@
        placeholder: '选择申请时间',
        showTime: true,
        format: 'YYYY-MM-DD HH:mm:ss',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
        disabled: formType === 'detail',
      },
      rules: 'required',
@@ -103,11 +103,13 @@
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'fileUrl',
      fieldName: 'blobIds',
      label: '附件',
      component: 'FileUpload',
      componentProps: {
        placeholder: '请上传附件',
        valueKey: 'id',
        maxNumber: 10,
        multiple: true,
        disabled: formType === 'detail',
      },
      formItemClass: 'col-span-2',
@@ -161,7 +163,7 @@
      title: '入库数量',
      minWidth: 100,
      fixed: 'right',
      formatter: 'formatAmount6',
      formatter: 'formatAmount3',
    },
    {
      field: 'productPrice',
@@ -277,6 +279,20 @@
        allowClear: true,
      },
    },
    {
      fieldName: 'inStatus',
      label: '入库状态',
      component: 'Select',
      componentProps: {
        options: [
          { label: '未入库', value: 0 },
          { label: '部分入库', value: 1 },
          { label: '全部入库', value: 2 },
        ],
        placeholder: '请选择入库状态',
        allowClear: true,
      },
    },
  ];
}
@@ -348,12 +364,14 @@
      field: 'status',
      title: '状态',
      minWidth: 120,
      fixed: 'right',
      slots: { default: 'status' },
    },
    {
      field: 'inStatus',
      title: '入库状态',
      minWidth: 100,
      fixed: 'right',
      slots: { default: 'inStatus' },
    },
    {