Blame view

美国版/Food Labeling Management App UniApp/src/utils/printRecords.ts 2.42 KB
940fb6ea   “wangming”   又改了一个版本,这泰额太纠结了,一...
1
2
  export interface PrintRecord {
    id: string
a0aeefab   “wangming”   好了,设计现在需要给美国那边看,估...
3
    labelId: string
940fb6ea   “wangming”   又改了一个版本,这泰额太纠结了,一...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
    productName: string
    category: string
    qty: number
    userName: string
    date: string
    dateFull: string
    time: string
    labelType?: string
    templateSize: string
    templateName: string
    printer: string
  }
  
  export const printRecordsList: PrintRecord[] = [
a0aeefab   “wangming”   好了,设计现在需要给美国那边看,估...
18
19
20
21
22
23
24
25
    { id: '1', labelId: '1-251204', productName: 'Chicken Sandwich', category: 'Sandwich', qty: 2, userName: 'John Smith', date: '12/04', dateFull: 'Dec 4, 2025', time: '10:45 AM', templateSize: '2"x6"', templateName: "G'n'G", printer: 'Zebra ZD421' },
    { id: '2', labelId: '2-251204', productName: 'Chicken', category: 'Meat', qty: 1, userName: 'John Smith', date: '12/04', dateFull: 'Dec 4, 2025', time: '10:32 AM', labelType: 'Defrost', templateSize: '2"x2"', templateName: 'Basic', printer: 'Zebra ZD421' },
    { id: '3', labelId: '3-251204', productName: 'Caesar Salad', category: 'Salads', qty: 3, userName: 'Jane Doe', date: '12/04', dateFull: 'Dec 4, 2025', time: '09:15 AM', templateSize: '2"x4"', templateName: "G'n'G", printer: 'Brother QL-820NWB' },
    { id: '4', labelId: '4-251203', productName: 'Beef', category: 'Meat', qty: 1, userName: 'John Smith', date: '12/03', dateFull: 'Dec 3, 2025', time: '4:20 PM', labelType: 'Heated', templateSize: '2"x2"', templateName: 'Basic', printer: 'Zebra ZD421' },
    { id: '5', labelId: '5-251203', productName: 'Cheese Burger', category: 'Sandwich', qty: 2, userName: 'Jane Doe', date: '12/03', dateFull: 'Dec 3, 2025', time: '3:45 PM', templateSize: '2"x6"', templateName: "G'n'G", printer: 'Brother QL-820NWB' },
    { id: '6', labelId: '6-251203', productName: 'Ice Cream', category: 'Frozen', qty: 1, userName: 'John Smith', date: '12/03', dateFull: 'Dec 3, 2025', time: '2:30 PM', labelType: 'Vanilla', templateSize: '2"x2"', templateName: 'Storage', printer: 'Epson TM-T88VI' },
    { id: '7', labelId: '7-251203', productName: 'Milk', category: 'Dairy', qty: 1, userName: 'Jane Doe', date: '12/03', dateFull: 'Dec 3, 2025', time: '11:00 AM', templateSize: '2"x2"', templateName: 'Basic', printer: 'Zebra ZD421' },
    { id: '8', labelId: '8-251202', productName: 'Turkey Club', category: 'Sandwich', qty: 1, userName: 'John Smith', date: '12/02', dateFull: 'Dec 2, 2025', time: '1:20 PM', templateSize: '2"x6"', templateName: "G'n'G", printer: 'Brother QL-820NWB' },
940fb6ea   “wangming”   又改了一个版本,这泰额太纠结了,一...
26
27
28
29
30
  ]
  
  export function getRecordById(id: string): PrintRecord | undefined {
    return printRecordsList.find(function (r) { return r.id === id })
  }