From 5de72c310f81227e70fa541fa8b377390e43b19e Mon Sep 17 00:00:00 2001 From: hongawen <83944980@qq.com> Date: Fri, 31 May 2024 08:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E6=B5=8B=E8=AE=A1=E5=88=92=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../harmonicSurvey/components/planAdd.vue | 7 +- .../harmonicSurvey/components/planManage.vue | 96 +------ .../harmonicSurvey/components/planTest.vue | 260 +++++++++++++++++ .../harmonicSurvey/components/testManage.vue | 269 ++++++++++++++++++ .../pqs/supervise/harmonicSurvey/detail.vue | 1 - .../pqs/supervise/harmonicSurvey/index.vue | 28 +- .../supervise/harmonicSurvey/plan/detail.vue | 152 ++++++++++ .../supervise/harmonicSurvey/test/detail.vue | 152 ++++++++++ 8 files changed, 859 insertions(+), 106 deletions(-) create mode 100644 src/views/pqs/supervise/harmonicSurvey/components/planTest.vue create mode 100644 src/views/pqs/supervise/harmonicSurvey/components/testManage.vue create mode 100644 src/views/pqs/supervise/harmonicSurvey/plan/detail.vue create mode 100644 src/views/pqs/supervise/harmonicSurvey/test/detail.vue diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue b/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue index 16162106..55225d81 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue @@ -2,14 +2,13 @@ - + @@ -125,9 +124,7 @@ const formdata: any = ref({ orgNo: dictData.state.area[0].id, planStartTime: '', planEndTime: '', - planComplateTime: '', planName: '', - leader: '', rgeneralSurveyPlanDetailAddParm: [], subCount: '', busCount: '', @@ -219,9 +216,7 @@ const open = (text: string, row?: any) => { orgNo: dictData.state.area[0].id, planStartTime: '', planEndTime: '', - planComplateTime: '', planName: '', - leader: '', rgeneralSurveyPlanDetailAddParm: [], subCount: '', busCount: '', diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue index eeaa1ef6..cdadc4d3 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue @@ -5,25 +5,11 @@ 新增计划 - + - - - 选择审核人: - - - - - @@ -33,14 +19,12 @@ import TableStore from '@/utils/tableStore' import Table from '@/components/table/index.vue' import TableHeader from '@/components/table/header/index.vue' import { ElMessage, ElMessageBox } from 'element-plus' -import { submitAuditUser,cancel } from '@/api/process-boot/generalTest' +import { cancel } from '@/api/process-boot/generalTest' import planAdd from './planAdd.vue' import { useRouter } from 'vue-router' -import { useDictData } from '@/stores/dictData' import { queryPlan,removeSurvey } from '@/api/process-boot/generalTest' import { getUserByRoleType } from '@/api/user-boot/user' -const dictData = useDictData() const { push } = useRouter() const dialogVisible=ref(false) const tableRef = ref() @@ -51,23 +35,26 @@ const TableHeaderRef = ref() const auditList:any = ref([]) const auditUser = ref('') -const ruleFormRef = ref() const tableStore = new TableStore({ - url: '/supervision-boot/generalSurvey/getSurvey', + url: '/supervision-boot/surveyPlan/surveyPlanPage', publicHeight: 65, method: 'POST', column: [ - { width: '60', type: 'checkbox' }, - { field: 'orgName', title: '单位' }, + { + title: '序号', + width: 60, + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, + { field: 'deptName', title: '普测负责单位' }, { field: 'planName', title: '普测计划名称' }, - { field: 'leader', title: '计划负责人' }, - + { field: 'substation', title: '变电站' }, { field: 'planStartTime', title: '计划开始时间' }, { field: 'planEndTime', title: '计划结束时间' }, - { field: 'status', title: '计划状态', @@ -85,7 +72,6 @@ const tableStore = new TableStore({ 4: '已取消' } }, - { title: '操作', width: '180', @@ -129,41 +115,6 @@ const tableStore = new TableStore({ cancelLeave(row) } } - // { - // name: 'edit', - // title: '编辑', - // type: '', - // disabled: row => { - // return !(row.status == 0 || row.status == 3|| row.status == 4) - // }, - // icon: 'el-icon-Plus', - // render: 'basicButton', - // click: async row => { - // planAddRef.value.open('编辑计划', row) - // } - // }, - // { - // name: 'del', - // title: '删除', - // type: 'danger', - // icon: 'el-icon-Delete', - // render: 'confirmButton', - // disabled: row => { - // return !(row.status == 0 || row.status == 3|| row.status == 4) - // }, - // popconfirm: { - // confirmButtonText: '确认', - // cancelButtonText: '取消', - // confirmButtonType: 'danger', - // title: '确定删除吗?' - // }, - // click: row => { - // removeSurvey([row.planNo]).then(res => { - // ElMessage.success('删除成功') - // tableStore.index() - // }) - // } - // } ] } ], @@ -182,27 +133,6 @@ const add = () => { planAddRef.value.open('普测计划新增') } -// 提交审核 -const planReviewFn = () => { - if(auditUser.value == ''){ - return ElMessage.warning('请选择审核人') - } - let planNo: any = [] - tableStore.table.selection.forEach(item => { - if (item.status == 0 || item.status == 2) { - planNo.push(item.planNo) - } - }) - submitAuditUser({ - auditUser: auditUser.value, - planIds: planNo - }).then(res => { - dialogVisible.value = false - ElMessage.success('提交成功!') - tableStore.index() - }) - -} const exportFn = () => { let form = JSON.parse(JSON.stringify(tableStore.table.params)) form.pageNum = 1 @@ -232,7 +162,7 @@ const cancelLeave = async (row: any) => { }) // 发起取消 let data = { - id: row.planNo, + id: row.id, processInstanceId: row.processInstanceId, reason: value } diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue new file mode 100644 index 00000000..b3e02476 --- /dev/null +++ b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue @@ -0,0 +1,260 @@ + + + diff --git a/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue new file mode 100644 index 00000000..42c1eab3 --- /dev/null +++ b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue @@ -0,0 +1,269 @@ + + + + diff --git a/src/views/pqs/supervise/harmonicSurvey/detail.vue b/src/views/pqs/supervise/harmonicSurvey/detail.vue index 91eb1de2..a319a7a2 100644 --- a/src/views/pqs/supervise/harmonicSurvey/detail.vue +++ b/src/views/pqs/supervise/harmonicSurvey/detail.vue @@ -1,5 +1,4 @@