feat(production): 新增排产支撑功能并移除手动报工页面
- 在main.go中更新排产物料需求注释说明,明确WMS与MES系统间交互方式 - 从前端help.js中移除手动报工(helpScan)相关帮助文档 - 更新工艺流程、绩效报表等页面帮助文档中的报工流程说明 - 在主布局中添加排产支撑菜单项并移除手动报工菜单项 - 新增ProducibleSupport.vue组件实现排产支撑页面功能 - 移除Scan.vue手动报工页面组件 - 更新相关帮助文档内容以匹配新的业务流程
This commit is contained in:
@@ -37,6 +37,8 @@ const (
|
||||
FieldInspectQty = "inspect_qty"
|
||||
// FieldPassQty holds the string denoting the pass_qty field in the database.
|
||||
FieldPassQty = "pass_qty"
|
||||
// FieldRejectQty holds the string denoting the reject_qty field in the database.
|
||||
FieldRejectQty = "reject_qty"
|
||||
// FieldCheckDesc holds the string denoting the check_desc field in the database.
|
||||
FieldCheckDesc = "check_desc"
|
||||
// FieldInspector holds the string denoting the inspector field in the database.
|
||||
@@ -77,6 +79,7 @@ var Columns = []string{
|
||||
FieldResultValue,
|
||||
FieldInspectQty,
|
||||
FieldPassQty,
|
||||
FieldRejectQty,
|
||||
FieldCheckDesc,
|
||||
FieldInspector,
|
||||
FieldInspectionNo,
|
||||
@@ -108,6 +111,8 @@ var (
|
||||
DefaultInspectQty int
|
||||
// DefaultPassQty holds the default value on creation for the "pass_qty" field.
|
||||
DefaultPassQty int
|
||||
// DefaultRejectQty holds the default value on creation for the "reject_qty" field.
|
||||
DefaultRejectQty int
|
||||
// DefaultDisposalType holds the default value on creation for the "disposal_type" field.
|
||||
DefaultDisposalType string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
@@ -189,6 +194,11 @@ func ByPassQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPassQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRejectQty orders the results by the reject_qty field.
|
||||
func ByRejectQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRejectQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCheckDesc orders the results by the check_desc field.
|
||||
func ByCheckDesc(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCheckDesc, opts...).ToFunc()
|
||||
|
||||
@@ -118,6 +118,11 @@ func PassQty(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldPassQty, v))
|
||||
}
|
||||
|
||||
// RejectQty applies equality check predicate on the "reject_qty" field. It's identical to RejectQtyEQ.
|
||||
func RejectQty(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// CheckDesc applies equality check predicate on the "check_desc" field. It's identical to CheckDescEQ.
|
||||
func CheckDesc(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldCheckDesc, v))
|
||||
@@ -1023,6 +1028,46 @@ func PassQtyLTE(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldPassQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyEQ applies the EQ predicate on the "reject_qty" field.
|
||||
func RejectQtyEQ(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyNEQ applies the NEQ predicate on the "reject_qty" field.
|
||||
func RejectQtyNEQ(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNEQ(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyIn applies the In predicate on the "reject_qty" field.
|
||||
func RejectQtyIn(vs ...int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIn(FieldRejectQty, vs...))
|
||||
}
|
||||
|
||||
// RejectQtyNotIn applies the NotIn predicate on the "reject_qty" field.
|
||||
func RejectQtyNotIn(vs ...int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotIn(FieldRejectQty, vs...))
|
||||
}
|
||||
|
||||
// RejectQtyGT applies the GT predicate on the "reject_qty" field.
|
||||
func RejectQtyGT(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGT(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyGTE applies the GTE predicate on the "reject_qty" field.
|
||||
func RejectQtyGTE(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGTE(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyLT applies the LT predicate on the "reject_qty" field.
|
||||
func RejectQtyLT(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLT(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// RejectQtyLTE applies the LTE predicate on the "reject_qty" field.
|
||||
func RejectQtyLTE(v int) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldRejectQty, v))
|
||||
}
|
||||
|
||||
// CheckDescEQ applies the EQ predicate on the "check_desc" field.
|
||||
func CheckDescEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldCheckDesc, v))
|
||||
|
||||
Reference in New Issue
Block a user