更新时间:2026-05-12
适用范围(仅以下 6 个模块):
1. 固定资产(/financial/fixed-assets)
2. 无形资产(/financial/intangible-assets)
3. 总账科目(/financial/general-ledger)
4. 凭证(/financial/voucher)
5. 科目总账(/financial/voucher-general-ledger)
6. 科目明细账(/financial/voucher-detail-ledger)
{
"code": 200,
"msg": "success",
"data": {}
}
请求参数建议:
- current(页码)
- size(每页条数)
响应建议:json { "code": 200, "data": { "records": [], "total": 0 } }
decimal(18,2)。前端文件:src/views/financialManagement/generalLedger/index.vue
API 文件:src/api/financialManagement/accountSubject.js
GET /accountSubject/listPOST /accountSubject/addPUT /accountSubject/editDELETE /accountSubject/remove/{ids}POST /accountSubject/exportidsubjectCode(科目编码)subjectName(科目名称)subjectType(科目类型)balanceDirection(余额方向:借方/贷方)status(0 启用,1 禁用)remarksubjectCode、subjectName、subjectType 必填。前端文件:src/views/financialManagement/assets/fixedAssets.vue
GET /financial/fixedAsset/pagePOST /financial/fixedAsset/addPUT /financial/fixedAsset/updateDELETE /financial/fixedAsset/deletePOST /financial/fixedAsset/depreciate(按月计提)id, assetCode, assetName, category, specificationpurchaseDate, originalValue, usefulLife, residualRateaccumulatedDepreciation, netValuelocation, department, keeper, status, remarkmonthlyDepreciation = originalValue * (1 - residualRate/100) / (usefulLife*12)accumulatedDepreciation += monthlyDepreciationnetValue = originalValue - accumulatedDepreciationin_use(在用)idle(闲置)repair(维修中)scrapped(报废)前端文件:src/views/financialManagement/assets/intangibleAssets.vue
GET /financial/intangibleAsset/pagePOST /financial/intangibleAsset/addPUT /financial/intangibleAsset/updateDELETE /financial/intangibleAsset/deletePOST /financial/intangibleAsset/amortize(按月摊销)id, assetCode, assetName, category, certificateNoacquisitionDate, originalValue, amortizationPeriod, residualRateaccumulatedAmortization, netValuevalidityDate, status, description, remarkmonthlyAmortization = originalValue * (1 - residualRate/100) / (amortizationPeriod*12)accumulatedAmortization += monthlyAmortizationnetValue = originalValue - accumulatedAmortizationnetValue <= 0:netValue = 0status = amortizedin_use(在用)expired(到期)amortized(已摊销完)前端文件:src/views/financialManagement/voucher/index.vue
GET /financial/voucher/pagePOST /financial/voucher/addPUT /financial/voucher/updatePOST /financial/voucher/post(过账)POST /financial/voucher/cancel(作废)GET /financial/voucher/detail/{id}id, voucherNo, voucherDate, summarydebit, credit, creator, status, attachmentCount, remarksubjectCode, subjectName, summary, debit, creditsum(debit) == sum(credit) 且 > 0,不满足禁止保存。unposted -> postedunposted -> cancelled前端文件:src/views/financialManagement/voucher/generalLedger.vue
GET /financial/ledger/generalsubjectCode(末级或指定科目)startMonth(YYYY-MM)endMonth(YYYY-MM)date, voucherNo, summarydebit, credit, direction, balancerowType 字段区分)。前端文件:src/views/financialManagement/voucher/detailLedger.vue
GET /financial/ledger/detailsubjectCodeauxiliaryType(customer/supplier/department/employee/project)auxiliaryIdstartMonth(YYYY-MM)endMonth(YYYY-MM)date, voucherNo, summarydebit, credit, direction, balancefin_account_subjectfin_fixed_assetfin_intangible_assetfin_voucherfin_voucher_entryfin_ledger_snapshot_general(可选,做性能优化)fin_ledger_snapshot_detail(可选,做性能优化)