From e0f77f2e76d87d80241ad0d0f5508dbed20055d2 Mon Sep 17 00:00:00 2001 From: wsm <2746563060@侵权。> Date: Mon, 18 May 2026 15:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BAdj=E5=B7=A1=E8=A7=86=E6=95=B4?= =?UTF-8?q?=E6=94=B9=E5=8F=B0=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DjInspectImprove.api.ts} | 26 +- .../inspectimprove/DjInspectImprove.data.ts | 252 +++++++++++++ .../inspectimprove/DjInspectImproveList.vue | 336 ++++++++++++++++++ .../components/DjInspectImproveForm.vue} | 10 +- .../components/DjInspectImproveModal.vue} | 31 +- 5 files changed, 611 insertions(+), 44 deletions(-) rename src/views/dj/{rectify/DjInspectionRectifyList.api.ts => inspectimprove/DjInspectImprove.api.ts} (59%) create mode 100644 src/views/dj/inspectimprove/DjInspectImprove.data.ts create mode 100644 src/views/dj/inspectimprove/DjInspectImproveList.vue rename src/views/dj/{rectify/components/DjInspectionRectifyListForm.vue => inspectimprove/components/DjInspectImproveForm.vue} (88%) rename src/views/dj/{rectify/components/DjInspectionRectifyListModal.vue => inspectimprove/components/DjInspectImproveModal.vue} (81%) diff --git a/src/views/dj/rectify/DjInspectionRectifyList.api.ts b/src/views/dj/inspectimprove/DjInspectImprove.api.ts similarity index 59% rename from src/views/dj/rectify/DjInspectionRectifyList.api.ts rename to src/views/dj/inspectimprove/DjInspectImprove.api.ts index 161e2e9..6dc5993 100644 --- a/src/views/dj/rectify/DjInspectionRectifyList.api.ts +++ b/src/views/dj/inspectimprove/DjInspectImprove.api.ts @@ -4,15 +4,15 @@ import { useMessage } from "/@/hooks/web/useMessage"; const { createConfirm } = useMessage(); enum Api { - list = '/rectifylist/djInspectionRectifyList/rootList', - save='/rectifylist/djInspectionRectifyList/add', - edit='/rectifylist/djInspectionRectifyList/edit', - deleteDjInspectionRectifyList = '/rectifylist/djInspectionRectifyList/delete', - importExcel = '/rectifylist/djInspectionRectifyList/importExcel', - exportXls = '/rectifylist/djInspectionRectifyList/exportXls', - loadTreeData = '/rectifylist/djInspectionRectifyList/loadTreeRoot', - getChildList = '/rectifylist/djInspectionRectifyList/childList', - getChildListBatch = '/rectifylist/djInspectionRectifyList/getChildListBatch', + list = '/dj/inspectimprove/djInspectImprove/rootList', + save='/dj/inspectimprove/djInspectImprove/add', + edit='/dj/inspectimprove/djInspectImprove/edit', + deleteDjInspectImprove = '/dj/inspectimprove/djInspectImprove/delete', + importExcel = '/dj/inspectimprove/djInspectImprove/importExcel', + exportXls = '/dj/inspectimprove/djInspectImprove/exportXls', + loadTreeData = '/dj/inspectimprove/djInspectImprove/loadTreeRoot', + getChildList = '/dj/inspectimprove/djInspectImprove/childList', + getChildListBatch = '/dj/inspectimprove/djInspectImprove/getChildListBatch', } /** @@ -34,8 +34,8 @@ export const list = (params) => /** * 删除 */ -export const deleteDjInspectionRectifyList = (params,handleSuccess) => { - return defHttp.delete({url: Api.deleteDjInspectionRectifyList, params}, {joinParamsToUrl: true}).then(() => { +export const deleteDjInspectImprove = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteDjInspectImprove, params}, {joinParamsToUrl: true}).then(() => { handleSuccess(); }); } @@ -43,7 +43,7 @@ export const deleteDjInspectionRectifyList = (params,handleSuccess) => { * 批量删除 * @param params */ -export const batchDeleteDjInspectionRectifyList = (params, handleSuccess) => { +export const batchDeleteDjInspectImprove = (params, handleSuccess) => { createConfirm({ iconType: 'warning', title: '确认删除', @@ -51,7 +51,7 @@ export const batchDeleteDjInspectionRectifyList = (params, handleSuccess) => { okText: '确认', cancelText: '取消', onOk: () => { - return defHttp.delete({url: Api.deleteDjInspectionRectifyList, data: params}, {joinParamsToUrl: true}).then(() => { + return defHttp.delete({url: Api.deleteDjInspectImprove, data: params}, {joinParamsToUrl: true}).then(() => { handleSuccess(); }); } diff --git a/src/views/dj/inspectimprove/DjInspectImprove.data.ts b/src/views/dj/inspectimprove/DjInspectImprove.data.ts new file mode 100644 index 0000000..37a8a57 --- /dev/null +++ b/src/views/dj/inspectimprove/DjInspectImprove.data.ts @@ -0,0 +1,252 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; + import { getWeekMonthQuarterYear } from '/@/utils'; + import { filterDictTextByCache } from '/@/utils/dict/JDictSelectUtil'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '树形表单父id', + align: 'center', + dataIndex: 'pid' + }, + { + title: '问题分类', + align: 'center', + dataIndex: 'questionCategory', + customRender: ({text}) => filterDictTextByCache('inspect_improve_type', text), + }, + { + title: '面上问题', + align: 'center', + dataIndex: 'mianshangQuestion' + }, + { + title: '具体问题', + align: 'left', + dataIndex: 'specicalQuestion' + }, + { + title: '巡视建议', + align: 'center', + dataIndex: 'inspectAdvice' + }, + { + 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: 'questionResLeader' + }, + { + title: '问题责任部门', + align: 'center', + dataIndex: 'questionResDept' + }, + { + title: '措施责任领导', + align: 'center', + dataIndex: 'measureResLeader' + }, + { + title: '措施责任部门', + align: 'center', + dataIndex: 'measureResDept' + }, + { + title: '整改交付成果', + align: 'center', + dataIndex: 'rectificationEvidence' + }, + { + title: '成效评价标准', + align: 'center', + dataIndex: 'evaluationCriterion' + }, + { + title: '工作进展', + align: 'center', + dataIndex: 'workProgress' + }, + { + title: '检查情况', + align: 'center', + dataIndex: 'inspectionStatus' + }, + { + title: '监督意见', + align: 'center', + dataIndex: 'supervisoryOpinion' + }, + { + title: '措施数量', + align: 'center', + dataIndex: 'measureCount' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '树形表单父id', + field: 'pid', + component: 'JTreeSelect', + componentProps: { + dict: "dj_inspect_improve,specical_question,id", + pidField: "pid", + pidValue: "0", + hasChildField: "has_child", + }, + }, + { + label: '问题分类', + field: 'questionCategory', + component: 'JDictSelectTag', + componentProps: { + dictCode: 'inspect_improve_type', + stringToNumber: true, + }, + }, + { + label: '面上问题', + field: 'mianshangQuestion', + component: 'Input', + }, + { + label: '具体问题', + field: 'specicalQuestion', + component: 'Input', + }, + { + label: '巡视建议', + field: 'inspectAdvice', + component: 'Input', + }, + { + label: '整改措施', + field: 'improveMeasure', + component: 'Input', + }, + { + label: '完成时限', + field: 'deadline', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD' + }, + }, + { + label: '目标节点', + field: 'targetNode', + component: 'Input', + }, + { + label: '问题责任领导', + field: 'questionResLeader', + component: 'Input', + }, + { + label: '问题责任部门', + field: 'questionResDept', + component: 'Input', + }, + { + label: '措施责任领导', + field: 'measureResLeader', + component: 'Input', + }, + { + label: '措施责任部门', + field: 'measureResDept', + component: 'Input', + }, + { + label: '整改交付成果', + field: 'rectificationEvidence', + component: 'Input', + }, + { + label: '成效评价标准', + field: 'evaluationCriterion', + component: 'Input', + }, + { + label: '工作进展', + field: 'workProgress', + component: 'Input', + }, + { + label: '检查情况', + field: 'inspectionStatus', + component: 'Input', + }, + { + label: '监督意见', + field: 'supervisoryOpinion', + component: 'Input', + }, + { + label: '措施数量', + field: 'measureCount', + component: 'InputNumber', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + pid: {title: '树形表单父id',order: 0,view: 'text', type: 'string',}, + questionCategory: {title: '问题分类',order: 1,view: 'number', type: 'number',}, + mianshangQuestion: {title: '面上问题',order: 2,view: 'text', type: 'string',}, + specicalQuestion: {title: '具体问题',order: 3,view: 'text', type: 'string',}, + inspectAdvice: {title: '巡视建议',order: 4,view: 'text', type: 'string',}, + improveMeasure: {title: '整改措施',order: 5,view: 'text', type: 'string',}, + deadline: {title: '完成时限',order: 6,view: 'date', type: 'string',}, + targetNode: {title: '目标节点',order: 7,view: 'text', type: 'string',}, + questionResLeader: {title: '问题责任领导',order: 8,view: 'text', type: 'string',}, + questionResDept: {title: '问题责任部门',order: 9,view: 'text', type: 'string',}, + measureResLeader: {title: '措施责任领导',order: 10,view: 'text', type: 'string',}, + measureResDept: {title: '措施责任部门',order: 11,view: 'text', type: 'string',}, + rectificationEvidence: {title: '整改交付成果',order: 12,view: 'text', type: 'string',}, + evaluationCriterion: {title: '成效评价标准',order: 13,view: 'text', type: 'string',}, + workProgress: {title: '工作进展',order: 14,view: 'text', type: 'string',}, + inspectionStatus: {title: '检查情况',order: 15,view: 'text', type: 'string',}, + supervisoryOpinion: {title: '监督意见',order: 16,view: 'text', type: 'string',}, + measureCount: {title: '措施数量',order: 17,view: 'number', type: 'number',}, +}; + + +/** +* 流程表单调用这个方法获取formSchema +* @param param +*/ +export function getBpmFormSchema(_formData): FormSchema[]{ + // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema + return formSchema; +} diff --git a/src/views/dj/inspectimprove/DjInspectImproveList.vue b/src/views/dj/inspectimprove/DjInspectImproveList.vue new file mode 100644 index 0000000..c08cc5e --- /dev/null +++ b/src/views/dj/inspectimprove/DjInspectImproveList.vue @@ -0,0 +1,336 @@ + + + + + diff --git a/src/views/dj/rectify/components/DjInspectionRectifyListForm.vue b/src/views/dj/inspectimprove/components/DjInspectImproveForm.vue similarity index 88% rename from src/views/dj/rectify/components/DjInspectionRectifyListForm.vue rename to src/views/dj/inspectimprove/components/DjInspectImproveForm.vue index e79df31..106d711 100644 --- a/src/views/dj/rectify/components/DjInspectionRectifyListForm.vue +++ b/src/views/dj/inspectimprove/components/DjInspectImproveForm.vue @@ -12,11 +12,11 @@ import {computed, defineComponent} from 'vue'; import {defHttp} from '/@/utils/http/axios'; import { propTypes } from '/@/utils/propTypes'; - import {getBpmFormSchema} from '../DjInspectionRectifyList.data'; - import {saveOrUpdateDict} from '../DjInspectionRectifyList.api'; + import {getBpmFormSchema} from '../DjInspectImprove.data'; + import {saveOrUpdateDict} from '../DjInspectImprove.api'; export default defineComponent({ - name: "DjInspectionRectifyListForm", + name: "DjInspectImproveForm", components:{ BasicForm }, @@ -40,7 +40,7 @@ }); let formData = {}; - const queryByIdUrl = '/rectifylist/djInspectionRectifyList/queryById'; + const queryByIdUrl = '/dj/inspectimprove/djInspectImprove/queryById'; async function initFormData(){ let params = {id: props.formData.dataId}; const data = await defHttp.get({url: queryByIdUrl, params}); @@ -67,4 +67,4 @@ } } }); - + \ No newline at end of file diff --git a/src/views/dj/rectify/components/DjInspectionRectifyListModal.vue b/src/views/dj/inspectimprove/components/DjInspectImproveModal.vue similarity index 81% rename from src/views/dj/rectify/components/DjInspectionRectifyListModal.vue rename to src/views/dj/inspectimprove/components/DjInspectImproveModal.vue index b1ae800..adffd7c 100644 --- a/src/views/dj/rectify/components/DjInspectionRectifyListModal.vue +++ b/src/views/dj/inspectimprove/components/DjInspectImproveModal.vue @@ -1,19 +1,15 @@ + \ No newline at end of file