|
@@ -21,15 +21,6 @@ Input.Behavior = createBehavior(
|
|
|
{
|
|
|
name: 'Input',
|
|
|
extends: ['Field'],
|
|
|
- selector: node => node.props['name'] === 'bScaleUnit',
|
|
|
- designerProps: {
|
|
|
- propsSchema: createFieldSchema(AllSchemas.Input)
|
|
|
- },
|
|
|
- designerLocales: { 'zh-CN': { ...AllLocales.Input['zh-CN'], title: '建设规模(单位)' } }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- extends: ['Field'],
|
|
|
selector: node => node.props['name'] === 'gzAddress',
|
|
|
designerProps: {
|
|
|
propsSchema: createFieldSchema(AllSchemas.Input)
|
|
@@ -93,6 +84,15 @@ Input.Behavior = createBehavior(
|
|
|
{
|
|
|
name: 'Input',
|
|
|
extends: ['Field'],
|
|
|
+ selector: node => node.props['name'] === 'projectContactMobile',
|
|
|
+ designerProps: {
|
|
|
+ propsSchema: createFieldSchema(AllSchemas.Input)
|
|
|
+ },
|
|
|
+ designerLocales: { 'zh-CN': { ...AllLocales.Input['zh-CN'], title: '项目联系人手机' } }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ extends: ['Field'],
|
|
|
selector: node => node.props['name'] === 'pMail',
|
|
|
designerProps: {
|
|
|
propsSchema: createFieldSchema(AllSchemas.Input)
|
|
@@ -127,14 +127,14 @@ Input.Resource = createResource(
|
|
|
componentName: 'Field',
|
|
|
props: {
|
|
|
type: 'string',
|
|
|
- title: '工程名称(业务名称)',
|
|
|
+ title: '工程名称(业务名称)',
|
|
|
name: 'gcName',
|
|
|
required: true,
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -149,10 +149,10 @@ Input.Resource = createResource(
|
|
|
title: '',
|
|
|
name: 'bScaleUnit',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
- placeholder: '请输入单位(㎡)'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ placeholder: '请选择单位'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -167,10 +167,10 @@ Input.Resource = createResource(
|
|
|
title: '工程地址',
|
|
|
name: 'gzAddress',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -185,10 +185,10 @@ Input.Resource = createResource(
|
|
|
title: '建设单位',
|
|
|
name: 'institutionID',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -203,10 +203,11 @@ Input.Resource = createResource(
|
|
|
title: '行业主管部门',
|
|
|
name: 'ministry',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ required: true,
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -223,10 +224,10 @@ Input.Resource = createResource(
|
|
|
required: true,
|
|
|
'x-validator': 'phone',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -243,10 +244,10 @@ Input.Resource = createResource(
|
|
|
required: true,
|
|
|
'x-validator': 'email',
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -260,7 +261,6 @@ Input.Resource = createResource(
|
|
|
type: 'string',
|
|
|
title: '联系座机',
|
|
|
name: 'reviewerLandline',
|
|
|
- required: true,
|
|
|
'x-validator': [
|
|
|
{
|
|
|
triggerType: 'onInput',
|
|
@@ -270,10 +270,30 @@ Input.Resource = createResource(
|
|
|
}
|
|
|
],
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'InputSource',
|
|
|
+ elements: [
|
|
|
+ {
|
|
|
+ componentName: 'Field',
|
|
|
+ props: {
|
|
|
+ type: 'string',
|
|
|
+ title: '项目联系人手机',
|
|
|
+ name: 'projectContactMobile',
|
|
|
+ required: true,
|
|
|
+ 'x-validator': 'phone',
|
|
|
+ 'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
+ 'x-component-props': {
|
|
|
+ placeholder: '请输入'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -288,11 +308,12 @@ Input.Resource = createResource(
|
|
|
title: '项目联系人邮箱',
|
|
|
name: 'pMail',
|
|
|
'x-validator': 'email',
|
|
|
+ required: true,
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -306,7 +327,6 @@ Input.Resource = createResource(
|
|
|
type: 'string',
|
|
|
title: '联系座机',
|
|
|
name: 'projectContactLandline',
|
|
|
- required: true,
|
|
|
'x-validator': [
|
|
|
{
|
|
|
triggerType: 'onInput',
|
|
@@ -316,10 +336,10 @@ Input.Resource = createResource(
|
|
|
}
|
|
|
],
|
|
|
'x-decorator': 'FormItem',
|
|
|
+ 'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component': 'Input'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -336,10 +356,8 @@ Input.Resource = createResource(
|
|
|
'x-decorator': 'FormItem',
|
|
|
'x-component': 'Input.TextArea',
|
|
|
'x-component-props': {
|
|
|
+ maxLength: 200,
|
|
|
placeholder: '请输入'
|
|
|
- },
|
|
|
- 'x-component-props': {
|
|
|
- maxLength: 200
|
|
|
}
|
|
|
}
|
|
|
}
|