telephone-clients 4.0.0-1-6 → 4.0.0-1-8
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.
- package/CHANGELOG.md +37 -37
- package/README.md +38 -38
- package/package.json +120 -120
- package/release.bat +5 -5
- package/src/components/android/AddMyTask.vue +19 -1
- package/src/components/pc/FailureEdit.vue +197 -197
- package/src/components/pc/TelLossList.vue +12 -19
- package/src/components/pc/VisitInfo.vue +2 -2
- package/src/components/workorder/Outlay.vue +191 -270
- package/src/components/workorder/PhoneStandWork.vue +230 -262
- package/src/components/workorder/RepairOrderV.vue +9 -1
- package/src/filiale/meihekou/android/RepairOrderV.vue +174 -129
|
@@ -156,7 +156,7 @@ export default {
|
|
|
156
156
|
},
|
|
157
157
|
methods: {
|
|
158
158
|
// 录音方法
|
|
159
|
-
record() {
|
|
159
|
+
record () {
|
|
160
160
|
//tag
|
|
161
161
|
let fileName
|
|
162
162
|
if (!this.f_recording1_path) {
|
|
@@ -166,43 +166,43 @@ export default {
|
|
|
166
166
|
}
|
|
167
167
|
//HostApp.__this__ = this
|
|
168
168
|
/*调用无限制录音模块*/
|
|
169
|
-
let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
|
|
169
|
+
let startOrStopState = HostApp.startOrStopAudioClip(fileName, "开始录音")
|
|
170
170
|
//tag
|
|
171
171
|
if (startOrStopState.code == 200) {
|
|
172
|
-
this.model.f_recording1_path =
|
|
173
|
-
console.log("录音文件地址"+this.model.f_recording1_path)
|
|
172
|
+
this.model.f_recording1_path = "/storage/emulated/0/safecheck/" + fileName
|
|
173
|
+
console.log("录音文件地址" + this.model.f_recording1_path)
|
|
174
174
|
//tag
|
|
175
175
|
return true;
|
|
176
|
-
}else {
|
|
176
|
+
} else {
|
|
177
177
|
return false;
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
|
-
imgback(val){
|
|
181
|
-
if(val && this.routeShow){
|
|
180
|
+
imgback (val) {
|
|
181
|
+
if (val && this.routeShow) {
|
|
182
182
|
return require('../../../assets/xiangxia1.png')
|
|
183
|
-
}else{
|
|
183
|
+
} else {
|
|
184
184
|
return require('../../../assets/xiangyou1.png')
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
// 选择tab
|
|
188
|
-
tabSelect (item,number) {
|
|
188
|
+
tabSelect (item, number) {
|
|
189
189
|
// 处理关闭/显示 内容
|
|
190
|
-
if(this.number == number && !this.routeShow
|
|
190
|
+
if (this.number == number && !this.routeShow) {
|
|
191
191
|
this.routeShow = true
|
|
192
|
-
}else if(this.number == number && this.routeShow){
|
|
192
|
+
} else if (this.number == number && this.routeShow) {
|
|
193
193
|
|
|
194
194
|
this.routeShow = false
|
|
195
|
-
}else if(this.number != item.complete){
|
|
195
|
+
} else if (this.number != item.complete) {
|
|
196
196
|
this.routeShow = true
|
|
197
197
|
}
|
|
198
198
|
this.number = number
|
|
199
199
|
this.componentName = item.complete
|
|
200
|
-
if(item.complete == 'repair-details'){
|
|
200
|
+
if (item.complete == 'repair-details') {
|
|
201
201
|
if (this.row.f_workorder_type == '置换通气单') {
|
|
202
202
|
// 根据置换单的用户类型,查询气价信息给下拉框赋值
|
|
203
203
|
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/queryGaspriceGroupByFilaleid`,
|
|
204
|
-
{data: {f_filialeid:Vue.user.orgid,f_gasproperties:this.row.f_gasproperties}},
|
|
205
|
-
{resolveMsg: null, rejectMsg: null}).then((rese)=>{
|
|
204
|
+
{data: {f_filialeid: Vue.user.orgid, f_gasproperties: this.row.f_gasproperties}},
|
|
205
|
+
{resolveMsg: null, rejectMsg: null}).then((rese) => {
|
|
206
206
|
//tag)
|
|
207
207
|
let pricelist = []
|
|
208
208
|
if (rese.data) {
|
|
@@ -215,11 +215,11 @@ export default {
|
|
|
215
215
|
service: this.model,
|
|
216
216
|
show: this.show,
|
|
217
217
|
repairitem: item,
|
|
218
|
-
faultshow
|
|
219
|
-
shutype:'shu',
|
|
220
|
-
tabs:this.tabs,
|
|
221
|
-
repairdetails:this.repairdetails,
|
|
222
|
-
issee:this.issee,
|
|
218
|
+
faultshow: this.faultshow,
|
|
219
|
+
shutype: 'shu',
|
|
220
|
+
tabs: this.tabs,
|
|
221
|
+
repairdetails: this.repairdetails,
|
|
222
|
+
issee: this.issee,
|
|
223
223
|
pricelists: this.pricelists //根据置换单下派的用气性质和公司查询的气价信息
|
|
224
224
|
}
|
|
225
225
|
//tag
|
|
@@ -232,22 +232,22 @@ export default {
|
|
|
232
232
|
service: this.model,
|
|
233
233
|
show: this.show,
|
|
234
234
|
repairitem: item,
|
|
235
|
-
faultshow
|
|
236
|
-
shutype:'shu',
|
|
237
|
-
tabs:this.tabs,
|
|
238
|
-
repairdetails:this.repairdetails,
|
|
239
|
-
issee:this.issee,
|
|
240
|
-
pricelists: [{label:"无",value:"无"}]
|
|
235
|
+
faultshow: this.faultshow,
|
|
236
|
+
shutype: 'shu',
|
|
237
|
+
tabs: this.tabs,
|
|
238
|
+
repairdetails: this.repairdetails,
|
|
239
|
+
issee: this.issee,
|
|
240
|
+
pricelists: [{label: "无", value: "无"}]
|
|
241
241
|
}
|
|
242
242
|
//tag
|
|
243
243
|
//tag)
|
|
244
244
|
this.$goto(item.complete, itemprops, 'repair')
|
|
245
245
|
}
|
|
246
|
-
}else{
|
|
246
|
+
} else {
|
|
247
247
|
//tag
|
|
248
248
|
// //tag)
|
|
249
249
|
// //tag)
|
|
250
|
-
if(this.routeShow) {
|
|
250
|
+
if (this.routeShow) {
|
|
251
251
|
//tag)
|
|
252
252
|
// //tag)
|
|
253
253
|
this.$goto(item.complete, this.tabs[number].props, 'repair')
|
|
@@ -256,23 +256,25 @@ export default {
|
|
|
256
256
|
this.shupingshow = true
|
|
257
257
|
},
|
|
258
258
|
// 给组件添加参数
|
|
259
|
-
getImgPath() {
|
|
259
|
+
getImgPath () {
|
|
260
260
|
for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
|
|
261
261
|
this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
|
|
262
262
|
}
|
|
263
263
|
this.ids = this.ids.substring(0, this.ids.length - 1)
|
|
264
|
-
if(this.ids){
|
|
264
|
+
if (this.ids) {
|
|
265
265
|
this.getImgGen();
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
|
-
getImgGen(){
|
|
268
|
+
getImgGen () {
|
|
269
269
|
let http = new HttpResetClass()
|
|
270
|
-
http.load('POST','af-telephone/rs/sql/tel_singleTable_OrderBy', {
|
|
270
|
+
http.load('POST', 'af-telephone/rs/sql/tel_singleTable_OrderBy', {
|
|
271
|
+
data: {
|
|
271
272
|
items: '*',
|
|
272
273
|
tablename: 't_files',
|
|
273
274
|
condition: `id in (${this.ids})`,
|
|
274
275
|
orderitem: 'id'
|
|
275
|
-
}
|
|
276
|
+
}
|
|
277
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
276
278
|
for (let i = 0; i < res.data.length; i++) {
|
|
277
279
|
for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
|
|
278
280
|
//tag)
|
|
@@ -285,10 +287,10 @@ export default {
|
|
|
285
287
|
}
|
|
286
288
|
})
|
|
287
289
|
},
|
|
288
|
-
setProps() {
|
|
290
|
+
setProps () {
|
|
289
291
|
// 给各自组件添加参数
|
|
290
|
-
for(var i =0;i<this.tabs.length;i++
|
|
291
|
-
if(this.tabs[i].complete == 'repair-info'){
|
|
292
|
+
for (var i = 0; i < this.tabs.length; i++) {
|
|
293
|
+
if (this.tabs[i].complete == 'repair-info') {
|
|
292
294
|
this.tabs[i].props = {
|
|
293
295
|
service: this.row,
|
|
294
296
|
model: this.model.serviceacitivity[0].baseuserinfo,
|
|
@@ -297,12 +299,12 @@ export default {
|
|
|
297
299
|
repair: this.row,
|
|
298
300
|
show: this.show,
|
|
299
301
|
// userinfo: this.userinfo
|
|
300
|
-
shutype:'shu',
|
|
301
|
-
worktype:this.worktype,
|
|
302
|
-
issee:this.issee,
|
|
303
|
-
ischeck:this.ischeck
|
|
302
|
+
shutype: 'shu',
|
|
303
|
+
worktype: this.worktype,
|
|
304
|
+
issee: this.issee,
|
|
305
|
+
ischeck: this.ischeck
|
|
304
306
|
}
|
|
305
|
-
}else if (this.tabs[i].complete == 'repair-user-info'){
|
|
307
|
+
} else if (this.tabs[i].complete == 'repair-user-info') {
|
|
306
308
|
this.tabs[i].props = {
|
|
307
309
|
model: this.model.serviceacitivity[0].baseuserinfo,
|
|
308
310
|
data: this.model.serviceacitivity[0],
|
|
@@ -310,11 +312,11 @@ export default {
|
|
|
310
312
|
repair: this.row,
|
|
311
313
|
show: this.show,
|
|
312
314
|
// userinfo: this.userinfo
|
|
313
|
-
shutype:'shu',
|
|
314
|
-
worktype:this.worktype,
|
|
315
|
-
issee:this.issee
|
|
315
|
+
shutype: 'shu',
|
|
316
|
+
worktype: this.worktype,
|
|
317
|
+
issee: this.issee
|
|
316
318
|
}
|
|
317
|
-
} else if (this.tabs[i].complete == 'outlay'){
|
|
319
|
+
} else if (this.tabs[i].complete == 'outlay') {
|
|
318
320
|
this.tabs[i].props = {
|
|
319
321
|
model: this.model.serviceacitivity[0],
|
|
320
322
|
service: this.model,
|
|
@@ -322,16 +324,16 @@ export default {
|
|
|
322
324
|
system: this.system,
|
|
323
325
|
f_single_man: this.model.f_single_man,
|
|
324
326
|
shutype: 'shu',
|
|
325
|
-
issee:this.issee
|
|
327
|
+
issee: this.issee
|
|
326
328
|
}
|
|
327
|
-
}else if (this.tabs[i].complete == 'fault-all'){
|
|
328
|
-
this.tabs[i].props =
|
|
329
|
+
} else if (this.tabs[i].complete == 'fault-all') {
|
|
330
|
+
this.tabs[i].props = {
|
|
329
331
|
msg: this.model, model: this.model.serviceacitivity[0],
|
|
330
332
|
service: this.model, system: this.system, show: this.show,
|
|
331
333
|
savevalid: this.savevalid,
|
|
332
334
|
issee: this.issee
|
|
333
335
|
}
|
|
334
|
-
}else if (this.tabs[i].complete == 'change-meter-page') {
|
|
336
|
+
} else if (this.tabs[i].complete == 'change-meter-page') {
|
|
335
337
|
//tag
|
|
336
338
|
//tag)
|
|
337
339
|
this.tabs[i].props = {
|
|
@@ -350,17 +352,20 @@ export default {
|
|
|
350
352
|
}
|
|
351
353
|
// 参数设置成功,在转向第一个页签
|
|
352
354
|
this.$goto('repair-info', this.tabs[0].props, 'repair')
|
|
353
|
-
if(!this.issee){
|
|
355
|
+
if (!this.issee) {
|
|
354
356
|
this.gotoUpload()
|
|
355
357
|
}
|
|
356
358
|
},
|
|
357
359
|
|
|
358
|
-
getRepair() {
|
|
360
|
+
getRepair () {
|
|
359
361
|
if (Vue.android) {
|
|
360
362
|
//tag
|
|
361
363
|
if (this.$androidUtil.isTest) {
|
|
362
364
|
//tag
|
|
363
|
-
this.$androidUtil.path({
|
|
365
|
+
this.$androidUtil.path({
|
|
366
|
+
'alias': 'serviceWork',
|
|
367
|
+
'data': {id: this.row.serviceacitivity[0].id}
|
|
368
|
+
}).then((ret) => {
|
|
364
369
|
this.model.serviceacitivity = ret.data
|
|
365
370
|
this.getDetails()
|
|
366
371
|
})
|
|
@@ -379,14 +384,17 @@ export default {
|
|
|
379
384
|
this.getService();
|
|
380
385
|
}
|
|
381
386
|
},
|
|
382
|
-
getService(){
|
|
387
|
+
getService () {
|
|
383
388
|
let http = new HttpResetClass()
|
|
384
|
-
http.load('POST','af-telephone/rs/path/serviceWork', {data: {id: this.repair.id}}, {
|
|
389
|
+
http.load('POST', 'af-telephone/rs/path/serviceWork', {data: {id: this.repair.id}}, {
|
|
390
|
+
resolveMsg: null,
|
|
391
|
+
rejectMsg: null
|
|
392
|
+
}).then((res) => {
|
|
385
393
|
this.model.serviceacitivity = [res.data[0]]
|
|
386
394
|
this.getDetails()
|
|
387
395
|
})
|
|
388
396
|
},
|
|
389
|
-
sortDetails(){
|
|
397
|
+
sortDetails () {
|
|
390
398
|
for (let i = 0; i < this.details.length; i++) {
|
|
391
399
|
if (this.details[i].details.length) {
|
|
392
400
|
for (let j = 0; j < this.details[i].details.length; j++) {
|
|
@@ -406,7 +414,7 @@ export default {
|
|
|
406
414
|
}
|
|
407
415
|
}
|
|
408
416
|
},
|
|
409
|
-
getDetails() {
|
|
417
|
+
getDetails () {
|
|
410
418
|
if (Vue.android) {
|
|
411
419
|
//tag
|
|
412
420
|
if (this.$androidUtil.isTest) {
|
|
@@ -422,7 +430,7 @@ export default {
|
|
|
422
430
|
} else {
|
|
423
431
|
//tag
|
|
424
432
|
//tag
|
|
425
|
-
let result = this.$androidUtil.path({'alias': 'getDetails', 'data': {id:this.row.serviceacitivity[0].id}})
|
|
433
|
+
let result = this.$androidUtil.path({'alias': 'getDetails', 'data': {id: this.row.serviceacitivity[0].id}})
|
|
426
434
|
//tag
|
|
427
435
|
if (result.code === 200) {
|
|
428
436
|
this.details = result.data
|
|
@@ -438,9 +446,12 @@ export default {
|
|
|
438
446
|
this.getDetailsGen();
|
|
439
447
|
}
|
|
440
448
|
},
|
|
441
|
-
getDetailsGen(){
|
|
449
|
+
getDetailsGen () {
|
|
442
450
|
let http = new HttpResetClass()
|
|
443
|
-
http.load('POST','af-telephone/rs/path/getDetails', {data: {id: this.repair.id}}, {
|
|
451
|
+
http.load('POST', 'af-telephone/rs/path/getDetails', {data: {id: this.repair.id}}, {
|
|
452
|
+
resolveMsg: null,
|
|
453
|
+
rejectMsg: null
|
|
454
|
+
}).then((res) => {
|
|
444
455
|
this.details = res.data
|
|
445
456
|
// this.sortDetails()
|
|
446
457
|
if (this.model.serviceacitivity[0] && this.model.serviceacitivity[0].imgs) {
|
|
@@ -450,7 +461,7 @@ export default {
|
|
|
450
461
|
})
|
|
451
462
|
},
|
|
452
463
|
// 获取维修数据
|
|
453
|
-
getRepairInfo(){
|
|
464
|
+
getRepairInfo () {
|
|
454
465
|
if (this.$androidUtil.isTest) {
|
|
455
466
|
// android模拟
|
|
456
467
|
this.$androidUtil.path({'alias': 'telgetRepairWorkMsg', 'data': {id: this.row.id}}).then((ret) => {
|
|
@@ -468,15 +479,15 @@ export default {
|
|
|
468
479
|
}
|
|
469
480
|
},
|
|
470
481
|
// 复制数据
|
|
471
|
-
copy() {
|
|
482
|
+
copy () {
|
|
472
483
|
if (this.row) {
|
|
473
484
|
//tag
|
|
474
485
|
this.model = Object.assign({}, this.model, this.row)
|
|
475
486
|
//tag
|
|
476
487
|
//tag)
|
|
477
488
|
// 获取维修数据
|
|
478
|
-
if(Vue.android){
|
|
479
|
-
if(this.row.f_orderstatus == '本地保存'){
|
|
489
|
+
if (Vue.android) {
|
|
490
|
+
if (this.row.f_orderstatus == '本地保存') {
|
|
480
491
|
this.getRepairInfo()
|
|
481
492
|
}
|
|
482
493
|
}
|
|
@@ -491,7 +502,7 @@ export default {
|
|
|
491
502
|
},
|
|
492
503
|
back () {
|
|
493
504
|
let _this = this
|
|
494
|
-
if(this.issee){
|
|
505
|
+
if (this.issee) {
|
|
495
506
|
_this.$back()
|
|
496
507
|
return
|
|
497
508
|
}
|
|
@@ -501,39 +512,57 @@ export default {
|
|
|
501
512
|
}
|
|
502
513
|
})
|
|
503
514
|
},
|
|
504
|
-
confirm(){
|
|
515
|
+
confirm () {
|
|
505
516
|
this.$dispatch('confirm')
|
|
506
517
|
},
|
|
507
|
-
mute() {
|
|
518
|
+
mute () {
|
|
508
519
|
HostApp.mute()
|
|
509
520
|
},
|
|
510
521
|
// 维修项赋给维修单的维修集合内
|
|
511
|
-
getRepairDetails() {
|
|
522
|
+
getRepairDetails () {
|
|
512
523
|
if (this.repairdetails.length > 0) {
|
|
513
524
|
let repairlist = []
|
|
514
|
-
for (let j = 0;j< this.repairdetails.length;j++) {
|
|
525
|
+
for (let j = 0; j < this.repairdetails.length; j++) {
|
|
515
526
|
let repairitem = []
|
|
516
|
-
for (var i = 0;i< this.repairdetails[j].details.length;i++) {
|
|
517
|
-
if(this.row.f_source == '安检'){
|
|
518
|
-
repairitem.push({
|
|
519
|
-
|
|
520
|
-
|
|
527
|
+
for (var i = 0; i < this.repairdetails[j].details.length; i++) {
|
|
528
|
+
if (this.row.f_source == '安检') {
|
|
529
|
+
repairitem.push({
|
|
530
|
+
f_project: this.repairdetails[j].details[i].f_project,
|
|
531
|
+
f_defect_remark: this.repairdetails[j].details[i].f_defect_remark,
|
|
532
|
+
type: this.repairdetails[j].details[i].type,
|
|
533
|
+
f_defect_id: this.repairdetails[j].details[i].f_defect_id,
|
|
534
|
+
f_status: '',
|
|
535
|
+
f_content: ''
|
|
536
|
+
})
|
|
537
|
+
} else {
|
|
538
|
+
repairitem.push({
|
|
539
|
+
f_project: this.repairdetails[j].details[i].f_project,
|
|
540
|
+
type: this.repairdetails[j].details[i].type,
|
|
541
|
+
f_status: '',
|
|
542
|
+
f_content: '',
|
|
543
|
+
f_is_must: this.repairdetails[j].details[i].f_is_must ? 'true' : 'false'
|
|
544
|
+
})
|
|
521
545
|
}
|
|
522
546
|
}
|
|
523
|
-
repairlist.push({
|
|
547
|
+
repairlist.push({
|
|
548
|
+
f_type: this.repairdetails[j].f_type,
|
|
549
|
+
details: repairitem,
|
|
550
|
+
imgs: [],
|
|
551
|
+
f_remarks: this.repairdetails[j].f_remarks
|
|
552
|
+
})
|
|
524
553
|
}
|
|
525
554
|
this.model.serviceacitivity[0].servicerepair = Object.assign([], repairlist)
|
|
526
555
|
}
|
|
527
556
|
//tag)
|
|
528
557
|
},
|
|
529
|
-
gotoUpload(){
|
|
558
|
+
gotoUpload () {
|
|
530
559
|
this.$goto('fault-all', {
|
|
531
560
|
msg: this.model, model: this.model.serviceacitivity[0],
|
|
532
561
|
service: this.model, system: this.system, show: this.show,
|
|
533
562
|
savevalid: this.savevalid,
|
|
534
|
-
issee:this.issee,
|
|
535
|
-
parentPage:'CurrentCreate',
|
|
536
|
-
ischeck:this.ischeck
|
|
563
|
+
issee: this.issee,
|
|
564
|
+
parentPage: 'CurrentCreate',
|
|
565
|
+
ischeck: this.ischeck
|
|
537
566
|
}, 'upload')
|
|
538
567
|
}
|
|
539
568
|
},
|
|
@@ -548,73 +577,72 @@ export default {
|
|
|
548
577
|
// 2.判断工单类型 报修单/置换通气单
|
|
549
578
|
// 3.判断用户类型 民用及非民用
|
|
550
579
|
// 是否是复检,如果是复检,读复检配置
|
|
551
|
-
if(this.ischeck){
|
|
552
|
-
if(Vue.config.telephone.IsCheckConfig && Vue.config.telephone.IsCheckConfig.data != undefined){
|
|
580
|
+
if (this.ischeck) {
|
|
581
|
+
if (Vue.config.telephone.IsCheckConfig && Vue.config.telephone.IsCheckConfig.data != undefined) {
|
|
553
582
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.IsCheckConfig.data)))
|
|
554
|
-
}else{
|
|
583
|
+
} else {
|
|
555
584
|
this.repairdetails = []
|
|
556
585
|
console.log('无复检配置项')
|
|
557
586
|
}
|
|
558
|
-
} else if(this.row.f_source == '安检'){
|
|
587
|
+
} else if (this.row.f_source == '安检') {
|
|
559
588
|
//tag)
|
|
560
589
|
this.repairdetails = JSON.parse(this.row.f_repairitems).data
|
|
561
590
|
//tag}`)
|
|
562
|
-
}else{
|
|
591
|
+
} else {
|
|
563
592
|
//tag
|
|
564
|
-
if(this.row.f_workorder_type == '报修单'){
|
|
565
|
-
if(Vue.config.telephone.RepairsConfig.data != undefined){
|
|
593
|
+
if (this.row.f_workorder_type == '报修单') {
|
|
594
|
+
if (Vue.config.telephone.RepairsConfig.data != undefined) {
|
|
566
595
|
//tag
|
|
567
596
|
//tag)
|
|
568
597
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.RepairsConfig.data)))
|
|
569
|
-
}else{
|
|
598
|
+
} else {
|
|
570
599
|
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
571
600
|
}
|
|
572
|
-
}else if(this.row.f_workorder_type == '置换通气单'){
|
|
601
|
+
} else if (this.row.f_workorder_type == '置换通气单') {
|
|
573
602
|
//tag
|
|
574
603
|
// 判断用户类型 民用/非民用
|
|
575
|
-
if(this.row.f_user_type == '民用'){
|
|
604
|
+
if (this.row.f_user_type == '民用') {
|
|
576
605
|
//tag
|
|
577
|
-
if(Vue.config.telephone.SubstitConfigCivil.data != undefined){
|
|
606
|
+
if (Vue.config.telephone.SubstitConfigCivil.data != undefined) {
|
|
578
607
|
//tag
|
|
579
608
|
//tag)
|
|
580
609
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.SubstitConfigCivil.data)))
|
|
581
|
-
}else {
|
|
610
|
+
} else {
|
|
582
611
|
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
583
612
|
}
|
|
584
|
-
}else{
|
|
613
|
+
} else {
|
|
585
614
|
//tag
|
|
586
|
-
if(Vue.config.telephone.SubstitConfigBusiness.data != undefined){
|
|
615
|
+
if (Vue.config.telephone.SubstitConfigBusiness.data != undefined) {
|
|
587
616
|
//tag
|
|
588
617
|
//tag)
|
|
589
618
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.SubstitConfigBusiness.data)))
|
|
590
|
-
}else{
|
|
619
|
+
} else {
|
|
591
620
|
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
592
621
|
}
|
|
593
622
|
}
|
|
594
|
-
}else{
|
|
623
|
+
} else {
|
|
595
624
|
//tag
|
|
596
625
|
// 判断用户类型 民用/非民用
|
|
597
|
-
if(this.row.f_user_type == '民用'){
|
|
626
|
+
if (this.row.f_user_type == '民用') {
|
|
598
627
|
//tag
|
|
599
|
-
if(Vue.config.telephone.InstallConfigCivil.data != undefined){
|
|
628
|
+
if (Vue.config.telephone.InstallConfigCivil.data != undefined) {
|
|
600
629
|
//tag
|
|
601
630
|
//tag)
|
|
602
631
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.InstallConfigCivil.data)))
|
|
603
|
-
}else {
|
|
632
|
+
} else {
|
|
604
633
|
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
605
634
|
}
|
|
606
|
-
}else{
|
|
635
|
+
} else {
|
|
607
636
|
//tag
|
|
608
|
-
if(Vue.config.telephone.InstallConfigBusiness.data != undefined){
|
|
637
|
+
if (Vue.config.telephone.InstallConfigBusiness.data != undefined) {
|
|
609
638
|
//tag
|
|
610
639
|
//tag)
|
|
611
640
|
this.repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.InstallConfigBusiness.data)))
|
|
612
|
-
}else{
|
|
641
|
+
} else {
|
|
613
642
|
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
614
643
|
}
|
|
615
644
|
}
|
|
616
645
|
|
|
617
|
-
|
|
618
646
|
}
|
|
619
647
|
}
|
|
620
648
|
// 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"}]}]
|
|
@@ -625,9 +653,16 @@ export default {
|
|
|
625
653
|
this.copy()
|
|
626
654
|
//tag
|
|
627
655
|
// tbs合并数组
|
|
628
|
-
if(
|
|
629
|
-
for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++
|
|
630
|
-
this.tabs.splice(1 + i, 0, {
|
|
656
|
+
if (this.model.serviceacitivity[0].servicerepair.length > 0) {
|
|
657
|
+
for (let i = 0; i < this.model.serviceacitivity[0].servicerepair.length; i++) {
|
|
658
|
+
this.tabs.splice(1 + i, 0, {
|
|
659
|
+
header: this.model.serviceacitivity[0].servicerepair[i].f_type,
|
|
660
|
+
complete: 'repair-details',
|
|
661
|
+
items: this.model.serviceacitivity[0].servicerepair[i].details,
|
|
662
|
+
class: 'repair-details-class',
|
|
663
|
+
number: i,
|
|
664
|
+
details: Object.assign({}, JSON.parse(JSON.stringify(this.model.serviceacitivity[0].servicerepair[i])))
|
|
665
|
+
})
|
|
631
666
|
}
|
|
632
667
|
}
|
|
633
668
|
//tag
|
|
@@ -650,7 +685,7 @@ export default {
|
|
|
650
685
|
'repair-user-info': RepairUserInfo,
|
|
651
686
|
'outlay': Outlay,
|
|
652
687
|
'fault-all': FaultAll,
|
|
653
|
-
'repair-details':RepairDetails
|
|
688
|
+
'repair-details': RepairDetails
|
|
654
689
|
// 'change-meter-page': ChangeMeterPage
|
|
655
690
|
// 'pipeline': Pipeline,
|
|
656
691
|
// 'device-service': DeviceService,
|
|
@@ -665,24 +700,24 @@ export default {
|
|
|
665
700
|
// 事件回调内的 `this` 自动绑定到注册它的实例上
|
|
666
701
|
this.confirm()
|
|
667
702
|
},
|
|
668
|
-
'gotorepairinfo':function (){
|
|
703
|
+
'gotorepairinfo': function () {
|
|
669
704
|
let pardate = {
|
|
670
|
-
_this:this,
|
|
671
|
-
title:'维修信息',
|
|
672
|
-
safe:false
|
|
705
|
+
_this: this,
|
|
706
|
+
title: '维修信息',
|
|
707
|
+
safe: false
|
|
673
708
|
}
|
|
674
709
|
let curActivity = {
|
|
675
|
-
id:this.row.workid
|
|
710
|
+
id: this.row.workid
|
|
676
711
|
}
|
|
677
|
-
this.$dispatch('gotoson',pardate)
|
|
678
|
-
this.$goto('repair-paper-andorid', {service:this.row,curActivity: curActivity}, 'self')
|
|
712
|
+
this.$dispatch('gotoson', pardate)
|
|
713
|
+
this.$goto('repair-paper-andorid', {service: this.row, curActivity: curActivity}, 'self')
|
|
679
714
|
}
|
|
680
715
|
}
|
|
681
716
|
}
|
|
682
717
|
</script>
|
|
683
718
|
<style lang="less">
|
|
684
|
-
@import "
|
|
685
|
-
|
|
719
|
+
@import "../../../../src/bootstrap/less/variables.less";
|
|
720
|
+
|
|
686
721
|
.tab-befor-img (@url) {
|
|
687
722
|
content: '';
|
|
688
723
|
background-image: url("@{url}");
|
|
@@ -701,16 +736,19 @@ export default {
|
|
|
701
736
|
margin: 0.3em 0;
|
|
702
737
|
}
|
|
703
738
|
}
|
|
704
|
-
|
|
739
|
+
|
|
740
|
+
.repair-details-class {
|
|
705
741
|
&::before {
|
|
706
742
|
.tab-befor-img("../../../assets/huneiweixiu1.png");
|
|
707
743
|
}
|
|
708
744
|
}
|
|
745
|
+
|
|
709
746
|
.repair-info-class {
|
|
710
747
|
&::before {
|
|
711
748
|
.tab-befor-img("../../../assets/baoxiuxinxi1.png");
|
|
712
749
|
}
|
|
713
750
|
}
|
|
751
|
+
|
|
714
752
|
/* .change-meter-page-class {
|
|
715
753
|
&::before {
|
|
716
754
|
.tab-befor-img("../../../assets/baoxiuxinxi1.png");
|
|
@@ -763,11 +801,13 @@ export default {
|
|
|
763
801
|
.tab-befor-img("../../../assets/guzhanghuizong1.png")
|
|
764
802
|
}
|
|
765
803
|
}
|
|
804
|
+
|
|
766
805
|
.photo-write-class {
|
|
767
806
|
&::before {
|
|
768
807
|
.tab-befor-img("../../../assets/zaoju.png")
|
|
769
808
|
}
|
|
770
809
|
}
|
|
810
|
+
|
|
771
811
|
.delay-apply-class {
|
|
772
812
|
&::before {
|
|
773
813
|
.tab-befor-img("../../../assets/yonghubaoxiu.png")
|
|
@@ -779,44 +819,49 @@ export default {
|
|
|
779
819
|
.tab-befor-img("../../../assets/fanhui.png")
|
|
780
820
|
}
|
|
781
821
|
}
|
|
822
|
+
|
|
782
823
|
.butt2 {
|
|
783
824
|
display: inline;
|
|
784
825
|
float: right;
|
|
785
826
|
width: 10px;
|
|
786
827
|
text-align: center;
|
|
787
|
-
align-items:center;
|
|
828
|
+
align-items: center;
|
|
788
829
|
position: absolute;
|
|
789
|
-
top:50%;
|
|
830
|
+
top: 50%;
|
|
790
831
|
|
|
791
|
-
left:90%;
|
|
792
|
-
transform: translate(-50
|
|
832
|
+
left: 90%;
|
|
833
|
+
transform: translate(-50%, -50%);
|
|
793
834
|
}
|
|
794
|
-
|
|
835
|
+
|
|
836
|
+
.linesty {
|
|
795
837
|
display: inline-block;
|
|
796
|
-
height:1px;
|
|
797
|
-
width:100%;
|
|
798
|
-
background
|
|
799
|
-
overflow:hidden;
|
|
838
|
+
height: 1px;
|
|
839
|
+
width: 100%;
|
|
840
|
+
background: #d0d0d0;
|
|
841
|
+
overflow: hidden;
|
|
800
842
|
vertical-align: middle;
|
|
801
843
|
}
|
|
802
|
-
|
|
803
|
-
|
|
844
|
+
|
|
845
|
+
.spanboder {
|
|
846
|
+
border-bottom: 2px solid #499edf;
|
|
804
847
|
padding-bottom: 8px
|
|
805
848
|
}
|
|
849
|
+
|
|
806
850
|
.app-botton {
|
|
807
|
-
position:fixed;
|
|
851
|
+
position: fixed;
|
|
808
852
|
background: #87b2dd;
|
|
809
|
-
right:8px;
|
|
853
|
+
right: 8px;
|
|
810
854
|
color: #FFF;
|
|
811
855
|
padding: 8px;
|
|
812
856
|
text-align: center;
|
|
813
857
|
font-size: 1.2em;
|
|
814
858
|
z-index: 10;
|
|
815
|
-
opacity:0.5;
|
|
859
|
+
opacity: 0.5;
|
|
816
860
|
bottom: 50px;
|
|
817
861
|
margin-top: -10px;
|
|
818
862
|
height: 40px;
|
|
819
863
|
}
|
|
864
|
+
|
|
820
865
|
.android-repair-order > div > ul a {
|
|
821
866
|
font-size: 12px;
|
|
822
867
|
color: #333333;
|