作者 yangfu

制造项目初始化

正在显示 93 个修改的文件 包含 852 行增加0 行删除
version: v1
kind: Attribute
metadata:
name: breakTime
description: 休息时间 (单位 h)
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: calendarSelected
description: 日历选择
type:
array: string
... ...
version: v1
kind: Attribute
metadata:
name: inWorkAt
description: 上岗时间
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: outWorkAt
description: 下岗时间
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productCalendarId
description: 工厂日历ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: workTime
description: 工时 (单位 h)
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: productCalendaryId
description: 工厂日历ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: code
description: 编码
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: count
description: 匹配数目
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: createdAt
description: 创建时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: deletedAt
description: 删除时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: limit
description: 查询限制
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: msg
description: 应答消息
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: offLimit
description: 是否关闭查询限制 (true:关闭 limit false:开启limit 默认开启)
type:
primitive: boolean
... ...
version: v1
kind: Attribute
metadata:
name: offset
description: 查询偏离量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: pageNumber
description: 页号 从1开始
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: pageSize
description: 页数(默认20)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: updatedAt
description: 更新时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: workStation
description: 工作位置
type:
schema: workStation
... ...
version: v1
kind: Attribute
metadata:
name: companyId
description: 企业id
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: companyName
description: 企业名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: logo
description: 公司Logo地址
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: brand
description: 品牌
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: deviceCode
description: 设备编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: deviceId
description: 设备Id
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: deviceModel
description: 设备型号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: deviceName
description: 设备名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: deviceStatus
description: 设备状态 1:正常 2:封存 3:报废
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: deviceType
description: 设备类型
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: riskLevel
description: 风险等级 1:高 2:中 3:低
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: orgId
description: 组织ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: orgName
description: 组织名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productDate
description: 生产日期
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: productPlanId
description: 生产计划ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: category
description: 类别
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: groupLeader
description: 班组长
type:
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: groupMembers
description: 帮组成员列表
type:
array: user
... ...
version: v1
kind: Attribute
metadata:
name: groupName
description: 班组名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialCategory
description: 物料类别
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialName
description: 物料名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productCode
description: 产品编号 编码规则为“CP”+2 位年+2 位月+2 位日+3 位流水码,如 CP211229001
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productExt
description: 产品扩展(扩展的信息)
type:
schema: productExt
... ...
version: v1
kind: Attribute
metadata:
name: productGroupId
description: 生产小组ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productId
description: 产品ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productName
description: 产品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: spec
description: 规格
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: unitWeight
description: 单份重量(原材料)
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: workOn
description: 上班班次 1:全天 2:白班 4:中班 8:夜班
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: fromUnitQuantity
description: 转换前单位数量
type:
schema: unitQuantity
... ...
version: v1
kind: Attribute
metadata:
name: intelligentWeighingFlag
description: 智能称重标识
type:
primitive: boolean
... ...
version: v1
kind: Attribute
metadata:
name: material
description: material
type:
schema: material
... ...
version: v1
kind: Attribute
metadata:
name: quantity
description: 数量(保留两位小数)
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: toUnitQuantity
description: 转换后单位数量
type:
schema: unitQuantity
... ...
version: v1
kind: Attribute
metadata:
name: unit
description: 单位
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: unitConversionId
description: 单位换算ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: avatar
description: 头像
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: email
description: 邮箱
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: employeeType
description: 员工类型 1:固定 2:派遣 3.临时
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: icCardNumber
description: IC卡号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: phone
description: 手机号码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userId
description: 用户Id 用户唯一标识
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: userName
description: 用户姓名
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: userType
description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: jobId
description: 工位ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: jobName
description: 工位名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: lineId
description: 生产线ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: lineName
description: 生产线名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: principal
description: 负责人 (用户对象)
type:
: useschemar
... ...
version: v1
kind: Attribute
metadata:
name: process
description: 工序
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productJobId
description: 工位ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productionLine
description: 生产线
type:
schema: productionLine
... ...
version: v1
kind: Attribute
metadata:
name: sectionId
description: 工段ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: sectionName
description: 工段名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: workStationId
description: 工作位置键值 (车间ID+'.'+生产线ID+'.'+工段ID)
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: workshopId
description: 车间ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: workshopName
description: 车间名称
type:
primitive: string
... ...
version: v1
kind: Project
metadata:
name: project
description: 天联制造项目
version: 0.0.1
repository: gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture
contact:
name: tiptok
email:
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: company
description: 企业对象
attributes:
- ref: companyId
required: true
- ref: companyName
required: true
... ...
version: v1
kind: Schema
metadata:
name: device
description: 设备
attributes:
- ref: deviceId
required: true
- ref: deviceCode
required: true
- ref: deviceName
required: true
- ref: deviceModel
required: true
- ref: deviceType
required: true
- ref: brand
required: true
- ref: deviceStatus
required: true
- ref: riskLevel
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: workStation
description: 所属位置
type:
schema: workStation
... ...
version: v1
kind: Schema
metadata:
name: material
description: 物料
attributes:
- ref: materialName
required: true
- ref: materialCategory
required: true
... ...
version: v1
kind: Schema
metadata:
name: org
description: 组织机构
attributes:
- ref: orgId
required: true
- ref: orgName
required: true
... ...
version: v1
kind: Schema
metadata:
name: product
description: 产品信息
attributes:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: productId
required: true
- ref: productCode
required: true
- ref: productName
required: true
- ref: spec
required: true
- ref: productExt
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: productCalendar
description: 工厂日历
attributes:
- ref: productCalendarId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workStation
required: true
- ref: workOn
required: true
- ref: calendarSelected
required: true
- ref: inWorkAt
required: true
- ref: outWorkAt
required: true
- ref: breakTime
required: true
- ref: workTime
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: productExt
description: 产品扩展
attributes:
- ref: unitWeight
required: true
... ...
version: v1
kind: Schema
metadata:
name: productGroup
description: 生产班组
attributes:
- ref: productGroupId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: groupName
required: true
- ref: groupLeader
required: true
- ref: groupMembers
required: true
- ref: workOn
required: true
- ref: workStation
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: productJob
description: 工位(车间-生产线-工段-工位)
attributes:
- ref: productJobId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: jobName
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: workStation
description: 工作位置
type:
schema: workStation
- name: relatedDevices
description: 关联设备列表
type:
array: int
... ...
version: v1
kind: Schema
metadata:
name: productLine
description: 生产线
attributes:
- ref: lineId
required: true
- ref: lineName
required: true
- name: productSections
description: 工段列表
type:
array: productSection
... ...
version: v1
kind: Schema
metadata:
name: productSection
description: 工段
attributes:
- ref: sectionId
required: true
- ref: sectionName
required: true
... ...
version: v1
kind: Schema
metadata:
name: unitConversion
description: 单位换算
attributes:
- ref: unitConversionId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workStation
required: true
- ref: material
required: true
- ref: fromUnitQuantity
required: true
- ref: toUnitQuantity
required: true
- ref: intelligentWeighingFlag
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: unitQuantity
description: 单位数量
attributes:
- ref: quantity
required: true
- ref: unit
required: true
... ...
version: v1
kind: Schema
metadata:
name: user
description: 用户对象
attributes:
- ref: userId
required: true
- ref: userName
required: true
- ref: employeeType
required: true
- ref: icCardNumber
required: true
- ref: avatar
required: true
- ref: phone
required: true
... ...
version: v1
kind: Schema
metadata:
name: workStation
description: 工作位置(车间、生产线、工段组成),唯一标识工作位置
attributes:
- ref: workStationId
required: true
- ref: workshopId
required: true
- ref: workshopName
required: true
- ref: lineId
required: true
- ref: lineName
required: true
- ref: sectionId
required: true
- ref: sectionName
required: true
... ...
version: v1
kind: Schema
metadata:
name: workshop
description: 车间
attributes:
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workshopId
required: true
- ref: workshopName
required: true
- ref: principal
required: true
- name: productLines
description: 生产线
type:
array: productLine
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...