|
@@ -147,21 +147,30 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: "国家(country)",
|
|
|
field: "country",
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"country"
|
|
|
+ },
|
|
|
+ labelWidth: 150,
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "优先级(priority)",
|
|
|
field: "priority",
|
|
|
component: 'JSelectMultiple',
|
|
|
+ labelWidth: 150,
|
|
|
componentProps:{
|
|
|
- },
|
|
|
+ dictCode:"priority"
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "中间人(intermediator)",
|
|
|
field: "intermediator",
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"intermediator"
|
|
|
+ },
|
|
|
labelWidth: 150,
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
@@ -171,6 +180,7 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
component: 'JSelectMultiple',
|
|
|
labelWidth: 180,
|
|
|
componentProps:{
|
|
|
+ dictCode:"payment_terms"
|
|
|
},
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
@@ -180,129 +190,183 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
//表单数据
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
{
|
|
|
- label: '状态(1-启用,0-停用)',
|
|
|
- field: 'status',
|
|
|
- component: 'InputNumber',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '编码',
|
|
|
+ label: '编码(code)',
|
|
|
field: 'code',
|
|
|
component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
},
|
|
|
{
|
|
|
- label: '名称',
|
|
|
+ label: '名称(name)',
|
|
|
field: 'name',
|
|
|
component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
},
|
|
|
{
|
|
|
- label: '简称',
|
|
|
+ label: '简称(abbreviation)',
|
|
|
field: 'abbreviation',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '曾用名',
|
|
|
+ label: '曾用名(nameUsedBefore)',
|
|
|
field: 'nameUsedBefore',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '税号',
|
|
|
+ label: '税号(dutyParagraph)',
|
|
|
field: 'dutyParagraph',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '法人',
|
|
|
+ label: '法人(legalPerson)',
|
|
|
field: 'legalPerson',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '联系人',
|
|
|
+ label: '联系人(contacts)',
|
|
|
field: 'contacts',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '联系电话',
|
|
|
+ label: '联系电话(phone)',
|
|
|
field: 'phone',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '邮箱',
|
|
|
+ label: '邮箱(email)',
|
|
|
field: 'email',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '注册地址',
|
|
|
+ label: '注册地址(registerAddress)',
|
|
|
field: 'registerAddress',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '办公地址',
|
|
|
+ label: '办公地址(officeAddress)',
|
|
|
field: 'officeAddress',
|
|
|
component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
},
|
|
|
{
|
|
|
- label: '发票地址',
|
|
|
+ label: '发票地址(invoiceAddress)',
|
|
|
field: 'invoiceAddress',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
- label: '币种',
|
|
|
+ label: '币种(currency)',
|
|
|
field: 'currency',
|
|
|
- component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"currency"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- label: '国家',
|
|
|
+ label: '国家(country)',
|
|
|
field: 'country',
|
|
|
- component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"country"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- label: '付款条件',
|
|
|
+ label: '付款条件(paymentTerms)',
|
|
|
field: 'paymentTerms',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'JDictSelectTag',
|
|
|
componentProps:{
|
|
|
- dictCode:""
|
|
|
+ dictCode:"payment_terms"
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '信用额度',
|
|
|
+ label: '信用额度(creditLimit)',
|
|
|
field: 'creditLimit',
|
|
|
+ labelWidth: 200,
|
|
|
+ colProps: {span: 12},
|
|
|
component: 'InputNumber',
|
|
|
},
|
|
|
{
|
|
|
- label: '折扣',
|
|
|
+ label: '折扣(discount)',
|
|
|
field: 'discount',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'InputNumber',
|
|
|
},
|
|
|
{
|
|
|
- label: '佣金',
|
|
|
+ label: '佣金(commission)',
|
|
|
field: 'commission',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'InputNumber',
|
|
|
},
|
|
|
{
|
|
|
- label: '中间人',
|
|
|
+ label: '中间人(intermediator)',
|
|
|
field: 'intermediator',
|
|
|
- component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"intermediator"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- label: '中间人佣金',
|
|
|
+ label: '中间人佣金(intermediator commission)',
|
|
|
field: 'intermediatorCommission',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 250,
|
|
|
component: 'InputNumber',
|
|
|
},
|
|
|
{
|
|
|
- label: '优先级',
|
|
|
+ label: '优先级(priority)',
|
|
|
field: 'priority',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'JDictSelectTag',
|
|
|
componentProps:{
|
|
|
- dictCode:""
|
|
|
+ dictCode:"priority"
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '备注',
|
|
|
+ label: '备注(notes)',
|
|
|
field: 'notes',
|
|
|
- component: 'Input',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"valid_status"
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- label: '文件',
|
|
|
- field: 'files',
|
|
|
+ label: '状态(status)',
|
|
|
+ field: 'status',
|
|
|
+ colProps: {span: 12},
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
@@ -317,61 +381,46 @@ export const formSchema: FormSchema[] = [
|
|
|
//子表表格配置
|
|
|
export const cuspCustomerProfileManColumns: JVxeColumn[] = [
|
|
|
{
|
|
|
- title: '状态(1-启用,0-停用)',
|
|
|
- key: 'status',
|
|
|
- type: JVxeTypes.inputNumber,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '主表主键(客户档案)',
|
|
|
- key: 'headId',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '编码',
|
|
|
- key: 'code',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '姓名',
|
|
|
+ title: '姓名(name)',
|
|
|
key: 'name',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '电话',
|
|
|
+ title: '电话(mobile)',
|
|
|
key: 'mobile',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '邮箱',
|
|
|
+ title: '邮箱(email)',
|
|
|
key: 'email',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '职位',
|
|
|
+ title: '职位(position)',
|
|
|
key: 'position',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '操作(action)',
|
|
|
+ key: 'action',
|
|
|
+ width:"200px",
|
|
|
+ // 固定在右侧
|
|
|
+ fixed: 'right',
|
|
|
+ // 对齐方式为居中
|
|
|
+ align: 'center',
|
|
|
+ // 组件类型定义为【插槽】
|
|
|
+ type: JVxeTypes.slot,
|
|
|
+ // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
|
|
|
+ slotName: 'action',
|
|
|
+ },
|
|
|
]
|
|
|
|
|
|
|