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
@@ -0,0 +1,1445 @@
1
+ <template>
2
+ <!--<div class="app-botton" @click="back()">-->
3
+ <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
+ <!--</div>-->
5
+ <div class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
+ <div class="col-sm-12 col-xs-12" >
7
+ <ul class="nav nav-tabs" style="background:#ffffff;">
8
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
9
+ v-if="$index < number+1 && $index < faultshow.number" >
10
+ <a href="javascript:void(0)" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
11
+ <span class="spanboder">{{row.header}}</span>
12
+ <img class="butt2" :src="imgback(row.complete === componentName)"></a>
13
+ <p></p>
14
+ </li>
15
+ <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
+ <route name='repair' :reuse="false"></route>
17
+ </div>
18
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
19
+ v-if="$index > number && $index < faultshow.number ">
20
+ <a href="javascript:void(0)" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
21
+ <span class="spanboder">{{row.header}}</span>
22
+ <img class="butt2" :src="imgback(row.complete === componentName)"></a>
23
+ <p></p>
24
+ </li>
25
+ <div class="col-sm-12 col-xs-12 repair-bg">
26
+ <route name='upload' :reuse="false"></route>
27
+ </div>
28
+ </ul>
29
+ </div>
30
+ </div>
31
+ </template>
32
+
33
+ <script>
34
+ // 户内维修
35
+ import Vue from 'vue'
36
+ // import DoorService from './DoorService'
37
+ import RepairInfo from '../../components/workorder/RepairInfo'
38
+ import RepairDetails from '../../components/workorder/RepairDetails'
39
+ import RepairUserInfo from '../../components/workorder/RepairUserInfo'
40
+ // import Pipeline from './Pipeline'
41
+ // import DeviceService from './DeviceService'
42
+ // import TroubleRemoval from './TroubleRemoval'
43
+ // import FirstGasCheck from './FirstGasCheck'
44
+ // import RepairMatterInfo from './RepairMatterInfo'
45
+ // import TelChangeMatter from './TelChangeMatter'
46
+ import Outlay from '../../components/workorder/Outlay'
47
+ import FaultAll from './FaultAll'
48
+ import { HttpResetClass } from 'vue-client'
49
+ import co from 'co'
50
+ import * as Util from '../../components/Util'
51
+ let loadParamGem = async function (self) {
52
+ await self.$LoadParams.loadParam()
53
+ }
54
+
55
+ export default {
56
+ title: '维修单',
57
+ props: {
58
+ worktype:{
59
+ type: String,
60
+ default: '报修单'
61
+ },
62
+ //分辨平板还是pc
63
+ system: '',
64
+ // 要处理的工单
65
+ row: {
66
+ type: Object
67
+ },
68
+ // 要显示的维修单
69
+ repair: {
70
+ type: Object
71
+ },
72
+ // 是否是显示
73
+ show: {
74
+ type: Boolean,
75
+ default: false
76
+ },
77
+ issee:''
78
+ },
79
+
80
+ data() {
81
+ return {
82
+ // 维修项
83
+ repairdetails:{},
84
+ // userinfo: '',
85
+ routeShow:true,
86
+ number:0,
87
+ shupingshow:false,
88
+ pipeline: {},
89
+ model: {
90
+ serviceacitivity: [{
91
+ baseuserinfo: {
92
+ f_credentials:'身份证'
93
+ },
94
+ basemeterinfo: {},
95
+ matterinfo: {},
96
+ servicerepair: [],
97
+ // 照片
98
+ imgs: [],
99
+ // 签名照片名字
100
+ // 照片
101
+ material: [], //维修的一批材料
102
+ f_date: '',
103
+ f_date_come: '',
104
+ f_date_leave: '',
105
+ f_is_userfilesadd:'未上传',
106
+ f_workorder_type:this.worktype ? this.worktype : '报修单'
107
+ }]
108
+ },
109
+ details: [],
110
+ ids: '',
111
+ savevalid: {
112
+ uservalid: false,
113
+ doorvalid: true,
114
+ changetable: false
115
+ },
116
+ doordetails: {},
117
+ devicedetails: {},
118
+ cookdetails: {},
119
+ componentName: 'repair-info',
120
+ tabs: [
121
+ // 参数全部设置成空,在ready时,等model处理好了,再添加
122
+ {
123
+ header: '客户工单信息', complete: 'repair-info', class: 'repair-info-class', props: null
124
+ },
125
+ // {
126
+ // header: '换表', complete: 'change-meter-page', class: 'change-meter-page-class', props: null
127
+ //
128
+ // },
129
+ // {
130
+ // header: '客户基本信息',complete:'repair-user-info', class: 'repair-user-info-class', props: null
131
+ // },
132
+ // 'door-service': {
133
+ // header: '户内维修', class: 'door-service-class', props: null
134
+ // },
135
+ // 'tel-change-matter': {
136
+ // header: '换表', class: 'cooking-utensils-class', props: null
137
+ // },
138
+ // 'pipeline': {
139
+ // header: '管道', class: 'pipeline-class', props: null
140
+ // },
141
+ // 'device-service': {
142
+ // header: '设备维修', class: 'device-service-class', props: null
143
+ // },
144
+ // 'first-gas-check': {
145
+ // header: '置换通气', class: 'cooking-utensils-class', props: null
146
+ // },
147
+ {
148
+ header: '拍照及签名',complete:'outlay', class: 'outlay-class', props: null
149
+ }
150
+ // {
151
+ // header: '上传工单',complete:'fault-all', class: 'fault-all-class', props: null
152
+ // }
153
+ ],
154
+ faultshow:{
155
+ number : 8
156
+ } // 控制 故障汇总 在 菜单里显示与否
157
+ }
158
+ },
159
+ methods: {
160
+ // 录音方法
161
+ record() {
162
+ //tag
163
+ let fileName
164
+ if (!this.f_recording1_path) {
165
+ fileName = Util.guid() + '.amr'
166
+ } else {
167
+ fileName = Util.getFileName(this.f_recording1_path)
168
+ }
169
+ //HostApp.__this__ = this
170
+ /*调用无限制录音模块*/
171
+ let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
172
+ //tag
173
+ if (startOrStopState.code == 200) {
174
+ this.model.f_recording1_path = "/storage/emulated/0/safecheck/" + fileName
175
+ console.log("录音文件地址"+this.model.f_recording1_path)
176
+ //tag
177
+ return true;
178
+ }else {
179
+ return false;
180
+ }
181
+ },
182
+ imgback(val){
183
+ if(val && this.routeShow){
184
+ return require('../../assets/xiangxia1.png')
185
+ }else{
186
+ return require('../../assets/xiangyou1.png')
187
+ }
188
+ },
189
+ // 选择tab
190
+ tabSelect (item,number) {
191
+ // 处理关闭/显示 内容
192
+ if(this.number == number && !this.routeShow ){
193
+ this.routeShow = true
194
+ }else if(this.number == number && this.routeShow){
195
+
196
+ this.routeShow = false
197
+ }else if(this.number != item.complete){
198
+ this.routeShow = true
199
+ }
200
+ this.number = number
201
+ this.componentName = item.complete
202
+ if(item.complete == 'repair-details'){
203
+ if (this.row.f_workorder_type == '置换通气单') {
204
+ // 根据置换单的用户类型,查询气价信息给下拉框赋值
205
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/queryGaspriceGroupByFilaleid`,
206
+ {data: {f_filialeid:Vue.user.orgid,f_gasproperties:this.row.f_gasproperties}},
207
+ {resolveMsg: null, rejectMsg: null}).then((rese)=>{
208
+ //tag)
209
+ let pricelist = []
210
+ if (rese.data) {
211
+ rese.data.forEach(item => pricelist.push({label: item.f_price_name, value: item.f_price_name}))
212
+ }
213
+ this.pricelists = pricelist;
214
+ //tag)
215
+ let itemprops = {
216
+ model: this.model.serviceacitivity[0],
217
+ service: this.model,
218
+ show: this.show,
219
+ repairitem: item,
220
+ faultshow :this.faultshow,
221
+ shutype:'shu',
222
+ tabs:this.tabs,
223
+ repairdetails:this.repairdetails,
224
+ issee:this.issee,
225
+ pricelists: this.pricelists //根据置换单下派的用气性质和公司查询的气价信息
226
+ }
227
+ //tag
228
+ //tag)
229
+ this.$goto(item.complete, itemprops, 'repair')
230
+ })
231
+ } else {
232
+ let itemprops = {
233
+ model: this.model.serviceacitivity[0],
234
+ service: this.model,
235
+ show: this.show,
236
+ repairitem: item,
237
+ faultshow :this.faultshow,
238
+ shutype:'shu',
239
+ tabs:this.tabs,
240
+ repairdetails:this.repairdetails,
241
+ issee:this.issee,
242
+ pricelists: [{label:"无",value:"无"}]
243
+ }
244
+ //tag
245
+ //tag)
246
+ this.$goto(item.complete, itemprops, 'repair')
247
+ }
248
+ }else{
249
+ //tag
250
+ // //tag)
251
+ // //tag)
252
+ if(this.routeShow) {
253
+ //tag)
254
+ // //tag)
255
+ this.$goto(item.complete, this.tabs[number].props, 'repair')
256
+ }
257
+ }
258
+ this.shupingshow = true
259
+ },
260
+ // 给组件添加参数
261
+ getImgPath() {
262
+ for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
263
+ this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
264
+ }
265
+ this.ids = this.ids.substring(0, this.ids.length - 1)
266
+ if(this.ids){
267
+ this.getImgGen();
268
+ }
269
+ },
270
+ getImgGen(){
271
+ let http = new HttpResetClass()
272
+ http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
273
+ items: '*',
274
+ tablename: 't_files',
275
+ condition: `id in (${this.ids})`,
276
+ orderitem: 'id'
277
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
278
+ for (let i = 0; i < res.data.length; i++) {
279
+ for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
280
+ //tag)
281
+ //tag
282
+ if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
283
+ this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
284
+ }
285
+ }
286
+
287
+ }
288
+ })
289
+ },
290
+ setProps() {
291
+ // 给各自组件添加参数
292
+ for(var i =0;i<this.tabs.length;i++ ){
293
+ if(this.tabs[i].complete == 'repair-info'){
294
+ this.tabs[i].props = {
295
+ service: this.row,
296
+ model: this.model.serviceacitivity[0].baseuserinfo,
297
+ data: this.model.serviceacitivity[0],
298
+ savevalid: this.savevalid,
299
+ repair: this.row,
300
+ show: this.show,
301
+ // userinfo: this.userinfo
302
+ shutype:'shu',
303
+ worktype:this.worktype,
304
+ issee:this.issee
305
+ }
306
+ }else if (this.tabs[i].complete == 'repair-user-info'){
307
+ this.tabs[i].props = {
308
+ model: this.model.serviceacitivity[0].baseuserinfo,
309
+ data: this.model.serviceacitivity[0],
310
+ savevalid: this.savevalid,
311
+ repair: this.row,
312
+ show: this.show,
313
+ // userinfo: this.userinfo
314
+ shutype:'shu',
315
+ worktype:this.worktype,
316
+ issee:this.issee
317
+ }
318
+ } else if (this.tabs[i].complete == 'outlay'){
319
+ this.tabs[i].props = {
320
+ model: this.model.serviceacitivity[0],
321
+ service: this.model,
322
+ show: this.show,
323
+ system: this.system,
324
+ f_single_man: this.model.f_single_man,
325
+ shutype: 'shu',
326
+ issee:this.issee
327
+ }
328
+ }else if (this.tabs[i].complete == 'fault-all'){
329
+ this.tabs[i].props = {
330
+ msg: this.model, model: this.model.serviceacitivity[0],
331
+ service: this.model, system: this.system, show: this.show,
332
+ savevalid: this.savevalid,
333
+ issee: this.issee
334
+ }
335
+ }else if (this.tabs[i].complete == 'change-meter-page') {
336
+ //tag
337
+ //tag)
338
+ this.tabs[i].props = {
339
+ service: this.row,
340
+ model: this.model.serviceacitivity[0].basemeterinfo,
341
+ data: this.model.serviceacitivity[0],
342
+ savevalid: this.savevalid,
343
+ repair: this.row,
344
+ show: this.show,
345
+ // userinfo: this.userinfo
346
+ shutype: 'shu',
347
+ worktype: this.worktype,
348
+ issee: this.issee
349
+ }
350
+ }
351
+ }
352
+
353
+ // this.tabs['repair-info'].props = {service: this.row,shutype:'shu'}
354
+ // if (this.model.serviceacitivity[0]) {
355
+ // this.tabs['repair-user-info'].props = {
356
+ // model: this.model.serviceacitivity[0].baseuserinfo,
357
+ // data: this.model.serviceacitivity[0],
358
+ // savevalid: this.savevalid,
359
+ // repair: this.row,
360
+ // show: this.show,
361
+ // // userinfo: this.userinfo
362
+ // shutype:'shu'
363
+ // }
364
+ // }
365
+ // this.tabs['door-service'].props =
366
+ // {
367
+ // model: this.model.serviceacitivity[0],
368
+ // savevalid: this.savevalid,
369
+ // changetable: this.changetable,
370
+ // service: this.model, show: this.show,
371
+ // details: this.doordetails.details,
372
+ // shutype:'shu'
373
+ // }
374
+ // this.tabs['tel-change-matter'].props =
375
+ // {
376
+ // model: this.model.serviceacitivity[0],
377
+ // service: this.model,
378
+ // show: this.show,
379
+ // shutype:'shu'
380
+ // }
381
+ // this.tabs['pipeline'].props =
382
+ // {
383
+ // model: this.model.serviceacitivity[0],
384
+ // service: this.model,
385
+ // show: this.show,
386
+ // shutype:'shu'
387
+ // }
388
+ // this.tabs['device-service'].props = {
389
+ // model: this.model.serviceacitivity[0],
390
+ // service: this.model,
391
+ // show: this.show,
392
+ // details: this.devicedetails.details,
393
+ // shutype:'shu'
394
+ // }
395
+ // this.tabs['outlay'].props = {
396
+ // model: this.model.serviceacitivity[0],
397
+ // service: this.model,
398
+ // show: this.show,
399
+ // system: this.system,
400
+ // f_single_man: this.model.f_single_man,
401
+ // shutype: 'shu'
402
+ // }
403
+ // this.tabs['fault-all'].props =
404
+ // {
405
+ // msg: this.model, model: this.model.serviceacitivity[0],
406
+ // service: this.model, system: this.system, show: this.show,
407
+ // savevalid: this.savevalid
408
+ // }
409
+
410
+ // 参数设置成功,在转向第一个页签
411
+ this.$goto('repair-info', this.tabs[0].props, 'repair')
412
+ if(!this.issee){
413
+ this.gotoUpload()
414
+ }
415
+ },
416
+
417
+ getRepair() {
418
+ if (Vue.android) {
419
+ //tag
420
+ if (this.$androidUtil.isTest) {
421
+ //tag
422
+ this.$androidUtil.path({'alias': 'serviceWork', 'data': {id: this.row.serviceacitivity[0].id}}).then((ret) => {
423
+ this.model.serviceacitivity = ret.data
424
+ this.getDetails()
425
+ })
426
+ } else {
427
+ //tag
428
+ let result = this.$androidUtil.path({'alias': 'serviceWork', 'data': {id: this.row.serviceacitivity[0].id}})
429
+ //tag
430
+ if (result.code === 200) {
431
+ // this.show = true
432
+ this.model.serviceacitivity = result.data
433
+ this.getDetails()
434
+ }
435
+ }
436
+ } else {
437
+ //tag
438
+ this.getService();
439
+ }
440
+ },
441
+ getService(){
442
+ let http = new HttpResetClass()
443
+ http.load('POST','rs/path/serviceWork', {data: {id: this.repair.id}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
444
+ this.model.serviceacitivity = [res.data[0]]
445
+ this.getDetails()
446
+ })
447
+ },
448
+ sortDetails(){
449
+ for (let i = 0; i < this.details.length; i++) {
450
+ if (this.details[i].details.length) {
451
+ for (let j = 0; j < this.details[i].details.length; j++) {
452
+ if (this.details[i].details[j].f_type === 'a') {
453
+ this.doordetails = {details: this.details[i].details}
454
+ break
455
+ }
456
+ if (this.details[i].details[j].f_type === 'b') {
457
+ this.devicedetails = {details: this.details[i].details}
458
+ break
459
+ }
460
+ if (this.details[i].details[j].f_type === 'c') {
461
+ this.cookdetails = {details: this.details[i].details}
462
+ break
463
+ }
464
+ }
465
+ }
466
+ }
467
+ },
468
+ getDetails() {
469
+ if (Vue.android) {
470
+ //tag
471
+ if (this.$androidUtil.isTest) {
472
+ //tag
473
+ this.$androidUtil.path({'alias': 'getDetails', 'data': {id: this.row.serviceacitivity[0].id}}).then((ret) => {
474
+ this.details = ret.data
475
+ this.sortDetails()
476
+ if (this.model.serviceacitivity[0] && this.model.serviceacitivity[0].imgs) {
477
+ this.getImgPath()
478
+ }
479
+ this.setProps()
480
+ })
481
+ } else {
482
+ //tag
483
+ //tag
484
+ let result = this.$androidUtil.path({'alias': 'getDetails', 'data': {id:this.row.serviceacitivity[0].id}})
485
+ //tag
486
+ if (result.code === 200) {
487
+ this.details = result.data
488
+ this.sortDetails()
489
+ if (this.model.serviceacitivity[0] && this.model.serviceacitivity[0].imgs) {
490
+ this.getImgPath()
491
+ }
492
+ this.setProps()
493
+ }
494
+ }
495
+ } else {
496
+ //tag
497
+ this.getDetailsGen();
498
+ }
499
+ },
500
+ getDetailsGen(){
501
+ let http = new HttpResetClass()
502
+ http.load('POST','rs/path/getDetails', {data: {id: this.repair.id}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
503
+ this.details = res.data
504
+ // this.sortDetails()
505
+ if (this.model.serviceacitivity[0] && this.model.serviceacitivity[0].imgs) {
506
+ this.getImgPath()
507
+ }
508
+ this.setProps()
509
+ })
510
+ },
511
+ // 获取维修数据
512
+ getRepairInfo(){
513
+ if (this.$androidUtil.isTest) {
514
+ // android模拟
515
+ this.$androidUtil.path({'alias': 'telgetRepairWorkMsg', 'data': {id: this.row.id}}).then((ret) => {
516
+ this.model.serviceacitivity = ret.data[0].serviceacitivity
517
+ this.setProps()
518
+ })
519
+ } else {
520
+ let result = this.$androidUtil.path({'alias': 'telgetRepairWorkMsg', 'data': {id: this.row.id}})
521
+ if (result.code == 200) {
522
+ //tag)
523
+ //tag)
524
+ this.model.serviceacitivity = result.data[0].serviceacitivity
525
+ this.setProps()
526
+ }
527
+ }
528
+ },
529
+ // 复制数据
530
+ copy() {
531
+ if (this.row) {
532
+ //tag
533
+ this.model = Object.assign({}, this.model, this.row)
534
+ //tag
535
+ //tag)
536
+ // 获取维修数据
537
+ if(Vue.android){
538
+ if(this.row.f_orderstatus == '本地保存'){
539
+ this.getRepairInfo()
540
+ }
541
+ }
542
+ }
543
+ // 指定了维修单,获取维修单数据,给工单
544
+ if (this.repair) {
545
+ this.getRepair()
546
+ } else {
547
+ //tag
548
+ this.setProps()
549
+ }
550
+ },
551
+ back () {
552
+ let _this = this
553
+ if(this.issee){
554
+ _this.$back()
555
+ return
556
+ }
557
+ this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
558
+ if (res === 'confirm') {
559
+ _this.$back()
560
+ }
561
+ })
562
+ },
563
+ confirm(){
564
+ this.$dispatch('confirm')
565
+ },
566
+ mute() {
567
+ HostApp.mute()
568
+ },
569
+ // 维修项赋给维修单的维修集合内
570
+ getRepairDetails() {
571
+ if (this.repairdetails.length > 0) {
572
+ let repairlist = []
573
+ for (let j = 0;j< this.repairdetails.length;j++) {
574
+ let repairitem = []
575
+ for (var i = 0;i< this.repairdetails[j].details.length;i++) {
576
+ if(this.row.f_source == '安检'){
577
+ repairitem.push({f_project:this.repairdetails[j].details[i].f_project,f_defect_remark:this.repairdetails[j].details[i].f_defect_remark,type:this.repairdetails[j].details[i].type,f_defect_id:this.repairdetails[j].details[i].f_defect_id,f_status:'',f_content:''})
578
+ }else{
579
+ repairitem.push({f_project:this.repairdetails[j].details[i].f_project,type:this.repairdetails[j].details[i].type,f_status:'',f_content:'',f_is_must:this.repairdetails[j].details[i].f_is_must ? 'true':'false'})
580
+ }
581
+ }
582
+ repairlist.push({f_type: this.repairdetails[j].f_type, details: repairitem,imgs:[],f_remarks:this.repairdetails[j].f_remarks})
583
+ }
584
+ this.model.serviceacitivity[0].servicerepair = Object.assign([], repairlist)
585
+ }
586
+ //tag)
587
+ },
588
+ gotoUpload(){
589
+ this.$goto('fault-all', {
590
+ msg: this.model, model: this.model.serviceacitivity[0],
591
+ service: this.model, system: this.system, show: this.show,
592
+ savevalid: this.savevalid,
593
+ issee:this.issee,
594
+ parentPage:'CurrentCreate'
595
+ }, 'upload')
596
+ }
597
+ },
598
+ watch: {
599
+ 'row' () {
600
+ //tag
601
+ this.copy()
602
+ }
603
+ },
604
+ ready () {
605
+ // 1.先判断是否是安检转来的
606
+ // 2.判断工单类型 报修单/置换通气单
607
+ // 3.判断用户类型 民用及非民用
608
+ // Vue.config = {
609
+ // telephone:{
610
+ // SubstitConfigCivil:{}
611
+ // }
612
+ // }
613
+ // Vue.config.telephone.SubstitConfigCivil = {
614
+ // 'data':[
615
+ // {
616
+ // 'f_type': '用气设备信息',
617
+ // 'f_remarks':'设备',
618
+ // 'details': [
619
+ // {
620
+ // 'f_project':'客户用气设备名称',
621
+ // 'type': 'string',
622
+ // 'f_is_must':true
623
+ // },
624
+ // {
625
+ // 'f_project':'负荷(锅炉/功率)',
626
+ // 'type': 'string',
627
+ // 'f_is_must':true
628
+ // }
629
+ // ]
630
+ // },
631
+ // {
632
+ // 'f_type': '控制器信息',
633
+ // 'f_remarks':'设备',
634
+ // 'details': [
635
+ // {
636
+ // 'f_project':'有无控制器',
637
+ // 'type': 'checkbox'
638
+ // },
639
+ // {
640
+ // 'f_project':'设备名称',
641
+ // 'type': 'selector',
642
+ // 'f_is_must':true,
643
+ // 'options': [
644
+ // {
645
+ // 'data': '控制器'
646
+ // },
647
+ // {
648
+ // 'data': 'IC卡表'
649
+ // },
650
+ // {
651
+ // 'data': '远传物联网表'
652
+ // }
653
+ // ]
654
+ // },
655
+ // {
656
+ // 'f_project':'型号',
657
+ // 'f_is_must':true,
658
+ // 'type': 'string'
659
+ // },
660
+ // {
661
+ // 'f_project':'生产厂家',
662
+ // 'f_is_must':true,
663
+ // 'type': 'string'
664
+ // },
665
+ // {
666
+ // 'f_project':'铅封号',
667
+ // 'type': 'string'
668
+ // },
669
+ // {
670
+ // 'f_project':'备注',
671
+ // 'type': 'string'
672
+ // }
673
+ // ]
674
+ // },
675
+ // {
676
+ // 'f_type': '表具信息',
677
+ // 'f_remarks':'设备',
678
+ // 'details': [
679
+ // {
680
+ // 'f_project':'气表品牌',
681
+ // 'f_is_must':true,
682
+ // 'type': 'selector',
683
+ // 'options':[
684
+ // {'data':'中元新'},
685
+ // {'data':'三龙'},
686
+ // {'data':'鸿鹄'},
687
+ // {'data':'秦川'},
688
+ // {'data':'新奥新'},
689
+ // {'data':'中元老'},
690
+ // {'data':'新奥老'},
691
+ // {'data':'福禄克'},
692
+ // {'data':'苍南老CPU'},
693
+ // {'data':'振达'},
694
+ // {'data':'航宇星民用'},
695
+ // {'data':'航宇星民用双模'},
696
+ // {'data':'德力西1.0'},
697
+ // {'data':'宁波鹏盛'},
698
+ // {'data':'德力西2.0'},
699
+ // {'data':'建安民用'},
700
+ // {'data':'金卡民用'},
701
+ // {'data':'其他'}
702
+ // ]
703
+ // },
704
+ // {
705
+ // 'f_project':'表具类型',
706
+ // 'f_is_must':true,
707
+ // 'type': 'selector',
708
+ // 'options':[
709
+ // {'data':'腰轮流量计'},
710
+ // {'data':'涡轮流量计'},
711
+ // {'data':'超声流量计'},
712
+ // {'data':'热式质量流量计'},
713
+ // {'data':'机械表'},
714
+ // {'data':'普通卡表'},
715
+ // {'data':'带温压补偿的卡表'},
716
+ // {'data':'带温压补偿的远传物联网表'},
717
+ // {'data':'远传物联网表'},
718
+ // {'data':'其他'}
719
+ // ]
720
+ // },
721
+ // {
722
+ // 'f_project':'型号',
723
+ // 'f_is_must':true,
724
+ // 'type': 'string'
725
+ // },
726
+ // {
727
+ // 'f_project':'计量方式',
728
+ // 'type': 'selector',
729
+ // 'f_is_must':true,
730
+ // 'options':[
731
+ // {'data':'次高压计量'},
732
+ // {'data':'中压计量'},
733
+ // {'data':'低压计量'}
734
+ // ]
735
+ // },
736
+ // {
737
+ // 'f_project':'流量范围(m³/h)',
738
+ // 'f_is_must':true,
739
+ // 'type': 'string'
740
+ // },
741
+ // {
742
+ // 'f_project':'口径(mm)',
743
+ // 'type': 'string'
744
+ // },
745
+ // {
746
+ // 'f_project':'准确度',
747
+ // 'f_is_must':true,
748
+ // 'type': 'string'
749
+ // },
750
+ // {
751
+ // 'f_project':'表基数',
752
+ // 'f_is_must':true,
753
+ // 'type': 'string'
754
+ // },
755
+ // {
756
+ // 'f_project':'加铅封号',
757
+ // 'type': 'string'
758
+ // },
759
+ // {
760
+ // 'f_project':'备注',
761
+ // 'type': 'string'
762
+ // }
763
+ // ]
764
+ // },
765
+ // {
766
+ // 'f_type': '置换作业',
767
+ // 'details':[
768
+ // {
769
+ // 'f_project':'户内外燃气设施完整,外观无明显异常',
770
+ // 'type': 'radio',
771
+ // 'f_is_must':true,
772
+ // 'options': [
773
+ // {
774
+ // 'data': '是',
775
+ // 'f_status':'true'
776
+ // },
777
+ // {
778
+ // 'data': '否',
779
+ // 'f_status':'false'
780
+ // }
781
+ // ]
782
+ // },
783
+ // {
784
+ // 'f_project':'是否喷涂警示色',
785
+ // 'type': 'radio',
786
+ // 'f_is_must':true,
787
+ // 'options': [
788
+ // {
789
+ // 'data': '是',
790
+ // 'f_status':'true'
791
+ // },
792
+ // {
793
+ // 'data': '否',
794
+ // 'f_status':'false'
795
+ // }
796
+ // ]
797
+ // },
798
+ // {
799
+ // 'f_project':'燃气管道支撑稳固',
800
+ // 'f_is_must':true,
801
+ // 'type':'radio',
802
+ // 'options': [
803
+ // {
804
+ // 'data': '是',
805
+ // 'f_status':'true'
806
+ // },
807
+ // {
808
+ // 'data': '否',
809
+ // 'f_status':'false'
810
+ // }
811
+ // ]
812
+ // },
813
+ // {
814
+ // 'f_project':'燃气管道连接牢固',
815
+ // 'f_is_must':true,
816
+ // 'type':'radio',
817
+ // 'options': [
818
+ // {
819
+ // 'data': '是',
820
+ // 'f_status':'true'
821
+ // },
822
+ // {
823
+ // 'data': '否',
824
+ // 'f_status':'false'
825
+ // }
826
+ // ]
827
+ // },
828
+ // {
829
+ // 'f_project':'穿墙燃气管道是否加装套管、打密封胶',
830
+ // 'f_is_must':true,
831
+ // 'type':'radio',
832
+ // 'options': [
833
+ // {
834
+ // 'data': '是',
835
+ // 'f_status':'true'
836
+ // },
837
+ // {
838
+ // 'data': '否',
839
+ // 'f_status':'false'
840
+ // }
841
+ // ]
842
+ // },
843
+ // {
844
+ // 'f_project':'进行户内燃气设施严密性试验,试验压力为<>kPa',
845
+ // 'f_is_must':true,
846
+ // 'type': 'string'
847
+ // },
848
+ // {
849
+ // 'f_project':'严密性试验时间为<>分钟,无压降',
850
+ // 'f_is_must':true,
851
+ // 'type': 'string'
852
+ // },
853
+ // {
854
+ // 'f_project':'供气压力(单位:kPa)',
855
+ // 'f_is_must':true,
856
+ // 'type':'string'
857
+ // },
858
+ // {
859
+ // 'f_project':'切断压力(单位:kPa)',
860
+ // 'f_is_must':true,
861
+ // 'type':'string'
862
+ // },
863
+ // {
864
+ // 'f_project':'放散压力(单位:kPa)',
865
+ // 'type':'string'
866
+ // }
867
+ // ]
868
+ // }
869
+ // ]
870
+ // }
871
+ // Vue.config.telephone.SubstitConfigCivil = {
872
+ // 'data':[
873
+ // {
874
+ // 'f_type': '灶具信息',
875
+ // 'details': [
876
+ // {
877
+ // 'f_project':'有无灶具设备',
878
+ // 'type': 'checkbox'
879
+ // },
880
+ // {
881
+ // 'f_project':'灶具品牌',
882
+ // 'type': 'string',
883
+ // 'f_is_must':true
884
+ // },
885
+ // {
886
+ // 'f_project':'灶具型号',
887
+ // 'type': 'string',
888
+ // 'f_is_must':true
889
+ // },
890
+ // {
891
+ // 'f_project':'购买日期',
892
+ // 'type': 'date',
893
+ // 'f_is_must':true
894
+ // },
895
+ // {
896
+ // 'f_project':'合格证',
897
+ // 'type': 'selector',
898
+ // 'options': [
899
+ // {'data':'有'},
900
+ // {'data':'无'}
901
+ // ],
902
+ // 'f_is_must':true
903
+ // },
904
+ // {
905
+ // "f_project":"壁挂炉照片",
906
+ // "type": "picture",
907
+ // 'f_is_must':true
908
+ // }
909
+ // ]
910
+ // },
911
+ // {
912
+ // 'f_type': '壁挂炉信息',
913
+ // 'details': [
914
+ // {
915
+ // 'f_project':'有无壁挂炉设备',
916
+ // 'type': 'checkbox'
917
+ // },
918
+ // {
919
+ // 'f_project':'壁挂炉品牌',
920
+ // 'type': 'string',
921
+ // 'f_is_must':true
922
+ // },
923
+ // {
924
+ // 'f_project':'壁挂炉型号',
925
+ // 'type': 'string',
926
+ // 'f_is_must':true
927
+ // },
928
+ // {
929
+ // 'f_project':'购买日期',
930
+ // 'type': 'date',
931
+ // 'f_is_must':true
932
+ // },
933
+ // {
934
+ // 'f_project':'合格证',
935
+ // 'type': 'selector',
936
+ // 'options': [
937
+ // {
938
+ // 'data': '有'
939
+ // },
940
+ // {
941
+ // 'data': '无'
942
+ // }
943
+ // ],
944
+ // 'f_is_must':true
945
+ // },
946
+ // {
947
+ // "f_project":"壁挂炉照片",
948
+ // "type": "picture",
949
+ // 'f_is_must':true
950
+ // }
951
+ // ]
952
+ // },
953
+ // {
954
+ // 'f_type': '热水器信息',
955
+ // 'details': [
956
+ // {
957
+ // 'f_project':'有无热水器设备',
958
+ // 'type': 'checkbox'
959
+ // },
960
+ // {
961
+ // 'f_project':'热水器品牌',
962
+ // 'type': 'string',
963
+ // 'f_is_must':true
964
+ // },
965
+ // {
966
+ // 'f_project':'热水器型号',
967
+ // 'type': 'string',
968
+ // 'f_is_must':true
969
+ // },
970
+ // {
971
+ // 'f_project':'购买日期',
972
+ // 'type': 'date',
973
+ // 'f_is_must':true
974
+ // },
975
+ // {
976
+ // 'f_project':'合格证',
977
+ // 'type': 'selector',
978
+ // 'options': [
979
+ // {
980
+ // 'data': '有'
981
+ // },
982
+ // {
983
+ // 'data': '无'
984
+ // }
985
+ // ],
986
+ // 'f_is_must':true
987
+ // }
988
+ // ]
989
+ // },
990
+ // {
991
+ // 'f_type': '表具信息',
992
+ // 'details':[
993
+ // {
994
+ // 'f_project':'表号',
995
+ // 'type':'string',
996
+ // 'f_is_must':true
997
+ // },
998
+ // {
999
+ // 'f_project':'表型号',
1000
+ // 'type':'string',
1001
+ // 'f_is_must':true
1002
+ // },
1003
+ // {
1004
+ // 'f_project':'表具厂家',
1005
+ // 'type':'selector',
1006
+ // 'f_is_must':true,
1007
+ // 'options':[
1008
+ // {'data':'中元新'},
1009
+ // {'data':'三龙'},
1010
+ // {'data':'鸿鹄'},
1011
+ // {'data':'秦川'},
1012
+ // {'data':'新奥新'},
1013
+ // {'data':'中元老'},
1014
+ // {'data':'新奥老'},
1015
+ // {'data':'福禄克'},
1016
+ // {'data':'苍南老CPU'},
1017
+ // {'data':'振达'},
1018
+ // {'data':'航宇星民用'},
1019
+ // {'data':'航宇星民用双模'},
1020
+ // {'data':'德力西1.0'},
1021
+ // {'data':'宁波鹏盛'},
1022
+ // {'data':'德力西2.0'},
1023
+ // {'data':'建安民用'},
1024
+ // {'data':'金卡民用'},
1025
+ // {'data':'其他'}
1026
+ // ]
1027
+ // },
1028
+ // {
1029
+ // 'f_project':'表类型',
1030
+ // 'type':'selector',
1031
+ // 'options':[
1032
+ // {'data':'气量卡表'},
1033
+ // {'data':'金额卡表'},
1034
+ // {'data':'机表'},
1035
+ // {'data':'物联网表'}
1036
+ // ],
1037
+ // 'f_is_must':true
1038
+ // },
1039
+ // {
1040
+ // 'f_project':'表向',
1041
+ // 'type':'selector',
1042
+ // 'options':[
1043
+ // {'data':'左表'},
1044
+ // {'data':'右表'}
1045
+ // ]
1046
+ // },
1047
+ // {
1048
+ // 'f_project':'表基数',
1049
+ // 'type':'string'
1050
+ // },
1051
+ // {
1052
+ // 'f_project':'备注',
1053
+ // 'type':'string'
1054
+ // }
1055
+ // ]
1056
+ // },
1057
+ // {
1058
+ // 'f_type': '置换作业',
1059
+ // 'details':[
1060
+ // {
1061
+ // 'f_project':'用户是否为超期(半年)重新检测',
1062
+ // 'type': 'radio',
1063
+ // 'options': [
1064
+ // {
1065
+ // 'data': '是',
1066
+ // 'f_status':'true'
1067
+ // },
1068
+ // {
1069
+ // 'data': '否',
1070
+ // 'f_status':'false'
1071
+ // }
1072
+ // ]
1073
+ // },
1074
+ // {
1075
+ // 'f_project':'户内燃气设施外观完好,无损坏',
1076
+ // 'type': 'radio',
1077
+ // 'options': [
1078
+ // {
1079
+ // 'data': '是',
1080
+ // 'f_status':'true'
1081
+ // },
1082
+ // {
1083
+ // 'data': '否',
1084
+ // 'f_status':'false'
1085
+ // }
1086
+ // ]
1087
+ // },
1088
+ // {
1089
+ // 'f_project':'经过测试后,管道是否有压降',
1090
+ // 'type':'radio',
1091
+ // 'options': [
1092
+ // {
1093
+ // 'data': '是',
1094
+ // 'f_status':'false'
1095
+ // },
1096
+ // {
1097
+ // 'data': '否',
1098
+ // 'f_status':'true'
1099
+ // }
1100
+ // ]
1101
+ // },
1102
+ // {
1103
+ // 'f_project':'换作业区内无明火,按标准置换',
1104
+ // 'type': 'radio',
1105
+ // 'options': [
1106
+ // {
1107
+ // 'data': '是',
1108
+ // 'f_status':'true'
1109
+ // },
1110
+ // {
1111
+ // 'data': '否',
1112
+ // 'f_status':'false'
1113
+ // }
1114
+ // ]
1115
+ // },
1116
+ // {
1117
+ // 'f_project':'确认用户的燃气炉具、热水器符合安全规范,胶管两端已连接并且管卡牢固',
1118
+ // 'type': 'radio',
1119
+ // 'options': [
1120
+ // {
1121
+ // 'data': '是',
1122
+ // 'f_status':'true'
1123
+ // },
1124
+ // {
1125
+ // 'data': '否',
1126
+ // 'f_status':'false'
1127
+ // }
1128
+ // ]
1129
+ // },
1130
+ // {
1131
+ // 'f_project':'已告知用户公司营业厅地址及需要携带的材料',
1132
+ // 'type': 'radio',
1133
+ // 'options': [
1134
+ // {
1135
+ // 'data': '是',
1136
+ // 'f_status':'true'
1137
+ // },
1138
+ // {
1139
+ // 'data': '否',
1140
+ // 'f_status':'false'
1141
+ // }
1142
+ // ]
1143
+ // },
1144
+ // {
1145
+ // 'f_project':'已向用户宣传安全用气常识、操作规范,并告知24小时客服电话',
1146
+ // 'type': 'radio',
1147
+ // 'options': [
1148
+ // {
1149
+ // 'data': '是',
1150
+ // 'f_status':'true'
1151
+ // },
1152
+ // {
1153
+ // 'data': '否',
1154
+ // 'f_status':'false'
1155
+ // }
1156
+ // ]
1157
+ // },
1158
+ // {
1159
+ // 'f_project':'严格按照作业标准及步骤进行操作',
1160
+ // 'type': 'radio',
1161
+ // 'options': [
1162
+ // {
1163
+ // 'data': '是',
1164
+ // 'f_status':'true'
1165
+ // },
1166
+ // {
1167
+ // 'data': '否',
1168
+ // 'f_status':'false'
1169
+ // }
1170
+ // ]
1171
+ // },
1172
+ // {
1173
+ // 'f_project':'严密性供气压力(单位:kPa)',
1174
+ // 'type':'string',
1175
+ // 'f_is_must':true
1176
+ // },
1177
+ // {
1178
+ // 'f_project':'严密性试验压力(单位:kPa)',
1179
+ // 'type':'string',
1180
+ // 'f_is_must':true
1181
+ // },
1182
+ // {
1183
+ // 'f_project':'严密性试验时间为<>分钟',
1184
+ // 'type':'string',
1185
+ // 'f_is_must':true
1186
+ // }
1187
+ // ]
1188
+ // }
1189
+ // ]}
1190
+ if(this.row.f_source == '安检'){
1191
+ //tag)
1192
+ this.repairdetails = JSON.parse(this.row.f_repairitems).data
1193
+ //tag}`)
1194
+ }else{
1195
+ //tag
1196
+ if(this.row.f_workorder_type == '报修单'){
1197
+ if(Vue.config.telephone.RepairsConfig.data != undefined){
1198
+ //tag
1199
+ //tag)
1200
+ this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.RepairsConfig.data)))
1201
+ }else{
1202
+ this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
1203
+ }
1204
+ }else if(this.row.f_workorder_type == '置换通气单'){
1205
+ //tag
1206
+ // 判断用户类型 民用/非民用
1207
+ if(this.row.f_user_type == '民用'){
1208
+ //tag
1209
+ if(Vue.config.telephone.SubstitConfigCivil.data != undefined){
1210
+ //tag
1211
+ //tag)
1212
+ this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.SubstitConfigCivil.data)))
1213
+ }else {
1214
+ this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
1215
+ }
1216
+ }else{
1217
+ //tag
1218
+ if(Vue.config.telephone.SubstitConfigBusiness.data != undefined){
1219
+ //tag
1220
+ //tag)
1221
+ this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.SubstitConfigBusiness.data)))
1222
+ }else{
1223
+ this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
1224
+ }
1225
+ }
1226
+ }else{
1227
+ //tag
1228
+ // 判断用户类型 民用/非民用
1229
+ if(this.row.f_user_type == '民用'){
1230
+ //tag
1231
+ if(Vue.config.telephone.InstallConfigCivil.data != undefined){
1232
+ //tag
1233
+ //tag)
1234
+ this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.InstallConfigCivil.data)))
1235
+ }else {
1236
+ this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
1237
+ }
1238
+ }else{
1239
+ //tag
1240
+ if(Vue.config.telephone.InstallConfigBusiness.data != undefined){
1241
+ //tag
1242
+ //tag)
1243
+ this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.InstallConfigBusiness.data)))
1244
+ }else{
1245
+ this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
1246
+ }
1247
+ }
1248
+
1249
+
1250
+ }
1251
+ }
1252
+ // this.repairdetails = [{"f_type": "换表","details": [{"f_project":"换表类型","type": "selector","options": [{"data": "换计费器"},{"data": "换新表"},{"data": "气表清零"}]},{"f_project":"换表原因","type": "selector","options": [{"data": "换新表"}]},{"f_project":"旧表底数","type": "string"}]},{"f_type": "改管","details": [{"f_project":"换表原因","type": "selector","options": [{"data": "换新表"}]},{"f_project":"旧表底数","type": "string"}]}]
1253
+ // 维修项传到维修单中
1254
+ this.getRepairDetails()
1255
+ //loadParamGem(this)
1256
+ //tag
1257
+ this.copy()
1258
+ //tag
1259
+ // tbs合并数组
1260
+ if( this.model.serviceacitivity[0].servicerepair.length > 0){
1261
+ for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
1262
+ this.tabs.splice(1 + i, 0, {header:this.model.serviceacitivity[0].servicerepair[i].f_type,complete:'repair-details',items:this.model.serviceacitivity[0].servicerepair[i].details,class:'repair-details-class',number:i,details:Object.assign({}, JSON.parse(JSON.stringify(this.model.serviceacitivity[0].servicerepair[i])))})
1263
+ }
1264
+ }
1265
+ //tag
1266
+ this.faultshow.number = this.tabs.length
1267
+ if (this.show || this.repair) {
1268
+ this.faultshow.number = this.tabs.length
1269
+ }
1270
+ let isRecodr = this.$appdata.getSingleValue('呼叫无限制录音'); //单值参数,为true则是开启全程录音
1271
+ if (isRecodr) {
1272
+ if (isRecodr == 'true' && !this.repair) {
1273
+ this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
1274
+ // 初始化录音
1275
+ this.record()
1276
+ }
1277
+ }
1278
+ },
1279
+ components: {
1280
+ // 'door-service': DoorService,
1281
+ 'repair-info': RepairInfo,
1282
+ 'repair-user-info': RepairUserInfo,
1283
+ 'outlay': Outlay,
1284
+ 'fault-all': FaultAll,
1285
+ 'repair-details':RepairDetails
1286
+ // 'change-meter-page': ChangeMeterPage
1287
+ // 'pipeline': Pipeline,
1288
+ // 'device-service': DeviceService,
1289
+ // 'trouble-removal': TroubleRemoval,
1290
+ // 'cooking-utensils': CookingUtensils,
1291
+ // 'repair-matter-info': RepairMatterInfo,
1292
+ // 'first-gas-check': FirstGasCheck,
1293
+ // 'tel-change-matter': TelChangeMatter/
1294
+ },
1295
+ events: {
1296
+ 'tijiao': function () {
1297
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
1298
+ this.confirm()
1299
+ }
1300
+ }
1301
+ }
1302
+ </script>
1303
+ <style lang="less">
1304
+ @import "../../../src/bootstrap/less/variables.less";
1305
+ //@import "../../../node_modules/system-clients/src/styles/less/variables.less";
1306
+ .tab-befor-img (@url) {
1307
+ content: '';
1308
+ background-image: url("@{url}");
1309
+ background-size: 20px;
1310
+ display: inline-block;
1311
+ margin-right: 8px;
1312
+ margin-top: 0.3em;
1313
+ height: 1.3em;
1314
+ width: 1.3em;
1315
+ vertical-align: -35%;
1316
+ }
1317
+
1318
+ @media screen and (min-width: 768px) {
1319
+ .android-repair-order > div > ul a {
1320
+ font-size: @font-size-h2;
1321
+ margin: 0.3em 0;
1322
+ }
1323
+ }
1324
+ .repair-details-class{
1325
+ &::before {
1326
+ .tab-befor-img("../../assets/huneiweixiu1.png");
1327
+ }
1328
+ }
1329
+ .repair-info-class {
1330
+ &::before {
1331
+ .tab-befor-img("../../assets/baoxiuxinxi1.png");
1332
+ }
1333
+ }
1334
+ /* .change-meter-page-class {
1335
+ &::before {
1336
+ .tab-befor-img("../../assets/baoxiuxinxi1.png");
1337
+ }
1338
+ }*/
1339
+ .repair-user-info-class {
1340
+ &::before {
1341
+ .tab-befor-img("../../assets/jibenxinxi1.png")
1342
+ }
1343
+ }
1344
+
1345
+ .door-service-class {
1346
+ &::before {
1347
+ .tab-befor-img("../../assets/huneiweixiu1.png")
1348
+ }
1349
+ }
1350
+
1351
+ .pipeline-class {
1352
+ &::before {
1353
+ .tab-befor-img("../../assets/guandao1.png")
1354
+ }
1355
+ }
1356
+
1357
+ .device-service-class {
1358
+ &::before {
1359
+ .tab-befor-img("../../assets/shebeiweixiu1.png")
1360
+ }
1361
+ }
1362
+
1363
+ .trouble-removal-class {
1364
+ &::before {
1365
+ .tab-befor-img("../../assets/shiguchuli.png")
1366
+ }
1367
+ }
1368
+
1369
+ .cooking-utensils-class {
1370
+ &::before {
1371
+ .tab-befor-img("../../assets/zaoju1.png")
1372
+ }
1373
+ }
1374
+
1375
+ .outlay-class {
1376
+ &::before {
1377
+ .tab-befor-img("../../assets/feiyong1.png")
1378
+ }
1379
+ }
1380
+
1381
+ .fault-all-class {
1382
+ &::before {
1383
+ .tab-befor-img("../../assets/guzhanghuizong1.png")
1384
+ }
1385
+ }
1386
+ .photo-write-class {
1387
+ &::before {
1388
+ .tab-befor-img("../../assets/zaoju.png")
1389
+ }
1390
+ }
1391
+ .delay-apply-class {
1392
+ &::before {
1393
+ .tab-befor-img("../../assets/yonghubaoxiu.png")
1394
+ }
1395
+ }
1396
+
1397
+ .repair-back-class {
1398
+ &::before {
1399
+ .tab-befor-img("../../assets/fanhui.png")
1400
+ }
1401
+ }
1402
+ .butt2 {
1403
+ display: inline;
1404
+ float: right;
1405
+ width: 10px;
1406
+ text-align: center;
1407
+ align-items:center;
1408
+ position: absolute;
1409
+ top:50%;
1410
+
1411
+ left:90%;
1412
+ transform: translate(-50%,-50%);
1413
+ }
1414
+ .linesty{
1415
+ display: inline-block;
1416
+ height:1px;
1417
+ width:100%;
1418
+ background:#d0d0d0;
1419
+ overflow:hidden;
1420
+ vertical-align: middle;
1421
+ }
1422
+ .spanboder{
1423
+ border-bottom:2px solid #499edf;
1424
+ padding-bottom: 8px
1425
+ }
1426
+ .app-botton {
1427
+ position:fixed;
1428
+ background: #87b2dd;
1429
+ right:8px;
1430
+ color: #FFF;
1431
+ padding: 8px;
1432
+ text-align: center;
1433
+ font-size: 1.2em;
1434
+ z-index: 10;
1435
+ opacity:0.5;
1436
+ bottom: 50px;
1437
+ margin-top: -10px;
1438
+ height: 40px;
1439
+ }
1440
+ .android-repair-order > div > ul a {
1441
+ font-size: 12px;
1442
+ color: #333333;
1443
+ padding: 13px 16px;
1444
+ }
1445
+ </style>