查询【制令单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPAC  
制令单号 MO_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM":"MRPAC",       //单据程序代号
  "MO_NO":"MO0C290002"    //ERP的单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_MO": [
            {
                "MO_NO": "MO0C290002",
                "MO_DD": "2020-12-29 00:00:00",
                "STA_DD": "2020-12-29 09:13:57",
                "END_DD": "2020-12-29 09:14:06",
                "MRP_NO": "A2001",
                "WH": "A000",
                "UNIT": "1",
                "QTY": 2.0,
                "DEP": "00000000",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "CST_MAKE": 0.0,
                "CST_PRD": 0.0,
                "CST_OUT": 0.0,
                "CST_MAN": 0.0,
                "USED_TIME": 0.0,
                "CST": 0.0,
                "PRT_SW": "N",
                "CLS_DATE": "2020-12-29 00:00:00",
                "ID_NO": "A2001->",
                "CONTROL": "F",
                "SYS_DATE": "2020-12-29 10:09:52",
                "TIME_CNT": 0.0,
                "CF_ID": "T"
            }
        ],
        "TF_MO": [
            {
                "MO_NO": "MO0C290002",
                "ITM": 1,
                "PRD_NO": "A4001",
                "PRD_NAME": "A4001原料",
                "PRD_MARK": "",
                "WH": "A000",
                "UNIT": "1",
                "QTY_RSV": 4.0,
                "QTY_LOST": 0.0,
                "REM": "",
                "CST": 0.0,
                "ZC_NO": "",
                "TW_ID": "",
                "USEIN_NO": "",
                "PRD_NO_CHG": "",
                "ID_NO": "",
                "TS_ITM": 1,
                "EST_ITM": 1,
                "PRE_ITM": 1,
                "LOS_RTO": 0.0,
                "QTY_STD": 2.0,
                "CHG_RTO": "",
                "QTY_RSV_LOST": 4.0,
                "QTY1_RSV_LOST": 0.0,
                "QTY_UML": 4.0,
                "QTY_UT": 2.0
            },
            {
                "MO_NO": "MO0C290002",
                "ITM": 2,
                "PRD_NO": "A4002",
                "PRD_NAME": "A4002原料",
                "PRD_MARK": "",
                "WH": "A000",
                "UNIT": "1",
                "QTY_RSV": 4.0,
                "QTY_LOST": 0.0,
                "REM": "",
                "CST": 0.0,
                "ZC_NO": "",
                "TW_ID": "",
                "USEIN_NO": "",
                "PRD_NO_CHG": "",
                "ID_NO": "",
                "TS_ITM": 2,
                "EST_ITM": 2,
                "PRE_ITM": 2,
                "LOS_RTO": 0.0,
                "QTY_STD": 2.0,
                "CHG_RTO": "",
                "QTY_RSV_LOST": 4.0,
                "QTY1_RSV_LOST": 0.0,
                "QTY_UML": 4.0,
                "QTY_UT": 2.0
            },
            {
                "MO_NO": "MO0C290002",
                "ITM": 3,
                "PRD_NO": "A5001",
                "PRD_NAME": "A5001物料",
                "PRD_MARK": "",
                "WH": "A000",
                "UNIT": "1",
                "QTY_RSV": 2.0,
                "QTY_LOST": 0.0,
                "REM": "",
                "CST": 0.0,
                "ZC_NO": "",
                "TW_ID": "",
                "USEIN_NO": "",
                "PRD_NO_CHG": "",
                "ID_NO": "",
                "TS_ITM": 3,
                "EST_ITM": 3,
                "PRE_ITM": 3,
                "LOS_RTO": 0.0,
                "QTY_STD": 1.0,
                "CHG_RTO": "",
                "QTY_RSV_LOST": 2.0,
                "QTY1_RSV_LOST": 0.0,
                "QTY_UML": 2.0,
                "QTY_UT": 1.0
            }
        ]
    }
}