aadiffupdatetest.http 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # @host = 192.168.110.131:8888
  2. @host = 192.168.110.131:18088
  3. ###
  4. # 查询本地queenter库材质球组信息
  5. # 不存在时则创建
  6. POST http://{{host}}/boxcost/diffUpdatePlanTest HTTP/1.1
  7. Content-Type: application/json
  8. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  9. {
  10. }
  11. ###
  12. # 工艺单日志记录测试
  13. # 测试数据表(collection): bill-produce_copy1
  14. POST http://{{host}}/boxcost/diffUpdateProduceTest HTTP/1.1
  15. Content-Type: application/json
  16. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  17. {
  18. }
  19. ###
  20. # 下载报表查询的单据
  21. #
  22. POST http://{{host}}/boxcost/report/bills/download HTTP/1.1
  23. Content-Type: application/json
  24. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjQ4MzcxOTksImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyNDIzMjM5OSwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.OazxgziCO8I1GlQ5EyvK6-IfyR9pEJkWAY1gocRhXlY
  25. {
  26. }
  27. // CollectionMaterial = "material"
  28. // CollectionCraft = "craft"
  29. // CollectionProduct = "product"
  30. // CollectionSupplier = "supplier"
  31. // CollectionSupplierPrice = "supplier-price"
  32. // CollectionPack = "pack"
  33. // CollectionProductPlan = "product-plan" // 计划
  34. // CollectionBillPurchase = "bill-purchase" // 材料采购单
  35. // CollectionBillProduce = "bill-produce" // 工艺采购单
  36. // CollectionBillProduct = "bill-product" // 成品采购单
  37. // CollectionSupplierMatprice = "supplier-mats"
  38. // CollectionSupplierCraftprice = "supplier-crafts"
  39. // CollectionSupplierProductprice = "supplier-product" // 成品采购
  40. // CollectionIncrement = "increment"
  41. // CollectionSignature = "signature"
  42. // CollectionUsers = "users"
  43. // // 更改日志记录
  44. // CollectionLogs = "logs"
  45. // CollectionRequestLogs = "request-logs"
  46. // CollectionPlanTrack = "plan-track"
  47. ###
  48. # 打印更改差异
  49. GET http://{{host}}/boxcost/printDiff?query={"targetId":"63f31e901031634bc6eeb8d4","collection":"test"} HTTP/1.1
  50. Content-Type: application/json
  51. ###
  52. # 打印更改差异
  53. GET http://{{host}}/boxcost/logs/list?query={"targetId":"64aa52935cca777202101884","collection":"product-plan_copy1"} HTTP/1.1
  54. Content-Type: application/json
  55. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  56. ###
  57. # 追踪详情
  58. GET http://{{host}}/boxcost/planTrack/detail/66a773f9e6e5177313cc50c5 HTTP/1.1
  59. Content-Type: application/json
  60. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  61. ###
  62. # 打印更改差异
  63. # POST http://{{host}}/boxcost/units/update HTTP/1.1
  64. # Content-Type: application/json
  65. # Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjE4NzE1MDgsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMTI2NjcwOCwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.oBKvW_adQUfzc5yuH_0dfHdsU559SmtfEq9UWQGJkfQ
  66. # {
  67. # "_id": "646cb8e1cfd68ee5e9433614",
  68. # "name": "平方厘米1"
  69. # }
  70. ###
  71. # 下载计划追踪表
  72. POST http://{{host}}/boxcost/download/plan/track HTTP/1.1
  73. Content-Type: application/json
  74. {
  75. "ids": [
  76. "6648181a23830800fd7751fd"
  77. ]
  78. }
  79. # {
  80. # "ids": [
  81. # "6648181a23830800fd7751fd",
  82. # "664968ac23830800fd775203",
  83. # "66498b5423830800fd775205",
  84. # "6649535e23830800fd7751ff",
  85. # "664989d823830800fd775204",
  86. # "6649a02b23830800fd775216",
  87. # "6649980723830800fd77520f",
  88. # "66499a3423830800fd775211",
  89. # "66499e2b23830800fd775215",
  90. # "665dbdd623830800fd775416",
  91. # "66499ae023830800fd775212",
  92. # "6649990123830800fd775210",
  93. # "66499c1d23830800fd775213",
  94. # "66499cfd23830800fd775214"
  95. # ]
  96. # }