feat(web-admin): add createDate and default pickup/delivery on plan forms
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
349e031790
commit
a276f09350
3 files changed
+52
-8
No files matched your search
@@ -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`),
|
||||
|
||||
Reference in new issue
Block a user