deliver_order.go 4.5 KB

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