webapi 生产入库单 保存JSON包(关联上游单据)

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

webapi 生产入库单 保存JSON包(关联上游单据)

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

关联上游单据方法可以参考帖子:https://wenku.my7c.com/article/178896?channel_level=kdclub&isMapping=1 
获取FEntity_link字段数据方式可参考帖子:https://wenku.my7c.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之后
				}
			}
		]
	}	

webapi 生产入库单 保存JSON包(关联上游单据)

以下JSON是按照生产入库单关联生产汇报单,也可以根据说明改成生产订单关联上游单据方法可以参考帖子:https://wenku.my7c.com/article/178...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息