调整目录结构
This commit is contained in:
1 parent
4db7c70511
commit
7a5b9d1bea
112 files changed
+863
-376
No files matched your search
File renamed without changes.
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepairCategoryVO, RepairCategoryForm, RepairCategoryQuery } from '@/api/pm/types';
|
||||
import { RepairCategoryVO, RepairCategoryForm, RepairCategoryQuery } from '@/api/hq/hq/pm/types';
|
||||
|
||||
/**
|
||||
* 查询维修类型列表
|
||||
@@ -8,7 +8,7 @@ import { RepairCategoryVO, RepairCategoryForm, RepairCategoryQuery } from '@/api
|
||||
*/
|
||||
export const listRepairCategory = (query?: RepairCategoryQuery) => {
|
||||
return request({
|
||||
url: '/pm/repairCategory/list',
|
||||
url: '/hq/pm/repairCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
@@ -20,7 +20,7 @@ export const listRepairCategory = (query?: RepairCategoryQuery) => {
|
||||
*/
|
||||
export const getRepairCategory = (id: string | number): AxiosPromise<RepairCategoryVO> => {
|
||||
return request({
|
||||
url: `/pm/repairCategory/${id}`,
|
||||
url: `/hq/pm/repairCategory/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -31,7 +31,7 @@ export const getRepairCategory = (id: string | number): AxiosPromise<RepairCateg
|
||||
*/
|
||||
export const addRepairCategory = (data: RepairCategoryForm) => {
|
||||
return request({
|
||||
url: '/pm/repairCategory',
|
||||
url: '/hq/pm/repairCategory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@@ -43,7 +43,7 @@ export const addRepairCategory = (data: RepairCategoryForm) => {
|
||||
*/
|
||||
export const updateRepairCategory = (data: RepairCategoryForm) => {
|
||||
return request({
|
||||
url: '/pm/repairCategory',
|
||||
url: '/hq/pm/repairCategory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@@ -55,7 +55,7 @@ export const updateRepairCategory = (data: RepairCategoryForm) => {
|
||||
*/
|
||||
export const delRepairCategory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: `/pm/repairCategory/${id}`,
|
||||
url: `/hq/pm/repairCategory/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -65,7 +65,7 @@ export const delRepairCategory = (id: string | number | Array<string | number>)
|
||||
*/
|
||||
export const getRepairCategoryTree = (): AxiosPromise<RepairCategoryVO[]> => {
|
||||
return request({
|
||||
url: '/pm/repairCategory/tree',
|
||||
url: '/hq/pm/repairCategory/tree',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -75,7 +75,7 @@ export const getRepairCategoryTree = (): AxiosPromise<RepairCategoryVO[]> => {
|
||||
*/
|
||||
export const getRepairCategoryOptions = (): AxiosPromise<Array<{value: string | number, label: string}>> => {
|
||||
return request({
|
||||
url: '/pm/repairCategory/options',
|
||||
url: '/hq/pm/repairCategory/options',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
RepairStatisticsVO,
|
||||
ServiceEvaluationForm,
|
||||
ServiceEvaluationVO
|
||||
} from '@/api/pm/types';
|
||||
} from '@/api/hq/hq/pm/types';
|
||||
|
||||
/**
|
||||
* 查询报修工单列表
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
*/
|
||||
export const listRepairOrder = (query?: RepairOrderQuery): AxiosPromise<RepairOrderVO[]> => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/list',
|
||||
url: '/hq/pm/repairOrder/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
@@ -31,7 +31,7 @@ export const listRepairOrder = (query?: RepairOrderQuery): AxiosPromise<RepairOr
|
||||
*/
|
||||
export const getRepairOrder = (id: string | number): AxiosPromise<RepairOrderVO> => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${id}`,
|
||||
url: `/hq/pm/repairOrder/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -41,7 +41,7 @@ export const getRepairOrder = (id: string | number): AxiosPromise<RepairOrderVO>
|
||||
*/
|
||||
export const generateOrderNo = () => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/generateOrderNo',
|
||||
url: '/hq/pm/repairOrder/generateOrderNo',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -52,7 +52,7 @@ export const generateOrderNo = () => {
|
||||
*/
|
||||
export const addRepairOrder = (data: RepairOrderForm) => {
|
||||
return request({
|
||||
url: '/pm/repairOrder',
|
||||
url: '/hq/pm/repairOrder',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@@ -64,7 +64,7 @@ export const addRepairOrder = (data: RepairOrderForm) => {
|
||||
*/
|
||||
export const updateRepairOrder = (data: RepairOrderForm) => {
|
||||
return request({
|
||||
url: '/pm/repairOrder',
|
||||
url: '/hq/pm/repairOrder',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@@ -76,7 +76,7 @@ export const updateRepairOrder = (data: RepairOrderForm) => {
|
||||
*/
|
||||
export const delRepairOrder = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${id}`,
|
||||
url: `/hq/pm/repairOrder/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -87,7 +87,7 @@ export const delRepairOrder = (id: string | number | Array<string | number>) =>
|
||||
*/
|
||||
export const assignRepairOrder = (data: AssignOrderForm) => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${data.orderId}/assign`,
|
||||
url: `/hq/pm/repairOrder/${data.orderId}/assign`,
|
||||
method: 'put',
|
||||
params: {
|
||||
assigneeId: data.assigneeId,
|
||||
@@ -103,7 +103,7 @@ export const assignRepairOrder = (data: AssignOrderForm) => {
|
||||
*/
|
||||
export const startRepairOrder = (id: string | number, data?: any) => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${id}/start`,
|
||||
url: `/hq/pm/repairOrder/${id}/start`,
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@@ -116,7 +116,7 @@ export const startRepairOrder = (id: string | number, data?: any) => {
|
||||
*/
|
||||
export const finishRepairOrder = (id: string | number, data: any) => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${id}/complete`,
|
||||
url: `/hq/pm/repairOrder/${id}/complete`,
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@@ -129,7 +129,7 @@ export const finishRepairOrder = (id: string | number, data: any) => {
|
||||
*/
|
||||
export const cancelRepairOrder = (id: string | number, data: { cancelReason: string }) => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${id}/cancel`,
|
||||
url: `/hq/pm/repairOrder/${id}/cancel`,
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@@ -141,7 +141,7 @@ export const cancelRepairOrder = (id: string | number, data: { cancelReason: str
|
||||
*/
|
||||
export const getRepairAttachments = (orderId: string | number): AxiosPromise<RepairAttachmentVO[]> => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${orderId}/attachments`,
|
||||
url: `/hq/pm/repairOrder/${orderId}/attachments`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -163,7 +163,7 @@ export const uploadAttachment = (orderId: string | number, uploadStage: string,
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/pm/attachment/upload',
|
||||
url: '/hq/pm/attachment/upload',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
headers: {
|
||||
@@ -195,7 +195,7 @@ export const uploadAttachments = (orderId: string | number, uploadStage: string,
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/pm/attachment/upload/batch',
|
||||
url: '/hq/pm/attachment/upload/batch',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
headers: {
|
||||
@@ -210,7 +210,7 @@ export const uploadAttachments = (orderId: string | number, uploadStage: string,
|
||||
*/
|
||||
export const deleteAttachment = (id: string | number): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: `/pm/attachment/file/${id}`,
|
||||
url: `/hq/pm/attachment/file/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -221,7 +221,7 @@ export const deleteAttachment = (id: string | number): AxiosPromise<any> => {
|
||||
*/
|
||||
export const getRepairProgress = (orderId: string | number): AxiosPromise<RepairProgressVO[]> => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${orderId}/progress`,
|
||||
url: `/hq/pm/repairOrder/${orderId}/progress`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -232,7 +232,7 @@ export const getRepairProgress = (orderId: string | number): AxiosPromise<Repair
|
||||
*/
|
||||
export const updateRepairProgress = (data: ProgressUpdateForm) => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/progress',
|
||||
url: '/hq/pm/repairOrder/progress',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@@ -243,7 +243,7 @@ export const updateRepairProgress = (data: ProgressUpdateForm) => {
|
||||
*/
|
||||
export const getRepairStatistics = (): AxiosPromise<RepairStatisticsVO> => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/statistics',
|
||||
url: '/hq/pm/repairOrder/statistics',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -254,7 +254,7 @@ export const getRepairStatistics = (): AxiosPromise<RepairStatisticsVO> => {
|
||||
*/
|
||||
export const getMaintenanceWorkers = (): AxiosPromise<Array<{ value: string | number; label: string; userName?: string; deptName?: string }>> => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/maintenance-workers',
|
||||
url: '/hq/pm/repairOrder/maintenance-workers',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -265,7 +265,7 @@ export const getMaintenanceWorkers = (): AxiosPromise<Array<{ value: string | nu
|
||||
*/
|
||||
export const exportRepairOrders = (query?: RepairOrderQuery) => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/export',
|
||||
url: '/hq/pm/repairOrder/export',
|
||||
method: 'post',
|
||||
data: query
|
||||
});
|
||||
@@ -277,7 +277,7 @@ export const exportRepairOrders = (query?: RepairOrderQuery) => {
|
||||
*/
|
||||
export const createServiceEvaluation = (data: ServiceEvaluationForm) => {
|
||||
return request({
|
||||
url: '/pm/repairOrder/evaluation',
|
||||
url: '/hq/pm/repairOrder/evaluation',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@@ -289,7 +289,7 @@ export const createServiceEvaluation = (data: ServiceEvaluationForm) => {
|
||||
*/
|
||||
export const getServiceEvaluation = (orderId: string | number): AxiosPromise<ServiceEvaluationVO> => {
|
||||
return request({
|
||||
url: `/pm/repairOrder/${orderId}/evaluation`,
|
||||
url: `/hq/pm/repairOrder/${orderId}/evaluation`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
File renamed without changes.
Reference in new issue
Block a user