提交 ebf7e628 authored 作者: lgd's avatar lgd

1.两种 4个订单列表,展示完成,还差搜索和下拉刷新

2.//TODO erp用户激活,忘记密码测试,bat,mes,消息,我的,刷新token
上级 80d688ac
......@@ -169,6 +169,70 @@
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.sale.SaleSaleOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="销售订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.sale.SaleSupplierOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="供应订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.sale.SaleInsideOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="内部订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.sale.SaleOutOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="外采购订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.product.ProductSaleOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="销售订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.product.ProductSupplierOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="供应订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.product.ProductInsideOrderActivity"
android:configChanges="keyboardHidden|orientation"
android:label="内部订单"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.product.ProductOutOrderActivity"
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"
......
package com.wd.workoffice.bean;
import java.util.List;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class SaleOrderBean {
/**
* createdBy : null
* createdByName : null
* createdTime : 2019-12-18 12:28:41
* updatedBy : null
* updatedByName : null
* updatedTime : null
* orderType : SO
* id : SO10621
* customerId : null
* supplierId : null
* launchUserId : null
* launchUserName : 冯帆
* launchDeptId : 120
* receiveUserId : null
* receiveUserName : null
* receiveDeptId : 137
* launchOrderAmount : null
* orderTypeName : null
* launchDeptName : 销售一公司
* receiveDeptName : 锆碳公司
* expandInfo : null
* status : 600
* attr : 300
* deptIdList : null
* realOrderAmount : null
* outerOrderAmount : 3284.6
* subProcessId : null
* version : 0
* customerName : 安阳钢铁1
* subProcessName : null
* statusName : 已交付
* attrName : 正常完成内部交易
* orderItems : null
* orderFlows : null
* requireTime : 2019-10-20 00:00:00
* deptId : null
*/
private Object createdBy;
private Object createdByName;
private String createdTime;
private Object updatedBy;
private Object updatedByName;
private Object updatedTime;
private String orderType;
private String id;
private Object customerId;
private Object supplierId;
private Object launchUserId;
private String launchUserName;
private int launchDeptId;
private Object receiveUserId;
private Object receiveUserName;
private int receiveDeptId;
private double launchOrderAmount;
private Object orderTypeName;
private String launchDeptName;
private String receiveDeptName;
private Object expandInfo;
private int status;
private int attr;
private Object deptIdList;
private Object realOrderAmount;
private double outerOrderAmount;
private Object subProcessId;
private int version;
private String customerName;
private Object subProcessName;
private String statusName;
private String attrName;
private Object orderItems;
private Object orderFlows;
private String requireTime;
private String inStockName;
public String getInStockName() {
return inStockName;
}
public void setInStockName(String inStockName) {
this.inStockName = inStockName;
}
public String getSupplierName() {
return supplierName;
}
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
private Object deptId;
private String supplierName;
public Object getCreatedBy() {
return createdBy;
}
public void setCreatedBy(Object createdBy) {
this.createdBy = createdBy;
}
public Object getCreatedByName() {
return createdByName;
}
public void setCreatedByName(Object createdByName) {
this.createdByName = createdByName;
}
public String getCreatedTime() {
return createdTime;
}
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
public Object getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(Object updatedBy) {
this.updatedBy = updatedBy;
}
public Object getUpdatedByName() {
return updatedByName;
}
public void setUpdatedByName(Object updatedByName) {
this.updatedByName = updatedByName;
}
public Object getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Object updatedTime) {
this.updatedTime = updatedTime;
}
public String getOrderType() {
return orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Object getCustomerId() {
return customerId;
}
public void setCustomerId(Object customerId) {
this.customerId = customerId;
}
public Object getSupplierId() {
return supplierId;
}
public void setSupplierId(Object supplierId) {
this.supplierId = supplierId;
}
public Object getLaunchUserId() {
return launchUserId;
}
public void setLaunchUserId(Object launchUserId) {
this.launchUserId = launchUserId;
}
public String getLaunchUserName() {
return launchUserName;
}
public void setLaunchUserName(String launchUserName) {
this.launchUserName = launchUserName;
}
public int getLaunchDeptId() {
return launchDeptId;
}
public void setLaunchDeptId(int launchDeptId) {
this.launchDeptId = launchDeptId;
}
public Object getReceiveUserId() {
return receiveUserId;
}
public void setReceiveUserId(Object receiveUserId) {
this.receiveUserId = receiveUserId;
}
public Object getReceiveUserName() {
return receiveUserName;
}
public void setReceiveUserName(Object receiveUserName) {
this.receiveUserName = receiveUserName;
}
public int getReceiveDeptId() {
return receiveDeptId;
}
public void setReceiveDeptId(int receiveDeptId) {
this.receiveDeptId = receiveDeptId;
}
public double getLaunchOrderAmount() {
return launchOrderAmount;
}
public void setLaunchOrderAmount(double launchOrderAmount) {
this.launchOrderAmount = launchOrderAmount;
}
public Object getOrderTypeName() {
return orderTypeName;
}
public void setOrderTypeName(Object orderTypeName) {
this.orderTypeName = orderTypeName;
}
public String getLaunchDeptName() {
return launchDeptName;
}
public void setLaunchDeptName(String launchDeptName) {
this.launchDeptName = launchDeptName;
}
public String getReceiveDeptName() {
return receiveDeptName;
}
public void setReceiveDeptName(String receiveDeptName) {
this.receiveDeptName = receiveDeptName;
}
public Object getExpandInfo() {
return expandInfo;
}
public void setExpandInfo(Object expandInfo) {
this.expandInfo = expandInfo;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getAttr() {
return attr;
}
public void setAttr(int attr) {
this.attr = attr;
}
public Object getDeptIdList() {
return deptIdList;
}
public void setDeptIdList(Object deptIdList) {
this.deptIdList = deptIdList;
}
public Object getRealOrderAmount() {
return realOrderAmount;
}
public void setRealOrderAmount(Object realOrderAmount) {
this.realOrderAmount = realOrderAmount;
}
public double getOuterOrderAmount() {
return outerOrderAmount;
}
public void setOuterOrderAmount(double outerOrderAmount) {
this.outerOrderAmount = outerOrderAmount;
}
public Object getSubProcessId() {
return subProcessId;
}
public void setSubProcessId(Object subProcessId) {
this.subProcessId = subProcessId;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public Object getSubProcessName() {
return subProcessName;
}
public void setSubProcessName(Object subProcessName) {
this.subProcessName = subProcessName;
}
public String getStatusName() {
return statusName;
}
public void setStatusName(String statusName) {
this.statusName = statusName;
}
public String getAttrName() {
return attrName;
}
public void setAttrName(String attrName) {
this.attrName = attrName;
}
public Object getOrderItems() {
return orderItems;
}
public void setOrderItems(Object orderItems) {
this.orderItems = orderItems;
}
public Object getOrderFlows() {
return orderFlows;
}
public void setOrderFlows(Object orderFlows) {
this.orderFlows = orderFlows;
}
public String getRequireTime() {
return requireTime;
}
public void setRequireTime(String requireTime) {
this.requireTime = requireTime;
}
public Object getDeptId() {
return deptId;
}
public void setDeptId(Object deptId) {
this.deptId = deptId;
}
}
package com.wd.workoffice.contract;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.bean.ProcessBean;
import com.wd.workoffice.bean.SaleOrderBean;
import java.util.List;
import java.util.Map;
import flexible.xd.android_base.mvpBase.IBaseModel;
import flexible.xd.android_base.mvpBase.IBasePresenter;
import flexible.xd.android_base.mvpBase.IBaseView;
import io.reactivex.Observable;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public interface SaleSaleContract {
interface Model extends IBaseModel {
Observable<BaseBean> getOrder(Map<String, Object> param);
Observable<BaseBean> getOutOrder(Map<String, Object> param);
Observable<BaseBean> getInsideOrder(Map<String, Object> param);
Observable<BaseBean> getSupplierOrder(Map<String, Object> param);
}
interface View extends IBaseView {
void saleList(List<SaleOrderBean> dataList);
void outList(List<SaleOrderBean> dataList);
void insideList(List<SaleOrderBean> dataList);
void supplierList(List<SaleOrderBean> dataList);
}
interface Presenter extends IBasePresenter<View> {
void getOrder(Map<String, Object> param);
void getOutOrder(Map<String, Object> param);
void getInsideOrder(Map<String, Object> param);
void getSupplierOrder(Map<String, Object> param);
}
}
package com.wd.workoffice.model;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.retrofit.RtfUtils;
import java.util.Map;
import io.reactivex.Observable;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class SaleSaleModel implements SaleSaleContract.Model {
public static SaleSaleModel newInstance() {
return new SaleSaleModel();
}
@Override
public Observable<BaseBean> getOrder(Map<String, Object> param) {
return RtfUtils.getRtf().getOrder(param);
}
@Override
public Observable<BaseBean> getOutOrder(Map<String, Object> param) {
return RtfUtils.getRtf().getOutOrder(param);
}
@Override
public Observable<BaseBean> getInsideOrder(Map<String, Object> param) {
return RtfUtils.getRtf().getInsideOrder(param);
}
@Override
public Observable<BaseBean> getSupplierOrder(Map<String, Object> param) {
return RtfUtils.getRtf().getSupplierOrder(param);
}
}
package com.wd.workoffice.presenter;
import com.alibaba.fastjson.JSON;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.model.SaleSaleModel;
import com.wd.workoffice.retrofit.WorkObserver;
import java.util.Map;
import flexible.xd.android_base.mvpBase.BasePresenter;
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 SaleSalePresenter extends BasePresenter<SaleSaleContract.View, SaleSaleContract.Model> implements SaleSaleContract.Presenter {
@Override
public void getOrder(Map<String, Object> param) {
mView.showLoading();
mModel.getOrder(param).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
mDisposable.add(d);
}
@Override
public void onFail(String errorMsg) {
mView.hideLoading();
mView.onError(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
mView.hideLoading();
if (data.getCode() != 0) {
mView.onError(data.getMessage());
return;
}
mView.saleList(JSON.parseArray(JSON.parseObject(data.getData().toString()).getString("records"), SaleOrderBean.class));
}
});
}
@Override
public void getOutOrder(Map<String, Object> param) {
mView.showLoading();
mModel.getOutOrder(param).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
mDisposable.add(d);
}
@Override
public void onFail(String errorMsg) {
mView.hideLoading();
mView.onError(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
mView.hideLoading();
if (data.getCode() != 0) {
mView.onError(data.getMessage());
return;
}
mView.outList(JSON.parseArray(JSON.parseObject(data.getData().toString()).getString("records"), SaleOrderBean.class));
}
});
}
@Override
public void getInsideOrder(Map<String, Object> param) {
mView.showLoading();
mModel.getInsideOrder(param).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
mDisposable.add(d);
}
@Override
public void onFail(String errorMsg) {
mView.hideLoading();
mView.onError(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
mView.hideLoading();
if (data.getCode() != 0) {
mView.onError(data.getMessage());
return;
}
mView.insideList(JSON.parseArray(JSON.parseObject(data.getData().toString()).getString("records"), SaleOrderBean.class));
}
});
}
@Override
public void getSupplierOrder(Map<String, Object> param) {
mView.showLoading();
mModel.getSupplierOrder(param).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
mDisposable.add(d);
}
@Override
public void onFail(String errorMsg) {
mView.hideLoading();
mView.onError(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
mView.hideLoading();
if (data.getCode() != 0) {
mView.onError(data.getMessage());
return;
}
mView.supplierList(JSON.parseArray(JSON.parseObject(data.getData().toString()).getString("records"), SaleOrderBean.class));
}
});
}
@Override
public SaleSaleContract.Model bindModel() {
return SaleSaleModel.newInstance();
}
}
......@@ -267,6 +267,67 @@ public interface ApiService {
*/
@GET("/sys/user/userInfo")
Observable<BaseBean> userInfo();
/**
* 订单
*
* @param orderStatus app端订单筛选:
* 100:待审核
* 200:待接单
* 710: 待生产 (已接单、申请提前结束)
* 500:已入库
* 600: 已交付
* 960:已关闭 (审核失败、已拒单、已提前结束)
* @param identity 1:作为买家(销售部门) 2:作为卖家(生产部门)
* @return
*/
@GET("/saleOrder/current-user/page/list")
Observable<BaseBean> getOrder(@QueryMap Map<String, Object> param);
/**
* 外采购订单
*
* @param orderStatus app端订单筛选:
* 100:待审核
* 200:待接单
* 300 + 410 = 710: 待生产 (已接单、申请提前结束)
* 500:已入库
* 600: 已交付
* 220 + 320 + 420 = 960 :已关闭 (审核失败、已拒单、已提前结束)
* @param identity 1:作为买家(销售部门) 2:作为卖家(生产部门)
* @return
*/
@GET("/purchaseOrder/current-user/page/list")
Observable<BaseBean> getOutOrder(@QueryMap Map<String, Object> param);
/**
*
* 内部
*
* @param orderStatus app端订单筛选:
* 100:待审核
* 200:待接单
* 300 + 410 = 710: 待生产 (已接单、申请提前结束)
* 500:已入库
* 600: 已交付
* 220 + 320 + 420 = 960 :已关闭 (审核失败、已拒单、已提前结束)
* @param identity 1:作为买家(销售部门) 2:作为卖家(生产部门)
* @return
*/
@GET("/insideOrder/current-user/page/list")
Observable<BaseBean> getInsideOrder(@QueryMap Map<String, Object> param);
/**
* 供应订单
*
* @param orderStatus app端订单筛选:
* 100:待审核
* 200:待接单
* 300 + 410 = 710: 待生产 (已接单、申请提前结束)
* 500:已入库
* 220 + 320 + 420 = 960 :已关闭 (审核失败、已拒单、已提前结束)
* @param identity 1:作为买家(销售部门) 2:作为卖家(生产部门)
* @return
*/
@GET("/supplierOrder/current-user/page/list")
Observable<BaseBean> getSupplierOrder(@QueryMap Map<String, Object> param);
}
package com.wd.workoffice.ui.activity.bat.product;
import android.os.Bundle;
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.SaleInsideFragment;
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;
import static com.google.android.material.tabs.TabLayout.MODE_FIXED;
/**
* 生产销售订单
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProductInsideOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待接单", "待生产", "已入库"};
private String order[] = {
"", "200", "710", "500"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
tlTab.setTabMode(MODE_FIXED);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
SaleInsideFragment saleFragment = new SaleInsideFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity","2");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.product;
import android.os.Bundle;
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.ProOutFragment;
import com.wd.workoffice.ui.fg.SaleOutFragment;
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;
import static com.google.android.material.tabs.TabLayout.MODE_FIXED;
/**
* 生产-外采购
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProductOutOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待接单", "待生产", "已入库"
};
private String order[] = {
"", "200", "710", "500"
};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData); tlTab.setTabMode(MODE_FIXED);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
ProOutFragment saleFragment = new ProOutFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "2");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.product;
import android.os.Bundle;
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.ProSaleFragment;
import com.wd.workoffice.ui.fg.SaleSaleFragment;
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;
import static com.google.android.material.tabs.TabLayout.MODE_FIXED;
/**
* 生产-销售订单
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProductSaleOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待接单", "待生产", "已入库"};
private String order[] = {
"", "200", "710", "500"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData); tlTab.setTabMode(MODE_FIXED);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
ProSaleFragment saleFragment = new ProSaleFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "2");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.product;
import android.os.Bundle;
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.ProSupplierFragment;
import com.wd.workoffice.ui.fg.SaleSupplierFragment;
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;
import static com.google.android.material.tabs.TabLayout.MODE_FIXED;
/**
* 生产-供应订单
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class ProductSupplierOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待接单", "待生产", "已入库"};
private String order[] = {
"", "200", "710", "500"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData); tlTab.setTabMode(MODE_FIXED);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
ProSupplierFragment saleFragment = new ProSupplierFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "2");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.sale;
import android.os.Bundle;
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.SaleInsideFragment;
import com.wd.workoffice.ui.fg.SaleSaleFragment;
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 SaleInsideOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待审核", "待接单", "待生产", "已入库"};
private String order[] = {
"", "100", "200", "710", "500"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
SaleInsideFragment saleFragment = new SaleInsideFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "1");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.sale;
import android.os.Bundle;
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.SaleOutFragment;
import com.wd.workoffice.ui.fg.SaleSaleFragment;
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 SaleOutOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待审核", "待接单", "待生产", "已入库",
"已交付"};
private String order[] = {
"", "100", "200", "710", "500",
"600"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
SaleOutFragment saleFragment = new SaleOutFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "1");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.sale;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
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.MainFragment;
import com.wd.workoffice.ui.fg.SaleSaleFragment;
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 SaleSaleOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待审核", "待接单", "待生产", "已入库",
"已交付"};
private String order[] = {
"", "100", "200", "710", "500",
"600"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
SaleSaleFragment saleFragment = new SaleSaleFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "1");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
package com.wd.workoffice.ui.activity.bat.sale;
import android.os.Bundle;
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.SaleSaleFragment;
import com.wd.workoffice.ui.fg.SaleSupplierFragment;
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 SaleSupplierOrderActivity extends WorkToolBarActivity {
@BindView(R.id.tl_tab)
TabLayout tlTab;
@BindView(R.id.vp_data)
ViewPager vpData;
private String tab[] = {
"全部", "待审核", "待接单", "待生产", "已入库"};
private String order[] = {
"", "100", "200", "710", "500"};
@Override
protected void initView() {
ButterKnife.bind(this);
tlTab.setupWithViewPager(vpData);
}
@Override
protected void initData() {
FragmentManager sfm = getSupportFragmentManager();
List<Fragment> data = new ArrayList<>();
for (int i = 0; i < tab.length; i++) {
SaleSupplierFragment saleFragment = new SaleSupplierFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", "1");
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
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_sale_sale;
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class ProOutAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public ProOutAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getCustomerName());
helper.setText(R.id.tv_status, item.getStatusName());
helper.setGone(R.id.rl_dep, true);
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_supplier, item.getSupplierName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getLaunchOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class ProSaleAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public ProSaleAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getCustomerName());
helper.setGone(R.id.rl_dep, true);
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getLaunchOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class ProSupplierAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public ProSupplierAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getSupplierName() );
helper.setGone(R.id.rl_dep, true);
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_place_dep, item.getLaunchDeptName());
helper.setText(R.id.tv_warehouse, item.getInStockName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getOuterOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class SaleInsideAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public SaleInsideAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getReceiveDeptName());
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getLaunchOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class SaleOutAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public SaleOutAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getCustomerName());
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_dep, item.getReceiveDeptName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_supplier,item.getSupplierName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getLaunchOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class SaleSaleAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public SaleSaleAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getCustomerName());
helper.setText(R.id.tv_dep, item.getReceiveDeptName());
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_company, item.getLaunchDeptName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getLaunchOrderAmount()));
}
}
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.SaleOrderBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class SaleSupplierAdapter extends BaseQuickAdapter<SaleOrderBean, BaseViewHolder> {
public SaleSupplierAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, SaleOrderBean item) {
helper.setText(R.id.tv_name, item.getSupplierName() );
helper.setText(R.id.tv_dep, item.getReceiveDeptName());
helper.setText(R.id.tv_status, item.getStatusName());
helper.setText(R.id.tv_place_name, item.getLaunchUserName());
helper.setText(R.id.tv_place_dep, item.getLaunchDeptName());
helper.setText(R.id.tv_warehouse, item.getInStockName());
helper.setText(R.id.tv_order_no, item.getId());
helper.setText(R.id.tv_time, item.getCreatedTime());
helper.setText(R.id.tv_send_time, item.getRequireTime());
helper.setText(R.id.tv_desc, item.getAttrName());
helper.setText(R.id.tv_price, String.valueOf(item.getOuterOrderAmount()));
}
}
package com.wd.workoffice.ui.adapter;
import java.util.List;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
/**
* Created by Flexible on 2017/4/1 0001.
*/
public class VpDataAdapter extends FragmentPagerAdapter {
private List<Fragment> data;
public VpDataAdapter(FragmentManager fm, List<Fragment> data) {
super(fm,BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
this.data = data;
}
@Override
public Fragment getItem(int position) {
return data.get(position);
}
@Override
public int getCount() {
return data.size();
}
}
......@@ -19,6 +19,14 @@ import com.wd.workoffice.ui.activity.bat.StoreOutsourcingActivity;
import com.wd.workoffice.ui.activity.bat.StoreSaleActivity;
import com.wd.workoffice.ui.activity.bat.StoreSupplierActivity;
import com.wd.workoffice.ui.activity.bat.StoreTradingActivity;
import com.wd.workoffice.ui.activity.bat.product.ProductInsideOrderActivity;
import com.wd.workoffice.ui.activity.bat.product.ProductOutOrderActivity;
import com.wd.workoffice.ui.activity.bat.product.ProductSaleOrderActivity;
import com.wd.workoffice.ui.activity.bat.product.ProductSupplierOrderActivity;
import com.wd.workoffice.ui.activity.bat.sale.SaleInsideOrderActivity;
import com.wd.workoffice.ui.activity.bat.sale.SaleOutOrderActivity;
import com.wd.workoffice.ui.activity.bat.sale.SaleSaleOrderActivity;
import com.wd.workoffice.ui.activity.bat.sale.SaleSupplierOrderActivity;
import com.wd.workoffice.ui.adapter.BatLayoutAdapter;
import com.wd.workoffice.util.UserKeeper;
......@@ -58,8 +66,8 @@ public class MainFragment extends WorkBaseFg {
List<BatLayoutVo> approvalList = new ArrayList<>();
List<BatLayoutVo> workList = new ArrayList<>();
List<BatLayoutVo> productList = new ArrayList<>();
int[] saleImg = new int[]{R.mipmap.bat_sale1, R.mipmap.bat_sale2, R.mipmap.bat_sale3, R.mipmap.bat_sale4};
String[] saleName = new String[]{"销售订单", "外购订单", "供应订单", "内部订单"};
int[] saleImg = new int[]{R.mipmap.bat_sale1, R.mipmap.bat_sale2, R.mipmap.bat_sale3, R.mipmap.bat_sale4, R.mipmap.bat_sale5, R.mipmap.bat_sale6};
String[] saleName = new String[]{"销售订单", "外采购订单", "供应订单", "内部订单", "组装订单", "坩埚订单"};
int[] storeImg = new int[]{R.mipmap.bat_store1, R.mipmap.bat_store2, R.mipmap.bat_store3, R.mipmap.bat_store4
, R.mipmap.bat_store5, R.mipmap.bat_store6, R.mipmap.bat_store7};
String[] storeName = new String[]{"销售", "外采购", "供应", "维修", "财税", "钳锅", "内部交易"};
......@@ -68,8 +76,8 @@ public class MainFragment extends WorkBaseFg {
int[] workImg = new int[]{R.mipmap.bat_work1, R.mipmap.bat_work2, R.mipmap.bat_work3,
R.mipmap.bat_work4, R.mipmap.bat_work5, R.mipmap.bat_work6, R.mipmap.bat_work7, R.mipmap.bat_work8, R.mipmap.bat_work9};
String[] workName = new String[]{"产品", "往来", "部门账户", "仓库", "部门", "财务中心", "设备", "报表", "库存类别"};
int[] productImg = new int[]{R.mipmap.bat_product1, R.mipmap.bat_product2, R.mipmap.bat_product3, R.mipmap.bat_product4};
String[] productName = new String[]{"销售订单", "外购订单", "供应订单", "内部订单"};
int[] productImg = new int[]{R.mipmap.bat_product1, R.mipmap.bat_product2, R.mipmap.bat_product3, R.mipmap.bat_product4, R.mipmap.bat_product5, R.mipmap.bat_product6};
String[] productName = new String[]{"销售订单", "外采购订单", "供应订单", "内部订单", "组装订单", "坩埚订单"};
@Override
protected void initView() {
......@@ -156,6 +164,20 @@ public class MainFragment extends WorkBaseFg {
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
switch (position) {
case 0:
startActivity(SaleSaleOrderActivity.class, "identity", "1");
break;
case 1:
startActivity(SaleOutOrderActivity.class, "identity", "1");
break;
case 2:
startActivity(SaleSupplierOrderActivity.class, "identity", "1");
break;
case 3:
startActivity(SaleInsideOrderActivity.class, "identity", "1");
break;
case 4:
break;
case 5:
break;
}
}
......@@ -191,8 +213,32 @@ public class MainFragment extends WorkBaseFg {
});
break;
case R.id.rv_product:
batLayoutAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
switch (position) {
case 0:
startActivity(ProductSaleOrderActivity.class);
break;
case 1:
startActivity(ProductOutOrderActivity.class);
break;
case 2:
startActivity(ProductSupplierOrderActivity.class);
break;
case 3:
startActivity(ProductInsideOrderActivity.class);
break;
case 4:
break;
case 5:
break;
}
}
});
break;
case R.id.rv_work:
break;
case R.id.rv_approval:
break;
......
......@@ -9,6 +9,7 @@ import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.util.UserKeeper;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
......@@ -32,7 +33,8 @@ public class MyFragment extends WorkBaseFg {
@Override
protected void initView() {
tvNo.setText("员工编号:"+UserKeeper.getInstance().getUserErpId());
ButterKnife.bind(this, getContentView());
tvNo.setText("员工编号:" + UserKeeper.getInstance().getUserErpId());
tvName.setText(UserKeeper.getInstance().getUserNickName());
}
......@@ -63,4 +65,5 @@ public class MyFragment extends WorkBaseFg {
break;
}
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.ProOutAdapter;
import com.wd.workoffice.ui.adapter.SaleOutAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 ProOutFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private ProOutAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new ProOutAdapter(R.layout.item_sale_out, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getOutOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getOutOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
}
@Override
public void outList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.ProSaleAdapter;
import com.wd.workoffice.ui.adapter.SaleSaleAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 ProSaleFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private ProSaleAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new ProSaleAdapter(R.layout.item_sale, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
@Override
public void outList(List<SaleOrderBean> dataList) {
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.ProSupplierAdapter;
import com.wd.workoffice.ui.adapter.SaleSupplierAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 ProSupplierFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private ProSupplierAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new ProSupplierAdapter(R.layout.item_sale_supplier, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getSupplierOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getSupplierOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
}
@Override
public void outList(List<SaleOrderBean> dataList) {
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.SaleInsideAdapter;
import com.wd.workoffice.ui.adapter.SaleSaleAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 SaleInsideFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private SaleInsideAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new SaleInsideAdapter(R.layout.item_sale_inside, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getInsideOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getInsideOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
}
@Override
public void outList(List<SaleOrderBean> dataList) {
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.SaleOutAdapter;
import com.wd.workoffice.ui.adapter.SaleSaleAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 SaleOutFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private SaleOutAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new SaleOutAdapter(R.layout.item_sale_out, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getOutOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getOutOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
}
@Override
public void outList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.SaleSaleAdapter;
import com.wd.workoffice.ui.adapter.StoreClientAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 SaleSaleFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private SaleSaleAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new SaleSaleAdapter(R.layout.item_sale, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
@Override
public void outList(List<SaleOrderBean> dataList) {
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.SaleOrderBean;
import com.wd.workoffice.contract.SaleSaleContract;
import com.wd.workoffice.presenter.SaleSalePresenter;
import com.wd.workoffice.ui.adapter.SaleSaleAdapter;
import com.wd.workoffice.ui.adapter.SaleSupplierAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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 SaleSupplierFragment extends WorkBaseFg implements SaleSaleContract.View {
@BindView(R.id.rv_data)
RecyclerView rvData;
private String state;
private SaleSalePresenter saleSalePresenter;
private Map<String, Object> param;
private List<SaleOrderBean> orderList;
private SaleSupplierAdapter orderAdapter;
private int page = 1;
private String identity;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
saleSalePresenter = new SaleSalePresenter();
saleSalePresenter.onAttach(this);
rvData.setLayoutManager(new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
orderList = new ArrayList<>();
orderAdapter = new SaleSupplierAdapter(R.layout.item_sale_supplier, orderList);
orderAdapter.bindToRecyclerView(rvData);
param = WorkUtils.pageKey();
param.put("orderStatus", state);
param.put("current", page);
param.put("identity", identity);
saleSalePresenter.getSupplierOrder(param);
}
@Override
protected void initEvent() {
orderAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
param.put("current", page);
saleSalePresenter.getSupplierOrder(param);
}
}, rvData);
}
@Override
protected int layoutId() {
return R.layout.fg_sale_sale;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
state = arguments.getString("state");
identity = arguments.getString("identity");
}
}
@Override
public void saleList(List<SaleOrderBean> dataList) {
}
@Override
public void outList(List<SaleOrderBean> dataList) {
}
@Override
public void insideList(List<SaleOrderBean> dataList) {
}
@Override
public void supplierList(List<SaleOrderBean> dataList) {
if (page == 1) {
orderList.clear();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
orderAdapter.loadMoreComplete();
} else {
orderAdapter.loadMoreComplete();
orderList.addAll(dataList);
orderAdapter.notifyDataSetChanged();
}
if (dataList.size() == 0) {
orderAdapter.loadMoreEnd();
} else {
page++;
}
}
}
<?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">
<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="scrollable"
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" />
</LinearLayout>
\ No newline at end of file
......@@ -117,35 +117,33 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm"
android:paddingVertical="30mm"
android:text="销售部门"
android:text="审批"
android:textColor="@color/mainTextColor"
android:textSize="20sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_sale"
android:id="@+id/rv_approval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm"
android:paddingVertical="30mm"
android:text="生产部门"
android:text="销售部门"
android:textColor="@color/mainTextColor"
android:textSize="20sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_product"
android:id="@+id/rv_sale"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm" />
......@@ -155,17 +153,18 @@
android:layout_height="wrap_content"
android:paddingHorizontal="20mm"
android:paddingVertical="30mm"
android:text="审批"
android:text="生产部门"
android:textColor="@color/mainTextColor"
android:textSize="20sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_approval"
android:id="@+id/rv_product"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
......
<?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="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_data"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
\ No newline at end of file
<?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:paddingTop="10mm"
android:paddingBottom="20mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="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_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="待生产"
android:textColor="#0841F0"
android:textSize="14sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14mm"
android:paddingVertical="10mm"
android:background="#FCFCFD"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_dep"
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_dep"
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>
<!-- 1.下单 -->
<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_place_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 2.所属公司 -->
<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_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.订单编号 -->
<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_order_no"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 4.下单时间 -->
<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_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.要求发货时间 -->
<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_send_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:gravity="right">
<TextView
android:id="@+id/tv_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15mm"
android:text="对方发起提前结束"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单总价:¥"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?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:paddingTop="10mm"
android:paddingBottom="20mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="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_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="待生产"
android:textColor="#0841F0"
android:textSize="14sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14mm"
android:paddingVertical="10mm"
android:background="#FCFCFD"
android:orientation="vertical">
<!-- 1.下单 -->
<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_place_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
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_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.订单编号 -->
<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_order_no"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 4.下单时间 -->
<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_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.要求发货时间 -->
<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_send_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:gravity="right">
<TextView
android:id="@+id/tv_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15mm"
android:text="对方发起提前结束"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单总价:¥"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?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:paddingTop="10mm"
android:paddingBottom="20mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="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_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="待生产"
android:textColor="#0841F0"
android:textSize="14sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14mm"
android:paddingVertical="10mm"
android:background="#FCFCFD"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_dep"
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_dep"
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>
<!-- 1.下单 -->
<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_place_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>
<!-- 2.所属公司 -->
<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_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/rv_supplier"
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_supplier"
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>
<!-- 3.订单编号 -->
<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_order_no"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 4.下单时间 -->
<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_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.要求发货时间 -->
<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_send_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:gravity="right">
<TextView
android:id="@+id/tv_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15mm"
android:text="对方发起提前结束"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单总价:¥"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?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:paddingTop="10mm"
android:paddingBottom="20mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="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_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="待生产"
android:textColor="#0841F0"
android:textSize="14sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14mm"
android:paddingVertical="10mm"
android:background="#FCFCFD"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_dep"
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_dep"
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>
<!-- 1.下单 -->
<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_place_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
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_place_dep"
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_warehouse"
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>
<!-- 3.订单编号 -->
<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_order_no"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 4.下单时间 -->
<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_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
<!-- 3.要求发货时间 -->
<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_send_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="王紫逸"
android:textColor="@color/flexible_text_gray"
android:textSize="13sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:gravity="right">
<TextView
android:id="@+id/tv_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15mm"
android:text="对方发起提前结束"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单总价:¥"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......@@ -34,19 +34,19 @@
<!--<style name="FlexibleTheme" parent="QMUI.Compat">-->
<!--<item name="windowActionBar">false</item>-->
<!--<item name="windowNoTitle">true</item>-->
<!--<item name="windowActionBar">false</item>-->
<!--<item name="windowNoTitle">true</item>-->
<!--</style>-->
<!--<style name="Work.Base" parent="FlexibleTheme.Base">-->
<!--<item name="android:windowLightStatusBar">true</item>//修改状态栏颜色-->
<!--<item name="android:windowIsTranslucent">false</item>-->
<!--<item name="android:windowLightStatusBar">true</item>//修改状态栏颜色-->
<!--<item name="android:windowIsTranslucent">false</item>-->
<!--</style>-->
<!--<style name="Work.Main" parent="FlexibleTheme.Base">-->
<!--<item name="colorPrimaryDark">@color/mainColor</item>-->
<!--<item name="android:windowIsTranslucent">false</item>-->
<!--<item name="colorPrimaryDark">@color/mainColor</item>-->
<!--<item name="android:windowIsTranslucent">false</item>-->
<!--</style>-->
<!-- 分割线 -->
<style name="dividerX">
......@@ -98,24 +98,28 @@
<!--<item name="android:textColor">@drawable/tab_text_color_select</item>-->
</style>
<style name="tabText" parent="TextAppearance.Design.Tab">
<item name="android:textSize">15sp</item>
</style>
<!-- 改变MyEditText颜色 -->
<!--<style name="MyEditText" parent="Theme.AppCompat.Light">-->
<!--<item name="colorControlNormal">@color/indigo</item>-->
<!--<item name="colorControlActivated">@color/butouming</item>-->
<!--<item name="colorControlNormal">@color/indigo</item>-->
<!--<item name="colorControlActivated">@color/butouming</item>-->
<!--</style>-->
<!--底部弹出效果-->
<!--<style name="AnimBottom" parent="@android:style/Animation">-->
<!--<item name="android:windowEnterAnimation">@anim/popup_alpha_out</item>-->
<!--<item name="android:windowExitAnimation">@anim/popup_alpha_in</item>-->
<!--<item name="android:windowEnterAnimation">@anim/popup_alpha_out</item>-->
<!--<item name="android:windowExitAnimation">@anim/popup_alpha_in</item>-->
<!--</style>-->
<!--这是字体大小tablayout-->
<!--<style name="MyTabLayoutText" parent="TextAppearance.Design.Tab">-->
<!--<item name="android:textSize">@dimen/dp_14</item>-->
<!--<item name="android:textSize">@dimen/dp_14</item>-->
<!--</style>-->
<!--<style name="MyCheckBox" parent="Theme.AppCompat.Light">-->
<!--<item name="colorControlNormal">@color/butouming</item>-->
<!--<item name="colorControlActivated">@color/colorBlue</item>-->
<!--<item name="colorControlNormal">@color/butouming</item>-->
<!--<item name="colorControlActivated">@color/colorBlue</item>-->
<!--</style>-->
</resources>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论