liujiandao
2024-04-18 43c71d8c5f0f65f919a8600b411ebb614097549b
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 constvar
 
type DictType int
 
const (
    DictTypeMarket   DictType = iota //庄口
    DictTypeWorkshop                 //车间
    DictTypeColor                    //颜色
    DictTypeSpec                     //规格
)
 
type UserType int
 
const (
    UserTypeSuper   UserType = iota + 1 // 超级管理员
    UserTypePrimary                     // 主账户
    UserTypeSub                         // 子账户
)
 
type CarFlag int
 
const (
    LeftHalfCar  CarFlag = iota + 1 //左半车
    RightHalfCar                    //右半车
    AllCar                          //全车结束
)
 
type CheckItem int
 
const (
    CheckItemDeviation    CheckItem = iota + 1 //纤度偏差
    CheckItemTwiceChange                       //二次变化
    CheckItemCleanliness                       //清洁分
    CheckItemPurity                            //洁净分
    CheckItemMaxDeviation                      //最大偏差
)
 
type BadFinenessGrade string
 
const (
    BadFinenessGradeA = "badA"
    BadFinenessGradeB = "badB"
    BadFinenessGradeC = "badC"
)
 
const (
    EveryPersonCarCheckNumber = 2 //每人每车抽检份数
)
 
// WorkerStatus 人员状态
type WorkerStatus int
 
const (
    WorkerStatusWorking  WorkerStatus = iota + 1 // 在班
    WorkerStatusRest                             // 休息
    WorkerStatusHoliday                          // 请假
    WorkerStatusOvertime                         // 加班
)
 
// MiniDictType 迷你字典类型
type MiniDictType int
 
const (
    MiniDictTypePlcBrand           MiniDictType = iota + 1 // PLC品牌
    MiniDictTypeBomVersionType                             // Bom版本类型
    EarlyWarningDay                                        //预警天数
    InspectionWayType                                      //质检方式类型
    OutsourcingSupplierType                                //委外供应商类型
    OutsourcingSupplierCreditGrade                         //信用等级
    OutsourcingSupplierRange                               //供货范围
    SalaryType                                             //嘉联薪资类型
)