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
bd5b2e65
提交
bd5b2e65
authored
6月 21, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.利润分析页面
上级
f139d4ac
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
319 行增加
和
64 行删除
+319
-64
WorkFinancialProfitActivity.java
...ice/ui/activity/bat/work/WorkFinancialProfitActivity.java
+4
-3
WorkFinancialProfitDetailActivity.java
.../activity/bat/work/WorkFinancialProfitDetailActivity.java
+20
-50
ProfitProductAdapter.java
...va/com/wd/workoffice/ui/adapter/ProfitProductAdapter.java
+39
-0
WorkProfitAdapter.java
.../java/com/wd/workoffice/ui/adapter/WorkProfitAdapter.java
+31
-0
activity_profit.xml
app/src/main/res/layout/activity_profit.xml
+1
-1
activity_profit_detail.xml
app/src/main/res/layout/activity_profit_detail.xml
+9
-9
activity_profit_rule.xml
app/src/main/res/layout/activity_profit_rule.xml
+5
-1
item_profit.xml
app/src/main/res/layout/item_profit.xml
+4
-0
item_profit_product.xml
app/src/main/res/layout/item_profit_product.xml
+206
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkFinancialProfitActivity.java
浏览文件 @
bd5b2e65
...
@@ -17,6 +17,7 @@ import com.wd.workoffice.bean.ProPriceBean;
...
@@ -17,6 +17,7 @@ import com.wd.workoffice.bean.ProPriceBean;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.WorkProPriceAdapter
;
import
com.wd.workoffice.ui.adapter.WorkProPriceAdapter
;
import
com.wd.workoffice.ui.adapter.WorkProfitAdapter
;
import
com.wd.workoffice.util.PickTimeUtils
;
import
com.wd.workoffice.util.PickTimeUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
...
@@ -58,7 +59,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
...
@@ -58,7 +59,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
TextView
tvSale
;
TextView
tvSale
;
private
Map
<
String
,
Object
>
param
;
private
Map
<
String
,
Object
>
param
;
private
List
<
ProPriceBean
.
RecordsBean
>
dataList
;
private
List
<
ProPriceBean
.
RecordsBean
>
dataList
;
private
WorkPro
Price
Adapter
dataAdapter
;
private
WorkPro
fit
Adapter
dataAdapter
;
private
int
page
=
1
;
private
int
page
=
1
;
@Override
@Override
...
@@ -71,7 +72,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
...
@@ -71,7 +72,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
@Override
@Override
protected
void
initData
()
{
protected
void
initData
()
{
dataList
=
new
ArrayList
<>();
dataList
=
new
ArrayList
<>();
dataAdapter
=
new
WorkPro
PriceAdapter
(
R
.
layout
.
item_pro_price
,
dataList
);
dataAdapter
=
new
WorkPro
fitAdapter
(
R
.
layout
.
item_profit
,
dataList
);
dataAdapter
.
bindToRecyclerView
(
rvData
);
dataAdapter
.
bindToRecyclerView
(
rvData
);
dataAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_content
,
rvData
);
dataAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_content
,
rvData
);
param
=
WorkUtils
.
pageKey
();
param
=
WorkUtils
.
pageKey
();
...
@@ -151,7 +152,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
...
@@ -151,7 +152,7 @@ public class WorkFinancialProfitActivity extends WorkToolBarActivity {
public
void
onTimeSelect
(
Date
date
,
View
v
)
{
public
void
onTimeSelect
(
Date
date
,
View
v
)
{
tvTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM"
)));
tvTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM"
)));
}
}
},
true
);
},
true
)
.
show
()
;
}
}
@Override
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkFinancialProfitDetailActivity.java
浏览文件 @
bd5b2e65
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.bigkoo.pickerview.listener.OnTimeSelectListener
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.BaseBean
;
...
@@ -15,13 +11,10 @@ import com.wd.workoffice.app.WorkToolBarActivity;
...
@@ -15,13 +11,10 @@ import com.wd.workoffice.app.WorkToolBarActivity;
import
com.wd.workoffice.bean.ProPriceBean
;
import
com.wd.workoffice.bean.ProPriceBean
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.WorkProPriceAdapter
;
import
com.wd.workoffice.ui.adapter.ProfitProductAdapter
;
import
com.wd.workoffice.util.PickTimeUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -29,9 +22,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
...
@@ -29,9 +22,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import
androidx.recyclerview.widget.RecyclerView
;
import
androidx.recyclerview.widget.RecyclerView
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
flexible.xd.android_base.utils.TimeUtils
;
import
io.reactivex.disposables.Disposable
;
import
io.reactivex.disposables.Disposable
;
/**
/**
...
@@ -41,23 +32,27 @@ import io.reactivex.disposables.Disposable;
...
@@ -41,23 +32,27 @@ import io.reactivex.disposables.Disposable;
**/
**/
public
class
WorkFinancialProfitDetailActivity
extends
WorkToolBarActivity
{
public
class
WorkFinancialProfitDetailActivity
extends
WorkToolBarActivity
{
@BindView
(
R
.
id
.
rv_data
)
@BindView
(
R
.
id
.
tv_name
)
RecyclerView
rvData
;
TextView
tvName
;
@BindView
(
R
.
id
.
tv_dep_name
)
@BindView
(
R
.
id
.
tv_people
)
TextView
tvDepName
;
TextView
tvPeople
;
@BindView
(
R
.
id
.
tv_dep
)
TextView
tvDep
;
@BindView
(
R
.
id
.
tv_order_no
)
TextView
tvOrderNo
;
@BindView
(
R
.
id
.
tv_order_type
)
TextView
tvOrderType
;
@BindView
(
R
.
id
.
tv_time
)
@BindView
(
R
.
id
.
tv_time
)
TextView
tvTime
;
TextView
tvTime
;
@BindView
(
R
.
id
.
ll_time
)
@BindView
(
R
.
id
.
tv_order_price
)
LinearLayout
llTime
;
TextView
tvOrderPrice
;
@BindView
(
R
.
id
.
tv_month_profit
)
@BindView
(
R
.
id
.
ll_sale
)
TextView
tvMonthProfit
;
LinearLayout
llSale
;
@BindView
(
R
.
id
.
tv_cost
)
@BindView
(
R
.
id
.
rv_data
)
TextView
tvCost
;
RecyclerView
rvData
;
@BindView
(
R
.
id
.
tv_sale
)
TextView
tvSale
;
private
Map
<
String
,
Object
>
param
;
private
Map
<
String
,
Object
>
param
;
private
List
<
ProPriceBean
.
RecordsBean
>
dataList
;
private
List
<
ProPriceBean
.
RecordsBean
>
dataList
;
private
WorkProPrice
Adapter
dataAdapter
;
private
ProfitProduct
Adapter
dataAdapter
;
private
int
page
=
1
;
private
int
page
=
1
;
@Override
@Override
...
@@ -70,7 +65,7 @@ public class WorkFinancialProfitDetailActivity extends WorkToolBarActivity {
...
@@ -70,7 +65,7 @@ public class WorkFinancialProfitDetailActivity extends WorkToolBarActivity {
@Override
@Override
protected
void
initData
()
{
protected
void
initData
()
{
dataList
=
new
ArrayList
<>();
dataList
=
new
ArrayList
<>();
dataAdapter
=
new
WorkProPriceAdapter
(
R
.
layout
.
item_pro_price
,
dataList
);
dataAdapter
=
new
ProfitProductAdapter
(
R
.
layout
.
item_profit_product
,
dataList
);
dataAdapter
.
bindToRecyclerView
(
rvData
);
dataAdapter
.
bindToRecyclerView
(
rvData
);
dataAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_content
,
rvData
);
dataAdapter
.
setEmptyView
(
R
.
layout
.
view_empty_content
,
rvData
);
param
=
WorkUtils
.
pageKey
();
param
=
WorkUtils
.
pageKey
();
...
@@ -133,32 +128,7 @@ public class WorkFinancialProfitDetailActivity extends WorkToolBarActivity {
...
@@ -133,32 +128,7 @@ public class WorkFinancialProfitDetailActivity extends WorkToolBarActivity {
@Override
@Override
protected
int
layoutId
()
{
protected
int
layoutId
()
{
return
R
.
layout
.
activity_profit
;
return
R
.
layout
.
activity_profit
_detail
;
}
}
@OnClick
(
R
.
id
.
ll_time
)
public
void
onViewClicked
()
{
PickTimeUtils
.
showPickTwo
(
this
,
new
OnTimeSelectListener
()
{
@Override
public
void
onTimeSelect
(
Date
date
,
View
v
)
{
tvTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM"
)));
}
},
true
);
}
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
getMenuInflater
().
inflate
(
R
.
menu
.
menu_rule
,
menu
);
return
super
.
onCreateOptionsMenu
(
menu
);
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
switch
(
item
.
getItemId
())
{
case
R
.
id
.
rule
:
startActivity
(
WorkFinancialProfitRuleActivity
.
class
);
break
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/ProfitProductAdapter.java
0 → 100644
浏览文件 @
bd5b2e65
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.bean.workEnum.PagePermissionType
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.util.List
;
/**
* Created by flexible on 2018/8/13.
*/
public
class
ProfitProductAdapter
extends
BaseQuickAdapter
<
OrderDetail
.
OrderItemsBean
,
BaseViewHolder
>
{
public
ProfitProductAdapter
(
int
layoutResId
,
List
data
)
{
super
(
layoutResId
,
data
);
}
@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_sale_price
,
"¥"
.
concat
(
MathUtils
.
converData
(
item
.
getInnerPrice
(),
3
)));
helper
.
setText
(
R
.
id
.
tv_price
,
"¥"
.
concat
(
MathUtils
.
converData
(
item
.
getInnerPrice
(),
3
)));
helper
.
setText
(
R
.
id
.
tv_all_price
,
"¥"
.
concat
(
MathUtils
.
multiply
(
MathUtils
.
converData
(
item
.
getProductCount
(),
3
),
MathUtils
.
converData
(
item
.
getInnerPrice
(),
3
),
3
)));
helper
.
setText
(
R
.
id
.
tv_unit
,
item
.
getProductUnit
());
helper
.
setText
(
R
.
id
.
tv_num
,
MathUtils
.
converData
(
item
.
getProductCount
(),
3
));
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/WorkProfitAdapter.java
0 → 100644
浏览文件 @
bd5b2e65
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.ProPriceBean
;
import
com.wd.workoffice.util.MathUtils
;
import
java.util.List
;
/**
* Created by flexible on 2018/8/13.
*/
public
class
WorkProfitAdapter
extends
BaseQuickAdapter
<
ProPriceBean
.
RecordsBean
,
BaseViewHolder
>
{
public
WorkProfitAdapter
(
int
layoutResId
,
List
data
)
{
super
(
layoutResId
,
data
);
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
ProPriceBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_price
,
MathUtils
.
converData
(
item
.
getNewPrice
(),
3
));
helper
.
setText
(
R
.
id
.
tv_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_person
,
"提交人:"
.
concat
(
item
.
getCreatedByName
()));
helper
.
setText
(
R
.
id
.
tv_remark
,
"备注:"
.
concat
(
item
.
getRemark
()));
}
}
app/src/main/res/layout/activity_profit.xml
浏览文件 @
bd5b2e65
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:background=
"@color/white"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
...
app/src/main/res/layout/activity_profit_detail.xml
浏览文件 @
bd5b2e65
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:paddingBottom=
"20mm"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingHorizontal=
"20mm"
>
android:paddingHorizontal=
"20mm"
android:paddingBottom=
"20mm"
>
<TextView
<TextView
android:id=
"@+id/tv_name"
android:id=
"@+id/tv_name"
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
android:paddingVertical=
"10mm"
>
android:paddingVertical=
"10mm"
>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_dep"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"10mm"
>
android:paddingHorizontal=
"10mm"
>
...
@@ -79,7 +78,7 @@
...
@@ -79,7 +78,7 @@
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
dep
"
android:id=
"@+id/tv_
people
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
@@ -105,7 +104,7 @@
...
@@ -105,7 +104,7 @@
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
place_name
"
android:id=
"@+id/tv_
dep
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
@@ -140,6 +139,7 @@
...
@@ -140,6 +139,7 @@
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
send_tim
e"
android:id=
"@+id/tv_
order_typ
e"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
@@ -165,6 +165,7 @@
...
@@ -165,6 +165,7 @@
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -215,7 +216,6 @@
...
@@ -215,7 +216,6 @@
</LinearLayout>
</LinearLayout>
<View
style=
"@style/ViewX"
/>
<View
style=
"@style/ViewX"
/>
<LinearLayout
<LinearLayout
...
@@ -232,12 +232,12 @@
...
@@ -232,12 +232,12 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:layout_marginLeft=
"10mm"
android:text=
"
活
品信息"
android:text=
"
货
品信息"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_
from
"
android:id=
"@+id/rv_
data
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
...
...
app/src/main/res/layout/activity_profit_rule.xml
浏览文件 @
bd5b2e65
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20mm"
android:layout_marginTop=
"20mm"
android:lineSpacingMultiplier=
"1.5"
android:text=
"1、销售利润=销售额-成本。销售额=销售单价×数量,计算已接单订单,除去提前结束的无效订单。"
android:text=
"1、销售利润=销售额-成本。销售额=销售单价×数量,计算已接单订单,除去提前结束的无效订单。"
android:textColor=
"@color/flexible_text_gray"
/>
android:textColor=
"@color/flexible_text_gray"
/>
...
@@ -24,6 +25,7 @@
...
@@ -24,6 +25,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15mm"
android:layout_marginTop=
"15mm"
android:lineSpacingMultiplier=
"1.5"
android:text=
"2、统计时限以自然月为基本口径。"
android:text=
"2、统计时限以自然月为基本口径。"
android:textColor=
"@color/flexible_text_gray"
/>
android:textColor=
"@color/flexible_text_gray"
/>
...
@@ -31,13 +33,14 @@
...
@@ -31,13 +33,14 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15mm"
android:layout_marginTop=
"15mm"
android:lineSpacingMultiplier=
"1.5"
android:text=
"3、主要帮助销售公司展示销售利润,只计算具有销售下单和外采购下单权限的部门。"
android:text=
"3、主要帮助销售公司展示销售利润,只计算具有销售下单和外采购下单权限的部门。"
android:textColor=
"@color/flexible_text_gray"
/>
android:textColor=
"@color/flexible_text_gray"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15mm"
android:layout_marginTop=
"15mm"
android:lineSpacingMultiplier=
"1.5"
android:text=
"4、由于统计口径不一致、网络存在延迟等原因,统计数据可能与实际不符,请以实际交易为准。"
android:text=
"4、由于统计口径不一致、网络存在延迟等原因,统计数据可能与实际不符,请以实际交易为准。"
android:textColor=
"@color/flexible_text_gray"
/>
android:textColor=
"@color/flexible_text_gray"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/item_profit.xml
浏览文件 @
bd5b2e65
...
@@ -14,12 +14,14 @@
...
@@ -14,12 +14,14 @@
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_no"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"订单"
/>
android:text=
"订单"
/>
<TextView
<TextView
android:id=
"@+id/tv_time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3mm"
android:layout_marginTop=
"3mm"
...
@@ -30,6 +32,7 @@
...
@@ -30,6 +32,7 @@
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/tv_cost"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -37,6 +40,7 @@
...
@@ -37,6 +40,7 @@
android:text=
"成本(元)"
/>
android:text=
"成本(元)"
/>
<TextView
<TextView
android:id=
"@+id/tv_sale"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
...
app/src/main/res/layout/item_profit_product.xml
0 → 100644
浏览文件 @
bd5b2e65
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"vertical"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"10mm"
>
<TextView
android:id=
"@+id/tv_card_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"图号TH82739857"
android:textColor=
"@color/black"
android:textSize=
"16sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"14mm"
android:background=
"#FCFCFD"
android:orientation=
"vertical"
android:padding=
"10mm"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_card"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"品名"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"规格"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_spec"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"成本单价"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"销售单价"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_sale_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"单位"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_unit"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"数量"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_num"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_marginTop=
"4mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"小计:"
android:textColor=
"@color/flexible_text_gray"
/>
<TextView
android:id=
"@+id/tv_all_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0"
android:textColor=
"@color/flexible_text_gray"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论