|
|
|
|
<?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>
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="vm"
|
|
|
|
|
type="com.example.aucma_mes.vm.RepairVm" />
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey"
|
|
|
|
|
tools:context=".RepairActivity"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:layout_marginEnd="4dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1"
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="产品条码:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/san_text_style"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@={vm.code}" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:layout_marginEnd="4dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1"
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="产品型号:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@={vm.materialName}" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:textColor="@color/blue"
|
|
|
|
|
android:text="缺陷详情" />
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="215dp"
|
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
|
android:background="@color/white" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1"
|
|
|
|
|
android:layout_width="90dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey"
|
|
|
|
|
android:text="处置措施:" />
|
|
|
|
|
<Spinner
|
|
|
|
|
android:id="@+id/check_spinner1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:entries="@{vm.stringList}"
|
|
|
|
|
android:onItemSelected="@{vm.onItemClick}"
|
|
|
|
|
android:spinnerMode="dropdown"
|
|
|
|
|
android:textAlignment="center" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/button_true_style"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
|
android:onClick="repairSubmit"
|
|
|
|
|
android:text="提交" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</layout>
|