提交 177039f5 authored 作者: lgd's avatar lgd

1.修改bug

2.//TODO 坩埚下单,mes其他页面,mes用户反馈空也展示,编辑任务担当无法修改
上级 5c50b4e1
package com.wd.workoffice.ui.activity.bat.work; package com.wd.workoffice.ui.activity.bat.work;
import android.text.Editable; import android.os.Bundle;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
...@@ -68,6 +67,8 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity { ...@@ -68,6 +67,8 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity {
TextView tvAgree; TextView tvAgree;
@BindView(R.id.ll_bottom) @BindView(R.id.ll_bottom)
LinearLayout llBottom; LinearLayout llBottom;
@BindView(R.id.ll_check)
LinearLayout llCheck;
private MoneyOutBean.RecordsBean dataBean; private MoneyOutBean.RecordsBean dataBean;
private Map<String, Object> param; private Map<String, Object> param;
...@@ -80,16 +81,19 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity { ...@@ -80,16 +81,19 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity {
tvCode.setText(dataBean.getSerialNumber()); tvCode.setText(dataBean.getSerialNumber());
// tvDesc.setText(); // tvDesc.setText();
tvPerson.setText(dataBean.getApplierName()); tvPerson.setText(dataBean.getApplierName());
tvRemark.setText(dataBean.getAuditRemark()); tvRemark.setText(dataBean.getApplyRemark());
tvReviewRemark.setText(dataBean.getApplyRemark()); tvReviewRemark.setText(dataBean.getAuditRemark());
tvPrice.setText(MathUtils.converData(String.valueOf(dataBean.getApplyAmount()), 3)); tvPrice.setText(MathUtils.converData(String.valueOf(dataBean.getApplyAmount()), 3));
tvProcess.setText(dataBean.getProcessName()); tvProcess.setText(dataBean.getProcessName());
tvReview.setText(dataBean.getUpdatedByName()); tvReview.setText(dataBean.getUpdatedByName());
tvReviewTime.setText(dataBean.getUpdatedTime()); tvReviewTime.setText(dataBean.getUpdatedTime());
tvStatus.setText(WorkUtils.getFinancialStatus(Integer.valueOf(dataBean.getStatus()))); tvStatus.setText(WorkUtils.getFinancialStatus(Integer.valueOf(dataBean.getStatus())));
tvTime.setText(dataBean.getCreatedTime()); tvTime.setText(dataBean.getCreatedTime());
if (!TextUtils.equals(dataBean.getStatus(),"0")){ if (!TextUtils.equals(dataBean.getStatus(), "0")) {
llBottom.setVisibility(View.GONE); llBottom.setVisibility(View.GONE);
llCheck.setVisibility(View.VISIBLE);
} else {
llCheck.setVisibility(View.GONE);
} }
param = WorkUtils.simpleParam(); param = WorkUtils.simpleParam();
param.put("id", dataBean.getId()); param.put("id", dataBean.getId());
...@@ -147,7 +151,7 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity { ...@@ -147,7 +151,7 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity {
TextView tvNum = view.findViewById(R.id.tv_num); TextView tvNum = view.findViewById(R.id.tv_num);
TextView tvCancel = view.findViewById(R.id.tv_cancel); TextView tvCancel = view.findViewById(R.id.tv_cancel);
EditText etRemark = view.findViewById(R.id.et_content); EditText etRemark = view.findViewById(R.id.et_content);
WorkUtils.addNumListener(etRemark,tvNum); WorkUtils.addNumListener(etRemark, tvNum);
builder.setView(view); builder.setView(view);
AlertDialog addCartDialog = builder.create(); AlertDialog addCartDialog = builder.create();
tvOk.setOnClickListener(new View.OnClickListener() { tvOk.setOnClickListener(new View.OnClickListener() {
...@@ -204,4 +208,5 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity { ...@@ -204,4 +208,5 @@ public class WorkFinancialDetailActivity extends WorkToolBarActivity {
} }
}); });
} }
} }
...@@ -77,7 +77,7 @@ public class WorkFinancialPayActivity extends WorkToolBarActivity { ...@@ -77,7 +77,7 @@ public class WorkFinancialPayActivity extends WorkToolBarActivity {
//0未审核 1已通过 2不通过 //0未审核 1已通过 2不通过
if (TextUtils.equals(value, "全部类型")) { if (TextUtils.equals(value, "全部类型")) {
param.put("status", ""); param.put("status", "");
} else if (TextUtils.equals(value, "审核")) { } else if (TextUtils.equals(value, "审核")) {
param.put("status", "0"); param.put("status", "0");
} else if (TextUtils.equals(value, "已通过")) { } else if (TextUtils.equals(value, "已通过")) {
param.put("status", "1"); param.put("status", "1");
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
>
<LinearLayout <LinearLayout
android:id="@+id/ll_bottom" android:id="@+id/ll_bottom"
...@@ -38,8 +37,8 @@ ...@@ -38,8 +37,8 @@
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_above="@id/ll_bottom" android:layout_height="match_parent"
android:layout_height="match_parent"> android:layout_above="@id/ll_bottom">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -245,7 +244,7 @@ ...@@ -245,7 +244,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="备注" android:text="申请备注"
android:textSize="14sp" /> android:textSize="14sp" />
<TextView <TextView
...@@ -261,6 +260,12 @@ ...@@ -261,6 +260,12 @@
<View style="@style/dividerX" /> <View style="@style/dividerX" />
<LinearLayout
android:id="@+id/ll_check"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -340,6 +345,7 @@ ...@@ -340,6 +345,7 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
......
...@@ -114,13 +114,14 @@ ...@@ -114,13 +114,14 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/tv_stock4"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
android:textSize="22sp" /> android:textSize="22sp" />
<TextView <TextView
android:id="@+id/tv_stock4"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="5mm" android:layout_marginTop="5mm"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论