Skip to content
项目
Groups
代码片段
帮助
正在加载...
Sign in / Register
Toggle navigation
W
workoffice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图表
统计图
Create a new issue
作业
提交
议题看板
Open sidebar
冷广德
workoffice
Commits
c1a5fe67
提交
c1a5fe67
authored
6月 21, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.添加弹窗
上级
fb81b2dc
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
4 行删除
+19
-4
StoreSaleCarActivity.java
...orkoffice/ui/activity/bat/store/StoreSaleCarActivity.java
+19
-4
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreSaleCarActivity.java
浏览文件 @
c1a5fe67
...
@@ -117,14 +117,25 @@ public class StoreSaleCarActivity extends WorkToolBarActivity {
...
@@ -117,14 +117,25 @@ 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
;
}
}
QMUIDialog
.
MessageDialogBuilder
builder
=
DialogUtils
.
okAndCancelDialog
(
this
);
builder
.
setTitle
(
"提示"
).
setMessage
(
"包含达到预警数量的产品,是否继续提交"
).
addAction
(
"取消"
,
new
QMUIDialogAction
.
ActionListener
()
{
@Override
public
void
onClick
(
QMUIDialog
dialog
,
int
index
)
{
dialog
.
dismiss
();
}
})
.
addAction
(
"确定"
,
new
QMUIDialogAction
.
ActionListener
()
{
@Override
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
),
startActivity
(
StoreSaleConfirmActivity
.
class
,
"pro"
,
JSON
.
toJSONString
(
productList
),
"subProcess"
,
getIntent
().
getStringExtra
(
"subProcess"
),
"subProcess"
,
getIntent
().
getStringExtra
(
"subProcess"
),
"supplierId"
,
getIntent
().
getStringExtra
(
"supplierId"
),
"supplierId"
,
getIntent
().
getStringExtra
(
"supplierId"
),
...
@@ -136,6 +147,10 @@ public class StoreSaleCarActivity extends WorkToolBarActivity {
...
@@ -136,6 +147,10 @@ public class StoreSaleCarActivity extends WorkToolBarActivity {
"receiveDeptId"
,
getIntent
().
getStringExtra
(
"receiveDeptId"
),
"receiveDeptId"
,
getIntent
().
getStringExtra
(
"receiveDeptId"
),
"code"
,
getIntent
().
getStringExtra
(
"code"
),
"code"
,
getIntent
().
getStringExtra
(
"code"
),
"launchOrderAmount"
,
allPrice
);
"launchOrderAmount"
,
allPrice
);
dialog
.
dismiss
();
}
}).
show
();
}
}
@Override
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论