|
|
|
@ -79,14 +79,24 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row id="I-rowTwo" class="radio_btn" v-if="userType == '02'">
|
|
|
|
|
<el-radio-group v-model="radio" @change="toggleOptions">
|
|
|
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
|
|
|
<el-radio-button label="1,8">初审</el-radio-button>
|
|
|
|
|
<el-radio-button label="2,7">复审</el-radio-button>
|
|
|
|
|
<el-radio-button label="3,6">专家评审</el-radio-button>
|
|
|
|
|
<el-radio-button label="4">市级评审</el-radio-button>
|
|
|
|
|
<el-radio-button label="5">评定通过</el-radio-button>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
<el-col :span="22">
|
|
|
|
|
<el-radio-group v-model="radio" @change="toggleOptions">
|
|
|
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
|
|
|
<el-radio-button label="1,8">初审</el-radio-button>
|
|
|
|
|
<el-radio-button label="2,7">复审</el-radio-button>
|
|
|
|
|
<el-radio-button label="3,6">专家评审</el-radio-button>
|
|
|
|
|
<el-radio-button label="4">市级评审</el-radio-button>
|
|
|
|
|
<el-radio-button label="5">评定通过</el-radio-button>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="2" class="zipImport">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
:disabled="multipleSelection.length > 0 ? false : true"
|
|
|
|
|
@click="zipDowmload"
|
|
|
|
|
>打包下载</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="info"
|
|
|
|
@ -143,8 +153,11 @@
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="menuList"
|
|
|
|
|
:height="tabHeader"
|
|
|
|
|
row-key="id"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" align="center" width="50" fixed>
|
|
|
|
|
<el-table-column type="selection" align="center" width="50" reserve-selection fixed />
|
|
|
|
|
<el-table-column label="序号" align="center" width="50">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
|
|
|
</template>
|
|
|
|
@ -188,8 +201,8 @@
|
|
|
|
|
<span v-if="scope.row.status == 1" class="approval_status1">初审中</span>
|
|
|
|
|
<span v-if="scope.row.status == 0" class="approval_status0">草稿</span>
|
|
|
|
|
<span v-if="scope.row.status == 8" class="approval_status8">初审-拒绝</span>
|
|
|
|
|
<span v-if="scope.row.status == 7" class="approval_status9">复审-拒绝</span>
|
|
|
|
|
<span v-if="scope.row.status == 6" class="approval_status9">专家评审-拒绝</span>
|
|
|
|
|
<!-- <span v-if="scope.row.status == 7" class="approval_status9">复审-拒绝</span> -->
|
|
|
|
|
<!-- <span v-if="scope.row.status == 6" class="approval_status9">专家评审-拒绝</span> -->
|
|
|
|
|
<span v-if="scope.row.status == 9" class="approval_status9">评定不通过</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -204,24 +217,26 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" width="140" fixed="right">
|
|
|
|
|
<!-- 0: 草稿 8:初审拒绝 7:复审拒绝 6:专家评审拒绝 9:评定不通过 -->
|
|
|
|
|
<!-- v-if="userType == '01' && (scope.row.status == 0 || scope.row.status == 8||scope.row.status == 7||scope.row.status == 6||scope.row.status == 9)" -->
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="handleEdit(scope.row)"
|
|
|
|
|
v-if="userType == '01' && (scope.row.status == 0 || scope.row.status == 8||scope.row.status == 7||scope.row.status == 6||scope.row.status == 9)"
|
|
|
|
|
v-if="userType == '01' && (scope.row.status == 0 || scope.row.status == 8)"
|
|
|
|
|
>编辑</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="handleDetail(scope.row)"
|
|
|
|
|
>查看详情</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
<!-- <el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
v-if="userType == '02' && scope.row.status == 4 && deptId == '104'"
|
|
|
|
|
@click="handleOpenCity(scope.row)"
|
|
|
|
|
>评价结果</el-button>
|
|
|
|
|
>评价结果</el-button> -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -313,7 +328,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listRecords, exportData, templateList, downloadData, uploadFile, putMunicipalBureauReview } from "@/api/onlineDeclartion/records"
|
|
|
|
|
import { listRecords, exportData, templateList, downloadData, uploadFile, putMunicipalBureauReview, exportZip } from "@/api/onlineDeclartion/records"
|
|
|
|
|
import * as XLSX from 'xlsx'
|
|
|
|
|
export default {
|
|
|
|
|
name: "Records",
|
|
|
|
@ -347,6 +362,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
enterpriseId: '',
|
|
|
|
|
templateDataList: [],
|
|
|
|
|
multipleSelection: [],
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
@ -403,6 +419,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
this.multipleSelection = val;
|
|
|
|
|
},
|
|
|
|
|
routerGo() {
|
|
|
|
|
this.$router.push({ name: 'supplementaryNew' }).catch(()=>{});
|
|
|
|
|
},
|
|
|
|
@ -456,6 +475,26 @@ export default {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
/** 打包下载 */
|
|
|
|
|
zipDowmload() {
|
|
|
|
|
// this.multipleSelection选中的数据
|
|
|
|
|
this.multipleSelection.map((item)=>{
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
exportZip().then((response) => {
|
|
|
|
|
let blob = new Blob([response.data], { type: "application/zip" });
|
|
|
|
|
let url = window.URL.createObjectURL(blob);
|
|
|
|
|
const link = document.createElement("a"); // 创建a标签
|
|
|
|
|
link.href = url;
|
|
|
|
|
link.download = "模板下载"; // 重命名文件
|
|
|
|
|
link.click();
|
|
|
|
|
URL.revokeObjectURL(url); // 释放内存
|
|
|
|
|
this.checkList = [];
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
console.log(error.data);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 切换审批项 */
|
|
|
|
|
toggleOptions(value1,value2) {
|
|
|
|
|
let arr = value1.split(',');
|
|
|
|
@ -526,6 +565,7 @@ export default {
|
|
|
|
|
templateRecordId: row.templateRecordId,
|
|
|
|
|
pageType: "edit",
|
|
|
|
|
detailId: row.id,
|
|
|
|
|
enterpriseId: row.enterpriseId
|
|
|
|
|
}})
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
@ -646,6 +686,12 @@ export default {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
.radio_btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
.zipImport {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-radio-button__inner {
|
|
|
|
|
// width: 100px;
|
|
|
|
|
// height: 36px;
|
|
|
|
|