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
cc08d32d
提交
cc08d32d
authored
6月 11, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.限制三位小数
2.//TODO 坩埚下单,mes其他页面,mes用户反馈空也展示,编辑任务担当无法修改
上级
1f774d92
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
13 行增加
和
12 行删除
+13
-12
DeviceBuyConfirmActivity.java
...office/ui/activity/bat/work/DeviceBuyConfirmActivity.java
+1
-1
WorkFinancialLogisticsSubmitActivity.java
...tivity/bat/work/WorkFinancialLogisticsSubmitActivity.java
+2
-2
WorkFinancialReceiveTicketSubmitActivity.java
...ty/bat/work/WorkFinancialReceiveTicketSubmitActivity.java
+2
-1
WorkFinancialTicketSubmitActivity.java
.../activity/bat/work/WorkFinancialTicketSubmitActivity.java
+1
-1
DeviceCarAdapter.java
...n/java/com/wd/workoffice/ui/adapter/DeviceCarAdapter.java
+2
-2
DeviceConfirmAdapter.java
...va/com/wd/workoffice/ui/adapter/DeviceConfirmAdapter.java
+2
-2
StoreCarAdapter.java
...in/java/com/wd/workoffice/ui/adapter/StoreCarAdapter.java
+1
-1
WorkAddTicketOrderAdapter.java
...m/wd/workoffice/ui/adapter/WorkAddTicketOrderAdapter.java
+2
-2
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceBuyConfirmActivity.java
浏览文件 @
cc08d32d
...
...
@@ -199,7 +199,7 @@ public class DeviceBuyConfirmActivity extends WorkToolBarActivity {
tvNum
.
setText
(
"共 "
.
concat
(
proList
.
size
()
+
""
).
concat
(
" 件"
));
String
allPrice
=
""
;
for
(
DeviceBean
.
RecordsBean
recordsBean
:
proList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
recordsBean
.
getCarPrice
(
)
,
3
),
3
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
MathUtils
.
converData
(
recordsBean
.
getCarPrice
(),
3
)
,
3
),
3
);
}
tvPrice
.
setText
(
"总计: ¥ "
.
concat
(
allPrice
));
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkFinancialLogisticsSubmitActivity.java
浏览文件 @
cc08d32d
...
...
@@ -113,8 +113,8 @@ public class WorkFinancialLogisticsSubmitActivity extends WorkToolBarActivity {
String
totalWeight
=
""
;
String
applyAmount
=
""
;
for
(
LogisticDetailBean
.
RecordsBean
recordsBean
:
dataList
)
{
totalWeight
=
MathUtils
.
add
(
totalWeight
,
String
.
valueOf
(
recordsBean
.
getWeight
()
),
3
);
applyAmount
=
MathUtils
.
add
(
applyAmount
,
String
.
valueOf
(
recordsBean
.
getFareMoney
()
),
3
);
totalWeight
=
MathUtils
.
add
(
totalWeight
,
MathUtils
.
converData
(
recordsBean
.
getWeight
(),
3
),
3
);
applyAmount
=
MathUtils
.
add
(
applyAmount
,
MathUtils
.
converData
(
recordsBean
.
getFareMoney
(),
3
),
3
);
}
param
.
put
(
"totalWeight"
,
totalWeight
);
param
.
put
(
"applyAmount"
,
applyAmount
);
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkFinancialReceiveTicketSubmitActivity.java
浏览文件 @
cc08d32d
...
...
@@ -117,7 +117,8 @@ public class WorkFinancialReceiveTicketSubmitActivity extends WorkToolBarActivit
private
void
changeNumAndPrice
()
{
String
allPrice
=
""
;
for
(
TicketAddBean
.
RecordsBean
recordsBean
:
dataList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getCarPrice
(),
2
),
2
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
(),
recordsBean
.
getCarPrice
(),
3
),
3
);
}
tvPrice
.
setText
(
" ¥ "
.
concat
(
allPrice
));
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkFinancialTicketSubmitActivity.java
浏览文件 @
cc08d32d
...
...
@@ -121,7 +121,7 @@ public class WorkFinancialTicketSubmitActivity extends WorkToolBarActivity {
private
void
changeNumAndPrice
()
{
String
allPrice
=
""
;
for
(
TicketAddBean
.
RecordsBean
recordsBean
:
dataList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getCarPrice
(),
2
),
2
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
recordsBean
.
getCarPrice
(),
3
),
3
);
}
tvPrice
.
setText
(
" ¥ "
.
concat
(
allPrice
));
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/DeviceCarAdapter.java
浏览文件 @
cc08d32d
...
...
@@ -44,7 +44,7 @@ public class DeviceCarAdapter extends BaseQuickAdapter<DeviceBean.RecordsBean, B
@Override
public
void
OnNumberChanged
(
String
vs
)
{
item
.
setCarNum
(
vs
);
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
vs
+
""
,
item
.
getCarPrice
(),
3
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
vs
,
item
.
getCarPrice
(),
3
));
EventBus
.
getDefault
().
post
(
new
ModifyCarEvent
(
JSON
.
toJSONString
(
getData
())));
}
...
...
@@ -70,7 +70,7 @@ public class DeviceCarAdapter extends BaseQuickAdapter<DeviceBean.RecordsBean, B
return
;
}
item
.
setCarPrice
(
s
.
toString
());
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
item
.
getCarNum
()
+
""
,
item
.
getCarPrice
(),
2
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
item
.
getCarNum
()
,
item
.
getCarPrice
(),
3
));
EventBus
.
getDefault
().
post
(
new
ModifyCarEvent
(
JSON
.
toJSONString
(
getData
())));
}
});
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/DeviceConfirmAdapter.java
浏览文件 @
cc08d32d
...
...
@@ -37,8 +37,8 @@ public class DeviceConfirmAdapter extends BaseQuickAdapter<DeviceBean.RecordsBea
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getSpecification
());
helper
.
setText
(
R
.
id
.
tv_price
,
item
.
getCarPrice
());
helper
.
setText
(
R
.
id
.
tv_num
,
item
.
getCarNum
()
+
""
);
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
item
.
getCarNum
()
+
""
,
item
.
getCarPrice
()
+
""
,
2
));
helper
.
setText
(
R
.
id
.
tv_num
,
item
.
getCarNum
());
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
item
.
getCarNum
()
,
item
.
getCarPrice
()
,
3
));
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/StoreCarAdapter.java
浏览文件 @
cc08d32d
...
...
@@ -78,7 +78,7 @@ public class StoreCarAdapter extends BaseQuickAdapter<ProductBean.RecordsBean, B
@Override
public
void
OnNumberChanged
(
String
vs
)
{
item
.
setCarNum
(
vs
);
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
vs
,
String
.
valueOf
(
item
.
getInternalPrice
()
),
3
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
vs
,
MathUtils
.
converData
(
item
.
getInternalPrice
(),
3
),
3
));
EventBus
.
getDefault
().
post
(
new
ModifyCarEvent
(
JSON
.
toJSONString
(
getData
())));
}
});
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/WorkAddTicketOrderAdapter.java
浏览文件 @
cc08d32d
...
...
@@ -34,9 +34,9 @@ public class WorkAddTicketOrderAdapter extends BaseQuickAdapter<TicketAddBean.Re
helper
.
setText
(
R
.
id
.
tv_order
,
item
.
getOrderId
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getProductSpec
());
helper
.
setText
(
R
.
id
.
tv_unit
,
item
.
getProductUnit
());
helper
.
setText
(
R
.
id
.
tv_apply_num
,
item
.
getProductCount
()
+
""
);
helper
.
setText
(
R
.
id
.
tv_apply_num
,
MathUtils
.
converData
(
item
.
getProductCount
(),
3
)
);
helper
.
setText
(
R
.
id
.
tv_price
,
item
.
getCarPrice
());
helper
.
setText
(
R
.
id
.
tv_num
,
item
.
getCarNum
()
+
""
);
helper
.
setText
(
R
.
id
.
tv_num
,
item
.
getCarNum
());
if
(
type
==
1
)
{
helper
.
setVisible
(
R
.
id
.
iv_cart
,
false
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论