Compare commits

..

No commits in common. '118cf21ea47ee14d7d276c0cf7a1dd218b1bb549' and '40e1c536e6da1b2012811df20b605c06ad7e5db6' have entirely different histories.

@ -6,7 +6,7 @@ package com.example.tyre.util;
* @date: 2019-10-24 13:59 * @date: 2019-10-24 13:59
*/ */
public class MyUrl { public class MyUrl {
// public static String url="http://192.168.0.18:8020"; public static String url="http://192.168.137.1:8020";
// public static String url="http://www.qdhys.xyz:8020"; // public static String url="http://www.qdhys.xyz:8020";
public static String url="http://10.11.187.77:8020"; // public static String url="http://10.11.187.77:8020";
} }

@ -1,360 +1,262 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#F5F7FA"
android:padding="8dp"
tools:context=".DownActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- 页面标题 -->
<TextView
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="#FFFFFF"
android:elevation="4dp"
android:gravity="center"
android:layout_marginBottom="16dp"
android:padding="8dp"
android:text="轮胎卸车管理"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold" />
<!-- 主表单卡片 -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="12dp"
app:cardElevation="8dp"
android:layout_marginBottom="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp"> android:background="@color/allbg"
tools:context="com.example.tyre.DownActivity">
<!-- 第一行EPC芯片 (独立一行) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="12dp">
<TextView <TextView
android:layout_width="wrap_content" style="@style/tablebarStyleTwo"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_marginStart="4dp" android:layout_height="55dp"
android:text="EPC芯片" android:text="轮胎卸车" />
android:textColor="#666666"
android:textSize="12sp" /> <LinearLayout
android:layout_width="match_parent"
android:layout_height="45dp"
style="@style/layout_t12_s8_style">
<TextView
style="@style/alltext"
android:layout_width="80dp"
android:layout_height="match_parent"
android:text="扫描EPC:" />
<!-- 使用TextView显示EPC背景使用圆角 -->
<TextView <TextView
android:id="@+id/epc" android:id="@+id/epc"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" style="@style/scanTextStyle"
android:background="@drawable/rounded_input_bg" />
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="等待扫描..."
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
<!-- 第二行:胎号 + 自编号 -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="45dp"
android:orientation="horizontal" style="@style/layout_t12_s8_style">
android:layout_marginBottom="12dp">
<!-- 胎号 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="胎号" android:text="胎号:" />
android:textColor="#666666"
android:textSize="12sp" />
<TextView <TextView
android:id="@+id/th" android:id="@+id/th"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" style="@style/textView_info_style"
android:background="@drawable/rounded_input_bg" />
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="未读取"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
<!-- 自编号 -->
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="45dp"
android:layout_weight="1" style="@style/layout_t12_s8_style">
android:orientation="vertical">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="自编号" android:text="自编号:" />
android:textColor="#666666"
android:textSize="12sp" />
<TextView <TextView
android:id="@+id/zbh" android:id="@+id/zbh"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" style="@style/textView_info_style" />
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="--"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<!-- 第三行:车牌号 + 终止里程 -->
<LinearLayout <LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="45dp"
android:orientation="horizontal" style="@style/layout_t12_s8_style">
android:layout_marginBottom="12dp">
<!-- 车牌号 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="车牌号" android:text="车牌号:" />
android:textColor="#666666"
android:textSize="12sp" />
<TextView <TextView
android:id="@+id/car" android:id="@+id/car"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" style="@style/textView_info_style" />
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="--"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
<!-- 终止里程 -->
<LinearLayout <LinearLayout
android:layout_width="0dp" android:id="@+id/linearLayout1"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_weight="1" android:layout_height="45dp"
android:orientation="vertical"> style="@style/layout_t12_s8_style">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="终止里程" android:text="终止里程:" />
android:textColor="#666666"
android:textSize="12sp" />
<EditText <EditText
android:id="@+id/start" android:id="@+id/start"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" android:inputType="number"
android:background="@drawable/rounded_input_bg" style="@style/scanTextStyle"
android:gravity="center_vertical" android:hint="输入终止里程"/>
android:paddingStart="12dp"
android:textColor="#555"
android:textSize="16sp"
android:hint="输入里程"
android:inputType="number" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<!-- 第四行:拆下轮位 + 花纹深度 -->
<LinearLayout <LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="45dp"
android:orientation="horizontal" style="@style/layout_t12_s8_style">
android:layout_marginBottom="12dp">
<!-- 拆下轮位 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="拆下轮位" android:text="拆下轮位:" />
android:textColor="#666666"
android:textSize="12sp" />
<TextView <TextView
android:id="@+id/azlw" android:id="@+id/azlw"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp" style="@style/textView_info_style" />
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="--"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
<!-- 花纹深度 -->
<LinearLayout <LinearLayout
android:layout_width="0dp" android:id="@+id/linearLayout7"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_weight="1" android:layout_height="45dp"
android:orientation="vertical"> style="@style/layout_t12_s8_style">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="花纹深度 (mm)" android:text="花纹深度:" />
android:textColor="#666666"
android:textSize="12sp" />
<EditText <EditText
android:id="@+id/patternDepth" android:id="@+id/patternDepth"
android:layout_width="match_parent" android:layout_height="match_parent"
android:layout_height="48dp" android:layout_weight="1"
android:layout_marginTop="4dp" style="@style/textView_info_style"
android:background="@drawable/rounded_input_bg" android:imeOptions="actionDone"
android:gravity="center_vertical" android:inputType="numberDecimal"
android:paddingStart="12dp" />
android:textColor="#555"
android:textSize="16sp" <!-- 单位文本:固定宽度或包裹内容 -->
android:hint="输入数值" <TextView
android:inputType="numberDecimal" /> android:layout_width="40dp"
</LinearLayout> android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:gravity="center"
android:text="mm"
android:textColor="@color/black"
android:textSize="15sp" />
</LinearLayout> </LinearLayout>
<!-- 第五行:卸胎原因 (独立一行) -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="45dp"
android:orientation="vertical" style="@style/layout_t12_s8_style">
android:layout_marginBottom="8dp">
<TextView <TextView
android:layout_width="wrap_content" style="@style/alltext"
android:layout_height="wrap_content" android:layout_width="80dp"
android:layout_marginStart="4dp" android:layout_height="match_parent"
android:text="卸胎原因" android:text="卸胎原因:" />
android:textColor="#666666"
android:textSize="12sp" />
<Spinner <Spinner
android:id="@+id/unloading_reason" android:id="@+id/unloading_reason"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:paddingStart="12dp"
android:entries="@array/xietai" android:entries="@array/xietai"
android:spinnerMode="dropdown" /> android:textAlignment="center"/>
</LinearLayout> </LinearLayout>
<!-- 第六行:原因备注 (独立一行,仅在选择特定原因时显示或始终显示) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:text="原因备注"
android:textColor="#666666"
android:textSize="12sp" />
<EditText <EditText
android:id="@+id/unloading_reason_remark" android:id="@+id/unloading_reason_remark"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginStart="88dp"
android:background="@drawable/rounded_input_bg" android:layout_marginEnd="8dp"
android:gravity="center_vertical" style="@style/textView_info_style"
android:paddingStart="12dp" android:gravity="top"
android:textColor="#555" android:hint="输入卸胎原因"
android:textSize="16sp" android:minHeight="50dp"
android:hint="选填:补充说明..." /> android:padding="8dp"
</LinearLayout> android:textColor="@color/textColor1"
android:textSize="15sp" />
</LinearLayout> <!--<LinearLayout-->
</androidx.cardview.widget.CardView> <!--android:layout_width="match_parent"-->
<!--android:layout_height="40dp"-->
<!--android:layout_marginStart="8dp"-->
<!--android:layout_marginTop="20dp"-->
<!--android:layout_marginEnd="8dp"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="@+id/linearLayout3">-->
<!--<TextView-->
<!--style="@style/alltext"-->
<!--android:layout_width="80dp"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@color/blue2"-->
<!--android:text="操作人:" />-->
<!--<TextView-->
<!--android:id="@+id/czr"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginStart="8dp"-->
<!--android:layout_weight="1"-->
<!--android:textSize="22sp"-->
<!--android:textColor="@color/black"-->
<!--android:background="@drawable/bg_santex_coppy"-->
<!--android:gravity="center" />-->
<!--<Spinner-->
<!--android:id="@+id/spinner2"-->
<!--android:entries="@array/user"-->
<!--android:layout_width="30dp"-->
<!--android:layout_height="match_parent"></Spinner>-->
<!--</LinearLayout>-->
<!-- 底部操作按钮 -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
style="@style/layout_t12_s8_style"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_marginTop="24dp"> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<Button <Button
android:id="@+id/ok" android:id="@+id/ok"
android:layout_width="0dp" style="@style/buttonStyle"
android:layout_height="60dp" android:layout_width="150dp"
android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginEnd="8dp" android:text="完成" />
android:backgroundTint="#007AFF"
android:text="完 成 卸 车" <View
android:textColor="#FFFFFF" android:layout_width="50dp"
android:textSize="18sp" android:layout_height="match_parent" />
android:elevation="4dp" />
<Button <Button
android:id="@+id/back" android:id="@+id/back"
android:layout_width="0dp" style="@style/buttonStyle"
android:layout_height="60dp" android:layout_width="150dp"
android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginStart="8dp" android:text="返回" />
android:backgroundTint="#333333"
android:text="返 回"
android:textColor="#FFFFFF"
android:textSize="18sp"
android:elevation="4dp" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</ScrollView>
</LinearLayout>

Loading…
Cancel
Save