提交 913aaf11 authored 作者: lgd's avatar lgd

1.退件详情初版

2.//TODO ,退件详情(top流程图,审核历史),接单,领用申请列表/退件列表/参数,坩埚下单,mes其他页面,编辑任务担当无法修改.支数参数
上级 9d2c533d
...@@ -281,6 +281,7 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity { ...@@ -281,6 +281,7 @@ public class CrucibleOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"orderType", dataBean.getExpandInfo().getOrderType(), "orderType", dataBean.getExpandInfo().getOrderType(),
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
......
...@@ -240,6 +240,7 @@ public class InsideOrderDetailActivity extends WorkToolBarActivity { ...@@ -240,6 +240,7 @@ public class InsideOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"orderType", dataBean.getExpandInfo().getOrderType(), "orderType", dataBean.getExpandInfo().getOrderType(),
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
......
...@@ -285,6 +285,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity { ...@@ -285,6 +285,7 @@ public class OutOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"orderType", dataBean.getExpandInfo().getOrderType(), "orderType", dataBean.getExpandInfo().getOrderType(),
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
......
...@@ -163,6 +163,7 @@ public class ProductOrderDetailActivity extends WorkToolBarActivity { ...@@ -163,6 +163,7 @@ public class ProductOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
"product", proList.get(position).getProductName(), "product", proList.get(position).getProductName(),
......
...@@ -141,7 +141,11 @@ public class ReturnApplyActivity extends WorkToolBarActivity { ...@@ -141,7 +141,11 @@ public class ReturnApplyActivity extends WorkToolBarActivity {
@Override @Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
startActivity(ReturnDetailActivity.class, startActivity(ReturnDetailActivity.class,
"info", JSON.toJSONString(dataList.get(position))); "info", JSON.toJSONString(dataList.get(position)),
"orderType", orderType
,"status", getIntent().getStringExtra("status")
,"id", getIntent().getStringExtra("orderId")
,"identity", getIntent().getStringExtra("identity"));
} }
}); });
} }
......
...@@ -15,7 +15,6 @@ import com.alibaba.fastjson.JSON; ...@@ -15,7 +15,6 @@ import com.alibaba.fastjson.JSON;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean; import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity; import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.AddStockBean;
import com.wd.workoffice.bean.ReturnApplyBean; import com.wd.workoffice.bean.ReturnApplyBean;
import com.wd.workoffice.bean.event.CheckAddStockEvent; import com.wd.workoffice.bean.event.CheckAddStockEvent;
import com.wd.workoffice.bean.workEnum.OrderType; import com.wd.workoffice.bean.workEnum.OrderType;
...@@ -54,12 +53,6 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -54,12 +53,6 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
TextView tvAgree; TextView tvAgree;
@BindView(R.id.ll_check) @BindView(R.id.ll_check)
LinearLayout llCheck; LinearLayout llCheck;
@BindView(R.id.tv_finish_apply)
TextView tvFinishApply;
@BindView(R.id.tv_send_apply)
TextView tvSendApply;
@BindView(R.id.ll_apply)
LinearLayout llApply;
@BindView(R.id.ll_bottom) @BindView(R.id.ll_bottom)
LinearLayout llBottom; LinearLayout llBottom;
@BindView(R.id.rv_process) @BindView(R.id.rv_process)
...@@ -98,23 +91,24 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -98,23 +91,24 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
protected void initData() { protected void initData() {
info = JSON.parseObject(getIntent().getStringExtra("info"), ReturnApplyBean.RecordsBean.class); info = JSON.parseObject(getIntent().getStringExtra("info"), ReturnApplyBean.RecordsBean.class);
orderType = getIntent().getStringExtra("orderType"); orderType = getIntent().getStringExtra("orderType");
tvNum.setText(String.valueOf(info.getProductAmount())); tvName.setText(info.getProductSimpleCode());
tvBoxNum.setText(String.valueOf(info.getBoxCode())); tvProName.setText(info.getProductName());
tvProCode.setText(info.getProductSoleCode());
tvReturnNum.setText(String.valueOf(info.getProductAmount()));
tvReturnType.setText(info.getReturnTypeName());
tvStock.setText(info.getBackStockName());
tvPerson.setText(String.valueOf(info.getCreatedByName())); tvPerson.setText(String.valueOf(info.getCreatedByName()));
tvTime.setText(info.getCreatedTime()); tvTime.setText(info.getCreatedTime());
tvRemark.setText(String.valueOf(info.getApplyRemark())); tvRemark.setText(String.valueOf(info.getApplyRemark()));
if (TextUtils.equals(info.getQualityInspectionStatus(), "0")) { tvStatus.setText(WorkUtils.getReturnStatus(Integer.valueOf(info.getStatus())));
llBottom.setVisibility(View.VISIBLE); // if (TextUtils.equals(info.getStatus(), "0")) {
llCheck.setVisibility(View.GONE); // llBottom.setVisibility(View.VISIBLE);
changePermission(); // llCheck.setVisibility(View.GONE);
} else { // changePermission();
llBottom.setVisibility(View.GONE); // } else {
llCheck.setVisibility(View.VISIBLE); // llBottom.setVisibility(View.GONE);
tvCheckPerson.setText(info.getUpdatedByName()); // llCheck.setVisibility(View.VISIBLE);
tvCheckTime.setText(info.getUpdatedTime()); // }
tvCheckRemark.setText(info.getAuditRemark());
tvCheckStatus.setText(WorkUtils.getFinancialStatus(Integer.valueOf(info.getQualityInspectionStatus())));
}
} }
...@@ -128,18 +122,6 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -128,18 +122,6 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
} }
@OnClick({R.id.tv_refuse, R.id.tv_agree})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.tv_refuse:
checkDialog(2, info.getId());
break;
case R.id.tv_agree:
checkDialog(1, info.getId());
break;
}
}
private void changePermission() { private void changePermission() {
boolean hasPermission = true; boolean hasPermission = true;
if (TextUtils.equals(orderType, OrderType.SALE.getCode())) { if (TextUtils.equals(orderType, OrderType.SALE.getCode())) {
...@@ -149,6 +131,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -149,6 +131,8 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
} else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) { } else if (TextUtils.equals(orderType, OrderType.SUPPLIER.getCode())) {
hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_QUALITY_AUDIT.getPermission()); hasPermission = WorkUtils.hasPermission(PagePermissionType.FO_QUALITY_AUDIT.getPermission());
} }
if (!hasPermission) { if (!hasPermission) {
tvRefuse.setVisibility(View.GONE); tvRefuse.setVisibility(View.GONE);
tvAgree.setVisibility(View.GONE); tvAgree.setVisibility(View.GONE);
...@@ -239,6 +223,34 @@ public class ReturnDetailActivity extends WorkToolBarActivity { ...@@ -239,6 +223,34 @@ public class ReturnDetailActivity extends WorkToolBarActivity {
}); });
} }
@OnClick({R.id.tv_refuse, R.id.tv_agree, R.id.rl_history, R.id.rl_order})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.tv_refuse:
checkDialog(2, info.getId());
break;
case R.id.tv_agree:
checkDialog(1, info.getId());
break;
case R.id.rl_history:
break;
case R.id.rl_order:
if (TextUtils.equals(orderType, OrderType.SALE.getCode())) {
startActivity(SaleOrderDetailActivity.class,
"identity", getIntent().getStringExtra("identity"),
"id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status"));
} else if (TextUtils.equals(orderType, OrderType.OUT_BUY.getCode())) {
startActivity(OutOrderDetailActivity.class,
"identity", getIntent().getStringExtra("identity"),
"id", getIntent().getStringExtra("id"),
"status", getIntent().getStringExtra("status"));
} else {
}
break;
}
}
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
......
...@@ -267,6 +267,7 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity { ...@@ -267,6 +267,7 @@ public class SaleOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
"orderType", dataBean.getExpandInfo().getOrderType(), "orderType", dataBean.getExpandInfo().getOrderType(),
......
...@@ -255,6 +255,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity { ...@@ -255,6 +255,7 @@ public class SupplierOrderDetailActivity extends WorkToolBarActivity {
break; break;
case R.id.tv_return: case R.id.tv_return:
startActivity(ReturnApplyActivity.class, startActivity(ReturnApplyActivity.class,
"identity", identity,
"status", dataBean.getStatus() + "", "status", dataBean.getStatus() + "",
"orderType", dataBean.getExpandInfo().getOrderType(), "orderType", dataBean.getExpandInfo().getOrderType(),
"num", proList.get(position).getStoreSum() + "", "num", proList.get(position).getStoreSum() + "",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论