Commit e0e9fa25 by xiehao

fix:问题整改

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