Bang Hu
2025-08-28 219d86d1a32379935957e9e85adb8cc3707ae93f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
 * @Description:
 * @Version: 2.0
 * @Autor: wuyun
 * @Date: 2022-08-01 15:58:16
 * @LastEditors: wuyun
 * @LastEditTime: 2023-02-02 14:25:36
 */
interface InputData {
    // 标题
    title?: string
    // 内容,比如radio的选项列表数据 content: { a: '选项1', b: '选项2' }
    content?: any
    // 提示信息
    tip?: string
    // 需要生成子级元素时,子级元素属性(比如radio)
    childrenAttr?: anyObj
    // 城市选择器等级,1=省,2=市,3=区
    level?: number
}
 
declare interface anyObj {
    [key: string]: any
}
 
interface TableDefaultData<T = any> {
    list: T
    remark: string
    total: number
}
 
interface ApiResponse<T = any> {
    code: number
    data: T
    msg: string
    time: number
}
/**
 * 弹窗类型
 */
declare interface Dialog {
    title: string
    visible: boolean
}
 
/**
 * 通用组件选择项类型
 */
declare interface Option {
    value: string
    label: string
    checked?: boolean
    children?: Option[]
}
 
declare interface ApiPromise<T = any> extends Promise<ApiResponse<T>> {}
/**
 * 下拉菜单数据源类型
 */
declare interface SelectOption {
    code: string
    name: string
}
 
/**
 * 菜单和树形接口数据类型
 */
declare interface Menu {
    id?: number | string // 菜单ID
    children?: Menu[] | []
    icon?: string | null // 菜单图标
    url?: string // 菜单地址
    name?: string // 菜单名称
    parentId?: string | null // 父级ID
    sort?: string // 排序
    code?: string // 资源编码
    hasChildren?: boolean //是否有子节点
    description?: string | null // 资源描述
 
    parentCode?: string
    areaCode?: string
    areaName?: string
    level?: string
 
    remark?: string
    type?: string
}
declare interface Area {
    areaCode: string
    areaName: string
}
declare interface IDName {
    id: string
    name: string
}
declare interface CodeName {
    code: string
    name: string
}
//上传文件定义
interface Files {
    id?: string
    orderId?: string
    orderLogId?: string
    fileId?: string
    bucket?: string
  originalName?: string
  fileName?: string
    encryptedName?: string
    suffix: string
    size?: number
    url: string
    isImg?: boolean
    type?: string
    name?: string
}
interface LogTableItem {
    id?: string
    orderId: string
    registerDate: string
    registrant: string
    category: string
    paidAmount?: number | undefined
    remark: string
    files?: Files[]
}
declare interface CategoryItem {
    id: string
    name: string
    type?: string
    remark?: string
    parentId?: string
    hasChildren?: boolean
    afterChangeQuantity?: any
    children?: CategoryItem[]
}
declare interface StorageOperate {
    registerDate: string
    operator: string
    category: string
    model: string
    supplierId?: string
    supplierName?: string
    batchNo?: string
    quantity: number | undefined
    unit: string
    registerType: string
    remark?: string
    fileIds?: string[]
    purchaseOrderId?: string
    purchaseOrderName?: string
}