查询【制程送检】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【制程送检】的查询接口,将Sunlike ERP或Online ERP系统中的【制程送检】信息调出至第三方平台中显示。

参数说明

1.请求方式

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

2.header参数

Content-Type application/json  
Authorization token 为小写token,token是获取每次登录的值

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPBL  
单据别(TI) TI_ID string 2 TI  
单据号码 TI_NO string 20      

请求JSON示例

{
    "PGM":"MRPBL",   //程序代号
    "TI_ID":"T5",     //单据别
    "TI_NO":"T51C280001"    //ERP单号
}

返回结果示例

{
    "code": 0,      //为0表示成功,否则为失败
    "message": "查询成功",
    "data": {
        "MF_TI": [      //返回请求查询的单据表头明细
            {
                "TI_ID": "T5",
                "TI_NO": "T51C280001",
                "TI_DD": "2021-12-28 00:00:00",
                "DEP": "00000000",
                "BIL_ID": "TZ",
                "DIS_CNT": 0,
                "BIL_NO": "TZ1C280001",
                "REM": "",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "CLS_DATE": "2021-12-28 00:00:00",
                "PRT_SW": "N",
                "CLOSE_ID": "F",
                "CHKTY_ID": "T",
                "SYS_DATE": "2021-12-28 17:23:39",
                "OS_ID": "TZ",
                "OS_NO": "TZ1C280001"
            }
        ],
        "TF_TI": [       //返回请求查询的单据表身明细
            {
                "TI_ID": "T5",
                "TI_NO": "T51C280001",
                "ITM": 1,
                "PRD_NO": "1003",
                "PRD_NAME": "1003成品",
                "PRD_MARK": "",
                "WH": "00000000",
                "UNIT": "1",
                "QTY": 10.0,
                "BIL_ID": "TZ",
                "BIL_NO": "TZ1C280001",
                "ID_NO": "1003->AAA",
                "EST_ITM": 1,
                "PRE_ITM": 1,
                "CK_ITM": 1,
                "CUS_OS_NO": "",
                "ZC_NO": "01",
                "QTY1": 20.0,
                "BAT_NO": "",
                "QTY_RK": 10.0,
                "UP_ZG_FLAG": "",
                "UT1": "KG",
                "WH_NAME": "First Stock",
                "QTY_OLD_ALL": 10.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}