data.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { FormSchema } from '/@/components/Form/index';
  2. import { incrementUseTypeList } from '/@/api/account';
  3. // 基础设置 form
  4. export const remarkschemas: FormSchema[] = [
  5. {
  6. field: 'remark',
  7. component: 'InputTextArea',
  8. label: '备注',
  9. componentProps: {
  10. placeholder: '请输入钉钉审批单号',
  11. rows: 4,
  12. },
  13. colProps: { span: 20 },
  14. },
  15. ];
  16. export const Addschemas: FormSchema[] = [
  17. {
  18. field: 'customerName',
  19. component: 'Input',
  20. label: '客户名称',
  21. required: true,
  22. colProps: { span: 20 },
  23. },
  24. {
  25. field: 'customerType',
  26. component: 'Select',
  27. label: '客户类别',
  28. required: true,
  29. colProps: { span: 20 },
  30. componentProps: {
  31. options: [
  32. {
  33. label: '直销',
  34. value: 0,
  35. key: '0',
  36. },
  37. {
  38. label: '经销',
  39. value: 1,
  40. key: '1',
  41. },
  42. ],
  43. },
  44. },
  45. {
  46. field: 'endCustomer',
  47. component: 'Input',
  48. label: '终端客户',
  49. required: true,
  50. colProps: { span: 20 },
  51. },
  52. {
  53. field: 'useType',
  54. component: 'ApiSelect',
  55. required: true,
  56. label: '使用类型',
  57. componentProps: {
  58. // filterOption: onFilterOption,
  59. // showSearch: true,
  60. api: incrementUseTypeList,
  61. labelField: 'name',
  62. valueField: 'id',
  63. immediate: true,
  64. },
  65. colProps: {
  66. span: 18,
  67. },
  68. },
  69. {
  70. field: 'projectNum',
  71. component: 'Input',
  72. label: '项目号',
  73. required: true,
  74. colProps: { span: 20 },
  75. },
  76. ];