From 259c90bd4c8a7d8fbbba1c86b1e59760fb9b3e9e Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 11 May 2026 10:17:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(expense):=20=E6=B7=BB=E5=8A=A0=E8=B4=B9?= =?UTF-8?q?=E7=94=A8=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加出差信息 --- erp/expense/cost.go | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/erp/expense/cost.go b/erp/expense/cost.go index 811cd12..614c3cc 100644 --- a/erp/expense/cost.go +++ b/erp/expense/cost.go @@ -23,17 +23,20 @@ type ReplyCostList struct { Total int64 `json:"total"` } type CostItem struct { - Id int64 `json:"id"` - ExpenseId int64 `json:"expenseId"` - Date time.Time `json:"date"` - TypeNumber string `json:"typeNumber"` - TypeName string `json:"typeName"` - Value string `json:"value"` - Amount decimal.Decimal `json:"amount"` - DepartmentId int64 `json:"departmentId"` - InvoiceSerial string `json:"invoiceSerial"` - CreatedAt *time.Time `json:"createdAt"` - UpdatedAt *time.Time `json:"updatedAt"` + Id int64 `json:"id"` + ExpenseId int64 `json:"expenseId"` + Date time.Time `json:"date"` + TypeNumber string `json:"typeNumber"` + TypeName string `json:"typeName"` + Value string `json:"value"` + Amount decimal.Decimal `json:"amount"` + DepartmentId int64 `json:"departmentId"` + InvoiceSerial string `json:"invoiceSerial"` + TravelAt *time.Time `json:"travelAt"` + TravelLocation string `json:"travelLocation"` + TravelReason string `json:"travelReason"` + CreatedAt *time.Time `json:"createdAt"` + UpdatedAt *time.Time `json:"updatedAt"` } // List @TITLE 列表 @@ -47,14 +50,17 @@ func (c *cost) List(ctx context.Context, args ArgsCostList) (reply ReplyCostList } type ArgsCostAdd struct { - ExpenseId int64 // 报销单ID - Date time.Time // 费用日期 - TypeNumber string // 费用类型 - TypeName string // 费用类型名称 - Value string // 费用名称 - Amount decimal.Decimal // 金额 - DepartmentId int64 // 部门 - InvoiceSerial string // 发票编号 + ExpenseId int64 // 报销单ID + Date time.Time // 费用日期 + TypeNumber string // 费用类型 + TypeName string // 费用类型名称 + Value string // 费用名称 + Amount decimal.Decimal // 金额 + DepartmentId int64 // 部门 + InvoiceSerial string // 发票编号 + TravelAt *time.Time // 出差时间 + TravelLocation string // 出差地点 + TravelReason string // 出差事由 } type ReplyCostAdd struct {