package com.lukouguoji.gjj.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.lukouguoji.gjj.R
import com.lukouguoji.gjj.databinding.FragmentIntImpQueryWaybillBinding
import com.lukouguoji.gjj.viewModel.IntImpQueryDetailsViewModel

/**
 * 国际进港查询详情 - 运单信息Fragment
 */
class IntImpQueryWaybillFragment : Fragment() {

    private lateinit var binding: FragmentIntImpQueryWaybillBinding
    private lateinit var viewModel: IntImpQueryDetailsViewModel

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        binding = DataBindingUtil.inflate(
            inflater,
            R.layout.fragment_int_imp_query_waybill,
            container,
            false
        )
        binding.lifecycleOwner = viewLifecycleOwner
        binding.viewModel = viewModel
        return binding.root
    }

    companion object {
        @JvmStatic
        fun newInstance(vm: IntImpQueryDetailsViewModel) =
            IntImpQueryWaybillFragment().apply {
                viewModel = vm
            }
    }
}
