@@ -7,11 +7,14 @@ function renderHome() {
// 回款提醒
const yrRev = m . revenue _annual || 0 , yrPay = m . payment _annual || 0 , yrUnpaid = yrRev - yrPay ;
const yrPayRate = yrRev > 0 ? Math . round ( yrPay / yrRev * 100 ) : 0 ;
const yrUnpaidWan = Math . round ( yrUnpaid / 10000 ) ;
const yrUnpaidWan = Math . round ( Math . abs ( yrUnpaid ) / 10000 ) ;
const payRateCls = yrPayRate < 30 ? 'text-red-600' : yrPayRate < 80 ? 'text-amber-600' : 'text-green-600' ;
const unpaidLabel = yrUnpaid >= 0
? '你还有 <strong class=\"text-red-600\">' + yrUnpaidWan + '万</strong> 未回款'
: '超额回款 <strong class=\"text-green-600\">' + yrUnpaidWan + '万</strong>' ;
const payReminder = yrRev > 0 ? '<div class=\"flex items-center gap-3 px-4 py-3 rounded-lg border\" style=\"background:linear-gradient(135deg,#fef3c7,#fde68a);border-color:#f59e0b\">' +
'<i data-lucide=\"bell-ring\" class=\"text-amber-600 flex-shrink-0\" style=\"width:18px;height:18px\"></i>' +
'<span class=\"text-sm text-amber-900\"><strong>回款提醒:</strong>本年度确收 <strong>' + moneyInt ( yrRev ) + '</strong>,回款 <strong>' + moneyInt ( yrPay ) + '</strong>, 你还有 <strong class=\"text-red-600\"> ' + yrU npaidWan + '万</strong> 未回款 ,当前回款率:<strong class=\"' + payRateCls + '\">' + yrPayRate + '%</strong></span>' +
'<span class=\"text-sm text-amber-900\"><strong>回款提醒:</strong>本年度确收 <strong>' + moneyInt ( yrRev ) + '</strong>,回款 <strong>' + moneyInt ( yrPay ) + '</strong>, ' + u npaidLabel + ',当前回款率:<strong class=\"' + payRateCls + '\">' + yrPayRate + '%</strong></span>' +
'</div>' : '' ;
const rows1 = [
[ "年度累计" , moneyInt ( m . signed _annual || m . signed _amount ) ] ,
@@ -140,7 +143,7 @@ function renderHome() {
] ] ,
[ '项目现金流' , [ m . cashflow _annual || 0 , m . cashflow _q2 || 0 , m . cashflow _month || 0 , m . cashflow _prev _q || 0 , m . cashflow _prev _month || 0 ] ,
[ m . cashflow _q2 || 0 , m . cashflow _prev _q || 0 ] , [ m . cashflow _month || 0 , m . cashflow _prev _month || 0 ] ] ,
[ '部门费用(已付) ' , [ m . expense _paid _annual || 0 , m . expense _paid _q2 || 0 , m . expense _paid _month || 0 , m . expense _paid _prev _q || 0 , m . expense _paid _prev _month || 0 ] ,
[ '部门费用现金流 ' , [ m . expense _paid _annual || 0 , m . expense _paid _q2 || 0 , m . expense _paid _month || 0 , m . expense _paid _prev _q || 0 , m . expense _paid _prev _month || 0 ] ,
[ m . expense _paid _q2 || 0 , m . expense _paid _prev _q || 0 ] , [ m . expense _paid _month || 0 , m . expense _paid _prev _month || 0 ] ] ,
[ '部门现金流' , [ m . dept _cf _annual || 0 , m . dept _cf _q2 || 0 , m . dept _cf _month || 0 , m . dept _cf _prev _q || 0 , m . dept _cf _prev _month || 0 ] ,
[ m . dept _cf _q2 || 0 , m . dept _cf _prev _q || 0 ] , [ m . dept _cf _month || 0 , m . dept _cf _prev _month || 0 ] ]