feat(erp): 新增付款退款单确认与取消确认功能

- 在查询参数结构体中添加 IsConfirm 字段,支持按确认状态筛选
- 在数据模型结构体中添加 IsConfirm 字段并配置 json 标签
- 新增 Confirm 方法,调用远程接口确认付款退款单
- 新增 CancelConfirm 方法,调用远程接口取消确认付款退款单
This commit is contained in:
2026-10-26 09:28:44 +08:00
parent 327da6a96e
commit 8370daf37a

View File

@@ -21,6 +21,7 @@ type PaymentRefundSearch struct {
PaymentRefundSerial string // 付款退款单号
FactoryId int64 // 工厂
FactoryName string // 工厂名称
IsConfirm int64 // 确认状态 1=已确认 2=未确认
CreatedAtStart *time.Time // 创建开始时间
CreatedAtEnd *time.Time // 创建结束时间
}
@@ -45,6 +46,7 @@ type PaymentRefundItem struct {
PaymentPurposeNumber string `json:"paymentPurposeNumber"`
PaymentPurpose string `json:"paymentPurpose"`
Remark string `json:"remark"`
IsConfirm int64 `json:"isConfirm"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
@@ -153,6 +155,26 @@ func (p *paymentRefund) Cancel(ctx context.Context, paymentRefundId int64) error
return xClient.Call(ctx, "Cancel", paymentRefundId, &reply)
}
// Confirm @TITLE 确认付款退款单
func (p *paymentRefund) Confirm(ctx context.Context, paymentRefundId int64) (err error) {
xClient, err := client.GetClient(p)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "Confirm", paymentRefundId, &reply)
}
// CancelConfirm @TITLE 取消确认付款退款单
func (p *paymentRefund) CancelConfirm(ctx context.Context, paymentRefundId int64) (err error) {
xClient, err := client.GetClient(p)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "CancelConfirm", paymentRefundId, &reply)
}
// Ik3cloud @TITLE 金蝶同步
func (p *paymentRefund) Ik3cloud(ctx context.Context, paymentRefundId int64) (err error) {
xClient, err := client.GetClient(p)