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
ccdc0bad
提交
ccdc0bad
authored
9月 29, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.退货详情
上级
9c7e8c34
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
7 行删除
+35
-7
ReturnApplyBean.java
...src/main/java/com/wd/workoffice/bean/ReturnApplyBean.java
+9
-0
ReturnDetailActivity.java
...orkoffice/ui/activity/bat/order/ReturnDetailActivity.java
+22
-7
activity_bat_retrun_detail.xml
app/src/main/res/layout/activity_bat_retrun_detail.xml
+4
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/bean/ReturnApplyBean.java
浏览文件 @
ccdc0bad
...
@@ -146,6 +146,15 @@ public class ReturnApplyBean {
...
@@ -146,6 +146,15 @@ public class ReturnApplyBean {
private
Object
boxCode
;
private
Object
boxCode
;
private
String
backStockName
;
private
String
backStockName
;
private
String
lot
;
private
String
lot
;
private
String
action
;
public
String
getAction
()
{
return
action
;
}
public
void
setAction
(
String
action
)
{
this
.
action
=
action
;
}
public
String
getLot
()
{
public
String
getLot
()
{
return
lot
;
return
lot
;
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/ReturnDetailActivity.java
浏览文件 @
ccdc0bad
...
@@ -20,6 +20,7 @@ import com.wd.workoffice.bean.workEnum.OrderType;
...
@@ -20,6 +20,7 @@ import com.wd.workoffice.bean.workEnum.OrderType;
import
com.wd.workoffice.bean.workEnum.PagePermissionType
;
import
com.wd.workoffice.bean.workEnum.PagePermissionType
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.EventBus
;
...
@@ -37,7 +38,7 @@ import io.reactivex.Observable;
...
@@ -37,7 +38,7 @@ import io.reactivex.Observable;
import
io.reactivex.disposables.Disposable
;
import
io.reactivex.disposables.Disposable
;
/**
/**
* 退
件
详情
* 退
货
详情
* author : flexible
* author : flexible
* email : lgd19940421@163.com
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
* github: https://github.com/FlexibleXd
...
@@ -131,6 +132,14 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -131,6 +132,14 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
View
viewLine6
;
View
viewLine6
;
@BindView
(
R
.
id
.
tv_dep6
)
@BindView
(
R
.
id
.
tv_dep6
)
TextView
tvDep6
;
TextView
tvDep6
;
@BindView
(
R
.
id
.
tv_title_desc
)
TextView
tvTitleDesc
;
@BindView
(
R
.
id
.
tv_return_num_desc
)
TextView
tvReturnNumDesc
;
@BindView
(
R
.
id
.
ll_stock
)
RelativeLayout
llStock
;
@BindView
(
R
.
id
.
tv_return_type_desc
)
TextView
tvReturnTypeDesc
;
private
ReturnApplyBean
.
RecordsBean
info
;
private
ReturnApplyBean
.
RecordsBean
info
;
private
String
orderType
;
private
String
orderType
;
...
@@ -155,17 +164,23 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -155,17 +164,23 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
tvName
.
setText
(
info
.
getProductSimpleCode
());
tvName
.
setText
(
info
.
getProductSimpleCode
());
tvProName
.
setText
(
info
.
getProductName
());
tvProName
.
setText
(
info
.
getProductName
());
tvProCode
.
setText
(
info
.
getProductSoleCode
());
tvProCode
.
setText
(
info
.
getProductSoleCode
());
tvReturnNum
.
setText
(
String
.
valueOf
(
info
.
getProductAmount
()
));
tvReturnNum
.
setText
(
MathUtils
.
converData
(
info
.
getProductAmount
(),
3
));
tvReturnType
.
setText
(
info
.
getReturnTypeName
());
tvReturnType
.
setText
(
info
.
getReturnTypeName
());
tvStock
.
setText
(
info
.
getBackStockName
());
tvStock
.
setText
(
info
.
getBackStockName
());
tvPerson
.
setText
(
String
.
valueOf
(
info
.
getCreatedByName
()
));
tvPerson
.
setText
(
info
.
getCreatedByName
(
));
tvTime
.
setText
(
info
.
getCreatedTime
());
tvTime
.
setText
(
info
.
getCreatedTime
());
tvLot
.
setText
(
info
.
getLot
());
tvLot
.
setText
(
info
.
getLot
());
tvRemark
.
setText
(
String
.
valueOf
(
info
.
getApplyRemark
()
));
tvRemark
.
setText
(
info
.
getApplyRemark
(
));
tvStatus
.
setText
(
WorkUtils
.
getReturnStatus
(
Integer
.
valueOf
(
info
.
getStatus
())));
tvStatus
.
setText
(
WorkUtils
.
getReturnStatus
(
Integer
.
valueOf
(
info
.
getStatus
())));
changeProcess
(
info
.
getStatus
());
changeProcess
(
info
.
getStatus
());
changeCheckView
(
info
.
getStatus
());
changeCheckView
(
info
.
getStatus
());
changePermission
(
info
.
getStatus
());
changePermission
(
info
.
getStatus
());
if
(
TextUtils
.
equals
(
info
.
getAction
(),
"2"
))
{
tvTitleDesc
.
setText
(
"报废详情"
);
tvReturnNumDesc
.
setText
(
"报废数量"
);
tvReturnTypeDesc
.
setText
(
"报废类型"
);
setTitle
(
"报废详情"
);
}
}
}
/**
/**
...
@@ -175,7 +190,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -175,7 +190,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
*/
*/
private
void
changeCheckView
(
String
status
)
{
private
void
changeCheckView
(
String
status
)
{
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SALE
.
getCode
()))
{
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SALE
.
getCode
()))
{
if
(
status
.
startsWith
(
"1"
)
&&
(!
status
.
endsWith
(
"4"
)
&&
!
status
.
endsWith
(
"5"
)))
{
if
(
status
.
startsWith
(
"1"
)
&&
(!
status
.
endsWith
(
"4"
)
&&
!
status
.
endsWith
(
"5"
)))
{
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
}
else
{
...
@@ -183,7 +198,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -183,7 +198,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
llCheck
.
setVisibility
(
View
.
GONE
);
llCheck
.
setVisibility
(
View
.
GONE
);
}
}
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
OUT_BUY
.
getCode
()))
{
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
OUT_BUY
.
getCode
()))
{
if
(
status
.
startsWith
(
"1"
)
&&
(!
status
.
endsWith
(
"4"
)
&&
!
status
.
endsWith
(
"5"
)))
{
if
(
status
.
startsWith
(
"1"
)
&&
(!
status
.
endsWith
(
"4"
)
&&
!
status
.
endsWith
(
"5"
)))
{
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
}
else
{
...
@@ -294,7 +309,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -294,7 +309,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
tvTop3
.
setText
(
"通过"
);
tvTop3
.
setText
(
"通过"
);
tvTop4
.
setText
(
"通过"
);
tvTop4
.
setText
(
"通过"
);
tvTop5
.
setText
(
"驳回"
);
tvTop5
.
setText
(
"驳回"
);
}
else
if
(
status
.
endsWith
(
"5"
))
{
}
else
if
(
status
.
endsWith
(
"5"
))
{
changeProcessView
(
viewNode2
,
viewLine2
,
0
);
changeProcessView
(
viewNode2
,
viewLine2
,
0
);
changeProcessView
(
viewNode3
,
viewLine3
,
0
);
changeProcessView
(
viewNode3
,
viewLine3
,
0
);
changeProcessView
(
viewNode4
,
viewLine4
,
0
);
changeProcessView
(
viewNode4
,
viewLine4
,
0
);
...
...
app/src/main/res/layout/activity_bat_retrun_detail.xml
浏览文件 @
ccdc0bad
...
@@ -270,6 +270,7 @@
...
@@ -270,6 +270,7 @@
android:background=
"@color/red_btn_bg"
/>
android:background=
"@color/red_btn_bg"
/>
<TextView
<TextView
android:id=
"@+id/tv_title_desc"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:layout_marginLeft=
"10mm"
...
@@ -287,6 +288,7 @@
...
@@ -287,6 +288,7 @@
android:paddingVertical=
"15mm"
>
android:paddingVertical=
"15mm"
>
<TextView
<TextView
android:id=
"@+id/tv_return_num_desc"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"退货数量"
/>
android:text=
"退货数量"
/>
...
@@ -329,6 +331,7 @@
...
@@ -329,6 +331,7 @@
android:paddingVertical=
"15mm"
>
android:paddingVertical=
"15mm"
>
<TextView
<TextView
android:id=
"@+id/tv_return_type_desc"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"退货类型"
/>
android:text=
"退货类型"
/>
...
@@ -342,6 +345,7 @@
...
@@ -342,6 +345,7 @@
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/ll_stock"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论