Commit 22bd15e5 by xiehao

fix:复查整改

1 parent 41a8eb9e
......@@ -774,6 +774,20 @@ export function editFeedback(params) {
export function updReportManage(params) {
return post(EADC_ARRCHITECTURE + '/reportManage/upd', params)
}
// 架构督查-督查通报管理提交
export function subReportManage(params) {
return post(EADC_ARRCHITECTURE + '/reportManage/sub', params)
}
// 架构督查-督查通报管理审核
export function auditReportManage(params) {
return post(EADC_ARRCHITECTURE + '/reportManage/aud', params)
}
// 架构督查-督查通报管理发布
export function pubReportManage(params) {
return post(EADC_ARRCHITECTURE + '/reportManage/pub', params)
}
// 架构督查-督查通报管理删除
export function delReportManage(params) {
return post(EADC_ARRCHITECTURE + '/reportManage/del', params)
......
......@@ -6,6 +6,13 @@ export const stateCode = [
{ label: '未发布', value: 0 },
{ label: '已发布', value: 1 },
]
// 通报状态
export const reportStateCode = [
{label: '未提交', value: 0},
{label: '已提交', value: 1},
{label: '已审核', value: 2},
{label: '已发布', value: 3},
]
// 指标级别
export const indexLevel = [
{ label: '一级指标', value: '1' },
......
......@@ -11,15 +11,15 @@
<list-page>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
>
</table-config>
</template>
......@@ -27,10 +27,10 @@
<!-- 新增弹窗 -->
<Edit
@querySearch="querySearch"
:visible.sync="visible"
:row-data="rowData"
:title="dialogTitle"
@querySearch="querySearch"
:visible.sync="visible"
:row-data="rowData"
:title="dialogTitle"
></Edit>
<!-- <ApprovalDialog
:row-data="rowData"
......@@ -46,10 +46,11 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue'
import Edit from './Edit.vue'
import { updReportManage, delReportManage } from '@/api/index.js'
import { querySupervisionNotifyManagement } from '@/api/interface'
import { approvalStatusOptions } from '@/utils/dictionary'
import { stateCode } from '@/utils/architectureInspectionDis'
import {auditReportManage, delReportManage, pubReportManage, subReportManage} from '@/api/index.js'
import {querySupervisionNotifyManagement} from '@/api/interface'
import {reportStateCode} from '@/utils/architectureInspectionDis'
import {getDictTypeOptions} from "@/utils";
export default {
name: 'supervisionNotifyManagement',
components: {
......@@ -70,6 +71,7 @@ export default {
rowData: {},
dialogTitle: '',
approvalVisible: false,
sysBuildOrgOptions: []
}
},
computed: {
......@@ -85,9 +87,15 @@ export default {
},
columns() {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '项目名称', prop: 'prjName' },
{ label: '承建单位', prop: 'buildOrg', width: '300px' },
{label: '序号', type: 'index', width: '80px'},
{label: '项目名称', prop: 'prjName'},
{
label: '承建单位',
prop: 'buildOrg',
options: this.sysBuildOrgOptions,
collectionType: true,
width: '300px',
},
{
label: '通报时间',
width: '160px',
......@@ -98,9 +106,9 @@ export default {
width: '100px',
prop: 'state',
collectionType: true,
options: stateCode,
options: reportStateCode,
},
{ label: '修改意见', prop: 'opinion', width: '220px' },
{label: '修改意见', prop: 'opinion', width: '220px'},
{
label: '操作',
type: 'operation',
......@@ -156,8 +164,15 @@ export default {
]
},
},
created() {},
created() {
this.getDicts();
},
methods: {
getDicts() {
getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res
})
},
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
......@@ -205,43 +220,67 @@ export default {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
const params = {
...row,
state,
}
switch (state) {
case 1:
subReportManage(params).then((res) => {
if (res.code === 200) {
this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
});
break
case 2:
auditReportManage(params).then((res) => {
if (res.code === 200) {
this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
});
break
case 3:
pubReportManage(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(() => {
})
.then(() => {
const params = {
...row,
state,
}
updReportManage(params).then((res) => {
if (res.code === 200) {
this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {})
},
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
...row,
}).then(() => {
const params = {
...row,
}
delReportManage(params).then((res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
delReportManage(params).then((res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error('删除失败')
}
})
})
.catch(() => {})
}).catch(() => {
})
},
fnEdit(row) {
this.dialogTitle = '编辑通报'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!