telephone-clients 3.0.103 → 3.0.104-11

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