概述
该接口主要用于第三方平台或自主研发者,通过调用【制程生产验收单】的查询接口,将Sunlike ERP或Online ERP系统中的【制程生产验收单】信息调出至第三方平台中显示。
参数说明
1.请求方式
请求方式 |
POST |
接口地址 |
http://ERPAPI站点/MRPTY/GETDATA |
格式 |
JSON |
编码类型 |
UTF-8 |
2.header参数
Content-Type |
application/json |
|
Authorization |
token |
为小写token,token是获取每次登录的值 |
3.请求参数
字段名称 |
字段代号 |
类型 |
长度 |
必填 |
固定值 |
备注 |
程序代号 |
PGM |
|
|
是 |
MRPBO |
|
单据别(TI) |
TY_ID |
string |
2 |
是 |
TQ |
|
单据号码 |
TY_NO |
string |
20 |
|
|
|
请求JSON示例
{
"PGM":"MRPBO", //程序代号
"TY_ID":"TQ", //单据别
"TY_NO":"TQ1C280001" //ERP单号
}
返回结果示例
{
"code": 0, //为0表示成功,否则为失败
"message": "查询成功",
"data": {
"MF_TY": [ //返回请求查询单据的表头明细信息
{
"TY_ID": "TQ",
"TY_NO": "TQ1C280001",
"TY_DD": "2021-12-28 00:00:00",
"TI_NO": "TQ1C280001",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"PRT_SW": "N",
"PRE_CLS_ID": "F",
"CLS_DATE": "2021-12-28 00:00:00",
"DEP": "00000000",
"SYS_DATE": "2021-12-28 19:10:37",
"CLS_ID_OK": "F",
"CLS_ID_LOST": "F",
"CHK_KND": "1",
"APP_NAME_DATA": "ONLINE-API"
}
],
"TF_TY": [ //返回请求查询单据的表身明细信息
{
"TY_ID": "TQ",
"TY_NO": "TQ1C280001",
"ITM": 1,
"PRD_NO": "1003",
"PRD_NAME": "1003成品",
"PRD_MARK": "",
"WH": "00000000",
"UNIT": "1",
"QTY_CHK": 10.0,
"QTY_OK": 8.0,
"QTY_LOST": 2.0,
"BIL_NO": "TZ1C280001",
"TI_NO": "T51C280001",
"MO_NO": "MO1C280001",
"SPC_NO": "01",
"PRC_ID": "5",
"BUILD_BIL": "",
"BUILD_BIL_ID": "",
"EST_ITM": 1,
"PRE_ITM": 1,
"QTY_PRE": 0.0,
"ZC_NO": "01",
"ID_NO": "1003->AAA",
"QTY1_CHK": 20.0,
"QTY1_OK": 16.0,
"QTY1_LOST": 4.0,
"TI_ITM": 1,
"QTY_LOST_RTN": 0.0,
"QTY1_LOST_RTN": 0.0,
"QTY1_PRE": 0.0
}
],
"BILL_STATE": {
"READONLY": false,
"READONLY_REM": []
}
}
}