cs.job-orders.create
创建工作单
- 请求路由:
cs.job-orders.create- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "cs.job-orders.create",
"data" : {
"replaceMe" : "工作单对象"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
jobId | String | 否 | 工作单 ID |
finJobId | String | 否 | Fin 资金档 ID,由首次账单确认回写 |
shipmentType | String | 否 | 业务类型 (整箱/拼箱) |
approvers | Object[] | 否 | 商务审核候选列表及最后一次认领标记,由流程维护。 |
approvers.[].user | Object | 否 | 候选商务的账号及展示资料。 |
approvers.[].user.username | String | 否 | 用户标识 |
approvers.[].user.name | String | 否 | 用户名称 |
approvers.[].user.nameEn | String | 否 | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
approvers.[].user.mobile | String | 否 | 用户手机号 |
approvers.[].user.email | String | 否 | 用户邮箱 |
approvers.[].user.position | String | 否 | 职位 |
approvers.[].user.contactRoles | String[] | 否 | 联系人承担的职责,支持多选;未指定时为空集合 |
approvers.[].claimed | Boolean | 否 | 是否为该审核节点最后一次实际认领人。 |
destinationAgentId | String | 否 | 海外代理Id |
destinationExchangeAgent | String | 否 | 海外换单代理 |
blMode | String | 否 | 提单操作模式 |
isAMS | Boolean | 否 | 是否为反恐舱单 |
isPreAlloc | Boolean | 否 | 是否预配舱单 |
soNos | String[] | 否 | SO单号 |
spaceForecastId | String | 否 | 预报单id |
status | String | 否 | 状态 |
clientId | String | 否 | 客户Id |
carrier | String | 否 | 船公司(往来单位id) |
voyageId | String | 否 | 航次id |
vessel | String | 否 | 船名(英文船名,物理船舶 itemId) |
voyageNo | String | 否 | 航次号 (如: 045W) |
week | String | 否 | 业务周次 (如 2026-WK07) |
pol | String | 否 | 起运港(往来单位id) |
polAlias | String | 否 | 起运港客户别名 |
pod | String | 否 | 目的港(往来单位id) |
podAlias | String | 否 | 目的港客户别名 |
por | String | 否 | 收货地(往来单位id) |
porAlias | String | 否 | 收货地客户别名 |
fnd | String | 否 | 交货地(往来单位id) |
fndAlias | String | 否 | 交货地客户别名 |
etd | String | 否 | 预计开船时间 (UTC) |
eta | String | 否 | 预计到港时间 (UTC) |
atd | String | 否 | 实际开船时间(UTC) |
ata | String | 否 | 实际到达时间(UTC) |
gateOpenTime | String | 否 | 开舱时间 (UTC) |
cutoffTime | String | 否 | 截单时间(UTC) |
vgmCutoffTime | String | 否 | VGM 截单时间(UTC) |
fullCutoffTime | String | 否 | 截重柜时间 (UTC) |
cyCutoff | String | 否 | 截港时间 (UTC) |
carrierCutoffTime | String | 否 | 船东关舱时间 (UTC) |
customsReleaseCutoff | String | 否 | 截放行条时间 (UTC) |
releaseDate | String | 否 | 放箱时间(UTC) |
siCutoff | String | 否 | SI截单时间(UTC) |
emptyPickupDepot | String | 否 | 提柜堆场 |
returnTerminal | String | 否 | 还柜码头 |
bargeInfo | Object | 否 | 驳船信息 |
bargeInfo.port | String | 否 | 驳船港口(往来单位id) |
bargeInfo.vessel | String | 否 | 驳船船名 |
bargeInfo.voyageNo | String | 否 | 驳船航次号 |
bargeInfo.etd | String | 否 | 预计开船时间 (UTC) |
bargeInfo.eta | String | 否 | 预计到港时间 (UTC) |
bargeInfo.atd | String | 否 | 实际开船时间 (UTC) |
bargeInfo.ata | String | 否 | 实际到港时间 (UTC) |
confirmATDInfo | Object | 否 | 确认开航信息 |
confirmATDInfo.atd | String | 否 | 实际开船时间 (UTC) |
confirmATDInfo.confirmSource | String | 否 | 确认来源 |
confirmATDInfo.dropOffType | String | 否 | 甩柜类型 |
confirmATDInfo.remarks | String | 否 | 备注 |
cargoReadyTime | String | 否 | 货品准备好时间(UTC) |
customerService | Object | 否 | 客服 |
customerService.username | String | 否 | 用户标识 |
customerService.name | String | 否 | 用户名称 |
customerService.nameEn | String | 否 | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
customerService.mobile | String | 否 | 用户手机号 |
customerService.email | String | 否 | 用户邮箱 |
customerService.position | String | 否 | 职位 |
customerService.contactRoles | String[] | 否 | 联系人承担的职责,支持多选;未指定时为空集合 |
sale | Object | 否 | 责任销售 |
sale.username | String | 否 | 用户标识 |
sale.name | String | 否 | 用户名称 |
sale.nameEn | String | 否 | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
sale.mobile | String | 否 | 用户手机号 |
sale.email | String | 否 | 用户邮箱 |
sale.position | String | 否 | 职位 |
sale.contactRoles | String[] | 否 | 联系人承担的职责,支持多选;未指定时为空集合 |
operators | Object[] | 否 | 操作人列表 |
operators.[].username | String | 否 | 用户标识 |
operators.[].name | String | 否 | 用户名称 |
operators.[].nameEn | String | 否 | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
operators.[].mobile | String | 否 | 用户手机号 |
operators.[].email | String | 否 | 用户邮箱 |
operators.[].position | String | 否 | 职位 |
operators.[].contactRoles | String[] | 否 | 联系人承担的职责,支持多选;未指定时为空集合 |
freeTimeDet | Number | 否 | 免堆期 (天) |
cargoName | String | 否 | 货品名称 |
cargoId | String | 否 | 货品类型(基础数据id) |
cargoQuantity | Number | 否 | 货品件数 |
cargoWeight | Number | 否 | 当前工作单所含全部货品的总毛重(KGS) |
cargoVolume | Number | 否 | 当前工作单所含全部货品的总体积(CBM,立方米) |
hsCode | String | 否 | HS code |
blTypeId | String | 否 | 提单类型(基础数据id) |
customsServiceId | String | 否 | 报关类型(基础数据id) |
attachments | Object[] | 否 | 附件列表 |
attachments.[].title | String | 否 | 附件标题 |
attachments.[].description | String | 否 | 附件说明 |
attachments.[].binaryId | String[] | 否 | 附件id |
feeAttachments | Object[] | 否 | 整张工作单共用的费用附件,与普通业务附件及单条费用附件独立存储。 |
feeAttachments.[].title | String | 否 | 附件标题 |
feeAttachments.[].description | String | 否 | 附件说明 |
feeAttachments.[].binaryId | String[] | 否 | 附件id |
containerDetails | Object[] | 否 | 箱型箱量明细 |
containerDetails.[].settlementUnitPrice | Number | 否 | 结算单价 |
containerDetails.[].forecastUnitPrice | Number | 否 | 预报单价 |
containerDetails.[].type | String | 否 | 箱型类型 |
containerDetails.[].name | String | 否 | 箱型名称 |
containerDetails.[].nameEn | String | 否 | 箱型英文名称 |
containerDetails.[].count | Number | 否 | 数量 |
containerDetails.[].containerNos | String[] | 否 | 当前箱型明细包含的柜号;未指定具体集装箱的出口业务可不填写。 |
shipperId | String | 否 | 发货人信息(往来单位id) |
consigneeId | String | 否 | 收货人信息(往来单位id) |
remarks | String | 否 | 备注 |
cancelRemarks | String | 否 | 取消备注 |
includeLocalCharge | Boolean | 否 | 是否包含本地费用 |
services | String[] | 否 | 服务项列表(基础数据id列表) |
incoTerms | String | 否 | 国际贸易条款(基础数据id) |
parentJobId | String | 否 | 父工作单 ID |
isMainJob | Boolean | 否 | 是否主单 |
isForecasted | Boolean | 否 | 舱位资源是否全部来自预报单 |
freightTerms | String | 否 | 运输条款(基础数据id) |
allocationInfos | Object[] | 否 | 分配信息 |
allocationInfos.[].type | String | 否 | 箱型类型 |
allocationInfos.[].name | String | 否 | 箱型名称 |
allocationInfos.[].nameEn | String | 否 | 箱型英文名称 |
allocationInfos.[].settlementUnitPrice | Number | 否 | 结算单价 |
allocationInfos.[].sourceBatches | Object[] | 否 | 按来源批次细分 |
allocationInfos.[].sourceBatches.[].itemType | String | 否 | 来源类型 |
allocationInfos.[].sourceBatches.[].inventoryId | String | 否 | 舱位库存 ID |
allocationInfos.[].sourceBatches.[].allocated | Number | 否 | 舱位来源分配数量 |
allocationInfos.[].sourceBatches.[].forecastId | String | 否 | 销售预报单 ID (消耗 FORECAST_INVENTORY 时必传) |
allocationInfos.[].sourceBatches.[].soNo | String | 否 | SO单号 |
businessInfo | Object | 否 | 商务信息 |
businessInfo.business | Object | 否 | 商务 |
businessInfo.business.username | String | 否 | 用户标识 |
businessInfo.business.name | String | 否 | 用户名称 |
businessInfo.business.nameEn | String | 否 | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
businessInfo.business.mobile | String | 否 | 用户手机号 |
businessInfo.business.email | String | 否 | 用户邮箱 |
businessInfo.business.position | String | 否 | 职位 |
businessInfo.business.contactRoles | String[] | 否 | 联系人承担的职责,支持多选;未指定时为空集合 |
businessInfo.remarks | String | 否 | 备注 |
approvedTeu | Number | 否 | 分配 teus 数量 |
fees | Object[] | 否 | 费用明细列表 |
fees.[].feeId | String | 否 | CS 生成的稳定费用身份。 |
fees.[].finEntryId | String | 否 | 账单确认后由服务端回写的 Fin 账目号;已入账费用不能通过普通编辑修改。 |
fees.[].chargeCode | Object | 否 | 费用科目 |
fees.[].chargeCode.code | String | 否 | 业务科目号(主键) |
fees.[].chargeCode.name | String | 否 | 科目中文名称 |
fees.[].chargeCode.nameEn | String | 否 | 科目英文文名称 |
fees.[].billingUnit | String | 否 | 计费单位(基础数据id) |
fees.[].containerType | String | 否 | 柜型 |
fees.[].currency | String | 否 | 币种 |
fees.[].unitPrice | Number | 否 | 成本单价 |
fees.[].internalPrice | Number | 否 | 内部结算价 |
fees.[].quantity | Number | 否 | 获取计费数量,兼容历史数据及请求中缺失或显式为空的数量。 |
fees.[].amount | Number | 否 | 金额 |
fees.[].occurAt | String | 否 | 费用发生时间 |
fees.[].defaultTaxRate | Number | 否 | 默认税率(如 0.06 / 0.09 / 0),录费时可带出 |
fees.[].flow | String | 否 | 费用流向 |
fees.[].stage | String | 否 | 获取费用入账阶段,历史数据未指定阶段时按实际费用处理。 |
fees.[].settlementMode | String | 否 | 结算方式 |
fees.[].priceType | String | 否 | 价格类型 |
fees.[].settlement | Object | 否 | 结算对象 |
fees.[].settlement.role | String | 否 | 角色 |
fees.[].settlement.unit | String | 否 | 往来单位 id(客户/供应商/代理/组织 id) |
fees.[].source | Object | 否 | 费用来源 |
fees.[].source.type | String | 否 | 来源类型(单据实体类名,如:JobOrder, TruckingEntrustOrder, BillLading, CustomsDeclarationOrder 等) |
fees.[].source.id | String | 否 | 来源数据 ID (主键/数据库ID) |
fees.[].source.feeId | String | 否 | 来源费用 ID(仅 splitFromSource 使用:拆分来源母单费用的 feeId) |
fees.[].splitFromSource | Object | 否 | 拆分来源费用所属单据。 仅拆单子 HBL 中与源 HBL 同费用科目的费用使用,由后端根据提单拆分关系自动维护; |
fees.[].splitFromSource.type | String | 否 | 来源类型(单据实体类名,如:JobOrder, TruckingEntrustOrder, BillLading, CustomsDeclarationOrder 等) |
fees.[].splitFromSource.id | String | 否 | 来源数据 ID (主键/数据库ID) |
fees.[].splitFromSource.feeId | String | 否 | 来源费用 ID(仅 splitFromSource 使用:拆分来源母单费用的 feeId) |
fees.[].auditPassed | Boolean | 否 | 审核是否通过 仅司机任务来源费用使用(DriverTask) |
fees.[].freightTerms | String | 否 | 运费条款(基础数据id) |
fees.[].attachments | Object[] | 否 | 附件列表 |
fees.[].attachments.[].title | String | 否 | 附件标题 |
fees.[].attachments.[].description | String | 否 | 附件说明 |
fees.[].attachments.[].binaryId | String[] | 否 | 附件id |
fees.[].reviewRequired | Boolean | 否 | 是否需要审核 |
documents | Object[] | 否 | 自主添加的单证列表 |
documents.[].documentSource | String | 否 |