Przeglądaj źródła

单箱入库优化

guilin 6 miesięcy temu
rodzic
commit
275da3479d

+ 4 - 1
app/src/main/java/com/fxy/common/AsyncPictureSelector.java

@@ -192,7 +192,10 @@ public class AsyncPictureSelector {
 
 
 
 
     public List<String> getOssPhotoList (){
     public List<String> getOssPhotoList (){
-        return  ossPhotoList;
+        if (ossPhotoList == null){
+            return new ArrayList<>();
+        }
+        return ossPhotoList;
     }
     }
 
 
 
 

+ 6 - 1
app/src/main/java/com/fxy/common/CommonDialog.java

@@ -262,6 +262,11 @@ public class CommonDialog extends Dialog implements View.OnClickListener{
 
 
     public void show(){
     public void show(){
         // 在 Dialog 显示后延迟显示软键盘
         // 在 Dialog 显示后延迟显示软键盘
+        authSoftKeyboard();
+        super.show();
+    }
+
+    public void authSoftKeyboard(){
         handler.postDelayed(new Runnable() {
         handler.postDelayed(new Runnable() {
             @Override
             @Override
             public void run() {
             public void run() {
@@ -271,7 +276,7 @@ public class CommonDialog extends Dialog implements View.OnClickListener{
                 imm.showSoftInput(contentTxt, InputMethodManager.SHOW_IMPLICIT);
                 imm.showSoftInput(contentTxt, InputMethodManager.SHOW_IMPLICIT);
             }
             }
         }, 300);
         }, 300);
-        super.show();
+
     }
     }
 
 
 
 

+ 11 - 4
app/src/main/java/com/fxy/detection/BoxPutInDetailsMainActivity.java

@@ -116,6 +116,8 @@ public class BoxPutInDetailsMainActivity extends  BaseActivity implements StoJNI
     @BindView(R.id.mt_tracking_number)
     @BindView(R.id.mt_tracking_number)
     MarqueeTextView mtTrackingNumber;
     MarqueeTextView mtTrackingNumber;
 
 
+    @BindView(R.id.ll_box_number)
+    LinearLayout llBoxNumber;
     @BindView(R.id.mt_box_number)
     @BindView(R.id.mt_box_number)
     MarqueeTextView mtBoxNumber;
     MarqueeTextView mtBoxNumber;
 
 
@@ -617,7 +619,8 @@ public class BoxPutInDetailsMainActivity extends  BaseActivity implements StoJNI
         }
         }
 
 
         llCameraPictureModule.setVisibility(View.VISIBLE);
         llCameraPictureModule.setVisibility(View.VISIBLE);
-        
+
+        llBoxNumber.setVisibility(trackingBoxBean.getBoxNumber().isEmpty() ?View.GONE:View.VISIBLE);
         mtBoxNumber.setText(trackingBoxBean.getBoxNumber());
         mtBoxNumber.setText(trackingBoxBean.getBoxNumber());
         mtTrackingNumber.setText(trackingBoxBean.getTrackingNumber());
         mtTrackingNumber.setText(trackingBoxBean.getTrackingNumber());
         tvQty.setText(String.valueOf(trackingBoxBean.getYipaizhaoQty()));
         tvQty.setText(String.valueOf(trackingBoxBean.getYipaizhaoQty()));
@@ -629,6 +632,13 @@ public class BoxPutInDetailsMainActivity extends  BaseActivity implements StoJNI
             llConfirm.setVisibility(View.GONE);
             llConfirm.setVisibility(View.GONE);
         }
         }
 
 
+        if (trackingBoxBean.getBusinessType().equals("1")){
+            llUnitCode.setVisibility(View.GONE);
+            etUnitCode.setText(trackingBoxBean.getTrackingNumber());
+        }else{
+            llUnitCode.setVisibility(View.VISIBLE);
+        }
+
         if (trackingBoxBean.getNoClear().equals("Y")){
         if (trackingBoxBean.getNoClear().equals("Y")){
             llClear.setVisibility(View.VISIBLE);
             llClear.setVisibility(View.VISIBLE);
         }else{
         }else{
@@ -773,9 +783,6 @@ public class BoxPutInDetailsMainActivity extends  BaseActivity implements StoJNI
      */
      */
     private boolean validate(){
     private boolean validate(){
 
 
-
-        
-
         if (etUnitCode.getText().toString().isEmpty()){
         if (etUnitCode.getText().toString().isEmpty()){
             showWarningToast(etUnitCode.getHint().toString());
             showWarningToast(etUnitCode.getHint().toString());
             return  false;
             return  false;

+ 259 - 15
app/src/main/java/com/fxy/detection/BoxPutInMainActivity.java

@@ -34,15 +34,20 @@ import com.fxy.baselibrary.util.JsonUtil;
 import com.fxy.baselibrary.views.MarqueeTextView;
 import com.fxy.baselibrary.views.MarqueeTextView;
 import com.fxy.bean.ActionBean;
 import com.fxy.bean.ActionBean;
 import com.fxy.bean.ScanBean;
 import com.fxy.bean.ScanBean;
+import com.fxy.common.AsyncPictureSelector;
+import com.fxy.common.AsyncPictureUpload;
 import com.fxy.common.CommonDialog;
 import com.fxy.common.CommonDialog;
 import com.fxy.constant.BaseConfig;
 import com.fxy.constant.BaseConfig;
 import com.fxy.constant.EventCode;
 import com.fxy.constant.EventCode;
+import com.fxy.detection.bean.TakePictureBean;
 import com.fxy.detection.bean.TrackingBoxBean;
 import com.fxy.detection.bean.TrackingBoxBean;
+import com.fxy.detection.bean.TrayMakeBean;
 import com.fxy.net.MyDialogCallback;
 import com.fxy.net.MyDialogCallback;
 import com.fxy.net.Urls;
 import com.fxy.net.Urls;
 import com.fxy.utils.UploadUtils;
 import com.fxy.utils.UploadUtils;
 import com.google.gson.Gson;
 import com.google.gson.Gson;
 import com.google.zxing.Result;
 import com.google.zxing.Result;
+import com.luck.picture.lib.config.PictureConfig;
 import com.lzy.okgo.OkGo;
 import com.lzy.okgo.OkGo;
 import com.lzy.okgo.model.Response;
 import com.lzy.okgo.model.Response;
 
 
@@ -87,11 +92,17 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
     @BindView(R.id.mt_customer_code)
     @BindView(R.id.mt_customer_code)
     MarqueeTextView mtCustomerCode;
     MarqueeTextView mtCustomerCode;
 
 
+    @BindView(R.id.ll_label_picture)
+    LinearLayout llLabelPicture;
+
+    @BindView(R.id.ll_order_number)
+    LinearLayout llOrderNumber;
 
 
     private HashMap<String, Object> postData  = new HashMap<>();
     private HashMap<String, Object> postData  = new HashMap<>();
 
 
     private TrackingBoxBean trackingBoxBean;
     private TrackingBoxBean trackingBoxBean;
 
 
+    private TrackingBoxBean customerTrackingBoxBean;
     //
     //
     //扫码扫码动作
     //扫码扫码动作
     private ScanBean scanBean;
     private ScanBean scanBean;
@@ -105,6 +116,14 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
     protected String action;
     protected String action;
 
 
 
 
+    private HashMap<String, AsyncPictureSelector> mapPictureSelector = new HashMap<>();
+
+    private List<TakePictureBean> takePictureBeanList = new ArrayList<>();
+    private AsyncPictureUpload asyncPictureUpload = new AsyncPictureUpload(this);
+
+
+    private String currentPictureType= "label_img";
+
     private Unbinder unbinder;
     private Unbinder unbinder;
 
 
 
 
@@ -148,7 +167,21 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
     @Override
     @Override
     public void onActivityResult(int requestCode, int resultCode, Intent data) {
     public void onActivityResult(int requestCode, int resultCode, Intent data) {
         super.onActivityResult(requestCode, resultCode, data);
         super.onActivityResult(requestCode, resultCode, data);
+        if (resultCode == RESULT_OK) {
+            // 图片选择结果回调
+            if (requestCode == PictureConfig.CHOOSE_REQUEST) {
+                if (mapPictureSelector.containsKey(currentPictureType)){
+                    mapPictureSelector.get(currentPictureType).getSelectImg(data);
+                }
+                totalAwaitNum();
+
+                if (mapPictureSelector.get("label_img").getOssPhotoList().size()>0){
+                    //页面跳转
+                    submitLabelImg();
+                }
 
 
+            }
+        }
         if (requestCode == 200 && resultCode == 200)//之前提到的两个标志,在这里显示出了作用
         if (requestCode == 200 && resultCode == 200)//之前提到的两个标志,在这里显示出了作用
         {
         {
             initFinish();
             initFinish();
@@ -191,12 +224,32 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
 
 
         initEdit();
         initEdit();
         iniData();
         iniData();
+        RecyclerView rvLabelShowImg = (RecyclerView)llLabelPicture.findViewById(R.id.rv_show_img);
+        mapPictureSelector.put("label_img",setItemPicture("label_img",rvLabelShowImg,1));
+
         initDialog();
         initDialog();
         totalAwaitNum();
         totalAwaitNum();
 
 
     }
     }
 
 
 
 
+    /**
+     * 设置多个上传文件
+     * @param uploadType String
+     * @param showImg RecyclerView
+     */
+    private AsyncPictureSelector setItemPicture(String uploadType,RecyclerView showImg,int num){
+
+        String notifyUrl = Urls.getServiceAddress(this) + Urls.FXY_DETECTION_PUTIN;
+        AsyncPictureSelector pictureUpload = new AsyncPictureSelector(BoxPutInMainActivity.this,showImg,"detection",uploadType,notifyUrl,false);
+        pictureUpload.setUploadType(uploadType);
+        pictureUpload.setCompress(true,100,100);
+        pictureUpload.setOnlyCamera(true);
+        pictureUpload.setMaxSelectNum(num);
+
+        return  pictureUpload;
+    }
+
 
 
 
 
     private void initDialog(){
     private void initDialog(){
@@ -212,14 +265,15 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
                 if (commonDialog.getTypeCode().equals("need_customer")){
                 if (commonDialog.getTypeCode().equals("need_customer")){
                     customerCode = string;
                     customerCode = string;
                 }
                 }
-                dialog.dismiss();
                 mtCustomerCode.setText(customerCode);
                 mtCustomerCode.setText(customerCode);
+                getCustomer();
 
 
-                if (etOrderNumber.getText().toString().isEmpty()){
-                    etOrderNumber.requestFocus();
-                }else{
-                    getBoxNumber();
-                }
+
+//                if (etOrderNumber.getText().toString().isEmpty()){
+//                    etOrderNumber.requestFocus();
+//                }else{
+//                    getBoxNumber();
+//                }
 
 
             }
             }
         });
         });
@@ -564,11 +618,15 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
                             }
                             }
 
 
                             needCustomer = trackingBoxBean.getNeedCustomer().equals("Y");
                             needCustomer = trackingBoxBean.getNeedCustomer().equals("Y");
-                            if (needCustomer){
-                                commonDialog.setTitle("客户编号","请输入客户编号").setContent("").show();
+                            if (needCustomer && !commonDialog.isShowing()){
+                                commonDialog.setTitle("客户编号","请输入客户编号").setContent(customerCode).show();
+                            }else{
+                                commonDialog.dismiss();
                             }
                             }
                             llExtendInfo.setVisibility(needCustomer ? View.VISIBLE:View.GONE);
                             llExtendInfo.setVisibility(needCustomer ? View.VISIBLE:View.GONE);
 
 
+                            llOrderNumber.setVisibility(trackingBoxBean.getBusinessType().equals("1")?View.GONE:View.VISIBLE);
+
                             if(bean.code == 1){
                             if(bean.code == 1){
                                 showSuccessToast(bean.msg,voiceName);
                                 showSuccessToast(bean.msg,voiceName);
                                 etOrderNumber.setEnabled(true);
                                 etOrderNumber.setEnabled(true);
@@ -588,6 +646,93 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
     }
     }
 
 
 
 
+    //获取跟踪单号
+    private void getCustomer(){
+
+        checkIsUpload();
+        if (etTrackingNumber.getText().toString().isEmpty()){
+            showErrorToast(etTrackingNumber.getHint().toString());
+            return;
+        }
+
+        Map<String,Object> math = new HashMap<>();
+        math.put("tracking_number",etTrackingNumber.getText().toString().trim());
+        math.put("customer_code",customerCode);
+        math.put("is_customer_code",1);
+
+        String mathJson = (new Gson()).toJson(math);
+        customerTrackingBoxBean = null;
+        OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_DETECTION_PUTIN_TRACK).upJson(mathJson)
+                .execute(new MyDialogCallback(this, true, true) {
+                    @Override
+                    public void onSuccess(Response<String> response) {
+                        super.onSuccess(response);
+
+                        try {
+
+                            ActionBean bean = JsonUtil.getObject(response.body(), ActionBean.class);
+                            customerTrackingBoxBean = new TrackingBoxBean();
+                            if (bean.data!=null && !bean.data.isEmpty() && !bean.data.equals("[]")){
+                                customerTrackingBoxBean =  JsonUtil.jsonString2Bean(bean.data,TrackingBoxBean.class);
+                            }
+
+
+
+                            String voiceName = customerTrackingBoxBean.getVoiceName();
+                            final Bundle bundle = new Bundle();
+                            bundle.putString("data",(new Gson()).toJson(trackingBoxBean));
+                            bundle.putString("customer_code",customerCode);
+
+                            if (customerTrackingBoxBean.getNeedConfirm().equals("Y")){
+                                new AlertDialog.Builder(mContext).setTitle(R.string.dl_hint)
+                                        .setMessage(customerTrackingBoxBean.getConfirmMsg())
+                                        .setNegativeButton(R.string.str_cancel, new DialogInterface.OnClickListener() {
+                                            @Override
+                                            public void onClick(DialogInterface dialogInterface, int i) {
+                                                dialogInterface.dismiss();
+                                            }
+                                        }).setPositiveButton(R.string.str_submit, new DialogInterface.OnClickListener() {
+
+                                    @Override
+                                    public void onClick(DialogInterface dialogInterface, int i) {
+
+//                                        etOrderNumber.setEnabled(true);
+//                                        etOrderNumber.requestFocus();
+                                        intent2Page(BoxPutInMainActivity.this, BoxPutInDetailsMainActivity.class, false,bundle);
+                                    }
+                                }).show();
+                                return;
+                            }
+
+                            llOrderNumber.setVisibility(customerTrackingBoxBean.getBusinessType().equals("1")?View.GONE:View.VISIBLE);
+
+
+                            if(bean.code == 1){
+                                commonDialog.dismiss();
+                                showSuccessToast(bean.msg,voiceName);
+                                if (customerTrackingBoxBean.getBusinessType().equals("1")){
+                                    mapPictureSelector.get(currentPictureType).authCamera();
+                                }else{
+                                    etOrderNumber.setEnabled(true);
+                                    etOrderNumber.requestFocus();
+                                }
+
+                            }else{
+                                showWarningToast(bean.msg,voiceName);
+                                commonDialog.authSoftKeyboard();
+                            }
+
+
+                        }catch (Exception e) {
+                            e.printStackTrace();
+                            XLog.e("确认错误",e.getMessage());
+                        }
+
+                    }
+                });
+    }
+
+
     //获取跟踪单号
     //获取跟踪单号
     private void getBoxNumber(){
     private void getBoxNumber(){
 
 
@@ -617,6 +762,7 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
 
 
         String mathJson = (new Gson()).toJson(math);
         String mathJson = (new Gson()).toJson(math);
         trackingBoxBean = null;
         trackingBoxBean = null;
+        customerTrackingBoxBean = null;
         OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_DETECTION_PUTIN_TRACK).upJson(mathJson)
         OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_DETECTION_PUTIN_TRACK).upJson(mathJson)
                 .execute(new MyDialogCallback(this, true, true) {
                 .execute(new MyDialogCallback(this, true, true) {
                     @Override
                     @Override
@@ -631,9 +777,7 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
                             }
                             }
 
 
                             String voiceName = trackingBoxBean.getVoiceName();
                             String voiceName = trackingBoxBean.getVoiceName();
-                            final Bundle bundle = new Bundle();
-                            bundle.putString("data",bean.data);
-                            bundle.putString("customer_code",customerCode);
+
 
 
                             if (trackingBoxBean.getNeedConfirm().equals("Y")){
                             if (trackingBoxBean.getNeedConfirm().equals("Y")){
                                 new AlertDialog.Builder(mContext).setTitle(R.string.dl_hint)
                                 new AlertDialog.Builder(mContext).setTitle(R.string.dl_hint)
@@ -648,16 +792,24 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
                                     @Override
                                     @Override
                                     public void onClick(DialogInterface dialogInterface, int i) {
                                     public void onClick(DialogInterface dialogInterface, int i) {
 
 
-//                                        etOrderNumber.setEnabled(true);
-//                                        etOrderNumber.requestFocus();
-                                        intentPageResult(BoxPutInMainActivity.this, BoxPutInDetailsMainActivity.class, bundle,200);
+                                        if (mapPictureSelector.get(currentPictureType).getOssPhotoList().size()>0){
+                                            submitLabelImg();
+                                        }else{
+                                            mapPictureSelector.get(currentPictureType).authCamera();
+                                        }
+
                                     }
                                     }
                                 }).show();
                                 }).show();
                             }else{
                             }else{
 
 
                                 if(bean.code == 1){
                                 if(bean.code == 1){
                                     showSuccessToast(bean.msg,voiceName);
                                     showSuccessToast(bean.msg,voiceName);
-                                    intentPageResult(BoxPutInMainActivity.this, BoxPutInDetailsMainActivity.class, bundle,200);
+
+                                    if (mapPictureSelector.get(currentPictureType).getOssPhotoList().size()>0){
+                                        submitLabelImg();
+                                    }else{
+                                        mapPictureSelector.get(currentPictureType).authCamera();
+                                    }
                                 }else{
                                 }else{
                                     showWarningToast(bean.msg,voiceName);
                                     showWarningToast(bean.msg,voiceName);
                                 }
                                 }
@@ -673,6 +825,92 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
     }
     }
 
 
 
 
+    //提交面单信息
+    private void submitLabelImg(){
+        checkIsUpload();
+        if (etTrackingNumber.getText().toString().isEmpty()){
+            showErrorToast(etTrackingNumber.getHint().toString());
+            return;
+        }
+
+        if (customerTrackingBoxBean != null){
+            if (!customerTrackingBoxBean.getBusinessType().equals("1") && etOrderNumber.getText().toString().isEmpty()){
+                showErrorToast(etOrderNumber.getHint().toString());
+                return;
+            }
+        }else{
+            if (etOrderNumber.getText().toString().isEmpty()){
+                showErrorToast(etOrderNumber.getHint().toString());
+                return;
+            }
+        }
+
+
+        Gson gson = new Gson();
+        Map<String,Object> math = new HashMap<>();
+        math.put("tracking_number",trackingBoxBean.getTrackingNumber().trim());
+
+
+        math.put("box_number",etOrderNumber.getText().toString().trim());
+
+
+
+        if (needCustomer){
+
+            if (customerCode.isEmpty()){
+                showErrorToast("请输入客户代码");
+                return;
+            }
+            math.put("is_customer_code","1");
+            math.put("customer_code",customerCode);
+        }
+
+        //面单
+        List<String> stringList = mapPictureSelector.get("label_img").getOssPhotoList();
+        if (stringList.size()==0){
+            showWarningToast("面单照片不能为空");
+            return;
+        }
+        math.put("label_img_tag",mapPictureSelector.get("label_img").getUniqueTag());
+        math.put("label_img",gson.toJson(stringList));
+
+
+
+
+        OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_DETECTION_PUTIN).upJson(gson.toJson(math))
+                .execute(new MyDialogCallback(this, true, false) {
+                    @Override
+                    public void onSuccess(Response<String> response) {
+                        super.onSuccess(response);
+                        try {
+
+                            ActionBean bean = JsonUtil.getObject(response.body(), ActionBean.class);
+                            if (bean.data!=null && !bean.data.isEmpty() && !bean.data.equals("[]")){
+                                trackingBoxBean =  JsonUtil.jsonString2Bean(bean.data,TrackingBoxBean.class);
+                            }
+
+                            String voiceName = trackingBoxBean.getVoiceName();
+                            if(bean.code == 1){
+                                showSuccessToast(bean.msg,voiceName);
+                                Bundle bundle = new Bundle();
+                                bundle.putString("data",bean.data);
+                                bundle.putString("customer_code",customerCode);
+                                intentPageResult(BoxPutInMainActivity.this, BoxPutInDetailsMainActivity.class, bundle,200);
+
+                            }else{
+                                showWarningToast(bean.msg,voiceName);
+                            }
+
+                        }catch (Exception e) {
+                            e.printStackTrace();
+                            XLog.e("错误",e.getMessage());
+                        }
+                    }
+                });
+
+    }
+
+
 
 
     private void initFinish(){
     private void initFinish(){
         llExtendInfo.setVisibility(View.GONE);
         llExtendInfo.setVisibility(View.GONE);
@@ -687,6 +925,12 @@ public class BoxPutInMainActivity extends  BaseActivity implements StoJNI.ScanCa
 
 
         etTrackingNumber.requestFocus();
         etTrackingNumber.requestFocus();
 
 
+        for (int i=0;i<baseImgList.size();i++){
+            if (mapPictureSelector.containsKey(baseImgList.get(i))){
+                mapPictureSelector.get(baseImgList.get(i)).emptyRemake();
+            }
+        }
+
 
 
     }
     }
 
 

+ 4 - 1
app/src/main/java/com/fxy/detection/TrayMakeSecondMainActivity.java

@@ -214,7 +214,10 @@ public class TrayMakeSecondMainActivity extends  BaseActivity implements StoJNI.
         assert event != null;
         assert event != null;
         switch (event.getEventCode()){
         switch (event.getEventCode()){
             case EventCode.picture_selector_lister:
             case EventCode.picture_selector_lister:
-                currentPictureType = event.getData().toString();
+                String pictureType = event.getData().toString();
+                if (mapPictureSelector.containsKey(pictureType)){
+                    currentPictureType = pictureType;
+                }
                 break;
                 break;
             case EventCode.file_upload_lister:
             case EventCode.file_upload_lister:
                 totalAwaitNum();
                 totalAwaitNum();

+ 5 - 1
app/src/main/java/com/fxy/detection/TrayPutInMainActivity.java

@@ -184,7 +184,11 @@ public class TrayPutInMainActivity extends  BaseActivity implements StoJNI.ScanC
         assert event != null;
         assert event != null;
         switch (event.getEventCode()){
         switch (event.getEventCode()){
             case EventCode.picture_selector_lister:
             case EventCode.picture_selector_lister:
-                currentPictureType = event.getData().toString();
+                String pictureType = event.getData().toString();
+                if (mapPictureSelector.containsKey(pictureType)){
+                    currentPictureType = pictureType;
+                }
+
                 break;
                 break;
             case EventCode.file_upload_lister:
             case EventCode.file_upload_lister:
                 totalAwaitNum();
                 totalAwaitNum();

+ 11 - 0
app/src/main/java/com/fxy/detection/bean/TrackingBoxBean.java

@@ -21,6 +21,7 @@ public class TrackingBoxBean implements Parcelable {
     private int yipaizhao_qty= 0;
     private int yipaizhao_qty= 0;
     private String need_customer = "";
     private String need_customer = "";
     private String no_clear = "";
     private String no_clear = "";
+    private String business_type = "";
     private List<StorageRecordBean> zuijin_nums= new ArrayList<>();
     private List<StorageRecordBean> zuijin_nums= new ArrayList<>();
 
 
     public TrackingBoxBean(){
     public TrackingBoxBean(){
@@ -40,6 +41,7 @@ public class TrackingBoxBean implements Parcelable {
         yipaizhao_qty = in.readInt();
         yipaizhao_qty = in.readInt();
         need_customer = in.readString();
         need_customer = in.readString();
         no_clear = in.readString();
         no_clear = in.readString();
+        business_type = in.readString();
         zuijin_nums = in.createTypedArrayList(StorageRecordBean.CREATOR);
         zuijin_nums = in.createTypedArrayList(StorageRecordBean.CREATOR);
     }
     }
 
 
@@ -56,6 +58,7 @@ public class TrackingBoxBean implements Parcelable {
         dest.writeInt(yipaizhao_qty);
         dest.writeInt(yipaizhao_qty);
         dest.writeString(need_customer);
         dest.writeString(need_customer);
         dest.writeString(no_clear);
         dest.writeString(no_clear);
+        dest.writeString(business_type);
         dest.writeTypedList(zuijin_nums);
         dest.writeTypedList(zuijin_nums);
     }
     }
 
 
@@ -171,4 +174,12 @@ public class TrackingBoxBean implements Parcelable {
     public void setNoClear(String no_clear) {
     public void setNoClear(String no_clear) {
         this.no_clear = no_clear;
         this.no_clear = no_clear;
     }
     }
+
+    public String getBusinessType() {
+        return business_type;
+    }
+
+    public void setBusinessType(String business_type) {
+        this.business_type = business_type;
+    }
 }
 }

+ 26 - 0
app/src/main/res/layout/activity_fxy_detection_box_putin.xml

@@ -88,6 +88,32 @@
         </LinearLayout>
         </LinearLayout>
 
 
 
 
+            <LinearLayout
+                android:id="@+id/ll_label_picture"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="vertical">
+                <LinearLayout
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_marginLeft="@dimen/dp_10"
+                    android:layout_marginRight="@dimen/dp_10"
+                    android:background="@null"
+                    android:padding="@dimen/dp_10"
+                    android:gravity="center_vertical"
+                    android:orientation="vertical">
+                    <TextView
+                        style="@style/fontSize"
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
+                        android:textStyle="bold"
+                        android:text="面单拍照,共 1 张">
+                    </TextView>
+                </LinearLayout>
+                <include layout="@layout/fragment_show_img"/>
+            </LinearLayout>
+
+
 
 
             <LinearLayout
             <LinearLayout
                 android:id="@+id/ll_weigh_picture"
                 android:id="@+id/ll_weigh_picture"

+ 1 - 0
app/src/main/res/layout/activity_fxy_detection_box_putin_details.xml

@@ -49,6 +49,7 @@
 
 
                 </LinearLayout>
                 </LinearLayout>
                 <LinearLayout
                 <LinearLayout
+                    android:id="@+id/ll_box_number"
                     android:layout_width="match_parent"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_height="wrap_content"
 
 

+ 1 - 1
config.gradle

@@ -8,7 +8,7 @@ ext {
             minSdkVersion    : 21,
             minSdkVersion    : 21,
             targetSdkVersion : 23,
             targetSdkVersion : 23,
             versionCode      : 1,
             versionCode      : 1,
-            versionName      : "2.9.2",
+            versionName      : "2.9.3",
             versionApi       : "2.9",
             versionApi       : "2.9",
             versionRealm     : 2,
             versionRealm     : 2,
     ]
     ]