From 13e5b023b493f7ecff5f819c727fdb7dc7a02bdf Mon Sep 17 00:00:00 2001 From: ZhangYaozong Date: Fri, 8 Dec 2023 16:48:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/采购订单/新增采购订单.md | 125 +++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 wms/采购订单/新增采购订单.md diff --git a/wms/采购订单/新增采购订单.md b/wms/采购订单/新增采购订单.md new file mode 100644 index 0000000..5cd672a --- /dev/null +++ b/wms/采购订单/新增采购订单.md @@ -0,0 +1,125 @@ +### 原料仓、成品仓新增采购订单(到货通知单) +此接口用于新增WMS中的采购订单 +此接口需要认证,详情请查看《认证方式》。 + +--- + +### 基本信息 +方法:POST +URL: http://localhost:8033/open/AddPurChaseOrder + +--- + +### 请求 + +__请求参数__ + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| documentNo | string | 是 | 采购订单号 | +| documentId | string | 否 | 单据ID | +| documentDetail | Array | 是 | 单据明细 | + +_documentDetail:__ +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| lineId | string | 是 | 唯一行号 | +| contractNo | string | 是 | 合同号 | +| purchaseOrderNo | string | 是 | 采购订单号 | +| materialCode | string | 是 | 物料编码 | +| supplierCode | string | 是 | 原始供应商 | +| agencySupplierCode | string | 否 | 入库供应商 | +| planArrivalNumber | string | 是 | 计划到货数量 | +| planArrivalTime | string | 是 | 计划到货时间 | +| unitId | string | 是 | 主单位 | +| astUnitId | string | 是 | 辅单位 | +| changeRate | string | 是 | 换算率 | +| profile | string | 是 | 组织 | +| orderBillType | string | 否 | 采购订单单据类型 | +| orderBusinessType | string | 否 | 采购订单交易类型 | +| contractBillType | string | 否 | 采购合同单据类型 | +| contractBusinessType | string | 否 | 采购合同交易类型 | +| buyerCode | string | 是 | 采购员 | +| buyerDepartmentCode | string | 否 | 采购部门 | +| cellGrade | string | 否 | 辅助属性:等级 | +| cellColor | string | 否 | 辅助属性:颜色 | +| cellEff | string | 否 | 辅助属性:效率 | +| cellUop | string | 否 | 辅助属性:功率 | +| currentGrade | string | 否 | 辅助属性:电流 | +| isGiveAway | int | 否 | 是否赠品 1:是 0 :否 | + +__请求示例:__ +``` +{ + "data":{ + "documentNo":"", + "documentId":"", + "documentDetail": [ + { + "lineId":"", + "contractNo":"", + "purchaseOrderNo":"", + "materialCode":"", + "supplierCode":"", + "agencySupplierCode":"", + "planArrivalNumber":"", + "planArrivalTime":"", + "unitId":"", + "astUnitId":"", + "changeRate":"", + "profile":"", + "orderBillType":"", + "orderBusinessType":"", + "contractBillType":"", + "contractBusinessType":"", + "buyerCode":"", + "buyerDepartmentCode":"", + "cellGrade":"", + "cellColor":"", + "cellEff":"", + "cellUop":"", + "currentGrade":"", + "isGiveAway":0, + }, + ], + } +} +```` + +--- + +### 响应 +__响应字段__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| clock | string | 当前服务器时钟。 | +| status | string | 状态,ok:成功,error:错误,exception:异常 | +| data | object | 成功后返回具体内容 | + +__data:__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | + +``` +{ + "clock": "2023-06-25 20:00:00.000", + "status": "ok", + "data": { + "key": "c1f3202cc1ac4a9baa0ea48813e44635", + "departmentname": "部门1", + "departmentmark": "部门1", + "canceled": null, + "departmentcode": "dep1", + "id": "dep1", + "supdepid": "", + "subcompanyid1": null, + "status": 1, + "created": "2023-12-06 15:15:56.911", + "updated": "2023-12-06 15:15:56.911", + "flag": 1 + } +} + +``` + + From ee91bb508b5797eae57ac1886eb6873b2906ef4f Mon Sep 17 00:00:00 2001 From: ZhangYaozong Date: Mon, 11 Dec 2023 09:02:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/采购订单/新增采购订单.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wms/采购订单/新增采购订单.md b/wms/采购订单/新增采购订单.md index 5cd672a..b3cfd0d 100644 --- a/wms/采购订单/新增采购订单.md +++ b/wms/采购订单/新增采购订单.md @@ -16,7 +16,8 @@ __请求参数__ | 参数名 | 类型 | 必填 | 说明 | | :-- | :-- | :-- | :-- | -| documentNo | string | 是 | 采购订单号 | +| profile | string | 是 | 厂区 | +| documentNo | string | 是 | 到货单号 | | documentId | string | 否 | 单据ID | | documentDetail | Array | 是 | 单据明细 | From 21221ba4319bfef898bc66a2c52169400ffaac37 Mon Sep 17 00:00:00 2001 From: ZhangYaozong Date: Mon, 11 Dec 2023 10:03:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/采购订单/新增采购订单.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wms/采购订单/新增采购订单.md b/wms/采购订单/新增采购订单.md index b3cfd0d..5f5af63 100644 --- a/wms/采购订单/新增采购订单.md +++ b/wms/采购订单/新增采购订单.md @@ -106,18 +106,6 @@ __data:__ "clock": "2023-06-25 20:00:00.000", "status": "ok", "data": { - "key": "c1f3202cc1ac4a9baa0ea48813e44635", - "departmentname": "部门1", - "departmentmark": "部门1", - "canceled": null, - "departmentcode": "dep1", - "id": "dep1", - "supdepid": "", - "subcompanyid1": null, - "status": 1, - "created": "2023-12-06 15:15:56.911", - "updated": "2023-12-06 15:15:56.911", - "flag": 1 } }