提交 f3ff2d29 authored 作者: lgd's avatar lgd

1.工单详情已评价

2.//TODO erp用户是否选择新部门为空,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes,刷新token
上级 08b617ff
...@@ -92,7 +92,7 @@ public class MesTicketDetailFinishActivity extends WorkToolBarActivity { ...@@ -92,7 +92,7 @@ public class MesTicketDetailFinishActivity extends WorkToolBarActivity {
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
starAdapter.setScore(position + 1); starAdapter.setScore(position + 1);
tvScore.setText(String.format("%s分", position + 1)); tvScore.setText(String.format("%s分", position + 1));
startActivity(MesTicketDetailReviewActivity.class);
} }
}); });
builder.setView(view); builder.setView(view);
......
package com.wd.workoffice.ui.activity.mes.ticket; package com.wd.workoffice.ui.activity.mes.ticket;
import android.os.Bundle;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
...@@ -10,10 +11,17 @@ import com.wd.workoffice.app.WorkToolBarActivity; ...@@ -10,10 +11,17 @@ import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.AccountBean; import com.wd.workoffice.bean.AccountBean;
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.ImgAdapter;
import com.wd.workoffice.ui.adapter.StarAdapter;
import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList;
import java.util.List;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView; import butterknife.BindView;
import butterknife.ButterKnife; import butterknife.ButterKnife;
import butterknife.OnClick;
import flexible.xd.android_base.network.rtfhttp.Transformer; import flexible.xd.android_base.network.rtfhttp.Transformer;
import io.reactivex.disposables.Disposable; import io.reactivex.disposables.Disposable;
...@@ -26,45 +34,36 @@ import io.reactivex.disposables.Disposable; ...@@ -26,45 +34,36 @@ import io.reactivex.disposables.Disposable;
public class MesTicketDetailReviewActivity extends WorkToolBarActivity { public class MesTicketDetailReviewActivity extends WorkToolBarActivity {
@BindView(R.id.tv_code) @BindView(R.id.tv_code)
TextView tvCode; TextView tvCode;
@BindView(R.id.tv_client)
TextView tvClient;
@BindView(R.id.rl_client) @BindView(R.id.rl_client)
RelativeLayout rlClient; RelativeLayout rlClient;
@BindView(R.id.tv_company)
TextView tvCompany;
@BindView(R.id.rl_company) @BindView(R.id.rl_company)
RelativeLayout rlCompany; RelativeLayout rlCompany;
@BindView(R.id.tv_manager) @BindView(R.id.rv_star)
TextView tvManager; RecyclerView rvStar;
@BindView(R.id.rl_manager) @BindView(R.id.rv_data)
RelativeLayout rlManager; RecyclerView rvData;
@BindView(R.id.tv_desc)
TextView tvDesc;
@BindView(R.id.tv_take_on)
TextView tvTakeOn;
@BindView(R.id.rl_take_on)
RelativeLayout rlTakeOn;
@BindView(R.id.tv_person)
TextView tvPerson;
@BindView(R.id.tv_start_time)
TextView tvStartTime;
@BindView(R.id.tv_end_time)
TextView tvEndTime;
@BindView(R.id.tv_time)
TextView tvTime;
@BindView(R.id.rl_time)
RelativeLayout rlTime;
@BindView(R.id.rl_log)
RelativeLayout rlLog;
private AccountBean dataBean; private AccountBean dataBean;
private StarAdapter starAdapter;
private List<Object> imgList;
private ImgAdapter imgAdapter;
@Override @Override
protected void initView() { protected void initView() {
ButterKnife.bind(this); ButterKnife.bind(this);
rvData.setLayoutManager(new LinearLayoutManager(this, RecyclerView.HORIZONTAL, false));
rvStar.setLayoutManager(new LinearLayoutManager(this, RecyclerView.HORIZONTAL, false));
} }
@Override @Override
protected void initData() { protected void initData() {
imgList = new ArrayList<>();
imgAdapter = new ImgAdapter(R.layout.item_mes_ticket_img, imgList);
imgAdapter.bindToRecyclerView(rvData);
starAdapter = WorkUtils.starView(rvStar, this);
imgList.add(null);
imgList.add(null);
imgList.add(null);
imgAdapter.notifyDataSetChanged();
getData(); getData();
} }
...@@ -108,7 +107,4 @@ public class MesTicketDetailReviewActivity extends WorkToolBarActivity { ...@@ -108,7 +107,4 @@ public class MesTicketDetailReviewActivity extends WorkToolBarActivity {
} }
@OnClick(R.id.rl_log)
public void onViewClicked() {
}
} }
...@@ -58,16 +58,18 @@ ...@@ -58,16 +58,18 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:paddingHorizontal="10mm"> android:paddingVertical="9mm">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_star"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="4.5分" android:layout_marginHorizontal="10mm"
android:text="0分"
android:textSize="19sp" /> android:textSize="19sp" />
</LinearLayout> </LinearLayout>
...@@ -236,8 +238,10 @@ ...@@ -236,8 +238,10 @@
android:textSize="14sp" /> android:textSize="14sp" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_data"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="40mm"
android:paddingHorizontal="10mm" /> android:paddingHorizontal="10mm" />
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论