|
@@ -0,0 +1,138 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="global">
|
|
3
|
+ <div class="contentContainerGg">
|
|
4
|
+ <div class="container">
|
|
5
|
+ <el-form :inline="true">
|
|
6
|
+ <el-form-item label="时间:">
|
|
7
|
+ <el-date-picker @change="timechange" id="getWeek" v-model="datetime" type="month" format="yyyy-MM" placeholder="选择月">
|
|
8
|
+ </el-date-picker>
|
|
9
|
+ </el-form-item>
|
|
10
|
+ <el-form-item>
|
|
11
|
+ <el-button icon="el-icon-search" type="success" plain @click="getList()">
|
|
12
|
+ 查询</el-button>
|
|
13
|
+ </el-form-item>
|
|
14
|
+ </el-form>
|
|
15
|
+ <el-table border :data="tableList" highlight-current-row style="width:100%" :header-cell-style="{background:'#f8f8f8'}">
|
|
16
|
+ <el-table-column property="sTime" label="时间" align="center" >
|
|
17
|
+ <template slot-scope="scope">
|
|
18
|
+ {{ scope.row.sTime.slice(0,7) }}
|
|
19
|
+ </template>
|
|
20
|
+ </el-table-column>
|
|
21
|
+ <el-table-column property="depotName" label="公司" align="center" min-width="150">
|
|
22
|
+ <template slot-scope="scope">
|
|
23
|
+ {{ depotDic[scope.row.depotId] }}
|
|
24
|
+ </template>
|
|
25
|
+ </el-table-column>
|
|
26
|
+ <el-table-column prop="monthlyWorkQuantity" label="月工作总数(项)" align="center" />
|
|
27
|
+ <el-table-column prop="finishOnTime" label="按时完成(项)" align="center" />
|
|
28
|
+ <el-table-column prop="lateCompletion" label="逾期完成(项)" align="center" />
|
|
29
|
+ <el-table-column prop="soverdue" label="逾期未完成(项)" align="center" />
|
|
30
|
+ <el-table-column prop="sscore" label="得分" align="center" />
|
|
31
|
+ <el-table-column property="operation" label="操作" align="center">
|
|
32
|
+ <template slot-scope="scope">
|
|
33
|
+ <el-button size="mini" type="detailbtn" @click="detailbtn(scope.$index, scope.row)">查看库内工作情况排名</el-button>
|
|
34
|
+ </template>
|
|
35
|
+ </el-table-column>
|
|
36
|
+ </el-table>
|
|
37
|
+ <div class="pagination-container">
|
|
38
|
+ <el-pagination class="right" background :current-page.sync="listQuery.page" :page-size="listQuery.limit" :page-sizes="[10,20,30,40]" :total="total" @size-change="sizeChange" @current-change="pageChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
|
39
|
+ </div>
|
|
40
|
+ </div>
|
|
41
|
+ </div>
|
|
42
|
+ </div>
|
|
43
|
+</template>
|
|
44
|
+<script>
|
|
45
|
+import { getcf } from "@/api/organizationalStructureManagement/index.js"
|
|
46
|
+import { getmorejfqk } from "@/api/branchoff/index.js"
|
|
47
|
+export default {
|
|
48
|
+ data() {
|
|
49
|
+ return {
|
|
50
|
+ datetime: "",
|
|
51
|
+ // 列表数据
|
|
52
|
+ tableList: [],
|
|
53
|
+ // 分页
|
|
54
|
+ total: 0,
|
|
55
|
+ listLoading: true,
|
|
56
|
+ listQuery: {
|
|
57
|
+ page: 1,
|
|
58
|
+ limit: 10
|
|
59
|
+ },
|
|
60
|
+ roleList: [],
|
|
61
|
+ depotDic: []
|
|
62
|
+ }
|
|
63
|
+ },
|
|
64
|
+ created() {
|
|
65
|
+ this.getList()
|
|
66
|
+ this.depotDic = JSON.parse(localStorage.getItem("deportDic"))
|
|
67
|
+ },
|
|
68
|
+ methods: {
|
|
69
|
+ timechange() {
|
|
70
|
+ this.$nextTick(() => {
|
|
71
|
+ let week = document.querySelector("#getWeek").value
|
|
72
|
+ this.checkYear = week
|
|
73
|
+ })
|
|
74
|
+ },
|
|
75
|
+ getList() {
|
|
76
|
+ var condition = {
|
|
77
|
+ // depotId: this.$store.state.depotId,
|
|
78
|
+ depotId: this.$route.query.depotId,
|
|
79
|
+ sTime: this.checkYear
|
|
80
|
+ }
|
|
81
|
+ condition = JSON.stringify(condition)
|
|
82
|
+ let data = {
|
|
83
|
+ condition: condition,
|
|
84
|
+ pageIndex: this.listQuery.page,
|
|
85
|
+ pageSize: this.listQuery.limit
|
|
86
|
+ }
|
|
87
|
+ getmorejfqk(data)
|
|
88
|
+ .then(res => {
|
|
89
|
+ if (res.code == 200) {
|
|
90
|
+ this.tableList = res.data.records
|
|
91
|
+ this.listQuery.limit = res.data.size
|
|
92
|
+ this.total = res.data.total
|
|
93
|
+ } else {
|
|
94
|
+ this.$message({
|
|
95
|
+ type: "error",
|
|
96
|
+ message: res.msg
|
|
97
|
+ })
|
|
98
|
+ }
|
|
99
|
+ })
|
|
100
|
+ .catch(err => {
|
|
101
|
+ console.log(err)
|
|
102
|
+ })
|
|
103
|
+ },
|
|
104
|
+ sizeChange(v) {
|
|
105
|
+ this.listQuery.limit = v
|
|
106
|
+ this.getList()
|
|
107
|
+ },
|
|
108
|
+ pageChange(v) {
|
|
109
|
+ this.listQuery.page = v
|
|
110
|
+ this.getList()
|
|
111
|
+ },
|
|
112
|
+ detailbtn( index, row ) {
|
|
113
|
+ this.$router.push({
|
|
114
|
+ name: "kngzjftable",
|
|
115
|
+ query: {
|
|
116
|
+ depotId: row.depotId,
|
|
117
|
+ midprovinceName: this.$route.query.midprovinceName
|
|
118
|
+ }
|
|
119
|
+ })
|
|
120
|
+ }
|
|
121
|
+ }
|
|
122
|
+}
|
|
123
|
+</script>
|
|
124
|
+<style lang="scss" scoped>
|
|
125
|
+.top {
|
|
126
|
+ height: 40px;
|
|
127
|
+ line-height: 40px;
|
|
128
|
+ border-bottom: 1px solid #ccc;
|
|
129
|
+}
|
|
130
|
+.container {
|
|
131
|
+ padding: 10px;
|
|
132
|
+}
|
|
133
|
+.pagination-container {
|
|
134
|
+ margin-top: 10px;
|
|
135
|
+ margin-right: 20px;
|
|
136
|
+ text-align: right;
|
|
137
|
+}
|
|
138
|
+</style>
|