Browse Source

IQC检验增加新条码功能

songw 3 months ago
parent
commit
7cd0cd7a74

+ 98 - 106
app/src/main/java/uas/erp/jiaweisi_wms/fragment/InventoryCollectFragment.java

@@ -1,7 +1,6 @@
 package uas.erp.jiaweisi_wms.fragment;
 
 import android.app.Activity;
-import android.content.DialogInterface;
 import android.content.Intent;
 import android.graphics.drawable.BitmapDrawable;
 import android.os.Bundle;
@@ -11,7 +10,6 @@ import android.view.View;
 import android.widget.Button;
 import android.widget.CheckBox;
 import android.widget.CompoundButton;
-import android.widget.EditText;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.PopupWindow;
@@ -30,7 +28,6 @@ import com.uuzuche.lib_zxing.activity.CodeUtils;
 import java.util.ArrayList;
 import java.util.List;
 
-import androidx.appcompat.app.AlertDialog;
 import androidx.fragment.app.Fragment;
 import uas.erp.jiaweisi_wms.R;
 import uas.erp.jiaweisi_wms.activity.FunctionActivity;
@@ -69,7 +66,6 @@ public class InventoryCollectFragment extends BaseFragment implements View.OnCli
     private List<InventoryCollctBean> mStockTaskMultipleBeans;
     private CheckBox mCheckBox;
     private String bar_remain;
-    private AlertDialog alertDialog;
     private TextView tv_chaxun;
 
     @Override
@@ -254,110 +250,45 @@ public class InventoryCollectFragment extends BaseFragment implements View.OnCli
                             bar_remain = FastjsonUtil.getText(dataObject, "BAR_REMAIN");
                         }
 
-                        View dialogView = View.inflate(getActivity(), R.layout.dialog_confirm_quantity, null);
-                        final EditText modifyEditText = dialogView.findViewById(R.id.recharge_modify_et);
-
-                        TextView tv_uninventoried_quantity = dialogView.findViewById(R.id.tv_uninventoried_quantity);
-                        TextView tv_material_no = dialogView.findViewById(R.id.tv_material_no);
-                        TextView tv_material_name = dialogView.findViewById(R.id.tv_material_name);
-                        TextView tv_material_specification = dialogView.findViewById(R.id.tv_material_specification);
-
-                        tv_uninventoried_quantity.setText(FastjsonUtil.getText(dataObject, "UNQTY"));
-                        tv_material_no.setText(FastjsonUtil.getText(dataObject, "BAR_PRODCODE"));
-                        tv_material_name.setText(FastjsonUtil.getText(dataObject, "PR_DETAIL"));
-                        tv_material_specification.setText(FastjsonUtil.getText(dataObject, "PR_SPEC"));
-                        modifyEditText.setText(bar_remain);
-                        modifyEditText.setSelection(modifyEditText.getText().length());
-
-                        alertDialog = new AlertDialog.Builder(getActivity())
-                                .setTitle("确认数量")
-                                .setNegativeButton(R.string.cancel, null)
-                                .setPositiveButton(R.string.confirm, new DialogInterface.OnClickListener() {
-                                    @Override
-                                    public void onClick(DialogInterface dialog, int which) {
-//                                        if (StringUtil.isEmpty(modifyEditText.getText().toString().trim())) {
-//                                            CommonUtil.toastNoRepeat(getActivity(), "请输入条码数量");
+                        setEnterNumber(barcode, bar_remain);
+
+//                        View dialogView = View.inflate(getActivity(), R.layout.dialog_confirm_quantity, null);
+//                        final EditText modifyEditText = dialogView.findViewById(R.id.recharge_modify_et);
+//
+//                        TextView tv_uninventoried_quantity = dialogView.findViewById(R.id.tv_uninventoried_quantity);
+//                        TextView tv_material_no = dialogView.findViewById(R.id.tv_material_no);
+//                        TextView tv_material_name = dialogView.findViewById(R.id.tv_material_name);
+//                        TextView tv_material_specification = dialogView.findViewById(R.id.tv_material_specification);
+//
+//                        tv_uninventoried_quantity.setText(FastjsonUtil.getText(dataObject, "UNQTY"));
+//                        tv_material_no.setText(FastjsonUtil.getText(dataObject, "BAR_PRODCODE"));
+//                        tv_material_name.setText(FastjsonUtil.getText(dataObject, "PR_DETAIL"));
+//                        tv_material_specification.setText(FastjsonUtil.getText(dataObject, "PR_SPEC"));
+//                        modifyEditText.setText(bar_remain);
+//                        modifyEditText.setSelection(modifyEditText.getText().length());
+//
+//                        alertDialog = new AlertDialog.Builder(getActivity())
+//                                .setTitle("确认数量")
+//                                .setNegativeButton(R.string.cancel, null)
+//                                .setPositiveButton(R.string.confirm, new DialogInterface.OnClickListener() {
+//                                    @Override
+//                                    public void onClick(DialogInterface dialog, int which) {
+//                                        double quantity = 0;
+//                                        try {
+//                                            quantity = Double.parseDouble(TextUtils.isEmpty(modifyEditText.getText().toString().trim())?"0":modifyEditText.getText().toString().trim());
+//                                        } catch (Exception e) {
+//                                            CommonUtil.toastNoRepeat(getActivity(), "请输入正确的数字");
 //                                            return;
 //                                        }
-                                        double quantity = 0;
-                                        try {
-                                            quantity = Double.parseDouble(TextUtils.isEmpty(modifyEditText.getText().toString().trim())?"0":modifyEditText.getText().toString().trim());
-                                        } catch (Exception e) {
-                                            CommonUtil.toastNoRepeat(getActivity(), "请输入正确的数字");
-                                            return;
-                                        }
-//                                        if (quantity < 0) {
-//                                            CommonUtil.toastNoRepeat(getActivity(), "数量必须大于等于0");
-//                                            return;
-//                                        }
-                                        VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
-                                                .url(GloableParams.ADDRESS_BARSTOCK_GETBARCODEINFO)
-                                                .method(Request.Method.GET)
-                                                .tag(TAG + "getbarcodeinfo")
-                                                .flag(0)
-                                                .addParam("inoutno", pi_inoutno)
-                                                //.addParam("deadline", deadLine)
-                                                .addParam("barcode", barcode)
-                                                .addParam("iscancel", isChecked + "")
-                                                .addParam("bar_remain", modifyEditText.getText().toString().trim())
-                                                .addParam("prodcode", cet_liaohao.getText().toString().trim())
-                                                .addParam("location", cet_chuweibianhao.getText().toString().trim())
-                                                .build(), new HttpCallback() {
-                                            @Override
-                                            public void onSuccess(int flag, Object o) throws Exception {
-                                                alertDialog.dismiss();
-                                                try {
-                                                    mBarcodeEditText.setText("");
-                                                    String result = o.toString();
-                                                    JSONObject resultObject = JSON.parseObject(result);
-                                                    JSONObject dataObject = resultObject.getJSONObject("data");
-                                                    if (dataObject != null) {
-                                                        String type = FastjsonUtil.getText(dataObject, "BI_TYPE");
-                                                        String prompt = "采集成功!";
-                                                        if (!"超期".equals(type)) {
-                                                            mResultTextView.setTextColor(mActivity.getResources().getColor(R.color.black));
-                                                            prompt = "采集成功!";
-                                                        } else {
-                                                            mResultTextView.setTextColor(mActivity.getResources().getColor(R.color.red));
-                                                            prompt = "采集成功!已超期";
-                                                        }
-
-                                                        mResultTextView.setVisibility(View.VISIBLE);
-                                                        mResultTextView.setText(prompt
-                                                                + "\n物料:" + FastjsonUtil.getText(dataObject, "BI_PRODCODE")
-                                                                //                                        + "\n品牌:" + FastjsonUtil.getText(dataObject, "BI_BRAND")
-                                                                //                                        + "\nLOTNO:" + FastjsonUtil.getText(dataObject, "BI_LOTNO")
-                                                                //                                        + "\nDC:" + FastjsonUtil.getText(dataObject, "BI_DATECODE")
-                                                                + "\n型号:" + FastjsonUtil.getText(dataObject, "PR_ORISPECCODE")
-                                                                + "\n条码号:" + FastjsonUtil.getText(dataObject, "BI_BARCODE")
-                                                                + "\n数量:" + FastjsonUtil.getText(dataObject, "BI_INQTY")
-                                                        );
-                                                    }
-                                                } catch (Exception e) {
-                                                    e.printStackTrace();
-                                                }
-                                            }
-
-                                            @Override
-                                            public void onFail(int flag, String failStr) throws Exception {
-                                                alertDialog.dismiss();
-                                                mBarcodeEditText.setText("");
-                                                progressDialog.dismiss();
-                                                CommonUtil.toastNoRepeat(mActivity, failStr);
-                                                mResultTextView.setVisibility(View.VISIBLE);
-                                                mResultTextView.setText(failStr);
-                                            }
-                                        });
-                                    }
-                                })
-                                .setView(dialogView)
-                                .create();
-
-
-                        // 禁用屏幕外点击
-                        alertDialog.setCancelable(false);
-                        alertDialog.setCanceledOnTouchOutside(false);
-                        alertDialog.show();
+//                                        //setEnterNumber(barcode, modifyEditText);
+//                                    }
+//                                })
+//                                .setView(dialogView)
+//                                .create();
+//                        // 禁用屏幕外点击
+//                        alertDialog.setCancelable(false);
+//                        alertDialog.setCanceledOnTouchOutside(false);
+//                        alertDialog.show();
                     } catch (Exception e) {
                         e.printStackTrace();
                     }
@@ -376,6 +307,67 @@ public class InventoryCollectFragment extends BaseFragment implements View.OnCli
         }
     }
 
+    private void setEnterNumber(String barcode, String bar_remain) {
+        progressDialog.show();
+        VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
+                .url(GloableParams.ADDRESS_BARSTOCK_GETBARCODEINFO)
+                .method(Request.Method.GET)
+                .tag(TAG + "getbarcodeinfo")
+                .flag(0)
+                .addParam("inoutno", pi_inoutno)
+                //.addParam("deadline", deadLine)
+                .addParam("barcode", barcode)
+                .addParam("iscancel", isChecked + "")
+                .addParam("bar_remain", bar_remain)
+                .addParam("prodcode", cet_liaohao.getText().toString().trim())
+                .addParam("location", cet_chuweibianhao.getText().toString().trim())
+                .build(), new HttpCallback() {
+            @Override
+            public void onSuccess(int flag, Object o) throws Exception {
+                progressDialog.dismiss();
+                try {
+                    mBarcodeEditText.setText("");
+                    String result = o.toString();
+                    JSONObject resultObject = JSON.parseObject(result);
+                    JSONObject dataObject = resultObject.getJSONObject("data");
+                    if (dataObject != null) {
+                        String type = FastjsonUtil.getText(dataObject, "BI_TYPE");
+                        String prompt = "采集成功!";
+                        if (!"超期".equals(type)) {
+                            mResultTextView.setTextColor(mActivity.getResources().getColor(R.color.black));
+                            prompt = "采集成功!";
+                        } else {
+                            mResultTextView.setTextColor(mActivity.getResources().getColor(R.color.red));
+                            prompt = "采集成功!已超期";
+                        }
+
+                        mResultTextView.setVisibility(View.VISIBLE);
+                        mResultTextView.setText(prompt
+                                + "\n物料:" + FastjsonUtil.getText(dataObject, "BI_PRODCODE")
+                                //                                        + "\n品牌:" + FastjsonUtil.getText(dataObject, "BI_BRAND")
+                                //                                        + "\nLOTNO:" + FastjsonUtil.getText(dataObject, "BI_LOTNO")
+                                //                                        + "\nDC:" + FastjsonUtil.getText(dataObject, "BI_DATECODE")
+                                + "\n型号:" + FastjsonUtil.getText(dataObject, "PR_ORISPECCODE")
+                                + "\n条码号:" + FastjsonUtil.getText(dataObject, "BI_BARCODE")
+                                + "\n数量:" + FastjsonUtil.getText(dataObject, "BI_INQTY")
+                        );
+                    }
+                } catch (Exception e) {
+                    e.printStackTrace();
+                }
+            }
+
+            @Override
+            public void onFail(int flag, String failStr) throws Exception {
+                progressDialog.dismiss();
+                mBarcodeEditText.setText("");
+                CommonUtil.toastNoRepeat(mActivity, failStr);
+                mResultTextView.setVisibility(View.VISIBLE);
+                mResultTextView.setText(failStr);
+            }
+        });
+    }
+
     @Override
     protected void initDatas() {
         Bundle bundle = getArguments();

+ 77 - 37
app/src/main/java/uas/erp/jiaweisi_wms/fragment/StorageTwoIQCInFragment.java

@@ -12,7 +12,6 @@ import android.text.TextUtils;
 import android.util.Log;
 import android.view.KeyEvent;
 import android.view.View;
-import android.view.inputmethod.EditorInfo;
 import android.widget.AdapterView;
 import android.widget.Button;
 import android.widget.ImageView;
@@ -44,6 +43,7 @@ import uas.erp.jiaweisi_wms.adapter.WarehouseCacheAdapter;
 import uas.erp.jiaweisi_wms.bean.CaptionValueBean;
 import uas.erp.jiaweisi_wms.bean.WarehouseCacheBean;
 import uas.erp.jiaweisi_wms.global.GloableParams;
+import uas.erp.jiaweisi_wms.listener.MyEditorActionListener;
 import uas.erp.jiaweisi_wms.tools.SharedPreUtil;
 import uas.erp.jiaweisi_wms.util.CameraUtil;
 import uas.erp.jiaweisi_wms.util.CommonUtil;
@@ -83,7 +83,7 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
     private WarehouseCacheAdapter mWarehouseCacheAdapter;
     private View mPopView;
     private int mVeId = 0;
-    private String text_rb= "合格";
+    private String text_rb = "合格";
 
     private StringRequest mStringRequest;
     private PopupWindow mMenuPopupWindow;
@@ -111,6 +111,9 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
     private RadioButton rb_no;
     private Button btn_shen;
     private String datastring;
+    private ClearableEditText cet_barcode;
+    private ImageView iv_bar_scan;
+
 
     @Override
     public void onDestroyView() {
@@ -165,6 +168,8 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
         rb_yse = root.findViewById(R.id.rb_yse);
         rb_no = root.findViewById(R.id.rb_no);
         btn_shen = root.findViewById(R.id.btn_shen);
+        cet_barcode = root.findViewById(R.id.cet_barcode);
+        iv_bar_scan = root.findViewById(R.id.iv_bar_scan);
 
         mCaptionValueBeans = new ArrayList<>();
         mCaptionValueItemAdapter = new CaptionValueItemAdapter(mActivity, mCaptionValueBeans);
@@ -184,32 +189,35 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
     protected void initEvents() {
         mMenuButton.setOnClickListener(this);
         mScanImageView.setOnClickListener(this);
-//        mBadImageView.setOnClickListener(this);
-//        mBadEditText.setOnClickListener(this);
+        //        mBadImageView.setOnClickListener(this);
+        //        mBadEditText.setOnClickListener(this);
         mGoodImageView.setOnClickListener(this);
         mGoodEditText.setOnClickListener(this);
         mCommitButton.setOnClickListener(this);
 
-        mBarcodeEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
+
+        CommonUtil.setEditorActionListener(mBarcodeEditText, new MyEditorActionListener() {
             @Override
-            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
-                if (actionId == EditorInfo.IME_ACTION_DONE
-                        || actionId == EditorInfo.IME_ACTION_SEND
-                        || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
-                    String barcode = mBarcodeEditText.getText().toString().trim();
-                    getDataByBarcode(barcode);
-                    return true;
-                }
-                return false;
+            public void MyEditorAction(String text, int actionId, KeyEvent event) {
+                getDataByBarcode(text);
             }
         });
+
+        CommonUtil.setEditorActionListener(cet_barcode, new MyEditorActionListener() {
+            @Override
+            public void MyEditorAction(String text, int actionId, KeyEvent event) {
+                String code = mBarcodeEditText.getText().toString().trim();
+                getDataByBar(code,text);
+            }
+        });
+
         rg_yesorno.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
             @Override
             public void onCheckedChanged(RadioGroup group, int checkedId) {
                 if (checkedId == R.id.rb_yse) {
-                    text_rb="合格";
+                    text_rb = "合格";
                 } else if (checkedId == R.id.rb_no) {
-                    text_rb="不合格";
+                    text_rb = "不合格";
                 }
             }
         });
@@ -230,21 +238,51 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                                 dialog.dismiss();
                             }
                         }).create().show();
-
             }
         });
     }
+
+    private void getDataByBar(String code,String code1) {
+        progressDialog.show();
+        VolleyRequest.getInstance().stringRequest(null,
+                new HttpParams.Builder()
+                        .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_AUTIQC)
+                        .method(Request.Method.GET)
+                        .tag(GloableParams.ADDRESS_DOCUMENTLIBRARY_AUTIQC)
+                        .flag(0)
+                        .addParam("bar_code",code)
+                        .addParam("bar_code1", code1)
+                        .build(), new HttpCallback() {
+                    @Override
+                    public void onSuccess(int flag, Object o) throws Exception {
+                        progressDialog.dismiss();
+                        String result = o.toString();
+                        JSONObject resultObject = JSON.parseObject(result);
+                        if (resultObject != null) {
+                            CommonUtil.toastNoRepeat(mActivity, "绑定成功");
+                        }
+                    }
+
+                    @Override
+                    public void onFail(int flag, String failStr) throws Exception {
+                        progressDialog.dismiss();
+                        CommonUtil.toastNoRepeat(mActivity, failStr);
+                    }
+                });
+    }
+
     private static final int FLAG_UPDATEANDINQTY = 0x05;
-    public void Yessehn(){
+
+    public void Yessehn() {
         if (mVeId == 0) {
             CommonUtil.toastNoRepeat(mActivity, "单据id获取失败,请重新获取条码信息");
             return;
         }
 
-//        if (TextUtils.isEmpty(mGoodWarehouse) && mOkQty > 0) {
-//            CommonUtil.toastNoRepeat(mActivity, "该检验单存在合格数,良品仓必填\n");
-//            return;
-//        }
+        //        if (TextUtils.isEmpty(mGoodWarehouse) && mOkQty > 0) {
+        //            CommonUtil.toastNoRepeat(mActivity, "该检验单存在合格数,良品仓必填\n");
+        //            return;
+        //        }
         progressDialog.show();
         VolleyRequest.getInstance().stringRequest(mStringRequest,
                 new HttpParams.Builder()
@@ -252,7 +290,7 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                         .method(Request.Method.POST)
                         .tag(TAG + "updateandinqty")
                         .flag(FLAG_UPDATEANDINQTY)
-                        .addParam("ve_id", mVeId+"")
+                        .addParam("ve_id", mVeId + "")
                         .addParam("ve_result", text_rb)
                         .addParam("bar_code", text_rb)
                         .build(), new HttpCallback() {
@@ -263,8 +301,8 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                         JSONObject resultObject = JSON.parseObject(result);
                         datastring = FastjsonUtil.getText(resultObject, "data");
                         CommonUtil.toastNoRepeat(mActivity, datastring);
-//                        mDataLinearLayout.setVisibility(View.GONE);
-//                        mErrorScrollView.setVisibility(View.VISIBLE);
+                        //                        mDataLinearLayout.setVisibility(View.GONE);
+                        //                        mErrorScrollView.setVisibility(View.VISIBLE);
                         if (!CommonUtil.isNetWorkConnected(mActivity)) {
                             CommonUtil.toastNoRepeat(mActivity, mActivity.getString(R.string.net_not_connect));
                         } else {
@@ -285,7 +323,8 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                     }
                 });
     }
-    public void YessehnSTORAGE(){
+
+    public void YessehnSTORAGE() {
         progressDialog.show();
         VolleyRequest.getInstance().stringRequest(mStringRequest,
                 new HttpParams.Builder()
@@ -304,9 +343,9 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                             String result = o.toString();
                             JSONObject resultObject = JSON.parseObject(result);
                             JSONObject dataObject = resultObject.getJSONObject("data");
-                            Log.e("dataObject===",dataObject.toString());
+                            Log.e("dataObject===", dataObject.toString());
                             if (dataObject != null) {
-                                CommonUtil.toastNoRepeat(mActivity, "入库单"+FastjsonUtil.getText(dataObject, "okNO")+"生成成功");
+                                CommonUtil.toastNoRepeat(mActivity, "入库单" + FastjsonUtil.getText(dataObject, "okNO") + "生成成功");
 
                             }
                         } catch (Exception e) {
@@ -321,10 +360,11 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                     }
                 });
     }
+
     @Override
     protected void initDatas() {
         //        mBadWarehouse = SharedPreUtil.getString(mActivity
-//                , Constants.FLAG.CACHE_DEFAULT_REJECTS_WAREHOUSE + CommonUtil.getUserName(mActivity), null);
+        //                , Constants.FLAG.CACHE_DEFAULT_REJECTS_WAREHOUSE + CommonUtil.getUserName(mActivity), null);
 
         mSpanUtils = new SpanUtils();
         SpannableStringBuilder badWareHouse = mSpanUtils.append("IQC").setForegroundColor(Color.BLACK)
@@ -501,10 +541,10 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                     if (!CommonUtil.isRepeatClick()) {
                         String good = mGoodEditText.getText().toString().trim();
                         String bad = mBadEditText.getText().toString().trim();
-//                        if (TextUtils.isEmpty(mGoodWarehouse) && mOkQty > 0) {
-//                            CommonUtil.toastNoRepeat(mActivity, "该检验单存在合格数,良品仓必填\n");
-//                            return;
-//                        }
+                        //                        if (TextUtils.isEmpty(mGoodWarehouse) && mOkQty > 0) {
+                        //                            CommonUtil.toastNoRepeat(mActivity, "该检验单存在合格数,良品仓必填\n");
+                        //                            return;
+                        //                        }
                         hideAllViews();
                         progressDialog.show();
                         VolleyRequest.getInstance().stringRequest(mStringRequest,
@@ -570,13 +610,13 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                         tv_testMethod.setText(testMethod);
                         tv_vadQty.setText(vadQty);
                         tv_checkQty.setText(checkQty);
-                        tv_mOkQty.setText(mOkQty+"");
+                        tv_mOkQty.setText(mOkQty + "");
                         tv_ngQty.setText(ngQty);
                         tv_status.setText(status);
                     }
                     mErrorScrollView.setVisibility(View.GONE);
                     mDataLinearLayout.setVisibility(View.VISIBLE);
-//                    analysisGetBarcode(result);
+                    //                    analysisGetBarcode(result);
                 } catch (Exception e) {
                     mDataLinearLayout.setVisibility(View.GONE);
                     mErrorTextView.setText("条码数据获取异常,请重新获取");
@@ -589,7 +629,7 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
                     String result = o.toString();
                     JSONObject resultObject = JSON.parseObject(result);
                     JSONObject dataObject = resultObject.getJSONObject("data");
-                    Log.e("dataObject===",dataObject.toString());
+                    Log.e("dataObject===", dataObject.toString());
                     if (dataObject != null) {
                         final JSONObject okNoObject = dataObject.getJSONObject("okNO");
                         if (okNoObject == null) {
@@ -762,7 +802,7 @@ public class StorageTwoIQCInFragment extends BaseFragment implements View.OnClic
         mErrorTextView.setText("");
         mErrorScrollView.setVisibility(View.GONE);
         mCaptionValueBeans.clear();
-//        mCaptionValueItemAdapter.notifyDataSetChanged();
+        //        mCaptionValueItemAdapter.notifyDataSetChanged();
     }
 
     @Override

+ 28 - 0
app/src/main/res/layout/fragment_two_storage_iqc_in.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="vertical"
@@ -31,6 +32,32 @@
             android:src="@drawable/ic_edittext_scan" />
     </LinearLayout>
 
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@drawable/bg_line_edittext">
+
+        <uas.erp.jiaweisi_wms.view.ClearableEditText
+            android:id="@+id/cet_barcode"
+            style="@style/EditTextStyle"
+            android:layout_weight="1"
+            android:background="@null"
+            android:focusable="true"
+            android:focusableInTouchMode="true"
+            android:hint="请输入条码号"
+            android:imeOptions="actionSend"
+            android:textColor="@color/black" />
+
+        <ImageView
+            android:id="@+id/iv_bar_scan"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:layout_marginRight="10dp"
+            android:clickable="false"
+            android:src="@drawable/ic_edittext_scan" />
+    </LinearLayout>
+
     <ScrollView
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
@@ -301,6 +328,7 @@
                     android:layout_height="wrap_content"
                     android:layout_marginTop="5dp"
                     android:orientation="horizontal"
+                    tools:visibility="visible"
                     android:visibility="gone">
 
                     <TextView

+ 2 - 2
build.gradle

@@ -54,8 +54,8 @@ ext {
             targetSdkVersion : 31,
             compileSdkVersion: 31,
             buildToolsVersion: "35.0.0",
-            versionCode      : 13,
-            versionName      : "1.1.2"
+            versionCode      : 15,
+            versionName      : "1.1.4"
     ]
 
     depsVersion = [