feat(erp/sale): 添加销售合同编辑产品审核功能

- 新增 ArgsAuditChange 和 ChangeProductItem 结构体用于编辑产品审核- 实现 Change 方法以处理编辑产品审核请求
- 在 constant.go 中添加相应的业务类型常量和描述
This commit is contained in:
2025-05-22 13:50:22 +08:00
parent f1e7ce20ce
commit fbe9a5eb9e
2 changed files with 24 additions and 0 deletions

View File

@@ -45,3 +45,25 @@ func (a *audit) Append(ctx context.Context, args ArgsAuditSubmit) (err error) {
err = xClient.Call(ctx, "Append", args, &reply)
return
}
type ArgsAuditChange struct {
StaffId int64 // 操作人
SaleId int64 // 销售合同id
AuditStaffIds []int64 // 审核人
Products []ChangeProductItem // 产品信息
}
type ChangeProductItem struct {
Id int64 // 产品id
SaleCount int64 // 销售数量
}
// Change @TITLE 编辑商品审核
func (a *audit) Change(ctx context.Context, args ArgsAuditChange) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Change", args, &reply)
return
}