ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 门店下的销售 ~~~[api] get:/sale <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "测试账号杜",//销售姓名 "phone": "15181474781",//销售手机号 "create_time": "2017-12-06 17:18:09",//创建时间 "status": 0,//销售状态 0 正常 1 冻结 "title": "内光华门店",//所在门店名 "info_id": 1,//销售资料id 未注册就是 null "total": 0,//总佣金 "available": 0,//可提佣金 "used": 0//已提佣金 } ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 1//总条数 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 门店下的销售分页 ~~~[api] get:/sale/pag <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "测试账号杜",//销售姓名 "phone": "15181474781",//销售手机号 "create_time": "2017-12-06 17:18:09",//创建时间 "status": 0,//销售状态 0 正常 1 冻结 "title": "内光华门店",//所在门店名 "info_id": 1,//销售资料id 未注册就是 null "total": 0,//总佣金 "available": 0,//可提佣金 "used": 0//已提佣金 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 销售下的订单 >[info] 租住方式 0 短租合租 1 短租整租 2 长租整租 3 长租合租 > 订单状态 0 未支付 1 已支付(未入住) 2 已支付(已入住) 3 已续租 4 已逾期 5 申请退租 > 6 退租失败 (取消预订失败) 7 已退租(订单完成) 8 申请取消预订 9 订单关闭 > 证件类型 0 身份证 > 是否全付 0 是 1 不是 >[danger] 证件类型现在只有身份证 只是 0 ~~~[api] get:/sale/order *int:id=1#销售id <<< success { "code": 0, "data": { "data": [ { "id": 12, "mode": 0,//租住方式 "order_number": "SGA151451163969674",//订单号 "into_time": "2018-12-27 00:00:00",//入住时间 "out_time": "2018-12-30 00:00:00",//离开时间 "rent": 100,//租金(单价) "deposit": 100,//押金 "total": 500,//合计金额 "people_num": 10,//入住人数 "document_type": 0,//证件类型 0 身份证 "license_number": "111111111111111111",//证件号码 "name": "123",//入住人姓名 "phone": "13252362362",//入住人手机号 "is_all_pay": 0,//是否全付 0 是 1 否 "status": 1,//状态 "h_l_p_n": null,//长租支付方式名 "h_province": "四川省",//省 "h_city": "成都市",//市 "h_county": "青羊区",//区 "h_name": "树海",//房源名 "h_community": "光华中心",//小区名 "u_name": null,//下单人昵称 "u_phone": "15181474781",//下单人手机号 "r_name": "厕所1",//房间名 "pay": [],//长租支付方式段 "sum": 4,//可提佣金 "present_status": 0//佣金状态 0 可以提 1 申请中 2 提现成功 3 提现失败 }, { "id": 7, "mode": 2, "order_number": "SGD151444789633864", "into_time": "2018-01-02 00:00:00", "out_time": "2018-07-02 00:00:00", "rent": 100, "deposit": 100, "total": 700, "people_num": 1, "document_type": 0, "license_number": "123563256655235456", "name": "12", "phone": "13542562562", "is_all_pay": 0, "status": 2, "h_l_p_n": "全付(押一)", "h_province": "四川省", "h_city": "成都市", "h_county": "青羊区", "h_name": "树海", "h_community": "光华中心", "u_name": null, "u_phone": "15181474781", "r_name": null, "pay": [ { "id": 6, "staging_time": "2018-01-02", "sum": 2, "status": 0 } ], "sum": 12, "present_status": 0 } ], "currentPage": 1, "pageNumber": 10, "count": 3 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 销售下的订单分页 >[info] 租住方式 0 短租合租 1 短租整租 2 长租整租 3 长租合租 > 订单状态 0 未支付 1 已支付(未入住) 2 已支付(已入住) 3 已续租 4 已逾期 5 申请退租 > 6 退租失败 (取消预订失败) 7 已退租(订单完成) 8 申请取消预订 9 订单关闭 > 证件类型 0 身份证 > 是否全付 0 是 1 不是 >[danger] 证件类型现在只有身份证 只是 0 ~~~[api] get:/sale/orderPag *int:id=1#销售id *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 12, "mode": 0,//租住方式 "order_number": "SGA151451163969674",//订单号 "into_time": "2018-12-27 00:00:00",//入住时间 "out_time": "2018-12-30 00:00:00",//离开时间 "rent": 100,//租金(单价) "deposit": 100,//押金 "total": 500,//合计金额 "people_num": 10,//入住人数 "document_type": 0,//证件类型 0 身份证 "license_number": "111111111111111111",//证件号码 "name": "123",//入住人姓名 "phone": "13252362362",//入住人手机号 "is_all_pay": 0,//是否全付 0 是 1 否 "status": 1,//状态 "h_l_p_n": null,//长租支付方式名 "h_province": "四川省",//省 "h_city": "成都市",//市 "h_county": "青羊区",//区 "h_name": "树海",//房源名 "h_community": "光华中心",//小区名 "u_name": null,//下单人昵称 "u_phone": "15181474781",//下单人手机号 "r_name": "厕所1",//房间名 "pay": [],//长租支付方式段 "sum": 4,//可提佣金 "present_status": 0//佣金状态 0 可以提 1 申请中 2 提现成功 3 提现失败 }, { "id": 7, "mode": 2, "order_number": "SGD151444789633864", "into_time": "2018-01-02 00:00:00", "out_time": "2018-07-02 00:00:00", "rent": 100, "deposit": 100, "total": 700, "people_num": 1, "document_type": 0, "license_number": "123563256655235456", "name": "12", "phone": "13542562562", "is_all_pay": 0, "status": 2, "h_l_p_n": "全付(押一)", "h_province": "四川省", "h_city": "成都市", "h_county": "青羊区", "h_name": "树海", "h_community": "光华中心", "u_name": null, "u_phone": "15181474781", "r_name": null, "pay": [ { "id": 6, "staging_time": "2018-01-02", "sum": 2, "status": 0 } ], "sum": 12, "present_status": 0 } ], "currentPage": 1, "pageNumber": 10, "count": 3 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~