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.
142 lines
4.7 KiB
XML
142 lines
4.7 KiB
XML
<?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="title"
|
|
type="String" />
|
|
|
|
<variable
|
|
name="detailAdapter"
|
|
type="com.example.haiwei_mom.adapter.RawOutDetailAdapter" />
|
|
|
|
<variable
|
|
name="subBeen"
|
|
type="com.example.haiwei_mom.data.RawOutSubmitBeen" />
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".wms.raw.RawOutActivity">
|
|
|
|
<include
|
|
layout="@layout/toolbar"
|
|
app:title='@{title??"原材料出库"}' />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginEnd="4dp">
|
|
|
|
<TextView
|
|
style="@style/text_title"
|
|
android:layout_width="90dp"
|
|
android:layout_height="match_parent"
|
|
android:text="出库单号:" />
|
|
|
|
<EditText
|
|
android:id="@+id/raw_out_code"
|
|
style="@style/text_san"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:drawableRight="@mipmap/icon_chaxun"
|
|
android:text="@={subBeen.outstockCode}"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:text="待出库物料"
|
|
android:textColor="@color/blue" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:adapter="@{detailAdapter}"
|
|
android:padding="5dp"
|
|
android:background="@color/white"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="4dp">
|
|
|
|
<TextView
|
|
style="@style/text_title"
|
|
android:layout_width="110dp"
|
|
android:layout_height="match_parent"
|
|
android:text="目标库位:" />
|
|
<!-- -->
|
|
<EditText
|
|
android:id="@+id/raw_out_location"
|
|
style="@style/text_san"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="45dp"
|
|
android:text="@={subBeen.locationCode}"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="4dp">
|
|
|
|
<TextView
|
|
style="@style/text_title"
|
|
android:layout_width="110dp"
|
|
android:layout_height="match_parent"
|
|
android:text="扫描批次码:" />
|
|
|
|
<EditText
|
|
android:id="@+id/raw_out_goods"
|
|
style="@style/text_san"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="@={subBeen.batchCode}"/>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="4dp">
|
|
|
|
<TextView
|
|
style="@style/text_title"
|
|
android:layout_width="110dp"
|
|
android:layout_height="match_parent"
|
|
android:text="出库数量:" />
|
|
|
|
<EditText
|
|
style="@style/text_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:inputType="numberDecimal"
|
|
android:text="@={subBeen.outstockQty}"/>
|
|
|
|
</LinearLayout>
|
|
<Button
|
|
style="@style/button_style"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="55dp"
|
|
android:layout_margin="12dp"
|
|
android:onClick="rawOutSubmit"
|
|
android:text="提交" />
|
|
</LinearLayout>
|
|
|
|
|
|
</layout> |