telephone-clients 3.0.103 → 3.0.104-1

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 (126) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +7 -9
  3. package/src/assets//345/210/240/351/231/244.png +0 -0
  4. package/src/components/Util/RightTreeSafe.vue +2 -2
  5. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  6. package/src/components/android/AddMyTask.vue +7 -0
  7. package/src/components/guoxin/VisitInfo.vue +0 -11
  8. package/src/components/pc/NewRepairPaper.vue +3 -3
  9. package/src/components/pc/RepairsWork.vue +22 -2
  10. package/src/components/pc/RoleSelectorDep.vue +158 -0
  11. package/src/components/pc/TelFindUser.vue +1 -1
  12. package/src/components/pc/TelListener.vue +47 -16
  13. package/src/components/pc/VisitInfo.vue +0 -10
  14. package/src/components/pc/WorkCenter.vue +1 -1
  15. package/src/components/pc/WorkCenterList.vue +1 -1
  16. package/src/components/pc/WorkHistory.vue +20 -2
  17. package/src/components/pc/WorkListAll.vue +1 -1
  18. package/src/components/pc/WorkListAllNew.vue +10 -3
  19. package/src/components/pc/WorkListNew.vue +712 -706
  20. package/src/components/pc/olddata/OldWorkList.vue +193 -0
  21. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  22. package/src/components/telreport/TableFaultReport.vue +96 -0
  23. package/src/components/telreport/Traffic.vue +3 -3
  24. package/src/components/telreport/TrafficClassificationReport.vue +134 -0
  25. package/src/components/temp/ChangemeterInfo.vue +75 -87
  26. package/src/components/temp/DeviceInfo.vue +80 -82
  27. package/src/components/temp/HandplanInfo.vue +2 -2
  28. package/src/components/temp/InfoTable.vue +5 -2
  29. package/src/components/temp/MetereadInfo.vue +1 -4
  30. package/src/components/temp/OldRepairList.vue +100 -0
  31. package/src/components/temp/RepairList.vue +2 -2
  32. package/src/components/weinan/Console.vue +1 -1
  33. package/src/components/weinan/RecordList.vue +2 -2
  34. package/src/components/weinan/SiteSend.vue +2 -2
  35. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  36. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  37. package/src/components/weinan/WorkList.vue +73 -0
  38. package/src/components/weinan/WorkListAll.vue +90 -14
  39. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  40. package/src/components/workorder/CompletedRepair.vue +269 -183
  41. package/src/components/workorder/FaultAll.vue +826 -826
  42. package/src/components/workorder/PhoneStandWork.vue +354 -354
  43. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  44. package/src/components/workorder/RepairDetails.vue +12 -2
  45. package/src/components/workorder/RepairFirstV.vue +1 -1
  46. package/src/components/workorder/RepairOrderV.vue +1446 -1446
  47. package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
  48. package/src/filiale/furuike/pc/Seekwork.vue +352 -352
  49. package/src/filiale/furuike/pc/WorkHistory.vue +576 -576
  50. package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
  51. package/src/filiale/kelai/android/AppTakePic.vue +143 -0
  52. package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -0
  53. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  54. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  55. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  56. package/src/filiale/kelai/telephone.js +9 -8
  57. package/src/filiale/kelai/telephoneAndroid.js +3 -1
  58. package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
  59. package/src/filiale/qianneng/android/FaultAll.vue +883 -883
  60. package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
  61. package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
  62. package/src/filiale/qianneng/android/TemporarySingle.vue +537 -512
  63. package/src/filiale/qianneng/android/chargesList.vue +161 -161
  64. package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -248
  65. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  66. package/src/filiale/qianneng/pc/NewRepairPaper.vue +4 -4
  67. package/src/filiale/qianneng/pc/RepairsWork.vue +12 -2
  68. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  69. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  70. package/src/filiale/qianneng/pc/changetable.vue +273 -0
  71. package/src/filiale/qianneng/telephone.js +22 -20
  72. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  73. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  74. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  75. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  76. package/src/filiale/rongcheng/CliWorkListAll.vue +442 -407
  77. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  78. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  79. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  80. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  81. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  82. package/src/filiale/shanxian/pc/WorkList.vue +1 -1
  83. package/src/filiale/shanxian/telephone.js +13 -12
  84. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  85. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  86. package/src/filiale/shexian/android/FaultAll.vue +847 -0
  87. package/src/filiale/shexian/android/Outlay.vue +182 -165
  88. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  89. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  90. package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
  91. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +271 -0
  92. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  93. package/src/filiale/shexian/pc/WorkList.vue +782 -740
  94. package/src/filiale/shexian/pc/WorkListAllNew.vue +75 -67
  95. package/src/filiale/shexian/telephone.js +21 -18
  96. package/src/filiale/shexian/telephoneAndroid.js +32 -26
  97. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  98. package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
  99. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  100. package/src/filiale/wenxi/android/FailureShow.vue +61 -0
  101. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -0
  102. package/src/filiale/wenxi/android/RepairInfo.vue +158 -74
  103. package/src/filiale/wenxi/android/RepairOrderV.vue +805 -1419
  104. package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -0
  105. package/src/filiale/wenxi/android/ZHihuanFirst.vue +502 -0
  106. package/src/filiale/wenxi/pc/DistributeWork.vue +107 -121
  107. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  108. package/src/filiale/wenxi/pc/GasWork.vue +747 -0
  109. package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -0
  110. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  111. package/src/filiale/wenxi/pc/TelFindUser.vue +213 -116
  112. package/src/filiale/wenxi/telephone.js +4 -6
  113. package/src/filiale/wenxi/telephoneAndroid.js +4 -1
  114. package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
  115. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  116. package/src/filiale/yuncheng/telephone.js +12 -0
  117. package/src/filiale/zhongsheng/android/FaultAll.vue +741 -0
  118. package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
  119. package/src/filiale/zhongsheng/android/RepairUserInfo.vue +241 -214
  120. package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
  121. package/src/filiale/zhongsheng/telephone.js +23 -23
  122. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  123. package/src/main.js +1 -1
  124. package/src/telephone.js +16 -0
  125. package/src/weinan.js +6 -0
  126. package/src/filiale/wenxi/pc/WorkListAll.vue +0 -647
@@ -1,576 +1,576 @@
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_site_back'">
113
- <p>{{ activity.f_site_back_date }}</p>
114
- <p>{{ activity.f_site_back_name }}将工单打回</p>
115
- <p>原因:{{ activity.f_site_back_reason }}</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_notwork'">
148
- <p>{{ activity.f_date }}</p>
149
- <p>{{ activity.f_name }}未完成</p>
150
- <p>原因:{{ activity.f_reason }}</p>
151
- </div>
152
- <!-- 延期申请 -->
153
- <div style="margin-top: 5px" v-if="activity.type === 't_delayapply'">
154
- <p>{{ activity.f_date }}</p>
155
- <p>{{ activity.f_name }}提交延期申请,延期至:{{ activity.f_dalay_date }},原因:{{ activity.f_reason }}</p>
156
- </div>
157
- <!-- 延期审批 -->
158
- <div style="margin-top: 5px" v-if="activity.type === 't_delayreply'">
159
- <p>{{ activity.f_date }}</p>
160
- <p>{{ activity.f_name }}{{ activity.f_result }}延期申请,原因:{{ activity.f_reason }}</p>
161
- </div>
162
- <!-- 工单撤回 -->
163
- <div style="margin-top: 5px" v-if="activity.type === 't_recall'&&activity.f_service_acitivity_type !=='审核不通过'">
164
- <p>{{ activity.f_recall_date }}</p>
165
- <p>{{ activity.f_recall_name }}撤回工单</p>
166
- <p>备注:{{ activity.f_remarks }}</p>
167
- </div>
168
- <!-- 工单撤回 -->
169
- <div style="margin-top: 5px" v-if="activity.type === 't_recall' && activity.f_service_acitivity_type ==='审核不通过' ">
170
- <p>{{ activity.f_recall_date }}</p>
171
- <p>{{ activity.f_recall_name }}审核不通过</p>
172
- <p>备注:{{ activity.f_remarks }}</p>
173
- </div>
174
- <!-- 工单结案 -->
175
- <div style="margin-top: 5px" v-if="activity.type === 't_serviceend'">
176
- <p>{{ activity.f_date }}</p>
177
- <p>{{ activity.f_name }}结束工单,备注:{{ activity.f_remakes }}</p>
178
- </div>
179
- <!-- 工单撤销 -->
180
- <div style="margin-top: 5px" v-if="activity.type === 't_servicedelete'">
181
- <p>{{ activity.f_recall_date }}</p>
182
- <p>撤销工单</p>
183
- <p>撤销理由:{{ activity.f_backaccount }}</p>
184
- </div>
185
- <!-- 投诉处理 -->
186
- <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '投诉单' && activity.type === 't_complanintend'">
187
- <p>{{ activity.f_date }}</p>
188
- <p>{{ activity.f_name }}处理了投诉单</p>
189
- <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
190
- </div>
191
- <!--咨询单处理 -->
192
- <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '咨询单'&& activity.type === 't_complanintend'">
193
- <p>{{ activity.f_date }}</p>
194
- <p>{{ activity.f_name }}处理了咨询单</p>
195
- <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
196
- </div>
197
- </timeline-item-tel>
198
- </timeline>
199
- <!--<button v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'" class="btn btn-success" @click="discuss">评价</button>-->
200
- <!--<button v-if="service"class="btn btn-success" @click="takett">操作</button>-->
201
- <div v-show="service.f_record_sound.length>0">
202
- <button-link type="button" class="btn btn-link" @click="playWav(service.f_record_sound)">播放录音</button-link>
203
- </div>
204
- <!-- <evaluate-list :evaluate="evaluate" :shownum="num" v-ref:evaluate></evaluate-list>-->
205
- <modal :show.sync="repaierShow" large="true" v-ref:modal backdrop="false">
206
- <header slot="modal-header" class="modal-header">
207
- 工单详情
208
- </header>
209
- <article slot="modal-body" class="modal-body">
210
- <div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="repaierShow">
211
- <repair-order :show="true" :row="service" system="pc" :repair="curActivity">
212
- </repair-order>
213
- </div>
214
- </article>
215
- <footer slot="modal-footer" class="modal-footer">
216
- <button type="button" class="btn btn-success" @click='close'>确认</button>
217
- </footer>
218
- </modal>
219
- <div v-if="show">
220
- <modal :show.sync="show" v-ref:modal1 backdrop="false">
221
- <header slot="modal-header" class="modal-header">
222
- <h2 class="modal-title">正在播放{{ wavflie }}语音文件</h2>
223
- </header>
224
- <article slot="modal-body" class="modal-body">
225
- <audio controls>
226
- <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav">
227
- 您的浏览器不支持 audio 元素。
228
- </audio>
229
- </article>
230
- <footer slot="modal-footer" class="modal-footer">
231
- <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
232
- </footer>
233
- </modal>
234
- </div>
235
- <!-- <div style="height: 60px;" v-if="show"class="form-inline">
236
- <audio controls style="margin-top: 10px;">
237
- <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav" >
238
- 您的浏览器不支持 audio 元素。
239
- </audio>
240
- <div class="form-group">
241
- <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
242
- </div>
243
- </div> -->
244
- <!-- <modal :show.sync="takeshow" large="true" v-ref:modal2 backdrop="false">-->
245
- <!-- <article slot="modal-body" class="modal-body">-->
246
- <!-- <server-appendix-info @clean="clean" @success="renew" :row="service"></server-appendix-info>-->
247
- <!-- </article>-->
248
- <!-- <footer slot="modal-footer" class="modal-footer">-->
249
- <!-- </footer>-->
250
- <!-- </modal>-->
251
- <!-- <evaluate-model :evaluate="evaluate" :isshow="isshow" @closeevaluate="closeevaluate" @saveevaluate="saveevaluate"></evaluate-model>-->
252
- <!-- </div>-->
253
-
254
- </div>
255
-
256
- </div>
257
- </partial-view-tel>
258
-
259
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
260
- <header slot="modal-header" class="modal-header">
261
- 在线抢修照片
262
- </header>
263
- <article slot="modal-body" class="modal-body">
264
- <div class="from-group">
265
- <img-self v-if="rowOne.f_single_path" :src="imgfilename" width="500" height="500"></img-self>
266
- <img-self v-if="rowOne.f_singlea_path" :src="imgfilenamea" width="500" height="500"></img-self>
267
- <img-self v-if="rowOne.f_singleb_path" :src="imgfilenameb" width="500" height="500"></img-self>
268
- </div>
269
- </article>
270
- <footer slot="modal-footer" class="modal-footer">
271
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
272
- </footer>
273
- </modal>
274
-
275
- <modal :show.sync="showinfo" v-ref:infomodal backdrop="true">
276
- <header slot="modal-header" class="modal-header">
277
- 工单信息补充
278
- </header>
279
- <article slot="modal-body" class="modal-body">
280
- <div class="from-group">
281
- <label class="font_normal_body" style="width: 15%">维护内容</label>
282
- <textarea style="width: 80%" name="name" rows="3" class="ver-textarea" class="form-control" v-model='information'></textarea>
283
- </div>
284
- </article>
285
- <footer slot="modal-footer" class="modal-footer">
286
- <button type="button" class="btn btn-success" @click='infoaddsure'>添加</button>
287
- <button type="button" class="btn btn-success" @click='infoclose'>取消</button>
288
- </footer>
289
- </modal>
290
-
291
-
292
- <!-- 投诉单咨询单详情 -->
293
- <modal :show.sync="iscomplanAllInfo" v-ref:modal_complan backdrop="true">
294
- <header slot="modal-header" class="modal-header">
295
- 工单详情
296
- </header>
297
- <article slot="modal-body" class="modal-body">
298
- <div class="select-overspread form-horizontal auto workOrderInfo">
299
- <div class="row">
300
- <div class="col-sm-12 form-group form-input-group" >
301
- <label class="font_normal_body" style="width: 10%">工单编号</label>
302
- <h5 style="padding: 0px">{{ rowOne.f_service_id }}</h5>
303
- </div>
304
- <div class="col-sm-12 form-input-group" >
305
- <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '咨询单'">咨询内容</label>
306
- <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '投诉单'">投诉内容</label>
307
- <textarea name="name" rows="3" v-model="rowOne.f_content"
308
- class="form-control ver-textarea" id="f_content" name="f_content" readonly="readonly"></textarea>
309
- </div>
310
- <div class="col-sm-4 form-group form-input-group" >
311
- <label class="font_normal_body" style="width: 30%">来电电话</label>
312
- <input type="text" name="" v-model='rowOne.f_phone'
313
- class="form-control" readonly="readonly">
314
- </div>
315
- <div class="col-sm-4 form-group form-input-group" >
316
- <label class="font_normal_body" style="width: 30%">联系人</label>
317
- <input type="text" name="" v-model='rowOne.f_user_name'
318
- class="form-control" readonly="readonly">
319
- </div>
320
- <div class="col-sm-4 form-group form-input-group" >
321
- <label class="font_normal_body" style="width: 30%">联系电话</label>
322
- <input type="text" name="" v-model='rowOne.f_contact_phone'
323
- class="form-control" readonly="readonly">
324
- </div>
325
- <div class="col-sm-12 form-input-group" >
326
- <label class="font_normal_body" style="width: 10%">备注</label>
327
- <textarea name="name" rows="3" v-model="rowOne.f_remarks"
328
- class="form-control ver-textarea" readonly="readonly"></textarea>
329
- </div>
330
- <div class="col-sm-12 form-input-group">
331
- <label class="font_normal_body" style="width: 10%">处理结果</label>
332
- <textarea name="name" rows="3" v-model="complanResult.f_complaint_results"
333
- class="form-control ver-textarea" readonly="readonly"></textarea>
334
- </div>
335
- </div>
336
- </div>
337
- </article>
338
- <footer slot="modal-footer" class="modal-footer">
339
- <button type="button" name="button" class="button_search button_spacing"
340
- @click='iscomplanAllInfo = false;complanResult={}'>确定</button>
341
- </footer>
342
- </modal>
343
-
344
-
345
- </template>
346
- <script>
347
- import co from 'co'
348
- import Vue from 'vue'
349
- import FailureShow from '../../../components/pc/FailureShow'
350
-
351
- let getGen = function * (self) {
352
- yield self.$resetpost('rs/path/getService', {data: {id: self.rowOne.id}}, {resolveMsg: null, rejectMsg: null})
353
- .then((res) => {
354
- self.service = res.data[0]
355
- // self.getrepair()
356
- })
357
- }
358
- export default {
359
- title: '工单历史记录',
360
- data () {
361
- return {
362
- imgshow: false,
363
- imgfilename: '',
364
- imgfilenamea: '',
365
- imgfilenameb: '',
366
- service: null,
367
- // 是否显示详情modal
368
- repaierShow: false,
369
- isshow: false,
370
- show: false,
371
- takeshow: false, // 操作面板显示
372
- repair: {},
373
- evaluate: {},
374
- num: 14,
375
- wavflie: '',
376
- iscomplanAllInfo: false, // 是否显示投诉单详情
377
- complanResult: {}, //投诉单详情信息
378
- showinfo:false,
379
- information:'',
380
- loginUser:{
381
- name:this.$login.f.name,
382
- ename:this.$login.f.ename
383
- }
384
- }
385
- },
386
- props: {
387
- rowOne: { // 传入一条工单信息
388
- type: Object
389
- }
390
- },
391
- methods: {
392
- //添加信息维护
393
- infoadd(){
394
- this.showinfo = true
395
- },
396
- infoaddsure(){
397
- if(!this.information){
398
- return this.$showMessage('请填写维护内容!')
399
- }
400
- var data = {
401
- id :this.service.id,
402
- f_processid:this.service.f_processid,
403
- f_content:this.information,
404
- serviceacitivity : [{}]
405
- }
406
- // 将数据发送给业务逻辑
407
- this.$resetpost('rs/logic/telinformation', {model: data, loginUser: this.loginUser},{resolveMsg: null, rejectMsg: null}).then(() => {
408
- this.$showMessage('维护内容添加成功!',['confirm'])
409
- this.information = ''
410
- this.showinfo =false
411
- this.selfSearch()
412
- })
413
- },
414
- infoclose(){
415
- this.showinfo =false
416
- },
417
- trouble (val) {
418
- let failureall=''
419
- // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
420
-
421
- let failure = JSON.parse(val)
422
- for (let i = 0; i <failure.length; i++) {
423
- if (failure[i].failurecase.length>0){
424
- failureall+=failure[i].f_failure_type+":"
425
- for (let j = 0; j < failure[i].failurecase.length; j++) {
426
- failureall+=failure[i].failurecase[j]
427
- if (j+1!=failure[i].failurecase.length){
428
- failureall+=","
429
- }
430
- }
431
-
432
- }else{
433
- failureall+=failure[i].f_failure_type
434
- }
435
- if (i+1!=failure.length){
436
- failureall+=';'
437
- }
438
- }
439
- return failureall
440
- },
441
- // 投诉单详情
442
- reqComplanResult (index) {
443
- this.complanResult = Object.assign({}, this.service.serviceacitivity[index])
444
- this.iscomplanAllInfo = true
445
- },
446
- showpicture (val) {
447
- //tag
448
- //tag)
449
- this.imgshow = true
450
- this.imgfilename = 'rs/image/file/' + val.f_single_path
451
- this.imgfilenamea = 'rs/image/file/' + val.f_singlea_path
452
- this.imgfilenameb = 'rs/image/file/' + val.f_singleb_path
453
- },
454
- imgclose () {
455
- this.imgshow = false
456
- },
457
- renew () {
458
- this.takeshow = false
459
- },
460
- clean () {
461
- this.takeshow = false
462
- },
463
- takett () {
464
- this.takeshow = true
465
- },
466
- playWav (val) {
467
- let condition = `id = '${val}'`
468
- let result = ''
469
- this.$resetpost(`/rs/sql/tel_singleTable`, {
470
- data: {
471
- items: 'recordfile', tablename: 't_records',
472
- condition: condition, orderitem: 'outltime'
473
- }
474
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
475
- result = res.data
476
- this.wavflie = result[0].recordfile
477
- this.show = true
478
- })
479
- },
480
- closemodel () {
481
- this.wavflie = ''
482
- this.show = false
483
- },
484
- getReciever (val) {
485
- let str = val.f_reciever
486
- var i = parseInt(str)
487
- if (isNaN(i)) {
488
- return val.f_reciever
489
- }
490
- return val.f_meetunit
491
- },
492
- selfSearch () {
493
- if (!this.rowOne) {
494
- return
495
- }
496
- 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 != '咨询单') {
497
- this.service = this.rowOne
498
- } else {
499
- let gen = getGen(this)
500
- co(gen)
501
- }
502
- // if (this.rowOne.processins) {
503
- // this.service = this.rowOne
504
- // } else {
505
- // let gen = getGen(this)
506
- // co(gen)
507
- // }
508
- },
509
- getrepair () {
510
- // if(!this.rowOne) {
511
- // return
512
- // }
513
- let gen = getrepairGen(this)
514
- co(gen)
515
- },
516
- repairlist (index) {
517
- this.curActivity = Object.assign({}, this.service.serviceacitivity[index])
518
- //tag
519
- //tag)
520
- // this.repaierShow = true
521
- this.$goto('new-repair-paper', {service:this.service,curActivity: this.curActivity}, 'self')
522
- },
523
- close () {
524
- this.repaierShow = false
525
- },
526
- discuss () {
527
- //tag
528
- this.isshow = true
529
- },
530
- closeevaluate () {
531
- this.isshow = false
532
- },
533
- // 评论完成
534
- saveevaluate (val) {
535
- //tag
536
- this.isshow = false
537
- this.$refs.evaluate.init(this.evaluate.f_type, this.evaluate.f_middle_id).then(() => {
538
- })
539
- }
540
- },
541
- watch: {
542
- 'rowOne' () {
543
- this.selfSearch()
544
- //tag
545
- //tag
546
- },
547
- 'service' (val) {
548
- if (val) {
549
- this.evaluate = {
550
- f_type: val.f_workorder_type,
551
- f_middle_id: val.f_service_id
552
- }
553
- }
554
- }
555
- },
556
- ready () {
557
- this.selfSearch()
558
-
559
- },
560
- components: {
561
- 'failure-show': FailureShow
562
- }
563
- }
564
- </script>
565
- <style scoped lang="less">
566
- .workOrderInfo{
567
- .row {
568
- div {
569
- margin-top: 10px;
570
- [readonly] {
571
- background-color:#eeeeee;
572
- }
573
- }
574
- }
575
- }
576
- </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_site_back'">
113
+ <p>{{ activity.f_site_back_date }}</p>
114
+ <p>{{ activity.f_site_back_name }}将工单打回</p>
115
+ <p>原因:{{ activity.f_site_back_reason }}</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_notwork'">
148
+ <p>{{ activity.f_date }}</p>
149
+ <p>{{ activity.f_name }}未完成</p>
150
+ <p>原因:{{ activity.f_reason }}</p>
151
+ </div>
152
+ <!-- 延期申请 -->
153
+ <div style="margin-top: 5px" v-if="activity.type === 't_delayapply'">
154
+ <p>{{ activity.f_date }}</p>
155
+ <p>{{ activity.f_name }}提交延期申请,延期至:{{ activity.f_dalay_date }},原因:{{ activity.f_reason }}</p>
156
+ </div>
157
+ <!-- 延期审批 -->
158
+ <div style="margin-top: 5px" v-if="activity.type === 't_delayreply'">
159
+ <p>{{ activity.f_date }}</p>
160
+ <p>{{ activity.f_name }}{{ activity.f_result }}延期申请,原因:{{ activity.f_reason }}</p>
161
+ </div>
162
+ <!-- 工单撤回 -->
163
+ <div style="margin-top: 5px" v-if="activity.type === 't_recall'&&activity.f_service_acitivity_type !=='审核不通过'">
164
+ <p>{{ activity.f_recall_date }}</p>
165
+ <p>{{ activity.f_recall_name }}撤回工单</p>
166
+ <p>备注:{{ activity.f_remarks }}</p>
167
+ </div>
168
+ <!-- 工单撤回 -->
169
+ <div style="margin-top: 5px" v-if="activity.type === 't_recall' && activity.f_service_acitivity_type ==='审核不通过' ">
170
+ <p>{{ activity.f_recall_date }}</p>
171
+ <p>{{ activity.f_recall_name }}审核不通过</p>
172
+ <p>备注:{{ activity.f_remarks }}</p>
173
+ </div>
174
+ <!-- 工单结案 -->
175
+ <div style="margin-top: 5px" v-if="activity.type === 't_serviceend'">
176
+ <p>{{ activity.f_date }}</p>
177
+ <p>{{ activity.f_name }}结束工单,备注:{{ activity.f_remakes }}</p>
178
+ </div>
179
+ <!-- 工单撤销 -->
180
+ <div style="margin-top: 5px" v-if="activity.type === 't_servicedelete'">
181
+ <p>{{ activity.f_recall_date }}</p>
182
+ <p>撤销工单</p>
183
+ <p>撤销理由:{{ activity.f_backaccount }}</p>
184
+ </div>
185
+ <!-- 投诉处理 -->
186
+ <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '投诉单' && activity.type === 't_complanintend'">
187
+ <p>{{ activity.f_date }}</p>
188
+ <p>{{ activity.f_name }}处理了投诉单</p>
189
+ <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
190
+ </div>
191
+ <!--咨询单处理 -->
192
+ <div style="margin-top: 5px" v-if="rowOne.f_workorder_type === '咨询单'&& activity.type === 't_complanintend'">
193
+ <p>{{ activity.f_date }}</p>
194
+ <p>{{ activity.f_name }}处理了咨询单</p>
195
+ <span class="btn btn-link add-postition" @click="reqComplanResult($index)">详情</span>
196
+ </div>
197
+ </timeline-item-tel>
198
+ </timeline>
199
+ <!--<button v-if="service.f_workorder_type=='报修单'|| service.f_workorder_type=='置换通气单'" class="btn btn-success" @click="discuss">评价</button>-->
200
+ <!--<button v-if="service"class="btn btn-success" @click="takett">操作</button>-->
201
+ <div v-show="service.f_record_sound.length>0">
202
+ <button-link type="button" class="btn btn-link" @click="playWav(service.f_record_sound)">播放录音</button-link>
203
+ </div>
204
+ <!-- <evaluate-list :evaluate="evaluate" :shownum="num" v-ref:evaluate></evaluate-list>-->
205
+ <modal :show.sync="repaierShow" large="true" v-ref:modal backdrop="false">
206
+ <header slot="modal-header" class="modal-header">
207
+ 工单详情
208
+ </header>
209
+ <article slot="modal-body" class="modal-body">
210
+ <div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="repaierShow">
211
+ <repair-order :show="true" :row="service" system="pc" :repair="curActivity">
212
+ </repair-order>
213
+ </div>
214
+ </article>
215
+ <footer slot="modal-footer" class="modal-footer">
216
+ <button type="button" class="btn btn-success" @click='close'>确认</button>
217
+ </footer>
218
+ </modal>
219
+ <div v-if="show">
220
+ <modal :show.sync="show" v-ref:modal1 backdrop="false">
221
+ <header slot="modal-header" class="modal-header">
222
+ <h2 class="modal-title">正在播放{{ wavflie }}语音文件</h2>
223
+ </header>
224
+ <article slot="modal-body" class="modal-body">
225
+ <audio controls>
226
+ <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav">
227
+ 您的浏览器不支持 audio 元素。
228
+ </audio>
229
+ </article>
230
+ <footer slot="modal-footer" class="modal-footer">
231
+ <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
232
+ </footer>
233
+ </modal>
234
+ </div>
235
+ <!-- <div style="height: 60px;" v-if="show"class="form-inline">
236
+ <audio controls style="margin-top: 10px;">
237
+ <source src="{{'/Dual/GetWAV/'+wavflie+'.wav'}}" type="audio/wav" >
238
+ 您的浏览器不支持 audio 元素。
239
+ </audio>
240
+ <div class="form-group">
241
+ <button type="button" class="btn btn-default" @click='closemodel'>返回</button>
242
+ </div>
243
+ </div> -->
244
+ <!-- <modal :show.sync="takeshow" large="true" v-ref:modal2 backdrop="false">-->
245
+ <!-- <article slot="modal-body" class="modal-body">-->
246
+ <!-- <server-appendix-info @clean="clean" @success="renew" :row="service"></server-appendix-info>-->
247
+ <!-- </article>-->
248
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
249
+ <!-- </footer>-->
250
+ <!-- </modal>-->
251
+ <!-- <evaluate-model :evaluate="evaluate" :isshow="isshow" @closeevaluate="closeevaluate" @saveevaluate="saveevaluate"></evaluate-model>-->
252
+ <!-- </div>-->
253
+
254
+ </div>
255
+
256
+ </div>
257
+ </partial-view-tel>
258
+
259
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
260
+ <header slot="modal-header" class="modal-header">
261
+ 在线抢修照片
262
+ </header>
263
+ <article slot="modal-body" class="modal-body">
264
+ <div class="from-group">
265
+ <img-self v-if="rowOne.f_single_path" :src="imgfilename" width="500" height="500"></img-self>
266
+ <img-self v-if="rowOne.f_singlea_path" :src="imgfilenamea" width="500" height="500"></img-self>
267
+ <img-self v-if="rowOne.f_singleb_path" :src="imgfilenameb" width="500" height="500"></img-self>
268
+ </div>
269
+ </article>
270
+ <footer slot="modal-footer" class="modal-footer">
271
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
272
+ </footer>
273
+ </modal>
274
+
275
+ <modal :show.sync="showinfo" v-ref:infomodal backdrop="true">
276
+ <header slot="modal-header" class="modal-header">
277
+ 工单信息补充
278
+ </header>
279
+ <article slot="modal-body" class="modal-body">
280
+ <div class="from-group">
281
+ <label class="font_normal_body" style="width: 15%">维护内容</label>
282
+ <textarea style="width: 80%" name="name" rows="3" class="ver-textarea" class="form-control" v-model='information'></textarea>
283
+ </div>
284
+ </article>
285
+ <footer slot="modal-footer" class="modal-footer">
286
+ <button type="button" class="btn btn-success" @click='infoaddsure'>添加</button>
287
+ <button type="button" class="btn btn-success" @click='infoclose'>取消</button>
288
+ </footer>
289
+ </modal>
290
+
291
+
292
+ <!-- 投诉单咨询单详情 -->
293
+ <modal :show.sync="iscomplanAllInfo" v-ref:modal_complan backdrop="true">
294
+ <header slot="modal-header" class="modal-header">
295
+ 工单详情
296
+ </header>
297
+ <article slot="modal-body" class="modal-body">
298
+ <div class="select-overspread form-horizontal auto workOrderInfo">
299
+ <div class="row">
300
+ <div class="col-sm-12 form-group form-input-group" >
301
+ <label class="font_normal_body" style="width: 10%">工单编号</label>
302
+ <h5 style="padding: 0px">{{ rowOne.f_service_id }}</h5>
303
+ </div>
304
+ <div class="col-sm-12 form-input-group" >
305
+ <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '咨询单'">咨询内容</label>
306
+ <label class="font_normal_body" style="width: 10%" v-if="rowOne.f_workorder_type === '投诉单'">投诉内容</label>
307
+ <textarea name="name" rows="3" v-model="rowOne.f_content"
308
+ class="form-control ver-textarea" id="f_content" name="f_content" readonly="readonly"></textarea>
309
+ </div>
310
+ <div class="col-sm-4 form-group form-input-group" >
311
+ <label class="font_normal_body" style="width: 30%">来电电话</label>
312
+ <input type="text" name="" v-model='rowOne.f_phone'
313
+ class="form-control" readonly="readonly">
314
+ </div>
315
+ <div class="col-sm-4 form-group form-input-group" >
316
+ <label class="font_normal_body" style="width: 30%">联系人</label>
317
+ <input type="text" name="" v-model='rowOne.f_user_name'
318
+ class="form-control" readonly="readonly">
319
+ </div>
320
+ <div class="col-sm-4 form-group form-input-group" >
321
+ <label class="font_normal_body" style="width: 30%">联系电话</label>
322
+ <input type="text" name="" v-model='rowOne.f_contact_phone'
323
+ class="form-control" readonly="readonly">
324
+ </div>
325
+ <div class="col-sm-12 form-input-group" >
326
+ <label class="font_normal_body" style="width: 10%">备注</label>
327
+ <textarea name="name" rows="3" v-model="rowOne.f_remarks"
328
+ class="form-control ver-textarea" readonly="readonly"></textarea>
329
+ </div>
330
+ <div class="col-sm-12 form-input-group">
331
+ <label class="font_normal_body" style="width: 10%">处理结果</label>
332
+ <textarea name="name" rows="3" v-model="complanResult.f_complaint_results"
333
+ class="form-control ver-textarea" readonly="readonly"></textarea>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </article>
338
+ <footer slot="modal-footer" class="modal-footer">
339
+ <button type="button" name="button" class="button_search button_spacing"
340
+ @click='iscomplanAllInfo = false;complanResult={}'>确定</button>
341
+ </footer>
342
+ </modal>
343
+
344
+
345
+ </template>
346
+ <script>
347
+ import co from 'co'
348
+ import Vue from 'vue'
349
+ import FailureShow from '../../../components/pc/FailureShow'
350
+
351
+ let getGen = function * (self) {
352
+ yield self.$resetpost('rs/path/getService', {data: {id: self.rowOne.id}}, {resolveMsg: null, rejectMsg: null})
353
+ .then((res) => {
354
+ self.service = res.data[0]
355
+ // self.getrepair()
356
+ })
357
+ }
358
+ export default {
359
+ title: '工单历史记录',
360
+ data () {
361
+ return {
362
+ imgshow: false,
363
+ imgfilename: '',
364
+ imgfilenamea: '',
365
+ imgfilenameb: '',
366
+ service: null,
367
+ // 是否显示详情modal
368
+ repaierShow: false,
369
+ isshow: false,
370
+ show: false,
371
+ takeshow: false, // 操作面板显示
372
+ repair: {},
373
+ evaluate: {},
374
+ num: 14,
375
+ wavflie: '',
376
+ iscomplanAllInfo: false, // 是否显示投诉单详情
377
+ complanResult: {}, //投诉单详情信息
378
+ showinfo:false,
379
+ information:'',
380
+ loginUser:{
381
+ name:this.$login.f.name,
382
+ ename:this.$login.f.ename
383
+ }
384
+ }
385
+ },
386
+ props: {
387
+ rowOne: { // 传入一条工单信息
388
+ type: Object
389
+ }
390
+ },
391
+ methods: {
392
+ //添加信息维护
393
+ infoadd(){
394
+ this.showinfo = true
395
+ },
396
+ infoaddsure(){
397
+ if(!this.information){
398
+ return this.$showMessage('请填写维护内容!')
399
+ }
400
+ var data = {
401
+ id :this.service.id,
402
+ f_processid:this.service.f_processid,
403
+ f_content:this.information,
404
+ serviceacitivity : [{}]
405
+ }
406
+ // 将数据发送给业务逻辑
407
+ this.$resetpost('rs/logic/telinformation', {model: data, loginUser: this.loginUser},{resolveMsg: null, rejectMsg: null}).then(() => {
408
+ this.$showMessage('维护内容添加成功!',['confirm'])
409
+ this.information = ''
410
+ this.showinfo =false
411
+ this.selfSearch()
412
+ })
413
+ },
414
+ infoclose(){
415
+ this.showinfo =false
416
+ },
417
+ trouble (val) {
418
+ let failureall=''
419
+ // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
420
+
421
+ let failure = JSON.parse(val)
422
+ for (let i = 0; i <failure.length; i++) {
423
+ if (failure[i].failurecase.length>0){
424
+ failureall+=failure[i].f_failure_type+":"
425
+ for (let j = 0; j < failure[i].failurecase.length; j++) {
426
+ failureall+=failure[i].failurecase[j]
427
+ if (j+1!=failure[i].failurecase.length){
428
+ failureall+=","
429
+ }
430
+ }
431
+
432
+ }else{
433
+ failureall+=failure[i].f_failure_type
434
+ }
435
+ if (i+1!=failure.length){
436
+ failureall+=';'
437
+ }
438
+ }
439
+ return failureall
440
+ },
441
+ // 投诉单详情
442
+ reqComplanResult (index) {
443
+ this.complanResult = Object.assign({}, this.service.serviceacitivity[index])
444
+ this.iscomplanAllInfo = true
445
+ },
446
+ showpicture (val) {
447
+ //tag
448
+ //tag)
449
+ this.imgshow = true
450
+ this.imgfilename = 'rs/image/file/' + val.f_single_path
451
+ this.imgfilenamea = 'rs/image/file/' + val.f_singlea_path
452
+ this.imgfilenameb = 'rs/image/file/' + val.f_singleb_path
453
+ },
454
+ imgclose () {
455
+ this.imgshow = false
456
+ },
457
+ renew () {
458
+ this.takeshow = false
459
+ },
460
+ clean () {
461
+ this.takeshow = false
462
+ },
463
+ takett () {
464
+ this.takeshow = true
465
+ },
466
+ playWav (val) {
467
+ let condition = `id = '${val}'`
468
+ let result = ''
469
+ this.$resetpost(`/rs/sql/tel_singleTable`, {
470
+ data: {
471
+ items: 'recordfile', tablename: 't_records',
472
+ condition: condition, orderitem: 'outltime'
473
+ }
474
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
475
+ result = res.data
476
+ this.wavflie = result[0].recordfile
477
+ this.show = true
478
+ })
479
+ },
480
+ closemodel () {
481
+ this.wavflie = ''
482
+ this.show = false
483
+ },
484
+ getReciever (val) {
485
+ let str = val.f_reciever
486
+ var i = parseInt(str)
487
+ if (isNaN(i)) {
488
+ return val.f_reciever
489
+ }
490
+ return val.f_meetunit
491
+ },
492
+ selfSearch () {
493
+ if (!this.rowOne) {
494
+ return
495
+ }
496
+ 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 != '咨询单') {
497
+ this.service = this.rowOne
498
+ } else {
499
+ let gen = getGen(this)
500
+ co(gen)
501
+ }
502
+ // if (this.rowOne.processins) {
503
+ // this.service = this.rowOne
504
+ // } else {
505
+ // let gen = getGen(this)
506
+ // co(gen)
507
+ // }
508
+ },
509
+ getrepair () {
510
+ // if(!this.rowOne) {
511
+ // return
512
+ // }
513
+ let gen = getrepairGen(this)
514
+ co(gen)
515
+ },
516
+ repairlist (index) {
517
+ this.curActivity = Object.assign({}, this.service.serviceacitivity[index])
518
+ //tag
519
+ //tag)
520
+ // this.repaierShow = true
521
+ this.$goto('new-repair-paper', {service:this.service,curActivity: this.curActivity}, 'self')
522
+ },
523
+ close () {
524
+ this.repaierShow = false
525
+ },
526
+ discuss () {
527
+ //tag
528
+ this.isshow = true
529
+ },
530
+ closeevaluate () {
531
+ this.isshow = false
532
+ },
533
+ // 评论完成
534
+ saveevaluate (val) {
535
+ //tag
536
+ this.isshow = false
537
+ this.$refs.evaluate.init(this.evaluate.f_type, this.evaluate.f_middle_id).then(() => {
538
+ })
539
+ }
540
+ },
541
+ watch: {
542
+ 'rowOne' () {
543
+ this.selfSearch()
544
+ //tag
545
+ //tag
546
+ },
547
+ 'service' (val) {
548
+ if (val) {
549
+ this.evaluate = {
550
+ f_type: val.f_workorder_type,
551
+ f_middle_id: val.f_service_id
552
+ }
553
+ }
554
+ }
555
+ },
556
+ ready () {
557
+ this.selfSearch()
558
+
559
+ },
560
+ components: {
561
+ 'failure-show': FailureShow
562
+ }
563
+ }
564
+ </script>
565
+ <style scoped lang="less">
566
+ .workOrderInfo{
567
+ .row {
568
+ div {
569
+ margin-top: 10px;
570
+ [readonly] {
571
+ background-color:#eeeeee;
572
+ }
573
+ }
574
+ }
575
+ }
576
+ </style>