diff --git a/src/views/dq/inspectTask/DqInspectTask.api.ts b/src/views/dq/inspectTask/DqInspectTask.api.ts new file mode 100644 index 0000000..ccedac6 --- /dev/null +++ b/src/views/dq/inspectTask/DqInspectTask.api.ts @@ -0,0 +1,81 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/dqinspecttask/dqInspectTask/list', + save='/dqinspecttask/dqInspectTask/add', + edit='/dqinspecttask/dqInspectTask/edit', + deleteOne = '/dqinspecttask/dqInspectTask/delete', + deleteBatch = '/dqinspecttask/dqInspectTask/deleteBatch', + importExcel = '/dqinspecttask/dqInspectTask/importExcel', + exportXls = '/dqinspecttask/dqInspectTask/exportXls', + queryDataById = '/dqinspecttask/dqInspectTask/queryById', + dqInspectProgressList = '/dqinspecttask/dqInspectTask/queryDqInspectProgressByMainId', +} +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 查询子表数据 + * @param params + */ +export const queryDqInspectProgressListByMainId = (id) => defHttp.get({url: Api.dqInspectProgressList, params:{ id }}); + +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}); +} + +/** +* 根据id查询数据 +* @param params +*/ +export const queryDataById = (id) => defHttp.get({url: Api.queryDataById, params:{ id }}); + diff --git a/src/views/dq/inspectTask/DqInspectTask.data.ts b/src/views/dq/inspectTask/DqInspectTask.data.ts new file mode 100644 index 0000000..1d2b894 --- /dev/null +++ b/src/views/dq/inspectTask/DqInspectTask.data.ts @@ -0,0 +1,207 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types' +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '具体问题ID', + align:"center", + dataIndex: 'problemId' + }, + { + title: '密级', + align:"center", + dataIndex: 'secretLevel_dictText' + }, + { + title: '整改措施', + align:"center", + dataIndex: 'improveMeasure' + }, + { + title: '完成时限', + align:"center", + dataIndex: 'deadline', + customRender:({text}) =>{ + text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + return text; + }, + }, + { + title: '目标节点', + align:"center", + dataIndex: 'targetNode' + }, + { + title: '措施责任领导', + align:"center", + dataIndex: 'measureResLeader_dictText' + }, + { + title: '措施责任部门', + align:"center", + dataIndex: 'measureResDept_dictText' + }, + { + title: '整改交付成果', + align:"center", + dataIndex: 'rectificationEvidence' + }, + { + title: '成效评价标准', + align:"center", + dataIndex: 'evaluationCriterion' + }, + { + title: '是否需要党群领导审批', + align:"center", + dataIndex: 'isNeedAppro_dictText' + }, + { + title: '党群领导', + align:"center", + dataIndex: 'supDeptleaderid_dictText' + }, + { + title: '检查情况', + align:"center", + dataIndex: 'inspectionStatus' + }, + { + title: '监督意见', + align:"center", + dataIndex: 'supervisoryOpinion' + }, + { + title: '措施数量', + align:"center", + dataIndex: 'measureCount' + }, + { + title: '流程实例ID', + align:"center", + dataIndex: 'bpmProcessId' + }, + { + title: '流程状态', + align:"center", + dataIndex: 'bpmStatus_dictText' + }, + { + title: '整改状态', + align:"center", + dataIndex: 'taskStatus' + }, + { + title: '督办次数', + align:"center", + dataIndex: 'superviseCount' + }, + { + title: '排序', + align:"center", + dataIndex: 'sortNo' + }, +]; + +//子表表格配置 +export const dqInspectProgressColumns: JVxeColumn[] = [ + { + title: '反馈部门ID', + key: 'feedbackDeptId', + type: JVxeTypes.input, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '反馈部门名称', + key: 'feedbackDeptName', + type: JVxeTypes.input, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '反馈人ID', + key: 'feedbackPersonId', + type: JVxeTypes.input, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '反馈人姓名', + key: 'feedbackPersonName', + type: JVxeTypes.input, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '实际完成时间', + key: 'actualTime', + type: JVxeTypes.datetime, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '工作进展', + key: 'workProgress', + type: JVxeTypes.input, + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + { + title: '进展状态', + key: 'bpmStatus', + type: JVxeTypes.select, + options:[], + dictCode:"feedback_status", + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, + ] + +// 高级查询数据 +export const superQuerySchema = { + problemId: {title: '具体问题ID',order: 0,view: 'text', type: 'string',}, + secretLevel: {title: '密级',order: 1,view: 'list', type: 'string',dictCode: 'secret_level',}, + improveMeasure: {title: '整改措施',order: 2,view: 'text', type: 'string',}, + deadline: {title: '完成时限',order: 3,view: 'date', type: 'string',}, + targetNode: {title: '目标节点',order: 4,view: 'text', type: 'string',}, + measureResLeader: {title: '措施责任领导',order: 5,view: 'sel_user', type: 'string',}, + measureResDept: {title: '措施责任部门',order: 6,view: 'sel_depart', type: 'string',}, + rectificationEvidence: {title: '整改交付成果',order: 7,view: 'text', type: 'string',}, + evaluationCriterion: {title: '成效评价标准',order: 8,view: 'text', type: 'string',}, + isNeedAppro: {title: '是否需要党群领导审批',order: 9,view: 'radio', type: 'string',dictCode: 'yn',}, + supDeptleaderid: {title: '党群领导',order: 10,view: 'sel_user', type: 'string',}, + inspectionStatus: {title: '检查情况',order: 11,view: 'text', type: 'string',}, + supervisoryOpinion: {title: '监督意见',order: 12,view: 'text', type: 'string',}, + measureCount: {title: '措施数量',order: 13,view: 'number', type: 'number',}, + bpmProcessId: {title: '流程实例ID',order: 14,view: 'text', type: 'string',}, + bpmStatus: {title: '流程状态',order: 15,view: 'list', type: 'string',dictCode: 'super_status',}, + taskStatus: {title: '整改状态',order: 16,view: 'text', type: 'string',}, + superviseCount: {title: '督办次数',order: 17,view: 'text', type: 'string',}, + sortNo: {title: '排序',order: 18,view: 'number', type: 'number',}, + //子表高级查询 + dqInspectProgress: { + title: '工作进展反馈', + view: 'table', + fields: { + feedbackDeptId: {title: '反馈部门ID',order: 0,view: 'text', type: 'string',}, + feedbackDeptName: {title: '反馈部门名称',order: 1,view: 'text', type: 'string',}, + feedbackPersonId: {title: '反馈人ID',order: 2,view: 'text', type: 'string',}, + feedbackPersonName: {title: '反馈人姓名',order: 3,view: 'text', type: 'string',}, + actualTime: {title: '实际完成时间',order: 4,view: 'datetime', type: 'string',}, + workProgress: {title: '工作进展',order: 5,view: 'text', type: 'string',}, + bpmStatus: {title: '进展状态',order: 6,view: 'list', type: 'string',dictCode: 'feedback_status',}, + } + }, +}; diff --git a/src/views/dq/inspectTask/DqInspectTaskList.vue b/src/views/dq/inspectTask/DqInspectTaskList.vue new file mode 100644 index 0000000..64e8b7f --- /dev/null +++ b/src/views/dq/inspectTask/DqInspectTaskList.vue @@ -0,0 +1,323 @@ + + + + \ No newline at end of file diff --git a/src/views/dq/inspectTask/components/DqInspectTaskForm.vue b/src/views/dq/inspectTask/components/DqInspectTaskForm.vue new file mode 100644 index 0000000..76a878d --- /dev/null +++ b/src/views/dq/inspectTask/components/DqInspectTaskForm.vue @@ -0,0 +1,349 @@ + + + + diff --git a/src/views/dq/inspectTask/components/DqInspectTaskModal.vue b/src/views/dq/inspectTask/components/DqInspectTaskModal.vue new file mode 100644 index 0000000..ef8a89f --- /dev/null +++ b/src/views/dq/inspectTask/components/DqInspectTaskModal.vue @@ -0,0 +1,67 @@ + + + + \ No newline at end of file