叁玖-saas


添加车辆

[TOC]

简要描述
  • 添加车辆
请求URL
  • web/addCar
请求方式
  • POST
参数
参数名 必选 类型 说明
company_id int 物流公司id
user_id int 物流用户id
name string 所属人
address 所属人家庭住址
plate_num 车牌号
plate_color int 车牌颜色
get_car_len int 车长
get_car_type 车型
get_car_num 轴数
car_bulk 核定体积
car_load 核定载重
driver_load_pic 行驶证图片
load_pic 道路运输证图片
driver_load_status 车辆认证状态 1通过 0未通过
ocr_type 识别车辆类型
nature 车辆使用性质
brand_model 车辆品牌型号
vehicle_num 车辆识别代码
engine_no 发动机号
issue_unit 发证单位
curb_weight 整备质量
ratified_load_capacity 核定载质量
overall_dimension 外廓尺寸
total_mass 总质量
carrying_capacity 核定载人数
total_quasi_traction_mass 准牵引总质量
type 关联类型
remark 备注
accessory json 附件
is_black 拉黑状态

|per_car_pic|||如果在添加司机页面 添加车辆 那么需要携带这个参数 人车合影|

返回示例
{
    "code": 200,
    "msg": "",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 18,
                "car_id": 22,
                "is_black": 0,
                "get_car": {
                    "id": 22,
                    "name": "11114司机",
                    "address": null,
                    "plate_num": "京AA",
                    "plate_color": 1,
                    "get_car_len": 1,
                    "get_car_type": 2,
                    "get_car_num": 2,
                    "car_bulk": "",
                    "car_load": "",
                    "driver_load_pic": "datamanage/4CBoZzes4XCESisQMDNyJmqp4vFtd88BYHtlWUzn.jpg",
                    "load_pic": "",
                    "insurance_card": "",
                    "driver_load_status": 0,
                    "driving_license_status": 4,
                    "fail_content": null,
                    "ocr_type": "1",
                    "nature": null,
                    "brand_model": null,
                    "vehicle_num": null,
                    "engine_no": null,
                    "issue_unit": null,
                    "curb_weight": null,
                    "ratified_load_capacity": null,
                    "overall_dimension": null,
                    "total_mass": null,
                    "carrying_capacity": null,
                    "total_quasi_traction_mass": null,
                    "created_id": null,
                    "updated_id": 0,
                    "created_at": null,
                    "updated_at": "2022-06-28 15:30:00",
                    "get_car_len_zh": "4.2米",
                    "get_car_type_zh": "高栏车",
                    "get_car_num_zh": "3轴",
                    "driving_license_status_zh": "快过期"
                }
            },
            {
                "id": 21,
                "car_id": 14,
                "is_black": 1,
                "get_car": {
                    "id": 14,
                    "name": "11114司机",
                    "address": null,
                    "plate_num": "京JJJJ",
                    "plate_color": 1,
                    "get_car_len": 1,
                    "get_car_type": 2,
                    "get_car_num": 2,
                    "car_bulk": "",
                    "car_load": "",
                    "driver_load_pic": "datamanage/4CBoZzes4XCESisQMDNyJmqp4vFtd88BYHtlWUzn.jpg",
                    "load_pic": "",
                    "insurance_card": "",
                    "driver_load_status": 0,
                    "driving_license_status": 4,
                    "fail_content": null,
                    "ocr_type": "1",
                    "nature": null,
                    "brand_model": null,
                    "vehicle_num": null,
                    "engine_no": null,
                    "issue_unit": null,
                    "curb_weight": null,
                    "ratified_load_capacity": null,
                    "overall_dimension": null,
                    "total_mass": null,
                    "carrying_capacity": null,
                    "total_quasi_traction_mass": null,
                    "created_id": null,
                    "updated_id": 0,
                    "created_at": null,
                    "updated_at": "2022-06-28 15:30:00",
                    "get_car_len_zh": "4.2米",
                    "get_car_type_zh": "高栏车",
                    "get_car_num_zh": "3轴",
                    "driving_license_status_zh": "快过期"
                }
            },
            {
                "id": 22,
                "car_id": 21,
                "is_black": 1,
                "get_car": {
                    "id": 21,
                    "name": "11114司机",
                    "address": null,
                    "plate_num": "京BBB",
                    "plate_color": 1,
                    "get_car_len": 1,
                    "get_car_type": 2,
                    "get_car_num": 2,
                    "car_bulk": "",
                    "car_load": "",
                    "driver_load_pic": "datamanage/4CBoZzes4XCESisQMDNyJmqp4vFtd88BYHtlWUzn.jpg",
                    "load_pic": "",
                    "insurance_card": "",
                    "driver_load_status": 0,
                    "driving_license_status": 4,
                    "fail_content": null,
                    "ocr_type": "1",
                    "nature": null,
                    "brand_model": null,
                    "vehicle_num": null,
                    "engine_no": null,
                    "issue_unit": null,
                    "curb_weight": null,
                    "ratified_load_capacity": null,
                    "overall_dimension": null,
                    "total_mass": null,
                    "carrying_capacity": null,
                    "total_quasi_traction_mass": null,
                    "created_id": null,
                    "updated_id": 0,
                    "created_at": null,
                    "updated_at": "2022-06-28 15:30:00",
                    "get_car_len_zh": "4.2米",
                    "get_car_type_zh": "高栏车",
                    "get_car_num_zh": "3轴",
                    "driving_license_status_zh": "快过期"
                }
            }
        ],
        "first_page_url": "http://192.168.2.58:8081/web/getCarList?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://192.168.2.58:8081/web/getCarList?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://192.168.2.58:8081/web/getCarList?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://192.168.2.58:8081/web/getCarList",
        "per_page": 10,
        "prev_page_url": null,
        "to": 3,
        "total": 3
    }
}
返回参数说明
参数名 类型 说明
code int 状态码 200-正常 非200都是异常
msg string 提示消息
data array 返回数据
id
name 所属人
address 所属人家庭住址
plate_num 车牌号
plate_color 车牌颜色id
get_car_len 车长id
get_car_type 车型id
get_car_num 轴数id
car_bulk 核定体积
car_load 核定载重
driver_load_pic 行驶证照片
load_pic 道路运输证
insurance_card 保险卡
driver_load_status 车辆审核状态 1 通过 0 未通过 2 带认证
driving_license_status 网货认证 (null-未上传、-1-未上传、1-审核中、 2-认证失败、 3-已过期、 4-快过期 、5-已认证)
fail_content 审核失败说明
ocr_type 识别车辆类型
nature 车辆使用性质
brand_model 车辆品牌型号
vehicle_num 车辆识别代号
engine_no 发动机号码
issue_unit 发证单位
curb_weight 整备质量
ratified_load_capacity 核定载质量
overall_dimension 外廓尺寸
total_mass 总质量
carrying_capacity 核定载人数
total_quasi_traction_mass 准牵引总质量
created_id 添加人
updated_id 修改人
created_at 添加时间
updated_at 修改时间
备注
  • 返回信息 是用来在添加司机 页面 添加车辆时 返回车辆id 以及司机车辆合照

页面列表

ITEM_HTML