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

1.修改三位小数

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