From f16b3bd6deddb5380ae96c68e10dfb70169e200f Mon Sep 17 00:00:00 2001 From: Elivo Date: Mon, 21 Aug 2023 16:46:14 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20WMS=20API=EF=BC=9ALeap?= =?UTF-8?q?tonAddDeliveryPlan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/发货通知/LeaptonAddDeliveryPlan.md | 111 +++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 wms/发货通知/LeaptonAddDeliveryPlan.md diff --git a/wms/发货通知/LeaptonAddDeliveryPlan.md b/wms/发货通知/LeaptonAddDeliveryPlan.md new file mode 100644 index 0000000..06d55d0 --- /dev/null +++ b/wms/发货通知/LeaptonAddDeliveryPlan.md @@ -0,0 +1,111 @@ +### LeaptonAddDeliveryPlan + +此接口用于添加一项发货计划记录。 + +--- + +### 基本信息 + +方法:POST + +URL: http://localhost:8033/open/leaptonAddDeliveryPlan + +--- + +### 请求 + +请求参数 + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| profile | string | 是 | 厂区代码 | +| billType | string | 否 | 单据类型 手选 | +| planner | string | 否 | 计划员 创建人 | +| maker | string | 否 | 制单人 创建人 | +| sourceType | string | 否 | 来源类型 销售订单 | +| billCode | string | 否 | 来源单号 销售订单号 | +| customer | string | 否 | 订货客户 来源销售订单 | +| receivingLocation | string | 否 | 收货位置 来源客户 | +| matCode | string | 否 | 料号 来源销售订单 | +| matName | string | 否 | 品名 来源销售订单 | +| qty | string | 否 | 数量 来源销售订单 | +| unit | string | 否 | 单位 来源销售订单 | +| dispatchingDate | string | 否 | 出货日期 单据默认日期可修改 | +| storageLocation | string | 否 | 存储地点 来源销售订单 | +| detailBillCode | string | 否 | 明细行来源单号 来源销售订单 | +| totalPrice | string | 否 | 价税合计 来源销售订单 | +| untaxedPrice | string | 否 | 未税金额 来源销售订单 | +| unitPrice | string | 否 | 单价 来源销售订单 | + +请求示例 + +``` +{ + "data": { + "profile": "profile", + "billType": "", + "planner": "", + "maker": "", + "sourceType": "", + "billCode": "", + "customer": "", + "receivingLocation": "", + "matCode": "", + "matName": "", + "qty": "", + "unit": "", + "dispatchingDate": "", + "storageLocation": "", + "detailBillCode": "", + "totalPrice": "", + "untaxedPrice": "", + "unitPrice": "" + } +} +``` + +--- + +### 响应 + +保存成功时,服务端将返回此条记录,和记录的主键。 + +新增的字段: + +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| key | string | 是 | 记录主键,由系统自动生成。 | +| profile | string | 厂区代码 | + +``` +{ + "clock": "2023-08-21 16:38:58.955", + "duration": "60ms", + "status": "ok", + "data": { + "profile": "profile", + "billType": "", + "planner": "", + "maker": "", + "sourceType": "", + "billCode": "", + "customer": "", + "receivingLocation": "", + "matCode": "", + "matName": "", + "qty": "", + "unit": "", + "dispatchingDate": "", + "storageLocation": "", + "detailBillCode": "", + "totalPrice": "", + "untaxedPrice": "", + "unitPrice": "", + "key": "d12d28c9ea634d6c9aee8eb99ce56201", + "flag": 1 + "created": "2023-08-21 16:38:58.910", + "updated": "2023-08-21 16:38:58.910", + "deleted": null, + } +} +``` \ No newline at end of file From 78520dc5c760a69416b66d88872c45aa2bcb2900 Mon Sep 17 00:00:00 2001 From: Elivo Date: Tue, 22 Aug 2023 09:30:56 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E8=AE=A1=E5=88=92=EF=BC=8C=E5=88=86=E7=A6=BB=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=B8=BA=E8=A1=A8=E5=A4=B4=E3=80=81=E8=A1=A8?= =?UTF-8?q?=E4=BD=93=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/发货通知/LeaptonAddDeliveryPlan.md | 151 ++++++++++++++------- 1 file changed, 103 insertions(+), 48 deletions(-) diff --git a/wms/发货通知/LeaptonAddDeliveryPlan.md b/wms/发货通知/LeaptonAddDeliveryPlan.md index 06d55d0..c340e4b 100644 --- a/wms/发货通知/LeaptonAddDeliveryPlan.md +++ b/wms/发货通知/LeaptonAddDeliveryPlan.md @@ -1,6 +1,6 @@ ### LeaptonAddDeliveryPlan -此接口用于添加一项发货计划记录。 +此接口用于添加发货计划。 --- @@ -24,6 +24,12 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan | maker | string | 否 | 制单人 创建人 | | sourceType | string | 否 | 来源类型 销售订单 | | billCode | string | 否 | 来源单号 销售订单号 | +| lines | array | 是 | 行记录 | + +行记录参数 + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | | customer | string | 否 | 订货客户 来源销售订单 | | receivingLocation | string | 否 | 收货位置 来源客户 | | matCode | string | 否 | 料号 来源销售订单 | @@ -43,23 +49,41 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan { "data": { "profile": "profile", - "billType": "", - "planner": "", - "maker": "", - "sourceType": "", - "billCode": "", - "customer": "", - "receivingLocation": "", - "matCode": "", - "matName": "", - "qty": "", - "unit": "", - "dispatchingDate": "", - "storageLocation": "", - "detailBillCode": "", - "totalPrice": "", - "untaxedPrice": "", - "unitPrice": "" + "billType": "billType", + "planner": "planner", + "maker": "maker", + "sourceType": "sourceType", + "billCode": "billCode", + "lines": [ + { + "customer": "line 1: customer", + "receivingLocation": "line 1: receivingLocation", + "matCode": "line 1: matCode", + "matName": "line 1: matName", + "qty": "line 1: qty", + "unit": "line 1: unit", + "dispatchingDate": "line 1: dispatchingDate", + "storageLocation": "line 1: storageLocation", + "detailBillCode": "line 1: detailBillCode", + "totalPrice": "line 1: totalPrice", + "untaxedPrice": "line 1: untaxedPrice", + "unitPrice": "line 1: unitPrice" + }, + { + "customer": "line 2: customer", + "receivingLocation": "line 2: receivingLocation", + "matCode": "line 2: matCode", + "matName": "line 2: matName", + "qty": "line 2: qty", + "unit": "line 2: unit", + "dispatchingDate": "line 2: dispatchingDate", + "storageLocation": "line 2: storageLocation", + "detailBillCode": "line 2: detailBillCode", + "totalPrice": "line 2: totalPrice", + "untaxedPrice": "line 2: untaxedPrice", + "unitPrice": "line 2: unitPrice" + } + ] } } ``` @@ -74,38 +98,69 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan | 字段 | 类型 | 说明 | | :-- | :-- | :-- | -| key | string | 是 | 记录主键,由系统自动生成。 | -| profile | string | 厂区代码 | +| key | string | 主键,由系统自动生成。 | +| headKey | string | 主记录的主键,由系统自动填写。 | +| lineIndex | integer | 行索引,由系统自动填写,从 0 开始。 | ``` { - "clock": "2023-08-21 16:38:58.955", - "duration": "60ms", - "status": "ok", - "data": { - "profile": "profile", - "billType": "", - "planner": "", - "maker": "", - "sourceType": "", - "billCode": "", - "customer": "", - "receivingLocation": "", - "matCode": "", - "matName": "", - "qty": "", - "unit": "", - "dispatchingDate": "", - "storageLocation": "", - "detailBillCode": "", - "totalPrice": "", - "untaxedPrice": "", - "unitPrice": "", - "key": "d12d28c9ea634d6c9aee8eb99ce56201", - "flag": 1 - "created": "2023-08-21 16:38:58.910", - "updated": "2023-08-21 16:38:58.910", - "deleted": null, - } + "clock": "2023-08-22 08:44:43.549", + "duration": "132ms", + "status": "ok", + "data": { + "deleted": null, + "profile": "profile", + "billType": "billType", + "planner": "planner", + "maker": "maker", + "sourceType": "sourceType", + "billCode": "billCode", + "lines": [ + { + "headKey": "4246f006287f4ce38ae1d04207421a9e", + "lineIndex": 0, + "customer": "line 1: customer", + "receivingLocation": "line 1: receivingLocation", + "matCode": "line 1: matCode", + "matName": "line 1: matName", + "qty": "line 1: qty", + "unit": "line 1: unit", + "dispatchingDate": "line 1: dispatchingDate", + "storageLocation": "line 1: storageLocation", + "detailBillCode": "line 1: detailBillCode", + "totalPrice": "line 1: totalPrice", + "untaxedPrice": "line 1: untaxedPrice", + "unitPrice": "line 1: unitPrice", + "created": "2023-08-22 08:44:43.499", + "updated": "2023-08-22 08:44:43.499", + "key": "e5c5d2dfd8bc4de49439bbd007526db0", + "flag": 1 + }, + { + "headKey": "4246f006287f4ce38ae1d04207421a9e", + "lineIndex": 1, + "customer": "line 2: customer", + "receivingLocation": "line 2: receivingLocation", + "matCode": "line 2: matCode", + "matName": "line 2: matName", + "qty": "line 2: qty", + "unit": "line 2: unit", + "dispatchingDate": "line 2: dispatchingDate", + "storageLocation": "line 2: storageLocation", + "detailBillCode": "line 2: detailBillCode", + "totalPrice": "line 2: totalPrice", + "untaxedPrice": "line 2: untaxedPrice", + "unitPrice": "line 2: unitPrice", + "created": "2023-08-22 08:44:43.509", + "updated": "2023-08-22 08:44:43.509", + "key": "1f5a4b2f0b084f7495cf60fe1886b8c1", + "flag": 1 + } + ], + "created": "2023-08-22 08:44:43.489", + "updated": "2023-08-22 08:44:43.489", + "key": "4246f006287f4ce38ae1d04207421a9e", + "flag": 1 + } } ``` \ No newline at end of file From 78829ea567893f3a403f5cafd838a0d477299e95 Mon Sep 17 00:00:00 2001 From: Elivo Date: Tue, 22 Aug 2023 10:42:46 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E8=AE=A1=E5=88=92=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=A1=8C=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=95=B4=E6=95=B0=E9=87=8F=E5=92=8C=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E7=9A=84=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/发货通知/LeaptonAddDeliveryPlan.md | 187 +++++++++++---------- 1 file changed, 96 insertions(+), 91 deletions(-) diff --git a/wms/发货通知/LeaptonAddDeliveryPlan.md b/wms/发货通知/LeaptonAddDeliveryPlan.md index c340e4b..b38673c 100644 --- a/wms/发货通知/LeaptonAddDeliveryPlan.md +++ b/wms/发货通知/LeaptonAddDeliveryPlan.md @@ -30,18 +30,19 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan | 参数名 | 类型 | 必填 | 说明 | | :-- | :-- | :-- | :-- | +| lineNum | long | 是 | ERP 行号
此参数不传时默认为 0。 | | customer | string | 否 | 订货客户 来源销售订单 | | receivingLocation | string | 否 | 收货位置 来源客户 | | matCode | string | 否 | 料号 来源销售订单 | | matName | string | 否 | 品名 来源销售订单 | -| qty | string | 否 | 数量 来源销售订单 | +| qty | double | 是 | 数量 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | | unit | string | 否 | 单位 来源销售订单 | | dispatchingDate | string | 否 | 出货日期 单据默认日期可修改 | | storageLocation | string | 否 | 存储地点 来源销售订单 | | detailBillCode | string | 否 | 明细行来源单号 来源销售订单 | -| totalPrice | string | 否 | 价税合计 来源销售订单 | -| untaxedPrice | string | 否 | 未税金额 来源销售订单 | -| unitPrice | string | 否 | 单价 来源销售订单 | +| totalPrice | double | 是 | 价税合计 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | +| untaxedPrice | double | 是 | 未税金额 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | +| unitPrice | double | 是 | 单价 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | 请求示例 @@ -49,40 +50,42 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan { "data": { "profile": "profile", - "billType": "billType", - "planner": "planner", - "maker": "maker", - "sourceType": "sourceType", - "billCode": "billCode", + "billType": "", + "planner": "", + "maker": "", + "sourceType": "", + "billCode": "", "lines": [ { - "customer": "line 1: customer", - "receivingLocation": "line 1: receivingLocation", - "matCode": "line 1: matCode", - "matName": "line 1: matName", - "qty": "line 1: qty", - "unit": "line 1: unit", - "dispatchingDate": "line 1: dispatchingDate", - "storageLocation": "line 1: storageLocation", - "detailBillCode": "line 1: detailBillCode", - "totalPrice": "line 1: totalPrice", - "untaxedPrice": "line 1: untaxedPrice", - "unitPrice": "line 1: unitPrice" + "lineNum": 0, + "customer": "", + "receivingLocation": "", + "matCode": "", + "matName": "", + "qty": 1, + "unit": "", + "dispatchingDate": "", + "storageLocation": "", + "detailBillCode": "", + "totalPrice": 1, + "untaxedPrice": 1, + "unitPrice": 1 }, { - "customer": "line 2: customer", - "receivingLocation": "line 2: receivingLocation", - "matCode": "line 2: matCode", - "matName": "line 2: matName", - "qty": "line 2: qty", - "unit": "line 2: unit", - "dispatchingDate": "line 2: dispatchingDate", - "storageLocation": "line 2: storageLocation", - "detailBillCode": "line 2: detailBillCode", - "totalPrice": "line 2: totalPrice", - "untaxedPrice": "line 2: untaxedPrice", - "unitPrice": "line 2: unitPrice" - } + "lineNum": 0, + "customer": "", + "receivingLocation": "", + "matCode": "", + "matName": "", + "qty": 2, + "unit": "", + "dispatchingDate": "", + "storageLocation": "", + "detailBillCode": "", + "totalPrice": 3, + "untaxedPrice": 3, + "unitPrice": 1.5 + }, ] } } @@ -104,63 +107,65 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan ``` { - "clock": "2023-08-22 08:44:43.549", - "duration": "132ms", - "status": "ok", - "data": { - "deleted": null, - "profile": "profile", - "billType": "billType", - "planner": "planner", - "maker": "maker", - "sourceType": "sourceType", - "billCode": "billCode", - "lines": [ - { - "headKey": "4246f006287f4ce38ae1d04207421a9e", - "lineIndex": 0, - "customer": "line 1: customer", - "receivingLocation": "line 1: receivingLocation", - "matCode": "line 1: matCode", - "matName": "line 1: matName", - "qty": "line 1: qty", - "unit": "line 1: unit", - "dispatchingDate": "line 1: dispatchingDate", - "storageLocation": "line 1: storageLocation", - "detailBillCode": "line 1: detailBillCode", - "totalPrice": "line 1: totalPrice", - "untaxedPrice": "line 1: untaxedPrice", - "unitPrice": "line 1: unitPrice", - "created": "2023-08-22 08:44:43.499", - "updated": "2023-08-22 08:44:43.499", - "key": "e5c5d2dfd8bc4de49439bbd007526db0", - "flag": 1 - }, - { - "headKey": "4246f006287f4ce38ae1d04207421a9e", - "lineIndex": 1, - "customer": "line 2: customer", - "receivingLocation": "line 2: receivingLocation", - "matCode": "line 2: matCode", - "matName": "line 2: matName", - "qty": "line 2: qty", - "unit": "line 2: unit", - "dispatchingDate": "line 2: dispatchingDate", - "storageLocation": "line 2: storageLocation", - "detailBillCode": "line 2: detailBillCode", - "totalPrice": "line 2: totalPrice", - "untaxedPrice": "line 2: untaxedPrice", - "unitPrice": "line 2: unitPrice", - "created": "2023-08-22 08:44:43.509", - "updated": "2023-08-22 08:44:43.509", - "key": "1f5a4b2f0b084f7495cf60fe1886b8c1", - "flag": 1 - } - ], - "created": "2023-08-22 08:44:43.489", - "updated": "2023-08-22 08:44:43.489", - "key": "4246f006287f4ce38ae1d04207421a9e", + "clock": "2023-08-22 10:35:47.913", + "duration": "87ms", + "status": "ok", + "data": { + "deleted": null, + "profile": "profile", + "billType": "", + "planner": "", + "maker": "", + "sourceType": "", + "billCode": "", + "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 + } } ``` \ No newline at end of file From f9cb8359c024fec7f1870e319645823f2dd92d06 Mon Sep 17 00:00:00 2001 From: Elivo Date: Tue, 22 Aug 2023 16:11:37 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=92=8C=E5=88=A0=E9=99=A4=E5=8F=91=E8=B4=A7=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E7=9A=84=20API=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/发货通知/LeaptonDeleteDeliveryPlan.md | 53 ++++++++ wms/发货通知/LeaptonGetDeliveryPlan.md | 116 ++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 wms/发货通知/LeaptonDeleteDeliveryPlan.md create mode 100644 wms/发货通知/LeaptonGetDeliveryPlan.md diff --git a/wms/发货通知/LeaptonDeleteDeliveryPlan.md b/wms/发货通知/LeaptonDeleteDeliveryPlan.md new file mode 100644 index 0000000..4e2e3e9 --- /dev/null +++ b/wms/发货通知/LeaptonDeleteDeliveryPlan.md @@ -0,0 +1,53 @@ +### LeaptonDeleteDeliveryPlan + +此接口用于删除发货计划。 + +不能删除的情况: +- WMS 已经开始执行这项发货计划 +- 要删除的发货计划不属于当前厂区 + +--- + +### 基本信息 + +方法:POST + +URL: http://localhost:8033/open/leaptonDeleteDeliveryPlan + +--- + +### 请求 + +请求参数 + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| profile | string | 是 | 厂区 | +| key | string | 是 | 主键 | + +请求示例 + +``` +{ + "data": { + "profile": "测试", + "key": "0b9bed8807a04f678a7ac9761270fffd" + } +} +``` + +--- + +### 响应 + +此 API 没有返回的数据,只许获取状态即可。执行失败时状态不是 `ok`,会附加 message 字段。 + +``` +{ + "clock": "2023-08-22 16:09:58.294", + "duration": "124ms", + "status": "ok", + "data": {} +} +``` + diff --git a/wms/发货通知/LeaptonGetDeliveryPlan.md b/wms/发货通知/LeaptonGetDeliveryPlan.md new file mode 100644 index 0000000..94f3da8 --- /dev/null +++ b/wms/发货通知/LeaptonGetDeliveryPlan.md @@ -0,0 +1,116 @@ +### LeaptonGetDeliveryPlan + +此接口用于获取发货计划。 + +--- + +### 基本信息 + +方法:GET, POST + +URL: http://localhost:8033/open/leaptonGetDeliveryPlan + +--- + +### 请求 + +请求参数 + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| key | string | 是 | 发货记录主键 | + +GET 请求示例 + +``` +/open/leaptonGetDeliveryPlan?key=0b9bed8807a04f678a7ac9761270fffd +``` + +POST 请求示例 + +``` +{ + "data": { + "key": "0b9bed8807a04f678a7ac9761270fffd" + } +} +``` + +--- + +### 响应 + +保存成功时,服务端将返回此条记录,和记录的主键。 + +新增的字段: + +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| key | string | 主键,由系统自动生成。 | +| headKey | string | 主记录的主键,由系统自动填写。 | +| lineIndex | integer | 行索引,由系统自动填写,从 0 开始。 | + +``` +{ + "clock": "2023-08-22 11:26:48.559", + "duration": "112ms", + "status": "ok", + "data": { + "deleted": "", + "profile": "profile", + "billType": "", + "planner": "", + "maker": "", + "sourceType": "", + "billCode": "", + "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 + } +} +``` \ No newline at end of file From 9ab042773223475aa5ab6e447041385d76df8ca3 Mon Sep 17 00:00:00 2001 From: "Cola.Ding" Date: Wed, 23 Aug 2023 17:10:41 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=BA=93=E4=BD=8D=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/仓库库位/删除仓库库位.md | 61 ++++++++++++++++++ wms/仓库库位/添加仓库库位.md | 86 ++++++++++++++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 wms/仓库库位/删除仓库库位.md create mode 100644 wms/仓库库位/添加仓库库位.md diff --git a/wms/仓库库位/删除仓库库位.md b/wms/仓库库位/删除仓库库位.md new file mode 100644 index 0000000..a91c514 --- /dev/null +++ b/wms/仓库库位/删除仓库库位.md @@ -0,0 +1,61 @@ +### 添加仓库库位 +此接口用于向WMS删除仓库和库位 +此接口需要认证,详情请查看《认证方式》。 + +--- + +### 基本信息 +方法:POST +URL: http://localhost:8033/open/DeleteStockOrLocation + +--- + +### 请求 + +__请求参数__ + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| profile | String | 是 | 厂区| +| code | String | 是 | 仓库编码、库位名称 | +| type | String | 是 | 类型: STOCK:仓库,LOC:库位 | + + + +__请求示例:__ +``` +{ + "data":{ + "profile": "测试", + "code":"CPC1" + "type":"STOCK" + } +} +```` + +--- + +### 响应 +__响应字段__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| clock | string | 当前服务器时钟。 | +| status | string | 状态,ok:成功,error:错误,exception:异常 | +| data | object | 成功后返回具体内容 | + +__data:__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | + +``` +{ + "clock": "2023-06-25 20:00:00.000", + "status": "ok", + "data": { + + } +} + +``` + + diff --git a/wms/仓库库位/添加仓库库位.md b/wms/仓库库位/添加仓库库位.md new file mode 100644 index 0000000..e22ca67 --- /dev/null +++ b/wms/仓库库位/添加仓库库位.md @@ -0,0 +1,86 @@ +### 添加仓库库位 +此接口用于向WMS添加仓库和库位 +此接口需要认证,详情请查看《认证方式》。 + +--- + +### 基本信息 +方法:POST +URL: http://localhost:8033/open/AddStockAndLocation + +--- + +### 请求 + +__请求参数__ + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| profile | String | 是 | 厂区| +| stocks | Array | 是 | 仓库数组 | +| locations | Array | 是 | 库位数组 | + + +__stocks:__ +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| code | String | 是 | 仓库代码 | +| name | String | 是 | 仓库名称 | +| type | String | 是 | 仓库类型 YLC:原料仓,CPC:成品仓,XBC:线边仓 | + +__locations:__ +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| stockCode | String | 是 | 所属仓库代码 | +| name | String | 是 | 库位名称 | +| fullNumber | long | 否 | 库位满库数量 默认9999 | + +__请求示例:__ +``` +{ + "data":{ + "profile": "测试", + "stocks":[ + { + "code":"CPC1", + "name":"成品仓1", + "type":"CPC" + } + ] + "locations":[ + { + "stockCode":"CPC1", + "name":"CPC1-001", + "fullNumber":360 + } + ] + } +} +```` + +--- + +### 响应 +__响应字段__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| clock | string | 当前服务器时钟。 | +| status | string | 状态,ok:成功,error:错误,exception:异常 | +| data | object | 成功后返回具体内容 | + +__data:__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | + +``` +{ + "clock": "2023-06-25 20:00:00.000", + "status": "ok", + "data": { + + } +} + +``` + + From 8ac9f4c056604305d0aeebaf8d1e3e78d0c596f6 Mon Sep 17 00:00:00 2001 From: Elivo Date: Thu, 24 Aug 2023 15:14:09 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E5=8F=91=E8=B4=A7=E8=AE=A1=E5=88=92?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=95=B4=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=87=BA=E8=B4=A7=E8=AE=A1=E5=88=92=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E5=8F=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/发货通知/LeaptonAddDeliveryPlan.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wms/发货通知/LeaptonAddDeliveryPlan.md b/wms/发货通知/LeaptonAddDeliveryPlan.md index b38673c..a1c3e51 100644 --- a/wms/发货通知/LeaptonAddDeliveryPlan.md +++ b/wms/发货通知/LeaptonAddDeliveryPlan.md @@ -23,26 +23,27 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan | planner | string | 否 | 计划员 创建人 | | maker | string | 否 | 制单人 创建人 | | sourceType | string | 否 | 来源类型 销售订单 | -| billCode | string | 否 | 来源单号 销售订单号 | +| billCode | string | 否 | 出货计划单据号 | +| orderCode | string | 否 | 来源单号 销售订单号 | | lines | array | 是 | 行记录 | 行记录参数 | 参数名 | 类型 | 必填 | 说明 | | :-- | :-- | :-- | :-- | -| lineNum | long | 是 | ERP 行号
此参数不传时默认为 0。 | +| lineNum | long | 是 | ERP 行号
此参数无效时视为 0。 | | customer | string | 否 | 订货客户 来源销售订单 | | receivingLocation | string | 否 | 收货位置 来源客户 | | matCode | string | 否 | 料号 来源销售订单 | | matName | string | 否 | 品名 来源销售订单 | -| qty | double | 是 | 数量 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | +| qty | double | 是 | 数量 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。 | | unit | string | 否 | 单位 来源销售订单 | | dispatchingDate | string | 否 | 出货日期 单据默认日期可修改 | | storageLocation | string | 否 | 存储地点 来源销售订单 | | detailBillCode | string | 否 | 明细行来源单号 来源销售订单 | -| totalPrice | double | 是 | 价税合计 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | -| untaxedPrice | double | 是 | 未税金额 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | -| unitPrice | double | 是 | 单价 来源销售订单
保留 6 位有效小数,此参数不传时默认为 0。 | +| totalPrice | double | 是 | 价税合计 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。 | +| untaxedPrice | double | 是 | 未税金额 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。 | +| unitPrice | double | 是 | 单价 来源销售订单
保留 6 位有效小数,此参数无效时视为 0。 | 请求示例 @@ -55,6 +56,7 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan "maker": "", "sourceType": "", "billCode": "", + "orderCode": "", "lines": [ { "lineNum": 0, @@ -118,6 +120,7 @@ URL: http://localhost:8033/open/leaptonAddDeliveryPlan "maker": "", "sourceType": "", "billCode": "", + "orderCode": "", "lines": [ { "headKey": "0b9bed8807a04f678a7ac9761270fffd",