@@ -7,11 +7,14 @@ function renderHome() {
// 回款提醒
// 回款提醒
const yrRev = m . revenue _annual || 0 , yrPay = m . payment _annual || 0 , yrUnpaid = yrRev - yrPay ;
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 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 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\">' +
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>' +
'<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>' : '' ;
'</div>' : '' ;
const rows1 = [
const rows1 = [
[ "年度累计" , moneyInt ( m . signed _annual || m . signed _amount ) ] ,
[ "年度累计" , moneyInt ( m . signed _annual || m . signed _amount ) ] ,