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
02e947a2
提交
02e947a2
authored
9月 14, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.外采购下单,添加处理方式
上级
4e712565
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
70 行增加
和
2 行删除
+70
-2
StoreSaleConfirmActivity.java
...ffice/ui/activity/bat/store/StoreSaleConfirmActivity.java
+30
-2
activity_bat_sale_confirm.xml
app/src/main/res/layout/activity_bat_sale_confirm.xml
+40
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreSaleConfirmActivity.java
浏览文件 @
02e947a2
...
...
@@ -17,7 +17,6 @@ import com.alibaba.fastjson.JSONObject;
import
com.bigkoo.pickerview.listener.OnTimeSelectListener
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialogAction
;
import
com.tbruyelle.rxpermissions2.RxPermissions
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseBean
;
...
...
@@ -122,12 +121,17 @@ public class StoreSaleConfirmActivity extends WorkToolBarActivity {
EditText
etCountryCompany
;
@BindView
(
R
.
id
.
ll_sale_mark
)
LinearLayout
llSaleMark
;
@BindView
(
R
.
id
.
tv_middle
)
TextView
tvMiddle
;
@BindView
(
R
.
id
.
rl_middle
)
RelativeLayout
rlMiddle
;
private
List
<
ProductBean
.
RecordsBean
>
proList
;
private
StoreCarAdapter
proAdapter
;
private
QMUIDialog
.
MenuDialogBuilder
receiveDialog
;
private
QMUIDialog
.
MenuDialogBuilder
setDialog
;
private
String
[]
setArray
=
new
String
[]{
"钢控"
,
"锆碳"
};
String
[]
receiveArray
=
new
String
[]{
"接单方生产"
,
"接单方采购"
};
String
[]
isMiddleDialogArray
=
new
String
[]{
"直接销货"
,
"生产领用"
};
private
Map
<
String
,
Object
>
param
;
private
Map
<
String
,
Object
>
expandInfo
;
private
List
<
JSONObject
>
orderItems
;
...
...
@@ -137,11 +141,22 @@ public class StoreSaleConfirmActivity extends WorkToolBarActivity {
private
List
<
OrderBillBean
>
billList
=
new
ArrayList
<>();
private
OrderBillBean
chooseBill
;
private
int
receivePosition
;
private
QMUIDialog
.
MenuDialogBuilder
isMiddleDialog
;
@Override
protected
void
initView
()
{
ButterKnife
.
bind
(
this
);
rvPro
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
isMiddleDialog
=
DialogUtils
.
listDialog
(
this
);
isMiddleDialog
.
addItems
(
isMiddleDialogArray
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
// expandInfo.put("saleType", which+1);
param
.
put
(
"saleType"
,
which
+
1
);
tvMiddle
.
setText
(
isMiddleDialogArray
[
which
]);
dialog
.
dismiss
();
}
});
receiveDialog
=
DialogUtils
.
listDialog
(
this
);
receiveDialog
.
addItems
(
receiveArray
,
new
DialogInterface
.
OnClickListener
()
{
@Override
...
...
@@ -178,6 +193,10 @@ public class StoreSaleConfirmActivity extends WorkToolBarActivity {
if
(!
TextUtils
.
equals
(
code
,
PermissionType
.
PROCESS_SALE
.
getCode
()))
{
llSaleMark
.
setVisibility
(
View
.
GONE
);
}
//隐藏处理方式
if
(!
TextUtils
.
equals
(
code
,
PermissionType
.
PROCESS_PURCHASE
.
getCode
()))
{
rlMiddle
.
setVisibility
(
View
.
GONE
);
}
expandInfo
=
new
HashMap
<>();
//外采购、供应账套默认设为钢控
if
(
TextUtils
.
equals
(
code
,
PermissionType
.
PROCESS_PURCHASE
.
getCode
())
||
...
...
@@ -342,9 +361,12 @@ public class StoreSaleConfirmActivity extends WorkToolBarActivity {
}
@OnClick
({
R
.
id
.
rl_bill
,
R
.
id
.
tv_ok
,
R
.
id
.
rl_set
,
R
.
id
.
rl_time
})
@OnClick
({
R
.
id
.
rl_
middle
,
R
.
id
.
rl_
bill
,
R
.
id
.
tv_ok
,
R
.
id
.
rl_set
,
R
.
id
.
rl_time
})
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
rl_middle
:
isMiddleDialog
.
show
();
break
;
case
R
.
id
.
rl_bill
:
billDialog
.
show
();
break
;
...
...
@@ -553,4 +575,10 @@ public class StoreSaleConfirmActivity extends WorkToolBarActivity {
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
}
app/src/main/res/layout/activity_bat_sale_confirm.xml
浏览文件 @
02e947a2
...
...
@@ -180,6 +180,9 @@
android:src=
"@mipmap/arrow_right_gray"
/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_time"
android:layout_width=
"match_parent"
...
...
@@ -218,7 +221,44 @@
android:src=
"@mipmap/arrow_right_gray"
/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_middle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"9mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:text=
"处理方式"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
>
<TextView
android:id=
"@+id/tv_middle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_marginRight=
"3mm"
android:text=
"请选择处理方式"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
<ImageView
android:layout_width=
"15mm"
android:layout_height=
"20mm"
android:src=
"@mipmap/arrow_right_gray"
/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论