This commit is contained in:
2024-10-18 16:37:14 +08:00
parent 2c977e19e3
commit 2c467a3aec
14 changed files with 194 additions and 102 deletions

View File

@@ -17,14 +17,19 @@ type ArgsSaleList struct {
Search SaleSearch
}
type SaleSearch struct {
PiSerial string // pi
PoSerial string // po
CustomIds []int64 // 客户
PurchaseStatus []int64 // 采购状态
ShipmentStatus []int64 // 出舱状态
CreatedStaffIds []int64 // 业务员
SaleIds []int64 // 销售id
BanFlag int64 // 禁用标记 1=禁用2=可用
PiSerial string // pi
PoSerial string // po
CustomIds []int64 // 客户
CustomShortName string // 客户简称
PurchaseStatus []int64 // 采购状态
ShipmentStatus []int64 // 出舱状态
CreatedStaffIds []int64 // 业务员
StaffIds []int64 // 业务员
SaleIds []int64 // 销售id
ContractDateStart *time.Time // 合同日期
ContractDateEnd *time.Time // 合同日期
BanFlag int64 // 禁用标记 1=禁用2=可用
WorkflowStatus []int64 // 审批状态
}
type ReplySaleList struct {
List []SaleItem `json:"list"`
@@ -88,6 +93,9 @@ type SaleItem struct {
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
CloseWorkflowId int64 `json:"closeWorkflowId"`
CloseWorkflowStatus int64 `json:"closeWorkflowStatus"`
BanFlag int64 `json:"banFlag"`
}
// List @TITLE 销售合同列表
@@ -224,6 +232,10 @@ type ReplySaleInfo struct {
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
BanFlag int64 `json:"banFlag"`
CloseWorkflowId int64 `json:"closeWorkflowId"`
CloseWorkflowStatus int64 `json:"closeWorkflowStatus"`
CloseWorkflowReason string `json:"closeWorkflowReason"`
}
// Info @TITLE 销售合同详情
@@ -250,3 +262,19 @@ func (s *sale) Edit(ctx context.Context, args ArgsSaleEdit) (err error) {
reply := 0
return xClient.Call(ctx, "Edit", args, &reply)
}
type ArgsSaleClone struct {
StaffId int64 // 员工id
SaleId int64 // saleId
PiSerial string // PI number
}
// Clone @TITLE 销售合同克隆
func (s *sale) Clone(ctx context.Context, args ArgsSaleClone) (reply int64, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "Clone", args, &reply)
return
}