From 6735a45864cd8c88ea5781915583cb0134de62cd Mon Sep 17 00:00:00 2001 From: ningyuqi <1210478975@qq.com> Date: Thu, 26 Jun 2025 16:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E6=B1=A0=E7=89=87=E5=88=86=E5=B8=83?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E5=85=A5=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../分布式调入-电池片.md | 506 ++++++++++++++++++ 1 file changed, 506 insertions(+) create mode 100644 wms/分布式调入、调出-电池片/分布式调入-电池片.md diff --git a/wms/分布式调入、调出-电池片/分布式调入-电池片.md b/wms/分布式调入、调出-电池片/分布式调入-电池片.md new file mode 100644 index 0000000..38aaffe --- /dev/null +++ b/wms/分布式调入、调出-电池片/分布式调入-电池片.md @@ -0,0 +1,506 @@ +### 新增分布式调入-电池片 +此接口用于新增WMS中电池片的分布式调入(接口提供给电池仓库系统) +此接口需要认证,详情请查看《认证方式》。 + +--- + +### 基本信息 +方法:POST +URL: http://localhost:8033/open/SolarNPlusAddDistributedAllocationCellWms + +--- + +### 请求 + +__请求参数__ + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| profile | String | 是 | 厂区| +| BillInCode | String | 是 | 单据内码| +| AllotType | String | 是 | 调拨类型| +| BillNo | String | 是 | 单据编号| +| ApplyDate | String | 否 | 申请日期| +| ApplyOrg | String | 是 | 申请组织| +| CalloutOwnerType | String | 是 | 调出货主类型| +| CallinOwnerType | String | 是 | 调入货主类型| +| Status | String | 是 | 状态(0 禁用,1 启用)| +| Type | String | 是 | 类型(0 分布式调出,1 分布式调入)| +| Remark | String | 否 | 备注| +| TypeOfGoods | String | 是 | 货品类型(0 原材料,1 产成品)| +| WmsDistributeAllocationDetail | Array | 是 | 分布式调入、调出明细| + +__WmsDistributeAllocationDetail字段__ + +| 参数名 | 类型 | 必填 | 说明 | +| :-- | :-- | :-- | :-- | +| LineId | String | 是 | 行内码| +| MaterialCode | String | 是 | 物料编码| +| FinalGrade | String | 否 | 等级| +| Color | String | 否 | 颜色| +| Efficient | String | 否 | 效率| +| PowerGrade | String | 否 | 功率| +| CurrentGrade | String | 否 | 电流| +| UnitId | String | 是 | 主单位| +| AstUnitId | String | 是 | 辅单位| +| ChangeRate | String | 是 | 换算率| +| ApplyNumber | String | 是 | 申请数量| +| BatchNo | String | 是 | 批号| +| SupplierId | String | 是 | 原厂供应商| +| AgentSupplierId | String | 是 | 入库供应商| +| ValidDays | String | 是 | 保质期(单位默认:天)| +| CalloutOrg | String | 是 | 调出组织| +| CalloutStock | String | 是 | 调出仓库| +| CalloutOwnerType | String | 是 | 调出货主类型| +| CalloutOwnerCode | String | 是 | 调出货主| +| CalloutInventoryStatus | String | 是 | 调出库存状态| +| CallinOrg | String | 是 | 调入组织| +| CallinStock | String | 是 | 调入仓库| +| CallinOwnerType | String | 是 | 调入货主类型| +| CallinOwnerCode | String | 是 | 调入货主| +| CallinInventoryStatus | String | 是 | 调入库存状态| +| Remark | String | 是 | 备注| + + +__请求示例:__ +``` +{ + "data":{ + "profile":"旭合测试100", + "BillInCode":"1", + "AllotType":"1", + "BillNo":"1", + "ApplyDate":"2025-06-26 14:36:00", + "ApplyOrg":"100", + "CalloutOwnerType":"1", + "CallinOwnerType":"1", + "Status":"1", + "Type":"1", + "Remark":"测试", + "TypeOfGoods":"0", + "WmsDistributeAllocationDetail":[ + { + "LineId":"1", + "MaterialCode":"10204001", + "FinalGrade":"A", + "Color":"", + "Efficient":"25.2", + "PowerGrade":"", + "CurrentGrade":"", + "UnitId":"PCS", + "AstUnitId":"PCS", + "ChangeRate":"1/1", + "ApplyNumber":"10000", + "BatchNo":"250626", + "SupplierId":"VEN00200", + "AgentSupplierId":"VEN00200", + "ValidDays":"", + "CalloutOrg":"1", + "CalloutStock":"1", + "CalloutOwnerType":"1", + "CalloutOwnerCode":"100", + "CalloutInventoryStatus":"1", + "CallinOrg":"1", + "CallinStock":"1", + "CallinOwnerType":"1", + "CallinOwnerCode":"1", + "CallinInventoryStatus":"1", + "Remark":"", + "WmsDistributeAllocationDetailBatch": [ + { + "SubBatchNo": "250626001", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626002", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626003", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626004", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626005", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626006", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626007", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626008", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626009", + "SubNumber": 1000 + }, + { + "SubBatchNo": "250626010", + "SubNumber": 1000 + }, + ] + } + ] + } +} +```` + +--- + +### 响应 +__响应字段__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | +| clock | string | 当前服务器时钟。 | +| status | string | 状态,ok:成功,error:错误,exception:异常 | +| data | object | 成功后返回具体内容 | + +__data:__ +| 字段 | 类型 | 说明 | +| :-- | :-- | :-- | + +``` +{ + "clock": "2025-06-26 15:48:22.176", + "duration": "6.14s", + "status": "ok", + "data": { + "bill_in_code": "1", + "allot_type": "1", + "bill_no": "1", + "apply_date": "2025-06-26 14:36:00", + "apply_org": "100", + "callout_owner_type": "1", + "callin_owner_type": "1", + "status": 1, + "type": "1", + "remark": "测试", + "create_username": "WMS-CELL", + "type_of_goods": "0", + "distributeAllocationDetail": [ + { + "parent_key": "5335395b1b7c49bb9c06f8e1dc42f845", + "line_id": "1", + "material_code": "10204001", + "final_grade": "A", + "color": "", + "efficient": "25.2", + "power_grade": "", + "current_grade": "", + "unit_id": "PCS", + "astunit_id": "PCS", + "change_rate": "1/1", + "apply_number": 10000, + "batch_no": "250626", + "valid_days": "", + "callout_org": "1", + "callout_stock": "1", + "callout_owner_type": "1", + "callout_owner_code": "100", + "callout_inventory_status": "1", + "callin_org": "1", + "callin_stock": "1", + "callin_owner_type": "1", + "callin_owner_code": "1", + "callin_inventory_status": "1", + "remark": "", + "supplierId": "VEN00200", + "agentSupplierId": "VEN00200", + "rDistributeAllocationDetailBatch": [ + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626001", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901800, + "updated": 1750952901800, + "profile": "旭合测试100", + "key": "a532853b99cc401ba904cfd5083d1988", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626002", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901837, + "updated": 1750952901837, + "profile": "旭合测试100", + "key": "433f2f7cb992426c9bd8f66193f57f90", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626003", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901862, + "updated": 1750952901862, + "profile": "旭合测试100", + "key": "5484e340a912407889abdd0afb6ef7ee", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626004", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901886, + "updated": 1750952901886, + "profile": "旭合测试100", + "key": "5d0ba758885c4c22b1ab8a1a9346cffd", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626005", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901910, + "updated": 1750952901910, + "profile": "旭合测试100", + "key": "17284e42b7f2464b83f8fc943ab69d69", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626006", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901935, + "updated": 1750952901935, + "profile": "旭合测试100", + "key": "0e6872700aae4adca805741613267967", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626007", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901957, + "updated": 1750952901957, + "profile": "旭合测试100", + "key": "a786ea9db5704e6f963fd2dd6173e24c", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626008", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952901986, + "updated": 1750952901986, + "profile": "旭合测试100", + "key": "7153955ff33c45a8bd3ce5bb3dcd4f0f", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626009", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952902011, + "updated": 1750952902011, + "profile": "旭合测试100", + "key": "05edfbc8ace34dd79c64f1bb92fb672d", + "flag": 1 + }, + { + "entry_key": "02e30e3730ad41efae4b1f466b306939", + "material_code": "10204001", + "materialCode": null, + "cunitid": "PCS", + "castunitid": "PCS", + "vchangerate": "1/1", + "batch_no": "250626010", + "number": null, + "stockout_qty": 1000, + "cast_stockout_qty": 0, + "supplierId": null, + "supplierName": null, + "supplierCode": null, + "agentSupplierId": null, + "agentSupplierName": null, + "agentSupplierCode": null, + "stockId": null, + "stockName": null, + "locationId": null, + "locationName": null, + "created": 1750952902034, + "updated": 1750952902034, + "profile": "旭合测试100", + "key": "b9258b97942a443db39cad25ad4f753d", + "flag": 1 + } + ], + "created": 1750952900428, + "updated": 1750952900428, + "profile": "旭合测试100", + "key": "02e30e3730ad41efae4b1f466b306939", + "flag": 1 + } + ], + "created": 1750952900405, + "updated": 1750952900405, + "profile": "旭合测试100", + "key": "5335395b1b7c49bb9c06f8e1dc42f845", + "flag": 1 + } +} +``` + +