|
@@ -423,7 +423,7 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
|
|
|
#region 已审核过的日付申请不可编辑
|
|
|
|
|
|
- Fin_DailyFeePayment _DailyFeePayment = await _sqlSugar.Queryable<Fin_DailyFeePayment>().Where(it => it.Id == dto.Id && it.IsDel == 0).FirstAsync();
|
|
|
+ var _DailyFeePayment = await _sqlSugar.Queryable<Fin_DailyFeePayment>().Where(it => it.Id == dto.Id && it.IsDel == 0).FirstAsync();
|
|
|
if (_DailyFeePayment != null)
|
|
|
{
|
|
|
//if (_DailyFeePayment.FAudit != 0 && _DailyFeePayment.MAudit != 0)
|
|
@@ -442,10 +442,32 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
// return result;
|
|
|
//}
|
|
|
|
|
|
+
|
|
|
if (_DailyFeePayment.FAudit == 1 || _DailyFeePayment.MAudit == 1)
|
|
|
{
|
|
|
- result.Msg = "审核已通过,不可修改!";
|
|
|
- return result;
|
|
|
+ var setData = await _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.Id == dto.PriceTypeId).FirstAsync();
|
|
|
+ if (setData != null)
|
|
|
+ {
|
|
|
+ if (setData.STid == 90)
|
|
|
+ {
|
|
|
+ if (_DailyFeePayment.IsPay == 1)
|
|
|
+ {
|
|
|
+ result.Msg = "该笔费用已付款,不可修改!";
|
|
|
+ return result;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ result.Msg = "审核已通过,不可修改!";
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ result.Msg = "审核已通过,不可修改!";
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|