|
|
|
|
@ -6,6 +6,7 @@ import android.view.View;
|
|
|
|
|
import android.widget.Button;
|
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import com.rehome.zhdcoa.Api;
|
|
|
|
|
import com.rehome.zhdcoa.Contans;
|
|
|
|
|
import com.rehome.zhdcoa.R;
|
|
|
|
|
@ -32,8 +33,10 @@ import com.rehome.zhdcoa.weiget.AuditDialog;
|
|
|
|
|
import com.rehome.zhdcoa.weiget.AuditFlowDialog;
|
|
|
|
|
import com.rehome.zhdcoa.weiget.CbRbLayout;
|
|
|
|
|
import com.rehome.zhdcoa.weiget.InputLayout;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import okhttp3.MediaType;
|
|
|
|
|
import okhttp3.RequestBody;
|
|
|
|
|
import retrofit2.Call;
|
|
|
|
|
@ -128,6 +131,15 @@ public class ApplyVehicleAuditActivity extends BaseActivity implements View.OnCl
|
|
|
|
|
btnDx.setVisibility(View.GONE);
|
|
|
|
|
}
|
|
|
|
|
cbIdea.setRb1Check(true);
|
|
|
|
|
|
|
|
|
|
//默认不可指派司机,只有管理员才可以
|
|
|
|
|
ilDriver.setEnabled(false);
|
|
|
|
|
ilNum.setEnabled(false);
|
|
|
|
|
ilTEL.setEnabled(false);
|
|
|
|
|
ilSm.setEnabled(false);
|
|
|
|
|
// llOk.setBackgroundColor(0xeeeeeeee);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
llOk.setVisibility(cbIdea.getRb1Check() ? View.VISIBLE : View.GONE);
|
|
|
|
|
btnDx.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
@ -320,6 +332,23 @@ public class ApplyVehicleAuditActivity extends BaseActivity implements View.OnCl
|
|
|
|
|
ilNum.setContent(dataRowsBean.getVehicleCh());
|
|
|
|
|
ilSm.setContent(dataRowsBean.getVehicleSm());
|
|
|
|
|
ilTEL.setContent(dataRowsBean.getVehiclePhone());
|
|
|
|
|
|
|
|
|
|
if (bean.getRows() != null && bean.getRows().size() > 0) {
|
|
|
|
|
String states = bean.getRows().get(0).getStates();
|
|
|
|
|
String curnodename = bean.getRows().get(0).getCurnodename();
|
|
|
|
|
if (!TextUtils.isEmpty(curnodename) && !TextUtils.isEmpty(states)) {
|
|
|
|
|
if (states.equals("2") && curnodename.equals("车辆管理员审批")) {
|
|
|
|
|
//states=2 和 curnodename=车辆管理员审批,才可以指派车辆
|
|
|
|
|
ilDriver.setEnabled(true);
|
|
|
|
|
ilNum.setEnabled(true);
|
|
|
|
|
ilTEL.setEnabled(true);
|
|
|
|
|
ilSm.setEnabled(true);
|
|
|
|
|
//llOk.setBackgroundColor(0x00000000);
|
|
|
|
|
}else{
|
|
|
|
|
llOk.setBackgroundColor(0xeeeeeeee);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void getAuditpermission() {
|
|
|
|
|
@ -350,6 +379,13 @@ public class ApplyVehicleAuditActivity extends BaseActivity implements View.OnCl
|
|
|
|
|
initToolbar("预定车辆" + rowsBean.getAuditName(), "", this);
|
|
|
|
|
}
|
|
|
|
|
showView(vehicleBean);
|
|
|
|
|
if (TextUtils.isEmpty(rowsBean.getItemid())) {
|
|
|
|
|
//没有审核权限,不可编辑
|
|
|
|
|
ilDriver.setEnabled(false);
|
|
|
|
|
ilNum.setEnabled(false);
|
|
|
|
|
ilTEL.setEnabled(false);
|
|
|
|
|
ilSm.setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
setToolbarTitle(rowsBean.getAuditName());
|
|
|
|
|
rangeID = bean.getRows().get(0).getRange();
|
|
|
|
|
datas.addAll(rowsBean.getStepSHList());
|
|
|
|
|
|