feat(erp): 新增多模块驳回功能及搜索筛选字段
- 新增做账合同一键驳回方法(accounting.Reject) - 新增报销单驳回方法(expense.Reject) - 新增付款申请单驳回方法(request.Reject) - 出运发票搜索新增创建人精确筛选字段(CreatedStaffId) - 产品搜索新增工厂名称筛选字段(FactoryName) - 应收款搜索新增收汇客户名称筛选字段(RecCustomName)
This commit is contained in:
@@ -252,3 +252,20 @@ func (a *accounting) CancelAudit(ctx context.Context, accountingId int64) (err e
|
||||
err = xClient.Call(ctx, "CancelAudit", accountingId, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsAccountingReject struct {
|
||||
StaffId int64 // 操作人
|
||||
AccountingId int64 // 做账合同id
|
||||
Reason string // 驳回原因
|
||||
}
|
||||
|
||||
// Reject @TITLE 一键驳回
|
||||
func (a *accounting) Reject(ctx context.Context, args ArgsAccountingReject) (err error) {
|
||||
xClient, err := client.GetClient(a)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
err = xClient.Call(ctx, "Reject", args, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user