wuxw
2020-01-14 69e2baf5518079bfc16cfadc2fb29842fb3de85d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
  "templateName":"添加员工",
  "templateCode":"addStaffStep",
  "templateKey":"userId",
  "templateKeyName":"员工ID",
  "package": "staffPackage",
  "successUrl": "/flow/staff",
  "needAffirm": false,
  "flows":[
    {
      "index": 0,
      "code":"branchOrg",
      "flowKey": "branchOrgId",
      "cnCode":"选择分公司",
      "vcName":"viewOrgInfo",
      "businessName": "businessOrg",
      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
      "existsComponent": true
    },
    {
      "index": 1,
      "code":"departmentOrg",
      "flowKey": "departmentOrgId",
      "cnCode":"选择部门",
      "vcName":"viewOrgInfo",
      "businessName": "businessOrg",
      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
      "existsComponent": true
    },
    {
      "index": 2,
      "code":"staff",
      "flowKey": "userId",
      "cnCode":"填写员工信息",
      "vcName":"addStaff",
      "businessName": "businessStaff",
      "businessType": "BUSINESS_TYPE_SAVE_STAFF_INFO",
      "existsComponent": false
    }
  ],
  "components": {
      "addStaff": {
        "templateName":"添加员工",
        "templateCode":"addStaff",
        "package": "staffPackage",
        "columns":[
          {
            "code":"username",
            "cnCode":"员工名称",
            "desc":"必填,员工名称不能为空",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"maxin",
            "limitParam":"2,10",
            "limitErrInfo":"员工名称长度必须在2位至10位",
            "show": true
          },
          {
            "code":"sex",
            "cnCode":"员工性别",
            "desc":"必填,请选择员工性别",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"select",
            "selectValue":"1,0",
            "selectValueName":"男,女",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"员工性别不能为空",
            "show": true
          },
          {
            "code":"email",
            "cnCode":"员工邮箱",
            "desc":"必填,请填写员工邮箱",
            "required":true,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"input",
            "limit":"email",
            "limitParam":"",
            "limitErrInfo":"员工邮箱不是有效邮箱",
            "show": true
          },
          {
            "code":"tel",
            "cnCode":"手机",
            "desc":"必填,请填写联系方式",
            "required":false,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"input",
            "limit":"photo",
            "limitParam":"",
            "limitErrInfo":"联系方式不是有效手机",
            "show": true
          },
          {
            "code":"address",
            "cnCode":"家庭住址",
            "desc":"必填,写家庭住址",
            "required":true,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"input",
            "limit":"maxLength",
            "limitParam":"200",
            "limitErrInfo":"家庭住址不能超过200位",
            "show": false
          }
        ]
      }
  }
}