|
|
|
|
@ -4,190 +4,505 @@
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="carNo"
|
|
|
|
|
type="String" />
|
|
|
|
|
<variable
|
|
|
|
|
name="site"
|
|
|
|
|
type="String" />
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="carNo"
|
|
|
|
|
name="tire"
|
|
|
|
|
type="com.example.tyre.maintenance.been.BaseTyre" />
|
|
|
|
|
<variable
|
|
|
|
|
name="currentDate"
|
|
|
|
|
type="String" />
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="center|top"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
tools:context=".maintenance.TireScrapActivity">
|
|
|
|
|
android:background="#F5F6FA"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
layout="@layout/layout_activity_title"
|
|
|
|
|
app:title='@{"执行工单"}' />
|
|
|
|
|
<include layout="@layout/layout_activity_title" app:title='@{"轮胎报废"}' />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_title_2"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
|
android:text='@{"车牌\t"+carNo}' />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
|
android:text='@{"◎"+site}'
|
|
|
|
|
android:textColor="@color/textColor1" />
|
|
|
|
|
|
|
|
|
|
<androidx.gridlayout.widget.GridLayout
|
|
|
|
|
style="@style/layout_card_style"
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="12dp"
|
|
|
|
|
app:columnCount="4"
|
|
|
|
|
app:rowCount="4">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_title_2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
|
android:text="* 报废位置"
|
|
|
|
|
android:textSize="16dp"
|
|
|
|
|
app:layout_columnSpan="4" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
|
android:id="@+id/spinner_scrap_position"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:background="@drawable/bg_select_grey"
|
|
|
|
|
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
app:layout_columnSpan="4" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_title_2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
|
android:text="* 鉴定图片"
|
|
|
|
|
android:textSize="16dp"
|
|
|
|
|
app:layout_columnSpan="4" />
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="90dp"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto1"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="*胎号" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="90dp"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto2"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="*整体胎" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="90dp"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto3"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_3"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="病象" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_title_2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
|
android:text="备注"
|
|
|
|
|
android:textSize="16dp"
|
|
|
|
|
app:layout_columnSpan="4" />
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/dialog_tire_remark1"
|
|
|
|
|
<!-- 基础信息 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingBottom="12dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="4dp"
|
|
|
|
|
android:layout_height="16dp"
|
|
|
|
|
android:background="#2E62F1" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:text="基础信息"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:cardBackgroundColor="@color/white"
|
|
|
|
|
app:cardCornerRadius="12dp"
|
|
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
|
|
<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="@{tire.tyreBrand ?? `-`}"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="1dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:background="#E5E5E5" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@{tire.tyreNo ?? `-`}"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="自编号 -"
|
|
|
|
|
android:textColor="#666666"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:text="@{tire.team ?? site}"
|
|
|
|
|
android:textColor="#2E62F1"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<!-- 规格 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="#F8F9FB"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingVertical="12dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@{tire.tyreModel ?? `-`}"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="规格"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 花纹 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="#F8F9FB"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingVertical="12dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@{tire.tyrePattern ?? `-`}"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="花纹"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 花纹深度 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="#F8F9FB"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingVertical="12dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text='@{tire.patternDepth != null ? (tire.patternDepth + " mm") : "-"}'
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="花纹深度"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
|
|
<!-- 上报信息 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingBottom="12dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="4dp"
|
|
|
|
|
android:layout_height="16dp"
|
|
|
|
|
android:background="#2E62F1" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:text="上报信息"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:cardBackgroundColor="@color/white"
|
|
|
|
|
app:cardCornerRadius="12dp"
|
|
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
|
|
<!-- 鉴定日期 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="鉴定日期"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="end"
|
|
|
|
|
android:text="@{currentDate}"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 报废位置 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="报废位置"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/ll_scrap_position"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:background="#F5F6FA"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingHorizontal="12dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_scrap_position"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="请选择报废位置"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="16dp"
|
|
|
|
|
android:layout_height="16dp"
|
|
|
|
|
android:src="@android:drawable/arrow_down_float" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 照片 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="照片"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
|
<!-- android:text="查看示例"-->
|
|
|
|
|
<!-- android:textColor="#2E62F1"-->
|
|
|
|
|
<!-- android:textSize="14sp" />-->
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto1"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_1"
|
|
|
|
|
android:layout_width="30dp"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="胎号"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto2"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_2"
|
|
|
|
|
android:layout_width="30dp"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="整体胎"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto3"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_3"
|
|
|
|
|
android:layout_width="30dp"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="轮胎病象"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 其他图片 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:text="其他图片"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:background="@drawable/bg_block_img_selector"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="takePhoto4"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_photo_4"
|
|
|
|
|
android:layout_width="30dp"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:src="@mipmap/ic_xiangji" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="其他"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 备注 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:text="备注"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/dialog_tire_remark1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:background="#F5F6FA"
|
|
|
|
|
android:gravity="top"
|
|
|
|
|
android:hint="请输入详细描述"
|
|
|
|
|
android:minLines="3"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textColorHint="#999999"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:background="@drawable/bg_grey"
|
|
|
|
|
android:gravity="top"
|
|
|
|
|
android:hint="输入报废原因描述..."
|
|
|
|
|
android:minHeight="100dp"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:textColor="@color/textColor1"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
app:layout_columnSpan="4" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.gridlayout.widget.GridLayout>
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/dialog_tire_update_save"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_margin="12dp"
|
|
|
|
|
android:background="@drawable/bg_button_blue"
|
|
|
|
|
android:text="完成处理"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:onClick="saveScrapOrder"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="@drawable/bg_button_blue"
|
|
|
|
|
android:onClick="saveScrapOrder"
|
|
|
|
|
android:text="提交"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</layout>
|