fix(WEB): 수주 페이지 필드 매핑 및 제품-부품 트리 구조 개선
- ApiClient 인터페이스: representative → manager_name, contact_person 변경 - transformApiToFrontend: client.representative → client.manager_name 수정 - ApiOrderItem에 floor_code, symbol_code 필드 추가 (제품-부품 매핑) - ApiOrder에 options 타입 정의 추가 - ApiQuote에 calculation_inputs 타입 정의 추가 - 수주 상세 페이지 제품-부품 트리 구조 UI 개선
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
use App\Helpers\ApiResponse;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests\Construction\ContractFromBiddingRequest;
|
||||
use App\Http\Requests\Construction\ContractStoreRequest;
|
||||
use App\Http\Requests\Construction\ContractUpdateRequest;
|
||||
use App\Services\Construction\ContractService;
|
||||
@@ -96,4 +97,14 @@ public function stageCounts(Request $request)
|
||||
return $this->service->stageCounts($request->all());
|
||||
}, __('message.contract.fetched'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 입찰에서 계약 생성 (낙찰 → 계약 전환)
|
||||
*/
|
||||
public function storeFromBidding(ContractFromBiddingRequest $request, int $biddingId)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($request, $biddingId) {
|
||||
return $this->service->storeFromBidding($biddingId, $request->validated());
|
||||
}, __('message.contract.created'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user