瀏覽代碼

update dashboard

tags/Baseline_30082024_FRONTEND_UAT
Mac\David 1 年之前
父節點
當前提交
4835921ff9
共有 3 個檔案被更改,包括 40 行新增40 行删除
  1. +1
    -1
      src/components/ProgressByClient/ProgressByClient.tsx
  2. +17
    -17
      src/components/ProgressByTeam/ProgressByTeam.tsx
  3. +22
    -22
      src/components/ProjectFinancialSummary/ProjectFinancialSummary.tsx

+ 1
- 1
src/components/ProgressByClient/ProgressByClient.tsx 查看文件

@@ -511,7 +511,7 @@ const ProgressByClient: React.FC<Props> = () => {
</div> */} </div> */}
<CardHeader <CardHeader
className="text-slate-500" className="text-slate-500"
title="Current Stage Due Date"
title="Resource Consumption and Coming Milestone"
/> />
<div <div
style={{ display: "inline-block", width: "99%", marginLeft: 10 }} style={{ display: "inline-block", width: "99%", marginLeft: 10 }}


+ 17
- 17
src/components/ProgressByTeam/ProgressByTeam.tsx 查看文件

@@ -250,34 +250,34 @@ const ProgressByTeam: React.FC = () => {
flex: 0.1, flex: 0.1,
}, },
{ {
id: "project",
field: "project",
id: "projectName",
field: "projectName",
headerName: "Project", headerName: "Project",
flex: 1,
minWidth:300
}, },
{ {
id: "team", id: "team",
field: "team", field: "team",
headerName: "Team", headerName: "Team",
flex: 0.8,
minWidth:50
}, },
{ {
id: "teamLeader",
field: "teamLeader",
id: "teamLead",
field: "teamLead",
headerName: "Team Leader", headerName: "Team Leader",
flex: 0.8,
minWidth: 70
}, },
{ {
id: "currentStage",
field: "currentStage",
headerName: "Current Stage",
flex: 1,
id: "expectedStage",
field: "expectedStage",
headerName: "Expected Stage",
minWidth: 300
}, },
{ {
id: "budgetedManhour", id: "budgetedManhour",
field: "budgetedManhour", field: "budgetedManhour",
headerName: "Budgeted Manhour", headerName: "Budgeted Manhour",
flex: 0.8,
minWidth: 70
}, },
{ {
id: "spentManhour", id: "spentManhour",
@@ -292,7 +292,7 @@ const ProgressByTeam: React.FC = () => {
return <span>{params.row.spentManhour}</span>; return <span>{params.row.spentManhour}</span>;
} }
}, },
flex: 0.8,
minWidth: 70
}, },
{ {
id: "remainedManhour", id: "remainedManhour",
@@ -307,13 +307,13 @@ const ProgressByTeam: React.FC = () => {
return <span>{params.row.remainedManhour}</span>; return <span>{params.row.remainedManhour}</span>;
} }
}, },
flex: 1,
minWidth: 70
}, },
{ {
id: "comingPaymentMilestone", id: "comingPaymentMilestone",
field: "comingPaymentMilestone", field: "comingPaymentMilestone",
headerName: "Coming Payment Milestone", headerName: "Coming Payment Milestone",
flex: 1,
minWidth: 100
}, },
{ {
id: "alert", id: "alert",
@@ -330,7 +330,7 @@ const ProgressByTeam: React.FC = () => {
return <span></span>; return <span></span>;
} }
}, },
flex: 0.2,
flex: 0.1,
}, },
]; ];


@@ -585,7 +585,7 @@ const ProgressByTeam: React.FC = () => {
</div> */} </div> */}
<CardHeader <CardHeader
className="text-slate-500" className="text-slate-500"
title="Current Stage Due Date"
title="Resource Consumption and Coming Milestone"
/> />
<div <div
style={{ display: "inline-block", width: "99%", marginLeft: 10 }} style={{ display: "inline-block", width: "99%", marginLeft: 10 }}


+ 22
- 22
src/components/ProjectFinancialSummary/ProjectFinancialSummary.tsx 查看文件

@@ -84,25 +84,25 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'customerCode', id: 'customerCode',
field: 'customerCode', field: 'customerCode',
headerName: "Client Code", headerName: "Client Code",
flex: 0.7,
minWidth:50
}, },
{ {
id: 'customerName', id: 'customerName',
field: 'customerName', field: 'customerName',
headerName: "Client Name", headerName: "Client Name",
flex: 1,
minWidth:80
}, },
{ {
id: 'projectNo', id: 'projectNo',
field: 'projectNo', field: 'projectNo',
headerName: "Total Project Involved", headerName: "Total Project Involved",
flex: 1,
minWidth:80
}, },
{ {
id: 'cashFlowStatus', id: 'cashFlowStatus',
field: 'cashFlowStatus', field: 'cashFlowStatus',
headerName: "Cash Flow Status", headerName: "Cash Flow Status",
flex: 1,
minWidth:100,
renderCell: (params:any) => { renderCell: (params:any) => {
console.log(params.row) console.log(params.row)
if (params.row.cashFlowStatus === "Positive") { if (params.row.cashFlowStatus === "Positive") {
@@ -120,7 +120,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'cpi', id: 'cpi',
field: 'cpi', field: 'cpi',
headerName: "CPI", headerName: "CPI",
flex: 0.7,
minWidth:50,
renderCell: (params:any) => { renderCell: (params:any) => {
if (params.row.cpi >= 1) { if (params.row.cpi >= 1) {
return ( return (
@@ -137,7 +137,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'totalFee', id: 'totalFee',
field: 'totalFee', field: 'totalFee',
headerName: "Total Fees (HKD)", headerName: "Total Fees (HKD)",
flex: 1,
minWidth:50,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalFee}</span> <span>${params.row.totalFee}</span>
@@ -148,7 +148,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'totalBudget', id: 'totalBudget',
field: 'totalBudget', field: 'totalBudget',
headerName: "Total Budget (HKD)", headerName: "Total Budget (HKD)",
flex: 1,
minWidth:50,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalBudget}</span> <span>${params.row.totalBudget}</span>
@@ -159,7 +159,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'cumulativeExpenditure', id: 'cumulativeExpenditure',
field: 'cumulativeExpenditure', field: 'cumulativeExpenditure',
headerName: "Total Cumulative Expenditure (HKD)", headerName: "Total Cumulative Expenditure (HKD)",
flex: 1,
minWidth:280,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.cumulativeExpenditure}</span> <span>${params.row.cumulativeExpenditure}</span>
@@ -170,7 +170,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'totalInvoiced', id: 'totalInvoiced',
field: 'totalInvoiced', field: 'totalInvoiced',
headerName: "Total Invoiced Amount (HKD)", headerName: "Total Invoiced Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalInvoiced}</span> <span>${params.row.totalInvoiced}</span>
@@ -181,7 +181,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'totalUnInvoiced', id: 'totalUnInvoiced',
field: 'totalUnInvoiced', field: 'totalUnInvoiced',
headerName: "Total Un-invoiced Amount (HKD)", headerName: "Total Un-invoiced Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalUninvoiced}</span> <span>${params.row.totalUninvoiced}</span>
@@ -192,7 +192,7 @@ const ProjectFinancialSummary: React.FC = () => {
id: 'totalReceived', id: 'totalReceived',
field: 'totalReceived', field: 'totalReceived',
headerName: "Total Received Amount (HKD)", headerName: "Total Received Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalReceived}</span> <span>${params.row.totalReceived}</span>
@@ -255,25 +255,25 @@ const columns2 = [
id: 'projectCode', id: 'projectCode',
field: 'projectCode', field: 'projectCode',
headerName: "Project Code", headerName: "Project Code",
flex: 0.7,
minWidth:50,
}, },
{ {
id: 'projectName', id: 'projectName',
field: 'projectName', field: 'projectName',
headerName: "Project Name", headerName: "Project Name",
flex: 1,
minWidth:50,
}, },
{ {
id: 'customerName', id: 'customerName',
field: 'customerName', field: 'customerName',
headerName: "Client Name", headerName: "Client Name",
flex: 1,
minWidth:50,
}, },
{ {
id: 'cashFlowStatus', id: 'cashFlowStatus',
field: 'cashFlowStatus', field: 'cashFlowStatus',
headerName: "Cash Flow Status", headerName: "Cash Flow Status",
flex: 1,
minWidth:80,
renderCell: (params:any) => { renderCell: (params:any) => {
if (params.row.cashFlowStatus === "Positive") { if (params.row.cashFlowStatus === "Positive") {
return ( return (
@@ -290,7 +290,7 @@ const columns2 = [
id: "cpi", id: "cpi",
field: "cpi", field: "cpi",
headerName: "CPI", headerName: "CPI",
flex: 0.7,
minWidth:50,
renderCell: (params: any) => { renderCell: (params: any) => {
if (params.row.cpi >= 1) { if (params.row.cpi >= 1) {
return <span className="text-lime-500">{params.row.cpi}</span>; return <span className="text-lime-500">{params.row.cpi}</span>;
@@ -304,7 +304,7 @@ const columns2 = [
id: 'totalFees', id: 'totalFees',
field: 'totalFees', field: 'totalFees',
headerName: "Total Fees (HKD)", headerName: "Total Fees (HKD)",
flex: 1,
minWidth:50,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalFee}</span> <span>${params.row.totalFee}</span>
@@ -315,7 +315,7 @@ const columns2 = [
id: 'totalBudget', id: 'totalBudget',
field: 'totalBudget', field: 'totalBudget',
headerName: "Total Budget (HKD)", headerName: "Total Budget (HKD)",
flex: 1,
minWidth:50,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalBudget}</span> <span>${params.row.totalBudget}</span>
@@ -326,7 +326,7 @@ const columns2 = [
id: 'totalCumulativeExpenditure', id: 'totalCumulativeExpenditure',
field: 'totalCumulativeExpenditure', field: 'totalCumulativeExpenditure',
headerName: "Total Cumulative Expenditure (HKD)", headerName: "Total Cumulative Expenditure (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.cumulativeExpenditure}</span> <span>${params.row.cumulativeExpenditure}</span>
@@ -337,7 +337,7 @@ const columns2 = [
id: 'totalInvoicedAmount', id: 'totalInvoicedAmount',
field: 'totalInvoicedAmount', field: 'totalInvoicedAmount',
headerName: "Total Invoiced Amount (HKD)", headerName: "Total Invoiced Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalInvoiced}</span> <span>${params.row.totalInvoiced}</span>
@@ -348,7 +348,7 @@ const columns2 = [
id: 'totalUnInvoicedAmount', id: 'totalUnInvoicedAmount',
field: 'totalUnInvoicedAmount', field: 'totalUnInvoicedAmount',
headerName: "Total Un-invoiced Amount (HKD)", headerName: "Total Un-invoiced Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalUninvoiced}</span> <span>${params.row.totalUninvoiced}</span>
@@ -359,7 +359,7 @@ const columns2 = [
id: 'totalReceivedAmount', id: 'totalReceivedAmount',
field: 'totalReceivedAmount', field: 'totalReceivedAmount',
headerName: "Total Received Amount (HKD)", headerName: "Total Received Amount (HKD)",
flex: 1,
minWidth:250,
renderCell: (params:any) => { renderCell: (params:any) => {
return ( return (
<span>${params.row.totalReceived}</span> <span>${params.row.totalReceived}</span>


Loading…
取消
儲存