优化
This commit is contained in:
@@ -58,10 +58,8 @@ export function oceanBookingDraft(context, suffix, master, labels = {}) {
|
||||
...writableMaster,
|
||||
shippingCompanyId: null, shippingCompanyName: labels.shippingCompanyName || `验收船公司-${suffix}`,
|
||||
bookingAgentId: null, bookingAgentName: labels.bookingAgentName || `验收代理-${suffix}`,
|
||||
vesselName: labels.vesselName, voyageNo: labels.voyageNo,
|
||||
departurePortCode: 'CNSZX', departurePortName: '深圳', destinationPortCode: 'USLAX',
|
||||
destinationPortName: '洛杉矶', placeOfDelivery: 'LAX', serviceTerm: 'CY/CY', freightTerm: 'PREPAID',
|
||||
estimatedSailingAt: labels.estimatedSailingAt, estimatedArrivalAt: labels.estimatedArrivalAt,
|
||||
destinationPortName: '洛杉矶', placeOfDelivery: 'LAX', serviceTerm: 'CY-CY', freightTerm: 'NINGBO',
|
||||
remark: context.marker,
|
||||
parties: [{ partyType: 'SHIPPER', partyName: `发货方-${suffix}` },
|
||||
{ partyType: 'CONSIGNEE', partyName: `收货方-${suffix}` },
|
||||
@@ -69,3 +67,10 @@ export function oceanBookingDraft(context, suffix, master, labels = {}) {
|
||||
containerRequirements: [{ containerType: '40HQ', containerKind: 'FCL', capacityCbm: 68, maxWeightKg: 28000, quantity: 1 }],
|
||||
}
|
||||
}
|
||||
|
||||
export function oceanBookingDraftWithoutCustomer(context, suffix, master, labels = {}) {
|
||||
const draft = oceanBookingDraft(context, suffix, master, labels)
|
||||
delete draft.customerId
|
||||
delete draft.customerName
|
||||
return draft
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user