| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // 基础数据模型类型
- // 用户角色常量
- export const RoleSystemAdmin = 'system_admin';
- export const RoleFactoryAdmin = 'factory_admin';
- export const RoleWorker = 'worker';
- // 工单/批次状态常量
- export const StatusPending = 'pending';
- export const StatusInProgress = 'in_progress';
- export const StatusCompleted = 'completed';
- export const StatusCancelled = 'cancelled';
- // 计件记录状态常量
- export const RecordStatusNormal = 'normal';
- export const RecordStatusReverted = 'reverted';
- // 工资周期状态常量
- export const SalaryStatusPending = 'pending';
- export const SalaryStatusLocked = 'locked';
- // 工厂类型
- export interface Factory {
- id: string;
- name: string;
- db_path: string;
- status: number; // 1=启用, 0=禁用
- created_at: string;
- updated_at: string;
- }
- // 裁床批次类型
- export interface CutBatch {
- id: number;
- work_order_id: number;
- batch_no: string;
- color: string;
- total_qty: number;
- completed_qty: number;
- status: string;
- created_at: string;
- updated_at: string;
- }
- // 扎号(分扎)类型
- export interface CutBundle {
- id: number;
- batch_id: number;
- bundle_no: string;
- size: string;
- quantity: number;
- qr_code: string;
- status: string;
- created_at: string;
- updated_at: string;
- }
- // 工价模板类型
- export interface PriceTemplate {
- id: number;
- style: string;
- process_id: number;
- price: number;
- remark: string;
- created_at: string;
- updated_at: string;
- }
|