package com.lukouguoji.module_base.bean

class GnjQueryBean {
    var activeId: String = "" // null
    var agentCode: String = "" // LH
    var awbType: String = "" // 国内进港
    var businessType: String = "" // 普通货物运输
    var by1: String = "" // MU
    var cargoType: String = "" // null
    var cashWeight: String = "" // null
    var chargeFlag: String = "" // null
    var cneeCode: String = "" // null
    var cneeId: String = "" // null
    var cneeTel: String = "" // null
    var consignee: String = "" // null
    var dep: String = "" // null
    var dest: String = "" // HFE
    var dgrDetail: String = "" // null
    var dgrLocation: String = "" // null
    var fdate: String = "" // null
    var fdep: String = "" // null
    var fdest: String = "" // null
    var flight: String = ""
    var fno: String = "" // null
    var goods: String = "" // 分批货1
    var mawbId: String = "" // 996360
    var no: String = "" // 22222981
    var opDate: String = "" // 2024-06-27 15:24:31
    var opId: String = "" // null
    var origin: String = "" // PEK
    var packageType: String = "" // null
    var pc: String = "" // 500

    // 出库标识 0：未出库，1已出库
    var pickFlag: String = "" // null

    var prefix: String = "" // 781
    var range: String = "" // PEK-HFE
    var remark: String = "" // null
    var spCode: String = "" // null
    var subCode: String = "" // null
    var unNumber: String = "" // null
    var volume: String = "" // null
    var weight: String = "" // 700

    var wbNo: String = "" // 78122222826
        get() {
            if (field.isEmpty()) {
                field = "$prefix$no"
            }
            return field
        }

    fun getPickFlagName() = when (pickFlag) {
        "0" -> "未提取"
        "1" -> "已提取"
        else -> ""
    }
}