提交 1897438a authored 作者: lgd's avatar lgd

1.修改三位小数

上级 5a9a15d5
...@@ -97,7 +97,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity { ...@@ -97,7 +97,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvClazz.setText(proBean.getProductTypeName()); tvClazz.setText(proBean.getProductTypeName());
tvKind.setText(proBean.getOfKind()); tvKind.setText(proBean.getOfKind());
tvUnit.setText(proBean.getUnit()); tvUnit.setText(proBean.getUnit());
tvWeight.setText(String.valueOf(proBean.getWeight())); tvWeight.setText(MathUtils.converData(proBean.getWeight(),3));
tvPrice.setText(MathUtils.converData(proBean.getInternalPrice(),3)); tvPrice.setText(MathUtils.converData(proBean.getInternalPrice(),3));
tvStatus.setText(TextUtils.equals(proBean.getStatus(), "1") ? "正常" : "冻结"); tvStatus.setText(TextUtils.equals(proBean.getStatus(), "1") ? "正常" : "冻结");
tvProcess.setText(proBean.getProcessType()); tvProcess.setText(proBean.getProcessType());
...@@ -135,8 +135,8 @@ public class WorkProDetailActivity extends WorkToolBarActivity { ...@@ -135,8 +135,8 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvClazz.setText(productInfo.getProductTypeName()); tvClazz.setText(productInfo.getProductTypeName());
tvKind.setText(productInfo.getOfKind()); tvKind.setText(productInfo.getOfKind());
tvUnit.setText(productInfo.getUnit()); tvUnit.setText(productInfo.getUnit());
tvWeight.setText(String.valueOf(productInfo.getWeight())); tvWeight.setText(MathUtils.converData(productInfo.getWeight(),3));
tvPrice.setText(String.valueOf(productInfo.getInternalPrice())); tvPrice.setText(MathUtils.converData(productInfo.getInternalPrice(),3));
tvStatus.setText(TextUtils.equals(productInfo.getStatus(), "1") ? "正常" : "冻结"); tvStatus.setText(TextUtils.equals(productInfo.getStatus(), "1") ? "正常" : "冻结");
tvProcess.setText(productInfo.getProcessType()); tvProcess.setText(productInfo.getProcessType());
...@@ -150,7 +150,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity { ...@@ -150,7 +150,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvDepName.setText(depData.getName()); tvDepName.setText(depData.getName());
tvDepType.setText("类别:" + WorkUtils.getClientType(depData.getPartTypeCode())); tvDepType.setText("类别:" + WorkUtils.getClientType(depData.getPartTypeCode()));
tvDepAddress.setText("地址:" + depData.getAddress()); tvDepAddress.setText("地址:" + depData.getAddress());
tvDepPrice.setText("渠道价格:" + (depData.getChannelPrice() == null ? "无" : String.valueOf(depData.getChannelPrice()))); tvDepPrice.setText("渠道价格:" + (depData.getChannelPrice() == null ? "无" : MathUtils.converData(depData.getChannelPrice(),3)));
tvDepPerson.setText("维护人:" + depData.getAccountName()); tvDepPerson.setText("维护人:" + depData.getAccountName());
tvDepPersonPhone.setText("维护人手机号:" + depData.getPhone()); tvDepPersonPhone.setText("维护人手机号:" + depData.getPhone());
tvDepPersonDep.setText("维护部门:" + depData.getDeptName()); tvDepPersonDep.setText("维护部门:" + depData.getDeptName());
......
...@@ -5,6 +5,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter; ...@@ -5,6 +5,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder; import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.bean.ProPriceBean; import com.wd.workoffice.bean.ProPriceBean;
import com.wd.workoffice.util.MathUtils;
import java.util.List; import java.util.List;
...@@ -21,7 +22,7 @@ public class WorkProPriceAdapter extends BaseQuickAdapter<ProPriceBean.RecordsBe ...@@ -21,7 +22,7 @@ public class WorkProPriceAdapter extends BaseQuickAdapter<ProPriceBean.RecordsBe
@Override @Override
protected void convert(BaseViewHolder helper, ProPriceBean.RecordsBean item) { protected void convert(BaseViewHolder helper, ProPriceBean.RecordsBean item) {
helper.setText(R.id.tv_price, String.valueOf(item.getNewPrice())); helper.setText(R.id.tv_price, MathUtils.converData(item.getNewPrice(),3));
helper.setText(R.id.tv_time, item.getCreatedTime()); helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_person, "提交人:".concat(item.getCreatedByName())); helper.setText(R.id.tv_person, "提交人:".concat(item.getCreatedByName()));
helper.setText(R.id.tv_remark, "备注:".concat(item.getRemark())); helper.setText(R.id.tv_remark, "备注:".concat(item.getRemark()));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论