| | |
| | | // @Summary 回访单管理列表 |
| | | // @Produce application/json |
| | | // @Param object body request.GetServiceFollowupList true "参数" |
| | | // @Success 200 {object} contextx.Response{data=response.ServiceFollowupResponse} |
| | | // |
| | | // @Success 200 {object} contextx.Response{data=response.ServiceFollowupResponse} |
| | | // |
| | | // @Router /api/serviceFollowup/list [post] |
| | | func (con *ServiceFollowupApi) List(c *gin.Context) { |
| | | var params request.GetServiceFollowupList |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "signTime": { |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "wechatOrderStatus": { |
| | | "$ref": "#/definitions/model.WechatOrderStatus" |
| | | }, |
| | |
| | | "$ref": "#/definitions/constvar.RefundSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "$ref": "#/definitions/constvar.SalesReturnSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "endTime": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "type": "string" |
| | | }, |
| | | "terms": { |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "file": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "timelyRateId": { |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "contactId": { |
| | | "description": "联系人id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "expectTime": { |
| | | "description": "希望处理时间", |
| | |
| | | "timeSpentId": { |
| | | "description": "花费时间", |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "bankAccountId": { |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "signTime": { |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "wechatOrderStatus": { |
| | | "$ref": "#/definitions/model.WechatOrderStatus" |
| | | }, |
| | |
| | | "$ref": "#/definitions/constvar.RefundSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "$ref": "#/definitions/constvar.SalesReturnSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "endTime": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "type": "string" |
| | | }, |
| | | "terms": { |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "file": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "timelyRateId": { |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "contactId": { |
| | | "description": "联系人id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "expectTime": { |
| | | "description": "希望处理时间", |
| | |
| | | "timeSpentId": { |
| | | "description": "花费时间", |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "bankAccountId": { |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | type: integer |
| | | signTime: |
| | | type: string |
| | | updateTime: |
| | | type: string |
| | | wechatOrderStatus: |
| | | $ref: '#/definitions/model.WechatOrderStatus' |
| | | wechatOrderStatusId: |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.RefundSourceType' |
| | | description: 来源类型(1销售退货) |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.SalesReturn: |
| | | properties: |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.SalesReturnSourceType' |
| | | description: 源单类型(1销售明细) |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.SalesReturnStatus: |
| | | properties: |
| | |
| | | $ref: '#/definitions/model.Contact' |
| | | contactId: |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | endTime: |
| | | type: string |
| | | id: |
| | |
| | | startTime: |
| | | type: string |
| | | terms: |
| | | type: string |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.ServiceContractStatus: |
| | |
| | | $ref: '#/definitions/model.Contact' |
| | | contactId: |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | file: |
| | | type: string |
| | | id: |
| | |
| | | $ref: '#/definitions/model.TimelyRate' |
| | | timelyRateId: |
| | | type: integer |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.ServiceOrder: |
| | | properties: |
| | |
| | | contactId: |
| | | description: 联系人id |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | expectTime: |
| | | description: 希望处理时间 |
| | | type: string |
| | |
| | | timeSpentId: |
| | | description: 花费时间 |
| | | type: integer |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.ServiceOrderStatus: |
| | | properties: |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | |
| | | type CrmModel struct { |
| | | gorm.Model `json:"-"` |
| | | CreatorId int `json:"-" gorm:"column:creator_id;type:int;comment:创建人id"` |
| | | Creator User `json:"-" gorm:"foreignKey:CreatorId"` |
| | | CreateTime time.Time `json:"createTime" gorm:"-"` |
| | | CreatorName string `json:"creatorName" gorm:"-"` |
| | | CreatorId int `json:"-" gorm:"column:creator_id;type:int;comment:创建人id"` |
| | | Creator User `json:"-" gorm:"foreignKey:CreatorId"` |
| | | CreateTime string `json:"createTime" gorm:"-"` |
| | | UpdateTime string `json:"updateTime" gorm:"-"` |
| | | CreatorName string `json:"creatorName" gorm:"-"` |
| | | } |
| | | |
| | | func (slf *CrmModel) AfterFind(tx *gorm.DB) (err error) { |
| | | slf.CreatorName = slf.Creator.Username |
| | | slf.CreateTime = slf.CreatedAt |
| | | slf.CreateTime = slf.CreatedAt.Format("2006-01-02 15:04") |
| | | slf.UpdateTime = slf.UpdatedAt.Format("2006-01-02 15:04") |
| | | return nil |
| | | } |
| | |
| | | AmountUnInvoiced decimal.Decimal `gorm:"column:amount_not_invoiced;type:decimal(12,2);comment:未开票金额" json:"amountUnInvoiced"` // 未开票金额 |
| | | AmountTotal decimal.Decimal `gorm:"column:amount_total;type:decimal(12,2);comment:价税合计" json:"amountTotal"` // 价税合计 |
| | | Products []*Product `json:"products" gorm:"many2many:service_contract_product;"` |
| | | gorm.Model `json:"-"` |
| | | CrmModel |
| | | } |
| | | |
| | | ServiceContractSearch struct { |
| | |
| | | } |
| | | ) |
| | | |
| | | func (ServiceContract) TableName() string { |
| | | func (slf *ServiceContract) TableName() string { |
| | | return "service_contract" |
| | | } |
| | | |
| | |
| | | OldMember User `json:"oldMember" gorm:"foreignKey:OldMemberId"` |
| | | Remark string `json:"remark" gorm:"column:remark;type:text;comment:备注"` |
| | | File string `json:"file" gorm:"column:file;type:varchar(255);comment:附件"` |
| | | |
| | | gorm.Model `json:"-"` |
| | | CrmModel |
| | | } |
| | | |
| | | ServiceFollowupSearch struct { |
| | |
| | | } |
| | | ) |
| | | |
| | | func (ServiceFollowup) TableName() string { |
| | | func (*ServiceFollowup) TableName() string { |
| | | return "service_followup" |
| | | } |
| | | |
| | |
| | | Solution string `gorm:"column:solution;type:varchar(255);not null;default:'';comment:解决方法" json:"solution"` // 解决方法 |
| | | SolutionRemark string `gorm:"column:solution_remark;type:varchar(255);not null;default:'';comment:内部备注" json:"solutionRemark"` // 内部备注 |
| | | Remark string `gorm:"column:remark;type:varchar(255);not null;default:'';comment:备注" json:"remark"` // 备注 |
| | | CrmModel |
| | | } |
| | | |
| | | // ServiceOrderSearch 服务单搜索条件 |
| | |
| | | } |
| | | ) |
| | | |
| | | func (ServiceOrder) TableName() string { |
| | | func (slf *ServiceOrder) TableName() string { |
| | | return "service_order" |
| | | } |
| | | |