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
d8acb850
提交
d8acb850
authored
5月 16, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.退货
2.//TODO 设备三个子菜单,退件详情(审核历史(缺接口)),领用申请列表(数据不对),坩埚下单,mes其他页面,编辑任务担当无法修改.支数参数
上级
95edff1e
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
62 行增加
和
16 行删除
+62
-16
CheckReturnEvent.java
...n/java/com/wd/workoffice/bean/event/CheckReturnEvent.java
+14
-0
OutOrderDetailActivity.java
...koffice/ui/activity/bat/order/OutOrderDetailActivity.java
+1
-0
ReturnApplyActivity.java
...workoffice/ui/activity/bat/order/ReturnApplyActivity.java
+24
-0
ReturnDetailActivity.java
...orkoffice/ui/activity/bat/order/ReturnDetailActivity.java
+14
-4
OutOrderDetailProductAdapter.java
...d/workoffice/ui/adapter/OutOrderDetailProductAdapter.java
+5
-10
activity_bat_retrun_detail.xml
app/src/main/res/layout/activity_bat_retrun_detail.xml
+1
-1
view_return_process.xml
app/src/main/res/layout/view_return_process.xml
+3
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/bean/event/CheckReturnEvent.java
0 → 100644
浏览文件 @
d8acb850
package
com
.
wd
.
workoffice
.
bean
.
event
;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public
class
CheckReturnEvent
{
public
CheckReturnEvent
()
{
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/OutOrderDetailActivity.java
浏览文件 @
d8acb850
...
@@ -256,6 +256,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
...
@@ -256,6 +256,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
rlSet
.
setVisibility
(
View
.
VISIBLE
);
rlSet
.
setVisibility
(
View
.
VISIBLE
);
tvSendApply
.
setVisibility
(
View
.
GONE
);
break
;
break
;
default
:
default
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llBottom
.
setVisibility
(
View
.
VISIBLE
);
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/ReturnApplyActivity.java
浏览文件 @
d8acb850
...
@@ -12,12 +12,17 @@ import com.wd.workoffice.R;
...
@@ -12,12 +12,17 @@ import com.wd.workoffice.R;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.ReturnApplyBean
;
import
com.wd.workoffice.bean.ReturnApplyBean
;
import
com.wd.workoffice.bean.event.CheckMoneytEvent
;
import
com.wd.workoffice.bean.event.CheckReturnEvent
;
import
com.wd.workoffice.bean.workEnum.OrderType
;
import
com.wd.workoffice.bean.workEnum.OrderType
;
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.ui.adapter.RetrunSendApplyAdapter
;
import
com.wd.workoffice.ui.adapter.RetrunSendApplyAdapter
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.Subscribe
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -155,4 +160,23 @@ public class ReturnApplyActivity extends WorkToolBarActivity {
...
@@ -155,4 +160,23 @@ public class ReturnApplyActivity extends WorkToolBarActivity {
return
R
.
layout
.
activity_pro_price
;
return
R
.
layout
.
activity_pro_price
;
}
}
@Override
public
void
onStart
()
{
super
.
onStart
();
EventBus
.
getDefault
().
register
(
this
);
}
@Override
public
void
onStop
()
{
super
.
onStop
();
EventBus
.
getDefault
().
unregister
(
this
);
}
@Subscribe
public
void
refresh
(
CheckReturnEvent
event
)
{
page
=
1
;
param
.
put
(
"current"
,
page
);
getData
();
}
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/ReturnDetailActivity.java
浏览文件 @
d8acb850
...
@@ -18,6 +18,7 @@ import com.wd.workoffice.app.BaseBean;
...
@@ -18,6 +18,7 @@ import com.wd.workoffice.app.BaseBean;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.ReturnApplyBean
;
import
com.wd.workoffice.bean.ReturnApplyBean
;
import
com.wd.workoffice.bean.event.CheckAddStockEvent
;
import
com.wd.workoffice.bean.event.CheckAddStockEvent
;
import
com.wd.workoffice.bean.event.CheckReturnEvent
;
import
com.wd.workoffice.bean.workEnum.OrderType
;
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
;
...
@@ -121,6 +122,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -121,6 +122,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
TextView
tvDep4
;
TextView
tvDep4
;
@BindView
(
R
.
id
.
tv_dep5
)
@BindView
(
R
.
id
.
tv_dep5
)
TextView
tvDep5
;
TextView
tvDep5
;
@BindView
(
R
.
id
.
ll_process
)
LinearLayout
llProcess
;
private
ReturnApplyBean
.
RecordsBean
info
;
private
ReturnApplyBean
.
RecordsBean
info
;
private
String
orderType
;
private
String
orderType
;
...
@@ -171,7 +174,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -171,7 +174,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
(
TextUtils
.
equals
(
"0"
,
status
))
{
if
(
status
.
startsWith
(
"1"
)
&&
!
status
.
endsWith
(
"4"
))
{
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
}
else
{
...
@@ -179,7 +182,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -179,7 +182,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
llCheck
.
setVisibility
(
View
.
GONE
);
llCheck
.
setVisibility
(
View
.
GONE
);
}
}
rlHistory
.
setVisibility
(
View
.
GONE
);
rlHistory
.
setVisibility
(
View
.
GONE
);
ll
Check
.
setVisibility
(
View
.
GONE
);
ll
Process
.
setVisibility
(
View
.
GONE
);
}
}
}
}
...
@@ -360,8 +363,12 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -360,8 +363,12 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
private
void
check
(
int
status
,
String
remark
,
int
id
)
{
private
void
check
(
int
status
,
String
remark
,
int
id
)
{
Map
<
String
,
Object
>
param
=
WorkUtils
.
simpleParam
();
Map
<
String
,
Object
>
param
=
WorkUtils
.
simpleParam
();
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SALE
.
getCode
()))
{
param
.
put
(
"status"
,
status
==
1
?
Integer
.
valueOf
(
info
.
getStatus
())
+
1
:
Integer
.
valueOf
(
info
.
getStatus
())
+
11
);
param
.
put
(
"status"
,
status
==
1
?
Integer
.
valueOf
(
info
.
getStatus
())
+
1
:
Integer
.
valueOf
(
info
.
getStatus
())
+
11
);
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
OUT_BUY
.
getCode
()))
{
param
.
put
(
"status"
,
status
);
param
.
put
(
"productAmount"
,
info
.
getProductAmount
());
param
.
put
(
"productAmount"
,
info
.
getProductAmount
());
}
param
.
put
(
"auditRemark"
,
remark
);
param
.
put
(
"auditRemark"
,
remark
);
param
.
put
(
"id"
,
id
);
param
.
put
(
"id"
,
id
);
Observable
<
BaseBean
>
observable
;
Observable
<
BaseBean
>
observable
;
...
@@ -401,10 +408,14 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -401,10 +408,14 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
return
;
return
;
}
}
toast
(
"操作成功"
);
toast
(
"操作成功"
);
EventBus
.
getDefault
().
post
(
new
CheckAddStockEvent
());
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
SALE
.
getCode
()))
{
int
changeStatus
=
status
==
1
?
Integer
.
valueOf
(
info
.
getStatus
())
+
1
:
Integer
.
valueOf
(
info
.
getStatus
())
+
11
;
int
changeStatus
=
status
==
1
?
Integer
.
valueOf
(
info
.
getStatus
())
+
1
:
Integer
.
valueOf
(
info
.
getStatus
())
+
11
;
info
.
setStatus
(
changeStatus
+
""
);
info
.
setStatus
(
changeStatus
+
""
);
changeView
();
changeView
();
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
OUT_BUY
.
getCode
()))
{
llBottom
.
setVisibility
(
View
.
GONE
);
}
EventBus
.
getDefault
().
post
(
new
CheckReturnEvent
());
}
}
});
});
}
}
...
@@ -435,5 +446,4 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
...
@@ -435,5 +446,4 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
break
;
break
;
}
}
}
}
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/OutOrderDetailProductAdapter.java
浏览文件 @
d8acb850
...
@@ -62,20 +62,15 @@ public class OutOrderDetailProductAdapter extends BaseQuickAdapter<OrderDetail.O
...
@@ -62,20 +62,15 @@ public class OutOrderDetailProductAdapter extends BaseQuickAdapter<OrderDetail.O
break
;
break
;
case
600
:
case
600
:
helper
.
setGone
(
R
.
id
.
ll_btn
,
true
);
helper
.
setGone
(
R
.
id
.
ll_btn
,
true
);
helper
.
setGone
(
R
.
id
.
tv_get
,
false
);
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
break
;
}
if
(
WorkUtils
.
hasPermission
(
PagePermissionType
.
PO_ENTER_PAGE
.
getPermission
()))
{
helper
.
setGone
(
R
.
id
.
tv_add
,
true
);
}
else
{
helper
.
setGone
(
R
.
id
.
tv_add
,
false
);
helper
.
setGone
(
R
.
id
.
tv_add
,
false
);
break
;
}
}
if
(
WorkUtils
.
hasPermission
(
PagePermissionType
.
PO_RETURN_APPLY_LIST
.
getPermission
()))
{
if
(!
WorkUtils
.
hasPermission
(
PagePermissionType
.
PO_RETURN_APPLY_LIST
.
getPermission
()))
{
helper
.
setGone
(
R
.
id
.
tv_return
,
true
);
}
else
{
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
}
}
if
(!
WorkUtils
.
hasPermission
(
PagePermissionType
.
PO_ENTER_PAGE
.
getPermission
()))
{
helper
.
setGone
(
R
.
id
.
tv_add
,
false
);
}
}
}
}
}
app/src/main/res/layout/activity_bat_retrun_detail.xml
浏览文件 @
d8acb850
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<include
<include
android:id=
"@+id/ll_process"
layout=
"@layout/view_return_process"
layout=
"@layout/view_return_process"
android:layout_marginVertical=
"10mm"
android:layout_marginVertical=
"10mm"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/view_return_process.xml
浏览文件 @
d8acb850
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
android:id=
"@+id/ll_process"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论