| | |
| | | @IBOutlet weak var maxmumField: UITextField! |
| | | @IBOutlet weak var orderTypeCollectionView: UICollectionView! |
| | | private var selectIndex = -1 |
| | | private var items = ["快车/专车","出租车","跨城出行","跨城小件出行","同城小件物流"] |
| | | private var items = ["快车/专车","出租车","跨城出行","景区直通车","机场专线","公务用车"] |
| | | var viewMoel:InvoiceOrderViewModel? |
| | | var completeClouse:(()->Void)? |
| | | var minDate:Date? |
| | |
| | | func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { |
| | | selectIndex = indexPath.row |
| | | collectionView.reloadData() |
| | | viewMoel?.orderType.accept(OrderType(rawValue: indexPath.row + 1)) |
| | | |
| | | var orderType:OrderType = .special |
| | | switch indexPath.row{ |
| | | case 0:orderType = .special |
| | | case 1:orderType = .taxi |
| | | case 2:orderType = .travel |
| | | case 3:orderType = .scenic |
| | | case 4:orderType = .plane |
| | | case 5:orderType = .offical |
| | | default:break |
| | | } |
| | | viewMoel?.orderType.accept(orderType) |
| | | } |
| | | } |
| | | |