|
@@ -12,9 +12,10 @@
|
|
<!-- 高级搜索区域 -->
|
|
<!-- 高级搜索区域 -->
|
|
<audit-advanced-query
|
|
<audit-advanced-query
|
|
:expand="expand"
|
|
:expand="expand"
|
|
|
|
+ :class="$style.advancedQuery"
|
|
:search-data="advSearchForm"
|
|
:search-data="advSearchForm"
|
|
:ref-name="searchform"
|
|
:ref-name="searchform"
|
|
- :search-style="{ height: '170px', left: '20px', top: '50px' }"
|
|
|
|
|
|
+ :search-style="{ height: '220px', left: '20px', top: '50px' }"
|
|
:search-fun="advSearch"
|
|
:search-fun="advSearch"
|
|
@searchedClick="searchedClick"
|
|
@searchedClick="searchedClick"
|
|
@resetForm="resetForm"
|
|
@resetForm="resetForm"
|
|
@@ -22,17 +23,29 @@
|
|
<template>
|
|
<template>
|
|
<a-row>
|
|
<a-row>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
|
+ <a-form-model-item label="审计机构">
|
|
|
|
+ <a-form-model-item>
|
|
|
|
+ <AuditGroupPicker
|
|
|
|
+ v-model="auditUnit"
|
|
|
|
+ :single="true"
|
|
|
|
+ :read-only="false"
|
|
|
|
+ :root-node="rootNode"
|
|
|
|
+ />
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="12">
|
|
<a-form-model-item label="项目名称" prop="projectName">
|
|
<a-form-model-item label="项目名称" prop="projectName">
|
|
<a-input v-model="advSearchForm.projectName" />
|
|
<a-input v-model="advSearchForm.projectName" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ <a-row>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
<a-form-model-item label="项目编号" prop="projectCode">
|
|
<a-form-model-item label="项目编号" prop="projectCode">
|
|
<a-input v-model="advSearchForm.projectCode" />
|
|
<a-input v-model="advSearchForm.projectCode" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
- </a-row>
|
|
|
|
- <a-row>
|
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
<a-form-model-item label="整改责任主体" prop="auditedUnit">
|
|
<a-form-model-item label="整改责任主体" prop="auditedUnit">
|
|
<!-- <a-input v-model="advSearchForm.auditedUnit" /> -->
|
|
<!-- <a-input v-model="advSearchForm.auditedUnit" /> -->
|
|
@@ -45,6 +58,8 @@
|
|
/>
|
|
/>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ <a-row>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
<a-form-model-item label="年度计划" prop="planYear">
|
|
<a-form-model-item label="年度计划" prop="planYear">
|
|
<a-date-picker
|
|
<a-date-picker
|
|
@@ -129,6 +144,7 @@ import auditAdvancedQuery from '../../components/audit-advanced-query.vue'
|
|
import auditAdvancedQueryMixins from '../../components/audit-advanced-query-mixins'
|
|
import auditAdvancedQueryMixins from '../../components/audit-advanced-query-mixins'
|
|
import auditAdvancedExport from '../../components/audit-advanced-export'
|
|
import auditAdvancedExport from '../../components/audit-advanced-export'
|
|
import AuditRectplanprojectService from './audit-rectplanproject-service'
|
|
import AuditRectplanprojectService from './audit-rectplanproject-service'
|
|
|
|
+import AuditGroupPicker from '../../components/picker/audit-group-picker.vue'
|
|
import components from './_import-components/audit-rectplanproject-list-import'
|
|
import components from './_import-components/audit-rectplanproject-list-import'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -136,13 +152,16 @@ export default {
|
|
metaInfo: {
|
|
metaInfo: {
|
|
title: '整改计划列表',
|
|
title: '整改计划列表',
|
|
},
|
|
},
|
|
- components: { ...components, auditAdvancedQuery, auditAdvancedExport },
|
|
|
|
|
|
+ components: { ...components, auditAdvancedQuery, auditAdvancedExport, AuditGroupPicker },
|
|
mixins: [auditAdvancedQueryMixins],
|
|
mixins: [auditAdvancedQueryMixins],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
endOpen: false,
|
|
endOpen: false,
|
|
year: null,
|
|
year: null,
|
|
searchYear: '',
|
|
searchYear: '',
|
|
|
|
+ auditUnit: [],
|
|
|
|
+ rootNode: {},
|
|
|
|
+ auditUnitName: '',
|
|
yearArry: [],
|
|
yearArry: [],
|
|
searchValue: '',
|
|
searchValue: '',
|
|
mainSendUnit: [],
|
|
mainSendUnit: [],
|
|
@@ -274,6 +293,7 @@ export default {
|
|
searchform: 'searchform',
|
|
searchform: 'searchform',
|
|
expand: false,
|
|
expand: false,
|
|
advSearchForm: {
|
|
advSearchForm: {
|
|
|
|
+ auditUnit: '',
|
|
projectName: '',
|
|
projectName: '',
|
|
projectCode: '',
|
|
projectCode: '',
|
|
auditedUnit: '',
|
|
auditedUnit: '',
|
|
@@ -287,7 +307,34 @@ export default {
|
|
unitName: '',
|
|
unitName: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.initAuditUnit()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ initAuditUnit() {
|
|
|
|
+ let userInfo = getUserInfo()
|
|
|
|
+ const params = {
|
|
|
|
+ orgId: userInfo.deptId,
|
|
|
|
+ }
|
|
|
|
+ axios({
|
|
|
|
+ url: 'api/xcoa-mobile/v1/iamorg/getCurrentUserGroup',
|
|
|
|
+ method: 'get',
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ userInfo = res.data
|
|
|
|
+ params.orgId = res.data.id
|
|
|
|
+ axios({
|
|
|
|
+ url: 'api/xcoa-mobile/v1/iamorg/findIamOrg',
|
|
|
|
+ method: 'post',
|
|
|
|
+ params,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ const deptCode = userInfo.id.toString()
|
|
|
|
+ const deptName = res.data.orgName
|
|
|
|
+ this.rootNode = { code: deptCode, name: deptName, id: res.data.id }
|
|
|
|
+ this.auditUnit = [this.rootNode]
|
|
|
|
+ this.initedSteps++
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
export() {
|
|
export() {
|
|
this.$refs.rectplanprojectExport.exportdata()
|
|
this.$refs.rectplanprojectExport.exportdata()
|
|
},
|
|
},
|
|
@@ -334,6 +381,15 @@ export default {
|
|
},
|
|
},
|
|
advSearch() {
|
|
advSearch() {
|
|
this.tableExpressions = []
|
|
this.tableExpressions = []
|
|
|
|
+ // 审计机构
|
|
|
|
+ if (this.auditUnit[0] !== undefined) {
|
|
|
|
+ this.tableExpressions.push({
|
|
|
|
+ dataType: 'str',
|
|
|
|
+ name: 'unitName',
|
|
|
|
+ op: 'like',
|
|
|
|
+ stringValue: this.auditUnit[0].name,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
// 项目名称
|
|
// 项目名称
|
|
if (this.advSearchForm.projectName) {
|
|
if (this.advSearchForm.projectName) {
|
|
this.tableExpressions.push({
|
|
this.tableExpressions.push({
|
|
@@ -343,7 +399,7 @@ export default {
|
|
stringValue: `%${this.advSearchForm.projectName}%`,
|
|
stringValue: `%${this.advSearchForm.projectName}%`,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- console.log(this.tableExpressions)
|
|
|
|
|
|
+ // console.log(this.tableExpressions)
|
|
// 项目编号
|
|
// 项目编号
|
|
if (this.advSearchForm.projectCode) {
|
|
if (this.advSearchForm.projectCode) {
|
|
this.tableExpressions.push({
|
|
this.tableExpressions.push({
|
|
@@ -353,7 +409,7 @@ export default {
|
|
stringValue: `%${this.advSearchForm.projectCode}%`,
|
|
stringValue: `%${this.advSearchForm.projectCode}%`,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- // 项目组长
|
|
|
|
|
|
+ // 整改责任主体
|
|
if (this.advSearchForm.auditedUnit) {
|
|
if (this.advSearchForm.auditedUnit) {
|
|
this.tableExpressions.push({
|
|
this.tableExpressions.push({
|
|
dataType: 'str',
|
|
dataType: 'str',
|
|
@@ -622,6 +678,21 @@ export default {
|
|
right: 20.5px;
|
|
right: 20.5px;
|
|
z-index: 100;
|
|
z-index: 100;
|
|
}
|
|
}
|
|
|
|
+.advancedQuery {
|
|
|
|
+ :global(.ant-col .ant-form-item-label) {
|
|
|
|
+ width: 20% !important;
|
|
|
|
+ }
|
|
|
|
+ :global(.reporttablecardxm) {
|
|
|
|
+ :global(.ant-table-body) {
|
|
|
|
+ height: auto !important;
|
|
|
|
+ min-height: auto !important;
|
|
|
|
+ overflow: auto;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ :global(.ant-col .ant-form-item-control-wrapper) {
|
|
|
|
+ width: 80% !important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
.buttonSpacing {
|
|
.buttonSpacing {
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
}
|
|
}
|