gaoluyang
7 天以前 20eae58b25403e8cc58f9e72e411f40798f0bd2c
src/views/erp/purchase/request/data.ts
@@ -3,7 +3,6 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { erpPriceInputFormatter } from '@vben/utils';
import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
import { getSimpleUserList } from '#/api/system/user';
@@ -55,7 +54,7 @@
      rules: 'required',
    },
    {
      label: '供应商(可选)',
      label: '供应商',
      fieldName: 'supplierId',
      component: 'ApiSelect',
      componentProps: {
@@ -67,6 +66,7 @@
        valueField: 'id',
        disabled: formType === 'detail',
      },
      rules: 'required',
    },
    {
      fieldName: 'discountPercent',
@@ -76,6 +76,17 @@
        placeholder: '请输入优惠率',
        min: 0,
        max: 100,
        precision: 2,
        disabled: formType === 'detail',
      },
    },
    {
      fieldName: 'depositPrice',
      label: '定金',
      component: 'InputNumber',
      componentProps: {
        placeholder: '请输入定金',
        min: 0,
        precision: 2,
        disabled: formType === 'detail',
      },
@@ -186,6 +197,13 @@
      title: '备注',
      minWidth: 150,
      slots: { default: 'remark' },
    },
    {
      field: 'qcCheckFlag',
      title: '是否质检',
      minWidth: 80,
      fixed: 'right',
      slots: { default: 'qcCheckFlag' },
    },
    {
      title: '操作',
@@ -311,6 +329,18 @@
      minWidth: 120,
    },
    {
      field: 'depositPrice',
      title: '定金',
      formatter: 'formatAmount2',
      minWidth: 120,
    },
    {
      field: 'qcCheckFlag',
      title: '是否质检',
      minWidth: 80,
      slots: { default: 'qcCheckFlag' },
    },
    {
      field: 'productNames',
      title: '申请产品',
      minWidth: 150,