feat: 完成多模块迭代更新

- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
SunYF
2026-09-15 16:37:39 +08:00
parent 951f3dfecd
commit 4a5e2d7bac
494 changed files with 24702 additions and 139223 deletions
@@ -35,6 +35,12 @@ const (
FieldInspectionNo = "inspection_no"
// FieldReportNo holds the string denoting the report_no field in the database.
FieldReportNo = "report_no"
// FieldDisposalType holds the string denoting the disposal_type field in the database.
FieldDisposalType = "disposal_type"
// FieldDisposalRemark holds the string denoting the disposal_remark field in the database.
FieldDisposalRemark = "disposal_remark"
// FieldReturnTrackingNo holds the string denoting the return_tracking_no field in the database.
FieldReturnTrackingNo = "return_tracking_no"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// FieldCreatedAt holds the string denoting the created_at field in the database.
@@ -60,6 +66,9 @@ var Columns = []string{
FieldInspector,
FieldInspectionNo,
FieldReportNo,
FieldDisposalType,
FieldDisposalRemark,
FieldReturnTrackingNo,
FieldRemark,
FieldCreatedAt,
FieldUpdatedAt,
@@ -84,6 +93,8 @@ var (
DefaultInspectQty int
// DefaultPassQty holds the default value on creation for the "pass_qty" field.
DefaultPassQty 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.
DefaultCreatedAt func() int64
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
@@ -158,6 +169,21 @@ func ByReportNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldReportNo, opts...).ToFunc()
}
// ByDisposalType orders the results by the disposal_type field.
func ByDisposalType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDisposalType, opts...).ToFunc()
}
// ByDisposalRemark orders the results by the disposal_remark field.
func ByDisposalRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDisposalRemark, opts...).ToFunc()
}
// ByReturnTrackingNo orders the results by the return_tracking_no field.
func ByReturnTrackingNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldReturnTrackingNo, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()
+230
View File
@@ -113,6 +113,21 @@ func ReportNo(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldReportNo, v))
}
// DisposalType applies equality check predicate on the "disposal_type" field. It's identical to DisposalTypeEQ.
func DisposalType(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
}
// DisposalRemark applies equality check predicate on the "disposal_remark" field. It's identical to DisposalRemarkEQ.
func DisposalRemark(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
}
// ReturnTrackingNo applies equality check predicate on the "return_tracking_no" field. It's identical to ReturnTrackingNoEQ.
func ReturnTrackingNo(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldReturnTrackingNo, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))
@@ -908,6 +923,221 @@ func ReportNoContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldReportNo, v))
}
// DisposalTypeEQ applies the EQ predicate on the "disposal_type" field.
func DisposalTypeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
}
// DisposalTypeNEQ applies the NEQ predicate on the "disposal_type" field.
func DisposalTypeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalType, v))
}
// DisposalTypeIn applies the In predicate on the "disposal_type" field.
func DisposalTypeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalType, vs...))
}
// DisposalTypeNotIn applies the NotIn predicate on the "disposal_type" field.
func DisposalTypeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalType, vs...))
}
// DisposalTypeGT applies the GT predicate on the "disposal_type" field.
func DisposalTypeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalType, v))
}
// DisposalTypeGTE applies the GTE predicate on the "disposal_type" field.
func DisposalTypeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalType, v))
}
// DisposalTypeLT applies the LT predicate on the "disposal_type" field.
func DisposalTypeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalType, v))
}
// DisposalTypeLTE applies the LTE predicate on the "disposal_type" field.
func DisposalTypeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalType, v))
}
// DisposalTypeContains applies the Contains predicate on the "disposal_type" field.
func DisposalTypeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalType, v))
}
// DisposalTypeHasPrefix applies the HasPrefix predicate on the "disposal_type" field.
func DisposalTypeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalType, v))
}
// DisposalTypeHasSuffix applies the HasSuffix predicate on the "disposal_type" field.
func DisposalTypeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalType, v))
}
// DisposalTypeEqualFold applies the EqualFold predicate on the "disposal_type" field.
func DisposalTypeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalType, v))
}
// DisposalTypeContainsFold applies the ContainsFold predicate on the "disposal_type" field.
func DisposalTypeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalType, v))
}
// DisposalRemarkEQ applies the EQ predicate on the "disposal_remark" field.
func DisposalRemarkEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
}
// DisposalRemarkNEQ applies the NEQ predicate on the "disposal_remark" field.
func DisposalRemarkNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalRemark, v))
}
// DisposalRemarkIn applies the In predicate on the "disposal_remark" field.
func DisposalRemarkIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalRemark, vs...))
}
// DisposalRemarkNotIn applies the NotIn predicate on the "disposal_remark" field.
func DisposalRemarkNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalRemark, vs...))
}
// DisposalRemarkGT applies the GT predicate on the "disposal_remark" field.
func DisposalRemarkGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalRemark, v))
}
// DisposalRemarkGTE applies the GTE predicate on the "disposal_remark" field.
func DisposalRemarkGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalRemark, v))
}
// DisposalRemarkLT applies the LT predicate on the "disposal_remark" field.
func DisposalRemarkLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalRemark, v))
}
// DisposalRemarkLTE applies the LTE predicate on the "disposal_remark" field.
func DisposalRemarkLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalRemark, v))
}
// DisposalRemarkContains applies the Contains predicate on the "disposal_remark" field.
func DisposalRemarkContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalRemark, v))
}
// DisposalRemarkHasPrefix applies the HasPrefix predicate on the "disposal_remark" field.
func DisposalRemarkHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalRemark, v))
}
// DisposalRemarkHasSuffix applies the HasSuffix predicate on the "disposal_remark" field.
func DisposalRemarkHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalRemark, v))
}
// DisposalRemarkIsNil applies the IsNil predicate on the "disposal_remark" field.
func DisposalRemarkIsNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIsNull(FieldDisposalRemark))
}
// DisposalRemarkNotNil applies the NotNil predicate on the "disposal_remark" field.
func DisposalRemarkNotNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotNull(FieldDisposalRemark))
}
// DisposalRemarkEqualFold applies the EqualFold predicate on the "disposal_remark" field.
func DisposalRemarkEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalRemark, v))
}
// DisposalRemarkContainsFold applies the ContainsFold predicate on the "disposal_remark" field.
func DisposalRemarkContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalRemark, v))
}
// ReturnTrackingNoEQ applies the EQ predicate on the "return_tracking_no" field.
func ReturnTrackingNoEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoNEQ applies the NEQ predicate on the "return_tracking_no" field.
func ReturnTrackingNoNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoIn applies the In predicate on the "return_tracking_no" field.
func ReturnTrackingNoIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldReturnTrackingNo, vs...))
}
// ReturnTrackingNoNotIn applies the NotIn predicate on the "return_tracking_no" field.
func ReturnTrackingNoNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldReturnTrackingNo, vs...))
}
// ReturnTrackingNoGT applies the GT predicate on the "return_tracking_no" field.
func ReturnTrackingNoGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoGTE applies the GTE predicate on the "return_tracking_no" field.
func ReturnTrackingNoGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoLT applies the LT predicate on the "return_tracking_no" field.
func ReturnTrackingNoLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoLTE applies the LTE predicate on the "return_tracking_no" field.
func ReturnTrackingNoLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoContains applies the Contains predicate on the "return_tracking_no" field.
func ReturnTrackingNoContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoHasPrefix applies the HasPrefix predicate on the "return_tracking_no" field.
func ReturnTrackingNoHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoHasSuffix applies the HasSuffix predicate on the "return_tracking_no" field.
func ReturnTrackingNoHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoIsNil applies the IsNil predicate on the "return_tracking_no" field.
func ReturnTrackingNoIsNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIsNull(FieldReturnTrackingNo))
}
// ReturnTrackingNoNotNil applies the NotNil predicate on the "return_tracking_no" field.
func ReturnTrackingNoNotNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotNull(FieldReturnTrackingNo))
}
// ReturnTrackingNoEqualFold applies the EqualFold predicate on the "return_tracking_no" field.
func ReturnTrackingNoEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldReturnTrackingNo, v))
}
// ReturnTrackingNoContainsFold applies the ContainsFold predicate on the "return_tracking_no" field.
func ReturnTrackingNoContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldReturnTrackingNo, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))