物料数据同步:我是按照webapi里面必填数据填写。jSON如下:
{\"Creator\":\"\",\"NeedUpDateFields\":[],\"NeedReturnFields\":[],\"IsDeleteEntry\":\"True\",\"SubSystemId\":\"\",\"IsVerifyBaseDataField\":\"false\",\"Model\":{\"FMATERIALID\":\"0\",\"FCreateOrgId\":{\"FNumber\":\"100\"},\"FUseOrgId\":{\"FNumber\":\"100\"},\"FNumber\":\"\",\"FName\":\"杯子\",\"FSpecification\":\"\",\"FMnemonicCode\":\"\",\"FOldNumber\":\"\",\"FDescription\":\"\",\"FMaterialGroup\":{\"FNumber\":\"\"},\"FImgStorageType\":\"\",\"FIsSalseByNet\":\"false\",\"SubHeadEntity\":{\"FBARCODE\":\"\",\"FErpClsID\":\"1\",\"FCONFIGTYPE\":\"\",\"FCategoryID\":{\"FNumber\":\"241\"},\"FTaxType\":{\"FNumber\":\"\"},\"FTaxRateId\":{\"FNumber\":\"\"},\"FBaseUnitId\":{\"FNumber\":\"10101\"},\"FIsPurchase\":\"false\",\"FIsInventory\":\"false\",\"FIsSubContract\":\"false\",\"FIsSale\":\"false\",\"FIsProduce\":\"false\",\"FIsAsset\":\"false\",\"FGROSSWEIGHT\":\"0\",\"FNETWEIGHT\":\"0\",\"FWEIGHTUNITID\":{\"FNumber\":\"\"},\"FLENGTH\":\"0\",\"FWIDTH\":\"0\",\"FHEIGHT\":\"0\",\"FVOLUME\":\"0\",\"FVOLUMEUNITID\":{\"FNumber\":\"\"}},\"SubHeadEntity1\":{\"FStoreUnitID\":{\"FNumber\":\"10103\"},\"FAuxUnitID\":{\"FNumber\":\"\"},\"FUnitConvertDir\":\"1\",\"FStockId\":{\"FNumber\":\"\"},\"FStockPlaceId\":{},\"FIsLockStock\":\"false\",\"FIsCycleCounting\":\"false\",\"FCountCycle\":\"\",\"FCountDay\":\"0\",\"FIsMustCounting\":\"false\",\"FIsBatchManage\":\"false\",\"FBatchRuleID\":{\"FNumber\":\"\"},\"FIsKFPeriod\":\"false\",\"FIsExpParToFlot\":\"false\",\"FExpUnit\":\"\",\"FExpPeriod\":\"0\",\"FOnlineLife\":\"0\",\"FRefCost\":\"0\",\"FCurrencyId\":{\"FNumber\":\"\"},\"FIsEnableMinStock\":\"false\",\"FIsEnableMaxStock\":\"false\",\"FIsEnableSafeStock\":\"false\",\"FIsEnableReOrder\":\"false\",\"FMinStock\":\"0\",\"FSafeStock\":\"0\",\"FReOrderGood\":\"0\",\"FEconReOrderQty\":\"0\",\"FMaxStock\":\"0\",\"FIsSNManage\":\"false\",\"FIsSNPRDTracy\":\"false\",\"FSNCodeRule\":{\"FNumber\":\"\"},\"FSNUnit\":{\"FNumber\":\"\"},\"FSNManageType\":\"1\",\"FSNGenerateTime\":\"1\"},\"SubHeadEntity2\":{\"FSaleUnitId\":{\"FNumber\":\"10103\"},\"FSalePriceUnitId\":{\"FNumber\":\"10103\"},\"FOrderQty\":\"0\",\"FMinQty\":\"0\",\"FMaxQty\":\"0\",\"FOutStockLmtH\":\"0\",\"FOutStockLmtL\":\"0\",\"FAgentSalReduceRate\":\"0\",\"FIsATPCheck\":\"false\",\"FIsReturnPart\":\"false\",\"FIsInvoice\":\"false\",\"FIsReturn\":\"false\",\"FAllowPublish\":\"false\",\"FISAFTERSALE\":\"false\",\"FISPRODUCTFILES\":\"false\",\"FISWARRANTED\":\"false\",\"FWARRANTY\":\"0\",\"FWARRANTYUNITID\":\"\",\"FOutLmtUnit\":\"\",\"FTaxCategoryCodeId\":{\"FNumber\":\"\"}},\"SubHeadEntity3\":{\"FBaseMinSplitQty\":\"0\",\"FPurchaseUnitId\":{\"FNumber\":\"10103\"},\"FPurchasePriceUnitId\":{\"FNumber\":\"10103\"},\"FPurchaseOrgId\":{\"FNumber\":\"\"},\"FPurchaseGroupId\":{\"FNumber\":\"\"},\"FPurchaserId\":{\"FNumber\":\"\"},\"FDefaultVendor\":{\"FNumber\":\"\"},\"FChargeID\":{\"FNumber\":\"\"},\"FIsQuota\":\"false\",\"FQuotaType\":\"1\",\"FMinSplitQty\":\"0\",\"FIsVmiBusiness\":\"false\",\"FEnableSL\":\"false\",\"FIsPR\":\"false\",\"FIsReturnMaterial\":\"false\",\"FIsSourceControl\":\"false\",\"FReceiveMaxScale\":\"0\",\"FReceiveMinScale\":\"0\",\"FReceiveAdvanceDays\":\"0\",\"FReceiveDelayDays\":\"0\",\"FAgentPurPlusRate\":\"0\",\"FDefBarCodeRuleId\":{\"FNumber\":\"\"},\"FPrintCount\":\"0\",\"FMinPackCount\":\"0\"},\"SubHeadEntity4\":{\"FPlanMode\":\"\",\"FBaseVarLeadTimeLotSize\":\"0\",\"FPlanningStrategy\":\"1\",\"FMfgPolicyId\":{\"FNumber\":\"\"},\"FOrderPolicy\":\"0\",\"FPlanWorkshop\":{\"FNumber\":\"\"},\"FFixLeadTime\":\"0\",\"FFixLeadTimeType\":\"1\",\"FVarLeadTime\":\"0\",\"FVarLeadTimeType\":\"1\",\"FCheckLeadTime\":\"0\",\"FCheckLeadTimeType\":\"1\",\"FOrderIntervalTimeType\":\"3\",\"FOrderIntervalTime\":\"0\",\"FMaxPOQty\":\"0\",\"FMinPOQty\":\"0\",\"FIncreaseQty\":\"0\",\"FEOQ\":\"100\",\"FVarLeadTimeLotSize\":\"0\",\"FPlanIntervalsDays\":\"0\",\"FPlanBatchSplitQty\":\"0\",\"FRequestTimeZone\":\"0\",\"FPlanTimeZone\":\"0\",\"FPlanGroupId\":{\"FNumber\":\"\"},\"FPlanerID\":{\"FNumber\":\"\"},\"FCanLeadDays\":\"0\",\"FIsMrpComReq\":\"false\",\"FLeadExtendDay\":\"0\",\"FReserveType\":\"1\",\"FPlanSafeStockQty\":\"0\",\"FAllowPartAhead\":\"false\",\"FCanDelayDays\":\"0\",\"FDelayExtendDay\":\"0\",\"FAllowPartDelay\":\"false\",\"FPlanOffsetTimeType\":\"1\",\"FPlanOffsetTime\":\"0\",\"FSupplySourceId\":{\"FNumber\":\"\"},\"FTimeFactorId\":{\"FNumber\":\"\"},\"FQtyFactorId\":{\"FNumber\":\"\"}},\"SubHeadEntity5\":{\"FWorkShopId\":{\"FNumber\":\"\"},\"FProduceUnitId\":{\"FNumber\":\"\"},\"FFinishReceiptOverRate\":\"0\",\"FFinishReceiptShortRate\":\"0\",\"FProduceBillType\":{\"FNumber\":\"\"},\"FOrgTrustBillType\":{\"FNumber\":\"\"},\"FIsProductLine\":\"false\",\"FBOMUnitId\":{\"FNumber\":\"\"},\"FConsumVolatility\":\"0\",\"FIsMainPrd\":\"false\",\"FIsCoby\":\"false\",\"FIsECN\":\"false\",\"FIssueType\":\"1\",\"FBKFLTime\":\"\",\"FPickStockId\":{\"FNumber\":\"\"},\"FPickBinId\":{},\"FOverControlMode\":\"1\",\"FMinIssueQty\":\"0\",\"FISMinIssueQty\":\"false\",\"FIsKitting\":\"false\",\"FIsCompleteSet\":\"false\",\"FDefaultRouting\":{\"FNumber\":\"\"},\"FStdLaborPrePareTime\":\"0\",\"FStdLaborProcessTime\":\"0\",\"FStdMachinePrepareTime\":\"0\",\"FStdMachineProcessTime\":\"0\",\"FMinIssueUnitId\":{\"FNumber\":\"0\"},\"FMDLID\":{\"FNumber\":\"\"},\"FMdlMaterialId\":{\"FNumber\":\"\"}},\"SubHeadEntity7\":{\"FSubconUnitId\":{\"FNumber\":\"\"},\"FSubconPriceUnitId\":{\"FNumber\":\"\"},\"FSubBillType\":{\"FNumber\":\"\"}},\"SubHeadEntity6\":{\"FCheckIncoming\":\"false\",\"FCheckProduct\":\"false\",\"FCheckStock\":\"false\",\"FCheckReturn\":\"false\",\"FCheckDelivery\":\"false\",\"FEnableCyclistQCSTK\":\"false\",\"FStockCycle\":\"0\",\"FEnableCyclistQCSTKEW\":\"false\",\"FEWLeadDay\":\"0\",\"FIncSampSchemeId\":{\"FNumber\":\"\"},\"FIncQcSchemeId\":{\"FNumber\":\"\"},\"FInspectGroupId\":{\"FNumber\":\"\"},\"FInspectorId\":{\"FNumber\":\"\"},\"FCheckEntrusted\":\"false\"},\"FEntityAuxPty\":[{\"FEntryID\":\"0\",\"FAuxPropertyId\":{\"FNUMBER\":\"\"},\"FIsEnable1\":\"false\",\"FIsComControl\":\"false\",\"FIsAffectPrice1\":\"false\",\"FIsAffectPlan1\":\"false\",\"FIsAffectCost1\":\"false\",\"FIsMustInput\":\"false\",\"FValueType\":\"\"}],\"FEntityInvPty\":[{\"FEntryID\":\"0\",\"FInvPtyId\":{\"FNumber\":\"10001\"},\"FIsEnable\":\"false\",\"FIsAffectPrice\":\"false\",\"FIsAffectPlan\":\"false\",\"FIsAffectCost\":\"false\"}]}}
错误信息如下:
老师帮忙看下:所以必填数据我都填写了。
推荐阅读