telephone-clients 3.0.104-6 → 3.0.104-61

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.
Files changed (64) hide show
  1. package/package.json +3 -3
  2. package/src/components/android/ImgArea.vue +80 -0
  3. package/src/components/guoxin/Console.vue +42 -14
  4. package/src/components/guoxin/call.state.api.js +3 -1
  5. package/src/components/pc/ComplainWork.vue +3 -0
  6. package/src/components/pc/RecordListLeft.vue +240 -188
  7. package/src/components/pc/RepairsWork.vue +33 -3
  8. package/src/components/pc/RoleSelector.vue +7 -1
  9. package/src/components/pc/Seekwork.vue +3 -0
  10. package/src/components/pc/SiteSend.vue +37 -1
  11. package/src/components/pc/TelLossList.vue +18 -1
  12. package/src/components/pc/WorkHistory.vue +1 -1
  13. package/src/components/pc/WorkList.vue +4 -3
  14. package/src/components/pc/WorkListAllNew.vue +16 -8
  15. package/src/components/pc/WorkListNew.vue +2 -2
  16. package/src/components/sendsingle/onlinequeryuser.vue +1 -1
  17. package/src/components/telreport/TrafficClassificationReport.vue +10 -9
  18. package/src/components/temp/HandplanInfo.vue +5 -1
  19. package/src/components/temp/InstructInfo.vue +1 -1
  20. package/src/components/temp/SecuritycheckInfo.vue +87 -73
  21. package/src/components/workorder/RepairDetails.vue +7 -1
  22. package/src/components/workorder/RepairPaperAndroid.vue +351 -0
  23. package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
  24. package/src/filiale/furuike/pc/QueryVisitHistory.vue +196 -183
  25. package/src/filiale/hanzhong/telephone.js +1 -1
  26. package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
  27. package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
  28. package/src/filiale/jiaocheng/telephone.js +8 -0
  29. package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
  30. package/src/filiale/qianneng/android/AppInstallationMaterial.vue +880 -845
  31. package/src/filiale/qianneng/pc/WorkListAllNew.vue +11 -3
  32. package/src/filiale/rizhao/pc/WorkListAllNew.vue +9 -5
  33. package/src/filiale/rizhao/telephone.js +1 -1
  34. package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
  35. package/src/filiale/shanxian/pc/WorkList.vue +2 -2
  36. package/src/filiale/shanxian/telephone.js +1 -0
  37. package/src/filiale/shexian/android/AddMyTask.vue +361 -354
  38. package/src/filiale/shexian/android/RepairFirstV.vue +780 -775
  39. package/src/filiale/shexian/android/RepairInfo.vue +183 -182
  40. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
  41. package/src/filiale/shexian/pc/WorkList.vue +4 -1
  42. package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
  43. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  44. package/src/filiale/tongchuan/pc/AnalysisMain.vue +7 -7
  45. package/src/filiale/tongchuan/pc/RepairsWork.vue +8 -0
  46. package/src/filiale/tongchuan/pc/UserWork.vue +8 -0
  47. package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
  48. package/src/filiale/wenxi/android/FaultAll.vue +710 -0
  49. package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
  50. package/src/filiale/wenxi/android/ZHihuanFirst.vue +3 -0
  51. package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
  52. package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
  53. package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
  54. package/src/filiale/wenxi/pc/WorkListAll.vue +698 -698
  55. package/src/filiale/wenxi/telephone.js +2 -0
  56. package/src/filiale/wenxi/telephoneAndroid.js +2 -1
  57. package/src/filiale/wuhai/telephone.js +1 -1
  58. package/src/filiale/yuncheng/pc/TelFindUser.vue +14 -1
  59. package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
  60. package/src/filiale/yuncheng/pc/WorkListAllNew.vue +733 -0
  61. package/src/filiale/yuncheng/telephone.js +3 -1
  62. package/src/main.js +22 -22
  63. package/src/telephone-android.js +7 -0
  64. package/src/telephone.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.104-6",
3
+ "version": "3.0.104-61",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -94,11 +94,11 @@
94
94
  "sinon-chai": "^2.8.0",
95
95
  "style": "0.0.3",
96
96
  "style-loader": "^0.20.3",
97
- "system-clients": "3.2.74",
97
+ "system-clients": "3.2.61",
98
98
  "system-phone": "1.2.100",
99
99
  "terser-webpack-plugin-legacy": "^1.2.5",
100
100
  "url-loader": "^0.5.7",
101
- "vue-client": "1.24.113",
101
+ "vue-client": "1.24.116",
102
102
  "vue-hot-reload-api": "^1.2.0",
103
103
  "vue-html-loader": "^1.0.0",
104
104
  "vue-loader": "^8.2.1",
@@ -0,0 +1,80 @@
1
+ <template>
2
+ <div>
3
+ <div class="row">
4
+ <button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
8
+ <img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></img-self>
9
+ <button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import Vue from 'vue'
17
+ import * as Util from '../../components/Util'
18
+
19
+ export default {
20
+ props: {
21
+ // 存放照片的数组
22
+ model: {
23
+ type: Array
24
+ },
25
+ sutitle:'维修照片'
26
+ },
27
+ data () {
28
+ return {
29
+ // 拍照时的文件名
30
+ fileName: '',
31
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
32
+
33
+ }
34
+ },
35
+ methods: {
36
+ // 从图片中删除
37
+ remove (row) {
38
+ this.$androidUtil.delfile(row.android_file)
39
+ let pos = this.model.findIndex((value) => {
40
+ return value === row
41
+ });
42
+ this.model.splice(pos, 1)
43
+ },
44
+ // fileName: 回传文件名,传入的带安卓路径url
45
+ // prop: 传入的字段名,没做改动
46
+ cameraCallBack(prop, fileName) {
47
+ alert("callback!!!!!!!!!!!!!!!!!!--start")
48
+ // 当前this只能通过HostApp.__tis__获取
49
+ let self = this.$androidUtil.getCallBack(this)
50
+ // 添加新图片
51
+ self.model.push({
52
+ android_file: self.fileName,
53
+ path: fileName,
54
+ imgpath: this.sutitle
55
+ })
56
+ alert("callback!!!!!!!!!!!!!!!!!!--end")
57
+ },
58
+ takePic() {
59
+ const obj = HostApp.getGpsDetailAddress()
60
+ let jingweidu = ''
61
+ if (this.is_has_jingweidu == 'true'){
62
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
63
+ }
64
+ let prop = 'repair'
65
+ let idx = 'aofeng'
66
+ this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
67
+ this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
68
+ },
69
+ getimgstr(val){
70
+ if(!val){
71
+ return ''
72
+ }
73
+ if(Vue.android){
74
+ return val.path + '?' + Math.random()
75
+ }
76
+ return 'rs/file/getfile/' + val.imgid
77
+ }
78
+ },
79
+ }
80
+ </script>
@@ -96,6 +96,8 @@
96
96
  initPhone: '',
97
97
  phonelist: [],
98
98
  timeSubscribeId:null,
99
+ timeZhiXianId:null,
100
+ timeZhiXianFen:300,
99
101
  list: [],
100
102
  newPhone: '',
101
103
  interval: null, // 循环函数返回值,用来停止循环
@@ -141,7 +143,7 @@
141
143
  //tag;
142
144
  };
143
145
  this.$webSocket.onCallState = (event) => {
144
- //tag);
146
+ console.log('国信websocaket返回得数据:')
145
147
  const json = event;
146
148
  // 弹屏通知
147
149
  const id = json.id;
@@ -161,10 +163,12 @@
161
163
  //tag
162
164
  this.currentState = '已挂机'
163
165
  this.currentState = '正在保存'
166
+ this.timeZhiXian()
164
167
  } else if (state == "canceled") {
165
168
  //tag
166
169
  this.currentState = '已停止呼叫'
167
170
  this.currentState = '正在保存'
171
+ this.timeZhiXian()
168
172
  //这里发送置忙请求
169
173
  } else if (state == "calling") {
170
174
  //tag
@@ -179,16 +183,16 @@
179
183
  }
180
184
  this.showip = !this.showip
181
185
  },
182
- created() {
183
- window.addEventListener('beforeunload', this.handleBeforeUnload);
184
- },
186
+ // created() {
187
+ // window.addEventListener('beforeunload', this.handleBeforeUnload);
188
+ // },
185
189
  methods: {
186
- handleBeforeUnload(){
187
- if(this.$webSocket){
188
- this.zhimang();
189
- this.$webSocket.closeWebsocket()
190
- }
191
- },
190
+ // handleBeforeUnload(){
191
+ // if(this.$webSocket){
192
+ // this.zhimang();
193
+ // this.$webSocket.closeWebsocket()
194
+ // }
195
+ // },
192
196
  changeGroup(){
193
197
  let name = this.groupName == '话务分组' ? '值班分组':'话务分组'
194
198
  this.$showMessage(`确定要更改分组为${name}吗?`, ['confirm', 'cancel']).then(res=>{
@@ -245,6 +249,7 @@
245
249
  new HttpResetClass().load('POST',`/bridge/callctrl?extnum=${this.aChannel}&state=busy&opt=SET_EXT_PRESENCE_STATE`,{},{resolveMsg:null,rejectMsg:null}).then(res=>{
246
250
  if(res.data === 200){
247
251
  this.currentState = '忙'
252
+ this.timeZhiXianId = null
248
253
  }else if (res.data === 400){
249
254
  this.$showMessage('参数错误,置忙失败')
250
255
  }else if (res.data === 404){
@@ -258,9 +263,9 @@
258
263
  new HttpResetClass().load('POST',`bridge/callctrl?extnum=${this.aChannel}&state=online&opt=SET_EXT_PRESENCE_STATE`,{},{resolveMsg:null,rejectMsg:null}).then(res=>{
259
264
  if(res.data === 200){
260
265
  this.currentState = '空闲'
266
+ this.timeZhiXianId = null
261
267
  }else if (res.data === 400){
262
268
  this.$showMessage('参数错误,置忙失败')
263
-
264
269
  }else if (res.data === 404){
265
270
  // this.$showMessage('目标分机不存在,置忙失败')
266
271
  this.currentState = '登录错误'
@@ -284,6 +289,23 @@
284
289
  }
285
290
  }, (60 * 1000));
286
291
  },
292
+ timeZhiXian() {
293
+ let flag = this.$appdata.getSingleValue("是否自动置闲")
294
+ if(!flag){
295
+ return
296
+ }
297
+ let time = this.$appdata.getSingleValue('自动置闲时间')
298
+ if(time){
299
+ this.timeZhiXianFen = time
300
+ }
301
+ this.timeZhiXianId = setTimeout(()=> {
302
+ try {
303
+ this.zhixian();
304
+ } catch(err) {
305
+ //tag;
306
+ }
307
+ }, (this.timeZhiXianFen * 1000));
308
+ },
287
309
  // 确认
288
310
  confirm() {
289
311
  //tag
@@ -313,14 +335,20 @@
313
335
  }
314
336
  },
315
337
  },
316
- beforeDestroy() {
338
+ destroyed () {
317
339
  //国信置忙代表登出
318
-
319
340
  if(this.$webSocket){
320
341
  this.zhimang();
321
342
  this.$webSocket.closeWebsocket()
322
343
  }
323
- }
344
+ },
345
+ // beforeDestroy() {
346
+ // //国信置忙代表登出
347
+ // if(this.$webSocket){
348
+ // this.zhimang();
349
+ // this.$webSocket.closeWebsocket()
350
+ // }
351
+ // }
324
352
  }
325
353
  </script>
326
354
  <style lang="less">
@@ -104,11 +104,13 @@ import ReconnectingWebSocket from './reconnecting-websocket.min'
104
104
 
105
105
  // 发送消息给服务器
106
106
  function wsMsgSend(msg) {
107
+ console.log('国信发送订阅1')
107
108
  if (!window.WebSocket) {
108
109
  return;
109
110
  }
110
-
111
+ console.log('国信发送订阅2')
111
112
  if (self.socket.readyState == WebSocket.OPEN) {
113
+ console.log('国信发送订阅3')
112
114
  // //tag;
113
115
  self.socket.send(msg);
114
116
  }
@@ -144,6 +144,7 @@ export default {
144
144
  f_reciever:'',
145
145
  f_complaint_results:''
146
146
  }],
147
+ f_small_area:'',
147
148
  picked: this.picked, //待办/已办
148
149
  f_content: '', //投诉内容
149
150
  f_user_name: '',
@@ -223,6 +224,7 @@ export default {
223
224
  assignObj () {
224
225
  this.model = Object.assign(this.model, {}, this.data)
225
226
  this.model.f_user_name = this.data.f_user_name
227
+ this.model.f_small_area = this.data.f_slice_area
226
228
  this.model.f_contact_phone = this.data.f_user_phone
227
229
  //tag
228
230
  },
@@ -236,6 +238,7 @@ export default {
236
238
  f_reciever:f_reciever1,
237
239
  f_complaint_results:''
238
240
  }],
241
+ f_small_area:'',
239
242
  f_content: '',
240
243
  f_user_name: '',
241
244
  f_phone: '',