telephone-clients 3.0.104-4 → 3.0.104-41

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 (41) hide show
  1. package/package.json +3 -3
  2. package/src/components/guoxin/Console.vue +19 -13
  3. package/src/components/guoxin/call.state.api.js +3 -1
  4. package/src/components/pc/RecordListLeft.vue +39 -10
  5. package/src/components/pc/RepairsWork.vue +30 -3
  6. package/src/components/pc/WorkList.vue +2 -1
  7. package/src/components/sendsingle/onlinequeryuser.vue +1 -1
  8. package/src/components/temp/HandplanInfo.vue +12 -1
  9. package/src/components/temp/InstructInfo.vue +1 -1
  10. package/src/components/workorder/RepairPaperAndroid.vue +351 -0
  11. package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
  12. package/src/filiale/hanzhong/telephone.js +1 -1
  13. package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
  14. package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
  15. package/src/filiale/jiaocheng/telephone.js +8 -0
  16. package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
  17. package/src/filiale/rizhao/pc/WorkListAllNew.vue +9 -5
  18. package/src/filiale/rizhao/telephone.js +1 -1
  19. package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
  20. package/src/filiale/shanxian/pc/WorkList.vue +2 -2
  21. package/src/filiale/shanxian/telephone.js +1 -0
  22. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
  23. package/src/filiale/shexian/pc/WorkList.vue +4 -1
  24. package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
  25. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  26. package/src/filiale/tongchuan/pc/AnalysisMain.vue +6 -6
  27. package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
  28. package/src/filiale/wenxi/android/FaultAll.vue +710 -0
  29. package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
  30. package/src/filiale/wenxi/android/ZHihuanFirst.vue +3 -0
  31. package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
  32. package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
  33. package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
  34. package/src/filiale/wenxi/pc/WorkListAll.vue +1 -1
  35. package/src/filiale/wenxi/telephone.js +2 -0
  36. package/src/filiale/wenxi/telephoneAndroid.js +2 -1
  37. package/src/filiale/wuhai/telephone.js +1 -1
  38. package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
  39. package/src/filiale/yuncheng/telephone.js +2 -1
  40. package/src/telephone-android.js +6 -0
  41. 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-4",
3
+ "version": "3.0.104-41",
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",
@@ -141,7 +141,7 @@
141
141
  //tag;
142
142
  };
143
143
  this.$webSocket.onCallState = (event) => {
144
- //tag);
144
+ console.log('国信websocaket返回得数据:')
145
145
  const json = event;
146
146
  // 弹屏通知
147
147
  const id = json.id;
@@ -179,16 +179,16 @@
179
179
  }
180
180
  this.showip = !this.showip
181
181
  },
182
- created() {
183
- window.addEventListener('beforeunload', this.handleBeforeUnload);
184
- },
182
+ // created() {
183
+ // window.addEventListener('beforeunload', this.handleBeforeUnload);
184
+ // },
185
185
  methods: {
186
- handleBeforeUnload(){
187
- if(this.$webSocket){
188
- this.zhimang();
189
- this.$webSocket.closeWebsocket()
190
- }
191
- },
186
+ // handleBeforeUnload(){
187
+ // if(this.$webSocket){
188
+ // this.zhimang();
189
+ // this.$webSocket.closeWebsocket()
190
+ // }
191
+ // },
192
192
  changeGroup(){
193
193
  let name = this.groupName == '话务分组' ? '值班分组':'话务分组'
194
194
  this.$showMessage(`确定要更改分组为${name}吗?`, ['confirm', 'cancel']).then(res=>{
@@ -313,14 +313,20 @@
313
313
  }
314
314
  },
315
315
  },
316
- beforeDestroy() {
316
+ destroyed () {
317
317
  //国信置忙代表登出
318
-
319
318
  if(this.$webSocket){
320
319
  this.zhimang();
321
320
  this.$webSocket.closeWebsocket()
322
321
  }
323
- }
322
+ },
323
+ // beforeDestroy() {
324
+ // //国信置忙代表登出
325
+ // if(this.$webSocket){
326
+ // this.zhimang();
327
+ // this.$webSocket.closeWebsocket()
328
+ // }
329
+ // }
324
330
  }
325
331
  </script>
326
332
  <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
  }
@@ -4,6 +4,11 @@
4
4
  <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
5
  <div novalidate class="select-overspread form-horizontal" partial>
6
6
  <div class="row" >
7
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.flag == '是'">
8
+ <label class="font_normal_body" style="width: 40%">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
9
+ <right-tree :userid.sync='$parent.$parent.userid' style="width: 60%;"
10
+ :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes"></right-tree>
11
+ </div>
7
12
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
8
13
  <label class="font_normal_body" style="width: 40%">录音&emsp;ID</label>
9
14
  <input type="text" class="form-control" v-model="model.id" placeholder='录音ID'
@@ -22,16 +27,6 @@
22
27
  condition="telname like '%{}%'"
23
28
  :size="model.telname ? model.telname.length : 7">
24
29
  </div>
25
- <div class="col-sm-3 form-group form-input-group" style="width: 20%" >
26
- <label class="font_normal_body" style="width: 40%">电话类型</label>
27
- <v-select :value.sync="model.teltype" :value-single="true"
28
- v-model="model.teltype"
29
- condition="teltype='{}'"
30
- :options='$parent.$parent.LoggedStates' placeholder='电话类型'
31
- close-on-select >
32
- </v-select>
33
-
34
- </div>
35
30
 
36
31
  <div style="float: right;" class="form-group span">
37
32
  <button type="button" name="button"
@@ -43,6 +38,16 @@
43
38
  @click="$parent.$parent.hidden()"></div>
44
39
  </div>
45
40
 
41
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.criteriaShow">
42
+ <label class="font_normal_body" style="width: 40%">电话类型</label>
43
+ <v-select :value.sync="model.teltype" :value-single="true"
44
+ v-model="model.teltype"
45
+ condition="teltype='{}'"
46
+ :options='$parent.$parent.LoggedStates' placeholder='电话类型'
47
+ close-on-select >
48
+ </v-select>
49
+
50
+ </div>
46
51
  <div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.criteriaShow">
47
52
  <label class="font_normal_body" style="width: 40%">开始时间</label>
48
53
  <datepicker placeholder="开始时间"
@@ -154,15 +159,33 @@ export default {
154
159
  wavflie : '',
155
160
  msgs: [],
156
161
  infoobj:Object,
162
+ userid: this.$login.f.id,
163
+ source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
164
+ flag: '',
165
+ f_filiale_id: ''
157
166
  }
158
167
  },props: {
159
168
 
160
169
  },
161
170
  ready () {
171
+ this.flag = this.$appdata.getSingleValue('电话记录只查当前公司')
172
+ if (this.flag) {
173
+ if (this.flag == '是') {
174
+ this.model.f_filiale = this.$login.f.f_fengongsi
175
+ this.model.f_filiale_id = this.$login.f.f_orgids
176
+ }
177
+ }
162
178
  },
163
179
  watch: {
164
180
  },
165
181
  methods: {
182
+ getRes (obj) {
183
+ this.f_filiale_id = this.$login.convertToIn(obj.resids)
184
+ console.log('--------------------')
185
+ console.log(this.f_filiale_id)
186
+ this.orgname = obj.res[0]
187
+ this.$set('orgname', obj.res[0])
188
+ },
166
189
  hidden () {
167
190
  this.criteriaShow = !this.criteriaShow
168
191
  },
@@ -171,6 +194,12 @@ export default {
171
194
  //tag
172
195
  },
173
196
  search(args) {
197
+ console.log(this.f_filiale_id)
198
+ if (this.flag == '是') {
199
+ if (this.f_filiale_id) {
200
+ args.condition = args.condition + ' and f_filiale_id in ' + this.f_filiale_id
201
+ }
202
+ }
174
203
  this.model.search(args.condition, args.model)
175
204
  },
176
205
  clearmsg(){
@@ -208,6 +208,10 @@
208
208
  type: String,
209
209
  default: '转维修员'
210
210
  },
211
+ telsource:{
212
+ type: String,
213
+ default: '转维修员'
214
+ },
211
215
  // 其他类型工单提交,清空控制
212
216
  cleantf: {
213
217
  type: Number
@@ -231,7 +235,7 @@
231
235
  f_residential_area: ''
232
236
  },
233
237
  residentialquery: '',
234
- servicesource:'用户来电', // 工单来源
238
+ servicesource:'话务来电', // 工单来源
235
239
  areacondition: '',
236
240
  testdata: {f_equipment: ''},
237
241
  residentialTemplate: 'f_villagename',
@@ -242,12 +246,13 @@
242
246
  f_service_acitivity_type: '派单'
243
247
  }],
244
248
  f_finish_date:'',
245
- f_source:'用户来电',
249
+ f_source:'话务来电',
246
250
  f_service_id: '',
247
251
  f_contact_phone: '',
248
252
  f_meetunit: '',
249
253
  f_phone: '',
250
254
  f_user_name: '',
255
+ failure:'',
251
256
  f_address: '',
252
257
  f_json: '',
253
258
  f_repair_date: Util.getNowDate(),
@@ -292,13 +297,18 @@
292
297
  'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
293
298
  'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
294
299
  userid: this.$login.f.id,
300
+ is_to_other :false,
295
301
  repairers: [] // 维修员
296
302
  }
297
303
  },
298
304
  ready() {
299
305
  // 获取sendType.json配置信息 获取派单类型 转站点,转维修员,自选模式
300
306
  getSendType(this)
301
-
307
+ if (this.$appdata.getSingleValue('转班组长') && this.$appdata.getSingleValue('转班组长') == 'true'){
308
+ this.is_to_other = true
309
+ this.source = 'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($班组长$)))'
310
+ }
311
+ this.model.f_source = this.telsource == '转维修员' ? '部门派单':'话务来电'
302
312
  },
303
313
  methods: {
304
314
  // 当维修员发生改变,获取维修员手机号
@@ -621,6 +631,11 @@
621
631
  }
622
632
  data.model.f_state = null
623
633
  this.saveing = true
634
+
635
+ if (this.is_to_other){
636
+ data.is_to_other = 'true'
637
+ }
638
+
624
639
  return this.$resetpost(url, data).then((data) => {
625
640
  if(data.data && data.data.id){
626
641
  this.id = JSON.parse(data.data.id).id
@@ -637,6 +652,8 @@
637
652
  Util.afterCallBz(this.$login.f.id, this.$login.f.name)
638
653
  }
639
654
  this.saveing = false
655
+ }).catch(error=>{
656
+ this.saveing = false
640
657
  })
641
658
  },
642
659
  address() {
@@ -696,6 +713,13 @@
696
713
  },
697
714
  },
698
715
  watch: {
716
+ 'telsource'(){
717
+ if(this.telsource == '转站点' ) {
718
+ this.servicesource = '话务来电'
719
+ }else{
720
+ this.servicesource = '部门派单'
721
+ }
722
+ },
699
723
  // 转接类型
700
724
  'model.f_handlingtype'(){
701
725
  if(this.operType === '修改工单'){
@@ -767,6 +791,9 @@
767
791
  getTestData() {
768
792
  return this.testdata
769
793
  },
794
+ getSource() {
795
+ return this.servicesource
796
+ },
770
797
  serviceacitivity() {
771
798
  return this.model.serviceacitivity.find((row) => {
772
799
  return row.f_service_acitivity_type === '派单'
@@ -646,7 +646,8 @@ export default {
646
646
  },
647
647
  proc (selectone, type) {
648
648
  this.editflag = type
649
- this.selectone = selectone
649
+ //this.selectone = selectone
650
+ this.selectone = Object.assign({},selectone)
650
651
  },
651
652
  complanReview (itemVal, type) {
652
653
  //tag
@@ -76,7 +76,7 @@
76
76
  <label class="font text-left">用户姓名:</label>
77
77
  </div>
78
78
  <div class="col-xs-8" >
79
- <input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name = '{}'" />
79
+ <input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name like '%{}%'" />
80
80
  </div>
81
81
  </div>
82
82
  <div class="row app-row">
@@ -45,7 +45,7 @@
45
45
  title: '抄表记录',
46
46
  data () {
47
47
  return {
48
- model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'rs/sql/tel_singleTable_OrderBy', 8, {items: '"*"', tablename: '"t_handplan with (nolock)"', orderitem: '"id desc"'}),
48
+ model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'rs/sql/tel_singleTable_OrderBy', 8, {items: '"*"', tablename: 'this.tablename', orderitem: '"id desc"'}),
49
49
  show: false,
50
50
  row: Object
51
51
  }
@@ -62,6 +62,11 @@
62
62
  'user' (val) {
63
63
  if(this.user) {
64
64
  this.model.rows = []
65
+ if(val.f_meter_classify == '物联网表'){
66
+ this.model.tablename = 't_web_handplan with (nolock)'
67
+ }else{
68
+ this.model.tablename = 't_handplan with (nolock)'
69
+ }
65
70
  this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
66
71
  }
67
72
  },
@@ -71,6 +76,12 @@
71
76
  },
72
77
  ready () {
73
78
  if (this.user && this.user.f_userinfo_id) {
79
+ if(this.user.f_meter_classify == '物联网表'){
80
+ debugger
81
+ this.model.tablename = 't_web_handplan with (nolock)'
82
+ }else{
83
+ this.model.tablename = 't_handplan with (nolock)'
84
+ }
74
85
  this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
75
86
  }
76
87
  }
@@ -45,7 +45,7 @@
45
45
  title: '指令查看',
46
46
  data () {
47
47
  return {
48
- model: new PagedList('rs/sql/tel_singleTable_OrderBy', 8, {items: '"f_callback_date,f_instruct_date,f_receive_state,f_instruct_state,f_instruct_title,f_meternumber,f_instruct_type,f_manufacturers"', tablename: '"t_instruct with (nolock)"', orderitem: '"f_callback_date desc"'}),
48
+ model: new PagedList('rs/sql/tel_singleTable_OrderBy', 8, {items: '"f_callback_date,f_instruct_date,f_receive_state,f_instruct_state,f_instruct_title,f_meternumber,f_instruct_type,f_manufacturers"', tablename: '"t_instruct with (nolock)"', orderitem: '"f_instruct_date desc"'}),
49
49
  show: false,
50
50
  row: Object
51
51
  }