查询【生产领料申请单】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【生产领料申请单】的查询接口,将Sunlike ERP或Online ERP系统中的【生产领料申请单】信息查询到第三方平台中。

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPQL  
申请单ID QL_ID string 2 QL  
领料申请单号 QL_NO string 20      

请求JSON示例

{
  "PGM": "MRPQL",      //单据程序代号
  "QL_ID":"QL",       //ERP单据别
  "QL_NO": "QL14280001"     //ERP单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_QL": [
            {
                "QL_ID": "QL",
                "QL_NO": "QL14280001",
                "QL_DD": "2021-04-28 00:00:00",
                "QL_TYPE": "1",
                "BAT_NO": "",
                "MO_NO": "MO14280001",
                "PRD_MARK": "",
                "USR_NO": "",
                "DEP": "00000000",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2021-04-28 00:00:00",
                "BIL_TYPE": "",
                "MOB_ID": "",
                "SYS_DATE": "2021-04-28 19:11:27",
                "PRT_USR": ""
            }
        ],
        "TF_QL": [
            {
                "QL_ID": "QL",
                "QL_NO": "QL14280001",
                "ITM": 1,
                "QL_DD": "2021-04-28 00:00:00",
                "QL_TYPE": "1",
                "PRD_NO": "10031",
                "PRD_NAME": "10031半成品",
                "PRD_MARK": "",
                "UNIT": "1",
                "WH": "00000000",
                "QTY": 1.0,
                "QTY1": 0.0,
                "CST": 0.0,
                "BAT_NO": "",
                "MO_NO": "MO14280001",
                "TZ_NO": "TZ14280001",
                "CST_STD": 0.0,
                "PRD_NO_CHG": "",
                "ID_NO": "",
                "QTY_RTN": 0.0,
                "PRE_ITM": 1,
                "EST_ITM": 1,
                "USEIN_NO": "",
                "LOS_RTO": 0.0,
                "QTY_STD": 1.0,
                "ZC_PRD": "",
                "QTY_LEFT": 1.0,
                "CHG_RTO": "",
                "CHG_ITM": 0,
                "QTY_CHG_RTO": 0.0,
                "ZC_NO": "01",
                "REM": "",
                "QTY_QL": 1.0,
                "UP_STD": 0.0,
                "QTY_QL_RTN": 0.0,
                "QTY_RSV": 1.0,
                "QTY_LOST": 0.0,
                "CHG_RTO_BAS": 0.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}