safecheck-client 3.0.30-62-t10 → 3.0.30-62-t12

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 (246) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +16 -60
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +879 -866
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1376 -1376
  77. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  78. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  79. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  80. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  81. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  82. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  83. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  84. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  85. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  86. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  87. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  88. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  89. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  90. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  91. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  92. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  93. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  94. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  95. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  96. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  97. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  98. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  99. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  100. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  101. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  102. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  103. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  104. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  105. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  106. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  107. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  108. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  109. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  110. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  111. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  112. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  113. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  114. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  115. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  116. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  117. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  118. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  119. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  120. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  121. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  122. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  123. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  124. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  125. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  126. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  127. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  128. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  129. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  130. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  131. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  132. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  133. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  134. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  135. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  136. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  137. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  138. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  139. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  140. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  141. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  142. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  143. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  144. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  145. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  146. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  147. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  148. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  149. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  150. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  151. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  152. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  153. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  154. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  155. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  156. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  157. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  158. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  159. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  160. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  161. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  162. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  163. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  164. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  165. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  166. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  167. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  168. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  169. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  170. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  171. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  172. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  173. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  174. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  175. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  176. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  177. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  178. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  179. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  180. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  181. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  182. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  183. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  184. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  185. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  186. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  187. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  188. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  189. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  190. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  191. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  192. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  193. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  194. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  195. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  196. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  197. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  198. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  199. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  200. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  201. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  202. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  203. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  204. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  205. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  206. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  207. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  208. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  209. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  210. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  211. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  212. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  213. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  214. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  215. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  216. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  219. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  220. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  221. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  222. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  223. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  224. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  225. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  226. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  227. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  228. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  229. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  230. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  231. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  232. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  233. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  234. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  235. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  236. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  237. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  238. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  239. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  240. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  241. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  242. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  243. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  244. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  245. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  246. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,589 +1,589 @@
1
- <template>
2
- <div class="flex-row" v-show="isshowd">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">小&emsp;&emsp;区</label>
25
- <input type="text" class="input_search" v-model="model.f_residential_area"
26
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">详细地址</label>
30
- <input type="text" class="input_search" v-model="model.f_address"
31
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
-
35
- <export-excel :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- progress="safeGetExportProgress"
38
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='安检隐患明细'></export-excel>
39
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
41
-
42
- <button class="button_spacing button_search" @click="search()">查询</button>
43
- <div style="float: right" class="button_spacing"
44
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
- @click="$parent.$parent.hidden()"></div>
46
- </div>
47
-
48
- </div>
49
- <div class="row">
50
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
51
- <role-selector-safe
52
- role-name="安检员"
53
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
- @re-res="$parent.$parent.getRes"
55
- :value.sync="model.f_checker_id"
56
- v-model="model.f_checker_id"
57
- condition="f_checker_name = '{}'">
58
- </role-selector-safe>
59
- </div>
60
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
61
- <label class="font_normal_body">检&ensp;查&ensp;项</label>
62
- <v-select :value.sync="model.f_device_type" v-model='model.f_device_type'
63
- :value-single="true" style="width: 60%"
64
- class="select_list select"
65
- :options='$parent.$parent.device_types' placeholder='检查项'
66
- close-on-select
67
- @change="$parent.$parent.changeDefect"
68
- condition="f_item_name like '%{}%'"></v-select>
69
- <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
70
- <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
71
- </div>
72
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
73
- <label class="font_normal_body">隐患名称</label>
74
- <v-select :value.sync="model.f_item_name" v-model='model.f_item_name'
75
- :value-single="true" style="width: 60%"
76
- class="select_list select"
77
- :options='$parent.$parent.DefectConfigs' placeholder='隐患名称'
78
- close-on-select
79
- condition="f_item_name like '%{}%'"></v-select>
80
- </div>
81
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
82
- <label class="font_normal_body">隐患情况</label>
83
- <input type="text" class="input_search" v-model="model.f_defect_content"
84
- style="width: 60%" placeholder="隐患情况" condition="ditls.f_item_value like '%{}%'">
85
- </div>
86
- </div>
87
- <div class="row" v-show="$parent.$parent.criteriaShow">
88
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
89
- <label class="font_normal_body">开始时间</label>
90
- <datepicker
91
- class="select_list select"
92
- :value.sync="model.f_check_start"
93
- placeholder='开始时间' style="width: 60%"
94
- :disabled-days-of-week="[]"
95
- :format="'yyyy-MM-dd'"
96
- :show-rest-button="reset"
97
- v-model="model.f_check_start"
98
- condition="f_offsite_time > ='{} 00:00:00'">
99
- </datepicker>
100
- </div>
101
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
102
- <label class="font_normal_body">结束时间</label>
103
- <datepicker
104
- :value.sync="model.f_check_end"
105
- placeholder='结束时间' style="width: 60%"
106
- :disabled-days-of-week="[]"
107
- :format="'yyyy-MM-dd'"
108
- :show-rest-button="reset"
109
- v-model="model.f_check_end"
110
- condition="f_offsite_time <= '{} 23:59:59'">
111
- </datepicker>
112
- </div>
113
- </div>
114
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
115
- <div slot="modal-header" class="modal-header">
116
- <h4 class="modal-title">
117
- 选择计划
118
- </h4>
119
- </div>
120
- <div slot="modal-body" class="modal-body">
121
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
122
- </div>
123
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
124
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
125
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
126
- </div>
127
- </modal>
128
- </div>
129
- </criteria>
130
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
131
- <template partial='head'>
132
- <tr>
133
- <th>
134
- <nobr>检查项</nobr>
135
- </th>
136
- <th>
137
- <nobr>隐患名称</nobr>
138
- </th>
139
- <th >
140
- <nobr>隐患情况</nobr>
141
- </th>
142
- <th>
143
- <nobr>客户编号</nobr>
144
- </th>
145
- <th>
146
- <nobr>客户名称</nobr>
147
- </th>
148
- <th>
149
- <nobr>客户电话</nobr>
150
- </th>
151
- <th>
152
- <nobr>客户小区</nobr>
153
- </th>
154
- <th>
155
- <data-order field="f_address" name="客户地址"></data-order>
156
- </th>
157
-
158
- <th>
159
- <data-order field="f_offsite_time" name="安检时间"></data-order>
160
- </th>
161
- <th>
162
- <nobr>安检员</nobr>
163
- </th>
164
- <th>
165
- <nobr>操作</nobr>
166
- </th>
167
- </tr>
168
- </template>
169
- <template partial='body'>
170
- <td style="text-align: center" >{{row.f_device_type}}</td>
171
- <td style="text-align: center">{{row.f_item_name}}</td>
172
- <td style="text-align: center;" >
173
- <button-link type="button" class="btn btn-link"@click="$parent.$parent.$parent.situation(row)">
174
- {{row.f_item_value}}
175
- </button-link>
176
- </td>
177
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
178
- <td style="text-align: center">{{row.f_user_name}}</td>
179
- <td style="text-align: center">{{row.f_user_phone}}</td>
180
- <td style="text-align: center">{{row.f_residential_area}}</td>
181
- <td style="text-align: center">{{row.f_address}}</td>
182
- <td style="text-align: center">{{row.f_offsite_time}}</td>
183
- <td style="text-align: center">{{row.f_checker_name}}</td>
184
- <td style="text-align: center">
185
- <button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.details(row)">
186
- 查看详情
187
- </button-link>
188
- </td>
189
- </template>
190
- </data-grid>
191
- </criteria-paged>
192
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
193
- </div>
194
- </div>
195
- <!--隐患情况详情查看 -->
196
- <modal :show.sync="trouble">
197
- <div slot="modal-header" class="modal-header">
198
- <h4 class="modal-title">
199
- 隐患情况详情
200
- </h4>
201
- </div>
202
- <div slot="modal-body" class="modal-body" v-if="yhpath.f_path">
203
- <img :src="`/rs/image/file/${yhpath.f_path}`" alt="无照片!!!" width="300" height="320">
204
- </div>
205
- <div slot="modal-footer" class="modal-footer">
206
- <button type="button" class="btn btn-default" @click="trouble = false;yhpath=null">确认</button>
207
- </div>
208
- </modal>
209
- </template>
210
-
211
- <script>
212
- import {PagedList} from 'vue-client'
213
- import Vue from 'vue'
214
- import co from 'co'
215
- import AppData from '../../../stores/AppData'
216
- import * as Util from '../../Util'
217
- import getNowDate from "../../../utils/getNowDate";
218
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
219
- import BenzAMRRecorder from 'benz-amr-recorder'
220
-
221
- //获取json配置文件
222
- let asyncReady = async function (self) {
223
- // 获取配置信息
224
- try {
225
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
226
- Vue.config = res.data
227
- self.getDefectInfoConfig(res.data)
228
- } catch (error) {
229
- // 忽略704,文件找不到异常R
230
- if (error.status !== 704) {
231
- throw error
232
- }
233
- }
234
- }
235
-
236
- let select = function* (self) {
237
- let http = new HttpResetClass()
238
- let getGasman = yield http.load('POST', '/rs/search', {
239
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
240
- userid: self.$login.f.id
241
- }, {resolveMsg: null, rejectMsg: null})
242
- ////tag
243
- self.checkersid.push({label: '全部', value: ''})
244
- getGasman.data.forEach((checker) => {
245
- self.checkersid.push({label: checker.name, value: checker.id})
246
- })
247
- }
248
-
249
- export default {
250
- title: '隐患明细查看',
251
- data() {
252
- let model = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 20, {
253
- items: "'tcp.*,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value,ditls.f_path,ass.f_user_type,ass.version'",
254
- tablename: "'t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_userfiles ass on tcp.f_userinfoid=ass.f_userinfo_id LEFT JOIN (SELECT dits.f_is_defect,dits.f_device_id,dits.f_item_name,ditl.f_item_value ,dits.f_path FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id'",
255
- orderitem: "'f_offsite_time'"
256
- })
257
- model.f_plan_id = ''
258
- model.f_approved = ''
259
- model.f_entry = ''
260
- model.f_no_checkplan = ''
261
- model.f_filialeid = `('${this.$login.f.orgid}')`
262
- //model.f_check_type='民用'
263
- // let searchData={
264
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
265
- // f_approved: this.model.f_approved,
266
- // f_entry_status: this.model.f_entry,
267
- // f_no_checkplan:this.model.f_no_checkplan[0],
268
- // f_filialeid: this.model.f_filialeid,
269
- // //orderitem: this.model.f_offsite_time,
270
- // //condition:this.model.condition
271
- // }
272
- // model.f_subcompany = this.$login.f.f_fengongsi
273
-
274
- return {
275
- isshowd:true,
276
- audioshow:false,
277
- trouble:false,
278
- searchData: {
279
- condition: "ditls.f_is_defect = 'true' ",
280
- items: "tcp.f_defect_content,tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value",
281
- tablename: "t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN ( SELECT dits.f_is_defect,dits.f_device_id, dits.f_item_name, ditl.f_item_value FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id",
282
- orderitem: "f_offsite_time"
283
- },
284
- model: model,
285
- //searchData:searchData,
286
- excelHeaders: {
287
- 'f_device_type': '检查项',
288
- 'f_item_name': '隐患名称',
289
- 'f_item_value': '隐患情况',
290
- 'f_userinfo_code': '客户编号',
291
- 'f_user_name': '客户姓名',
292
- 'f_user_phone': '客户类型',
293
- 'f_residential_area': '小区',
294
- 'f_address': '客户地址',
295
- 'f_offsite_time': '安检时间',
296
- 'f_checker_name': '安检员'
297
- },
298
- fun: this.$login.f,
299
- checkersid: [],
300
- safetype: [
301
- {label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
302
- criteriaShow: false,
303
- showModal: false,
304
- f_approval_states: this.$appdata.getParam('安检单审核状态'),
305
- f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
306
- f_checkplans: this.$appdata.getParam('有无计划'),
307
- showcheckmsg: false,
308
- checkInfo: {},
309
- orderDefault: "'f_offsite_time'",
310
- orderFields: {
311
- f_offsite_time: 'no'
312
- },
313
- DefectConfig:'' ,
314
- DefectConfigs:[{label:'全部',value:''}],
315
- device_types:[{label:'全部',value:''}],
316
- sliceArea: [],
317
- cbc:[],
318
- yhpath:null
319
- }
320
- },
321
- methods: {
322
- //隐患情况详情查看
323
- situation(row){
324
- //tag
325
- if (row.f_item_name === '气量异常差值'){
326
- this.$showMessage('气量异常差值无照片!!!')
327
- }else {
328
- this.yhpath=row
329
- //tag;
330
- //tag
331
- this.trouble=true
332
- }
333
- },
334
- details(row) {
335
- // Vue.$login = {jwt: row.f_checker_id}
336
- asyncReady(this).then(() => {
337
- ////tag)
338
- row.f_upload_state = '已传'
339
- this.isshowd=false
340
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self',this.isshowdtrue)
341
- }).catch(
342
- (respanse) => {
343
- alert('获取配置文件失败')
344
- })
345
- },
346
- isshowdtrue() {
347
- this.isshowd = true
348
- },
349
- showaudio(){
350
- //tag
351
- this.audioshow=!this.audioshow
352
- //tag
353
- },
354
- changeDefect(val){
355
- try {
356
- if(val){
357
- for (var Key1 in this.DefectConfig){
358
- if(Key1 == val){
359
- this.DefectConfigs = [{label:'全部',value:''}]
360
- for(var Key2 in this.DefectConfig[Key1].items){
361
- this.DefectConfigs.push({label:Key2,value:Key2})
362
- }
363
- return
364
- }
365
- }
366
- }else if(val == ''){
367
- this.DefectConfigs = [{label:'全部',value:''}]
368
- for (var Key1 in this.DefectConfig){
369
- for(var Key2 in this.DefectConfig[Key1].items){
370
- this.DefectConfigs.push({label:Key2,value:Key2})
371
- }
372
- }
373
- }
374
- }catch (e) {
375
- //tag
376
- }
377
- },
378
- getDefectInfoConfig(val){
379
- try {
380
- if (val.safecheck.DevicesSetConfig != undefined) {
381
- this.DefectConfig = val.safecheck.DevicesConfig
382
- // 获取到配置项,进行遍历,获取每个隐患项
383
- for (var Key1 in this.DefectConfig){
384
- this.device_types.push({label:Key1,value:Key1})
385
- for(var Key2 in this.DefectConfig[Key1].items){
386
- this.DefectConfigs.push({label:Key2,value:Key2})
387
- }
388
- }
389
- // 非民用或其他配置项加入,在进行遍历
390
- }
391
- }catch (e) {
392
- //tag
393
- }
394
- },
395
- getmeterbook(val){
396
- this.cbc=[]
397
- this.cbc.push({
398
- label:'全部',
399
- value:''
400
- })
401
- if (val==''){
402
-
403
- this.cbcs.forEach(res=>{
404
- this.cbc.push({
405
- label:res.f_book_name,
406
- value:res.id
407
- })
408
- })
409
- }else{
410
- this.cbcs.forEach(res=>{
411
- if (res.f_book_slice_area==val){
412
- this.cbc.push({
413
- label:res.f_book_name,
414
- value:res.id
415
- })
416
- }
417
- })
418
- }
419
- },
420
- Mreadibook(val){
421
- ////tag
422
- ////tag
423
- this.sliceArea=[]
424
- if (val){
425
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
426
- items: 'name',
427
- tablename: 't_zone',
428
- condition: `parentid in ${val}`,
429
- orderitem: 'id'
430
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
431
- this.sliceArea.push({
432
- label:'全部',
433
- value:''
434
- })
435
- res.data.forEach(ress=>{
436
- this.sliceArea.push({
437
- label:ress.name,
438
- value:ress.name
439
- })
440
- })
441
-
442
- })
443
- }
444
- },
445
- getAllMeterBook(val){
446
- ////tag
447
- ////tag
448
- this.cbcs=[]
449
- if (val){
450
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
451
- items: 'f_book_name,f_book_slice_area,id',
452
- tablename: 't_meter_book',
453
- condition: `f_filiale_id in ${val}`,
454
- orderitem: 'id'
455
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
456
- res.data.forEach(ress=>{
457
- this.cbcs.push({
458
- id:ress.id,
459
- f_book_name:ress.f_book_name,
460
- f_book_slice_area:ress.f_book_slice_area
461
- })
462
- })
463
- this.cbc=[]
464
- this.cbc.push({
465
- label:'全部',
466
- value:''
467
- })
468
- this.cbcs.forEach(res=>{
469
- this.cbc.push({
470
- label:res.f_book_name,
471
- value:res.id
472
- })
473
- })
474
- })
475
- }
476
- },
477
- getRes(obj) {
478
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
479
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
480
- this.Mreadibook(this.model.f_filialeid)
481
- this.getAllMeterBook(this.model.f_filialeid)
482
- //this.$refs.paged.$refs.criteria.search()
483
- },
484
- readConfig() {
485
- let gen = asyncReady(this)
486
- return co(gen)
487
- },
488
- showChooser() {
489
- this.showModal = true
490
- },
491
- hidden() {
492
- this.criteriaShow = !this.criteriaShow
493
- },
494
- refresh() {
495
- this.$refs.paged.$refs.criteria.search()
496
- },
497
- ok() {
498
- this.showModal = false
499
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
500
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
501
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
502
- }
503
- },
504
- cancel() {
505
- this.showModal = false
506
- this.model.f_check_plan = {f_plan_name: '', id: ''}
507
- this.model.f_plan_id=''
508
- },
509
- print(row) {
510
- this.showcheckmsg = true
511
- this.checkInfo = row
512
- },
513
- sort(field, rule) {
514
- // 将所有排序方式设为不排序,实现相互排斥
515
- for (let key in this.orderFields) {
516
- if (key === field) {
517
- this.orderFields[key] = rule
518
- } else {
519
- this.orderFields[key] = 'no'
520
- }
521
- }
522
- // 如果新规则不排序,还原为默认排序
523
- if (rule === 'no') {
524
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
525
- } else {
526
- this.model.paramSource.orderitem = `'${field} ${rule}'`
527
- }
528
- this.search()
529
- },
530
- search() {
531
- this.$refs.paged.$refs.criteria.search()
532
- },
533
- selfSearch(args) {
534
- ////tag
535
- args.condition+=" and ditls.f_is_defect = 'true' "
536
- this.model.search(args.condition, args.model, args.condValue)
537
- }
538
- },
539
- ready() {
540
- ////tag
541
- this.readConfig()
542
- this.function = this.f
543
- ////tag
544
-
545
- let gen = select(this)
546
- //this.pianqu()
547
- this.Mreadibook(`('${this.$login.f.orgid}')`)
548
- co(gen)
549
- },
550
- watch: {
551
- 'model.f_no_checkplan'(val) {
552
- if (this.model.f_no_checkplan){
553
- this.searchData.f_no_checkplan = val
554
- }
555
- if (this.model.f_no_checkplan == '有计划安检') {
556
-
557
- this.showChooser()
558
- }
559
- },
560
- 'model.condition'(val) {
561
- if (val) {
562
- this.searchData.condition = val
563
- }
564
-
565
- },
566
- 'model.f_entry'(val) {
567
- if (val) {
568
- this.searchData.f_entry_status = val
569
- }
570
- },
571
- 'model.f_plan_id'(val) {
572
- if (val) {
573
- this.searchData.f_plan_id = val
574
- }
575
- },
576
- 'model.f_slice_area'(val) {
577
- if (val) {
578
-
579
- }
580
- },
581
- 'model.f_approved'(val) {
582
- if (val) {
583
- this.searchData.f_approved = val
584
- }
585
- },
586
- }
587
-
588
- }
589
- </script>
1
+ <template>
2
+ <div class="flex-row" v-show="isshowd">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_user_name"
16
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">客户电话</label>
20
+ <input type="text" class="input_search" v-model="model.f_user_phone"
21
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
25
+ <input type="text" class="input_search" v-model="model.f_residential_area"
26
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">详细地址</label>
30
+ <input type="text" class="input_search" v-model="model.f_address"
31
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
+ </div>
33
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
+
35
+ <export-excel :data="$parent.$parent.searchData"
36
+ :field="$parent.$parent.excelHeaders"
37
+ progress="safeGetExportProgress"
38
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="safe_singleTable_OrderBy" template-name='安检隐患明细'></export-excel>
39
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
41
+
42
+ <button class="button_spacing button_search" @click="search()">查询</button>
43
+ <div style="float: right" class="button_spacing"
44
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
+ @click="$parent.$parent.hidden()"></div>
46
+ </div>
47
+
48
+ </div>
49
+ <div class="row">
50
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
51
+ <role-selector-safe
52
+ role-name="安检员"
53
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
+ @re-res="$parent.$parent.getRes"
55
+ :value.sync="model.f_checker_id"
56
+ v-model="model.f_checker_id"
57
+ condition="f_checker_name = '{}'">
58
+ </role-selector-safe>
59
+ </div>
60
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
61
+ <label class="font_normal_body">检&ensp;查&ensp;项</label>
62
+ <v-select :value.sync="model.f_device_type" v-model='model.f_device_type'
63
+ :value-single="true" style="width: 60%"
64
+ class="select_list select"
65
+ :options='$parent.$parent.device_types' placeholder='检查项'
66
+ close-on-select
67
+ @change="$parent.$parent.changeDefect"
68
+ condition="f_item_name like '%{}%'"></v-select>
69
+ <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
70
+ <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
71
+ </div>
72
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
73
+ <label class="font_normal_body">隐患名称</label>
74
+ <v-select :value.sync="model.f_item_name" v-model='model.f_item_name'
75
+ :value-single="true" style="width: 60%"
76
+ class="select_list select"
77
+ :options='$parent.$parent.DefectConfigs' placeholder='隐患名称'
78
+ close-on-select
79
+ condition="f_item_name like '%{}%'"></v-select>
80
+ </div>
81
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
82
+ <label class="font_normal_body">隐患情况</label>
83
+ <input type="text" class="input_search" v-model="model.f_defect_content"
84
+ style="width: 60%" placeholder="隐患情况" condition="ditls.f_item_value like '%{}%'">
85
+ </div>
86
+ </div>
87
+ <div class="row" v-show="$parent.$parent.criteriaShow">
88
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
89
+ <label class="font_normal_body">开始时间</label>
90
+ <datepicker
91
+ class="select_list select"
92
+ :value.sync="model.f_check_start"
93
+ placeholder='开始时间' style="width: 60%"
94
+ :disabled-days-of-week="[]"
95
+ :format="'yyyy-MM-dd'"
96
+ :show-rest-button="reset"
97
+ v-model="model.f_check_start"
98
+ condition="f_offsite_time > ='{} 00:00:00'">
99
+ </datepicker>
100
+ </div>
101
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
102
+ <label class="font_normal_body">结束时间</label>
103
+ <datepicker
104
+ :value.sync="model.f_check_end"
105
+ placeholder='结束时间' style="width: 60%"
106
+ :disabled-days-of-week="[]"
107
+ :format="'yyyy-MM-dd'"
108
+ :show-rest-button="reset"
109
+ v-model="model.f_check_end"
110
+ condition="f_offsite_time <= '{} 23:59:59'">
111
+ </datepicker>
112
+ </div>
113
+ </div>
114
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
115
+ <div slot="modal-header" class="modal-header">
116
+ <h4 class="modal-title">
117
+ 选择计划
118
+ </h4>
119
+ </div>
120
+ <div slot="modal-body" class="modal-body">
121
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
122
+ </div>
123
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
124
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
125
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
126
+ </div>
127
+ </modal>
128
+ </div>
129
+ </criteria>
130
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
131
+ <template partial='head'>
132
+ <tr>
133
+ <th>
134
+ <nobr>检查项</nobr>
135
+ </th>
136
+ <th>
137
+ <nobr>隐患名称</nobr>
138
+ </th>
139
+ <th >
140
+ <nobr>隐患情况</nobr>
141
+ </th>
142
+ <th>
143
+ <nobr>客户编号</nobr>
144
+ </th>
145
+ <th>
146
+ <nobr>客户名称</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>客户电话</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>客户小区</nobr>
153
+ </th>
154
+ <th>
155
+ <data-order field="f_address" name="客户地址"></data-order>
156
+ </th>
157
+
158
+ <th>
159
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
160
+ </th>
161
+ <th>
162
+ <nobr>安检员</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>操作</nobr>
166
+ </th>
167
+ </tr>
168
+ </template>
169
+ <template partial='body'>
170
+ <td style="text-align: center" >{{row.f_device_type}}</td>
171
+ <td style="text-align: center">{{row.f_item_name}}</td>
172
+ <td style="text-align: center;" >
173
+ <button-link type="button" class="btn btn-link"@click="$parent.$parent.$parent.situation(row)">
174
+ {{row.f_item_value}}
175
+ </button-link>
176
+ </td>
177
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
178
+ <td style="text-align: center">{{row.f_user_name}}</td>
179
+ <td style="text-align: center">{{row.f_user_phone}}</td>
180
+ <td style="text-align: center">{{row.f_residential_area}}</td>
181
+ <td style="text-align: center">{{row.f_address}}</td>
182
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
183
+ <td style="text-align: center">{{row.f_checker_name}}</td>
184
+ <td style="text-align: center">
185
+ <button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.details(row)">
186
+ 查看详情
187
+ </button-link>
188
+ </td>
189
+ </template>
190
+ </data-grid>
191
+ </criteria-paged>
192
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
193
+ </div>
194
+ </div>
195
+ <!--隐患情况详情查看 -->
196
+ <modal :show.sync="trouble">
197
+ <div slot="modal-header" class="modal-header">
198
+ <h4 class="modal-title">
199
+ 隐患情况详情
200
+ </h4>
201
+ </div>
202
+ <div slot="modal-body" class="modal-body" v-if="yhpath.f_path">
203
+ <img :src="`/rs/image/file/${yhpath.f_path}`" alt="无照片!!!" width="300" height="320">
204
+ </div>
205
+ <div slot="modal-footer" class="modal-footer">
206
+ <button type="button" class="btn btn-default" @click="trouble = false;yhpath=null">确认</button>
207
+ </div>
208
+ </modal>
209
+ </template>
210
+
211
+ <script>
212
+ import {PagedList} from 'vue-client'
213
+ import Vue from 'vue'
214
+ import co from 'co'
215
+ import AppData from '../../../stores/AppData'
216
+ import * as Util from '../../Util'
217
+ import getNowDate from "../../../utils/getNowDate";
218
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
219
+ import BenzAMRRecorder from 'benz-amr-recorder'
220
+
221
+ //获取json配置文件
222
+ let asyncReady = async function (self) {
223
+ // 获取配置信息
224
+ try {
225
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
226
+ Vue.config = res.data
227
+ self.getDefectInfoConfig(res.data)
228
+ } catch (error) {
229
+ // 忽略704,文件找不到异常R
230
+ if (error.status !== 704) {
231
+ throw error
232
+ }
233
+ }
234
+ }
235
+
236
+ let select = function* (self) {
237
+ let http = new HttpResetClass()
238
+ let getGasman = yield http.load('POST', '/rs/search', {
239
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
240
+ userid: self.$login.f.id
241
+ }, {resolveMsg: null, rejectMsg: null})
242
+ ////tag
243
+ self.checkersid.push({label: '全部', value: ''})
244
+ getGasman.data.forEach((checker) => {
245
+ self.checkersid.push({label: checker.name, value: checker.id})
246
+ })
247
+ }
248
+
249
+ export default {
250
+ title: '隐患明细查看',
251
+ data() {
252
+ let model = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 20, {
253
+ items: "'tcp.*,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value,ditls.f_path,ass.f_user_type,ass.version'",
254
+ tablename: "'t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_userfiles ass on tcp.f_userinfoid=ass.f_userinfo_id LEFT JOIN (SELECT dits.f_is_defect,dits.f_device_id,dits.f_item_name,ditl.f_item_value ,dits.f_path FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id'",
255
+ orderitem: "'f_offsite_time'"
256
+ })
257
+ model.f_plan_id = ''
258
+ model.f_approved = ''
259
+ model.f_entry = ''
260
+ model.f_no_checkplan = ''
261
+ model.f_filialeid = `('${this.$login.f.orgid}')`
262
+ //model.f_check_type='民用'
263
+ // let searchData={
264
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
265
+ // f_approved: this.model.f_approved,
266
+ // f_entry_status: this.model.f_entry,
267
+ // f_no_checkplan:this.model.f_no_checkplan[0],
268
+ // f_filialeid: this.model.f_filialeid,
269
+ // //orderitem: this.model.f_offsite_time,
270
+ // //condition:this.model.condition
271
+ // }
272
+ // model.f_subcompany = this.$login.f.f_fengongsi
273
+
274
+ return {
275
+ isshowd:true,
276
+ audioshow:false,
277
+ trouble:false,
278
+ searchData: {
279
+ condition: "ditls.f_is_defect = 'true' ",
280
+ items: "tcp.f_defect_content,tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value",
281
+ tablename: "t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN ( SELECT dits.f_is_defect,dits.f_device_id, dits.f_item_name, ditl.f_item_value FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id",
282
+ orderitem: "f_offsite_time"
283
+ },
284
+ model: model,
285
+ //searchData:searchData,
286
+ excelHeaders: {
287
+ 'f_device_type': '检查项',
288
+ 'f_item_name': '隐患名称',
289
+ 'f_item_value': '隐患情况',
290
+ 'f_userinfo_code': '客户编号',
291
+ 'f_user_name': '客户姓名',
292
+ 'f_user_phone': '客户类型',
293
+ 'f_residential_area': '小区',
294
+ 'f_address': '客户地址',
295
+ 'f_offsite_time': '安检时间',
296
+ 'f_checker_name': '安检员'
297
+ },
298
+ fun: this.$login.f,
299
+ checkersid: [],
300
+ safetype: [
301
+ {label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
302
+ criteriaShow: false,
303
+ showModal: false,
304
+ f_approval_states: this.$appdata.getParam('安检单审核状态'),
305
+ f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
306
+ f_checkplans: this.$appdata.getParam('有无计划'),
307
+ showcheckmsg: false,
308
+ checkInfo: {},
309
+ orderDefault: "'f_offsite_time'",
310
+ orderFields: {
311
+ f_offsite_time: 'no'
312
+ },
313
+ DefectConfig:'' ,
314
+ DefectConfigs:[{label:'全部',value:''}],
315
+ device_types:[{label:'全部',value:''}],
316
+ sliceArea: [],
317
+ cbc:[],
318
+ yhpath:null
319
+ }
320
+ },
321
+ methods: {
322
+ //隐患情况详情查看
323
+ situation(row){
324
+ //tag
325
+ if (row.f_item_name === '气量异常差值'){
326
+ this.$showMessage('气量异常差值无照片!!!')
327
+ }else {
328
+ this.yhpath=row
329
+ //tag;
330
+ //tag
331
+ this.trouble=true
332
+ }
333
+ },
334
+ details(row) {
335
+ // Vue.$login = {jwt: row.f_checker_id}
336
+ asyncReady(this).then(() => {
337
+ ////tag)
338
+ row.f_upload_state = '已传'
339
+ this.isshowd=false
340
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self',this.isshowdtrue)
341
+ }).catch(
342
+ (respanse) => {
343
+ alert('获取配置文件失败')
344
+ })
345
+ },
346
+ isshowdtrue() {
347
+ this.isshowd = true
348
+ },
349
+ showaudio(){
350
+ //tag
351
+ this.audioshow=!this.audioshow
352
+ //tag
353
+ },
354
+ changeDefect(val){
355
+ try {
356
+ if(val){
357
+ for (var Key1 in this.DefectConfig){
358
+ if(Key1 == val){
359
+ this.DefectConfigs = [{label:'全部',value:''}]
360
+ for(var Key2 in this.DefectConfig[Key1].items){
361
+ this.DefectConfigs.push({label:Key2,value:Key2})
362
+ }
363
+ return
364
+ }
365
+ }
366
+ }else if(val == ''){
367
+ this.DefectConfigs = [{label:'全部',value:''}]
368
+ for (var Key1 in this.DefectConfig){
369
+ for(var Key2 in this.DefectConfig[Key1].items){
370
+ this.DefectConfigs.push({label:Key2,value:Key2})
371
+ }
372
+ }
373
+ }
374
+ }catch (e) {
375
+ //tag
376
+ }
377
+ },
378
+ getDefectInfoConfig(val){
379
+ try {
380
+ if (val.safecheck.DevicesSetConfig != undefined) {
381
+ this.DefectConfig = val.safecheck.DevicesConfig
382
+ // 获取到配置项,进行遍历,获取每个隐患项
383
+ for (var Key1 in this.DefectConfig){
384
+ this.device_types.push({label:Key1,value:Key1})
385
+ for(var Key2 in this.DefectConfig[Key1].items){
386
+ this.DefectConfigs.push({label:Key2,value:Key2})
387
+ }
388
+ }
389
+ // 非民用或其他配置项加入,在进行遍历
390
+ }
391
+ }catch (e) {
392
+ //tag
393
+ }
394
+ },
395
+ getmeterbook(val){
396
+ this.cbc=[]
397
+ this.cbc.push({
398
+ label:'全部',
399
+ value:''
400
+ })
401
+ if (val==''){
402
+
403
+ this.cbcs.forEach(res=>{
404
+ this.cbc.push({
405
+ label:res.f_book_name,
406
+ value:res.id
407
+ })
408
+ })
409
+ }else{
410
+ this.cbcs.forEach(res=>{
411
+ if (res.f_book_slice_area==val){
412
+ this.cbc.push({
413
+ label:res.f_book_name,
414
+ value:res.id
415
+ })
416
+ }
417
+ })
418
+ }
419
+ },
420
+ Mreadibook(val){
421
+ ////tag
422
+ ////tag
423
+ this.sliceArea=[]
424
+ if (val){
425
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
426
+ items: 'name',
427
+ tablename: 't_zone',
428
+ condition: `parentid in ${val}`,
429
+ orderitem: 'id'
430
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
431
+ this.sliceArea.push({
432
+ label:'全部',
433
+ value:''
434
+ })
435
+ res.data.forEach(ress=>{
436
+ this.sliceArea.push({
437
+ label:ress.name,
438
+ value:ress.name
439
+ })
440
+ })
441
+
442
+ })
443
+ }
444
+ },
445
+ getAllMeterBook(val){
446
+ ////tag
447
+ ////tag
448
+ this.cbcs=[]
449
+ if (val){
450
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
451
+ items: 'f_book_name,f_book_slice_area,id',
452
+ tablename: 't_meter_book',
453
+ condition: `f_filiale_id in ${val}`,
454
+ orderitem: 'id'
455
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
456
+ res.data.forEach(ress=>{
457
+ this.cbcs.push({
458
+ id:ress.id,
459
+ f_book_name:ress.f_book_name,
460
+ f_book_slice_area:ress.f_book_slice_area
461
+ })
462
+ })
463
+ this.cbc=[]
464
+ this.cbc.push({
465
+ label:'全部',
466
+ value:''
467
+ })
468
+ this.cbcs.forEach(res=>{
469
+ this.cbc.push({
470
+ label:res.f_book_name,
471
+ value:res.id
472
+ })
473
+ })
474
+ })
475
+ }
476
+ },
477
+ getRes(obj) {
478
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
479
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
480
+ this.Mreadibook(this.model.f_filialeid)
481
+ this.getAllMeterBook(this.model.f_filialeid)
482
+ //this.$refs.paged.$refs.criteria.search()
483
+ },
484
+ readConfig() {
485
+ let gen = asyncReady(this)
486
+ return co(gen)
487
+ },
488
+ showChooser() {
489
+ this.showModal = true
490
+ },
491
+ hidden() {
492
+ this.criteriaShow = !this.criteriaShow
493
+ },
494
+ refresh() {
495
+ this.$refs.paged.$refs.criteria.search()
496
+ },
497
+ ok() {
498
+ this.showModal = false
499
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
500
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
501
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
502
+ }
503
+ },
504
+ cancel() {
505
+ this.showModal = false
506
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
507
+ this.model.f_plan_id=''
508
+ },
509
+ print(row) {
510
+ this.showcheckmsg = true
511
+ this.checkInfo = row
512
+ },
513
+ sort(field, rule) {
514
+ // 将所有排序方式设为不排序,实现相互排斥
515
+ for (let key in this.orderFields) {
516
+ if (key === field) {
517
+ this.orderFields[key] = rule
518
+ } else {
519
+ this.orderFields[key] = 'no'
520
+ }
521
+ }
522
+ // 如果新规则不排序,还原为默认排序
523
+ if (rule === 'no') {
524
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
525
+ } else {
526
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
527
+ }
528
+ this.search()
529
+ },
530
+ search() {
531
+ this.$refs.paged.$refs.criteria.search()
532
+ },
533
+ selfSearch(args) {
534
+ ////tag
535
+ args.condition+=" and ditls.f_is_defect = 'true' "
536
+ this.model.search(args.condition, args.model, args.condValue)
537
+ }
538
+ },
539
+ ready() {
540
+ ////tag
541
+ this.readConfig()
542
+ this.function = this.f
543
+ ////tag
544
+
545
+ let gen = select(this)
546
+ //this.pianqu()
547
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
548
+ co(gen)
549
+ },
550
+ watch: {
551
+ 'model.f_no_checkplan'(val) {
552
+ if (this.model.f_no_checkplan){
553
+ this.searchData.f_no_checkplan = val
554
+ }
555
+ if (this.model.f_no_checkplan == '有计划安检') {
556
+
557
+ this.showChooser()
558
+ }
559
+ },
560
+ 'model.condition'(val) {
561
+ if (val) {
562
+ this.searchData.condition = val
563
+ }
564
+
565
+ },
566
+ 'model.f_entry'(val) {
567
+ if (val) {
568
+ this.searchData.f_entry_status = val
569
+ }
570
+ },
571
+ 'model.f_plan_id'(val) {
572
+ if (val) {
573
+ this.searchData.f_plan_id = val
574
+ }
575
+ },
576
+ 'model.f_slice_area'(val) {
577
+ if (val) {
578
+
579
+ }
580
+ },
581
+ 'model.f_approved'(val) {
582
+ if (val) {
583
+ this.searchData.f_approved = val
584
+ }
585
+ },
586
+ }
587
+
588
+ }
589
+ </script>