import { FormSchema } from '/@/components/Form/index'; import { incrementUseTypeList } from '/@/api/account'; // 基础设置 form export const remarkschemas: FormSchema[] = [ { field: 'remark', component: 'InputTextArea', label: '备注', componentProps: { placeholder: '请输入钉钉审批单号', rows: 4, }, colProps: { span: 20 }, }, ]; export const Addschemas: FormSchema[] = [ { field: 'customerName', component: 'Input', label: '客户名称', required: true, colProps: { span: 20 }, }, { field: 'customerType', component: 'Select', label: '客户类别', required: true, colProps: { span: 20 }, componentProps: { options: [ { label: '直销', value: 0, key: '0', }, { label: '经销', value: 1, key: '1', }, ], }, }, { field: 'endCustomer', component: 'Input', label: '终端客户', required: true, colProps: { span: 20 }, }, { field: 'useType', component: 'ApiSelect', required: true, label: '使用类型', componentProps: { // filterOption: onFilterOption, // showSearch: true, api: incrementUseTypeList, labelField: 'name', valueField: 'id', immediate: true, }, colProps: { span: 18, }, }, { field: 'projectNum', component: 'Input', label: '项目号', required: true, colProps: { span: 20 }, }, ];