Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into feat/user
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
export interface ItemPrice {
|
||||
id: string
|
||||
item_id: number
|
||||
price: number
|
||||
insuranceCompany_code: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
item_id: number
|
||||
price: number
|
||||
insuranceCompany_code: string
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
page: number
|
||||
size: number
|
||||
name?: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genMedicine(): CreateDto {
|
||||
return {
|
||||
item_id: 1,
|
||||
price: 1,
|
||||
insuranceCompany_code: 'test',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
export interface Item {
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
itemGroup_code: string
|
||||
uom_code: string
|
||||
infra_id: number
|
||||
stock: number
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
name: string
|
||||
code: string
|
||||
itemGroup_code: string
|
||||
uom_code: string
|
||||
infra_id: number
|
||||
stock: number
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
page: number
|
||||
size: number
|
||||
name?: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genMedicine(): CreateDto {
|
||||
return {
|
||||
name: 'test',
|
||||
code: 'test',
|
||||
itemGroup_code: 'test',
|
||||
uom_code: 'test',
|
||||
infra_id: 1,
|
||||
stock: 1,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
export interface MedicineGroup {
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
page: number
|
||||
size: number
|
||||
name?: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genMedicine(): CreateDto {
|
||||
return {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
export interface MedicineMethod {
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
page: number
|
||||
size: number
|
||||
name?: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genMedicine(): CreateDto {
|
||||
return {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
export interface Medicine {
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
medicineGroup_code: string
|
||||
medicineMethod_code: string
|
||||
uom_code: string
|
||||
type: string
|
||||
dose: string
|
||||
infra_id: string
|
||||
stock: string
|
||||
status: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
name: string
|
||||
code: string
|
||||
medicineGroup_code: string
|
||||
medicineMethod_code: string
|
||||
uom_code: string
|
||||
type: string
|
||||
dose: string
|
||||
infra_id: string
|
||||
stock: string
|
||||
status: string
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
page: number
|
||||
size: number
|
||||
name?: string
|
||||
code?: string
|
||||
medicineGroup_code?: string
|
||||
medicineMethod_code?: string
|
||||
uom_code?: string
|
||||
type?: string
|
||||
dose?: string
|
||||
infra_id?: string
|
||||
stock?: string
|
||||
status?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genMedicine(): CreateDto {
|
||||
return {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
medicineGroup_code: 'medicineGroup_code',
|
||||
medicineMethod_code: 'medicineMethod_code',
|
||||
uom_code: 'uom_code',
|
||||
type: 'type',
|
||||
dose: 'dose',
|
||||
infra_id: 'infra_id',
|
||||
stock: 'stock',
|
||||
status: 'status',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user