proof.go 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package http
  2. type ProofReq struct {
  3. Dest `json:"DEST"`
  4. Data ProofReqData `json:"DATA"`
  5. }
  6. type ProofReqData struct {
  7. CreateTime string `json:"BLDAT"` //业务日期
  8. PostDate string `json:"BUDAT"` //过账日期
  9. EqNumber string `json:"FRBNR"` //设备管理平台单号(入库、退货、领用、退库)
  10. Detail []ProofDetail `json:"MSEG"`
  11. }
  12. type ProofDetail struct {
  13. RowNumber string `json:"ZEILE"` //行号,入库单行号
  14. Code string `json:"MATNR"` //物料编码
  15. Factory string `json:"WERKS"` //工厂
  16. Location string `json:"LGORT"` //库存地点
  17. Quantity string `json:"MENGE"` //数量
  18. Unit string `json:"MEINS"` //单位
  19. OrderNumber string `json:"EBELN"` //采购订单号,※仅采购入库业务传输,SAP的采购订单号
  20. OrderRowNum string `json:"EBPLP"` //采购订单行项目号,※仅采购入库业务传输,SAP的采购订单行项目号
  21. MoveType string `json:"BWART"` //出入库类型 ,"采购入库:101// 退货:161// 领用:201// 退库:202(字典)// 报废:Z19 青贮:Z69"
  22. SaveType string `json:"SOBKZ"` //库存类型 特殊库存标识 "自有:空// 寄售:'K' " ,寄售表示零库存,1
  23. CostCenter string `json:"KOSTL"` //成本中心,※仅领用、退库时,输入,编码
  24. AssetCode string `json:"ANLN1"` //资产,※仅领用、退库时,财务资产码
  25. AssetSon string `json:"ANLN2"` //资产子项
  26. Provider string `json:"LIFNR"` //供应商编码,仅寄售入库业务时,输入
  27. EXT01 string `json:"EXT01"` //科目
  28. AUFNR string `json:"AUFNR"` //订单编号
  29. }
  30. type ProofResp struct {
  31. Dest Dest `json:"DEST"`
  32. Data ProofRespData `json:"DATA"`
  33. }
  34. type ProofRespData struct {
  35. Status string `json:"MSGTY"`
  36. MsgText string `json:"MSGTX"`
  37. EqNumber string `json:"EXT01"`
  38. SapNumber string `json:"EXT02"`
  39. Ext03 string `json:"EXT03"`
  40. }
  41. type BigPartRefundReq struct {
  42. PastureID int `json:"pastureId"`
  43. ProviderID int `json:"providerId"`
  44. UseForm string `json:"useForm"`
  45. EmployeID int `json:"employeId"`
  46. CreateTime string `json:"createTime"`
  47. Note string `json:"note"`
  48. }
  49. type ProofPartReq struct {
  50. ID int `json:"id"`
  51. PastureID int `json:"pastureId"`
  52. ProviderID int `json:"providerId"`
  53. DepartmentID int `json:"departmentId"`
  54. EmpID int `json:"empId"`
  55. EmployeID int `json:"employeId"`
  56. Note string `json:"note"`
  57. ApplicatID int `json:"applicatId"`
  58. LaidType int `json:"laidType"` //入库类型
  59. UseType int `json:"useType"` //出库类型
  60. LaidCode string `json:"laidCode"` // 入库单号
  61. PurchaseID string `json:"purchaseId"` // 入库单采购单号
  62. BuyCode string `json:"No1Id"` // 入库单采购订单号
  63. UseForm string `json:"useForm"` // 出库单号,退库单号,退货单号
  64. OddCode string `json:"oddCode"` // 领用单号
  65. StorageTime string `json:"storageTime"` // 入库时间
  66. CreateTime string `json:"createTime"` // 退货时间
  67. ReceiveTime string `json:"receiveTime"` // 出库时间
  68. QuitDate string `json:"quitDate"` // 退库时间
  69. PartCode string
  70. SapNumber string `json:"sapNumber"`
  71. GreenFodderNumber string `json:"greenFodderNumber"`
  72. }
  73. func (p *ProofPartReq) Validate() bool {
  74. return true
  75. }