### 新增分布式调入-电池片 此接口用于新增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 | 是 | 备注| | RDistributeAllocationPackageNo | Array | 是 | 电池片分布式调入箱号明细| __RDistributeAllocationPackageNo字段__ | 参数名 | 类型 | 必填 | 说明 | | :-- | :-- | :-- | :-- | | package_no | String | 是 | 条码箱号| | material_spec | String | 是 | 规格型号| | material_code | String | 否 | 物料编码| | material_name | String | 否 | 物料名称| | batch_no | String | 否 | 物料批次| | grade | String | 否 | 等级| | eff | String | 否 | 效率| | color | String | 是 | 颜色| | power | String | 是 | 功率| | number | double | 是 | 数量| | ocv | 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":"", "RDistributeAllocationPackageNo": [ { "package_no": "250626001", "material_spec": "非SE/PE/LECO/主栅16BB12焊点/正面细栅180/背面细栅210/带鱼叉_130um", "material_code": "10B04016", "material_name": "182.2*183.75/256单晶N型TOPCon双面电池片V05", "batch_no": "250708D-10B04016-Z2507003", "grade": "A.", "eff": "24.7%", "color": "蓝色", "power": "8.27", "number": 1000, "ocv": "H" }, { "package_no": "250626002", "material_spec": "非SE/PE/LECO/主栅16BB12焊点/正面细栅180/背面细栅210/带鱼叉_130um", "material_code": "10B04016", "material_name": "182.2*183.75/256单晶N型TOPCon双面电池片V05", "batch_no": "250708D-10B04016-Z2507003", "grade": "A.", "eff": "24.7%", "color": "蓝色", "power": "8.27", "number": 1000, "ocv": "H" } ] } ] } } ```` --- ### 响应 __响应字段__ | 字段 | 类型 | 说明 | | :-- | :-- | :-- | | 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", "RDistributeAllocationPackageNo": [ { "package_no": "250626001", "material_spec": "非SE/PE/LECO/主栅16BB12焊点/正面细栅180/背面细栅210/带鱼叉_130um", "material_code": "10B04016", "material_name": "182.2*183.75/256单晶N型TOPCon双面电池片V05", "batch_no": "250708D-10B04016-Z2507003", "grade": "A.", "eff": "24.7%", "color": "蓝色", "power": "8.27", "number": 1000, "ocv": "H" }, { "package_no": "250626002", "material_spec": "非SE/PE/LECO/主栅16BB12焊点/正面细栅180/背面细栅210/带鱼叉_130um", "material_code": "10B04016", "material_name": "182.2*183.75/256单晶N型TOPCon双面电池片V05", "batch_no": "250708D-10B04016-Z2507003", "grade": "A.", "eff": "24.7%", "color": "蓝色", "power": "8.27", "number": 1000, "ocv": "H" } ], "created": 1750952900428, "updated": 1750952900428, "profile": "旭合测试100", "key": "02e30e3730ad41efae4b1f466b306939", "flag": 1 } ], "created": 1750952900405, "updated": 1750952900405, "profile": "旭合测试100", "key": "5335395b1b7c49bb9c06f8e1dc42f845", "flag": 1 } } ```