feat(erp): 更新费用成本结构以支持发票编号和到期日期

- 将费用类型字段拆分为类型编号和类型名称
- 在费用添加参数中新增发票编号字段
- 在请求成本项中增加发票编号、到期日期和期望付款日期
- 更新相关结构体字段以适应新的业务需求
This commit is contained in:
2025-12-18 16:03:28 +08:00
parent a165b59d61
commit e3701c9514
2 changed files with 31 additions and 18 deletions

View File

@@ -26,7 +26,8 @@ type CostItem struct {
Id int64 `json:"id"`
ExpenseId int64 `json:"expenseId"`
Date time.Time `json:"date"`
Type int64 `json:"type"`
TypeNumber string `json:"typeNumber"`
TypeName string `json:"typeName"`
Value string `json:"value"`
Amount decimal.Decimal `json:"amount"`
DepartmentId int64 `json:"departmentId"`
@@ -46,12 +47,14 @@ func (c *cost) List(ctx context.Context, args ArgsCostList) (reply ReplyCostList
}
type ArgsCostAdd struct {
ExpenseId int64 // 报销单ID
Date time.Time // 费用日期
Type int64 // 费用类型
Value string // 费用名称
Amount decimal.Decimal // 金额
DepartmentId int64 // 部门
ExpenseId int64 // 报销单ID
Date time.Time // 费用日期
TypeNumber string // 费用类型
TypeName string // 费用类型名称
Value string // 费用名称
Amount decimal.Decimal // 金额
DepartmentId int64 // 部门
InvoiceSerial string // 发票编号
}
// Add @TITLE 添加