提交
This commit is contained in:
1 parent
e6072457fd
commit
be4fab78e1
578 files changed
+174415
-214
No files matched your search
@@ -1727,3 +1727,85 @@ export function fetchUpdateCheckupInstitutionPackage(
|
||||
export function fetchDeleteCheckupInstitutionPackage(packageId: string) {
|
||||
return request.del({ url: `/web/admin/checkup-institution-packages/${packageId}` })
|
||||
}
|
||||
|
||||
// ============ 保险公司管理 ============
|
||||
|
||||
export function fetchInsuranceCompanyList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get({ url: '/web/admin/insurance-companies', params })
|
||||
}
|
||||
|
||||
export function fetchCreateInsuranceCompany(data: Record<string, any>) {
|
||||
return request.post({ url: '/web/admin/insurance-companies', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateInsuranceCompany(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/insurance-companies/${id}`, params: data })
|
||||
}
|
||||
|
||||
export function fetchDeleteInsuranceCompany(id: string) {
|
||||
return request.del({ url: `/web/admin/insurance-companies/${id}` })
|
||||
}
|
||||
|
||||
// 保险公司开票信息
|
||||
export function fetchInsuranceCompanyInvoices(companyId: string) {
|
||||
return request.get({ url: `/web/admin/insurance-companies/${companyId}/invoices` })
|
||||
}
|
||||
|
||||
export function fetchCreateInsuranceCompanyInvoice(companyId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/insurance-companies/${companyId}/invoices`, params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateInsuranceCompanyInvoice(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/insurance-company-invoices/${id}`, params: data })
|
||||
}
|
||||
|
||||
export function fetchDeleteInsuranceCompanyInvoice(id: string) {
|
||||
return request.del({ url: `/web/admin/insurance-company-invoices/${id}` })
|
||||
}
|
||||
|
||||
// 保险项目价格
|
||||
export function fetchInsuranceProjectPrices(companyId: string) {
|
||||
return request.get({ url: `/web/admin/insurance-companies/${companyId}/project-prices` })
|
||||
}
|
||||
|
||||
export function fetchCreateInsuranceProjectPrice(companyId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/insurance-companies/${companyId}/project-prices`, params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateInsuranceProjectPrice(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/insurance-project-prices/${id}`, params: data })
|
||||
}
|
||||
|
||||
export function fetchDeleteInsuranceProjectPrice(id: string) {
|
||||
return request.del({ url: `/web/admin/insurance-project-prices/${id}` })
|
||||
}
|
||||
|
||||
// ============ 储存证管理 ============
|
||||
|
||||
export function fetchStorageCertList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
makeStatus?: string
|
||||
}) {
|
||||
return request.get({ url: '/web/admin/storage-certs', params })
|
||||
}
|
||||
|
||||
// ============ 满月待办管理 ============
|
||||
|
||||
export function fetchFullmoonTodoList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
todoStatus?: string
|
||||
}) {
|
||||
return request.get({ url: '/web/admin/fullmoon-todos', params })
|
||||
}
|
||||
|
||||
export function fetchUpdateFullmoonTodoInsurance(protocolId: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/fullmoon-todos/${protocolId}/insurance`, params: data })
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
type PageList<T> = {
|
||||
list: T[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
export type Material = {
|
||||
id: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
category: string
|
||||
specModel: string
|
||||
unit: string
|
||||
stockQty: number
|
||||
status: string
|
||||
imageUrls: string
|
||||
tenantNo: string
|
||||
orderNum: number
|
||||
remark: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
export type MaterialStockLog = {
|
||||
id: string
|
||||
materialId: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
changeType: string
|
||||
changeQty: number
|
||||
stockBefore: number
|
||||
stockAfter: number
|
||||
receiver: string
|
||||
purpose: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
export function fetchMaterialList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
category?: string
|
||||
status?: string
|
||||
}) {
|
||||
return request.get<PageList<Material>>({
|
||||
url: '/web/admin/materials',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMaterialOptions() {
|
||||
return request.get<{ id: string; label: string; materialCode: string }[]>({
|
||||
url: '/web/admin/materials/options'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCreateMaterial(data: Record<string, any>) {
|
||||
return request.post<Material>({
|
||||
url: '/web/admin/materials',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchUpdateMaterial(id: string, data: Record<string, any>) {
|
||||
return request.put<Material>({
|
||||
url: `/web/admin/materials/${id}`,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchDeleteMaterial(id: string) {
|
||||
return request.delete<void>({
|
||||
url: `/web/admin/materials/${id}`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchStockInMaterial(id: string, data: { qty: number; remark?: string }) {
|
||||
return request.post<Material>({
|
||||
url: `/web/admin/materials/${id}/stock-in`,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchStockOutMaterial(
|
||||
id: string,
|
||||
data: { qty: number; receiver?: string; purpose?: string; remark?: string }
|
||||
) {
|
||||
return request.post<Material>({
|
||||
url: `/web/admin/materials/${id}/stock-out`,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMaterialStockLogList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
materialId?: string
|
||||
changeType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get<PageList<MaterialStockLog>>({
|
||||
url: '/web/admin/material-stock-logs',
|
||||
params
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user