feat(erp): 添加预估装船日期字段和复制功能
- 在RequestSearch结构体中添加EstSailingDateStart和EstSailingDateEnd字段用于日期范围搜索 - 在RequestItem和ReplyRequestDetail结构体中添加EstSailingDate字段用于显示预估装船日期 - 新增ArgsRequestClone结构体用于定义复制操作参数 - 实现Clone方法支持申请单复制功能 - 更新相关数据传输对象以包含预估装船日期信息
This commit is contained in:
@@ -19,34 +19,36 @@ type ArgsRequestList struct {
|
|||||||
Order []OrderItem
|
Order []OrderItem
|
||||||
}
|
}
|
||||||
type RequestSearch struct {
|
type RequestSearch struct {
|
||||||
RequestSerial string // 报销单号
|
RequestSerial string // 报销单号
|
||||||
InvoiceSerial string // 发票号
|
InvoiceSerial string // 发票号
|
||||||
CreatedAtStart *time.Time // 创建开始时间
|
CreatedAtStart *time.Time // 创建开始时间
|
||||||
CreatedAtEnd *time.Time // 创建结束时间
|
CreatedAtEnd *time.Time // 创建结束时间
|
||||||
PayAtStart *time.Time // 付款开始时间
|
PayAtStart *time.Time // 付款开始时间
|
||||||
PayAtEnd *time.Time // 付款结束时间
|
PayAtEnd *time.Time // 付款结束时间
|
||||||
AuditAtStart *time.Time // 审核开始时间
|
AuditAtStart *time.Time // 审核开始时间
|
||||||
AuditAtEnd *time.Time // 审核结束时间
|
AuditAtEnd *time.Time // 审核结束时间
|
||||||
RequestIds []int64 // 申请单id
|
EstSailingDateStart *time.Time // 估船日期
|
||||||
BanFlag int64 // 禁用标记 1=禁用 2=启用
|
EstSailingDateEnd *time.Time // 估船日期
|
||||||
BankAccount string // 银行账号
|
RequestIds []int64 // 申请单id
|
||||||
BankName string // 账号名称
|
BanFlag int64 // 禁用标记 1=禁用 2=启用
|
||||||
AccountingSerial string // 做账合同号
|
BankAccount string // 银行账号
|
||||||
WorkflowStatus int64 // 审核状态
|
BankName string // 账号名称
|
||||||
WorkflowStatuses []int64 // 审核状态
|
AccountingSerial string // 做账合同号
|
||||||
PaidAmountStart *decimal.Decimal // 实付金额开始
|
WorkflowStatus int64 // 审核状态
|
||||||
PaidAmountEnd *decimal.Decimal // 实付金额结束
|
WorkflowStatuses []int64 // 审核状态
|
||||||
CreatedStaffIds []int64 // 创建人
|
PaidAmountStart *decimal.Decimal // 实付金额开始
|
||||||
Currency string // 币种
|
PaidAmountEnd *decimal.Decimal // 实付金额结束
|
||||||
Ik3cloudStatus int64 // ik3cloud状态
|
CreatedStaffIds []int64 // 创建人
|
||||||
BankNameEq *string // 结汇银行完全匹配
|
Currency string // 币种
|
||||||
BankAccountEq *string // 结汇银行账号完全匹配
|
Ik3cloudStatus int64 // ik3cloud状态
|
||||||
FactoryId int64 // 工厂筛选
|
BankNameEq *string // 结汇银行完全匹配
|
||||||
FactoryName string // 工厂名称
|
BankAccountEq *string // 结汇银行账号完全匹配
|
||||||
PermissionStaffIds []int64 // 权限员工id
|
FactoryId int64 // 工厂筛选
|
||||||
Ik3cloudStatuses []int64 // 金蝶推送状态
|
FactoryName string // 工厂名称
|
||||||
Ik3cloudAtStart *time.Time // 金蝶推送开始时间
|
PermissionStaffIds []int64 // 权限员工id
|
||||||
Ik3cloudAtEnd *time.Time // 金蝶推送结束时间
|
Ik3cloudStatuses []int64 // 金蝶推送状态
|
||||||
|
Ik3cloudAtStart *time.Time // 金蝶推送开始时间
|
||||||
|
Ik3cloudAtEnd *time.Time // 金蝶推送结束时间
|
||||||
}
|
}
|
||||||
type ReplyRequestList struct {
|
type ReplyRequestList struct {
|
||||||
List []RequestItem `json:"list"`
|
List []RequestItem `json:"list"`
|
||||||
@@ -73,6 +75,7 @@ type RequestItem struct {
|
|||||||
BankName string `json:"bankName"`
|
BankName string `json:"bankName"`
|
||||||
BankStaffId *int64 `json:"bankStaffId"`
|
BankStaffId *int64 `json:"bankStaffId"`
|
||||||
PayAt *time.Time `json:"payAt"`
|
PayAt *time.Time `json:"payAt"`
|
||||||
|
EstSailingDate *time.Time `json:"estSailingDate"`
|
||||||
PrepaidAmount decimal.Decimal `json:"prepaidAmount"`
|
PrepaidAmount decimal.Decimal `json:"prepaidAmount"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
PaidAmount decimal.Decimal `json:"paidAmount"`
|
PaidAmount decimal.Decimal `json:"paidAmount"`
|
||||||
@@ -134,6 +137,21 @@ func (r *request) Add(ctx context.Context, args ArgsRequestAdd) (requestId int64
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ArgsRequestClone struct {
|
||||||
|
StaffId int64
|
||||||
|
RequestId int64
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clone @TITLE 复制
|
||||||
|
func (r *request) Clone(ctx context.Context, args ArgsRequestClone) (requestId int64, err error) {
|
||||||
|
xClient, err := client.GetClient(r)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
err = xClient.Call(ctx, "Clone", args, &requestId)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Gen @TITLE 生成付款单
|
// Gen @TITLE 生成付款单
|
||||||
func (r *request) Gen(ctx context.Context, payableId int64) (err error) {
|
func (r *request) Gen(ctx context.Context, payableId int64) (err error) {
|
||||||
xClient, err := client.GetClient(r)
|
xClient, err := client.GetClient(r)
|
||||||
@@ -168,6 +186,7 @@ type ReplyRequestInfo struct {
|
|||||||
BankName string `json:"bankName"`
|
BankName string `json:"bankName"`
|
||||||
BankStaffId *int64 `json:"bankStaffId"`
|
BankStaffId *int64 `json:"bankStaffId"`
|
||||||
PayAt *time.Time `json:"payAt"`
|
PayAt *time.Time `json:"payAt"`
|
||||||
|
EstSailingDate *time.Time `json:"estSailingDate"`
|
||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
|
|||||||
Reference in New Issue
Block a user