123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <?xml version="1.0" encoding="utf-8"?>
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools">
- <data>
- <import type="android.view.View" />
- <variable
- name="vm"
- type="com.quansu.heifengwuliu.vmodel.SourceDetailsVModel" />
- </data>
- <LinearLayout
- android:id="@+id/ll"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/color_page_bg"
- android:orientation="vertical">
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:scrollbars="none">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="17dp"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="16dp"
- android:orientation="vertical"
- android:paddingStart="11dp"
- android:paddingTop="20dp"
- android:paddingEnd="14dp"
- android:paddingBottom="20dp"
- app:qmui_backgroundColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/iv_yellow"
- android:layout_width="9dp"
- android:layout_height="10dp"
- android:layout_marginStart="18dp"
- android:src="@drawable/ic_circle_yellow" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center"
- android:text="@{vm.info.order.send[0].province.name+vm.info.order.send[0].city.name}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_15"
- tools:text="山东 临沂"></TextView>
- <ImageView
- android:layout_width="26dp"
- android:layout_height="4dp"
- android:src="@drawable/ic_long_arrow"></ImageView>
- <ImageView
- android:id="@+id/iv_red"
- android:layout_width="9dp"
- android:layout_height="10dp"
- android:layout_marginStart="14dp"
- android:src="@drawable/ic_circle_red" />
- <TextView
- android:id="@+id/tv_city_in"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/dp_10"
- android:layout_weight="1"
- android:gravity="center"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].province.name+vm.info.order.receive[vm.info.order.receive.size()-1].city.name}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_15"
- tools:text="河北 唐山"></TextView>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginStart="2dp"
- android:layout_marginTop="17dp"
- android:background="#E3E4E5" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_out"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- tools:listitem="@layout/item_peopleinfo"
- tools:visibility="gone">
- </androidx.recyclerview.widget.RecyclerView>
- </RelativeLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginStart="2dp"
- android:layout_marginTop="24dp"
- android:background="#E3E4E5" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_in"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- tools:listitem="@layout/item_enterinfo"
- tools:visibility="gone" />
- </RelativeLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="17dp"
- android:layout_marginTop="@dimen/dp_10"
- android:layout_marginEnd="16dp"
- android:orientation="vertical"
- android:paddingStart="21dp"
- android:paddingTop="20dp"
- android:paddingEnd="16dp"
- android:paddingBottom="18dp"
- app:qmui_backgroundColor="@color/white"
- app:qmui_borderColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/dp_10"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="运单号"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.info_sn}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="电话:1835399999"></TextView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="12dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="货源状态"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- tools:text="进行中"
- android:text="@{vm.getOrderStatus(vm.info.order.info_state)}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- ></TextView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/dp_14"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="车型车长"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.type_info.type_name+@string/spot+vm.info.order.type_info.length+@string/rice}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14"
- tools:text="电话:1835399999"></TextView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/dp_13"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="备注"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.data}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14"
- tools:text="电话:1835399999"></TextView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="纸质回单"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14"
- tools:text="电话:1835399999"></TextView>
- </LinearLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_marginStart="@dimen/dp_17"
- android:layout_marginTop="@dimen/dp_12"
- android:layout_marginEnd="@dimen/dp_16"
- android:layout_marginBottom="9dp"
- android:gravity="center"
- android:orientation="vertical"
- android:paddingStart="21dp"
- android:paddingEnd="16dp"
- app:layout_goneMarginTop="@dimen/dp_10"
- app:qmui_backgroundColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="运费"
- android:textColor="#767778"
- android:textSize="@dimen/sp_14"></TextView>
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{@string/total_img+vm.info.order.total}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14"
- tools:text="¥30000"></TextView>
- </LinearLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- </LinearLayout>
- </ScrollView>
- <!-- 货主端按钮-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="@dimen/dp_10"
- android:orientation="horizontal"
- >
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
- android:id="@+id/but_cancel"
- android:layout_width="120dp"
- android:layout_height="@dimen/dp_40"
- android:layout_marginStart="@dimen/dp_10"
- android:onClick="@{v->vm.setCancelOrder(vm.info.order.info_id)}"
- android:text="取消发布"
- android:textColor="@color/white"
- android:textSize="16sp"
- android:visibility="@{vm.isShowCancelBut(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
- app:qmui_backgroundColor="#FF6029"
- app:qmui_borderColor="#FF6029"
- app:qmui_radius="25dp">
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
- android:id="@+id/but_comeback"
- android:layout_width="120dp"
- android:layout_height="@dimen/dp_40"
- android:layout_marginStart="@dimen/dp_15"
- android:onClick="@{v->vm.anotherOne()}"
- android:text="再来一单"
- android:textColor="@color/white"
- android:textSize="16dp"
- app:qmui_backgroundColor="#F3B23E"
- app:qmui_borderColor="#F3B23E"
- app:qmui_radius="25dp">
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
- android:id="@+id/but_pay"
- android:layout_width="120dp"
- android:layout_height="@dimen/dp_40"
- android:layout_marginStart="@dimen/dp_10"
- android:onClick="@{v->vm.showPayDialog(vm.info.order.info_id)}"
- android:text="去支付"
- android:textColor="@color/white"
- android:textSize="16sp"
- android:visibility="@{vm.isShowPaylBut(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
- app:qmui_backgroundColor="#FF6029"
- app:qmui_borderColor="#FF6029"
- app:qmui_radius="25dp">
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
- android:id="@+id/but_driver"
- android:layout_width="120dp"
- android:layout_height="@dimen/dp_40"
- android:layout_marginStart="@dimen/dp_15"
- android:onClick="@{v->vm.goDriverList(vm.info.order.info_id)}"
- android:text="@{@string/receiving_vehicle+@string/left_bracket+vm.info.order.car_nums+@string/right_bracket}"
- android:textColor="@color/white"
- android:textSize="16sp"
- android:visibility="@{vm.isShowReceiveVehicle(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
- app:qmui_backgroundColor="#F3AC3C"
- app:qmui_borderColor="#F3AC3C"
- tools:text="接单车辆"
- app:qmui_radius="25dp">
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
- </LinearLayout>
- </LinearLayout>
- </layout>
|