package com.za.bean.request

data class TodayMaintainbean(
    val tag: String? = null,//
    val tagName: String? = null, //名称
    val description: String? = null, //描述
    val img: String? = null, //图片地址
)

data class TodayMaintainRequest(val vehicleId: Int? = null)

data class TodayMaintainUploadRequest(
    val vehicleId: String? = null,
    val driverId: String? = null,
    val tag: String? = null,
    val tagImage: String? = null,
)


data class RecognizeRefuelOcrRequestBean(
    val imageUrl: String? = null,
    val address: String? = null,
    val longitude: Double? = null,
    val latitude: Double? = null,
    val vehicleId: Double? = null,
    val driverId: Double? = null,
)

data class RecognizeRefuelTicketBean(
    var refuelCode: String? = null, //加油卡号
    var quantity: Double? = null,//加油量
    var amount: Double? = null,//加油金额
    var filePath: String? = null,
)

data class RecognizeRefuelTicketRequestBean(
    val vehicleId: Int? = null,
    val driverId: Int? = null,
    val address: String? = null,
    val longitude: Double? = null,
    val latitude: Double? = null,
    val refuelCode: String? = null,
    val quantity: Double? = null,
    val amount: Double? = null,
    val mileage: Double? = null,
    val refuelTime: Double? = null,
    val receiptPhotoUrls: String? = null,
    val anotherPhotoUrls: String? = null,
)


data class RepairHistoryRequestBean(val id: Int? = null,
                                    val driverId: Int? = null,
                                    val vehicleId: Int? = null)

data class VehicleRepairBean(
    var id: Int? = null,//维保记录ID
    var stage: String? = null, //阶段  //1 维保申请审批中  2,"维保申请不通过" 3,"维保申请通过" 4,"维保完成审批中" 5,"维保完成不通过" 6,"维保完成通过" 9,"维保终止"
    var vehicleId: Int? = null,//车辆ID
    var vehicleName: String? = null, //车辆名称
    var plateNumber: String? = null, //车牌号
    var states: Int? = null,//维保状态
    var statesStr: String? = null, //维保状态-描述
    var address: String? = null, //维修地址
    var repairPoint: String? = null, //维修点名称
    var vehicleRepairId: Int? = null,//维修点Id
    var longitude: Double? = null, //维保地址经度
    var latitude: Double? = null, //维保地址纬度
    var storePhotoUrls: String? = null, //门店照片
    var paymentType: Int? = null,//支付类型 1挂账 2现金
    var amount: Double? = null, //维保金额
    var mileage: Int? = null,//车辆里程数
    var information: String? = null, //维保信息
    var maintenancePhotoUrls: String? = null, //维保照片/项目照片
    var voucherPhotoUrls: String? = null, //维保清单/凭证照片
    var auditRemark: String? = null, //维保审核备注
    var createTime: String? = null, //创建时间
    var updateTime: String? = null, //修改时间
) {
    fun getPayTypeStr(): String {
        return when (paymentType) {
            1 -> "月结"
            2 -> "全包"
            3 -> "现金"
            4 -> "月结+现金"
            else -> ""
        }
    }
}

//维保提价记录
data class FetchVehicleMaintenanceSubmitHistoryRequestBean(val vehicleId: Int? = null, val driverId: Int? = null, val id: Int? = null)

/**
 * 今日保养的请求信息
 */
data class VehicleMaintenanceHistoryBean(
    val id: Int? = null,
    val stage: String? = null,//阶段  //1 维保申请审批中  2,"维保申请不通过" 3,"维保申请通过" 4,"维保完成审批中" 5,"维保完成不通过" 6,"维保完成通过" 9,"维保终止"
    val vehicleId: Int? = null,//车辆ID
    val vehicleName: String? = null,//
    val plateNumber: String? = null,//车牌号
    val states: Int? = null,//维保状态
    val statesStr: String? = null,//维保状态-描述
    val address: String? = null,//维修地址
    val repairPoint: String? = null,//维修点名称
    val vehicleRepairId: Int? = null,//维修点Id
    val longitude: Double? = null,//维保地址经度
    val latitude: Double? = null,//维保地址纬度
    val storePhotoUrls: String? = null,//门店照片
    val paymentType: Int? = null,//支付类型 1挂账 2现金
    val amount: Double? = null,//维保金额
    val mileage: Double? = null,//车辆里程数
    val information: String? = null,//维保信息
    val maintenancePhotoUrls: String? = null,//维保照片/项目照片
    val voucherPhotoUrls: String? = null,//维保清单/凭证照片
    val auditRemark: String? = null,//维保审核备注
    val createTime: String? = null,//创建时间
    val updateTime: String? = null//修改时间
)

data class VehicleRepairPointMatcherItem(
    val id: Int? = null,
    val repairName: String? = null,
    val repairLon: Double? = null,
    val repairLat: Double? = null,
    val repairAddress: String? = null,
    val supplierId: Int? = null,
    val distance: Double? = null,
    val isSelected: Boolean? = false,
)

data class VehicleRepairPointMatcherListRequest(
    val vehicleId: Int? = null,
    val address: String? = null,
    val longitude: Double? = null,
    val latitude: Double? = null)

data class VehicleMaintenanceSubmitRequest(
    val id: Int? = null,//维保记录ID
    val vehicleId: Int? = null,//车辆ID
    val driverId: Int? = null,//司机ID
    val submitType: Int? = null,//提交类型 1维修开始申请 2维保完成申请
    val address: String? = null,//维修地址
    val longitude: Double? = null,//维修地址经度
    val latitude: Double? = null,//维修地址纬度
    val vehicleRepairId: Int? = null,//维修点Id
    val storePhotoUrls: String? = null,//门店照片
    val paymentType: Int? = null,//支付类型和结算类型
    val amount: Double? = null,//维保金额
    val mileage: Int? = null,//车辆里程数
    val information: String? = null,//维保信息/项目
    val maintenancePhotoUrls: String? = null,//维保照片/项目照片
    val voucherPhotoUrls: String? = null,//维保清单/凭证照片
    val auditRemark: String? = null,//维保审核备注
    val remark: String? = null//维保备注
)