查询【异常重开制令单】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【异常重开制令单】的查询接口,将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":"MO2205120007"    //ERP的单据号码
}

返回结果示例

{
    "code": 0,                     //为0表示执行成功,其他表示错误
    "message": "查询成功",              //提示信息
    "data": {
        "MF_MO": [                          //查询单据表头信息
            {
                "MO_NO": "MO2205120007",
                "MO_DD": "2022-05-12 00:00:00",
                "STA_DD": "2022-05-12 00:00:00",
                "END_DD": "2022-05-12 00:00:00",
                "BIL_ID": "TR",
                "BIL_NO": "TR2205120003",
                "MRP_NO": "WDP001",
                "WH": "YH001",
                "UNIT": "1",
                "QTY": 1.0,
                "QTY1": 2.0,
                "DEP": "965",
                "CLOSE_ID": "F",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "REM": "返工制令单",
                "PRT_SW": "N",
                "CLS_DATE": "2022-05-26 15:56:25",
                "ID_NO": "WDP001->",
                "SYS_DATE": "2022-05-26 15:56:25",
                "TIME_CNT": 0.0,
                "CF_ID": "T",
                "QL_ID": "F",
                "Q2_ID": "F",
                "Q3_ID": "F",
                "ISSVS": "F",
                "WH_NAME": "要货总仓一"
            }
        ],
        "TF_MO": [                         //查询单据表身信息
            {
                "MO_NO": "MO2205120007",
                "ITM": 1,
                "PRD_NO": "WDP004",
                "PRD_NO_NO": "WDP004",
                "PRD_NAME": "原色鼓芯",
                "PRD_MARK": "",
                "WH": "YH001",
                "UNIT": "1",
                "QTY_RSV": 1.0,
                "QTY_LOST": 0.0,
                "REM": "",
                "CST": 0.0,
                "ZC_NO": "",
                "TW_ID": "",
                "USEIN_NO": "",
                "PRD_NO_CHG": "WDP006",
                "ID_NO": "",
                "TS_ITM": 1,
                "EST_ITM": 1,
                "PRE_ITM": 1,
                "LOS_RTO": 0.0,
                "QTY_STD": 1.0,
                "CHG_RTO": "1,1",
                "ML_BY_MM": "T",
                "QTY_RSV_LOST": 1.0,
                "QTY1_RSV_LOST": 0.0,
                "QTY_UML": 1.0,
                "QTY_UT": 1.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}