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
d5317733
提交
d5317733
authored
5月 13, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改上下架
2.//TODO ,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes其他页面,编辑任务担当无法修改.支数参数 token刷新问题
上级
6adc42fe
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
3 行删除
+20
-3
WorkProPresenter.java
...in/java/com/wd/workoffice/presenter/WorkProPresenter.java
+1
-1
WorkProSearchActivity.java
...orkoffice/ui/activity/bat/work/WorkProSearchActivity.java
+14
-1
WorkProFragment.java
...rc/main/java/com/wd/workoffice/ui/fg/WorkProFragment.java
+5
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/presenter/WorkProPresenter.java
浏览文件 @
d5317733
...
@@ -95,7 +95,7 @@ public class WorkProPresenter extends BasePresenter<WorkProContract.View, WorkPr
...
@@ -95,7 +95,7 @@ public class WorkProPresenter extends BasePresenter<WorkProContract.View, WorkPr
mView
.
onError
(
data
.
getMessage
());
mView
.
onError
(
data
.
getMessage
());
return
;
return
;
}
}
mView
.
onSale
(
data
.
get
Message
());
mView
.
onSale
(
data
.
get
Data
().
toString
());
}
}
});
});
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkProSearchActivity.java
浏览文件 @
d5317733
...
@@ -195,6 +195,9 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
...
@@ -195,6 +195,9 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
@Override
@Override
public
void
onSale
(
String
msg
)
{
public
void
onSale
(
String
msg
)
{
toast
(
msg
);
toast
(
msg
);
page
=
1
;
param
.
put
(
"current"
,
page
);
workProPresenter
.
getPro
(
param
);
}
}
/**
/**
* 修改弹窗
* 修改弹窗
...
@@ -247,6 +250,16 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
...
@@ -247,6 +250,16 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
TextView
tvTitle
=
view
.
findViewById
(
R
.
id
.
tv_title
);
TextView
tvTitle
=
view
.
findViewById
(
R
.
id
.
tv_title
);
TextView
tvPrice
=
view
.
findViewById
(
R
.
id
.
tv_price
);
TextView
tvPrice
=
view
.
findViewById
(
R
.
id
.
tv_price
);
TextView
tvName
=
view
.
findViewById
(
R
.
id
.
tv_name
);
TextView
tvName
=
view
.
findViewById
(
R
.
id
.
tv_name
);
String
shelfAction
;
if
(
data
.
getIsExpectOut
()
==
0
)
{
//未上架
tvTitle
.
setText
(
"确认上架?"
);
tvOk
.
setText
(
"上架"
);
shelfAction
=
"up"
;
}
else
{
tvTitle
.
setText
(
"确认下架?"
);
shelfAction
=
"down"
;
tvOk
.
setText
(
"下架"
);
}
tvPrice
.
setText
(
String
.
valueOf
(
data
.
getInternalPrice
()).
concat
(
"/"
).
concat
(
data
.
getUnit
()));
tvPrice
.
setText
(
String
.
valueOf
(
data
.
getInternalPrice
()).
concat
(
"/"
).
concat
(
data
.
getUnit
()));
tvName
.
setText
(
data
.
getName
());
tvName
.
setText
(
data
.
getName
());
builder
.
setView
(
view
);
builder
.
setView
(
view
);
...
@@ -254,7 +267,7 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
...
@@ -254,7 +267,7 @@ public class WorkProSearchActivity extends WorkBaseActivity implements WorkProCo
tvOk
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
tvOk
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
workProPresenter
.
onSale
(
data
.
getId
(),
"down"
);
workProPresenter
.
onSale
(
data
.
getId
(),
shelfAction
);
addCartDialog
.
dismiss
();
addCartDialog
.
dismiss
();
}
}
});
});
...
...
app/src/main/java/com/wd/workoffice/ui/fg/WorkProFragment.java
浏览文件 @
d5317733
...
@@ -215,11 +215,12 @@ public class WorkProFragment extends WorkBaseFg implements WorkProContract.View
...
@@ -215,11 +215,12 @@ public class WorkProFragment extends WorkBaseFg implements WorkProContract.View
String
shelfAction
;
String
shelfAction
;
if
(
data
.
getIsExpectOut
()
==
0
)
{
//未上架
if
(
data
.
getIsExpectOut
()
==
0
)
{
//未上架
tvTitle
.
setText
(
"确认上架?"
);
tvTitle
.
setText
(
"确认上架?"
);
tvOk
.
setText
(
"上架"
);
shelfAction
=
"up"
;
shelfAction
=
"up"
;
}
else
{
}
else
{
tvTitle
.
setText
(
"确认下架?"
);
tvTitle
.
setText
(
"确认下架?"
);
shelfAction
=
"down"
;
shelfAction
=
"down"
;
tvOk
.
setText
(
"下架"
);
}
}
TextView
tvPrice
=
view
.
findViewById
(
R
.
id
.
tv_price
);
TextView
tvPrice
=
view
.
findViewById
(
R
.
id
.
tv_price
);
TextView
tvName
=
view
.
findViewById
(
R
.
id
.
tv_name
);
TextView
tvName
=
view
.
findViewById
(
R
.
id
.
tv_name
);
...
@@ -280,5 +281,8 @@ public class WorkProFragment extends WorkBaseFg implements WorkProContract.View
...
@@ -280,5 +281,8 @@ public class WorkProFragment extends WorkBaseFg implements WorkProContract.View
@Override
@Override
public
void
onSale
(
String
msg
)
{
public
void
onSale
(
String
msg
)
{
toast
(
msg
);
toast
(
msg
);
page
=
1
;
param
.
put
(
"current"
,
page
);
workProPresenter
.
getPro
(
param
);
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论