telephone-clients 3.0.104-1 → 3.0.104-12

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.
@@ -248,6 +248,7 @@
248
248
  f_meetunit: '',
249
249
  f_phone: '',
250
250
  f_user_name: '',
251
+ failure:'',
251
252
  f_address: '',
252
253
  f_json: '',
253
254
  f_repair_date: Util.getNowDate(),
@@ -79,6 +79,28 @@
79
79
  </div>
80
80
  </div>
81
81
  </div>
82
+ <modal :show.sync="showcalloutResult" width="50%" backdrop="false">
83
+ <header slot="modal-header" class="modal-header">
84
+ <center><h4 class="modal-title ">{{showTitle}}结果</h4></center>
85
+ </header>
86
+ <article slot="modal-body" class="modal-body" style="height: 100px;padding-top: 15px!important;">
87
+ <div v-show="!calloutResult"><label>正在{{ showTitle }},请稍后。。。。。。</label></div>
88
+ <div v-show="calloutResult">
89
+ <div class="row auto" v-show="calloutResult.area">
90
+ <label>真实归属地:</label><span>{{calloutResult.area}}</span>
91
+ </div>
92
+ <div class="row auto" v-show="calloutResult.calloutNo">
93
+ <label>真实呼出号码:</label><span>{{calloutResult.calloutNo}}</span>
94
+ </div>
95
+ <div class="row auto" v-show="calloutResult.err">
96
+ <label>其他信息:</label><span>{{calloutResult.err}}</span>
97
+ </div>
98
+ </div>
99
+ </article>
100
+ <footer slot="modal-footer" class="modal-footer">
101
+ <button type="button" class="btn btn-success" @click='calloutConfirm()'>确认</button>
102
+ </footer>
103
+ </modal>
82
104
  </div>
83
105
  </template>
84
106
 
@@ -93,7 +115,11 @@
93
115
  row:Object,
94
116
  phone:'',
95
117
  idwavfile:'',
96
- outltime:''
118
+ outltime:'',
119
+ showcalloutResult:false,
120
+ calloutResult:null,
121
+ showTitle:'呼出'
122
+
97
123
  },
98
124
  data () {
99
125
  return {
@@ -117,6 +143,10 @@
117
143
  }
118
144
  },
119
145
  methods: {
146
+ calloutConfirm(){
147
+ this.calloutResult=null
148
+ this.showcalloutResult=false
149
+ },
120
150
  //获取当前时间
121
151
  getNowFormatDate() {
122
152
  var date = new Date();
@@ -201,7 +231,6 @@
201
231
  if(telnum){
202
232
  let http = new HttpResetClass()
203
233
  try{
204
- this.$showMessage("号码"+telnum+" 正在呼出...")
205
234
  http.load('POST', wxcon.voiceUrl, {
206
235
  aId: this.$login.f.id,
207
236
  aChannel: Util.attendant.aChannel,
@@ -213,15 +242,23 @@
213
242
  RoleId:this.$login.f.rolesnames,
214
243
  sendTime:Util.toStandardTimeString()
215
244
  }, {resolveMsg: null, rejectMsg: null}).then((req) => {
216
- // 返回录音ID 存在回访数据里
217
- this.model.f_record_sound = req.data.RecordsID
218
- //tag
245
+ this.calloutResult = req.data.calloutResult
246
+ if (req.data.desc === '呼出失败') {
247
+ this.$showAlert(`呼出${telnum}失败`, 'danger', 0)
248
+ }else{
249
+ this.showcalloutResult=true
250
+ this.showTitle='呼出'
251
+ // 返回录音ID 存在回访数据里
252
+ this.model.f_record_sound = req.data.RecordsID
253
+ }
219
254
  })
220
255
  }catch(e){
221
- //tag
256
+ this.$showAlert(`${e.data},呼出失败`, 'danger', 0)
257
+ this.callContent = '呼出失败'
222
258
  }
223
259
  }else{
224
- //tag
260
+ this.$showAlert(`无电话号码`, 'danger', 0)
261
+ this.callContent = '呼出失败'
225
262
  }
226
263
  },
227
264
  },