提交 33c17f7b authored 作者: lgd's avatar lgd

1.修改bug

2.物流开票修改接口字段
上级 609380ca
...@@ -111,7 +111,7 @@ public class LogisticDetailBean { ...@@ -111,7 +111,7 @@ public class LogisticDetailBean {
*/ */
private Object createdBy; private Object createdBy;
private Object createdByName; private String createdByName;
private String createdTime; private String createdTime;
private Object updatedBy; private Object updatedBy;
private Object updatedByName; private Object updatedByName;
...@@ -133,6 +133,15 @@ public class LogisticDetailBean { ...@@ -133,6 +133,15 @@ public class LogisticDetailBean {
private double weight; private double weight;
private double fareMoney; private double fareMoney;
private Object idList; private Object idList;
private double money;
public double getMoney() {
return money;
}
public void setMoney(double money) {
this.money = money;
}
public Object getCreatedBy() { public Object getCreatedBy() {
return createdBy; return createdBy;
...@@ -142,11 +151,11 @@ public class LogisticDetailBean { ...@@ -142,11 +151,11 @@ public class LogisticDetailBean {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
public Object getCreatedByName() { public String getCreatedByName() {
return createdByName; return createdByName;
} }
public void setCreatedByName(Object createdByName) { public void setCreatedByName(String createdByName) {
this.createdByName = createdByName; this.createdByName = createdByName;
} }
......
...@@ -1101,14 +1101,22 @@ public interface ApiService { ...@@ -1101,14 +1101,22 @@ public interface ApiService {
@GET("/finance-dept-ar-ap-part/flow/page/list") @GET("/finance-dept-ar-ap-part/flow/page/list")
Observable<BaseBean> contactsMoneyFlow(@QueryMap Map<String, Object> param); Observable<BaseBean> contactsMoneyFlow(@QueryMap Map<String, Object> param);
// /**
// * 部门应收应付账款流水
// *
// * @return
// */
// @GET("/finance-logistics-log/page/list")
// Observable<BaseBean> contactsLogistic(@QueryMap Map<String, Object> param);
/** /**
* 部门应收应付账款流水 * 部门应收应付账款流水
* *
* @return * @return
*/ */
@GET("/finance-logistics-log/page/list") @GET("/finance-fare/dept/fare/page/list")
Observable<BaseBean> contactsLogistic(@QueryMap Map<String, Object> param); Observable<BaseBean> contactsLogistic(@QueryMap Map<String, Object> param);
/** /**
* 部门应收应付账款流水 * 部门应收应付账款流水
* *
......
...@@ -100,6 +100,10 @@ public class SendApplyAddActivity extends WorkToolBarActivity { ...@@ -100,6 +100,10 @@ public class SendApplyAddActivity extends WorkToolBarActivity {
rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false)); rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false));
WorkUtils.addNumListener(etRemark, tvInput1); WorkUtils.addNumListener(etRemark, tvInput1);
WorkUtils.addDecimalsListener(etTax); WorkUtils.addDecimalsListener(etTax);
llLogisticsCode.setVisibility(View.GONE);
llLogisticsPrice.setVisibility(View.GONE);
llTax.setVisibility(View.GONE);
rlSet.setVisibility(View.GONE);
} }
@Override @Override
...@@ -184,7 +188,7 @@ public class SendApplyAddActivity extends WorkToolBarActivity { ...@@ -184,7 +188,7 @@ public class SendApplyAddActivity extends WorkToolBarActivity {
if (entry.getValue()) { if (entry.getValue()) {
OrderDetail.OrderItemsBean recordsBean = dataList.get(entry.getKey()); OrderDetail.OrderItemsBean recordsBean = dataList.get(entry.getKey());
JSONObject returnData = new JSONObject(); JSONObject returnData = new JSONObject();
if (TextUtils.isEmpty(recordsBean.getChooseNum()) || Double.valueOf(recordsBean.getChooseNum()) == 0d) { if (TextUtils.isEmpty(recordsBean.getChooseNum()) || Double.parseDouble(recordsBean.getChooseNum()) == 0d) {
toast("请选择发货数量"); toast("请选择发货数量");
return false; return false;
} }
...@@ -215,23 +219,23 @@ public class SendApplyAddActivity extends WorkToolBarActivity { ...@@ -215,23 +219,23 @@ public class SendApplyAddActivity extends WorkToolBarActivity {
// toast("请选择发货时间"); // toast("请选择发货时间");
// return; // return;
// } // }
if (TextUtils.isEmpty(price)) { // if (TextUtils.isEmpty(price)) {
toast("请输入运费"); // toast("请输入运费");
return; // return;
} // }
if (TextUtils.isEmpty(tax)) { // if (TextUtils.isEmpty(tax)) {
toast("请输入税率"); // toast("请输入税率");
return; // return;
} // }
if (clientId == 0) { // if (clientId == 0) {
toast("请选择物流公司"); // toast("请选择物流公司");
return; // return;
} // }
param.put("trackingNumber", code); // param.put("trackingNumber", code);
param.put("fareMoney", price); // param.put("fareMoney", price);
param.put("applyRemark", remark); param.put("applyRemark", remark);
param.put("tax", tax); // param.put("tax", tax);
param.put("logisticsId", clientId); // param.put("logisticsId", clientId);
Observable<BaseBean> observable; Observable<BaseBean> observable;
if (TextUtils.equals(orderType, OrderType.SALE.getCode())) { if (TextUtils.equals(orderType, OrderType.SALE.getCode())) {
observable = RtfUtils.getRtf().sendApply(getIntent().getStringExtra("id"), WorkUtils.convertMapToBody(param)); observable = RtfUtils.getRtf().sendApply(getIntent().getStringExtra("id"), WorkUtils.convertMapToBody(param));
......
...@@ -239,7 +239,7 @@ public class FareAddActivity extends WorkToolBarActivity { ...@@ -239,7 +239,7 @@ public class FareAddActivity extends WorkToolBarActivity {
proList.addAll(getList); proList.addAll(getList);
proAdapter.notifyDataSetChanged(); proAdapter.notifyDataSetChanged();
} }
if (proList.size() == 0) { if (getList.size() == 0) {
proAdapter.loadMoreEnd(); proAdapter.loadMoreEnd();
} else { } else {
page++; page++;
......
...@@ -10,6 +10,7 @@ import com.chad.library.adapter.base.BaseViewHolder; ...@@ -10,6 +10,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.bean.LogisticDetailBean; import com.wd.workoffice.bean.LogisticDetailBean;
import com.wd.workoffice.bean.TicketAddBean; import com.wd.workoffice.bean.TicketAddBean;
import com.wd.workoffice.util.MathUtils;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -38,9 +39,9 @@ public class WorkAddLogisticProAdapter extends BaseQuickAdapter<LogisticDetailBe ...@@ -38,9 +39,9 @@ public class WorkAddLogisticProAdapter extends BaseQuickAdapter<LogisticDetailBe
helper.setText(R.id.tv_company, item.getLaunchDeptName()); helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_client, item.getCustomerName()); helper.setText(R.id.tv_client, item.getCustomerName());
helper.setText(R.id.tv_name, "快递单号:"+item.getTrackingNumber()); helper.setText(R.id.tv_name, "快递单号:"+item.getTrackingNumber());
helper.setText(R.id.tv_weight, String.valueOf(item.getWeight())); helper.setText(R.id.tv_weight, MathUtils.converData(item.getWeight(),3));
helper.setText(R.id.tv_tax, String.valueOf(item.getFareMoney())); helper.setText(R.id.tv_tax, MathUtils.converData(item.getMoney(),3));
helper.setText(R.id.tv_person, item.getCreatedUser()); helper.setText(R.id.tv_person, item.getCreatedByName());
CheckBox cbChoose = helper.getView(R.id.cb_check); CheckBox cbChoose = helper.getView(R.id.cb_check);
cbChoose.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { cbChoose.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论