Browse Source

支払一覧項目修正

develop
sosuke.iwabuchi 2 years ago
parent
commit
02b4b07f55
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      src/api/season-ticket-contract.ts
  2. +10
    -0
      src/pages/dashboard/contract/component/PayingPlanList.tsx

+ 1
- 0
src/api/season-ticket-contract.ts View File

@@ -34,6 +34,7 @@ export type PaymentPlan = {
payment_method: string | null; payment_method: string | null;
payment_plan_date: string | null; payment_plan_date: string | null;
payment_status: string | null; payment_status: string | null;
payment_name: string | null;
revision: number; revision: number;
}; };




+ 10
- 0
src/pages/dashboard/contract/component/PayingPlanList.tsx View File

@@ -4,6 +4,7 @@ import {
Table, Table,
TableBody, TableBody,
TableCell, TableCell,
TableHead,
TableRow, TableRow,
Typography, Typography,
} from "@mui/material"; } from "@mui/material";
@@ -49,6 +50,14 @@ export default function PayingPlanList({}: PayingPlanListProps) {
<Paper sx={{ p: 2 }}> <Paper sx={{ p: 2 }}>
<Typography variant="h5">お支払い状況</Typography> <Typography variant="h5">お支払い状況</Typography>
<Table> <Table>
<TableHead>
<TableRow>
<TableCell>支払予定日</TableCell>
<TableCell>名称</TableCell>
<TableCell>支払方法</TableCell>
<TableCell>状況</TableCell>
</TableRow>
</TableHead>
<TableBody> <TableBody>
{paymentPlans {paymentPlans
.filter((ele, index) => { .filter((ele, index) => {
@@ -58,6 +67,7 @@ export default function PayingPlanList({}: PayingPlanListProps) {
return ( return (
<TableRow key={index}> <TableRow key={index}>
<TableCell>{ele.payment_plan_date}</TableCell> <TableCell>{ele.payment_plan_date}</TableCell>
<TableCell>{ele.payment_name}</TableCell>
<TableCell>{ele.payment_method}</TableCell> <TableCell>{ele.payment_method}</TableCell>
<TableCell>{ele.payment_status}</TableCell> <TableCell>{ele.payment_status}</TableCell>
</TableRow> </TableRow>


Loading…
Cancel
Save