优化入库单位逻辑,识别阈值设置为0.8
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="11"
|
||||
android:gravity="center"
|
||||
android:text="新增物品"
|
||||
android:textColor="#ff141428"
|
||||
@@ -27,7 +28,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="62"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="40dp">
|
||||
|
||||
@@ -241,7 +242,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp">
|
||||
android:layout_marginTop="25dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="432dp"
|
||||
@@ -334,7 +335,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp">
|
||||
android:layout_marginTop="25dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="432dp"
|
||||
@@ -449,7 +450,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="采购单位"
|
||||
android:textColor="#ff141428"
|
||||
android:textSize="24sp"
|
||||
@@ -587,7 +588,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="160dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="15"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="50dp">
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="142dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="14"
|
||||
android:gravity="center"
|
||||
android:text="物品入库"
|
||||
android:textColor="#ff141428"
|
||||
@@ -27,7 +28,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="60"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
@@ -46,7 +47,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="70dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
@@ -76,7 +77,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -128,14 +129,23 @@
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@mipmap/ic_add_unit"
|
||||
tools:ignore="ContentDescription"
|
||||
android:visibility="gone"/>
|
||||
android:visibility="gone"
|
||||
tools:ignore="ContentDescription" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvUnitCalculate"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="30dp"
|
||||
android:gravity="end|center_vertical"
|
||||
tools:text="1袋=3斤"
|
||||
android:textColor="#ff141428"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@@ -160,8 +170,8 @@
|
||||
android:layout_marginEnd="70dp"
|
||||
android:background="#00000000"
|
||||
android:hint="请录入"
|
||||
android:maxLines="1"
|
||||
android:inputType="number"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:textColor="#ff141428"
|
||||
android:textColorHint="#FF96A0AA"
|
||||
@@ -183,7 +193,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -209,10 +219,10 @@
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginEnd="70dp"
|
||||
android:background="#00000000"
|
||||
android:hint="由入库数量和金额计算生成"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="由入库数量和金额计算生成"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:textColor="#ff141428"
|
||||
android:textColorHint="#FF96A0AA"
|
||||
@@ -233,7 +243,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="580dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -260,8 +270,8 @@
|
||||
android:layout_marginEnd="70dp"
|
||||
android:background="#00000000"
|
||||
android:hint="请录入"
|
||||
android:maxLines="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:textColor="#ff141428"
|
||||
android:textColorHint="#FF96A0AA"
|
||||
@@ -302,7 +312,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitCenter"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@mipmap/ic_launcher" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -357,7 +367,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="160dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="16"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="50dp">
|
||||
|
||||
Reference in New Issue
Block a user