From 8ade6e1f4cc26ec2ee0804d4d9286a2b2719df29 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 1 Sep 2022 15:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/supplier.go | 15 ++++++++------- supplier/supplierApply.go | 33 ++++++++++++++++++++++++++++----- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/supplier/supplier.go b/supplier/supplier.go index 75e2de4..a47e938 100644 --- a/supplier/supplier.go +++ b/supplier/supplier.go @@ -53,13 +53,14 @@ type ReplySupplierLists struct { } type SupplierItem struct { - Id uint - SupplierName string // 供应商名称 - Status uint // 状态 - Prepayment decimal.Decimal // 预付款余额 - WarnStatus uint // 预警状态 - ApplyUserId uint // 创建人 - CreatedAt int64 // 创建时间 + Id uint + SupplierName string // 供应商名称 + Status uint // 状态 + Prepayment decimal.Decimal // 预付款余额 + WarnStatus uint // 预警状态 + ApplyUserId uint // 创建人Id + ApplyUserName string // 创建人名称 + CreatedAt int64 // 创建时间 } // Lists @Title 供应商列表 diff --git a/supplier/supplierApply.go b/supplier/supplierApply.go index 34e0242..29fa733 100644 --- a/supplier/supplierApply.go +++ b/supplier/supplierApply.go @@ -47,11 +47,14 @@ func (s *supplierApply) Lists(ctx context.Context, args ArgsSupplierApplyLists) type ReplySupplierApplyInfo struct { AuditStatus uint - SupplierName string - Account string - Liaison string - Phone string - Annex string + SupplierName string // 供应商名称 + Account string // 账户 + Liaison string // 联系人 + Phone string // 手机号 + Annex string // 附件 + Reason string // 驳回原因 + AuditUserId uint // 审核人id + AuditTime int64 // 审核时间 } // Info @Title 审核详情 @@ -94,3 +97,23 @@ func (s *supplierApply) Reject(ctx context.Context, args ArgsSupplierApplyReject reply := 0 return xClient.Call(ctx, "Reject", args, &reply) } + +type ArgsSupplierApplyReAudit struct { + ApplyId uint + SupplierName string // 供应商名称 + Account string // 账户 + Password string // 密码 + Liaison string // 联系人 + Phone string // 手机号 + Annex string // 附件 +} + +// ReAudit @Title 重新审核 +func (s *supplierApply) ReAudit(ctx context.Context, args ArgsSupplierApplyReAudit) error { + xClient, err := client.GetClient(s) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "ReAudit", args, &reply) +}