gaoluyang
6 天以前 c5db127ed8bd5e9960afe8e2df0b5cd361b2dfc1
src/views/erp/sale/order/data.ts
@@ -6,9 +6,11 @@
import { z } from '#/adapter/form';
import { getAccountSimpleList } from '#/api/erp/finance/account';
import { getItemPage } from '#/api/mdm/item';
import { getCustomerSimpleList as getCrmCustomerSimpleList } from '#/api/crm/customer';
import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
import CrmCustomerSelect from '#/components/crm-customer-select.vue';
import { markRaw } from 'vue';
/** 表单类型 */
export type FormType = 'create' | 'detail' | 'edit';
@@ -48,14 +50,10 @@
    {
      label: '客户',
      fieldName: 'customerId',
      component: 'ApiSelect',
      component: markRaw(CrmCustomerSelect),
      componentProps: {
        placeholder: '请选择客户',
        allowClear: true,
        showSearch: true,
        api: getCrmCustomerSimpleList,
        labelField: 'name',
        valueField: 'id',
      },
      rules: 'required',
    },
@@ -324,14 +322,10 @@
    {
      fieldName: 'supplierId',
      label: '客户',
      component: 'ApiSelect',
      component: markRaw(CrmCustomerSelect),
      componentProps: {
        placeholder: '请选择客户',
        allowClear: true,
        showSearch: true,
        api: getCrmCustomerSimpleList,
        labelField: 'name',
        valueField: 'id',
      },
    },
    {