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

1.退货,领料退回,发货新增

2.TODO 单独菜单
上级 a5da043f
...@@ -6,8 +6,8 @@ android { ...@@ -6,8 +6,8 @@ android {
applicationId "com.wd.workoffice" applicationId "com.wd.workoffice"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 28
versionCode 4 versionCode 5
versionName "1.0.4" versionName "1.0.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [ manifestPlaceholders = [
JPUSH_PKGNAME: applicationId, JPUSH_PKGNAME: applicationId,
......
...@@ -954,6 +954,15 @@ public class OrderDetail { ...@@ -954,6 +954,15 @@ public class OrderDetail {
private String canPickReturnProductSum; private String canPickReturnProductSum;
List<AddStockChooseBean.RecordsBean> backList; List<AddStockChooseBean.RecordsBean> backList;
String count;// backList的数量 String count;// backList的数量
String lot;// 产品批号
public String getLot() {
return lot;
}
public void setLot(String lot) {
this.lot = lot;
}
public String getCount() { public String getCount() {
return count; return count;
......
...@@ -145,6 +145,15 @@ public class ReturnApplyBean { ...@@ -145,6 +145,15 @@ public class ReturnApplyBean {
private Object writeOff; private Object writeOff;
private Object boxCode; private Object boxCode;
private String backStockName; private String backStockName;
private String lot;
public String getLot() {
return lot;
}
public void setLot(String lot) {
this.lot = lot;
}
public int getCreatedBy() { public int getCreatedBy() {
return createdBy; return createdBy;
......
...@@ -38,6 +38,15 @@ public class SendApplyDetailBean { ...@@ -38,6 +38,15 @@ public class SendApplyDetailBean {
private String productName; private String productName;
private String soleCode; private String soleCode;
private String simpleCode; private String simpleCode;
private String lot;
public String getLot() {
return lot;
}
public void setLot(String lot) {
this.lot = lot;
}
public Object getCreatedBy() { public Object getCreatedBy() {
return createdBy; return createdBy;
......
...@@ -73,6 +73,10 @@ public class BackAddActivity extends WorkToolBarActivity { ...@@ -73,6 +73,10 @@ public class BackAddActivity extends WorkToolBarActivity {
LinearLayout llType; LinearLayout llType;
@BindView(R.id.iv_choose_type) @BindView(R.id.iv_choose_type)
ImageView ivChooseType; ImageView ivChooseType;
@BindView(R.id.et_lot)
EditText etLot;
@BindView(R.id.ll_lot)
LinearLayout llLot;
private Map<String, Object> param; private Map<String, Object> param;
private String orderType; private String orderType;
private List<String> typeList = new ArrayList<>(); private List<String> typeList = new ArrayList<>();
...@@ -278,6 +282,7 @@ public class BackAddActivity extends WorkToolBarActivity { ...@@ -278,6 +282,7 @@ public class BackAddActivity extends WorkToolBarActivity {
String num = etNum.getText().toString(); String num = etNum.getText().toString();
String price = etPrice.getText().toString(); String price = etPrice.getText().toString();
String remark = etRemark.getText().toString(); String remark = etRemark.getText().toString();
String lot = etLot.getText().toString();
if (TextUtils.isEmpty(num)) { if (TextUtils.isEmpty(num)) {
toast("请输入退货数量"); toast("请输入退货数量");
return; return;
...@@ -293,6 +298,10 @@ public class BackAddActivity extends WorkToolBarActivity { ...@@ -293,6 +298,10 @@ public class BackAddActivity extends WorkToolBarActivity {
} }
} }
} }
if (TextUtils.isEmpty(lot)) {
toast("请输入产品批号");
return;
}
if (TextUtils.isEmpty(price) && chooseType == 3) { if (TextUtils.isEmpty(price) && chooseType == 3) {
toast("请输入核销金额"); toast("请输入核销金额");
return; return;
...@@ -300,6 +309,7 @@ public class BackAddActivity extends WorkToolBarActivity { ...@@ -300,6 +309,7 @@ public class BackAddActivity extends WorkToolBarActivity {
param.put("productAmount", num); param.put("productAmount", num);
param.put("writeOff", price); param.put("writeOff", price);
param.put("applyRemark", remark); param.put("applyRemark", remark);
param.put("lot", lot);
if (chooseType == 1) { if (chooseType == 1) {
if (chooseDep == null) { if (chooseDep == null) {
toast("请选择退货仓库"); toast("请选择退货仓库");
......
package com.wd.workoffice.ui.activity.bat.order; package com.wd.workoffice.ui.activity.bat.order;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
...@@ -120,6 +121,8 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -120,6 +121,8 @@ public class BackDetailActivity extends WorkToolBarActivity {
TextView tvDep5; TextView tvDep5;
@BindView(R.id.ll_process) @BindView(R.id.ll_process)
LinearLayout llProcess; LinearLayout llProcess;
@BindView(R.id.tv_lot)
TextView tvLot;
private ReturnApplyBean.RecordsBean info; private ReturnApplyBean.RecordsBean info;
private String orderType; private String orderType;
...@@ -149,6 +152,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -149,6 +152,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
tvStock.setText(info.getBackStockName()); tvStock.setText(info.getBackStockName());
tvPerson.setText(String.valueOf(info.getCreatedByName())); tvPerson.setText(String.valueOf(info.getCreatedByName()));
tvTime.setText(info.getCreatedTime()); tvTime.setText(info.getCreatedTime());
tvLot.setText(info.getLot());
tvRemark.setText(String.valueOf(info.getApplyRemark())); tvRemark.setText(String.valueOf(info.getApplyRemark()));
tvStatus.setText(WorkUtils.getReturnStatus(Integer.valueOf(info.getStatus()))); tvStatus.setText(WorkUtils.getReturnStatus(Integer.valueOf(info.getStatus())));
changeProcess(info.getStatus()); changeProcess(info.getStatus());
...@@ -180,8 +184,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -180,8 +184,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
} }
rlHistory.setVisibility(View.GONE); rlHistory.setVisibility(View.GONE);
llProcess.setVisibility(View.GONE); llProcess.setVisibility(View.GONE);
} } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
if (status.startsWith("1") && !status.endsWith("4")) { if (status.startsWith("1") && !status.endsWith("4")) {
llBottom.setVisibility(View.VISIBLE); llBottom.setVisibility(View.VISIBLE);
llCheck.setVisibility(View.VISIBLE); llCheck.setVisibility(View.VISIBLE);
...@@ -312,7 +315,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -312,7 +315,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
// } // }
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
// hasPermission = WorkUtils.hasPermission(PagePermissionType.PO_RETURN_EDIT.getPermission()); // hasPermission = WorkUtils.hasPermission(PagePermissionType.PO_RETURN_EDIT.getPermission());
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_PICK_RETURN_EDIT.getPermission()); hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_PICK_RETURN_EDIT.getPermission());
} }
...@@ -332,13 +335,13 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -332,13 +335,13 @@ public class BackDetailActivity extends WorkToolBarActivity {
TextView tvNum = view.findViewById(R.id.tv_num); TextView tvNum = view.findViewById(R.id.tv_num);
TextView tvCancel = view.findViewById(R.id.tv_cancel); TextView tvCancel = view.findViewById(R.id.tv_cancel);
EditText etRemark = view.findViewById(R.id.et_content); EditText etRemark = view.findViewById(R.id.et_content);
WorkUtils.addNumListener(etRemark,tvNum); WorkUtils.addNumListener(etRemark, tvNum);
builder.setView(view); builder.setView(view);
AlertDialog addCartDialog = builder.create(); AlertDialog addCartDialog = builder.create();
tvOk.setOnClickListener(new View.OnClickListener() { tvOk.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (status!=1 && TextUtils.isEmpty(etRemark.getText().toString()) && status == 2) { if (status != 1 && TextUtils.isEmpty(etRemark.getText().toString()) && status == 2) {
toast("请填写备注"); toast("请填写备注");
return; return;
} }
...@@ -363,7 +366,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -363,7 +366,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
param.put("status", status); param.put("status", status);
param.put("productAmount", info.getProductAmount()); param.put("productAmount", info.getProductAmount());
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
param.put("status", status); param.put("status", status);
param.put("productAmount", info.getProductAmount()); param.put("productAmount", info.getProductAmount());
} }
...@@ -433,7 +436,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -433,7 +436,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
checkDialog(1, info.getId()); checkDialog(1, info.getId());
break; break;
case R.id.rl_history: case R.id.rl_history:
startActivity(ReturnApplyHistoryActivity.class,"id",info.getId()+""); startActivity(ReturnApplyHistoryActivity.class, "id", info.getId() + "");
break; break;
case R.id.rl_order: case R.id.rl_order:
if (TextUtils.equals(orderType, OrderType.SALE.getCode())) { if (TextUtils.equals(orderType, OrderType.SALE.getCode())) {
...@@ -446,7 +449,7 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -446,7 +449,7 @@ public class BackDetailActivity extends WorkToolBarActivity {
"id", getIntent().getStringExtra("id"), "id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status")); "status", getIntent().getStringExtra("status"));
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
if (!WorkUtils.hasPermission(PagePermissionType.PO_PURCHASE_DETAILS.getPermission())){ if (!WorkUtils.hasPermission(PagePermissionType.PO_PURCHASE_DETAILS.getPermission())) {
toast(R.string.permission); toast(R.string.permission);
return; return;
} }
...@@ -454,8 +457,8 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -454,8 +457,8 @@ public class BackDetailActivity extends WorkToolBarActivity {
"identity", getIntent().getStringExtra("identity"), "identity", getIntent().getStringExtra("identity"),
"id", getIntent().getStringExtra("id"), "id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status")); "status", getIntent().getStringExtra("status"));
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
if (!WorkUtils.hasPermission(PagePermissionType.FO_SUPPLIER_DETAILS.getPermission())){ if (!WorkUtils.hasPermission(PagePermissionType.FO_SUPPLIER_DETAILS.getPermission())) {
toast(R.string.permission); toast(R.string.permission);
return; return;
} }
...@@ -467,4 +470,5 @@ public class BackDetailActivity extends WorkToolBarActivity { ...@@ -467,4 +470,5 @@ public class BackDetailActivity extends WorkToolBarActivity {
break; break;
} }
} }
} }
...@@ -73,6 +73,10 @@ public class ReturnAddActivity extends WorkToolBarActivity { ...@@ -73,6 +73,10 @@ public class ReturnAddActivity extends WorkToolBarActivity {
LinearLayout llType; LinearLayout llType;
@BindView(R.id.iv_choose_type) @BindView(R.id.iv_choose_type)
ImageView ivChooseType; ImageView ivChooseType;
@BindView(R.id.et_lot)
EditText etLot;
@BindView(R.id.ll_lot)
LinearLayout llLot;
private Map<String, Object> param; private Map<String, Object> param;
private String orderType; private String orderType;
private List<String> typeList = new ArrayList<>(); private List<String> typeList = new ArrayList<>();
...@@ -280,6 +284,7 @@ public class ReturnAddActivity extends WorkToolBarActivity { ...@@ -280,6 +284,7 @@ public class ReturnAddActivity extends WorkToolBarActivity {
private void submit() { private void submit() {
String num = etNum.getText().toString(); String num = etNum.getText().toString();
String lot = etLot.getText().toString();
String price = etPrice.getText().toString(); String price = etPrice.getText().toString();
String remark = etRemark.getText().toString(); String remark = etRemark.getText().toString();
if (TextUtils.isEmpty(num)) { if (TextUtils.isEmpty(num)) {
...@@ -315,6 +320,10 @@ public class ReturnAddActivity extends WorkToolBarActivity { ...@@ -315,6 +320,10 @@ public class ReturnAddActivity extends WorkToolBarActivity {
} }
} }
} }
if (TextUtils.isEmpty(lot)) {
toast("请输入产品批号");
return;
}
if (TextUtils.isEmpty(price) && chooseType == 3) { if (TextUtils.isEmpty(price) && chooseType == 3) {
toast("请输入核销金额"); toast("请输入核销金额");
return; return;
...@@ -322,6 +331,7 @@ public class ReturnAddActivity extends WorkToolBarActivity { ...@@ -322,6 +331,7 @@ public class ReturnAddActivity extends WorkToolBarActivity {
param.put("productAmount", num); param.put("productAmount", num);
param.put("writeOff", price); param.put("writeOff", price);
param.put("applyRemark", remark); param.put("applyRemark", remark);
param.put("lot", lot);
if (chooseType == 1) { if (chooseType == 1) {
if (chooseDep == null) { if (chooseDep == null) {
toast("请选择退货仓库"); toast("请选择退货仓库");
......
...@@ -2,9 +2,7 @@ package com.wd.workoffice.ui.activity.bat.order; ...@@ -2,9 +2,7 @@ package com.wd.workoffice.ui.activity.bat.order;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
...@@ -17,7 +15,6 @@ import com.wd.workoffice.R; ...@@ -17,7 +15,6 @@ import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean; import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity; import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.ReturnApplyBean; import com.wd.workoffice.bean.ReturnApplyBean;
import com.wd.workoffice.bean.event.CheckAddStockEvent;
import com.wd.workoffice.bean.event.CheckReturnEvent; import com.wd.workoffice.bean.event.CheckReturnEvent;
import com.wd.workoffice.bean.workEnum.OrderType; import com.wd.workoffice.bean.workEnum.OrderType;
import com.wd.workoffice.bean.workEnum.PagePermissionType; import com.wd.workoffice.bean.workEnum.PagePermissionType;
...@@ -124,6 +121,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -124,6 +121,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
TextView tvDep5; TextView tvDep5;
@BindView(R.id.ll_process) @BindView(R.id.ll_process)
LinearLayout llProcess; LinearLayout llProcess;
@BindView(R.id.tv_lot)
TextView tvLot;
private ReturnApplyBean.RecordsBean info; private ReturnApplyBean.RecordsBean info;
private String orderType; private String orderType;
...@@ -153,6 +152,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -153,6 +152,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
tvStock.setText(info.getBackStockName()); tvStock.setText(info.getBackStockName());
tvPerson.setText(String.valueOf(info.getCreatedByName())); tvPerson.setText(String.valueOf(info.getCreatedByName()));
tvTime.setText(info.getCreatedTime()); tvTime.setText(info.getCreatedTime());
tvLot.setText(info.getLot());
tvRemark.setText(String.valueOf(info.getApplyRemark())); tvRemark.setText(String.valueOf(info.getApplyRemark()));
tvStatus.setText(WorkUtils.getReturnStatus(Integer.valueOf(info.getStatus()))); tvStatus.setText(WorkUtils.getReturnStatus(Integer.valueOf(info.getStatus())));
changeProcess(info.getStatus()); changeProcess(info.getStatus());
...@@ -184,8 +184,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -184,8 +184,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
} }
rlHistory.setVisibility(View.GONE); rlHistory.setVisibility(View.GONE);
llProcess.setVisibility(View.GONE); llProcess.setVisibility(View.GONE);
} } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
if (status.startsWith("1") && !status.endsWith("4")) { if (status.startsWith("1") && !status.endsWith("4")) {
llBottom.setVisibility(View.VISIBLE); llBottom.setVisibility(View.VISIBLE);
llCheck.setVisibility(View.VISIBLE); llCheck.setVisibility(View.VISIBLE);
...@@ -316,7 +315,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -316,7 +315,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
} }
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
hasPermission = WorkUtils.hasPermission(PagePermissionType.PO_RETURN_EDIT.getPermission()); hasPermission = WorkUtils.hasPermission(PagePermissionType.PO_RETURN_EDIT.getPermission());
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_RETURN_AUDIT.getPermission()); hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_RETURN_AUDIT.getPermission());
} }
...@@ -336,13 +335,13 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -336,13 +335,13 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
TextView tvNum = view.findViewById(R.id.tv_num); TextView tvNum = view.findViewById(R.id.tv_num);
TextView tvCancel = view.findViewById(R.id.tv_cancel); TextView tvCancel = view.findViewById(R.id.tv_cancel);
EditText etRemark = view.findViewById(R.id.et_content); EditText etRemark = view.findViewById(R.id.et_content);
WorkUtils.addNumListener(etRemark,tvNum); WorkUtils.addNumListener(etRemark, tvNum);
builder.setView(view); builder.setView(view);
AlertDialog addCartDialog = builder.create(); AlertDialog addCartDialog = builder.create();
tvOk.setOnClickListener(new View.OnClickListener() { tvOk.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (status!=1 && TextUtils.isEmpty(etRemark.getText().toString()) && status == 2) { if (status != 1 && TextUtils.isEmpty(etRemark.getText().toString()) && status == 2) {
toast("请填写备注"); toast("请填写备注");
return; return;
} }
...@@ -367,7 +366,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -367,7 +366,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
param.put("status", status); param.put("status", status);
param.put("productAmount", info.getProductAmount()); param.put("productAmount", info.getProductAmount());
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
param.put("status", status); param.put("status", status);
param.put("productAmount", info.getProductAmount()); param.put("productAmount", info.getProductAmount());
} }
...@@ -419,7 +418,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -419,7 +418,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
changeView(); changeView();
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
llBottom.setVisibility(View.GONE); llBottom.setVisibility(View.GONE);
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
llBottom.setVisibility(View.GONE); llBottom.setVisibility(View.GONE);
} }
EventBus.getDefault().post(new CheckReturnEvent()); EventBus.getDefault().post(new CheckReturnEvent());
...@@ -437,7 +436,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -437,7 +436,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
checkDialog(1, info.getId()); checkDialog(1, info.getId());
break; break;
case R.id.rl_history: case R.id.rl_history:
startActivity(ReturnApplyHistoryActivity.class,"id",info.getId()+""); startActivity(ReturnApplyHistoryActivity.class, "id", info.getId() + "");
break; break;
case R.id.rl_order: case R.id.rl_order:
if (TextUtils.equals(orderType, OrderType.SALE.getCode())) { if (TextUtils.equals(orderType, OrderType.SALE.getCode())) {
...@@ -450,7 +449,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -450,7 +449,7 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
"id", getIntent().getStringExtra("id"), "id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status")); "status", getIntent().getStringExtra("status"));
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) { } else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
if (!WorkUtils.hasPermission(PagePermissionType.PO_PURCHASE_DETAILS.getPermission())){ if (!WorkUtils.hasPermission(PagePermissionType.PO_PURCHASE_DETAILS.getPermission())) {
toast(R.string.permission); toast(R.string.permission);
return; return;
} }
...@@ -458,8 +457,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -458,8 +457,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
"identity", getIntent().getStringExtra("identity"), "identity", getIntent().getStringExtra("identity"),
"id", getIntent().getStringExtra("id"), "id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status")); "status", getIntent().getStringExtra("status"));
}else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
if (!WorkUtils.hasPermission(PagePermissionType.FO_SUPPLIER_DETAILS.getPermission())){ if (!WorkUtils.hasPermission(PagePermissionType.FO_SUPPLIER_DETAILS.getPermission())) {
toast(R.string.permission); toast(R.string.permission);
return; return;
} }
...@@ -471,4 +470,5 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -471,4 +470,5 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
break; break;
} }
} }
} }
...@@ -196,6 +196,7 @@ public class SendApplyAddCrucibleActivity extends WorkToolBarActivity { ...@@ -196,6 +196,7 @@ public class SendApplyAddCrucibleActivity extends WorkToolBarActivity {
String.valueOf(recordsBean.getProductWeight()), 3), 3); String.valueOf(recordsBean.getProductWeight()), 3), 3);
returnData.put("productId", recordsBean.getProductId()); returnData.put("productId", recordsBean.getProductId());
returnData.put("productAmount", recordsBean.getCount()); returnData.put("productAmount", recordsBean.getCount());
// returnData.put("lot", recordsBean.getLot());
for (AddStockChooseBean.RecordsBean bean : recordsBean.getBackList()) { for (AddStockChooseBean.RecordsBean bean : recordsBean.getBackList()) {
bean.setActionQuantity(Double.valueOf(bean.getChooseNum())); bean.setActionQuantity(Double.valueOf(bean.getChooseNum()));
bean.setOrderId(getIntent().getStringExtra("id")); bean.setOrderId(getIntent().getStringExtra("id"));
......
package com.wd.workoffice.ui.adapter; package com.wd.workoffice.ui.adapter;
import android.text.Editable;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.CheckBox; import android.widget.CheckBox;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.EditText;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder; import com.chad.library.adapter.base.BaseViewHolder;
...@@ -46,10 +50,28 @@ public class SendApplyAddCrucibleAdapter extends BaseQuickAdapter<OrderDetail.Or ...@@ -46,10 +50,28 @@ public class SendApplyAddCrucibleAdapter extends BaseQuickAdapter<OrderDetail.Or
helper.setText(R.id.tv_price, "¥".concat(MathUtils.converData(item.getInnerPrice(), 3))); helper.setText(R.id.tv_price, "¥".concat(MathUtils.converData(item.getInnerPrice(), 3)));
// helper.setText(R.id.tv_all_price, "¥".concat(String.valueOf(item.getInnerPrice()))); // helper.setText(R.id.tv_all_price, "¥".concat(String.valueOf(item.getInnerPrice())));
helper.setText(R.id.tv_unit, item.getProductUnit()); helper.setText(R.id.tv_unit, item.getProductUnit());
helper.setText(R.id.et_lot, item.getLot());
// helper.setText(R.id.tv_from, WorkUtils.getOrderFrom(item.getType())); // helper.setText(R.id.tv_from, WorkUtils.getOrderFrom(item.getType()));
helper.setText(R.id.tv_num, MathUtils.converData(item.getProductCount(), 3)); helper.setText(R.id.tv_num, MathUtils.converData(item.getProductCount(), 3));
helper.setText(R.id.tv_apply_send_num, MathUtils.converData(item.getCanOutStoreProductSum(), 3)); helper.setText(R.id.tv_apply_send_num, MathUtils.converData(item.getCanOutStoreProductSum(), 3));
helper.setText(R.id.tv_send_num, MathUtils.converData(item.getShipSum(), 3)); helper.setText(R.id.tv_send_num, MathUtils.converData(item.getShipSum(), 3));
EditText etLot = helper.getView(R.id.et_lot);
etLot.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable s) {
item.setLot(s.toString());
}
});
CheckBox cbChoose = helper.getView(R.id.cb_check); CheckBox cbChoose = helper.getView(R.id.cb_check);
cbChoose.setChecked(isChoose.get(helper.getAdapterPosition()) == null ? false : isChoose.get(helper.getAdapterPosition())); cbChoose.setChecked(isChoose.get(helper.getAdapterPosition()) == null ? false : isChoose.get(helper.getAdapterPosition()));
cbChoose.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { cbChoose.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
......
...@@ -25,6 +25,7 @@ public class SendApplyDetailCrucibleAdapter extends BaseQuickAdapter<SendApplyDe ...@@ -25,6 +25,7 @@ public class SendApplyDetailCrucibleAdapter extends BaseQuickAdapter<SendApplyDe
helper.setText(R.id.tv_name, item.getSimpleCode()); helper.setText(R.id.tv_name, item.getSimpleCode());
helper.setText(R.id.tv_card, item.getSoleCode()); helper.setText(R.id.tv_card, item.getSoleCode());
helper.setText(R.id.tv_card_name, item.getProductName()); helper.setText(R.id.tv_card_name, item.getProductName());
// helper.setText(R.id.tv_lot, item.getLot());
helper.setText(R.id.tv_all_num, MathUtils.converData(item.getProductAmount(),3)); helper.setText(R.id.tv_all_num, MathUtils.converData(item.getProductAmount(),3));
helper.addOnClickListener(R.id.tv_from); helper.addOnClickListener(R.id.tv_from);
} }
......
...@@ -296,10 +296,29 @@ ...@@ -296,10 +296,29 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:text="销售二公司"
android:textColor="@color/flexible_text_gray" /> android:textColor="@color/flexible_text_gray" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/white"
android:gravity="center"
android:paddingHorizontal="20mm"
android:paddingVertical="15mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="产品批号" />
<TextView
android:id="@+id/tv_lot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textColor="@color/flexible_text_gray" />
</RelativeLayout>
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -319,7 +338,6 @@ ...@@ -319,7 +338,6 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:text="销售二公司"
android:textColor="@color/flexible_text_gray" /> android:textColor="@color/flexible_text_gray" />
</RelativeLayout> </RelativeLayout>
......
...@@ -76,6 +76,37 @@ ...@@ -76,6 +76,37 @@
android:textSize="14sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:id="@+id/ll_lot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="20mm"
android:paddingVertical="9mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="产品批号"
android:textSize="14sp" />
<EditText
android:id="@+id/et_lot"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:gravity="right"
android:hint="填写产品批号"
android:inputType="numberDecimal"
android:padding="3mm"
android:textColor="@color/flexible_text_gray"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/ll_type" android:id="@+id/ll_type"
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -216,6 +216,31 @@ ...@@ -216,6 +216,31 @@
android:textColor="@color/flexible_text_gray" android:textColor="@color/flexible_text_gray"
android:textSize="12sp" /> android:textSize="12sp" />
</RelativeLayout> </RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginTop="10mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="产品批号"
android:textColor="@color/flexible_text_gray"
android:textSize="12sp" />
<EditText
android:id="@+id/et_lot"
android:layout_width="0dp"
android:layout_weight="1"
android:background="@null"
android:gravity="right"
android:paddingVertical="3mm"
android:layout_height="wrap_content"
android:textColor="@color/flexible_text_gray"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
......
...@@ -68,6 +68,28 @@ ...@@ -68,6 +68,28 @@
android:textColor="@color/flexible_text_gray" android:textColor="@color/flexible_text_gray"
android:textSize="12sp" /> android:textSize="12sp" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginTop="10mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="产品批号"
android:textColor="@color/flexible_text_gray"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_lot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textColor="@color/flexible_text_gray"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论