feat(erp/sale): 添加销售合同编辑产品审核功能
- 新增 ArgsAuditChange 和 ChangeProductItem 结构体用于编辑产品审核- 实现 Change 方法以处理编辑产品审核请求 - 在 constant.go 中添加相应的业务类型常量和描述
This commit is contained in:
parent
f1e7ce20ce
commit
fbe9a5eb9e
@ -5,6 +5,7 @@ const (
|
|||||||
BusinessTypeSaleAudit BusinessType = "saleAudit" // 销售合同审核
|
BusinessTypeSaleAudit BusinessType = "saleAudit" // 销售合同审核
|
||||||
BusinessTypeSaleAuditClose BusinessType = "saleAuditClose" // 销售合同关单审核
|
BusinessTypeSaleAuditClose BusinessType = "saleAuditClose" // 销售合同关单审核
|
||||||
BusinessTypeSaleAppendAudit BusinessType = "saleAuditAppend" // 销售合同追加商品
|
BusinessTypeSaleAppendAudit BusinessType = "saleAuditAppend" // 销售合同追加商品
|
||||||
|
BusinessTypeSaleChangeAudit BusinessType = "saleAuditChange" // 销售合同修改产品
|
||||||
BusinessTypePurchaseAudit BusinessType = "purchaseAudit" // 采购合同审核
|
BusinessTypePurchaseAudit BusinessType = "purchaseAudit" // 采购合同审核
|
||||||
BusinessTypeShipmentAudit BusinessType = "shipmentAudit" // 订舱单审核
|
BusinessTypeShipmentAudit BusinessType = "shipmentAudit" // 订舱单审核
|
||||||
BusinessTypeShipmentModifyAudit BusinessType = "shipmentModifyAudit" // 订舱单修改单审核
|
BusinessTypeShipmentModifyAudit BusinessType = "shipmentModifyAudit" // 订舱单修改单审核
|
||||||
@ -15,6 +16,7 @@ var BusinessTypeName = map[BusinessType]string{
|
|||||||
BusinessTypeSaleAudit: "销售合同审核",
|
BusinessTypeSaleAudit: "销售合同审核",
|
||||||
BusinessTypeSaleAuditClose: "销售合同关单审核",
|
BusinessTypeSaleAuditClose: "销售合同关单审核",
|
||||||
BusinessTypeSaleAppendAudit: "销售合同追加商品审核",
|
BusinessTypeSaleAppendAudit: "销售合同追加商品审核",
|
||||||
|
BusinessTypeSaleChangeAudit: "销售合同编辑产品审核",
|
||||||
BusinessTypePurchaseAudit: "采购合同审核",
|
BusinessTypePurchaseAudit: "采购合同审核",
|
||||||
BusinessTypeShipmentAudit: "订舱单审核",
|
BusinessTypeShipmentAudit: "订舱单审核",
|
||||||
BusinessTypeShipmentModifyAudit: "订舱修改单审核",
|
BusinessTypeShipmentModifyAudit: "订舱修改单审核",
|
||||||
|
@ -45,3 +45,25 @@ func (a *audit) Append(ctx context.Context, args ArgsAuditSubmit) (err error) {
|
|||||||
err = xClient.Call(ctx, "Append", args, &reply)
|
err = xClient.Call(ctx, "Append", args, &reply)
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user