# @host = 192.168.110.131:8888 @host = 192.168.110.131:18088 ### # 查询本地queenter库材质球组信息 # 不存在时则创建 POST http://{{host}}/boxcost/diffUpdatePlanTest HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw { } ### # 工艺单日志记录测试 # 测试数据表(collection): bill-produce_copy1 POST http://{{host}}/boxcost/diffUpdateProduceTest HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw { } ### # 下载报表查询的单据 # POST http://{{host}}/boxcost/report/bills/download HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjQ4MzcxOTksImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyNDIzMjM5OSwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.OazxgziCO8I1GlQ5EyvK6-IfyR9pEJkWAY1gocRhXlY { } // CollectionMaterial = "material" // CollectionCraft = "craft" // CollectionProduct = "product" // CollectionSupplier = "supplier" // CollectionSupplierPrice = "supplier-price" // CollectionPack = "pack" // CollectionProductPlan = "product-plan" // 计划 // CollectionBillPurchase = "bill-purchase" // 材料采购单 // CollectionBillProduce = "bill-produce" // 工艺采购单 // CollectionBillProduct = "bill-product" // 成品采购单 // CollectionSupplierMatprice = "supplier-mats" // CollectionSupplierCraftprice = "supplier-crafts" // CollectionSupplierProductprice = "supplier-product" // 成品采购 // CollectionIncrement = "increment" // CollectionSignature = "signature" // CollectionUsers = "users" // // 更改日志记录 // CollectionLogs = "logs" // CollectionRequestLogs = "request-logs" // CollectionPlanTrack = "plan-track" ### # 打印更改差异 GET http://{{host}}/boxcost/printDiff?query={"targetId":"63f31e901031634bc6eeb8d4","collection":"test"} HTTP/1.1 Content-Type: application/json ### # 打印更改差异 GET http://{{host}}/boxcost/logs/list?query={"targetId":"64aa52935cca777202101884","collection":"product-plan_copy1"} HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw ### # 追踪详情 GET http://{{host}}/boxcost/planTrack/detail/66a773f9e6e5177313cc50c5 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw ### # 打印更改差异 # POST http://{{host}}/boxcost/units/update HTTP/1.1 # Content-Type: application/json # Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjE4NzE1MDgsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMTI2NjcwOCwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.oBKvW_adQUfzc5yuH_0dfHdsU559SmtfEq9UWQGJkfQ # { # "_id": "646cb8e1cfd68ee5e9433614", # "name": "平方厘米1" # } ### # 下载计划追踪表 POST http://{{host}}/boxcost/download/plan/track HTTP/1.1 Content-Type: application/json { "ids": [ "6648181a23830800fd7751fd" ] } # { # "ids": [ # "6648181a23830800fd7751fd", # "664968ac23830800fd775203", # "66498b5423830800fd775205", # "6649535e23830800fd7751ff", # "664989d823830800fd775204", # "6649a02b23830800fd775216", # "6649980723830800fd77520f", # "66499a3423830800fd775211", # "66499e2b23830800fd775215", # "665dbdd623830800fd775416", # "66499ae023830800fd775212", # "6649990123830800fd775210", # "66499c1d23830800fd775213", # "66499cfd23830800fd775214" # ] # }