style: 统一行尾符为LF(gitattributes renormalize,无代码变更)
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表查询
|
||||
export function changeLedgerListApi(params:any) {
|
||||
return request({
|
||||
url: `/api/changes`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 导出
|
||||
export function exportChangeLedgerApi(params:any) {
|
||||
return request({
|
||||
url: `/api/reports/changes/export`,
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表查询
|
||||
export function changeLedgerListApi(params:any) {
|
||||
return request({
|
||||
url: `/api/changes`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 导出
|
||||
export function exportChangeLedgerApi(params:any) {
|
||||
return request({
|
||||
url: `/api/reports/changes/export`,
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+84
-84
@@ -1,84 +1,84 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 资料库树状列表
|
||||
export function docTreeListApi() {
|
||||
return request({
|
||||
url: `/api/knowledge/tree`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 新增文件夹
|
||||
export function addFolderApi(data: {name: string, parent_id: number, org_id: number}) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 编辑文件夹
|
||||
export function editFolderApi(id: number, data: {name: string}) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder/${id}`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 删除文件夹
|
||||
export function deleteFolderApi(id: number) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 资料列表
|
||||
export function docListApi(params:{folder_id:number,name?:string}) {
|
||||
return request({
|
||||
url: `/api/knowledge/files`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 上传资料
|
||||
export function uploadDocApi(params: any) {
|
||||
return request({
|
||||
url: `/api/knowledge/upload`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
// 更新资料
|
||||
export function updateDocApi(id: number, params: any) {
|
||||
return request({
|
||||
url: `/api/knowledge/${id}/update`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
// 历史版本列表
|
||||
export function docHistoryListApi(doc_id:number) {
|
||||
return request({
|
||||
url: `/api/knowledge/${doc_id}/history`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 归档目录树
|
||||
export function docArchiveTreeListApi(params: {from:string | number | null,to:string | number | null,org_id: number,type: number | string,change_no?:string}) {
|
||||
return request({
|
||||
url: `/api/changes/archived/tree`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 归档详情
|
||||
export function docArchiveDetailsApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/archived/${id}/attachments`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
// 资料库树状列表
|
||||
export function docTreeListApi() {
|
||||
return request({
|
||||
url: `/api/knowledge/tree`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 新增文件夹
|
||||
export function addFolderApi(data: {name: string, parent_id: number, org_id: number}) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 编辑文件夹
|
||||
export function editFolderApi(id: number, data: {name: string}) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder/${id}`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 删除文件夹
|
||||
export function deleteFolderApi(id: number) {
|
||||
return request({
|
||||
url: `/api/knowledge/folder/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 资料列表
|
||||
export function docListApi(params:{folder_id:number,name?:string}) {
|
||||
return request({
|
||||
url: `/api/knowledge/files`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 上传资料
|
||||
export function uploadDocApi(params: any) {
|
||||
return request({
|
||||
url: `/api/knowledge/upload`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
// 更新资料
|
||||
export function updateDocApi(id: number, params: any) {
|
||||
return request({
|
||||
url: `/api/knowledge/${id}/update`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
// 历史版本列表
|
||||
export function docHistoryListApi(doc_id:number) {
|
||||
return request({
|
||||
url: `/api/knowledge/${doc_id}/history`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 归档目录树
|
||||
export function docArchiveTreeListApi(params: {from:string | number | null,to:string | number | null,org_id: number,type: number | string,change_no?:string}) {
|
||||
return request({
|
||||
url: `/api/changes/archived/tree`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 归档详情
|
||||
export function docArchiveDetailsApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/archived/${id}/attachments`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
+19
-19
@@ -1,19 +1,19 @@
|
||||
import { request } from '../request';
|
||||
|
||||
/** 草稿列表
|
||||
*
|
||||
*/
|
||||
export function draftListApi(params: {page_num: number, page_size: number}) {
|
||||
return request({
|
||||
url: `/api/changes/my-drafts`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 删除草稿
|
||||
export function deleteDraftApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
/** 草稿列表
|
||||
*
|
||||
*/
|
||||
export function draftListApi(params: {page_num: number, page_size: number}) {
|
||||
return request({
|
||||
url: `/api/changes/my-drafts`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 删除草稿
|
||||
export function deleteDraftApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
+25
-25
@@ -1,26 +1,26 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 上传文件
|
||||
export function uploadFileApi(id: number, params: any) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/attachments`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
// 删除文件
|
||||
export function deleteFileApi(id: number, fileId: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/attachments/${fileId}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 文件列表
|
||||
export function fileListApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/attachments`,
|
||||
method: 'get',
|
||||
});
|
||||
import { request } from '../request';
|
||||
|
||||
// 上传文件
|
||||
export function uploadFileApi(id: number, params: any) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/attachments`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
// 删除文件
|
||||
export function deleteFileApi(id: number, fileId: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/attachments/${fileId}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 文件列表
|
||||
export function fileListApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/attachments`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
+26
-26
@@ -1,26 +1,26 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表查询
|
||||
export function highRiskListApi(params:any) {
|
||||
return request({
|
||||
url: `/api/risk-records/high`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 变更分析记录列表
|
||||
export function analysisRecordListApi(id:number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/analysis-records`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 历史分析检索
|
||||
export function historyAnalysisListApi(params:{kw:string,method:string}) {
|
||||
return request({
|
||||
url: `/api/analysis-records/search`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表查询
|
||||
export function highRiskListApi(params:any) {
|
||||
return request({
|
||||
url: `/api/risk-records/high`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 变更分析记录列表
|
||||
export function analysisRecordListApi(id:number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/analysis-records`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 历史分析检索
|
||||
export function historyAnalysisListApi(params:{kw:string,method:string}) {
|
||||
return request({
|
||||
url: `/api/analysis-records/search`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
+66
-66
@@ -1,66 +1,66 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 获取列表
|
||||
export function myTasksListApi() {
|
||||
return request({
|
||||
url: `/api/my-tasks`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 撤回
|
||||
export function myTasksWithdrawApi(id:number,data: {reason:string}) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/withdraw`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 关闭变更
|
||||
export function myTasksCloseApi(change_id:number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/close`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
// 资料关闭
|
||||
export function myTasksCloseMaterialApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/material-close`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 处置申请保存提交
|
||||
export function myTasksDisposalSubmitApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/disposal`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增检查项
|
||||
export function myTasksAddItemApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/pssr/item`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 驳回变更
|
||||
export function rejectApi(data: {change_id:number,opinion:string}) {
|
||||
return request({
|
||||
url: `/api/approvals/reject`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 同意变更
|
||||
export function agreeApi(data: {change_id:number,opinion:string}) {
|
||||
return request({
|
||||
url: `/api/approvals/agree`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
// 获取列表
|
||||
export function myTasksListApi() {
|
||||
return request({
|
||||
url: `/api/my-tasks`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 撤回
|
||||
export function myTasksWithdrawApi(id:number,data: {reason:string}) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/withdraw`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 关闭变更
|
||||
export function myTasksCloseApi(change_id:number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/close`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
// 资料关闭
|
||||
export function myTasksCloseMaterialApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/material-close`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 处置申请保存提交
|
||||
export function myTasksDisposalSubmitApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/disposal`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增检查项
|
||||
export function myTasksAddItemApi(change_id:number,data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/pssr/item`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 驳回变更
|
||||
export function rejectApi(data: {change_id:number,opinion:string}) {
|
||||
return request({
|
||||
url: `/api/approvals/reject`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 同意变更
|
||||
export function agreeApi(data: {change_id:number,opinion:string}) {
|
||||
return request({
|
||||
url: `/api/approvals/agree`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 待投用变更列表查询
|
||||
export function pendingChangeListApi(params:{page_num:number,page_size:number}) {
|
||||
return request({
|
||||
url: `/api/pssr/pending-use`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 变更投入和效果列表查询
|
||||
export function effectListApi(params:{page_num:number,page_size:number}) {
|
||||
return request({
|
||||
url: `/api/reports/invest-effect`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 变更投入和效果导出
|
||||
export function exportEffectApi() {
|
||||
return request({
|
||||
url: `/api/reports/invest-effect/export`,
|
||||
method: 'get',
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
// 待投用变更列表查询
|
||||
export function pendingChangeListApi(params:{page_num:number,page_size:number}) {
|
||||
return request({
|
||||
url: `/api/pssr/pending-use`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 变更投入和效果列表查询
|
||||
export function effectListApi(params:{page_num:number,page_size:number}) {
|
||||
return request({
|
||||
url: `/api/reports/invest-effect`,
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 变更投入和效果导出
|
||||
export function exportEffectApi() {
|
||||
return request({
|
||||
url: `/api/reports/invest-effect/export`,
|
||||
method: 'get',
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
|
||||
+82
-82
@@ -1,82 +1,82 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 获取风险预分析详情
|
||||
export function riskPreDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/risk-summary`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 风险预分析保存
|
||||
export function riskPreSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/risk-summary`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取HAZOP节点列表
|
||||
export function hazopNodesApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/hazop/nodes`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// HAZOP保存
|
||||
export function hazopSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/hazop`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取FMEA节点列表
|
||||
export function fmeaNodesApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/fmea/nodes`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// FMEA保存
|
||||
export function fmeaSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/fmea`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取JSA详情
|
||||
export function jsaDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/jsa`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// JSA保存
|
||||
export function jsaSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/jsa`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取风险检查表详情
|
||||
export function riskCheckDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/questionnaire`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 风险检查表保存
|
||||
export function riskCheckSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/questionnaire`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
import { request } from '../request';
|
||||
|
||||
// 获取风险预分析详情
|
||||
export function riskPreDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/risk-summary`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 风险预分析保存
|
||||
export function riskPreSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/risk-summary`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取HAZOP节点列表
|
||||
export function hazopNodesApi(id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${id}/hazop/nodes`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// HAZOP保存
|
||||
export function hazopSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/hazop`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取FMEA节点列表
|
||||
export function fmeaNodesApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/fmea/nodes`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// FMEA保存
|
||||
export function fmeaSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/fmea`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取JSA详情
|
||||
export function jsaDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/jsa`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// JSA保存
|
||||
export function jsaSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/jsa`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取风险检查表详情
|
||||
export function riskCheckDetailApi(change_id: number) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/questionnaire`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 风险检查表保存
|
||||
export function riskCheckSaveApi(change_id: number, data: any) {
|
||||
return request({
|
||||
url: `/api/changes/${change_id}/questionnaire`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表
|
||||
export function pssrListApi(params: {page_num: number, page_size: number,kw: string,is_close: number,from: string | null,to: string | null}) {
|
||||
return request({
|
||||
url: `/api/pssr/supervise`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
import { request } from '../request';
|
||||
|
||||
// 列表
|
||||
export function pssrListApi(params: {page_num: number, page_size: number,kw: string,is_close: number,from: string | null,to: string | null}) {
|
||||
return request({
|
||||
url: `/api/pssr/supervise`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
+133
-133
@@ -1,133 +1,133 @@
|
||||
// 数据统计
|
||||
import { request } from '../request';
|
||||
|
||||
// 首页(申请人)
|
||||
export function homeApi() {
|
||||
return request({
|
||||
url: `/api/workbench`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(专业会签)
|
||||
export function homeProfessionalApi() {
|
||||
return request({
|
||||
url: `/api/workbench/specialty-sign`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(安全工程师)
|
||||
export function homeSafeApi() {
|
||||
return request({
|
||||
url: `/api/workbench/safety`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(车间主任)
|
||||
export function homeManagerApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/workbench/dept`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 首页(分管领导)
|
||||
export function homeLeaderApi() {
|
||||
return request({
|
||||
url: `/api/workbench/vp`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(系统管理员)
|
||||
export function homeAdminApi() {
|
||||
return request({
|
||||
url: `/api/workbench/admin`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(质量工程师)
|
||||
export function homeQualityApi() {
|
||||
return request({
|
||||
url: `/api/workbench/quality`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(非审批人员)
|
||||
export function homeNonApproverApi() {
|
||||
return request({
|
||||
url: `/api/workbench/viewer`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 变更数据中心
|
||||
export function changeDataCenterApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/data-center`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 变更数据中心导出
|
||||
export function exportChangeDataCenterApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/data-center/export`,
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
|
||||
// 安全与风险统计
|
||||
export function safeRiskStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/safety-risk`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本部门变更统计
|
||||
export function departmentStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本专业变更统计(质量会签统计)
|
||||
export function specialtyStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats/specialty-sign`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本车间变更统计
|
||||
export function deptStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats/dept`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 全工厂统计概览
|
||||
export function factoryStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/plant-overview`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 统计报表
|
||||
export function reportStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/admin-center`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 数据统计
|
||||
import { request } from '../request';
|
||||
|
||||
// 首页(申请人)
|
||||
export function homeApi() {
|
||||
return request({
|
||||
url: `/api/workbench`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(专业会签)
|
||||
export function homeProfessionalApi() {
|
||||
return request({
|
||||
url: `/api/workbench/specialty-sign`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(安全工程师)
|
||||
export function homeSafeApi() {
|
||||
return request({
|
||||
url: `/api/workbench/safety`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(车间主任)
|
||||
export function homeManagerApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/workbench/dept`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 首页(分管领导)
|
||||
export function homeLeaderApi() {
|
||||
return request({
|
||||
url: `/api/workbench/vp`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(系统管理员)
|
||||
export function homeAdminApi() {
|
||||
return request({
|
||||
url: `/api/workbench/admin`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(质量工程师)
|
||||
export function homeQualityApi() {
|
||||
return request({
|
||||
url: `/api/workbench/quality`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 首页(非审批人员)
|
||||
export function homeNonApproverApi() {
|
||||
return request({
|
||||
url: `/api/workbench/viewer`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 变更数据中心
|
||||
export function changeDataCenterApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/data-center`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 变更数据中心导出
|
||||
export function exportChangeDataCenterApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/data-center/export`,
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob', // 重点,responseType设置为 blob
|
||||
});
|
||||
}
|
||||
|
||||
// 安全与风险统计
|
||||
export function safeRiskStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/safety-risk`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本部门变更统计
|
||||
export function departmentStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本专业变更统计(质量会签统计)
|
||||
export function specialtyStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats/specialty-sign`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 本车间变更统计
|
||||
export function deptStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/dept-stats/dept`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 全工厂统计概览
|
||||
export function factoryStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/plant-overview`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 统计报表
|
||||
export function reportStatisticsApi(params: {from: string | null, to: string | null}) {
|
||||
return request({
|
||||
url: `/api/reports/admin-center`,
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user