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,14 +103,13 @@
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'fileUrl',
      fieldName: 'blobIds',
      label: '附件',
      component: 'FileUpload',
      componentProps: {
        placeholder: '请上传附件',
        maxNumber: 5,
        maxSize: 20,
        accept: ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'jpg', 'png'],
        valueKey: 'id',
        maxNumber: 10,
        multiple: true,
        disabled: formType === 'detail',
      },
      formItemClass: 'col-span-2',
@@ -148,11 +147,6 @@
      slots: { default: 'productId' },
    },
    {
      field: 'productBarCode',
      title: '条码',
      minWidth: 120,
    },
    {
      field: 'productUnitName',
      title: '单位',
      minWidth: 80,
@@ -163,6 +157,13 @@
      minWidth: 120,
      fixed: 'right',
      slots: { default: 'count' },
    },
    {
      field: 'inCount',
      title: '入库数量',
      minWidth: 100,
      fixed: 'right',
      formatter: 'formatAmount3',
    },
    {
      field: 'productPrice',
@@ -278,6 +279,20 @@
        allowClear: true,
      },
    },
    {
      fieldName: 'inStatus',
      label: '入库状态',
      component: 'Select',
      componentProps: {
        options: [
          { label: '未入库', value: 0 },
          { label: '部分入库', value: 1 },
          { label: '全部入库', value: 2 },
        ],
        placeholder: '请选择入库状态',
        allowClear: true,
      },
    },
  ];
}
@@ -335,12 +350,6 @@
      minWidth: 120,
    },
    {
      field: 'qcCheckFlag',
      title: '是否质检',
      minWidth: 80,
      slots: { default: 'qcCheckFlag' },
    },
    {
      field: 'productNames',
      title: '申请产品',
      minWidth: 150,
@@ -355,9 +364,17 @@
      field: 'status',
      title: '状态',
      minWidth: 120,
      fixed: 'right',
      slots: { default: 'status' },
    },
    {
      field: 'inStatus',
      title: '入库状态',
      minWidth: 100,
      fixed: 'right',
      slots: { default: 'inStatus' },
    },
    {
      field: 'requestReason',
      title: '申请理由',
      minWidth: 150,