telephone-clients 3.0.103 → 3.0.104-1

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