safecheck-client 3.0.30-62-t11 → 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 (244) 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 +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  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/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,543 +1,543 @@
1
- <template>
2
- <div class="flex-row">
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 = '{}'">
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-safe :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- :choose-col="true"
38
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="ReportCheckItemList" template-name='安检结果明细导出'></export-excel-safe>
39
-
40
- <button class="button_spacing button_search" @click="search()">查询</button>
41
- <div style="float: right" class="button_spacing"
42
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
- @click="$parent.$parent.hidden()"></div>
44
- </div>
45
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
46
- <label class="font_normal_body">开始时间</label>
47
- <datepicker
48
- :value.sync="model.f_check_start"
49
- placeholder='开始时间' style="width: 60%"
50
- :disabled-days-of-week="[]"
51
- :format="'yyyy-MM-dd'"
52
- :show-rest-button="reset"
53
- v-model="model.f_check_start"
54
- condition="f_offsite_time > ='{} 00:00:00'">
55
- </datepicker>
56
- </div>
57
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
58
- <label class="font_normal_body">结束时间</label>
59
- <datepicker
60
- :value.sync="model.f_check_end"
61
- placeholder='结束时间' style="width: 60%"
62
- :disabled-days-of-week="[]"
63
- :format="'yyyy-MM-dd'"
64
- :show-rest-button="reset"
65
- v-model="model.f_check_end"
66
- condition="f_offsite_time <= '{} 23:59:59'">
67
- </datepicker>
68
- </div>
69
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
70
- <label class="font_normal_body">安检状态</label>
71
- <v-select id="f_entry"
72
- class="select_list select"
73
- placeholder='安检状态' style="width: 60%"
74
- v-model='model.f_entry'
75
- :value.sync="$parent.$parent.model.f_entry"
76
- :options='$parent.$parent.f_entry_status'
77
- condition="f_entry_status = '{}'"
78
- :value-single="true"
79
- close-on-select clear-button></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
- <datepicker
84
- :value.sync="model.f_check_gasstart"
85
- placeholder='开始时间' style="width: 60%"
86
- :disabled-days-of-week="[]"
87
- :format="'yyyy-MM-dd'"
88
- :show-rest-button="reset"
89
- v-model="model.f_check_gasstart"
90
- condition="f_gas_date > ='{} 00:00:00'">
91
- </datepicker>
92
- </div>
93
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
94
- <label class="font_normal_body">开户时间</label>
95
- <datepicker
96
- :value.sync="model.f_check_gasend"
97
- placeholder='结束时间' style="width: 60%"
98
- :disabled-days-of-week="[]"
99
- :format="'yyyy-MM-dd'"
100
- :show-rest-button="reset"
101
- v-model="model.f_check_gasend"
102
- condition="f_gas_date <= '{} 23:59:59'">
103
- </datepicker>
104
- </div>
105
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
106
- <label class="font_normal_body">气表品牌</label>
107
- <v-select
108
- class="select_list select"
109
- placeholder='气表品牌' style="width: 60%"
110
- v-model='model.tableBrand'
111
- :value.sync="model.tableBrand"
112
- :options='$parent.$parent.tableBrands'
113
- condition="f_rqb_qbpp = '{}'"
114
- :value-single="true"
115
- close-on-select clear-button></v-select>
116
- </div>
117
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
118
- <role-selector-safe
119
- role-name="安检员"
120
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
121
- @re-res="$parent.$parent.getRes"
122
- :value.sync="model.f_checker_id"
123
- v-model="model.f_checker_id"
124
- condition="f_checker_name = '{}'">
125
- </role-selector-safe>
126
- </div>
127
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
128
- <label class="font_normal_body">未用燃气</label>
129
- <v-select class="select_list select"
130
- placeholder='请选择' style="width: 60%"
131
- :value.sync="model.f_usegas" v-model="model.f_usegas"
132
- :options='$parent.$parent.usegas'
133
- filer-key="name"
134
- close-on-select clear-button
135
- condition="f_usegas='{}'"
136
- :value-single="true">
137
- </v-select>
138
- </div>
139
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
140
- <label class="font_normal_body">导&ensp;出&ensp;项</label>
141
- <v-select class="select_list select"
142
- placeholder='请选择' style="width: 60%"
143
- :value.sync="$parent.$parent.f_excel_items" v-model="$parent.$parent.f_excel_items"
144
- :options='$parent.$parent.excelitems'
145
- :multiple="true"
146
- filer-key="name"
147
- clear-button>
148
- </v-select>
149
- </div>
150
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
151
- <div slot="modal-header" class="modal-header">
152
- <h4 class="modal-title">
153
- 选择计划
154
- </h4>
155
- </div>
156
- <div slot="modal-body" class="modal-body">
157
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
158
- </div>
159
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
160
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
161
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
162
- </div>
163
- </modal>
164
- </div>
165
- </div>
166
- </criteria>
167
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
168
- <template partial='head'>
169
- <tr>
170
- <th>
171
- <nobr>客户编号</nobr>
172
- </th>
173
- <th>
174
- <nobr>客户名称</nobr>
175
- </th>
176
- <th>
177
- <nobr>客户表号</nobr>
178
- </th>
179
- <th>
180
- <nobr>气表品牌</nobr>
181
- </th>
182
- <th>
183
- <nobr>客户电话</nobr>
184
- </th>
185
- <th>
186
- <nobr>客户类型</nobr>
187
- </th>
188
- <th>
189
- <nobr>客户地址</nobr>
190
- </th>
191
- <th>
192
- <nobr>安检状态</nobr>
193
- </th>
194
- <th>
195
- <nobr>用气状态</nobr>
196
- </th>
197
- <th>
198
- <data-order field="f_offsite_time" name="安检时间"></data-order>
199
- </th>
200
- <th>
201
- <nobr>安检员</nobr>
202
- </th>
203
- <th>
204
- <nobr>备注</nobr>
205
- </th>
206
- <th>
207
- <nobr>开户时间</nobr>
208
- </th>
209
- </tr>
210
- </template>
211
- <template partial='body'>
212
-
213
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
214
- <td style="text-align: center">{{row.f_user_name}}</td>
215
- <td style="text-align: center">{{row.f_meternumber}}</td>
216
- <td style="text-align: center">{{row.f_meter_brand}}</td>
217
- <td style="text-align: center">{{row.f_user_phone}}</td>
218
- <td style="text-align: center">{{row.f_check_type}}</td>
219
- <td style="text-align: center">{{ row.f_address }}</td>
220
- <td style="text-align: center">{{ row.f_entry_status }}</td>
221
- <td style="text-align: center">{{ row.f_usegas }}</td>
222
- <td style="text-align: center">{{ row.f_offsite_time }}</td>
223
- <td style="text-align: center">{{ row.f_checker_name }}</td>
224
- <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
225
- <td style="text-align: center">{{ row.f_gas_date }}</td>
226
- </template>
227
- </data-grid>
228
- </criteria-paged>
229
- </div>
230
- </div>
231
- </template>
232
-
233
- <script>
234
- import {PagedList} from 'vue-client'
235
- import Vue from 'vue'
236
- import co from 'co'
237
- import AppData from '../../../stores/AppData'
238
- import * as Util from '../../Util'
239
- import getNowDate from "../../../utils/getNowDate";
240
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
241
- import BenzAMRRecorder from 'benz-amr-recorder'
242
-
243
- const Excelconfig = {
244
- '燃气表': {
245
- 'f_rqb_jbbh':'基表编号',
246
- 'f_rqb_qbpp': '气表品牌',
247
- 'f_rqb_qpxh': '气表型号',
248
- 'f_rqb_jqfx': '进气方向',
249
- 'f_rqb_lgql': '累购气量',
250
- 'f_rqb_lgje': '累购金额',
251
- 'f_rqb_yyql': '已用气量',
252
- 'f_rqb_yyje': '已用金额',
253
- 'f_rqb_syql': '剩余气量',
254
- 'f_rqb_syje': '剩余金额',
255
- 'f_rqb_qlyccz': '气量异常差值',
256
- 'f_rqb_jeyccz': '金额异常差值',
257
- 'f_rqb_bxh': '表箱号',
258
- 'f_rqb_scrq': '生产日期',
259
- 'f_rqb_kssyrq': '开始使用日期',
260
- 'f_rqb_lq': '表漏气',
261
- 'f_rqb_ztb': '直通表',
262
- 'f_rqb_sb': '死表',
263
- 'f_rqb_fs': '表腐蚀',
264
- 'f_rqb_qbgb': '气不过表',
265
- 'f_rqb_kbbh': '卡表表号',
266
- 'f_rqb_bsh': '表损坏',
267
- 'f_rqb_jbds':'机械读数'
268
- },
269
- '立管': {
270
- 'f_lg_fs': '立管腐蚀',
271
- 'f_lg_bg': '立管包裹',
272
- 'f_lg_yxylsfzc': '立管运行压力是否正常',
273
- 'f_lg_jglq':'立管接口漏气'
274
- },
275
- '阀门': {
276
- 'f_fm_bqfsflq': '表前阀是否漏气',
277
- 'f_fm_bqfsfbg': '表前阀是否包裹',
278
- 'f_fm_zbfsflq': '自闭阀是否漏气',
279
- 'f_fm_zbfsfbg':'自闭阀是否包裹',
280
- 'f_fm_zbfsfsh': '自闭阀是否损坏',
281
- 'f_fm_zqfsflq': '灶前阀是否漏气',
282
- 'f_fm_fmxs':'阀门形式'
283
- },
284
- '管道': {
285
- 'f_gd_lq': '管道漏气',
286
- 'f_gd_ckt': '管道穿客厅',
287
- 'f_gd_cws': '管道穿卧室',
288
- 'f_gd_ydqgj':'管道与电气过近',
289
- 'f_gd_af': '管道暗封',
290
- 'f_gd_sg': '管道私改',
291
- 'f_gd_cfty':'管道厨房他用',
292
- 'f_gd_gdk': '管道固定卡',
293
- 'f_gd_rg':'管道软管'
294
- },
295
- '报警器': {
296
- 'f_bjq_sfaz':'报警器是否安装'
297
- },
298
- '灶具': {
299
- 'f_zj_sbpp': '灶具设备品牌',
300
- 'f_zj_sbxh': '灶具设备型号',
301
- 'f_zj_scrq': '灶具生产日期',
302
- 'f_zj_kssyrq':'灶具开始使用日期',
303
- 'f_zj_rgcd': '灶具软管长度(米)',
304
- 'f_zj_qysfpp': '灶具气源是否匹配',
305
- 'f_zj_sfsh':'灶具是否损坏',
306
- 'f_zj_sfbf': '灶具是否报废',
307
- 'f_zj_yqmjlbz':'灶具与墙面距离不足',
308
- 'f_zj_xhbhsfzc': '灶具熄火保护是否正常',
309
- 'f_zj_rgcz': '灶具软管材质',
310
- 'f_zj_zjxs':'灶具灶具形成',
311
- 'f_zj_yhdabh': '灶具用户档案编号',
312
- 'f_zj_ygnx':'灶具已过年限'
313
- },
314
- '热水器': {
315
- 'f_rsq_sbpp': '热水器设备品牌',
316
- 'f_rsq_sbxh': '热水器设备型号',
317
- 'f_rsq_kssyrq': '热水器开始使用日期',
318
- 'f_rsq_rgcd':'热水器软管长度(米)',
319
- 'f_rsq_lq': '热水器漏气',
320
- 'f_rsq_yd': '热水器烟道',
321
- 'f_rsq_rgcz':'热水器软管材质',
322
- 'f_rsq_azwz': '热水器安装位置'
323
- },
324
- '壁挂炉': {
325
- 'f_bgl_sbpp': '壁挂炉设备品牌',
326
- 'f_bgl_sbxh': '壁挂炉设备型号',
327
- 'f_bgl_kssyrq': '壁挂炉开始使用日期',
328
- 'f_bgl_rgcd':'壁挂炉软管长度(米)',
329
- 'f_bgl_yd': '壁挂炉烟道',
330
- 'f_bgl_czxx': '壁挂炉材质选项',
331
- 'f_bgl_azwz':'壁挂炉安装位置'
332
- },
333
- '隐患': {
334
- 'f_yh_tfbl': '通风不良',
335
- 'f_yh_rqssazzws': '燃气设施安装在卧室/卫生间',
336
- 'f_yh_rgcg': '软管超过两米',
337
- 'f_yh_rgrh':'软管老化',
338
- 'f_yh_dewy': '第二火源',
339
- 'f_yh_dfyrybp': '堆放易燃易爆品',
340
- 'f_yh_rgcq':'软管穿墙/棚顶',
341
- 'f_yh_rgyjt': '软管有接头',
342
- 'f_yh_rglhygj': '软管离火源过近',
343
- 'f_yh_kfscf': '开放式厨房',
344
- 'f_yh_rqgddzzw':'燃气管道/燃气表搭挂重物',
345
- 'f_yh_rqssgdblg': '燃气设施固定不牢固',
346
- 'f_yh_zdyh': '重点用户',
347
- 'f_yh_dxcr':'电线缠绕',
348
- 'f_yh_ddbgf': '断电不关阀',
349
- 'f_yh_ddbg': '吊顶包管',
350
- 'f_yh_sjrrq': '私接热水器或壁挂炉',
351
- 'f_yh_sflq':'是否漏气',
352
- 'f_yh_lqwz': '漏气位置',
353
- 'f_yh_qlyc': '气量异常',
354
- 'f_yh_sjst':'私接三通',
355
- 'f_yh_sjsyz':'私接商用灶'
356
- }
357
- }
358
-
359
- export default {
360
- title: '安检项明细导出',
361
- data() {
362
- let model = new PagedList('api/af-safecheck/sql/ReportCheckItemList', 20)
363
- return {
364
- tableBrands: [{label: '全部', value: ''}],
365
- audioshow: false,
366
- safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
367
- searchData: {
368
- condition: "1=1",
369
- orderitem: "f_offsite_time desc",
370
- f_plan_id: "",
371
- f_approved: '',
372
- f_entry_status: '',
373
- f_no_checkplan: '',
374
- f_filialeid: `('${this.$login.f.orgid}')`
375
- },
376
- model: model,
377
- excelHeadersStr:{
378
- 'f_userinfo_code': '客户编号',
379
- 'f_user_name': '客户姓名',
380
- 'f_meternumber':'客户表号',
381
- 'f_user_phone':'客户电话',
382
- 'f_check_type': '客户类型',
383
- 'f_residential_area': '小区',
384
- 'f_address': '客户地址',
385
- 'f_entry_status': '安检状态',
386
- 'f_usegas': '用气状态',
387
- 'f_offsite_time': '安检时间',
388
- 'f_checker_name': '安检员',
389
- 'f_repair_approved_note': '备注',
390
- 'f_gas_date': '开户时间',
391
- 'f_plan_name': '计划名称'
392
- },
393
- excelHeaders: {
394
- 'f_userinfo_code': '客户编号',
395
- 'f_user_name': '客户姓名',
396
- 'f_meternumber':'客户表号',
397
- 'f_user_phone':'客户电话',
398
- 'f_check_type': '客户类型',
399
- 'f_residential_area': '小区',
400
- 'f_address': '客户地址',
401
- 'f_entry_status': '安检状态',
402
- 'f_usegas': '用气状态',
403
- 'f_offsite_time': '安检时间',
404
- 'f_checker_name': '安检员',
405
- 'f_repair_approved_note': '备注',
406
- 'f_gas_date': '开户时间',
407
- 'f_plan_name': '计划名称'
408
- },
409
- fun: this.$login.f,
410
- pcds:[],
411
- checkersid: [],
412
- f_excel_items:[],
413
- excelitems:this.$appdata.getParam('安检结果导出项'),
414
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
415
- criteriaShow: false,
416
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
417
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
418
- showModal: false,
419
- safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
420
- f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
421
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
422
- no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
423
- usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
424
- showcheckmsg: false,
425
- checkInfo: {},
426
- orderDefault: "'f_offsite_time'",
427
- orderFields: {
428
- f_offsite_time: 'no'
429
- },
430
- sliceArea: [],
431
- cbc:[]
432
- }
433
- },
434
- methods: {
435
- //气表品牌查询
436
- getTableBrands() {
437
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
438
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
439
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
440
- resp.data.forEach((result) => {
441
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
442
- })
443
- })
444
- },
445
- getRes(obj) {
446
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
447
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
448
- },
449
- showChooser() {
450
- this.showModal = true
451
- },
452
- hidden() {
453
- this.criteriaShow = !this.criteriaShow
454
- },
455
- ok() {
456
- this.showModal = false
457
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
458
- this.$refs.paged.$refs.criteria.$refs.modal.f_plan_name = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
459
- this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
460
- }
461
- },
462
- cancel() {
463
- this.showModal = false
464
- this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan = {f_plan_name: '', id: ''}
465
- this.$refs.paged.$refs.criteria.$refs.modal.f_plan_id=''
466
- },
467
- sort(field, rule) {
468
- // 将所有排序方式设为不排序,实现相互排斥
469
- for (let key in this.orderFields) {
470
- if (key === field) {
471
- this.orderFields[key] = rule
472
- } else {
473
- this.orderFields[key] = 'no'
474
- }
475
- }
476
- // 如果新规则不排序,还原为默认排序
477
- if (rule === 'no') {
478
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
479
- } else {
480
- this.model.paramSource.orderitem = `'${field} ${rule}'`
481
- }
482
- this.search()
483
- },
484
- search() {
485
- this.$refs.paged.$refs.criteria.search()
486
- },
487
- selfSearch(args) {
488
- ////tag
489
- //args.condition+=" and f_check_type='民用'"
490
- if(args.model.f_check_date){
491
- const daysBefore = Number(args.model.f_check_date);
492
- if ( daysBefore > 0) {
493
- // 获取当前日期
494
- const now = new Date();
495
- // 计算三天前的日期
496
- const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
497
- // 如果需要格式化日期,可以使用Date对象的方法
498
- var formattedDate = threeDaysBefore.toISOString().split('T')[0];
499
- args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
500
- } else {
501
- console.error('f_check_date不是一个有效的正整数');
502
- }
503
- }
504
- this.model.search(args.condition, args.model, args.condValue)
505
- }
506
- },
507
-
508
- ready() {
509
- ////tag
510
- this.function = this.f
511
- ////tag
512
- //获取气表品牌
513
- this.getTableBrands()
514
- // let gen = select(this)
515
- // co(gen)
516
- },
517
- watch: {
518
- 'model.f_no_checkplan'(val) {
519
- if (this.model.f_no_checkplan){
520
- this.searchData.f_no_checkplan = val
521
- }
522
- if (this.model.f_no_checkplan == '有计划安检') {
523
-
524
- this.showChooser()
525
- }
526
- },
527
- 'model.condition'(val) {
528
- if (val) {
529
- this.searchData.condition = val
530
- }
531
- },
532
- 'f_excel_items'(val){
533
- this.excelHeaders = JSON.parse(JSON.stringify(this.excelHeadersStr))
534
- if(val.length > 0){
535
- val.forEach((item)=>{
536
- this.excelHeaders = Object.assign(this.excelHeaders, JSON.parse(JSON.stringify(this.excelHeaders)),Excelconfig[item])
537
- })
538
- }
539
- }
540
- }
541
-
542
- }
543
- </script>
1
+ <template>
2
+ <div class="flex-row">
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 = '{}'">
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-safe :data="$parent.$parent.searchData"
36
+ :field="$parent.$parent.excelHeaders"
37
+ :choose-col="true"
38
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="ReportCheckItemList" template-name='安检结果明细导出'></export-excel-safe>
39
+
40
+ <button class="button_spacing button_search" @click="search()">查询</button>
41
+ <div style="float: right" class="button_spacing"
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()"></div>
44
+ </div>
45
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
46
+ <label class="font_normal_body">开始时间</label>
47
+ <datepicker
48
+ :value.sync="model.f_check_start"
49
+ placeholder='开始时间' style="width: 60%"
50
+ :disabled-days-of-week="[]"
51
+ :format="'yyyy-MM-dd'"
52
+ :show-rest-button="reset"
53
+ v-model="model.f_check_start"
54
+ condition="f_offsite_time > ='{} 00:00:00'">
55
+ </datepicker>
56
+ </div>
57
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
58
+ <label class="font_normal_body">结束时间</label>
59
+ <datepicker
60
+ :value.sync="model.f_check_end"
61
+ placeholder='结束时间' style="width: 60%"
62
+ :disabled-days-of-week="[]"
63
+ :format="'yyyy-MM-dd'"
64
+ :show-rest-button="reset"
65
+ v-model="model.f_check_end"
66
+ condition="f_offsite_time <= '{} 23:59:59'">
67
+ </datepicker>
68
+ </div>
69
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
70
+ <label class="font_normal_body">安检状态</label>
71
+ <v-select id="f_entry"
72
+ class="select_list select"
73
+ placeholder='安检状态' style="width: 60%"
74
+ v-model='model.f_entry'
75
+ :value.sync="$parent.$parent.model.f_entry"
76
+ :options='$parent.$parent.f_entry_status'
77
+ condition="f_entry_status = '{}'"
78
+ :value-single="true"
79
+ close-on-select clear-button></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
+ <datepicker
84
+ :value.sync="model.f_check_gasstart"
85
+ placeholder='开始时间' style="width: 60%"
86
+ :disabled-days-of-week="[]"
87
+ :format="'yyyy-MM-dd'"
88
+ :show-rest-button="reset"
89
+ v-model="model.f_check_gasstart"
90
+ condition="f_gas_date > ='{} 00:00:00'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
94
+ <label class="font_normal_body">开户时间</label>
95
+ <datepicker
96
+ :value.sync="model.f_check_gasend"
97
+ placeholder='结束时间' style="width: 60%"
98
+ :disabled-days-of-week="[]"
99
+ :format="'yyyy-MM-dd'"
100
+ :show-rest-button="reset"
101
+ v-model="model.f_check_gasend"
102
+ condition="f_gas_date <= '{} 23:59:59'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
106
+ <label class="font_normal_body">气表品牌</label>
107
+ <v-select
108
+ class="select_list select"
109
+ placeholder='气表品牌' style="width: 60%"
110
+ v-model='model.tableBrand'
111
+ :value.sync="model.tableBrand"
112
+ :options='$parent.$parent.tableBrands'
113
+ condition="f_rqb_qbpp = '{}'"
114
+ :value-single="true"
115
+ close-on-select clear-button></v-select>
116
+ </div>
117
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
118
+ <role-selector-safe
119
+ role-name="安检员"
120
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
121
+ @re-res="$parent.$parent.getRes"
122
+ :value.sync="model.f_checker_id"
123
+ v-model="model.f_checker_id"
124
+ condition="f_checker_name = '{}'">
125
+ </role-selector-safe>
126
+ </div>
127
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
128
+ <label class="font_normal_body">未用燃气</label>
129
+ <v-select class="select_list select"
130
+ placeholder='请选择' style="width: 60%"
131
+ :value.sync="model.f_usegas" v-model="model.f_usegas"
132
+ :options='$parent.$parent.usegas'
133
+ filer-key="name"
134
+ close-on-select clear-button
135
+ condition="f_usegas='{}'"
136
+ :value-single="true">
137
+ </v-select>
138
+ </div>
139
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
140
+ <label class="font_normal_body">导&ensp;出&ensp;项</label>
141
+ <v-select class="select_list select"
142
+ placeholder='请选择' style="width: 60%"
143
+ :value.sync="$parent.$parent.f_excel_items" v-model="$parent.$parent.f_excel_items"
144
+ :options='$parent.$parent.excelitems'
145
+ :multiple="true"
146
+ filer-key="name"
147
+ clear-button>
148
+ </v-select>
149
+ </div>
150
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
151
+ <div slot="modal-header" class="modal-header">
152
+ <h4 class="modal-title">
153
+ 选择计划
154
+ </h4>
155
+ </div>
156
+ <div slot="modal-body" class="modal-body">
157
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
158
+ </div>
159
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
160
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
161
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
162
+ </div>
163
+ </modal>
164
+ </div>
165
+ </div>
166
+ </criteria>
167
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
168
+ <template partial='head'>
169
+ <tr>
170
+ <th>
171
+ <nobr>客户编号</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>客户名称</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>客户表号</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>气表品牌</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>客户电话</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>客户类型</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>客户地址</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>安检状态</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>用气状态</nobr>
196
+ </th>
197
+ <th>
198
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
199
+ </th>
200
+ <th>
201
+ <nobr>安检员</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>备注</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>开户时间</nobr>
208
+ </th>
209
+ </tr>
210
+ </template>
211
+ <template partial='body'>
212
+
213
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
214
+ <td style="text-align: center">{{row.f_user_name}}</td>
215
+ <td style="text-align: center">{{row.f_meternumber}}</td>
216
+ <td style="text-align: center">{{row.f_meter_brand}}</td>
217
+ <td style="text-align: center">{{row.f_user_phone}}</td>
218
+ <td style="text-align: center">{{row.f_check_type}}</td>
219
+ <td style="text-align: center">{{ row.f_address }}</td>
220
+ <td style="text-align: center">{{ row.f_entry_status }}</td>
221
+ <td style="text-align: center">{{ row.f_usegas }}</td>
222
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
223
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
224
+ <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
225
+ <td style="text-align: center">{{ row.f_gas_date }}</td>
226
+ </template>
227
+ </data-grid>
228
+ </criteria-paged>
229
+ </div>
230
+ </div>
231
+ </template>
232
+
233
+ <script>
234
+ import {PagedList} from 'vue-client'
235
+ import Vue from 'vue'
236
+ import co from 'co'
237
+ import AppData from '../../../stores/AppData'
238
+ import * as Util from '../../Util'
239
+ import getNowDate from "../../../utils/getNowDate";
240
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
241
+ import BenzAMRRecorder from 'benz-amr-recorder'
242
+
243
+ const Excelconfig = {
244
+ '燃气表': {
245
+ 'f_rqb_jbbh':'基表编号',
246
+ 'f_rqb_qbpp': '气表品牌',
247
+ 'f_rqb_qpxh': '气表型号',
248
+ 'f_rqb_jqfx': '进气方向',
249
+ 'f_rqb_lgql': '累购气量',
250
+ 'f_rqb_lgje': '累购金额',
251
+ 'f_rqb_yyql': '已用气量',
252
+ 'f_rqb_yyje': '已用金额',
253
+ 'f_rqb_syql': '剩余气量',
254
+ 'f_rqb_syje': '剩余金额',
255
+ 'f_rqb_qlyccz': '气量异常差值',
256
+ 'f_rqb_jeyccz': '金额异常差值',
257
+ 'f_rqb_bxh': '表箱号',
258
+ 'f_rqb_scrq': '生产日期',
259
+ 'f_rqb_kssyrq': '开始使用日期',
260
+ 'f_rqb_lq': '表漏气',
261
+ 'f_rqb_ztb': '直通表',
262
+ 'f_rqb_sb': '死表',
263
+ 'f_rqb_fs': '表腐蚀',
264
+ 'f_rqb_qbgb': '气不过表',
265
+ 'f_rqb_kbbh': '卡表表号',
266
+ 'f_rqb_bsh': '表损坏',
267
+ 'f_rqb_jbds':'机械读数'
268
+ },
269
+ '立管': {
270
+ 'f_lg_fs': '立管腐蚀',
271
+ 'f_lg_bg': '立管包裹',
272
+ 'f_lg_yxylsfzc': '立管运行压力是否正常',
273
+ 'f_lg_jglq':'立管接口漏气'
274
+ },
275
+ '阀门': {
276
+ 'f_fm_bqfsflq': '表前阀是否漏气',
277
+ 'f_fm_bqfsfbg': '表前阀是否包裹',
278
+ 'f_fm_zbfsflq': '自闭阀是否漏气',
279
+ 'f_fm_zbfsfbg':'自闭阀是否包裹',
280
+ 'f_fm_zbfsfsh': '自闭阀是否损坏',
281
+ 'f_fm_zqfsflq': '灶前阀是否漏气',
282
+ 'f_fm_fmxs':'阀门形式'
283
+ },
284
+ '管道': {
285
+ 'f_gd_lq': '管道漏气',
286
+ 'f_gd_ckt': '管道穿客厅',
287
+ 'f_gd_cws': '管道穿卧室',
288
+ 'f_gd_ydqgj':'管道与电气过近',
289
+ 'f_gd_af': '管道暗封',
290
+ 'f_gd_sg': '管道私改',
291
+ 'f_gd_cfty':'管道厨房他用',
292
+ 'f_gd_gdk': '管道固定卡',
293
+ 'f_gd_rg':'管道软管'
294
+ },
295
+ '报警器': {
296
+ 'f_bjq_sfaz':'报警器是否安装'
297
+ },
298
+ '灶具': {
299
+ 'f_zj_sbpp': '灶具设备品牌',
300
+ 'f_zj_sbxh': '灶具设备型号',
301
+ 'f_zj_scrq': '灶具生产日期',
302
+ 'f_zj_kssyrq':'灶具开始使用日期',
303
+ 'f_zj_rgcd': '灶具软管长度(米)',
304
+ 'f_zj_qysfpp': '灶具气源是否匹配',
305
+ 'f_zj_sfsh':'灶具是否损坏',
306
+ 'f_zj_sfbf': '灶具是否报废',
307
+ 'f_zj_yqmjlbz':'灶具与墙面距离不足',
308
+ 'f_zj_xhbhsfzc': '灶具熄火保护是否正常',
309
+ 'f_zj_rgcz': '灶具软管材质',
310
+ 'f_zj_zjxs':'灶具灶具形成',
311
+ 'f_zj_yhdabh': '灶具用户档案编号',
312
+ 'f_zj_ygnx':'灶具已过年限'
313
+ },
314
+ '热水器': {
315
+ 'f_rsq_sbpp': '热水器设备品牌',
316
+ 'f_rsq_sbxh': '热水器设备型号',
317
+ 'f_rsq_kssyrq': '热水器开始使用日期',
318
+ 'f_rsq_rgcd':'热水器软管长度(米)',
319
+ 'f_rsq_lq': '热水器漏气',
320
+ 'f_rsq_yd': '热水器烟道',
321
+ 'f_rsq_rgcz':'热水器软管材质',
322
+ 'f_rsq_azwz': '热水器安装位置'
323
+ },
324
+ '壁挂炉': {
325
+ 'f_bgl_sbpp': '壁挂炉设备品牌',
326
+ 'f_bgl_sbxh': '壁挂炉设备型号',
327
+ 'f_bgl_kssyrq': '壁挂炉开始使用日期',
328
+ 'f_bgl_rgcd':'壁挂炉软管长度(米)',
329
+ 'f_bgl_yd': '壁挂炉烟道',
330
+ 'f_bgl_czxx': '壁挂炉材质选项',
331
+ 'f_bgl_azwz':'壁挂炉安装位置'
332
+ },
333
+ '隐患': {
334
+ 'f_yh_tfbl': '通风不良',
335
+ 'f_yh_rqssazzws': '燃气设施安装在卧室/卫生间',
336
+ 'f_yh_rgcg': '软管超过两米',
337
+ 'f_yh_rgrh':'软管老化',
338
+ 'f_yh_dewy': '第二火源',
339
+ 'f_yh_dfyrybp': '堆放易燃易爆品',
340
+ 'f_yh_rgcq':'软管穿墙/棚顶',
341
+ 'f_yh_rgyjt': '软管有接头',
342
+ 'f_yh_rglhygj': '软管离火源过近',
343
+ 'f_yh_kfscf': '开放式厨房',
344
+ 'f_yh_rqgddzzw':'燃气管道/燃气表搭挂重物',
345
+ 'f_yh_rqssgdblg': '燃气设施固定不牢固',
346
+ 'f_yh_zdyh': '重点用户',
347
+ 'f_yh_dxcr':'电线缠绕',
348
+ 'f_yh_ddbgf': '断电不关阀',
349
+ 'f_yh_ddbg': '吊顶包管',
350
+ 'f_yh_sjrrq': '私接热水器或壁挂炉',
351
+ 'f_yh_sflq':'是否漏气',
352
+ 'f_yh_lqwz': '漏气位置',
353
+ 'f_yh_qlyc': '气量异常',
354
+ 'f_yh_sjst':'私接三通',
355
+ 'f_yh_sjsyz':'私接商用灶'
356
+ }
357
+ }
358
+
359
+ export default {
360
+ title: '安检项明细导出',
361
+ data() {
362
+ let model = new PagedList('api/af-safecheck/sql/ReportCheckItemList', 20)
363
+ return {
364
+ tableBrands: [{label: '全部', value: ''}],
365
+ audioshow: false,
366
+ safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
367
+ searchData: {
368
+ condition: "1=1",
369
+ orderitem: "f_offsite_time desc",
370
+ f_plan_id: "",
371
+ f_approved: '',
372
+ f_entry_status: '',
373
+ f_no_checkplan: '',
374
+ f_filialeid: `('${this.$login.f.orgid}')`
375
+ },
376
+ model: model,
377
+ excelHeadersStr:{
378
+ 'f_userinfo_code': '客户编号',
379
+ 'f_user_name': '客户姓名',
380
+ 'f_meternumber':'客户表号',
381
+ 'f_user_phone':'客户电话',
382
+ 'f_check_type': '客户类型',
383
+ 'f_residential_area': '小区',
384
+ 'f_address': '客户地址',
385
+ 'f_entry_status': '安检状态',
386
+ 'f_usegas': '用气状态',
387
+ 'f_offsite_time': '安检时间',
388
+ 'f_checker_name': '安检员',
389
+ 'f_repair_approved_note': '备注',
390
+ 'f_gas_date': '开户时间',
391
+ 'f_plan_name': '计划名称'
392
+ },
393
+ excelHeaders: {
394
+ 'f_userinfo_code': '客户编号',
395
+ 'f_user_name': '客户姓名',
396
+ 'f_meternumber':'客户表号',
397
+ 'f_user_phone':'客户电话',
398
+ 'f_check_type': '客户类型',
399
+ 'f_residential_area': '小区',
400
+ 'f_address': '客户地址',
401
+ 'f_entry_status': '安检状态',
402
+ 'f_usegas': '用气状态',
403
+ 'f_offsite_time': '安检时间',
404
+ 'f_checker_name': '安检员',
405
+ 'f_repair_approved_note': '备注',
406
+ 'f_gas_date': '开户时间',
407
+ 'f_plan_name': '计划名称'
408
+ },
409
+ fun: this.$login.f,
410
+ pcds:[],
411
+ checkersid: [],
412
+ f_excel_items:[],
413
+ excelitems:this.$appdata.getParam('安检结果导出项'),
414
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
415
+ criteriaShow: false,
416
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
417
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
418
+ showModal: false,
419
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
420
+ f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
421
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
422
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
423
+ usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
424
+ showcheckmsg: false,
425
+ checkInfo: {},
426
+ orderDefault: "'f_offsite_time'",
427
+ orderFields: {
428
+ f_offsite_time: 'no'
429
+ },
430
+ sliceArea: [],
431
+ cbc:[]
432
+ }
433
+ },
434
+ methods: {
435
+ //气表品牌查询
436
+ getTableBrands() {
437
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
438
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
439
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
440
+ resp.data.forEach((result) => {
441
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
442
+ })
443
+ })
444
+ },
445
+ getRes(obj) {
446
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
447
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
448
+ },
449
+ showChooser() {
450
+ this.showModal = true
451
+ },
452
+ hidden() {
453
+ this.criteriaShow = !this.criteriaShow
454
+ },
455
+ ok() {
456
+ this.showModal = false
457
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
458
+ this.$refs.paged.$refs.criteria.$refs.modal.f_plan_name = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
459
+ this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
460
+ }
461
+ },
462
+ cancel() {
463
+ this.showModal = false
464
+ this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan = {f_plan_name: '', id: ''}
465
+ this.$refs.paged.$refs.criteria.$refs.modal.f_plan_id=''
466
+ },
467
+ sort(field, rule) {
468
+ // 将所有排序方式设为不排序,实现相互排斥
469
+ for (let key in this.orderFields) {
470
+ if (key === field) {
471
+ this.orderFields[key] = rule
472
+ } else {
473
+ this.orderFields[key] = 'no'
474
+ }
475
+ }
476
+ // 如果新规则不排序,还原为默认排序
477
+ if (rule === 'no') {
478
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
479
+ } else {
480
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
481
+ }
482
+ this.search()
483
+ },
484
+ search() {
485
+ this.$refs.paged.$refs.criteria.search()
486
+ },
487
+ selfSearch(args) {
488
+ ////tag
489
+ //args.condition+=" and f_check_type='民用'"
490
+ if(args.model.f_check_date){
491
+ const daysBefore = Number(args.model.f_check_date);
492
+ if ( daysBefore > 0) {
493
+ // 获取当前日期
494
+ const now = new Date();
495
+ // 计算三天前的日期
496
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
497
+ // 如果需要格式化日期,可以使用Date对象的方法
498
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
499
+ args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
500
+ } else {
501
+ console.error('f_check_date不是一个有效的正整数');
502
+ }
503
+ }
504
+ this.model.search(args.condition, args.model, args.condValue)
505
+ }
506
+ },
507
+
508
+ ready() {
509
+ ////tag
510
+ this.function = this.f
511
+ ////tag
512
+ //获取气表品牌
513
+ this.getTableBrands()
514
+ // let gen = select(this)
515
+ // co(gen)
516
+ },
517
+ watch: {
518
+ 'model.f_no_checkplan'(val) {
519
+ if (this.model.f_no_checkplan){
520
+ this.searchData.f_no_checkplan = val
521
+ }
522
+ if (this.model.f_no_checkplan == '有计划安检') {
523
+
524
+ this.showChooser()
525
+ }
526
+ },
527
+ 'model.condition'(val) {
528
+ if (val) {
529
+ this.searchData.condition = val
530
+ }
531
+ },
532
+ 'f_excel_items'(val){
533
+ this.excelHeaders = JSON.parse(JSON.stringify(this.excelHeadersStr))
534
+ if(val.length > 0){
535
+ val.forEach((item)=>{
536
+ this.excelHeaders = Object.assign(this.excelHeaders, JSON.parse(JSON.stringify(this.excelHeaders)),Excelconfig[item])
537
+ })
538
+ }
539
+ }
540
+ }
541
+
542
+ }
543
+ </script>