mrzcc
2020-02-10 088cad4fda2eaaf76a12625624702639e8a3a4b7
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,137 +1,135 @@
{
  "templateName":"钥匙申请",
  "templateCode":"applicationKey",
  "templateKey":"applicationKeyId",
  "templateKeyName":"钥匙申请ID",
  "searchCode": "name",
  "searchName": "名称",
  "templateName":"费用项",
  "templateCode":"feeConfig",
  "templateKey":"configId",
  "templateKeyName":"费用项ID",
  "searchCode": "feeName",
  "searchName": "费用项目",
  "conditions": [
    {
      "name": "名称",
      "inputType": "input",
      "code": "name",
      "whereCondition": "equal"
    },
    {
      "name": "用户类型",
      "name": "费用标识",
      "inputType": "select",
      "code": "typeCd",
      "selectValue":"10001,10002,10003",
      "selectValueName":"保洁,保安,其他人员",
      "selectValue":"1003006,2006012",
      "selectValueName":"周期性费用,一次性费用",
      "code": "feeFlag",
      "whereCondition": "equal"
    },
    {
      "name": "用户手机",
      "name": "费用项目",
      "inputType": "input",
      "code": "tel",
      "code": "feeName",
      "whereCondition": "equal"
    },
    {
      "name": "身份证号",
      "inputType": "input",
      "code": "idCard",
      "name": "费用类型",
      "inputType": "select",
      "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
      "selectValueName":"物业费,地上出售车位费,地下出售车位费,地上出租车位费,地下出租车位费,临时车费用",
      "code": "feeTypeCd",
      "whereCondition": "equal"
    }
  ],
  "columns":[
    {
      "code":"name",
      "cnCode":"姓名",
      "desc":"必填,请填写姓名",
      "code":"feeTypeCd",
      "cnCode":"费用类型",
      "desc":"必填,请选择费用类型",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "inputType": "select",
      "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
      "selectValueName":"物业费,地上出售车位费,地下出售车位费,地上出租车位费,地下出租车位费,临时车费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"费用类型格式错误",
      "show": true
    },
    {
      "code": "feeName",
      "cnCode":"收费项目",
      "desc":"必填,请填写收费项目",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,64",
      "limitErrInfo":"姓名不能超过64位",
      "limitParam":"1,100",
      "limitErrInfo":"收费项目不能超过100位",
      "show": true
    },
    {
      "code": "tel",
      "cnCode":"手机号",
      "desc":"必填,请填写手机号",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"phone",
      "limitParam":"",
      "limitErrInfo":"手机号格式错误",
      "show": true
    },
    {
      "code": "typeCd",
      "cnCode":"用户类型",
      "desc":"必填,请选择用户类型",
      "code":"feeFlag",
      "cnCode":"费用标识",
      "desc":"必填,请选择费用标识",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"10001,10002,10003",
      "selectValueName":"保洁,保安,其他人员",
      "selectValue":"1003006,2006012",
      "selectValueName":"周期性费用,一次性费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"用户类型格式错误",
      "show": true
    },
    {
      "code": "sex",
      "cnCode":"性别",
      "desc":"必填,请选择性别",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"0,1",
      "selectValueName":"男,女",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"性别格式错误",
      "show": true
    },
    {
      "code": "age",
      "cnCode":"年龄",
      "desc":"必填,请填写年龄",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"年龄不是有效数字",
      "show": true
    },
    {
      "code":"idCard",
      "cnCode":"身份证号",
      "desc":"必填,请填写身份证号",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"idCard",
      "limitParam":"",
      "limitErrInfo":"不是有效的身份证号",
      "limitErrInfo":"费用类型格式错误",
      "show": true
    },
    {
      "code": "startTime",
      "cnCode":"开始时间",
      "desc":"必填,请选择开始时间",
      "cnCode":"计费起始时间",
      "desc":"必填,请选择计费起始时间",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"dateTime",
      "limitParam":"",
      "limitErrInfo":"不是有效的时间格式",
      "limitErrInfo":"计费起始时间不是有效的时间格式",
      "show": true
    },
    {
      "code": "endTime",
      "cnCode":"结束时间",
      "desc":"必填,请选择结束时间",
      "cnCode":"计费终止时间",
      "desc":"必填,请选择计费终止时间",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"dateTime",
      "limitParam":"",
      "limitErrInfo":"不是有效的时间格式",
      "limitErrInfo":"计费终止时间不是有效的时间格式",
      "show": true
    },
    {
      "code":"computingFormula",
      "cnCode":"计算公式",
      "desc":"必填,请填写附加费用",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"1001,2002",
      "selectValueName":"面积*单价+附加费,固定费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"计算公式格式错误",
      "show": false
    },
    {
      "code":"squarePrice",
      "cnCode":"计费单价",
      "desc":"必填,请填写计费单价",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"计费单价格式错误",
      "show": true
    },
    {
      "code":"additionalAmount",
      "cnCode":"附加费用",
      "desc":"必填,请填写附加费用",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"附加费用格式错误",
      "show": true
    }
  ]