查询【异常报废处理】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【异常报废处理】的查询接口,将Sunlike ERP或Online ERP系统中的【异常报废处理】信息查询到第三方平台。

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     DRPXF  
单据别 IJ_ID string 2 XF  
报废单号 IJ_NO string 20   ERP单据号码

请求JSON示例

{
  "PGM": "DRPXF",       //单据程序代号
  "IJ_ID":"XF",         //单据识别代号
  "IJ_NO":"XF2205120001"    //ERP的单据号码
}

返回结果示例

{
    "code": 0,                //为0表示执行成功,其他表示错误
    "message": "查询成功",              //提示信息
    "data": {
        "MF_IJ": [                  //查询单据表头信息
            {
                "IJ_ID": "XF",
                "IJ_NO": "XF2205120001",
                "IJ_DD": "2022-05-12 00:00:00",
                "FIX_CST": "2",
                "DEP": "965",
                "MAN_NO": "001",
                "REM": "",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2022-05-26 11:10:48",
                "BIL_TYPE": "",
                "SYS_DATE": "2022-05-26 11:10:48",
                "BIL_ID": "TR",
                "BIL_NO": "TR2205120005"
            }
        ],
        "TF_IJ": [                       //查询单据表身信息
            {
                "CLS_LJ_ID": "F",
                "ADD_ID": "+",
                "IJ_ID": "XF",
                "IJ_NO": "XF2205120001",
                "ITM": 1,
                "IJ_DD": "2022-05-12 00:00:00",
                "PRD_NO": "WDP001",
                "PRD_NAME": "打印机",
                "PRD_MARK": "",
                "SPC": "H&P",
                "WH": "0011",
                "UNIT": "1",
                "QTY": 1.0,
                "QTY1": 2.0,
                "CST": 0.0,
                "CST_STD": 0.0,
                "FIX_CST": "2",
                "KEY_ITM": 1,
                "UP": 0.0,
                "PRE_ITM": 1,
                "BIL_ID": "TR",
                "BIL_NO": "TR2205120005",
                "QTY_SQ_ORG": 0.0,
                "BAR_CODE": "4",
                "PAK_UNIT": "",
                "PAK_EXC": 0.0,
                "PAK_NW": 0.0,
                "PAK_GW": 0.0,
                "PAK_MEAST": 0.0,
                "REM": "",
                "SPC_NO": "001",
                "QTY_BAR": 0.0,
                "PRD_NO_NO": "WDP001",
                "UNIT_DP": "套"
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}