简要描述:
柜门下单创建合同接口
请求URL:
http://open.thinkerx.com/api/lbl/methods/storeOtherContract
请求方式:
POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
| login_token | 是 | string | 通行证 |
| customer_name | 是 | string | 经销商(客户)名称 |
| designer_name | 否 | string | 区域经理 |
note | 否 | string | 备注 |
| delivery | 否 | string | 收货地址 |
| money_sum | 否 | float | 合同价格 |
| money_pay | 否 | float | 合同已付金额 |
| area_manager | 否 | string | 区域经理 |
| buyer | 否 | string | 终端用户 |
| buyer_phone | 否 | string | 终端电话 |
| buyer_address | 否 | string | 终端地址 |
| due_date | 否 | datetime | |
| duedong_time | 否 | datetime | |
| order_data | 是 | array | 子订单/板材数据 |
参数示例
{
"customer_name": "客户1",
"designer_name": "区域经232理",
"note": "备注",
"delivery": "收货地址222",
"money_sum": 123,
"money_pay": 1,
"area_manager": "区域经理",
"buyer": "终端用户22",
"buyer_phone": "终端电价",
"buyer_address": "终端地址",
"due_date": "2025-12-03 10:36:56",
"duedong_time": "2025-12-03 10:36:56",
"order_data": [
{ // 订单信息
"gg_room_id": 100048810,
"note": "",
"color": "01暖白,T01", // 颜色
"height": 0, // 高
"width": 0, // 宽
"area": 0.92, // 面积
"count": 1, // 数量
"cabinet_name": "柜A,柜B",
"room": "卫生间", //房间
"back_spec": "5装饰板",
"cabinet_spec": "18多层实木",
"expand_panel_area": 1.1027424, // 展开面积
"backplane_area": 0, // 背板面积
"sealing_number": 16.632418060302733, //封边米数
"panel_door_area": 0.872609283, //板式门面积
"glass_door_area": 0, // 玻璃门 面积
"plastic_door_area": 0, // 吸塑门面积
"framed_door_area": 0, // 拼框门面积
"sliding_door_area": 0, //移门 面积
"placeholder_board_area": 0, // 占位板 占位板面积
"panelData": [ // 板材信息
{
"barcode": "5821043040328",
"name": "中立板01",
"height": 961.33,
"width": 578,
"o_height": 962.33,
"o_width": 580,
"color": "T01",
"thick": "18",
"count": 1,
"note": "",
"unit": "",
"room": "卫生间",
"cabinet": "柜B",
"texture": "normal",
"simple_barcode": "36801-29",
"category": "\u591a\u5c42\u5b9e\u6728",
"holes_name": "4\u5b54",
"gg_code": "uR@a00t",
"type": 1,
"is_alien": 0,
"special_process": "",
"panel_no": 29,
"board_type": 1,
"edge_banding": "左0.5右0.5前1.5后0.5",
"is_poly": 0,
"special_mark": "",
"custom_special_process": "",
"holes_info": ""
}
]
}
]
}返回示例
{
"status": 0,
"message": null,
"data": {
"id": 261,
"customer_id": 10,
"brand_id": null,
"group_code": "YX20251201-2",
"money_sum": 0,
"money_pay": 0,
"money_get": 0,
"money_left": 0,
"intention_code": "YX20251201-2",
"plan_code": "0",
"product_batch": null,
"estimate_rebates_money": 0,
"rebates_money": 0,
"rebates_ratio": 0,
"discount": 10,
"pay_percent": null,
"area": 0,
"count": 0,
"note": null,
"product_name": "品名(暂无)",
"buyer": "终端用户",
"buyer_phone": null,
"buyer_address": null,
"buyer_make": null,
"create_time": "2025-12-01 13:57:45",
"status": "had_confirmcox",
"pay_time": null,
"order_status": "not_sent",
"offer_time": null,
"cashiers_note": null,
"create_date": "2025-12-01",
"delivery_address": null,
"order_category": 0,
"is_survey": 0,
"is_erect": 0,
"factory_id": 1,
"order_factory_id": 1,
"plan_whole_status": "not_confirm",
"package_status": "not_package",
}
}返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 状态码 0成功 1失败 |
| message | str | 返回信息 |
| data | array | 合同数据 |
合同数据说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 合同id |
| group_code | str | 合同编号 |
| customer_name | str | 经销商名称 |
| buyer | str | 终端用户 |
| buyer_phone | str | 终端用户电话 |
| buyer_address | str | 终端用户地址 |
| money_sum | str | 总金额 |
| create_time | str | 下单时间 |
| due_date | str | 交货时间 |
