| | |
| | | import ( |
| | | "aps_crm/constvar" |
| | | "aps_crm/model" |
| | | "github.com/shopspring/decimal" |
| | | ) |
| | | |
| | | type AddSalesDetails struct { |
| | |
| | | |
| | | type SalesDetails struct { |
| | | ClientId int `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"` |
| | | Client model.Client `json:"client" gorm:"foreignKey:ClientId"` |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:销售明细单号"` |
| | | SaleChanceId int `json:"saleChanceId" gorm:"column:sale_chance_id;type:int;comment:销售机会id"` |
| | | SaleType int `json:"saleType" gorm:"column:sale_type;type:int;comment:销售类型"` |
| | | SignTime string `json:"signTime" gorm:"column:sign_time;type:datetime;comment:签单时间"` |
| | | MemberId int `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"` |
| | | Member model.User `json:"Member" gorm:"foreignKey:MemberId"` |
| | | DeliveryDate string `json:"deliveryDate" gorm:"column:delivery_date;type:datetime;comment:交货日期"` |
| | | WechatOrderStatusId int `json:"wechatOrderStatusId" gorm:"column:wechat_order_status_id;type:int;comment:微信订单状态id"` |
| | | Address string `json:"address" gorm:"column:address;type:varchar(255);comment:地址"` |
| | |
| | | QuotationId int `json:"quotationId" gorm:"column:quotation_id;type:int;comment:报价单id"` |
| | | Status constvar.SalesDetailsStatus `json:"status" gorm:"column:status;type:int;comment:状态"` |
| | | Source string `json:"source" gorm:"column:source;type:varchar(255);comment:订单来源"` |
| | | ProjectId string `json:"projectId" gorm:"column:project_id;type:varchar(255);comment:aps项目id"` |
| | | } |
| | | |
| | | type UpdateSalesDetails struct { |
| | |
| | | ClientId int `json:"clientId"` //客户id |
| | | Number string `json:"number"` //销售明细单号 |
| | | } |
| | | |
| | | // ConfirmOutput 发货 |
| | | type ConfirmOutput struct { |
| | | SaleDetailNumber string `json:"saleDetailNumber"` |
| | | Products []ConfirmOutputProducts `json:"products"` |
| | | } |
| | | |
| | | // ConfirmOutputOver 确认发货完成 |
| | | type ConfirmOutputOver struct { |
| | | SaleDetailNumber string `json:"saleDetailNumber"` |
| | | } |
| | | |
| | | type ConfirmOutputProducts struct { |
| | | Number string `json:"number"` //产品编号 |
| | | OutputAmount decimal.Decimal `json:"outputAmount"` //本次发货数量 |
| | | } |