safecheck-client 3.0.30-62-t6 → 3.0.30-62-t8

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 (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/DefectDealMain/DefectListNew.vue +597 -597
  3. package/src/components/NewDefectList/DefectListNew.vue +52 -12
  4. package/src/components/Util/SafecheckUpload.vue +276 -265
  5. package/src/components/android/CurrentCreate.vue +2 -2
  6. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  7. package/src/components/android/PhoneUpUserinfo.vue +1230 -1230
  8. package/src/components/pc/NewCheckpaperTemp.vue +1295 -1295
  9. package/src/components/rongcheng/DefectList.vue +560 -560
  10. package/src/components/rongcheng/PhoneDevicesInfo.vue +248 -248
  11. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  12. package/src/components/userfile/SecurityAudit.vue +243 -243
  13. package/src/components/userfile/UserInfoAudit.vue +316 -316
  14. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  15. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  16. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  17. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  18. package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -986
  19. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  20. package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -878
  21. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -1234
  22. package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -272
  23. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -1053
  24. package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -254
  25. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -1269
  26. package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -1127
  27. package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -286
  28. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  29. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
  30. package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -939
  31. package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -1153
  32. package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -707
  33. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
  34. package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -968
  35. package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -1038
  36. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
  37. package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -926
  38. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  39. package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -1257
  40. package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -942
  41. package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -1198
  42. package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +926 -926
  43. package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +252 -252
  44. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  45. package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +957 -957
  46. package/src/main.js +33 -33
@@ -190,7 +190,14 @@
190
190
  </div>
191
191
  <div v-if="solveModal.preData.type == 'solve'" class="col-sm-12" style="margin-bottom: 10px">
192
192
  <label class="font_normal_body">处理后图片</label>
193
- <avatar-upload :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc" :filename.sync="solveModal.uploadData.filename" v-ref:imginfo></avatar-upload>
193
+ <safecheck-file-upload
194
+ :issearch="false"
195
+ :isupload="true"
196
+ :blodid="check.id"
197
+ :isdelete="true"
198
+ flag="safeCheck"
199
+ @filename="getfile"
200
+ ></safecheck-file-upload>
194
201
  </div>
195
202
  <div v-if="solveModal.preData.state == '已处理'" class="col-sm-12" style="margin-bottom: 10px">
196
203
  <p> <label class="font_normal_body">处理后图片</label></p>
@@ -345,7 +352,7 @@ const sendRepair = function* (self) {
345
352
  uploadData.model.f_repairitems = repairitems
346
353
  //tag)
347
354
  // 调工单接口
348
- let result = yield self.$resetpost('/api/af-safecheck/logic/callerSend', uploadData)
355
+ let result = yield self.$resetpost('/af-telephone/rs/logic/callerSend', uploadData)
349
356
  //tag)
350
357
  if (result.data.f_service_id) {
351
358
  const data = {
@@ -369,6 +376,7 @@ export default {
369
376
  model: new PagedList('api/af-safecheck/sql/GetDefectByPaperIdNew', 100, {
370
377
  f_paper_id: 'this.f_paper_id',f_item_value: 'this.f_item_value'
371
378
  }),
379
+ fileInfoData:[],
372
380
  showSolveModal: false,
373
381
  showToRepairModal: false,
374
382
  showDefectModal: false,
@@ -472,6 +480,9 @@ export default {
472
480
  this.getEmp()
473
481
  },
474
482
  methods: {
483
+ getfile(res){
484
+ this.solveModal.uploadData.filename=res.f_filename
485
+ },
475
486
  //审核通过
476
487
  auditsure(info){
477
488
  // 拿到t_devices_items 的ID,给f_audit_results中存入通过 如果未通过,需要可以再次派单,对隐患进行处理
@@ -491,8 +502,9 @@ export default {
491
502
  }
492
503
  })
493
504
  },
494
- solveDefect(row, type) {
505
+ async solveDefect(row, type) {
495
506
  console.log(row)
507
+ await this.getrelafile(this.check.id)
496
508
  this.solveModal.preData.defectImg = ''
497
509
  this.solveModal.preData.f_repair_path = ''
498
510
  this.solveModal.preData.repairedImg = ''
@@ -501,10 +513,10 @@ export default {
501
513
  this.solveModal.preData.repairedImg3 = ''
502
514
  this.solveModal.preData.repairedImg4 = ''
503
515
  this.solveModal.preData.repairedImg5 = ''
504
- this.solveModal.preData.defectImg = row.f_path?'/rs/image/file/' + row.f_path:''
505
- this.solveModal.preData.defectImg1 = row.f_p1_path?'/rs/image/file/' + row.f_p1_path:''
506
- this.solveModal.preData.defectImg2 = row.f_p2_path?'/rs/image/file/' + row.f_p2_path:''
507
- this.solveModal.preData.defectImg3 = row.f_p3_path?'/rs/image/file/' + row.f_p3_path:''
516
+ this.solveModal.preData.defectImg = row.f_path ? '/rs/image/file/' + row.f_path : ''
517
+ this.solveModal.preData.defectImg1 = row.f_p1_path ? '/rs/image/file/' + row.f_p1_path : ''
518
+ this.solveModal.preData.defectImg2 = row.f_p2_path ? '/rs/image/file/' + row.f_p2_path : ''
519
+ this.solveModal.preData.defectImg3 = row.f_p3_path ? '/rs/image/file/' + row.f_p3_path : ''
508
520
  this.solveModal.uploadData.id = row.id
509
521
  this.solveModal.preData.type = type
510
522
  this.solveModal.preData.state = row.f_repaire_state
@@ -515,10 +527,10 @@ export default {
515
527
  this.solveModal.preData.repairedImg = row.f_repair_path
516
528
  this.solveModal.preData.repairedImg1 = row.f_repair1_path
517
529
  } else {
518
- this.solveModal.preData.f_repair_path = row.f_repair_path? '/rs/image/file/' + row.f_repair_path:null
519
- this.solveModal.preData.repairedImg = row.f_repair_path? '/rs/image/file/' + row.f_repair_path:null
520
- this.solveModal.preData.repairedImg1 = row.f_other_dealpath1? '/rs/image/file/' + row.f_other_dealpath1:null
521
- this.solveModal.preData.repairedImg2 = row.f_other_dealpath2? '/rs/image/file/' + row.f_other_dealpath2:null
530
+ this.solveModal.preData.f_repair_path =this.fileInfoData[0] ?this.fileInfoData[0].f_downloadURL: null
531
+ this.solveModal.preData.repairedImg = this.fileInfoData[0] ?this.fileInfoData[0].f_downloadURL: null
532
+ this.solveModal.preData.repairedImg1 = row.f_other_dealpath1 ? '/rs/image/file/' + row.f_other_dealpath1 : null
533
+ this.solveModal.preData.repairedImg2 = row.f_other_dealpath2 ? '/rs/image/file/' + row.f_other_dealpath2 : null
522
534
  this.solveModal.preData.repairedImg3 = row.f_repair2_path ? ('/rs/image/file/' + row.f_repair2_path) : ''
523
535
  this.solveModal.preData.repairedImg4 = row.f_repair3_path ? ('/rs/image/file/' + row.f_repair3_path) : ''
524
536
  this.solveModal.preData.repairedImg5 = row.f_repair4_path ? ('/rs/image/file/' + row.f_repair4_path) : ''
@@ -529,7 +541,7 @@ export default {
529
541
  } else {
530
542
  this.solveModal.uploadData.f_repairman = row.f_repairman
531
543
  this.solveModal.uploadData.f_repair_date = row.f_repair_date
532
- this.$set('solveModal.f_audit_results',row.f_audit_results)
544
+ this.$set('solveModal.f_audit_results', row.f_audit_results)
533
545
  }
534
546
  } else {
535
547
  this.solveModal.uploadData.f_repairman = this.$login.f.name
@@ -537,6 +549,34 @@ export default {
537
549
  }
538
550
  this.showSolveModal = !this.showSolveModal
539
551
  },
552
+ async getrelafile(id) {
553
+ let http = new HttpResetClass()
554
+ let condition = `f_blobid= '${id}' and fusetype ='safeCheck'`
555
+ let data = {
556
+ items: '*',
557
+ tablename: 't_files',
558
+ condition: condition,
559
+ orderitem: 'id'
560
+ }
561
+ let getFile = await http.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {data: data}, {
562
+ warnMsg: null,
563
+ resolveMsg: null
564
+ })
565
+ for (var i = 0; i < getFile.data.length; i++) {
566
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
567
+ if (getFile.data[i].fusetype && (getFile.data[i].fusetype.includes('execl导入'))) {
568
+ getFile.data.splice(i, 1)
569
+ i--
570
+ continue
571
+ }
572
+ this.fileInfoData = []
573
+ if( getFile.data.length>0){
574
+ let temp = getFile.data[i].f_realpath
575
+ getFile.data[i].f_downloadURL = "http://" + location.host + temp
576
+ this.fileInfoData = getFile.data
577
+ }
578
+ }
579
+ },
540
580
  ok() {
541
581
  if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
542
582
  this.$showMessage('请录入处理后照片')