查询【托工检验单-标准模式(特殊检验)】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【托工检验单-标准模式(特殊检验)】的查询接口,将Sunlike ERP或Online ERP系统中的【托工检验单-标准模式(特殊检验)】信息查询到第三方平台中。

参数说明

1.请求方式

请求方式 POST
接口地址 http://ERPAPI站点/MRPQC/GETDATA
格式 JSON
编码类型 UTF-8

2.header参数

Content-Type application/json
Authorization token 授权接口所获取的值

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPFO  
识别代号 QC_ID string 2 QT  
单据号码 QC_NO string 20   ERP的单据号码

请求JSON示例

{
    "PGM":"MRPFO",       //单据程序代号
    "QC_ID":"QT",           //单据识别代号
    "QC_NO":"QT2205140002"      //ERP的单据号码
}

返回结果示例

{
    "code": 0,                       //为0表示执行成功,其他表示错误
    "message": "查询成功",                 //提示信息
    "data": {
        "MF_QC": [                            //查询单据表头信息
            {
                "QC_ID": "QT",
                "QC_NO": "QT2205140002",
                "QC_DD": "2022-05-14 00:00:00",
                "TI_NO": "T72205140004",
                "TI_DD": "2022-05-14 00:00:00",
                "CUS_NO": "CU0301",
                "DEP": "965",
                "BIL_NO": "TW2205140004",
                "PRD_NO": "WDP001",
                "UNIT": "1",
                "CHK_ID": "2",
                "QTY": 1.0,
                "QTY_OK": 1.0,
                "QTY_ER2": 0.0,
                "SAL_NO": "001",
                "FIN_ID": "1",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "QTY_LOST": 0.0,
                "EST_ITM": 1,
                "REM": "",
                "CLS_DATE": "2022-06-07 11:12:53",
                "QTY1_OK": 2.0,
                "QTY1_LOST": 0.0,
                "QTY1_ER2": 0.0,
                "QTY1": 2.0,
                "TI_ITM": 1,
                "SYS_DATE": "2022-06-07 11:12:53",
                "WH": "YH001",
                "CHK_KND": "1",
                "APP_NAME_DATA": "ONLINE-API"
            }
        ],
        "TF_QC": [                      //查询单据表身信息
            {
                "QC_ID": "QT",
                "QC_NO": "QT2205140002",
                "ITM": 1,
                "QC_ITM": "A",
                "SPC_NO": "",
                "QTY_MIN": 0.0,
                "REM": "",
                "QTY": 1.0,
                "QTY1": 2.0,
                "QTY1_MIN": 0.0,
                "QC_SPC": "",
                "PRE_ITM": 1
            },
            {
                "QC_ID": "QT",
                "QC_NO": "QT2205140002",
                "ITM": 2,
                "QC_ITM": "B",
                "SPC_NO": "",
                "QTY_MIN": 0.0,
                "REM": "",
                "QTY": 1.0,
                "QTY1": 2.0,
                "QTY1_MIN": 0.0,
                "QC_SPC": "",
                "PRE_ITM": 2
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}