|
|
|
@@ -205,6 +205,7 @@ function renderFinanceDeptMatrixData(data, container) {
|
|
|
|
var vBtns = financeBtnBar('matrix');
|
|
|
|
var vBtns = financeBtnBar('matrix');
|
|
|
|
var cards = '';
|
|
|
|
var cards = '';
|
|
|
|
for (var mi = 11; mi >= 0; mi--) {
|
|
|
|
for (var mi = 11; mi >= 0; mi--) {
|
|
|
|
|
|
|
|
if (isAllZero(data, tenants, ['project_gross','dept_expense','profit'], mi)) continue;
|
|
|
|
var th = '<tr class="border-b border-slate-200"><th class="py-1.5 text-left text-slate-500 whitespace-nowrap">指标</th><th class="py-1.5 text-right font-semibold text-slate-700 whitespace-nowrap">月度合计</th>';
|
|
|
|
var th = '<tr class="border-b border-slate-200"><th class="py-1.5 text-left text-slate-500 whitespace-nowrap">指标</th><th class="py-1.5 text-right font-semibold text-slate-700 whitespace-nowrap">月度合计</th>';
|
|
|
|
for (var ti = 0; ti < tenants.length; ti++) { th += '<th class="py-1.5 text-right font-semibold text-slate-600 whitespace-nowrap">' + sn[ti] + '</th>'; }
|
|
|
|
for (var ti = 0; ti < tenants.length; ti++) { th += '<th class="py-1.5 text-right font-semibold text-slate-600 whitespace-nowrap">' + sn[ti] + '</th>'; }
|
|
|
|
th += '</tr>';
|
|
|
|
th += '</tr>';
|
|
|
|
@@ -233,6 +234,7 @@ function renderFinanceCfMatrixData(data, container) {
|
|
|
|
var vBtns = financeBtnBar('cf_matrix');
|
|
|
|
var vBtns = financeBtnBar('cf_matrix');
|
|
|
|
var cards = '';
|
|
|
|
var cards = '';
|
|
|
|
for (var mi = 11; mi >= 0; mi--) {
|
|
|
|
for (var mi = 11; mi >= 0; mi--) {
|
|
|
|
|
|
|
|
if (isAllZero(data, tenants, ['project_cf','dept_cf','bl_cf'], mi)) continue;
|
|
|
|
var th = '<tr class="border-b border-slate-200"><th class="py-1.5 text-left text-slate-500 whitespace-nowrap">指标</th><th class="py-1.5 text-right font-semibold text-slate-700 whitespace-nowrap">月度合计</th>';
|
|
|
|
var th = '<tr class="border-b border-slate-200"><th class="py-1.5 text-left text-slate-500 whitespace-nowrap">指标</th><th class="py-1.5 text-right font-semibold text-slate-700 whitespace-nowrap">月度合计</th>';
|
|
|
|
for (var ti = 0; ti < tenants.length; ti++) { th += '<th class="py-1.5 text-right font-semibold text-slate-600 whitespace-nowrap">' + sn[ti] + '</th>'; }
|
|
|
|
for (var ti = 0; ti < tenants.length; ti++) { th += '<th class="py-1.5 text-right font-semibold text-slate-600 whitespace-nowrap">' + sn[ti] + '</th>'; }
|
|
|
|
th += '</tr>';
|
|
|
|
th += '</tr>';
|
|
|
|
|