| | |
| | | CodeStandardType_PurchaseOrder CodeStandardType = "采购单编码" |
| | | CodeStandardType_Supplier CodeStandardType = "供应商编码" |
| | | ) |
| | | |
| | | type RecordStatus int //状态 0 新建 1 启用 2停用 |
| | | |
| | | const ( |
| | | RecordStatusCreate RecordStatus = iota // 新建 |
| | | RecordStatusActive // 启用 |
| | | RecordStatusInactive // 停用 |
| | | ) |
| | | |
| | | type OutsourcingOrderStatus int |
| | | |
| | | // 管理端 待生产 领料审核拒绝都显示已分配委外商 |
| | | const ( |
| | | OutsourcingOrderStatusCreate OutsourcingOrderStatus = iota // 新建待分配委外商 |
| | | OutsourcingOrderStatusAssigned // 已分配委外商 |
| | | OutsourcingOrderStatusWaitProduce // 待生产 |
| | | OutsourcingOrderStatusMaterialApplying // 物料申请中/待领料审核 |
| | | OutsourcingOrderStatusMaterialExamineRefused // 领料审核拒绝 |
| | | OutsourcingOrderStatusProducing // 生产中 |
| | | OutsourcingOrderStatusFinish // 生产完成 |
| | | OutsourcingOrderStatusDeliveryFinish // 发货完成 |
| | | OutsourcingOrderStatusReceiveFinish // 收货完成 |
| | | OutsourcingOrderStatusClose //关闭 |
| | | ) |
| | | |
| | | // BoolType 布尔类型 |
| | | type BoolType int |
| | | |
| | | const ( |
| | | BoolTypeTrue BoolType = 1 // true |
| | | BoolTypeFalse BoolType = 2 // false |
| | | ) |
| | | |
| | | // MiniDictType 迷你字典类型 |
| | | type MiniDictType int |
| | | |
| | | const ( |
| | | MiniDictTypePlcBrand MiniDictType = iota + 1 // PLC品牌 |
| | | MiniDictTypeBomVersionType // Bom版本类型 |
| | | EarlyWarningDay //预警天数 |
| | | InspectionWayType //质检方式类型 |
| | | OutsourcingSupplierType //委外供应商类型 |
| | | OutsourcingSupplierCreditGrade //信用等级 |
| | | OutsourcingSupplierRange //供货范围 |
| | | ) |
| | | |
| | | func (t MiniDictType) Valid() bool { |
| | | if t <= 0 { |
| | | return false |
| | | } |
| | | return true |
| | | } |