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
25c34185
提交
25c34185
authored
6月 09, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改bug
2.//TODO 坩埚下单,mes其他页面,mes用户反馈空也展示,编辑任务担当无法修改
上级
f15e8ac3
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
25 行增加
和
17 行删除
+25
-17
ApiService.java
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
+2
-2
CrucibleOrderDetailActivity.java
...ce/ui/activity/bat/order/CrucibleOrderDetailActivity.java
+1
-0
InsideOrderDetailActivity.java
...fice/ui/activity/bat/order/InsideOrderDetailActivity.java
+1
-0
ProductOrderDetailActivity.java
...ice/ui/activity/bat/order/ProductOrderDetailActivity.java
+0
-1
ChooseInfoActivity.java
.../workoffice/ui/activity/bat/store/ChooseInfoActivity.java
+1
-0
StoreSaleCarActivity.java
...orkoffice/ui/activity/bat/store/StoreSaleCarActivity.java
+2
-1
StoreTradingCarActivity.java
...office/ui/activity/bat/store/StoreTradingCarActivity.java
+5
-3
StoreTradingConfirmActivity.java
...ce/ui/activity/bat/store/StoreTradingConfirmActivity.java
+2
-2
OrderProcessAdapter.java
...ava/com/wd/workoffice/ui/adapter/OrderProcessAdapter.java
+2
-1
StoreCarAdapter.java
...in/java/com/wd/workoffice/ui/adapter/StoreCarAdapter.java
+4
-2
TradingProCarAdapter.java
...va/com/wd/workoffice/ui/adapter/TradingProCarAdapter.java
+2
-2
activity_crucible_order.xml
app/src/main/res/layout/activity_crucible_order.xml
+2
-2
view_add_cart_trading.xml
app/src/main/res/layout/view_add_cart_trading.xml
+1
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
浏览文件 @
25c34185
...
...
@@ -1559,7 +1559,7 @@ public interface ApiService {
*
* @return
*/
@PUT
(
"/crucible/apply/{orderId}"
)
@PUT
(
"/crucible
Order
/apply/{orderId}"
)
Observable
<
BaseBean
>
crucibleApplyCheck
(
@Path
(
"orderId"
)
String
id
,
@Body
RequestBody
requestBody
);
/**
* step3-接单
...
...
@@ -1667,7 +1667,7 @@ public interface ApiService {
*
* @return
*/
@PUT
(
"/crucible/audit/{orderId}"
)
@PUT
(
"/crucible
Order
/audit/{orderId}"
)
Observable
<
BaseBean
>
crucibleOrderCheck
(
@Path
(
"orderId"
)
String
orderId
,
@Body
RequestBody
requestBody
);
/**
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/CrucibleOrderDetailActivity.java
浏览文件 @
25c34185
...
...
@@ -240,6 +240,7 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
tvTime
.
setText
(
dataBean
.
getCreatedTime
());
tvSendTime
.
setText
(
dataBean
.
getRequireTime
());
tvDesc
.
setText
(
dataBean
.
getAttrName
());
tvOrderDesc
.
setText
(
dataBean
.
getAttrName
());
tvPrice
.
setText
(
MathUtils
.
converData
(
dataBean
.
getLaunchOrderAmount
(),
3
));
OrderDetail
.
ExpandInfoBean
expandInfo
=
dataBean
.
getExpandInfo
();
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/InsideOrderDetailActivity.java
浏览文件 @
25c34185
...
...
@@ -197,6 +197,7 @@ public class InsideOrderDetailActivity extends WorkToolBarActivity {
tvOrderNo
.
setText
(
dataBean
.
getId
());
tvTime
.
setText
(
dataBean
.
getCreatedTime
());
tvSendTime
.
setText
(
dataBean
.
getRequireTime
());
tvDesc
.
setText
(
dataBean
.
getAttrName
());
tvOrderDesc
.
setText
(
dataBean
.
getAttrName
());
tvPrice
.
setText
(
String
.
valueOf
(
dataBean
.
getLaunchOrderAmount
()));
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/order/ProductOrderDetailActivity.java
浏览文件 @
25c34185
...
...
@@ -102,7 +102,6 @@ public class ProductOrderDetailActivity extends WorkToolBarActivity {
tvOrderNo
.
setText
(
dataBean
.
getId
());
tvTime
.
setText
(
dataBean
.
getCreatedTime
());
tvOrderPrice
.
setText
(
String
.
valueOf
(
dataBean
.
getLaunchOrderAmount
()));
}
});
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/ChooseInfoActivity.java
浏览文件 @
25c34185
...
...
@@ -623,6 +623,7 @@ public class ChooseInfoActivity extends WorkToolBarActivity implements BatChoose
TextView
tvCancel
=
view
.
findViewById
(
R
.
id
.
tv_cancel
);
AddAndReduceView
num
=
view
.
findViewById
(
R
.
id
.
ar_num
);
EditText
etPrice
=
view
.
findViewById
(
R
.
id
.
et_price
);
WorkUtils
.
addDecimalsListener
(
etPrice
);
if
(
TextUtils
.
equals
(
permissionCode
,
PermissionType
.
PROCESS_SUPPLY
.
getCode
()))
{
llPrice
.
setVisibility
(
View
.
GONE
);
}
else
{
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreSaleCarActivity.java
浏览文件 @
25c34185
...
...
@@ -17,6 +17,7 @@ import com.wd.workoffice.bean.workEnum.PermissionType;
import
com.wd.workoffice.ui.adapter.StoreCarAdapter
;
import
com.wd.workoffice.util.DialogUtils
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.Subscribe
;
...
...
@@ -106,7 +107,7 @@ public class StoreSaleCarActivity extends WorkToolBarActivity {
public
void
onViewClicked
()
{
String
allPrice
=
""
;
for
(
ProductBean
.
RecordsBean
recordsBean
:
productList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
}
if
(
productList
.
size
()
==
0
)
{
toast
(
"购物车里没有产品哦"
);
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreTradingCarActivity.java
浏览文件 @
25c34185
...
...
@@ -28,7 +28,7 @@ import butterknife.ButterKnife;
import
butterknife.OnClick
;
/**
* 商店-
销售
-购物车
* 商店-
内部交易
-购物车
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
...
...
@@ -118,7 +118,8 @@ public class StoreTradingCarActivity extends WorkToolBarActivity {
public
void
onViewClicked
()
{
String
allPrice
=
""
;
for
(
ProductBean
.
RecordsBean
recordsBean
:
productList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
}
startActivity
(
StoreTradingConfirmActivity
.
class
,
"pro"
,
getIntent
().
getStringExtra
(
"pro"
),
"subProcess"
,
getIntent
().
getStringExtra
(
"subProcess"
),
...
...
@@ -151,7 +152,8 @@ public class StoreTradingCarActivity extends WorkToolBarActivity {
tvNum
.
setText
(
"共 "
.
concat
(
productList
.
size
()
+
""
).
concat
(
" 件"
));
String
allPrice
=
""
;
for
(
ProductBean
.
RecordsBean
recordsBean
:
productList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getInternalPrice
()
+
""
,
2
),
2
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
(),
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
}
tvPrice
.
setText
(
"总计: ¥ "
.
concat
(
allPrice
));
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/store/StoreTradingConfirmActivity.java
浏览文件 @
25c34185
...
...
@@ -351,7 +351,7 @@ public class StoreTradingConfirmActivity extends WorkToolBarActivity {
tvNum
.
setText
(
"共 "
.
concat
(
proList
.
size
()
+
""
).
concat
(
" 件"
));
String
allPrice
=
""
;
for
(
ProductBean
.
RecordsBean
recordsBean
:
proList
)
{
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
+
""
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
allPrice
=
MathUtils
.
add
(
allPrice
,
MathUtils
.
multiply
(
recordsBean
.
getCarNum
()
,
recordsBean
.
getInternalPrice
()
+
""
,
3
),
3
);
}
tvPrice
.
setText
(
"总计: ¥ "
.
concat
(
allPrice
));
}
...
...
@@ -388,7 +388,7 @@ public class StoreTradingConfirmActivity extends WorkToolBarActivity {
@Override
public
void
onSuccess
(
JSONObject
jsonObject
)
{
hideLoading
();
if
(
jsonObject
.
getInteger
(
"
status
"
)
!=
0
)
{
if
(
jsonObject
.
getInteger
(
"
code
"
)
!=
0
)
{
toast
(
jsonObject
.
getString
(
"msg"
));
return
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/OrderProcessAdapter.java
浏览文件 @
25c34185
...
...
@@ -2,6 +2,7 @@ package com.wd.workoffice.ui.adapter;
import
android.graphics.Color
;
import
android.text.TextUtils
;
import
android.widget.CheckBox
;
import
android.widget.CompoundButton
;
...
...
@@ -47,7 +48,7 @@ public class OrderProcessAdapter extends BaseQuickAdapter<OrderDetail.OrderFlows
}
helper
.
setText
(
R
.
id
.
tv_status
,
item
.
getOptUserName
()
+
item
.
getEventCodeName
());
helper
.
setText
(
R
.
id
.
tv_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_remark
,
"备注:"
+
item
.
getOptComment
(
));
helper
.
setText
(
R
.
id
.
tv_remark
,
"备注:"
.
concat
(
TextUtils
.
isEmpty
(
item
.
getOptComment
())?
""
:
item
.
getOptComment
()
));
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/StoreCarAdapter.java
浏览文件 @
25c34185
...
...
@@ -14,6 +14,7 @@ import com.wd.workoffice.R;
import
com.wd.workoffice.bean.ProductBean
;
import
com.wd.workoffice.bean.event.ModifyCarEvent
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.widget.AddAndReduceView
;
import
org.greenrobot.eventbus.EventBus
;
...
...
@@ -44,8 +45,8 @@ public class StoreCarAdapter extends BaseQuickAdapter<ProductBean.RecordsBean, B
helper
.
setText
(
R
.
id
.
tv_card
,
item
.
getSoleCode
());
helper
.
setText
(
R
.
id
.
tv_card_name
,
item
.
getName
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getSpec
());
helper
.
setText
(
R
.
id
.
tv_price
,
"¥"
.
concat
(
String
.
valueOf
(
item
.
getInternalPrice
()
)));
helper
.
setText
(
R
.
id
.
tv_unit
,
String
.
valueOf
(
item
.
getWeight
()
).
concat
(
"吨"
));
helper
.
setText
(
R
.
id
.
tv_price
,
"¥"
.
concat
(
MathUtils
.
converData
(
item
.
getInternalPrice
(),
3
)));
helper
.
setText
(
R
.
id
.
tv_unit
,
MathUtils
.
converData
(
item
.
getWeight
(),
3
).
concat
(
"吨"
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
multiply
(
item
.
getCarNum
(),
item
.
getInternalPrice
()
+
""
,
3
));
if
(
type
==
1
)
{
helper
.
addOnClickListener
(
R
.
id
.
rl_choose_dep
);
...
...
@@ -83,6 +84,7 @@ public class StoreCarAdapter extends BaseQuickAdapter<ProductBean.RecordsBean, B
});
EditText
etPrice
=
helper
.
getView
(
R
.
id
.
et_price
);
etPrice
.
setText
(
item
.
getCarPrice
());
WorkUtils
.
addDecimalsListener
(
etPrice
);
etPrice
.
addTextChangedListener
(
new
TextWatcher
()
{
@Override
public
void
beforeTextChanged
(
CharSequence
s
,
int
start
,
int
count
,
int
after
)
{
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/TradingProCarAdapter.java
浏览文件 @
25c34185
...
...
@@ -36,14 +36,14 @@ public class TradingProCarAdapter extends BaseQuickAdapter<ProductBean.RecordsBe
helper
.
setText
(
R
.
id
.
tv_card_name
,
item
.
getSoleCode
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getSpec
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
valueOf
(
item
.
getInternalPrice
()));
helper
.
setText
(
R
.
id
.
tv_all_price
,
"小计:"
+
MathUtils
.
multiply
(
item
.
getCarNum
()
+
""
,
item
.
getInternalPrice
()
+
""
,
2
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
"小计:"
+
MathUtils
.
multiply
(
item
.
getCarNum
()
+
""
,
item
.
getInternalPrice
()
+
""
,
3
));
AddAndReduceView
num
=
helper
.
getView
(
R
.
id
.
ar_num
);
num
.
setNumber
(
item
.
getCarNum
());
num
.
setOnNumberChangedListener
(
new
AddAndReduceView
.
OnNumberChangedListener
()
{
@Override
public
void
OnNumberChanged
(
String
vs
)
{
item
.
setCarNum
(
vs
);
helper
.
setText
(
R
.
id
.
tv_all_price
,
"小计:"
+
MathUtils
.
multiply
(
vs
+
""
,
item
.
getInternalPrice
()
+
""
,
2
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
"小计:"
+
MathUtils
.
multiply
(
vs
+
""
,
item
.
getInternalPrice
()
+
""
,
3
));
EventBus
.
getDefault
().
post
(
new
ModifyCarEvent
(
JSON
.
toJSONString
(
getData
())));
}
...
...
app/src/main/res/layout/activity_crucible_order.xml
浏览文件 @
25c34185
...
...
@@ -39,7 +39,7 @@
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"10mm"
android:text=
"
同意
"
android:text=
""
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
...
...
@@ -396,7 +396,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"15mm"
android:text=
"
对方发起提前结束
"
android:text=
""
android:textColor=
"@color/red_btn_bg"
android:textSize=
"13sp"
/>
...
...
app/src/main/res/layout/view_add_cart_trading.xml
浏览文件 @
25c34185
...
...
@@ -52,7 +52,7 @@
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_pro"
android:layout_width=
"match_parent"
android:layout_height=
"
200mm
"
android:layout_height=
"
wrap_content
"
android:layout_marginTop=
"5mm"
/>
<LinearLayout
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论