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,34 +17,41 @@ type ArgsPurchaseList struct {
Search PurchaseSearch
}
type PurchaseSearch struct {
PiSerial string // 采购合同编号
PoSerial string // po
CustomShortName string // 客户简称
CreatedStaffIds []int64 // 创建人筛选
FactoryName string // 采购工厂
PurchaseIds []int64 // 采购id
PiSerial string // 采购合同编号
PoSerial string // po
CustomId int64 // 客户id
CustomShortName string // 客户简称
CreatedStaffIds []int64 // 创建人筛选
StaffIds []int64 // 业务员
FactoryName string // 采购工厂
PurchaseIds []int64 // 采购id
OrderDateStart *time.Time // 下单日期
OrderDateEnd *time.Time // 下单日期
WorkflowStatus []int64 // 状态
}
type ReplyPurchaseList struct {
List []PurchaseItem `json:"list"`
Total int64 `json:"total"`
}
type PurchaseItem struct {
Id int64 `json:"id"`
SaleId int64 `json:"saleId"`
PiSerial string `json:"piSerial"`
PoSerial string `json:"poSerial"`
CustomName string `json:"customName"`
CustomShortName string `json:"customShortName"`
DeliveryDate *time.Time `json:"deliveryDate"`
DeliveryDateEnd *time.Time `json:"deliveryDateEnd"`
OrderDate time.Time `json:"orderDate"`
CreatedStaffId int64 `json:"createdStaffId"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
FactoryName string `json:"factoryName"`
FactoryId int64 `json:"factoryId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
Id int64 `json:"id"`
SaleId int64 `json:"saleId"`
PiSerial string `json:"piSerial"`
PoSerial string `json:"poSerial"`
CustomName string `json:"customName"`
CustomShortName string `json:"customShortName"`
DeliveryDate *time.Time `json:"deliveryDate"`
DeliveryDateEnd *time.Time `json:"deliveryDateEnd"`
OrderDate time.Time `json:"orderDate"`
CreatedStaffId int64 `json:"createdStaffId"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
FactoryName string `json:"factoryName"`
FactoryId int64 `json:"factoryId"`
ProductAmount decimal.Decimal `json:"productAmount"`
CostAmount decimal.Decimal `json:"costAmount"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
}
// List @TITLE 采购合同列表