web_manufacture_weigh_router.go
4.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/middleware"
)
func init() {
// 车间列表
web.Post("/v1/manufacture-weigh/workshops/selector", middleware.RedirectManufactureWeigh())
// 车间员工
web.Post("/v1/manufacture-weigh/product-groups/employees", middleware.RedirectManufactureWeigh())
// 生产批次列表
web.Post("/v1/manufacture-weigh/product-plans/search", middleware.RedirectManufactureWeigh())
// 物料列表
web.Post("/v1/manufacture-weigh/unit-conversions/materials", middleware.RedirectManufactureWeigh())
// 领料
web.Post("/v1/manufacture-weigh/product-plans/receive-material", middleware.RedirectManufactureWeigh())
// 退料
web.Post("/v1/manufacture-weigh/product-plans/return-material", middleware.RedirectManufactureWeigh())
// 提交二级品
web.Post("/v1/manufacture-weigh/product-plans/submit-product-record", middleware.RedirectManufactureWeigh())
// 车间员工
web.Post("/v1/manufacture-weigh/product-groups/employee-signing", middleware.RedirectManufactureWeigh())
// 生产记录撤回
web.Post("/v1/manufacture-weigh/product-records/cancel", middleware.RedirectManufactureWeigh())
// 历史记录
web.Post("/v1/manufacture-weigh/product-records/history", middleware.RedirectManufactureWeigh())
//请求数控数据
web.Post("/v1/manufacture-weigh/data/digitization", middleware.RedirectManufactureWeigh())
// 车间生产效率
web.Post("/v1/manufacture-weigh/statistics/workshop-production-efficiency-statistics", middleware.RedirectManufactureWeigh())
// 设备运行信息
web.Post("/v1/manufacture-weigh/statistics/device-running-info", middleware.RedirectManufactureWeigh())
// 设备生产效率
web.Post("/v1/manufacture-weigh/statistics/device-production-efficiency-statistics", middleware.RedirectManufactureWeigh())
web.Post("/v1/manufacture-weigh/statistics/internal/:actionType", middleware.RedirectManufactureWeigh())
//奖惩标准
web.Post("/v1/manufacture-weigh/reward-standard/search", middleware.RedirectManufactureWeigh())
//奖惩规则
web.Get("/v1/manufacture-weigh/reward-rule/", middleware.RedirectManufactureWeigh())
// 功过看板(员工)-日榜
web.Get("/v1/manufacture-weigh/reward-summary/public-notice/day", middleware.RedirectManufactureWeigh())
// 功过看板(员工)-产效
web.Get("/v1/manufacture-weigh/reward-summary/public-notice/yield", middleware.RedirectManufactureWeigh())
// 功过看板 (员工)-合格率
web.Get("/v1/manufacture-weigh/reward-summary/public-notice/up-to-standard", middleware.RedirectManufactureWeigh())
// 功过看板 (员工)-异常
web.Get("/v1/manufacture-weigh/reward-summary/public-notice/accident", middleware.RedirectManufactureWeigh())
// 功过看板 (员工)-月榜
web.Get("/v1/manufacture-weigh/reward-summary/public-notice/month", middleware.RedirectManufactureWeigh())
//车间看板(生产)
//车间描述
web.Get("/v1/manufacture-weigh/workshop-public-notice/workshop", middleware.RedirectManufactureWeigh())
//员工效率排名
web.Get("/v1/manufacture-weigh/workshop-public-notice/employee/workpiece-ratio", middleware.RedirectManufactureWeigh())
//时段产能
web.Get("/v1/manufacture-weigh/workshop-public-notice/section-product-info", middleware.RedirectManufactureWeigh())
//二级品占比
web.Get("/v1/manufacture-weigh/workshop-public-notice/proportion-of-second-level", middleware.RedirectManufactureWeigh())
//今日 昨日 历史最佳
web.Get("/v1/manufacture-weigh/workshop-public-notice/top-show", middleware.RedirectManufactureWeigh())
//计划批次
web.Get("/v1/manufacture-weigh/workshop-public-notice/product_plan", middleware.RedirectManufactureWeigh())
//计划达成率
web.Get("/v1/manufacture-weigh/workshop-public-notice/workshop-plan-completion/current", middleware.RedirectManufactureWeigh())
//近5天计划达成率
web.Get("/v1/manufacture-weigh/workshop-public-notice/workshop-plan-completion/5day", middleware.RedirectManufactureWeigh())
}