1. 报价
接口
  • 报价
    • 报价
      POST
    • 获取报价项目树
      GET
    • 获取材料
      GET
  1. 报价

报价

开发中
POST
/api/open/quote/quote
最后修改时间:2025-09-19 13:02:16

请求参数

Header 参数

Body 参数application/json

示例
{
    "projectId": 14,
    "qty": 500,
    "paperId": 89792,
    "paperWeight": 190,
    "size": {
        "dynamicVisible": true,
        "paramKey": "NormalSize",
        "sizeKey": "F_NormarlSizeType",
        "isDefault": true,
        "visible": true,
        "data": [
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 1,
                "Code": "0",
                "PaperWeights": [
                    210,
                    140
                ],
                "Name": "32开(210×140)A5"
            },
            {
                "IsDefault": true,
                "ColorPaperWeights": [],
                "Id": 2,
                "Code": "0",
                "PaperWeights": [
                    285,
                    210
                ],
                "Name": "16开(285×210)A4"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 3,
                "Code": "0",
                "PaperWeights": [
                    420,
                    285
                ],
                "Name": "8开(420×285)A3"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 4,
                "Code": "0",
                "PaperWeights": [
                    580,
                    420
                ],
                "Name": "4开(580×420)A2"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 5,
                "Code": "0",
                "PaperWeights": [
                    860,
                    580
                ],
                "Name": "2开(860×580)A1"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 6,
                "Code": "0",
                "PaperWeights": [
                    190,
                    130
                ],
                "Name": "正度32开(190×130)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 7,
                "Code": "0",
                "PaperWeights": [
                    260,
                    190
                ],
                "Name": "正度16开(260×190)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 8,
                "Code": "0",
                "PaperWeights": [
                    380,
                    260
                ],
                "Name": "正度8开(380×260)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 9,
                "Code": "0",
                "PaperWeights": [
                    530,
                    380
                ],
                "Name": "正度4开(530×380)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 10,
                "Code": "0",
                "PaperWeights": [
                    760,
                    530
                ],
                "Name": "正度2开(760×530)"
            }
        ],
        "defaultData": [
            {
                "name": "长",
                "value": "285",
                "key": "F_CustomSizeLength"
            },
            {
                "name": "宽",
                "value": "210",
                "key": "F_CustomSizeWidth"
            }
        ],
        "defaultVisible": true,
        "defaultCheckboxKey": "F_IsCustomSize",
        "value": ""
    },
    "process": [
        {
                "selectData": [
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 49,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "亮金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 51,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "亮银"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 54,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "凸烫"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 50,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "哑金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 52,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "玫瑰金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 238239,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "红金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 53,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "黑金"
                    }
                ],
                "data": [{
                    "F_GoldMaterialId2": 0,
                    "F_GoldMaterialId1": 238239,
                    "F_GoldWidth1": 100,
                    "F_GoldWidth2": 0,
                    "F_IsGold1": true,
                    "F_GoldLength2": 0,
                    "F_GoldLength1": 100,
                    "F_IsGold2": false
                }],
                "frontLengthKey": "F_GoldLength1",
                "frontCheckboxKey": "F_IsGold1",
                "type": 6,
                "frontSelectKey": "F_GoldMaterialId1",
                "backsideSelectKey": "F_GoldMaterialId2",
                "backsideWidthKey": "F_GoldWidth2",
                "dataKey": "Gold12",
                "frontWidthKey": "F_GoldWidth1",
                "obj": {
                    "F_GoldMaterialId2": 0,
                    "F_GoldMaterialId1": 0,
                    "F_GoldWidth1": 0,
                    "F_GoldWidth2": 0,
                    "F_IsGold1": false,
                    "F_GoldLength2": 0,
                    "F_GoldLength1": 0,
                    "F_IsGold2": false
                },
                "backsideLengthKey": "F_GoldLength2",
                "name": "烫金",
                "backsideCheckboxKey": "F_IsGold2",
                "selectParamKey": "P_GoldMaterial",
                "key": "F_IsGold"
            }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'http://open.yinshuabaojia.com/api/open/quote/quote' \
--header 'tenant-id: 162' \
--header 'Content-Type: application/json' \
--data '{
    "projectId": 14,
    "qty": 500,
    "paperId": 89792,
    "paperWeight": 190,
    "size": {
        "dynamicVisible": true,
        "paramKey": "NormalSize",
        "sizeKey": "F_NormarlSizeType",
        "isDefault": true,
        "visible": true,
        "data": [
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 1,
                "Code": "0",
                "PaperWeights": [
                    210,
                    140
                ],
                "Name": "32开(210×140)A5"
            },
            {
                "IsDefault": true,
                "ColorPaperWeights": [],
                "Id": 2,
                "Code": "0",
                "PaperWeights": [
                    285,
                    210
                ],
                "Name": "16开(285×210)A4"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 3,
                "Code": "0",
                "PaperWeights": [
                    420,
                    285
                ],
                "Name": "8开(420×285)A3"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 4,
                "Code": "0",
                "PaperWeights": [
                    580,
                    420
                ],
                "Name": "4开(580×420)A2"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 5,
                "Code": "0",
                "PaperWeights": [
                    860,
                    580
                ],
                "Name": "2开(860×580)A1"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 6,
                "Code": "0",
                "PaperWeights": [
                    190,
                    130
                ],
                "Name": "正度32开(190×130)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 7,
                "Code": "0",
                "PaperWeights": [
                    260,
                    190
                ],
                "Name": "正度16开(260×190)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 8,
                "Code": "0",
                "PaperWeights": [
                    380,
                    260
                ],
                "Name": "正度8开(380×260)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 9,
                "Code": "0",
                "PaperWeights": [
                    530,
                    380
                ],
                "Name": "正度4开(530×380)"
            },
            {
                "IsDefault": false,
                "ColorPaperWeights": [],
                "Id": 10,
                "Code": "0",
                "PaperWeights": [
                    760,
                    530
                ],
                "Name": "正度2开(760×530)"
            }
        ],
        "defaultData": [
            {
                "name": "长",
                "value": "285",
                "key": "F_CustomSizeLength"
            },
            {
                "name": "宽",
                "value": "210",
                "key": "F_CustomSizeWidth"
            }
        ],
        "defaultVisible": true,
        "defaultCheckboxKey": "F_IsCustomSize",
        "value": ""
    },
    "process": [
        {
                "selectData": [
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 49,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "亮金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 51,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "亮银"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 54,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "凸烫"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 50,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "哑金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 52,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "玫瑰金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 238239,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "红金"
                    },
                    {
                        "IsDefault": false,
                        "ColorPaperWeights": [],
                        "Id": 53,
                        "Code": null,
                        "PaperWeights": [],
                        "Name": "黑金"
                    }
                ],
                "data": [{
                    "F_GoldMaterialId2": 0,
                    "F_GoldMaterialId1": 238239,
                    "F_GoldWidth1": 100,
                    "F_GoldWidth2": 0,
                    "F_IsGold1": true,
                    "F_GoldLength2": 0,
                    "F_GoldLength1": 100,
                    "F_IsGold2": false
                }],
                "frontLengthKey": "F_GoldLength1",
                "frontCheckboxKey": "F_IsGold1",
                "type": 6,
                "frontSelectKey": "F_GoldMaterialId1",
                "backsideSelectKey": "F_GoldMaterialId2",
                "backsideWidthKey": "F_GoldWidth2",
                "dataKey": "Gold12",
                "frontWidthKey": "F_GoldWidth1",
                "obj": {
                    "F_GoldMaterialId2": 0,
                    "F_GoldMaterialId1": 0,
                    "F_GoldWidth1": 0,
                    "F_GoldWidth2": 0,
                    "F_IsGold1": false,
                    "F_GoldLength2": 0,
                    "F_GoldLength1": 0,
                    "F_IsGold2": false
                },
                "backsideLengthKey": "F_GoldLength2",
                "name": "烫金",
                "backsideCheckboxKey": "F_IsGold2",
                "selectParamKey": "P_GoldMaterial",
                "key": "F_IsGold"
            }
    ]
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
        "logId": 22262386,
        "price": 606.0,
        "cubage": 0.01,
        "weight": 6.28
    }
修改于 2025-09-19 13:02:16
下一页
获取报价项目树
Built with