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
928f240a
提交
928f240a
authored
4月 14, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.坩埚订单订单详情
2.//TODO erp用户激活测试,忘记/重置密码测试,质检接口数据问题,内部订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单页面,组装下单,产品下单还差附件测试,mes,刷新token
上级
372c3617
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
130 行增加
和
29 行删除
+130
-29
ApiService.java
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
+6
-0
CrucibleOrderDetailActivity.java
...ce/ui/activity/bat/order/CrucibleOrderDetailActivity.java
+36
-17
InsideOrderDetailActivity.java
...fice/ui/activity/bat/order/InsideOrderDetailActivity.java
+2
-2
OutOrderDetailActivity.java
...koffice/ui/activity/bat/order/OutOrderDetailActivity.java
+2
-2
SaleOrderDetailActivity.java
...office/ui/activity/bat/order/SaleOrderDetailActivity.java
+2
-2
SendApplyAddActivity.java
...orkoffice/ui/activity/bat/order/SendApplyAddActivity.java
+2
-2
SupplierOrderDetailActivity.java
...ce/ui/activity/bat/order/SupplierOrderDetailActivity.java
+2
-2
CruibleOrderDetailProductAdapter.java
...rkoffice/ui/adapter/CruibleOrderDetailProductAdapter.java
+74
-0
CrucibleOrderBuyListFragment.java
...com/wd/workoffice/ui/fg/CrucibleOrderBuyListFragment.java
+1
-0
CrucibleOrderSaleListFragment.java
...om/wd/workoffice/ui/fg/CrucibleOrderSaleListFragment.java
+1
-0
SendApplyFragment.java
.../main/java/com/wd/workoffice/ui/fg/SendApplyFragment.java
+1
-1
activity_crucible_order.xml
app/src/main/res/layout/activity_crucible_order.xml
+1
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
浏览文件 @
928f240a
...
...
@@ -1148,6 +1148,12 @@ public interface ApiService {
*/
@GET
(
"/crucibleOrder/oneInfo/{orderId}"
)
Observable
<
BaseBean
>
crucibleOrderDetail
(
@Path
(
"orderId"
)
String
orderId
,
@Query
(
"type"
)
String
type
);
/**
*
* @return
*/
@GET
(
"/crucibleSaleOrder/oneInfo/{orderId}"
)
Observable
<
BaseBean
>
crucibleSaleOrderDetail
(
@Path
(
"orderId"
)
String
orderId
,
@Query
(
"type"
)
String
type
);
/**
*
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/CrucibleOrderDetailActivity.java
浏览文件 @
928f240a
...
...
@@ -21,6 +21,7 @@ import com.wd.workoffice.bean.OrderDetail;
import
com.wd.workoffice.bean.event.CheckOrderEvent
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.CruibleOrderDetailProductAdapter
;
import
com.wd.workoffice.ui.adapter.OrderProcessAdapter
;
import
com.wd.workoffice.ui.adapter.SupplierOrderDetailProductAdapter
;
import
com.wd.workoffice.util.WorkUtils
;
...
...
@@ -38,6 +39,7 @@ import butterknife.BindView;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
io.reactivex.Observable
;
import
io.reactivex.disposables.Disposable
;
/**
...
...
@@ -110,11 +112,12 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
private
OrderDetail
dataBean
;
private
List
<
OrderDetail
.
OrderFlowsBean
>
flowList
;
private
OrderProcessAdapter
flowAdapter
;
private
Supplier
OrderDetailProductAdapter
proAdapter
;
private
Cruible
OrderDetailProductAdapter
proAdapter
;
private
List
<
OrderDetail
.
OrderItemsBean
>
proList
;
private
Integer
status
;
private
String
identity
;
private
QMUIDialog
.
MenuDialogBuilder
settingDialog
;
private
String
type
;
@Override
protected
void
initView
()
{
...
...
@@ -123,12 +126,12 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
rvProcess
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
status
=
Integer
.
valueOf
(
getIntent
().
getStringExtra
(
"status"
));
identity
=
getIntent
().
getStringExtra
(
"identity"
);
String
type
=
getIntent
().
getStringExtra
(
"type"
);
if
(
TextUtils
.
equals
(
type
,
"1"
))
{
//1坩埚销售 2 坩埚生产
}
else
{
type
=
getIntent
().
getStringExtra
(
"type"
);
if
(
TextUtils
.
equals
(
type
,
"1"
))
{
//1 坩埚生产 2 坩埚销售
rlDep
.
setVisibility
(
View
.
GONE
);
rlStock
.
setVisibility
(
View
.
GONE
);
}
else
{
}
// if (TextUtils.equals(identity, "1")) {//1销售 2生产
//
...
...
@@ -139,8 +142,6 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
// {"待审核", "待接单", "待生产", "已入库","已交付"};
// { "100", "200", "710", "500","600"};
case
100
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llCheck
.
setVisibility
(
View
.
VISIBLE
);
break
;
case
200
:
break
;
...
...
@@ -152,14 +153,20 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
case
410
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
tvSendApply
.
setVisibility
(
View
.
GONE
);
break
;
case
500
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
if
(
TextUtils
.
equals
(
type
,
"1"
))
{
//1坩埚生产 2 坩埚销售
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
tvSendApply
.
setVisibility
(
View
.
GONE
);
}
else
{
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
tvFinishApply
.
setVisibility
(
View
.
GONE
);
}
break
;
case
600
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
llApply
.
setVisibility
(
View
.
VISIBLE
);
break
;
default
:
llBottom
.
setVisibility
(
View
.
VISIBLE
);
...
...
@@ -178,13 +185,19 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
flowAdapter
.
bindToRecyclerView
(
rvProcess
);
flowAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_order
,
rvProcess
);
proList
=
new
ArrayList
<>();
proAdapter
=
new
Supplier
OrderDetailProductAdapter
(
R
.
layout
.
item_order_product
,
proList
,
status
);
proAdapter
=
new
Cruible
OrderDetailProductAdapter
(
R
.
layout
.
item_order_product
,
proList
,
status
);
proAdapter
.
bindToRecyclerView
(
rvPro
);
proAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_order
,
rvPro
);
}
private
void
getData
()
{
RtfUtils
.
getRtf
().
crucibleOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
).
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
Observable
<
BaseBean
>
observable
;
if
(
TextUtils
.
equals
(
type
,
"1"
))
{
//1坩埚生产 2 坩埚销售
observable
=
RtfUtils
.
getRtf
().
crucibleOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
}
else
{
observable
=
RtfUtils
.
getRtf
().
crucibleSaleOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
}
observable
.
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
@Override
public
void
doOnSubscribe
(
Disposable
d
)
{
...
...
@@ -209,7 +222,7 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
proList
.
addAll
(
dataBean
.
getOrderItems
());
proAdapter
.
notifyDataSetChanged
();
tvName
.
setText
(
dataBean
.
get
Supplier
Name
());
tvName
.
setText
(
dataBean
.
get
ReceiveDept
Name
());
tvDep
.
setText
(
dataBean
.
getReceiveDeptName
());
tvStatus
.
setText
(
dataBean
.
getStatusName
());
tvPlaceName
.
setText
(
dataBean
.
getLaunchUserName
());
...
...
@@ -254,7 +267,7 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
case
R
.
id
.
tv_add
:
startActivity
(
AddStockApplyActivity
.
class
,
"status"
,
dataBean
.
getStatus
()
+
""
,
"orderType"
,
dataBean
.
get
OrderType
()
+
""
,
"orderType"
,
dataBean
.
get
ExpandInfo
().
getOrderType
()
,
"num"
,
proList
.
get
(
position
).
getCanInStoreProductSum
()
+
""
,
"product"
,
proList
.
get
(
position
).
getProductName
(),
"simpleCode"
,
proList
.
get
(
position
).
getProductSimpleCode
(),
...
...
@@ -322,11 +335,17 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
}
startActivity
(
EndApplyActivity
.
class
,
"status"
,
getIntent
().
getStringExtra
(
"status"
),
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
case
R
.
id
.
tv_send_apply
:
startActivity
(
SendApplyActivity
.
class
,
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
if
(
dataBean
==
null
)
{
toast
(
"正在加载中,请稍后"
);
return
;
}
startActivity
(
SendApplyActivity
.
class
,
"orderType"
,
dataBean
.
getExpandInfo
().
getOrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/InsideOrderDetailActivity.java
浏览文件 @
928f240a
...
...
@@ -289,7 +289,7 @@ public class InsideOrderDetailActivity extends WorkToolBarActivity {
}
startActivity
(
EndApplyActivity
.
class
,
"status"
,
getIntent
().
getStringExtra
(
"status"
),
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
case
R
.
id
.
tv_send_apply
:
...
...
@@ -298,7 +298,7 @@ public class InsideOrderDetailActivity extends WorkToolBarActivity {
return
;
}
startActivity
(
SendApplyActivity
.
class
,
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/OutOrderDetailActivity.java
浏览文件 @
928f240a
...
...
@@ -325,7 +325,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
}
startActivity
(
EndApplyActivity
.
class
,
"status"
,
getIntent
().
getStringExtra
(
"status"
),
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
case
R
.
id
.
tv_send_apply
:
...
...
@@ -334,7 +334,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
return
;
}
startActivity
(
SendApplyActivity
.
class
,
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
getExpandInfo
()
.
getOrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/SaleOrderDetailActivity.java
浏览文件 @
928f240a
...
...
@@ -300,7 +300,7 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity {
}
startActivity
(
EndApplyActivity
.
class
,
"status"
,
getIntent
().
getStringExtra
(
"status"
),
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
case
R
.
id
.
tv_send_apply
:
...
...
@@ -309,7 +309,7 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity {
return
;
}
startActivity
(
SendApplyActivity
.
class
,
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/SendApplyAddActivity.java
浏览文件 @
928f240a
...
...
@@ -135,7 +135,7 @@ public class SendApplyAddActivity extends WorkToolBarActivity {
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
IN
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
insideOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
CRUCIBLE
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
crucibleOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
observable
=
RtfUtils
.
getRtf
().
crucible
Sale
OrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
}
else
{
observable
=
RtfUtils
.
getRtf
().
saleOrderDetail
(
getIntent
().
getStringExtra
(
"id"
),
"3"
);
}
...
...
@@ -159,7 +159,7 @@ public class SendApplyAddActivity extends WorkToolBarActivity {
return
;
}
dataBean
=
JSON
.
parseObject
(
data
.
getData
().
toString
(),
OrderDetail
.
class
);
param
.
put
(
"orderType"
,
dataBean
.
getOrderType
());
param
.
put
(
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
());
dataList
.
addAll
(
dataBean
.
getOrderItems
());
dataAdapter
.
notifyDataSetChanged
();
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/SupplierOrderDetailActivity.java
浏览文件 @
928f240a
...
...
@@ -306,7 +306,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity {
}
startActivity
(
EndApplyActivity
.
class
,
"status"
,
getIntent
().
getStringExtra
(
"status"
),
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
case
R
.
id
.
tv_send_apply
:
...
...
@@ -315,7 +315,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity {
return
;
}
startActivity
(
SendApplyActivity
.
class
,
"orderType"
,
dataBean
.
getOrderType
(),
"orderType"
,
dataBean
.
get
ExpandInfo
().
get
OrderType
(),
"orderId"
,
getIntent
().
getStringExtra
(
"id"
));
break
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/CruibleOrderDetailProductAdapter.java
0 → 100644
浏览文件 @
928f240a
package
com
.
wd
.
workoffice
.
ui
.
adapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.OrderDetail
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.util.List
;
/**
* Created by flexible on 2018/8/13.
*/
public
class
CruibleOrderDetailProductAdapter
extends
BaseQuickAdapter
<
OrderDetail
.
OrderItemsBean
,
BaseViewHolder
>
{
int
status
;
public
CruibleOrderDetailProductAdapter
(
int
layoutResId
,
List
data
,
Integer
status
)
{
super
(
layoutResId
,
data
);
this
.
status
=
status
;
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
OrderDetail
.
OrderItemsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getProductName
());
helper
.
setText
(
R
.
id
.
tv_card
,
item
.
getProductSoleCode
());
helper
.
setText
(
R
.
id
.
tv_card_name
,
item
.
getProductSimpleCode
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getProductSpec
());
helper
.
setText
(
R
.
id
.
tv_price
,
"¥"
.
concat
(
String
.
valueOf
(
item
.
getInnerPrice
())));
helper
.
setText
(
R
.
id
.
tv_all_price
,
"¥"
.
concat
(
String
.
valueOf
(
item
.
getInnerPrice
())));
helper
.
setText
(
R
.
id
.
tv_unit
,
item
.
getProductUnit
());
helper
.
setText
(
R
.
id
.
tv_from
,
WorkUtils
.
getOrderFrom
(
item
.
getType
()));
helper
.
setText
(
R
.
id
.
tv_num
,
String
.
valueOf
(
item
.
getProductCount
()));
helper
.
addOnClickListener
(
R
.
id
.
tv_get
);
helper
.
addOnClickListener
(
R
.
id
.
tv_return
);
helper
.
addOnClickListener
(
R
.
id
.
tv_flow
);
helper
.
addOnClickListener
(
R
.
id
.
tv_add
);
helper
.
addOnClickListener
(
R
.
id
.
tv_quality
);
switch
(
status
)
{
//// "待审核", "待接单", "待生产", "已入库","已交付"};
// "100", "200", "710", "500","600"};
case
100
:
break
;
case
200
:
break
;
case
300
:
helper
.
setGone
(
R
.
id
.
ll_btn
,
true
);
helper
.
setGone
(
R
.
id
.
tv_get
,
false
);
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
helper
.
setGone
(
R
.
id
.
tv_flow
,
false
);
helper
.
setGone
(
R
.
id
.
tv_quality
,
false
);
break
;
case
400
:
helper
.
setGone
(
R
.
id
.
ll_btn
,
true
);
helper
.
setGone
(
R
.
id
.
tv_get
,
false
);
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
helper
.
setGone
(
R
.
id
.
tv_flow
,
false
);
helper
.
setGone
(
R
.
id
.
tv_quality
,
false
);
break
;
case
500
:
helper
.
setGone
(
R
.
id
.
ll_btn
,
true
);
helper
.
setGone
(
R
.
id
.
tv_get
,
false
);
helper
.
setGone
(
R
.
id
.
tv_return
,
false
);
helper
.
setGone
(
R
.
id
.
tv_flow
,
false
);
helper
.
setGone
(
R
.
id
.
tv_quality
,
false
);
break
;
case
600
:
break
;
}
}
}
app/src/main/java/com/wd/workoffice/ui/fg/CrucibleOrderBuyListFragment.java
浏览文件 @
928f240a
...
...
@@ -145,6 +145,7 @@ public class CrucibleOrderBuyListFragment extends WorkBaseFg {
public
void
onItemClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
startActivity
(
CrucibleOrderDetailActivity
.
class
,
"identity"
,
identity
,
"type"
,
"1"
,
"id"
,
dataList
.
get
(
position
).
getId
()
+
""
,
"status"
,
dataList
.
get
(
position
).
getStatus
()
+
""
);
}
});
...
...
app/src/main/java/com/wd/workoffice/ui/fg/CrucibleOrderSaleListFragment.java
浏览文件 @
928f240a
...
...
@@ -143,6 +143,7 @@ public class CrucibleOrderSaleListFragment extends WorkBaseFg {
public
void
onItemClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
startActivity
(
CrucibleOrderDetailActivity
.
class
,
"identity"
,
identity
,
"type"
,
"2"
,
"id"
,
dataList
.
get
(
position
).
getId
()
+
""
,
"status"
,
dataList
.
get
(
position
).
getStatus
()
+
""
);
}
...
...
app/src/main/java/com/wd/workoffice/ui/fg/SendApplyFragment.java
浏览文件 @
928f240a
...
...
@@ -102,7 +102,7 @@ public class SendApplyFragment extends WorkBaseFg {
}
else
if
(
TextUtils
.
equals
(
orderType
,
OrderType
.
CRUCIBLE
.
getCode
()))
{
observable
=
RtfUtils
.
getRtf
().
sendCoApplyList
(
param
);
}
else
{
observable
=
RtfUtils
.
getRtf
().
addStock
ApplyList
(
param
);
observable
=
RtfUtils
.
getRtf
().
send
ApplyList
(
param
);
}
observable
.
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
@Override
...
...
app/src/main/res/layout/activity_crucible_order.xml
浏览文件 @
928f240a
...
...
@@ -104,7 +104,7 @@
android:background=
"@drawable/shape_blue_btn"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"5mm"
android:text=
"
提前结束申请
"
android:text=
"
生成坩埚销售订单
"
android:textColor=
"@color/white"
/>
<TextView
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论