deliver_order.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package work
  5. import (
  6. contractmodel "dashoo.cn/micro/app/model/contract"
  7. "dashoo.cn/micro/app/model/work/internal"
  8. "dashoo.cn/opms_libary/request"
  9. "github.com/gogf/gf/os/gtime"
  10. )
  11. // DeliverOrder is the golang structure for table deliver_order.
  12. type DeliverOrder internal.DeliverOrder
  13. // Fill with you ideas below.
  14. type DeliverOrderGetRsp struct {
  15. DeliverOrder
  16. SaleId int `json:"saleId"`
  17. Plan []*DeliverOrderImpPlan `json:"plan"`
  18. Product []*DeliverOrderProduct `json:"product"`
  19. ProgressProducts []*DeliverProgressProduct `json:"progressProducts"`
  20. Number int `json:"number"` // 发货单数量
  21. }
  22. type DeliverOrderInfo struct {
  23. DeliverOrder
  24. Products string `json:"products"`
  25. SaleId int `json:"saleId"`
  26. }
  27. type DeliverOrderListReq struct {
  28. request.PageReq
  29. OrderCode string `json:"orderCode"` // 交付订单号
  30. OrderStatus string `json:"orderStatus"` // 交付状态(10项目立项 )
  31. OrderType string `json:"orderType"` // 交付类型(10 软件 20 硬件)
  32. CustId int `json:"custId"` // 关联客户ID
  33. CustName string `json:"custName"` // 关联客户名称
  34. ProjectId int `json:"projectId"` // 关联项目ID
  35. ProjectName string `json:"projectName"` // 关联项目名称
  36. ContractId int `json:"contractId"` // 关联合同ID
  37. ContractCode string `json:"contractCode"` // 关联合同编号
  38. ProjectManId int `json:"projectManId"` // 项目经理
  39. ProjectManName string `json:"projectManName"` // 项目经理
  40. DeliverManId int `json:"deliverManId"` // 交付经理
  41. DeliverManName string `json:"deliverManName"` // 交付经理
  42. Product string `json:"product"` // 产品线
  43. }
  44. type DeliverOrderAddReq struct {
  45. OrderTypeCode string `json:"orderTypeCode"`
  46. ContractId int `json:"contractId" v:"required#请输入合同ID"` // 关联合同ID
  47. FormData []DingTalkFormItemData `json:"formData" v:"required#表单数据不能为空"` // 表单数据
  48. }
  49. type DeliverOrderUpdateReq struct {
  50. Id int `json:"id" v:"required#请输入Id"`
  51. OrderStatus string `json:"orderStatus"` // 交付状态(10项目立项 )
  52. ProjectManId int `json:"projectManId"` // 项目经理
  53. ProjectManName string `json:"projectManName"` // 项目经理
  54. DeliverManId int `json:"deliverManId"` // 交付经理
  55. DeliverManName string `json:"deliverManName"` // 交付经理
  56. }
  57. type DeliverOrderFinishReq struct {
  58. OrderId int `json:"orderId" v:"min:1#工单不能为空"` //
  59. FinishRemark string `json:"finishRemark"` // 完成信息
  60. }
  61. // StartReq 启动
  62. type StartReq struct {
  63. OrderId int `json:"orderId" v:"min:1#工单不能为空"` //
  64. RequiredDeliveryTime *gtime.Time `json:"requiredDeliveryTime"` // 要求发货时间
  65. ReceivingInfo string `json:"receivingInfo"` // 收货信息
  66. SpecialRequirements string `json:"specialRequirements"` // 特殊要求说明
  67. }
  68. type ProductInfo struct {
  69. ProductLine string
  70. Products []*contractmodel.CtrContractProduct
  71. Remark string
  72. }
  73. type HardwareReq struct {
  74. Name string `json:"name"`
  75. }