写采购订单保存接口,老是报这个错误,从错误信息看不出具体哪个字段的问题,大神帮忙看一下
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"无法将类型为“System.String”的对象强制转换为类型“System.Collections.Generic.Dictionary`2[System.String,System.Object]”。","Message":" 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.SetBaseDataField(BaseDataField field, DynamicObject targetObject, Object value, Int32 rowIndex)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.UpdateOrgField(Dictionary`2 sourceObj, Int32 rowIndex)\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Revole()\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","DIndex":0}],"SuccessEntitys":[],"SuccessMessages":[]}}}
传送json字段如下:
{
"Creator": [
""
],
"NeedUpDateFields": [
""
],
"NeedReturnFields": [
""
],
"IsDeleteEntry": "True",
"SubSystemId": "",
"IsVerifyBaseDataField": "",
"Model": {
"FID": "0",
"FBillTypeID": {
"FNumber": "83d822ca3e374b4ab01e5dd46a0062bd"
},
"FCorrespondOrgId": "",
"FConfirmerId": "",
"FConfirmDate": "1900-01-01",
"FBillNo": "CGJRD2017080900003",
"FDate": "1900-01-01",
"FSupplierId": "",
"FPurchaseOrgId": "",
"FPurchaseDeptId": "",
"FPurchaserGroupId": "",
"FPurchaserId": "",
"FProviderId": "",
"FProviderAddress": "",
"FSettleId": "",
"FChargeId": "",
"FProviderContact": "",
"FIsModificationOperator": "false",
"FProviderContactId": "",
"FPOOrderFinance": [
{
"FISPRICEEXCLUDETAX": "false",
"FSEPSETTLE": "false",
"FSettleCurrId": "",
"FPayConditionId": "",
"FExchangeTypeId": "",
"FExchangeRate": "0",
"FPriceListId": "",
"FDiscountListId": "",
"FPriceTimePoint": "",
"FSettleModeId": {
"FNumber": ""
},
"FPayAdvanceBillId": "",
"FIsIncludedTax": "false",
"FLocalCurrId": "",
"FPAYADVANCEAMOUNT": "0",
"FSupToOderExchangeBusRate": "0",
"FFOCUSSETTLEORGID": ""
}
],
"FPOOrderClause": [
{
"FEntryID": "0",
"FClauseId": "",
"FClauseDesc": ""
}
],
"FPOOrderEntry": [
{
"FEntryID": "0",
"FProductType": "",
"FMaterialId": "",
"FRequireDeptId": "",
"FMaterialDesc": "",
"FAuxPropId": "",
"FRequireStaffId": "",
"FUnitId": "",
"FQty": 75000,
"FPriceUnitId": "",
"FPriceUnitQty": "0",
"FInventoryQty": "0",
"FLocationId": "",
"FDeliveryDate": "1900-01-01",
"FPrice": "0",
"FTaxPrice": "0",
"FEntryDiscountRate": "0",
"FLocationAddress": "",
"FTaxCombination": "",
"FEntryTaxRate": "0",
"FLocation": "",
"FRequireOrgId": "",
"FCentSettleOrgId": "",
"FDeliveryLastDate": "1900-01-01",
"FDeliveryEarlyDate": "1900-01-01",
"FDeliveryMaxQty": "0",
"FDeliveryControl": "false",
"FReceiveOrgId": "",
"FDispSettleOrgId": "",
"FDeliveryMinQty": "0",
"FPriceCoefficient": "0",
"FChargeProjectID": "",
"FEntrySettleOrgId": "",
"FDeliveryBeforeDays": "0",
"FGiveAway": "false",
"FEntryNote": "",
"FDeliveryDelayDays": "0",
"FMtoNo": "",
"FTimeControl": "false",
"FGroup": "0",
"FLot": "",
"FSupMatId": "",
"FSupMatName": "",
"FDeliveryStockStatus": "",
"FProcesser": "",
"FEntrySettleModeId": "",
"FEntryPayOrgId": "",
"FPlanConfirm": "false",
"FReceiveDeptId": "",
"FMaxPrice": "0",
"FMinPrice": "0",
"FIsStock": "false",
"FConsumeSumQty": "0",
"FBaseConsumeSumQty": "0",
"FContractNo": "",
"FReqTraceNo": "",
"FSupplierLot": "",
"FBomId": "",
"FBaseSalJoinQty": "0",
"FSalJoinQty": "0",
"FPriceBaseQty": "0",
"FSetPriceUnitID": "",
"FSalUnitID": "",
"FSalQty": "0",
"FSalBaseQty": "0",
"FStockUnitID": "",
"FStockQty": "0",
"FStockBaseQty": "0",
"FSubOrgId": "",
"FDEMANDTYPE": "",
"FDEMANDBILLNO": "",
"FDEMANDBILLENTRYSEQ": "0",
"FDEMANDBILLENTRYID": "0",
"FEntryDeliveryPlan": [
{
"FDetailId": "0",
"FDeliveryDate_Plan": "1900-01-01",
"FPlanQty": "0",
"FELocation": "",
"FELocationAddress": "",
"FSUPPLIERDELIVERYDATE": "1900-01-01",
"FTRLT": "0",
"FPREARRIVALDATE": "1900-01-01",
"FELocationId": "",
"FConfirmDeliQty": "0",
"FConfirmDeliDate": "1900-01-01",
"FConfirmInfo": ""
}
],
"FTaxDetailSubEntity": [
{
"FDetailID": "0",
"FTaxRateId": "",
"FTaxRate": "0"
}
]
}
],
"FIinstallment": [
{
"FENTRYID": "0",
"FYFDATE": "1900-01-01",
"FinsPayAdvanceRate": "0",
"FYFRATIO": "0",
"FYFAMOUNT": "0",
"FISPREPAYMENT": "false",
"FRelBillNo": "",
"FInsPayAdvanceAmount": "0",
"FInsPrepaidAmount": "0",
"FACTUALAMOUNT": "0",
"FAPPLYAMOUNT": "0",
"FPayJoinAmount": "0",
"FRemarks": "",
"FPayMaterialId": {
"FNumber": ""
},
"FMATERIALSEQ": "0",
"FPURCHASEORDERNO": "",
"FOrderEntryId": "0",
"FOrderActualPaySubEntity": [
{
"FDetailID": "0",
"FPAYBILLID": "0",
"FPAYBILLENTITYID": "0",
"FPOORDERID": "0",
"FAmount": "0",
"FPREAMOUNT": "0"
}
]
}
]
}
}
推荐阅读