WEBAPI新增生产汇报单物料字段报错
金蝶云社区-songxt
songxt
0人赞赏了该文章 1,043次浏览 未经作者许可,禁止转载编辑于2017年07月10日 15:11:29

我在生产汇报单里新增一条单据,提示:第1行字段“物料编码”是必填项","DIndex":0。 我用的webapi 这是我格式化后的数据
{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "True",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"Model": {
"FID": "0",
"FBillType": {
"FNumber": "FQHB"
},
"FDocumentStatus": "Z",
"FPrdOrgId": {
"FNumber": "100"
},
"FWorkshipIdH": {
"FNumber": ""
},
"FDescription": "",
"FEntity": [
{
"FEntryID": null,
"FSrcEntryId": 0,
"FIsNew": true,
"FMaterialId": {
"FNumber": "JM_ZDM"
},
"FProductType": "1",
"FReportType": {
"FNumber": "HBLX01_SYS"
},
"FUnitID": {
"FNumber": "kg"
},
"FWorkshipId": {
"FNumber": "11"
},
"FShiftGroupId": {
"FNumber": "ZB"
},
"FLot": {
"FNumber": "654601"
},
"FDeptId": {
"FNumber": ""
},
"FMtoNo": null,
"FCheckProduct": false,
"FIsEntrust": false,
"FSrcBillType": "PRD_MO",
"FMoBillNo": "ZM170622024",
"FAuxPropId": {
"FAUXPROPID__FF100015": {
"FNumber": "A"
},
"FAUXPROPID__FF100009": {
"FNumber": "N"
},
"FAUXPROPID__FF100001": "30",
"FAUXPROPID__FF100003": "8700"
},
"FHumanQty": 0,
"FSrcBillNo": null,
"FMachineQty": 0,
"FMaterialUnitID": {
"FNumber": ""
},
"FTimeUnitId": "1",
"FMoEntrySeq": 0,
"FProjectNo": null,
"FStdManHour": 0,
"FHrPrepareTime": 0,
"FHrWorkTime": 0,
"FMacPrepareTime": 0,
"FMacWorkTime": 0,
"FDescriptionE": "",
"FSrcInterId": 0,
"FSrcEntrySeq": "1",
"FMoId": 0,
"FMoEntryId": 0,
"FBaseUnitId": {
"FNumber": ""
},
"FStockInOrgId": {
"FNumber": "100"
},
"FBomId": {
"FNumber": ""
},
"FOwnerTypeId": "BD_OwnerOrg",
"FOwnerId": {
"FNumber": ""
},
"FStockId": {
"FNumber": ""
},
"FCostRate": 0,
"FSNUnitID": {
"FNumber": ""
},
"FSNQty": "70000.0000000000",
"FProduceDate": null,
"FExpiryDate": null,
"FISBACKFLUSH": false,
"FMOMAINENTRYID": 0,
"F_PAEZ_banci": {
"FNumber": "B"
},
"F_PAEZ_MJH": "654",
"F_PAEZ_DW": {
"FNumber": "01"
},
"F_PAEZ_DC": "6",
"F_PAEZ_Density": 12,
"F_PAEZ_JSJZ": 0,
"F_PAEZ_length": 300,
"F_PAEZ_BCJZ": 0,
"F_PAEZ_lenUnitID": {
"FNumber": "m"
},
"F_PAEZ_ZLCY": 0,
"F_PAEZ_TJYY": null,
"F_PAEZ_JDYY": null,
"F_PAEZ_ZXCZ": 0,
"F_PAEZ_ZLZK": {
"FNumber": "KY"
},
"F_PAEZ_GH": {
"FNumber": ""
},
"F_PAEZ_DC1": {
"FNumber": "01"
},
"F_PAEZ_BRPH": null,
"F_PAEZ_Width": 0,
"F_PAEZ_Thick": 0
}
]
}
}

如果物料不为必填项,单据是新增成功的,只是没有物料信息。在cloud里物料是选单-生产订单拉下来的,没有办法自选


问下大神是哪有出了问题,看论坛好像也有类似无法保存物料帖子
https://vip.kingdee.com/article/26956