You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
268 lines
9.0 KiB
XML
268 lines
9.0 KiB
XML
|
2 months ago
|
<?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>
|
||
|
|
|
||
|
|
</data>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:gravity="center|top"
|
||
|
|
android:orientation="vertical"
|
||
|
|
tools:context=".maintenance.WorkExecuteActivity">
|
||
|
|
|
||
|
|
<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='"车牌"+"粤B01260D"' />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:letterSpacing="0.1"
|
||
|
|
android:text='"◎"+"观湖修理厂"'
|
||
|
|
android:textColor="@color/textColor1" />
|
||
|
|
|
||
|
|
<androidx.gridlayout.widget.GridLayout
|
||
|
|
style="@style/layout_card_style"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="12dp"
|
||
|
|
app:columnCount="2"
|
||
|
|
app:rowCount="5">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="start|center"
|
||
|
|
android:letterSpacing="0.1"
|
||
|
|
android:text="*仪表盘里程(km)"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="right|center"
|
||
|
|
android:hint="必填"
|
||
|
|
android:inputType="numberDecimal"
|
||
|
|
android:onClick="selectDate"
|
||
|
|
android:paddingEnd="10dp"
|
||
|
|
android:textColor="@color/textColor2"
|
||
|
|
android:textSize="15sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_columnWeight="1"
|
||
|
|
tools:ignore="RtlHardcoded,RtlSymmetry" />
|
||
|
|
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_height="1dp"
|
||
|
|
android:background="#F1F1F1"
|
||
|
|
app:layout_columnSpan="2" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="start|center"
|
||
|
|
android:text="上次里程"
|
||
|
|
android:textColor="@color/textColor2"
|
||
|
|
app:layout_columnSpan="2" />
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.gridlayout.widget.GridLayout>
|
||
|
|
|
||
|
|
<androidx.gridlayout.widget.GridLayout
|
||
|
|
style="@style/layout_card_style"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="12dp"
|
||
|
|
android:layout_marginEnd="12dp"
|
||
|
|
app:columnCount="2"
|
||
|
|
app:rowCount="5">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="left|center"
|
||
|
|
android:text="线路"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="right|center"
|
||
|
|
android:onClick="selectDate"
|
||
|
|
android:paddingEnd="10dp"
|
||
|
|
android:text="保养日期"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_height="1dp"
|
||
|
|
android:background="#F1F1F1"
|
||
|
|
app:layout_columnSpan="2" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="left|center"
|
||
|
|
android:text="补充说明"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:background="@color/white"
|
||
|
|
android:gravity="end|center"
|
||
|
|
android:hint="选填"
|
||
|
|
android:paddingEnd="10dp"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
android:textSize="14sp"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_height="1dp"
|
||
|
|
android:background="#F1F1F1"
|
||
|
|
app:layout_columnSpan="2" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="left|center"
|
||
|
|
android:text="保养日期"
|
||
|
|
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:gravity="end|center"
|
||
|
|
android:onClick="switchStatus"
|
||
|
|
android:paddingEnd="10dp"
|
||
|
|
android:text="2026-04-09"
|
||
|
|
android:textColor="@color/textColor1"
|
||
|
|
app:layout_columnWeight="1" />
|
||
|
|
|
||
|
|
</androidx.gridlayout.widget.GridLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
style="@style/layout_card_style"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="12dp"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="3dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="#E3E6EC" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:background="@drawable/bg_grey"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="1"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="3dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="#E3E6EC" />
|
||
|
|
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp" />
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp"
|
||
|
|
android:layout_marginStart="4dp" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="3dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="#E3E6EC" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:background="@drawable/bg_grey"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="2"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="3dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="#E3E6EC" />
|
||
|
|
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp" />
|
||
|
|
<include
|
||
|
|
layout="@layout/layout_trae_info"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="100dp"
|
||
|
|
android:layout_marginStart="4dp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="55dp"
|
||
|
|
android:layout_margin="16dp"
|
||
|
|
android:background="@drawable/bg_button_blue"
|
||
|
|
android:letterSpacing="0.3"
|
||
|
|
android:onClick="generateWorkOrder"
|
||
|
|
android:text="完成处理"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
</LinearLayout></layout>
|