查询【生产通知单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPTZ  
通知单号 TZ_NO string 20      

请求JSON示例

{
  "PGM": "MRPTZ",      //单据程序代号
  "TZ_NO": "TZ14280001"     //ERP单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_TZ": [
            {
                "TZ_NO": "TZ14280001",
                "TZ_DD": "2021-04-28 00:00:00",
                "MO_NO": "MO14280001",
                "MRP_NO": "1003",
                "PRD_MARK": "",
                "UNIT": "1",
                "QTY": 1.0,
                "CLOSE_ID": "F",
                "ZC_NO": "01",
                "STA_DD": "2021-04-28 00:00:00",
                "END_DD": "2021-04-28 00:00:00",
                "DEP_UP": "",
                "DEP_DOWN": "00000000",
                "BIL_ID": "MO",
                "BIL_NO": "MO14280001",
                "DEP": "00000000",
                "BAT_NO": "",
                "SO_NO": "",
                "CPY_SW": "N",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "MD_NO": "",
                "ZC_ITM": 1,
                "CHK_ID": "",
                "MV_ID": "Y",
                "QTY_PRC": 1.0,
                "ZC_NO_UP": "",
                "ZC_NO_DN": "02",
                "ID_NO": "1003->AAA",
                "CLS_DATE": "2021-04-28 00:00:00",
                "CST_MAKE": 0.0,
                "CST_PRD": 0.0,
                "CST_OUT": 0.0,
                "CST_MAN": 0.0,
                "USED_TIME": 0.0,
                "CST": 0.0,
                "TIME_CNT": 0.0,
                "QTY1": 2.0,
                "BIL_TYPE": "",
                "EST_ITM": 0,
                "MOB_ID": "",
                "SEB_NO": "",
                "GRP_NO": "",
                "SYS_DATE": "2021-04-28 19:10:52",
                "CAS_NO": "",
                "CUS_OS_NO": "",
                "QTY_QL": 1.0,
                "QTY_QL_UNSH": 0.0,
                "QTY_DM": 0.0,
                "ML_FIN": "",
                "CHKQCSJ": ""
            }
        ],
        "TF_TZ": [
            {
                "TZ_NO": "TZ14280001",
                "ITM": 1,
                "PRD_NO": "10031",
                "PRD_MARK": "",
                "WH": "00000000",
                "UNIT": "1",
                "QTY": 1.0,
                "QTY_RTN": 0.0,
                "QTY_RTN_UNSH": 0.0,
                "BAT_NO": "",
                "USEIN_NO": "",
                "REM": "",
                "PRD_NO_CHG": "",
                "QTY1": 0.0,
                "ID_NO": "",
                "CST": 0.0,
                "TS_ITM": 1,
                "QTY_TS": 0.0,
                "QTY_TS_UNSH": 0.0,
                "EST_ITM": 1,
                "PRE_ITM": 1,
                "LOS_RTO": 0.0,
                "QTY_STD": 1.0,
                "ZC_PRD": "",
                "QTY_RSV": 1.0,
                "QTY_LOST": 0.0,
                "CHG_RTO": "",
                "QTY_QL": 1.0,
                "QTY1_QL": 0.0,
                "QTY_DM": 1.0,
                "QTY1_DM": 0.0,
                "QTY1_RSV": 0.0,
                "CST_ML": 0.0,
                "CST_MAN": 0.0,
                "CST_MAK": 0.0,
                "CST_PRD": 0.0,
                "CST_OUT": 0.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}