/*
|
* @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
|
}
|