|
@@ -179,7 +179,8 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
field: "country",
|
|
|
component: 'JDictSelectTag',
|
|
|
componentProps:{
|
|
|
- dictCode:"country"
|
|
|
+ dictCode:"country",
|
|
|
+ showSearch: true
|
|
|
},
|
|
|
labelWidth: 150,
|
|
|
|
|
@@ -198,10 +199,25 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: "中间人(intermediator)",
|
|
|
field: "intermediator",
|
|
|
- component: 'JDictSelectTag',
|
|
|
- componentProps:{
|
|
|
- dictCode:"intermediator"
|
|
|
- },
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: {
|
|
|
+
|
|
|
+
|
|
|
+ api: ()=> defHttp.get({ url: '/cuspCode/cuspIntermediator/list' }),
|
|
|
+
|
|
|
+ numberToString: false,
|
|
|
+
|
|
|
+ labelField: 'name',
|
|
|
+
|
|
|
+ valueField: 'id',
|
|
|
+
|
|
|
+ params:{pageSize:-1,status:1},
|
|
|
+
|
|
|
+ resultField:'records',
|
|
|
+ filterOption:"true",
|
|
|
+ optionFilterProp:'label',
|
|
|
+ showSearch:"true"
|
|
|
+ },
|
|
|
labelWidth: 150,
|
|
|
|
|
|
},
|
|
@@ -366,7 +382,8 @@ export const formSchema: FormSchema[] = [
|
|
|
labelWidth: 250,
|
|
|
component: 'JDictSelectTag',
|
|
|
componentProps:{
|
|
|
- dictCode:"country"
|
|
|
+ dictCode:"country",
|
|
|
+ showSearch: true
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -423,10 +440,25 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'intermediator',
|
|
|
colProps: {span: 12},
|
|
|
labelWidth: 200,
|
|
|
- component: 'JSelectInput',
|
|
|
- componentProps:{
|
|
|
- options:intermediatorOption
|
|
|
- },
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: {
|
|
|
+
|
|
|
+
|
|
|
+ api: ()=> defHttp.get({ url: '/cuspCode/cuspIntermediator/list' }),
|
|
|
+
|
|
|
+ numberToString: false,
|
|
|
+
|
|
|
+ labelField: 'name',
|
|
|
+
|
|
|
+ valueField: 'id',
|
|
|
+
|
|
|
+ params:{pageSize:-1,status:1},
|
|
|
+
|
|
|
+ resultField:'records',
|
|
|
+ filterOption:"true",
|
|
|
+ optionFilterProp:'label',
|
|
|
+ showSearch:"true"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '中间人佣金(intermediator commission)',
|
|
@@ -540,50 +572,6 @@ export const cuspCustomerProfileManColumns: JVxeColumn[] = [
|
|
|
slotName: 'action',
|
|
|
},
|
|
|
]
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-export const superQuerySchema = {
|
|
|
- status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
- code: {title: '编码',order: 2,view: 'text', type: 'string',},
|
|
|
- name: {title: '名称',order: 3,view: 'text', type: 'string',},
|
|
|
- abbreviation: {title: '简称',order: 4,view: 'text', type: 'string',},
|
|
|
- nameUsedBefore: {title: '曾用名',order: 5,view: 'text', type: 'string',},
|
|
|
- dutyParagraph: {title: '税号',order: 6,view: 'text', type: 'string',},
|
|
|
- legalPerson: {title: '法人',order: 7,view: 'text', type: 'string',},
|
|
|
- contacts: {title: '联系人',order: 8,view: 'text', type: 'string',},
|
|
|
- phone: {title: '联系电话',order: 9,view: 'text', type: 'string',},
|
|
|
- email: {title: '邮箱',order: 10,view: 'text', type: 'string',},
|
|
|
- registerAddress: {title: '注册地址',order: 11,view: 'text', type: 'string',},
|
|
|
- officeAddress: {title: '办公地址',order: 12,view: 'text', type: 'string',},
|
|
|
- invoiceAddress: {title: '发票地址',order: 13,view: 'text', type: 'string',},
|
|
|
- currency: {title: '币种',order: 14,view: 'text', type: 'string',},
|
|
|
- country: {title: '国家',order: 15,view: 'text', type: 'string',},
|
|
|
- paymentTerms: {title: '付款条件',order: 16,view: 'list', type: 'string',dictCode: '',},
|
|
|
- creditLimit: {title: '信用额度',order: 17,view: 'number', type: 'number',},
|
|
|
- discount: {title: '折扣',order: 18,view: 'number', type: 'number',},
|
|
|
- commission: {title: '佣金',order: 19,view: 'number', type: 'number',},
|
|
|
- intermediator: {title: '中间人',order: 20,view: 'text', type: 'string',},
|
|
|
- intermediatorCommission: {title: '中间人佣金',order: 21,view: 'number', type: 'number',},
|
|
|
- priority: {title: '优先级',order: 22,view: 'list', type: 'string',dictCode: '',},
|
|
|
- notes: {title: '备注',order: 23,view: 'text', type: 'string',},
|
|
|
- files: {title: '文件',order: 24,view: 'text', type: 'string',},
|
|
|
-
|
|
|
- cuspCustomerProfileMan: {
|
|
|
- title: '客户档案-联系人',
|
|
|
- view: 'table',
|
|
|
- fields: {
|
|
|
- status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
- headId: {title: '主表主键(客户档案)',order: 2,view: 'text', type: 'string',},
|
|
|
- code: {title: '编码',order: 3,view: 'text', type: 'string',},
|
|
|
- name: {title: '姓名',order: 4,view: 'text', type: 'string',},
|
|
|
- mobile: {title: '电话',order: 5,view: 'text', type: 'string',},
|
|
|
- email: {title: '邮箱',order: 6,view: 'text', type: 'string',},
|
|
|
- position: {title: '职位',order: 7,view: 'text', type: 'string',},
|
|
|
- }
|
|
|
- },
|
|
|
-};
|
|
|
-
|
|
|
|
|
|
* 流程表单调用这个方法获取formSchema
|
|
|
* @param param
|
|
@@ -592,17 +580,3 @@ export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
|
|
|
return formSchema;
|
|
|
}
|
|
|
-export function getIntermediatorOptions(){
|
|
|
- let params = {pageSize:'-1',status:1}
|
|
|
- defHttp.get({url:'/cuspCode/cuspIntermediator/list',params}, { isTransformResponse: false }).then(res=>{
|
|
|
- if(res){
|
|
|
- intermediatorOption.value.splice(0,intermediatorOption.value.length);
|
|
|
- res.result.records.forEach(item=>{
|
|
|
- intermediatorOption.value.push({
|
|
|
- label: item.name,
|
|
|
- value: item.id
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
-}
|