Explorar o código

2024-09-29 修改

修改:
1. 财务模块 日付申请 数据删除权限(日付申请删除权限,且经理和财务均未审核)
zhaiy hai 6 meses
pai
achega
0fad697a0c

+ 6 - 0
app/src/main/java/com/pan_american/android/data/model/daily_payment/adapter/DailyPaymentListAdapter.kt

@@ -173,6 +173,12 @@ class DailyPaymentListAdapter(private var itemList: ArrayList<DailyPaymentCardLi
                         }
                     }
                 }
+
+                if (OASystem.authorization(OASystem.DAILY_PAYMENT, OASystem.DELETE) && it.fAudit == 0 && it.mAudit == 0) {
+                    deleteButton.visibility = View.VISIBLE
+                } else {
+                    deleteButton.visibility = View.GONE
+                }
             }
         }
     }