开放平台

[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必填其一

注意:请求接口时,header中需要携带sign和token,sign生成方式参见 授权说明,token获取方式参见获取用户token接口

返回示例
{
   "status": 1,
   "msg": "请求成功",
   "data": {
      "panelData": [
         {
            "name": "主卧_柜A_左立板01",
            "plank_name": "左立板01",
            "height": 1414.0599999999999,
            "width": 598,
            "o_height": 1415.0599999999999,
            "o_width": 600,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 112224,
            "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": "特殊工艺1,特殊工艺2",
            "system_special_process": "",
            "custom_special_process": "特殊工艺1,特殊工艺2",
            "special_flag": "圆形",
            "panel_no": 1,
            "panel_type": "panel",
            "plank_remarks": "板件备注"
         },
         {
            "name": "主卧_柜A_横隔板01",
            "plank_name": "横隔板01",
            "height": 955.1900000000001,
            "width": 598,
            "o_height": 957.1900000000001,
            "o_width": 599,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 112226,
            "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": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 2,
            "panel_type": "panel",
            "plank_remarks": "板件备注"
         },
         {
            "name": "主卧_柜A_柜门01_左开门01",
            "plank_name": "柜门01_左开门01",
            "height": 955.1900000000001,
            "width": 598,
            "o_height": 957.1900000000001,
            "o_width": 599,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 112231,
            "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": "0孔",
            "holes": [],
            "slots": [],
            "sholes": [],
            "sslots": [],
            "gg_code": "uv{|002",
            "type": 1,
            "is_alien": 0,
            "board_type": 1,
            "special_process": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 2,
            "panel_type": "door",
            "plank_remarks": "板件备注"
         },
         {
            "name": "主卧_柜A_抽屉01_抽屉面板01",
            "plank_name": "抽屉01_抽屉面板01",
            "height": 955.1900000000001,
            "width": 598,
            "o_height": 957.1900000000001,
            "o_width": 599,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 112237,
            "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": "孔",
            "holes": [],
            "slots": [],
            "sholes": [],
            "sslots": [],
            "gg_code": "uv{|002",
            "type": 1,
            "is_alien": 0,
            "board_type": 1,
            "special_process": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 2,
            "panel_type": "panel",
            "plank_remarks": "板件备注"
         }
      ],
      "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
         }
      ],
      "otherDoorData": [
         {
            "name": "主卧_地柜A_柜门01_单开门01",
            "plank_name": "柜门01_单开门01",
            "o_height": 1326.5670166015625,
            "o_width": 713.4122314453125,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 3019254,
            "cabinet": "地柜A",
            "texture": "normal",
            "barcode": "6893268588052",
            "parent_name": "柜门01",
            "gg_code": "uxs|00G",
            "type": 3,
            "is_alien": 0,
            "special_process": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 42,
            "board_type": 1
         },
         {
            "name": "主卧_地柜C_移门01",
            "plank_name": "移门01",
            "o_height": 984.6802978515625,
            "o_width": 1068.73779296875,
            "color": "T01",
            "thick": null,
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 3019254,
            "cabinet": "地柜C",
            "texture": "normal",
            "barcode": null,
            "parent_name": "地柜C",
            "gg_code": null,
            "type": 1,
            "is_alien": 0,
            "special_process": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 8,
            "board_type": 1,
            "holes_info": ""
         },
         {
            "name": "主卧_地柜B_柜门01_单开门01",
            "plank_name": "柜门01_单开门01",
            "o_height": 1198.4293212890625,
            "o_width": 572.33203125,
            "color": "T01",
            "thick": "18",
            "count": 1,
            "note": "",
            "room": "主卧",
            "room_id": 3019254,
            "cabinet": "地柜B",
            "texture": "normal",
            "barcode": "6893268588083",
            "parent_name": "柜门01",
            "gg_code": "uxs|00H",
            "type": 4,
            "is_alien": 0,
            "special_process": "",
            "system_special_process": "",
            "custom_special_process": "",
            "special_flag": "",
            "panel_no": 43,
            "board_type": 1,
            "holes_info": "距上100.0/647.57"
         }
      ]
   }
}

响应参数说明

参数名类型说明
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孔槽名称
holes_numint正反面孔数量
slots_numint正反面槽数量
sholes_numint侧面孔数量
sslots_numint侧面槽数量
gg_codestring板件在柜柜中的唯一编码, 生成二维码时, 需要在前面拼接上 http://eggi.cn/÷ 生成完整的地址
typeint板件所属类型:1: 柜体, 2:板式门, 3:玻璃门, 4: 吸塑门, 5: 拼框门, 6: 移门
is_alienint是否是异形
board_typeint特殊板类型, 1: 普通板, 2: 单板, 3: 收口条
special_processstring特殊工艺:异形, 抽面, 开灯槽, 门型槽, 拉直器, 圆弧踢脚
panel_noint

板件编号

plank_remarksstring

板件备注

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

微信咨询

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

公众号

扫一扫
关注官方公众号

抖音号

扫一扫
关注官方抖音号