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
1366e630
提交
1366e630
authored
8月 06, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.外采购入库方式修改
2.TODO 三个功能测试,下单新增唛头測試
上级
f6a8503f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
151 行增加
和
1 行删除
+151
-1
OutOrderDetailActivity.java
...koffice/ui/activity/bat/order/OutOrderDetailActivity.java
+25
-1
view_out_check.xml
app/src/main/res/layout/view_out_check.xml
+126
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/OutOrderDetailActivity.java
浏览文件 @
1366e630
...
...
@@ -145,6 +145,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
private
RecyclerView
rvFlowSheet
;
private
List
<
OrderDetail
.
OrderFlowsBean
>
flowSheetList
;
private
OrderProcessAdapter
flowSheetAdapter
;
private
int
enterStockType
;
@Override
protected
void
initView
()
{
...
...
@@ -164,6 +165,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
settingDialog
.
addItems
(
settingList
,
(
dialog
,
which
)
->
{
tvSet
.
setText
(
settingList
[
which
]);
setting
(++
which
);
enterStockType
=
++
which
;
dialog
.
dismiss
();
});
View
viewData
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
view_rv
,
null
);
...
...
@@ -579,11 +581,15 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
private
void
checkReceiveDialog
(
int
status
,
String
id
)
{
QMUIDialog
.
MenuDialogBuilder
menuDialogBuilder
=
DialogUtils
.
listDialog
(
this
);
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
View
view
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
view_check
,
null
);
View
view
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
view_
out_
check
,
null
);
TextView
tvOk
=
view
.
findViewById
(
R
.
id
.
tv_ok
);
TextView
tvDesc
=
view
.
findViewById
(
R
.
id
.
tv_desc
);
TextView
tvSet
=
view
.
findViewById
(
R
.
id
.
tv_set
);
RelativeLayout
rlSet
=
view
.
findViewById
(
R
.
id
.
rl_set
);
tvDesc
.
setText
(
status
==
1
?
"统一接单"
:
"拒绝接单"
);
rlSet
.
setVisibility
(
status
==
1
?
View
.
VISIBLE
:
View
.
GONE
);
TextView
tvNum
=
view
.
findViewById
(
R
.
id
.
tv_num
);
TextView
tvCancel
=
view
.
findViewById
(
R
.
id
.
tv_cancel
);
EditText
etRemark
=
view
.
findViewById
(
R
.
id
.
et_content
);
...
...
@@ -593,6 +599,10 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
tvOk
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
enterStockType
==
0
&&
status
==
1
)
{
toast
(
"请选择入库方式"
);
return
;
}
if
(
TextUtils
.
isEmpty
(
etRemark
.
getText
().
toString
())
&&
status
==
2
)
{
toast
(
"请填写备注"
);
return
;
...
...
@@ -607,12 +617,26 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
addCartDialog
.
dismiss
();
}
});
rlSet
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
menuDialogBuilder
.
show
();
}
});
menuDialogBuilder
.
addItems
(
settingList
,
(
dialog
,
which
)
->
{
tvSet
.
setText
(
settingList
[
which
]);
enterStockType
=
++
which
;
dialog
.
dismiss
();
});
addCartDialog
.
show
();
}
private
void
checkReceive
(
int
status
,
String
remark
,
String
id
)
{
Map
<
String
,
Object
>
param
=
WorkUtils
.
simpleParam
();
if
(
status
==
1
)
{
param
.
put
(
"enterStockType"
,
enterStockType
);
}
param
.
put
(
"result"
,
status
);
param
.
put
(
"comment"
,
remark
);
param
.
put
(
"id"
,
id
);
...
...
app/src/main/res/layout/view_out_check.xml
0 → 100644
浏览文件 @
1366e630
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#d1f8f8f8"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_desc"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20mm"
android:gravity=
"center"
android:text=
"修改内部价格"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
<RelativeLayout
android:id=
"@+id/rl_set"
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: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_set"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_marginRight=
"3mm"
android:hint=
"请选择入库方式"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
<ImageView
android:id=
"@+id/iv_setting"
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"
android:layout_marginHorizontal=
"20mm"
android:layout_marginTop=
"10mm"
android:background=
"@drawable/shape_confirm_order"
android:orientation=
"vertical"
>
<EditText
android:id=
"@+id/et_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3mm"
android:background=
"@null"
android:gravity=
"top"
android:hint=
"请输入原因"
android:minLines=
"4"
android:padding=
"5mm"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_num"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_margin=
"4mm"
android:text=
"0/140"
android:textColor=
"@color/flexible_text_gray"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"30mm"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_cancel"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:paddingVertical=
"15mm"
android:text=
"取消"
android:textColor=
"#007AFF"
android:textSize=
"17sp"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"#D8DCE6"
/>
<TextView
android:id=
"@+id/tv_ok"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:paddingVertical=
"15mm"
android:text=
"确定"
android:textColor=
"#007AFF"
android:textSize=
"17sp"
/>
</LinearLayout>
</LinearLayout>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论