Merge branch 'master' of https://e.coding.net/ctcdevteam/cma_search
This commit is contained in:
commit
2418acaac8
|
|
@ -211,7 +211,7 @@ export const asyncRoutes = [
|
|||
path: 'basicGoal',
|
||||
name: 'basicGoal',
|
||||
component: () => import('@/views/supervisionNew/basicGoal.vue'),
|
||||
meta: { title: '年度基础目标' , perms: ['task2']}
|
||||
meta: { title: '集团年度目标' , perms: ['task2']}
|
||||
},
|
||||
{
|
||||
path: 'basicGoalDept',
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@
|
|||
<span>质量风险管理库</span>
|
||||
</div>
|
||||
<p>
|
||||
<el-link href="/media/default/集团公司基础质量风险管理库.wlsx" target="_blank" type="primary">集团公司基础质量风险管理库.wlsx</el-link>
|
||||
<el-link href="/media/default/集团公司基础质量风险管理库.xlsx" target="_blank" type="primary">集团公司基础质量风险管理库.xlsx</el-link>
|
||||
</p>
|
||||
<p>
|
||||
<el-link href="/media/default/基础质量风险管理库引用文件.rar" target="_blank" type="primary">基础质量风险管理库引用文件.rar</el-link>
|
||||
|
|
|
|||
|
|
@ -3,38 +3,22 @@
|
|||
<el-card>
|
||||
<div>
|
||||
<el-date-picker
|
||||
v-model="listQuery.search"
|
||||
v-model="listQuery.year"
|
||||
type="year"
|
||||
placeholder="选择年"
|
||||
value-format="yyyy"
|
||||
style="width:300px"
|
||||
@change="yearChange"
|
||||
>
|
||||
</el-date-picker>
|
||||
<!-- <el-select
|
||||
v-model="listQuery.cycle"
|
||||
placeholder="类型"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
@change="handleFilter"
|
||||
>
|
||||
<el-option label="目标定制" value="10"/>
|
||||
<el-option label="日常监督" value="20"/>
|
||||
</el-select> -->
|
||||
<el-button
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@click="handleFilter"
|
||||
>搜索</el-button>
|
||||
<el-button
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="resetFilter"
|
||||
>重置</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card style="margin-top: 10px">
|
||||
<el-card style="margin-top: 6px">
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="dataList.results"
|
||||
|
|
@ -42,7 +26,7 @@
|
|||
fit
|
||||
stripe
|
||||
highlight-current-row
|
||||
max-height="600"
|
||||
:height="heightTable"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="年份" prop="year" width="80"></el-table-column>
|
||||
|
|
@ -53,13 +37,13 @@
|
|||
<el-table-column label="能力验证满意率(%)" prop="pgoal_4"></el-table-column>
|
||||
<el-table-column label="客户投诉处理满意率(%)" prop="pgoal_5"></el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
<!-- <pagination
|
||||
v-show="dataList.count > 0"
|
||||
:total="dataList.count"
|
||||
:page.sync="listQuery.page"
|
||||
:limit.sync="listQuery.page_size"
|
||||
@pagination="getList"
|
||||
/>
|
||||
/> -->
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -83,11 +67,14 @@
|
|||
goal_key__in:'pgoal_1,pgoal_2,pgoal_3,pgoal_4,pgoal_5',
|
||||
},
|
||||
taskList:[],
|
||||
heightTable:null,
|
||||
listLoading:false
|
||||
};
|
||||
},
|
||||
mounted(){
|
||||
this.getList();
|
||||
let height = document.getElementsByClassName('app-main')[0].clientHeight;
|
||||
this.heightTable = height-90;
|
||||
},
|
||||
methods:{
|
||||
checkPermission,
|
||||
|
|
@ -117,13 +104,15 @@
|
|||
//获取任务列表===》获取任务id
|
||||
getList(){
|
||||
let that = this;
|
||||
that.dataList.results = [];
|
||||
that.dataList.count =0;
|
||||
that.listLoading = true;
|
||||
if(that.listQuery.year==''){
|
||||
that.listQuery.year = new Date().getFullYear();
|
||||
let date = new Date();
|
||||
that.listQuery.year = date.getFullYear()+'';
|
||||
}
|
||||
that.listQuery.page=0;
|
||||
getPgoalDeptList(that.listQuery).then((res) => {
|
||||
debugger;
|
||||
if (res.data) {
|
||||
let data0 = res.data;
|
||||
let data =data0.filter(item=>{
|
||||
|
|
@ -136,7 +125,6 @@
|
|||
{year:that.listQuery.year,dept_name:'集团',dept:'000',pgoal_1:'',pgoal_2:'',pgoal_3:'',pgoal_4:'',pgoal_5:''}
|
||||
];
|
||||
for(let i=0;i<data.length;i++){
|
||||
debugger;
|
||||
let index = alreadyId.indexOf(data[i].belong_dept)
|
||||
if(index>-1){
|
||||
}else{
|
||||
|
|
@ -163,16 +151,18 @@
|
|||
}
|
||||
}
|
||||
that.dataList.results = dataList;
|
||||
that.listLoading = false;
|
||||
}
|
||||
that.listLoading = false;
|
||||
}else{
|
||||
that.listLoading = false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
},
|
||||
resetFilter(){
|
||||
this.listQuery.search = '';
|
||||
this.getList();
|
||||
yearChange(value){
|
||||
let year = new Date(value).getFullYear()+'';
|
||||
this.listQuery.year = year;
|
||||
},
|
||||
handleFilter(){
|
||||
this.getList();
|
||||
|
|
|
|||
|
|
@ -903,10 +903,10 @@ import user from "@/store/modules/user";
|
|||
obj.goal_name = item.goal_name;
|
||||
obj.goal_file = item.goal_file;
|
||||
obj.goal_value_b = item.goal_value_b;
|
||||
if(item.goal_file!==null&&item.goal_file!==''){
|
||||
if(item.id){
|
||||
updatePgoalDept(item.id,obj).then(res=>{
|
||||
this.saveLoading = false;
|
||||
console.log(res)
|
||||
if(res.code>=200){
|
||||
this.$message.success('保存成功')
|
||||
}
|
||||
|
|
@ -915,8 +915,6 @@ import user from "@/store/modules/user";
|
|||
})
|
||||
}else{
|
||||
createPgoalDept(obj).then(res=>{
|
||||
// debugger;
|
||||
console.log(res)
|
||||
this.saveLoading = false;
|
||||
if(res.code>=200){
|
||||
this.$message.success('保存成功')
|
||||
|
|
@ -925,7 +923,9 @@ import user from "@/store/modules/user";
|
|||
this.saveLoading = false;
|
||||
})
|
||||
}
|
||||
|
||||
}else{
|
||||
this.$message.warning('请上传实施细则文件')
|
||||
}
|
||||
},
|
||||
handlePreview(file) {
|
||||
if ("url" in file) {
|
||||
|
|
|
|||
|
|
@ -1,158 +0,0 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
日常监督填报
|
||||
</el-card>
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="12">
|
||||
<el-card style="margin-top:6px">
|
||||
已发放报告
|
||||
<el-input></el-input>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-card style="margin-top:6px">
|
||||
应发放报告
|
||||
<el-input></el-input>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="8">
|
||||
<el-card class="task task-item" shadow="hover" style="padding:10px;box-sizing: border-box;">
|
||||
<div slot="header" style="display:flex">
|
||||
<span class="cardTitle">不准确报告</span>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="addFiles()">添加</el-button>
|
||||
</div>
|
||||
<div slot="header" style="display: flex;justify-content: space-between;">
|
||||
<!-- <div>
|
||||
<span>总数:</span>
|
||||
<el-input style="width:100px;"> </el-input>
|
||||
</div> -->
|
||||
|
||||
|
||||
</div>
|
||||
<el-table></el-table>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-card title="超期报告">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>超期报告</span>
|
||||
<el-input></el-input>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-card title="能力验证结果">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>能力验证结果</span>
|
||||
<el-input></el-input>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-card title="客户投诉">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>客户投诉</span>
|
||||
<el-input></el-input>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-card title="风险识别">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>风险识别</span>
|
||||
<el-input></el-input>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-card title="外部监督检查">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>外部监督检查</span>
|
||||
<el-input></el-input>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getmytasklist,
|
||||
} from "@/api/task";
|
||||
import { getOrgList, getSubOrgList } from "@/api/org";
|
||||
import checkPermission from "@/utils/permission";
|
||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||
import mytaskrecord from "@/views/supervision/mytaskrecord";
|
||||
export default {
|
||||
components: { Pagination, mytaskrecord },
|
||||
data() {
|
||||
return {
|
||||
taskList: [],
|
||||
listQuery: {
|
||||
page: 1,
|
||||
page_size: 20,
|
||||
},
|
||||
form:{
|
||||
|
||||
},
|
||||
listLoading: true,
|
||||
query:null,
|
||||
orgData: [],
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getOrgList();
|
||||
},
|
||||
methods: {
|
||||
checkPermission,
|
||||
getList() {
|
||||
this.listLoading = true;
|
||||
getmytasklist(this.listQuery).then((response) => {
|
||||
if (response.data) {
|
||||
this.taskList = response.data;
|
||||
}
|
||||
this.listLoading = false;
|
||||
});
|
||||
},
|
||||
getOrgList() {
|
||||
if (this.checkPermission(["record_confirm"])) {
|
||||
getOrgList({ can_supervision: true }).then((res) => {
|
||||
this.orgData = res.data;
|
||||
});
|
||||
} else {
|
||||
getSubOrgList().then((res) => {
|
||||
this.orgData = res.data;
|
||||
});
|
||||
}
|
||||
},
|
||||
clickRow(obj){
|
||||
this.query = {
|
||||
dept:obj.dept,
|
||||
task:obj.task
|
||||
}
|
||||
},
|
||||
handleFilter() {
|
||||
this.listQuery.page = 1;
|
||||
|
||||
this.getList();
|
||||
},
|
||||
handleDo(val){
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.cardTitle{
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<el-card>
|
||||
<div>
|
||||
<el-input
|
||||
v-model="listQuery.search"
|
||||
v-model="listQuery.year"
|
||||
placeholder="请输入年份"
|
||||
style="width: 300px"
|
||||
class="filter-item"
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
},
|
||||
listQuery:{
|
||||
page: 1,
|
||||
search:'',
|
||||
year:'',
|
||||
page_size: 20,
|
||||
},
|
||||
typeOptions:{
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@
|
|||
> -->
|
||||
<el-link
|
||||
v-if="
|
||||
checkPermission(['task_update'])
|
||||
checkPermission(['task2'])
|
||||
"
|
||||
type="danger"
|
||||
size="small"
|
||||
|
|
@ -457,7 +457,7 @@
|
|||
</style>
|
||||
<script>
|
||||
import { getOrgList } from "@/api/org";
|
||||
import { getTask2, addDeptsTask2, getTask2Do, startTask2, confirmTaskdept ,
|
||||
import { getTask2, addDeptsTask2, getTask2Do, startTask2, confirmTaskdept ,deleteTaskdept,
|
||||
getPgoalDeptList,getRcList,getPtList,getRiskList,getComplaintList,getOinspectList} from "@/api/task";
|
||||
import Pagination from "@/components/Pagination";
|
||||
import checkPermission from "@/utils/permission";
|
||||
|
|
@ -569,11 +569,11 @@ export default {
|
|||
},
|
||||
gettaskdeptall() {
|
||||
this.listLoading = true;
|
||||
getTask2Do({task2:this.task.id})
|
||||
getTask2Do({task2:this.task.id,page:0})
|
||||
.then((res) => {
|
||||
this.listLoading = false;
|
||||
this.taskdeptall = [];
|
||||
let taskdept = res.data.results;
|
||||
let taskdept = res.data;
|
||||
taskdept.forEach(item=>{
|
||||
let obj = item;
|
||||
let pross = Number((item.count_up/item.count_all).toFixed(4))
|
||||
|
|
|
|||
Loading…
Reference in New Issue