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
a5f55087
提交
a5f55087
authored
8月 19, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.泥料
2.TODO 点维修详情测试+单独菜单
上级
db657130
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
691 行增加
和
321 行删除
+691
-321
MudBean.java
...src/main/java/com/wd/workoffice/bean/mesBean/MudBean.java
+125
-0
MesApiService.java
...c/main/java/com/wd/workoffice/retrofit/MesApiService.java
+11
-1
QualityTraceabilityActivity.java
...rkoffice/ui/activity/mes/QualityTraceabilityActivity.java
+1
-0
QualityTraceabilityDetailActivity.java
...ce/ui/activity/mes/QualityTraceabilityDetailActivity.java
+33
-6
MudAdapter.java
...rc/main/java/com/wd/workoffice/ui/adapter/MudAdapter.java
+36
-0
activity_quality_traceability_detail.xml
.../main/res/layout/activity_quality_traceability_detail.xml
+319
-314
item_quality_traceability_mud.xml
app/src/main/res/layout/item_quality_traceability_mud.xml
+166
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/bean/mesBean/MudBean.java
0 → 100644
浏览文件 @
a5f55087
package
com
.
wd
.
workoffice
.
bean
.
mesBean
;
import
java.util.List
;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public
class
MudBean
{
/**
* id : null
* createDateTime : 1596705991000
* updateDateTime : null
* mudId : null
* mudCode : 30601010003
* mudName : T214泥料
* mudVoucherNumber : NLHLGTNULL2006000601
* productId : null
* volatileMatter : 2.0
* orderId : null
* delete : null
*/
private
Object
id
;
private
long
createDateTime
;
private
Object
updateDateTime
;
private
Object
mudId
;
private
String
mudCode
;
private
String
mudName
;
private
String
mudVoucherNumber
;
private
Object
productId
;
private
double
volatileMatter
;
private
Object
orderId
;
private
Object
delete
;
public
Object
getId
()
{
return
id
;
}
public
void
setId
(
Object
id
)
{
this
.
id
=
id
;
}
public
long
getCreateDateTime
()
{
return
createDateTime
;
}
public
void
setCreateDateTime
(
long
createDateTime
)
{
this
.
createDateTime
=
createDateTime
;
}
public
Object
getUpdateDateTime
()
{
return
updateDateTime
;
}
public
void
setUpdateDateTime
(
Object
updateDateTime
)
{
this
.
updateDateTime
=
updateDateTime
;
}
public
Object
getMudId
()
{
return
mudId
;
}
public
void
setMudId
(
Object
mudId
)
{
this
.
mudId
=
mudId
;
}
public
String
getMudCode
()
{
return
mudCode
;
}
public
void
setMudCode
(
String
mudCode
)
{
this
.
mudCode
=
mudCode
;
}
public
String
getMudName
()
{
return
mudName
;
}
public
void
setMudName
(
String
mudName
)
{
this
.
mudName
=
mudName
;
}
public
String
getMudVoucherNumber
()
{
return
mudVoucherNumber
;
}
public
void
setMudVoucherNumber
(
String
mudVoucherNumber
)
{
this
.
mudVoucherNumber
=
mudVoucherNumber
;
}
public
Object
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
Object
productId
)
{
this
.
productId
=
productId
;
}
public
double
getVolatileMatter
()
{
return
volatileMatter
;
}
public
void
setVolatileMatter
(
double
volatileMatter
)
{
this
.
volatileMatter
=
volatileMatter
;
}
public
Object
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Object
orderId
)
{
this
.
orderId
=
orderId
;
}
public
Object
getDelete
()
{
return
delete
;
}
public
void
setDelete
(
Object
delete
)
{
this
.
delete
=
delete
;
}
}
app/src/main/java/com/wd/workoffice/retrofit/MesApiService.java
浏览文件 @
a5f55087
...
@@ -670,12 +670,22 @@ public interface MesApiService {
...
@@ -670,12 +670,22 @@ public interface MesApiService {
/**
/**
*
用户信息采集历史详情
*
工艺路线
*
*
* @return
* @return
*/
*/
@POST
(
"/himes/api/quality/show/productBy/dispatchDetail.json"
)
@POST
(
"/himes/api/quality/show/productBy/dispatchDetail.json"
)
Observable
<
BaseMesBean
>
dispatchDetail
(
@Query
(
"functionId"
)
String
functionId
,
@Body
RequestBody
requestBody
);
Observable
<
BaseMesBean
>
dispatchDetail
(
@Query
(
"functionId"
)
String
functionId
,
@Body
RequestBody
requestBody
);
/**
* 泥料
*
* @return
*/
@POST
(
"/himes/api/quality/show/productBy/productMud.json"
)
Observable
<
BaseMesBean
>
productMudDetail
(
@Query
(
"functionId"
)
String
functionId
,
@Body
RequestBody
requestBody
);
/**
/**
* @return
* @return
...
...
app/src/main/java/com/wd/workoffice/ui/activity/mes/QualityTraceabilityActivity.java
浏览文件 @
a5f55087
...
@@ -34,6 +34,7 @@ import flexible.xd.android_base.network.rtfhttp.Transformer;
...
@@ -34,6 +34,7 @@ import flexible.xd.android_base.network.rtfhttp.Transformer;
import
io.reactivex.disposables.Disposable
;
import
io.reactivex.disposables.Disposable
;
/**
/**
* 质量追溯
* author : flexible
* author : flexible
* email : lgd19940421@163.com
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
* github: https://github.com/FlexibleXd
...
...
app/src/main/java/com/wd/workoffice/ui/activity/mes/QualityTraceabilityDetailActivity.java
浏览文件 @
a5f55087
package
com
.
wd
.
workoffice
.
ui
.
activity
.
mes
;
package
com
.
wd
.
workoffice
.
ui
.
activity
.
mes
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseMesBean
;
import
com.wd.workoffice.app.BaseMesBean
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.mesBean.DispatchBean
;
import
com.wd.workoffice.bean.mesBean.DispatchBean
;
import
com.wd.workoffice.bean.mesBean.MudBean
;
import
com.wd.workoffice.bean.mesBean.QualityTraceabilityBean
;
import
com.wd.workoffice.bean.mesBean.QualityTraceabilityBean
;
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.a
ctivity.bat.work.WorkWarehouseStockNumActivity
;
import
com.wd.workoffice.ui.a
dapter.MudAdapter
;
import
com.wd.workoffice.ui.adapter.QualityDispatchAdapter
;
import
com.wd.workoffice.ui.adapter.QualityDispatchAdapter
;
import
com.wd.workoffice.ui.adapter.QualityTraceabilityAdapter
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -70,6 +67,8 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
...
@@ -70,6 +67,8 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
private
List
<
DispatchBean
>
dispatchList
;
private
List
<
DispatchBean
>
dispatchList
;
private
QualityDispatchAdapter
dispatchAdapter
;
private
QualityDispatchAdapter
dispatchAdapter
;
private
QualityTraceabilityBean
.
ListBean
info
;
private
QualityTraceabilityBean
.
ListBean
info
;
private
List
<
MudBean
>
mudList
;
private
MudAdapter
mudAdapter
;
@Override
@Override
protected
void
initView
()
{
protected
void
initView
()
{
...
@@ -91,11 +90,14 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
...
@@ -91,11 +90,14 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
tvBoxNum
.
setText
(
info
.
getBoxNumber
());
tvBoxNum
.
setText
(
info
.
getBoxNumber
());
tvFactoryName
.
setText
(
info
.
getSiteName
());
tvFactoryName
.
setText
(
info
.
getSiteName
());
tvFactoryCode
.
setText
(
info
.
getSiteCode
());
tvFactoryCode
.
setText
(
info
.
getSiteCode
());
tvCode
.
setText
(
info
.
getManufactureOrderNumber
());
tvCode
.
setText
(
info
.
getManufactureOrderNumber
());
tvVersion
.
setText
(
info
.
getVerson
());
tvVersion
.
setText
(
info
.
getVerson
());
tvPro
.
setText
(
info
.
getSeriesName
());
tvPro
.
setText
(
info
.
getSeriesName
());
mudList
=
new
ArrayList
<>();
mudAdapter
=
new
MudAdapter
(
R
.
layout
.
item_quality_traceability_mud
,
mudList
);
mudAdapter
.
bindToRecyclerView
(
rvMud
);
dispatchList
=
new
ArrayList
<>();
dispatchList
=
new
ArrayList
<>();
dispatchAdapter
=
new
QualityDispatchAdapter
(
R
.
layout
.
item_quality_traceability_dispatch
,
dispatchList
);
dispatchAdapter
=
new
QualityDispatchAdapter
(
R
.
layout
.
item_quality_traceability_dispatch
,
dispatchList
);
dispatchAdapter
.
bindToRecyclerView
(
rvDispatch
);
dispatchAdapter
.
bindToRecyclerView
(
rvDispatch
);
...
@@ -131,6 +133,31 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
...
@@ -131,6 +133,31 @@ public class QualityTraceabilityDetailActivity extends WorkToolBarActivity {
dispatchAdapter
.
notifyDataSetChanged
();
dispatchAdapter
.
notifyDataSetChanged
();
}
}
});
});
RtfUtils
.
getMesRtf
().
productMudDetail
(
"1"
,
WorkUtils
.
convertMapToBody
(
param
)).
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseMesBean
>()
{
@Override
public
void
doOnSubscribe
(
Disposable
d
)
{
}
@Override
public
void
onFail
(
String
errorMsg
)
{
hideLoading
();
toast
(
errorMsg
);
}
@Override
public
void
onSuccess
(
BaseMesBean
data
)
{
hideLoading
();
if
(!
data
.
isSuccess
())
{
toast
(
data
.
getMessage
());
return
;
}
List
<
MudBean
>
getList
=
JSON
.
parseArray
(
data
.
getData
().
toString
(),
MudBean
.
class
);
mudList
.
clear
();
mudList
.
addAll
(
getList
);
mudAdapter
.
notifyDataSetChanged
();
}
});
}
}
@Override
@Override
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/MudAdapter.java
0 → 100644
浏览文件 @
a5f55087
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.mesBean.DispatchBean
;
import
com.wd.workoffice.bean.mesBean.MudBean
;
import
com.wd.workoffice.util.MathUtils
;
import
java.util.List
;
import
flexible.xd.android_base.utils.TimeUtils
;
/**
* Created by flexible on 2018/8/13.
*/
public
class
MudAdapter
extends
BaseQuickAdapter
<
MudBean
,
BaseViewHolder
>
{
public
MudAdapter
(
int
layoutResId
,
List
data
)
{
super
(
layoutResId
,
data
);
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
MudBean
item
)
{
// helper.setText(R.id.tv_no,String.format( "泥料编码:%s",item.getProcedureName()));
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getMudName
());
helper
.
setText
(
R
.
id
.
tv_code
,
item
.
getMudCode
());
helper
.
setText
(
R
.
id
.
tv_code_no
,
item
.
getMudVoucherNumber
());
helper
.
setText
(
R
.
id
.
tv_data
,
TimeUtils
.
millis2String
(
item
.
getCreateDateTime
()));
helper
.
setText
(
R
.
id
.
tv_volatilize
,
MathUtils
.
converData
(
item
.
getVolatileMatter
(),
3
));
}
}
app/src/main/res/layout/activity_quality_traceability_detail.xml
浏览文件 @
a5f55087
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
>
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"17mm"
android:text=
"订单属性"
android:textSize=
"14sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"8mm"
android:background=
"@color/white"
android:orientation=
"vertical"
android:paddingHorizontal=
"20mm"
android:paddingTop=
"10mm"
android:paddingBottom=
"10mm"
>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<
RelativeLayout
<
TextView
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5mm"
>
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"17mm"
<TextView
android:text=
"订单属性"
android:id=
"@+id/tv_no"
android:textSize=
"14sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"订单号:"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_status"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"#0841F0"
android:textSize=
"14sp"
/>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin
Top=
"14
mm"
android:layout_margin
=
"8
mm"
android:background=
"
#FCFCFD
"
android:background=
"
@color/white
"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingVertical=
"10mm"
>
android:paddingHorizontal=
"20mm"
android:paddingTop=
"10mm"
<RelativeLayout
android:paddingBottom=
"10mm"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"单支码"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_single_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:layout_marginTop=
"5mm"
>
android:paddingHorizontal=
"10mm"
>
<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:layout_centerVertical=
"true"
android:text=
"订单号:"
android:layout_marginLeft=
"10mm"
android:textSize=
"16sp"
android:text=
"产品名称"
android:textStyle=
"bold"
/>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
pro_name
"
android:id=
"@+id/tv_
status
"
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"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"
@color/flexible_text_gray
"
android:textColor=
"
#0841F0
"
android:textSize=
"1
3
sp"
/>
android:textSize=
"1
4
sp"
/>
</RelativeLayout>
</RelativeLayout>
<
Relative
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:layout_marginTop=
"14mm"
android:paddingHorizontal=
"10mm"
>
android:background=
"#FCFCFD"
android:orientation=
"vertical"
android:paddingVertical=
"10mm"
>
<
TextView
<
RelativeLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:layout_marginLeft=
"10mm"
android:text=
"产品编码"
<TextView
android:textColor=
"@color/flexible_text_gray"
android:layout_width=
"wrap_content"
android:textSize=
"13sp"
/>
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
<TextView
android:layout_marginLeft=
"10mm"
android:id=
"@+id/tv_pro_code"
android:text=
"单支码"
android:layout_width=
"wrap_content"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_single_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"10mm"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_centerVertical=
"true"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"10mm"
android:layout_height=
"wrap_content"
android:text=
"产品名称"
android:layout_marginTop=
"10mm"
android:textColor=
"@color/flexible_text_gray"
android:paddingHorizontal=
"10mm"
>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/tv_pro_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"10mm"
>
android:text=
"图号"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<TextView
android:layout_centerVertical=
"true"
android:id=
"@+id/tv_img_code"
android:layout_marginLeft=
"10mm"
android:layout_width=
"wrap_content"
android:text=
"产品编码"
android:layout_height=
"wrap_content"
android:textColor=
"@color/flexible_text_gray"
android:layout_alignParentRight=
"true"
android:textSize=
"13sp"
/>
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:id=
"@+id/tv_pro_code"
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_alignParentRight=
"true"
android:layout_width=
"match_parent"
android:layout_centerVertical=
"true"
android:layout_height=
"wrap_content"
android:textColor=
"@color/flexible_text_gray"
android:layout_marginTop=
"10mm"
android:textSize=
"13sp"
/>
android:paddingHorizontal=
"10mm"
>
</RelativeLayout>
<TextView
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"规格型号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_spec"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"10mm"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_centerVertical=
"true"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"10mm"
android:layout_height=
"wrap_content"
android:text=
"图号"
android:layout_marginTop=
"10mm"
android:textColor=
"@color/flexible_text_gray"
android:paddingHorizontal=
"10mm"
>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/tv_img_code"
android:layout_height=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:layout_alignParentRight=
"true"
android:text=
"箱码"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
</RelativeLayout>
<TextView
android:id=
"@+id/tv_box_num"
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"10mm"
>
android:text=
"工厂名称"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<TextView
android:layout_centerVertical=
"true"
android:id=
"@+id/tv_factory_name"
android:layout_marginLeft=
"10mm"
android:layout_width=
"wrap_content"
android:text=
"规格型号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_spec"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"10mm"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_centerVertical=
"true"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"10mm"
android:layout_height=
"wrap_content"
android:text=
"箱码"
android:layout_marginTop=
"10mm"
android:textColor=
"@color/flexible_text_gray"
android:paddingHorizontal=
"10mm"
>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/tv_box_num"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"10mm"
>
android:text=
"工厂编码"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<TextView
android:layout_centerVertical=
"true"
android:id=
"@+id/tv_factory_code"
android:layout_marginLeft=
"10mm"
android:layout_width=
"wrap_content"
android:text=
"工厂名称"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_factory_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"10mm"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_centerVertical=
"true"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"10mm"
android:layout_height=
"wrap_content"
android:text=
"工厂编码"
android:layout_marginTop=
"10mm"
android:textColor=
"@color/flexible_text_gray"
android:paddingHorizontal=
"10mm"
>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/tv_factory_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"10mm"
>
android:text=
"制令编码"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<TextView
android:layout_centerVertical=
"true"
android:id=
"@+id/tv_code"
android:layout_marginLeft=
"10mm"
android:layout_width=
"wrap_content"
android:text=
"制令编码"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"10mm"
android:layout_centerVertical=
"true"
android:paddingHorizontal=
"10mm"
>
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
</RelativeLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_centerVertical=
"true"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"10mm"
android:layout_height=
"wrap_content"
android:text=
"版本号"
android:layout_marginTop=
"10mm"
android:textColor=
"@color/flexible_text_gray"
android:paddingHorizontal=
"10mm"
>
android:textSize=
"13sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/tv_version"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"10mm"
>
android:text=
"版本号"
android:textColor=
"@color/flexible_text_gray"
<TextView
android:textSize=
"13sp"
/>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"所属产品系列"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_pro"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/tv_version"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"10mm"
android:layout_alignParentRight=
"true"
android:paddingHorizontal=
"17mm"
android:layout_centerVertical=
"true"
android:text=
"泥料追溯"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
<androidx.recyclerview.widget.RecyclerView
android:layout_width=
"match_parent"
android:id=
"@+id/rv_mud"
android:layout_height=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_marginTop=
"10mm"
android:layout_height=
"wrap_content"
/>
android:paddingHorizontal=
"10mm"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginVertical=
"10mm"
android:layout_marginLeft=
"10mm"
android:paddingHorizontal=
"17mm"
android:text=
"所属产品系列"
android:text=
"工艺路线追溯"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
android:textSize=
"13sp"
/>
<TextView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/tv_pro"
android:id=
"@+id/rv_dispatch"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<TextView
\ No newline at end of file
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"10mm"
android:paddingHorizontal=
"17mm"
android:text=
"泥料追溯"
android:textSize=
"14sp"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_mud"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"10mm"
android:paddingHorizontal=
"17mm"
android:text=
"工艺路线追溯"
android:textSize=
"14sp"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_dispatch"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/item_quality_traceability_mud.xml
0 → 100644
浏览文件 @
a5f55087
<?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:layout_centerHorizontal=
"true"
android:layout_margin=
"8mm"
android:background=
"@color/white"
android:orientation=
"vertical"
android:paddingHorizontal=
"20mm"
android:paddingTop=
"10mm"
android:paddingBottom=
"10mm"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5mm"
>
<TextView
android:id=
"@+id/tv_no"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"泥料编码:"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_status"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"#0841F0"
android:textSize=
"14sp"
/>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"14mm"
android:background=
"#FCFCFD"
android:orientation=
"vertical"
android:paddingVertical=
"10mm"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"泥料名称"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"泥料编码"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"泥料传票号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_code_no"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"生产日期"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_data"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:paddingHorizontal=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"挥发份"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
<TextView
android:id=
"@+id/tv_volatilize"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"13sp"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论