feat: [품질관리] 수주선택 모달에 발주처 컬럼 추가
- OrderSelectItem 타입에 clientName 필드 추가 - actions.ts API 응답 매핑에 client_name → clientName 추가 - OrderSelectModal 테이블 헤더/바디에 발주처 컬럼 추가 - 모달 너비 sm:max-w-2xl → sm:max-w-3xl 확장
This commit is contained in:
@@ -64,7 +64,7 @@ export function OrderSelectModal({
|
||||
keyExtractor={(item) => item.id}
|
||||
searchMode="enter"
|
||||
loadOnOpen
|
||||
dialogClassName="sm:max-w-2xl"
|
||||
dialogClassName="sm:max-w-3xl"
|
||||
listContainerClassName="max-h-[400px] overflow-y-auto border rounded-md"
|
||||
mode="multiple"
|
||||
onSelect={onSelect}
|
||||
@@ -84,6 +84,7 @@ export function OrderSelectModal({
|
||||
</TableHead>
|
||||
<TableHead>수주번호</TableHead>
|
||||
<TableHead>현장명</TableHead>
|
||||
<TableHead>발주처</TableHead>
|
||||
<TableHead className="text-center">납품일</TableHead>
|
||||
<TableHead className="text-center">개소</TableHead>
|
||||
</TableRow>
|
||||
@@ -101,6 +102,7 @@ export function OrderSelectModal({
|
||||
</TableCell>
|
||||
<TableCell>{item.orderNumber}</TableCell>
|
||||
<TableCell>{item.siteName}</TableCell>
|
||||
<TableCell>{item.clientName}</TableCell>
|
||||
<TableCell className="text-center">{item.deliveryDate}</TableCell>
|
||||
<TableCell className="text-center">{item.locationCount}</TableCell>
|
||||
</TableRow>
|
||||
|
||||
@@ -127,6 +127,7 @@ interface OrderSelectItemApi {
|
||||
id: number;
|
||||
order_number: string;
|
||||
site_name: string;
|
||||
client_name: string;
|
||||
delivery_date: string;
|
||||
location_count: number;
|
||||
}
|
||||
@@ -648,6 +649,7 @@ export async function getOrderSelectList(params?: {
|
||||
id: String(item.id),
|
||||
orderNumber: item.order_number,
|
||||
siteName: item.site_name,
|
||||
clientName: item.client_name ?? '',
|
||||
deliveryDate: item.delivery_date,
|
||||
locationCount: item.location_count,
|
||||
})),
|
||||
|
||||
@@ -120,6 +120,7 @@ export interface OrderSelectItem {
|
||||
id: string;
|
||||
orderNumber: string; // 수주번호
|
||||
siteName: string; // 현장명
|
||||
clientName: string; // 발주처
|
||||
deliveryDate: string; // 납품일
|
||||
locationCount: number; // 개소
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user