telephone-clients 3.0.103-5 → 3.0.103-7

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.
@@ -1,542 +1,548 @@
1
- <template>
2
- <partial-view-tel v-ref:pv>
3
- <div class="panel panel-info auto" >
4
- <div class="panel-heading auto" style="text-align: center">
5
- <h4 style="display:inline-block;margin-top: auto">工单信息</h4>
6
- </div>
7
- <div class="auto info-content">
8
- <!-- <div style="padding:0px 0px 10px 0px;margin-left: 20px;overflow: auto;" id="work-history">-->
9
-
10
- <div class="row">
11
- <label class="col-sm-4 ">工单编号:</label>
12
- <span class="col-sm-8">{{ service?service.f_service_id:'***********' }}</span>
13
- </div>
14
- <div class="row"
15
- v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
16
- <label class="col-sm-4 ">当前状态:</label>
17
- <span class="col-sm-8">{{ rowOne.processins.activities[0].defname }}</span>
18
- </div>
19
- <div class="row">
20
- <label class="col-sm-4 ">工单时间:</label>
21
- <span class="col-sm-8">{{ service?service.f_created_date:'****年**月**日' }}</span>
22
- </div>
23
- <div class="row" v-if="service.f_workorder_type=='置换通气单'||service.f_workorder_type=='安装单'">
24
- <label class="col-sm-4 ">预约时间:</label>
25
- <span class="col-sm-8">{{ service.f_yuyue_date }}</span>
26
- </div>
27
- <div class="row">
28
- <label class="col-sm-4 ">客户姓名:</label>
29
- <span class="col-sm-8">{{ service?service.f_user_name:'***' }}</span>
30
- </div>
31
- <div class="row">
32
- <label class="col-sm-4 ">来电电话:</label>
33
- <span class="col-sm-8">{{ service?service.f_phone:'***********' }}</span>
34
- </div>
35
- <div class="row">
36
- <label class="col-sm-4 ">联系电话:</label>
37
- <span class="col-sm-8">{{ service?service.f_contact_phone:'***********' }}</span>
38
- </div>
39
- <div class="row" v-if="service.f_workorder_type=='报修单'">
40
- <label class="col-sm-4 ">报修类型:</label>
41
- <span class="col-sm-8">{{ service.f_repairtype }}</span>
42
- </div>
43
- <!-- <p>工单编号: <span class="fwb">{{service.f_service_id}}</span></p>-->
44
- <!-- <p v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >当前状态: <span class="fwb">{{rowOne.processins.activities[0].defname}}</span></p>-->
45
- <!-- <p>工单时间: <span class="fwb">{{service.f_created_date}}</span></p>-->
46
- <!-- <p v-if="service.f_workorder_type=='置换通气单'||service.f_workorder_type=='安装单'" >预约时间: <span class="fwb">{{service.f_yuyue_date}}</span></p>-->
47
- <!-- <p>客户姓名: <span class="fwb">{{service.f_user_name}}</span></p>-->
48
- <!-- <p>来电电话: <span class="fwb">{{service.f_phone}}</span></p>-->
49
- <!-- <p v-if="service.f_workorder_type=='报修单'">报修类型: <span class="fwb">{{service.f_repairtype}}</span></p>-->
50
- <div class="row"
51
- v-if="service.f_workorder_type!=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
52
- <label class="col-sm-4 ">工单内容:</label>
53
- <span class="col-sm-8">{{ service.f_content }}</span>
54
- </div>
55
- <div class="row" v-if="service.f_workorder_type=='报修单'">
56
- <label class="col-sm-4 ">客户编号:</label>
57
- <span class="col-sm-8">{{ service.f_userinfo_code }}</span>
58
- </div>
59
- <div class="row"
60
- v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
61
- <label class="col-sm-4 ">用户地址:</label>
62
- <span class="col-sm-8">{{ service.f_address }}</span>
63
- </div>
64
- <div class="row"
65
- v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
66
- <label class="col-sm-4 ">工单备注:</label>
67
- <span class="col-sm-8">{{ service.f_remarks }}</span>
68
- </div>
69
- <!-- <p v-if="service.f_workorder_type!=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >工单内容: <span class="fwb">{{service.f_content}}</span></p>-->
70
- <!-- <p v-if="service.f_workorder_type=='报修单'" >客户编号: <span class="fwb">{{service.f_userinfo_code}}</span></p>-->
71
- <!-- <p v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >用户地址: <span class="fwb">{{service.f_address}}</span></p>-->
72
- <!-- <p >备注: <span class="fwb">{{service.f_remarks}}</span></p>-->
73
-
74
- <!-- <p v-if="rowOne.f_single_path||rowOne.f_singlea_path ||rowOne.f_singleb_path"> <button-link type="button" class="btn btn-link" @click="showpicture(rowOne)">抢修图片-->
75
- <!-- </button-link></p>-->
76
- <!--<button v-if="service.f_workorder_type=='报修单'" class="btn btn-success" @click="discuss">评价</button>-->
77
- <div class="row"
78
- v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
79
- <label class="col-sm-4 ">指导建议:</label>
80
- <span class="col-sm-8">{{ service.f_advice }}</span>
81
- </div>
82
- <div class="row"
83
- v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
84
- <label class="col-sm-4 ">故障明细:</label>
85
- <span class="col-sm-8">{{ trouble(service.failure)}}</span>
86
- </div>
87
- <div class="row" v-if="service">
88
- <label class="col-sm-4 ">信息维护:</label>
89
- <span class="col-sm-8">
90
- <button type="button" class="btn-link btn"
91
- @click="infoadd()">工单信息补充
92
- </button>
93
- </span>
94
- </div>
95
- <!-- 工单的流转时间轴信息,每个活动的内容各不相同 -->
96
- </div>
97
- <div class="panel-heading auto" style="text-align: center" v-show="service.serviceacitivity.length>0">
98
- <h4 style="display:inline-block;margin-top: auto">工单历史</h4>
99
- </div>
100
- <div class="tab-content span">
101
- <timeline style="margin-left: 20px"
102
- v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'|| service.f_workorder_type=='投诉单'||service.f_workorder_type=='咨询单'">
103
- <timeline-item-tel v-for="activity in service.serviceacitivity"
104
- :color="$index === service.serviceacitivity.length - 1 ? 'blue' : 'default'"
105
- :isblue="$index === service.serviceacitivity.length - 1 ? true : false">
106
- <!-- 派单 -->
107
- <div style="margin-top: 5px" v-if="activity.type === 't_servicesend'">
108
- <p>{{ activity.f_date }}</p>
109
- <p>{{ activity.f_name }}派单给{{ getReciever(activity) }}</p>
110
- </div>
111
- <!-- 工单打回 -->
112
- <div style="margin-top: 5px" v-if="activity.type === 't_service_back'">
113
- <p>{{ activity.f_date }}</p>
114
- <p>{{ activity.f_operator }}将工单{{activity.f_back_type}}</p>
115
- <p v-if="activity.f_remarks">原因:{{ activity.f_remarks }}</p>
116
- </div>
117
- <!-- 用户催单 -->
118
- <div style="margin-top: 5px" v-if="activity.type === 't_reminder'">
119
- <p>{{ activity.f_reminder_date }}</p>
120
- <p>用户催单</p>
121
- <p>催单内容:{{ activity.f_content }}</p>
122
- </div>
123
- <!-- 工单信息补充 -->
124
- <div style="margin-top: 5px" v-if="activity.type === 't_telinformation'">
125
- <p>{{ activity.f_information_date }}</p>
126
- <p>{{ activity.f_operator_name }}进行信息补充</p>
127
- <p>维护内容:{{ activity.f_content }}</p>
128
- </div>
129
- <!-- 一次维修 -->
130
- <div style="margin-top: 5px" v-if="activity.type === 't_servicework'">
131
- <p>入户时间: {{ activity.f_date_come }}</p>
132
- <p>离开时间: {{ activity.f_date_leave }}</p>
133
- <!--<img-self v-for="img in activity.imgs" :src="`rs/file/getfile/${img.imgid}`" alt="测试" :width="150"-->
134
- <!--:height="200"></img-self>-->
135
- <p>接单员: {{ activity.f_name }} &nbsp;&nbsp;&nbsp;完成结果: {{ activity.f_result_status }}
136
- </p>
137
- <p v-if="activity.f_result_status === '未完成'">原因: {{ activity.f_reason }}
138
- </p>
139
- <button
140
- v-if="activity.f_result_status !== '未完成'"
141
- type="button" name="button"style="margin-left: 0px" class="button_spacing button_search-1"
142
- @click="repairlist($index)">查看详情
143
- </button>
144
- <!-- <span class="btn btn-link add-postition" >详情</span>-->
145
- </div>
146
- <!-- 工单结案 -->
147
- <div style="margin-top: 5px" v-if="activity.type === 't_serviceend'">
148
- <p>{{ activity.f_date }}</p>
149
- <p>{{ activity.f_name }}结束工单,备注:{{ activity.f_caseremarks }}</p>
150
- </div>
151
- <!-- 投诉处理 -->
152
- <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '投诉单' && activity.type === 't_complanintend'">
153
- <p>{{ activity.f_date }}</p>
154
- <p>{{ activity.f_name }}处理了投诉单</p>
155
- <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
156
- </div>
157
- <!--咨询单处理 -->
158
- <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '咨询单'&& activity.type === 't_complanintend'">
159
- <p>{{ activity.f_date }}</p>
160
- <p>{{ activity.f_name }}处理了咨询单</p>
161
- <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
162
- </div>
163
- </timeline-item-tel>
164
- </timeline>
165
- <!--<button v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'" class="btn btn-success" @click="discuss">评价</button>-->
166
- <!--<button v-if="service"class="btn btn-success" @click="takett">操作</button>-->
167
- <div v-show="service.f_record_sound.length>0">
168
- <button-link type="button" class="btn btn-link" @click="playWav(service.f_record_sound)">播放录音</button-link>
169
- </div>
170
- <!-- <evaluate-list :evaluate="evaluate" :shownum="num" v-ref:evaluate></evaluate-list>-->
171
- <modal :show.sync="repaierShow" large="true" v-ref:modal backdrop="false">
172
- <header slot="modal-header" class="modal-header">
173
- 工单详情
174
- </header>
175
- <article slot="modal-body" class="modal-body">
176
- <div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="repaierShow">
177
- <repair-order :show="true" :row="service" system="pc" :repair="curActivity">
178
- </repair-order>
179
- </div>
180
- </article>
181
- <footer slot="modal-footer" class="modal-footer">
182
- <button type="button" class="btn btn-success" @click='close'>确认</button>
183
- </footer>
184
- </modal>
185
- <div v-if="show">
186
- <modal :show.sync="show" v-ref:modal1 backdrop="false">
187
- <header slot="modal-header" class="modal-header">
188
- <h2 class="modal-title">正在播放{{ wavflie }}语音文件</h2>
189
- </header>
190
- <article slot="modal-body" class="modal-body">
191
- <audio controls>
192
- <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav">
193
- 您的浏览器不支持 audio 元素。
194
- </audio>
195
- </article>
196
- <footer slot="modal-footer" class="modal-footer">
197
- <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
198
- </footer>
199
- </modal>
200
- </div>
201
- <!-- <div style="height: 60px;" v-if="show"class="form-inline">
202
- <audio controls style="margin-top: 10px;">
203
- <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav" >
204
- 您的浏览器不支持 audio 元素。
205
- </audio>
206
- <div class="form-group">
207
- <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
208
- </div>
209
- </div> -->
210
- <!-- <modal :show.sync="takeshow" large="true" v-ref:modal2 backdrop="false">-->
211
- <!-- <article slot="modal-body" class="modal-body">-->
212
- <!-- <server-appendix-info @clean="clean" @success="renew" :row="service"></server-appendix-info>-->
213
- <!-- </article>-->
214
- <!-- <footer slot="modal-footer" class="modal-footer">-->
215
- <!-- </footer>-->
216
- <!-- </modal>-->
217
- <!-- <evaluate-model :evaluate="evaluate" :isshow="isshow" @closeevaluate="closeevaluate" @saveevaluate="saveevaluate"></evaluate-model>-->
218
- <!-- </div>-->
219
-
220
- </div>
221
-
222
- </div>
223
- </partial-view-tel>
224
-
225
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
226
- <header slot="modal-header" class="modal-header">
227
- 在线抢修照片
228
- </header>
229
- <article slot="modal-body" class="modal-body">
230
- <div class="from-group">
231
- <img-self v-if="rowOne.f_single_path" :src="imgfilename" width="500" height="500"></img-self>
232
- <img-self v-if="rowOne.f_singlea_path" :src="imgfilenamea" width="500" height="500"></img-self>
233
- <img-self v-if="rowOne.f_singleb_path" :src="imgfilenameb" width="500" height="500"></img-self>
234
- </div>
235
- </article>
236
- <footer slot="modal-footer" class="modal-footer">
237
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
238
- </footer>
239
- </modal>
240
-
241
- <modal :show.sync="showinfo" v-ref:infomodal backdrop="true">
242
- <header slot="modal-header" class="modal-header">
243
- 工单信息补充
244
- </header>
245
- <article slot="modal-body" class="modal-body">
246
- <div class="from-group">
247
- <label class="font_normal_body" style="width: 15%">维护内容</label>
248
- <textarea style="width: 80%" name="name" rows="3" class="ver-textarea" class="form-control" v-model='information'></textarea>
249
- </div>
250
- </article>
251
- <footer slot="modal-footer" class="modal-footer">
252
- <button type="button" class="btn btn-success" @click='infoaddsure'>添加</button>
253
- <button type="button" class="btn btn-success" @click='infoclose'>取消</button>
254
- </footer>
255
- </modal>
256
-
257
-
258
- <!-- 投诉单咨询单详情 -->
259
- <modal :show.sync="iscomplanAllInfo" v-ref:modal_complan backdrop="true">
260
- <header slot="modal-header" class="modal-header">
261
- 工单详情
262
- </header>
263
- <article slot="modal-body" class="modal-body">
264
- <div class="select-overspread form-horizontal auto workOrderInfo">
265
- <div class="row">
266
- <div class="col-sm-12 form-group form-input-group" >
267
- <label class="font_normal_body" style="width: 10%">工单编号</label>
268
- <h5 style="padding: 0px">{{ rowOne.f_service_id }}</h5>
269
- </div>
270
- <div class="col-sm-12 form-input-group" >
271
- <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '咨询单'">咨询内容</label>
272
- <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '投诉单'">投诉内容</label>
273
- <textarea name="name" rows="3" v-model="rowOne.f_content"
274
- class="form-control ver-textarea" id="f_content" name="f_content" readonly="readonly"></textarea>
275
- </div>
276
- <div class="col-sm-4 form-group form-input-group" >
277
- <label class="font_normal_body" style="width: 30%">来电电话</label>
278
- <input type="text" name="" v-model='rowOne.f_phone'
279
- class="form-control" readonly="readonly">
280
- </div>
281
- <div class="col-sm-4 form-group form-input-group" >
282
- <label class="font_normal_body" style="width: 30%">联系人</label>
283
- <input type="text" name="" v-model='rowOne.f_user_name'
284
- class="form-control" readonly="readonly">
285
- </div>
286
- <div class="col-sm-4 form-group form-input-group" >
287
- <label class="font_normal_body" style="width: 30%">联系电话</label>
288
- <input type="text" name="" v-model='rowOne.f_contact_phone'
289
- class="form-control" readonly="readonly">
290
- </div>
291
- <div class="col-sm-12 form-input-group" >
292
- <label class="font_normal_body" style="width: 10%">备注</label>
293
- <textarea name="name" rows="3" v-model="rowOne.f_remarks"
294
- class="form-control ver-textarea" readonly="readonly"></textarea>
295
- </div>
296
- <div class="col-sm-12 form-input-group">
297
- <label class="font_normal_body" style="width: 10%">处理结果</label>
298
- <textarea name="name" rows="3" v-model="complanResult.f_complaint_results"
299
- class="form-control ver-textarea" readonly="readonly"></textarea>
300
- </div>
301
- </div>
302
- </div>
303
- </article>
304
- <footer slot="modal-footer" class="modal-footer">
305
- <button type="button" name="button" class="button_search button_spacing"
306
- @click='iscomplanAllInfo = false;complanResult={}'>确定</button>
307
- </footer>
308
- </modal>
309
-
310
-
311
- </template>
312
- <script>
313
- import co from 'co'
314
- import Vue from 'vue'
315
- import FailureShow from './FailureShow'
316
-
317
- let getGen = function * (self) {
318
- yield self.$resetpost('rs/path/getService', {data: {id: self.rowOne.id}}, {resolveMsg: null, rejectMsg: null})
319
- .then((res) => {
320
- self.service = res.data[0]
321
- // self.getrepair()
322
- })
323
- }
324
- export default {
325
- title: '工单历史记录',
326
- data () {
327
- return {
328
- imgshow: false,
329
- imgfilename: '',
330
- imgfilenamea: '',
331
- imgfilenameb: '',
332
- service: null,
333
- // 是否显示详情modal
334
- repaierShow: false,
335
- isshow: false,
336
- show: false,
337
- takeshow: false, // 操作面板显示
338
- repair: {},
339
- evaluate: {},
340
- num: 14,
341
- wavflie: '',
342
- iscomplanAllInfo: false, // 是否显示投诉单详情
343
- complanResult: {}, //投诉单详情信息
344
- showinfo:false,
345
- information:'',
346
- loginUser:{
347
- name:this.$login.f.name,
348
- ename:this.$login.f.ename
349
- }
350
- }
351
- },
352
- props: {
353
- rowOne: { // 传入一条工单信息
354
- type: Object
355
- }
356
- },
357
- methods: {
358
- //添加信息维护
359
- infoadd(){
360
- this.showinfo = true
361
- },
362
- infoaddsure(){
363
- if(!this.information){
364
- return this.$showMessage('请填写维护内容!')
365
- }
366
- var data = {
367
- id :this.service.id,
368
- f_processid:this.service.f_processid,
369
- f_content:this.information,
370
- serviceacitivity : [{}]
371
- }
372
- // 将数据发送给业务逻辑
373
- this.$resetpost('rs/logic/telinformation', {model: data, loginUser: this.loginUser},{resolveMsg: null, rejectMsg: null}).then(() => {
374
- this.$showMessage('维护内容添加成功!',['confirm'])
375
- this.information = ''
376
- this.showinfo =false
377
- this.selfSearch()
378
- })
379
- },
380
- infoclose(){
381
- this.showinfo =false
382
- },
383
- trouble (val) {
384
- let failureall=''
385
- // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
386
-
387
- let failure = JSON.parse(val)
388
- for (let i = 0; i <failure.length; i++) {
389
- if (failure[i].failurecase.length>0){
390
- failureall+=failure[i].f_failure_type+":"
391
- for (let j = 0; j < failure[i].failurecase.length; j++) {
392
- failureall+=failure[i].failurecase[j]
393
- if (j+1!=failure[i].failurecase.length){
394
- failureall+=","
395
- }
396
- }
397
-
398
- }else{
399
- failureall+=failure[i].f_failure_type
400
- }
401
- if (i+1!=failure.length){
402
- failureall+=';'
403
- }
404
- }
405
- return failureall
406
- },
407
- // 投诉单详情
408
- reqComplanResult (index) {
409
- this.complanResult = Object.assign({}, this.service.serviceacitivity[index])
410
- this.iscomplanAllInfo = true
411
- },
412
- showpicture (val) {
413
- //tag
414
- //tag)
415
- this.imgshow = true
416
- this.imgfilename = 'rs/image/file/' + val.f_single_path
417
- this.imgfilenamea = 'rs/image/file/' + val.f_singlea_path
418
- this.imgfilenameb = 'rs/image/file/' + val.f_singleb_path
419
- },
420
- imgclose () {
421
- this.imgshow = false
422
- },
423
- renew () {
424
- this.takeshow = false
425
- },
426
- clean () {
427
- this.takeshow = false
428
- },
429
- takett () {
430
- this.takeshow = true
431
- },
432
- playWav (val) {
433
- let condition = `id = '${val}'`
434
- let result = ''
435
- this.$resetpost(`/rs/sql/tel_singleTable`, {
436
- data: {
437
- items: 'recordfile', tablename: 't_records',
438
- condition: condition, orderitem: 'outltime'
439
- }
440
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
441
- result = res.data
442
- this.wavflie = result[0].recordfile
443
- this.show = true
444
- })
445
- },
446
- closemodel () {
447
- this.wavflie = ''
448
- this.show = false
449
- },
450
- getReciever (val) {
451
- let str = val.f_reciever
452
- var i = parseInt(str)
453
- if (isNaN(i)) {
454
- return val.f_reciever
455
- }
456
- return val.f_meetunit
457
- },
458
- selfSearch () {
459
- if (!this.rowOne) {
460
- return
461
- }
462
- if (this.rowOne.f_workorder_type != '报修单' && this.rowOne.f_workorder_type != '置换通气单' && this.rowOne.f_workorder_type != '安装单' && this.rowOne.f_workorder_type != '投诉单' && this.rowOne.f_workorder_type != '咨询单') {
463
- this.service = this.rowOne
464
- } else {
465
- let gen = getGen(this)
466
- co(gen)
467
- }
468
- // if (this.rowOne.processins) {
469
- // this.service = this.rowOne
470
- // } else {
471
- // let gen = getGen(this)
472
- // co(gen)
473
- // }
474
- },
475
- getrepair () {
476
- // if(!this.rowOne) {
477
- // return
478
- // }
479
- let gen = getrepairGen(this)
480
- co(gen)
481
- },
482
- repairlist (index) {
483
- this.curActivity = Object.assign({}, this.service.serviceacitivity[index])
484
- //tag
485
- //tag)
486
- // this.repaierShow = true
487
- this.$goto('new-repair-paper', {service:this.service,curActivity: this.curActivity}, 'self')
488
- },
489
- close () {
490
- this.repaierShow = false
491
- },
492
- discuss () {
493
- //tag
494
- this.isshow = true
495
- },
496
- closeevaluate () {
497
- this.isshow = false
498
- },
499
- // 评论完成
500
- saveevaluate (val) {
501
- //tag
502
- this.isshow = false
503
- this.$refs.evaluate.init(this.evaluate.f_type, this.evaluate.f_middle_id).then(() => {
504
- })
505
- }
506
- },
507
- watch: {
508
- 'rowOne' () {
509
- this.selfSearch()
510
- //tag
511
- //tag
512
- },
513
- 'service' (val) {
514
- if (val) {
515
- this.evaluate = {
516
- f_type: val.f_workorder_type,
517
- f_middle_id: val.f_service_id
518
- }
519
- }
520
- }
521
- },
522
- ready () {
523
- this.selfSearch()
524
-
525
- },
526
- components: {
527
- 'failure-show': FailureShow
528
- }
529
- }
530
- </script>
531
- <style scoped lang="less">
532
- .workOrderInfo{
533
- .row {
534
- div {
535
- margin-top: 10px;
536
- [readonly] {
537
- background-color:#eeeeee;
538
- }
539
- }
540
- }
541
- }
542
- </style>
1
+ <template>
2
+ <partial-view-tel v-ref:pv>
3
+ <div class="panel panel-info auto" >
4
+ <div class="panel-heading auto" style="text-align: center">
5
+ <h4 style="display:inline-block;margin-top: auto">工单信息</h4>
6
+ </div>
7
+ <div class="auto info-content">
8
+ <!-- <div style="padding:0px 0px 10px 0px;margin-left: 20px;overflow: auto;" id="work-history">-->
9
+
10
+ <div class="row">
11
+ <label class="col-sm-4 ">工单编号:</label>
12
+ <span class="col-sm-8">{{ service?service.f_service_id:'***********' }}</span>
13
+ </div>
14
+ <div class="row"
15
+ v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
16
+ <label class="col-sm-4 ">当前状态:</label>
17
+ <span class="col-sm-8">{{ rowOne.processins.activities[0].defname }}</span>
18
+ </div>
19
+ <div class="row">
20
+ <label class="col-sm-4 ">工单时间:</label>
21
+ <span class="col-sm-8">{{ service?service.f_created_date:'****年**月**日' }}</span>
22
+ </div>
23
+ <div class="row" v-if="service.f_workorder_type=='置换通气单'||service.f_workorder_type=='安装单'">
24
+ <label class="col-sm-4 ">预约时间:</label>
25
+ <span class="col-sm-8">{{ service.f_yuyue_date }}</span>
26
+ </div>
27
+ <div class="row">
28
+ <label class="col-sm-4 ">客户姓名:</label>
29
+ <span class="col-sm-8">{{ service?service.f_user_name:'***' }}</span>
30
+ </div>
31
+ <div class="row">
32
+ <label class="col-sm-4 ">来电电话:</label>
33
+ <span class="col-sm-8">{{ service?service.f_phone:'***********' }}</span>
34
+ </div>
35
+ <div class="row">
36
+ <label class="col-sm-4 ">联系电话:</label>
37
+ <span class="col-sm-8">{{ service?service.f_contact_phone:'***********' }}</span>
38
+ </div>
39
+ <div class="row" v-if="service.f_workorder_type=='报修单'">
40
+ <label class="col-sm-4 ">报修类型:</label>
41
+ <span class="col-sm-8">{{ service.f_repairtype }}</span>
42
+ </div>
43
+ <!-- <p>工单编号: <span class="fwb">{{service.f_service_id}}</span></p>-->
44
+ <!-- <p v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >当前状态: <span class="fwb">{{rowOne.processins.activities[0].defname}}</span></p>-->
45
+ <!-- <p>工单时间: <span class="fwb">{{service.f_created_date}}</span></p>-->
46
+ <!-- <p v-if="service.f_workorder_type=='置换通气单'||service.f_workorder_type=='安装单'" >预约时间: <span class="fwb">{{service.f_yuyue_date}}</span></p>-->
47
+ <!-- <p>客户姓名: <span class="fwb">{{service.f_user_name}}</span></p>-->
48
+ <!-- <p>来电电话: <span class="fwb">{{service.f_phone}}</span></p>-->
49
+ <!-- <p v-if="service.f_workorder_type=='报修单'">报修类型: <span class="fwb">{{service.f_repairtype}}</span></p>-->
50
+ <div class="row"
51
+ v-if="service.f_workorder_type!=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
52
+ <label class="col-sm-4 ">工单内容:</label>
53
+ <span class="col-sm-8">{{ service.f_content }}</span>
54
+ </div>
55
+ <div class="row" v-if="service.f_workorder_type=='报修单'">
56
+ <label class="col-sm-4 ">客户编号:</label>
57
+ <span class="col-sm-8">{{ service.f_userinfo_code }}</span>
58
+ </div>
59
+ <div class="row"
60
+ v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
61
+ <label class="col-sm-4 ">用户地址:</label>
62
+ <span class="col-sm-8">{{ service.f_address }}</span>
63
+ </div>
64
+ <div class="row"
65
+ v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
66
+ <label class="col-sm-4 ">工单备注:</label>
67
+ <span class="col-sm-8">{{ service.f_remarks }}</span>
68
+ </div>
69
+ <!-- <p v-if="service.f_workorder_type!=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >工单内容: <span class="fwb">{{service.f_content}}</span></p>-->
70
+ <!-- <p v-if="service.f_workorder_type=='报修单'" >客户编号: <span class="fwb">{{service.f_userinfo_code}}</span></p>-->
71
+ <!-- <p v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'" >用户地址: <span class="fwb">{{service.f_address}}</span></p>-->
72
+ <!-- <p >备注: <span class="fwb">{{service.f_remarks}}</span></p>-->
73
+
74
+ <!-- <p v-if="rowOne.f_single_path||rowOne.f_singlea_path ||rowOne.f_singleb_path"> <button-link type="button" class="btn btn-link" @click="showpicture(rowOne)">抢修图片-->
75
+ <!-- </button-link></p>-->
76
+ <!--<button v-if="service.f_workorder_type=='报修单'" class="btn btn-success" @click="discuss">评价</button>-->
77
+ <div class="row"
78
+ v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
79
+ <label class="col-sm-4 ">指导建议:</label>
80
+ <span class="col-sm-8">{{ service.f_advice }}</span>
81
+ </div>
82
+ <div class="row"
83
+ v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'">
84
+ <label class="col-sm-4 ">故障明细:</label>
85
+ <span class="col-sm-8">{{ trouble(service.failure)}}</span>
86
+ </div>
87
+ <div class="row" v-if="service">
88
+ <label class="col-sm-4 ">信息维护:</label>
89
+ <span class="col-sm-8">
90
+ <button type="button" class="btn-link btn"
91
+ @click="infoadd()">工单信息补充
92
+ </button>
93
+ </span>
94
+ </div>
95
+ <!-- 工单的流转时间轴信息,每个活动的内容各不相同 -->
96
+ </div>
97
+ <div class="panel-heading auto" style="text-align: center" v-show="service.serviceacitivity.length>0">
98
+ <h4 style="display:inline-block;margin-top: auto">工单历史</h4>
99
+ </div>
100
+ <div class="tab-content span">
101
+ <timeline style="margin-left: 20px"
102
+ v-if="service.f_workorder_type=='报修单' || service.f_workorder_type=='置换通气单'|| service.f_workorder_type=='安装单'|| service.f_workorder_type=='投诉单'||service.f_workorder_type=='咨询单'">
103
+ <timeline-item-tel v-for="activity in service.serviceacitivity"
104
+ :color="$index === service.serviceacitivity.length - 1 ? 'blue' : 'default'"
105
+ :isblue="$index === service.serviceacitivity.length - 1 ? true : false">
106
+ <!-- 派单 -->
107
+ <div style="margin-top: 5px" v-if="activity.type === 't_servicesend'">
108
+ <p>{{ activity.f_date }}</p>
109
+ <p>{{ activity.f_name }}派单给{{ getReciever(activity) }}</p>
110
+ </div>
111
+ <!-- 工单打回 -->
112
+ <div style="margin-top: 5px" v-if="activity.type === 't_service_back'">
113
+ <p>{{ activity.f_date }}</p>
114
+ <p>{{ activity.f_operator }}将工单{{activity.f_back_type}}</p>
115
+ <p v-if="activity.f_remarks">原因:{{ activity.f_remarks }}</p>
116
+ </div>
117
+ <!-- 用户催单 -->
118
+ <div style="margin-top: 5px" v-if="activity.type === 't_reminder'">
119
+ <p>{{ activity.f_reminder_date }}</p>
120
+ <p>用户催单</p>
121
+ <p>催单内容:{{ activity.f_content }}</p>
122
+ </div>
123
+ <!-- 工单撤回 -->
124
+ <div style="margin-top: 5px" v-if="activity.type === 't_recall'">
125
+ <p>{{ activity.f_recall_date }}</p>
126
+ <p>{{ activity.f_recall_name }}撤回工单</p>
127
+ <p>备注:{{ activity.f_remarks }}</p>
128
+ </div>
129
+ <!-- 工单信息补充 -->
130
+ <div style="margin-top: 5px" v-if="activity.type === 't_telinformation'">
131
+ <p>{{ activity.f_information_date }}</p>
132
+ <p>{{ activity.f_operator_name }}进行信息补充</p>
133
+ <p>维护内容:{{ activity.f_content }}</p>
134
+ </div>
135
+ <!-- 一次维修 -->
136
+ <div style="margin-top: 5px" v-if="activity.type === 't_servicework'">
137
+ <p>入户时间: {{ activity.f_date_come }}</p>
138
+ <p>离开时间: {{ activity.f_date_leave }}</p>
139
+ <!--<img-self v-for="img in activity.imgs" :src="`rs/file/getfile/${img.imgid}`" alt="测试" :width="150"-->
140
+ <!--:height="200"></img-self>-->
141
+ <p>接单员: {{ activity.f_name }} &nbsp;&nbsp;&nbsp;完成结果: {{ activity.f_result_status }}
142
+ </p>
143
+ <p v-if="activity.f_result_status === '未完成'">原因: {{ activity.f_reason }}
144
+ </p>
145
+ <button
146
+ v-if="activity.f_result_status !== '未完成'"
147
+ type="button" name="button"style="margin-left: 0px" class="button_spacing button_search-1"
148
+ @click="repairlist($index)">查看详情
149
+ </button>
150
+ <!-- <span class="btn btn-link add-postition" >详情</span>-->
151
+ </div>
152
+ <!-- 工单结案 -->
153
+ <div style="margin-top: 5px" v-if="activity.type === 't_serviceend'">
154
+ <p>{{ activity.f_date }}</p>
155
+ <p>{{ activity.f_name }}结束工单,备注:{{ activity.f_caseremarks }}</p>
156
+ </div>
157
+ <!-- 投诉处理 -->
158
+ <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '投诉单' && activity.type === 't_complanintend'">
159
+ <p>{{ activity.f_date }}</p>
160
+ <p>{{ activity.f_name }}处理了投诉单</p>
161
+ <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
162
+ </div>
163
+ <!--咨询单处理 -->
164
+ <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '咨询单'&& activity.type === 't_complanintend'">
165
+ <p>{{ activity.f_date }}</p>
166
+ <p>{{ activity.f_name }}处理了咨询单</p>
167
+ <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
168
+ </div>
169
+ </timeline-item-tel>
170
+ </timeline>
171
+ <!--<button v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'" class="btn btn-success" @click="discuss">评价</button>-->
172
+ <!--<button v-if="service"class="btn btn-success" @click="takett">操作</button>-->
173
+ <div v-show="service.f_record_sound.length>0">
174
+ <button-link type="button" class="btn btn-link" @click="playWav(service.f_record_sound)">播放录音</button-link>
175
+ </div>
176
+ <!-- <evaluate-list :evaluate="evaluate" :shownum="num" v-ref:evaluate></evaluate-list>-->
177
+ <modal :show.sync="repaierShow" large="true" v-ref:modal backdrop="false">
178
+ <header slot="modal-header" class="modal-header">
179
+ 工单详情
180
+ </header>
181
+ <article slot="modal-body" class="modal-body">
182
+ <div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="repaierShow">
183
+ <repair-order :show="true" :row="service" system="pc" :repair="curActivity">
184
+ </repair-order>
185
+ </div>
186
+ </article>
187
+ <footer slot="modal-footer" class="modal-footer">
188
+ <button type="button" class="btn btn-success" @click='close'>确认</button>
189
+ </footer>
190
+ </modal>
191
+ <div v-if="show">
192
+ <modal :show.sync="show" v-ref:modal1 backdrop="false">
193
+ <header slot="modal-header" class="modal-header">
194
+ <h2 class="modal-title">正在播放{{ wavflie }}语音文件</h2>
195
+ </header>
196
+ <article slot="modal-body" class="modal-body">
197
+ <audio controls>
198
+ <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav">
199
+ 您的浏览器不支持 audio 元素。
200
+ </audio>
201
+ </article>
202
+ <footer slot="modal-footer" class="modal-footer">
203
+ <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
204
+ </footer>
205
+ </modal>
206
+ </div>
207
+ <!-- <div style="height: 60px;" v-if="show"class="form-inline">
208
+ <audio controls style="margin-top: 10px;">
209
+ <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav" >
210
+ 您的浏览器不支持 audio 元素。
211
+ </audio>
212
+ <div class="form-group">
213
+ <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
214
+ </div>
215
+ </div> -->
216
+ <!-- <modal :show.sync="takeshow" large="true" v-ref:modal2 backdrop="false">-->
217
+ <!-- <article slot="modal-body" class="modal-body">-->
218
+ <!-- <server-appendix-info @clean="clean" @success="renew" :row="service"></server-appendix-info>-->
219
+ <!-- </article>-->
220
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
221
+ <!-- </footer>-->
222
+ <!-- </modal>-->
223
+ <!-- <evaluate-model :evaluate="evaluate" :isshow="isshow" @closeevaluate="closeevaluate" @saveevaluate="saveevaluate"></evaluate-model>-->
224
+ <!-- </div>-->
225
+
226
+ </div>
227
+
228
+ </div>
229
+ </partial-view-tel>
230
+
231
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
232
+ <header slot="modal-header" class="modal-header">
233
+ 在线抢修照片
234
+ </header>
235
+ <article slot="modal-body" class="modal-body">
236
+ <div class="from-group">
237
+ <img-self v-if="rowOne.f_single_path" :src="imgfilename" width="500" height="500"></img-self>
238
+ <img-self v-if="rowOne.f_singlea_path" :src="imgfilenamea" width="500" height="500"></img-self>
239
+ <img-self v-if="rowOne.f_singleb_path" :src="imgfilenameb" width="500" height="500"></img-self>
240
+ </div>
241
+ </article>
242
+ <footer slot="modal-footer" class="modal-footer">
243
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
244
+ </footer>
245
+ </modal>
246
+
247
+ <modal :show.sync="showinfo" v-ref:infomodal backdrop="true">
248
+ <header slot="modal-header" class="modal-header">
249
+ 工单信息补充
250
+ </header>
251
+ <article slot="modal-body" class="modal-body">
252
+ <div class="from-group">
253
+ <label class="font_normal_body" style="width: 15%">维护内容</label>
254
+ <textarea style="width: 80%" name="name" rows="3" class="ver-textarea" class="form-control" v-model='information'></textarea>
255
+ </div>
256
+ </article>
257
+ <footer slot="modal-footer" class="modal-footer">
258
+ <button type="button" class="btn btn-success" @click='infoaddsure'>添加</button>
259
+ <button type="button" class="btn btn-success" @click='infoclose'>取消</button>
260
+ </footer>
261
+ </modal>
262
+
263
+
264
+ <!-- 投诉单咨询单详情 -->
265
+ <modal :show.sync="iscomplanAllInfo" v-ref:modal_complan backdrop="true">
266
+ <header slot="modal-header" class="modal-header">
267
+ 工单详情
268
+ </header>
269
+ <article slot="modal-body" class="modal-body">
270
+ <div class="select-overspread form-horizontal auto workOrderInfo">
271
+ <div class="row">
272
+ <div class="col-sm-12 form-group form-input-group" >
273
+ <label class="font_normal_body" style="width: 10%">工单编号</label>
274
+ <h5 style="padding: 0px">{{ rowOne.f_service_id }}</h5>
275
+ </div>
276
+ <div class="col-sm-12 form-input-group" >
277
+ <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '咨询单'">咨询内容</label>
278
+ <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '投诉单'">投诉内容</label>
279
+ <textarea name="name" rows="3" v-model="rowOne.f_content"
280
+ class="form-control ver-textarea" id="f_content" name="f_content" readonly="readonly"></textarea>
281
+ </div>
282
+ <div class="col-sm-4 form-group form-input-group" >
283
+ <label class="font_normal_body" style="width: 30%">来电电话</label>
284
+ <input type="text" name="" v-model='rowOne.f_phone'
285
+ class="form-control" readonly="readonly">
286
+ </div>
287
+ <div class="col-sm-4 form-group form-input-group" >
288
+ <label class="font_normal_body" style="width: 30%">联系人</label>
289
+ <input type="text" name="" v-model='rowOne.f_user_name'
290
+ class="form-control" readonly="readonly">
291
+ </div>
292
+ <div class="col-sm-4 form-group form-input-group" >
293
+ <label class="font_normal_body" style="width: 30%">联系电话</label>
294
+ <input type="text" name="" v-model='rowOne.f_contact_phone'
295
+ class="form-control" readonly="readonly">
296
+ </div>
297
+ <div class="col-sm-12 form-input-group" >
298
+ <label class="font_normal_body" style="width: 10%">备注</label>
299
+ <textarea name="name" rows="3" v-model="rowOne.f_remarks"
300
+ class="form-control ver-textarea" readonly="readonly"></textarea>
301
+ </div>
302
+ <div class="col-sm-12 form-input-group">
303
+ <label class="font_normal_body" style="width: 10%">处理结果</label>
304
+ <textarea name="name" rows="3" v-model="complanResult.f_complaint_results"
305
+ class="form-control ver-textarea" readonly="readonly"></textarea>
306
+ </div>
307
+ </div>
308
+ </div>
309
+ </article>
310
+ <footer slot="modal-footer" class="modal-footer">
311
+ <button type="button" name="button" class="button_search button_spacing"
312
+ @click='iscomplanAllInfo = false;complanResult={}'>确定</button>
313
+ </footer>
314
+ </modal>
315
+
316
+
317
+ </template>
318
+ <script>
319
+ import co from 'co'
320
+ import Vue from 'vue'
321
+ import FailureShow from './FailureShow'
322
+
323
+ let getGen = function * (self) {
324
+ yield self.$resetpost('rs/path/getService', {data: {id: self.rowOne.id}}, {resolveMsg: null, rejectMsg: null})
325
+ .then((res) => {
326
+ self.service = res.data[0]
327
+ // self.getrepair()
328
+ })
329
+ }
330
+ export default {
331
+ title: '工单历史记录',
332
+ data () {
333
+ return {
334
+ imgshow: false,
335
+ imgfilename: '',
336
+ imgfilenamea: '',
337
+ imgfilenameb: '',
338
+ service: null,
339
+ // 是否显示详情modal
340
+ repaierShow: false,
341
+ isshow: false,
342
+ show: false,
343
+ takeshow: false, // 操作面板显示
344
+ repair: {},
345
+ evaluate: {},
346
+ num: 14,
347
+ wavflie: '',
348
+ iscomplanAllInfo: false, // 是否显示投诉单详情
349
+ complanResult: {}, //投诉单详情信息
350
+ showinfo:false,
351
+ information:'',
352
+ loginUser:{
353
+ name:this.$login.f.name,
354
+ ename:this.$login.f.ename
355
+ }
356
+ }
357
+ },
358
+ props: {
359
+ rowOne: { // 传入一条工单信息
360
+ type: Object
361
+ }
362
+ },
363
+ methods: {
364
+ //添加信息维护
365
+ infoadd(){
366
+ this.showinfo = true
367
+ },
368
+ infoaddsure(){
369
+ if(!this.information){
370
+ return this.$showMessage('请填写维护内容!')
371
+ }
372
+ var data = {
373
+ id :this.service.id,
374
+ f_processid:this.service.f_processid,
375
+ f_content:this.information,
376
+ serviceacitivity : [{}]
377
+ }
378
+ // 将数据发送给业务逻辑
379
+ this.$resetpost('rs/logic/telinformation', {model: data, loginUser: this.loginUser},{resolveMsg: null, rejectMsg: null}).then(() => {
380
+ this.$showMessage('维护内容添加成功!',['confirm'])
381
+ this.information = ''
382
+ this.showinfo =false
383
+ this.selfSearch()
384
+ })
385
+ },
386
+ infoclose(){
387
+ this.showinfo =false
388
+ },
389
+ trouble (val) {
390
+ let failureall=''
391
+ // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
392
+
393
+ let failure = JSON.parse(val)
394
+ for (let i = 0; i <failure.length; i++) {
395
+ if (failure[i].failurecase.length>0){
396
+ failureall+=failure[i].f_failure_type+":"
397
+ for (let j = 0; j < failure[i].failurecase.length; j++) {
398
+ failureall+=failure[i].failurecase[j]
399
+ if (j+1!=failure[i].failurecase.length){
400
+ failureall+=","
401
+ }
402
+ }
403
+
404
+ }else{
405
+ failureall+=failure[i].f_failure_type
406
+ }
407
+ if (i+1!=failure.length){
408
+ failureall+=';'
409
+ }
410
+ }
411
+ return failureall
412
+ },
413
+ // 投诉单详情
414
+ reqComplanResult (index) {
415
+ this.complanResult = Object.assign({}, this.service.serviceacitivity[index])
416
+ this.iscomplanAllInfo = true
417
+ },
418
+ showpicture (val) {
419
+ //tag
420
+ //tag)
421
+ this.imgshow = true
422
+ this.imgfilename = 'rs/image/file/' + val.f_single_path
423
+ this.imgfilenamea = 'rs/image/file/' + val.f_singlea_path
424
+ this.imgfilenameb = 'rs/image/file/' + val.f_singleb_path
425
+ },
426
+ imgclose () {
427
+ this.imgshow = false
428
+ },
429
+ renew () {
430
+ this.takeshow = false
431
+ },
432
+ clean () {
433
+ this.takeshow = false
434
+ },
435
+ takett () {
436
+ this.takeshow = true
437
+ },
438
+ playWav (val) {
439
+ let condition = `id = '${val}'`
440
+ let result = ''
441
+ this.$resetpost(`/rs/sql/tel_singleTable`, {
442
+ data: {
443
+ items: 'recordfile', tablename: 't_records',
444
+ condition: condition, orderitem: 'outltime'
445
+ }
446
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
447
+ result = res.data
448
+ this.wavflie = result[0].recordfile
449
+ this.show = true
450
+ })
451
+ },
452
+ closemodel () {
453
+ this.wavflie = ''
454
+ this.show = false
455
+ },
456
+ getReciever (val) {
457
+ let str = val.f_reciever
458
+ var i = parseInt(str)
459
+ if (isNaN(i)) {
460
+ return val.f_reciever
461
+ }
462
+ return val.f_meetunit
463
+ },
464
+ selfSearch () {
465
+ if (!this.rowOne) {
466
+ return
467
+ }
468
+ if (this.rowOne.f_workorder_type != '报修单' && this.rowOne.f_workorder_type != '置换通气单' && this.rowOne.f_workorder_type != '安装单' && this.rowOne.f_workorder_type != '投诉单' && this.rowOne.f_workorder_type != '咨询单') {
469
+ this.service = this.rowOne
470
+ } else {
471
+ let gen = getGen(this)
472
+ co(gen)
473
+ }
474
+ // if (this.rowOne.processins) {
475
+ // this.service = this.rowOne
476
+ // } else {
477
+ // let gen = getGen(this)
478
+ // co(gen)
479
+ // }
480
+ },
481
+ getrepair () {
482
+ // if(!this.rowOne) {
483
+ // return
484
+ // }
485
+ let gen = getrepairGen(this)
486
+ co(gen)
487
+ },
488
+ repairlist (index) {
489
+ this.curActivity = Object.assign({}, this.service.serviceacitivity[index])
490
+ //tag
491
+ //tag)
492
+ // this.repaierShow = true
493
+ this.$goto('new-repair-paper', {service:this.service,curActivity: this.curActivity}, 'self')
494
+ },
495
+ close () {
496
+ this.repaierShow = false
497
+ },
498
+ discuss () {
499
+ //tag
500
+ this.isshow = true
501
+ },
502
+ closeevaluate () {
503
+ this.isshow = false
504
+ },
505
+ // 评论完成
506
+ saveevaluate (val) {
507
+ //tag
508
+ this.isshow = false
509
+ this.$refs.evaluate.init(this.evaluate.f_type, this.evaluate.f_middle_id).then(() => {
510
+ })
511
+ }
512
+ },
513
+ watch: {
514
+ 'rowOne' () {
515
+ this.selfSearch()
516
+ //tag
517
+ //tag
518
+ },
519
+ 'service' (val) {
520
+ if (val) {
521
+ this.evaluate = {
522
+ f_type: val.f_workorder_type,
523
+ f_middle_id: val.f_service_id
524
+ }
525
+ }
526
+ }
527
+ },
528
+ ready () {
529
+ this.selfSearch()
530
+
531
+ },
532
+ components: {
533
+ 'failure-show': FailureShow
534
+ }
535
+ }
536
+ </script>
537
+ <style scoped lang="less">
538
+ .workOrderInfo{
539
+ .row {
540
+ div {
541
+ margin-top: 10px;
542
+ [readonly] {
543
+ background-color:#eeeeee;
544
+ }
545
+ }
546
+ }
547
+ }
548
+ </style>