fix(ui/export): centrage login, vitesse ticker, alignement KPI/budget/hauteur table PDF, désignation PPTX
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* Dernière : En cours / Hors service (4 cols)
|
||||
*/
|
||||
const PptxGenJS = require('pptxgenjs');
|
||||
const { parseNum, selectVal, parseDateFR, formatDateFR } = require('./calc');
|
||||
const { parseNum, selectVal, parseDateFR, formatDateFR, buildRef } = require('./calc');
|
||||
|
||||
const REGION_COLORS = {
|
||||
Gabes:'0891B2', Gafsa:'059669', Kebili:'7C3AED',
|
||||
@@ -113,7 +113,7 @@ async function generatePptx(actifs, _clotures, filtered) {
|
||||
const phy = parseNum(r.taux_phy || r.avt_phy);
|
||||
return [
|
||||
txt(r.region || '—', { fontSize: 7.5, color: REGION_COLORS[r.region] || '1E293B', bold: true }),
|
||||
txt(r.ref || '', { fontSize: 7, color: '1E293B' }),
|
||||
txt(buildRef(r), { fontSize: 7, color: '1E293B' }),
|
||||
txt(r.projet || '', { fontSize: 7.5, color: '1E293B' }),
|
||||
txt(r.entrepreneur || '', { fontSize: 7.5, color: '1E293B' }),
|
||||
txt(periode(r), { fontSize: 6.5, color: '475569' }),
|
||||
@@ -156,7 +156,7 @@ async function generatePptx(actifs, _clotures, filtered) {
|
||||
const d = getDelai(r);
|
||||
const al = niveauAlerte(d);
|
||||
return [
|
||||
txt(r.ref || '', { fontSize: 7, color: '1E293B' }),
|
||||
txt(buildRef(r), { fontSize: 7, color: '1E293B' }),
|
||||
txt(r.projet || '', { fontSize: 7.5, color: '1E293B' }),
|
||||
txt(r.entrepreneur || '', { fontSize: 7.5, color: '1E293B' }),
|
||||
txt(periode(r), { fontSize: 6.5, color: '475569' }),
|
||||
@@ -189,7 +189,7 @@ async function generatePptx(actifs, _clotures, filtered) {
|
||||
txt(t, { bold: true, color: 'FFFFFF', fill: '1E40AF', fontSize: 9, valign: 'middle' }));
|
||||
|
||||
const ecRows = enCours.slice(0, 20).map(r => [
|
||||
txt(r.ref || r.id_marche || '', { fontSize: 8, color: '1E293B' }),
|
||||
txt(buildRef(r), { fontSize: 8, color: '1E293B' }),
|
||||
txt(r.projet || '', { fontSize: 8, color: '1E293B' }),
|
||||
txt(r.entrepreneur || '', { fontSize: 8, color: '1E293B' }),
|
||||
txt(selectVal(r.observation) || '—', { fontSize: 8, color: '475569' }),
|
||||
|
||||
Reference in New Issue
Block a user