|
|
|
@ -32,12 +32,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-cut-off-rule" id="L-tab">
|
|
|
|
|
<div class="left-tab" :class="index == 1 ? 'active-tab' : ''" @click="activeTab(1)">资产核查信息</div>
|
|
|
|
|
<div :class="index == 2 ? 'active-tab' : ''" @click="activeTab(2)">核查单位信息</div>
|
|
|
|
|
<div :class="index == 2 ? 'active-tab' : ''" @click="activeTab(2)">单位完成情况</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-bottom-box">
|
|
|
|
|
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" v-if="index == 1">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="核查单位:">
|
|
|
|
|
<el-input v-model="formInline.dwmc" placeholder="请输入"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="9">
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="审核状态:">
|
|
|
|
|
<el-select v-model="formInline.status" placeholder="请选择">
|
|
|
|
|
<el-option label="待核查" value="0">
|
|
|
|
@ -90,6 +90,19 @@
|
|
|
|
|
<!-- </el-select> -->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="完成状态:">
|
|
|
|
|
<el-select v-model="formInlineTwo.taskStatus" placeholder="请选择">
|
|
|
|
|
|
|
|
|
|
<el-option label="进行中" value="1">
|
|
|
|
|
</el-option>
|
|
|
|
|
<el-option label="正常完成" value="2">
|
|
|
|
|
</el-option>
|
|
|
|
|
<el-option label="超期完成" value="3">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button size="mini" type="primary" @click="handleQuery()">查询</el-button>
|
|
|
|
@ -120,7 +133,7 @@
|
|
|
|
|
<el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status"
|
|
|
|
|
align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.status == 0" style="color: #303133;">
|
|
|
|
|
<span v-if="scope.row.status == 0" style="color: #e6a230;">
|
|
|
|
|
待核查
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.status == 1" style="color: #E6A23C;">
|
|
|
|
@ -162,24 +175,56 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</section>
|
|
|
|
|
<section v-if="index == 2">
|
|
|
|
|
<section v-if="index == 2" class="shuangchongbox">
|
|
|
|
|
<div class="shuangchongboxleftbox" :class="isshow ? '' : 'shuangchongboxleftboxShow'">
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
|
<el-button size="mini" type="primary" @click="daochu()">导出</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-loading="loading" :data="tableDataTwo" :height="tabHeader" :max-height="tabHeader"
|
|
|
|
|
:row-class-name="tableRowClassName">
|
|
|
|
|
:row-class-name="tableRowClassName" style="width: 100%">
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="单位名称" key="dwmc" width="200px" prop="dwmc" align="center" />
|
|
|
|
|
<el-table-column label="核查资产数量" key="total" prop="total" align="center" />
|
|
|
|
|
<el-table-column label="单位名称" key="dwmc" width="150px" prop="dwmc" align="center" />
|
|
|
|
|
<el-table-column label="完成状态" key="taskStatus" prop="taskStatus" class-name="table-status" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.taskStatus == 0" style="color: #F56C6C;">
|
|
|
|
|
已关闭
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.taskStatus == 1" style="color: #E6A23C;">
|
|
|
|
|
进行中
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.taskStatus == 2" style="color: #67C23A;">
|
|
|
|
|
正常完成
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.taskStatus == 3" style="color:#67C23A;">
|
|
|
|
|
超期完成
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.taskStatus == 4" style="color: #F56C6C;">
|
|
|
|
|
审核不通过
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.taskStatus == 5" style="color: #F56C6C;">
|
|
|
|
|
审核驳回
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="核查资产数量" key="total" width="180px" prop="total" align="center" />
|
|
|
|
|
<el-table-column label="完成数量" key="checked" prop="checked" align="center">
|
|
|
|
|
<!-- <template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
|
|
|
|
|
</template> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="未完成数量" key="wwcsl" prop="notChecked" align="center" />
|
|
|
|
|
<el-table-column label="未完成比例" key="checkedRatio" width="200px" prop="checkedRatio" align="center">
|
|
|
|
|
<!-- <el-table-column label="未完成数量" key="wwcsl" prop="notChecked" align="center" /> -->
|
|
|
|
|
<el-table-column label="审核退回次数" key="wwcsl" width="180px" prop="shthcs" align="center" />
|
|
|
|
|
<el-table-column label="完成比例" key="checkedRatio" prop="checkedRatio" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span style="color: #192A92;">{{ scope.row.checkedRatio }}%</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="shouqiwenzi" @click="shouqiisis">{{ isshow ? "收起" : '展开' }}>></div>
|
|
|
|
|
<div v-show="isshow" class="myEcharts" id="myEcharts" ref="myEcharts" :style="{ height: tabHeader }">
|
|
|
|
|
<!-- 123 -->
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<my-pagination id="L-pagination" :total="total" :page="pagination.current" :limit="pagination.size"
|
|
|
|
|
@pagination="getPagination" :current-page.sync="pagination.current"></my-pagination>
|
|
|
|
@ -197,7 +242,6 @@
|
|
|
|
|
<img class="icon-jt" v-if="(index + 1) != timeLineData.length" src="@/assets/images/icon-jt@2x.png" alt="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-box">
|
|
|
|
|
|
|
|
|
|
<span class="span-title">{{ item.assetName }}:</span>
|
|
|
|
|
<span class="span-time">{{ item.xfTime }}</span>
|
|
|
|
|
</div>
|
|
|
|
@ -216,9 +260,9 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import myPagination from "@/views/components/Pagination/index.vue"
|
|
|
|
|
import { getassetTaskid, geassetTaskcHc, assetTaskdwHc, assetLcpage, assetLcpageList } from "@/api/renwuApi/index.js"
|
|
|
|
|
import { getassetTaskid, geassetTaskcHc, assetTaskdwHc, assetLcpage, assetTaskdwHcBl } from "@/api/renwuApi/index.js"
|
|
|
|
|
import myDialog from "@/views/components/myDialog/index.vue"
|
|
|
|
|
|
|
|
|
|
import * as echarts from 'echarts';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
dicts: ['zc_xtlx'],
|
|
|
|
@ -228,10 +272,10 @@ export default {
|
|
|
|
|
index: 1,
|
|
|
|
|
formInline: {
|
|
|
|
|
xtlx: "",
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
formInlineTwo: {
|
|
|
|
|
dwmc: "",
|
|
|
|
|
taskStatus: ""
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
pagination: {
|
|
|
|
@ -280,13 +324,25 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
chanckListTow: [],
|
|
|
|
|
listTow: [],
|
|
|
|
|
option: null,
|
|
|
|
|
myChart: null,
|
|
|
|
|
isshow: true,
|
|
|
|
|
echartsdata: [
|
|
|
|
|
{ value: 0, name: '进行中', taskStatus: "1" },
|
|
|
|
|
{ value: 0, name: '正常完成', taskStatus: "2" },
|
|
|
|
|
{ value: 0, name: '超期完成', taskStatus: "3" },
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.cancalDebounce();
|
|
|
|
|
window.addEventListener('resize', this.cancalDebounce);
|
|
|
|
|
// 获取详情
|
|
|
|
|
this.titleInfo()
|
|
|
|
|
//获取流程节点数据
|
|
|
|
|
this.assetLcpageList()
|
|
|
|
|
//获取饼状图数据
|
|
|
|
|
this.getEchartsdata()
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
@ -294,6 +350,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
shouqiisis() {
|
|
|
|
|
console.log(123);
|
|
|
|
|
this.isshow = !this.isshow
|
|
|
|
|
// this.myEchartsis()
|
|
|
|
|
},
|
|
|
|
|
// 导出按钮
|
|
|
|
|
daochu() {
|
|
|
|
|
this.formInlineTwo.taskId = this.$route.query.id
|
|
|
|
|
this.download('/unit/assetTask/export', {
|
|
|
|
|
...this.formInlineTwo
|
|
|
|
|
}, `单位完成情况${new Date().getTime()}.xlsx`)
|
|
|
|
|
},
|
|
|
|
|
//切换资产核查tab
|
|
|
|
|
handleClick(tab, event) {
|
|
|
|
|
this.formInline = {
|
|
|
|
|
xtlx: "",
|
|
|
|
@ -371,7 +440,7 @@ export default {
|
|
|
|
|
taskId: row.taskId,
|
|
|
|
|
assetId: row.id,
|
|
|
|
|
type: this.activeName,
|
|
|
|
|
|
|
|
|
|
zcdwmc: row.zcdwmc
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -453,6 +522,7 @@ export default {
|
|
|
|
|
} else if (this.index == 2) {
|
|
|
|
|
this.formInlineTwo = {
|
|
|
|
|
dwmc: "",
|
|
|
|
|
taskStatus: ""
|
|
|
|
|
}
|
|
|
|
|
this.getListTwo();
|
|
|
|
|
}
|
|
|
|
@ -491,7 +561,13 @@ export default {
|
|
|
|
|
console.log(id);
|
|
|
|
|
|
|
|
|
|
this.resetQuery()
|
|
|
|
|
if (id == 2) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.myEchartsis()
|
|
|
|
|
|
|
|
|
|
}, 100);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true
|
|
|
|
@ -512,6 +588,70 @@ export default {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//获取Echarts数据
|
|
|
|
|
getEchartsdata() {
|
|
|
|
|
assetTaskdwHcBl({ taskId: this.$route.query.id }).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
let datalsit = res.data
|
|
|
|
|
this.echartsdata.forEach(res => {
|
|
|
|
|
datalsit.forEach(datares=>{
|
|
|
|
|
if(res.taskStatus == datares.taskStatus){
|
|
|
|
|
res.value = datares.count
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
// this.echartsdata = this.echartsdata.filter(item => item.value != "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
myEchartsis() {
|
|
|
|
|
// var chartDom = document.querySelector('.myEcharts');
|
|
|
|
|
console.log(this.$refs.myEcharts);
|
|
|
|
|
|
|
|
|
|
this.myChart = echarts.init(this.$refs.myEcharts);
|
|
|
|
|
this.option = {
|
|
|
|
|
|
|
|
|
|
legend: {
|
|
|
|
|
top: 'bottom'
|
|
|
|
|
},
|
|
|
|
|
toolbox: {
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: 'item',
|
|
|
|
|
formatter: '{b}:{c}条({d}%)'
|
|
|
|
|
},
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
name: 'Access From',
|
|
|
|
|
type: 'pie',
|
|
|
|
|
radius: '50%',
|
|
|
|
|
data: this.echartsdata,
|
|
|
|
|
|
|
|
|
|
emphasis: {
|
|
|
|
|
itemStyle: {
|
|
|
|
|
shadowBlur: 10,
|
|
|
|
|
shadowOffsetX: 0,
|
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.option && this.myChart.setOption(this.option);
|
|
|
|
|
this.myChart.on('click', (params) => {
|
|
|
|
|
// params 包含了事件的数据和图表的信息
|
|
|
|
|
console.log(params.data.taskStatus);
|
|
|
|
|
this.formInlineTwo.taskStatus = params.data.taskStatus
|
|
|
|
|
this.handleQuery()
|
|
|
|
|
// 可以在这里添加你的逻辑,比如弹窗显示详细信息等
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 修改table背景色
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
if (rowIndex % 2 !== 0) {
|
|
|
|
@ -562,4 +702,37 @@ export default {
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
margin-top: 20vh !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shuangchongbox {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.shuangchongboxleftbox {
|
|
|
|
|
width: 70%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shuangchongboxleftboxShow {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.myEcharts {
|
|
|
|
|
width: 30%;
|
|
|
|
|
// height: 100%;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shouqiwenzi {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
right: -30px;
|
|
|
|
|
width: 100px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #409EFF;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 999;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|