tinywms.entrusts.create
RSocket API: 创建一个新的委托单
- 请求路由:
tinywms.entrusts.create- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "tinywms.entrusts.create",
"data" : {
"replaceMe" : "要创建的委托单对象"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
entrustNo | String | 否 | 委托单号 |
targetWarehouse | Object | 否 | 目标仓库 |
targetWarehouse.unitId | String | 否 | 往来单位id |
targetWarehouse.country | String | 否 | 国家 |
targetWarehouse.unitName | String | 否 | 往来单位名称(中文) |
targetWarehouse.unitNameEn | String | 否 | 往来单位名称(英文) |
targetWarehouse.unitAbbreviation | String | 否 | 往来单位缩写 |
targetWarehouse.unitAddress | String | 否 | 往来单位地址(中文) |
targetWarehouse.unitAddressEn | String | 否 | 往来单位地址(英文) |
targetWarehouse.contactPerson | Object | 否 | 联系人信息 |
targetWarehouse.contactPerson.username | String | 否 | 用户标识 |
targetWarehouse.contactPerson.name | String | 否 | 用户名称 |
targetWarehouse.contactPerson.mobile | String | 否 | 用户手机号 |
targetWarehouse.extraProps | Object | 否 | 扩展信息 |
client | Object | 否 | 客户 |
client.unitId | String | 否 | 往来单位id |
client.country | String | 否 | 国家 |
client.unitName | String | 否 | 往来单位名称(中文) |
client.unitNameEn | String | 否 | 往来单位名称(英文) |
client.unitAbbreviation | String | 否 | 往来单位缩写 |
client.unitAddress | String | 否 | 往来单位地址(中文) |
client.unitAddressEn | String | 否 | 往来单位地址(英文) |
client.contactPerson | Object | 否 | 联系人信息 |
client.contactPerson.username | String | 否 | 用户标识 |
client.contactPerson.name | String | 否 | 用户名称 |
client.contactPerson.mobile | String | 否 | 用户手机号 |
client.extraProps | Object | 否 | 扩展信息 |
shipper | Object | 否 | 发货人 |
shipper.unitId | String | 否 | 往来单位id |
shipper.country | String | 否 | 国家 |
shipper.unitName | String | 否 | 往来单位名称(中文) |
shipper.unitNameEn | String | 否 | 往来单位名称(英文) |
shipper.unitAbbreviation | String | 否 | 往来单位缩写 |
shipper.unitAddress | String | 否 | 往来单位地址(中文) |
shipper.unitAddressEn | String | 否 | 往来单位地址(英文) |
shipper.contactPerson | Object | 否 | 联系人信息 |
shipper.contactPerson.username | String | 否 | 用户标识 |
shipper.contactPerson.name | String | 否 | 用户名称 |
shipper.contactPerson.mobile | String | 否 | 用户手机号 |
shipper.extraProps | Object | 否 | 扩展信息 |
consignee | Object | 否 | 收货人 |
consignee.unitId | String | 否 | 往来单位id |
consignee.country | String | 否 | 国家 |
consignee.unitName | String | 否 | 往来单位名称(中文) |
consignee.unitNameEn | String | 否 | 往来单位名称(英文) |
consignee.unitAbbreviation | String | 否 | 往来单位缩写 |
consignee.unitAddress | String | 否 | 往来单位地址(中文) |
consignee.unitAddressEn | String | 否 | 往来单位地址(英文) |
consignee.contactPerson | Object | 否 | 联系人信息 |
consignee.contactPerson.username | String | 否 | 用户标识 |
consignee.contactPerson.name | String | 否 | 用户名称 |
consignee.contactPerson.mobile | String | 否 | 用户手机号 |
consignee.extraProps | Object | 否 | 扩展信息 |
readyDate | String | 否 | 准备就绪时间 |
finalDestination | String | 否 | 最终目的地(邮编) |
containerLists | Object[] | 否 | 集装箱清单 |
containerLists.[].type | String | 否 | 集装箱类型(字典-container) |
containerLists.[].name | String | 否 | 集装箱类型名称 |
containerLists.[].count | Number | 否 | 集装箱数量 |
etd | String | 否 | 预计离港时间 |
pol | Object | 否 | 起运港 |
pol.unitId | String | 否 | 往来单位id |
pol.country | String | 否 | 国家 |
pol.unitName | String | 否 | 往来单位名称(中文) |
pol.unitNameEn | String | 否 | 往来单位名称(英文) |
pol.unitAbbreviation | String | 否 | 往来单位缩写 |
pol.unitAddress | String | 否 | 往来单位地址(中文) |
pol.unitAddressEn | String | 否 | 往来单位地址(英文) |
pol.contactPerson | Object | 否 | 联系人信息 |
pol.contactPerson.username | String | 否 | 用户标识 |
pol.contactPerson.name | String | 否 | 用户名称 |
pol.contactPerson.mobile | String | 否 | 用户手机号 |
pol.extraProps | Object | 否 | 扩展信息 |
eta | String | 否 | 预计到港时间 |
pod | Object | 否 | 目的港 |
pod.unitId | String | 否 | 往来单位id |
pod.country | String | 否 | 国家 |
pod.unitName | String | 否 | 往来单位名称(中文) |
pod.unitNameEn | String | 否 | 往来单位名称(英文) |
pod.unitAbbreviation | String | 否 | 往来单位缩写 |
pod.unitAddress | String | 否 | 往来单位地址(中文 ) |
pod.unitAddressEn | String | 否 | 往来单位地址(英文) |
pod.contactPerson | Object | 否 | 联系人信息 |
pod.contactPerson.username | String | 否 | 用户标识 |
pod.contactPerson.name | String | 否 | 用户名称 |
pod.contactPerson.mobile | String | 否 | 用户手机号 |
pod.extraProps | Object | 否 | 扩展信息 |
carrier | Object | 否 | 承运商(船公司信息) |
carrier.unitId | String | 否 | 往来单位id |
carrier.country | String | 否 | 国家 |
carrier.unitName | String | 否 | 往来单位名称(中文) |
carrier.unitNameEn | String | 否 | 往来单位名称(英文) |
carrier.unitAbbreviation | String | 否 | 往来单位缩写 |
carrier.unitAddress | String | 否 | 往来单位地址(中文) |
carrier.unitAddressEn | String | 否 | 往来单位地址(英文) |
carrier.contactPerson | Object | 否 | 联系人信息 |
carrier.contactPerson.username | String | 否 | 用户标识 |
carrier.contactPerson.name | String | 否 | 用户名称 |
carrier.contactPerson.mobile | String | 否 | 用户手机号 |
carrier.extraProps | Object | 否 | 扩展信息 |
vessel | String | 否 | 船名 |
voyage | String | 否 | 航次 |
productName | String | 否 | 货品名称 |
volume | Number | 否 | 体积 |
weight | Number | 否 | 重量 |
remarks | String | 否 | 备注 |
operator | Object | 否 | 操作员 |
operator.username | String | 否 | 用户标识 |
operator.name | String | 否 | 用户名称 |
operator.mobile | String | 否 | 用户手机号 |
tradeTerms | String | 否 | 贸易条款 |
seller | Object | 否 | 卖方 |
seller.unitId | String | 否 | 往来单位id |
seller.country | String | 否 | 国家 |
seller.unitName | String | 否 | 往来单位名称(中文) |
seller.unitNameEn | String | 否 | 往来单位名称(英文) |
seller.unitAbbreviation | String | 否 | 往来单位缩写 |
seller.unitAddress | String | 否 | 往来单位地址(中文) |
seller.unitAddressEn | String | 否 | 往来单位地址(英文) |
seller.contactPerson | Object | 否 | 联系人信息 |
seller.contactPerson.username | String | 否 | 用户标识 |
seller.contactPerson.name | String | 否 | 用户名称 |
seller.contactPerson.mobile | String | 否 | 用户手机号 |
seller.extraProps | Object | 否 | 扩展信息 |
importBuyer | Object | 否 | 进口买方 |
importBuyer.unitId | String | 否 | 往来单位id |
importBuyer.country | String | 否 | 国家 |
importBuyer.unitName | String | 否 | 往来单位名称(中文) |
importBuyer.unitNameEn | String | 否 | 往来单位名称(英文) |
importBuyer.unitAbbreviation | String | 否 | 往来单位缩写 |
importBuyer.unitAddress | String | 否 | 往来单位地址(中文) |
importBuyer.unitAddressEn | String | 否 | 往来单位地址(英文) |
importBuyer.contactPerson | Object | 否 | 联系人信息 |
importBuyer.contactPerson.username | String | 否 | 用户标识 |
importBuyer.contactPerson.name | String | 否 | 用户名称 |
importBuyer.contactPerson.mobile | String | 否 | 用户手机号 |
importBuyer.extraProps | Object | 否 | 扩展信息 |
exportBuyer | Object | 否 | 出口买方 |
exportBuyer.unitId | String | 否 | 往来单位id |
exportBuyer.country | String | 否 | 国家 |
exportBuyer.unitName | String | 否 | 往来单位名称(中文) |
exportBuyer.unitNameEn | String | 否 | 往来单位名称(英文) |
exportBuyer.unitAbbreviation | String | 否 | 往来单位缩写 |
exportBuyer.unitAddress | String | 否 | 往来单位地址(中文) |
exportBuyer.unitAddressEn | String | 否 | 往来单位地址(英文) |
exportBuyer.contactPerson | Object | 否 | 联系人信息 |
exportBuyer.contactPerson.username | String | 否 | 用户标识 |
exportBuyer.contactPerson.name | String | 否 | 用户名称 |
exportBuyer.contactPerson.mobile | String | 否 | 用户手机号 |
exportBuyer.extraProps | Object | 否 | 扩展信息 |
contractNo | String | 否 | 合同号 |
invoiceNo | String | 否 | 发票号 |
contractInvoiceDate | String | 否 | 合同/发票日期 |
signingPlace | String | 否 | 签约地点 |
paymentMethod | String | 否 | 付款方式 |
legalEntityId | String | 否 | 法人主体id |
customerId | String | 否 | 客户id |
extraProps | Object | 否 | 扩展属性 |
crBy | String | 否 | 创建者 |
upBy | String | 否 | 最后修改者 |
crDate | String | 否 | 创建时间 |
upDate | String | 否 | 最后修改时间 |
tenantId | String | 否 | 租户ID |
id | Varies | 否 |
返回
返回创建成功后的委托单对象
{ }
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
entrustNo | String | 委托单号 |
targetWarehouse | Object | 目标仓库 |
targetWarehouse.unitId | String | 往来单位id |
targetWarehouse.country | String | 国家 |
targetWarehouse.unitName | String | 往来单位名称(中文) |
targetWarehouse.unitNameEn | String | 往来单位名称(英文) |
targetWarehouse.unitAbbreviation | String | 往来单位缩写 |
targetWarehouse.unitAddress | String | 往来单位地址(中文) |
targetWarehouse.unitAddressEn | String | 往来单位地址(英文) |
targetWarehouse.contactPerson | Object | 联系人信息 |
targetWarehouse.contactPerson.username | String | 用户标识 |
targetWarehouse.contactPerson.name | String | 用户名称 |
targetWarehouse.contactPerson.mobile | String | 用户手机号 |
targetWarehouse.extraProps | Object | 扩展信息 |
client | Object | 客户 |
client.unitId | String | 往来单位id |
client.country | String | 国家 |
client.unitName | String | 往来单位名称(中文) |
client.unitNameEn | String | 往来单位名称(英文) |
client.unitAbbreviation | String | 往来单位缩写 |
client.unitAddress | String | 往来单位地址(中文) |
client.unitAddressEn | String | 往来单位地址(英文) |
client.contactPerson | Object | 联系人信息 |
client.contactPerson.username | String | 用户标识 |
client.contactPerson.name | String | 用户名称 |
client.contactPerson.mobile | String | 用户手机号 |
client.extraProps | Object | 扩展信息 |
shipper | Object | 发货人 |
shipper.unitId | String | 往来单位id |
shipper.country | String | 国家 |
shipper.unitName | String | 往来单位名称(中文) |
shipper.unitNameEn | String | 往来单位名称(英文) |
shipper.unitAbbreviation | String | 往来单位缩写 |
shipper.unitAddress | String | 往来单位地址(中文) |
shipper.unitAddressEn | String | 往来单位地址(英文) |
shipper.contactPerson | Object | 联系人信息 |
shipper.contactPerson.username | String | 用户标识 |
shipper.contactPerson.name | String | 用户名称 |
shipper.contactPerson.mobile | String | 用户手机号 |
shipper.extraProps | Object | 扩展信息 |
consignee | Object | 收货人 |
consignee.unitId | String | 往来单位id |
consignee.country | String | 国家 |
consignee.unitName | String | 往来单位名称(中文) |
consignee.unitNameEn | String | 往来单位名称(英文) |
consignee.unitAbbreviation | String | 往来单位缩写 |
consignee.unitAddress | String | 往来单位地址(中文) |
consignee.unitAddressEn | String | 往来单位地址(英文) |
consignee.contactPerson | Object | 联系人信息 |
consignee.contactPerson.username | String | 用户标识 |
consignee.contactPerson.name | String | 用户名称 |
consignee.contactPerson.mobile | String | 用户手机号 |
consignee.extraProps | Object | 扩展信息 |
readyDate | String | 准备就绪时间 |
finalDestination | String | 最终目的地(邮编) |
containerLists | Object[] | 集装箱清单 |
containerLists.[].type | String | 集装箱类型(字典-container) |
containerLists.[].name | String | 集装箱类型名称 |
containerLists.[].count | Number | 集装箱数量 |
etd | String | 预计离港时间 |
pol | Object | 起运港 |
pol.unitId | String | 往来单位id |
pol.country | String | 国家 |
pol.unitName | String | 往来单位名称(中文) |
pol.unitNameEn | String | 往来单位名称(英文) |
pol.unitAbbreviation | String | 往来单位缩写 |
pol.unitAddress | String | 往来单位地址(中文) |
pol.unitAddressEn | String | 往来单位地址(英文) |
pol.contactPerson | Object | 联系人信息 |
pol.contactPerson.username | String | 用户标识 |
pol.contactPerson.name | String | 用户名称 |
pol.contactPerson.mobile | String | 用户手机号 |
pol.extraProps | Object | 扩展信息 |
eta | String | 预计到港时间 |
pod | Object | 目的港 |
pod.unitId | String | 往来单位id |
pod.country | String | 国家 |
pod.unitName | String | 往来单位名称(中文) |
pod.unitNameEn | String | 往来单位名称(英文) |
pod.unitAbbreviation | String | 往来单位缩写 |
pod.unitAddress | String | 往来单位地址(中文) |
pod.unitAddressEn | String | 往来单位地址(英文) |
pod.contactPerson | Object | 联系人信息 |
pod.contactPerson.username | String | 用户标识 |
pod.contactPerson.name | String | 用户名称 |
pod.contactPerson.mobile | String | 用户手机号 |
pod.extraProps | Object | 扩展信息 |
carrier | Object | 承运商(船公司信息) |
carrier.unitId | String | 往来单位id |
carrier.country | String | 国家 |
carrier.unitName | String | 往来单位名称(中 文) |
carrier.unitNameEn | String | 往来单位名称(英文) |
carrier.unitAbbreviation | String | 往来单位缩写 |
carrier.unitAddress | String | 往来单位地址(中文) |
carrier.unitAddressEn | String | 往来单位地址(英文) |
carrier.contactPerson | Object | 联系人信息 |
carrier.contactPerson.username | String | 用户标识 |
carrier.contactPerson.name | String | 用户名称 |
carrier.contactPerson.mobile | String | 用户手机号 |
carrier.extraProps | Object | 扩展信息 |
vessel | String | 船名 |
voyage | String | 航次 |
productName | String | 货品名称 |
volume | Number | 体积 |
weight | Number | 重量 |
remarks | String | 备注 |
operator | Object | 操作员 |
operator.username | String | 用户标识 |
operator.name | String | 用户名称 |
operator.mobile | String | 用户手机号 |
tradeTerms | String | 贸易条款 |
seller | Object | 卖方 |
seller.unitId | String | 往来单位id |
seller.country | String | 国家 |
seller.unitName | String | 往来单位名称(中文) |
seller.unitNameEn | String | 往来单位名称(英文) |
seller.unitAbbreviation | String | 往来单位缩写 |
seller.unitAddress | String | 往来单位地址(中文) |
seller.unitAddressEn | String | 往来单位地址(英文) |
seller.contactPerson | Object | 联系人信息 |
seller.contactPerson.username | String | 用户标识 |
seller.contactPerson.name | String | 用户名称 |
seller.contactPerson.mobile | String | 用户手机号 |
seller.extraProps | Object | 扩展信息 |
importBuyer | Object | 进口买方 |
importBuyer.unitId | String | 往来单位id |
importBuyer.country | String | 国家 |
importBuyer.unitName | String | 往来单位名称(中文) |
importBuyer.unitNameEn | String | 往来单位名称(英文) |
importBuyer.unitAbbreviation | String | 往来单位缩写 |
importBuyer.unitAddress | String | 往来单位地址(中文) |
importBuyer.unitAddressEn | String | 往来单位地址(英文) |
importBuyer.contactPerson | Object | 联系人信息 |
importBuyer.contactPerson.username | String | 用户标识 |
importBuyer.contactPerson.name | String | 用户名称 |
importBuyer.contactPerson.mobile | String | 用户手机号 |
importBuyer.extraProps | Object | 扩展信息 |
exportBuyer | Object | 出口买方 |
exportBuyer.unitId | String | 往来单位id |
exportBuyer.country | String | 国家 |
exportBuyer.unitName | String | 往来单位名称(中文) |
exportBuyer.unitNameEn | String | 往来单位名称(英文) |
exportBuyer.unitAbbreviation | String | 往来单位缩写 |
exportBuyer.unitAddress | String | 往来单位地址(中文) |
exportBuyer.unitAddressEn | String | 往来单位地址(英文) |
exportBuyer.contactPerson | Object | 联系人信息 |
exportBuyer.contactPerson.username | String | 用户标识 |
exportBuyer.contactPerson.name | String | 用户名称 |
exportBuyer.contactPerson.mobile | String | 用户手机号 |
exportBuyer.extraProps | Object | 扩展信息 |
contractNo | String | 合同号 |
invoiceNo | String | 发票号 |
contractInvoiceDate | String | 合同/发票日期 |
signingPlace | String | 签约地点 |
paymentMethod | String | 付款方式 |
legalEntityId | String | 法人主体id |
customerId | String | 客户id |
extraProps | Object | 扩展属性 |
crBy | String | 创建者 |
upBy | String | 最后修改者 |
crDate | String | 创建时间 |
upDate | String | 最后修改时间 |
tenantId | String | 租户ID |
id | Varies |