查询【制成品制程规划】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPZC  
BOM配方 BOM_NO string 38      

请求JSON示例

{
  "PGM": "MRPZC",      //单据程序代号
  "BOM_NO": "1003->AAA"     //ERP单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_ZC": [
            {
                "BOM_NO": "1003->AAA",
                "PRD_NO": "1003",
                "PRD_MARK": "",
                "UNIT": "1",
                "QTY": 1.0,
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "QTY_BAT": 0.0,
                "CLS_DATE": "2021-04-28 00:00:00",
                "PF_NO": "AAA",
                "NAME": "1003货品",
                "MOB_ID": "",
                "PRT_USR": "",
                "SYS_DATE": "2021-04-28 19:10:21"
            }
        ],
        "TF_ZC": [
            {
                "BOM_NO": "1003->AAA",
                "ITM": 1,
                "ZC_NO": "01",
                "DEP": "00000000",
                "TIME_UNIT": "1",
                "ZC_NAME": "工序01",
                "ZC_ITM": 1,
                "CHK_ID": "",
                "MV_ID": "Y",
                "ZC_NO_DN": "02",
                "ZC_NO_UP": "",
                "ZC_NUM": 1.0,
                "OVER_RTO": 0.0,
                "QTY_RTO": 1.0,
                "FT_EVA": 0.0,
                "TIME_EVA": 0.0,
                "TIME_ADD": 0.0,
                "EXP_RTO": 0.0,
                "PRE_ITM": 1,
                "QTY_BAS_MAN": 1.0,
                "QTY_SLS_": 0.0,
                "QTY_BAS_MAK": 1.0,
                "QTY_BAS_PRD": 1.0,
                "QTY_BAS_OUT": 1.0
            },
            {
                "BOM_NO": "1003->AAA",
                "ITM": 2,
                "ZC_NO": "02",
                "DEP": "00000000",
                "TIME_UNIT": "1",
                "ZC_NAME": "工序02",
                "ZC_ITM": 2,
                "CHK_ID": "",
                "MV_ID": "",
                "ZC_NO_UP": "01",
                "ZC_NUM": 1.0,
                "OVER_RTO": 0.0,
                "QTY_RTO": 1.0,
                "FT_EVA": 0.0,
                "TIME_EVA": 0.0,
                "TIME_ADD": 0.0,
                "EXP_RTO": 0.0,
                "PRE_ITM": 2,
                "QTY_BAS_MAN": 1.0,
                "QTY_SLS_": 0.0,
                "QTY_BAS_MAK": 1.0,
                "QTY_BAS_PRD": 1.0,
                "QTY_BAS_OUT": 1.0
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}