部署
This commit is contained in:
parent
f2014976c9
commit
c7ddb2b86e
@ -17,6 +17,7 @@ const (
|
|||||||
AuditStatusIng AuditStatus = 2 // 审核中
|
AuditStatusIng AuditStatus = 2 // 审核中
|
||||||
AuditStatusAdopt AuditStatus = 3 // 审核通过
|
AuditStatusAdopt AuditStatus = 3 // 审核通过
|
||||||
AuditStatusReject AuditStatus = 4 // 审核驳回
|
AuditStatusReject AuditStatus = 4 // 审核驳回
|
||||||
|
AuditStatusCancel AuditStatus = 5 // 审核撤回
|
||||||
)
|
)
|
||||||
|
|
||||||
type IsOpen = int64 // 开启状态
|
type IsOpen = int64 // 开启状态
|
||||||
|
@ -28,8 +28,8 @@ func (a *annotations) All(ctx context.Context, purchaseId int64) (reply []Annota
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ArgsAnnotationsAdd struct {
|
type ArgsAnnotationsAdd struct {
|
||||||
PurchaseId int64 // 采购合同ID
|
PurchaseId int64 // 采购合同ID
|
||||||
AnnotationsAdd
|
AnnotationsAdds []AnnotationsAdd
|
||||||
}
|
}
|
||||||
|
|
||||||
type AnnotationsAdd struct {
|
type AnnotationsAdd struct {
|
||||||
|
@ -30,7 +30,7 @@ func (c *clause) All(ctx context.Context, purchaseId int64) (reply []ClauseItem,
|
|||||||
|
|
||||||
type ArgsClauseAdd struct {
|
type ArgsClauseAdd struct {
|
||||||
PurchaseId int64 // 采购合同ID
|
PurchaseId int64 // 采购合同ID
|
||||||
ClauseAdd
|
ClauseAdds []ClauseAdd
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClauseAdd struct {
|
type ClauseAdd struct {
|
||||||
|
@ -41,7 +41,7 @@ type SaleItem struct {
|
|||||||
CustomConsigneeName string `json:"customConsigneeName"`
|
CustomConsigneeName string `json:"customConsigneeName"`
|
||||||
CustomConsigneeAddress string `json:"customConsigneeAddress"`
|
CustomConsigneeAddress string `json:"customConsigneeAddress"`
|
||||||
EstShipDate time.Time `json:"estShipDate"`
|
EstShipDate time.Time `json:"estShipDate"`
|
||||||
EstShipDateEnd time.Time `json:"estShipDateEnd"`
|
EstShipDateEnd *time.Time `json:"estShipDateEnd"`
|
||||||
EstRecDate *time.Time `json:"estRecDate"`
|
EstRecDate *time.Time `json:"estRecDate"`
|
||||||
RecBank string `json:"recBank"`
|
RecBank string `json:"recBank"`
|
||||||
RecBankEng string `json:"recBankEng"`
|
RecBankEng string `json:"recBankEng"`
|
||||||
@ -79,6 +79,7 @@ type SaleItem struct {
|
|||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
|
HasPurchase int64 `json:"hasPurchase"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@ -111,7 +112,7 @@ type SaleAdd struct {
|
|||||||
CustomConsigneeName string // 客户收货人
|
CustomConsigneeName string // 客户收货人
|
||||||
CustomConsigneeAddress string // 客户收货人地址
|
CustomConsigneeAddress string // 客户收货人地址
|
||||||
EstShipDate time.Time // 预计出运日期
|
EstShipDate time.Time // 预计出运日期
|
||||||
EstShipDateEnd time.Time // 预计出运日期结束
|
EstShipDateEnd *time.Time // 预计出运日期结束
|
||||||
EstRecDate *time.Time // 预计收汇日期
|
EstRecDate *time.Time // 预计收汇日期
|
||||||
RecBank string // 收汇银行
|
RecBank string // 收汇银行
|
||||||
RecBankEng string // 收汇银行英文
|
RecBankEng string // 收汇银行英文
|
||||||
@ -173,7 +174,7 @@ type ReplySaleInfo struct {
|
|||||||
CustomConsigneeName string `json:"customConsigneeName"`
|
CustomConsigneeName string `json:"customConsigneeName"`
|
||||||
CustomConsigneeAddress string `json:"customConsigneeAddress"`
|
CustomConsigneeAddress string `json:"customConsigneeAddress"`
|
||||||
EstShipDate time.Time `json:"estShipDate"`
|
EstShipDate time.Time `json:"estShipDate"`
|
||||||
EstShipDateEnd time.Time `json:"estShipDateEnd"`
|
EstShipDateEnd *time.Time `json:"estShipDateEnd"`
|
||||||
EstRecDate *time.Time `json:"estRecDate"`
|
EstRecDate *time.Time `json:"estRecDate"`
|
||||||
RecBank string `json:"recBank"`
|
RecBank string `json:"recBank"`
|
||||||
RecBankEng string `json:"recBankEng"`
|
RecBankEng string `json:"recBankEng"`
|
||||||
@ -214,6 +215,7 @@ type ReplySaleInfo struct {
|
|||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
|
HasPurchase int64 `json:"hasPurchase"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
|
@ -118,3 +118,33 @@ func (w *workflow) Reject(ctx context.Context, args ArgsWorkflowReject) (err err
|
|||||||
err = xClient.Call(ctx, "Reject", args, &reply)
|
err = xClient.Call(ctx, "Reject", args, &reply)
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
11
oa/staff.go
11
oa/staff.go
@ -75,11 +75,12 @@ type ArgsStaffList struct {
|
|||||||
Search StaffSearch
|
Search StaffSearch
|
||||||
}
|
}
|
||||||
type StaffSearch struct {
|
type StaffSearch struct {
|
||||||
Status int64 // 状态 1=启用 2=停用
|
Status int64 // 状态 1=启用 2=停用
|
||||||
Keyword string // 关键字
|
Keyword string // 关键字
|
||||||
Phone string // 手机号
|
Phone string // 手机号
|
||||||
DepartmentIds []int64 // 部门筛选
|
DepartmentIds []int64 // 部门筛选
|
||||||
RoleIds []int64 // 角色筛选
|
DepartmentStaffIds []int64 // 部门员工id
|
||||||
|
RoleIds []int64 // 角色筛选
|
||||||
}
|
}
|
||||||
type ReplyStaffList struct {
|
type ReplyStaffList struct {
|
||||||
List []StaffItem `json:"list"` // 员工列表
|
List []StaffItem `json:"list"` // 员工列表
|
||||||
|
Loading…
Reference in New Issue
Block a user