|
|
@@ -304,17 +304,18 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
} else {
|
|
|
mResultLl.setVisibility(View.VISIBLE);
|
|
|
+ mResultTestBtn.setVisibility(View.VISIBLE);
|
|
|
mCollectResultTextView.setText(null);
|
|
|
JSONArray listArray = dataObject.optJSONArray("nolist");
|
|
|
if (mCollectType.equals("byBarcode")) {
|
|
|
String barcodeResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
+ "\n条码:" + JsonUtils.optStringNotNull(messageObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + messageObject.optString("PR_DETAIL")
|
|
|
+ + "\n数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
+ + "\n批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
+ + "\n料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
+ + "\n名称规格:" + messageObject.optString("PR_DETAIL")
|
|
|
+ " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
- + ";仓位:" + JsonUtils.optStringNotNull(messageObject, "BAR_LOCATION");
|
|
|
+ + "\n仓位:" + JsonUtils.optStringNotNull(messageObject, "BAR_LOCATION");
|
|
|
|
|
|
if (listArray != null && listArray.length() > 0) {
|
|
|
for (int i = 0; i < listArray.length(); i++) {
|
|
|
@@ -327,7 +328,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(barcodeResult);
|
|
|
- mResultTestBtn.setVisibility(View.VISIBLE);
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
@@ -351,10 +351,10 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
} else if (mCollectType.equals("byBox")) {
|
|
|
String boxResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
+ "\n箱号:" + JsonUtils.optStringNotNull(messageObject, "BAR_OUTBOXCODE1")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + JsonUtils.optStringNotNull(messageObject, "PR_DETAIL")
|
|
|
+ + "\n数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
+ + "\n批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
+ + "\n料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
+ + "\n名称规格:" + JsonUtils.optStringNotNull(messageObject, "PR_DETAIL")
|
|
|
+ " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC");
|
|
|
|
|
|
|
|
|
@@ -369,7 +369,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(boxResult);
|
|
|
- mResultTestBtn.setVisibility(View.VISIBLE);
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
@@ -537,6 +536,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
if (actionId == EditorInfo.IME_ACTION_SEND
|
|
|
|| actionId == EditorInfo.IME_ACTION_DONE
|
|
|
+ || actionId == EditorInfo.IME_ACTION_NEXT
|
|
|
|| (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
confirmEvent();
|
|
|
return true;
|
|
|
@@ -773,17 +773,18 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
|
|
|
String barcodeResult = "采集成功!\n"
|
|
|
+ "料号:" + mBarcodeDetailBean.getBI_PRODCODE()
|
|
|
- + ";品牌:" + mBarcodeDetailBean.getBI_BRAND()
|
|
|
- + ";名称规格:" + mBarcodeDetailBean.getPR_DETAIL()
|
|
|
+ + "\n品牌:" + mBarcodeDetailBean.getBI_BRAND()
|
|
|
+ + "\n名称规格:" + mBarcodeDetailBean.getPR_DETAIL()
|
|
|
+ " " + mBarcodeDetailBean.getPR_SPEC()
|
|
|
- + ";数量:" + mBarcodeDetailBean.getQTY()
|
|
|
- + ";lotno:" + mBarcodeDetailBean.getBI_LOTNO()
|
|
|
- + ";Datecode:" + mBarcodeDetailBean.getBI_DATECODE()
|
|
|
-// + ";PO:" + FastjsonUtil.getText(barcodeObject, "BI_ORDERCODE")
|
|
|
+ + "\n数量:" + mBarcodeDetailBean.getQTY()
|
|
|
+ + "\nlotno:" + mBarcodeDetailBean.getBI_LOTNO()
|
|
|
+ + "\nDatecode:" + mBarcodeDetailBean.getBI_DATECODE()
|
|
|
+// + "\nPO:" + FastjsonUtil.getText(barcodeObject, "BI_ORDERCODE")
|
|
|
;
|
|
|
|
|
|
mCollectResultTextView.setText(barcodeResult);
|
|
|
mResultLl.setVisibility(View.VISIBLE);
|
|
|
+ mResultTestBtn.setVisibility(View.VISIBLE);
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
@@ -797,12 +798,12 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
com.alibaba.fastjson.JSONObject nextObject = dataObject.getJSONObject("next");
|
|
|
String materialInfo =
|
|
|
"下一采集货品\n物料:" + FastjsonUtil.getText(nextObject, "PD_PRODCODE")
|
|
|
- + "; \n数量:" + FastjsonUtil.getText(nextObject, "NEEDREADY")
|
|
|
- + "; \n来料供应商:" + FastjsonUtil.getText(dataObject, "VENDCODE")
|
|
|
- + "; \n序号:" + FastjsonUtil.getText(nextObject, "PD_PDNO")
|
|
|
- + "; \n品牌:" + FastjsonUtil.getText(nextObject, "PD_BRAND")
|
|
|
- + "; \n仓库:" + FastjsonUtil.getText(nextObject, "PD_WHCODE")
|
|
|
- + "; \n库位:" + FastjsonUtil.getText(nextObject, "BI_LOCATION");
|
|
|
+ + "\n数量:" + FastjsonUtil.getText(nextObject, "NEEDREADY")
|
|
|
+ + "\n来料供应商:" + FastjsonUtil.getText(dataObject, "VENDCODE")
|
|
|
+ + "\n序号:" + FastjsonUtil.getText(nextObject, "PD_PDNO")
|
|
|
+ + "\n品牌:" + FastjsonUtil.getText(nextObject, "PD_BRAND")
|
|
|
+ + "\n仓库:" + FastjsonUtil.getText(nextObject, "PD_WHCODE")
|
|
|
+ + "\n库位:" + FastjsonUtil.getText(nextObject, "BI_LOCATION");
|
|
|
mMaterialInforTextView.setText(materialInfo);
|
|
|
} else {
|
|
|
mMaterialInforTextView.setText("该出库单已经完成备料");
|
|
|
@@ -820,8 +821,8 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
CommonUtil.editTextGetFocus(etBarCode);
|
|
|
CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
mResultLl.setVisibility(View.VISIBLE);
|
|
|
- mCollectResultTextView.setText(failStr);
|
|
|
mResultTestBtn.setVisibility(View.GONE);
|
|
|
+ mCollectResultTextView.setText(failStr);
|
|
|
mBarcodeDetailBean = null;
|
|
|
}
|
|
|
}
|