提交 749d5efb authored 作者: lgd's avatar lgd

1.mes列表页整改,新增登录跳转逻辑

2.//TODO ,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes其他页面,mes质量反馈,编辑任务担当无法修改.支数参数
上级 256172eb
package com.wd.workoffice.app; package com.wd.workoffice.app;
import android.app.Application; import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import com.scwang.smartrefresh.header.BezierCircleHeader; import com.scwang.smartrefresh.header.BezierCircleHeader;
import com.scwang.smartrefresh.layout.SmartRefreshLayout; import com.scwang.smartrefresh.layout.SmartRefreshLayout;
...@@ -11,6 +15,9 @@ import com.wd.workoffice.retrofit.MesApiService; ...@@ -11,6 +15,9 @@ import com.wd.workoffice.retrofit.MesApiService;
import com.wd.workoffice.retrofit.RtfMesHelper; import com.wd.workoffice.retrofit.RtfMesHelper;
import com.wd.workoffice.util.UserKeeper; import com.wd.workoffice.util.UserKeeper;
import java.io.IOException;
import java.util.HashMap;
import cn.jpush.android.api.JPushInterface; import cn.jpush.android.api.JPushInterface;
import flexible.xd.android_base.base.BaseApp; import flexible.xd.android_base.base.BaseApp;
import flexible.xd.android_base.network.rtfhttp.RtfHelper; import flexible.xd.android_base.network.rtfhttp.RtfHelper;
...@@ -18,6 +25,7 @@ import flexible.xd.android_base.utils.Utils; ...@@ -18,6 +25,7 @@ import flexible.xd.android_base.utils.Utils;
import me.jessyan.autosize.AutoSizeConfig; import me.jessyan.autosize.AutoSizeConfig;
import me.jessyan.autosize.unit.Subunits; import me.jessyan.autosize.unit.Subunits;
import okhttp3.Request; import okhttp3.Request;
import okhttp3.Response;
/** /**
...@@ -26,6 +34,7 @@ import okhttp3.Request; ...@@ -26,6 +34,7 @@ import okhttp3.Request;
public class WorkApp extends BaseApp { public class WorkApp extends BaseApp {
private static Application instance; private static Application instance;
private HashMap<String, String> cookies;
@Override @Override
public void onCreate() { public void onCreate() {
...@@ -48,13 +57,51 @@ public class WorkApp extends BaseApp { ...@@ -48,13 +57,51 @@ public class WorkApp extends BaseApp {
return chain.proceed(request); return chain.proceed(request);
}); });
cookies = new HashMap<>();
RtfMesHelper.getInstance().init(MesApiService.DOMAIN, chain -> { RtfMesHelper.getInstance().init(MesApiService.DOMAIN, chain -> {
Request original = chain.request(); //获取请求链接
Request request = original.newBuilder() Request originalRequest = chain.request();
.method(original.method(), original.body()) //获取url的主机地址
String hostString = originalRequest.url().host();
if (!cookies.containsKey(hostString)) {
//获取磁盘里面的spCookie字符串
String spCookie = UserKeeper.getInstance().getCookie();
if (!TextUtils.isEmpty(spCookie)) {
//获取spCookie解密放到内存中
cookies.put(hostString, spCookie);
}
}
//获取内存中的Cookie
String memoryCookie = cookies.get(hostString);
//拦截网络请求数据
Request request = originalRequest.newBuilder()
//设置请求头Cookie值
.addHeader("Cookie", memoryCookie == null ? "" : memoryCookie)
.build(); .build();
return chain.proceed(request); //拦截返回数据
Response originalResponse = chain.proceed(request);
//判断请求头里面是否有Set-Cookie值,更新Cookie
if (!originalResponse.headers("Set-Cookie").isEmpty()) {
//字符串集
StringBuilder stringBuilder = new StringBuilder();
for (String header : originalResponse.headers("Set-Cookie")) {
stringBuilder.append(header);
stringBuilder.append(";");
}
//拼接Cookie成字符串
String cookie = stringBuilder.toString();
//更新内存中Cookies值
cookies.put(hostString, cookie);
//存储到本地磁盘中
UserKeeper.getInstance().keepCookie(cookie);
Log.e("Set-Cookie", "cookies: " + cookie + " host: " + hostString);
}
return originalResponse;
}); });
smartInit(); smartInit();
JPushInterface.setDebugMode(true); JPushInterface.setDebugMode(true);
......
...@@ -101,80 +101,80 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -101,80 +101,80 @@ public class FeedbackBean extends BaseMesPageBean {
*/ */
private String id; private String id;
private Object createDateTime; private String createDateTime;
private Object updateDateTime; private String updateDateTime;
private String feedbackCode; private String feedbackCode;
private Object productId; private String productId;
private Object productCode; private String productCode;
private String productName; private String productName;
private Object drawingNumber; private String drawingNumber;
private Object version; private String version;
private Object specification; private String specification;
private Object customerId; private String customerId;
private String customerName; private String customerName;
private Object saleUserId; private String saleUserId;
private Object saleUserCode; private String saleUserCode;
private String saleUserName; private String saleUserName;
private String phoneNumber; private String phoneNumber;
private Object boxId; private String boxId;
private String boxCode; private String boxCode;
private Object serialNumber; private String serialNumber;
private String caster; private String caster;
private Object casterName; private String casterName;
private Object defectId; private String defectId;
private int defectCount; private int defectCount;
private Object defectCounts; private String defectCounts;
private Object defectCode; private String defectCode;
private String defectName; private String defectName;
private Object mainCause; private String mainCause;
private Object steelTypeId; private String steelTypeId;
private Object steelTypeName; private String steelTypeName;
private Object feedbackDescription; private String feedbackDescription;
private Object otherProviderBehavior; private String otherProviderBehavior;
private Object salerOpinion; private String salerOpinion;
private Object attachmentId; private String attachmentId;
private Object factoryAnalysis; private String factoryAnalysis;
private Object factoryLeaderOpinion; private String factoryLeaderOpinion;
private Object factoryImplement; private String factoryImplement;
private Object procedureId; private String procedureId;
private Object procedureCode; private String procedureCode;
private Object procedureName; private String procedureName;
private Object defectMudId; private String defectMudId;
private Object defectMudCode; private String defectMudCode;
private Object defectMudName; private String defectMudName;
private Object rapidResponse; private String rapidResponse;
private Object customerResponse; private String customerResponse;
private Object relatedRecord; private String relatedRecord;
private Object seriesName; private String seriesName;
private Object seriesType; private String seriesType;
private Object severity; private String severity;
private Object treatRectPlan; private String treatRectPlan;
private String status; private String status;
private Object attachments; private String attachments;
private Object responsibleUserId; private String responsibleUserId;
private Object responsibleUserName; private String responsibleUserName;
private Object factoryTreatmentDateTime; private String factoryTreatmentDateTime;
private Object verifyUserId; private String verifyUserId;
private Object verifyUserName; private String verifyUserName;
private Object verifyUserDate; private String verifyUserDate;
private Object recordUserId; private String recordUserId;
private Object recorUserName; private String recorUserName;
private Object recorUserDate; private String recorUserDate;
private Object responsibleDealId; private String responsibleDealId;
private Object responsibleDealName; private String responsibleDealName;
private Object responsibleDealDate; private String responsibleDealDate;
private Object responsibleCustId; private String responsibleCustId;
private Object responsibleCustName; private String responsibleCustName;
private Object responsibleCustDate; private String responsibleCustDate;
private Object approvalUserId; private String approvalUserId;
private Object approvalUserName; private String approvalUserName;
private Object approvalUserDate; private String approvalUserDate;
private String createUserId; private String createUserId;
private String createUserName; private String createUserName;
private Object updateUserId; private String updateUserId;
private Object updateUserName; private String updateUserName;
private Object defectMudIds; private String defectMudIds;
private Object attachment; private String attachment;
private boolean delete; private boolean delete;
public String getId() { public String getId() {
...@@ -185,19 +185,19 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -185,19 +185,19 @@ public class FeedbackBean extends BaseMesPageBean {
this.id = id; this.id = id;
} }
public Object getCreateDateTime() { public String getCreateDateTime() {
return createDateTime; return createDateTime;
} }
public void setCreateDateTime(Object createDateTime) { public void setCreateDateTime(String createDateTime) {
this.createDateTime = createDateTime; this.createDateTime = createDateTime;
} }
public Object getUpdateDateTime() { public String getUpdateDateTime() {
return updateDateTime; return updateDateTime;
} }
public void setUpdateDateTime(Object updateDateTime) { public void setUpdateDateTime(String updateDateTime) {
this.updateDateTime = updateDateTime; this.updateDateTime = updateDateTime;
} }
...@@ -209,19 +209,19 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -209,19 +209,19 @@ public class FeedbackBean extends BaseMesPageBean {
this.feedbackCode = feedbackCode; this.feedbackCode = feedbackCode;
} }
public Object getProductId() { public String getProductId() {
return productId; return productId;
} }
public void setProductId(Object productId) { public void setProductId(String productId) {
this.productId = productId; this.productId = productId;
} }
public Object getProductCode() { public String getProductCode() {
return productCode; return productCode;
} }
public void setProductCode(Object productCode) { public void setProductCode(String productCode) {
this.productCode = productCode; this.productCode = productCode;
} }
...@@ -233,35 +233,35 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -233,35 +233,35 @@ public class FeedbackBean extends BaseMesPageBean {
this.productName = productName; this.productName = productName;
} }
public Object getDrawingNumber() { public String getDrawingNumber() {
return drawingNumber; return drawingNumber;
} }
public void setDrawingNumber(Object drawingNumber) { public void setDrawingNumber(String drawingNumber) {
this.drawingNumber = drawingNumber; this.drawingNumber = drawingNumber;
} }
public Object getVersion() { public String getVersion() {
return version; return version;
} }
public void setVersion(Object version) { public void setVersion(String version) {
this.version = version; this.version = version;
} }
public Object getSpecification() { public String getSpecification() {
return specification; return specification;
} }
public void setSpecification(Object specification) { public void setSpecification(String specification) {
this.specification = specification; this.specification = specification;
} }
public Object getCustomerId() { public String getCustomerId() {
return customerId; return customerId;
} }
public void setCustomerId(Object customerId) { public void setCustomerId(String customerId) {
this.customerId = customerId; this.customerId = customerId;
} }
...@@ -273,19 +273,19 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -273,19 +273,19 @@ public class FeedbackBean extends BaseMesPageBean {
this.customerName = customerName; this.customerName = customerName;
} }
public Object getSaleUserId() { public String getSaleUserId() {
return saleUserId; return saleUserId;
} }
public void setSaleUserId(Object saleUserId) { public void setSaleUserId(String saleUserId) {
this.saleUserId = saleUserId; this.saleUserId = saleUserId;
} }
public Object getSaleUserCode() { public String getSaleUserCode() {
return saleUserCode; return saleUserCode;
} }
public void setSaleUserCode(Object saleUserCode) { public void setSaleUserCode(String saleUserCode) {
this.saleUserCode = saleUserCode; this.saleUserCode = saleUserCode;
} }
...@@ -305,11 +305,11 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -305,11 +305,11 @@ public class FeedbackBean extends BaseMesPageBean {
this.phoneNumber = phoneNumber; this.phoneNumber = phoneNumber;
} }
public Object getBoxId() { public String getBoxId() {
return boxId; return boxId;
} }
public void setBoxId(Object boxId) { public void setBoxId(String boxId) {
this.boxId = boxId; this.boxId = boxId;
} }
...@@ -321,11 +321,11 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -321,11 +321,11 @@ public class FeedbackBean extends BaseMesPageBean {
this.boxCode = boxCode; this.boxCode = boxCode;
} }
public Object getSerialNumber() { public String getSerialNumber() {
return serialNumber; return serialNumber;
} }
public void setSerialNumber(Object serialNumber) { public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber; this.serialNumber = serialNumber;
} }
...@@ -337,19 +337,19 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -337,19 +337,19 @@ public class FeedbackBean extends BaseMesPageBean {
this.caster = caster; this.caster = caster;
} }
public Object getCasterName() { public String getCasterName() {
return casterName; return casterName;
} }
public void setCasterName(Object casterName) { public void setCasterName(String casterName) {
this.casterName = casterName; this.casterName = casterName;
} }
public Object getDefectId() { public String getDefectId() {
return defectId; return defectId;
} }
public void setDefectId(Object defectId) { public void setDefectId(String defectId) {
this.defectId = defectId; this.defectId = defectId;
} }
...@@ -361,19 +361,19 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -361,19 +361,19 @@ public class FeedbackBean extends BaseMesPageBean {
this.defectCount = defectCount; this.defectCount = defectCount;
} }
public Object getDefectCounts() { public String getDefectCounts() {
return defectCounts; return defectCounts;
} }
public void setDefectCounts(Object defectCounts) { public void setDefectCounts(String defectCounts) {
this.defectCounts = defectCounts; this.defectCounts = defectCounts;
} }
public Object getDefectCode() { public String getDefectCode() {
return defectCode; return defectCode;
} }
public void setDefectCode(Object defectCode) { public void setDefectCode(String defectCode) {
this.defectCode = defectCode; this.defectCode = defectCode;
} }
...@@ -385,187 +385,187 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -385,187 +385,187 @@ public class FeedbackBean extends BaseMesPageBean {
this.defectName = defectName; this.defectName = defectName;
} }
public Object getMainCause() { public String getMainCause() {
return mainCause; return mainCause;
} }
public void setMainCause(Object mainCause) { public void setMainCause(String mainCause) {
this.mainCause = mainCause; this.mainCause = mainCause;
} }
public Object getSteelTypeId() { public String getSteelTypeId() {
return steelTypeId; return steelTypeId;
} }
public void setSteelTypeId(Object steelTypeId) { public void setSteelTypeId(String steelTypeId) {
this.steelTypeId = steelTypeId; this.steelTypeId = steelTypeId;
} }
public Object getSteelTypeName() { public String getSteelTypeName() {
return steelTypeName; return steelTypeName;
} }
public void setSteelTypeName(Object steelTypeName) { public void setSteelTypeName(String steelTypeName) {
this.steelTypeName = steelTypeName; this.steelTypeName = steelTypeName;
} }
public Object getFeedbackDescription() { public String getFeedbackDescription() {
return feedbackDescription; return feedbackDescription;
} }
public void setFeedbackDescription(Object feedbackDescription) { public void setFeedbackDescription(String feedbackDescription) {
this.feedbackDescription = feedbackDescription; this.feedbackDescription = feedbackDescription;
} }
public Object getOtherProviderBehavior() { public String getOtherProviderBehavior() {
return otherProviderBehavior; return otherProviderBehavior;
} }
public void setOtherProviderBehavior(Object otherProviderBehavior) { public void setOtherProviderBehavior(String otherProviderBehavior) {
this.otherProviderBehavior = otherProviderBehavior; this.otherProviderBehavior = otherProviderBehavior;
} }
public Object getSalerOpinion() { public String getSalerOpinion() {
return salerOpinion; return salerOpinion;
} }
public void setSalerOpinion(Object salerOpinion) { public void setSalerOpinion(String salerOpinion) {
this.salerOpinion = salerOpinion; this.salerOpinion = salerOpinion;
} }
public Object getAttachmentId() { public String getAttachmentId() {
return attachmentId; return attachmentId;
} }
public void setAttachmentId(Object attachmentId) { public void setAttachmentId(String attachmentId) {
this.attachmentId = attachmentId; this.attachmentId = attachmentId;
} }
public Object getFactoryAnalysis() { public String getFactoryAnalysis() {
return factoryAnalysis; return factoryAnalysis;
} }
public void setFactoryAnalysis(Object factoryAnalysis) { public void setFactoryAnalysis(String factoryAnalysis) {
this.factoryAnalysis = factoryAnalysis; this.factoryAnalysis = factoryAnalysis;
} }
public Object getFactoryLeaderOpinion() { public String getFactoryLeaderOpinion() {
return factoryLeaderOpinion; return factoryLeaderOpinion;
} }
public void setFactoryLeaderOpinion(Object factoryLeaderOpinion) { public void setFactoryLeaderOpinion(String factoryLeaderOpinion) {
this.factoryLeaderOpinion = factoryLeaderOpinion; this.factoryLeaderOpinion = factoryLeaderOpinion;
} }
public Object getFactoryImplement() { public String getFactoryImplement() {
return factoryImplement; return factoryImplement;
} }
public void setFactoryImplement(Object factoryImplement) { public void setFactoryImplement(String factoryImplement) {
this.factoryImplement = factoryImplement; this.factoryImplement = factoryImplement;
} }
public Object getProcedureId() { public String getProcedureId() {
return procedureId; return procedureId;
} }
public void setProcedureId(Object procedureId) { public void setProcedureId(String procedureId) {
this.procedureId = procedureId; this.procedureId = procedureId;
} }
public Object getProcedureCode() { public String getProcedureCode() {
return procedureCode; return procedureCode;
} }
public void setProcedureCode(Object procedureCode) { public void setProcedureCode(String procedureCode) {
this.procedureCode = procedureCode; this.procedureCode = procedureCode;
} }
public Object getProcedureName() { public String getProcedureName() {
return procedureName; return procedureName;
} }
public void setProcedureName(Object procedureName) { public void setProcedureName(String procedureName) {
this.procedureName = procedureName; this.procedureName = procedureName;
} }
public Object getDefectMudId() { public String getDefectMudId() {
return defectMudId; return defectMudId;
} }
public void setDefectMudId(Object defectMudId) { public void setDefectMudId(String defectMudId) {
this.defectMudId = defectMudId; this.defectMudId = defectMudId;
} }
public Object getDefectMudCode() { public String getDefectMudCode() {
return defectMudCode; return defectMudCode;
} }
public void setDefectMudCode(Object defectMudCode) { public void setDefectMudCode(String defectMudCode) {
this.defectMudCode = defectMudCode; this.defectMudCode = defectMudCode;
} }
public Object getDefectMudName() { public String getDefectMudName() {
return defectMudName; return defectMudName;
} }
public void setDefectMudName(Object defectMudName) { public void setDefectMudName(String defectMudName) {
this.defectMudName = defectMudName; this.defectMudName = defectMudName;
} }
public Object getRapidResponse() { public String getRapidResponse() {
return rapidResponse; return rapidResponse;
} }
public void setRapidResponse(Object rapidResponse) { public void setRapidResponse(String rapidResponse) {
this.rapidResponse = rapidResponse; this.rapidResponse = rapidResponse;
} }
public Object getCustomerResponse() { public String getCustomerResponse() {
return customerResponse; return customerResponse;
} }
public void setCustomerResponse(Object customerResponse) { public void setCustomerResponse(String customerResponse) {
this.customerResponse = customerResponse; this.customerResponse = customerResponse;
} }
public Object getRelatedRecord() { public String getRelatedRecord() {
return relatedRecord; return relatedRecord;
} }
public void setRelatedRecord(Object relatedRecord) { public void setRelatedRecord(String relatedRecord) {
this.relatedRecord = relatedRecord; this.relatedRecord = relatedRecord;
} }
public Object getSeriesName() { public String getSeriesName() {
return seriesName; return seriesName;
} }
public void setSeriesName(Object seriesName) { public void setSeriesName(String seriesName) {
this.seriesName = seriesName; this.seriesName = seriesName;
} }
public Object getSeriesType() { public String getSeriesType() {
return seriesType; return seriesType;
} }
public void setSeriesType(Object seriesType) { public void setSeriesType(String seriesType) {
this.seriesType = seriesType; this.seriesType = seriesType;
} }
public Object getSeverity() { public String getSeverity() {
return severity; return severity;
} }
public void setSeverity(Object severity) { public void setSeverity(String severity) {
this.severity = severity; this.severity = severity;
} }
public Object getTreatRectPlan() { public String getTreatRectPlan() {
return treatRectPlan; return treatRectPlan;
} }
public void setTreatRectPlan(Object treatRectPlan) { public void setTreatRectPlan(String treatRectPlan) {
this.treatRectPlan = treatRectPlan; this.treatRectPlan = treatRectPlan;
} }
...@@ -577,155 +577,155 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -577,155 +577,155 @@ public class FeedbackBean extends BaseMesPageBean {
this.status = status; this.status = status;
} }
public Object getAttachments() { public String getAttachments() {
return attachments; return attachments;
} }
public void setAttachments(Object attachments) { public void setAttachments(String attachments) {
this.attachments = attachments; this.attachments = attachments;
} }
public Object getResponsibleUserId() { public String getResponsibleUserId() {
return responsibleUserId; return responsibleUserId;
} }
public void setResponsibleUserId(Object responsibleUserId) { public void setResponsibleUserId(String responsibleUserId) {
this.responsibleUserId = responsibleUserId; this.responsibleUserId = responsibleUserId;
} }
public Object getResponsibleUserName() { public String getResponsibleUserName() {
return responsibleUserName; return responsibleUserName;
} }
public void setResponsibleUserName(Object responsibleUserName) { public void setResponsibleUserName(String responsibleUserName) {
this.responsibleUserName = responsibleUserName; this.responsibleUserName = responsibleUserName;
} }
public Object getFactoryTreatmentDateTime() { public String getFactoryTreatmentDateTime() {
return factoryTreatmentDateTime; return factoryTreatmentDateTime;
} }
public void setFactoryTreatmentDateTime(Object factoryTreatmentDateTime) { public void setFactoryTreatmentDateTime(String factoryTreatmentDateTime) {
this.factoryTreatmentDateTime = factoryTreatmentDateTime; this.factoryTreatmentDateTime = factoryTreatmentDateTime;
} }
public Object getVerifyUserId() { public String getVerifyUserId() {
return verifyUserId; return verifyUserId;
} }
public void setVerifyUserId(Object verifyUserId) { public void setVerifyUserId(String verifyUserId) {
this.verifyUserId = verifyUserId; this.verifyUserId = verifyUserId;
} }
public Object getVerifyUserName() { public String getVerifyUserName() {
return verifyUserName; return verifyUserName;
} }
public void setVerifyUserName(Object verifyUserName) { public void setVerifyUserName(String verifyUserName) {
this.verifyUserName = verifyUserName; this.verifyUserName = verifyUserName;
} }
public Object getVerifyUserDate() { public String getVerifyUserDate() {
return verifyUserDate; return verifyUserDate;
} }
public void setVerifyUserDate(Object verifyUserDate) { public void setVerifyUserDate(String verifyUserDate) {
this.verifyUserDate = verifyUserDate; this.verifyUserDate = verifyUserDate;
} }
public Object getRecordUserId() { public String getRecordUserId() {
return recordUserId; return recordUserId;
} }
public void setRecordUserId(Object recordUserId) { public void setRecordUserId(String recordUserId) {
this.recordUserId = recordUserId; this.recordUserId = recordUserId;
} }
public Object getRecorUserName() { public String getRecorUserName() {
return recorUserName; return recorUserName;
} }
public void setRecorUserName(Object recorUserName) { public void setRecorUserName(String recorUserName) {
this.recorUserName = recorUserName; this.recorUserName = recorUserName;
} }
public Object getRecorUserDate() { public String getRecorUserDate() {
return recorUserDate; return recorUserDate;
} }
public void setRecorUserDate(Object recorUserDate) { public void setRecorUserDate(String recorUserDate) {
this.recorUserDate = recorUserDate; this.recorUserDate = recorUserDate;
} }
public Object getResponsibleDealId() { public String getResponsibleDealId() {
return responsibleDealId; return responsibleDealId;
} }
public void setResponsibleDealId(Object responsibleDealId) { public void setResponsibleDealId(String responsibleDealId) {
this.responsibleDealId = responsibleDealId; this.responsibleDealId = responsibleDealId;
} }
public Object getResponsibleDealName() { public String getResponsibleDealName() {
return responsibleDealName; return responsibleDealName;
} }
public void setResponsibleDealName(Object responsibleDealName) { public void setResponsibleDealName(String responsibleDealName) {
this.responsibleDealName = responsibleDealName; this.responsibleDealName = responsibleDealName;
} }
public Object getResponsibleDealDate() { public String getResponsibleDealDate() {
return responsibleDealDate; return responsibleDealDate;
} }
public void setResponsibleDealDate(Object responsibleDealDate) { public void setResponsibleDealDate(String responsibleDealDate) {
this.responsibleDealDate = responsibleDealDate; this.responsibleDealDate = responsibleDealDate;
} }
public Object getResponsibleCustId() { public String getResponsibleCustId() {
return responsibleCustId; return responsibleCustId;
} }
public void setResponsibleCustId(Object responsibleCustId) { public void setResponsibleCustId(String responsibleCustId) {
this.responsibleCustId = responsibleCustId; this.responsibleCustId = responsibleCustId;
} }
public Object getResponsibleCustName() { public String getResponsibleCustName() {
return responsibleCustName; return responsibleCustName;
} }
public void setResponsibleCustName(Object responsibleCustName) { public void setResponsibleCustName(String responsibleCustName) {
this.responsibleCustName = responsibleCustName; this.responsibleCustName = responsibleCustName;
} }
public Object getResponsibleCustDate() { public String getResponsibleCustDate() {
return responsibleCustDate; return responsibleCustDate;
} }
public void setResponsibleCustDate(Object responsibleCustDate) { public void setResponsibleCustDate(String responsibleCustDate) {
this.responsibleCustDate = responsibleCustDate; this.responsibleCustDate = responsibleCustDate;
} }
public Object getApprovalUserId() { public String getApprovalUserId() {
return approvalUserId; return approvalUserId;
} }
public void setApprovalUserId(Object approvalUserId) { public void setApprovalUserId(String approvalUserId) {
this.approvalUserId = approvalUserId; this.approvalUserId = approvalUserId;
} }
public Object getApprovalUserName() { public String getApprovalUserName() {
return approvalUserName; return approvalUserName;
} }
public void setApprovalUserName(Object approvalUserName) { public void setApprovalUserName(String approvalUserName) {
this.approvalUserName = approvalUserName; this.approvalUserName = approvalUserName;
} }
public Object getApprovalUserDate() { public String getApprovalUserDate() {
return approvalUserDate; return approvalUserDate;
} }
public void setApprovalUserDate(Object approvalUserDate) { public void setApprovalUserDate(String approvalUserDate) {
this.approvalUserDate = approvalUserDate; this.approvalUserDate = approvalUserDate;
} }
...@@ -745,35 +745,35 @@ public class FeedbackBean extends BaseMesPageBean { ...@@ -745,35 +745,35 @@ public class FeedbackBean extends BaseMesPageBean {
this.createUserName = createUserName; this.createUserName = createUserName;
} }
public Object getUpdateUserId() { public String getUpdateUserId() {
return updateUserId; return updateUserId;
} }
public void setUpdateUserId(Object updateUserId) { public void setUpdateUserId(String updateUserId) {
this.updateUserId = updateUserId; this.updateUserId = updateUserId;
} }
public Object getUpdateUserName() { public String getUpdateUserName() {
return updateUserName; return updateUserName;
} }
public void setUpdateUserName(Object updateUserName) { public void setUpdateUserName(String updateUserName) {
this.updateUserName = updateUserName; this.updateUserName = updateUserName;
} }
public Object getDefectMudIds() { public String getDefectMudIds() {
return defectMudIds; return defectMudIds;
} }
public void setDefectMudIds(Object defectMudIds) { public void setDefectMudIds(String defectMudIds) {
this.defectMudIds = defectMudIds; this.defectMudIds = defectMudIds;
} }
public Object getAttachment() { public String getAttachment() {
return attachment; return attachment;
} }
public void setAttachment(Object attachment) { public void setAttachment(String attachment) {
this.attachment = attachment; this.attachment = attachment;
} }
......
...@@ -9,6 +9,7 @@ import android.widget.EditText; ...@@ -9,6 +9,7 @@ import android.widget.EditText;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseMesBean; import com.wd.workoffice.app.BaseMesBean;
import com.wd.workoffice.app.WorkBaseActivity; import com.wd.workoffice.app.WorkBaseActivity;
...@@ -137,6 +138,8 @@ public class MesLoginActivity extends WorkToolBarActivity { ...@@ -137,6 +138,8 @@ public class MesLoginActivity extends WorkToolBarActivity {
} }
toast("登录成功"); toast("登录成功");
UserKeeper.getInstance().keepMesLogin(true); UserKeeper.getInstance().keepMesLogin(true);
JSONObject userData = JSON.parseObject(data.getData().toString());
UserKeeper.getInstance().keepMesUid(userData.getString("userId"));
Intent intent = new Intent(MesLoginActivity.this, MainActivity.class); Intent intent = new Intent(MesLoginActivity.this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent); startActivity(intent);
......
...@@ -153,7 +153,7 @@ public class MesQualityActivity extends WorkToolBarActivity { ...@@ -153,7 +153,7 @@ public class MesQualityActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
......
...@@ -59,8 +59,11 @@ public class MesSearchActivity extends WorkToolBarActivity { ...@@ -59,8 +59,11 @@ public class MesSearchActivity extends WorkToolBarActivity {
dataAdapter = new MesSearchAdapter(R.layout.item_mes_search, dataList); dataAdapter = new MesSearchAdapter(R.layout.item_mes_search, dataList);
dataAdapter.bindToRecyclerView(rvData); dataAdapter.bindToRecyclerView(rvData);
dataAdapter.setEmptyView(R.layout.view_empty_content,rvData); dataAdapter.setEmptyView(R.layout.view_empty_content,rvData);
param = WorkUtils.pageKey(); param = WorkUtils.pageMesKey();
Map<String, Object> paramMap = WorkUtils.simpleParam();
paramMap.put("materialCode","306");
param.put("pageNum", page); param.put("pageNum", page);
param.put("paramMap", paramMap);
getData(); getData();
} }
...@@ -130,7 +133,7 @@ public class MesSearchActivity extends WorkToolBarActivity { ...@@ -130,7 +133,7 @@ public class MesSearchActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
......
...@@ -47,6 +47,7 @@ public class MesSearchConditionActivity extends WorkToolBarActivity { ...@@ -47,6 +47,7 @@ public class MesSearchConditionActivity extends WorkToolBarActivity {
@BindView(R.id.et_steel) @BindView(R.id.et_steel)
EditText etSteel; EditText etSteel;
private Map<String, Object> param; private Map<String, Object> param;
@Override @Override
protected void initView() { protected void initView() {
ButterKnife.bind(this); ButterKnife.bind(this);
...@@ -111,6 +112,7 @@ public class MesSearchConditionActivity extends WorkToolBarActivity { ...@@ -111,6 +112,7 @@ public class MesSearchConditionActivity extends WorkToolBarActivity {
if (!TextUtils.isEmpty(etYears.getText().toString())) { if (!TextUtils.isEmpty(etYears.getText().toString())) {
param.put("designedLife", etYears.getText().toString()); param.put("designedLife", etYears.getText().toString());
} }
param.put("materialCode", "306");
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra("param", JSON.toJSONString(param)); intent.putExtra("param", JSON.toJSONString(param));
setResult(10001, intent); setResult(10001, intent);
......
package com.wd.workoffice.ui.activity.mes.ticket; package com.wd.workoffice.ui.activity.mes.ticket;
import android.content.Intent; import android.content.Intent;
import android.text.TextUtils;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
...@@ -18,6 +19,7 @@ import com.wd.workoffice.bean.mesBean.TicketBean; ...@@ -18,6 +19,7 @@ import com.wd.workoffice.bean.mesBean.TicketBean;
import com.wd.workoffice.retrofit.RtfUtils; import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver; import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.adapter.MesTicketAdapter; import com.wd.workoffice.ui.adapter.MesTicketAdapter;
import com.wd.workoffice.util.UserKeeper;
import com.wd.workoffice.util.WorkUtils; import com.wd.workoffice.util.WorkUtils;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
...@@ -62,6 +64,7 @@ public class MesTicketListActivity extends WorkToolBarActivity { ...@@ -62,6 +64,7 @@ public class MesTicketListActivity extends WorkToolBarActivity {
ButterKnife.bind(this); ButterKnife.bind(this);
tvGo.setText("任务担当\n" + tvGo.setText("任务担当\n" +
"页面"); "页面");
tvGo.setVisibility(View.GONE);
rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false)); rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false));
} }
...@@ -131,21 +134,22 @@ public class MesTicketListActivity extends WorkToolBarActivity { ...@@ -131,21 +134,22 @@ public class MesTicketListActivity extends WorkToolBarActivity {
dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() { dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override @Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
boolean isJob = TextUtils.equals(UserKeeper.getInstance().getMesUid(), dataList.get(position).getJobUserId());
switch (dataList.get(position).getJobStatus()) { switch (dataList.get(position).getJobStatus()) {
case 0: case 0:
startActivity(MesTicketAddActivity.class, "data", JSON.toJSONString(dataList.get(position))); startActivity(MesTicketAddActivity.class, "from", isJob ? "1" : "0","data", JSON.toJSONString(dataList.get(position)));
break; break;
case 1: case 1:
startActivity(MesTicketDetailActivity.class, "data", JSON.toJSONString(dataList.get(position))); startActivity(MesTicketDetailActivity.class, "from",isJob ? "1" : "0","data", JSON.toJSONString(dataList.get(position)));
break; break;
case 2: case 2:
startActivity(MesTicketDetailActivity.class, "data", JSON.toJSONString(dataList.get(position))); startActivity(MesTicketDetailActivity.class, "from", isJob ? "1" : "0","data", JSON.toJSONString(dataList.get(position)));
break; break;
case 3: case 3:
startActivity(MesTicketDetailFinishActivity.class, "data", JSON.toJSONString(dataList.get(position))); startActivity(MesTicketDetailFinishActivity.class, "from", isJob ? "1" : "0","data", JSON.toJSONString(dataList.get(position)));
break; break;
case 4: case 4:
startActivity(MesTicketDetailReviewActivity.class, "data", JSON.toJSONString(dataList.get(position))); startActivity(MesTicketDetailReviewActivity.class, "from", isJob ? "1" : "0","data", JSON.toJSONString(dataList.get(position)));
break; break;
} }
} }
...@@ -160,7 +164,7 @@ public class MesTicketListActivity extends WorkToolBarActivity { ...@@ -160,7 +164,7 @@ public class MesTicketListActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
...@@ -212,7 +216,7 @@ public class MesTicketListActivity extends WorkToolBarActivity { ...@@ -212,7 +216,7 @@ public class MesTicketListActivity extends WorkToolBarActivity {
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 10001 && resultCode == 10001) { if (requestCode == 10001 && resultCode == 10001) {
String returnParam = data.getStringExtra("param"); String returnParam = data.getStringExtra("param");
param.put("paramMap", JSON.parseObject(returnParam,Map.class)); param.put("paramMap", JSON.parseObject(returnParam, Map.class));
page = 1; page = 1;
param.put("pageNum", page); param.put("pageNum", page);
getData(); getData();
......
...@@ -172,7 +172,7 @@ public class MesTicketListTakeOnActivity extends WorkToolBarActivity { ...@@ -172,7 +172,7 @@ public class MesTicketListTakeOnActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
......
package com.wd.workoffice.ui.activity.mes.user; package com.wd.workoffice.ui.activity.mes.user;
import android.content.Intent; import android.content.Intent;
import android.text.TextUtils;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
...@@ -18,6 +19,7 @@ import com.wd.workoffice.bean.mesBean.UserDataBean; ...@@ -18,6 +19,7 @@ import com.wd.workoffice.bean.mesBean.UserDataBean;
import com.wd.workoffice.retrofit.RtfUtils; import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver; import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.adapter.MesUserDataAdapter; import com.wd.workoffice.ui.adapter.MesUserDataAdapter;
import com.wd.workoffice.util.UserKeeper;
import com.wd.workoffice.util.WorkUtils; import com.wd.workoffice.util.WorkUtils;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
...@@ -63,6 +65,7 @@ public class MesUserDataListActivity extends WorkToolBarActivity { ...@@ -63,6 +65,7 @@ public class MesUserDataListActivity extends WorkToolBarActivity {
rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false)); rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false));
tvGo.setText("市场服务\n" + tvGo.setText("市场服务\n" +
"审核"); "审核");
tvGo.setVisibility(View.GONE);
} }
...@@ -131,7 +134,8 @@ public class MesUserDataListActivity extends WorkToolBarActivity { ...@@ -131,7 +134,8 @@ public class MesUserDataListActivity extends WorkToolBarActivity {
dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() { dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override @Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
startActivity(MesUserDataDetailActivity.class,"from","0","id", boolean isJob = TextUtils.equals(UserKeeper.getInstance().getMesUid(), dataList.get(position).getApprovalUserId());
startActivity(MesUserDataDetailActivity.class,"from",isJob ? "1" : "0","id",
dataList.get(position).getId(),"status", dataList.get(position).getId(),"status",
dataList.get(position).getApprovalStatus()+""); dataList.get(position).getApprovalStatus()+"");
} }
...@@ -146,7 +150,7 @@ public class MesUserDataListActivity extends WorkToolBarActivity { ...@@ -146,7 +150,7 @@ public class MesUserDataListActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
......
...@@ -147,7 +147,7 @@ public class MesUserDataListCheckActivity extends WorkToolBarActivity { ...@@ -147,7 +147,7 @@ public class MesUserDataListCheckActivity extends WorkToolBarActivity {
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search, menu); getMenuInflater().inflate(R.menu.menu_mes_search, menu);
return super.onCreateOptionsMenu(menu); return super.onCreateOptionsMenu(menu);
} }
......
...@@ -92,32 +92,37 @@ public class UserSettingActivity extends WorkToolBarActivity { ...@@ -92,32 +92,37 @@ public class UserSettingActivity extends WorkToolBarActivity {
} }
private void logout() { private void logout() {
RtfUtils.getRtf().logout().compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
}
@Override
public void onFail(String errorMsg) {
hideLoading();
toast(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
hideLoading();
if (data.getCode() != 0) {
toast(data.getMessage());
return;
}
toast("退出成功"); toast("退出成功");
Intent intent = new Intent(UserSettingActivity.this, MainLoginActivity.class); Intent intent = new Intent(UserSettingActivity.this, MainLoginActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
UserKeeper.getInstance().clearAll(); UserKeeper.getInstance().clearAll();
startActivity(intent); startActivity(intent);
} // RtfUtils.getRtf().logout().compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
}); //
//
// @Override
// public void doOnSubscribe(Disposable d) {
// }
//
// @Override
// public void onFail(String errorMsg) {
// hideLoading();
// toast(errorMsg);
// }
//
// @Override
// public void onSuccess(BaseBean data) {
// hideLoading();
// if (data.getCode() != 0) {
// toast(data.getMessage());
// return;
// }
// toast("退出成功");
// Intent intent = new Intent(UserSettingActivity.this, MainLoginActivity.class);
// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
// UserKeeper.getInstance().clearAll();
// startActivity(intent);
// }
// });
} }
} }
...@@ -26,7 +26,19 @@ public class MesQualityAdapter extends BaseQuickAdapter<FeedbackBean.ListBean, B ...@@ -26,7 +26,19 @@ public class MesQualityAdapter extends BaseQuickAdapter<FeedbackBean.ListBean, B
helper.setText(R.id.tv_manager, item.getSaleUserName()); helper.setText(R.id.tv_manager, item.getSaleUserName());
helper.setText(R.id.tv_name, item.getCustomerName()); helper.setText(R.id.tv_name, item.getCustomerName());
helper.setText(R.id.tv_phone, item.getPhoneNumber()); helper.setText(R.id.tv_phone, item.getPhoneNumber());
helper.setText(R.id.tv_pro, item.getProductName()); helper.setText(R.id.tv_pro, item.getProductCode());
helper.setText(R.id.tv_pro_name, item.getProductName());
helper.setText(R.id.tv_spec, item.getSpecification());
helper.setText(R.id.tv_img_code, item.getDrawingNumber());
helper.setText(R.id.tv_box, item.getBoxCode());
helper.setText(R.id.tv_num, item.getDefectCount()+"");
helper.setText(R.id.tv_mark_code, item.getSerialNumber());
helper.setText(R.id.tv_machine, item.getCasterName());
helper.setText(R.id.tv_steel, item.getSteelTypeId());
helper.setText(R.id.tv_defect, item.getDefectName());
} }
} }
...@@ -26,7 +26,7 @@ public class MesTicketAdapter extends BaseQuickAdapter<TicketBean.ListBean, Base ...@@ -26,7 +26,7 @@ public class MesTicketAdapter extends BaseQuickAdapter<TicketBean.ListBean, Base
@Override @Override
protected void convert(BaseViewHolder helper, TicketBean.ListBean item) { protected void convert(BaseViewHolder helper, TicketBean.ListBean item) {
helper.setText(R.id.tv_name, item.getCustomerUserName()); helper.setText(R.id.tv_name, item.getCustomerUserName());
helper.setText(R.id.tv_pro_name, item.getJobTypeName()); helper.setText(R.id.tv_pro_name, item.getSalesManagerName());
helper.setText(R.id.tv_status, WorkUtils.getTicketStatus(item.getJobStatus())); helper.setText(R.id.tv_status, WorkUtils.getTicketStatus(item.getJobStatus()));
helper.setText(R.id.tv_time, item.getCreateDateTime()); helper.setText(R.id.tv_time, item.getCreateDateTime());
} }
......
...@@ -21,6 +21,9 @@ public class UserKeeper { ...@@ -21,6 +21,9 @@ public class UserKeeper {
private final String LOGIN_INFO = "_LOGIN_INFO"; private final String LOGIN_INFO = "_LOGIN_INFO";
private final String USER_INFO = "_USER_INFO"; private final String USER_INFO = "_USER_INFO";
private final String MES_LOGIN = "_MES_LOGIN"; private final String MES_LOGIN = "_MES_LOGIN";
private final String MES_UID = "_MES_UID";
private final String COOKIE = "_COOKIE";
private UserKeeper() { private UserKeeper() {
} }
...@@ -35,8 +38,21 @@ public class UserKeeper { ...@@ -35,8 +38,21 @@ public class UserKeeper {
return keeper; return keeper;
} }
public void keepCookie(String info) {
sp.put(COOKIE, info);
}
public String getCookie() {
return sp.getString(COOKIE);
}
public void clearCookie() {
sp.put(COOKIE, "");
}
/** /**
* mes登录状态 * mes登录状态
*
* @param info * @param info
*/ */
public void keepMesLogin(Boolean info) { public void keepMesLogin(Boolean info) {
...@@ -51,6 +67,17 @@ public class UserKeeper { ...@@ -51,6 +67,17 @@ public class UserKeeper {
sp.put(MES_LOGIN, false); sp.put(MES_LOGIN, false);
} }
public void keepMesUid(String info) {
sp.put(MES_UID, info);
}
public String getMesUid() {
return sp.getString(MES_UID);
}
public void clearMesUid() {
sp.put(MES_UID, "");
}
public void keepLoginInfo(String info) { public void keepLoginInfo(String info) {
sp.put(LOGIN_INFO, info); sp.put(LOGIN_INFO, info);
...@@ -74,6 +101,7 @@ public class UserKeeper { ...@@ -74,6 +101,7 @@ public class UserKeeper {
} }
return tokenBean.getAccess_token(); return tokenBean.getAccess_token();
} }
public String getRefreshToken() { public String getRefreshToken() {
if (TextUtils.isEmpty(sp.getString(LOGIN_INFO))) { if (TextUtils.isEmpty(sp.getString(LOGIN_INFO))) {
return ""; return "";
...@@ -84,6 +112,7 @@ public class UserKeeper { ...@@ -84,6 +112,7 @@ public class UserKeeper {
} }
return tokenBean.getRefresh_token(); return tokenBean.getRefresh_token();
} }
public String getUserId() { public String getUserId() {
if (TextUtils.isEmpty(sp.getString(LOGIN_INFO))) { if (TextUtils.isEmpty(sp.getString(LOGIN_INFO))) {
return ""; return "";
...@@ -150,9 +179,11 @@ public class UserKeeper { ...@@ -150,9 +179,11 @@ public class UserKeeper {
} }
return infoBean.getNickName(); return infoBean.getNickName();
} }
public void clearAll() { public void clearAll() {
clearLoginInfo(); clearLoginInfo();
clearUserInfo(); clearUserInfo();
clearMesLogin(); clearMesLogin();
clearMesUid();
} }
} }
...@@ -8,52 +8,131 @@ ...@@ -8,52 +8,131 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<Button
android:id="@+id/btn_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20mm"
android:background="@color/blue_btn"
android:text="新建"
android:textColor="@color/white" />
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_above="@id/btn_add">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:layout_height="match_parent"
android:layout_height="match_parent"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingVertical="16mm"> android:paddingVertical="16mm">
<TextView <TextView
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="反馈单号" android:text="反馈单号"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="客户名称" android:text="客户名称"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="销售经理" android:text="销售经理"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="联系电话" android:text="联系电话"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="产品编码"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="产品名称"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="规格型号"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="图号"
android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="产品" android:text="箱号"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="支数"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="单指标记码"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="对应连铸机"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="对应钢种"
android:textSize="12sp" />
<TextView
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="缺陷名称"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
...@@ -63,15 +142,10 @@ ...@@ -63,15 +142,10 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@android:color/white" /> android:background="@android:color/white" />
</LinearLayout> </LinearLayout>
<Button
android:id="@+id/btn_add"
android:layout_width="wrap_content" </HorizontalScrollView>
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20mm"
android:background="@color/blue_btn"
android:text="新建"
android:textColor="@color/white" />
</RelativeLayout> </RelativeLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout> </com.scwang.smartrefresh.layout.SmartRefreshLayout>
\ No newline at end of file
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="产品名称" android:text="销售公司"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
...@@ -43,16 +43,15 @@ ...@@ -43,16 +43,15 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="制单日期" android:text="任务状态"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="任务状态" android:text="制单日期"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
......
...@@ -19,12 +19,14 @@ ...@@ -19,12 +19,14 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingVertical="16mm"> android:paddingVertical="16mm">
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="反馈日期" android:text="客户信息"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
...@@ -33,7 +35,7 @@ ...@@ -33,7 +35,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="客户信息" android:text="炼钢厂"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
...@@ -42,7 +44,7 @@ ...@@ -42,7 +44,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="炼钢厂" android:text="连铸机"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
...@@ -51,16 +53,15 @@ ...@@ -51,16 +53,15 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="连铸机" android:text="状态"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="状态" android:text="反馈日期"
android:textColor="@color/flexible_text_sup" android:textColor="@color/flexible_text_sup"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
......
...@@ -3,50 +3,129 @@ ...@@ -3,50 +3,129 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/white" android:background="@color/white"
android:padding="10mm"> android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingVertical="16mm">
<TextView <TextView
android:id="@+id/tv_no" android:id="@+id/tv_no"
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="反馈单号" android:text="反馈单号"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_name" android:id="@+id/tv_name"
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="客户名称" android:text="客户名称"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_manager" android:id="@+id/tv_manager"
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="销售经理" android:text="销售经理"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_phone" android:id="@+id/tv_phone"
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="联系电话" android:text="联系电话"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_pro" android:id="@+id/tv_pro"
android:layout_width="0dp" android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="产品编码"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_pro_name"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="产品名称"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_spec"
android:layout_width="80mm"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="产品" android:text="规格型号"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView
android:id="@+id/tv_img_code"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="图号"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_box"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="箱号"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_num"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="支数"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_mark_code"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="单指标记码"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_machine"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="对应连铸机"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_steel"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="对应钢种"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_defect"
android:layout_width="80mm"
android:layout_height="wrap_content"
android:gravity="center"
android:text="缺陷名称"
android:textSize="12sp" />
</LinearLayout>
<View
style="@style/dividerX"
android:background="#FF86A0BC" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -24,21 +24,19 @@ ...@@ -24,21 +24,19 @@
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_time" android:id="@+id/tv_status"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="制单日期" android:text="任务状态"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_status" android:id="@+id/tv_time"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:textColor="@color/red" android:text="制单日期"
android:text="任务状态"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -5,14 +5,6 @@ ...@@ -5,14 +5,6 @@
android:background="@color/white" android:background="@color/white"
android:paddingVertical="13mm"> android:paddingVertical="13mm">
<TextView
android:id="@+id/tv_time"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="反馈日期"
android:textSize="12sp" />
<TextView <TextView
android:id="@+id/tv_client" android:id="@+id/tv_client"
...@@ -50,4 +42,13 @@ ...@@ -50,4 +42,13 @@
android:text="状态" android:text="状态"
android:textColor="@color/red" android:textColor="@color/red"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView
android:id="@+id/tv_time"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="反馈日期"
android:textSize="12sp" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/search"
android:title="筛选"
app:showAsAction="always" />
</menu>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论