telephone-clients 4.0.0-1-89 → 4.0.0-1-90

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 (32) hide show
  1. package/package.json +2 -2
  2. package/src/components/pc/MaintenanceWorker.vue +152 -0
  3. package/src/components/pc/NewRepairPaper.vue +704 -704
  4. package/src/components/pc/NewRepairTablePaper.vue +442 -442
  5. package/src/components/pc/WorkHistory.vue +650 -650
  6. package/src/components/pc/WorkListNew.vue +838 -838
  7. package/src/components/sendsingle/onlinecharge.vue +424 -424
  8. package/src/components/workorder/ChangeMeterPageNew.vue +663 -663
  9. package/src/components/workorder/ChangeMeterUserInfo.vue +130 -130
  10. package/src/components/workorder/RepairFirstV.vue +736 -736
  11. package/src/components/workorder/RepairInfo.vue +178 -178
  12. package/src/components/workorder/RepairOrderT.vue +713 -713
  13. package/src/components/workorder/oldMeterPage.vue +104 -104
  14. package/src/components/workorder/repairFirstTable.vue +715 -715
  15. package/src/filiale/jinhong/android/FaultAll.vue +936 -936
  16. package/src/filiale/jinhong/android/ZHihuanFirst.vue +540 -540
  17. package/src/filiale/jinhong/pc/WorkListAllNew.vue +884 -884
  18. package/src/filiale/jinhong/telephone.js +10 -10
  19. package/src/filiale/jinhong/telephoneAndroid.js +13 -13
  20. package/src/filiale/meihekou/android/Othercharge.vue +454 -454
  21. package/src/filiale/meihekou/android/PhoneStandWorkNew.vue +692 -692
  22. package/src/filiale/meihekou/android/ServiceOnlineQuery.vue +477 -477
  23. package/src/filiale/meihekou/pc/WorkListAllNew.vue +925 -901
  24. package/src/filiale/meihekou/pc/WorkListNew.vue +1103 -1049
  25. package/src/filiale/meihekou/telephoneAndroid.js +26 -26
  26. package/src/filiale/xinjiangdexin/telephone.js +16 -16
  27. package/src/filiale/xinliansihui/android/FaultAll.vue +923 -923
  28. package/src/filiale/xinliansihui/android/RepairFirstV.vue +734 -734
  29. package/src/filiale/xinliansihui/android/RepairOrderT.vue +713 -713
  30. package/src/main.js +1 -1
  31. package/src/telephone-android.js +425 -425
  32. package/src/telephone.js +799 -796
@@ -1,736 +1,736 @@
1
- <template>
2
- <div style="height: auto;width: 100%" class="repair-bg">
3
- <div class="bq-parent">
4
- <blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
5
- <p>
6
- 待办工单<span v-if="rows">({{rows.length}}单)</span>
7
- <span v-if="!rows">(暂无待处理工单)</span>
8
- </p>
9
- </blockquote>
10
- </div>
11
-
12
- <div>
13
- <form>
14
- <!-- 查询条件-->
15
- <div class="row app-row">
16
- <div class="col-xs-4">
17
- <img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
18
- <label class="font text-left">用户姓名:</label>
19
- </div>
20
- <div class="col-xs-8" >
21
- <input type="text" v-model="username" placeholder='用户姓名'
22
- class="search_input input-font" />
23
- </div>
24
- </div>
25
- <div class="row app-row">
26
- <div class="col-xs-4">
27
- <img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
28
- <label class="font text-left">用户编号:</label>
29
- </div>
30
- <div class="col-xs-8" >
31
- <input type="text" v-model="f_userinfo_code" placeholder='用户编号'
32
- class="search_input input-font" />
33
- </div>
34
- </div>
35
- <div class="row app-row">
36
- <div class="col-xs-4">
37
- <img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
38
- <label class="font text-left">用户地址:</label>
39
- </div>
40
- <div class="col-xs-8" >
41
- <input type="text" class="search_input input-font"
42
- v-model="address" placeholder='用户地址' />
43
- </div>
44
- </div>
45
- <div class="row app-row" v-if="worktype == '报修单'">
46
- <div class="col-xs-4">
47
- <img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
48
- <label class="font text-left">报修类型:</label>
49
- </div>
50
- <div class="col-xs-8" >
51
- <v-select :value.sync="repairtype"
52
- v-model="repairtype"
53
- :options='repairtypes'
54
- placeholder='请选择'
55
- close-on-select
56
- :value-single="true"
57
- ></v-select>
58
- </div>
59
- </div>
60
- <!-- 分割按钮和条件的高度 -->
61
- <div class="row app-row" style="height: 10px;"></div>
62
- <!-- 按钮 -->
63
- <div class="row text-center app-row">
64
- <button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch('')" style="min-width: 25%;">查询</button>
65
- <button type="button" class="btn btn-lg btn-font btn-color" @click='ifsearch(" and f_orderstatus!=null ")' style="min-width: 25%;">查询临时保存</button>
66
- <img style="float: right;margin-right: 3%;margin-top: -4px " @click="getNewOrder" src="../../assets/shuaxindaiban1.png">
67
- </div>
68
- <div style="height:30px;" class="app-row"></div>
69
- </form>
70
- </div>
71
- <!-- 列表 -->
72
- <div class="panel panel-default repair-info-content auto">
73
- <div class="panel-body">
74
- <div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
75
- <div class="panel-body" style="padding: 10px">
76
- <div class="row form-group">
77
- <div class="col-sm-12 col-xs-12 col-md-12">
78
- <div class="row" >
79
- <span v-if="row.state==='延期申请'" style="color: darkred">该工单已提交延期处理请勿操作</span>
80
- <div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
81
- 工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
82
- </div>
83
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
84
- 报修类型: {{row.f_repairtype}}
85
- </div>
86
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
87
- 派发时间: {{row.f_created_date}}
88
- </div>
89
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_finish_date">
90
- 截止天数: {{Math.floor((new Date(row.f_finish_date.substring(0,10)).getTime() - new Date(row.f_created_date.substring(0,10)).getTime()) / 86400000)}}
91
- </div>
92
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_finish_date">
93
- 截止日期: {{row.f_finish_date}}
94
- </div>
95
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
96
- 维修类型: {{row.f_repairtype}}
97
- </div>
98
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
99
- 用户编号: {{row.f_userinfo_code}}
100
- </div>
101
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
102
- 用户证号: {{row.f_enter_number}}
103
- </div>
104
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
105
- 用户姓名: {{row.f_user_name}}
106
- </div>
107
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
108
- 来电电话: {{row.f_phone}}
109
- <img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
110
- </div>
111
- <div class="col-sm-12 col-xs-12 col-md-12">
112
- 联系电话: {{row.f_contact_phone}}
113
- <img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
114
- </div>
115
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
116
- 用户地址: {{row.f_address}}
117
- </div>
118
- <div v-show="row.f_advice" class="col-sm-12 col-xs-12 col-md-12" v-if="worktype == '报修单'">
119
- 指导建议: {{row.f_advice}}
120
- </div>
121
- <div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
122
- 备注信息: {{row.f_remarks}}
123
- </div>
124
- <div v-show="row.f_yuyue_date" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_yuyue_date !=null">
125
- 预约时间: {{row.f_yuyue_date}}
126
- </div>
127
- <div v-show="row.f_subsidiary1_path" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" >
128
- 附件查看:
129
- <button type="button" name="button" class="btn btn-primary btn-sm" @click="showSubsidiaryPath(row)">查看</button>
130
- </div>
131
- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
132
- <failure-show :value='row.failure'>
133
- </failure-show>
134
- </div>
135
- </div>
136
- </div>
137
- <div class="col-sm-12 col-xs-12 col-md-12">
138
- <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">处理</button>
139
- <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" @click="sendback(row)">退回</button>
140
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="moveservice(row)">转单</button>
141
- <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" v-if="false" @click="infoadd(row)">信息维护</button>
142
- <button type="button" name="button" class="btn btn-primary btn-sm" v-if="false"
143
- style="float: right;margin-right:10px;" @click="showend(row)">无法处理
144
- </button>
145
- </div>
146
- </div>
147
- </div>
148
- </div>
149
- <div style="height:auto;width: 100%;text-align: center">
150
- <a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
151
- <span v-if="listData.isEnd">到底了......</span>
152
- </div>
153
- </div>
154
- <modal :show.sync="moveshow" v-ref:modal :backdrop="false">
155
- <div slot="modal-header" class="modal-header">
156
- <h4 class="modal-title">
157
- 转单
158
- </h4>
159
- </div>
160
- <div slot="modal-body" class="modal-body">
161
- <div class="row" style="margin-top: 6px">
162
- <label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
163
- <div class="col-xs-8">
164
- <v-select :value="orderman" :value-single="true"
165
- :options='repairers' placeholder='请选择接单人'
166
- close-on-select v-on:change="repiarmancg"></v-select>
167
- </div>
168
- </div>
169
- <div class="row" style="margin-top: 6px">
170
- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
171
- <div class="col-xs-8 col-md-8">
172
- <input type="text" v-model="moveselected.f_remarks"/>
173
- </div>
174
- </div>
175
- </div>
176
- <div slot="modal-footer" class="modal-footer">
177
- <button type="button" class="btn btn-default" @click="movedo()">确定</button>
178
- <button type="button" class="btn btn-default" @click="undo()">取消</button>
179
- </div>
180
- </modal>
181
- <modal :show.sync="showinfo" v-ref:infomodal :backdrop="false">
182
- <div slot="modal-header" class="modal-header">
183
- <h4 class="modal-title">
184
- 工单信息维护
185
- </h4>
186
- </div>
187
- <div slot="modal-body" class="modal-body">
188
- <div class="row" style="margin-top: 6px">
189
- <label class="control-label font text-left col-md-4 col-xs-4">维护内容</label>
190
- <div class="col-xs-8 col-md-8">
191
- <input type="text" v-model="information"/>
192
- </div>
193
- </div>
194
- </div>
195
- <div slot="modal-footer" class="modal-footer">
196
- <button type="button" class="btn btn-default" @click="infoaddsure()">确定</button>
197
- <button type="button" class="btn btn-default" @click="infoclose()">取消</button>
198
- </div>
199
- </modal>
200
- <modal :show.sync="editflag" v-ref:infomodal :backdrop="false">
201
- <div slot="modal-header" class="modal-header">
202
- <h4 class="modal-title">
203
- 工单退回
204
- </h4>
205
- </div>
206
- <div slot="modal-body" class="modal-body">
207
- <div class="row" style="margin-top: 6px">
208
- <label class="col-xs-4 col-md-4 control-label font text-left">工单编号:</label>
209
- <span>{{ sendbackmodel.f_service_id }}</span>
210
- </div>
211
- <div class="row" style="margin-top: 6px">
212
- <label class="col-xs-4 col-md-4 control-label font text-left">客户名称:</label>
213
- <span>{{ sendbackmodel.f_user_name }}</span>
214
- </div>
215
- <div class="row" style="margin-top: 6px">
216
- <label class="control-label font text-left col-md-4 col-xs-4">退回原因</label>
217
- <div class="col-xs-8 col-md-8">
218
- <textarea style="width: 60%" name="name" rows="1" class="ver-textarea" type="text" v-model='f_site_back_reason'></textarea>
219
- </div>
220
- </div>
221
-
222
- </div>
223
- <div slot="modal-footer" class="modal-footer">
224
- <button :disabled="isDis" type="button" name="button" class="btn btn-primary btn-photo" @click="WorkBack()">确定</button>
225
- <button type="button" class="btn btn-default" @click="WorkBackclose()">取消</button>
226
- </div>
227
- </modal>
228
- <modal :show.sync="img_show" v-ref:infomodal :backdrop="false">
229
- <div slot="modal-header" class="modal-header">
230
- <h4 class="modal-title">
231
- 附件查看
232
- </h4>
233
- </div>
234
- <div slot="modal-body" class="modal-body">
235
- <div class="from-group">
236
- <div class="row">
237
- <div class="col-md-6" v-if="temp_row.f_subsidiary1_path">
238
- <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary1_path"></img-self>
239
- </div>
240
- <div class="col-md-6" v-if="temp_row.f_subsidiary2_path">
241
- <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary2_path"></img-self>
242
- </div>
243
- <div class="col-md-6" v-if="temp_row.f_subsidiary3_path">
244
- <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary3_path"></img-self>
245
- </div>
246
- </div>
247
- </div>
248
- </div>
249
- <div slot="modal-footer" class="modal-footer">
250
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="img_show = false">确定</button>
251
- </div>
252
- </modal>
253
- </div>
254
- </div>
255
- </template>
256
- <script>
257
- import FailureShow from '../pc/FailureShow'
258
- import { HttpResetClass } from 'vue-client'
259
- import Vue from 'vue'
260
- import * as Util from "../Util";
261
- // 工作类型对应的各项设置
262
- const config = {
263
- '报修单': {
264
- path: 'getServiceMobile'
265
- },
266
- '置换通气单': {
267
- path: 'getSubstitMobile'
268
- },
269
- '安装单': {
270
- path: 'getInstallMobile'
271
- }
272
- }
273
- export default{
274
- title: '维修员平板首页',
275
- data () {
276
- return {
277
- isDis:false,
278
- img_show:false,
279
- temp_row:{},
280
- // 单条记录
281
- sendbackmodel:{
282
- f_service_id:'',
283
- f_user_name:''
284
- },
285
- // 退回原因
286
- f_site_back_reason:'',
287
- model: {
288
- serviceacitivity: [{
289
- f_site_back_date: '',
290
- f_site_back_name: '',
291
- serviceid: '',
292
- f_service_acitivity_type: '打回'
293
- }
294
- ]
295
- },
296
-
297
- // rows: Object
298
- rows: [{
299
- f_user_name:'',
300
- f_contact_phone:'',
301
- failure:''
302
- }],
303
- editshow:false,
304
- row:{
305
- type:Object,
306
- default:{
307
- f_user_name:'',
308
- f_contact_phone:'',
309
- failure:''
310
- }
311
- },
312
- repairtype:'',
313
- username:'',
314
- address:'',
315
- f_userinfo_code:'',
316
- moveshow:false,
317
- repairers: [],
318
- repairtypes:this.$appdata.getParam('报修类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报修类型')]:[{label: '全部', value: ''}],
319
- moveselected:'',
320
- orderman:'',
321
- number:0,
322
- listData: {
323
- list: [],
324
- isEnd: true,
325
- index: 0
326
- },
327
- loginUser:{
328
- name:Vue.user.name,
329
- ename:Vue.user.ename
330
- },
331
- infoone:'',
332
- showinfo:false,
333
- editflag:false,
334
- information:'',
335
- backservice:false,
336
- // 结案是否显示
337
- endshow:false,
338
- //结案备注
339
- f_caseremarks:'',
340
- // 当前处理的工单
341
- selectone:''
342
- }
343
- },
344
- props: {
345
- worktype:{
346
- type:String,
347
- default:'报修单'
348
- },
349
- sourcet:{
350
- type:String,
351
- default:'横屏'
352
- },
353
- tabname:{
354
- type:String
355
- }
356
- },
357
- methods: {
358
- showSubsidiaryPath(row){
359
- this.img_show = true
360
- this.temp_row = row
361
- },
362
- // 结案确认
363
- caseok(){
364
- let info = {
365
- id:this.selectone.id_back,
366
- f_state : '',
367
- f_processid: this.selectone.f_processid,
368
- f_orderstatus:'无法处理'
369
- }
370
- // 工单结案操作
371
- let data = {model: info, loginUser: {name: Vue.user.name, ename: Vue.user.ename},f_caseremarks:this.f_caseremarks}
372
- let http = new HttpResetClass()
373
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/serviceCase`, data, {
374
- resolveMsg: null,
375
- rejectMsg: null
376
- }).then(() => {
377
- this.$showMessage('结案成功!')
378
- this.f_caseremarks = ''
379
- // 刷新界面
380
- this.getNewOrder()
381
- })
382
- },
383
- // 结案返回
384
- caseclose(){
385
- this.f_caseremarks = ''
386
- this.editflag = null
387
- },
388
- showend(row){
389
- this.selectone = row
390
- this.endshow = true
391
- },
392
- WorkBack () {
393
- this.isDis=true
394
- this.model=this.sendbackmodel
395
- this.model.serviceacitivity = [{
396
- f_site_back_date: '',
397
- f_site_back_name: '',
398
- serviceid: '',
399
- f_site_back_reason:this.f_site_back_reason,
400
- f_service_acitivity_type: ''
401
- }
402
- ]
403
- if(!this.f_site_back_reason){
404
- this.isDis=false
405
- return this.$showMessage('请填写退回内容!')
406
- }
407
- let data = ''
408
- data = {
409
- model: this.model,
410
- loginUser: {name: Vue.user.name, ename: Vue.user.name, id: Vue.user.id}
411
- }
412
- console.log("退回参数"+JSON.stringify(data))
413
- let http = new HttpResetClass()
414
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/sendBack`, data, {resolveMsg: null, rejectMsg: null}).then(() => {
415
- this.$showMessage('退回成功!!!')
416
- this.isDis=false
417
- this.f_site_back_reason = ''
418
- this.editflag =false
419
- this.getNewOrder()
420
- })
421
- },
422
- WorkBackclose(){
423
- this.editflag = false
424
- },
425
- //信息维护,需要在手机端显示,暂时没有显示的地方,后续需要增加,是否考虑先调用本地logic,信息给本地也存,这样本地才能看到
426
- infoaddsure(){
427
- if(!this.information){
428
- return this.$showMessage('请填写维护内容!',['confirm'])
429
- }
430
- // 组装数据
431
- var data = {
432
- id :this.infoone.id_back,
433
- f_processid:this.infoone.f_processid,
434
- f_content:this.information,
435
- serviceacitivity : [{}]
436
- }
437
- let http = new HttpResetClass()
438
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/telinformation`, {model: data, loginUser: this.loginUser,dotype:'mobile'}, {resolveMsg: null, rejectMsg: null}).then(() => {
439
- this.$showMessage('维护内容添加成功!',['confirm'])
440
- this.information = ''
441
- this.showinfo =false
442
- })
443
- },
444
- infoclose(){
445
- this.showinfo = false
446
- },
447
- infoadd(val){
448
- this.infoone =val
449
- this.showinfo = true
450
- },
451
- repiarmancg(val){
452
- this.orderman = val
453
- },
454
- movedo(){
455
- if(this.orderman == undefined || this.orderman == '' ){
456
- this.$showMessage(`请先选择接单人!`, ['confirm'])
457
- return
458
- }
459
- //tag
460
- //tag)
461
- let result = this.$androidUtil.bzLogic('androidMoveService', {id_back: this.moveselected.id_back, f_reciever: this.orderman,f_remarks:this.moveselected.f_remarks,worktype:this.worktype})
462
- if (result.result === '成功') {
463
- this.$showMessage(`向 ${this.orderman} 转单成功!`, ['confirm'])
464
- this.orderman = ''
465
- this.moveselected = ''
466
- this.moveshow = false
467
- this.ifsearch()
468
- } else {
469
- this.$showMessage(`转单失败,请检查网络异常!`, ['confirm'])
470
- }
471
-
472
- },
473
- undo(){
474
- this.orderman = ''
475
- this.moveselected = ''
476
- this.moveshow = false
477
- },
478
- getEmp () {
479
- // 获取接单人数组
480
- let val = ''
481
- var worktypew = this.worktype == '报修单' ? '维修员':this.worktype == '置换员'?'置换员':'安装员'
482
- let http = new HttpResetClass()
483
- //tag)
484
- val = {source: `this.getParentByType($organization$).getChildByName($${worktypew}$).getUsers()`, userid: `${Vue.user.id}`}
485
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
486
- res.data.forEach((item) => {
487
- if (item.state == '在职' || item.status == 0) {
488
- this.repairers.push({label: `${item.name}`, value: item.name})
489
- }
490
- })
491
- })
492
- },
493
- ifsearch(condition){
494
- this.listData.list = []
495
- this.listData.index = 0
496
- this.listData.isEnd = true
497
- if (!condition) {
498
- condition = ''
499
- }
500
- condition = '1 = 1 ' + condition
501
- if(this.username != ''){
502
- condition += " and f_user_name like '%" + this.username + "%'"
503
- }
504
- if(this.address != ''){
505
- condition += " and f_address like '%" + this.address + "%'"
506
- }
507
- if(this.f_userinfo_code != ''){
508
- condition += " and f_userinfo_code = '" + this.f_userinfo_code + "'"
509
- }
510
- if(this.repairtype != ''){
511
- condition += " and f_repairtype = '" + this.repairtype + "'"
512
- }else{
513
- condition += " and f_repairtype != '换表'"
514
- }
515
- //tag
516
- //tag
517
- // 测试环境异步,真实环境同步
518
- if (this.$androidUtil.isTest) {
519
- return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
520
- this.rows = ret.data
521
- })
522
- } else {
523
- let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
524
- if (result.code === 200) {
525
- this.rows = result.data
526
- } else {
527
- this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
528
- }
529
- }
530
- this.showMore()
531
- },
532
- selected (row) {
533
- var prpdata = {
534
- _this:this,
535
- title:'入户维修',
536
- safe:true
537
- }
538
- this.$dispatch('gotoson',prpdata)
539
- if(this.sourcet == '横屏'){
540
- this.$goto('repair-order', {row: row,worktype:this.worktype},'self',this.ifsearch)
541
- }else{
542
- this.$goto('repair-orderV', {row: row,worktype:this.worktype},'self',this.ifsearch)
543
- }
544
- },
545
- sendback(row){
546
- this.$showMessage('退回后数据不可恢复,确认退回操作吗?', ['confirm', 'cancel'],{resolveMsg: null, rejectMsg: null}).then((res) => {
547
- if (res === 'confirm') {
548
- this.editflag = true
549
- this.sendbackmodel = row
550
- console.log("需要的参数"+JSON.stringify( this.sendbackmodel))
551
- }else {
552
- this.editflag = false
553
- }
554
- })
555
- },
556
- moveservice(row){
557
- this.moveselected = row
558
- this.moveshow = true
559
- },
560
- delayedit (row) {
561
- row.state = '延期申请'
562
- this.$goto('delay-apply', {row:row})
563
- },
564
- search () {
565
- // 测试环境异步,真实环境同步
566
- var condition = '1 = 1'
567
- //tag
568
- if (this.$androidUtil.isTest) {
569
- return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
570
- // ret.data.forEach((item) => {
571
- // item.service_version = item.failure.indexOf("漏气") !== -1
572
- // })
573
- this.rows = ret.data
574
- })
575
- } else {
576
- let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
577
- if (result.code === 200) {
578
- //tag)
579
- this.rows = result.data
580
- } else {
581
- this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
582
- }
583
- }
584
- },
585
- sumsearch () {
586
- // 测试环境异步,真实环境同步
587
- var condition = '1 = 1'
588
- //tag
589
- if (this.$androidUtil.isTest) {
590
- return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
591
- // ret.data.forEach((item) => {
592
- // item.service_version = item.failure.indexOf("漏气") !== -1
593
- // })
594
- var titdata = {
595
- title:this.tabname,
596
- sum:ret.data.length
597
- }
598
- //tag
599
- //tag)
600
- this.$emit('changesum',titdata)
601
- })
602
- } else {
603
- let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
604
- if (result.code === 200) {
605
- //tag)
606
- var crv = {
607
- title:this.tabname,
608
- sum:result.data.length
609
- }
610
- //tag
611
- //tag)
612
- this.$emit('changesum',crv)
613
- } else {
614
- this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
615
- }
616
- }
617
- },
618
- makeAPhoneCall(phoneNumber) {
619
- this.$androidUtil.makeAPhoneCall(phoneNumber)
620
- },
621
- upload () {
622
- this.$goto('up-load')
623
- },
624
- back () {
625
- this.$back()
626
- },
627
- getNewOrder(){
628
- HostApp.__this__ = this
629
- HostApp.logicWithHint({
630
- // logic别名,key必须为logic
631
- 'logic': 'TelServiceTimeOut',
632
- // 回调执行方法名,key必须为callback
633
- 'callback': 'javascript:HostApp.__this__.getNewCallBack()',
634
- // logic执行需要的业务参数
635
- 'data': {params: ''},
636
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
637
- // 执行回调方法传入key为backresult
638
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
639
- 'backresult': 1
640
- })
641
- },
642
- getNewCallBack(obj){
643
- //tag)
644
- this.ifsearch()
645
- },
646
- showMore() {
647
- if (!this.rows) {
648
- return
649
- }
650
- let endIndex = this.listData.index + 10
651
- if (endIndex > this.rows.length) {
652
- endIndex = this.rows.length
653
- }
654
- for (; this.listData.index < endIndex; this.listData.index++) {
655
- this.listData.list.push(this.rows[this.listData.index])
656
- }
657
- if(this.listData.index == this.rows.length){
658
- this.listData.isEnd = true
659
- }else {
660
- this.listData.isEnd = false
661
- }
662
- }
663
- },
664
- ready () {
665
- let backservices
666
- backservices=this.$appdata.getSingleValue('维修转单')
667
- console.log("参数为:::"+backservices)
668
- if(backservices==='true'||backservices===''){
669
- this.backservice = '否'
670
- }else {
671
- this.backservice = '是'
672
- }
673
- this.getEmp()
674
- this.ifsearch()
675
- // var _this = this;
676
- // this.timeoutHandle = window.setInterval(function() {
677
- // _this.sumsearch()
678
- // }, 6000)
679
- },
680
- components: {
681
- FailureShow,
682
- 'failure-show': FailureShow
683
- }
684
- }
685
- </script>
686
- <style scoped>
687
- .searBtn {
688
- background: #FFFFFF;
689
- color: #0096fb;
690
- border: 1px solid #0096fb;
691
- border-radius: 5px;
692
- padding: 8px;
693
- text-align: center;
694
- font-size: 1.2em;
695
- z-index: 10;
696
- opacity:0.5;
697
- bottom: 50px;
698
- margin-top: -10px;
699
- height: 40px;
700
- }
701
- .bg {
702
- background-color: #499edf;
703
- height: 1px;
704
- border: 0;
705
- }
706
- .app-row {
707
- background-color: white;
708
- padding: 10px 10px 0 10px;
709
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
710
- }
711
- .search_input {
712
- border: 0;
713
- outline: none;
714
- }
715
- .font{
716
- font: 15px PingFang-SC-Medium;
717
- color: #666666;
718
- }
719
- .input-font{
720
- font: 15px PingFang-SC-Medium;
721
- color: #333333;
722
- }
723
- .btn-font{
724
- font:600 16px PingFang-SC-Bold;
725
- color: #499EDF;
726
- }
727
- .btn-color{
728
- background-color: #FFFFFF;
729
- border-radius: 10px ;
730
- border: 1px solid #499EDF;
731
- }
732
- .panel-blue-border {
733
- border: 1px solid #499edf;
734
- border-radius: 5px;
735
- }
736
- </style>
1
+ <template>
2
+ <div style="height: auto;width: 100%" class="repair-bg">
3
+ <div class="bq-parent">
4
+ <blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
5
+ <p>
6
+ 待办工单<span v-if="rows">({{rows.length}}单)</span>
7
+ <span v-if="!rows">(暂无待处理工单)</span>
8
+ </p>
9
+ </blockquote>
10
+ </div>
11
+
12
+ <div>
13
+ <form>
14
+ <!-- 查询条件-->
15
+ <div class="row app-row">
16
+ <div class="col-xs-4">
17
+ <img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
18
+ <label class="font text-left">用户姓名:</label>
19
+ </div>
20
+ <div class="col-xs-8" >
21
+ <input type="text" v-model="username" placeholder='用户姓名'
22
+ class="search_input input-font" />
23
+ </div>
24
+ </div>
25
+ <div class="row app-row">
26
+ <div class="col-xs-4">
27
+ <img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
28
+ <label class="font text-left">用户编号:</label>
29
+ </div>
30
+ <div class="col-xs-8" >
31
+ <input type="text" v-model="f_userinfo_code" placeholder='用户编号'
32
+ class="search_input input-font" />
33
+ </div>
34
+ </div>
35
+ <div class="row app-row">
36
+ <div class="col-xs-4">
37
+ <img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
38
+ <label class="font text-left">用户地址:</label>
39
+ </div>
40
+ <div class="col-xs-8" >
41
+ <input type="text" class="search_input input-font"
42
+ v-model="address" placeholder='用户地址' />
43
+ </div>
44
+ </div>
45
+ <div class="row app-row" v-if="worktype == '报修单'">
46
+ <div class="col-xs-4">
47
+ <img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
48
+ <label class="font text-left">报修类型:</label>
49
+ </div>
50
+ <div class="col-xs-8" >
51
+ <v-select :value.sync="repairtype"
52
+ v-model="repairtype"
53
+ :options='repairtypes'
54
+ placeholder='请选择'
55
+ close-on-select
56
+ :value-single="true"
57
+ ></v-select>
58
+ </div>
59
+ </div>
60
+ <!-- 分割按钮和条件的高度 -->
61
+ <div class="row app-row" style="height: 10px;"></div>
62
+ <!-- 按钮 -->
63
+ <div class="row text-center app-row">
64
+ <button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch('')" style="min-width: 25%;">查询</button>
65
+ <button type="button" class="btn btn-lg btn-font btn-color" @click='ifsearch(" and f_orderstatus!=null ")' style="min-width: 25%;">查询临时保存</button>
66
+ <img style="float: right;margin-right: 3%;margin-top: -4px " @click="getNewOrder" src="../../assets/shuaxindaiban1.png">
67
+ </div>
68
+ <div style="height:30px;" class="app-row"></div>
69
+ </form>
70
+ </div>
71
+ <!-- 列表 -->
72
+ <div class="panel panel-default repair-info-content auto">
73
+ <div class="panel-body">
74
+ <div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
75
+ <div class="panel-body" style="padding: 10px">
76
+ <div class="row form-group">
77
+ <div class="col-sm-12 col-xs-12 col-md-12">
78
+ <div class="row" >
79
+ <span v-if="row.state==='延期申请'" style="color: darkred">该工单已提交延期处理请勿操作</span>
80
+ <div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
81
+ 工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
82
+ </div>
83
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
84
+ 报修类型: {{row.f_repairtype}}
85
+ </div>
86
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
87
+ 派发时间: {{row.f_created_date}}
88
+ </div>
89
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_finish_date">
90
+ 截止天数: {{Math.floor((new Date(row.f_finish_date.substring(0,10)).getTime() - new Date(row.f_created_date.substring(0,10)).getTime()) / 86400000)}}
91
+ </div>
92
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_finish_date">
93
+ 截止日期: {{row.f_finish_date}}
94
+ </div>
95
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
96
+ 维修类型: {{row.f_repairtype}}
97
+ </div>
98
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
99
+ 用户编号: {{row.f_userinfo_code}}
100
+ </div>
101
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
102
+ 用户证号: {{row.f_enter_number}}
103
+ </div>
104
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
105
+ 用户姓名: {{row.f_user_name}}
106
+ </div>
107
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
108
+ 来电电话: {{row.f_phone}}
109
+ <img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
110
+ </div>
111
+ <div class="col-sm-12 col-xs-12 col-md-12">
112
+ 联系电话: {{row.f_contact_phone}}
113
+ <img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
114
+ </div>
115
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
116
+ 用户地址: {{row.f_address}}
117
+ </div>
118
+ <div v-show="row.f_advice" class="col-sm-12 col-xs-12 col-md-12" v-if="worktype == '报修单'">
119
+ 指导建议: {{row.f_advice}}
120
+ </div>
121
+ <div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
122
+ 备注信息: {{row.f_remarks}}
123
+ </div>
124
+ <div v-show="row.f_yuyue_date" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_yuyue_date !=null">
125
+ 预约时间: {{row.f_yuyue_date}}
126
+ </div>
127
+ <div v-show="row.f_subsidiary1_path" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" >
128
+ 附件查看:
129
+ <button type="button" name="button" class="btn btn-primary btn-sm" @click="showSubsidiaryPath(row)">查看</button>
130
+ </div>
131
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
132
+ <failure-show :value='row.failure'>
133
+ </failure-show>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ <div class="col-sm-12 col-xs-12 col-md-12">
138
+ <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">处理</button>
139
+ <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" @click="sendback(row)">退回</button>
140
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="moveservice(row)">转单</button>
141
+ <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" v-if="false" @click="infoadd(row)">信息维护</button>
142
+ <button type="button" name="button" class="btn btn-primary btn-sm" v-if="false"
143
+ style="float: right;margin-right:10px;" @click="showend(row)">无法处理
144
+ </button>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ <div style="height:auto;width: 100%;text-align: center">
150
+ <a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
151
+ <span v-if="listData.isEnd">到底了......</span>
152
+ </div>
153
+ </div>
154
+ <modal :show.sync="moveshow" v-ref:modal :backdrop="false">
155
+ <div slot="modal-header" class="modal-header">
156
+ <h4 class="modal-title">
157
+ 转单
158
+ </h4>
159
+ </div>
160
+ <div slot="modal-body" class="modal-body">
161
+ <div class="row" style="margin-top: 6px">
162
+ <label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
163
+ <div class="col-xs-8">
164
+ <v-select :value="orderman" :value-single="true"
165
+ :options='repairers' placeholder='请选择接单人'
166
+ close-on-select v-on:change="repiarmancg"></v-select>
167
+ </div>
168
+ </div>
169
+ <div class="row" style="margin-top: 6px">
170
+ <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
171
+ <div class="col-xs-8 col-md-8">
172
+ <input type="text" v-model="moveselected.f_remarks"/>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ <div slot="modal-footer" class="modal-footer">
177
+ <button type="button" class="btn btn-default" @click="movedo()">确定</button>
178
+ <button type="button" class="btn btn-default" @click="undo()">取消</button>
179
+ </div>
180
+ </modal>
181
+ <modal :show.sync="showinfo" v-ref:infomodal :backdrop="false">
182
+ <div slot="modal-header" class="modal-header">
183
+ <h4 class="modal-title">
184
+ 工单信息维护
185
+ </h4>
186
+ </div>
187
+ <div slot="modal-body" class="modal-body">
188
+ <div class="row" style="margin-top: 6px">
189
+ <label class="control-label font text-left col-md-4 col-xs-4">维护内容</label>
190
+ <div class="col-xs-8 col-md-8">
191
+ <input type="text" v-model="information"/>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <div slot="modal-footer" class="modal-footer">
196
+ <button type="button" class="btn btn-default" @click="infoaddsure()">确定</button>
197
+ <button type="button" class="btn btn-default" @click="infoclose()">取消</button>
198
+ </div>
199
+ </modal>
200
+ <modal :show.sync="editflag" v-ref:infomodal :backdrop="false">
201
+ <div slot="modal-header" class="modal-header">
202
+ <h4 class="modal-title">
203
+ 工单退回
204
+ </h4>
205
+ </div>
206
+ <div slot="modal-body" class="modal-body">
207
+ <div class="row" style="margin-top: 6px">
208
+ <label class="col-xs-4 col-md-4 control-label font text-left">工单编号:</label>
209
+ <span>{{ sendbackmodel.f_service_id }}</span>
210
+ </div>
211
+ <div class="row" style="margin-top: 6px">
212
+ <label class="col-xs-4 col-md-4 control-label font text-left">客户名称:</label>
213
+ <span>{{ sendbackmodel.f_user_name }}</span>
214
+ </div>
215
+ <div class="row" style="margin-top: 6px">
216
+ <label class="control-label font text-left col-md-4 col-xs-4">退回原因</label>
217
+ <div class="col-xs-8 col-md-8">
218
+ <textarea style="width: 60%" name="name" rows="1" class="ver-textarea" type="text" v-model='f_site_back_reason'></textarea>
219
+ </div>
220
+ </div>
221
+
222
+ </div>
223
+ <div slot="modal-footer" class="modal-footer">
224
+ <button :disabled="isDis" type="button" name="button" class="btn btn-primary btn-photo" @click="WorkBack()">确定</button>
225
+ <button type="button" class="btn btn-default" @click="WorkBackclose()">取消</button>
226
+ </div>
227
+ </modal>
228
+ <modal :show.sync="img_show" v-ref:infomodal :backdrop="false">
229
+ <div slot="modal-header" class="modal-header">
230
+ <h4 class="modal-title">
231
+ 附件查看
232
+ </h4>
233
+ </div>
234
+ <div slot="modal-body" class="modal-body">
235
+ <div class="from-group">
236
+ <div class="row">
237
+ <div class="col-md-6" v-if="temp_row.f_subsidiary1_path">
238
+ <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary1_path"></img-self>
239
+ </div>
240
+ <div class="col-md-6" v-if="temp_row.f_subsidiary2_path">
241
+ <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary2_path"></img-self>
242
+ </div>
243
+ <div class="col-md-6" v-if="temp_row.f_subsidiary3_path">
244
+ <img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary3_path"></img-self>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </div>
249
+ <div slot="modal-footer" class="modal-footer">
250
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="img_show = false">确定</button>
251
+ </div>
252
+ </modal>
253
+ </div>
254
+ </div>
255
+ </template>
256
+ <script>
257
+ import FailureShow from '../pc/FailureShow'
258
+ import { HttpResetClass } from 'vue-client'
259
+ import Vue from 'vue'
260
+ import * as Util from "../Util";
261
+ // 工作类型对应的各项设置
262
+ const config = {
263
+ '报修单': {
264
+ path: 'getServiceMobile'
265
+ },
266
+ '置换通气单': {
267
+ path: 'getSubstitMobile'
268
+ },
269
+ '安装单': {
270
+ path: 'getInstallMobile'
271
+ }
272
+ }
273
+ export default{
274
+ title: '维修员平板首页',
275
+ data () {
276
+ return {
277
+ isDis:false,
278
+ img_show:false,
279
+ temp_row:{},
280
+ // 单条记录
281
+ sendbackmodel:{
282
+ f_service_id:'',
283
+ f_user_name:''
284
+ },
285
+ // 退回原因
286
+ f_site_back_reason:'',
287
+ model: {
288
+ serviceacitivity: [{
289
+ f_site_back_date: '',
290
+ f_site_back_name: '',
291
+ serviceid: '',
292
+ f_service_acitivity_type: '打回'
293
+ }
294
+ ]
295
+ },
296
+
297
+ // rows: Object
298
+ rows: [{
299
+ f_user_name:'',
300
+ f_contact_phone:'',
301
+ failure:''
302
+ }],
303
+ editshow:false,
304
+ row:{
305
+ type:Object,
306
+ default:{
307
+ f_user_name:'',
308
+ f_contact_phone:'',
309
+ failure:''
310
+ }
311
+ },
312
+ repairtype:'',
313
+ username:'',
314
+ address:'',
315
+ f_userinfo_code:'',
316
+ moveshow:false,
317
+ repairers: [],
318
+ repairtypes:this.$appdata.getParam('报修类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报修类型')]:[{label: '全部', value: ''}],
319
+ moveselected:'',
320
+ orderman:'',
321
+ number:0,
322
+ listData: {
323
+ list: [],
324
+ isEnd: true,
325
+ index: 0
326
+ },
327
+ loginUser:{
328
+ name:Vue.user.name,
329
+ ename:Vue.user.ename
330
+ },
331
+ infoone:'',
332
+ showinfo:false,
333
+ editflag:false,
334
+ information:'',
335
+ backservice:false,
336
+ // 结案是否显示
337
+ endshow:false,
338
+ //结案备注
339
+ f_caseremarks:'',
340
+ // 当前处理的工单
341
+ selectone:''
342
+ }
343
+ },
344
+ props: {
345
+ worktype:{
346
+ type:String,
347
+ default:'报修单'
348
+ },
349
+ sourcet:{
350
+ type:String,
351
+ default:'横屏'
352
+ },
353
+ tabname:{
354
+ type:String
355
+ }
356
+ },
357
+ methods: {
358
+ showSubsidiaryPath(row){
359
+ this.img_show = true
360
+ this.temp_row = row
361
+ },
362
+ // 结案确认
363
+ caseok(){
364
+ let info = {
365
+ id:this.selectone.id_back,
366
+ f_state : '',
367
+ f_processid: this.selectone.f_processid,
368
+ f_orderstatus:'无法处理'
369
+ }
370
+ // 工单结案操作
371
+ let data = {model: info, loginUser: {name: Vue.user.name, ename: Vue.user.ename},f_caseremarks:this.f_caseremarks}
372
+ let http = new HttpResetClass()
373
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/serviceCase`, data, {
374
+ resolveMsg: null,
375
+ rejectMsg: null
376
+ }).then(() => {
377
+ this.$showMessage('结案成功!')
378
+ this.f_caseremarks = ''
379
+ // 刷新界面
380
+ this.getNewOrder()
381
+ })
382
+ },
383
+ // 结案返回
384
+ caseclose(){
385
+ this.f_caseremarks = ''
386
+ this.editflag = null
387
+ },
388
+ showend(row){
389
+ this.selectone = row
390
+ this.endshow = true
391
+ },
392
+ WorkBack () {
393
+ this.isDis=true
394
+ this.model=this.sendbackmodel
395
+ this.model.serviceacitivity = [{
396
+ f_site_back_date: '',
397
+ f_site_back_name: '',
398
+ serviceid: '',
399
+ f_site_back_reason:this.f_site_back_reason,
400
+ f_service_acitivity_type: ''
401
+ }
402
+ ]
403
+ if(!this.f_site_back_reason){
404
+ this.isDis=false
405
+ return this.$showMessage('请填写退回内容!')
406
+ }
407
+ let data = ''
408
+ data = {
409
+ model: this.model,
410
+ loginUser: {name: Vue.user.name, ename: Vue.user.name, id: Vue.user.id}
411
+ }
412
+ console.log("退回参数"+JSON.stringify(data))
413
+ let http = new HttpResetClass()
414
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/sendBack`, data, {resolveMsg: null, rejectMsg: null}).then(() => {
415
+ this.$showMessage('退回成功!!!')
416
+ this.isDis=false
417
+ this.f_site_back_reason = ''
418
+ this.editflag =false
419
+ this.getNewOrder()
420
+ })
421
+ },
422
+ WorkBackclose(){
423
+ this.editflag = false
424
+ },
425
+ //信息维护,需要在手机端显示,暂时没有显示的地方,后续需要增加,是否考虑先调用本地logic,信息给本地也存,这样本地才能看到
426
+ infoaddsure(){
427
+ if(!this.information){
428
+ return this.$showMessage('请填写维护内容!',['confirm'])
429
+ }
430
+ // 组装数据
431
+ var data = {
432
+ id :this.infoone.id_back,
433
+ f_processid:this.infoone.f_processid,
434
+ f_content:this.information,
435
+ serviceacitivity : [{}]
436
+ }
437
+ let http = new HttpResetClass()
438
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/telinformation`, {model: data, loginUser: this.loginUser,dotype:'mobile'}, {resolveMsg: null, rejectMsg: null}).then(() => {
439
+ this.$showMessage('维护内容添加成功!',['confirm'])
440
+ this.information = ''
441
+ this.showinfo =false
442
+ })
443
+ },
444
+ infoclose(){
445
+ this.showinfo = false
446
+ },
447
+ infoadd(val){
448
+ this.infoone =val
449
+ this.showinfo = true
450
+ },
451
+ repiarmancg(val){
452
+ this.orderman = val
453
+ },
454
+ movedo(){
455
+ if(this.orderman == undefined || this.orderman == '' ){
456
+ this.$showMessage(`请先选择接单人!`, ['confirm'])
457
+ return
458
+ }
459
+ //tag
460
+ //tag)
461
+ let result = this.$androidUtil.bzLogic('androidMoveService', {id_back: this.moveselected.id_back, f_reciever: this.orderman,f_remarks:this.moveselected.f_remarks,worktype:this.worktype})
462
+ if (result.result === '成功') {
463
+ this.$showMessage(`向 ${this.orderman} 转单成功!`, ['confirm'])
464
+ this.orderman = ''
465
+ this.moveselected = ''
466
+ this.moveshow = false
467
+ this.ifsearch()
468
+ } else {
469
+ this.$showMessage(`转单失败,请检查网络异常!`, ['confirm'])
470
+ }
471
+
472
+ },
473
+ undo(){
474
+ this.orderman = ''
475
+ this.moveselected = ''
476
+ this.moveshow = false
477
+ },
478
+ getEmp () {
479
+ // 获取接单人数组
480
+ let val = ''
481
+ var worktypew = this.worktype == '报修单' ? '维修员':this.worktype == '置换员'?'置换员':'安装员'
482
+ let http = new HttpResetClass()
483
+ //tag)
484
+ val = {source: `this.getParentByType($organization$).getChildByName($${worktypew}$).getUsers()`, userid: `${Vue.user.id}`}
485
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
486
+ res.data.forEach((item) => {
487
+ if (item.state == '在职' || item.status == 0) {
488
+ this.repairers.push({label: `${item.name}`, value: item.name})
489
+ }
490
+ })
491
+ })
492
+ },
493
+ ifsearch(condition){
494
+ this.listData.list = []
495
+ this.listData.index = 0
496
+ this.listData.isEnd = true
497
+ if (!condition) {
498
+ condition = ''
499
+ }
500
+ condition = '1 = 1 ' + condition
501
+ if(this.username != ''){
502
+ condition += " and f_user_name like '%" + this.username + "%'"
503
+ }
504
+ if(this.address != ''){
505
+ condition += " and f_address like '%" + this.address + "%'"
506
+ }
507
+ if(this.f_userinfo_code != ''){
508
+ condition += " and f_userinfo_code = '" + this.f_userinfo_code + "'"
509
+ }
510
+ if(this.repairtype != ''){
511
+ condition += " and f_repairtype = '" + this.repairtype + "'"
512
+ }else{
513
+ condition += " and f_repairtype != '换表'"
514
+ }
515
+ //tag
516
+ //tag
517
+ // 测试环境异步,真实环境同步
518
+ if (this.$androidUtil.isTest) {
519
+ return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
520
+ this.rows = ret.data
521
+ })
522
+ } else {
523
+ let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
524
+ if (result.code === 200) {
525
+ this.rows = result.data
526
+ } else {
527
+ this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
528
+ }
529
+ }
530
+ this.showMore()
531
+ },
532
+ selected (row) {
533
+ var prpdata = {
534
+ _this:this,
535
+ title:'入户维修',
536
+ safe:true
537
+ }
538
+ this.$dispatch('gotoson',prpdata)
539
+ if(this.sourcet == '横屏'){
540
+ this.$goto('repair-order', {row: row,worktype:this.worktype},'self',this.ifsearch)
541
+ }else{
542
+ this.$goto('repair-orderV', {row: row,worktype:this.worktype},'self',this.ifsearch)
543
+ }
544
+ },
545
+ sendback(row){
546
+ this.$showMessage('退回后数据不可恢复,确认退回操作吗?', ['confirm', 'cancel'],{resolveMsg: null, rejectMsg: null}).then((res) => {
547
+ if (res === 'confirm') {
548
+ this.editflag = true
549
+ this.sendbackmodel = row
550
+ console.log("需要的参数"+JSON.stringify( this.sendbackmodel))
551
+ }else {
552
+ this.editflag = false
553
+ }
554
+ })
555
+ },
556
+ moveservice(row){
557
+ this.moveselected = row
558
+ this.moveshow = true
559
+ },
560
+ delayedit (row) {
561
+ row.state = '延期申请'
562
+ this.$goto('delay-apply', {row:row})
563
+ },
564
+ search () {
565
+ // 测试环境异步,真实环境同步
566
+ var condition = '1 = 1'
567
+ //tag
568
+ if (this.$androidUtil.isTest) {
569
+ return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
570
+ // ret.data.forEach((item) => {
571
+ // item.service_version = item.failure.indexOf("漏气") !== -1
572
+ // })
573
+ this.rows = ret.data
574
+ })
575
+ } else {
576
+ let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
577
+ if (result.code === 200) {
578
+ //tag)
579
+ this.rows = result.data
580
+ } else {
581
+ this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
582
+ }
583
+ }
584
+ },
585
+ sumsearch () {
586
+ // 测试环境异步,真实环境同步
587
+ var condition = '1 = 1'
588
+ //tag
589
+ if (this.$androidUtil.isTest) {
590
+ return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
591
+ // ret.data.forEach((item) => {
592
+ // item.service_version = item.failure.indexOf("漏气") !== -1
593
+ // })
594
+ var titdata = {
595
+ title:this.tabname,
596
+ sum:ret.data.length
597
+ }
598
+ //tag
599
+ //tag)
600
+ this.$emit('changesum',titdata)
601
+ })
602
+ } else {
603
+ let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
604
+ if (result.code === 200) {
605
+ //tag)
606
+ var crv = {
607
+ title:this.tabname,
608
+ sum:result.data.length
609
+ }
610
+ //tag
611
+ //tag)
612
+ this.$emit('changesum',crv)
613
+ } else {
614
+ this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
615
+ }
616
+ }
617
+ },
618
+ makeAPhoneCall(phoneNumber) {
619
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
620
+ },
621
+ upload () {
622
+ this.$goto('up-load')
623
+ },
624
+ back () {
625
+ this.$back()
626
+ },
627
+ getNewOrder(){
628
+ HostApp.__this__ = this
629
+ HostApp.logicWithHint({
630
+ // logic别名,key必须为logic
631
+ 'logic': 'TelServiceTimeOut',
632
+ // 回调执行方法名,key必须为callback
633
+ 'callback': 'javascript:HostApp.__this__.getNewCallBack()',
634
+ // logic执行需要的业务参数
635
+ 'data': {params: ''},
636
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
637
+ // 执行回调方法传入key为backresult
638
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
639
+ 'backresult': 1
640
+ })
641
+ },
642
+ getNewCallBack(obj){
643
+ //tag)
644
+ this.ifsearch()
645
+ },
646
+ showMore() {
647
+ if (!this.rows) {
648
+ return
649
+ }
650
+ let endIndex = this.listData.index + 10
651
+ if (endIndex > this.rows.length) {
652
+ endIndex = this.rows.length
653
+ }
654
+ for (; this.listData.index < endIndex; this.listData.index++) {
655
+ this.listData.list.push(this.rows[this.listData.index])
656
+ }
657
+ if(this.listData.index == this.rows.length){
658
+ this.listData.isEnd = true
659
+ }else {
660
+ this.listData.isEnd = false
661
+ }
662
+ }
663
+ },
664
+ ready () {
665
+ let backservices
666
+ backservices=this.$appdata.getSingleValue('维修转单')
667
+ console.log("参数为:::"+backservices)
668
+ if(backservices==='true'||backservices===''){
669
+ this.backservice = '否'
670
+ }else {
671
+ this.backservice = '是'
672
+ }
673
+ this.getEmp()
674
+ this.ifsearch()
675
+ // var _this = this;
676
+ // this.timeoutHandle = window.setInterval(function() {
677
+ // _this.sumsearch()
678
+ // }, 6000)
679
+ },
680
+ components: {
681
+ FailureShow,
682
+ 'failure-show': FailureShow
683
+ }
684
+ }
685
+ </script>
686
+ <style scoped>
687
+ .searBtn {
688
+ background: #FFFFFF;
689
+ color: #0096fb;
690
+ border: 1px solid #0096fb;
691
+ border-radius: 5px;
692
+ padding: 8px;
693
+ text-align: center;
694
+ font-size: 1.2em;
695
+ z-index: 10;
696
+ opacity:0.5;
697
+ bottom: 50px;
698
+ margin-top: -10px;
699
+ height: 40px;
700
+ }
701
+ .bg {
702
+ background-color: #499edf;
703
+ height: 1px;
704
+ border: 0;
705
+ }
706
+ .app-row {
707
+ background-color: white;
708
+ padding: 10px 10px 0 10px;
709
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
710
+ }
711
+ .search_input {
712
+ border: 0;
713
+ outline: none;
714
+ }
715
+ .font{
716
+ font: 15px PingFang-SC-Medium;
717
+ color: #666666;
718
+ }
719
+ .input-font{
720
+ font: 15px PingFang-SC-Medium;
721
+ color: #333333;
722
+ }
723
+ .btn-font{
724
+ font:600 16px PingFang-SC-Bold;
725
+ color: #499EDF;
726
+ }
727
+ .btn-color{
728
+ background-color: #FFFFFF;
729
+ border-radius: 10px ;
730
+ border: 1px solid #499EDF;
731
+ }
732
+ .panel-blue-border {
733
+ border: 1px solid #499edf;
734
+ border-radius: 5px;
735
+ }
736
+ </style>