小程序代码质量整改

dev_xd
lj7788@126.com 2025-08-06 10:40:52 +08:00
parent f7ad0d2203
commit 9f80012423
21 changed files with 3946 additions and 3946 deletions

View File

@ -1,35 +0,0 @@
import {
request
} from '../utils/request'
// 统计劳务人员信息
export function findSubDeptsUsers(proId) {
return request({
url: '/manage/attendance/v1/findSubDeptsUsers/'+proId,
method: 'get'
})
}
// 统计今日出勤信息
export function findDaysAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findDaysAttendanceView/'+proId,
method: 'get'
})
}
// 统计人员出勤信息
export function findSubDeptsAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findSubDeptsAttendanceView/'+proId,
method: 'get'
})
}
// 查询人员出勤信息
export function findUsersAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findUsersAttendanceView/'+proId,
method: 'get'
})
}

View File

@ -1,197 +0,0 @@
import {request} from '../utils/request'
// 获取流程申请类型
export function myDefinitionList(data) {
return request({
url: '/flowable/businessKey/myDefinitionList',
method: 'get',
data: data
})
}
// 启动流程实例
export function startProcessInstance(data) {
return request({
url: '/flowable/businessKey/startProcessInstance',
method: 'post',
data: data
})
}
// 查询流程节点
export function readNotes(deployId) {
return request({
url: '/flowable/businessKey/readNotes/'+deployId,
method: 'get'
})
}
// 查询流程节点
export function readDeployNotes(deployId) {
return request({
url: '/flowable/businessKey/readDeployNotes/'+deployId,
method: 'get'
})
}
// 取消流程申请
export function stopProcess(data) {
return request({
url: '/flowable/businessKey/stopProcess',
method: 'post',
data: data
})
}
// 撤回流程办理
export function revokeProcess(data) {
return request({
url: '/flowable/businessKey/revokeProcess',
method: 'post',
data: data
})
}
// 审批任务流程
export function complete(data) {
return request({
url: '/flowable/task/complete',
method: 'post',
data: data
})
}
// 批量审批任务
export function batchComplete(data) {
return request({
url: '/flowable/task/batchComplete',
method: 'post',
data: data
})
}
// 驳回任务流程
export function reject(data) {
return request({
url: '/flowable/businessKey/reject',
method: 'post',
data: data
})
}
// 退回任务流程
export function returnTask(data) {
return request({
url: '/flowable/task/return',
method: 'post',
data: data
})
}
// 委派任务流程
export function delegateTask(data) {
return request({
url: '/flowable/businessKey/delegateTask',
method: 'post',
data: data
})
}
// 转办任务流程
export function assignTask(data) {
return request({
url: '/flowable/businessKey/assignTask',
method: 'post',
data: data
})
}
// 删除流程实例
export function deleteInstance(instanceId) {
return request({
url: '/flowable/businessKey/delete/'+instanceId,
method: 'get'
})
}
// 获取所有可回退的节点
export function returnList(data) {
return request({
url: '/flowable/task/returnList',
method: 'post',
data: data
})
}
// 根据流程Id查询操作日志
export function findCommentByProcInsId(data) {
return request({
url: '/flowable/businessKey/findCommentByProcInsId',
method: 'get',
data: data
})
}
// 根据条件统计分包单位审批
export function findMyTask(query) {
return request({
url: '/flowable/businessKey/findMyTask',
method: 'get',
params: query
})
}
// 根据条件统计分包单位审批
export function quueryCount(query) {
return request({
url: '/flowable/businessKey/queryCount',
method: 'get',
params: query
})
}
// 根据条件查询我的代办任务
export function myAwaitFlowTaskList(query) {
return request({
url: '/flowable/businessKey/myAwaitFlowTaskList',
method: 'get',
params: query
})
}
// 根据条件查询我的已办任务
export function myFinishedFlowTaskList(query) {
return request({
url: '/flowable/businessKey/myFinishedFlowTaskList',
method: 'get',
params: query
})
}
// 根据条件查询所有流申请
export function allInstanceList(data) {
return request({
url: '/flowable/businessKey/allList',
method: 'get',
data: data
})
}
// 根据条件查询所有流申请
export function myInstanceList(data) {
return request({
url: '/flowable/businessKey/myList',
method: 'get',
data: data
})
}
// 根据条件统计所有流程任务
export function queryTaskCount(data) {
return request({
url: '/flowable/businessKey/queryCount',
method: 'get',
data: data
})
}

View File

@ -1,97 +0,0 @@
import {
request
} from '../utils/request'
// 查询隐患列表
export function list(query) {
return request({
url: '/manage/problemmodify/wxList',
method: 'get',
params: query
})
}
// 统计隐患列表
export function listCount(query) {
return request({
url: '/manage/problemmodify/wxListCount',
method: 'get',
params: query
})
}
// 查询隐患详情
export function findInfo(id) {
return request({
url: '/manage/problemmodify/'+id,
method: 'get'
})
}
// 查询隐患审批详情
export function findAuditInfos(id) {
return request({
url: '/manage/problemmodify/findAuditInfos/'+id,
method: 'get'
})
}
// 新增隐患问题
export function add(data) {
return request({
url: '/manage/problemmodify',
method: 'post',
data: data
})
}
// 新增隐患草稿
export function addDraft(data) {
return request({
url: '/manage/problemmodifyDraft/addDraft',
method: 'post',
data: data
})
}
// 删除隐患详情
export function remove(id) {
return request({
url: '/manage/problemmodify/wxRemove/'+id,
method: 'delete'
})
}
// 提交隐患整改
export function modifyProblemmodify(data) {
return request({
url: '/manage/problemmodify/modifyProblemmodify',
method: 'post',
data: data
})
}
// 提交问题复检
export function checkProblemmodify(data) {
return request({
url: '/manage/problemmodify/checkProblemmodify',
method: 'post',
data: data
})
}
// 查询我上次提交的隐患信息
export function findMyLastProblemmodify(proId,type) {
return request({
url: '/manage/problemmodify/findMyLastProblemmodify/'+proId+'?infoType='+type,
method: 'get'
})
}
// 项目分组查询统计
export function findGroupCountView(proId,type) {
return request({
url: '/manage/problemmodify/getWxGroupCountView/'+proId+'?infoType='+type,
method: 'get'
})
}

View File

@ -0,0 +1,35 @@
import {
request
} from '../../utils/request'
// 统计劳务人员信息
export function findSubDeptsUsers(proId) {
return request({
url: '/manage/attendance/v1/findSubDeptsUsers/' + proId,
method: 'get'
})
}
// 统计今日出勤信息
export function findDaysAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findDaysAttendanceView/' + proId,
method: 'get'
})
}
// 统计人员出勤信息
export function findSubDeptsAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findSubDeptsAttendanceView/' + proId,
method: 'get'
})
}
// 查询人员出勤信息
export function findUsersAttendanceView(proId) {
return request({
url: '/manage/attendance/v1/findUsersAttendanceView/' + proId,
method: 'get'
})
}

View File

@ -0,0 +1,197 @@
import { request } from '../../utils/request'
// 获取流程申请类型
export function myDefinitionList(data) {
return request({
url: '/flowable/businessKey/myDefinitionList',
method: 'get',
data: data
})
}
// 启动流程实例
export function startProcessInstance(data) {
return request({
url: '/flowable/businessKey/startProcessInstance',
method: 'post',
data: data
})
}
// 查询流程节点
export function readNotes(deployId) {
return request({
url: '/flowable/businessKey/readNotes/' + deployId,
method: 'get'
})
}
// 查询流程节点
export function readDeployNotes(deployId) {
return request({
url: '/flowable/businessKey/readDeployNotes/' + deployId,
method: 'get'
})
}
// 取消流程申请
export function stopProcess(data) {
return request({
url: '/flowable/businessKey/stopProcess',
method: 'post',
data: data
})
}
// 撤回流程办理
export function revokeProcess(data) {
return request({
url: '/flowable/businessKey/revokeProcess',
method: 'post',
data: data
})
}
// 审批任务流程
export function complete(data) {
return request({
url: '/flowable/task/complete',
method: 'post',
data: data
})
}
// 批量审批任务
export function batchComplete(data) {
return request({
url: '/flowable/task/batchComplete',
method: 'post',
data: data
})
}
// 驳回任务流程
export function reject(data) {
return request({
url: '/flowable/businessKey/reject',
method: 'post',
data: data
})
}
// 退回任务流程
export function returnTask(data) {
return request({
url: '/flowable/task/return',
method: 'post',
data: data
})
}
// 委派任务流程
export function delegateTask(data) {
return request({
url: '/flowable/businessKey/delegateTask',
method: 'post',
data: data
})
}
// 转办任务流程
export function assignTask(data) {
return request({
url: '/flowable/businessKey/assignTask',
method: 'post',
data: data
})
}
// 删除流程实例
export function deleteInstance(instanceId) {
return request({
url: '/flowable/businessKey/delete/' + instanceId,
method: 'get'
})
}
// 获取所有可回退的节点
export function returnList(data) {
return request({
url: '/flowable/task/returnList',
method: 'post',
data: data
})
}
// 根据流程Id查询操作日志
export function findCommentByProcInsId(data) {
return request({
url: '/flowable/businessKey/findCommentByProcInsId',
method: 'get',
data: data
})
}
// 根据条件统计分包单位审批
export function findMyTask(query) {
return request({
url: '/flowable/businessKey/findMyTask',
method: 'get',
params: query
})
}
// 根据条件统计分包单位审批
export function quueryCount(query) {
return request({
url: '/flowable/businessKey/queryCount',
method: 'get',
params: query
})
}
// 根据条件查询我的代办任务
export function myAwaitFlowTaskList(query) {
return request({
url: '/flowable/businessKey/myAwaitFlowTaskList',
method: 'get',
params: query
})
}
// 根据条件查询我的已办任务
export function myFinishedFlowTaskList(query) {
return request({
url: '/flowable/businessKey/myFinishedFlowTaskList',
method: 'get',
params: query
})
}
// 根据条件查询所有流申请
export function allInstanceList(data) {
return request({
url: '/flowable/businessKey/allList',
method: 'get',
data: data
})
}
// 根据条件查询所有流申请
export function myInstanceList(data) {
return request({
url: '/flowable/businessKey/myList',
method: 'get',
data: data
})
}
// 根据条件统计所有流程任务
export function queryTaskCount(data) {
return request({
url: '/flowable/businessKey/queryCount',
method: 'get',
data: data
})
}

View File

@ -0,0 +1,97 @@
import {
request
} from '../../utils/request'
// 查询隐患列表
export function list(query) {
return request({
url: '/manage/problemmodify/wxList',
method: 'get',
params: query
})
}
// 统计隐患列表
export function listCount(query) {
return request({
url: '/manage/problemmodify/wxListCount',
method: 'get',
params: query
})
}
// 查询隐患详情
export function findInfo(id) {
return request({
url: '/manage/problemmodify/' + id,
method: 'get'
})
}
// 查询隐患审批详情
export function findAuditInfos(id) {
return request({
url: '/manage/problemmodify/findAuditInfos/' + id,
method: 'get'
})
}
// 新增隐患问题
export function add(data) {
return request({
url: '/manage/problemmodify',
method: 'post',
data: data
})
}
// 新增隐患草稿
export function addDraft(data) {
return request({
url: '/manage/problemmodifyDraft/addDraft',
method: 'post',
data: data
})
}
// 删除隐患详情
export function remove(id) {
return request({
url: '/manage/problemmodify/wxRemove/' + id,
method: 'delete'
})
}
// 提交隐患整改
export function modifyProblemmodify(data) {
return request({
url: '/manage/problemmodify/modifyProblemmodify',
method: 'post',
data: data
})
}
// 提交问题复检
export function checkProblemmodify(data) {
return request({
url: '/manage/problemmodify/checkProblemmodify',
method: 'post',
data: data
})
}
// 查询我上次提交的隐患信息
export function findMyLastProblemmodify(proId, type) {
return request({
url: '/manage/problemmodify/findMyLastProblemmodify/' + proId + '?infoType=' + type,
method: 'get'
})
}
// 项目分组查询统计
export function findGroupCountView(proId, type) {
return request({
url: '/manage/problemmodify/getWxGroupCountView/' + proId + '?infoType=' + type,
method: 'get'
})
}

View File

@ -6,7 +6,7 @@ import {
returnList, returnList,
readDeployNotes, readDeployNotes,
findCommentByProcInsId findCommentByProcInsId
} from '../../../api/flowable' } from '../../api/flowable'
import { import {
editApproveStatus, editApproveStatus,
findProSubDeptsInfoById, findProSubDeptsInfoById,

View File

@ -2,7 +2,7 @@ import config from '../../../config'
import { import {
readDeployNotes, readDeployNotes,
findCommentByProcInsId findCommentByProcInsId
} from '../../../api/flowable' } from '../../api/flowable'
import { import {
findProSubDeptsInfoById, findProSubDeptsInfoById,
findProSubDeptsUserInfoById findProSubDeptsUserInfoById

View File

@ -6,7 +6,7 @@ import {
quueryCount, quueryCount,
myAwaitFlowTaskList, myAwaitFlowTaskList,
myFinishedFlowTaskList, myFinishedFlowTaskList,
} from '../../../api/flowable' } from '../../api/flowable'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -8,7 +8,7 @@ import {
batchComplete, batchComplete,
myAwaitFlowTaskList, myAwaitFlowTaskList,
myFinishedFlowTaskList, myFinishedFlowTaskList,
} from '../../../api/flowable' } from '../../api/flowable'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -12,10 +12,10 @@ import {
findDaysAttendanceView, findDaysAttendanceView,
findUsersAttendanceView, findUsersAttendanceView,
findSubDeptsAttendanceView findSubDeptsAttendanceView
} from '../../api/attendance' } from '../api/attendance'
import { import {
findMyTask findMyTask
} from '../../api/flowable' } from '../api/flowable'
const app = getApp(); const app = getApp();
Page({ Page({
/** /**

View File

@ -7,7 +7,7 @@ import {
} from '../../api/publics' } from '../../api/publics'
import { import {
findMyTask findMyTask
} from '../../api/flowable' } from '../api/flowable'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -12,7 +12,7 @@ import {
import { import {
add, add,
findMyLastProblemmodify findMyLastProblemmodify
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -6,7 +6,7 @@ import {
findInfo, findInfo,
findAuditInfos, findAuditInfos,
checkProblemmodify checkProblemmodify
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -12,7 +12,7 @@ import {
import { import {
addDraft, addDraft,
findMyLastProblemmodify findMyLastProblemmodify
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -7,7 +7,7 @@ import {
remove, remove,
findInfo, findInfo,
findAuditInfos findAuditInfos
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -6,7 +6,7 @@ import {
import { import {
list, list,
listCount listCount
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -6,7 +6,7 @@ import {
findInfo, findInfo,
findAuditInfos, findAuditInfos,
modifyProblemmodify modifyProblemmodify
} from '../../../api/problemmodify' } from '../../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -7,10 +7,10 @@ import {
} from '../../api/publics' } from '../../api/publics'
import { import {
findMyTask findMyTask
} from '../../api/flowable' } from '../api/flowable'
import { import {
findGroupCountView findGroupCountView
} from '../../api/problemmodify' } from '../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -7,10 +7,10 @@ import {
} from '../../api/publics' } from '../../api/publics'
import { import {
findMyTask findMyTask
} from '../../api/flowable' } from '../api/flowable'
import { import {
findGroupCountView findGroupCountView
} from '../../api/problemmodify' } from '../api/problemmodify'
const app = getApp() const app = getApp()
Page({ Page({

View File

@ -5,7 +5,7 @@ import {
} from '../../../utils/auth' } from '../../../utils/auth'
import { import {
findMyTask findMyTask
} from '../../../api/flowable' } from '../../api/flowable'
import { import {
planScheduleList planScheduleList
} from '../../../api/project' } from '../../../api/project'