|
@@ -161,14 +161,14 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:minHeight="76dp"
|
|
|
- android:paddingTop="16dp"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
- android:paddingBottom="21dp"
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingStart="11dp"
|
|
|
+ android:paddingTop="16dp"
|
|
|
android:paddingEnd="26dp"
|
|
|
+ android:paddingBottom="21dp"
|
|
|
android:visibility="@{vm.type==2?View.VISIBLE :View.GONE}"
|
|
|
app:layout_goneMarginTop="@dimen/dp_10"
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
@@ -261,9 +261,9 @@
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="50dp"
|
|
|
- android:gravity="center"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="4dp"
|
|
|
+ android:gravity="center"
|
|
|
android:text="@{vm.info.company.name}"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="13sp"
|
|
@@ -284,17 +284,16 @@
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:minHeight="76dp"
|
|
|
- android:paddingTop="15dp"
|
|
|
- android:paddingBottom="17dp"
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingStart="11dp"
|
|
|
+ android:paddingTop="15dp"
|
|
|
android:paddingEnd="26dp"
|
|
|
+ android:paddingBottom="17dp"
|
|
|
android:visibility="@{vm.type==0?View.VISIBLE :View.GONE}"
|
|
|
app:layout_goneMarginTop="@dimen/dp_10"
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
|
app:qmui_radius="@dimen/dp_4">
|
|
|
|
|
|
-
|
|
|
<ImageView
|
|
|
android:layout_width="40dp"
|
|
|
android:layout_height="40dp"
|
|
@@ -303,15 +302,15 @@
|
|
|
|
|
|
</ImageView>
|
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="8dp"
|
|
|
android:layout_marginEnd="@dimen/dp_10"
|
|
|
- android:layout_weight="1"
|
|
|
- android:gravity="center"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -342,49 +341,92 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="6dp"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@{vm.info.driver.car_cate}"
|
|
|
- android:textColor="#979899"
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
- tools:text="鲁QAA888"></TextView>
|
|
|
-
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:layout_marginStart="2dp"
|
|
|
- android:paddingStart="10dp"
|
|
|
- android:paddingEnd="10dp"
|
|
|
- android:text="@{vm.info.is_baoxian==1?@string/buy_insure_on:@string/buy_insure_off}"
|
|
|
- android:textColor="@{vm.info.is_baoxian==1?@color/insure_text_on:@color/insure_text_off}"
|
|
|
- android:onClick="@{v->vm.toBuy(vm.info.is_baoxian)}"
|
|
|
- android:textSize="14sp"
|
|
|
- app:qmui_backgroundColor="@{vm.info.is_baoxian==1?@color/insure_on:@color/insure_off}"
|
|
|
- app:qmui_borderColor="@{vm.info.is_baoxian==1?@color/insure_boder_on:@color/insure_boder_off}"
|
|
|
- app:qmui_borderWidth="1dp"
|
|
|
- android:visibility="@{vm.info.info.is_insurance==1?View.VISIBLE:View.GONE}"
|
|
|
- app:qmui_radius="2dp" />
|
|
|
-
|
|
|
-
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
- android:layout_width="81dp"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:layout_marginStart="2dp"
|
|
|
- android:paddingStart="10dp"
|
|
|
- android:paddingEnd="10dp"
|
|
|
- android:text="购买保险"
|
|
|
- android:visibility="gone"
|
|
|
- android:textColor="#9E9E9E"
|
|
|
- android:textSize="14sp"
|
|
|
- app:qmui_backgroundColor="#EBEBEB"
|
|
|
- app:qmui_borderColor="#A0A0A0"
|
|
|
- app:qmui_borderWidth="1dp"
|
|
|
- app:qmui_radius="2dp" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{vm.info.driver.car_cate+@string/slash+vm.info.driver.number}"
|
|
|
+ android:textColor="#979899"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ tools:text="鲁QAA888"></TextView>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:onClick="@{v->vm.toBuy(vm.info.is_baoxian)}"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="@{vm.info.is_baoxian==1?@string/buy_insure_on:@string/buy_insure_off}"
|
|
|
+ android:textColor="@{vm.info.is_baoxian==1?@color/insure_text_on:@color/insure_text_off}"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:visibility="@{vm.info.info.is_insurance==1?View.VISIBLE:View.GONE}"
|
|
|
+ app:qmui_backgroundColor="@{vm.info.is_baoxian==1?@color/insure_on:@color/insure_off}"
|
|
|
+ app:qmui_borderColor="@{vm.info.is_baoxian==1?@color/insure_boder_on:@color/insure_boder_off}"
|
|
|
+ app:qmui_borderWidth="1dp"
|
|
|
+ app:qmui_radius="2dp" />
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:layout_width="81dp"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="购买保险"
|
|
|
+ android:textColor="#9E9E9E"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:qmui_backgroundColor="#EBEBEB"
|
|
|
+ app:qmui_borderColor="#A0A0A0"
|
|
|
+ app:qmui_borderWidth="1dp"
|
|
|
+ app:qmui_radius="2dp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_collect"
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:src="@{vm.is_collect==1?@drawable/ic_star_on:@drawable/ic_star_off_to}"
|
|
|
+ tools:src="@drawable/ic_star_off_to">
|
|
|
+
|
|
|
+ </ImageView>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:onClick="@{v->vm.toCallPhone(vm.info.driver.mobile)}"
|
|
|
+ android:src="@drawable/ic_details_phone">
|
|
|
+
|
|
|
+ </ImageView>
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -392,24 +434,6 @@
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_collect"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- android:layout_marginEnd="16dp"
|
|
|
- android:src="@{vm.is_collect==1?@drawable/ic_star_on:@drawable/ic_star_off_to}"
|
|
|
- tools:src="@drawable/ic_star_off_to">
|
|
|
-
|
|
|
- </ImageView>
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- android:onClick="@{v->vm.toCallPhone(vm.info.driver.mobile)}"
|
|
|
- android:src="@drawable/ic_details_phone">
|
|
|
-
|
|
|
- </ImageView>
|
|
|
-
|
|
|
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
@@ -468,6 +492,34 @@
|
|
|
<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.create_time}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ tools:text="进行中"></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" />
|
|
@@ -665,7 +717,6 @@
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|
|
|
-
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="50dp"
|
|
@@ -713,7 +764,6 @@
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|
|
|
-
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -727,14 +777,14 @@
|
|
|
android:visibility="@{vm.isVoucherShow?View.VISIBLE:View.GONE}"
|
|
|
app:layout_goneMarginTop="@dimen/dp_10"
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
|
- tools:visibility="visible"
|
|
|
- app:qmui_radius="@dimen/dp_4">
|
|
|
+ app:qmui_radius="@dimen/dp_4"
|
|
|
+ tools:visibility="visible">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="20dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:gravity="center_vertical">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
@@ -750,10 +800,10 @@
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="right"
|
|
|
android:onClick="@{v->vm.reviseModel(vm.info.order.order_id)}"
|
|
|
- android:visibility="@{vm.isModify?View.VISIBLE:View.GONE}"
|
|
|
+ android:text="修改"
|
|
|
android:textColor="#FFBC00"
|
|
|
android:textSize="13sp"
|
|
|
- android:text="修改" />
|
|
|
+ android:visibility="@{vm.isModify?View.VISIBLE:View.GONE}" />
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -776,24 +826,24 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="right"
|
|
|
- android:visibility="@{vm.isModify?View.GONE:View.VISIBLE}"
|
|
|
+ android:text="@{vm.number}"
|
|
|
android:textColor="#26292F"
|
|
|
android:textSize="13sp"
|
|
|
- android:text="@{vm.number}"
|
|
|
+ android:visibility="@{vm.isModify?View.GONE:View.VISIBLE}"
|
|
|
tools:text="30吨" />
|
|
|
|
|
|
- <com.ysnows.base.widget.DelEditText
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@null"
|
|
|
- android:textColor="#26292F"
|
|
|
- android:text="@={vm.number}"
|
|
|
- android:textSize="13sp"
|
|
|
- android:hint="请输入送达数量"
|
|
|
- android:visibility="@{vm.isModify?View.VISIBLE:View.GONE}"
|
|
|
- android:gravity="right"
|
|
|
- android:textColorHint="#767778"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@null"
|
|
|
+ android:gravity="right"
|
|
|
+ android:hint="请输入送达数量"
|
|
|
+ android:text="@={vm.number}"
|
|
|
+ android:textColor="#26292F"
|
|
|
+ android:textColorHint="#767778"
|
|
|
+ android:textSize="13sp"
|
|
|
+ android:visibility="@{vm.isModify?View.VISIBLE:View.GONE}" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
@@ -835,8 +885,8 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginBottom="18dp"
|
|
|
- android:visibility="@{vm.isModify?View.GONE:View.VISIBLE}"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="@{vm.isModify?View.GONE:View.VISIBLE}">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
@@ -862,9 +912,9 @@
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="106dp"/>
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="106dp" />
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -877,8 +927,8 @@
|
|
|
<FrameLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
android:layout_gravity="bottom"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
|
android:onClick="@{v->vm.toStartShip(vm.info.order.order_id)}"
|
|
|
android:visibility="@{vm.isButShow?View.VISIBLE:View.GONE}">
|
|
@@ -899,6 +949,7 @@
|
|
|
</TextView>
|
|
|
|
|
|
</FrameLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
@@ -959,7 +1010,6 @@
|
|
|
android:textSize="@dimen/sp_13" />
|
|
|
|
|
|
|
|
|
-
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|