|
|
@@ -266,9 +266,22 @@ public class HomeOrderFragment extends BaseFragment { |
|
|
|
boolean pan3 = (Boolean) ModbusCenter.ReadPlc(1,"3#空盆库位检测有无"); |
|
|
|
if(!pan1&&!pan2&&!pan3){ |
|
|
|
NewToastUtil.getInstance().showToastError("请至少放一个出餐空盆!"); |
|
|
|
AlertDialogUtils.showCancelAndConfirmDialog((AppCompatActivity) getActivity(), R.layout.dialog_order, (layoutView, xCom) -> { |
|
|
|
DialogOrderBinding binding = DialogOrderBinding.bind(layoutView); |
|
|
|
binding.title.setText("出菜盆检测警告"); |
|
|
|
binding.edit.setText("未检测到出菜盆,请至少放一个出餐空盆!或检测盆是否放置正确"); |
|
|
|
binding.cancel.setVisibility(View.GONE); |
|
|
|
binding.submit.setText("确认"); |
|
|
|
binding.submit.setOnClickListener(v->{ |
|
|
|
xCom.dismissX(); |
|
|
|
}); |
|
|
|
binding.cancel.setOnClickListener(v->{ |
|
|
|
xCom.dismissX(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
String error = checkPosition(mData.get(position)); |
|
|
|
makingOrderDialog( mData.get(position),error.isEmpty()?0:-1,name,error,position); |
|
|
|
return; |
|
|
@@ -405,7 +418,7 @@ public class HomeOrderFragment extends BaseFragment { |
|
|
|
switch (status){ |
|
|
|
case -1: |
|
|
|
if(error.contains("未放置")){ |
|
|
|
binding.submit.setText("确认已放盆,开始制作"); |
|
|
|
binding.submit.setText("确认已放料盆,开始制作"); |
|
|
|
}else { |
|
|
|
binding.submit.setText("确认已补料,开始制作"); |
|
|
|
} |
|
|
|