1. 接口参数示例
1.1. 参数格式
- list接口
{ "objectType": "", // 目标对象名称:从数据字典中查看对象名称 "criteriaStr": "", // 查询参数 查询字段支持lastModifiedTime(TimeStamp) "fields": [ // 查询字段列表:从数据字典中查看字段列表 ] }
- add接口
{ "objectType": "", // 目标对象名称:从数据字典中查看对象名称 "data": { // 要新增的字段:从数据字典中查看字段类列表 } }
1.2. 自定义对象
在数据字典中查看自定义对象(需登录)
- add接口(对象名称和字段列表需到数据字典中查看)
{ "objectType": "x", // 目标对象名称:从数据字典中查看对象名称 "data": { // 数据项 "name": "名称", // 从数据字典中查看字段列表 "externalObjectId": "x", // 外部系统对象唯一标识 "externalObjectType": "x", // 外部系统对象类型 "externalSystemCode": "x" // 外部系统标识 } }
- list接口(对象名称和字段列表需到数据字典中查看)
{ "objectType": "x", // 目标对象名称:从数据字典中查看对象名称 "criteriaStr": "id is not null", // 查询参数 查询字段支持lastModifiedTime(TimeStamp) "fields": [ // 查询字段列表 "id", // 主对象字段 "name", // 主对象字段 { "fieldName": "category", // 外键字段 ps:如果字段有参照对照,如果字段名以id结尾,去掉id为fieldName,如果字段名不是以id结尾,字段名+Object为fieldName。此fieldName对应的字段为categoryId "fields": [ // 外键字段对应对象字段列表 "id", // 外键字段对应对象字段 "name" // 外键字段对应对象字段 ] }, "code", // 主对象字段 { "fieldName": "list", // 对象子表字段 "fields": [ // 对象子表字段列表 "id", // 对象子表字段 "name" // 对象子表字段 ] } ] }
1.3. 常见查询方案
- list 接口,根据时间查询,查询条件使用时间戳,时间戳单位为秒
{ "objectType":"RevenueConfirmation", "criteriaStr":"businessDate = to_timestamp(1653408000)'" //查询条件使用时间戳, 查询2022年5月25号数据 "fields":[ "id", // 查询主对象 "name", { "fieldName":"billType", // 外键字段 "fields":[ "id", // 外键字段参照对象字段 "name" // 外键字段参照对象字段 ] } ] }
list 接口,根据时间查询,查询条件使用时间表达式,时间表达式需要使用0时区的时间
{ "objectType":"RevenueConfirmation", "criteriaStr:"businessDate = '2022-05-24 16:00:00'" // 查询条件使用时间表达式,查询2022年5月25号数据 "fields":[ "id", // 查询主对象 "name", { "fieldName":"billType", // 外键字段 "fields":[ "id", // 外键字段参照对象字段 "name" // 外键字段参照对象字段 ] } ] }
list 接口,根据子表条件查询
{ "objectType":"RevenueConfirmation", "criteriaStr:"revenueConfirmationItems.productId = 'XXXXX'" // 查询条件,主表字段.子表字段, 子表包含存货XXXXX的数据 "fields":[ "id", // 查询主对象 "name", { "fieldName":"billType", // 外键字段 "fields":[ "id", // 外键字段参照对象字段 "name" // 外键字段参照对象字段 ] }, { "fieldName":"revenueConfirmationItems", // 查询子列表,对应明细行 "fields":[ { "fieldName":"product", // 明细对象的外键字段 "fields":[ "name" // 明细对象的外键字段参照对象字段 ] } ] } ] }
list 接口,根据主表查询子表
{ "objectType":"RevenueConfirmation", "criteriaStr":"id is not null limit 3 offset 0", // 查询条件,分页查询,3表示每页显示数据的个数,0表示从头开始查询 "fields":[ "id", // 查询主对象 "name", { "fieldName":"department", // 外键字段 ps:如果字段有参照对照,如果字段名以id结尾,去掉id为fie,如果字段名不是以id结尾,字段名+Object为fieldName。此fieldName对应的字段为departmentId "fields":[ "id", // 外键字段参照对象字段 "name" // 外键字段参照对象字段 ] }, { "fieldName":"revenueConfirmationItems", // 查询子列表,对应明细行 "fields":[ { "fieldName":"product", // 明细对象的外键字段 "fields":[ "name" // 明细对象的外键字段参照对象字段 ] }, "quantity", // 明细对象字段 "price", // 明细对象字段 "taxRate", // 明细对象字段 "originAmount", // 明细对象字段 "amount", // 明细对象字段 "originAmountWithoutTax", // 明细对象字段 "amountWithoutTax", // 明细对象字段 "originTaxAmount", // 明细对象字段 "taxAmount", // 明细对象字段 "originPriceWithoutTax" // 明细对象字段 ] } ] }
update 接口
{ "objectType":"RevenueConfirmation", "data":{ "id":"EH6FB060PST000Wz", "billType.name":"收入确认单", "businessType.name":"收入确认单立账", "revenueConfirmationItems":[ { "product.name":"B商品", "quantity":5, "price":1000, "priceWithoutTax":917.43, "taxRate":0.09, "originAmount":5000, "amount":5000, "originAmountWithoutTax":4587.16, "amountWithoutTax":4587.16, "originTaxAmount":412.84, "taxAmount":412.84, "originPriceWithoutTax":917.43, "unit.name":"箱", "productStandardTypeId":"ProductStandardType.quantity", "editFlag":"add" /// add->新增子对象数据 }, { "id":"EH6FB060PST000W", // 子对象id:如果是更新,则必需指定 "product.name":"B商品", "quantity":5, "price":1000, "priceWithoutTax":917.43, "taxRate":0.09, "originAmount":5000, "amount":5000, "originAmountWithoutTax":4587.16, "amountWithoutTax":4587.16, "originTaxAmount":412.84, "taxAmount":412.84, "originPriceWithoutTax":917.43, "unit.name":"箱", "productStandardTypeId":"ProductStandardType.quantity", "editFlag":"update" // 子对象操作标记:update->更新(需指定子明细行id) add->新增 }, { "id":"EH6FB060PST000X", "editFlag":"delete" // 子对象操作标记 delete->删除, (需指定明细行id) } ] } }
1.4. 普通对象
1.4.1. 部门
部门数据字典(Department)
- add接口
{ "objectType":"Department", "data":{ "ownerLegalEntityOrg.name":"科技集团公司-多组织", // 启用多组织的时候,ownerLegalEntityOrgId必填 "code":"dd10035", "name":"测试添加部门", "parent.code":"0003", "manager.name":"王小胖", "executive.name":"王二胖", "character.title":"研发", "annualNumber":100, "disabledTime":"2030-01-01", "description":"说明", "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"2100001", "externalObjectType":"Department", "externalSystemCode":"210001" } }
1.4.2. 人员
人员数据字典 (User)
- add接口
{ "objectType":"User", "data":{ "ownerLegalEntityOrg.code":"1122k", // 启用多组织的时候,ownerLegalEntityOrgId必填 "ownerLegalEntityOrg.name":"科技集团公司-多组织", "code":"0003", "name":"王三胖", "englishName":"WangSanPang", "statusId":"UserStatus.incumbent", "department.code":"0002", "department.name":"开发部", "idTypeId":"IdType.other", "idNumber":123123, "birthdate":"1639366050000", "genderId":"Gender.male", "rank.code":"0002", "isBizUser":true, "isLoginUser":true, "disabledTime":"2022-10-11", "systemDisabledTime":"2022-10-11", "mobile":"13800000000", "email":"756787567@qq.com", "qq":"756787567", "address":"海淀区XX路", "jobRelationships":[ { "fromParty.code":"1122k", // 启用多组织的时候,fromPartyId必填 "department.code":"0002", "department.name":"开发部", "startTime":"2020-10-11", "disabledTime":"2021-10-11", "isMain":"true", "supervisor.code":"0001", "rank.code":"0001", "position.code":"0001", "position.name":"后端开发工程师", "positionSequence.code":"0001", "positionSequence.name":"T1", "userCategory.code":"001", "userCategory.name":"在职员工", "salaryType.name":"工资薪金", "settleObjectType":"Customer", "settleObject.code":"0001000001" } ], "bankAccounts":[ { "accountCode":"123123", "name":"王三胖", "epayToAcctTypeId":"EpayToAcctType.toPerson", "bank.name":"中国建设银行", "bankName":"开户银行说明", "isDefault":true, "isDisabled":false } ], "roles":[ { "role.name":"普通员工" } ], "externalObjectId":"%s", "externalObjectType":"2100004", "externalSystemCode":"210004" } }
1.4.3. 客户分类
客户分类数据字典(CustomerCategory)
- add接口
{ "objectType":"CustomerCategory", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"00101", "name":"B类客户子客户", "parent.code":"0002", "parent.name":"B类客户", "externalObjectId":"2100004", "externalObjectType":"CustomerCategory", "externalSystemCode":"210004" } }
1.4.4. 客户
客户数据字典(Customer)
- add接口
{ "objectType":"Customer", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "customerTypeId":"CustomerType.externalCustomer", // 启用多组织的时候,customerTypeId必填 "code":"0001", "isManualCode":true, // 手动编码,指定后,系统会取指定的code的值,否则,系统会根据默认的编码规则自动生成编码 "name":"李二胖", "abbrName":"李二胖", "aidCode":"助记码", "vendor.code":"0000100001", "vendor.name":"材料供应商", "category.code":"0001", "category.name":"A类客户", "isChannel":false, "channel.code":"0001000001", "channel.name":"李小胖", "industry.code":"86", "industry.name":"新闻和出版业", "firstDealTime":"2022-06-13", "disabledTime":"2025-06-13", "legalPerson":"李多", "address":"北京市海淀区XX路XX", "taxIdNumber":"8FXXXXXXXX", "telephone":"13500000000", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "ownerDept.code":"0001", "ownerDept.name":"测试部", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "isPriceWithTax":true, "settlementMethod.code":"02", "settlementMethod.name":"银行转账", "invoiceType.name":"增值税专用发票", "reconcileMethodId":"ReconcileMethod.web", "isReconcile":true, "isCooperated":true, "addresses":[ { "country.name":"中国", "districta.code":"0101", "district.name":"东城区", "address":"北京市东城区XX路XX号", "isDefault":true } ], "bankAccounts":[ { "accountCode":"6316876545678766567", "name":"李二胖", "epayToAcctTypeId":"EpayToAcctType.toCompany", "bank.name":"中国工商银行", "bankName":"中国工商银行里开户", "isDefault":true } ], "contacts":[ { "name":"555", "telephone":"13500000001", "mobile":"13500000001", "email":"765678443@qq.com", "postcode":"457864", "position":"主管", "isPrimary":true } ], "externalObjectId":"20006", "externalObjectType":"Customer", "externalSystemCode":"210006" } }
1.4.5. 供应商分类
供应商分类数据字典(VendorCategory)
- add接口
{ "objectType":"VendorCategory", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"00021", "name":"供应商测试", "parent.code":"0002", "parent.name":"B级供应商", "externalObjectId":"200006", "externalObjectType":"VendorCategory", "externalSystemCode":"210006" } }
1.4.6. 供应商
供应商数据字典(Vendor)
- add接口
{ "objectType":"Vendor", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "vendorTypeId":"VendorType.externalVendor", // 启用多组织的时候,vendorTypeId必填 "code":"0000100002", "name":"电脑供应商", "abbrName":"电脑供应商", "aidCode":"助记码", "customer.code":"0001000002", "customer.name":"李二胖", "category.code":"00001", "category.name":"A+级别供应商", "industry.code":"01", "industry.name":"农业", "firstDealTime":"2022-06-13", "disabledTime":"2025-06-13", "legalPerson":"李多", "address":"北京市海淀区XX路XX", "taxIdNumber":"8FXXXXXXXX", "telephone":"13500000000", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "ownerDept.code":"0001", "ownerDept.name":"测试部", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "isPriceWithTax":true, "settlementMethod.code":"02", "settlementMethod.name":"银行转账", "invoiceType.name":"增值税专用发票", "reconcileMethodId":"ReconcileMethod.web", "isReconcile":true, "isCooperated":true, "addresses":[ { "country.name":"中国", "districta.code":"0101", "district.name":"东城区", "address":"北京市东城区XX路XX号", "isDefault":true } ], "bankAccounts":[ { "accountCode":"6316876545678766567", "name":"李二胖", "epayToAcctTypeId":"EpayToAcctType.toCompany", "bank.name":"中国工商银行", "bankName":"中国工商银行里开户", "isDefault":true } ], "contacts":[ { "name":"555", "telephone":"13500000001", "mobile":"13500000001", "email":"765678443@qq.com", "postcode":"457864", "position":"主管", "isPrimary":true } ], "externalObjectId":"20006", "externalObjectType":"Customer", "externalSystemCode":"210006" } }
1.4.7. 其他单位分类
其他单位分类数据字典( OtherPartyCategory)
- add 接口
{ "objectType":"OtherPartyCategory", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0002", "name":"其他单位测试", "parent.code":"0001", "parent.name":"单位", "externalObjectId":"2100009", "externalObjectType":"OtherPartyCategory", "externalSystemCode":"210009" } }
1.4.8. 其他单位
其他单位数据字典(OtherParty)
- add 接口
{ "objectType":"OtherParty", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"001", "name":"test%s", "abbrName":"DSL", "aidCode":"DSL1", "category.code":"0002", "category.name":"其他单位测试", "isFinancial":true, "industry.code":"86", "industry.name":"新闻和出版业", "firstDealTime":"2022-06-13", "disabledTime":"2025-06-13", "legalPerson":"李多", "telephone":"13500000000", "address":"北京市海淀区XX路XX", "taxIdNumber":"8FXXXXXXXX", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "ownerDept.code":"0001", "ownerDept.name":"测试部", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "isPriceWithTax":true, "settlementMethod.code":"02", "settlementMethod.name":"银行转账", "invoiceType.name":"增值税专用发票", "addresses":[ { "country.name":"中国", "districta.code":"0101", "district.name":"东城区", "address":"北京市东城区XX路XX号", "isDefault":true } ], "bankAccounts":[ { "accountCode":"6316876545678766567", "name":"李二胖", "epayToAcctTypeId":"EpayToAcctType.toCompany", "bank.name":"中国工商银行", "bankName":"中国工商银行里开户", "isDefault":true } ], "contacts":[ { "name":"555", "telephone":"13500000001", "mobile":"13500000001", "email":"765678443@qq.com", "position":"主管", "isPrimary":true } ], "externalObjectId":"2100009", "externalObjectType":"OtherParty", "externalSystemCode":"210009" } }
1.4.9. 账户
账户数据字典(BankAccount)
- add 接口
{ "objectType":"BankAccount", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"00061", "accountCode":"6222003803934400", "name":"test%s", "isManualCode":false, "bank.name":"中国建设银行", "bankAccountTypeId":"BankAccountType.cash", "currency.name":"人民币", "bankAddress":"北京市XX区XX路XX号", "accountDate":"2022-05-12", "accountApply.title":"支付", "isReconciliate":false, "isDeficitControl":true, "bankName":"开户银行说明", "isDisabled":false, "externalObjectId":"2100013", "externalObjectType":"BankAccount", "externalSystemCode":"210013" } }
1.4.10. 结算方式
结算方式数据字典( SettlementMethod)
- add 接口
{ "objectType":"SettlementMethod", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"dd001", "name":"test%s", "isBillManage":true, "isDisabled":false, "isEpay":true, "bankAccount.code":"00061", "externalObjectId":"2100015", "externalObjectType":"SettlementMethod", "externalSystemCode":"210015" } }
1.4.11. 收入
收入数据字典(Revenue)
- add 接口
{ "objectType":"Revenue", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"DD001", "name":"test%s", "taxRate.name":"1%", "taxClassifyCode":"123", "isDisabled":false, "description":"说明", "revenueConfirmationTypeId":"RevenueConfirmationType.manualInput", "externalObjectId":"2100017", "externalObjectType":"Revenue", "externalSystemCode":"210017" } }
1.4.12. 费用
费用数据字典(Cost )
- add 接口
"objectType":"Cost", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0002", "name":"费用1", "isDisabled":false, "taxRate.name":"6%", "description":"说明", "isGenericDeductible":true, "externalObjectId":"2100017", "externalObjectType":"Cost", "externalSystemCode":"210017" } }
1.4.13. 科目表
科目表数据字典(SubjectDef)
- add 接口
{ "objectType":"SubjectDef", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "objectMcTypeId":"ObjectMcType.global", // 启用多组织的时候,objectMcTypeId必填 "code":"00033", "name":"科目表名称", "codeRule.name":"4222方案", "baseSubjectDef.name":"2007企业会计准则", "accountingSystem.name":"企业会计准则", "description":"说明", "disabledTime":"2022-09-12", "externalObjectId":"2100018", "externalObjectType":"SubjectDef", "externalSystemCode":"210017" } }
1.4.14. 科目
科目数据字典(Subject)
- add 接口
{ "objectType":"Subject", "data":{ "usedOrg.code":"1122k", "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0000", "name":"测试11111", "subjectCategory.name":"资产", "subjectDef.name":"2007企业会计准则", "aidCode":"DSL", "debitCreditType.title":"借方", "isCash":true, "byForeignCurrency":false, "adjustExc":true, "bookFormat.title":"金额式", "disabledTime":"1639366050000", "isForGl":true, "isTotalTo":false, "objectMcTypeId":"ObjectMcType.global", "usedOrgDisabledTime":"2025-08-18", "businessModules":[ { "businessModule.name":"费用报销" } ], "externalObjectId":"2100000224", "externalObjectType":"Subject", "externalSystemCode":"2100022" } }
1.4.15. 计量单位
计量单位数据字典(Unit)
- add 接口
{ "objectType":"Unit", "data":{ "code":"001", "name":"test%s", "externalObjectId":"2100023 ", "externalObjectType":"Unit", "externalSystemCode":"210023" } }
1.4.16. 存货分类
存货分类数据字典(ProductCategory)
- add 接口
{ "objectType":"ProductCategory", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0003", "name":"存货分类测试", "parent.code":"0002", "parent.name":"存货分类2", "externalObjectId":"2100009", "externalObjectType":"ProductCategory", "externalSystemCode":"210009" } }
1.4.17. 存货
存货数据字典(Product)
- add 接口
{ "objectType":"Product", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"001", "name":"菜刀", "spec":"GX-101", "category.code":"001", "category.name":"存货分类1", "aidCode":"SCL", "unit.name":"test%s", "taxRate.name":"13%", "barcode":"111", "taxClassifyCode":"222", "brand.name":"王麻子菜刀", "productLine.name":"王麻子菜刀产品线", "disabledTime":"2022-09-12", "productStandardTypeId":"ProductStandardType.quantity", "revenue.name":"建筑安装收入", "productFeatures":[ { "productTypeId":"ProductType.sales" }, { "productTypeId":"ProductType.purchase" } ], "primaryVendor.code":"0000100001", "primaryVendor.name":"材料供应商", "buyer.code":"0001", "buyer.name":"王小胖", "maxPurchasePrice":"333.00", "refPrice":"1111.00", "minPrice":"2222", "pricingMothodId":"PricingMethod.monthAvg", "refCost":"444", "latestCost":"555", "revenueConfirmationTypeId":"RevenueConfirmationType.manualInput", "externalObjectId":"2100026", "externalObjectType":"Product", "externalSystemCode":"210026" } }
- add 接口(供应链的存货)
{ "objectType":"Product", "data":{ "createdOrg.code":"000017", "createdOrg.name":"测试组织", "code":"0101000006", "name":"存货A", "category.code":"0101", "category.name":"A-1类存货", "spec":"GX-101", "aidCode":"SCL", "taxRate.name":"13%", "barcode":"A-B", "taxClassifyCode":"税收分类码A", "productStandardTypeId":"ProductStandardType.quantity", "disabledTime":"2022-09-12", "baseUnitGroup.code":"99", "baseUnitGroup.name":"无换算", "unit.code":"99001", "unit.name":"件", "purUnit.code":"99001", "purUnit.name":"件", "salesUnit.code":"99001", "salesUnit.name":"件", "invUnit.code":"99001", "invUnit.name":"件", "purExecUnitTypeId":"PurExecUnitType.baseUnit", "invExecUnitTypeId":"InvExecUnitType.baseUnit", "isGlobalEnforcedVenPrice":false, "isSupportedUsedOrgVenPrice":true, "refCost":80, "latestCost":85, "maxPurchasePrice":100, "refPrice":150, "minPrice":130, "overIssuePct":0.2, "maxInvQty":500, "safeInvQty":400, "minInvQty":300, "productFeatures":[ { "productTypeId":"ProductType.sales" }, { "productTypeId":"ProductType.purchase" } ], "revenue.code":"bj-4", "revenue.name":"bj意外所得", "cost.code":"00006", "cost.name":"费用A-1", "externalObjectId":"2100026", "externalObjectType":"Product", "externalSystemCode":"210026" } }
1.4.18. 岗位
岗位数据字典( Position)
- add 接口
{ "objectType":"Position", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0001000001", "name":"初级开发工程师", "positionSequence.name":"T1", "superPosition.code":"0001", "superPosition.name":"后端开发工程师", "disabledTime":"2029-01-01", "description":"开发岗位", "externalObjectId":"11000212001", "externalObjectType":"InvoiceApplication", "externalSystemCode":"110212001" } }
1.4.19. 任务
任务数据字典(TaskSpec)
- add 接口
{ "objectType":"TaskSpec", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0001", "name":"测试任务", "type.code":"0001", "type.name":"定时任务", "priority.code":"001", "priority.name":"关键", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "department.code":"0001", "department.name":"测试部", "budgetWork":"90", "confirmationRequired":true, "isDisabled":false, "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"11000212002", "externalObjectType":"TaskSpec", "externalSystemCode":"110212001" } }
1.4.20. 阶段
阶段数据字典(Stage)
- add 接口
{ "objectType":"Stage", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0000002", "name":"收尾阶段", "description":"收尾阶段", "isDisabled":false, "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"11000212002", "externalObjectType":"Stage", "externalSystemCode":"110212001" } }
1.4.21. 账簿
账簿数据字典(AccountingBook)
- add 接口
{ "objectType":"AccountingBook", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0001", "name":"2022年了3-6月份账簿", "localCurrency.name":"人民币", "accountingPeriodDef.name":"自然历12期", "subjectDef.code":"00033", "subjectDef.name":"科目表名称", "startPeriod.code":"2022-10", "endPeriod.code":"2022-12", "description":"说明", "accountingScopes":[ { "accountingScope.code":"001", "accountingScope.name":"建筑花销", "accountingManage.code":"0001", "accountingManage.name":"会计管理模型1" } ], "accountingPolicies":[ { "accountingPolicyI.code":"001", "accountingPolicyI.name":"默认资产计价方案", "description":"默认资产计价方案" } ], "externalObjectId":"2100000028", "externalObjectType":"AccountingBook", "externalSystemCode":"210028" } }
1.4.22. 项目分类
项目分类数据字典(ProjectCategory)
- add 接口
{ "objectType":"ProjectCategory", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "code":"0001", "name":"海淀区项目", "parent.code":"003", "parent.name":"11项目", "externalObjectId":"210000922", "externalObjectType":"ProjectCategory", "externalSystemCode":"210009" } }
1.4.23. 凭证
凭证数据字典(Voucher)
- add 接口
{ "objectType":"Voucher", "data":{ "accountingBook.code":"0002", "accountingBook.name":"账簿1", "voucherType.name":"记账凭证", "voucherNo":"0000031", "templateDescription":"凭证说明", "attachBillNum":15, "billType.code": "LE01", "billType.name": "凭证", "businessType.name":"凭证", "businessDate":"2022-08-08", "voucherItems":[ { "description":"财务摘要", "subject.code":"1001", "subject.name":"库存现金", "debitAmount":0, "creditAmount":800, "currency.name":"人民币", "editFlag":"add" }, { "description":"财务摘要", "subject.code":"1002", "subject.name":"银行存款", "debitAmount":800, "creditAmount":0, "currency.name":"人民币", "editFlag":"add" } ], "externalObjectId":"2100000029", "externalObjectType":"Voucher", "externalSystemCode":"210028" } }
1.4.24. 付款单
付款单数据字典(Payment)
add 接口
{ "objectType":"Payment", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"付款单", "webEditTemplate.name":"付款单", "businessType.name":"采购付款", "code":"122kPA0120220700012", "businessDate":"2022-08-16", "settleObjectType":"Vendor", "transObject.code":"0000100001", "transObject.name":"材料供应商", "settleObject.code":"0000100001", "settleObject.name":"材料供应商", "settlementMethod.code":"02", "settlementMethod.name":"银行转账", "bankAccount.code":"00062", "bankAccount.name":"中国建设银行7890", "partyBankAccount.accountCode":"334455667777", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "description":"新增付款单", "purchaseInvoice.code":"122kIV8020220800008", "contract.code":"122kCM022022000007", "contract.name":"应付单合同", "purchaseOrg.code":"1122k", // 启用多组织的时候,purchaseOrgId选择指定 "purchaseOrg.name":"科技集团公司-多组织", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "paymentItems":[ { "fundPurpose.code":"901_SYS", "fundPurpose.name":"采购及服务", "apFundArapTypeId":"ApFundArapType.shouldAp", "project.code":"004000000005", "project.name":"测试开发项目", "projectOrg.code":"1122k", "projectOrg.name":"科技集团公司-多组织", "originApAmount":7232, "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "cost.code":"0001", "cost.name":"test%s", "description":"付款行明细", "contractSettlementItem.rowNo":"10", "contract.code":"122kCM022022000007", "contract.name":"应负单合同" } ] , "externalObjectId":"2100000028", "externalObjectType":"Payment", "externalSystemCode":"210028" } }
1.4.25. 收款单
收款单数据字典(Receipt)
- add 接口
{ "objectType":"Receipt", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"收款单", "webEditTemplate.name":"收款单", "businessType.name":"销售收款", "businessDate":"2022-08-16", "code":"122kPA0120220700012", "settleObjectType":"Customer", "transObject.code":"0001000001", "transObject.name":"李小胖", "settleObject.code":"0001000001", "settleObject.name":"李小胖", "settlementMethod.code":"02", "settlementMethod.name":"银行转账", "bankAccount.code":"00062", "bankAccount.name":"中国建设银行7890", "partyBankAccount.accountCode":"111129877444", "department.code":"0002", "department.name":"开发部", "ownerUser.code":"0002", "ownerUser.name":"王二胖", "currency.name":"人民币", "exchangeRate":1, "invoice.code":"122kAR0320220800006", "description":"新增收款单", "contract.code":"122kCM802022000001", "contract.name":"收款单合同", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "receiptItems":[ { "fundPurpose.code":"001_SYS", "fundPurpose.name":"销售及服务", "arFundArapTypeId":"ArFundArapType.shouldAr", "revenue.code":"DD001", "revenue.name":"建筑安装收入", "originAmount":1000, "amount":1000, "description":"收款单明细", "contract.code":"122kCM802022000001", "contract.name":"收款单合同", "invoice.code":"122kAR0320220800006" } ], "externalObjectId":"2100000028", "externalObjectType":"Receipt", "externalSystemCode":"210028" } }
1.4.26. 收入确认单
收入确认单数据字典(RevenueConfirmation)
add接口
{ "objectType":"RevenueConfirmation", "data":{ "createdOrg.code":"1122k",// 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"AR01", "billType.name":"收入确认单", "webEditTemplate.name":"收入确认单", "businessType.code":"AR001", "businessType.name":"收入确认单立账", "businessDate":"2022-08-11", "code":"122kAR0120220800003", "customer.code":"0001000001", "customer.name":"李小胖", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "settlePartyBankAccount.accountCode":"111129877444", "settleBankName":"开户", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "planRecDate":"2022-08-13", "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "revenueConfirmationDataTypeId":"RevenueConfirmationDataType.standard", "contract.code":"122kCM012022000005", "contract.name":"收入确认单合同", "contractObjectType.title":"应收合同", "revenueConfirmationItems":[ { "isPriceWithTax":true, "revenue.code":"DD001", "revenue.name":"建筑安装收入", "product.code":"0001000001", "product.name":"菜刀", "unit.code":"001", "unit.name":"个", "quantity":8, "originPrice":904, "taxRate":0.13, "originPriceWithoutTax":800, "originAmount":7232, "originAmountWithoutTax":6400, "originTaxAmount":832, "description":"应收标", "contract.code":"122kCM012022000005", "contract.name":"收入确认单合同", "contractObjectType.title":"应收合同", "contractSubjectMatterItem.rowNo":"10", "contractSubjectMatterItemObjectType.title":"应收合同", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "editFlag":"add" } ], "externalObjectId":"210000922", "externalObjectType":"RevenueConfirmation", "externalSystemCode":"210009" } }
1.4.27. 应付单
应付单数据字典(ApPayment)
- add接口
{ "objectType":"ApPayment", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"AP01", "billType.name":"应付单", "webEditTemplate.name":"应付单", "businessType.name":"普通采购", "accountingMethodId":"ApAccountingMethod.apPayment", "apPaymentDataTypeId":"ApPaymentDataType.standard", "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "businessDate":"2022-08-11", "code":"122kAP0120220800004", "vendor.code":"0000100001", "vendor.name":"材料供应商", "settleVendor.code":"0000100001", "settleVendor.name":"材料供应商", "settlePartyBankAccount.accountCode":"334455667777", "settleBankName":"建行", "purchaseOrg.code":"1122k", // 启用多组织的时候,purchaseOrgId选择指定 "purchaseOrg.name":"科技集团公司-多组织", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "payDueDate":"2022-08-11", "project.code":"004000000005", "project.name":"测试开发项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "contract.code":"122kCM022022000004", "contract.name":"应付单合同", "description":"新建应付标准合同", "contractObjectType.title":"应付合同", "apPaymentItems":[ { "project.code":"004000000005", "project.name":"测试开发项目", "cost.code":"0001", "cost.name":"test%s", "product.code":"0001000001", "product.name":"菜刀", "unit.code":"001", "unit.name":"个", "quantity":8, "originPrice":904, "taxRate":0.13, "originPriceWithoutTax":800, "originAmount":7232, "originAmountWithoutTax":6400, "originTaxAmount":832, "description":"应收标", "contract.code":"122kCM022022000004", "contract.name":"Stage应付单合同", "contractObjectType.title":"应收合同", "contractSubjectMatterItem.rowNo":"10", "contractSubjectMatterItemObjectType.title":"应收合同", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "editFlag":"add" } ], "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"210000922", "externalObjectType":"ApPayment", "externalSystemCode":"210009" } }
1.4.28. 其他应付单
其他应付单数据字典(OtherApPayment)
- add接口
{ "objectType":"OtherApPayment", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"其他应付单", "webEditTemplate.name":"其他应付单", "businessType.code":"AP003", "businessType.name":"其他应付", "businessDate":"2022-08-16", "code":"122kAP0120220800004", "objectType":"Vendor", "transObject.code":"0000100001", "transObject.name":"材料供应商", "object.code":"0000100001", "object.name":"材料供应商", "partyBankAccount.accountCode":"334455667777", "bankName":"建行", "purchaseOrg.code":"1122k", // 启用多组织的时候purchaseOrgId选择指定 "purchaseOrg.name":"科技集团公司-多组织", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "payDueDate":"2022-08-16", "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "description":"其他应付单新增", "otherApPaymentItems":[ { "cost.code":"0001", "cost.name":"test%s", "originAmountWithoutTax":6400, "originTaxAmount":832, "taxRate":0.13, "originAmount":7232, "description":"其他应付单明细", "deducTaxRate":0.13, "originDeducTaxAmount":832, "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "projectOrg.code":"1122k", // 启用多组织的时候projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织" } ], "externalObjectId":"210000922", "externalObjectType":"OtherApPayment", "externalSystemCode":"210009" } }
1.4.29. 其他应收单
其他应收单数据字典(ArReceipt)
- add接口
{ "objectType":"ArReceipt" , "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"其他应收单", "webEditTemplate.name":"其他应收单", "businessType.code":"AR003", "businessType.name":"其他应收", "businessDate":"2022-08-16", "code":"122kAP0120220800004", "objectType":"Vendor", "transObject.code":"0000100001", "transObject.name":"材料供应商", "object.code":"0000100001", "object.name":"材料供应商", "partyBankAccount.accountCode":"334455667777", "bankName":"建行", "purchaseOrg.code":"1122k", // 启用多组织的时候,purchaseOrgId选择指定 "purchaseOrg.name":"科技集团公司-多组织", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "receiptDueDate":"2022-08-16", "project.code":"003100000001", "project.name":"王麻子项目开发", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "description":"其他应收单新增", "arReceiptItems":[ { "revenue.code":"revenue", "revenue.name":"建筑安装收入", "originAmountWithoutTax":300, "originTaxAmount":3, "taxRate":0.01, "originAmount":303, "description":"其他应收单明细", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织" } ], "externalObjectId":"210000922", "externalObjectType":"ArReceipt", "externalSystemCode":"210009" } }
1.4.30. 项目
项目数据字典(Project)
- add接口
{ "objectType": "Project", "data": { "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "webEditTemplate.name":"项目", "financialOrg.code":"1122k", // 启用多组织的时候,financialOrgId必填 "financialOrg.name":"科技集团公司-多组织", "code":"0001", "name":"测试开发项目", "billType.name":"项目", "businessType.code":"PM001", "businessType.name":"项目", "category.code":"004", "category.name":"22项目", "projectProperties":"ProjectProperties.develop", "projectGroup.code":"001", "projectGroup.name":"开发组", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织", "customer.code":"0001000001", "customer.name":"李小胖", "ownerDept.code":"0002", "ownerDept.name":"开发部", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "planStartDate":"2022-07-13", "planEndDate":"2022-09-13", "scheduledDuration":63, "enableStage":true, "stageGroup.name":"前期准备阶段", "businessDate":"2022-08-08", "stages":[ { "projectOrg.code":"1122k", "projectOrg.name":"科技集团公司-多组织", "stage.code":"0000001", "stage.name":"初期阶段", "planStartDate":"2022-08-08", "planEndDate":"2022-08-31", "scheduledDuration":24, "outcome":"前期准备过半", "ownerUser.code":"0001", "ownerUser.name":"王小胖", "description":"前期准备" } ], "externalObjectId":"2100004", "externalObjectType":"Project", "externalSystemCode":"210004" } }
1.4.31. 报销单
报销单数据字典(Reimburse)
- add接口
{ "objectType":"Reimburse", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"EX01", "billType.name":"差旅报销单", "webEditTemplate.name":"差旅报销单", "businessType.code":"EX001", "businessType.name":"日常报销", "businessDate":"2022-08-17", "code":"122kEX0120220800001", "applyOrg.code":"1122k", // 启用多组织的时候,applyOrgId必填 "applyOrg.name":"科技集团公司-多组织", "applyDepartment.code":"generalDept", "applyDepartment.name":"总部", "applyUser.code":"genera0001", "applyUser.name":"李多", "ownerExpenceOrg.code":"1122k", // 启用多组织的时候,ownerExpenceOrgId必填 "ownerExpenceOrg.name":"科技集团公司-多组织", "department.code":"generalDept", "department.name":"总部", "isEntrust":false, "partyBankAccount.accountCode":"8976786789990", "applyUserTelephone":"+8615000004392", "description":"出差报销", "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "reimburseApply.code":"122kEX0720220800002", "reimburseTaxis":[ { "cost.code":"0004", "cost.name":"出差打车", "activityDate":"1659283200000", "originAmount":500, "originDeductedAmount":500, "description":"出差打车", "fromPlace":"北京", "toPlace":"大兴机场", "reimburseVoucher.name":"增值税普通发票", "isDeduction":false, "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "project.code":"003100000001", "project.name":"王麻子项目开发" } ], "reimburseTransports":[ { "cost.code":"0003", "cost.name":"长途", "activityDate":"1659283200000", "originAmount":1000, "originDeductedAmount":921.56, "description":"长途", "fromDistrict.code":"01", "fromDistrict.name":"北京", "toDistrict.code":"09", "toDistrict.name":"上海市", "transport.name":"飞机", "transportClass.name":"经济舱", "discount":0, "reimburseVoucher.name":"行程单", "isDeduction":true, "originDeductibleTaxAmount":78.44, "deductionTaxRate":0.09, "originActualAmount":1000, "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "project.code":"003100000001", "project.name":"王麻子项目开发" } ], "reimburseAllowances":[ { "cost.code":"005", "cost.name":"差旅补贴", "startDate":"1659283200000", "endDate":"1661875200000", "originAmount":3000, "originDeductedAmount":1500, "days":30, "originActualAmount":1500, "city.name":"上海市", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "project.code":"003100000001", "project.name":"王麻子项目开发" } ], "reimburseHotels":[ { "cost.code":"0002", "cost.name":"住宿费", "startDate":"2022-08-01", "endDate":"2022-08-31", "days":30, "originAmount":3000, "city.code":"09", "city.name":"上海市", "description":"住宿", "isDeduction":true, "originDeductibleTaxAmount":66, "deductionTaxRate":0, "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "project.code":"003100000001", "project.name":"王麻子项目开发" } ], "externalObjectId":"2100000028", "externalObjectType":"Reimburse", "externalSystemCode":"210028" } }
1.4.32. 对公报销单
对公报销单数据字典(CorporateReimburse)
- add接口
{ "objectType":"CorporateReimburse", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"EX06", "billType.name":"对公报销单单", "webEditTemplate.name":"对公报销单", "businessType.name":"对公报销", "businessDate":"1660665600000", "code":"122kEX0620220800001", "applyOrg.code":"1122k", // 启用多组织的时候,applyOrgId必填 "applyOrg.name":"科技集团公司-多组织", "applyDepartment.code":"generalDept", "applyDepartment.name":"总部", "applyUser.code":"genera0001", "applyUser.name":"李多", "payeeObjectType":"Vendor", "payeeObject.code":"0000100001", "payeeObject.name":"材料供应商", "ownerExpenceOrg.code":"1122k", // 启用多组织的时候,ownerExpenceOrgId必填 "ownerExpenceOrg.name":"科技集团公司-多组织", "department.code":"generalDept", "department.name":"总部", "applyUserTelephone":"+8617770005772", "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "description":"对公报销", "reimburseItems":[ { "cost.code":"0002", "cost.name":"住宿费", "originAmount":5000, "activityDate":"1659283200000", "description":"住宿", "reimburseVoucher.name":"增值税普通发票", "originDeductibleTaxAmount":0, "isDeduction":false, "deductibleTaxAmount":0, "originDeductedAmount":5000, "originActualAmount":5000, "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织" } ], "externalObjectId":"2100000028", "externalObjectType":"CorporateReimburse", "externalSystemCode":"210028" } }
1.4.33. 申请单
申请单数据字典(ReimburseApply)
- add接口
{ "objectType":"ReimburseApply", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"出差申请单", "webEditTemplate.name":"出差报销申请单", "businessType.name":"申请单", "businessDate":"2022-08-16", "code":"122kEX0720220800003", "applyOrg.code":"1122k", // 启用多组织的时候,applyOrgId必填 "applyOrg.name":"科技集团公司-多组织", "applyDepartment.code":"generalDept", "applyDepartment.name":"总部", "applyUser.code":"genera0001", "applyUser.name":"李多", "ownerExpenceOrg.code":"1122k", // 启用多组织的时候,ownerExpenceOrgId必填 "ownerExpenceOrg.name":"科技集团公司-多组织", "department.code":"generalDept", "department.name":"总部", "project.code":"003100000001", "project.name":"王麻子项目开发", "applyItems":[ { "cost.code":"0002", "cost.name":"住宿费", "startDate":"1659369600000", "endDate":"1661875200000", "amount":6000, "description":"住宿费", "fromDistrict.name":"北京市", "toDistrict.name":"上海市", "transport.name":"飞机", "transportClass.name":"经济舱", "projectOrg.code":"1122k", "projectOrg.name":"科技集团公司-多组织", // 启用多组织的时候,projectOrgId选择指定 "project.code":"003100000001", "project.name":"王麻子项目开发" } ], "externalObjectId":"2100004", "externalObjectType":"ReimburseApply", "externalSystemCode":"210004" } }
1.4.34. 应收合同
应收合同数据字典(ArContract)
- add接口
{ "objectType":"ArContract", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"应收标准合同", "webEditTemplate.name":"默认", "code":"122kCM012022000003", "customVersion":"v1.0", "businessType.code":"CM001", "businessType.name":"应收标准合同", "contractCategory.code":"00001", "contractCategory.name":"收入确认单合同", "businessDate":"2022-08-11", "name":"收入确认单合同", "customer.code":"0001000001", "customer.name":"李小胖", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "contact.name":"李小胖", "contactTelephone":"13456787654", "project.code":"004000000005", "project.name":"测试开发项目", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "startDate":"2022-08-11", "endDate":"2022-08-31", "currency.name":"人民币", "exchangeRate":1, "accountingMethodId":"AccountingMethod.revenueConfirmation", "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "amount":7232, "originAmount":7232, "description":"收入确认单合同", "isInitBill":false, "hasBond":true, "originBondAmount":6000, "bondAmount":6000, "qualityBondStartDate":"2022-08-12", "qualityBondEndDate":"2022-08-20", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织" , "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "arContractSubjectMatterItems":[ { "rowNo":"10", "project.code":"003100000001", "project.name":"王麻子项目开发", "product.code":"0001000001", "projectOrgId":"菜刀", "revenue.code":"DD001", "revenue.name":"建筑安装收入", "quantity":8, "originUnitPriceWithoutTax":800, "originUnitPrice":904, "taxRate":0.13, "originTaxAmount":832, "description":"应收标", "originAmount":7232, "amount":7232, "originAmountWithoutTax":6400, "amountWithoutTax":6400, "startDate":"2022-08-12", "endDate":"2022-08-24", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织" } ], "arContractSettlementItems":[ { "rowNo":"10", "contractSettlementType.code":"00001", "contractSettlementType.name":"初期收款", "settlementDate":"2022-08-12", "project.code":"003100000001", "project.name":"王麻子项目开发", "settlementMethod.name":"银行转账", "settlementRate":1, "originAmount":7232, "amount":7232, "receiptAmount":0, "originReceiptAmount":0, "description":"收款行", "projectOrg.code":"1122k" // 启用多组织的时候,projectOrgId必填 } ], "externalObjectId":"210000922", "externalObjectType":"ArContract", "externalSystemCode":"210009" } }
1.4.35. 应付合同
应付合同数据字典(ApContract)
- add接口
{ "objectType":"ApContract", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.name":"应付标准合同", "webEditTemplate.name":"默认", "code":"122kCM012022000003", "customVersion":"v1.0", "businessType.code":"CM002", "businessType.name":"应付标准合同", "contractCategory.code":"00002", "contractCategory.name":"应收合同分类", "businessDate":"2022-08-11", "name":"应付单合同", "vendor.code":"0000100001", "vendor.name":"材料供应商", "settleVendor.code":"0000100001", "settleVendor.name":"材料供应商", "project.code":"004000000005", "project.name":"测试开发项目", "department.code":"dd10035", "department.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "startDate":"2022-08-11", "endDate":"2023-08-31", "currency.name":"人民币", "exchangeRate":1, "accountingMethodId":"ApAccountingMethod.apPayment", "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "apPaymentBizTypeId":"ApPaymentBizTypeEnum.commonMaterials", "amount":7232, "originAmount":7232, "description":"新建应付标准合同", "isInitBill":false, "hasBond":true, "originBondAmount":6000, "qualityBondStartDate":"2022-08-12", "qualityBondEndDate":"2023-08-20", "purchaseOrg.code":"1122k", // 启用多组织的时候,purchaseOrgId选择指定 "purchaseOrg.name":"科技集团公司-多组织", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "apContractSubjectMatterItems":[ { "rowNo":"10", "project.code":"004000000005", "project.name":"测试开发项目", "product.code":"0001000001", "projectOrgId":"菜刀", "cost.code":"0001", "cost.name":"test%s", "quantity":8, "originUnitPriceWithoutTax":800, "originUnitPrice":904, "taxRate":0.13, "originTaxAmount":832, "description":"收款行", "originAmount":7232, "amount":7232, "originAmountWithoutTax":6400, "amountWithoutTax":6400, "startDate":"2022-08-11", "endDate":"2023-08-24", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织" } ], "apContractSettlementItems":[ { "rowNo":"10", "contractSettlementType.code":"00002", "contractSettlementType.name":"应付款", "settlementDate":"2022-08-12", "project.code":"004000000005", "project.name":"测试开发项目", "projectStage.code":"0000001", "projectStage.name":"初期阶段", "settlementMethod.name":"银行转账", "settlementRate":1, "originAmount":7232, "amount":7232, "description":"收款行", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织" } ], "externalObjectId":"210000922", "externalObjectType":"ApContract", "externalSystemCode":"210009" } }
1.4.36. 工时记录单
工时记录单数据字典(TimeSheet)
- add接口
{ "objectType":"Timesheet", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"TT01", "billType.name":"工时日报", "webEditTemplate.name":"工时日报", "code":"1122TT0120220800001", "businessDate":"2022-08-12", "timeUnitId":"TimeSpanUnit.day", "fromDate":"2022-08-12", "thruDate":"2022-08-12", "project.code":"004000000006", "project.name":"工时项目", "punchUser.code":"genera0001", "punchUser.name":"李多", "punchDept.code":"generalDept", "punchDept.name":"总部", "remarks":"工时日报填报", "trackLevelId":"TimeTrackLevel.project", "handleOnBehalf":false, "timesheetLines":[ { "project.code":"004000000006", "project.name":"工时项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选指定 "projectOrg.name":"科技集团公司-多组织", "projectFinancialOrg.code":"1122k", // 启用多组织的时候,projectFinancialOrgId选指定 "projectFinancialOrg.name":"科技集团公司-多组织", "projectDeliverOrg.code":"1122k", // 启用多组织的时候,projectDeliverOrgId选指定 "projectDeliverOrg.name":"科技集团公司-多组织", "deliverFinancialOrg.code":"1122k", // 启用多组织的时候,deliverFinancialOrgId选指定 "deliverFinancialOrg.name":"科技集团公司-多组织", "orgRoleType.title":"部门", "orgRoleId":"1EAV3K501JR0001", "indvRoleTypeId":"User", "indvRole.code":"genera0001", "indvRole.name":"李多", "dateFrom":"2022-08-12", "dateThru":"2022-08-12", "timeStart":"2022-08-12 09:00:00", "timeStop":"2022-08-12 17:00:00", "hours":8, "days":1.5, "costRate":300, "workCost":499, "workContent":"开发项目", "pendingIssues":"需求待定", "remarks":"工时明细", "attachments":[ ], "editFlag":"add" } ], "externalObjectId":"21000092214", "externalObjectType":"Timesheet", "externalSystemCode":"210009" } }
1.4.37. 职级
职级数据字典(Rank)
- add接口
{ "objectType":"Rank", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "usedOrg.code":"1122k", // 启用多组织的时候,createdOrgId选择指定 "usedOrg.name":"科技集团公司-多组织", "objectMcTypeId":"ObjectMcType.global", // 启用多组织的时候,objectMcTypeId选择指定 "code":"001", "name":"财务总监", "isDisabled":false, "webEditTemplate.name":"其他应付单", "laborCostDay":500, "laborCostHour":50, "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"210000922", "externalObjectType":"Rank", "externalSystemCode":"210009" } }
1.4.38. 项目分组
项目分组数据字典(ProjectGroup)
- add接口
{ "objectType":"ProjectGroup", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "usedOrg.code":"1122k", // 启用多组织的时候,usedOrgId选择指定 "usedOrg.name":"科技集团公司-多组织", "objectMcTypeId":"ObjectMcType.global", // 启用多组织的时候,objectMcTypeId选择指定 "code":"001", "name":"测试组", "description":"项目分类", "isDisabled":false, "attachments":[ { "name":"test", "url":"https://www.51miz.com/tupian/1512602.html?keyword_id=85485", "size":83310, "type":"image/jpeg", "ext":".jpeg" } ], "externalObjectId":"210000922", "externalObjectType":"ProjectGroup", "externalSystemCode":"210009" } }
1.4.39. 经营单元
经营单元数据字典(OperationUnit)
- add接口
{ "objectType":"OperationUnit", "data":{ "code":"000005", "name":"浩瀚国际科技有限公司", "abbrName":"浩瀚国际科技有限公司", "aidCode":"MTKJGS", "parent.code":"1122k", "parent.name":"科技集团公司-多组织", "ownerLegalEntityOrg.code":"1122k", "ownerLegalEntityOrg.name":"科技集团公司-多组织", "operationUnitTypeId":"OperationUnitType.company", "manager.code":"genera0001", "manager.name":"李多", "executive.code":"0002", "executive.name":"王二胖", "industry.code":"01", "industry.name":"农业", "startTime":"2023-08-12", "country.name":"中国", "district.code":"0109", "district.name":"通州区", "address":"北京市XX区XX路XX号", "disabledTime":"2024-07-16", "isPurchaseOrg":true, "isFinancialOrg":true, "isSalesOrg":true, "isProjectOrg":true, "isLegalEntity":true, "isInventoryOrg":true, "legalEntityOrgRoles":[ { "parent.party.code":"1122k", "parent.party.name":"科技集团公司-多组织", "legalPerson":"张晓伟", "taxIdNumber":"9FXSCA67945795", "taxpayerTypeId":"TaxpayerType.general", "address":"北京市 东城区", "bankAccount":"6218998765567899876", "bankName":"中国招商银行", "telephone":"13456789067", "disabledTime":"2024-07-16", "editFlag":"add" } ], "financialOrgRoles":[ { "parent.party.code":"1122k", "parent.party.name":"科技集团公司-多组织", "taxIdNumber":"9FXSCA67945795", "taxpayerTypeId":"TaxpayerType.general", "address":"北京市 东城区", "bankCode":"6218998765567899876", "bankName":"中国招商银行", "telephone":"13456789067", "disabledTime":"2024-07-16", "editFlag":"add" } ], "salesOrgRoles":[ { "parent.party.code":"1122k", "parent.party.name":"科技集团公司-多组织", "inventoryOrg.code":"1122k", "inventoryOrg.name":"科技集团公司-多组织", "projectOrg.code":"1122k", "projectOrg.name":"科技集团公司-多组织", "disabledTime":"2024-07-16", "editFlag":"add" } ], "purchaseOrgRoles":[ { "disabledTime":"2024-07-16", "editFlag":"add" } ], "projectOrgRoles":[ { "parent.party.code":"1122k", "parent.party.name":"科技集团公司-多组织", "disabledTime":"2024-07-16", "editFlag":"add" } ], "inventoryOrgRoles":[ { "disabledTime":"2024-07-16", "editFlag":"add" } ], "externalObjectId":"2100009221", "externalObjectType":"OperationUnit", "externalSystemCode":"210009" } }
1.4.40. 资金存取转账单
资金存取转账单数据字典(BankTrandfer)
- add接口
{ "objectType":"BankTransfer", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"CA03", "billType.name":"存取转账单", "webEditTemplate.name":"资金存取转账单", "code":"122kCA0320220800001", "businessType.code":"CA005", "businessType.name":"转账", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "dept.code":"generalDept", "dept.name":"总部", "businessDate":"2022-08-17", "description":"存取转账单", "fromBankAccount.code":"00062", "fromBankAccount.name":"中国建设银行7890", "fromBankAccount.countCode":"6218909987654567890", "fromBankAccountTypeId":"BankAccountType.bank", "fromCurrency.name":"人民币", "originFromAmount":10000, "fromExchangeRate":1, "fromAmount":10000, "originFromPoundage":100, "fromPoundage":100, "fromLocalCurrencyId":"FX3V3K501JR0001", "toBankAccount.code":"00062", "toBankAccount.name":"中国建设银行7890", "toBankAccount.countCode":"6218909987654567890", "toBankAccountTypeId":"BankAccountType.bank", "toCurrency.name":"人民币", "originToAmount":9900, "toExchangeRate":1, "toAmount":9900, "toLocalCurrencyId":"FX3V3K501JR0001", "toPoundage":0, "originToPoundage":0, "externalObjectId":"2100000028", "externalObjectType":"BankTransfer", "externalSystemCode":"210028" } }
1.4.41. 开票申请
开票申请数据字典(InvoiceApplication)
- add接口
{ "objectType":"InvoiceApplication", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"PM02", "billType.name":"开票申请", "webEditTemplate.name":"开票申请", "businessType.code":"PM002", "businessType.name":"开票申请", "businessDate":"2022-08-18", "code":"122kCA0320220800001", "customer.code":"0001000001", "customer.name":"李小胖", "settleCustomer.code":"0001000001", "settleCustomer.name":"李小胖", "taxIdNumber":"77788899999", "partyBankAccount.accountCode":"111129877444", "bankName":"建行XX支行", "salesOrg.code":"1122k", // 启用多组织的时候,salesOrgId选择指定 "salesOrg.name":"科技集团公司-多组织", "ownerDept.code":"dd10035", "ownerDept.name":"测试添加部门", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "currency.name":"人民币", "exchangeRate":1, "invoiceType.code":"01", "invoiceType.name":"增值税专用发票", "project.code":"003100000001", "project.name":"王麻子项目开发", "contract.code":"122kCM012022000007", "contract.name":"收入确认单合同", "description":"收入确认单合同", "contractObjectType.title":"应收合同", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrg选择指定 "projectOrg.name":"科技集团公司-多组织", "invoiceApplicationItems":[ { "project.code":"003100000001", "project.name":"王麻子项目开发", "revenue.code":"DD001", "revenue.name":"建筑安装收入", "product.code":"0001000001", "product.name":"菜刀", "unit.code":"001", "unit.name":"个", "quantity":8, "originPrice":904, "taxRate":0.13, "originAmount":7232, "originAmountWithoutTax":6400, "originTaxAmount":832, "description":"应收标", "contract.code":"122kCM012022000007", "contract.name":"收入确认单合同", "contractSubjectMatterItem.rowNo":"10", "contractSubjectMatterItemObjectType.title":"应收合同", "projectOrg.code":"1122k", "projectOrg.name":"科技集团公司-多组织" } ], "externalObjectId":"2100000028", "externalObjectType":"InvoiceApplication", "externalSystemCode":"210028" } }
1.4.42. 项目计划
项目计划数据字典(ProjectSchedule)
- add接口
{ "objectType":"ProjectSchedule", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"PS01", "billType.name":"项目计划", "webEditTemplateId":"bf008620-5200-4cce-8374-bdfcd3eb60d7", "project.code":"003100000004", "project.name":"中粮开发项目", "code":"1122PS0120220800001", "businessDate":"1660752000000", "tasks":[ { "id":"LU8XA161KW00015", "taskNbr":"1", "project.code":"003100000004", "project.name":"中粮开发项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织", "elementTypeId":"Stage", "elementSpecId":"FHPP6161K8W000B", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "scheduledStart":"1660752000000", "scheduledFinish":"1661443200000", "scheduledDuration":9, "isMilestone":false, "percentComplete":0, "actualDuration":0, "confirmationRequired":false, "isTemplateBill":false, "isLeaf":false, "statusId":"TaskStatus.todo" }, { "id":"LU8XA161KW00016", "taskNbr":"2", "project.code":"003100000004", "project.name":"中粮开发项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织", "elementTypeId":"Stage", "elementSpecId":"FHPP6161K8W001G", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "statusId":"TaskStatus.todo", "scheduledStart":"1661529600000", "scheduledFinish":"1661875200000", "scheduledDuration":5, "isMilestone":false, "percentComplete":0, "actualDuration":0, "confirmationRequired":false, "isTemplateBill":false, "isLeaf":false }, { "id":"1660804699661", "taskNbr":"1.1", "parentId":"LU8XA161KW00015", "project.code":"003100000004", "project.name":"中粮开发项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织", "elementTypeId":"TaskSpec", "elementSpecId":"LU8XA161KW00009", "description":"", "priorityId":"KJ6DTS50J3Q002A", "ownerUser.code":"genera0001", "ownerUser.name":"李多", "department.code":"generalDept", "department.name":"总部", "scheduledStart":"1660752000000", "scheduledFinish":"1661097600000", "scheduledDuration":5, "isMilestone":false, "percentComplete":0, "actualDuration":0, "confirmationRequired":false, "isTemplateBill":false, "isLeaf":true, "dataVersion":0, "assignments":[ { "orgRoleTypeId":"Department", "orgRoleId":"TXV26161K33000T", "indvRoleTypeId":"User", "indvRoleId":"PNU46161K33001J", "isOwner":true, "isDone":false, "notes":"", "description":"", "scheduledDuration":0, "scheduledNaturalDuration":0, "isInitData":false } ] }, { "id":"1660804707635", "taskNbr":"1.2", "parentId":"LU8XA161KW00015", "project.code":"003100000004", "project.name":"中粮开发项目", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId必填 "projectOrg.name":"科技集团公司-多组织", "elementTypeId":"TaskSpec", "elementSpecId":"CGFP6161K8W000N", "description":"", "priorityId":"KJ6DTS50J3Q0029", "ownerUserId":"PNU46161K33001J", "departmentId":"TXV26161K33000T", "scheduledStart":"1661184000000", "scheduledFinish":"1661443200000", "scheduledDuration":4, "scheduledNaturalDuration":4, "isMilestone":false, "percentComplete":0, "actualDuration":0, "confirmationRequired":false, "isTemplateBill":false, "isLeaf":true, "dataVersion":0, "assignments":[ { "orgRoleTypeId":"Department", "orgRoleId":"TXV26161K33000T", "indvRoleTypeId":"User", "indvRoleId":"PNU46161K33001J", "isOwner":true, "isDone":false, "notes":"", "description":"", "scheduledDuration":0, "scheduledNaturalDuration":0, "isInitData":false } ] } ], "isManualCode":false, "externalObjectId":"210000002811", "externalObjectType":"ProjectSchedule", "externalSystemCode":"210028" } }
1.4.43. 任务执行报告
任务执行报告数据字典(ProjectConfirmation)
- add接口
{ "objectType":"ProjectConfirmation", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"TSEX", "billType.name":"任务执行报告", "businessType.code":"PM005", "businessTypeId":"任务执行报告", "webEditTemplateId":"99ace2f4-532c-4e0e-9aa3-1f605fed1c7a", "code":"1122TSEX20220800001", "businessDate":"1660752000000", "confirmUser.code":"genera0001", "confirmUser.name":"李多", "project.code":"003100000004", "project.name":"中粮开发项目", "task.code":"0000000020220800012", "task.name":"材料准备", "actualStart":"1660752000000", "actualFinish":"1660752000000", "executeStart":"1660752000000", "executeFinish":"1661184000000", "confirmationTypeId":"TaskConfirmationType.delivery", "description":"尚未开始", "externalObjectId":"2100000028", "externalObjectType":"ProjectConfirmation", "externalSystemCode":"210028" } }
1.4.44. 采购发票
采购发票数据字典(PurchaseInvoice)
- add接口
{ "objectType": "PurchaseInvoice", "data": { "createdOrg.code": "1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name": "科技集团公司-多组织", "billType.code": "IV80", "billType.name": "采购发票", "webEditTemplate.name": "采购发票", "businessType.name": "普通采购", "accountingMethodId": "ApAccountingMethod.invoice", "code": "122kIV8020220800007", "businessDate": "2022-08-15", "purchaseOrg.code": "1122k", // 启用多组织的时候,purchaseOrgId选择指定 "purchaseOrg.name": "科技集团公司-多组织", "vendor.code": "0000100001", "vendor.name": "材料供应商", "settleVendor.code": "0000100001", "settleVendor.name": "材料供应商", "currency.name": "人民币", "exchangeRate": 1, "invoiceType.code": "01", "invoiceType.name": "增值税专用发票", "department.code": "dd10035", "department.name": "测试添加部门", "ownerUser.code": "genera0001", "ownerUser.name": "李多", "planPaymentDate": "2022-08-15", "project.code": "004000000005", "project.name": "测试开发项目", "projectOrg.code": "1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name": "科技集团公司-多组织", "contract.code": "122kCM022022000006", "contractObjectType.title": "应收合同", "description": "新建应付标准合同", "downStreamBillTypeId": "E5JGHL501QD0001", "downStreamBillTypeTemplateId": "Gi_0vTzWR", "invoiceTaxies": [ { "invoiceNo": "9FGHK906543367", "makeInvoiceTime": "2022-08-10", "amountWithoutTax": 900, "taxAmount": 98, "amount": 998 } ], "purchaseInvoiceItems": [ { "project.code": "004000000005", "project.name": "测试开发项目", "projectOrg.code": "1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name": "科技集团公司-多组织", "contract.code": "122kCM022022000006", "contractObjectType.title": "应收合同", "contractSubjectMatterItem.rowNo": "10", "contractSubjectMatterItemObjectType.title": "应付合同标的明细", "cost.code": "0001", "cost.name": "test%s", "product.code": "0001000001", "product.name": "菜刀", "unit.code": "001", "unit.name": "个", "quantity": 8, "originPriceWithoutTax": 800, "originAmountWithoutTax": 6400, "taxRate": 0.13, "originTaxAmount": 832, "taxAmount": 832, "originAmount": 7232, "deducTaxRate": 0.13, "originDeducTaxAmount": 832, "deducTaxAmount": 832, "originDeducAfterTaxAmount": 6400, "deducAfterTaxAmount": 6400, "description": "收款行" } ], "externalObjectId": "210000922", "externalObjectType": "PurchaseInvoice", "externalSystemCode": "210009" } }
1.4.45. 借款单
借款单数据字典(Loan)
- add接口
{ "objectType":"Loan", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"科技集团公司-多组织", "billType.code":"JK01", "billType.name":"员工借款单", "webEditTemplate.name":"借款单", "businessType.name":"日常借款", "businessDate":"2022-08-12", "code":"122kJK0120220800001", "applyOrg.code":"1122k", // 启用多组织的时候,applyOrgId必填 "applyOrg.name":"科技集团公司-多组织" , "applyDepartment.code":"generalDept", "applyDepartment.name":"总部", "applyUser.code":"genera0001", "applyUser.name":"李多", "ownerExpenceOrg.code":"1122k", // 启用多组织的时候,ownerExpenceOrgId必填 "ownerExpenceOrg.name":"科技集团公司-多组织", "department.code":"generalDept", "department.name":"总部", "isEntrust":false, "planRepayDate":"2022-08-31", "description":"员工借款单", "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", "loanItems":[ { "cost.code":"0001", "cost.name":"test%s", "originApplyLoanAmount":5000, "description":"借款", "originReplyLoanAmount":5000, "project.code":"003100000001", "project.name":"王麻子项目开发", "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"科技集团公司-多组织", "editFlag":"add" } ], "externalObjectId":"210000922", "externalObjectType":"Loan", "externalSystemCode":"210009" } }
1.4.46. 付款申请单
付款申请单数据字典(PaymentApplication)
{
"objectType":"PaymentApplication",
"data":{
"createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填
"createdOrg.name":"科技集团公司-多组织",
"billType.name":"采购付款申请单",
"webEditTemplateI.name":"采购付款申请单",
"businessType.name":"采购付款",
"code":"PR0120220800002",
"businessDate":"2022-08-19",
"paymentDueDate":"2022-08-19",
"objectTypeObject.title":"供应商",
"transObject.code":"0000100001",
"transObject.name":"材料供应商",
"object.code":"0000100001",
"object.name":"材料供应商",
"partyBankAccount.accountCode":"334455667777",
"settlementMethod.name":"银行转账",
"department.code":"generalDept",
"department.name":"总部",
"applyUser.code":"genera0001",
"applyUser.name":"李多",
"currency.name":"人民币",
"exchangeRate":1,
"project.code":"003100000003",
"project.name":"新增项目",
"contract.code":"122kCM022022000012",
"contract.name":"应付单合同",
"projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定
"projectOrg.name":"科技集团公司-多组织",
"paymentApplicationItems":[
{
"originAmount":7232,
"originApprovedAmount":7232,
"project.code":"003100000003",
"project.name":"新增项目",
"projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定
"projectOrg.name":"科技集团公司-多组织",
"cost.code":"0001",
"cost.name":"test%s",
"department.code":"dd10035",
"department.name":"测试添加部门",
"ownerUser.code":"genera0001",
"ownerUser.name":"李多",
"contractSettlementItem.rowNo":"10",
"contract.code":"122kCM022022000012",
"contract.name":"应付单合同",
"projectStage.code":"0000001",
"projectStage.name":"初期阶段"
}
],
"externalObjectId":"11021200155",
"externalObjectType":"PaymentApplication",
"externalSystemCode":"110212001"
}
}
1.4.47. 领用出库单
领用出库单数据字典(PickingIssue)
- add接口
{ "objectType":"PickingIssue", "data":{ "createdOrg.code":"555555", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"自动化企业037925891", "billType.name":"领用出库单", "webEditTemplate.name":"领用出库单", "businessType.name":"领用出库", "stockTransType.name":"领用出库", "billIoTypeId":"BillIoType.blue", "code":"5555SC5220220900001", "businessDate":"2022-09-05", "department.name":"研发部", "ownerUser.name":"冯琳", "whsAdminUser.code":"genera0001", "whsAdminUser.name":"徐睿", "warehouse.code":"000001", "project.name":"项目测试", "projectStage.name":"项目阶段二", "billStatus":"BillStatus.draft", "billFullStatus":"BillStatus.draft", "description":"备注", "exchangeRate":1, "demandOrg.code":"555555", // 启用多组织的时候,demandOrgId选择指定 "demandOrg.name":"自动化企业037925891", "projectOrg.code":"555555", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"自动化企业037925891", "pickingIssueItems":[ { "product.name":"指令计数器", "warehouse.code":"000001", "srcOpenBaseQty":1, "invAuxQty":1, "availInvAuxQty":1, "onHandBaseQty":1, "baseQty":1, "description":"备注", "project.name":"项目测试", "projectStage.name":"项目阶段二", "currency.name":"人民币", "demandOrg.code":"555555", // 启用多组织的时候,demandOrgId选择指定 "demandOrg.name":"自动化企业037925891", "projectOrg.code":"555555", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"自动化企业037925891" } ], "externalObjectId":"1000021", "externalObjectType":"PickingIssue", "externalSystemCode":"110001" } }
1.4.48. 其他入库单
其他入库单数据字典(MiscReceipt)
- add接口
{ "objectType":"MiscReceipt", "data":{ "createdOrg.code":"000017", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"测试组织", "billType.name":"其他入库单", "webEditTemplateI.name":"其他入库单", "businessType.name":"其他入库", "stockTransType.code":"10199", "stockTransType.name":"其他入库", "billIoTypeId":"BillIoType.blue", "code":"SC1120220800001", "businessDate":"2022-09-07", "settleObjectType.title":"客户", "settleObject.code":"0300000001", "settleObject.name":"成都企企", "department.code":"001", "department.name":"研发部", "whsAdminUser.code":"0000170010000001", "whsAdminUser.name":"王胖胖", "warehouse.code":"000002", "warehouse.name":"B仓库", "project.name":"000000000013", "project.name":"项目123B", "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"测试组织", "projectStage.name":"项目阶段三", "billStatus":"BillStatus.draft", "billFullStatus":"BillStatus.draft", "borrowReturnStatusId":"BorrowReturnStatus.none", "description":"备注", "miscReceiptItems":[ { "product.code":"0101000005", "product.name":"计算机", "baseAmount": 800, "description":"其他入库单明细行1", "invBaseQty":100, "acctgBasePrice":8, "project.code":"000000000013", "project.name":"项目123B", "projectStage.name":"项目阶段三", "warehouse.code":"000002", "warehouse.name":"B仓库", "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"测试组织" } ], "externalObjectId":"1000021", "externalObjectType":"MiscReceipt", "externalSystemCode":"110001" } }
1.4.49. 销售出库单
销售出库单数据字典 (SalesIssue)
- add接口
{ "objectType":"SalesIssue", "data":{ "createdOrg.code":"555555", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"自动化企业037925891", "billType.name":"销售出库单", "webEditTemplateI.name":"销售出库单", "businessType.name":"普通销售", "stockTransType.code":"10201", "stockTransType.name":"销售出库", "billIoTypeId":"BillIoType.blue", "code":"5555SC2120220900001", "businessDate":"2022-09-06", "salesOrg.code":"555555", // 启用多组织的时候salesOrgOrgId必填 "salesOrg.name":"自动化企业037925891", "customer.code":"KH004", "customer.name":"北京企企", "settleCustomer.code":"KH004", "settleCustomer.name":"北京企企", "settleOrg.code":"555555", // 启用多组织的时候settleOrgOrgId必填 "settleOrg.name":"自动化企业037925891", "settlementMethod.name":"承兑汇票", "currency.name":"人民币", "exchangeRate":1, "salesDept.name":"测试部", "ownerUser.name":"徐睿", "issueDept.name":"研发部", "whsAdminUser.name":"冯琳", "project.name":"项目测试", "projectOrg.code":"555555", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"自动化企业037925891", "projectStage.name":"项目阶段二", "warehouse.name":"丙仓库", "description":"备注", "salesIssueItems":[ { "actualTransQty":1, "amount":1, "amountWithoutTax":0.92, "baseQty":1, "currency.name":"人民币", "description":"备注", "exchangeRate":1, "invBaseQty":1, "isFreeGift":"true", "isPriceWithTax":"true", "originAmount":1, "originAmountWithoutTax":0.92, "originPrice":1, "originPriceWithoutTax":0.92, "originTaxAmount":0.08, "price":1, "priceWithoutTax":0.92, "taxAmount":0.08, "taxRate":0.09, "product.name":"指令寄存器", "project.name":"项目测试", "projectStage.name":"项目阶段二", "warehouse.name":"丙仓库" } ], "externalObjectId":"4000045", "externalObjectType":"SalesIssue", "externalSystemCode":"110001" } }
1.4.50. 其他出库单
其他出库单数据字典(MiscIssue)
- add接口
{ "objectType":"MiscIssue", "data":{ "createdOrg.code":"000017", // 启用多组织的时候,createdOrgId必填 "createdOrg.name":"测试组织", "billType.name":"其他出库单", "webEditTemplateI.name":"其他出库单", "businessType.name":"其他出库", "stockTransType.code":"10299", "stockTransType.name":"其他出库", "billIoTypeId":"BillIoType.blue", "code":"SC3120220900001", "businessDate":"2022-09-07", "settleObjectType.title":"客户", "settleObject.code":"0300000001", "settleObject.name":"成都企企", "department.code":"001", "department.name":"研发部", "whsAdminUser.code":"0000170010000001", "whsAdminUser.name":"王胖胖", "warehouse.code":"000002", "warehouse.name":"B仓库", "project.name":"000000000013", "project.name":"项目123B", "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"测试组织", "projectStage.name":"项目阶段三", "billStatus":"BillStatus.draft", "billFullStatus":"BillStatus.draft", "borrowReturnStatusId":"BorrowReturnStatus.none", "description":"备注", "miscIssueItems":[ { "product.code":"0101000005", "product.name":"计算机", "description":"其他入库单明细行1", "invBaseQty":100, "project.code":"000000000013", "project.name":"项目123B", "projectStage.name":"项目阶段三", "warehouse.code":"000002", "warehouse.name":"B仓库", "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "projectOrg.name":"测试组织" } ], "externalObjectId":"1000021", "externalObjectType":"MiscIssue", "externalSystemCode":"110001" } }
1.4.51. 请购单
请购单数据字典(PurReq)
- add接口
{ "objectType":"PurReq", "data":{ "createdOrg.code":"000017", // 启用多组织的时候,createdOrgId必填 "billType.name":"请购单", "webEditTemplateI.name":"请购单", "businessType.name":"采购申请", "code":"001", "businessDate":"2021-09-06", "project.name":"项目123B", "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "projectStage.name":"项目阶段三", "department.name":"研发部", "ownerUser.name":"王胖胖", "purchaseOrg.code":"000017", // 启用多组织的时候,purchaseOrgId选择指定 "receiptOrg.code":"000017", // 启用多组织的时候,receiptOrgId选择指定 "settleOrg.code":"000017", // 启用多组织的时候,settleOrgId选择指定 "reqItems":[ { "ordinal":10, "rowNo":10, "product.code":"0101000005", "product.name":"计算机", "transQty":1, "baseQty":1 } ], "externalObjectId":"%s", "externalObjectType":"PurReq", "externalSystemCode":"110212001" } }
1.4.52. 采购订单
采购订单数据字典(PurOrder)
- add接口
{ "objectType":"PurOrder", "data":{ "createdOrg.code":"000017", // 启用多组织的时候,createdOrgId必填 "projectOrg.code":"000017", // 启用多组织的时候,projectOrgId选择指定 "receiptOrg.code":"000017", // 启用多组织的时候,receiptOrgId选择指定 "settleOrg.code":"000017", // 启用多组织的时候,settleOrgId选择指定 "code":"SC0120220900001", "isManualCode":false, "businessDate":"2022-05-21", "billType.name":"采购订单", "businessType.name":"普通采购", "vendor.name":"中粮集团", "settleVendor.name":"华西集团", "department.name":"总部", "ownerUser.name":"左江令", "planArrivalDate":"2022-06-21", "currency.name":"人民币", "exchangeRate":1, "amount":100, "originAmount":100, "purOrderItems":[ { "currency.name":"人民币", "ordinal":10, "rowNo":10, "product.name":"2号商品", "transQty":1, "baseQty":1, "originAmount":100, "originPrice":100, "amount":100, "price":100 }, { "currency.name":"人民币", "ordinal":11, "rowNo":11, "product.name":"3号商品", "transQty":1, "baseQty":1, "originAmount":100, "originPrice":100, "amount":100, "price":100 } ], "purOrderSettlementItems":[ { "rowNo":10, "settlementType.name":"test", "settlementMethod.name":"建设银行", "paymentDate":"2022-05-21", "ratio":1, "originAmount":200, "amount":200 } ], "externalObjectId":"110212001", "externalObjectType":"PurOrder", "externalSystemCode":"110212001" } }
1.4.53. 采购入库单
采购入库单数据字典(PurReceipt)
- add接口
{ "objectType":"PurReceipt", "data":{ "createdOrg.code":"1122k", // 启用多组织的时候,createdOrgId必填 "purchaseOrg.code":"1122k", // 启用多组织的时候,purchaseOrgId必填 "projectOrg.code":"1122k", // 启用多组织的时候,projectOrgId选择指定 "settleOrg.code":"1122k", // 启用多组织的时候,settleOrgId选择指定 "billType.name":"采购入库单", "webEditTemplateI.name":"采购入库单", "businessType.name":"普通采购", "stockTransType.name":"采购入库", "billIoType.title":"蓝单", "code":"SC0120220900001", "businessDate":"2022-09-06", "isManualCode":false, "vendor.name":"中粮集团", "settleVendor.name":"华西集团", "department.name":"总部", "ownerUser.name":"左江令", "currency.name":"人民币", "exchangeRate":1, "purReceiptItems":[ { "product.name":"3号商品", "warehouse.name":"甲仓库", "transQty":1, "baseQty":1, "amount":1, "price":1 } ], "externalObjectId":"110212001", "externalObjectType":"PurReceipt", "externalSystemCode":"110212001" } }
1.4.54. 调拨单
调拨单数据字典(StockTransfer)
- add接口
{ "objectType":"StockTransfer", "data":{ "createdOrg.code": "org1", "createdOrg.name": "全职能组织", "code": "CodeTS0220240500001", "businessDate": 1715270400000, "billType.name": "同步调拨", "businessType.name": "调拨单", "billIoTypeId": "BillIoType.blue", "billStatus": "BillStatus.draft", "billFullStatus": "BillStatus.draft", "isAutoGenerated": false, "isInitBill": false, "financialOrg.name": "全职能组织", "inFinancialOrg.name": "全职能组织", "inInventoryOrg.name": "职能组织", "description": "", "currency.name": "人民币", "exchangeRate": 1, "transferDirectionId": "TransferDirection.transfer",//调拨方向:TransferDirection.transfer(调拨) TransferDirection.return(调拨退回) // 组织内调拨:inFinancialOrg = financialOrg ,inInventoryOrg = createdOrg // 组织间调拨:inFinancialOrg != financialOrg ,inInventoryOrg != createdOrg "transferTypeId": "TransferType.internalOrg",//调拨类型 :TransferType.internalOrg(组织内调拨) TransferType.crossOrg(组织间调拨) "outBillTypeId": "SUC8TV51UBH0009", "outBillTypeId": "SUC8TV51UBH0009", "inBillTypeId": "SUC8TV51UBH0003", "outWebEditTemplateId": "0ec7ef9b-bcbb-403d-9a24-52df5ddd1aef", "inWebEditTemplateId": "97dbc39f-95c5-4652-8dae-2954e392e084", "createdUserId": "P9NLG460C860027", "isSuspended": false, "webEditTemplate.name": "调拨单", "stockTransType.name": "调拨出库", "inStockTransType.name": "调拨入库", "project.name": "项目007",//非必填 "inProject.name": "项目007",//非必填 "stockTransferItems": [ { "warehouse.name":"调出仓库", "inWarehouse.name":"调入仓库", "product.name":"B商品",//批号,特征,保质期按需填充 "invBaseQty": 334, "invBaseUnit.name": "个"//存在计量单位名称相同是,最好用计量单位编码 } ] } }