|
@@ -1,141 +1,136 @@
|
|
|
const formLayout = {
|
|
|
fieldId: '101', //对应一级表单层级
|
|
|
fieldName: '基本信息',
|
|
|
- formInfo: [ //每个层级下面 具体表单元素
|
|
|
+ formInfo: [ //每个层级下面 具体表单元素
|
|
|
{
|
|
|
- label: '申请人',//标题
|
|
|
+ label: '申请人', //标题
|
|
|
type: 'cell', //表单类型 text,upload,picker,time
|
|
|
- id: 'enterprisename', //表单id
|
|
|
- placeholder: '选择服务类型',//设置文本框默认提示
|
|
|
- inputValue:'',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ id: 'enterprisename', //表单id
|
|
|
+ placeholder: '选择服务类型', //设置文本框默认提示
|
|
|
+ inputValue: '',
|
|
|
+ data: [],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '现场联系人',//标题
|
|
|
+ label: '现场联系人', //标题
|
|
|
type: 'text', //表单类型 text,upload,picker,time
|
|
|
- id: 'scenecontact', //表单id
|
|
|
- placeholder: '输入现场联系人',//设置文本框默认提示
|
|
|
- inputValue:'',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ id: 'scenecontact', //表单id
|
|
|
+ placeholder: '输入现场联系人', //设置文本框默认提示
|
|
|
+ inputValue: '',
|
|
|
+ data: [],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '联系电话',//标题
|
|
|
+ label: '联系电话', //标题
|
|
|
type: 'text', //表单类型 text,upload,picker,time
|
|
|
- id: 'scenecontactphonenumber', //表单id
|
|
|
- placeholder: '输入联系电话',//设置文本框默认提示
|
|
|
- inputValue:'',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ id: 'scenecontactphonenumber', //表单id
|
|
|
+ placeholder: '输入联系电话', //设置文本框默认提示
|
|
|
+ inputValue: '',
|
|
|
+ data: [],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '地址',//标题
|
|
|
+ label: '地址', //标题
|
|
|
type: 'text', //表单类型 text,upload,picker,time
|
|
|
- id: 'address', //表单id
|
|
|
- placeholder: '输入地址',//设置文本框默认提示
|
|
|
- inputValue:'',
|
|
|
- data: [
|
|
|
- ],
|
|
|
- role: {
|
|
|
- type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
- },
|
|
|
- force: true,//是否必输入
|
|
|
- },
|
|
|
- {
|
|
|
- label: '是否为我司出货产品',//标题
|
|
|
- type: 'picker', //表单类型 text,upload,picker,time
|
|
|
- id: 'isouritem', //表单id
|
|
|
- placeholder: '选择',//设置文本框默认提示
|
|
|
- inputValue:'1',
|
|
|
- data: [
|
|
|
- { value: '1', label: '是' },
|
|
|
- { value: '0', label: '否' },
|
|
|
- ],
|
|
|
+ id: 'address', //表单id
|
|
|
+ placeholder: '输入地址', //设置文本框默认提示
|
|
|
+ inputValue: '',
|
|
|
+ data: [],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '是否为我司出货产品',//标题
|
|
|
+ label: '是否为我司出货产品', //标题
|
|
|
type: 'picker', //表单类型 text,upload,picker,time
|
|
|
- id: 'isouritem', //表单id
|
|
|
- placeholder: '选择',//设置文本框默认提示
|
|
|
- inputValue:'1',
|
|
|
- data: [
|
|
|
- { value: '1', label: '是' },
|
|
|
- { value: '0', label: '否' },
|
|
|
+ id: 'isouritem', //表单id
|
|
|
+ placeholder: '选择', //设置文本框默认提示
|
|
|
+ inputValue: '1',
|
|
|
+ data: [{
|
|
|
+ value: '1',
|
|
|
+ label: '是'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '0',
|
|
|
+ label: '否'
|
|
|
+ },
|
|
|
],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '是否在保质期内',//标题
|
|
|
+ label: '是否在保质期内', //标题
|
|
|
type: 'picker', //表单类型 text,upload,picker,time
|
|
|
- id: 'inqualityguaranteeperiod', //表单id
|
|
|
- placeholder: '选择',//设置文本框默认提示
|
|
|
- inputValue:'1',
|
|
|
- data: [
|
|
|
- { value: '1', label: '是' },
|
|
|
- { value: '0', label: '否' },
|
|
|
+ id: 'inqualityguaranteeperiod', //表单id
|
|
|
+ placeholder: '选择', //设置文本框默认提示
|
|
|
+ inputValue: "1",
|
|
|
+ data: [{
|
|
|
+ value: '1',
|
|
|
+ label: '是'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '0',
|
|
|
+ label: '否'
|
|
|
+ },
|
|
|
],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '1',//正则表达式
|
|
|
+ value: '1', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '确认客诉异常描述是否属实',//标题
|
|
|
+ label: '确认客诉异常描述是否属实', //标题
|
|
|
type: 'picker', //表单类型 text,upload,picker,time
|
|
|
- id: 'isfact', //表单id
|
|
|
- placeholder: '选择',//设置文本框默认提示
|
|
|
- inputValue:'1',
|
|
|
- data: [
|
|
|
- { value: '1', label: '是' },
|
|
|
- { value: '0', label: '否' },
|
|
|
+ id: 'isfact', //表单id
|
|
|
+ placeholder: '选择', //设置文本框默认提示
|
|
|
+ inputValue: '1',
|
|
|
+ data: [{
|
|
|
+ value: '1',
|
|
|
+ label: '是'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '0',
|
|
|
+ label: '否'
|
|
|
+ },
|
|
|
],
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
- value: '',//正则表达式
|
|
|
+ value: '', //正则表达式
|
|
|
},
|
|
|
- force: true,//是否必输入
|
|
|
+ force: true, //是否必输入
|
|
|
},
|
|
|
{
|
|
|
- label: '附件上传',//标题
|
|
|
+ label: '附件上传', //标题
|
|
|
type: 'upload', //表单类型 text,upload,picker,time
|
|
|
- id: 'attinfos', //表单id
|
|
|
- placeholder: '请上传附件',//设置文本框默认提示
|
|
|
+ id: 'attinfos', //表单id
|
|
|
+ placeholder: '请上传附件', //设置文本框默认提示
|
|
|
data: {
|
|
|
- ownertable:'sa_serviceorder'
|
|
|
+ ownertable: 'sa_serviceorder'
|
|
|
}, //填充表单的数据 例如下拉框
|
|
|
role: {
|
|
|
type: 'reg',
|
|
|
},
|
|
|
- force: false,//是否必输入
|
|
|
+ force: false, //是否必输入
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
module.exports = {
|