查询【生产缴库验收单转成品缴库单处理】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【生产缴库验收单转成品缴库单处理】的查询接口,将Sunlike ERP或Online ERP系统中的【生产缴库验收单转成品缴库单处理】信息查询到第三方平台中。

参数说明

1.请求方式

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

2. header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPAFC  
识别代号 MM_ID string 2 MM  
单号 MM_NO string 20   ERP的单据号码

请求JSON示例

{
    "PGM":"MRPAFC",       //单据程序代号
    "MM_ID":"MM",           //单据识别代号
    "MM_NO":"MM2205120001"      //ERP的单据号码
}

返回结果示例

{
    "code": 0,                    //为0表示执行成功,其他表示错误
    "message": "查询成功",                  //提示信息
    "data": {
        "MF_MM0": [                  //查询单据表头信息
            {
                "MM_ID": "MM",
                "MM_NO": "MM2205120001",
                "MM_DD": "2022-05-12 00:00:00",
                "DEP": "965",
                "BIL_ID": "TP",
                "BIL_NO": "TP2205120003",
                "MO_NO": "MO2205120003",
                "VOH_ID": "",
                "USR": "ADMIN",
                "USR_NO": "001",
                "CHK_MAN": "ADMIN",
                "SYS_DATE": "2022-06-06 15:54:14",
                "CLS_DATE": "2022-06-06 15:54:14",
                "PRT_SW": "N",
                "REM": ""
            }
        ],
        "TF_MM0": [                    //查询单据表身信息
            {
                "MM_ID": "MM",
                "MM_NO": "MM2205120001",
                "ITM": 1,
                "MM_DD": "2022-05-12 00:00:00",
                "MO_NO": "MO2205120003",
                "DEP": "965",
                "PRD_NO": "WDP001",
                "PRD_NO_NO": "WDP001",
                "ID_NO": "WDP001->",
                "PRD_MARK": "",
                "PRD_NAME": "打印机",
                "UNIT": "1",
                "WH": "YH001",
                "VALID_DD": "2022-06-10 00:00:00",
                "PRE_ITM": 1,
                "EST_ITM": 1,
                "QTY": 1.0,
                "QTY1": 2.0,
                "CST_MAKE": 0.0,
                "CST_PRD": 0.0,
                "CST_OUT": 0.0,
                "CST_MAN": 0.0,
                "CST": 10.0,
                "USED_TIME": 0.0,
                "TIME_CNT": 0.0,
                "CST_SMAKE": 0.0,
                "CST_SPRD": 0.0,
                "CST_SOUT": 0.0,
                "CST_SMAN": 0.0,
                "CST_STD": 10.0,
                "REM": "",
                "ML_NO": "ML2205120001",
                "BIL_ID": "TP",
                "BIL_NO": "TP2205120003",
                "BIL_ITM": 1,
                "QC_FLAG": "T0",
                "UP_STD": 0.0,
                "QTY_MO": 1.0,
                "QTY_PRC": 0.0,
                "ML_BY_MM": "T",
                "STA_DD": "2022-05-12 00:00:00",
                "OPN_DD": "2022-05-12 00:00:00",
                "END_DD": "2022-05-12 00:00:00",
                "SPC": "H&P",
                "UT1": "套",
                "NAME_ENG": "DAYING",
                "SC_DD": "2022-05-12 00:00:00",
                "CST_TOTAL": 10.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}