telephone-clients 3.0.104-16 → 3.0.104-17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.104-16",
3
+ "version": "3.0.104-17",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -219,7 +219,7 @@ import * as Util from '../../../components/Util'
219
219
  f_residential_area: ''
220
220
  },
221
221
  residentialquery: '',
222
- servicesource:'用户来电', // 工单来源
222
+ servicesource:'话务来电', // 工单来源
223
223
  areacondition: '',
224
224
  testdata: {f_equipment: ''},
225
225
  residentialTemplate: 'f_villagename',
@@ -231,7 +231,7 @@ import * as Util from '../../../components/Util'
231
231
  }],
232
232
  failure_str:'',
233
233
  f_finish_date:'',
234
- f_source:'用户来电',
234
+ f_source:'话务来电',
235
235
  f_service_id: '',
236
236
  f_contact_phone: '',
237
237
  f_meetunit: '',
@@ -0,0 +1,290 @@
1
+ <template>
2
+ <div class="flex">
3
+ <section>
4
+ <div class="basic-main row" style="height: 100%">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-4 form-group" style="width: 20%">
10
+ <label class="font_normal_body">&nbsp;公&nbsp;&nbsp;&nbsp;&nbsp;司&nbsp;</label>
11
+ <right-tree :userid.sync='$parent.$parent.userid' style="width: 60%;"
12
+ :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes"></right-tree>
13
+ </div>
14
+ <div class="form-group col-sm-2">
15
+ <label for="startDate" class="font_normal_body">开始日期:</label>
16
+ <datepicker id="startDate" placeholder="开始日期"
17
+ v-model="$parent.$parent.startDate"
18
+ :value.sync="$parent.$parent.startDate"
19
+ style="width: 60%;"
20
+ :disabled-days-of-Week="[]"
21
+ :format="'yyyy-MM-dd 00:00:00'"
22
+ :show-reset-button="reset">
23
+ </datepicker>
24
+ </div>
25
+ <div class="form-group col-sm-2">
26
+ <label for="endDate" class="font_normal_body">结束日期:</label>
27
+ <datepicker id="endDate" placeholder="结束日期"
28
+ v-model="$parent.$parent.endDate"
29
+ :value.sync="$parent.$parent.endDate"
30
+ :disabled-days-of-Week="[]"
31
+ style="width: 60%;"
32
+ :format="'yyyy-MM-dd 23:59:59'"
33
+ :show-reset-button="reset">
34
+ </datepicker>
35
+ </div>
36
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%;left: 35%">
37
+ <button type="button" name="button" class="button_search" @click="search">查询</button>
38
+ <export-excel-tel :data="$parent.$parent.searchData"
39
+ :field="$parent.$parent.excelHeaders"
40
+ sqlurl="rs/logic/telephoneExport" sql-name="manage_telman" :template-name="$parent.$parent.excelTitle"></export-excel-tel>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </criteria>
45
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
46
+ <template partial='head'>
47
+ <tr >
48
+ <th colspan="20" class="tableinfo">
49
+ <h3 style="text-align: center;color: #00A3F0;font-size: 26px" >{{$parent.$parent.$parent.orgname }}话务统计报表</h3>
50
+ </th>
51
+ </tr>
52
+ <tr>
53
+ <th>
54
+ <nobr>话务员</nobr>
55
+ </th>
56
+ <th>
57
+ <nobr>工号</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>来电总数</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>接线率</nobr>
64
+ </th>
65
+ <!-- <th>-->
66
+ <!-- <nobr>置忙次数</nobr>-->
67
+ <!-- </th>-->
68
+ <th>
69
+ <nobr>已接</nobr>
70
+ </th>
71
+ <th>
72
+ <nobr>未接</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>外拨</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>咨询单</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>投诉单</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>报修单</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>话务来电</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>部门派单</nobr>
91
+ </th>
92
+ <th >
93
+ <nobr>报修单(抢修)</nobr>
94
+ </th>
95
+ <th >
96
+ <nobr>报修单(服务)</nobr>
97
+ </th>
98
+ <th >
99
+ <nobr>报修单(整改)</nobr>
100
+ </th>
101
+ <th >
102
+ <nobr>报修单(置换通气)</nobr>
103
+ </th>
104
+ </tr>
105
+ </template>
106
+ <template partial='body'>
107
+ <tr>
108
+ <td style="text-align:center">
109
+ <nobr>{{ row.nam }}</nobr>
110
+ </td>
111
+ <td style="text-align:center">
112
+ <nobr>{{ row.id }}</nobr>
113
+ </td>
114
+ <td style="text-align:center">
115
+ <nobr>{{ row.zongji }}</nobr>
116
+ </td>
117
+ <td style="text-align:center">
118
+ <nobr>{{ row.scale }}</nobr>
119
+ </td>
120
+ <!-- <td style="text-align:center">-->
121
+ <!-- <nobr>{{ row.zhimangcishu }}</nobr>-->
122
+ <!-- </td>-->
123
+ <td style="text-align:center" >
124
+ <nobr>{{ row.yijie }}</nobr>
125
+ </td>
126
+ <td style="text-align:center">
127
+ <nobr>{{ row.weijie }}</nobr>
128
+ </td>
129
+ <td style="text-align:center">
130
+ <nobr>{{ row.waibo }}</nobr>
131
+ </td>
132
+ <td style="text-align:center">
133
+ <nobr>{{ row.zixundan}}</nobr>
134
+ </td>
135
+ <td style="text-align:center">
136
+ <nobr>{{ row.tousudan}}</nobr>
137
+ </td>
138
+ <td style="text-align:center">
139
+ <nobr>{{ row.baoxiudan}}</nobr>
140
+ </td>
141
+ <td style="text-align:center">
142
+ <nobr>{{ row.huawunum}}</nobr>
143
+ </td>
144
+ <td style="text-align:center">
145
+ <nobr>{{ row.bumennum}}</nobr>
146
+ </td>
147
+ <td style="text-align:center" >
148
+ <nobr >{{ row.qiangxius}}</nobr>
149
+ </td>
150
+ <td style="text-align:center" >
151
+ <nobr >{{ row.fuwus}}</nobr>
152
+ </td>
153
+ <td style="text-align:center" >
154
+ <nobr >{{ row.zhenggais}}</nobr>
155
+ </td>
156
+ <td style="text-align:center" >
157
+ <nobr >{{ row.zhihuantongqis}}</nobr>
158
+ </td>
159
+ </tr>
160
+ </template>
161
+ <template partial="foot">
162
+ <td style="text-align: center"><span><b>合计:</b></span></td>
163
+ <td style="text-align: center"><span><b> </b></span></td>
164
+ <td style="text-align: center">{{model.sums.zongji}}</td>
165
+ <td style="text-align: center">{{((model.sums.yijie/model.sums.zongji)*100).toFixed(2)+'%'}}</td>
166
+ <!-- <td style="text-align: center">{{model.sums.zhimangcishu}}</td>-->
167
+ <td style="text-align: center">{{model.sums.yijie}}</td>
168
+ <td style="text-align: center">{{model.sums.weijie}}</td>
169
+ <td style="text-align: center">{{model.sums.waibo}}</td>
170
+ <td style="text-align: center">{{model.sums.zixundan}}</td>
171
+ <td style="text-align: center">{{model.sums.tousudan}}</td>
172
+ <td style="text-align: center">{{model.sums.baoxiudan}}</td>
173
+ <td style="text-align: center">{{model.sums.huawunum}}</td>
174
+ <td style="text-align: center">{{model.sums.bumennum}}</td>
175
+ <td style="text-align: center" >{{model.sums.qiangxius}}</td>
176
+ <td style="text-align: center" >{{model.sums.fuwus}}</td>
177
+ <td style="text-align: center" >{{model.sums.zhenggais}}</td>
178
+ <td style="text-align: center" >{{model.sums.zhihuantongqis}}</td>
179
+ </template>
180
+ </data-grid>
181
+ </criteria-paged>
182
+ </div>
183
+ </section>
184
+ </div>
185
+ </template>
186
+ <script>
187
+ import {PagedList, HttpResetClass} from 'vue-client'
188
+ import * as Util from '../../../components/Util'
189
+
190
+ export default {
191
+ title: '话务员报表',
192
+ data () {
193
+ let model = new PagedList('rs/sql/manage_telman', 20, {
194
+ startDate: 'this.startDate',
195
+ endDate: 'this.endDate',
196
+ f_filiale_id: 'this.f_filiale_id'
197
+ },{zongji:'',yijie:'',weijie:'',waibo:'',zixundan:'',tousudan:'',baoxiudan:'',huawunum:'',bumennum:'',qiangxius:'',fuwus:'',zhenggais:'',zhihuantongqis:''})
198
+ model.f_filiale_id = `('${this.$login.f.orgid}')`
199
+ model.startDate=Util.getYesterDay() + ' 00:00:00'//昨天时间
200
+ model.endDate=Util.toStandardDateString()+ ' 23:59:59'//当前时间
201
+ return {
202
+ f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
203
+ model: model,
204
+ source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
205
+ userid: this.$login.f.id,
206
+ orgname: '',
207
+ startDate:Util.getYesterDay() + ' 00:00:00',
208
+ endDate:Util.toStandardDateString()+ ' 23:59:59',
209
+ searchData: {
210
+ condition: '',
211
+ startDate: '',
212
+ endDate: '',
213
+ f_filiale_id: ''
214
+ },
215
+ excelHeaders: {
216
+ 'nam': '话务员',
217
+ 'id': '工号',
218
+ 'quanbujieting': '接线数',
219
+ 'scale': '接线率',
220
+ // 'zhimangcishu': '置忙次数',
221
+ 'yijie': '已接',
222
+ 'weijie': '未接',
223
+ 'waibo': '外拨',
224
+ 'zixundan': '咨询单',
225
+ 'tousudan': '投诉单',
226
+ 'baoxiudan': '报修单',
227
+ 'huawunum': '话务来电',
228
+ 'bumennum': '部门派单',
229
+ 'qiangxius': '报修单(抢修)',
230
+ 'fuwus': '报修单(服务)',
231
+ 'zhenggais': '报修单(整改)',
232
+ 'zhihuantongqis': '报修单(置换通气)'
233
+ }
234
+ }
235
+ },
236
+ methods: {
237
+ getRes (obj) {
238
+ this.f_filiale_id = this.$login.convertToIn(obj.resids)
239
+ this.orgname = obj.res[0]
240
+ this.$set('orgname', obj.res[0])
241
+ console.log(
242
+ `%c 来电内容明细 %c 呼叫模块 %c`,
243
+ 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
244
+ 'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
245
+ 'background:transparent',
246
+ this.orgname
247
+ )
248
+ },
249
+ selfSearch (args) {
250
+ if (!this.f_filiale_id) {
251
+ return this.$showMessage("请选择公司进行查询!!!")
252
+ }
253
+ this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
254
+ this.searchData.f_filiale_id = this.f_filiale_id //导出
255
+ this.searchData.condition=args.condition //导出
256
+ this.model.startDate = this.startDate
257
+ this.searchData.startDate = this.startDate //导出
258
+ this.model.endDate = this.endDate
259
+ this.searchData.endDate = this.endDate //导出
260
+ this.model.search(args.condition, args.model)
261
+ }
262
+ },
263
+ computed: {
264
+ excelTitle() {
265
+ return `${this.orgname }话务员统计报表`
266
+ },
267
+ },
268
+ watch: {
269
+ },
270
+ ready () {
271
+ // //tag)
272
+ // this.$refs.paged.$refs.cri.search()
273
+ //tag + ' 00:00:00')
274
+ //tag+ ' 23:59:59')
275
+ this.orgname = this.$login.f.orgs
276
+ //tag)
277
+ //tag
278
+ }
279
+
280
+ }
281
+ </script>
282
+
283
+ <style lang="less" >
284
+ .tableinfo {
285
+ text-align: center;
286
+ background-color: #00A3F0;
287
+ color: #0c2e4d;
288
+ font-size: 26px;
289
+ }
290
+ </style>
@@ -9,6 +9,7 @@ let specialComp = {
9
9
  'distribute-work':(resolve) => { require(['./pc/DistributeWork'], resolve) },
10
10
  'tel-meteread-info':(resolve) => { require(['./pc/MetereadInfo'], resolve) },
11
11
  'work-listall':(resolve) => { require(['./pc/WorkListAll'], resolve) },
12
+ 'tel-agentvoice-report':(resolve) => { require(['./pc/TelAgentVoiceReport'], resolve) }
12
13
  }
13
14
  exports.specialComp = specialComp
14
15