deliver_order.go 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. Status string `json:"status"` // 交付状态(0发起 10项目立项 15进行中 20完成 30审批拒绝 40关闭)
  44. }
  45. type DeliverOrderAddReq struct {
  46. OrderTypeCode string `json:"orderTypeCode"`
  47. ContractId int `json:"contractId" v:"required#请输入合同ID"` // 关联合同ID
  48. FormData []DingTalkFormItemData `json:"formData" v:"required#表单数据不能为空"` // 表单数据
  49. }
  50. type DeliverOrderUpdateReq struct {
  51. Id int `json:"id" v:"required#请输入Id"`
  52. OrderStatus string `json:"orderStatus"` // 交付状态(10项目立项 )
  53. ProjectManId int `json:"projectManId"` // 项目经理
  54. ProjectManName string `json:"projectManName"` // 项目经理
  55. DeliverManId int `json:"deliverManId"` // 交付经理
  56. DeliverManName string `json:"deliverManName"` // 交付经理
  57. }
  58. type DeliverOrderFinishReq struct {
  59. OrderId int `json:"orderId" v:"min:1#工单不能为空"` //
  60. FinishRemark string `json:"finishRemark"` // 完成信息
  61. }
  62. // StartReq 启动
  63. type StartReq struct {
  64. OrderId int `json:"orderId" v:"min:1#工单不能为空"` //
  65. RequiredDeliveryTime *gtime.Time `json:"requiredDeliveryTime"` // 要求发货时间
  66. ReceivingInfo string `json:"receivingInfo"` // 收货信息
  67. SpecialRequirements string `json:"specialRequirements"` // 特殊要求说明
  68. }
  69. type ProductInfo struct {
  70. ProductLine string
  71. Products []*contractmodel.CtrContractProduct
  72. Remark string
  73. }
  74. type HardwareReq struct {
  75. Name string `json:"name"`
  76. }