|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="workbench-box">
|
|
|
|
|
<header v-if="userType == '02'">
|
|
|
|
|
<div class="workbench-box" v-if="userType == '02'">
|
|
|
|
|
<header>
|
|
|
|
|
<div class="workbench-serch">
|
|
|
|
|
<div class="workbench-title">
|
|
|
|
|
<div class="title-item" :class="checked == index ? 'checked-item' : ''" v-for="(item,index) in tabs" :key="index" @click="changeTab(index)">
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<div class="warn-main-left" v-if="item.alertManner == 2">
|
|
|
|
|
<div class="warn-main-img"><img src="@/assets/images/warn-green.png" alt=""></div>
|
|
|
|
|
<div class="warn-main-content">
|
|
|
|
|
<div class="content-title">【{{ item.declarationName }}】【预计{{ item.daysAdvance }}天后{{ item.alertRecipients == 1 ? "填报结束" : item.alertRecipients == 2 ? "建设完成" : "" }}】</div>
|
|
|
|
|
<div class="content-title">【{{ item.declarationName }}】【预计{{ item.daysAdvance }}天后建设完成】</div>
|
|
|
|
|
<div class="content-middle">{{ item.alertContent }}</div>
|
|
|
|
|
<div class="content-time">{{ item.alertTime }}</div>
|
|
|
|
|
</div>
|
|
|
|
@ -89,7 +89,7 @@
|
|
|
|
|
<div class="right-header-title">【待办提醒】</div>
|
|
|
|
|
<el-button @click="MoreRecords('all')" type="text" v-if="backlogArray.length > 0">>> 更多记录</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-main" v-if="backlogArray.length > 0 && userType == '02'" v-loading="loading">
|
|
|
|
|
<div class="right-main" v-if="backlogArray.length > 0" v-loading="loading">
|
|
|
|
|
<div class="main-items" v-for="(item,index) in backlogArray" :key="index" :class="index % 2 == 0 ? '':'main-item'">
|
|
|
|
|
<div>【{{ item.matter }}】 </div>
|
|
|
|
|
<div>{{ (item.status == 1 ? "待初审" : item.status == 2 ? "待复审" : item.status == 3 ? "待终审" : "") }}</div>
|
|
|
|
@ -97,15 +97,6 @@
|
|
|
|
|
<div @click="MoreRecords('id',item.status)" class="last_child_item">去审批</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-main" v-else-if="backlogArray.length > 0 && userType == '01'" v-loading="loading">
|
|
|
|
|
<div class="main-items" v-for="(item,index) in backlogArray" :key="index" :class="index % 2 == 0 ? '':'main-item'">
|
|
|
|
|
<div>{{ item.enterpriseDirectory}}</div>
|
|
|
|
|
<!-- <div>{{ item.enterpriseName }}</div> -->
|
|
|
|
|
<div>{{ (item.status == 0 ? "待填报" : item.status == 8 ? "初审不通过" : item.status == 10 ? "初审退回修改" : item.status == 7 ? "复审不通过" : item.status == 9 ? "终审不通过" : item.status == 5 ? "终审通过" : "") }}</div>
|
|
|
|
|
<!-- <div>审批【知识产权】材料</div> -->
|
|
|
|
|
<div @click="MoreRecords('id',item.status)" class="last_child_item" :class="item.status == 0 ? 'tab-red' : item.status == 10 ? 'tab-red' : 'last_child_item'">{{ item.status == 0 ? "去填报" : item.status == 10 ? "去修改" : "去查看"}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-main" v-else>
|
|
|
|
|
<el-divider content-position="center">暂无</el-divider>
|
|
|
|
|
</div>
|
|
|
|
@ -124,14 +115,18 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
<homeIndex v-else-if="userType == '01'" />
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { approvalList, approvalEdit, uploadFile } from "@/api/onlineDeclartion/pendingReview"
|
|
|
|
|
import { listRecords } from "@/api/onlineDeclartion/records"
|
|
|
|
|
import { approvalList, uploadFile } from "@/api/onlineDeclartion/pendingReview"
|
|
|
|
|
import { selectAll, workSearch } from "@/api/jin_ji_hu/home"
|
|
|
|
|
import { chiefAll, enterpriseAll, changeIsRead } from "@/api/jin_ji_hu/intelligentReminder"
|
|
|
|
|
import { chiefAll, changeIsRead } from "@/api/jin_ji_hu/intelligentReminder"
|
|
|
|
|
import homeIndex from "@/views/home/index.vue"
|
|
|
|
|
export default {
|
|
|
|
|
dicts: ["project_small_type"],
|
|
|
|
|
components:{
|
|
|
|
|
homeIndex
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 判断登陆用户是何身份⌈ 01 : 企业 02 : 政务 ⌋
|
|
|
|
@ -143,29 +138,8 @@ export default {
|
|
|
|
|
pageSize:10,
|
|
|
|
|
approvalStatusStr: 0,
|
|
|
|
|
},
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
creditCode: this.$store.state.user.name,
|
|
|
|
|
statusStr: [0, 5, 7, 8, 9, 10],
|
|
|
|
|
},
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {
|
|
|
|
|
approvalOpinions: ''
|
|
|
|
|
},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
approvalStatus: [
|
|
|
|
|
{ required: true, message: "请选择审批状态", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
approvalOpinions: [
|
|
|
|
|
{ required: true, message: "名录维护方式不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
fileList: [],
|
|
|
|
|
uploadList: [],
|
|
|
|
|
tabs: [
|
|
|
|
|
{
|
|
|
|
|
value:"查企业"
|
|
|
|
@ -182,14 +156,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
if(this.userType == "02") {
|
|
|
|
|
if(this.userType == '02') {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.govRemind();
|
|
|
|
|
} else if(this.userType == "01") {
|
|
|
|
|
this.getListTwo();
|
|
|
|
|
this.entRemind();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
// 待审批
|
|
|
|
@ -201,20 +171,6 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 待填报
|
|
|
|
|
getListTwo(){
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listRecords(this.queryParams).then(response => {
|
|
|
|
|
this.backlogArray = response.rows
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 企业端智能提醒
|
|
|
|
|
entRemind(){
|
|
|
|
|
enterpriseAll().then(res=>{
|
|
|
|
|
this.remindList = res.data;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 政务端智能提醒
|
|
|
|
|
govRemind(){
|
|
|
|
|
chiefAll().then(res=>{
|
|
|
|
@ -225,11 +181,7 @@ export default {
|
|
|
|
|
putMemo(item){
|
|
|
|
|
if(item.isRead == 1) {
|
|
|
|
|
changeIsRead({id:item.id}).then(res=>{
|
|
|
|
|
if(this.userType == "02") {
|
|
|
|
|
this.govRemind();
|
|
|
|
|
} else if(this.userType == "01") {
|
|
|
|
|
this.entRemind();
|
|
|
|
|
}
|
|
|
|
|
this.govRemind();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(item.projectId) {
|
|
|
|
@ -237,11 +189,6 @@ export default {
|
|
|
|
|
name: 'projectInfo',
|
|
|
|
|
query: { userId: Number(item.projectId) }
|
|
|
|
|
})
|
|
|
|
|
} else if(item.alertRecipients == 1 && item.alertManner == 2) {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Records',
|
|
|
|
|
params: { statusChange: "0" }
|
|
|
|
|
})
|
|
|
|
|
} else if(item.alertManner == 1) {
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.info = item;
|
|
|
|
@ -249,37 +196,16 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 更多记录
|
|
|
|
|
MoreRecords(type,status){
|
|
|
|
|
if(this.userType == "02") {
|
|
|
|
|
if(type == 'all') {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'PendingReview',
|
|
|
|
|
params: { approvalStatusStr: "" }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'PendingReview',
|
|
|
|
|
params: { approvalStatusStr: "0" }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if(this.userType == "01") {
|
|
|
|
|
if(type == 'all') {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Records',
|
|
|
|
|
params: { statusChange: "" }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
if(status == 0 || status == 10) {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Records',
|
|
|
|
|
params: { statusChange: "0" }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Records',
|
|
|
|
|
params: { statusChange: "1" }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(type == 'all') {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'PendingReview',
|
|
|
|
|
params: { approvalStatusStr: "" }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'PendingReview',
|
|
|
|
|
params: { approvalStatusStr: "0" }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 切换查询tab
|
|
|
|
|