telephone-clients 3.0.104-46 → 3.0.104-47

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-46",
3
+ "version": "3.0.104-47",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -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, // 循环函数返回值,用来停止循环
@@ -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
@@ -258,9 +262,9 @@
258
262
  new HttpResetClass().load('POST',`bridge/callctrl?extnum=${this.aChannel}&state=online&opt=SET_EXT_PRESENCE_STATE`,{},{resolveMsg:null,rejectMsg:null}).then(res=>{
259
263
  if(res.data === 200){
260
264
  this.currentState = '空闲'
265
+ this.timeZhiXianId = null
261
266
  }else if (res.data === 400){
262
267
  this.$showMessage('参数错误,置忙失败')
263
-
264
268
  }else if (res.data === 404){
265
269
  // this.$showMessage('目标分机不存在,置忙失败')
266
270
  this.currentState = '登录错误'
@@ -284,6 +288,23 @@
284
288
  }
285
289
  }, (60 * 1000));
286
290
  },
291
+ timeZhiXian() {
292
+ let flag = this.$appdata.getSingleValue("是否自动置闲")
293
+ if(!flag){
294
+ return
295
+ }
296
+ let time = this.$appdata.getSingleValue('自动置闲时间')
297
+ if(time){
298
+ this.timeZhiXianFen = time
299
+ }
300
+ this.timeZhiXianId = setTimeout(()=> {
301
+ try {
302
+ this.zhixian();
303
+ } catch(err) {
304
+ //tag;
305
+ }
306
+ }, (this.timeZhiXianFen * 1000));
307
+ },
287
308
  // 确认
288
309
  confirm() {
289
310
  //tag
@@ -15,7 +15,24 @@
15
15
  <progress-bar v-if="btnshow" :label="bartext" :color="barcolor" :percentage="barperc"
16
16
  :height="barheight"></progress-bar>
17
17
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
18
- <div class="row">
18
+ <div class="row" v-if="issitesend && source != 'mobile'">
19
+ <div class="col-sm-5 form-group form-input-group">
20
+ <label class="col-sm-5" >派单类型:</label>
21
+ <v-select :value.sync="f_handlingtype" :value-single="true"
22
+ :options='handling' placeholder='派单类型'
23
+ close-on-select :max-height="120"></v-select>
24
+ </div>
25
+ </div>
26
+ <div class="row" v-if="f_handlingtype == '转站点'">
27
+ <div class="col-sm-5 form-group form-input-group">
28
+ <label class="col-sm-5" >接单站点:</label>
29
+ <input style="width: 60%" type="text" v-show="false" v-model="row.serviceacitivity[0].f_reciever">
30
+ <right-tree islist :userid="userid" :source="sourcesite" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>
31
+
32
+ </right-tree>
33
+ </div>
34
+ </div>
35
+ <div class="row" v-if="f_handlingtype == '转维修员'">
19
36
  <div class="col-sm-5 form-group form-input-group">
20
37
  <label class="col-sm-5" >接&ensp;单&ensp;人:</label>
21
38
  <v-select :value="row.serviceacitivity[0].f_reciever" :value-single="true"
@@ -59,6 +76,13 @@ export default {
59
76
  },
60
77
  data () {
61
78
  return {
79
+ sourcesite:
80
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
81
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
82
+ userid: this.$login.f.id,
83
+ f_handlingtype:'转维修员',
84
+ handling:[{label:'转站点',value:'转站点'},{label:'转维修员',value:'转维修员'}],
85
+ issitesend:this.$appdata.getSingleValue('是否允许站点转站点'),
62
86
  saveing:false,
63
87
  show: false,
64
88
  btnshow: false,
@@ -95,6 +119,14 @@ export default {
95
119
  }
96
120
  },
97
121
  methods: {
122
+ // 选中部门
123
+ reres(val){
124
+ if(val.res == undefined || val.res[0] == undefined || val.res[0] == ''){
125
+ return
126
+ }
127
+ this.row.serviceacitivity[0].f_meetunit = val.res[0]
128
+ this.row.serviceacitivity[0].f_reciever = val.resids[0]
129
+ },
98
130
  repiarmancg (val) {
99
131
  if (val.isTrusted){
100
132
  return
@@ -127,16 +159,19 @@ export default {
127
159
  if (this.source == 'mobile') {
128
160
  data = {
129
161
  model: userdata,
162
+ f_handlingtype:this.f_handlingtype,
130
163
  loginUser: {name: Vue.user.name, ename: Vue.user.ename}
131
164
  // adduser:{userinfo: result, devices: []}
132
165
  }
133
166
  } else {
134
167
  data = {
135
168
  model: userdata,
169
+ f_handlingtype:this.f_handlingtype,
136
170
  loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}
137
171
  // adduser:{userinfo: result, devices: []}
138
172
  }
139
173
  }
174
+
140
175
  data.message = true
141
176
  this.saveing = true
142
177
  let HttpReset = new HttpResetClass()