Commit e0e9fa25 by xiehao

fix:问题整改

1 parent 40f527c6
...@@ -796,6 +796,18 @@ export function delReportManage(params) { ...@@ -796,6 +796,18 @@ export function delReportManage(params) {
export function updRectifyReform(params) { export function updRectifyReform(params) {
return post(EADC_ARRCHITECTURE + '/rectifyReform/fb', params) return post(EADC_ARRCHITECTURE + '/rectifyReform/fb', params)
} }
// 架构督查-督查问题整改-提交
export function subRectifyReform(params) {
return post(EADC_ARRCHITECTURE + '/rectifyReform/sub', params)
}
// 架构督查-督查问题整改-未通过
export function noPassRectifyReform(params) {
return post(EADC_ARRCHITECTURE + '/rectifyReform/np', params)
}
// 架构督查-督查问题整改-关闭
export function closeRectifyReform(params) {
return post(EADC_ARRCHITECTURE + '/rectifyReform/close', params)
}
// 概设评审基础管理 --新增事项 // 概设评审基础管理 --新增事项
export function addMatterInfo(params) { export function addMatterInfo(params) {
return post(EADC_ARRCHITECTURE + '/int-info/ad', params) return post(EADC_ARRCHITECTURE + '/int-info/ad', params)
......
...@@ -25,8 +25,9 @@ ...@@ -25,8 +25,9 @@
<script> <script>
import Form from '@/components/Form.vue' import Form from '@/components/Form.vue'
import { updRectifyReform } from '@/api' import {closeRectifyReform, updRectifyReform} from '@/api'
import { whether } from '@/utils/dictionary' import {whether} from '@/utils/dictionary'
export default { export default {
props: { props: {
visible: { visible: {
...@@ -54,7 +55,7 @@ export default { ...@@ -54,7 +55,7 @@ export default {
options: whether, options: whether,
initValue: 0, initValue: 0,
span: 24, span: 24,
rules: [{ required: true, trigger: 'blur', message: '不能为空' }], rules: [{required: true, trigger: 'blur', message: '不能为空'}],
}, },
] ]
}, },
...@@ -81,7 +82,7 @@ export default { ...@@ -81,7 +82,7 @@ export default {
state: 3, state: 3,
id: this.id, id: this.id,
} }
updRectifyReform(params).then((res) => { closeRectifyReform(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
loading.close() loading.close()
this.$message.success('关闭成功') this.$message.success('关闭成功')
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" /> <SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template> </template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
...@@ -39,9 +39,11 @@ import SearchForm from '@/components/SearchForm.vue' ...@@ -39,9 +39,11 @@ import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue' import TableConfig from '@/components/TableConfig.vue'
import CloseProblem from './CloseProblem.vue' import CloseProblem from './CloseProblem.vue'
import { updRectifyReform } from '@/api/index.js' import {noPassRectifyReform, subRectifyReform} from '@/api/index.js'
import { querySupervisionProblem } from '@/api/interface' import {querySupervisionProblem} from '@/api/interface'
import { whether, rectificationState } from '@/utils/dictionary' import {rectificationState, whether} from '@/utils/dictionary'
import {getDictTypeOptions} from "@/utils";
export default { export default {
name: 'supervisionProblemEdit', name: 'supervisionProblemEdit',
components: { components: {
...@@ -60,6 +62,7 @@ export default { ...@@ -60,6 +62,7 @@ export default {
}, },
visible: false, visible: false,
rowId: null, rowId: null,
sysBuildOrgOptions: []
} }
}, },
computed: { computed: {
...@@ -75,21 +78,22 @@ export default { ...@@ -75,21 +78,22 @@ export default {
}, },
columns() { columns() {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, {label: '序号', type: 'index', width: '80px'},
{ label: '项目名称', prop: 'prjName', width: '200px' }, {label: '项目名称', prop: 'prjName', width: '200px'},
{ {
label: '承建单位', label: '承建单位',
width: '160px',
prop: 'buildOrg', prop: 'buildOrg',
}, options: this.sysBuildOrgOptions,
{ label: '督查名称', width: '200px', prop: 'supervName' }, collectionType: true,
{ label: '项目总评价', prop: 'prjOpinion', width: '200px' }, width: '300px',
{ label: '项目总评分', prop: 'prjScore', width: '120px' }, },
{label: '督查名称', width: '200px', prop: 'supervName'},
{ label: '指标名称', prop: 'indexName', width: '120px' }, {label: '项目总评价', prop: 'prjOpinion', width: '200px'},
{ label: '指标评价', prop: 'indexOpinion' }, {label: '项目总评分', prop: 'prjScore', width: '120px'},
{ label: '指标评分', prop: 'score' }, {label: '指标名称', prop: 'indexName', width: '120px'},
{ label: '整改日期', prop: 'createTime', width: '120px' }, {label: '指标评价', prop: 'indexOpinion'},
{label: '指标评分', prop: 'score'},
{label: '整改日期', prop: 'createTime', width: '120px'},
{ {
label: '整改情况', label: '整改情况',
prop: 'state', prop: 'state',
...@@ -102,7 +106,7 @@ export default { ...@@ -102,7 +106,7 @@ export default {
options: whether, options: whether,
collectionType: true, collectionType: true,
}, },
{ label: '问题等级', prop: 'level' }, {label: '问题等级', prop: 'level'},
{ {
label: '操作', label: '操作',
type: 'operation', type: 'operation',
...@@ -144,8 +148,15 @@ export default { ...@@ -144,8 +148,15 @@ export default {
] ]
}, },
}, },
created() {}, created() {
this.getDicts();
},
methods: { methods: {
getDicts() {
getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res
})
},
// 表格勾选的数据 // 表格勾选的数据
selectionChange(data) { selectionChange(data) {
this.selectRows = data this.selectRows = data
...@@ -186,22 +197,37 @@ export default { ...@@ -186,22 +197,37 @@ export default {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) }).then(() => {
.then(() => {
const params = { const params = {
...row, ...row,
state, state,
} }
updRectifyReform(params).then((res) => { switch (state) {
case 1:
subRectifyReform(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success(`${text}成功`) this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
});
break
case 2:
noPassRectifyReform(params).then((res) => {
if (res.code === 200) {
this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
});
break
default:
break
}
}).catch(() => {
}) })
})
.catch(() => {})
}, },
fnCloseProblem(row) { fnCloseProblem(row) {
this.visible = true this.visible = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!