This commit is contained in:
守护自己的云 2024-09-05 17:06:40 +08:00
parent f2014976c9
commit c7ddb2b86e
6 changed files with 45 additions and 11 deletions

View File

@ -17,6 +17,7 @@ const (
AuditStatusIng AuditStatus = 2 // 审核中
AuditStatusAdopt AuditStatus = 3 // 审核通过
AuditStatusReject AuditStatus = 4 // 审核驳回
AuditStatusCancel AuditStatus = 5 // 审核撤回
)
type IsOpen = int64 // 开启状态

View File

@ -28,8 +28,8 @@ func (a *annotations) All(ctx context.Context, purchaseId int64) (reply []Annota
}
type ArgsAnnotationsAdd struct {
PurchaseId int64 // 采购合同ID
AnnotationsAdd
PurchaseId int64 // 采购合同ID
AnnotationsAdds []AnnotationsAdd
}
type AnnotationsAdd struct {

View File

@ -30,7 +30,7 @@ func (c *clause) All(ctx context.Context, purchaseId int64) (reply []ClauseItem,
type ArgsClauseAdd struct {
PurchaseId int64 // 采购合同ID
ClauseAdd
ClauseAdds []ClauseAdd
}
type ClauseAdd struct {

View File

@ -41,7 +41,7 @@ type SaleItem struct {
CustomConsigneeName string `json:"customConsigneeName"`
CustomConsigneeAddress string `json:"customConsigneeAddress"`
EstShipDate time.Time `json:"estShipDate"`
EstShipDateEnd time.Time `json:"estShipDateEnd"`
EstShipDateEnd *time.Time `json:"estShipDateEnd"`
EstRecDate *time.Time `json:"estRecDate"`
RecBank string `json:"recBank"`
RecBankEng string `json:"recBankEng"`
@ -79,6 +79,7 @@ type SaleItem struct {
Remarks string `json:"remarks"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
HasPurchase int64 `json:"hasPurchase"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
@ -111,7 +112,7 @@ type SaleAdd struct {
CustomConsigneeName string // 客户收货人
CustomConsigneeAddress string // 客户收货人地址
EstShipDate time.Time // 预计出运日期
EstShipDateEnd time.Time // 预计出运日期结束
EstShipDateEnd *time.Time // 预计出运日期结束
EstRecDate *time.Time // 预计收汇日期
RecBank string // 收汇银行
RecBankEng string // 收汇银行英文
@ -173,7 +174,7 @@ type ReplySaleInfo struct {
CustomConsigneeName string `json:"customConsigneeName"`
CustomConsigneeAddress string `json:"customConsigneeAddress"`
EstShipDate time.Time `json:"estShipDate"`
EstShipDateEnd time.Time `json:"estShipDateEnd"`
EstShipDateEnd *time.Time `json:"estShipDateEnd"`
EstRecDate *time.Time `json:"estRecDate"`
RecBank string `json:"recBank"`
RecBankEng string `json:"recBankEng"`
@ -214,6 +215,7 @@ type ReplySaleInfo struct {
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
HasPurchase int64 `json:"hasPurchase"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`

View File

@ -118,3 +118,33 @@ func (w *workflow) Reject(ctx context.Context, args ArgsWorkflowReject) (err err
err = xClient.Call(ctx, "Reject", args, &reply)
return
}
type ReplyReviewNode struct {
ReviewStaffId int64 `json:"reviewStaffId"`
}
// ReviewNode @TITLE 获取审批节点
func (w *workflow) ReviewNode(ctx context.Context, workflowId int64) (reply ReplyReviewNode, err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
err = xClient.Call(ctx, "ReviewNode", workflowId, &reply)
return
}
type ArgsWorkflowCancel struct {
StaffId int64 // 审核人
WorkflowId int64 // 工作流
}
// Cancel @TITLE 审核撤回
func (w *workflow) Cancel(ctx context.Context, args ArgsWorkflowCancel) (err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Cancel", args, &reply)
return
}

View File

@ -75,11 +75,12 @@ type ArgsStaffList struct {
Search StaffSearch
}
type StaffSearch struct {
Status int64 // 状态 1=启用 2=停用
Keyword string // 关键字
Phone string // 手机号
DepartmentIds []int64 // 部门筛选
RoleIds []int64 // 角色筛选
Status int64 // 状态 1=启用 2=停用
Keyword string // 关键字
Phone string // 手机号
DepartmentIds []int64 // 部门筛选
DepartmentStaffIds []int64 // 部门员工id
RoleIds []int64 // 角色筛选
}
type ReplyStaffList struct {
List []StaffItem `json:"list"` // 员工列表