gaoluyang
99 分钟以前 787ccc59ba89bacc075562a161ecf02bc76ebadc
src/views/erp/purchase/order/data.ts
@@ -87,23 +87,13 @@
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'fileUrl',
      fieldName: 'blobIds',
      label: '附件',
      component: 'FileUpload',
      componentProps: {
        maxNumber: 1,
        maxSize: 10,
        accept: [
          'pdf',
          'doc',
          'docx',
          'xls',
          'xlsx',
          'txt',
          'jpg',
          'jpeg',
          'png',
        ],
        valueKey: 'id',
        maxNumber: 10,
        multiple: true,
        showDescription: formType !== 'detail',
        disabled: formType === 'detail',
      },
@@ -179,16 +169,6 @@
      title: '产品名称',
      minWidth: 200,
      slots: { default: 'productId' },
    },
    {
      field: 'stockCount',
      title: '库存',
      minWidth: 80,
    },
    {
      field: 'productBarCode',
      title: '条码',
      minWidth: 120,
    },
    {
      field: 'productUnitName',
@@ -320,7 +300,9 @@
      label: '状态',
      component: 'Select',
      componentProps: {
        options: getDictOptions(DICT_TYPE.ERP_AUDIT_STATUS, 'number'),
        options: getDictOptions(DICT_TYPE.ERP_AUDIT_STATUS, 'number').filter(
          (opt) => opt.label !== '草稿' && opt.label !== '审批不通过',
        ),
        placeholder: '请选择状态',
        allowClear: true,
      },
@@ -345,20 +327,6 @@
          { label: '全部入库', value: 2 },
        ],
        placeholder: '请选择入库状态',
        allowClear: true,
      },
    },
    {
      fieldName: 'returnStatus',
      label: '退货状态',
      component: 'Select',
      componentProps: {
        options: [
          { label: '未退货', value: 0 },
          { label: '部分退货', value: 1 },
          { label: '全部退货', value: 2 },
        ],
        placeholder: '请选择退货状态',
        allowClear: true,
      },
    },
@@ -441,12 +409,20 @@
      field: 'status',
      title: '状态',
      minWidth: 120,
      fixed: 'right',
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.ERP_AUDIT_STATUS },
      },
    },
    {
      field: 'inStatus',
      title: '入库状态',
      minWidth: 100,
      fixed: 'right',
      slots: { default: 'inStatus' },
    },
    {
      title: '操作',
      width: 340,
      fixed: 'right',