基本信息
- 用途说明:生产入库单详情(单据标识:wg_new_inv_product_bill)
- 请求方式:POST
- 请求地址:https://api.kingdee.com/weigusoft/wg_prd/wg_productionManagementCommonApi?access_token=
请求参数
headers参数
- 所有的接口必须携带header参数
| 参数名称 | 参数示例 | 是否必填 | 参数说明 |
|---|---|---|---|
| Content-Type | application/json | true | 固定传:application/json |
| groupName | ns-v7g6 | true | 分组名称,获取授权信息时返回的groupName |
| accountId | 16xxxxxxxxxxxx | true | 账套ID,获取授权信息时返回的accountId |
| X-GW-Router-Addr | https://tf.jdy.com | true | IDC域名,获取授权信息时返回的domain |
body参数
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| api_name | true | String | 默认-PRD_INSTOCK |
| api_method_name | true | String | 默认-INFO |
| id | true | String | 单据id |
请求示例
{
"api_name": "PRD_INSTOCK",
"api_method_name": "INFO",
"id": "2146139740997447680"//单据id
}
响应示例
{
"id": "2146139740997447680",//单据id
"billno": "SCRKN-WG-20250209-000002",//单据编码
"billDate": "2025-02-09 00:00:00.0",//单据日期
"billStatus": "Z",//单据状态
"kinds": "1",//种类
"countQty": "1",//数量
"insDetail": [//商品分录
{
"id": "2146139740997448704",
"materialId": "2034034294178978816",//商品id
"materialName": "柜子",//商品名称
"materialNumber": "sp00704",//商品编码
"materialPictureUrl": "",//商品图片
"barcode": "",//条形码
"qty": "1",//数量
"invQty": "0",//可用库存
"instantQty": "0",//即时库存
"recvQty": "1",////应收数量
"wgCost": "0",
"cost": "0",//入库成本本位币
"unitId": "1",//单位
"unitName": "个",
"auxqty": "0",//辅助数量
"stockId": "1999983187119348736",//仓库
"stockName": "总仓",
"baseUnitId": "1",//基本单位
"baseUnitName": "个",
"batchNo": "",//批次
"srcinterId": "2144408782699091968",//源单id
"seq": "1",
"material_entity_lk": [//联查信息
{
"material_entity_lk_auxqty_old": "0",
"material_entity_lk_deffloatqty": "0",
"material_entity_lk_auxqty": "0",
"material_entity_lk_qty": "1",
"material_entity_lk_baseqty_old": "0",
"material_entity_lk_sid": "2144408904786866176",
"material_entity_lk_baseqty": "1",
"material_entity_lk_sbillid": "2144408782699091968",
"material_entity_lk_qty_old": "0",
"id": "2146139740997447681",
"material_entity_lk_stableid": "4662422202496777098",
"seq": "1",
"material_entity_lk_deffloatqty_old": "0"
}
],
"kftype": "",//保质期类型
"kfperiod": "0",//保质期
"srcbilltypeId": "wg_production_process",//源单类型
"srcbillno": "SCJG-WG-20250206-00004",//源单单号
"srcentryid": "2144408904786866176",//源单分录内码
"src_billdate": "2025-02-06 00:00:00.0",//源单日期
"recvbaseqty": "1",//基本单位应收数量
"coefficient": "1",//主单位换算率
"returnqty": "0",//已退库数量
"returnbaseqty": "0",//基本单位已退库数量
"materialcost": "0",//直接材料成本
"materialunitcost": "0",//基本单位直接材料成本
"entrytranstype": "",//业务类型
"unitcost": "0", //基本单位成本
"wg_srcorderbillno": "",
"wg_srcorderinterid": "2144408722628153344",
"wg_srcorderentryid": "2144408722628154369",
"ismulti_unit": false,//多单位
"isfloat": false,//浮动换算
"isserial": false,//序列号管理
"isbatch": false, //批次
"iskfperiod": false,//是否启用保质期
"isasstattr": false,//开启辅助属性
"wg_isweight": false,//是否是称重商品
"inputcoefficient": "0",//换算率
"unittype": "0",//单位类型
"auxunittype": "0",//辅助单位类型
"deffloatqty": "0",//浮动数量
"baseqty": "1.0000000000",//基本数量
"auxcoefficient": "0.0000000000"//辅助单位换算率
}
],
"empId": "1697012657288137728",//交货人
"empName": "鞠志广ZY",
"creatorId": "5612653",//制单人
"creatorName": "鞠志广",
"deptId": "1697221606960547840",//部门
"deptName": "车间1",
"wg_returnstatus": "A",//退库状态
"backflushed": false//是否存在倒冲
}