|
@@ -20,6 +20,7 @@ class GroundConveyListAdapter(private val groundConveyList: ArrayList<GroundConv
|
|
|
|
|
|
inner class ViewHolder(view: View): RecyclerView.ViewHolder(view) {
|
|
inner class ViewHolder(view: View): RecyclerView.ViewHolder(view) {
|
|
val groundConveyArea: TextView = view.findViewById(R.id.group_convey_area)
|
|
val groundConveyArea: TextView = view.findViewById(R.id.group_convey_area)
|
|
|
|
+ val paymentName: TextView = view.findViewById(R.id.payment_name)
|
|
val servicePrice: TextView = view.findViewById(R.id.service_price)
|
|
val servicePrice: TextView = view.findViewById(R.id.service_price)
|
|
val thisTimePayment: TextView = view.findViewById(R.id.this_time_payment)
|
|
val thisTimePayment: TextView = view.findViewById(R.id.this_time_payment)
|
|
val balancePayment: TextView = view.findViewById(R.id.balance_payment)
|
|
val balancePayment: TextView = view.findViewById(R.id.balance_payment)
|
|
@@ -58,12 +59,17 @@ class GroundConveyListAdapter(private val groundConveyList: ArrayList<GroundConv
|
|
groundConveyList[position].apply {
|
|
groundConveyList[position].apply {
|
|
|
|
|
|
holder.groundConveyArea.text = area
|
|
holder.groundConveyArea.text = area
|
|
|
|
+ holder.paymentName.text = priceName.ifBlank {
|
|
|
|
+ "暂无"
|
|
|
|
+ }
|
|
holder.servicePrice.text = String.format("%.2f (%s)", payMoney, currencyStr)
|
|
holder.servicePrice.text = String.format("%.2f (%s)", payMoney, currencyStr)
|
|
holder.thisTimePayment.text = String.format("%.2f (%s)", payThenMoney, currencyStr)
|
|
holder.thisTimePayment.text = String.format("%.2f (%s)", payThenMoney, currencyStr)
|
|
holder.balancePayment.text = String.format("%.2f (%s)", remainingBalance, currencyStr)
|
|
holder.balancePayment.text = String.format("%.2f (%s)", remainingBalance, currencyStr)
|
|
holder.serviceDuringTime.text = String.format("%s - %s", serviceStartTime, serviceEndTime)
|
|
holder.serviceDuringTime.text = String.format("%s - %s", serviceStartTime, serviceEndTime)
|
|
|
|
|
|
- holder.priceType.text = priceTypeStr
|
|
|
|
|
|
+ holder.priceType.text = priceTypeStr.ifBlank {
|
|
|
|
+ "暂无"
|
|
|
|
+ }
|
|
|
|
|
|
when(isAuditGM) {
|
|
when(isAuditGM) {
|
|
0 -> {
|
|
0 -> {
|