feat(pl): hard-block over-limit contract qty on arrange and remind after success
Validate arranged+this plan qty against fixed contract product quantities on transport arrange; return post-success remaining/framework cumulative reminders. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d326996976
commit
3011cb9dae
10 files changed
+1424
-8
No files matched your search
@@ -629,6 +629,8 @@ export interface PlanQuery {
|
||||
certUploadStatus?: string
|
||||
/** 0=未确认齐备 1=已确认齐备 */
|
||||
hazardCertReady?: number
|
||||
/** CRM 合同 ID:仅返回关联该合同的计划 */
|
||||
contractId?: string
|
||||
page?: number
|
||||
pageSize?: number
|
||||
}
|
||||
@@ -1099,6 +1101,25 @@ export interface TransportArrangeResult extends Transport {
|
||||
siteRecords?: TransportSiteLink[]
|
||||
inventoryRecords?: TransportInventoryLink[]
|
||||
ioOrder?: TransportIoOrderBrief
|
||||
contractQtyReminder?: ContractQtyReminder
|
||||
}
|
||||
|
||||
export interface ContractQtyReminderItem {
|
||||
contractId: string
|
||||
contractNo?: string
|
||||
contractType?: string
|
||||
stopKind: string
|
||||
productId: string
|
||||
productName?: string
|
||||
mode: 'remaining' | 'framework_cumulative' | string
|
||||
contractQty?: number
|
||||
arrangedTotalQty: number
|
||||
remainingQty?: number
|
||||
thisPlanQty: number
|
||||
}
|
||||
|
||||
export interface ContractQtyReminder {
|
||||
items: ContractQtyReminderItem[]
|
||||
}
|
||||
|
||||
export interface PlIoOrderItem {
|
||||
|
||||
Reference in new issue
Block a user