webapi 生产入库单 保存JSON包(关联上游单据)原创
金蝶云社区-亦木丶
亦木丶
2人赞赏了该文章 1,549次浏览 未经作者许可,禁止转载编辑于2022年03月17日 17:21:16

以下JSON是按照生产入库单关联生产汇报单,也可以根据说明改成生产订单

关联上游单据方法可以参考帖子:https://vip.kingdee.com/article/178896?channel_level=kdclub&isMapping=1 
获取FEntity_link字段数据方式可参考帖子:https://vip.kingdee.com/article/205017017030506752
1,标准产品的仓位标识形式:
2,生产入库单关联源单生产汇报汇报单

{
	"Creator": "",
	"IsEntryBatchFill": "true",
	"ValidateFlag": "true",
	"NumberSearch": "true",
	"IsAutoSubmitAndAudit": "false",
	"Model": {
		"FID": 0,
		"FBillType": {
			"FNUMBER": "SCRKD01_SYS"
		},
		"FDate": "2022-03-08",
		"FStockOrgId": {
			"FNumber": "100"
		},
		"FStockId0": {
			"FNumber": ""
		},
		"FPrdOrgId": {
			"FNumber": "100"
		},
		"FWorkShopId": {
			"FNumber": ""
		},
		"FOwnerTypeId0": "BD_OwnerOrg",
		"FOwnerId0": {
			"FNumber": "100"
		},
		"FSTOCKERID": {
			"FNAME": ""
		},
		"FDescription": "",
		"FIsEntrust": "false",
		"FEntrustInStockId": 0,
		"FScanBox": "",
		"FEntity": [
			{
				"FEntryID": 0,
				"FSrcEntryId": 100149,
				"FIsNew": "false",
				"FMaterialId": {
					"FNumber": "PHONE"
				},
				"FInStockType": "1",
				"FStockId": {
					"FNumber": "AABB"
				},
				"FProductType": "1",
				"FUnitID": {
					"FNumber": "Pcs"
				},
				"FMustQty": 1,
				"FRealQty": 1,
				"FBaseUnitId": {
					"FNumber": "Pcs"
				},
				"FBaseMustQty": 1,
				"FBaseRealQty": 1,
				"FBasePrdRealQty": 1,
				"FBaseSelReStkQty": 0,
				"FOwnerTypeId": "BD_OwnerOrg",
				"FOwnerId": {
					"FNumber": "100"
				},
				"FStockLocId": null,
				"FBomId": {
					"FNumber": ""
				},
				"FLot": {
					"FNumber": ""
				},
				"FISBACKFLUSH": "true",
				"FAuxpropId": null,
				"FMtoNo": "",
				"FProjectNo": "",
				"FWorkShopId1": {
					"FNumber": ""
				},
				"FShiftGroupId": {
					"FNumber": ""
				},
				"FMoBillNo": "MO000466",
				"FMoId": 100601,
				"FMoEntryId": 100729,
				"FMoEntrySeq": 1,
				"FMemo": "",
				"FStockUnitId": {
					"FNumber": "Pcs"
				},
				"FStockRealQty": 1,
				"FSecUnitId": {
					"FNumber": ""
				},
				"FSecRealQty": 0,
				"FSrcBillType": "PRD_MORPT",
				"FSrcBillNo": "SCHB00000101",
				"FSrcInterId": 100137,
				"FIsFinished": "false",
				"FStockStatusId": {
					"FNumber": "KCZT01_SYS"
				},
				"FSrcEntrySeq": 1,
				"FMOMAINENTRYID": 100025,
				"FKeeperTypeId": "BD_KeeperOrg",
				"FKeeperId": {
					"FNumber": "100"
				},
				"FProduceDate": "",
				"FSelReStkQty": 0,
				"FExpiryDate": "",
				"FSrcBusinessType": "",
				"FSendRowId": "",
				"FSerialSubEntity": null,
				"FEntity_Link": [//从T_prd_instockentry_lk 查询
					{
						"FEntity_Link_FFlowId": "f6e6eec3-5267-4f02-8593-b633da508a72",
						"FEntity_Link_FFlowLineId": "5",
						"FEntity_Link_FRuleId": "PRD_MORPT2INSTOCK",
						"FEntity_Link_FSTableName": "T_PRD_MORPTENTRY",
						"FEntity_Link_FSBillId": 100137,
						"FEntity_Link_FSId": 100149,
						"FEntity_Link_FBasePrdRealQtyOld": 1,
						"FEntity_Link_FBasePrdRealQty": 1
					}
				],
				"FBFLowId": {
					"FID": "f6e6eec3-5267-4f02-8593-b633da508a72"//放在Link之后
				}
			}
		]
	}	

图标赞 2
2人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!