|
|
@@ -15,7 +15,15 @@
|
|
|
</router-link> -->
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="exportExcel">导出</el-button> -->
|
|
|
<el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
- v-if="!selectAllButtonBoolean&&userSelectBoolean" @click="onSelectAllButton">一键审批</el-button>
|
|
|
+ v-if="!selectAllButtonBoolean&&userSelectBoolean&&firstBatchPerm" @click="onSelectAllButton(1)">一键初审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
+ v-if="!selectAllButtonBoolean&&userSelectBoolean&&secondBatchPerm" @click="onSelectAllButton(2)">一键复审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
+ v-if="!selectAllButtonBoolean&&userSelectBoolean&&busSepBatchPerm" @click="onSelectAllButton(3)">一键分办</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
+ v-if="!selectAllButtonBoolean&&userSelectBoolean&&busAuditBatchPerm" @click="onSelectAllButton(4)">一键审核(业务)</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
+ v-if="!selectAllButtonBoolean&&userSelectBoolean&&profRegBatchPerm" @click="onSelectAllButton(7)">一键审批(企管)</el-button>
|
|
|
<el-button type="info" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="selectAllButtonBoolean"
|
|
|
@click="onSelectAllButtonDelete">取消</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
@@ -110,7 +118,7 @@
|
|
|
</el-card>
|
|
|
|
|
|
<!-- :selectDeptBoolean="false"-->
|
|
|
- <submit-popup ref="submitpopup" :eveId="eveIdList" :formData="formData" @refreshPage="initDatas"></submit-popup>
|
|
|
+ <submit-popup ref="submitpopup" :eveId="eveIdList" :formData="formData" @refreshPage="initDatas" @tableLoading="changeTableLoading"></submit-popup>
|
|
|
|
|
|
<el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
|
|
|
<el-form ref="advancedsearchForm" label-width="110px">
|
|
|
@@ -290,6 +298,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ selectedAuditBtn: '',
|
|
|
auditOptions: [
|
|
|
{
|
|
|
value: 0,
|
|
|
@@ -501,6 +510,9 @@ export default {
|
|
|
this.statusFun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeTableLoading () {
|
|
|
+ this.tableLoading = true
|
|
|
+ },
|
|
|
getYearList () {
|
|
|
let now = new Date()
|
|
|
let nowYear = now.getFullYear()
|
|
|
@@ -508,7 +520,6 @@ export default {
|
|
|
},
|
|
|
getBatchAuditPerm () {
|
|
|
permissionApi.getBatchAuditPermission(this.$axios).then(res => {
|
|
|
- console.log('所以权限', res.data)
|
|
|
if (res.status === 200) {
|
|
|
this.firstBatchPerm = res.data[0]
|
|
|
this.secondBatchPerm = res.data[1]
|
|
|
@@ -531,7 +542,6 @@ export default {
|
|
|
},
|
|
|
// 一键处理
|
|
|
onSelectAll (e) {
|
|
|
- console.log(e)
|
|
|
var list = []
|
|
|
e.map((item, index) => {
|
|
|
list.push(item.Id)
|
|
|
@@ -540,28 +550,29 @@ export default {
|
|
|
},
|
|
|
// 筛选
|
|
|
selectableFun (row, index) {
|
|
|
- if (row.Status == 1 && this.firstBatchPerm) {
|
|
|
+ if (row.Status == 1 && this.firstBatchPerm && row.Status == this.selectedAuditBtn) {
|
|
|
return true
|
|
|
- } else if (row.Status == 2 && this.secondBatchPerm) {
|
|
|
+ } else if (row.Status == 2 && this.secondBatchPerm && row.Status == this.selectedAuditBtn) {
|
|
|
return true
|
|
|
- } else if (row.Status == 3 && this.busSepBatchPerm) {
|
|
|
+ } else if (row.Status == 3 && this.busSepBatchPerm && row.Status == this.selectedAuditBtn) {
|
|
|
return true
|
|
|
- } else if (row.Status == 4 && this.busAuditBatchPerm) {
|
|
|
+ } else if (row.Status == 4 && this.busAuditBatchPerm && row.Status == this.selectedAuditBtn) {
|
|
|
return true
|
|
|
- } else if (row.Status == 7 && this.profRegBatchPerm) {
|
|
|
+ } else if (row.Status == 7 && this.profRegBatchPerm && row.Status == this.selectedAuditBtn) {
|
|
|
return true
|
|
|
} else {
|
|
|
return false
|
|
|
}
|
|
|
},
|
|
|
// 一键处理按钮
|
|
|
- onSelectAllButton () {
|
|
|
+ onSelectAllButton (val) {
|
|
|
+ this.selectedAuditBtn = val
|
|
|
this.selectAllButtonBoolean = true
|
|
|
},
|
|
|
// 一键处理确定
|
|
|
onSelectAllButtonTrue () {
|
|
|
if (this.eveIdList != 0 && this.eveIdList != undefined) {
|
|
|
- if (this.busSepBatchPerm && !this.firstBatchPerm && !this.secondBatchPerm && !this.busAuditBatchPerm && !this.profRegBatchPerm) {
|
|
|
+ if (this.selectedAuditBtn === 3) {
|
|
|
this.formData.Status = '3'
|
|
|
this.$refs.submitpopup.auditOrgChange()
|
|
|
this.$refs.submitpopup.dialogBusinessOfficeSeparateBatchAuditVisible = true
|