发单后数据清除,优化运费提示信息
This commit is contained in:
parent
7f87a1b050
commit
294462b370
@ -114,6 +114,9 @@ public class HomeFragment extends BaseFragment {
|
|||||||
private TextView etCar;
|
private TextView etCar;
|
||||||
private EditText requirement;
|
private EditText requirement;
|
||||||
private TextView effectiveTime;
|
private TextView effectiveTime;
|
||||||
|
private TextView vehicle_type;
|
||||||
|
private TextView vehicle_length;
|
||||||
|
private TextView tvHwdlJt;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void msgMethod(Message m) {
|
public void msgMethod(Message m) {
|
||||||
@ -142,6 +145,7 @@ public class HomeFragment extends BaseFragment {
|
|||||||
if (CacheGroup.cacheList.get(OrderRequest.ORDER_PULIST_ORDER) != null) {
|
if (CacheGroup.cacheList.get(OrderRequest.ORDER_PULIST_ORDER) != null) {
|
||||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get(OrderRequest.ORDER_PULIST_ORDER), BaseBean.class);
|
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get(OrderRequest.ORDER_PULIST_ORDER), BaseBean.class);
|
||||||
if (bb.getCode() == 200) {
|
if (bb.getCode() == 200) {
|
||||||
|
clearData();
|
||||||
Toast.makeText(con, "创建订单成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(con, "创建订单成功", Toast.LENGTH_SHORT).show();
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
map.put("expenditure", money);
|
map.put("expenditure", money);
|
||||||
@ -361,8 +365,8 @@ public class HomeFragment extends BaseFragment {
|
|||||||
//车型车长
|
//车型车长
|
||||||
RelativeLayout r3 = v.findViewById(R.id.r3);
|
RelativeLayout r3 = v.findViewById(R.id.r3);
|
||||||
RelativeLayout r31 = v.findViewById(R.id.r31);
|
RelativeLayout r31 = v.findViewById(R.id.r31);
|
||||||
TextView vehicle_type = v.findViewById(R.id.vehicle_type);
|
vehicle_type = v.findViewById(R.id.vehicle_type);
|
||||||
TextView vehicle_length = v.findViewById(R.id.vehicle_length);
|
vehicle_length = v.findViewById(R.id.vehicle_length);
|
||||||
//业务类型
|
//业务类型
|
||||||
RelativeLayout r4 = v.findViewById(R.id.r4);
|
RelativeLayout r4 = v.findViewById(R.id.r4);
|
||||||
TextView businessType = v.findViewById(R.id.businessType);
|
TextView businessType = v.findViewById(R.id.businessType);
|
||||||
@ -372,7 +376,7 @@ public class HomeFragment extends BaseFragment {
|
|||||||
|
|
||||||
//货物大类 交通厅
|
//货物大类 交通厅
|
||||||
RelativeLayout r7 = v.findViewById(R.id.r7);
|
RelativeLayout r7 = v.findViewById(R.id.r7);
|
||||||
TextView tvHwdlJt = v.findViewById(R.id.tvHwdlJt);
|
tvHwdlJt = v.findViewById(R.id.tvHwdlJt);
|
||||||
|
|
||||||
//货物大类 安联
|
//货物大类 安联
|
||||||
RelativeLayout r8 = v.findViewById(R.id.r8);
|
RelativeLayout r8 = v.findViewById(R.id.r8);
|
||||||
@ -833,4 +837,29 @@ public class HomeFragment extends BaseFragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void clearData(){
|
||||||
|
OrderInputBean.PutTableDataDTO op = new OrderInputBean.PutTableDataDTO();
|
||||||
|
OrderInputBean.SendTableDataDTO os = new OrderInputBean.SendTableDataDTO();
|
||||||
|
oib.getPutTableData().set(0,op);
|
||||||
|
oib.getSendTableData().set(0,os);
|
||||||
|
brv_loading.createV(con, oib.getSendTableData(), R.layout.huoyuan_centent_loading_info).
|
||||||
|
setOnItemViewListener((position, o, v1) -> {
|
||||||
|
OrderInputBean.SendTableDataDTO oss = (OrderInputBean.SendTableDataDTO) o;
|
||||||
|
oss.setSort(position + 1);
|
||||||
|
initLoadingInfo(o, v1, 0, position);
|
||||||
|
});
|
||||||
|
brv_discharge.createV(con, oib.getPutTableData(), R.layout.huoyuan_centent_discharge_info).
|
||||||
|
setOnItemViewListener((position, o, v2) -> {
|
||||||
|
OrderInputBean.PutTableDataDTO ops = (OrderInputBean.PutTableDataDTO) o;
|
||||||
|
ops.setSort(position + 1);
|
||||||
|
initLoadingInfo(o, v2, 1, position);
|
||||||
|
});
|
||||||
|
|
||||||
|
etCar.setText("");
|
||||||
|
vehicle_type.setText("");
|
||||||
|
vehicle_length.setText("");
|
||||||
|
tvHwdlJt.setText("");
|
||||||
|
requirement.setText("");
|
||||||
|
money_view.setText("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -464,6 +464,12 @@ public class NodeInfoActivity extends BaseActivity {
|
|||||||
String money = etMoney.getText().toString();
|
String money = etMoney.getText().toString();
|
||||||
String startTim = tvStartTime.getText().toString();
|
String startTim = tvStartTime.getText().toString();
|
||||||
String endTimeDis = tvEndTimeDis.getText().toString();
|
String endTimeDis = tvEndTimeDis.getText().toString();
|
||||||
|
|
||||||
|
if (TextUtils.isEmpty(money)){
|
||||||
|
ToastUtil.show(con, "请填写运费");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (TextUtils.isEmpty(name) || TextUtils.isEmpty(nameDis) ||
|
if (TextUtils.isEmpty(name) || TextUtils.isEmpty(nameDis) ||
|
||||||
TextUtils.isEmpty(money) || TextUtils.isEmpty(startTim)) {
|
TextUtils.isEmpty(money) || TextUtils.isEmpty(startTim)) {
|
||||||
ToastUtil.show(con, "请完善装卸货信息");
|
ToastUtil.show(con, "请完善装卸货信息");
|
||||||
|
Loading…
Reference in New Issue
Block a user