|
|
@ -17,6 +17,10 @@
|
|
|
|
name="startState"
|
|
|
|
name="startState"
|
|
|
|
type="Boolean" />
|
|
|
|
type="Boolean" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
|
|
|
name="overState"
|
|
|
|
|
|
|
|
type="Boolean" />
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
<variable
|
|
|
|
name="submitState"
|
|
|
|
name="submitState"
|
|
|
|
type="Boolean" />
|
|
|
|
type="Boolean" />
|
|
|
@ -27,6 +31,7 @@
|
|
|
|
<variable
|
|
|
|
<variable
|
|
|
|
name="adapter1"
|
|
|
|
name="adapter1"
|
|
|
|
type="com.example.jingyuan_mes.adapter.check.DisposalFileAdapter" />
|
|
|
|
type="com.example.jingyuan_mes.adapter.check.DisposalFileAdapter" />
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
<variable
|
|
|
|
name="adapter2"
|
|
|
|
name="adapter2"
|
|
|
|
type="com.example.jingyuan_mes.adapter.check.DisposalFileAdapter" />
|
|
|
|
type="com.example.jingyuan_mes.adapter.check.DisposalFileAdapter" />
|
|
|
@ -487,7 +492,7 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}">
|
|
|
|
android:visibility="@{overState?View.VISIBLE:View.GONE}">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
style="@style/text_title"
|
|
|
|
style="@style/text_title"
|
|
|
@ -502,7 +507,6 @@
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/button_bg"
|
|
|
|
android:background="@drawable/button_bg"
|
|
|
|
|
|
|
|
|
|
|
|
android:onClick="addRepairPart"
|
|
|
|
android:onClick="addRepairPart"
|
|
|
|
android:text="添加" />
|
|
|
|
android:text="添加" />
|
|
|
|
|
|
|
|
|
|
|
@ -547,25 +551,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:padding="5dp"
|
|
|
|
|
|
|
|
android:layout_height="300dp"
|
|
|
|
android:layout_height="300dp"
|
|
|
|
android:adapter="@{partAdapter}"
|
|
|
|
android:adapter="@{partAdapter}"
|
|
|
|
android:background="@color/white"
|
|
|
|
android:background="@color/white"
|
|
|
|
|
|
|
|
android:padding="5dp"
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}"
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
style="@style/text_title"
|
|
|
|
style="@style/text_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:text="添加维修完成图片"
|
|
|
|
android:text="维修完成图片"
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}"
|
|
|
|
android:textColor="@color/blue"
|
|
|
|
android:textColor="@color/blue" />
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="70dp"
|
|
|
|
android:layout_height="70dp"
|
|
|
|
android:background="@color/white"
|
|
|
|
android:background="@color/white"
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
android:visibility="@{submitState?View.VISIBLE:View.GONE}">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
@ -581,8 +587,10 @@
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:onClick="overRepairTackphoto"
|
|
|
|
android:onClick="overRepairTackphoto"
|
|
|
|
android:src="@mipmap/ic_add_file" />
|
|
|
|
android:src="@mipmap/ic_add_file"
|
|
|
|
|
|
|
|
android:visibility="@{overState?View.VISIBLE:View.GONE}" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
style="@style/button_style"
|
|
|
|
style="@style/button_style"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
@ -590,7 +598,7 @@
|
|
|
|
android:layout_margin="20dp"
|
|
|
|
android:layout_margin="20dp"
|
|
|
|
android:onClick="endRepair"
|
|
|
|
android:onClick="endRepair"
|
|
|
|
android:text="维修完成"
|
|
|
|
android:text="维修完成"
|
|
|
|
android:visibility="@{submitState & !visState?View.VISIBLE:View.GONE}" />
|
|
|
|
android:visibility="@{overState?View.VISIBLE:View.GONE}" />
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
style="@style/button_style"
|
|
|
|
style="@style/button_style"
|
|
|
|