feat(erp): 新增打款功能模块支持报销单和申请单
- 新增 BusinessTypeRequest 业务类型常量及"申请单"名称映射 - 报销单和申请单新增打款状态筛选字段 TransferStatuses - 报销单和申请单新增 TransferId、TransferStatus、TransferAt、TransferErrMsg 打款相关字段 - 新增 transfer 请求子模块,实现 Submit 提交打款接口 - 货运模块新增 DueRecDate 预计收汇日期字段
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package request
|
||||
|
||||
type Request struct {
|
||||
Cost cost
|
||||
Audit audit
|
||||
Prepaid prepaid
|
||||
Cost cost
|
||||
Audit audit
|
||||
Prepaid prepaid
|
||||
Transfer transfer
|
||||
}
|
||||
|
||||
26
erp/request/transfer.go
Normal file
26
erp/request/transfer.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
)
|
||||
|
||||
type transfer struct {
|
||||
}
|
||||
type ArgsTransferSubmit struct {
|
||||
StaffId int64 // 操作人
|
||||
RequestId int64 // 申请单id
|
||||
TransferType string // 打款类型
|
||||
}
|
||||
|
||||
// Submit @TITLE 提交打款
|
||||
func (t *transfer) Submit(ctx context.Context, args ArgsTransferSubmit) (err error) {
|
||||
xClient, err := client.GetClient(t)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
err = xClient.Call(ctx, "Submit", args, &reply)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user