[TOC]

简要描述
  • 获取料单详情接口

请求URL
  • https://ggtools.thinkerx.com/open-api/material

请求方式
  • POST

参数

content_type: application/json

参数名必选类型说明
app_keystring平台签发key
timestampstring时间戳,精确到秒
room_idinteger房间id,与订单id必填其一
order_idinteger订单id,与房间id必填其一

注意:请求接口需携带签名和token

返回示例
{
    "status": 1,
    "msg": "请求成功",
    "data": {
        "panelData": [
            {
                "name": "主卧_柜A_左立板01",
                "height": 1414.0599999999999,
                "width": 598,
                "o_height": 1415.0599999999999,
                "o_width": 600,
                "color": "T01",
                "thick": "18",
                "count": 1,
                "note": "",
                "room": "主卧",
                "cabinet": "柜A",
                "texture": "normal",
                "left_edge": 1.5,
                "right_edge": 0.5,
                "down_edge": 0.5,
                "up_edge": 0.5,
                "barcode": "6783240157904",
                "category": "多层实木",
                "parent_name": "柜A",
                "holes_name": "3孔",
                "holes": [
                    {
                        "type": "hole",
                        "deep": 8,
                        "side": 1,
                        "center": {
                            "x":31.5,
                            "y": 696.6799433593751
                        },
                        "ocenter": {
                            "x": 32,
                            "y": 697.1799433593751
                        },
                        "diameter": 10,
                        "holeType": "preHole",
                        "symbol": "3in1Lock"
                    }
                ],
                "slots": [
                    {
                        "type": "slot",
                        "deep": 10,
                        "side": -1,
                        "pt1": {
                            "x": 56.122,
                            "y": 40
                        },
                        "pt2": {
                            "x": 56.122,
                            "y": 440
                        },
                        "opt1": {
                            "x": 57.122,
                            "y": 41
                        }
                        "opt2": {
                            "x": 57.122,
                            "y": 441
                        },
                        "width": 10,
                        "symbol": "YXJ",
                        "uniqueId": 6
                    }
                ],
                "sholes": [],
                "sslots": [],
                "gg_code": "uv{|001",
                "type": 1,
                "is_alien": 0,
                "board_type": 1,
                "special_process": "",
                "panel_no": 1
            },
            {
                "name": "主卧_柜A_横隔板01",
                "height": 955.1900000000001,
                "width": 598,
                "o_height": 957.1900000000001,
                "o_width": 599,
                "color": "T01",
                "thick": "18",
                "count": 1,
                "note": "",
                "room": "主卧",
                "cabinet": "柜A",
                "texture": "normal",
                "left_edge": 0.5,
                "right_edge": 0.5,
                "down_edge": 1.5,
                "up_edge": 0.5,
                "barcode": "6783240157935",
                "category": "多层实木",
                "parent_name": "柜A",
                "holes_name": "6孔",
                "holes": [
                    {
                        "type": "hole",
                        "deep": 18,
                        "side": 1,
                        "center": {
                            "x": 31.5,
                            "y": 32.5
                        },
                        "ocenter": {
                            "x": 32,
                            "y": 33
                        },
                        "diameter": 15,
                        "holeType": "bigHole",
                        "symbol": "3in1Lock",
                        "uniqueId": 6
                    }
                ],
                "slots": [],
                "sholes": [
                    {
                        "type": "shole",
                        "deep": 33,
                        "side": 4,
                        "center": {
                            "x": 32,
                            "y": 9,
                            "z": 600
                        },
                        "ocenter": {
                            "x": 32,
                            "y": 0
                        },
                        "diameter": 8,
                        "holeType": "sideHole",
                        "symbol": "3in1Lock",
                        "uniqueId": 6
                    }
                ],
                "sslots": [],
                "gg_code": "uv{|002",
                "type": 1,
                "is_alien": 0,
                "board_type": 1,
                "special_process": "",
                "panel_no": 2
            }
        ],
        "addonData": [
            {
                "name": "连接件",
                "spec": "三合一",
                "unit": "个",
                "count": 3,
                "note": "",
                "room": "主卧",
                "cabinet": "柜A"
            }
        ],
        "edgeData": [
            {
                "type": "panel",
                "thick": 1.0,
                "width": 18.0,
                "color": "T01",
                "length": 500.0
            },
            {
                "type": "panel",
                "thick": 0.5,
                "width": 9.0,
                "color": "T01",
                "length": 450.0
            },
            {
                "type": "door",
                "thick": 1.5,
                "width": 18.0,
                "color": "暖白",
                "length": 1000.0
            }
        ]
    }
}

响应参数说明

参数名类型说明
statusint响应状态, 1为成功, 0为失败
msgstring响应提示信息
dataobject{array[panelData], array[addonData], array[edgeData]}响应数据, panelData 为板件数据, addonData 为五金数据, edgeData 为封边用量数据

panelData

参数名类型说明
namestring(房间_柜体_)板件名
heightfloat板子去封边高度, 单位毫米
widthfloat板子去封边宽度, 单位毫米
o_heightfloat板子成品高度, 单位毫米
o_widthfloat板子成品宽度, 单位毫米
colorstring柜体色卡
thickstring板件厚度, 单位毫米
countint板件数量
notestring备注
roomstring房间名
cabinetstring柜体名
texturestring纹理方向 normal: 竖纹, reverse: 横纹, notcare: 无纹理
edge_bandingstring封边信息
left_edgefloat左封边, 单位毫米
right_edgefloat右封边, 单位毫米
down_edgefloat下封边, 单位毫米
up_edgefloat上封边, 单位毫米
barcodestring板件条码
categorystring板件材质
parent_namestring父级名称
holes_namestring孔槽名称
holesarray[hole_object]正反面孔数据
slotsarray[slot_object]正反面槽数据
sholesarray[hole_object]侧面孔数据
sslotsarray[slot_object]侧面槽数据
gg_codestring板件在柜柜中的唯一编码, 生成二维码时, 需要在前面拼接上 http://eggi.cn/÷ 生成完整的地址
typeint板件所属类型:1: 柜体, 2:板式门, 3:玻璃门, 4: 吸塑门, 5: 拼框门, 6: 移门
is_alienint是否是异形
board_typeint特殊板类型, 1: 普通板, 2: 单板, 3: 收口条
special_processstring特殊工艺:异形, 抽面, 开灯槽, 门型槽, 拉直器, 圆弧踢脚
panel_noint板件编号
hole_object
参数名类型说明
typestring孔分类, hole 为正反面孔, shole 为侧面孔
deepfloat孔深度
sideint孔所在方向, 正反面孔: 1为正面孔, -1为反面孔; 侧面孔: 1为左侧孔, 2为下侧孔, 3为右侧孔, 4为上侧孔
centerobject正反面孔: 相对板件不带封边的坐标, 侧面孔: 相对板件侧面视角的坐标
ocenterobject相对板件带封边成品的坐标
diameterfloat孔直径
holeTypestring孔类型, 如 bigHole: 当 symbol 为 3in1Lock 时表示三合一的偏心件大孔, 为 henge 时表示
symbolstring孔标识, 通常为连接件名, 如 3in1Lock 表示三合一连接件, henge 表示合页(铰链)
uniqueIdint孔序号
slot_object
参数名类型说明
typestring槽分类, slot 为正反面槽, sslot 为侧面槽
deepfloat槽深度
sideint槽所在方向, 值含义同孔
pt1object槽开始端点坐标, 坐标原点同正反面孔和侧面孔
pt2object槽结束端点坐标
opt1object相对板件带封边成品的槽起始端点坐标
opt2object相对板件带封边成品的槽结束端点坐标
widthfloat槽宽度
symbolstring槽标识
uniqueIdint槽序号

addonData

参数名类型说明
namestring五金名称
specstring五金规格
unitstring五金单位
countint五金个数
notestring相关备注
roomstring五金所属房间名称
cabinetstring五金所属柜体名称

edgeData

参数名类型说明
typestring分类, panel 表示柜体板材的封边, door 表示柜门板材的封边
thickfloat封边条厚度, 单位毫米
widthfloat封边条宽度(板材厚度), 单位毫米
colorstring封边条/板材色卡(颜色)
lengthfloat封边条用量(长度), 单位毫米

响应失败示例

{
    "status": 0,
    "msg": "不支持的数据格式",
    "data": {}
}

{
    "status": 0,
    "msg": "缺少必要参数",
    "data": {}
}

                   


新格尔累计为
7368555
位用户提供服务

客服热线

联系电话:400-1567-080

微信咨询

扫码在线咨询
企微官网客服在线随时答复

公众号

扫一扫
关注官方公众号

抖音号

扫一扫
关注官方抖音号