开放平台
简要描述
  • 获取订单板件数据

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

请求方式
  • POST

参数

content_type: application/json

参数名必选类型说明
app_keystring平台签发 key
timestampstring时间戳,精确到秒
oidinteger订单 id ,非必填,与 order_code 必填其一
order_codestring订单号 ,非必填,与 oid 必填其一

注意

  • 请求接口需携带签名和 token

  • 该接口需要先在云排版进行过导出 nc 后,才能获取到数据

返回示例
{
    "status": 1,
    "msg": "请求成功",
    "data": {
        "layoutData": [
            {
                "realCurve": [
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 600,
                        "y": 0
                    },
                    {
                        "x": 600,
                        "y": 877.06
                    },
                    {
                        "x": 0,
                        "y": 877.06
                    }
                ],
                "realCurveEx": [],
                "curveHoles": [],
                "oriCurveHoles": [],
                "oId": null,
                "designer": "",
                "roomID": 3014920,
                "remark": "",
                "address": "2023-03-06 11:42:58",
                "orderNo": "230306-023",
                "userName": null,
                "createTime": "2023-03-06 11:43:52",
                "customer_name": "",
                "plankNumType2": "6780871-94-5665",
                "type": "Plank",
                "plankType": "Plank",
                "parentType": "Wardrobe",
                "guid": "I95270006405940d",
                "ggid": "http://eggi.cn/÷uv[2001",
                "role": "Plank",
                "partName": "主卧_柜A_横隔板01",
                "name": "横隔板01",
                "plankID": 1,
                "installNum": 1,
                "plankNum": "6780871945665",
                "oriPlankNum": "6780871945665",
                "wardrobeName": "柜A",
                "roomName": "主卧",
                "plkName": "主卧_柜A_横隔板01",
                "edgeInfo": "←0.5↓0.5→1.5↑0.5",
                "matCode": "多层实木",
                "texture": "T01",
                "texDir": "normal",
                "thick": 18,
                "fullSize": {
                    "width": 600,
                    "height": 877.06
                },
                "oldSize": {
                    "width": "598",
                    "height": "876.061279296875"
                },
                "rect": {
                    "x": 0,
                    "y": 0,
                    "width": 598,
                    "height": 876.06
                },
                "realRect": {
                    "x": 0,
                    "y": 0,
                    "width": 598,
                    "height": 876.06
                },
                "oRect": {
                    "x": 0,
                    "y": 0,
                    "width": 600,
                    "height": 877.06
                },
                "holes": [],
                "slots": [],
                "sholes": [],
                "sslots": [],
                "sholeInfo": "",
                "sslotInfo": "",
                "matRotatable": false,
                "loc": "柜A",
                "simplePlankNum": "21202-1",
                "parentDoorStyle": null,
                "is_high_gloss_plank": false,
                "high_gloss_side": 0,
                "lightEdgeInfo": "←1↓1→1↑1",
                "model_front_edge": "→",
                "extraParts": "",
                "isFrontPlank": false,
                "doorOpenSide": "",
                "specialFlag": "default",
                "amount": 1,
                "specWidth": 600,
                "specHeight": 877.06,
                "hsInfo": "0孔0槽",
                "leftEdge": 0.5,
                "rightEdge": 1.5,
                "frontEdge": 0.5,
                "backEdge": 0.5,
                "specialShape": false,
                "isSelected": true,
                "partUniqueId": "BvfzlOSbPOoI__TJB_DXr",
                "typeSymbol": "多层实木:18:T01",
                "isEditing": false,
                "checklistID": 1,
                "rowIndex": 1
            }
        ],
        "paibanData": [
            {
                "thick": "18",
                "matCode": "多层实木",
                "texture": "T01",
                "stockNum": 1,
                "surplusInfo": null,
                "stockKey": "T01:多层实木:18:1",
                "parts": [
                    {
                        "index": 1,
                        "rect": {
                            "x": 0,
                            "y": 0,
                            "width": 604,
                            "height": 882.06
                        },
                        "rotate": false,
                        "startX": 0,
                        "startY": 2117.94,
                        "stockNum": 1,
                        "surplusInfo": null,
                        "priority": 1,
                        "cutOrigin": "rightTop",
                        "otherPlate": null,
                        "oRect": {
                            "x": 0,
                            "y": 0,
                            "width": 600,
                            "height": 877.06
                        },
                        "texDir": "normal",
                        "loc": "柜A",
                        "name": "横隔板01",
                        "plankID": 1,
                        "partName": "主卧_柜A_横隔板01",
                        "curveHoles": [],
                        "plankType": "Plank",
                        "realCurve": [
                            {
                                "x": 0,
                                "y": 0
                            },
                            {
                                "x": 600,
                                "y": 0
                            },
                            {
                                "x": 600,
                                "y": 877.06
                            },
                            {
                                "x": 0,
                                "y": 877.06
                            }
                        ],
                        "realCurveEx": [],
                        "thick": 18,
                        "texture": "T01",
                        "matRotatable": false,
                        "roomName": "主卧",
                        "roomID": 3014920,
                        "designer": "",
                        "holes": [],
                        "slots": [],
                        "sholes": [],
                        "sslots": [],
                        "plankNum": "6780871945665",
                        "matCode": "多层实木",
                        "oriPlankNum": "6780871945665",
                        "hsInfo": "0孔0槽",
                        "handle": null,
                        "partsChildren": null,
                        "remark1": "",
                        "remark2": "",
                        "remark3": "",
                        "installNum": 1,
                        "hasOriPlankNum": false,
                        "plankNumType2": "6780871-94-5665",
                        "realRect": {
                            "x": 0,
                            "y": 0,
                            "width": 598,
                            "height": 876.06
                        },
                        "fullSize": {
                            "width": 600,
                            "height": 877.06
                        },
                        "edgeInfo": "←0.5↓0.5→1.5↑0.5",
                        "sholeInfo": "",
                        "sslotInfo": "",
                        "ggid": "http://eggi.cn/÷uv[2001",
                        "remark": "",
                        "customer_name": "",
                        "address": "2023-03-06 11:42:58",
                        "orderNo": "230306-023",
                        "oriHoles": [],
                        "oriSlots": [],
                        "oriSholes": [],
                        "oriSslots": [],
                        "stockKey": "T01:多层实木:18:1",
                        "plankWidth": 1800,
                        "plankHeight": 3000,
                        "is_high_gloss_plank": false,
                        "high_gloss_side": 0,
                        "model_front_edge": "→",
                        "lightEdgeInfo": "←1↓1→1↑1",
                        "simplePlankNum": "21202-1",
                        "specWidth": 600,
                        "specHeight": 877.06,
                        "checklistID": 1,
                        "extraParts": "",
                        "isFrontPlank": false,
                        "doorOpenSide": "",
                        "specialFlag": "default",
                        "type": "Plank",
                        "sholeInfoF": "翻面",
                        "sslotInfoF": "翻面",
                        "depth": 10,
                        "holeSlotMerge": false,
                        "polyArr": [
                            [
                                {
                                    "X": 0,
                                    "Y": 2117.94
                                },
                                {
                                    "X": 604,
                                    "Y": 2117.94
                                },
                                {
                                    "X": 604,
                                    "Y": 3000
                                },
                                {
                                    "X": 0,
                                    "Y": 3000
                                }
                            ]
                        ],
                        "plankMerge": false
                    }
                ],
                "plankWidth": 1800,
                "plankHeight": 3000,
                "otherPlate": null,
                "usedRate": 0.10721012892004744,
                "bigPlank": [
                    [
                        {
                            "X": 0,
                            "Y": 0
                        },
                        {
                            "X": 1800,
                            "Y": 0
                        },
                        {
                            "X": 1800,
                            "Y": 3000
                        },
                        {
                            "X": 0,
                            "Y": 3000
                        }
                    ]
                ],
                "bigPlankShrinkPolygon": [
                    {
                        "x": 3,
                        "y": 3
                    },
                    {
                        "x": 1797,
                        "y": 3
                    },
                    {
                        "x": 1797,
                        "y": 2997
                    },
                    {
                        "x": 3,
                        "y": 2997
                    }
                ],
                "sideType": 1,
                "ableToggle": false,
                "_sortNum": 1,
                "height": 500,
                "width": 300,
                "startX": 65,
                "startY": 33,
                "canvasIndex": 1
            }
        ],
        "process_setting_id": 1074967,
        "process_setting_name": "默认生产线",
        "recodeSelectPart": {
            "selects": [],
            "isHistory": false,
            "login": true
        },
        "recodeSelectSurplus": {
            "selects": [],
            "isHistory": false
        },
        "thinkerxMaterialKeys": [],
        "paibanInfo": {
            "paibanWay": "paiban_v2",
            "isLessReverse": false,
            "isSpecialShape": false,
            "isCuttingOrder": true,
            "isAutoPassData": true,
            "paibanKey": "paiban_1678087328"
        }
    }
}
返回参数说明
参数名类型说明
statusinteger请求状态,1:成功,0:失败
msgstring状态说明
datatotal_object返回数据详情
返回失败示例
{
    "status": 0,
    "msg": "该订单未在云排版进行生产,无法提供相关信息",
    "data": {}
}
order_object
参数名类型说明
layoutDataarray[layout_object]板件数据
paibanDataarray[paiban_object]排版数据
process_setting_idinteger用户生产线id
process_setting_namestring用户生产线名称
layout_object
参数名类型说明
realCurvereal_curve_object成品尺寸
roomIDinteger房间id
designerstring设计师名称
addressstring产品地址
orderNostring订单号
createTimestring创建订单时间
customer_namestring客户名称
typestring板件类型
parentTypestring板件父级数据类型
guidstring柜体标识
ggidstring二维码内容
namestring板件名称
plankIDstring板件编号
plankNumstring板件条码
wardrobeNamestring柜体名称
roomNamestring房间名称
edgeInfostring封边信息
matCodestring板材信息
texturestring色卡信息
texDirstring

板件纹理

normal: 竖纹
reverse: 横纹
notcare: 无纹理
thickfloat搬家厚度
holesarray真反面孔信息
slotsarray真反面槽信息
sholesarray侧面孔信息
sslotsarray侧面槽信息
layout_object
参数名类型说明
thickstring大板厚度
matCodestring大板板材
texturestring大板颜色
stockNuminteger大板编号
stockKeystring大板标识
partsarray[layout_object]小板数据
plankWidthfloat大板宽度
plankHeightfloat大板高度
usedRatefloat大板利用率
bigPlankobject大板点数据



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

客服热线

联系电话:400-1567-080

微信咨询

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

公众号

扫一扫
关注官方公众号

抖音号

扫一扫
关注官方抖音号