提交 45089f12 authored 作者: lgd's avatar lgd

1.流水

2.//TODO erp用户激活测试,忘记/重置密码测试,领用申请列表/退件列表/参数,坩埚下单页面,组装下单,产品下单还差附件测试,mes,消息,刷新token
上级 a20621d8
......@@ -960,7 +960,14 @@
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.order.ProFlowActivity"
android:configChanges="keyboardHidden|orientation"
android:label="产品流水"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.wd.workoffice.fileprovider"
......
......@@ -1511,11 +1511,11 @@ public class OrderDetail {
*/
private String stockName;
private int quantity;
private int applyOut;
private double quantity;
private double applyOut;
private String stockTypeName;
private int stockId;
private int applyInto;
private double applyInto;
private Object productName;
public String getStockName() {
......@@ -1526,19 +1526,19 @@ public class OrderDetail {
this.stockName = stockName;
}
public int getQuantity() {
public double getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
public void setQuantity(double quantity) {
this.quantity = quantity;
}
public int getApplyOut() {
public double getApplyOut() {
return applyOut;
}
public void setApplyOut(int applyOut) {
public void setApplyOut(double applyOut) {
this.applyOut = applyOut;
}
......@@ -1558,11 +1558,11 @@ public class OrderDetail {
this.stockId = stockId;
}
public int getApplyInto() {
public double getApplyInto() {
return applyInto;
}
public void setApplyInto(int applyInto) {
public void setApplyInto(double applyInto) {
this.applyInto = applyInto;
}
......
......@@ -1227,7 +1227,11 @@ public interface ApiService {
*/
@PUT("/enterStoreApply/so/audit/{id}")
Observable<BaseBean> addStockApplyCheck(@Path("id") String id, @Body RequestBody requestBody);
/**
* 获取一个订单子表的全部流水
*
* @return
*/
@GET("/orderFlow/orderItem/allFlows/{orderItemId}")
Observable<BaseBean> orderItemFlow(@Path("orderItemId") String orderItemId);
}
package com.wd.workoffice.ui.activity.bat.order;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.google.android.material.tabs.TabLayout;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.ui.adapter.VpDataAdapter;
import com.wd.workoffice.ui.fg.ProFlowFragment;
import com.wd.workoffice.ui.fg.ProStockFragment;
import java.util.ArrayList;
import java.util.List;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.viewpager.widget.ViewPager;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* 产品流水
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProFlowActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
@BindView(R.id.tv_name)
TextView tvName;
private String tab[] = {
"产品流水", "产品库存"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
tlTab.setTabMode(TabLayout.MODE_FIXED);
}
@Override
protected void initData() {
tvName.setText(getIntent().getStringExtra("product"));
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
ProFlowFragment proFlowFragment = new ProFlowFragment();
ProStockFragment proStockFragment = new ProStockFragment();
Bundle bundle = new Bundle();
bundle.putString("orderItemId", getIntent().getStringExtra("orderItemId"));
// bundle.putString("productId", getIntent().getStringExtra("productId"));
// bundle.putString("num", getIntent().getStringExtra("num"));
bundle.putString("info", getIntent().getStringExtra("info"));
proFlowFragment.setArguments(bundle);
proStockFragment.setArguments(bundle);
data.add(proFlowFragment);
data.add(proStockFragment);
VpDataAdapter vpFgAdapter = new VpDataAdapter(sfm, data);
vpData.setAdapter(vpFgAdapter);
for (int i = 0; i < tab.length; i++) {
tlTab.getTabAt(i).setText(tab[i]);
}
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_pro_flow;
}
}
......@@ -22,6 +22,7 @@ import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.activity.bat.order.AddStockApplyActivity;
import com.wd.workoffice.ui.activity.bat.order.EndApplyActivity;
import com.wd.workoffice.ui.activity.bat.order.ProFlowActivity;
import com.wd.workoffice.ui.activity.bat.order.ReturnApplyActivity;
import com.wd.workoffice.ui.activity.bat.order.SendApplyActivity;
import com.wd.workoffice.ui.activity.bat.order.UseApplyActivity;
......@@ -227,7 +228,7 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity {
case R.id.tv_get:
startActivity(UseApplyActivity.class,
"status", dataBean.getStatus() + "",
"num", proList.get(position).getStoreSum() + "",
"num", proList.get(position).getCanOutStoreProductSum() + "",
"product", proList.get(position).getProductName(),
"simpleCode", proList.get(position).getProductSimpleCode(),
"orderId", getIntent().getStringExtra("id"),
......@@ -253,6 +254,15 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity {
"productId", proList.get(position).getProductId() + "");
break;
case R.id.tv_flow:
startActivity(ProFlowActivity.class,
"status", dataBean.getStatus() + "",
"num", proList.get(position).getStoreSum() + "",
"product", proList.get(position).getProductName(),
"simpleCode", proList.get(position).getProductSimpleCode(),
"orderId", getIntent().getStringExtra("id"),
"productId", proList.get(position).getProductId() + "",
"orderItemId", proList.get(position).getId(),
"info", JSON.toJSONString(proList.get(position)));
break;
}
}
......
package com.wd.workoffice.ui.adapter;
import android.graphics.Color;
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 java.util.List;
import androidx.annotation.Nullable;
/**
* Created by flexible on 2018/8/13.
*/
public class ProProcessAdapter extends BaseQuickAdapter<OrderDetail.OrderItemsBean.ItemFlowsBean, BaseViewHolder> {
public ProProcessAdapter(int layoutResId, @Nullable List<OrderDetail.OrderItemsBean.ItemFlowsBean> data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, OrderDetail.OrderItemsBean.ItemFlowsBean item) {
if (helper.getAdapterPosition() == 0) {
helper.setTextColor(R.id.tv_status, Color.parseColor("#ff359486"));
helper.setTextColor(R.id.tv_time, Color.parseColor("#ff359486"));
helper.setTextColor(R.id.tv_remark, Color.parseColor("#ff359486"));
helper.setGone(R.id.iv_last, true);
helper.setGone(R.id.iv_simple, false);
} else {
helper.setTextColor(R.id.tv_status, helper.getConvertView().getResources().getColor(R.color.flexible_text_gray));
helper.setTextColor(R.id.tv_time, helper.getConvertView().getResources().getColor(R.color.flexible_text_gray));
helper.setTextColor(R.id.tv_remark, helper.getConvertView().getResources().getColor(R.color.flexible_text_gray));
helper.setGone(R.id.iv_last, false);
helper.setGone(R.id.iv_simple, true);
}
helper.setText(R.id.tv_status, item.getEventCodeName());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_remark, "备注:" + item.getOptComment());
}
}
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.util.WorkUtils;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class ProStockAdapter extends BaseQuickAdapter<OrderDetail.OrderItemsBean.StockQuantityDetailMapsBean, BaseViewHolder> {
public ProStockAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, OrderDetail.OrderItemsBean.StockQuantityDetailMapsBean item) {
helper.setText(R.id.tv_name, item.getStockName());
helper.setText(R.id.tv_type, item.getStockTypeName());
helper.setText(R.id.tv_stock, String.valueOf(item.getQuantity()));
helper.setText(R.id.tv_stocking, String.valueOf(item.getApplyInto()));
helper.setText(R.id.tv_stocked, String.valueOf(item.getApplyOut()));
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.OrderBean;
import com.wd.workoffice.bean.OrderDetail;
import com.wd.workoffice.bean.SendApplyBean;
import com.wd.workoffice.bean.event.CheckSendEvent;
import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.activity.bat.order.SendApplyDetailActivity;
import com.wd.workoffice.ui.adapter.OrderProcessAdapter;
import com.wd.workoffice.ui.adapter.ProProcessAdapter;
import com.wd.workoffice.ui.adapter.SendApplyAdapter;
import com.wd.workoffice.util.WorkUtils;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import flexible.xd.android_base.network.rtfhttp.Transformer;
import io.reactivex.disposables.Disposable;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProFlowFragment extends WorkBaseFg {
@BindView(R.id.rv_data)
RecyclerView rvData;
@BindView(R.id.srl_refresh)
SmartRefreshLayout srlRefresh;
private String state;
private int page = 1;
private Map<String, Object> param;
private ProProcessAdapter dataAdapter;
private List<OrderDetail.OrderItemsBean.ItemFlowsBean> dataList;
private String orderId;
private OrderDetail dataBean;
private String id;
private String info;
private String orderItemId;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
// OrderDetail.OrderItemsBean data = JSON.parseObject(info, OrderDetail.OrderItemsBean.class);
dataList = new ArrayList<>();
dataAdapter = new ProProcessAdapter(R.layout.item_order_process, dataList);
dataAdapter.bindToRecyclerView(rvData);
dataAdapter.setEmptyView(R.layout.view_empty_content, rvData);
// dataList.addAll(data.getItemFlows());
// dataAdapter.notifyDataSetChanged();
getData();
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
orderItemId = arguments.getString("orderItemId");
info = arguments.getString("info");
}
}
private void getData() {
RtfUtils.getRtf().orderItemFlow(orderItemId).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
}
@Override
public void onFail(String errorMsg) {
hideLoading();
toast(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
hideLoading();
if (data.getCode() != 0) {
toast(data.getMessage());
return;
}
dataList.clear();
dataList.addAll(JSON.parseArray(data.getData().toString(), OrderDetail.OrderItemsBean.ItemFlowsBean.class));
dataAdapter.notifyDataSetChanged();
srlRefresh.finishRefresh();
// if (page == 1) {
//
// dataList.clear();
// dataList.addAll(getList);
// dataAdapter.notifyDataSetChanged();
// dataAdapter.loadMoreComplete();
// } else {
// dataAdapter.loadMoreComplete();
// dataList.addAll(getList);
// dataAdapter.notifyDataSetChanged();
// }
// if (getList.size() == 0) {
// dataAdapter.loadMoreEnd();
// } else {
// page++;
// }
}
});
}
@Override
protected void initEvent() {
srlRefresh.setOnRefreshListener(refreshLayout -> {
// getData();
srlRefresh.finishRefresh();
});
// dataAdapter.setOnLoadMoreListener(() -> {
// param.put("current", page);
// getData();
// }, rvData);
// dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
// @Override
// public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
// startActivity(SendApplyDetailActivity.class, "info", JSON.toJSONString(dataList.get(position)));
// }
// });
// dataAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
// @Override
// public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
// switch (view.getId()) {
// case R.id.tv_refuse:
// checkDialog(2, dataList.get(position).getId());
// break;
// case R.id.tv_agree:
// checkDialog(1, dataList.get(position).getId());
// break;
//
// }
// }
// });
}
@Override
protected int layoutId() {
return R.layout.fg_work_contacts;
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.OrderDetail;
import com.wd.workoffice.ui.adapter.ProStockAdapter;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProStockFragment extends WorkBaseFg {
@BindView(R.id.rv_data)
RecyclerView rvData;
@BindView(R.id.tv_stock1)
TextView tvStock1;
@BindView(R.id.tv_stock2)
TextView tvStock2;
@BindView(R.id.tv_stock3)
TextView tvStock3;
@BindView(R.id.tv_stock4)
TextView tvStock4;
private ProStockAdapter dataAdapter;
private List<OrderDetail.OrderItemsBean.StockQuantityDetailMapsBean> dataList;
private String info;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
OrderDetail.OrderItemsBean data = JSON.parseObject(info, OrderDetail.OrderItemsBean.class);
tvStock1.setText(String.valueOf(data.getStoreSum()));
tvStock2.setText(String.valueOf(data.getShipSum()));
tvStock3.setText(String.valueOf(data.getUsedSum()));
tvStock4.setText(String.valueOf(data.getInvoiceSum()));
dataList = new ArrayList<>();
dataAdapter = new ProStockAdapter(R.layout.item_pro_live_sotck, dataList);
dataAdapter.bindToRecyclerView(rvData);
dataAdapter.setEmptyView(R.layout.view_empty_content, rvData);
dataList.addAll(data.getStockQuantityDetailMaps());
dataAdapter.notifyDataSetChanged();
}
@Override
protected void initEvent() {
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
info = arguments.getString("info");
}
}
@Override
protected int layoutId() {
return R.layout.fg_pro_stock;
}
}
......@@ -2,4 +2,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#5D99C4" />
<corners android:radius="360mm" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/flexible_text_sup" />
<corners android:radius="180dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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">
<TextView
android:id="@+id/tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:paddingHorizontal="20mm"
android:paddingTop="10mm"
android:text="b393"
android:textSize="16sp" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tl_tab"
android:layout_width="match_parent"
android:layout_height="48mm"
android:background="@android:color/white"
app:tabBackground="@android:color/white"
app:tabGravity="fill"
app:tabIndicatorColor="@color/mainTextColor"
app:tabIndicatorFullWidth="false"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/mainTextColor"
app:tabTextAppearance="@style/tabText"
app:tabTextColor="#75899B" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp_data"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10mm"
android:background="@android:color/white" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/ll_bottom"
android:orientation="vertical"
android:paddingBottom="20mm">
<View style="@style/ViewX" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="10mm">
<View
android:layout_width="8mm"
android:layout_height="18mm"
android:background="@color/red_btn_bg" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10mm"
android:text="已有库存"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20mm"
android:layout_marginTop="10mm"
android:background="#F6FBFF"
android:paddingHorizontal="14mm">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_stock1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="22sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5mm"
android:text="已入库存"
android:textSize="10sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_stock2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="22sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5mm"
android:text="已发库存"
android:textSize="10sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_stock3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="22sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5mm"
android:text="已领用数"
android:textSize="10sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="22sp" />
<TextView
android:id="@+id/tv_stock4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5mm"
android:text="已开票数"
android:textSize="10sp" />
</LinearLayout>
</LinearLayout>
<View style="@style/ViewX" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="10mm">
<View
android:layout_width="8mm"
android:layout_height="18mm"
android:background="@color/red_btn_bg" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10mm"
android:text="实时库存"
android:textSize="15sp" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<?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_marginTop="10mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="20mm"
android:paddingTop="10mm"
android:paddingBottom="20mm">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5mm">
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="邢台德龙钢铁客户"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/shape_gray_btn"
android:paddingHorizontal="20mm"
android:paddingVertical="3mm"
android:text="1111"
android:textSize="14sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="库存:"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_stock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1111"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="出库中:"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_stocking"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1111"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="入库中:"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_stocked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1111"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论