Commit 7815d8c6 by 吴春元

添加结束盘点

parent f310fae4
...@@ -67,6 +67,7 @@ public class WmsInventoryTask implements Serializable { ...@@ -67,6 +67,7 @@ public class WmsInventoryTask implements Serializable {
private String updateTime; private String updateTime;
@Property(nameInDb = "remark") @Property(nameInDb = "remark")
private String remark; private String remark;
@Generated(hash = 1984916082) @Generated(hash = 1984916082)
public WmsInventoryTask(Long taskId, Integer planId, String taskNo, public WmsInventoryTask(Long taskId, Integer planId, String taskNo,
String taskName, Integer warehouseId, String warehouseName, String taskName, Integer warehouseId, String warehouseName,
...@@ -98,138 +99,183 @@ public class WmsInventoryTask implements Serializable { ...@@ -98,138 +99,183 @@ public class WmsInventoryTask implements Serializable {
this.updateTime = updateTime; this.updateTime = updateTime;
this.remark = remark; this.remark = remark;
} }
@Generated(hash = 950900997) @Generated(hash = 950900997)
public WmsInventoryTask() { public WmsInventoryTask() {
} }
public Long getTaskId() { public Long getTaskId() {
return this.taskId; return this.taskId;
} }
public void setTaskId(Long taskId) { public void setTaskId(Long taskId) {
this.taskId = taskId; this.taskId = taskId;
} }
public Integer getPlanId() { public Integer getPlanId() {
return this.planId; return this.planId;
} }
public void setPlanId(Integer planId) { public void setPlanId(Integer planId) {
this.planId = planId; this.planId = planId;
} }
public String getTaskNo() { public String getTaskNo() {
return this.taskNo; return this.taskNo;
} }
public void setTaskNo(String taskNo) { public void setTaskNo(String taskNo) {
this.taskNo = taskNo; this.taskNo = taskNo;
} }
public String getTaskName() { public String getTaskName() {
return this.taskName; return this.taskName;
} }
public void setTaskName(String taskName) { public void setTaskName(String taskName) {
this.taskName = taskName; this.taskName = taskName;
} }
public Integer getWarehouseId() { public Integer getWarehouseId() {
return this.warehouseId; return this.warehouseId;
} }
public void setWarehouseId(Integer warehouseId) { public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId; this.warehouseId = warehouseId;
} }
public String getWarehouseName() { public String getWarehouseName() {
return this.warehouseName; return this.warehouseName;
} }
public void setWarehouseName(String warehouseName) { public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName; this.warehouseName = warehouseName;
} }
public String getAreaIds() { public String getAreaIds() {
return this.areaIds; return this.areaIds;
} }
public void setAreaIds(String areaIds) { public void setAreaIds(String areaIds) {
this.areaIds = areaIds; this.areaIds = areaIds;
} }
public String getAreaName() { public String getAreaName() {
return this.areaName; return this.areaName;
} }
public void setAreaName(String areaName) { public void setAreaName(String areaName) {
this.areaName = areaName; this.areaName = areaName;
} }
public String getMaterialIds() { public String getMaterialIds() {
return this.materialIds; return this.materialIds;
} }
public void setMaterialIds(String materialIds) { public void setMaterialIds(String materialIds) {
this.materialIds = materialIds; this.materialIds = materialIds;
} }
public String getLocationRange() { public String getLocationRange() {
return this.locationRange; return this.locationRange;
} }
public void setLocationRange(String locationRange) { public void setLocationRange(String locationRange) {
this.locationRange = locationRange; this.locationRange = locationRange;
} }
public Integer getAssigneeId() { public Integer getAssigneeId() {
return this.assigneeId; return this.assigneeId;
} }
public void setAssigneeId(Integer assigneeId) { public void setAssigneeId(Integer assigneeId) {
this.assigneeId = assigneeId; this.assigneeId = assigneeId;
} }
public String getAssistantIds() { public String getAssistantIds() {
return this.assistantIds; return this.assistantIds;
} }
public void setAssistantIds(String assistantIds) { public void setAssistantIds(String assistantIds) {
this.assistantIds = assistantIds; this.assistantIds = assistantIds;
} }
public String getTaskStatus() { public String getTaskStatus() {
return this.taskStatus; return this.taskStatus;
} }
public void setTaskStatus(String taskStatus) { public void setTaskStatus(String taskStatus) {
this.taskStatus = taskStatus; this.taskStatus = taskStatus;
} }
public String getStartTime() { public String getStartTime() {
return this.startTime; return this.startTime;
} }
public void setStartTime(String startTime) { public void setStartTime(String startTime) {
this.startTime = startTime; this.startTime = startTime;
} }
public String getEndTime() { public String getEndTime() {
return this.endTime; return this.endTime;
} }
public void setEndTime(String endTime) { public void setEndTime(String endTime) {
this.endTime = endTime; this.endTime = endTime;
} }
public Integer getTotalItems() { public Integer getTotalItems() {
return this.totalItems; return this.totalItems;
} }
public void setTotalItems(Integer totalItems) { public void setTotalItems(Integer totalItems) {
this.totalItems = totalItems; this.totalItems = totalItems;
} }
public Integer getCountedItems() { public Integer getCountedItems() {
return this.countedItems; return this.countedItems;
} }
public void setCountedItems(Integer countedItems) { public void setCountedItems(Integer countedItems) {
this.countedItems = countedItems; this.countedItems = countedItems;
} }
public String getInventoryDevice() { public String getInventoryDevice() {
return this.inventoryDevice; return this.inventoryDevice;
} }
public void setInventoryDevice(String inventoryDevice) { public void setInventoryDevice(String inventoryDevice) {
this.inventoryDevice = inventoryDevice; this.inventoryDevice = inventoryDevice;
} }
public String getDelFlag() { public String getDelFlag() {
return this.delFlag; return this.delFlag;
} }
public void setDelFlag(String delFlag) { public void setDelFlag(String delFlag) {
this.delFlag = delFlag; this.delFlag = delFlag;
} }
public String getCreateTime() { public String getCreateTime() {
return this.createTime; return this.createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
public String getUpdateTime() { public String getUpdateTime() {
return this.updateTime; return this.updateTime;
} }
public void setUpdateTime(String updateTime) { public void setUpdateTime(String updateTime) {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public String getRemark() { public String getRemark() {
return this.remark; return this.remark;
} }
public void setRemark(String remark) { public void setRemark(String remark) {
this.remark = remark; this.remark = remark;
} }
......
...@@ -9,6 +9,7 @@ import android.text.TextWatcher; ...@@ -9,6 +9,7 @@ import android.text.TextWatcher;
import android.view.View; import android.view.View;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import androidx.appcompat.app.AlertDialog;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import com.sxyz.rfid.R; import com.sxyz.rfid.R;
...@@ -16,14 +17,17 @@ import com.sxyz.rfid.base.BaseActivity; ...@@ -16,14 +17,17 @@ import com.sxyz.rfid.base.BaseActivity;
import com.sxyz.rfid.databinding.ActivityReviewOfflineBinding; import com.sxyz.rfid.databinding.ActivityReviewOfflineBinding;
import com.sxyz.rfid.greendao.GreenDaoManager; import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.greendao.model.WmsInventoryTask; import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineAdapter; import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineAdapter;
import com.sxyz.rfid.utils.StringUtil; import com.sxyz.rfid.utils.StringUtil;
import com.sxyz.rfid.utils.ToastUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import sql.com.yz.db.DaoSession; import sql.com.yz.db.DaoSession;
import sql.com.yz.db.WmsInventoryTaskDao; import sql.com.yz.db.WmsInventoryTaskDao;
import sql.com.yz.db.WmsInventoryTaskDetailDao;
/** /**
* 主要功能: 离线执行盘点列表 * 主要功能: 离线执行盘点列表
...@@ -120,12 +124,48 @@ public class ReviewOfflineActivity extends BaseActivity<ActivityReviewOfflineBin ...@@ -120,12 +124,48 @@ public class ReviewOfflineActivity extends BaseActivity<ActivityReviewOfflineBin
startActivity(ReviewOfflineTaskActivity.class, bundle); startActivity(ReviewOfflineTaskActivity.class, bundle);
} }
// 处理结束盘点点击事件 // 处理结束盘点点击事件 TODO
@Override @Override
public void onStopTaskClick(int position, WmsInventoryTask item) { public void onStopTaskClick(int position, WmsInventoryTask item) {
// new AlertDialog.Builder(mActivity).setTitle("提示").setMessage("确定结束该盘点任务吗?").setPositiveButton("确定", (dialog, which) -> { if (daoSession != null) {
// mPresenter.doStopReviewTask(ReviewFragment.this, item.getTaskId()); //根据item.getTaskId()查询任务明细信息列表===========================================================================
// }).setNegativeButton("取消", null).show(); List<WmsInventoryTaskDetail> mList = daoSession.getWmsInventoryTaskDetailDao().queryBuilder().where(WmsInventoryTaskDetailDao.Properties.TaskId.eq(item.getTaskId())).list();
if (mList != null && mList.size() > 0) {
int count = 0;
for (int i = 0; i < mList.size(); i++) {
//结束盘点:如果明细内有 待盘点0 的出库单,属于盘亏
if (mList.get(i).getCheckStatus().equals("0")) {
//计算有几个待盘点,就是盘亏数量
count++;//盘亏数量+1
}
}
if (count > 0) {
//盘亏数量大于0,提示盘亏数量
new AlertDialog.Builder(mActivity).setTitle("提示").setMessage("该盘点任务存在" + count + "个盘亏,是否继续结束?").setPositiveButton("确定", (dialog, which) -> {
int count1 = 0;
for (int i = 0; i < mList.size(); i++) {
//结束盘点:如果明细内有 待盘点0 的出库单,属于盘亏
if (mList.get(i).getCheckStatus().equals("0")) {
//计算有几个待盘点,就是盘亏数量
count1++;//盘亏数量+1
mList.get(i).setDiffReason("pk");//盘亏
}
//更新数据库
daoSession.getWmsInventoryTaskDetailDao().update(mList.get(i));
}
}).setNegativeButton("取消", null).show();
} else {
new AlertDialog.Builder(mActivity).setTitle("提示").setMessage("确定结束该盘点任务吗?").setPositiveButton("确定", (dialog, which) -> {
//盘亏数量等于0,直接结束,正常结束
WmsInventoryTask wmsInventoryTask = daoSession.getWmsInventoryTaskDao().load(item.getTaskId());
wmsInventoryTask.setTaskStatus("2");//设置为已结束
daoSession.getWmsInventoryTaskDao().update(wmsInventoryTask);
}).setNegativeButton("取消", null).show();
}
} else {
ToastUtil.showShort("暂无盘点明细数据,请先添加盘点明细数据");
}
}
} }
}); });
} }
......
...@@ -33,6 +33,7 @@ import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineDetailAdapter; ...@@ -33,6 +33,7 @@ import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineDetailAdapter;
import com.sxyz.rfid.utils.L; import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.utils.StringUtil; import com.sxyz.rfid.utils.StringUtil;
import com.sxyz.rfid.utils.ToastUtil; import com.sxyz.rfid.utils.ToastUtil;
import com.sxyz.rfid.widgets.AlertDialogUtil;
import com.sxyz.rfid.widgets.OEMSymbologyId; import com.sxyz.rfid.widgets.OEMSymbologyId;
import com.ubx.usdk.RFIDSDKManager; import com.ubx.usdk.RFIDSDKManager;
import com.ubx.usdk.rfid.aidl.IRfidCallback; import com.ubx.usdk.rfid.aidl.IRfidCallback;
...@@ -368,22 +369,29 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie ...@@ -368,22 +369,29 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie
WmsInventoryResultDao wmsInventoryResultDao = daoSession.getWmsInventoryResultDao(); WmsInventoryResultDao wmsInventoryResultDao = daoSession.getWmsInventoryResultDao();
WmsInventoryResult wmsInventoryResult = wmsInventoryResultDao.queryBuilder().where(WmsInventoryResultDao.Properties.TaskId.eq(item.getTaskId())).unique(); WmsInventoryResult wmsInventoryResult = wmsInventoryResultDao.queryBuilder().where(WmsInventoryResultDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryResult != null) { if (wmsInventoryResult != null) {
//更新已盘数量+1 //盘存结果中的盘存数量+1,更新盘存结果
wmsInventoryResult.setCountedItems(wmsInventoryResult.getCountedItems() + 1); wmsInventoryResult.setCountedItems(wmsInventoryResult.getCountedItems() + 1);
//更新盘存结果
wmsInventoryResultDao.update(wmsInventoryResult); wmsInventoryResultDao.update(wmsInventoryResult);
L.i("result:" + new Gson().toJson(wmsInventoryResult)); L.i("result:" + new Gson().toJson(wmsInventoryResult));
//将任务列表WmsInventoryTask的盘点数+1
//将WmsInventoryTask的盘点数+1
WmsInventoryTaskDao wmsInventoryTaskDao = daoSession.getWmsInventoryTaskDao(); WmsInventoryTaskDao wmsInventoryTaskDao = daoSession.getWmsInventoryTaskDao();
WmsInventoryTask wmsInventoryTask = wmsInventoryTaskDao.queryBuilder().where(WmsInventoryTaskDao.Properties.TaskId.eq(item.getTaskId())).unique(); WmsInventoryTask wmsInventoryTask = wmsInventoryTaskDao.queryBuilder().where(WmsInventoryTaskDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryTask != null) { if (wmsInventoryTask != null) {
wmsInventoryTask.setCountedItems(wmsInventoryTask.getCountedItems() + 1); wmsInventoryTask.setCountedItems(wmsInventoryTask.getCountedItems() + 1);
//判断是否完成所有盘存任务 //判断是否完成所有盘存任务,已盘数等于总盘点数,任务状态设置为2 已完成
if (wmsInventoryTask.getTotalItems() == wmsInventoryTask.getCountedItems()) { if (wmsInventoryTask.getTotalItems() == wmsInventoryTask.getCountedItems()) {
wmsInventoryTask.setTaskStatus("2");//任务状态设置为2 已完成 wmsInventoryTask.setTaskStatus("2");//任务状态设置为2 已完成
} }
//更新任务结果
wmsInventoryTaskDao.update(wmsInventoryTask); wmsInventoryTaskDao.update(wmsInventoryTask);
} }
//判断是否全部盘点完成 :已盘数等于总盘点数,任务状态为2 已完成
if (wmsInventoryResult.getTotalItems() == wmsInventoryResult.getCountedItems() || wmsInventoryTask.getTaskStatus().equals("2")) {
new AlertDialogUtil(this).builder().setTitle("提示").setMsg("盘点已全部完成").setNegativeButton("我知道了", v -> {
closeMenu();
}).show();
}
} }
//刷新页面数据 //刷新页面数据
initData(); initData();
...@@ -400,40 +408,40 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie ...@@ -400,40 +408,40 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie
} }
if (wmsInventory != null) { if (wmsInventory != null) {
L.i("rfidTag查询获取库存数据:" + new Gson().toJson(wmsInventory)); L.i("rfidTag查询获取库存数据:" + new Gson().toJson(wmsInventory));
//盘盈:在明细表中增加一条数据 //盘盈:在明细表中增加一条盘盈数据
WmsInventoryTaskDetail wmsInventoryTaskDetail = new WmsInventoryTaskDetail(); WmsInventoryTaskDetail wmsInventoryTaskDetail = new WmsInventoryTaskDetail();
wmsInventoryTaskDetail.setInventoryId(wmsInventory.getInventoryId().intValue()); wmsInventoryTaskDetail.setInventoryId(wmsInventory.getInventoryId().intValue());//盘盈库存id
wmsInventoryTaskDetail.setTaskId(item.getTaskId().intValue()); wmsInventoryTaskDetail.setTaskId(item.getTaskId().intValue());//盘盈任务id
wmsInventoryTaskDetail.setMaterialId(wmsInventory.getMaterialId()); wmsInventoryTaskDetail.setMaterialId(wmsInventory.getMaterialId());//盘盈物料id
wmsInventoryTaskDetail.setWarehouseId(wmsInventory.getWarehouseId()); wmsInventoryTaskDetail.setWarehouseId(wmsInventory.getWarehouseId());//盘盈仓库id
//根据wmsInventory.getWarehouseId()查询仓库表WmsWarehouse数据 //根据wmsInventory.getWarehouseId()查询仓库表WmsWarehouse数据
WmsWarehouseDao wmsWarehouseDao = daoSession.getWmsWarehouseDao(); WmsWarehouseDao wmsWarehouseDao = daoSession.getWmsWarehouseDao();
WmsWarehouse wmsWarehouse = wmsWarehouseDao.queryBuilder().where(WmsWarehouseDao.Properties.WarehouseId.eq(wmsInventory.getWarehouseId())).unique(); WmsWarehouse wmsWarehouse = wmsWarehouseDao.queryBuilder().where(WmsWarehouseDao.Properties.WarehouseId.eq(wmsInventory.getWarehouseId())).unique();
if (wmsWarehouse != null) { if (wmsWarehouse != null) {
L.i("根据仓库id查询仓库数据:" + new Gson().toJson(wmsWarehouse)); L.i("根据仓库id查询仓库数据:" + new Gson().toJson(wmsWarehouse));
wmsInventoryTaskDetail.setWarehouseName(wmsWarehouse.getWarehouseName()); wmsInventoryTaskDetail.setWarehouseName(wmsWarehouse.getWarehouseName());//盘盈仓库名称
} }
wmsInventoryTaskDetail.setAreaId(wmsInventory.getAreaId()); wmsInventoryTaskDetail.setAreaId(wmsInventory.getAreaId());//盘盈库区id
//根据wmsInventory.getAreaId()查询库区表WmsArea数据 //根据wmsInventory.getAreaId()查询库区表WmsArea数据
WmsAreaDao wmsAreaDao = daoSession.getWmsAreaDao(); WmsAreaDao wmsAreaDao = daoSession.getWmsAreaDao();
WmsArea wmsArea = wmsAreaDao.queryBuilder().where(WmsAreaDao.Properties.AreaId.eq(wmsInventory.getAreaId())).unique(); WmsArea wmsArea = wmsAreaDao.queryBuilder().where(WmsAreaDao.Properties.AreaId.eq(wmsInventory.getAreaId())).unique();
if (wmsArea != null) { if (wmsArea != null) {
L.i("根据库区id查询库区数据:" + new Gson().toJson(wmsArea)); L.i("根据库区id查询库区数据:" + new Gson().toJson(wmsArea));
wmsInventoryTaskDetail.setAreaName(wmsArea.getAreaName()); wmsInventoryTaskDetail.setAreaName(wmsArea.getAreaName());//盘盈库区名称
} }
wmsInventoryTaskDetail.setLocationId(wmsInventory.getLocationId()); wmsInventoryTaskDetail.setLocationId(wmsInventory.getLocationId());//盘盈库位id
WmsLocationDao wmsLocationDao = daoSession.getWmsLocationDao(); WmsLocationDao wmsLocationDao = daoSession.getWmsLocationDao();
WmsLocation wmsLocation = wmsLocationDao.queryBuilder().where(WmsLocationDao.Properties.LocationId.eq(wmsInventory.getLocationId())).unique(); WmsLocation wmsLocation = wmsLocationDao.queryBuilder().where(WmsLocationDao.Properties.LocationId.eq(wmsInventory.getLocationId())).unique();
if (wmsLocation != null) { if (wmsLocation != null) {
L.i("根据库位id查询库位数据:" + new Gson().toJson(wmsLocation)); L.i("根据库位id查询库位数据:" + new Gson().toJson(wmsLocation));
wmsInventoryTaskDetail.setLocationName(wmsLocation.getLocationName()); wmsInventoryTaskDetail.setLocationName(wmsLocation.getLocationName());//盘盈库位名称
} }
wmsInventoryTaskDetail.setBatchNo(wmsInventory.getBatchNo()); wmsInventoryTaskDetail.setBatchNo(wmsInventory.getBatchNo());//盘盈批次号
// wmsInventoryTaskDetail.setSystemQty(wmsInventory.getSystemQty());//系统数量 // wmsInventoryTaskDetail.setSystemQty(wmsInventory.getSystemQty());//系统数量
// wmsInventoryTaskDetail.setActualQty(wmsInventory.getActualQty());//盘盈数量 // wmsInventoryTaskDetail.setActualQty(wmsInventory.getActualQty());//盘盈数量
// wmsInventoryTaskDetail.setDiffQty(wmsInventory.getDiffQty());//盘盈差异数量 // wmsInventoryTaskDetail.setDiffQty(wmsInventory.getDiffQty());//盘盈差异数量
// wmsInventoryTaskDetail.setCheckerId(item.getCheckerId());//盘盈检查人id wmsInventoryTaskDetail.setCheckerId(null);//盘盈检查人id
// wmsInventoryTaskDetail.setCheckerName(item.getCheckerName());//盘盈检查人姓名 wmsInventoryTaskDetail.setCheckerName("扫码枪离线盘点");//盘盈检查人姓名
wmsInventoryTaskDetail.setRfidTag(rfidOrScanTag);//盘盈算已盘点 wmsInventoryTaskDetail.setRfidTag(rfidOrScanTag);//盘盈算已盘点
wmsInventoryTaskDetail.setCheckStatus("1");//盘点状态设置为已盘1 wmsInventoryTaskDetail.setCheckStatus("1");//盘点状态设置为已盘1
wmsInventoryTaskDetail.setDiffReason("py");//盘存差异原因 wcy=无差异;py=盘盈;pk=盘亏 wmsInventoryTaskDetail.setDiffReason("py");//盘存差异原因 wcy=无差异;py=盘盈;pk=盘亏
...@@ -468,6 +476,12 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie ...@@ -468,6 +476,12 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie
} }
wmsInventoryTaskDao.update(wmsInventoryTask); wmsInventoryTaskDao.update(wmsInventoryTask);
} }
//判断是否全部盘点完成 :已盘数等于总盘点数,任务状态为2 已完成
if (wmsInventoryResult.getTotalItems() == wmsInventoryResult.getCountedItems() || wmsInventoryTask.getTaskStatus().equals("2")) {
new AlertDialogUtil(this).builder().setTitle("提示").setMsg("盘点已全部完成").setNegativeButton("我知道了", v -> {
closeMenu();
}).show();
}
} }
//刷新页面数据 //刷新页面数据
initData(); initData();
...@@ -528,38 +542,6 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie ...@@ -528,38 +542,6 @@ public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineRevie
}; };
// /** // /**
// * 盘点结果
// *
// * @param model
// */
// @Override
// public void reviewResultSuccess(ReviewResultModel model) {
// if (model == null) {
// return;
// }
// if (model.getRows().isEmpty()) {
// return;
// }
// ReviewResultModel.RowsBean item = model.getRows().get(0);
// if (item == null) {
// return;
// }
// //总盘点数
// mBinding.tvTotalItems.setText(item.getTotalItems() + "");
// //已盘数
// mBinding.tvCountedItems.setText(item.getCountedItems() + "");
// //盘盈数
// mBinding.tvSurplusItems.setText(item.getSurplusItems() + "");
// //盘亏数
// mBinding.tvDeficitItems.setText(item.getDeficitItems() + "");
// //盘点进度 已盘数/总盘点数*100%
// int progress = (int) (item.getCountedItems() * 100.0 / item.getTotalItems());
// mBinding.tvProgress.setText(progress + "%");
// //进度条
// mBinding.progressBar.setProgress(progress);
// }
//
// /**
// * 执行盘点成功 // * 执行盘点成功
// * 扫描任务 // * 扫描任务
// */ // */
......
...@@ -55,7 +55,7 @@ public class ReviewOfflineDetailAdapter extends BaseQuickAdapter<WmsInventoryTas ...@@ -55,7 +55,7 @@ public class ReviewOfflineDetailAdapter extends BaseQuickAdapter<WmsInventoryTas
//差异率 //差异率
baseViewHolder.setText(R.id.tv_difference_rate, !StringUtils.isEmpty(dataBean.getDiffQty() + "") ? dataBean.getDiffQty() + "" : "-"); baseViewHolder.setText(R.id.tv_difference_rate, !StringUtils.isEmpty(dataBean.getDiffQty() + "") ? dataBean.getDiffQty() + "" : "-");
//备注 //备注
// baseViewHolder.setText(R.id.tv_remark, !StringUtils.isEmpty(dataBean.getRemark()) ? dataBean.getRemark() : "-"); baseViewHolder.setText(R.id.tv_remark, !StringUtils.isEmpty(dataBean.getRemark()) ? dataBean.getRemark() : "-");
//拣货状态 //拣货状态
TextView checkStatus = baseViewHolder.getView(R.id.tv_check_status); TextView checkStatus = baseViewHolder.getView(R.id.tv_check_status);
switch (dataBean.getCheckStatus()) { switch (dataBean.getCheckStatus()) {
...@@ -68,7 +68,6 @@ public class ReviewOfflineDetailAdapter extends BaseQuickAdapter<WmsInventoryTas ...@@ -68,7 +68,6 @@ public class ReviewOfflineDetailAdapter extends BaseQuickAdapter<WmsInventoryTas
checkStatus.setText("已盘点"); checkStatus.setText("已盘点");
checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_green_bg)); checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_green_bg));
checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.green)); checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.green));
break; break;
case "2": case "2":
checkStatus.setText("差异待确认"); checkStatus.setText("差异待确认");
......
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