telephone-clients 3.0.104-1 → 3.0.104-100

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