简要描述:
仓库-配件材料-新增/修改
请求URL:
配件 http://lbl-open.thinkerx.com/api/lbl/warehouses/wh-addons
板材 http://lbl-open.thinkerx.com/api/lbl/warehouses/wh-panels
玻璃纱网 http://lbl-open.thinkerx.com/api/lbl/warehouses/wh-glasses
其他 http://lbl-open.thinkerx.com/api/lbl/warehouses/wh-others
型材 http://lbl-open.thinkerx.com/api/lbl/warehouses/wh-bars
请求方式:
POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| login_token | 是 | string | 通行证 |
| factory_id | 否 | string | 单库工厂必填id |
| user_id | 是 | string | 操作人 |
| name | 否 | string | 名称 |
id | 否 | int | 0表示新增 其他表示修改 |
| list_id | 是 | int | 目录id |
请求示例
{
"factory_id": "1", // 工厂id
"login_token": "ae7e508eaf2511f0bb7c00163e18d113",
"user_id": "1",
"id": 28, // 主键ID
"factory_id": 1, // 工厂id
"list_id": null, // 列表ID
"wh_id": 0, // 仓位ID
"name": "G型拉手", // 名称
"color": null, // 颜色
"spec": null, // 规格
"unit": "个", // 单位
"origin": "0", // 产地
"profile_thumb_url": null, // 型材缩略图地址
"profile_file_url": null, // 型材文件地址
"min_inventory": "0.0", // 最小库存
"warning_inventory": "0.0", // 预警库存
"max_inventory": "0.0", // 最高库存
"rejects_inventory": "0.000", // 不良品数量
"freeze_inventory": "0.00", // 冻结库存
"cost_price": null, // 成本价
"sale_price": null, // 销售价
"kg_cost_price": null, // 公斤成本价
"kg_sale_price": null, // 公斤销售价
"wholesale_price": null, // 批发价
"retail_price": null, // 零售价
"client_price": null, // 客户价
"inventory": "0.000", // 当前库存
"can_warning_inventory": "0.0", // 可用库存安全库存值
"check_inventory_time": null, // 盘点时间
"bom_code": null, // BOM编码
"color_code": "0000", // 颜色编码
"purchase_quantity": 0, // 采购数量
"photo_data": null, // 框型图用于打印提取
"note": "无", // 备注
"barcode": null, // 扫描专用条码
"update_time": null, // 最近一次修改时间
"inOut_time": "0000-00-00 00:00:00", // 最近一次出入库操作时间
"out_time": null, // 最近一次出库时间
"check": 0, // 清点标示0未1是
"counting": 0, // 是否处于清点中 1代表是
"is_component": 0, // 是否为构件构成1为是
"is_forbidden": 0, // 是否禁用
"is_semi": 0, // 是否为半成品;0否,1是
"pattern": null, // 花型、材质
"thick": "0.000", // 厚度
"length": "0.000", // 长度
"width": "0.000", // 宽度
"quality": null, // 材质
"is_billet": 0, // 是否是坯料,0:否;1是
"is_exempt_check": 0, // 是否免检;0否1是
"over_purchase_ratio": "0.00", // 采购超收率
"purchase_date": 7, // 采购周期
"purchase_unit": null, // 采购单位
"conversion_quantity": "1.00", // 换算值:采购单位*换算值=单位
"brand_name": null, // 品牌
"model": null, // 型号
"raw_price": 0, // 原始单价
"purchase_confirm": 0, // 是否已经审核采购类单价
"plan_freeze_inventory": null, // 领料冻结库存
"t_bom_code": null, // T+存货编码
"t_warehouse_code": null, // T+仓库编码
"last_purchase_supplier_id": 0, // 最后一次采购供应商
"t_class_code": null, // T+存货分类编码
"ready_in_inventory": "0.00", // 待审核入库数
"third_party_code": null, // 配件对接金蝶软件的编码
"third_party_fid": null, // 配件对接金蝶软件绑定的id
"unit_code": null, // 对接金蝶软件的单位编码
"purchase_reference_price": "0.00", // 采购参考价
"material_id": null, // 基础物料id
"purchase_unit_code": null, // 对接金蝶软件的采购单位编码
"third_party_unit_id": null, // 型材对接金蝶软件绑定的单位换算关系id
"forbidden_time": null // 禁用时间:最后一次禁用时间
}返回示例
{
"status": 0,
"message": "ok",
"data": {
"list": [
{
"id": 28,
"factory_id": 1,
"list_id": null,
"wh_id": 0,
"name": "G型拉手",
"color": null,
"spec": null,
"unit": "个",
"origin": "0",
"profile_thumb_url": null,
"profile_file_url": null,
"min_inventory": "0.0",
"warning_inventory": "0.0",
"max_inventory": "0.0",
"rejects_inventory": "0.000",
"freeze_inventory": "0.00",
"cost_price": null,
"sale_price": null,
"kg_cost_price": null,
"kg_sale_price": null,
"wholesale_price": null,
"retail_price": null,
"client_price": null,
"inventory": "0.000",
"can_warning_inventory": "0.0",
"check_inventory_time": null,
"bom_code": null,
"color_code": "0000",
"purchase_quantity": 0,
"photo_data": null,
"note": "无",
"barcode": null,
"update_time": null,
"inOut_time": "0000-00-00 00:00:00",
"out_time": null,
"check": 0,
"counting": 0,
"is_component": 0,
"is_forbidden": 0,
"is_semi": 0,
"pattern": null,
"thick": "0.000",
"length": "0.000",
"width": "0.000",
"quality": null,
"is_billet": 0,
"is_exempt_check": 0,
"over_purchase_ratio": "0.00",
"purchase_date": 7,
"purchase_unit": null,
"conversion_quantity": "1.00",
"brand_name": null,
"model": null,
"raw_price": 0,
"purchase_confirm": 0,
"plan_freeze_inventory": null,
"t_bom_code": null,
"t_warehouse_code": null,
"last_purchase_supplier_id": 0,
"t_class_code": null,
"ready_in_inventory": "0.00",
"third_party_code": null,
"third_party_fid": null,
"unit_code": null,
"purchase_reference_price": "0.00",
"material_id": null,
"purchase_unit_code": null,
"third_party_unit_id": null,
"forbidden_time": null
}
],
"count": 23
}
}返回参数说明
| 参数名 | 类型 | 描述 |
|---|---|---|
| status | int | 状态码 0成功 1失败 |
| message | str | 返回信息 |
| data | array |
