MES标准开放接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

4.9 KiB

LeaptonAddDeliveryPlan

此接口用于添加发货计划。


基本信息

方法:POST

URL: http://localhost:8033/open/leaptonAddDeliveryPlan


请求

请求参数

参数名 类型 必填 说明
profile string 厂区代码
billType string 单据类型 手选
planner string 计划员 创建人
maker string 制单人 创建人
sourceType string 来源类型 销售订单
billCode string 出货计划单据号
orderCode string 来源单号 销售订单号
lines array 行记录

行记录参数

参数名 类型 必填 说明
lineNum long ERP 行号
此参数无效时视为 0。
customer string 订货客户 来源销售订单
receivingLocation string 收货位置 来源客户
matCode string 料号 来源销售订单
matName string 品名 来源销售订单
qty double 数量 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。
unit string 单位 来源销售订单
dispatchingDate string 出货日期 单据默认日期可修改
storageLocation string 存储地点 来源销售订单
detailBillCode string 明细行来源单号 来源销售订单
totalPrice double 价税合计 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。
untaxedPrice double 未税金额 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。
unitPrice double 单价 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。

请求示例

{
    "data": {
        "profile": "profile",
        "billType": "",
        "planner": "",
        "maker": "",
        "sourceType": "",
        "billCode": "",
        "orderCode": "",
        "lines": [
            {
                "lineNum": 0,
                "customer": "",
                "receivingLocation": "",
                "matCode": "",
                "matName": "",
                "qty": 1,
                "unit": "",
                "dispatchingDate": "",
                "storageLocation": "",
                "detailBillCode": "",
                "totalPrice": 1,
                "untaxedPrice": 1,
                "unitPrice": 1
            },
            {
                "lineNum": 0,
                "customer": "",
                "receivingLocation": "",
                "matCode": "",
                "matName": "",
                "qty": 2,
                "unit": "",
                "dispatchingDate": "",
                "storageLocation": "",
                "detailBillCode": "",
                "totalPrice": 3,
                "untaxedPrice": 3,
                "unitPrice": 1.5
            },
        ]
    }
}

响应

保存成功时,服务端将返回此条记录,和记录的主键。

新增的字段:

字段 类型 说明
key string 主键,由系统自动生成。
headKey string 主记录的主键,由系统自动填写。
lineIndex integer 行索引,由系统自动填写,从 0 开始。
{
  "clock": "2023-08-22 10:35:47.913",
  "duration": "87ms",
  "status": "ok",
  "data": {
    "deleted": null,
    "profile": "profile",
    "billType": "",
    "planner": "",
    "maker": "",
    "sourceType": "",
    "billCode": "",
    "orderCode": "",
    "lines": [
      {
        "headKey": "0b9bed8807a04f678a7ac9761270fffd",
        "lineIndex": 0,
        "lineNum": 0,
        "customer": "",
        "receivingLocation": "",
        "matCode": "",
        "matName": "",
        "qty": 1.0,
        "unit": "",
        "dispatchingDate": "",
        "storageLocation": "",
        "detailBillCode": "",
        "totalPrice": 1.0,
        "untaxedPrice": 1.0,
        "unitPrice": 1.0,
        "created": "2023-08-22 10:35:47.876",
        "updated": "2023-08-22 10:35:47.876",
        "key": "f1c9f505a3ea4dfb8aa693de23602655",
        "flag": 1
      },
      {
        "headKey": "0b9bed8807a04f678a7ac9761270fffd",
        "lineIndex": 1,
        "lineNum": 0,
        "customer": "",
        "receivingLocation": "",
        "matCode": "",
        "matName": "",
        "qty": 2.0,
        "unit": "",
        "dispatchingDate": "",
        "storageLocation": "",
        "detailBillCode": "",
        "totalPrice": 3.0,
        "untaxedPrice": 3.0,
        "unitPrice": 1.5,
        "created": "2023-08-22 10:35:47.882",
        "updated": "2023-08-22 10:35:47.882",
        "key": "4d296cc2907d4919a9e4bfd86d98e3db",
        "flag": 1
      }
    ],
    "created": "2023-08-22 10:35:47.872",
    "updated": "2023-08-22 10:35:47.872",
    "key": "0b9bed8807a04f678a7ac9761270fffd",
    "flag": 1
  }
}