wuxw
2019-10-15 949b57a5b86e4c9076ea409f0a51de899fdb6290
java110-code-generator/src/main/resources/relationship/template_1.json
@@ -1,140 +1,113 @@
{
  "templateName":"添加房屋",
  "templateCode":"addRoomBinding",
  "templateKey":"roomId",
  "templateKeyName":"房屋ID",
  "package": "roomPackage",
  "successUrl": "/",
  "templateName":"添加员工",
  "templateCode":"addStaffStep",
  "templateKey":"userId",
  "templateKeyName":"员工ID",
  "package": "staffPackage",
  "successUrl": "/flow/staff",
  "needAffirm": false,
  "flows":[
    {
      "index": 0,
      "code":"floor",
      "flowKey": "floorId",
      "cnCode":"选择楼",
      "vcName":"viewFloorInfo",
      "businessName": "businessFloor",
      "businessType": "BUSINESS_TYPE_SAVE_FLOOR_INFO",
      "code":"branchOrg",
      "flowKey": "branchOrgId",
      "cnCode":"选择分公司",
      "vcName":"viewOrgInfo",
      "businessName": "businessOrg",
      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
      "existsComponent": true
    },
    {
      "index": 1,
      "code":"unit",
      "flowKey": "unitId",
      "cnCode":"选择单元",
      "vcName":"viewUnitInfo",
      "businessName": "businessUnit",
      "businessType": "BUSINESS_TYPE_SAVE_UNIT_INFO",
      "code":"departmentOrg",
      "flowKey": "departmentOrgId",
      "cnCode":"选择部门",
      "vcName":"viewOrgInfo",
      "businessName": "businessOrg",
      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
      "existsComponent": true
    },
    {
      "index": 2,
      "code":"room",
      "flowKey": "roomId",
      "cnCode":"添加房屋",
      "vcName":"addRoomView",
      "businessName": "businessRoom",
      "businessType": "BUSINESS_TYPE_SAVE_ROOM_INFO",
      "code":"staff",
      "flowKey": "userId",
      "cnCode":"填写员工信息",
      "vcName":"addStaff",
      "businessName": "businessStaff",
      "businessType": "BUSINESS_TYPE_SAVE_STAFF_INFO",
      "existsComponent": false
    }
  ],
  "components": {
      "addRoomView": {
        "templateName":"添加房屋",
        "templateCode":"addRoom",
        "package": "roomPackage",
      "addStaff": {
        "templateName":"添加员工",
        "templateCode":"addStaff",
        "package": "staffPackage",
        "columns":[
          {
            "code":"roomNum",
            "cnCode":"房屋编号",
            "desc":"必填,请填写房屋编号",
            "code":"username",
            "cnCode":"员工名称",
            "desc":"必填,员工名称不能为空",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"maxLength",
            "limitParam":"12",
            "limitErrInfo":"房屋编号长度不能超过12位"
            "limit":"maxin",
            "limitParam":"2,10",
            "limitErrInfo":"员工名称长度必须在2位至10位",
            "show": true
          },
          {
            "code":"layer",
            "cnCode":"房屋楼层",
            "desc":"必填,请填写房屋楼层",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"房屋楼层高度必须为数字"
          },
          {
            "code":"section",
            "cnCode":"房间数",
            "desc":"必填,请填写房屋楼层",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"房间数必须为数字"
          },
          {
            "code":"apartment",
            "cnCode":"房屋户型",
            "desc":"必填,请选择房屋户型",
            "code":"sex",
            "cnCode":"员工性别",
            "desc":"必填,请选择员工性别",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"select",
            "selectValue":"一室两厅,两室两厅",
            "selectValueName":"1010,2020",
            "limit":"maxLength",
            "limitParam":"50",
            "limitErrInfo":"房屋户型不能大于50"
            "selectValue":"1,0",
            "selectValueName":"男,女",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"员工性别不能为空",
            "show": true
          },
          {
            "code":"builtUpArea",
            "cnCode":"建筑面积",
            "desc":"必填,请填写房屋建筑面积",
            "code":"email",
            "cnCode":"员工邮箱",
            "desc":"必填,请填写员工邮箱",
            "required":true,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"input",
            "limit":"money",
            "limit":"email",
            "limitParam":"",
            "limitErrInfo":"建筑面积错误,如 300.00"
            "limitErrInfo":"员工邮箱不是有效邮箱",
            "show": true
          },
          {
            "code":"unitPrice",
            "cnCode":"房屋单价",
            "desc":"必填,请填写房屋每平米单价",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"money",
            "limitParam":"",
            "limitErrInfo":"房屋单价错误 如 300.00"
          },
          {
            "code":"state",
            "cnCode":"房屋状态",
            "desc":"必填,请选择房屋状态",
            "required":true,
            "hasDefaultValue":true,
            "defaultValue":"2002",
            "inputType":"none",
            "limit":"maxLength",
            "limitParam":"12",
            "limitErrInfo":"房屋状态 不能超过12位"
          },
          {
            "code":"remark",
            "cnCode":"备注",
            "desc":"可填,请填写备注",
            "code":"tel",
            "cnCode":"手机",
            "desc":"必填,请填写联系方式",
            "required":false,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"textarea",
            "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"
            "limitErrInfo":"家庭住址不能超过200位",
            "show": false
          }
        ]
      }