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