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
de195379
提交
de195379
authored
8月 05, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改bug
2.TODO 三个功能测试,下单新增唛头
上级
9243a761
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
31 行增加
和
49 行删除
+31
-49
BackAddActivity.java
.../wd/workoffice/ui/activity/bat/order/BackAddActivity.java
+2
-9
ReturnAddActivity.java
...d/workoffice/ui/activity/bat/order/ReturnAddActivity.java
+27
-16
SupplierOrderDetailActivity.java
...ce/ui/activity/bat/order/SupplierOrderDetailActivity.java
+2
-2
activity_bat_retrun_detail.xml
app/src/main/res/layout/activity_bat_retrun_detail.xml
+0
-22
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/BackAddActivity.java
浏览文件 @
de195379
...
...
@@ -218,14 +218,7 @@ public class BackAddActivity extends WorkToolBarActivity {
List
<
OrderDetail
.
OrderItemsBean
>
orderItems
=
dataBean
.
getOrderItems
();
for
(
OrderDetail
.
OrderItemsBean
orderItem
:
orderItems
)
{
if
(
TextUtils
.
equals
(
orderItem
.
getId
(),
getIntent
().
getStringExtra
(
"orderItemId"
)))
{
if
(
TextUtils
.
isEmpty
(
enterStockType
))
{
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
orderItem
.
getCanUseProductSum
(),
3
)));
}
else
{
String
returnNum
=
TextUtils
.
equals
(
enterStockType
,
"1"
)
?
orderItem
.
getCanOutReturnSum
()
:
orderItem
.
getCanUsedReturnSum
();
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
returnNum
,
3
)));
}
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
orderItem
.
getCanPickReturnProductSum
(),
3
)));
}
}
}
...
...
@@ -321,7 +314,7 @@ public class BackAddActivity extends WorkToolBarActivity {
observable
=
RtfUtils
.
getRtf
().
returnPoAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SUPPLIER
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
pickReturnFoAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
else
{
}
else
{
observable
=
RtfUtils
.
getRtf
().
pickReturnFoAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
observable
.
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/ReturnAddActivity.java
浏览文件 @
de195379
...
...
@@ -211,12 +211,16 @@ public class ReturnAddActivity extends WorkToolBarActivity {
List
<
OrderDetail
.
OrderItemsBean
>
orderItems
=
dataBean
.
getOrderItems
();
for
(
OrderDetail
.
OrderItemsBean
orderItem
:
orderItems
)
{
if
(
TextUtils
.
equals
(
orderItem
.
getId
(),
getIntent
().
getStringExtra
(
"orderItemId"
)))
{
if
(
TextUtils
.
isEmpty
(
enterStockType
))
{
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
orderItem
.
getCanUseProductSum
(),
3
)));
if
(!
TextUtils
.
equals
(
orderType
,
OrderType
.
SUPPLIER
.
getCode
()))
{
// 0805新增 额外判断供应订单 不修改旧逻辑
if
(
TextUtils
.
isEmpty
(
enterStockType
))
{
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
orderItem
.
getCanUseProductSum
(),
3
)));
}
else
{
String
returnNum
=
TextUtils
.
equals
(
enterStockType
,
"1"
)
?
orderItem
.
getCanOutReturnSum
()
:
orderItem
.
getCanUsedReturnSum
();
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
returnNum
,
3
)));
}
}
else
{
String
returnNum
=
TextUtils
.
equals
(
enterStockType
,
"1"
)
?
orderItem
.
getCanOutReturnSum
()
:
orderItem
.
getCanUsedReturnSum
();
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
returnNum
,
3
)));
tvMaxNum
.
setText
(
String
.
format
(
"*退货最大数量(%s)"
,
MathUtils
.
converData
(
orderItem
.
getCanReturnProductSum
(),
3
)));
}
}
...
...
@@ -286,19 +290,26 @@ public class ReturnAddActivity extends WorkToolBarActivity {
List
<
OrderDetail
.
OrderItemsBean
>
orderItems
=
dataBean
.
getOrderItems
();
for
(
OrderDetail
.
OrderItemsBean
orderItem
:
orderItems
)
{
if
(
TextUtils
.
equals
(
orderItem
.
getId
(),
getIntent
().
getStringExtra
(
"orderItemId"
)))
{
if
(
TextUtils
.
isEmpty
(
enterStockType
))
{
if
(
new
BigDecimal
(
Double
.
valueOf
(
num
)).
compareTo
(
new
BigDecimal
(
orderItem
.
getCanUseProductSum
()))
==
1
)
{
toast
(
String
.
format
(
"可申请退货数量最大为%s"
,
MathUtils
.
converData
(
orderItem
.
getCanUseProductSum
(),
3
)));
return
;
if
(!
TextUtils
.
equals
(
orderType
,
OrderType
.
SUPPLIER
.
getCode
()))
{
// 0805新增 额外判断供应订单 不修改旧逻辑
if
(
TextUtils
.
isEmpty
(
enterStockType
))
{
if
(
new
BigDecimal
(
Double
.
valueOf
(
num
)).
compareTo
(
new
BigDecimal
(
orderItem
.
getCanUseProductSum
()))
==
1
)
{
toast
(
String
.
format
(
"可申请退货数量最大为%s"
,
MathUtils
.
converData
(
orderItem
.
getCanUseProductSum
(),
3
)));
return
;
}
}
else
{
String
returnNum
=
TextUtils
.
equals
(
enterStockType
,
"1"
)
?
orderItem
.
getCanOutReturnSum
()
:
orderItem
.
getCanUsedReturnSum
();
if
(
new
BigDecimal
(
Double
.
valueOf
(
num
)).
compareTo
(
new
BigDecimal
(
returnNum
))
==
1
)
{
toast
(
String
.
format
(
"可申请退货数量最大为%s"
,
MathUtils
.
converData
(
returnNum
,
3
)));
return
;
}
}
}
else
{
String
returnNum
=
TextUtils
.
equals
(
enterStockType
,
"1"
)
?
orderItem
.
getCanOutReturnSum
()
:
orderItem
.
getCanUsedReturnSum
();
if
(
new
BigDecimal
(
Double
.
valueOf
(
num
)).
compareTo
(
new
BigDecimal
(
returnNum
))
==
1
)
{
toast
(
String
.
format
(
"可申请退货数量最大为%s"
,
MathUtils
.
converData
(
returnNum
,
3
)));
if
(
new
BigDecimal
(
Double
.
valueOf
(
num
)).
compareTo
(
new
BigDecimal
(
orderItem
.
getCanReturnProductSum
()))
==
1
)
{
toast
(
String
.
format
(
"可申请退货数量最大为%s"
,
MathUtils
.
converData
(
orderItem
.
getCanReturnProductSum
(),
3
)));
return
;
}
}
}
...
...
@@ -324,8 +335,8 @@ public class ReturnAddActivity extends WorkToolBarActivity {
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
OUT_BUY
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
returnPoAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SUPPLIER
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
return
P
oAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
else
{
observable
=
RtfUtils
.
getRtf
().
return
F
oAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
else
{
observable
=
RtfUtils
.
getRtf
().
returnSoAdd
(
getIntent
().
getStringExtra
(
"id"
),
WorkUtils
.
convertMapToBody
(
param
));
}
observable
.
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/SupplierOrderDetailActivity.java
浏览文件 @
de195379
...
...
@@ -336,7 +336,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity {
"deptId"
,
dataBean
.
getLaunchDeptId
()
+
""
,
"returnNum"
,
proList
.
get
(
position
).
getCanReturnProductSum
(),
"orderType"
,
dataBean
.
getExpandInfo
().
getOrderType
(),
"num"
,
proList
.
get
(
position
).
getCan
Use
ProductSum
()
+
""
,
"num"
,
proList
.
get
(
position
).
getCan
Return
ProductSum
()
+
""
,
"product"
,
proList
.
get
(
position
).
getProductName
(),
"simpleCode"
,
proList
.
get
(
position
).
getProductSimpleCode
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
),
...
...
@@ -351,7 +351,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity {
"deptId"
,
dataBean
.
getLaunchDeptId
()
+
""
,
"returnNum"
,
proList
.
get
(
position
).
getCanPickReturnProductSum
(),
"orderType"
,
dataBean
.
getExpandInfo
().
getOrderType
(),
"num"
,
proList
.
get
(
position
).
getCan
Use
ProductSum
()
+
""
,
"num"
,
proList
.
get
(
position
).
getCan
PickReturn
ProductSum
()
+
""
,
"product"
,
proList
.
get
(
position
).
getProductName
(),
"simpleCode"
,
proList
.
get
(
position
).
getProductSimpleCode
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
),
...
...
app/src/main/res/layout/activity_bat_retrun_detail.xml
浏览文件 @
de195379
...
...
@@ -392,28 +392,6 @@
android:textColor=
"@color/flexible_text_gray"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@color/white"
android:gravity=
"center"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"15mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"部门名称"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"销售二公司"
android:textColor=
"@color/flexible_text_gray"
/>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论