修改 半成品入库

master
wanghao 1 month ago
parent c5e8456dfa
commit cbb7d610ea

@ -66,6 +66,10 @@ public class SemiInVo extends BaseObservable {
return cardNo; return cardNo;
} }
public void setCardNo(String cardNo) {
this.cardNo = cardNo;
}
public String getShelfNo() { public String getShelfNo() {
return shelfNo; return shelfNo;
} }

@ -41,24 +41,29 @@ public class SemiInActivity extends BaseActivity implements View.OnFocusChangeLi
return true; return true;
}); });
semiInVehicle.setOnTouchListener((v, event) -> { // semiInVehicle.setOnTouchListener((v, event) -> {
if (event.getAction() == MotionEvent.ACTION_UP) { // final int DRAWABLE_RIGHT = 2;
// 获取触摸的位置 // if (event.getAction() == MotionEvent.ACTION_UP) {
int x = (int) event.getX(); // // 获取触摸的位置
if (x >= 464) { // int x = (int) event.getX();
selectVehicleInfo(); // // 获取图标的边界
return true; // int drawableRightWidth = binding.semiInVehicle.getCompoundDrawables()[DRAWABLE_RIGHT].getBounds().width();
} // int drawableRightStart = (int) (binding.semiInVehicle.getWidth() - binding.semiInVehicle.getPaddingRight() - drawableRightWidth);
} // // 判断是否点击了右侧图标
return false; // if (x >= drawableRightStart && x <= (binding.semiInVehicle.getWidth() - binding.semiInVehicle.getPaddingRight())) {
}); // selectVehicleInfo();
// return true;
// }
// }
// return false;
// });
semi=new SemiInVo(); semi=new SemiInVo();
binding.setData(semi); binding.setData(semi);
} }
private void selectVehicleInfo() { private void selectVehicleInfo() {
OkGo.<MyResult>post(url + "/wms/pda/semi/selectVehicleInfo") OkGo.<MyResult>post(url + "/wms/pda/semi/selectVehicleInfo")
.params("code", semi.getShelfNo()).execute(new MyRecultCall(dialog, this) { .params("code", semi.getCardNo()).execute(new MyRecultCall(dialog, this) {
@Override @Override
public void onSuccess(Response<MyResult> response) { public void onSuccess(Response<MyResult> response) {
super.onSuccess(response); super.onSuccess(response);

@ -33,44 +33,25 @@
<TextView <TextView
style="@style/text_title" style="@style/text_title"
android:layout_width="90dp" android:layout_width="110dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="扫描载具:" /> android:text="扫描流水卡:" />
<EditText <EditText
android:id="@+id/semi_in_vehicle" android:id="@+id/semi_in_vehicle"
style="@style/text_san" style="@style/text_san"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:drawableRight="@mipmap/icon_chaxun"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
android:inputType="text" android:inputType="text"
android:lines="1" android:lines="1"
android:maxLines="1" android:maxLines="1"
android:text="@={data.shelfNo}" /> android:text="@={data.cardNo}" />
<!-- android:text="@{data.cardNo}" />-->
</LinearLayout> </LinearLayout>
<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="110dp"
android:layout_height="match_parent"
android:text="流水卡号:" />
<TextView
style="@style/text_info"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@{data.cardNo}" />
<!-- android:text="@{vo.materialName}"-->
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -149,7 +130,7 @@
<TextView <TextView
style="@style/text_title" style="@style/text_title"
android:layout_width="90dp" android:layout_width="110dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="扫描库位:" /> android:text="扫描库位:" />
<!-- --> <!-- -->

Loading…
Cancel
Save