safecheck-client 3.0.33-15 → 3.0.33-152

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 (163) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +1 -1
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  37. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  38. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  39. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  40. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  41. package/src/filiale/baiyin/pc.js +17 -0
  42. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  43. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  44. package/src/filiale/bayan/android/SafecheckOrderV.vue +21 -8
  45. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  46. package/src/filiale/bayan/android.js +1 -0
  47. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  48. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  50. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  51. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  52. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  53. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  54. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  55. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  56. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  57. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  58. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  59. package/src/filiale/bayan/pc.js +6 -0
  60. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  61. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  62. package/src/filiale/fugou/android.js +2 -1
  63. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  64. package/src/filiale/fugou/pc/CheckBook.vue +303 -301
  65. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  66. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
  67. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  68. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  69. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +810 -685
  70. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  71. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  72. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  73. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  74. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  75. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  76. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  77. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  78. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  79. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  80. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  81. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  82. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  83. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  84. package/src/filiale/jingyang/pc.js +1 -0
  85. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  86. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  87. package/src/filiale/liaoyuan/pc.js +2 -1
  88. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  89. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +7 -5
  90. package/src/filiale/qingjian/android/SafecheckOrderV.vue +66 -1
  91. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  92. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  93. package/src/filiale/rongchuang/android.js +1 -0
  94. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  95. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  96. package/src/filiale/rongchuang/pc.js +1 -0
  97. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  98. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  99. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  100. package/src/filiale/siyang/android.js +11 -0
  101. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  102. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  103. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  104. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  105. package/src/filiale/siyang/pc.js +15 -0
  106. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  107. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  108. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  109. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  110. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  111. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  112. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  113. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  114. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  115. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  116. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  117. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  118. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  119. package/src/filiale/weinan/pc.js +2 -0
  120. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  121. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  122. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  123. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  124. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  125. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  126. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +20 -20
  127. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +3 -3
  128. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  129. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +5 -5
  130. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +17 -4
  131. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +30 -12
  132. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  133. package/src/filiale/yangchunboneng/android.js +1 -0
  134. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  135. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  136. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  137. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +187 -13
  138. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +98 -3
  139. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  140. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  141. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  142. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  143. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  144. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  145. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  146. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  147. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  148. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  149. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  150. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  151. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  152. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  153. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  154. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  155. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  156. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  157. package/src/filiale/yongzhou/pc.js +4 -0
  158. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  159. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  160. package/src/main.js +1 -1
  161. package/src/rongcheng.js +3 -1
  162. package/src/safecheck-android.js +6 -0
  163. package/src/safecheck.js +3 -0
@@ -445,13 +445,15 @@ export default {
445
445
 
446
446
 
447
447
  let a3=[]
448
- for(let i=0;i<this.level2.length;i++){
449
- a3.push({
450
- lnglat: [this.level2[i].f_longitude,this.level2[i].f_latitude], //点标记位置
451
- name: '二级隐患',
452
- id:i,
453
- rowstr:this.level2[i]
454
- })
448
+ for(let o=0;o<this.level2.length;o++){
449
+ if (this.level2[o].f_longitude && this.level2[o].f_latitude){
450
+ a3.push({
451
+ lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
452
+ name: '二级隐患',
453
+ id:o,
454
+ rowstr:this.level2[o]
455
+ })
456
+ }
455
457
  }
456
458
  // 将数组设置到 massMarks 图层
457
459
  this.level2Mulchs.setData(a3);
@@ -459,13 +461,15 @@ export default {
459
461
  this.level2Mulchs.setMap(this.map);
460
462
 
461
463
  let a4=[]
462
- for(let i=0;i<this.level3.length;i++){
463
- a4.push({
464
- lnglat: [this.level3[i].f_longitude, this.level3[i].f_latitude], //点标记位置
465
- name: '三级隐患',
466
- id:i,
467
- rowstr:this.level3[i]
468
- })
464
+ for(let p=0;p<this.level3.length;p++){
465
+ if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
466
+ a4.push({
467
+ lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
468
+ name: '三级隐患',
469
+ id:p,
470
+ rowstr:this.level3[p]
471
+ })
472
+ }
469
473
  }
470
474
  // 将数组设置到 massMarks 图层
471
475
  this.level3Mulchs.setData(a4);
@@ -474,13 +478,15 @@ export default {
474
478
 
475
479
 
476
480
  let a5=[]
477
- for(let i=0;i<this.problems.length;i++){
478
- a5.push({
479
- lnglat: [this.problems[i].f_longitude, this.problems[i].f_latitude], //点标记位置
480
- name: '普通问题',
481
- id:i,
482
- rowstr:this.problems[i]
483
- })
481
+ for(let l=0;l<this.problems.length;l++){
482
+ if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
483
+ a5.push({
484
+ lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
485
+ name: '普通问题',
486
+ id:l,
487
+ rowstr:this.problems[l]
488
+ })
489
+ }
484
490
  }
485
491
  // 将数组设置到 massMarks 图层
486
492
  this.problemsMulchs.setData(a5);
@@ -79,8 +79,10 @@
79
79
  let selectnew = function * (self) {
80
80
  let http = new HttpResetClass()
81
81
  http.load('POST', '/rs/search', {
82
- source: `root.getResourceById($${self.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
83
- userid: self.$login.f.id
82
+ data:{
83
+ source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
84
+ userid: self.$login.f.orgid
85
+ }
84
86
  }, {resolveMsg: null, rejectMsg: null}).then((res) => {
85
87
  self.checkers = []
86
88
  let arr = []
@@ -894,6 +894,7 @@ import Vue from 'vue'
894
894
  import * as Util from '../Util'
895
895
  import {jsonSort} from '../../utils/LdapHelper'
896
896
  import {HttpResetClass} from "vue-client";
897
+ import {forEach} from "mocha/lib/utils";
897
898
 
898
899
  let asyncReady = async function (self) {
899
900
  // 获取配置信息
@@ -1293,6 +1294,9 @@ export default {
1293
1294
  if (this.deviceCollects.length > 0) {
1294
1295
  this.hasDevice = true
1295
1296
  }
1297
+ this.deviceconfig2 = this.deviceconfig2.filter(row => {
1298
+ return !(row.checkname == '$configProp' || row.checkname == '$globalProp');
1299
+ })
1296
1300
  this.ajresult = JSON.parse(this.data.f_defect_content).result
1297
1301
  this.showimg3 = this.data.f_noanswer_path
1298
1302
  this.showimg5 = this.data.f_noanswer1_path
@@ -1873,18 +1877,17 @@ export default {
1873
1877
  //tag
1874
1878
  //tag)
1875
1879
  console.log('Vue.config.safecheck.DevicesConfig', Vue.config.safecheck.DevicesConfig)
1876
- if (this.data.f_check_type == '民用') {
1877
- this.deviceconfig = Vue.config.safecheck.DevicesConfig
1878
- if (typeof this.deviceconfig === 'string') {
1879
- this.deviceconfig = JSON.parse(this.deviceconfig)
1880
- }
1881
- //tag)
1882
- } else if (this.data.f_check_type == '非民用') {
1880
+ // 如果没有用户类型 默认按民用配置走
1881
+ if (this.data.f_check_type == '非民用') {
1883
1882
  this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1884
1883
  if (typeof this.deviceconfig === 'string') {
1885
1884
  this.deviceconfig = JSON.parse(this.deviceconfig)
1886
1885
  }
1887
- //tag)
1886
+ }else{
1887
+ this.deviceconfig = Vue.config.safecheck.DevicesConfig
1888
+ if (typeof this.deviceconfig === 'string') {
1889
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1890
+ }
1888
1891
  }
1889
1892
  if (this.data.f_collection_type == '按金额') {
1890
1893
  if (this.deviceconfig["燃气表"]){
@@ -16,7 +16,7 @@
16
16
  close-on-select value-single >
17
17
  </v-select>
18
18
  </div>
19
- <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
19
+ <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default" v-if="isdelete">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
20
20
  </div>
21
21
  <div class="leftplan-center safe_plan_list">
22
22
  <div class="row safe-leftplan safe_list_li" :class="{'safe-selectplan':selectPlan.id==row.id}" v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
@@ -399,6 +399,7 @@
399
399
  a:'1',
400
400
  opt:[{label:"按时间降序",value:"按时间降序"},{label:"按时间升序",value:"按时间升序"}],
401
401
  currentorder:'按时间降序',
402
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
402
403
  checkplan : new SearchList(true),
403
404
  selectPlan:{id:''},
404
405
  upCheckPlan:{
@@ -451,6 +452,13 @@
451
452
  },
452
453
  async ready(){
453
454
  await this.loadpage()
455
+ if (!this.userlogin.orgid){
456
+ if (this.$login.f.f_orgids){
457
+ this.userlogin.orgid = this.$login.f.f_orgids.endsWith('.')?this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1):this.$login.f.f_orgids
458
+ }else {
459
+ this.userlogin.orgid = ''
460
+ }
461
+ }
454
462
  },
455
463
  computed: {
456
464
  ntoway() {
@@ -575,8 +583,10 @@
575
583
  //查询安检员selectChanged
576
584
  async searchChecker(id){
577
585
  let res=await new HttpResetClass().load('POST', '/rs/search', {
578
- source: `root.getResourceById($${this.userlogin.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
579
- userid: this.$login.f.id
586
+ data:{
587
+ source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
588
+ userid: this.userlogin.orgid
589
+ }
580
590
  }, {resolveMsg: null, rejectMsg: null})
581
591
  let arr = []
582
592
  res.data.forEach((resRow) => {
@@ -727,7 +737,7 @@
727
737
  this.isSend=true
728
738
  let res=await new HttpResetClass().load("POST", "/rs/logic/deleteCheckPlan", {
729
739
  data:{
730
- f_operator:this.userlogin.orgstr,//global.login.name,
740
+ f_operator:this.userlogin.name,//global.login.name,
731
741
  condition:"",
732
742
  switchCheckAll:true,
733
743
  checkAll:false,
@@ -50,7 +50,7 @@
50
50
  </div>
51
51
  <div class="form-group col-sm-2" style="float: right">
52
52
  <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
53
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()">移出计划</button>
53
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
54
54
  </div>
55
55
  <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
56
56
  <div slot="modal-header" class="modal-header">
@@ -178,6 +178,7 @@
178
178
  data() {
179
179
  return {
180
180
  model:new PagedList('/rs/sql/planItem', 100, {}),
181
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
181
182
  a:'1',
182
183
  opt:[{label:"测试",value:"测试"}],
183
184
  showCondtion:false,
@@ -371,6 +371,7 @@
371
371
  <th><nobr>抄表册</nobr></th>
372
372
  <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
373
373
  <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
374
+ <th><nobr>首次通气时间</nobr></th>
374
375
  <th><nobr>详细地址</nobr></th>
375
376
  </tr>
376
377
  </template>
@@ -386,6 +387,7 @@
386
387
  <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
387
388
  <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
388
389
  <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
390
+ <td style="text-align: center"><nobr>{{row.f_uservent_date}}</nobr></td>
389
391
  <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
390
392
  </template>
391
393
  </data-grid>
@@ -51,9 +51,9 @@
51
51
  v-model='model.userType'
52
52
  :value.sync="model.userType"
53
53
  :options='$parent.$parent.userTypes'
54
- condition="tuf.f_gasproperties = '{}'"
55
- :value-single="true"
56
- close-on-select clear-button></v-select>
54
+ condition="tuf.f_gasproperties in {} "
55
+ :multiple="true"
56
+ ></v-select>
57
57
  </div>
58
58
  <div class="col-sm-2 form-group" >
59
59
  <label class="font_normal_body">气表类型</label>
@@ -29,7 +29,9 @@
29
29
  <div class="row">
30
30
  <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 10px;margin-right: 75px" v-for="(index,img) in paper.f_overall_imgs">
31
31
  <img-self :src="img.f_overall_path" alt="总体送气照片" :width="150" :height="200"></img-self>
32
- <!--<img src="../../assets/remove.png" @click="delfile('f_overall_path', img.f_overall_path,index)" class="imgs" style="width: 30px;" alt="">-->
32
+ </div>
33
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 10px;margin-right: 75px" v-for="(index,img) in fileInfoData">
34
+ <img-self :src="img.f_downloadURL" alt="总体送气照片" :width="150" :height="200"></img-self>
33
35
  </div>
34
36
  </div>
35
37
  </div>
@@ -362,6 +364,7 @@
362
364
  title: '用户反馈',
363
365
  data() {
364
366
  return {
367
+ fileInfoData:[],
365
368
  paper:this.$parent.data,
366
369
  printContent:[],
367
370
  radios:[
@@ -432,12 +435,34 @@
432
435
  Url:this.$androidUtil.getProxyUrl()
433
436
  }
434
437
  },
435
- props: ['idx'],
438
+ props: ['idx','item'],
436
439
  components: {
437
440
  RadioGroup,
438
441
  Radio
439
442
  },
440
443
  methods: {
444
+ //获取pc上传的送气全景照片
445
+ getGaspic() {
446
+ let data = {
447
+ tablename: 't_files',
448
+ condition: `f_blobid = '${this.item.id}' order by f_uploaddate desc `
449
+ }
450
+ let http = new HttpResetClass()
451
+ http.load('post', 'rs/sql/singleTable', {data: data}, {
452
+ resolveMsg: null,
453
+ rejectMsg: null
454
+ }).then(getFile=> {
455
+ for (var i = 0; i < getFile.data.length; i++) {
456
+ let temp = getFile.data[i].f_downloadpath
457
+ if (temp) {
458
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
459
+ getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
460
+ }
461
+ }
462
+ this.fileInfoData = []
463
+ this.fileInfoData = getFile.data
464
+ })
465
+ },
441
466
  check(index) {
442
467
  //tag
443
468
  // 先取消所有选中项
@@ -948,6 +973,7 @@
948
973
  }
949
974
  //tag
950
975
  //tag
976
+ this.getGaspic()
951
977
  },
952
978
  watch:{
953
979
  '$parent.isUpload'(val){
@@ -38,7 +38,7 @@
38
38
  <devicesm> </devicesm>
39
39
  </div>
40
40
  <div style="width: 95%;height: 900px;margin-left: 20px;float: left;">
41
- <asp-paper-feedbackm v-bind:paper="this.data" ></asp-paper-feedbackm>
41
+ <asp-paper-feedbackm v-bind:paper="this.data" :item="item" ></asp-paper-feedbackm>
42
42
  </div>
43
43
  </div>
44
44
  </div>
@@ -407,7 +407,7 @@
407
407
  defectType:[],
408
408
  userTypes:[{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
409
409
  defectLeave:'',
410
- defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'},{label: '其他隐患'}],
410
+ defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'},{label: '其他隐患',value:'其他隐患'}],
411
411
  thead: '',
412
412
  headData: ['入户状态','用户名','用户电话','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','一级隐患数','一级隐患','二级隐患数','二级隐患','三级隐患数','三级隐患','其他隐患','隐患内容'],
413
413
  bodyData: ['f_entry_status','f_user_name','f_user_phone','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_fist_count','f_fist_content','f_second_count','f_second_content','f_third_count','f_third_content','f_other_count','f_defect_content'],
@@ -158,6 +158,7 @@
158
158
  <td style="text-align: center">{{row.f_checker_name}}</td>
159
159
  <td style="text-align: center">
160
160
  <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
161
+ <button class="button_spacing button_search-1" @click="$parent.$parent.$parent.addpic(row)">添加照片</button>
161
162
  <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
162
163
  @click="$parent.$parent.$parent.print(row)">
163
164
  打印
@@ -168,6 +169,27 @@
168
169
  </criteria-paged>
169
170
  <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
170
171
  </div>
172
+ <modal :show.sync="pic" v-ref:modal backdrop="true" v-if="pic">
173
+ <header slot="modal-header" class="modal-header">
174
+ 上传照片
175
+ </header>
176
+ <article slot="modal-body" class="modal-body">
177
+ <div class="from-group">
178
+ <safecheck-file-upload
179
+ :blodid="blodid"
180
+ :isupload="true"
181
+ :isdelete="true"
182
+ :isusetype="true"
183
+ :isremark="true"
184
+ :takeimg="false"
185
+ isusetype="送气照片"
186
+ ></safecheck-file-upload>
187
+ </div>
188
+ </article>
189
+ <footer slot="modal-footer" class="modal-footer">
190
+ <button type="button" class="btn btn-success" @click='piclose'>关闭</button>
191
+ </footer>
192
+ </modal>
171
193
  </div>
172
194
  </template>
173
195
 
@@ -179,6 +201,7 @@
179
201
  import * as Util from '../Util'
180
202
  import getNowDate from "../../utils/getNowDate";
181
203
  import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
204
+ import safecheckUpload from "../Util/SafecheckUpload.vue";
182
205
 
183
206
  //获取json配置文件
184
207
  let asyncReady = async function (self) {
@@ -209,6 +232,9 @@
209
232
 
210
233
  export default {
211
234
  title: '非民用送气结果查看',
235
+ components: {
236
+ safecheckUpload
237
+ },
212
238
  data() {
213
239
  let model = new PagedList('rs/sql/查找安检单', 20, {
214
240
  f_plan_id: 'this.f_plan_id',
@@ -274,10 +300,19 @@
274
300
  orderFields: {
275
301
  f_offsite_time: 'no'
276
302
  },
303
+ blodid:null,
304
+ pic:false,
277
305
  }
278
306
  },
279
307
  methods: {
280
-
308
+ piclose(){
309
+ this.pic=false
310
+ },
311
+ addpic(row){
312
+ this.blodid=row.id
313
+ this.pic=true
314
+ debugger
315
+ },
281
316
  change(row) {
282
317
  //Vue.$login = {jwt: row.f_checker_id}
283
318
  asyncReady(this).then(() => {
@@ -163,6 +163,7 @@
163
163
  <td style="text-align: center">{{row.f_checker_name}}</td>
164
164
  <td style="text-align: center">
165
165
  <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
166
+ <button class="button_spacing button_search-1" @click="$parent.$parent.$parent.addpic(row)">添加照片</button>
166
167
  <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
167
168
  @click="$parent.$parent.$parent.print(row)">
168
169
  打印
@@ -173,6 +174,26 @@
173
174
  </criteria-paged>
174
175
  <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
175
176
  </div>
177
+ <modal :show.sync="pic" v-ref:modal backdrop="true" v-if="pic">
178
+ <header slot="modal-header" class="modal-header">
179
+ 上传照片
180
+ </header>
181
+ <article slot="modal-body" class="modal-body">
182
+ <div class="from-group">
183
+ <safecheck-file-upload
184
+ :blodid="bolbid"
185
+ :isupload="true"
186
+ :isdelete="true"
187
+ :isusetype="true"
188
+ :isremark="true"
189
+ :takeimg="false"
190
+ ></safecheck-file-upload>
191
+ </div>
192
+ </article>
193
+ <footer slot="modal-footer" class="modal-footer">
194
+ <button type="button" class="btn btn-success" @click='piclose'>关闭</button>
195
+ </footer>
196
+ </modal>
176
197
  </div>
177
198
  </template>
178
199
 
@@ -184,6 +205,7 @@
184
205
  import * as Util from '../Util'
185
206
  import getNowDate from "../../utils/getNowDate";
186
207
  import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
208
+ import safecheckUpload from "../Util/SafecheckUpload.vue";
187
209
 
188
210
  //获取json配置文件
189
211
  let asyncReady = async function (self) {
@@ -214,6 +236,7 @@
214
236
 
215
237
  export default {
216
238
  title: '民用送气结果查看',
239
+ components: {safecheckUpload},
217
240
  data() {
218
241
  let model = new PagedList('rs/sql/查找安检单', 20, {
219
242
  f_plan_id: 'this.f_plan_id',
@@ -230,16 +253,6 @@
230
253
  model.f_no_checkplan = ''
231
254
  model.f_filialeid = this.$login.f.orgid
232
255
  model.f_check_type='民用'
233
- // let searchData={
234
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
235
- // f_approved: this.model.f_approved,
236
- // f_entry_status: this.model.f_entry,
237
- // f_no_checkplan:this.model.f_no_checkplan[0],
238
- // f_filialeid: this.model.f_filialeid,
239
- // //orderitem: this.model.f_offsite_time,
240
- // //condition:this.model.condition
241
- // }
242
- // model.f_subcompany = this.$login.f.f_fengongsi
243
256
  return {
244
257
  searchData: {
245
258
  condition:"1=1",
@@ -276,10 +289,18 @@
276
289
  orderFields: {
277
290
  f_offsite_time: 'no'
278
291
  },
292
+ bolbid:null,
293
+ pic:false,
279
294
  }
280
295
  },
281
296
  methods: {
282
-
297
+ piclose(){
298
+ this.pic=false
299
+ },
300
+ addpic(row){
301
+ this.bolbid=row.id
302
+ this.pic=true
303
+ },
283
304
  change(row) {
284
305
  //Vue.$login = {jwt: row.f_checker_id}
285
306
  asyncReady(this).then(() => {