feat(erp): 添加付款单审核功能

- 新增 BusinessTypePayment 类型用于付款单审核
- 添加 payment 包结构体定义
- 扩展 PaymentSearch 结构体支持 PaymentIds 查询字段
- 在 Payment 结构体中增加 prepaidAmount 和 paidAmount 字段
- 新增 receipt 和 request 查询参数中的发票号字段
- 添加付款单审核提交接口实现
This commit is contained in:
2026-01-21 11:17:56 +08:00
parent dc9b6a4dad
commit 1fdbc29a5c
6 changed files with 42 additions and 2 deletions

26
erp/payment/audit.go Normal file
View File

@@ -0,0 +1,26 @@
package payment
import (
"context"
"git.kumo.work/shama/service/client"
)
type audit struct {
}
type ArgsAuditSubmit struct {
StaffId int64 // 操作人
PaymentId int64 // 付款单
AuditStaffIds []int64 // 审核人
}
// Submit @TITLE 提交审核
func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Submit", args, &reply)
return
}

5
erp/payment/payment.go Normal file
View File

@@ -0,0 +1,5 @@
package payment
type Payment struct {
Audit audit
}