|
|
@@ -26,25 +26,28 @@
|
|
26
|
26
|
/>
|
|
27
|
27
|
|
|
28
|
28
|
<el-table-column label="工单数量" align="center" min-width>
|
|
29
|
|
- <el-table-column
|
|
30
|
|
- label="接单量"
|
|
31
|
|
- prop="total"
|
|
32
|
|
- align="center"
|
|
33
|
|
- min-width
|
|
34
|
|
- ></el-table-column>
|
|
|
29
|
+ <el-table-column label="接单量" align="center" min-width>
|
|
|
30
|
+ <template slot-scope="scope">
|
|
|
31
|
+ <el-button type="text" @click="btnClickEvents(2, '', scope.row)">
|
|
|
32
|
+ {{ scope.row.total }}
|
|
|
33
|
+ </el-button>
|
|
|
34
|
+ </template>
|
|
|
35
|
+ </el-table-column>
|
|
35
|
36
|
<el-table-column label="完成情况" align="center" min-width>
|
|
36
|
|
- <el-table-column
|
|
37
|
|
- prop="complete"
|
|
38
|
|
- label="完成量"
|
|
39
|
|
- align="center"
|
|
40
|
|
- min-width
|
|
41
|
|
- />
|
|
42
|
|
- <el-table-column
|
|
43
|
|
- prop="undone"
|
|
44
|
|
- label="未完成量"
|
|
45
|
|
- align="center"
|
|
46
|
|
- min-width
|
|
47
|
|
- />
|
|
|
37
|
+ <el-table-column label="完成量" align="center" min-width>
|
|
|
38
|
+ <template slot-scope="scope">
|
|
|
39
|
+ <el-button type="text" @click="btnClickEvents(1, '', scope.row)">
|
|
|
40
|
+ {{ scope.row.complete }}
|
|
|
41
|
+ </el-button>
|
|
|
42
|
+ </template>
|
|
|
43
|
+ </el-table-column>
|
|
|
44
|
+ <el-table-column label="未完成量" align="center" min-width>
|
|
|
45
|
+ <template slot-scope="scope">
|
|
|
46
|
+ <el-button type="text" @click="btnClickEvents(0, '', scope.row)">
|
|
|
47
|
+ {{ scope.row.undone }}
|
|
|
48
|
+ </el-button>
|
|
|
49
|
+ </template>
|
|
|
50
|
+ </el-table-column>
|
|
48
|
51
|
<el-table-column
|
|
49
|
52
|
prop="completerate"
|
|
50
|
53
|
label="完成率"
|
|
|
@@ -58,12 +61,16 @@
|
|
58
|
61
|
min-width
|
|
59
|
62
|
v-if="listType === '1'"
|
|
60
|
63
|
>
|
|
61
|
|
- <el-table-column
|
|
62
|
|
- prop="overtime"
|
|
63
|
|
- label="数量"
|
|
64
|
|
- align="center"
|
|
65
|
|
- min-width
|
|
66
|
|
- />
|
|
|
64
|
+ <el-table-column label="数量" align="center" min-width>
|
|
|
65
|
+ <template slot-scope="scope">
|
|
|
66
|
+ <el-button
|
|
|
67
|
+ type="text"
|
|
|
68
|
+ @click="btnClickEvents(2, 'overtime', scope.row)"
|
|
|
69
|
+ >
|
|
|
70
|
+ {{ scope.row.overtime }}
|
|
|
71
|
+ </el-button>
|
|
|
72
|
+ </template>
|
|
|
73
|
+ </el-table-column>
|
|
67
|
74
|
<el-table-column
|
|
68
|
75
|
prop="overtimerate"
|
|
69
|
76
|
label="超时率"
|
|
|
@@ -72,19 +79,18 @@
|
|
72
|
79
|
/>
|
|
73
|
80
|
</el-table-column>
|
|
74
|
81
|
</el-table-column>
|
|
75
|
|
- <el-table-column
|
|
76
|
|
- label="不满意量"
|
|
77
|
|
- align="center"
|
|
78
|
|
- min-width
|
|
79
|
|
- v-if="listType === '1'"
|
|
80
|
|
- >
|
|
|
82
|
+ <el-table-column label="不满意量" align="center" min-width>
|
|
81
|
83
|
<el-table-column label="质量" align="center" min-width>
|
|
82
|
|
- <el-table-column
|
|
83
|
|
- prop="Quality"
|
|
84
|
|
- label="数量"
|
|
85
|
|
- align="center"
|
|
86
|
|
- min-width
|
|
87
|
|
- />
|
|
|
84
|
+ <el-table-column label="数量" align="center" min-width>
|
|
|
85
|
+ <template slot-scope="scope">
|
|
|
86
|
+ <el-button
|
|
|
87
|
+ type="text"
|
|
|
88
|
+ @click="btnClickEvents(2, 'Quality', scope.row)"
|
|
|
89
|
+ >
|
|
|
90
|
+ {{ scope.row.Quality }}
|
|
|
91
|
+ </el-button>
|
|
|
92
|
+ </template>
|
|
|
93
|
+ </el-table-column>
|
|
88
|
94
|
<el-table-column
|
|
89
|
95
|
prop="Qualityrate"
|
|
90
|
96
|
label="不满意率"
|
|
|
@@ -93,12 +99,16 @@
|
|
93
|
99
|
/>
|
|
94
|
100
|
</el-table-column>
|
|
95
|
101
|
<el-table-column label="态度" align="center" min-width>
|
|
96
|
|
- <el-table-column
|
|
97
|
|
- prop="Attitude"
|
|
98
|
|
- label="数量"
|
|
99
|
|
- align="center"
|
|
100
|
|
- min-width
|
|
101
|
|
- />
|
|
|
102
|
+ <el-table-column label="数量" align="center" min-width>
|
|
|
103
|
+ <template slot-scope="scope">
|
|
|
104
|
+ <el-button
|
|
|
105
|
+ type="text"
|
|
|
106
|
+ @click="btnClickEvents(2, 'Attitude', scope.row)"
|
|
|
107
|
+ >
|
|
|
108
|
+ {{ scope.row.Attitude }}
|
|
|
109
|
+ </el-button>
|
|
|
110
|
+ </template>
|
|
|
111
|
+ </el-table-column>
|
|
102
|
112
|
<el-table-column
|
|
103
|
113
|
prop="Attituderate"
|
|
104
|
114
|
label="不满意率"
|
|
|
@@ -107,12 +117,16 @@
|
|
107
|
117
|
/>
|
|
108
|
118
|
</el-table-column>
|
|
109
|
119
|
<el-table-column label="效率" align="center" min-width>
|
|
110
|
|
- <el-table-column
|
|
111
|
|
- prop="Efficiency"
|
|
112
|
|
- label="数量"
|
|
113
|
|
- align="center"
|
|
114
|
|
- min-width
|
|
115
|
|
- />
|
|
|
120
|
+ <el-table-column label="数量" align="center" min-width>
|
|
|
121
|
+ <template slot-scope="scope">
|
|
|
122
|
+ <el-button
|
|
|
123
|
+ type="text"
|
|
|
124
|
+ @click="btnClickEvents(2, 'Efficiency', scope.row)"
|
|
|
125
|
+ >
|
|
|
126
|
+ {{ scope.row.Efficiency }}
|
|
|
127
|
+ </el-button>
|
|
|
128
|
+ </template>
|
|
|
129
|
+ </el-table-column>
|
|
116
|
130
|
<el-table-column
|
|
117
|
131
|
prop="Efficiencyrate"
|
|
118
|
132
|
label="不满意率"
|
|
|
@@ -121,22 +135,6 @@
|
|
121
|
135
|
/>
|
|
122
|
136
|
</el-table-column>
|
|
123
|
137
|
</el-table-column>
|
|
124
|
|
- <el-table-column
|
|
125
|
|
- label="不满意量"
|
|
126
|
|
- align="center"
|
|
127
|
|
- min-width
|
|
128
|
|
- v-if="listType === '2'"
|
|
129
|
|
- >
|
|
130
|
|
- <el-table-column label="总量" align="center" min-width>
|
|
131
|
|
- <el-table-column prop="score" label="数量" align="center" min-width />
|
|
132
|
|
- <el-table-column
|
|
133
|
|
- prop="scorerate"
|
|
134
|
|
- label="不满意率"
|
|
135
|
|
- align="center"
|
|
136
|
|
- min-width
|
|
137
|
|
- />
|
|
138
|
|
- </el-table-column>
|
|
139
|
|
- </el-table-column>
|
|
140
|
138
|
</el-table>
|
|
141
|
139
|
<!-- <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex" :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList" /> -->
|
|
142
|
140
|
</div>
|
|
|
@@ -144,12 +142,13 @@
|
|
144
|
142
|
|
|
145
|
143
|
<script>
|
|
146
|
144
|
import Pagination from "@/components/context/Pagination"; // 对el-pagination 二次封装
|
|
|
145
|
+import reportComList from "../../cpns/reportComList";
|
|
147
|
146
|
import {
|
|
148
|
147
|
officeWorkReport,
|
|
149
|
148
|
officeWorkCarReport,
|
|
150
|
149
|
} from "@/api/leadConcern/leadConcern";
|
|
151
|
150
|
|
|
152
|
|
-import { getNowDate, getPreDate, tableSpanArr } from "@/utils";
|
|
|
151
|
+import { tableSpanArr } from "@/utils";
|
|
153
|
152
|
export default {
|
|
154
|
153
|
name: "TrafficWorkReport",
|
|
155
|
154
|
props: {
|
|
|
@@ -167,22 +166,44 @@ export default {
|
|
167
|
166
|
fieldListFlag: {},
|
|
168
|
167
|
dataLists: [],
|
|
169
|
168
|
spanArr: [],
|
|
170
|
|
- ruleForm: {
|
|
171
|
|
- startTime: [
|
|
172
|
|
- getPreDate(3600 * 1000 * 24) + " 19:00:00",
|
|
173
|
|
- getNowDate() + " 19:00:00",
|
|
174
|
|
- ],
|
|
175
|
|
- way: "",
|
|
176
|
|
- },
|
|
|
169
|
+ timeObj: {},
|
|
|
170
|
+ ruleFormReport: {},
|
|
177
|
171
|
};
|
|
178
|
172
|
},
|
|
179
|
173
|
computed: {},
|
|
180
|
174
|
mounted() {},
|
|
181
|
175
|
methods: {
|
|
|
176
|
+ btnClickEvents(value, key, data) {
|
|
|
177
|
+ this.ruleFormReport = this.timeObj;
|
|
|
178
|
+ this.ruleFormReport.isdone = value;
|
|
|
179
|
+ if (value === 2) {
|
|
|
180
|
+ delete this.ruleFormReport.isdone;
|
|
|
181
|
+ }
|
|
|
182
|
+ if (this.listType === "2") {
|
|
|
183
|
+ this.ruleFormReport.loweltype = data.F_Type;
|
|
|
184
|
+ this.ruleFormReport.types = 1;
|
|
|
185
|
+ this.ruleFormReport.dealDept = Number(data.DeptId);
|
|
|
186
|
+ } else if (this.listType === "1") {
|
|
|
187
|
+ this.ruleFormReport.loweltype = data.F_SonType;
|
|
|
188
|
+ this.ruleFormReport.types = 0;
|
|
|
189
|
+ this.ruleFormReport.dealDept = Number(data.F_DealDept);
|
|
|
190
|
+ }
|
|
|
191
|
+ this.$layer.iframe({
|
|
|
192
|
+ content: {
|
|
|
193
|
+ content: reportComList, // 传递的组件对象
|
|
|
194
|
+ parent: this, // 当前的vue对象
|
|
|
195
|
+ data: { dataParams: this.ruleFormReport, keyValue: key },
|
|
|
196
|
+ },
|
|
|
197
|
+ area: ["80%", "90%"],
|
|
|
198
|
+ title: "工单列表",
|
|
|
199
|
+ });
|
|
|
200
|
+ this.ruleFormReport = {};
|
|
|
201
|
+ },
|
|
182
|
202
|
getList(getParams) {
|
|
183
|
203
|
this.LoadingFlag = true;
|
|
|
204
|
+ this.timeObj.starttime = getParams.starttime;
|
|
|
205
|
+ this.timeObj.endtime = getParams.endtime;
|
|
184
|
206
|
return new Promise((resolve) => {
|
|
185
|
|
- console.log(this.listType, this.listCar);
|
|
186
|
207
|
if (this.listType === "1") {
|
|
187
|
208
|
officeWorkReport(getParams).then((response) => {
|
|
188
|
209
|
if (response.state.toLowerCase() === "success") {
|