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
f15e8ac3
提交
f15e8ac3
authored
6月 09, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改小数点
2.//TODO 坩埚下单,mes其他页面,mes用户反馈空也展示,编辑任务担当无法修改
上级
47f3950f
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
7 行删除
+10
-7
StoreFinancialAddActivity.java
...fice/ui/activity/bat/store/StoreFinancialAddActivity.java
+4
-3
DeviceBuyConfirmActivity.java
...office/ui/activity/bat/work/DeviceBuyConfirmActivity.java
+1
-1
FinancialAdapter.java
...n/java/com/wd/workoffice/ui/adapter/FinancialAdapter.java
+2
-1
FinancialAddAdapter.java
...ava/com/wd/workoffice/ui/adapter/FinancialAddAdapter.java
+2
-1
item_financial_add.xml
app/src/main/res/layout/item_financial_add.xml
+1
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreFinancialAddActivity.java
浏览文件 @
f15e8ac3
...
...
@@ -19,6 +19,7 @@ import com.wd.workoffice.bean.event.AddFinancialNumEvent;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.FinancialAddAdapter
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.PickTimeUtils
;
import
com.wd.workoffice.util.UserKeeper
;
import
com.wd.workoffice.util.WorkUtils
;
...
...
@@ -207,12 +208,12 @@ public class StoreFinancialAddActivity extends WorkToolBarActivity {
private
void
changeNum
()
{
Map
<
Integer
,
String
>
num
=
dataAdapter
.
getNum
();
int
total
=
0
;
String
total
=
"0"
;
List
<
JSONObject
>
financeTaxItems
=
new
ArrayList
<>();
for
(
Map
.
Entry
<
Integer
,
String
>
entry
:
num
.
entrySet
())
{
String
value
=
entry
.
getValue
();
if
(!
TextUtils
.
isEmpty
(
value
))
{
total
+=
Integer
.
valueOf
(
value
);
total
=
MathUtils
.
add
(
value
,
total
,
3
);
JSONObject
data
=
new
JSONObject
();
data
.
put
(
"taxType"
,
dataList
.
get
(
entry
.
getKey
()).
getId
());
data
.
put
(
"amount"
,
value
);
...
...
@@ -221,6 +222,6 @@ public class StoreFinancialAddActivity extends WorkToolBarActivity {
}
param
.
put
(
"totalMoney"
,
total
);
param
.
put
(
"financeTaxItems"
,
financeTaxItems
);
tvTotal
.
setText
(
total
+
""
);
tvTotal
.
setText
(
total
);
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceBuyConfirmActivity.java
浏览文件 @
f15e8ac3
...
...
@@ -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
()
+
""
,
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/FinancialAdapter.java
浏览文件 @
f15e8ac3
...
...
@@ -8,6 +8,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.FinancialBean
;
import
com.wd.workoffice.bean.LogisticBean
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.util.List
;
...
...
@@ -25,7 +26,7 @@ public class FinancialAdapter extends BaseQuickAdapter<FinancialBean.RecordsBean
@Override
protected
void
convert
(
BaseViewHolder
helper
,
FinancialBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
valueOf
(
item
.
getTotalMoney
()
));
helper
.
setText
(
R
.
id
.
tv_price
,
MathUtils
.
converData
(
item
.
getTotalMoney
(),
3
));
helper
.
setText
(
R
.
id
.
tv_status
,
WorkUtils
.
getFinancialStatus
(
Integer
.
valueOf
(
item
.
getStatus
())));
helper
.
setText
(
R
.
id
.
tv_time
,
item
.
getPayDate
()
+
""
);
if
(
TextUtils
.
equals
(
"2"
,
item
.
getStatus
()))
{
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/FinancialAddAdapter.java
浏览文件 @
f15e8ac3
...
...
@@ -10,6 +10,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.FinancialTypeBean
;
import
com.wd.workoffice.bean.event.AddFinancialNumEvent
;
import
com.wd.workoffice.util.WorkUtils
;
import
org.greenrobot.eventbus.EventBus
;
...
...
@@ -48,7 +49,7 @@ public class FinancialAddAdapter extends BaseQuickAdapter<FinancialTypeBean, Bas
@Override
public
void
onTextChanged
(
CharSequence
s
,
int
start
,
int
before
,
int
count
)
{
WorkUtils
.
keepDecimals
(
etNum
);
}
@Override
...
...
app/src/main/res/layout/item_financial_add.xml
浏览文件 @
f15e8ac3
...
...
@@ -29,7 +29,7 @@
android:layout_height=
"wrap_content"
android:text=
"0"
android:id=
"@+id/et_num"
android:inputType=
"number"
android:inputType=
"number
Decimal
"
android:paddingHorizontal=
"5mm"
android:textColor=
"#fff56c6c"
android:background=
"@null"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论