提交 c1a5fe67 authored 作者: lgd's avatar lgd

1.添加弹窗

上级 fb81b2dc
...@@ -117,25 +117,40 @@ public class StoreSaleCarActivity extends WorkToolBarActivity { ...@@ -117,25 +117,40 @@ public class StoreSaleCarActivity extends WorkToolBarActivity {
@OnClick(R.id.tv_ok) @OnClick(R.id.tv_ok)
public void onViewClicked() { public void onViewClicked() {
String allPrice = "";
for (ProductBean.RecordsBean recordsBean : productList) {
allPrice = MathUtils.add(allPrice, MathUtils.multiply(recordsBean.getCarNum(), MathUtils.converData(recordsBean.getInternalPrice(), 3), 3), 3);
}
if (productList.size() == 0) { if (productList.size() == 0) {
toast("购物车里没有产品哦"); toast("购物车里没有产品哦");
return; return;
} }
startActivity(StoreSaleConfirmActivity.class, "pro", JSON.toJSONString(productList), QMUIDialog.MessageDialogBuilder builder = DialogUtils.okAndCancelDialog(this);
"subProcess", getIntent().getStringExtra("subProcess"), builder.setTitle("提示").setMessage("包含达到预警数量的产品,是否继续提交").
"supplierId", getIntent().getStringExtra("supplierId"), addAction("取消", new QMUIDialogAction.ActionListener() {
"subProcessId", getIntent().getStringExtra("subProcessId"), @Override
"inStockId", getIntent().getStringExtra("inStockId"), public void onClick(QMUIDialog dialog, int index) {
"intoStore", getIntent().getStringExtra("intoStore"), dialog.dismiss();
"outerStore", getIntent().getStringExtra("outerStore"), }
"customerId", getIntent().getStringExtra("customerId"), })
"receiveDeptId", getIntent().getStringExtra("receiveDeptId"), .addAction("确定", new QMUIDialogAction.ActionListener() {
"code", getIntent().getStringExtra("code"), @Override
"launchOrderAmount", allPrice); public void onClick(QMUIDialog dialog, int index) {
String allPrice = "";
for (ProductBean.RecordsBean recordsBean : productList) {
allPrice = MathUtils.add(allPrice, MathUtils.multiply(recordsBean.getCarNum(), MathUtils.converData(recordsBean.getInternalPrice(), 3), 3), 3);
}
startActivity(StoreSaleConfirmActivity.class, "pro", JSON.toJSONString(productList),
"subProcess", getIntent().getStringExtra("subProcess"),
"supplierId", getIntent().getStringExtra("supplierId"),
"subProcessId", getIntent().getStringExtra("subProcessId"),
"inStockId", getIntent().getStringExtra("inStockId"),
"intoStore", getIntent().getStringExtra("intoStore"),
"outerStore", getIntent().getStringExtra("outerStore"),
"customerId", getIntent().getStringExtra("customerId"),
"receiveDeptId", getIntent().getStringExtra("receiveDeptId"),
"code", getIntent().getStringExtra("code"),
"launchOrderAmount", allPrice);
dialog.dismiss();
}
}).show();
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论