UNPKG

qweb-client

Version:

qweb client.

1,442 lines (1,441 loc) 106 kB
{ "info": { "title": "根据给定条件筛选任务列表", "author": "leo", "description": "", "auth": true }, "request": { "type": "object", "description": "过滤条件", "properties": { "plateNo": { "type": "string", "pattern": "^.{7,8}$", "description": "车辆车牌号码" }, "personnelName": { "type": "string", "pattern": "^.{2,10}$", "description": "报价人名字" }, "organizationName": { "type": "string", "pattern": "^.{1,20}$", "description": "出单网点名字" }, "bizEndTime": { "type": "object", "description": "商业险到期时间范围", "properties": { "floor": { "type": "integer", "description": "下限" }, "ceiling": { "type": "integer", "description": "上限" } }, "additionalProperties": false, "required": [ "floor", "ceiling" ] }, "forceEndTime": { "type": "object", "description": "交强险到期时间范围", "properties": { "floor": { "type": "integer", "description": "下限" }, "ceiling": { "type": "integer", "description": "上限" } }, "additionalProperties": false, "required": [ "floor", "ceiling" ] }, "createdTime": { "type": "object", "description": "录入时间范围", "properties": { "floor": { "type": "integer", "description": "下限" }, "ceiling": { "type": "integer", "description": "上限" } }, "additionalProperties": false, "required": [ "floor", "ceiling" ] }, "pageIndex": { "type": "integer", "description": "页码" }, "sortBy": { "enum": [ 1, 2, 3, 4 ], "description": "排序规则: 1: 商业险到期时间正序排序(最早到期优先);2: 商业险到期时间逆序;3: 交强险到期时间正序;4: 交强险到期时间逆序" } }, "additionalProperties": false, "reuqired": [ "pageIndex" ] }, "response": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Za-z0-9]{32}$", "description": "报价记录ID" }, "status": { "enum": [ 0, 100, 200, 300 ], "description": "任务状态" }, "personnelName": { "type": "string", "pattern": "^.{2,10}$", "description": "报价人姓名" }, "organizationName": { "type": "string", "pattern": "^.{1,20}$", "description": "报价网点名称" }, "cityCode": { "type": "string", "pattern": "^[1-9][0-9]([0-9][1-9]|[1-9][0-9])[0]{2}$", "description": "城市代码,eg:110100" }, "vehicle": { "type": "object", "description": "车辆信息", "properties": { "plateNo": { "type": "string", "pattern": "^.{7,8}$", "description": "车辆车牌号码" }, "vin": { "type": "string", "pattern": "^[A-Z0-9]{17}$", "description": "车辆VIN(车架号)" }, "engineNo": { "type": "string", "description": "车辆发动机号" }, "registerDate": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "description": "形如XXXX-XX-XX的日期字符串,eg: 2017-05-18" }, "transferredDate": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "description": "形如XXXX-XX-XX的日期字符串,eg: 2017-05-18" }, "usageType": { "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "description": "车辆使用性质" }, "model": { "type": "object", "description": "车辆模型", "properties": { "modelName": { "type": "string", "description": "车辆品牌型号" }, "modelCode": { "type": "string", "pattern": "^[A-Z0-9]{10}$", "description": "车辆精友代码,eg: FTABND0039" }, "rbCode": { "type": "string", "pattern": "^[A-Z0-9]{10}$", "description": "车辆人保代码,eg: JHD2246JHQ" }, "hyCode": { "type": "string", "pattern": "^[A-Z0-9]{12}$", "description": "车辆行业代码,eg: BZTKZAUD0023" }, "brandName": { "type": "string", "description": "品牌名" }, "marketPrice": { "type": "integer", "description": "购置价" }, "hyPrice": { "type": "integer", "description": "实际行业购置价" }, "seat": { "type": "integer", "description": "座位数" }, "exhaustScale": { "type": "number", "description": "排量" }, "year": { "type": "integer", "description": "上市年份" }, "weight": { "type": "number", "description": "车的重量" }, "loadCapacity": { "type": "number", "description": "载重" }, "productArea": { "type": "number", "description": "产地" }, "vehicleType": { "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 21, 22, 23 ], "description": "车辆类型" }, "fuelType": { "enum": [ 1, 2, 3, 4, 5 ], "description": "车辆燃油类型" }, "remark": { "type": "string" } }, "additionalProperties": false, "required": [ "modelName", "modelCode", "rbCode", "hyCode", "brandName", "marketPrice", "hyPrice", "seat", "exhaustScale", "year", "weight", "loadCapacity", "vehicleType", "fuelType", "remark", "productArea" ] } }, "additionalProperties": false, "required": [ "plateNo", "vin", "engineNo", "registerDate", "usageType", "model" ] }, "owner": { "description": "车主", "anyOf": [ { "type": "object", "description": "关联信息-个人", "properties": { "type": { "enum": [ 1 ] }, "name": { "type": "string" }, "birthday": { "type": "string" }, "gender": { "enum": [ 1, 2 ], "description": "性别" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 1 ] } } }, "then": { "properties": { "type": { "enum": [ 1 ] }, "id": { "type": "string", "pattern": "^\\d{17}\\d|[X]$", "description": "身份证,eg:440305199901012222" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 2 ] } } }, "then": { "properties": { "type": { "enum": [ 2 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "护照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 3 ] } } }, "then": { "properties": { "type": { "enum": [ 3 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "军官证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 4 ] } } }, "then": { "properties": { "type": { "enum": [ 4 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "台胞证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 5 ] } } }, "then": { "properties": { "type": { "enum": [ 5 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他个人证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "birthday", "gender", "certificate" ] }, { "type": "object", "description": "关联信息-机构", "properties": { "type": { "enum": [ 2 ] }, "name": { "type": "string" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 6 ] } } }, "then": { "properties": { "type": { "enum": [ 6 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "组织机构代码" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 7 ] } } }, "then": { "properties": { "type": { "enum": [ 7 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "税务登记号" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 8 ] } } }, "then": { "properties": { "type": { "enum": [ 8 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "营业执照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 10 ] } } }, "then": { "properties": { "type": { "enum": [ 10 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他机构证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "certificate" ] } ] }, "applicant": { "description": "投保人", "anyOf": [ { "type": "object", "description": "关联信息-个人", "properties": { "type": { "enum": [ 1 ] }, "name": { "type": "string" }, "birthday": { "type": "string" }, "gender": { "enum": [ 1, 2 ], "description": "性别" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 1 ] } } }, "then": { "properties": { "type": { "enum": [ 1 ] }, "id": { "type": "string", "pattern": "^\\d{17}\\d|[X]$", "description": "身份证,eg:440305199901012222" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 2 ] } } }, "then": { "properties": { "type": { "enum": [ 2 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "护照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 3 ] } } }, "then": { "properties": { "type": { "enum": [ 3 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "军官证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 4 ] } } }, "then": { "properties": { "type": { "enum": [ 4 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "台胞证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 5 ] } } }, "then": { "properties": { "type": { "enum": [ 5 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他个人证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "birthday", "gender", "certificate" ] }, { "type": "object", "description": "关联信息-机构", "properties": { "type": { "enum": [ 2 ] }, "name": { "type": "string" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 6 ] } } }, "then": { "properties": { "type": { "enum": [ 6 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "组织机构代码" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 7 ] } } }, "then": { "properties": { "type": { "enum": [ 7 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "税务登记号" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 8 ] } } }, "then": { "properties": { "type": { "enum": [ 8 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "营业执照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 10 ] } } }, "then": { "properties": { "type": { "enum": [ 10 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他机构证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "certificate" ] } ] }, "insurant": { "description": "被保人", "anyOf": [ { "type": "object", "description": "关联信息-个人", "properties": { "type": { "enum": [ 1 ] }, "name": { "type": "string" }, "birthday": { "type": "string" }, "gender": { "enum": [ 1, 2 ], "description": "性别" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 1 ] } } }, "then": { "properties": { "type": { "enum": [ 1 ] }, "id": { "type": "string", "pattern": "^\\d{17}\\d|[X]$", "description": "身份证,eg:440305199901012222" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 2 ] } } }, "then": { "properties": { "type": { "enum": [ 2 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "护照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 3 ] } } }, "then": { "properties": { "type": { "enum": [ 3 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "军官证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 4 ] } } }, "then": { "properties": { "type": { "enum": [ 4 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "台胞证" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 5 ] } } }, "then": { "properties": { "type": { "enum": [ 5 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他个人证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "birthday", "gender", "certificate" ] }, { "type": "object", "description": "关联信息-机构", "properties": { "type": { "enum": [ 2 ] }, "name": { "type": "string" }, "certificate": { "type": "object", "switch": [ { "if": { "properties": { "type": { "enum": [ 6 ] } } }, "then": { "properties": { "type": { "enum": [ 6 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "组织机构代码" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 7 ] } } }, "then": { "properties": { "type": { "enum": [ 7 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "税务登记号" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 8 ] } } }, "then": { "properties": { "type": { "enum": [ 8 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "营业执照" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "if": { "properties": { "type": { "enum": [ 10 ] } } }, "then": { "properties": { "type": { "enum": [ 10 ] }, "id": { "type": "string", "pattern": "^.+$", "description": "其他机构证件" } }, "additionalProperties": false, "required": [ "type", "id" ] } }, { "then": false } ] } }, "additionalProperties": false, "required": [ "type", "name", "certificate" ] } ] }, "contact": { "type": "object", "description": "联系信息", "properties": { "regionCode": { "type": "string", "pattern": "^[1-9][0-9][0-9]{4}$", "description": "区域代码,eg:110100" }, "email": { "type": "string", "pattern": "^(\\w)+(.\\w+)*@(\\w)+((.\\w+)+)$", "description": "邮箱地址" }, "address": { "type": "string", "pattern": "^.+$", "description": "地址" }, "mobile": { "type": "string", "pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$", "description": "手机号码,eg: 13800138000" } }, "required": [ "regionCode", "email", "address", "mobile" ], "additionalProperties": false }, "createdTime": { "type": "integer", "description": "创建报价时间" }, "programs": { "type": "array", "items": { "type": "object", "properties": { "companyName": { "type": "string", "description": "提交报价的公司" }, "quotePlan": { "description": "报价方案", "type": "object", "properties": { "depreciatedPrice": { "type": "integer", "description": "折旧价,通过折旧价计算接口计算得到" }, "negotiatedPrice": { "type": "integer", "description": "协商价,默认车损险保额" }, "biz": { "type": "object", "description": "商业险方案", "properties": { "startTime": { "type": "integer", "description": "开始时间(时间戳)" }, "endTime": { "type": "integer", "description": "结束时间(时间戳)" }, "itemList": { "type": "array", "items": { "type": "object", "properties": { "name": { "enum": [ "damage", "thirdParty", "theft", "driver", "passenger", "glass", "combustion", "thirdNotFound", "specifyFactory", "soaked", "scratch", "goodsOnVehicle", "mentalDistress", "newEquipment", "duringRepair" ], "description": "商业险种代号" }, "amount": { "type": "integer", "description": "不计免赔" }, "deductible": { "type": "boolean", "description": "保额:如果为0代表不投保,默认折旧价" }, "absolutelyDeductibleAmount": { "type": "integer", "description": "绝对免赔额,默认0"