Commit 2aba1a2e authored by 陈前's avatar 陈前

一键补货

parent d0c4b973
......@@ -5,17 +5,19 @@ import com.blankj.utilcode.util.KeyboardUtils;
import com.xingdata.zzdpos.R;
import com.xingdata.zzdpos.base.BaseActivity;
import com.xingdata.zzdpos.databinding.ActivityReplenishmentBinding;
import com.xingdata.zzdpos.model.Pager;
import com.xingdata.zzdpos.model.Psb;
import com.xingdata.zzdpos.model.Sssku;
import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
import com.xingdata.zzdpos.ui.manage.replenishment.fragment.ReplenishmentDetailFragment;
import com.xingdata.zzdpos.ui.manage.replenishment.fragment.ReplenishmentFragment;
import java.util.List;
public class ReplenishmentActivity extends BaseActivity<ReplenishmentPresenter, ActivityReplenishmentBinding> implements ReplenishmentContract.View {
private ReplenishmentFragment mReplenishmentFragment = new ReplenishmentFragment();
// private ReplenishmentDetailFragment mReplenishmentDetailFragment = new ReplenishmentDetailFragment();
private ReplenishmentDetailFragment mReplenishmentDetailFragment = new ReplenishmentDetailFragment();
private boolean isAllowFragment = true;
LoadingDialog mLoadingDialog = new LoadingDialog();
......@@ -26,7 +28,7 @@ public class ReplenishmentActivity extends BaseActivity<ReplenishmentPresenter,
@Override
public void initView() {
loadRootFragment(R.id.f_bottom, mReplenishmentFragment, true, false);
mPresenter.queryPsbList();
}
......@@ -39,16 +41,22 @@ public class ReplenishmentActivity extends BaseActivity<ReplenishmentPresenter,
@Override
public void showReplenishmentList(List<Psb> A, List<Psb> B, List<Psb> C) {
mReplenishmentFragment.showReplenishmentList(A, B, C);
if (mReplenishmentFragment.isAdded()){
mReplenishmentFragment.showReplenishmentList(A, B, C,false);
}else {
mReplenishmentFragment.showReplenishmentList(A, B, C,true);
loadRootFragment(R.id.f_bottom, mReplenishmentFragment, true, false);
}
}
@Override
public void openReplenishmentDetailFragment(List<Sssku> ssskuList) {
// if (isAllowFragment) {
// isAllowFragment = false;
// mReplenishmentDetailFragment.setSsskuList(ssskuList);
// start(mReplenishmentDetailFragment);
// }
if (isAllowFragment) {
isAllowFragment = false;
mReplenishmentDetailFragment.setSsskuList(ssskuList);
start(mReplenishmentDetailFragment);
}
}
......@@ -84,4 +92,6 @@ public class ReplenishmentActivity extends BaseActivity<ReplenishmentPresenter,
public void isAllowFragment(Boolean is) {
isAllowFragment = is;
}
}
......@@ -24,8 +24,6 @@ public class ReplenishmentPresenter extends ReplenishmentContract.Presenter {
}
@Override
public void clickAdd() {
mView.isShowLoading(true);
......@@ -42,10 +40,12 @@ public class ReplenishmentPresenter extends ReplenishmentContract.Presenter {
@Override
public void queryPsbList() {
mView.isShowLoading(true);
unConfirmedPsbList.clear();
unReceivePsbList.clear();
finishedPsbList.clear();
ApiFactory.Psb.queryPsb(1, 200).doFinally(() -> {
mView.isShowLoading(false);
})
.subscribe(psbPager -> {
......
//package com.xingdata.zzdpos.ui.manage.replenishment.adpter;
//
//
//import android.support.annotation.Nullable;
//import android.support.v4.content.ContextCompat;
//import android.text.Editable;
//import android.text.TextWatcher;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.EditText;
//
//
//import com.xingdata.zzdpos.R;
//import com.xingdata.zzdpos.model.Sssku;
//import com.xingdata.zzdpos.util.ConvertUtil;
//
//import java.util.List;
//
//public class ReplenishmentDetailAdapter extends BaseAdapter<Sssku, ItemReplenishmentDetailBinding> {
// private Boolean isTouch = true;
// private UpdatePriceListener mUpdatePriceListener;
//
// public ReplenishmentDetailAdapter(@Nullable List<Sssku> data, boolean Touch) {
// super(R.layout.item_replenishment_detail, data);
// isTouch = Touch;
//
// }
//
//
// @Override
// protected void convert(ItemReplenishmentDetailBinding mViewBinding, Sssku item) {
// mViewBinding.imgGoods.setImageURI(item.getSpuImg());
// mViewBinding.tvGoodsName.setText(item.getSpuName());
// mViewBinding.tvGoodsCode.setText(item.getSpuBarcode() + "");
// mViewBinding.tvGoodsSize.setText("规格/" + item.getSpuUnitName());
// mViewBinding.tvGoodsPrice.setText(ConvertUtil.fenToYuan(item.getSkuCost(), false));
// mViewBinding.tvStock.setText(item.getSkuStock() + "");
// if (item.getSkuCnt() != null) {
// mViewBinding.etCount.setText(item.getSkuCnt() + "");
// } else {
// item.setSkuCnt(1);
// }
//
// if (!isTouch) {
// mViewBinding.etCount.setEnabled(false);
// mViewBinding.etCount.setTextColor(ContextCompat.getColor(mContext,R.color.white_cargo));
// mViewBinding.btnDown.setVisibility(View.GONE);
// mViewBinding.btnUp.setVisibility(View.GONE);
// }
// }
//
//
// @Override
// protected void convert(BaseViewHolder helper, Sssku item) {
//
// if (isTouch) {
// helper.getView(R.id.btn_up).setOnClickListener(v -> {
// Integer sellCount = item.getSkuCnt();
// if (sellCount >= 0 && sellCount < 9999) {
// helper.setText(R.id.et_count, String.valueOf(++sellCount));
// item.setSkuCnt(sellCount);
//// mUpdatePriceListener.updatePrice(1L*(item.getSkuCost()));
// }
// });
// helper.getView(R.id.btn_down).setOnClickListener(v -> {
// Integer sellCount = item.getSkuCnt();
// if (sellCount == 1) {
// return;
// }
// if (sellCount > 1 && sellCount <= 9999) {
// helper.setText(R.id.et_count, String.valueOf(--sellCount));
// item.setSkuCnt(sellCount);
//// mUpdatePriceListener.updatePrice(-1L*(item.getSkuCost()));
//
// }
// });
// ((EditText) helper.getView(R.id.et_count)).addTextChangedListener((new TextWatcher() {
//
// @Override
// public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
//
// }
//
// @Override
// public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
// Integer sellCount = ((EditText) helper.getView(R.id.et_count)).getText().toString().length() == 0 ? 1 : Integer.valueOf(((EditText) helper.getView(R.id.et_count)).getText().toString());
// if (sellCount==0){
// sellCount=1;
// helper.setText(R.id.et_count,"");
//
// }
// Integer changedNum = sellCount - item.getSkuCnt();
// item.setSkuCnt(sellCount);
// mUpdatePriceListener.updatePrice(item.getSkuCost() * changedNum);
// }
//
// @Override
// public void afterTextChanged(Editable editable) {
// }
//
//
// }));
// }
// super.convert(helper, item);
// }
//
// @Override
// protected View getItemView(int layoutResId, ViewGroup parent) {
// return super.getItemView(layoutResId, parent);
// }
//
//
// public void setmUpdatePriceListener(UpdatePriceListener updatePriceListener) {
// this.mUpdatePriceListener = updatePriceListener;
// }
//
//
// public abstract static class UpdatePriceListener {
//
// public abstract void updatePrice(long amt);
// }
//
//}
package com.xingdata.zzdpos.ui.manage.replenishment.adpter;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import com.xingdata.zzdpos.R;
import com.xingdata.zzdpos.base.BaseAdapter;
import com.xingdata.zzdpos.base.BaseViewHolder;
import com.xingdata.zzdpos.databinding.ItemReplenishmentDetailBinding;
import com.xingdata.zzdpos.model.Sssku;
import com.xingdata.zzdpos.util.ConvertUtil;
import java.util.List;
public class ReplenishmentDetailAdapter extends BaseAdapter<Sssku, ItemReplenishmentDetailBinding> {
private Boolean isTouch = true;
private UpdatePriceListener mUpdatePriceListener;
public ReplenishmentDetailAdapter(@Nullable List<Sssku> data, boolean Touch) {
super(R.layout.item_replenishment_detail, data);
isTouch = Touch;
}
@Override
protected void convert(ItemReplenishmentDetailBinding mViewBinding, Sssku item) {
mViewBinding.imgGoods.setImageURI(item.getSpuImg());
mViewBinding.tvGoodsName.setText(item.getSpuName());
mViewBinding.tvGoodsCode.setText(item.getSpuBarcode() + "");
mViewBinding.tvGoodsSize.setText("规格/" + item.getSpuUnitName());
mViewBinding.tvGoodsPrice.setText(ConvertUtil.fenToYuan(item.getSkuCost(), false));
mViewBinding.tvStock.setText(item.getSkuStock() + "");
if (item.getSkuCnt() != null) {
mViewBinding.etCount.setText(item.getSkuCnt() + "");
} else {
item.setSkuCnt(1);
}
if (!isTouch) {
mViewBinding.etCount.setEnabled(false);
mViewBinding.etCount.setTextColor(ContextCompat.getColor(mContext, R.color.white_cargo));
mViewBinding.btnDown.setVisibility(View.GONE);
mViewBinding.btnUp.setVisibility(View.GONE);
}
}
@Override
protected void convert(BaseViewHolder helper, Sssku item) {
if (isTouch) {
helper.getView(R.id.btn_up).setOnClickListener(v -> {
Integer sellCount = item.getSkuCnt();
if (sellCount >= 0 && sellCount < 9999) {
helper.setText(R.id.et_count, String.valueOf(++sellCount));
item.setSkuCnt(sellCount);
// mUpdatePriceListener.updatePrice(1L*(item.getSkuCost()));
}
});
helper.getView(R.id.btn_down).setOnClickListener(v -> {
Integer sellCount = item.getSkuCnt();
if (sellCount == 1) {
return;
}
if (sellCount > 1 && sellCount <= 9999) {
helper.setText(R.id.et_count, String.valueOf(--sellCount));
item.setSkuCnt(sellCount);
// mUpdatePriceListener.updatePrice(-1L*(item.getSkuCost()));
}
});
((EditText) helper.getView(R.id.et_count)).addTextChangedListener((new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
Integer sellCount = ((EditText) helper.getView(R.id.et_count)).getText().toString().length() == 0 ? 1 : Integer.valueOf(((EditText) helper.getView(R.id.et_count)).getText().toString());
if (sellCount == 0) {
sellCount = 1;
helper.setText(R.id.et_count, "");
}
Integer changedNum = sellCount - item.getSkuCnt();
item.setSkuCnt(sellCount);
mUpdatePriceListener.updatePrice(item.getSkuCost() * changedNum);
}
@Override
public void afterTextChanged(Editable editable) {
}
}));
}
super.convert(helper, item);
}
public void setmUpdatePriceListener(UpdatePriceListener updatePriceListener) {
this.mUpdatePriceListener = updatePriceListener;
}
public abstract static class UpdatePriceListener {
public abstract void updatePrice(long amt);
}
}
//package com.xingdata.zzdpos.ui.manage.replenishment.fragment;
//
//
//import android.annotation.SuppressLint;
//import android.graphics.drawable.Drawable;
//import android.support.v7.widget.LinearLayoutManager;
//import android.view.KeyEvent;
//import android.view.View;
//import android.widget.TextView;
//
//import com.blankj.utilcode.util.KeyboardUtils;
//import com.blankj.utilcode.util.TimeUtils;
//import com.blankj.utilcode.util.ToastUtils;
//import com.xingdata.api.print.ZX_PrintPOS;
//import com.xingdata.zzdhd.R;
//import com.xingdata.zzdhd.base.BaseActivity;
//import com.xingdata.zzdhd.base.BaseFragment;
//import com.xingdata.zzdhd.databinding.FragmentReplenishementDetailBinding;
//import com.xingdata.zzdhd.model.Psb;
//import com.xingdata.zzdhd.model.Sssku;
//import com.xingdata.zzdhd.ui.dialog.PromptDialog;
//import com.xingdata.zzdhd.ui.login.LoginPresenter;
//import com.xingdata.zzdhd.ui.manager.replenishment.ReplenishmentPresenter;
//import com.xingdata.zzdhd.ui.manager.replenishment.adpter.ReplenishmentDetailAdapter;
//import com.xingdata.zzdhd.util.ConvertUtil;
//import com.xingdata.zzdhd.util.OnClickListener;
//
//import java.util.ArrayList;
//import java.util.List;
//import java.util.regex.Matcher;
//import java.util.regex.Pattern;
//
//
///**
// * Created by Administrator on 2017/11/24.
// */
//
//public class ReplenishmentDetailFragment extends BaseFragment<ReplenishmentPresenter, FragmentReplenishementDetailBinding> {
//
// private ReplenishmentDetailAdapter mReplenishmentDetailAdapter;
// private List<Sssku> ssskuList = new ArrayList<>();
// private Psb mPsb;
// private long sumPrice;
// private boolean isAdd = true;
//
// @Override
// public int getLayoutId() {
// return R.layout.fragment_replenishement_detail;
// }
//
// @Override
// public void initView() {
//
// initRecycycler();
package com.xingdata.zzdpos.ui.manage.replenishment.fragment;
import android.annotation.SuppressLint;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.LinearLayoutManager;
import android.view.KeyEvent;
import android.view.View;
import android.widget.TextView;
import com.blankj.utilcode.util.KeyboardUtils;
import com.blankj.utilcode.util.TimeUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.xingdata.api.print.ZX_PrintPOS;
import com.xingdata.zzdpos.R;
import com.xingdata.zzdpos.base.BaseActivity;
import com.xingdata.zzdpos.base.BaseFragment;
import com.xingdata.zzdpos.databinding.FragmentReplenishementDetailBinding;
import com.xingdata.zzdpos.model.Psb;
import com.xingdata.zzdpos.model.Sssku;
import com.xingdata.zzdpos.ui.dialog.PromptDialog;
import com.xingdata.zzdpos.ui.login.LoginPresenter;
import com.xingdata.zzdpos.ui.manage.replenishment.ReplenishmentPresenter;
import com.xingdata.zzdpos.ui.manage.replenishment.adpter.ReplenishmentDetailAdapter;
import com.xingdata.zzdpos.util.ConvertUtil;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Administrator on 2017/11/24.
*/
public class ReplenishmentDetailFragment extends BaseFragment<ReplenishmentPresenter, FragmentReplenishementDetailBinding> {
private ReplenishmentDetailAdapter mReplenishmentDetailAdapter;
private List<Sssku> ssskuList = new ArrayList<>();
private Psb mPsb;
private long sumPrice;
private boolean isAdd = true;
@Override
public int getLayoutId() {
return R.layout.fragment_replenishement_detail;
}
@Override
public void initView() {
initRecycycler();
// mViewBinding.btnSearch.setOnClickListener(view -> {
// scrollToItem(mViewBinding.etKeyword.getText().toString().trim());
// });
......@@ -88,80 +88,80 @@
// ZX_PrintPOS.getInstance(mContext).printOrder(1, mPsb);
// }
// });
// }
//
// private void initRecycycler() {
// mViewBinding.replenishmentRightRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));
// if (mPsb != null && mPsb.getPsbStatus() != null) {
// switch (mPsb.getPsbStatus()) {
// case 3:
// mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
// break;
// case 1:
// mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
// break;
// case 0:
// mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, false);
// break;
// default:
// mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
// break;
// }
// } else {
// mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
// }
// mReplenishmentDetailAdapter.setEmptyView(getEmptyView());
// mViewBinding.replenishmentRightRecycler.setAdapter(mReplenishmentDetailAdapter);
// mReplenishmentDetailAdapter.setOnItemLongClickListener((adapter, view, position) -> {
// PromptDialog delDialog = new PromptDialog();
// delDialog.setDialogType(PromptDialog.PROMPTDIALOG_SELECT, "是否删除").setClick(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// mReplenishmentDetailAdapter.getData().remove(position);
// mReplenishmentDetailAdapter.notifyDataSetChanged();
// delDialog.dismiss();
// }
// }, new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// delDialog.dismiss();
// }
// }).setCancelables(false).show((BaseActivity) mContext);
// return false;
// });
// mReplenishmentDetailAdapter.setmUpdatePriceListener(new ReplenishmentDetailAdapter.UpdatePriceListener() {
// @Override
// public void updatePrice(long amt) {
// sumPrice = sumPrice + amt;
// mViewBinding.setFinallyPrice(ConvertUtil.fenToYuan(sumPrice, true));
// }
// });
// initData();
// }
//
// private void initData() {
// if (isAdd) {
// mViewBinding.setIsShowSupplier(false);
// } else {
// mViewBinding.setIsShowSupplier(true);
// mViewBinding.setSupplierName(mPsb.getOutChannelNameabcn());
// mViewBinding.setSupplierAddress(mPsb.getOutCityProvName() + mPsb.getOutCityName() + mPsb.getOutCityCountyName() + mPsb.getOutCityAddress());
// mViewBinding.setSupplierTel(mPsb.getOutContactMob());
// mViewBinding.setDate(TimeUtils.millis2String(mPsb.getCreateTime()));
// mViewBinding.setNo(mPsb.getPsbNo());
// }
// if (this.ssskuList.size() != 0) {
// mViewBinding.setSumNum(ssskuList.size() + "种");
// mViewBinding.setFinallyPrice(ConvertUtil.fenToYuan(getSumPrice(), true));
// } else {
// mViewBinding.setSumNum("0个");
// mViewBinding.setFinallyPrice("¥0.00");
// }
// mViewBinding.setShopOderName(LoginPresenter.loginReturnBean.getOperName());
// mViewBinding.setShopName(LoginPresenter.loginReturnBean.getShopNameAbcn());
// mViewBinding.setShopAddress(LoginPresenter.loginReturnBean.getCityProvName() + LoginPresenter.loginReturnBean.getCityName() + LoginPresenter.loginReturnBean.getCityCountyName() + LoginPresenter.loginReturnBean.getCityAddress());
// mViewBinding.setShopTel(LoginPresenter.loginReturnBean.getContactTel());
}
//
private void initRecycycler() {
mViewBinding.recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
if (mPsb != null && mPsb.getPsbStatus() != null) {
switch (mPsb.getPsbStatus()) {
case 3:
mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
break;
case 1:
mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
break;
case 0:
mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, false);
break;
default:
mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
break;
}
} else {
mReplenishmentDetailAdapter = new ReplenishmentDetailAdapter(ssskuList, true);
}
mReplenishmentDetailAdapter.setEmptyView(getEmptyView());
mViewBinding.recyclerView.setAdapter(mReplenishmentDetailAdapter);
mReplenishmentDetailAdapter.setOnItemLongClickListener((adapter, view, position) -> {
PromptDialog delDialog = new PromptDialog();
delDialog.setDialogType(PromptDialog.PROMPTDIALOG_SELECT, "是否删除").setClick(new View.OnClickListener() {
@Override
public void onClick(View view) {
mReplenishmentDetailAdapter.getData().remove(position);
mReplenishmentDetailAdapter.notifyDataSetChanged();
delDialog.dismiss();
}
}, new View.OnClickListener() {
@Override
public void onClick(View view) {
delDialog.dismiss();
}
}).setCancelables(false).show((BaseActivity) mContext);
return false;
});
mReplenishmentDetailAdapter.setmUpdatePriceListener(new ReplenishmentDetailAdapter.UpdatePriceListener() {
@Override
public void updatePrice(long amt) {
sumPrice = sumPrice + amt;
mViewBinding.setFinallyPrice(ConvertUtil.fenToYuan(sumPrice, true));
}
});
initData();
}
private void initData() {
if (isAdd) {
mViewBinding.setIsShowSupplier(false);
} else {
mViewBinding.setIsShowSupplier(true);
mViewBinding.setSupplierName(mPsb.getOutChannelNameabcn());
mViewBinding.setSupplierAddress(mPsb.getOutCityProvName() + mPsb.getOutCityName() + mPsb.getOutCityCountyName() + mPsb.getOutCityAddress());
mViewBinding.setSupplierTel(mPsb.getOutContactMob());
mViewBinding.setDate(TimeUtils.millis2String(mPsb.getCreateTime()));
mViewBinding.setNo(mPsb.getPsbNo());
}
if (this.ssskuList.size() != 0) {
mViewBinding.setSumNum(ssskuList.size() + "种");
mViewBinding.setFinallyPrice(ConvertUtil.fenToYuan(getSumPrice(), true));
} else {
mViewBinding.setSumNum("0个");
mViewBinding.setFinallyPrice("¥0.00");
}
mViewBinding.setShopOderName(LoginPresenter.loginReturnBean.getOperName());
mViewBinding.setShopName(LoginPresenter.loginReturnBean.getShopNameAbcn());
mViewBinding.setShopAddress(LoginPresenter.loginReturnBean.getCityProvName() + LoginPresenter.loginReturnBean.getCityName() + LoginPresenter.loginReturnBean.getCityCountyName() + LoginPresenter.loginReturnBean.getCityAddress());
mViewBinding.setShopTel(LoginPresenter.loginReturnBean.getContactTel());
// if (mPsb != null && mPsb.getPsbStatus() != null) {
// switch (mPsb.getPsbStatus()) {
// case 3:
......@@ -180,86 +180,82 @@
// break;
// }
// }
//
// }
//
// public long getSumPrice() {
// sumPrice = 0;
// for (Sssku sssku : mReplenishmentDetailAdapter.getData()) {
// sumPrice = sumPrice + sssku.getSellSumAmt();
// }
// return sumPrice;
// }
//
//
// public void setSsskuList(List<Sssku> ssskuList) {
// this.ssskuList = ssskuList;
// isAdd = true;
// this.mPsb = null;
// }
//
// public void setPsb(Psb psb) {
// this.mPsb = psb;
// this.ssskuList = psb.getSsskuList();
// isAdd = false;
// }
//
//
// @Override
// public void onDestroy() {
// mPresenter.isAllowFragment(true);
// super.onDestroy();
// }
//
// /**
// * 获取空页面
// *
// *
// * @return 空页面
// */
// protected View getEmptyView() {
// @SuppressLint("InflateParams") View view = getLayoutInflater().inflate(R.layout.view_empty, null);
// Drawable drawable=getResources().getDrawable(R.mipmap.bg_no_null);
// drawable.setBounds(0,0,200,200);
//
// TextView textView=((TextView) view.findViewById(R.id.tv_empty));
// textView.setCompoundDrawablesRelative(null,drawable,null,null);
// textView.setText(R.string.replenishment_detail_full);
// textView.setTextColor(getResources().getColor(R.color.black));
// return view;
// }
// private void scrollToItem(String string) {
//
// if (string.length() == 0) {
// ToastUtils.showShort("请输入搜索内容");
// return;
// }
// Pattern pattern = Pattern.compile(string, Pattern.CASE_INSENSITIVE);
//
// for (int i = 0; i < mReplenishmentDetailAdapter.getData().size(); i++) {
// Matcher matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuBarcode() + "");
// if (matcher.find()) {
// ((LinearLayoutManager) mViewBinding.replenishmentRightRecycler.getLayoutManager()).scrollToPositionWithOffset(i, 0);
// ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
// KeyboardUtils.hideSoftInput(getActivity());
// return;
// }
// matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuAb() + "");
// if (matcher.find()) {
// ((LinearLayoutManager) mViewBinding.replenishmentRightRecycler.getLayoutManager()).scrollToPositionWithOffset(i, 0);
// ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
// KeyboardUtils.hideSoftInput(getActivity());
// return;
// }
// matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuName() + "");
// if (matcher.find()) {
// ((LinearLayoutManager) mViewBinding.replenishmentRightRecycler.getLayoutManager()).scrollToPositionWithOffset(i, 0);
// ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
// KeyboardUtils.hideSoftInput(getActivity());
// return;
// }
// }
//
// ToastUtils.showShort("没有找到相关货品");
// }
//}
}
public long getSumPrice() {
sumPrice = 0;
for (Sssku sssku : mReplenishmentDetailAdapter.getData()) {
sumPrice = sumPrice + sssku.getSellSumAmt();
}
return sumPrice;
}
public void setSsskuList(List<Sssku> ssskuList) {
this.ssskuList = ssskuList;
isAdd = true;
this.mPsb = null;
}
public void setPsb(Psb psb) {
this.mPsb = psb;
this.ssskuList = psb.getSsskuList();
isAdd = false;
}
@Override
public void onDestroy() {
mPresenter.isAllowFragment(true);
super.onDestroy();
}
/**
* 获取空页面
*
*
* @return 空页面
*/
protected View getEmptyView() {
@SuppressLint("InflateParams") View view = getLayoutInflater().inflate(R.layout.view_empty, null);
TextView textView=((TextView) view.findViewById(R.id.tv_empty));
textView.setText(R.string.replenishment_detail_full);
textView.setTextColor(getResources().getColor(R.color.black));
return view;
}
private void scrollToItem(String string) {
if (string.length() == 0) {
ToastUtils.showShort("请输入搜索内容");
return;
}
Pattern pattern = Pattern.compile(string, Pattern.CASE_INSENSITIVE);
for (int i = 0; i < mReplenishmentDetailAdapter.getData().size(); i++) {
Matcher matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuBarcode() + "");
if (matcher.find()) {
((LinearLayoutManager) mViewBinding.recyclerView.getLayoutManager()).scrollToPositionWithOffset(i, 0);
ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
KeyboardUtils.hideSoftInput(getActivity());
return;
}
matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuAb() + "");
if (matcher.find()) {
((LinearLayoutManager) mViewBinding.recyclerView.getLayoutManager()).scrollToPositionWithOffset(i, 0);
ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
KeyboardUtils.hideSoftInput(getActivity());
return;
}
matcher = pattern.matcher((mReplenishmentDetailAdapter.getData().get(i)).getSpuName() + "");
if (matcher.find()) {
((LinearLayoutManager) mViewBinding.recyclerView.getLayoutManager()).scrollToPositionWithOffset(i, 0);
ToastUtils.showShort("已找到商品:" + mReplenishmentDetailAdapter.getData().get(i).getSpuName());
KeyboardUtils.hideSoftInput(getActivity());
return;
}
}
ToastUtils.showShort("没有找到相关货品");
}
}
......@@ -19,6 +19,7 @@ import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
import com.xingdata.zzdpos.ui.main.adapter.FragmentViewAdapter;
import com.xingdata.zzdpos.ui.manage.replenishment.ReplenishmentPresenter;
import com.xingdata.zzdpos.ui.manage.replenishment.adpter.ReplenishmentAdapter;
import com.xingdata.zzdpos.util.OnClickListener;
import java.util.ArrayList;
import java.util.List;
......@@ -39,6 +40,9 @@ public class ReplenishmentFragment extends BaseFragment<ReplenishmentPresenter,
private int[] titleInts = {R.string.manage_replenishment_unConfirmed, R.string.manage_replenishment_unReceive, R.string.manage_replenishment_finished};
private FragmentViewAdapter mFragmentPagerAdapter;
private List<BaseFragment> fragments;
private List<Psb> psbA;
private List<Psb> psbB;
private List<Psb> psbC;
@Override
......@@ -50,14 +54,24 @@ public class ReplenishmentFragment extends BaseFragment<ReplenishmentPresenter,
public void initView() {
initData();
initTab();
mPresenter.queryPsbList();
((ReplenishmentListFragment) fragments.get(0)).setData(psbA);
((ReplenishmentListFragment) fragments.get(1)).setData(psbB);
((ReplenishmentListFragment) fragments.get(2)).setData(psbC);
mViewBinding.btnAdd.setOnClickListener(view -> {
mPresenter.clickAdd();
});
mViewBinding.icTitle.ivRight.setImageResource(R.mipmap.but_sweep_yard);
mViewBinding.icTitle.edTitle.setHint("请输入供货商名称");
mViewBinding.icTitle.setOnClickListener(new OnClickListener() {
@Override
protected void myOnClickListener(View v) {
getActivity().finish();
}
});
mViewBinding.icTitle.ivRight.setVisibility(View.GONE);
mViewBinding.icTitle.edTitle.setHint("请输入供货商名称");
mViewBinding.icTitle.edTitle.setOnClickListener(view -> {
if (mViewBinding.icTitle.edTitle.getText().toString().trim().length() == 0) {
ToastUtils.showShort("请输入供货商名称");
......@@ -143,10 +157,16 @@ public class ReplenishmentFragment extends BaseFragment<ReplenishmentPresenter,
}
public void showReplenishmentList(List<Psb> A, List<Psb> B, List<Psb> C) {
((ReplenishmentListFragment) fragments.get(0)).setData(A, true);
((ReplenishmentListFragment) fragments.get(1)).setData(B, true);
((ReplenishmentListFragment) fragments.get(2)).setData(C, true);
public void showReplenishmentList(List<Psb> A, List<Psb> B, List<Psb> C,boolean isFrist) {
if (isFrist){
this.psbA = A;
this.psbB = B;
this.psbC = C;
}else {
((ReplenishmentListFragment) fragments.get(0)).setData(psbA,true);
((ReplenishmentListFragment) fragments.get(1)).setData(psbB,true);
((ReplenishmentListFragment) fragments.get(2)).setData(psbC,true);
}
}
......
......@@ -33,6 +33,7 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
private ReplenishmentAdapter mReplenishmentAdapter;
private List<Psb> psbArrayList = new ArrayList<>();
@Override
public int getLayoutId() {
return R.layout.fragment_replenishment_list;
......@@ -41,7 +42,7 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
@Override
public void initView() {
if (mReplenishmentAdapter == null) {
mReplenishmentAdapter = new ReplenishmentAdapter(psbArrayList);
mReplenishmentAdapter = new ReplenishmentAdapter(new ArrayList<>());
mViewBinding.recycler.setLayoutManager(new LinearLayoutManager(getActivity()));
mViewBinding.recycler.setAdapter(mReplenishmentAdapter);
......@@ -61,7 +62,7 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
});
mViewBinding.srlProduct.setOnRefreshListener(this::onRefresh);
setData(psbArrayList,true);
}
private void onRefresh() {
......@@ -83,10 +84,7 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
* @param isRefresh 是否刷新
*/
public void setData(List<Psb> psbList, boolean isRefresh) {
if (mReplenishmentAdapter == null) {
psbArrayList = psbList;
return;
}
if (isRefresh) {
mReplenishmentAdapter.setEnableLoadMore(true);
mViewBinding.srlProduct.setRefreshing(false);
......@@ -103,9 +101,13 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
}
public void setData(List<Psb> psbList){
this.psbArrayList=psbList;
}
public void searchSucc(String wd) {
List<Psb> psbs = new ArrayList<>();
if (psbArrayList == null) {
if (psbArrayList .size()==0) {
return;
}
for (Psb psb : psbArrayList) {
......@@ -133,7 +135,7 @@ public class ReplenishmentListFragment extends BaseFragment<ReplenishmentPresent
}
}
}, 500);
}, 300);
}
}
......@@ -80,11 +80,11 @@ public class VipPresenter extends VipContract.Presenter {
@Override
public void saleorderQuery(Long vipID) {
ApiFactory.Saleorder.querySaleorderByVipId(vipID,0,100).subscribe(ticketList -> {
mView.ticketQuerySus(ticketList);
}, throwable -> {
ToastUtils.showShort(throwable.getMessage());
});
// ApiFactory.Saleorder.querySaleorderByVipId(vipID,0,100).subscribe(ticketList -> {
// mView.ticketQuerySus(ticketList);
// }, throwable -> {
// ToastUtils.showShort(throwable.getMessage());
// });
}
......
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- This is the main color -->
<item>
<shape>
<!-- 边框颜色 -->
<solid android:color="@color/black_baozheng"/>
</shape>
</item>
<!-- 给View的上 左 右设置8dp的边框 -->
<item android:bottom="@dimen/view_line_L050" android:top="@dimen/view_line_L050"
android:start="@dimen/view_line_L050" android:end="@dimen/view_line_L050">
<shape>
<!-- View填充颜色 -->
<solid android:color="@color/gray_zhouyu" />
</shape>
</item>
</layer-list>
\ No newline at end of file
......@@ -24,6 +24,7 @@
android:background="@color/gray_kongming" />
<LinearLayout
android:id="@+id/btn_add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
......@@ -31,7 +32,7 @@
android:orientation="horizontal">
<TextView
android:id="@+id/btn_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_4"
......
......@@ -55,525 +55,448 @@
type="String" />
</data>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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:background="@color/white"
android:background="@color/gray_zhouyu"
android:orientation="vertical"
android:splitMotionEvents="false">
<!--<android.support.v7.widget.CardView-->
<!--android:id="@+id/f_left"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="0dp"-->
<!--android:layout_marginEnd="@dimen/all_padding"-->
<!--android:background="@color/white"-->
<!--app:cardElevation="@dimen/all_padding"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintHorizontal_weight="10"-->
<!--app:layout_constraintLeft_toLeftOf="parent"-->
<!--app:layout_constraintRight_toLeftOf="@+id/f_right"-->
<!--app:layout_constraintTop_toTopOf="parent"-->
<!--app:layout_constraintVertical_weight="25">-->
<!--<android.support.constraint.ConstraintLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@color/white">-->
<!--<TextView-->
<!--android:id="@+id/tv_supplier_title"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:text="供货方"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/all_text_size_big"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<View-->
<!--android:id="@+id/view_line_left_1"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_slight_line_width"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:background="@color/line"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintTop_toBottomOf="@id/tv_supplier_title" />-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_supplier_name"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toTopOf="@id/view_line_left_1">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_stores" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{supplierName}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_supplier_address"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_supplier_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_supplier_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_supplier_name">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_address" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{supplierAddress}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_supplier_phone"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_supplier_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_supplier_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_supplier_address">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_telephone" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{supplierTel}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<TextView-->
<!--android:id="@+id/tv_shop_title"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:layout_marginStart="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/all_margin_big"-->
<!--android:text="定货方"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/all_text_size_big"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_supplier_phone"-->
<!--app:layout_goneMarginTop="@dimen/all_margin" />-->
<!--<View-->
<!--android:id="@+id/view_line_left_2"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_slight_line_width"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:background="@color/line"-->
<!--app:layout_constraintTop_toBottomOf="@id/tv_shop_title" />-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_shop_name"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toTopOf="@id/view_line_left_2">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_stores" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{shopName}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_shop_address"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_shop_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_shop_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_shop_name">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_address" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{shopAddress}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_shop_phone"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_shop_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_shop_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_shop_address">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_telephone" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{shopTel}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<View-->
<!--android:id="@+id/view_line_left_3"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_slight_line_width"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:background="@color/line"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_shop_phone" />-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_date"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginTop="@dimen/all_margin"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_shop_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_shop_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/view_line_left_3">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_dates_green" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{date}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_no"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal"-->
<!--android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_shop_name"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_shop_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/ll_date">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@mipmap/icon_no_green" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{no}"-->
<!--android:textColor="@color/black" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_result"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:gravity="center"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toEndOf="@id/ll_num">-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center"-->
<!--android:paddingBottom="@dimen/dp_4"-->
<!--android:paddingLeft="@dimen/all_padding"-->
<!--android:paddingRight="@dimen/all_padding"-->
<!--android:paddingTop="@dimen/dp_4"-->
<!--android:text="@{finallyPrice}"-->
<!--android:textColor="@color/reddeep"-->
<!--android:textSize="@dimen/all_text_size_big" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/ll_num"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintBottom_toBottomOf="@id/ll_result"-->
<!--app:layout_constraintEnd_toStartOf="@id/ll_result"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toTopOf="@id/ll_result">-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:padding="@dimen/dp_4"-->
<!--android:text="@{sumNum}"-->
<!--android:textColor="@color/reddeep"-->
<!--android:textSize="@dimen/all_text_size_big"-->
<!--android:textStyle="bold" />-->
<!--</LinearLayout>-->
<!--<TextView-->
<!--android:id="@+id/tv_result_hint"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:text="金额"-->
<!--android:textColor="@color/black"-->
<!--app:layout_constraintBottom_toTopOf="@id/ll_result"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_result"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_result" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:text="种类"-->
<!--android:textColor="@color/black"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_result_hint"-->
<!--app:layout_constraintEnd_toEndOf="@id/ll_num"-->
<!--app:layout_constraintStart_toStartOf="@id/ll_num"-->
<!--app:layout_constraintTop_toTopOf="@id/tv_result_hint" />-->
<!--<View-->
<!--android:id="@+id/view_line_left_bottom"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_margin"-->
<!--android:layout_marginBottom="100dp"-->
<!--android:background="@color/lyt_main_bg"-->
<!--app:layout_constraintBottom_toBottomOf="parent" />-->
<!--</android.support.constraint.ConstraintLayout>-->
<!--</android.support.v7.widget.CardView>-->
<!--<android.support.constraint.ConstraintLayout-->
<!--android:id="@+id/f_right"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="0dp"-->
<!--android:background="@color/white"-->
<!--android:splitMotionEvents="false"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintHorizontal_weight="22"-->
<!--app:layout_constraintLeft_toRightOf="@+id/f_left"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintTop_toTopOf="parent"-->
<!--app:layout_constraintVertical_weight="25">-->
<!--<EditText-->
<!--android:id="@+id/et_keyword"-->
<!--style="@style/dialog_edit"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="0dp"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:drawableEnd="@mipmap/ic_scan"-->
<!--android:hint="@string/inventory_add_et_hint"-->
<!--android:inputType="number"-->
<!--android:maxLength="19"-->
<!--android:minWidth="@dimen/fragment_store_et_min_width"-->
<!--android:paddingEnd="@dimen/fragment_detail_padding_end"-->
<!--android:paddingStart="@dimen/all_margin"-->
<!--android:singleLine="true"-->
<!--app:layout_constraintBottom_toBottomOf="@id/btn_search"-->
<!--app:layout_constraintRight_toRightOf="@id/btn_search"-->
<!--app:layout_constraintTop_toTopOf="@id/btn_search" />-->
<!--<ImageButton-->
<!--android:id="@+id/btn_search"-->
<!--android:layout_width="@dimen/fragment_store_btn_width"-->
<!--android:layout_height="@dimen/fragment_store_et_height"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/all_margin"-->
<!--android:background="@drawable/shape_store_btn_search_select"-->
<!--android:contentDescription="@string/store_search"-->
<!--android:scaleType="centerInside"-->
<!--android:src="@mipmap/store_search"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:text="@string/replenishment_detail_title"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/all_sub_title_size"-->
<!--app:layout_constraintBottom_toBottomOf="@id/et_keyword"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toTopOf="@id/et_keyword" />-->
<!--<View-->
<!--android:id="@+id/view_line"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_slight_line_width"-->
<!--android:layout_marginLeft="@dimen/all_padding"-->
<!--android:layout_marginRight="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/all_padding"-->
<!--android:background="@color/line"-->
<!--app:layout_constraintTop_toBottomOf="@id/et_keyword" />-->
<!--<android.support.v7.widget.RecyclerView-->
<!--android:id="@+id/replenishment_right_recycler"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="0dp"-->
<!--android:layout_marginTop="@dimen/view_line_L1"-->
<!--android:splitMotionEvents="false"-->
<!--app:layout_constraintBottom_toTopOf="@id/cl_btn"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="@id/view_line" />-->
<!--<android.support.constraint.ConstraintLayout-->
<!--android:id="@+id/cl_btn"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="100dp"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="@id/replenishment_right_recycler">-->
<!--<View-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/all_slight_line_width"-->
<!--android:layout_marginLeft="@dimen/all_padding"-->
<!--android:layout_marginRight="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/view_line_L1"-->
<!--android:background="@color/line"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<Button-->
<!--android:id="@+id/btn_end"-->
<!--style="@style/button_positive"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:layout_marginLeft="@dimen/all_margin"-->
<!--android:layout_marginRight="@dimen/all_margin"-->
<!--android:stateListAnimator="@null"-->
<!--android:text="@string/replenishment_detail_submit"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toEndOf="parent" />-->
<!--<Button-->
<!--android:id="@+id/btn_print"-->
<!--style="@style/button_positive"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:layout_marginLeft="@dimen/all_margin"-->
<!--android:layout_marginRight="@dimen/all_margin"-->
<!--android:stateListAnimator="@null"-->
<!--android:text="@string/replenishment_detail_print"-->
<!--android:visibility="gone"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent" />-->
<!--<Button-->
<!--android:id="@+id/btn_canel"-->
<!--style="@style/button_passive"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:layout_marginEnd="@dimen/all_margin_big"-->
<!--android:stateListAnimator="@null"-->
<!--android:text="@string/replenishment_detail_cancel"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toStartOf="@id/btn_end"-->
<!--app:layout_goneMarginLeft="@dimen/all_margin"-->
<!--app:layout_goneMarginRight="@dimen/all_margin" />-->
<!--</android.support.constraint.ConstraintLayout>-->
<!--</android.support.constraint.ConstraintLayout>-->
</android.support.constraint.ConstraintLayout>
<include
android:id="@+id/ly_title"
layout="@layout/title_order" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/white_caocao">
<TextView
android:id="@+id/tv_supplier_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/all_padding"
android:paddingStart="@dimen/all_padding_left_right"
android:paddingTop="@dimen/all_padding"
android:text="供货方"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_supplier_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/all_padding_left_right"
android:drawableStart="@mipmap/icon_stores"
android:text="@{supplierName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintBottom_toBottomOf="@id/tv_supplier_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tv_supplier_title" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintTop_toTopOf="@id/tv_supplier_title" />
<View
android:id="@+id/view_line_left_1"
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintTop_toBottomOf="@id/tv_supplier_title" />
<LinearLayout
android:id="@+id/ll_supplier"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingEnd="@dimen/all_padding_left_right"
android:paddingStart="@dimen/all_padding_left_right"
app:layout_constraintTop_toTopOf="@id/view_line_left_1">
<LinearLayout
android:id="@+id/ll_supplier_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_stores" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{supplierName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_supplier_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_address" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{supplierAddress}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_supplier_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_telephone" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{supplierTel}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/tv_shop_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/all_padding"
android:paddingStart="@dimen/all_padding_left_right"
android:paddingTop="@dimen/all_padding"
android:text="定货方"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ll_supplier"
app:layout_goneMarginTop="@dimen/all_margin" />
<TextView
android:id="@+id/tv_shop_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/all_padding_left_right"
android:drawableStart="@mipmap/icon_stores"
android:text="@{shopName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size"
app:layout_constraintBottom_toBottomOf="@id/tv_shop_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tv_shop_title" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
app:layout_constraintTop_toTopOf="@id/tv_shop_title" />
<View
android:id="@+id/view_line_left_2"
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
app:layout_constraintTop_toBottomOf="@id/tv_shop_title" />
<LinearLayout
android:id="@+id/ll_shop"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingEnd="@dimen/all_padding_left_right"
android:paddingStart="@dimen/all_padding_left_right"
app:layout_constraintTop_toBottomOf="@id/tv_shop_title">
<LinearLayout
android:id="@+id/ll_shop_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/view_line_left_2">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_stores" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{shopName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_shop_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="@id/ll_shop_name"
app:layout_constraintStart_toStartOf="@id/ll_shop_name"
app:layout_constraintTop_toBottomOf="@id/ll_shop_name">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_address" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{shopAddress}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_shop_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="@id/ll_shop_name"
app:layout_constraintStart_toStartOf="@id/ll_shop_name"
app:layout_constraintTop_toBottomOf="@id/ll_shop_address">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_telephone" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{shopTel}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/view_line_left_3"
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintTop_toBottomOf="@id/ll_shop" />
<LinearLayout
android:id="@+id/ll_date"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingEnd="@dimen/all_padding_left_right"
android:paddingStart="@dimen/all_padding_left_right"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintEnd_toEndOf="@id/ll_shop"
app:layout_constraintStart_toStartOf="@id/ll_shop"
app:layout_constraintTop_toBottomOf="@id/view_line_left_3">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_dates_green" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{date}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_no"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingEnd="@dimen/all_padding_left_right"
android:paddingStart="@dimen/all_padding_left_right"
android:visibility="@{isShowSupplier? View.VISIBLE: View.GONE}"
app:layout_constraintEnd_toEndOf="@id/ll_shop"
app:layout_constraintStart_toStartOf="@id/ll_shop"
app:layout_constraintTop_toBottomOf="@id/ll_date">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_no_green" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{no}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_result"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/all_margin"
android:gravity="center"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@id/ll_num"
app:layout_constraintTop_toBottomOf="@id/tv_result_hint">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingBottom="@dimen/dp_4"
android:paddingLeft="@dimen/all_padding"
android:paddingRight="@dimen/all_padding"
android:paddingTop="@dimen/dp_4"
android:text="@{finallyPrice}"
android:textColor="@color/reddeep"
android:textSize="@dimen/all_text_size_big" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_num"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="@id/ll_result"
app:layout_constraintEnd_toStartOf="@id/ll_result"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/ll_result">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/dp_4"
android:text="@{sumNum}"
android:textColor="@color/reddeep"
android:textSize="@dimen/all_text_size_big"
android:textStyle="bold" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_slight_line_width"
android:background="@color/gray_kongming"
app:layout_constraintTop_toBottomOf="@id/ll_no" />
<TextView
android:id="@+id/tv_result_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:paddingTop="@dimen/all_margin"
android:text="金额"
android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="@+id/ll_result"
app:layout_constraintStart_toStartOf="@id/ll_result"
app:layout_constraintTop_toBottomOf="@id/ll_no" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin"
android:paddingTop="@dimen/all_margin"
android:text="缺货种类"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="@id/tv_result_hint"
app:layout_constraintEnd_toEndOf="@id/ll_num"
app:layout_constraintStart_toStartOf="@id/ll_num"
app:layout_constraintTop_toTopOf="@id/tv_result_hint" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/gray_zhouyu"
android:padding="@dimen/all_padding_left_right"
android:text="定货明细"
android:textColor="@color/black_baozheng"
android:textSize="@dimen/all_text_size_small_title"
android:textStyle="bold"
app:layout_constraintTop_toBottomOf="@id/ll_result" />
</android.support.constraint.ConstraintLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</layout>
\ No newline at end of file
......@@ -67,10 +67,10 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="@dimen/all_padding"
android:paddingStart="@dimen/all_padding"
android:text="@{shopName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size" />
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<TextView
......@@ -108,7 +108,7 @@
android:paddingTop="@dimen/dp_4"
android:text="@{date}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size" />
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
......@@ -130,7 +130,7 @@
android:paddingStart="@dimen/all_padding"
android:text="@{no}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size" />
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
......@@ -192,7 +192,7 @@
android:padding="@dimen/dp_4"
android:text="@{supplierName}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size" />
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<LinearLayout
......@@ -215,7 +215,7 @@
android:padding="@dimen/dp_4"
android:text="@{supplierAddress}"
android:textColor="@color/black"
android:textSize="@dimen/all_text_size" />
android:textSize="@dimen/all_text_size_low" />
</LinearLayout>
<android.support.constraint.Guideline
......
......@@ -9,219 +9,203 @@
</data>
<android.support.v7.widget.CardView
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_padding"
android:layout_marginEnd="@dimen/all_margin"
android:layout_marginStart="@dimen/all_padding"
android:layout_marginBottom="@dimen/all_padding"
app:cardCornerRadius="@dimen/all_shape_radius"
app:cardElevation="1dp">
<!--<android.support.constraint.ConstraintLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:padding="@dimen/all_padding"-->
<!--android:background="@drawable/black_border">-->
<!--<com.facebook.drawee.view.SimpleDraweeView-->
<!--android:id="@+id/img_goods"-->
<!--android:layout_width="130dp"-->
<!--android:layout_height="130dp"-->
<!--app:placeholderImage="@mipmap/icon_goods_default" />-->
<!--<TextView-->
<!--android:id="@+id/tv_goods_name"-->
<!--style="@style/other_select_blacktext_style"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/all_margin"-->
<!--android:layout_marginStart="@dimen/all_padding"-->
<!--android:text="贝斯克莱因和美妖精生日巧克力蛋糕"-->
<!--app:layout_constraintEnd_toEndOf="@id/guideline_center"-->
<!--app:layout_constraintStart_toEndOf="@id/img_goods"-->
<!--app:layout_constraintTop_toTopOf="@id/img_goods" />-->
<!--<TextView-->
<!--android:id="@+id/tv_goods_code_hint"-->
<!--style="@style/other_select_smallstyle"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginTop="@dimen/all_padding"-->
<!--android:text="条码:"-->
<!--app:layout_constraintStart_toStartOf="@id/tv_goods_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/tv_goods_name" />-->
<!--<TextView-->
<!--android:id="@+id/tv_goods_code"-->
<!--style="@style/other_select_smallstyle"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="0dp"-->
<!--android:text="12783163981789"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_goods_code_hint"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_goods_code_hint"-->
<!--app:layout_constraintTop_toTopOf="@id/tv_goods_code_hint" />-->
<!--<TextView-->
<!--android:id="@+id/tv_goods_size"-->
<!--style="@style/store_product_size"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="规格"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_goods_price"-->
<!--app:layout_constraintStart_toStartOf="@id/tv_goods_name"-->
<!--app:layout_constraintTop_toBottomOf="@id/tv_goods_code_hint" />-->
<!--<TextView-->
<!--android:id="@+id/tv_goods_price"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:text="999"-->
<!--android:textColor="@color/store_product_price"-->
<!--android:textSize="@dimen/fragment_store_product_price"-->
<!--app:layout_constraintBottom_toBottomOf="@id/img_goods"-->
<!--app:layout_constraintEnd_toEndOf="@id/guideline_center" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="2dp"-->
<!--android:text="@string/money_rmb"-->
<!--android:textColor="@color/store_product_price"-->
<!--android:textSize="@dimen/item_superpurchase_textsize_big"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_goods_price"-->
<!--app:layout_constraintEnd_toStartOf="@+id/tv_goods_price" />-->
<!--<View-->
<!--android:layout_width="@dimen/all_line_width"-->
<!--android:layout_height="0dp"-->
<!--android:layout_marginBottom="@dimen/all_margin"-->
<!--android:layout_marginTop="@dimen/all_margin"-->
<!--android:background="@color/lyt_main_bg"-->
<!--app:layout_constraintBottom_toBottomOf="@id/img_goods"-->
<!--app:layout_constraintEnd_toEndOf="@id/guideline_center"-->
<!--app:layout_constraintTop_toTopOf="@id/img_goods" />-->
<!--<LinearLayout-->
<!--android:id="@+id/linearLayout"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="@dimen/dialog_cart_item_button_height"-->
<!--android:layout_margin="@dimen/all_margin"-->
<!--android:gravity="center"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="@id/guideline_center">-->
<!--<ImageButton-->
<!--android:id="@+id/btn_down"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--android:layout_weight="1"-->
<!--android:background="@color/white"-->
<!--android:src="@mipmap/but_cut"-->
<!--tools:layout_editor_absoluteX="602dp"-->
<!--tools:layout_editor_absoluteY="97dp" />-->
<!--<EditText-->
<!--android:id="@+id/et_count"-->
<!--android:layout_width="100dp"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--android:background="@drawable/hint_border"-->
<!--android:gravity="center"-->
<!--android:hint="1"-->
<!--android:inputType="number"-->
<!--android:maxLength="4"-->
<!--android:saveEnabled="false"-->
<!--tools:layout_editor_absoluteX="540dp"-->
<!--tools:layout_editor_absoluteY="192dp" />-->
<!--<ImageButton-->
<!--android:id="@+id/btn_up"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginStart="@dimen/all_margin"-->
<!--android:layout_weight="1"-->
<!--android:background="@color/white"-->
<!--android:src="@mipmap/but_plus"-->
<!--tools:layout_editor_absoluteX="666dp"-->
<!--tools:layout_editor_absoluteY="97dp" />-->
<!--</LinearLayout>-->
<!--<TextView-->
<!--android:id="@+id/tv_stock_hint"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="right"-->
<!--android:text="库存:"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/big_text_size"-->
<!--app:layout_constraintBottom_toTopOf="@id/linearLayout"-->
<!--app:layout_constraintEnd_toStartOf="@id/tv_stock"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toStartOf="@id/guideline_center"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<TextView-->
<!--android:id="@+id/tv_stock"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="0个"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/big_text_size"-->
<!--app:layout_constraintBottom_toTopOf="@id/linearLayout"-->
<!--app:layout_constraintEnd_toStartOf="@id/tv_traffic_hint"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_stock_hint"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<TextView-->
<!--android:id="@+id/tv_traffic_hint"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="right"-->
<!--android:text="在途:"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/big_text_size"-->
<!--app:layout_constraintBottom_toTopOf="@id/linearLayout"-->
<!--app:layout_constraintEnd_toStartOf="@id/tv_traffic"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_stock"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<TextView-->
<!--android:id="@+id/tv_traffic"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="0个"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="@dimen/big_text_size"-->
<!--app:layout_constraintBottom_toTopOf="@id/linearLayout"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintHorizontal_weight="1"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_traffic_hint"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<android.support.constraint.Guideline-->
<!--android:id="@+id/guideline_center"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:orientation="vertical"-->
<!--app:layout_constraintGuide_percent="0.60" />-->
<!--</android.support.constraint.ConstraintLayout>-->
</android.support.v7.widget.CardView>
android:background="@drawable/singleline_white_gray"
android:padding="@dimen/all_padding">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/img_goods"
android:layout_width="65dp"
android:layout_height="65dp"
app:placeholderImage="@mipmap/icon_goods_default" />
<TextView
android:id="@+id/tv_goods_name"
style="@style/other_select_blacktext_style"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/all_padding_left_right"
android:layout_marginStart="@dimen/all_padding_left_right"
android:text="贝斯克莱因和美妖精生日巧克力蛋糕"
app:layout_constraintStart_toEndOf="@id/img_goods"
app:layout_constraintTop_toTopOf="@id/img_goods" />
<TextView
android:id="@+id/tv_goods_code_hint"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="28dp"
android:layout_marginTop="@dimen/all_padding"
android:text="条码:"
app:layout_constraintStart_toStartOf="@id/tv_goods_name"
app:layout_constraintTop_toBottomOf="@id/tv_goods_name" />
<TextView
android:id="@+id/tv_goods_code"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:text="12783163981789"
app:layout_constraintBottom_toBottomOf="@id/tv_goods_code_hint"
app:layout_constraintStart_toEndOf="@id/tv_goods_code_hint"
app:layout_constraintTop_toTopOf="@id/tv_goods_code_hint" />
<TextView
android:id="@+id/tv_goods_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="规格"
android:textSize="@dimen/all_text_size_small"
android:background="@drawable/frame_frame_zhouyu_bg"
android:padding="@dimen/dp_4"
app:layout_constraintBottom_toBottomOf="@id/tv_goods_code"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tv_goods_code" />
<TextView
android:id="@+id/tv_goods_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="999"
android:textColor="@color/store_product_price"
android:textSize="@dimen/big_text_size"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/tv_rmb"
app:layout_constraintStart_toEndOf="@id/tv_rmb"
app:layout_constraintTop_toTopOf="@id/tv_price_hint" />
<TextView
android:id="@+id/tv_rmb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:text="@string/money_rmb"
android:textColor="@color/store_product_price"
android:textSize="@dimen/all_text_size_small"
app:layout_constraintBottom_toBottomOf="@id/tv_price_hint"
app:layout_constraintStart_toEndOf="@+id/tv_price_hint"
app:layout_constraintTop_toTopOf="@id/tv_price_hint" />
<View
android:layout_width="@dimen/all_line_width"
android:layout_height="0dp"
android:layout_marginBottom="@dimen/all_margin"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/lyt_main_bg"
app:layout_constraintBottom_toBottomOf="@id/img_goods"
app:layout_constraintTop_toTopOf="@id/img_goods" />
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="wrap_content"
android:layout_height="@dimen/dialog_cart_item_button_height"
android:gravity="center"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="@id/tv_price_hint"
app:layout_constraintEnd_toEndOf="parent"
>
<ImageButton
android:id="@+id/btn_down"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/all_margin"
android:layout_weight="1"
android:background="@color/white"
android:src="@mipmap/but_reduce"
tools:layout_editor_absoluteX="602dp"
tools:layout_editor_absoluteY="97dp" />
<EditText
android:id="@+id/et_count"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/selector_edit_frame_blue_background"
android:gravity="center"
android:hint="1"
android:inputType="number"
android:maxLength="4"
android:saveEnabled="false"
tools:layout_editor_absoluteX="540dp"
tools:layout_editor_absoluteY="192dp" />
<ImageButton
android:id="@+id/btn_up"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/all_margin"
android:layout_weight="1"
android:background="@color/white"
android:src="@mipmap/but_add"
tools:layout_editor_absoluteX="666dp"
tools:layout_editor_absoluteY="97dp" />
</LinearLayout>
<TextView
android:id="@+id/tv_stock_hint"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_padding"
android:text="库存:"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="@id/tv_goods_code_hint"
app:layout_constraintTop_toBottomOf="@id/tv_goods_code_hint" />
<TextView
android:id="@+id/tv_stock"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0个"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/tv_stock_hint"
app:layout_constraintStart_toEndOf="@id/tv_goods_code_hint"
app:layout_constraintTop_toTopOf="@id/tv_stock_hint" />
<TextView
android:id="@+id/tv_traffic_hint"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/all_margin_big"
android:text="在途:"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/tv_stock"
app:layout_constraintStart_toEndOf="@id/tv_stock"
app:layout_constraintTop_toTopOf="@id/tv_stock" />
<TextView
android:id="@+id/tv_traffic"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0个"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/tv_traffic_hint"
app:layout_constraintStart_toEndOf="@id/tv_traffic_hint" />
<TextView
android:id="@+id/tv_price_hint"
style="@style/other_select_smallstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_padding"
android:text="进价:"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="@id/tv_stock_hint"
app:layout_constraintTop_toBottomOf="@id/tv_stock_hint" />
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
......@@ -11,6 +11,7 @@
<dimen name="big_text_size">18sp</dimen>
<dimen name="sbig_text_size">25sp</dimen>
<dimen name="all_text_size">16sp</dimen>
<dimen name="all_text_size_small_title">17sp</dimen>
<dimen name="all_text_size_low">14sp</dimen>
<dimen name="all_text_size_small">12sp</dimen>
<dimen name="all_text_size_small_small">10sp</dimen>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment