feat(web-admin): add createDate and default pickup/delivery on plan forms

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-27 16:29:35 +08:00
1 parent 349e031790
commit a276f09350
3 files changed
+52 -8

No files matched your search

+9 -1
View File
@@ -412,6 +412,7 @@ export interface PlanProduct {
export interface Plan {
id: string
planNo: string
createDate: string
planDate: string
belongsCompany: string
planType: string
@@ -504,6 +505,7 @@ export interface PlanTransportCreateBlock {
export interface PlanCreateFullPayload {
contractId: string
createDate: string
planDate: string
belongsCompany: string
planType: string
@@ -622,7 +624,13 @@ export const planApi = {
updateSiteFeedback: (id: string, linkId: string, data: PlanSiteFeedbackUpdateBody) =>
request.patch<Plan>(`/transport/plan/${id}/site-feedback/${linkId}`, data),
delete: (id: string) => request.delete(`/transport/plan/${id}`),
createFromContract: (data: { contractId: string; planDate: string; followUserId?: string; followUserName?: string }) =>
createFromContract: (data: {
contractId: string
planDate: string
createDate?: string
followUserId?: string
followUserName?: string
}) =>
request.post<Plan>('/transport/plan/create-from-contract', data),
getInboundSlipTemplate: (id: string) =>
request.get<string>(`/transport/plan/${id}/inbound-slip-template`),