Commit f8583ba5 by mReturn

备件发货物流公司选择功能

parent 17e6dcfb
...@@ -156,16 +156,20 @@ public class PartSendPresenter extends PartSendContract.Presenter { ...@@ -156,16 +156,20 @@ public class PartSendPresenter extends PartSendContract.Presenter {
if (!canEdit || TextUtils.isEmpty(courierNum.get())) if (!canEdit || TextUtils.isEmpty(courierNum.get()))
return; return;
mView.showDialog(); if (!TextUtils.isEmpty(courierCompany.get())){
Api.getService(OrderService.class).getTransCompany(courierNum.get()).compose(Api.applySchedulers()) getTransCompanys();
.subscribe(baseObserver(data -> { }else {
if (data != null) { mView.showDialog();
courierCompany.set(data.getShipperName()); Api.getService(OrderService.class).getTransCompany(courierNum.get()).compose(Api.applySchedulers())
mShipperCode = data.getShipperCode(); .subscribe(baseObserver(data -> {
} else { if (data != null) {
getTransCompanys(); courierCompany.set(data.getShipperName());
} mShipperCode = data.getShipperCode();
}, responeThrowable -> getTransCompanys())); } else {
getTransCompanys();
}
}, responeThrowable -> getTransCompanys()));
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment