|
@@ -25,6 +25,7 @@ import android.widget.ImageButton;
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.RadioButton;
|
|
import android.widget.RadioButton;
|
|
|
|
+import android.widget.RadioGroup;
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
import android.widget.Toast;
|
|
import android.widget.Toast;
|
|
|
|
|
|
@@ -48,6 +49,8 @@ import com.fxy.common.PictureSelectorUpload;
|
|
import com.fxy.constant.BaseConfig;
|
|
import com.fxy.constant.BaseConfig;
|
|
import com.fxy.constant.EventCode;
|
|
import com.fxy.constant.EventCode;
|
|
import com.fxy.constant.SPCache;
|
|
import com.fxy.constant.SPCache;
|
|
|
|
+import com.fxy.fms.check.CheckGoodsMainActivity;
|
|
|
|
+import com.fxy.fms.check.CheckStartMainActivity;
|
|
import com.fxy.net.MyDialogCallback;
|
|
import com.fxy.net.MyDialogCallback;
|
|
import com.fxy.net.Urls;
|
|
import com.fxy.net.Urls;
|
|
import com.fxy.view.FloatingImageView;
|
|
import com.fxy.view.FloatingImageView;
|
|
@@ -86,16 +89,6 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
EditText etOrderNo;
|
|
EditText etOrderNo;
|
|
|
|
|
|
|
|
|
|
- @BindView(R.id.mt_send_way)
|
|
|
|
- MarqueeTextView mtSendWay;
|
|
|
|
-
|
|
|
|
- @BindView(R.id.mt_putin_qty)
|
|
|
|
- MarqueeTextView mtPutinQty;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @BindView(R.id.recyclerview)
|
|
|
|
- RecyclerView recyclerView;
|
|
|
|
-
|
|
|
|
//浮动按钮
|
|
//浮动按钮
|
|
@BindView(R.id.iv_drag)
|
|
@BindView(R.id.iv_drag)
|
|
FloatingImageView iv_drag;
|
|
FloatingImageView iv_drag;
|
|
@@ -113,26 +106,18 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
LinearLayout llDamagedArea;
|
|
LinearLayout llDamagedArea;
|
|
|
|
|
|
|
|
|
|
- private View notDataView; //没有数据显示页
|
|
|
|
- private View errorView; //错误显示页
|
|
|
|
- private View emptyView; //空显示页
|
|
|
|
|
|
+ @BindView(R.id.radioGroup1)
|
|
|
|
+ RadioGroup radioGroup;
|
|
|
|
+
|
|
|
|
|
|
- private List<JSONObject> tallyDataList = new ArrayList<>() ;
|
|
|
|
- /**
|
|
|
|
- * 列表适配器
|
|
|
|
- */
|
|
|
|
- private FinishWorkAdapter mAdapter;
|
|
|
|
|
|
|
|
//扫码扫码动作
|
|
//扫码扫码动作
|
|
private ScanBean scanBean;
|
|
private ScanBean scanBean;
|
|
|
|
|
|
|
|
|
|
- //托盘返回对象
|
|
|
|
- private JSONObject palletObject;
|
|
|
|
|
|
|
|
private Unbinder unbinder;
|
|
private Unbinder unbinder;
|
|
|
|
|
|
- private CommonDialog commonDialog;
|
|
|
|
|
|
|
|
//图片列表
|
|
//图片列表
|
|
private ArrayList photoList =new ArrayList<>();
|
|
private ArrayList photoList =new ArrayList<>();
|
|
@@ -144,7 +129,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
private PictureSelectorUpload damagedUpload;
|
|
private PictureSelectorUpload damagedUpload;
|
|
|
|
|
|
//质检结果
|
|
//质检结果
|
|
- private String categoryName = "";
|
|
|
|
|
|
+ private String categoryName = "完好";
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public int getContentViewResId() {
|
|
public int getContentViewResId() {
|
|
@@ -178,6 +163,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
// XLog.e(data);
|
|
// XLog.e(data);
|
|
if (requestCode == 200 && resultCode == 200)//之前提到的两个标志,在这里显示出了作用
|
|
if (requestCode == 200 && resultCode == 200)//之前提到的两个标志,在这里显示出了作用
|
|
{
|
|
{
|
|
|
|
+ clearData(true);
|
|
}else if (resultCode==0){
|
|
}else if (resultCode==0){
|
|
}
|
|
}
|
|
|
|
|
|
@@ -214,12 +200,9 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
@Override
|
|
@Override
|
|
protected void initView() {
|
|
protected void initView() {
|
|
unbinder = ButterKnife.bind(this);
|
|
unbinder = ButterKnife.bind(this);
|
|
- setTitleName(getString(R.string.tally));
|
|
|
|
|
|
+ setTitleName("标准质检");
|
|
|
|
|
|
- initAdapter();
|
|
|
|
- initData();
|
|
|
|
initEdit();
|
|
initEdit();
|
|
- initDialog();
|
|
|
|
//监听浮动按钮
|
|
//监听浮动按钮
|
|
iv_drag.setOnClickListener(new View.OnClickListener() {
|
|
iv_drag.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
@Override
|
|
@@ -315,27 +298,6 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- private void initData(){
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- private void initDialog(){
|
|
|
|
- commonDialog = new CommonDialog(mContext, R.style.dialog, "need_customer", new CommonDialog.OnCloseListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onClickCancel(Dialog dialog, boolean confirm) {
|
|
|
|
- dialog.dismiss();
|
|
|
|
- }
|
|
|
|
- @Override
|
|
|
|
- public void onClickSubmit(Dialog dialog, boolean confirm) {
|
|
|
|
- String string = commonDialog.contentTxt.getText().toString().trim();
|
|
|
|
-
|
|
|
|
- dialog.dismiss();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -349,8 +311,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- //return super.dispatchKeyEvent(event);
|
|
|
|
|
|
+ return super.dispatchKeyEvent(event);
|
|
}
|
|
}
|
|
|
|
|
|
//监听按键
|
|
//监听按键
|
|
@@ -463,7 +424,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
public void callbackEditor(View v){
|
|
public void callbackEditor(View v){
|
|
switch (v.getId()) {
|
|
switch (v.getId()) {
|
|
case R.id.et_order_no:
|
|
case R.id.et_order_no:
|
|
- doPutIn();
|
|
|
|
|
|
+ qualityTrackingNumber();
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
}
|
|
}
|
|
@@ -498,10 +459,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
|
|
|
|
//把扫描结果赋值
|
|
//把扫描结果赋值
|
|
private void setScanResult(String scanResult){
|
|
private void setScanResult(String scanResult){
|
|
- if (commonDialog!=null && commonDialog.isShowing()){
|
|
|
|
- commonDialog.setContent(scanResult);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
//获取焦点的view对象
|
|
//获取焦点的view对象
|
|
View view=getWindow().getDecorView().findFocus();
|
|
View view=getWindow().getDecorView().findFocus();
|
|
//如果是EditText
|
|
//如果是EditText
|
|
@@ -514,7 +472,57 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ public void qualityTrackingNumber() {
|
|
|
|
+ //校验数据
|
|
|
|
+ if(!checkNull(etOrderNo)){
|
|
|
|
+ setEditTextFocused(etOrderNo,true);
|
|
|
|
+ showWarningToast(etOrderNo.getHint().toString());
|
|
|
|
+ return ;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ final String tracking_number = etOrderNo.getText().toString().trim();
|
|
|
|
+ JSONObject param = new JSONObject();
|
|
|
|
+ param.put("tracking_number",tracking_number);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (!checkRepeat(Urls.FXY_QUALITY_TRACKING_NUMBER+(param.toString()))){return;}
|
|
|
|
+
|
|
|
|
+ OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_QUALITY_TRACKING_NUMBER)
|
|
|
|
+ .upJson(param)
|
|
|
|
+ .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);
|
|
|
|
+ JSONObject result = new JSONObject();
|
|
|
|
+ if (bean.data!=null && !bean.data.isEmpty() && !bean.data.equals("[]")){
|
|
|
|
+ result = new JSONObject(bean.data);
|
|
|
|
+ if (result.has("deal_tracking_number")){
|
|
|
|
+ etOrderNo.setText(result.getString("deal_tracking_number"));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(bean.code == 1){
|
|
|
|
+ showSuccessToast(bean.msg);
|
|
|
|
+ }else{
|
|
|
|
+ showWarningToast(bean.msg);
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ XLog.e("请求入库返回错误",e.getMessage());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } catch (JSONException e) {
|
|
|
|
+ showEmptyView("请求入库失败:"+e.getMessage());
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
public void doPutIn() {
|
|
public void doPutIn() {
|
|
//校验数据
|
|
//校验数据
|
|
@@ -526,6 +534,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
final String tracking_number = etOrderNo.getText().toString().trim();
|
|
final String tracking_number = etOrderNo.getText().toString().trim();
|
|
JSONObject param = new JSONObject();
|
|
JSONObject param = new JSONObject();
|
|
param.put("tracking_number",tracking_number);
|
|
param.put("tracking_number",tracking_number);
|
|
|
|
+ param.put("category_name",categoryName);
|
|
|
|
|
|
param.put("img_1",panoramaUpload.getPhotoList().get(0));
|
|
param.put("img_1",panoramaUpload.getPhotoList().get(0));
|
|
param.put("img_2",labelUpload.getPhotoList().get(0));
|
|
param.put("img_2",labelUpload.getPhotoList().get(0));
|
|
@@ -534,12 +543,9 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
param.put("img_3",damagedUpload.getPhotoList().get(0));
|
|
param.put("img_3",damagedUpload.getPhotoList().get(0));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!checkRepeat(Urls.FXY_QUALITY_SUBMIT+(param.toString()))){return;}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if (!checkRepeat(Urls.FXY_PUT_IN+(param.toString()))){return;}
|
|
|
|
-
|
|
|
|
- OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_PUT_IN)
|
|
|
|
|
|
+ OkGo.<String>post(Urls.getServiceAddress(this) + Urls.FXY_QUALITY_SUBMIT)
|
|
.upJson(param)
|
|
.upJson(param)
|
|
.execute(new MyDialogCallback(this, true, true) {
|
|
.execute(new MyDialogCallback(this, true, true) {
|
|
@Override
|
|
@Override
|
|
@@ -547,73 +553,18 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
super.onSuccess(response);
|
|
super.onSuccess(response);
|
|
try {
|
|
try {
|
|
ActionBean bean = JsonUtil.getObject(response.body(), ActionBean.class);
|
|
ActionBean bean = JsonUtil.getObject(response.body(), ActionBean.class);
|
|
- JSONObject result = new JSONObject();
|
|
|
|
- if (bean.data!=null && !bean.data.isEmpty() && !bean.data.equals("[]")){
|
|
|
|
- result = new JSONObject(bean.data);
|
|
|
|
- }
|
|
|
|
|
|
|
|
- setPageViewData(result);
|
|
|
|
|
|
+
|
|
if(bean.code == 1){
|
|
if(bean.code == 1){
|
|
|
|
+ JSONObject result = new JSONObject(bean.data);
|
|
showSuccessToast(bean.msg);
|
|
showSuccessToast(bean.msg);
|
|
- llDamagedArea.setVisibility(View.GONE);
|
|
|
|
- clearData(false);
|
|
|
|
|
|
+ Bundle bundle = new Bundle();
|
|
|
|
+ bundle.putString("container_type",result.getString("result_txt"));
|
|
|
|
+ bundle.putInt("quality_order_id",result.getInt("quality_order_id"));
|
|
|
|
+ intentPageResult(QualityInspectionMainActivity.this, QualityVolumeMainActivity.class, bundle,200);
|
|
}else{
|
|
}else{
|
|
|
|
|
|
- if (result.has("tag") && result.getString("tag").equals("need_customer")){
|
|
|
|
-
|
|
|
|
-// commonDialog.setTitle("客户编号","请输入客户编号")
|
|
|
|
-// .setTypeCode("need_customer")
|
|
|
|
-// .setContent("")
|
|
|
|
-// .show();
|
|
|
|
-// llCustomerCode.setVisibility(View.VISIBLE);
|
|
|
|
- new AlertDialog.Builder(mContext)
|
|
|
|
- .setTitle(R.string.dl_hint)
|
|
|
|
- .setMessage(bean.msg)
|
|
|
|
- .setNegativeButton(R.string.str_submit, new DialogInterface.OnClickListener() {
|
|
|
|
- @RequiresApi(api = Build.VERSION_CODES.KITKAT)
|
|
|
|
- @Override
|
|
|
|
- public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
- currentUpload.emptyRemake();
|
|
|
|
- photoList.clear();
|
|
|
|
- llDamagedArea.setVisibility(View.VISIBLE);
|
|
|
|
- currentUpload.authCamera();
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }).setPositiveButton(R.string.str_cancel, new DialogInterface.OnClickListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
- //取消不做操作
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }).show();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }else if (result.has("is_change") && result.getInt("is_change")==1){
|
|
|
|
- new AlertDialog.Builder(mContext)
|
|
|
|
- .setTitle(R.string.dl_hint)
|
|
|
|
- .setMessage(bean.msg)
|
|
|
|
- .setNegativeButton(R.string.str_submit, new DialogInterface.OnClickListener() {
|
|
|
|
- @RequiresApi(api = Build.VERSION_CODES.KITKAT)
|
|
|
|
- @Override
|
|
|
|
- public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
- doPutIn();
|
|
|
|
- }
|
|
|
|
- }).setPositiveButton(R.string.str_cancel, new DialogInterface.OnClickListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
- //取消不做操作
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }).show();
|
|
|
|
- }else if(result.has("need_ctn") && result.getInt("need_ctn") == 1) {
|
|
|
|
- commonDialog.setTitle("箱数","请输入箱数")
|
|
|
|
- .setTypeCode("need_ctn")
|
|
|
|
- .setContent("")
|
|
|
|
- .show();
|
|
|
|
-
|
|
|
|
- }else {
|
|
|
|
- showWarningToast(bean.msg);
|
|
|
|
- }
|
|
|
|
|
|
+ showWarningToast(bean.msg);
|
|
|
|
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -635,14 +586,12 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
*/
|
|
*/
|
|
private boolean validate(){
|
|
private boolean validate(){
|
|
|
|
|
|
-
|
|
|
|
if(!checkNull(etOrderNo)){
|
|
if(!checkNull(etOrderNo)){
|
|
setEditTextFocused(etOrderNo,true);
|
|
setEditTextFocused(etOrderNo,true);
|
|
showWarningToast(etOrderNo.getHint().toString());
|
|
showWarningToast(etOrderNo.getHint().toString());
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
if (panoramaUpload.getPhotoList().size()==0){
|
|
if (panoramaUpload.getPhotoList().size()==0){
|
|
showWarningToast("请选择全景图");
|
|
showWarningToast("请选择全景图");
|
|
return false;
|
|
return false;
|
|
@@ -653,92 +602,43 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (categoryName.equals("破损") && damagedUpload.getPhotoList().size()==0){
|
|
|
|
+ showWarningToast("请选择破损图");
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
- private class FinishWorkAdapter extends BaseQuickAdapter<JSONObject, BaseViewHolder>{
|
|
|
|
- public FinishWorkAdapter(List<JSONObject> data){
|
|
|
|
- super(R.layout.item_putin_scan, data);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ //清除订单信息
|
|
|
|
+ private void clearData(boolean isAll) {
|
|
|
|
+ etOrderNo.setText("");
|
|
|
|
+ etOrderNo.requestFocus();
|
|
|
|
+ setEditTextNormal(etOrderNo,true);
|
|
|
|
|
|
- public void setNewData(List<JSONObject> tallyDataList) {
|
|
|
|
|
|
+ llDamagedArea.setVisibility(View.GONE);
|
|
|
|
+ if (currentUpload != null){
|
|
|
|
+ currentUpload.emptyRemake();//清空图片
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- protected void convert(BaseViewHolder helper, JSONObject item) {
|
|
|
|
- helper.addOnClickListener(R.id.ib_clear);//定义setOnItemChildClickListener 事件点击
|
|
|
|
- try {
|
|
|
|
- String number = item.has("tracking_number")?item.getString("tracking_number"):"";
|
|
|
|
- helper.setText(R.id.tv_number,number);
|
|
|
|
- helper.getView(R.id.ib_clear).setVisibility(View.GONE);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- XLog.e("列表赋值错误",e);
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
|
|
+ if (panoramaUpload!=null){
|
|
|
|
+ panoramaUpload.emptyRemake();//清空图片
|
|
}
|
|
}
|
|
- }
|
|
|
|
- private void initAdapter(){
|
|
|
|
- emptyView = this.getLayoutInflater().inflate(R.layout.pager_empty, (ViewGroup) recyclerView.getParent(), false);
|
|
|
|
- errorView = this.getLayoutInflater().inflate(R.layout.pager_error, (ViewGroup) recyclerView.getParent(), false);
|
|
|
|
- notDataView = emptyView;
|
|
|
|
|
|
|
|
- mAdapter = new FinishWorkAdapter(tallyDataList);
|
|
|
|
- mAdapter.setEmptyView(emptyView);
|
|
|
|
- mAdapter.openLoadAnimation(BaseQuickAdapter.SCALEIN);
|
|
|
|
- recyclerView.setLayoutManager(new LinearLayoutManager(this));
|
|
|
|
- recyclerView.setAdapter(mAdapter);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 显示
|
|
|
|
- * @param str
|
|
|
|
- */
|
|
|
|
- private void showList(String str){
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- private void setPageViewData(JSONObject jsonObject){
|
|
|
|
- try {
|
|
|
|
- String send_way = "";
|
|
|
|
- String putin_qty = "";
|
|
|
|
- if (jsonObject.has("list")){
|
|
|
|
- String listStr = jsonObject.getString("list");
|
|
|
|
- if ( !listStr.isEmpty() && !listStr.equals("[]")){
|
|
|
|
- tallyDataList.clear();
|
|
|
|
- JSONArray jsonArray = new JSONArray(listStr);
|
|
|
|
- for (int i = 0;i < jsonArray.length(); i++){
|
|
|
|
- JSONObject tallyObject = jsonArray.getJSONObject(i);
|
|
|
|
- tallyDataList.add(tallyObject);
|
|
|
|
- }
|
|
|
|
- mAdapter.setNewData(tallyDataList);
|
|
|
|
- mAdapter.notifyDataSetChanged();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (jsonObject.has("send_way")){
|
|
|
|
- send_way = jsonObject.getString("send_way");
|
|
|
|
- }
|
|
|
|
- if (jsonObject.has("qty")){
|
|
|
|
- putin_qty = String.valueOf(jsonObject.getInt("qty"));
|
|
|
|
- }
|
|
|
|
|
|
+ if (labelUpload!=null){
|
|
|
|
+ labelUpload.emptyRemake();//清空图片
|
|
|
|
+ }
|
|
|
|
|
|
- mtSendWay.setText(send_way);
|
|
|
|
- mtPutinQty.setText(putin_qty);
|
|
|
|
|
|
+ if (damagedUpload!=null){
|
|
|
|
+ damagedUpload.emptyRemake();//清空图片
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ //设置默认选中
|
|
|
|
+ categoryName = "完好";
|
|
|
|
+ RadioButton rb_checked = (RadioButton) radioGroup.findViewById(R.id.rb_intact);
|
|
|
|
+ rb_checked.setChecked(true);
|
|
|
|
|
|
- }catch (JSONException e) {
|
|
|
|
- XLog.e("获取理货缓存数据错误",e);
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //清除订单信息
|
|
|
|
- private void clearData(boolean isAll) {
|
|
|
|
- etOrderNo.setText("");
|
|
|
|
- etOrderNo.requestFocus();
|
|
|
|
- setEditTextNormal(etOrderNo,true);
|
|
|
|
- currentUpload.emptyRemake();//清空图片
|
|
|
|
photoList.clear();
|
|
photoList.clear();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -747,10 +647,7 @@ public class QualityInspectionMainActivity extends BaseActivity implements StoJ
|
|
Bundle bundle = new Bundle();
|
|
Bundle bundle = new Bundle();
|
|
switch (view.getId()) {
|
|
switch (view.getId()) {
|
|
case R.id.btn_confirm:
|
|
case R.id.btn_confirm:
|
|
- bundle.putString("container_type","退货返修");
|
|
|
|
- bundle.putString("order_number",etOrderNo.getText().toString().trim());
|
|
|
|
- intent2Page(QualityInspectionMainActivity.this, QualityVolumeMainActivity.class, false,bundle);
|
|
|
|
- //closePallet();
|
|
|
|
|
|
+ doPutIn();
|
|
break;
|
|
break;
|
|
|
|
|
|
// case R.id.tv_clear_pictures:
|
|
// case R.id.tv_clear_pictures:
|