feat(erp): 新增多模块驳回功能及搜索筛选字段
- 新增做账合同一键驳回方法(accounting.Reject) - 新增报销单驳回方法(expense.Reject) - 新增付款申请单驳回方法(request.Reject) - 出运发票搜索新增创建人精确筛选字段(CreatedStaffId) - 产品搜索新增工厂名称筛选字段(FactoryName) - 应收款搜索新增收汇客户名称筛选字段(RecCustomName)
This commit is contained in:
@@ -247,3 +247,19 @@ func (r *expense) Cancel(ctx context.Context, expenseId int64) (err error) {
|
||||
reply := 0
|
||||
return xClient.Call(ctx, "Cancel", expenseId, &reply)
|
||||
}
|
||||
|
||||
type ArgsExpenseReject struct {
|
||||
StaffId int64 // 员工id
|
||||
ExpenseId int64 // 报销单id
|
||||
Reason string // 驳回原因
|
||||
}
|
||||
|
||||
// Reject @TITLE 驳回(审核通过且打款状态为待提交时可驳回)
|
||||
func (r *expense) Reject(ctx context.Context, args ArgsExpenseReject) (err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
return xClient.Call(ctx, "Reject", args, &reply)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user