web api 销售订单 保存异常
金蝶云社区-云社区用户78Z01234
云社区用户78Z01234
0人赞赏了该文章 965次浏览 未经作者许可,禁止转载编辑于2016年08月09日 18:58:33

请大神们帮我看一下这个参数有没问题,保存直接就异常了

formId是SAL_SaleOrder
传入的参数是这个数组转的json
array(
'Creator' => 'String',
'NeedUpDateFields' => array(
'FCustId',
'FSalerId',
'FBillTypeID',
'FUnitID',
'FSettleOrgIds',
'FMaterialId',
'FQty',
),
'Model' => array(
'FID' => 0,
'FBillTypeID' => array(
'FBILLTYPEID' => 'SLD01_SYS',
'FNumber' => 'SLD01_SYS',
'FName' => 'String',
),
'FBillNo' => 'String',
'FDate' => '/Date(-62135596800000+0800)/',
'FBusinessType' => 'String',
'FDocumentStatus' => 'String',
'FSaleOrgId' => array(
'FOrgID' => '100.01',
'FNUMBER' => '100.01',
'FNAME' => 'test name',
),
'FCustId' => array(
'FCUSTID' => 'CUST0003',
'FNUMBER' => 'CUST0003',
'FNAME' => 'CUST0003',
),
'FReceiveId' => array(
'FCUSTID' => 'CUST0003',
'FNUMBER' => 'CUST0003',
'FNAME' => 'CUST0003',
),
'FHeadDeliveryWay' => array(
'FEntryID' => 'String',
'FNumber' => 'String',
'FDataValue' => 'String',
),
'FHEADLOCID' => array(
'FENTRYID' => 0,
'FName' => 'String',
'FNUMBER' => 'String',
'FADDRESS' => 'String',
),
'FSaleDeptId' => array(
'FDEPTID' => 'BM000001',
'FNUMBER' => 'BM000001',
'FNAME' => 'String',
),
'FCorrespondOrgId' => array(
'FOrgID' => '100.01',
'FNUMBER' => 'String',
'FNAME' => 'String',
),
'FSaleGroupId' => array(
'FEntryId' => 123,
'FNUMBER' => '123',
'FNAME' => '123',
),
'FSalerId' => array(
'FID' => 1016,
'FNumber' => '1016',
'FName' => 'String',
'FDeptId' => array(
'FDEPTID' => 'BM000003',
'FNUMBER' => 'BM000003',
'FNAME' => 'String',
),
),
'FMaterialId' => array(
'FNUMBER' => '80001',
),
'FSettleOrgIds' => array(
'FNUMBER' => '100',
),
'FUnitID' => array(
'FNUMBER' => 'Pcs',
),
'FQty' => "6",
'SAL_SaleOrder__FSaleOrderEntry' => array(
'FMaterialId' => array(
'FNUMBER' => '80001',
),
'FSettleOrgIds' => array(
'FNUMBER' => '100',
),
'FUnitID' => array(
'FNUMBER' => 'Pcs',
),
'FQty' => "6",
),
'FNote' => 'String',
'FChangeReason' => 'String',
'FReceiveAddress' => 'String',
'FSettleId' => array(
'FCUSTID' => 'CUST0003',
'FNUMBER' => 'CUST0003',
'FNAME' => 'String',
),
'FSettleAddress' => 'String',
'FReceiveContact' => array(
'FCONTACTID' => 0,
'FNumber' => 'String',
'FCustomer' => array(
'FCUSTID' => 'CUST0003',
'FNUMBER' => 'CUST0003',
'FNAME' => 'String',
),
'FName' => 'String',
),
'FChargeId' => array(
'FCUSTID' => 'CUST0003',
'FNUMBER' => 'CUST0003',
'FNAME' => 'String',
),
'FCreatorId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FCreateDate' => '/Date(-62135596800000+0800)/',
'FModifierId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FModifyDate' => '/Date(-62135596800000+0800)/',
'FApproverId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FApproveDate' => '/Date(-62135596800000+0800)/',
'FCloseStatus' => 'String',
'FCloserId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FCloseDate' => '/Date(-62135596800000+0800)/',
'FCancelStatus' => 'String',
'FCancellerId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FCancelDate' => '/Date(-62135596800000+0800)/',
'FVersionNo' => 'String',
'FChangerId' => array(
'FUserID' => 0,
'FUserAccount' => 'String',
'FName' => 'String',
),
'FChangeDate' => '/Date(-62135596800000+0800)/',
'FCreditCheckResult' => 'String',
'FNetOrderBillNo' => 'String',
'FNetOrderBillId' => 0,
'FOppID' => 0,
'FSalePhaseID' => array(
'FID' => 0,
'FNumber' => 'String',
'FName' => 'String',
),
'FISINIT' => FALSE,
'SAL_SaleOrder__FSaleOrderFinance' => array(
'FSettleCurrId' => array(
'FCURRENCYID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FSYSMBOL' => 'String',
'FPRICEDIGITS' => 0,
'FAMOUNTDIGITS' => 0,
'FIsShowCSymbol' => FALSE,
'FFormatOrder' => 'String',
),
'FRecConditionId' => array(
'FID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FMutDueStd' => 'String',
'FAccountTimeJudge' => 'String',
),
'FIsIncludedTax' => FALSE,
'FSettleModeId' => array(
'FID' => 0,
'FNumber' => 'String',
'FName' => 'String',
),
'FPriceListId' => array(
'FID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FPriceObject' => 'String',
'FIsIncludedTax' => FALSE,
),
'FRecBillId' => array(
'FRECENTRYID' => 0,
'FNumber' => 'String',
'FName' => 'String',
),
'FDiscountListId' => array(
'FID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FDiscountObject' => 'String',
),
'FBillTaxAmount' => 0,
'FBillAmount' => 0,
'FBillAllAmount' => 0,
'FJoinOrderAmount' => 0,
'FJoinStockAmount' => 0,
'FLocalCurrId' => array(
'FCURRENCYID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FSYSMBOL' => 'String',
'FPRICEDIGITS' => 0,
'FAMOUNTDIGITS' => 0,
'FIsShowCSymbol' => FALSE,
'FFormatOrder' => 'String',
),
'FExchangeTypeId' => array(
'FRATETYPEID' => 0,
'FNumber' => 'String',
'FName' => 'String',
'FDIGITS' => 0,
'FREVERSEDIGITS' => 0,
),
'FNeedPayAdvance' => FALSE,
'FExchangeRate' => 0,
'FPayAdvanceAmount' => 0,
'FPayAdvanceRate' => 0,
'FBillTaxAmount_LC' => 0,
'FBillAllAmount_LC' => 0,
'FBillAmount_LC' => 0,
'FCreChkStatus' => 'String',
'FCreChkDays' => 0,
'FCreChkAmount' => 0,
)
)
);