|
@@ -59,24 +59,10 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: '客户(customer)',
|
|
|
field: 'customerId',
|
|
|
- component: 'ApiSelect',
|
|
|
+ component: 'JSelect',
|
|
|
componentProps: {
|
|
|
- // mode: 'multiple',//multiple: 多选;不填写为单选
|
|
|
- //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
|
|
|
- api: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list',params:{pageSize: -1}}),
|
|
|
- //数值转成String
|
|
|
- numberToString: false,
|
|
|
- //标题字段
|
|
|
- labelField: 'name',
|
|
|
- //值字段
|
|
|
- valueField: 'id',
|
|
|
- //请求参数
|
|
|
- params: { pageSize: -1 },
|
|
|
- //返回结果字段
|
|
|
- resultField: 'records',
|
|
|
- filterOption: 'true',
|
|
|
- optionFilterProp: 'label',
|
|
|
- showSearch: 'true',
|
|
|
+ getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
|
|
|
+ showField:"currency+name"
|
|
|
},
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
@@ -104,28 +90,14 @@ export const formSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: '客户(customer)',
|
|
|
field: 'customerId',
|
|
|
- component: 'ApiSelect',
|
|
|
+ component: 'JSelect',
|
|
|
// componentProps:{
|
|
|
// dictCode: 'customer',
|
|
|
// },
|
|
|
required: true,
|
|
|
componentProps: {
|
|
|
- // mode: 'multiple',//multiple: 多选;不填写为单选
|
|
|
- //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
|
|
|
- api: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list',params:{pageSize: -1}}),
|
|
|
- //数值转成String
|
|
|
- numberToString: false,
|
|
|
- //标题字段
|
|
|
- labelField: 'name',
|
|
|
- //值字段
|
|
|
- valueField: 'id',
|
|
|
- //请求参数
|
|
|
- params: { pageSize: -1 },
|
|
|
- //返回结果字段
|
|
|
- resultField: 'records',
|
|
|
- filterOption: 'true',
|
|
|
- optionFilterProp: 'label',
|
|
|
- showSearch: 'true',
|
|
|
+ getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
|
|
|
+ showField:"currency+name",
|
|
|
getPopupContainer: (node) => document.body,
|
|
|
},
|
|
|
},
|