概述
该接口主要用于第三方平台或自主研发者,通过调用【成品缴库单】的查询接口,将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":"MM2008120003" //ERP的单据号码
}
返回结果示例
{
"code": 0, //为0表示执行成功,其他表示错误
"message": "查询成功", //提示信息
"data": {
"MF_MM0": [ //查询单据表头信息
{
"MM_ID": "MM",
"MM_NO": "MM2008120003",
"MM_DD": "2020-08-12 00:00:00",
"DEP": "00000000",
"MO_NO": "MO20080600000002",
"VOH_ID": "",
"USR": "ADMIN",
"USR_NO": "9999",
"CHK_MAN": "ADMIN",
"SYS_DATE": "2020-08-14 14:31:01",
"CLS_DATE": "2020-08-12 00:00:00",
"PRT_SW": "N"
}
],
"TF_MM0": [ //查询单据表身信息
{
"MM_ID": "MM",
"MM_NO": "MM2008120003",
"ITM": 1,
"MM_DD": "2020-08-12 00:00:00",
"MO_NO": "MO20080600000002",
"DEP": "00000000",
"PRD_NO": "0022",
"ID_NO": "0022->",
"PRD_MARK": "",
"PRD_NAME": "0022混合制程货品",
"UNIT": "1",
"WH": "001",
"PRE_ITM": 1,
"QTY": 10.0,
"QTY1": 20.0,
"CST_MAKE": 0.0,
"CST_PRD": 0.0,
"CST_OUT": 0.0,
"CST_MAN": 0.0,
"CST": 0.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": 0.0,
"UP_STD": 0.0,
"QTY_MO": 8.0,
"QTY_PRC": -12.0,
"ML_BY_MM": "F",
"BIL_MAK": "T",
"STA_DD": "2020-08-06 00:00:00",
"OPN_DD": "2020-08-06 00:00:00",
"END_DD": "2020-08-13 00:00:00",
"UT1": "平方米",
"CST_TOTAL": 0.0
}
]
}
}