feat: 新增工序签字功能,移除移料指令模块

新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
SunYF
2026-10-05 20:15:38 +08:00
parent c33acab9c8
commit f1cf57e9b2
181 changed files with 9785 additions and 9699 deletions
@@ -39,6 +39,10 @@ const (
FieldInspectQty = "inspect_qty"
// FieldPassQty holds the string denoting the pass_qty field in the database.
FieldPassQty = "pass_qty"
// FieldBatchSeq holds the string denoting the batch_seq field in the database.
FieldBatchSeq = "batch_seq"
// FieldBatchTotal holds the string denoting the batch_total field in the database.
FieldBatchTotal = "batch_total"
// 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.
@@ -82,6 +86,8 @@ var Columns = []string{
FieldResultValue,
FieldInspectQty,
FieldPassQty,
FieldBatchSeq,
FieldBatchTotal,
FieldRejectQty,
FieldCheckDesc,
FieldInspector,
@@ -114,6 +120,10 @@ var (
DefaultInspectQty int
// DefaultPassQty holds the default value on creation for the "pass_qty" field.
DefaultPassQty int
// DefaultBatchSeq holds the default value on creation for the "batch_seq" field.
DefaultBatchSeq int
// DefaultBatchTotal holds the default value on creation for the "batch_total" field.
DefaultBatchTotal 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.
@@ -202,6 +212,16 @@ func ByPassQty(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPassQty, opts...).ToFunc()
}
// ByBatchSeq orders the results by the batch_seq field.
func ByBatchSeq(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBatchSeq, opts...).ToFunc()
}
// ByBatchTotal orders the results by the batch_total field.
func ByBatchTotal(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBatchTotal, opts...).ToFunc()
}
// ByRejectQty orders the results by the reject_qty field.
func ByRejectQty(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRejectQty, opts...).ToFunc()
@@ -123,6 +123,16 @@ func PassQty(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldPassQty, v))
}
// BatchSeq applies equality check predicate on the "batch_seq" field. It's identical to BatchSeqEQ.
func BatchSeq(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldBatchSeq, v))
}
// BatchTotal applies equality check predicate on the "batch_total" field. It's identical to BatchTotalEQ.
func BatchTotal(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldBatchTotal, 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))
@@ -1108,6 +1118,86 @@ func PassQtyLTE(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldPassQty, v))
}
// BatchSeqEQ applies the EQ predicate on the "batch_seq" field.
func BatchSeqEQ(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldBatchSeq, v))
}
// BatchSeqNEQ applies the NEQ predicate on the "batch_seq" field.
func BatchSeqNEQ(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldBatchSeq, v))
}
// BatchSeqIn applies the In predicate on the "batch_seq" field.
func BatchSeqIn(vs ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldBatchSeq, vs...))
}
// BatchSeqNotIn applies the NotIn predicate on the "batch_seq" field.
func BatchSeqNotIn(vs ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldBatchSeq, vs...))
}
// BatchSeqGT applies the GT predicate on the "batch_seq" field.
func BatchSeqGT(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldBatchSeq, v))
}
// BatchSeqGTE applies the GTE predicate on the "batch_seq" field.
func BatchSeqGTE(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldBatchSeq, v))
}
// BatchSeqLT applies the LT predicate on the "batch_seq" field.
func BatchSeqLT(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldBatchSeq, v))
}
// BatchSeqLTE applies the LTE predicate on the "batch_seq" field.
func BatchSeqLTE(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldBatchSeq, v))
}
// BatchTotalEQ applies the EQ predicate on the "batch_total" field.
func BatchTotalEQ(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldBatchTotal, v))
}
// BatchTotalNEQ applies the NEQ predicate on the "batch_total" field.
func BatchTotalNEQ(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldBatchTotal, v))
}
// BatchTotalIn applies the In predicate on the "batch_total" field.
func BatchTotalIn(vs ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldBatchTotal, vs...))
}
// BatchTotalNotIn applies the NotIn predicate on the "batch_total" field.
func BatchTotalNotIn(vs ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldBatchTotal, vs...))
}
// BatchTotalGT applies the GT predicate on the "batch_total" field.
func BatchTotalGT(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldBatchTotal, v))
}
// BatchTotalGTE applies the GTE predicate on the "batch_total" field.
func BatchTotalGTE(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldBatchTotal, v))
}
// BatchTotalLT applies the LT predicate on the "batch_total" field.
func BatchTotalLT(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldBatchTotal, v))
}
// BatchTotalLTE applies the LTE predicate on the "batch_total" field.
func BatchTotalLTE(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldBatchTotal, v))
}
// RejectQtyEQ applies the EQ predicate on the "reject_qty" field.
func RejectQtyEQ(v int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldRejectQty, v))