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,793 +1,793 @@
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 like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">客户表号</label>
25
- <input type="text" class="input_search" v-model="model.f_meternumber"
26
- style="width: 60%" placeholder="客户表号" condition="f_meternumber like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">小&emsp;&emsp;区</label>
30
- <input type="text" class="input_search" v-model="model.f_residential_area"
31
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" >
34
- <label class="font_normal_body">详细地址</label>
35
- <input type="text" class="input_search" v-model="model.f_address"
36
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
37
- </div>
38
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
-
40
- <export-excel :data="$parent.$parent.searchData"
41
- :field="$parent.$parent.excelHeaders"
42
- :choose-col="true"
43
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="查找安检单" template-name='安检计划明细'></export-excel>
44
- <!-- <export-excel :data="$parent.$parent.getCondition" -->
45
- <!-- :field="$parent.$parent.getfield"-->
46
- <!-- sqlurl="api/af-safecheck/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
47
- <!-- :choose-col="true"></export-excel>-->
48
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
49
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
50
-
51
- <button class="button_spacing button_search" @click="search()">查询</button>
52
- <div style="float: right" class="button_spacing"
53
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
- @click="$parent.$parent.hidden()"></div>
55
- </div>
56
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
57
- <label class="font_normal_body">安检计划</label>
58
- <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
59
- @click="$parent.$parent.showChooser"
60
- style="width: 60%" placeholder="安检计划" readonly="readonly">
61
- </div>
62
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
63
- <label class="font_normal_body">开始时间</label>
64
- <datepicker
65
- :value.sync="model.f_check_start"
66
- placeholder='开始时间' style="width: 60%"
67
- :disabled-days-of-week="[]"
68
- :format="'yyyy-MM-dd'"
69
- :show-rest-button="reset"
70
- v-model="model.f_check_start"
71
- condition="f_offsite_time > ='{} 00:00:00'">
72
- </datepicker>
73
- <!-- <datepicker-->
74
- <!-- class="select_list select"-->
75
- <!-- :value.sync="model.f_check_start"-->
76
- <!-- placeholder='开始时间' style="width: 60%"-->
77
- <!-- :disabled-days-of-week="[]"-->
78
- <!-- :format="'yyyy-MM-dd'"-->
79
- <!-- :show-rest-button="reset"-->
80
- <!-- v-model="model.f_check_start"-->
81
- <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
82
- <!-- </datepicker>-->
83
- </div>
84
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
85
- <label class="font_normal_body">结束时间</label>
86
- <datepicker
87
- :value.sync="model.f_check_end"
88
- placeholder='结束时间' style="width: 60%"
89
- :disabled-days-of-week="[]"
90
- :format="'yyyy-MM-dd'"
91
- :show-rest-button="reset"
92
- v-model="model.f_check_end"
93
- condition="f_offsite_time <= '{} 23:59:59'">
94
- </datepicker>
95
- </div>
96
-
97
-
98
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
99
-
100
- <label class="font_normal_body">安检类型</label>
101
- <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
102
- :value-single="true" style="width: 60%"
103
- class="select_list select"
104
- :options='$parent.$parent.safetype' placeholder='安检类型'
105
- close-on-select
106
- condition="f_safecheck_type = '{}'"></v-select>
107
- </div>
108
-
109
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
110
-
111
- <label class="font_normal_body">客户类型</label>
112
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
113
- :value-single="true" style="width: 60%"
114
- class="select_list select"
115
- :options='$parent.$parent.checktype' placeholder='客户类型'
116
- close-on-select
117
- condition="f_check_type = '{}'"></v-select>
118
- </div>
119
-
120
-
121
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
122
- <label class="font_normal_body">安检状态</label>
123
- <v-select id="f_entry"
124
- class="select_list select"
125
- placeholder='安检状态' style="width: 60%"
126
- v-model='model.f_entry'
127
- :value.sync="$parent.$parent.model.f_entry"
128
- :options='$parent.$parent.f_entry_status'
129
- condition=""
130
- :value-single="true"
131
- close-on-select clear-button></v-select>
132
- </div>
133
-
134
-
135
-
136
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
137
- <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
138
- <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
139
- <!-- :value-single="true" style="width: 60%"-->
140
- <!-- class="select_list select"-->
141
- <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
142
- <!-- close-on-select-->
143
- <!-- condition="f_checker_id = '{}'"></v-select>-->
144
- <!-- </div>-->
145
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
146
- <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
147
- <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
148
- <!-- </right-tree>-->
149
- <!-- </div>-->
150
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
151
- <role-selector-safe
152
- role-name="安检员"
153
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
154
- @re-res="$parent.$parent.getRes"
155
- :value.sync="model.f_checker_id"
156
- v-model="model.f_checker_id"
157
- condition="f_checker_name = '{}'">
158
- </role-selector-safe>
159
- </div>
160
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
161
- <label class="font_normal_body">片&emsp;&emsp;区</label>
162
- <v-select class="select_list select"
163
- placeholder='片区/管理站' style="width: 60%"
164
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
165
- :options='$parent.$parent.sliceArea'
166
- filer-key="name"
167
- close-on-select clear-button
168
- condition="f_slice_area='{}'"
169
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
170
- :value-single="true">
171
- </v-select>
172
- </div>
173
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
174
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
175
- <v-select class="select_list select"
176
- placeholder='抄表册' style="width: 60%"
177
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
178
- :options='$parent.$parent.cbc'
179
- filer-key="name"
180
- close-on-select clear-button
181
- condition="f_meter_book_num={}"
182
- :value-single="true">
183
- </v-select>
184
- </div>
185
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
186
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
187
- <v-select class="select_list select"
188
- placeholder='请选择' style="width: 60%"
189
- :value.sync="model.f_pcd" v-model="model.f_pcd"
190
- :options='$parent.$parent.pcds'
191
- filer-key="name"
192
- close-on-select clear-button
193
- condition="f_pcd='{}'"
194
- :value-single="true">
195
- </v-select>
196
- </div>
197
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
198
- <label class="font_normal_body">开户时间</label>
199
- <datepicker
200
- :value.sync="model.f_check_gasstart"
201
- placeholder='开始时间' style="width: 60%"
202
- :disabled-days-of-week="[]"
203
- :format="'yyyy-MM-dd'"
204
- :show-rest-button="reset"
205
- v-model="model.f_check_gasstart"
206
- condition="f_gas_date > ='{} 00:00:00'">
207
- </datepicker>
208
- </div>
209
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
210
- <label class="font_normal_body">开户时间</label>
211
- <datepicker
212
- :value.sync="model.f_check_gasend"
213
- placeholder='结束时间' style="width: 60%"
214
- :disabled-days-of-week="[]"
215
- :format="'yyyy-MM-dd'"
216
- :show-rest-button="reset"
217
- v-model="model.f_check_gasend"
218
- condition="f_gas_date <= '{} 23:59:59'">
219
- </datepicker>
220
- </div>
221
- <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
222
- <label class="font_normal_body">审核时间</label>
223
- <datepicker
224
- :value.sync="model.f_approved_timestart"
225
- placeholder='开始时间' style="width: 60%"
226
- :disabled-days-of-week="[]"
227
- :format="'yyyy-MM-dd'"
228
- :show-rest-button="reset"
229
- v-model="model.f_approved_timestart"
230
- condition="f_approved_time > ='{} 00:00:00'">
231
- </datepicker>
232
- </div>
233
- <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
234
- <label class="font_normal_body">审核时间</label>
235
- <datepicker
236
- :value.sync="model.f_approved_timeend"
237
- placeholder='结束时间' style="width: 60%"
238
- :disabled-days-of-week="[]"
239
- :format="'yyyy-MM-dd'"
240
- :show-rest-button="reset"
241
- v-model="model.f_approved_timeend"
242
- condition="f_approved_time <= '{} 23:59:59'">
243
- </datepicker>
244
- </div>
245
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
246
- <label class="font_normal_body">气表品牌</label>
247
- <v-select
248
- class="select_list select"
249
- placeholder='气表品牌' style="width: 60%"
250
- v-model='model.tableBrand'
251
- :value.sync="model.tableBrand"
252
- :options='$parent.$parent.tableBrands'
253
- condition="f_meter_brand = '{}'"
254
- :value-single="true"
255
- close-on-select clear-button></v-select>
256
- </div>
257
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
258
- <label class="font_normal_body">有无计划</label>
259
- <v-select class="select_list select"
260
- placeholder='请选择' style="width: 60%"
261
- :value.sync="model.f_no_checkplan" v-model="model.f_no_checkplan"
262
- :options='$parent.$parent.no_checkplans'
263
- filer-key="name"
264
- close-on-select clear-button
265
- condition="f_no_checkplan='{}'"
266
- :value-single="true">
267
- </v-select>
268
- </div>
269
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
270
- <!-- <label class="font_normal_body">计划类型</label>-->
271
- <!-- <v-select class="select_list select"-->
272
- <!-- placeholder='请选择' style="width: 60%"-->
273
- <!-- :value.sync="model.f_safe_type" v-model="model.f_safe_type"-->
274
- <!-- :options='$parent.$parent.safe_types'-->
275
- <!-- filer-key="name"-->
276
- <!-- close-on-select clear-button-->
277
- <!-- condition="f_safe_type='{}'"-->
278
- <!-- :value-single="true">-->
279
- <!-- </v-select>-->
280
- <!-- </div>-->
281
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
282
- <label class="font_normal_body">未用燃气</label>
283
- <v-select class="select_list select"
284
- placeholder='请选择' style="width: 60%"
285
- :value.sync="model.f_usegas" v-model="model.f_usegas"
286
- :options='$parent.$parent.usegas'
287
- filer-key="name"
288
- close-on-select clear-button
289
- condition="f_usegas='{}'"
290
- :value-single="true">
291
- </v-select>
292
- </div>
293
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
294
- <label class="font_normal_body">客户卡号</label>
295
- <input type="text" class="input_search" v-model="model.f_card_id"
296
- style="width: 60%" placeholder="客户卡号" condition="f_card_id like '%{}%'">
297
- </div>
298
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
299
- <label class="font_normal_body">距上次安检天数</label>
300
- <input type="number" class="input_search" v-model="model.f_check_date"
301
- style="width: 60%" placeholder="距上次安检天数" >
302
- </div>
303
- </div>
304
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
305
- <div slot="modal-header" class="modal-header">
306
- <h4 class="modal-title">
307
- 选择计划
308
- </h4>
309
- </div>
310
- <div slot="modal-body" class="modal-body">
311
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
312
- </div>
313
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
314
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
315
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
316
- </div>
317
- </modal>
318
- </div>
319
- </criteria>
320
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
321
- <template partial='head'>
322
- <tr>
323
- <th>
324
- <nobr>客户编号</nobr>
325
- </th>
326
- <th>
327
- <nobr>客户名称</nobr>
328
- </th>
329
- <th>
330
- <nobr>客户表号</nobr>
331
- </th>
332
- <th>
333
- <nobr>气表品牌</nobr>
334
- </th>
335
- <th>
336
- <nobr>客户电话</nobr>
337
- </th>
338
- <th>
339
- <nobr>客户类型</nobr>
340
- </th>
341
- <th>
342
- <nobr>客户地址</nobr>
343
- </th>
344
- <th>
345
- <nobr>安检状态</nobr>
346
- </th>
347
- <th>
348
- <nobr>用气状态</nobr>
349
- </th>
350
- <th>
351
- <data-order field="f_offsite_time" name="安检时间"></data-order>
352
- </th>
353
- <th>
354
- <nobr>安检员</nobr>
355
- </th>
356
- <th>
357
- <nobr>副操</nobr>
358
- </th>
359
- <th>
360
- <nobr>备注</nobr>
361
- </th>
362
- <th>
363
- <nobr>开户时间</nobr>
364
- </th>
365
- <th v-if="$parent.$parent.$parent.safeAudit">
366
- <nobr>审核人</nobr>
367
- </th>
368
- <th v-if="$parent.$parent.$parent.safeAudit">
369
- <nobr>审核时间</nobr>
370
- </th>
371
- <th v-if="$parent.$parent.$parent.safeAudit">
372
- <nobr>审核状态</nobr>
373
- </th>
374
- <th>
375
- <nobr>操作</nobr>
376
- </th>
377
- <th v-if="$parent.$parent.$parent.audioshow">
378
- <nobr>录音</nobr>
379
- </th>
380
- </tr>
381
- </template>
382
- <template partial='body'>
383
-
384
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
385
- <td style="text-align: center">{{row.f_user_name}}</td>
386
- <td style="text-align: center">{{row.f_meternumber}}</td>
387
- <td style="text-align: center">{{row.f_meter_brand}}</td>
388
- <td style="text-align: center">{{row.f_user_phone}}</td>
389
- <td style="text-align: center">{{row.f_check_type}}</td>
390
-
391
- <td style="text-align: center">{{ row.f_address }}</td>
392
- <td style="text-align: center">{{ row.f_entry_status }}</td>
393
- <td style="text-align: center">{{ row.f_usegas }}</td>
394
- <td style="text-align: center">{{ row.f_offsite_time }}</td>
395
- <td style="text-align: center">{{ row.f_checker_name }}</td>
396
- <td style="text-align: center">{{ row.f_deputy_director}}</td>
397
- <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
398
- <td style="text-align: center">{{ row.f_gas_date }}</td>
399
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_by }}</td>
400
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_time }}</td>
401
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
402
- {{ row.f_approved ? row.f_approved : '未审核' }}
403
- </td>
404
- <td style="text-align: center">
405
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
406
-
407
-
408
- </td>
409
- <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
410
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
411
- <audio controls="controls" v-if="row.f_recording1_path">
412
- <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
413
- </audio>
414
- <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
415
- @click="$parent.$parent.$parent.print(row)">
416
- 打印
417
- </button>-->
418
- </td>
419
- </template>
420
- </data-grid>
421
- </criteria-paged>
422
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
423
- </div>
424
- </div>
425
- </template>
426
-
427
- <script>
428
- import {PagedList} from 'vue-client'
429
- import Vue from 'vue'
430
- import co from 'co'
431
- import AppData from '../../../stores/AppData'
432
- import * as Util from '../../Util'
433
- import getNowDate from "../../../utils/getNowDate";
434
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
435
- import BenzAMRRecorder from 'benz-amr-recorder'
436
-
437
- //获取json配置文件
438
- let asyncReady = async function (self) {
439
- // 获取配置信息
440
- try {
441
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
442
- Vue.config = res.data
443
- } catch (error) {
444
- // 忽略704,文件找不到异常R
445
- if (error.status !== 704) {
446
- throw error
447
- }
448
- }
449
- }
450
-
451
- let select = function* (self) {
452
- let http = new HttpResetClass()
453
- let getGasman = yield http.load('POST', '/rs/search', {
454
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
455
- userid: self.$login.f.id
456
- }, {resolveMsg: null, rejectMsg: null})
457
- ////tag
458
- self.checkersid.push({label: '全部', value: ''})
459
- getGasman.data.forEach((checker) => {
460
- self.checkersid.push({label: checker.name, value: checker.id})
461
- })
462
- }
463
-
464
- export default {
465
- title: '安检结果查看',
466
- data() {
467
- let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
468
- f_plan_id: 'this.f_plan_id',
469
- f_approved: 'this.f_approved',
470
- f_entry_status: 'this.f_entry',
471
- f_no_checkplan: 'this.f_no_checkplan',
472
- f_filialeid: 'this.f_filialeid',
473
- orderitem: "'f_offsite_time desc'"
474
- })
475
- model.f_check_type = ''
476
- model.f_plan_id = ''
477
- model.f_approved = ''
478
- model.f_entry = ''
479
- model.f_no_checkplan = ''
480
- model.f_filialeid = `('${this.$login.f.orgid}')`
481
- //model.f_check_type='民用'
482
- // let searchData={
483
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
484
- // f_approved: this.model.f_approved,
485
- // f_entry_status: this.model.f_entry,
486
- // f_no_checkplan:this.model.f_no_checkplan[0],
487
- // f_filialeid: this.model.f_filialeid,
488
- // //orderitem: this.model.f_offsite_time,
489
- // //condition:this.model.condition
490
- // }
491
- // model.f_subcompany = this.$login.f.f_fengongsi
492
- return {
493
- tableBrands: [{label: '全部', value: ''}],
494
- audioshow: false,
495
- safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
496
- searchData: {
497
- condition: "1=1",
498
- orderitem: "f_offsite_time desc",
499
- f_plan_id: "",
500
- f_approved: '',
501
- f_entry_status: '',
502
- f_no_checkplan: '',
503
- f_filialeid: `('${this.$login.f.orgid}')`
504
- },
505
- model: model,
506
- excelHeaders: {
507
- //searchData:searchData,
508
- 'f_userinfo_code': '客户编号',
509
- 'f_user_name': '客户姓名',
510
- 'f_meternumber':'客户表号',
511
- 'f_user_phone':'客户电话',
512
- 'f_check_type': '客户类型',
513
- 'f_residential_area': '小区',
514
- 'f_address': '客户地址',
515
- 'f_entry_status': '安检状态',
516
- 'f_usegas': '用气状态',
517
- 'f_offsite_time': '安检时间',
518
- 'f_checker_name': '安检员',
519
- 'f_safecheck_type':'安检类型',
520
- 'f_repair_approved_note': '备注',
521
- 'f_gas_date': '开户时间',
522
- 'f_plan_name': '计划名称',
523
- 'f_download_path': '总体安检照片'
524
- },
525
- fun: this.$login.f,
526
- pcds:[],
527
- checkersid: [],
528
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
529
- criteriaShow: false,
530
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
531
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
532
- showModal: false,
533
- safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
534
- f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
535
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
536
- no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
537
- usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
538
- showcheckmsg: false,
539
- checkInfo: {},
540
- orderDefault: "'f_offsite_time'",
541
- orderFields: {
542
- f_offsite_time: 'no'
543
- },
544
- sliceArea: [],
545
- cbc:[]
546
- }
547
- },
548
- methods: {
549
- //气表品牌查询
550
- getTableBrands() {
551
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
552
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
553
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
554
- resp.data.forEach((result) => {
555
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
556
- })
557
- })
558
- },
559
- //获取省市区列表
560
- getPcd(val){
561
- this.pcds = [{label:'全部',value:''}]
562
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
563
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
564
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
565
- pcdlist.data.forEach((result)=>{
566
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
567
- })
568
- })
569
- },
570
- showaudio(){
571
- //tag
572
- this.audioshow=!this.audioshow
573
- //tag
574
- },
575
- getmeterbook(val){
576
- this.cbc=[]
577
- this.cbc.push({
578
- label:'全部',
579
- value:''
580
- })
581
- if (val==''){
582
-
583
- this.cbcs.forEach(res=>{
584
- this.cbc.push({
585
- label:res.f_book_name,
586
- value:res.id
587
- })
588
- })
589
- }else{
590
- this.cbcs.forEach(res=>{
591
- if (res.f_book_slice_area==val){
592
- this.cbc.push({
593
- label:res.f_book_name,
594
- value:res.id
595
- })
596
- }
597
- })
598
- }
599
- },
600
- Mreadibook(val){
601
- ////tag
602
- ////tag
603
- if (val){
604
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
605
- items: 'name',
606
- tablename: 't_zone',
607
- condition: `parentid in ${val}`,
608
- orderitem: 'id'
609
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
610
- this.sliceArea=[]
611
- this.sliceArea.push({
612
- label:'全部',
613
- value:''
614
- })
615
- res.data.forEach(ress=>{
616
- this.sliceArea.push({
617
- label:ress.name,
618
- value:ress.name
619
- })
620
- })
621
-
622
- })
623
- }
624
- },
625
- getAllMeterBook(val){
626
- ////tag
627
- ////tag
628
- this.cbcs=[]
629
- if (val){
630
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
631
- items: 'f_book_name,f_book_slice_area,id',
632
- tablename: 't_meter_book',
633
- condition: `f_filiale_id in ${val}`,
634
- orderitem: 'id'
635
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
636
- res.data.forEach(ress=>{
637
- this.cbcs.push({
638
- id:ress.id,
639
- f_book_name:ress.f_book_name,
640
- f_book_slice_area:ress.f_book_slice_area
641
- })
642
- })
643
- this.cbc=[]
644
- this.cbc.push({
645
- label:'全部',
646
- value:''
647
- })
648
- this.cbcs.forEach(res=>{
649
- this.cbc.push({
650
- label:res.f_book_name,
651
- value:res.id
652
- })
653
- })
654
- })
655
- }
656
- },
657
- getRes(obj) {
658
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
659
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
660
- this.Mreadibook(this.model.f_filialeid)
661
- this.getAllMeterBook(this.model.f_filialeid)
662
- this.getPcd(this.model.f_filialeid)
663
- //this.$refs.paged.$refs.criteria.search()
664
- },
665
-
666
- change(row) {
667
- // Vue.$login = {jwt: row.f_checker_id}
668
- asyncReady(this).then(() => {
669
- ////tag)
670
- row.f_upload_state = '已传'
671
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
672
- }).catch(
673
- (respanse) => {
674
- alert('获取配置文件失败')
675
- })
676
- },
677
- readConfig() {
678
- let gen = asyncReady(this)
679
- return co(gen)
680
- },
681
- showChooser() {
682
- this.showModal = true
683
- },
684
- hidden() {
685
- this.criteriaShow = !this.criteriaShow
686
- },
687
- refresh() {
688
- this.$refs.paged.$refs.criteria.search()
689
- },
690
- ok() {
691
- this.showModal = false
692
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
693
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
694
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
695
- }
696
- },
697
- cancel() {
698
- this.showModal = false
699
- this.model.f_check_plan = {f_plan_name: '', id: ''}
700
- this.model.f_plan_id=''
701
- },
702
- print(row) {
703
- this.showcheckmsg = true
704
- this.checkInfo = row
705
- },
706
-
707
- sort(field, rule) {
708
- // 将所有排序方式设为不排序,实现相互排斥
709
- for (let key in this.orderFields) {
710
- if (key === field) {
711
- this.orderFields[key] = rule
712
- } else {
713
- this.orderFields[key] = 'no'
714
- }
715
- }
716
- // 如果新规则不排序,还原为默认排序
717
- if (rule === 'no') {
718
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
719
- } else {
720
- this.model.paramSource.orderitem = `'${field} ${rule}'`
721
- }
722
- this.search()
723
- },
724
- search() {
725
- this.$refs.paged.$refs.criteria.search()
726
- },
727
- selfSearch(args) {
728
- ////tag
729
- //args.condition+=" and f_check_type='民用'"
730
- if(args.model.f_check_date){
731
- const daysBefore = Number(args.model.f_check_date);
732
- if ( daysBefore > 0) {
733
- // 获取当前日期
734
- const now = new Date();
735
- // 计算三天前的日期
736
- const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
737
- // 如果需要格式化日期,可以使用Date对象的方法
738
- var formattedDate = threeDaysBefore.toISOString().split('T')[0];
739
- args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
740
- } else {
741
- console.error('f_check_date不是一个有效的正整数');
742
- }
743
- }
744
- this.model.search(args.condition, args.model, args.condValue)
745
- }
746
- },
747
-
748
- ready() {
749
- ////tag
750
- this.function = this.f
751
- ////tag
752
- //获取气表品牌
753
- this.getTableBrands()
754
- let gen = select(this)
755
- //this.pianqu()
756
- this.Mreadibook(`('${this.$login.f.orgid}')`)
757
- co(gen)
758
- },
759
- watch: {
760
- 'model.f_no_checkplan'(val) {
761
- if (this.model.f_no_checkplan){
762
- this.searchData.f_no_checkplan = val
763
- }
764
- if (this.model.f_no_checkplan == '有计划安检') {
765
-
766
- this.showChooser()
767
- }
768
- },
769
- 'model.condition'(val) {
770
- if (val) {
771
- this.searchData.condition = val
772
- }
773
-
774
- },
775
- 'model.f_entry'(val) {
776
- this.searchData.f_entry_status = val
777
- },
778
- 'model.f_plan_id'(val) {
779
- if (val) {
780
- this.searchData.f_plan_id = val
781
- }
782
- },
783
- 'model.f_slice_area'(val) {
784
- },
785
- 'model.f_approved'(val) {
786
- if (val) {
787
- this.searchData.f_approved = val
788
- }
789
- },
790
- }
791
-
792
- }
793
- </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 like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">客户表号</label>
25
+ <input type="text" class="input_search" v-model="model.f_meternumber"
26
+ style="width: 60%" placeholder="客户表号" condition="f_meternumber like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
30
+ <input type="text" class="input_search" v-model="model.f_residential_area"
31
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
32
+ </div>
33
+ <div class="form-group col-sm-2" >
34
+ <label class="font_normal_body">详细地址</label>
35
+ <input type="text" class="input_search" v-model="model.f_address"
36
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
37
+ </div>
38
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
+
40
+ <export-excel :data="$parent.$parent.searchData"
41
+ :field="$parent.$parent.excelHeaders"
42
+ :choose-col="true"
43
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="查找安检单" template-name='安检计划明细'></export-excel>
44
+ <!-- <export-excel :data="$parent.$parent.getCondition" -->
45
+ <!-- :field="$parent.$parent.getfield"-->
46
+ <!-- sqlurl="api/af-safecheck/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
47
+ <!-- :choose-col="true"></export-excel>-->
48
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
49
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
50
+
51
+ <button class="button_spacing button_search" @click="search()">查询</button>
52
+ <div style="float: right" class="button_spacing"
53
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
+ @click="$parent.$parent.hidden()"></div>
55
+ </div>
56
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
57
+ <label class="font_normal_body">安检计划</label>
58
+ <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
59
+ @click="$parent.$parent.showChooser"
60
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
61
+ </div>
62
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
63
+ <label class="font_normal_body">开始时间</label>
64
+ <datepicker
65
+ :value.sync="model.f_check_start"
66
+ placeholder='开始时间' style="width: 60%"
67
+ :disabled-days-of-week="[]"
68
+ :format="'yyyy-MM-dd'"
69
+ :show-rest-button="reset"
70
+ v-model="model.f_check_start"
71
+ condition="f_offsite_time > ='{} 00:00:00'">
72
+ </datepicker>
73
+ <!-- <datepicker-->
74
+ <!-- class="select_list select"-->
75
+ <!-- :value.sync="model.f_check_start"-->
76
+ <!-- placeholder='开始时间' style="width: 60%"-->
77
+ <!-- :disabled-days-of-week="[]"-->
78
+ <!-- :format="'yyyy-MM-dd'"-->
79
+ <!-- :show-rest-button="reset"-->
80
+ <!-- v-model="model.f_check_start"-->
81
+ <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
82
+ <!-- </datepicker>-->
83
+ </div>
84
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
85
+ <label class="font_normal_body">结束时间</label>
86
+ <datepicker
87
+ :value.sync="model.f_check_end"
88
+ placeholder='结束时间' style="width: 60%"
89
+ :disabled-days-of-week="[]"
90
+ :format="'yyyy-MM-dd'"
91
+ :show-rest-button="reset"
92
+ v-model="model.f_check_end"
93
+ condition="f_offsite_time <= '{} 23:59:59'">
94
+ </datepicker>
95
+ </div>
96
+
97
+
98
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
99
+
100
+ <label class="font_normal_body">安检类型</label>
101
+ <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
102
+ :value-single="true" style="width: 60%"
103
+ class="select_list select"
104
+ :options='$parent.$parent.safetype' placeholder='安检类型'
105
+ close-on-select
106
+ condition="f_safecheck_type = '{}'"></v-select>
107
+ </div>
108
+
109
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
110
+
111
+ <label class="font_normal_body">客户类型</label>
112
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
113
+ :value-single="true" style="width: 60%"
114
+ class="select_list select"
115
+ :options='$parent.$parent.checktype' placeholder='客户类型'
116
+ close-on-select
117
+ condition="f_check_type = '{}'"></v-select>
118
+ </div>
119
+
120
+
121
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
122
+ <label class="font_normal_body">安检状态</label>
123
+ <v-select id="f_entry"
124
+ class="select_list select"
125
+ placeholder='安检状态' style="width: 60%"
126
+ v-model='model.f_entry'
127
+ :value.sync="$parent.$parent.model.f_entry"
128
+ :options='$parent.$parent.f_entry_status'
129
+ condition=""
130
+ :value-single="true"
131
+ close-on-select clear-button></v-select>
132
+ </div>
133
+
134
+
135
+
136
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
137
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
138
+ <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
139
+ <!-- :value-single="true" style="width: 60%"-->
140
+ <!-- class="select_list select"-->
141
+ <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
142
+ <!-- close-on-select-->
143
+ <!-- condition="f_checker_id = '{}'"></v-select>-->
144
+ <!-- </div>-->
145
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
146
+ <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
147
+ <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
148
+ <!-- </right-tree>-->
149
+ <!-- </div>-->
150
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
151
+ <role-selector-safe
152
+ role-name="安检员"
153
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
154
+ @re-res="$parent.$parent.getRes"
155
+ :value.sync="model.f_checker_id"
156
+ v-model="model.f_checker_id"
157
+ condition="f_checker_name = '{}'">
158
+ </role-selector-safe>
159
+ </div>
160
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
161
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
162
+ <v-select class="select_list select"
163
+ placeholder='片区/管理站' style="width: 60%"
164
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
165
+ :options='$parent.$parent.sliceArea'
166
+ filer-key="name"
167
+ close-on-select clear-button
168
+ condition="f_slice_area='{}'"
169
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
170
+ :value-single="true">
171
+ </v-select>
172
+ </div>
173
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
174
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
175
+ <v-select class="select_list select"
176
+ placeholder='抄表册' style="width: 60%"
177
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
178
+ :options='$parent.$parent.cbc'
179
+ filer-key="name"
180
+ close-on-select clear-button
181
+ condition="f_meter_book_num={}"
182
+ :value-single="true">
183
+ </v-select>
184
+ </div>
185
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
186
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
187
+ <v-select class="select_list select"
188
+ placeholder='请选择' style="width: 60%"
189
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
190
+ :options='$parent.$parent.pcds'
191
+ filer-key="name"
192
+ close-on-select clear-button
193
+ condition="f_pcd='{}'"
194
+ :value-single="true">
195
+ </v-select>
196
+ </div>
197
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
198
+ <label class="font_normal_body">开户时间</label>
199
+ <datepicker
200
+ :value.sync="model.f_check_gasstart"
201
+ placeholder='开始时间' style="width: 60%"
202
+ :disabled-days-of-week="[]"
203
+ :format="'yyyy-MM-dd'"
204
+ :show-rest-button="reset"
205
+ v-model="model.f_check_gasstart"
206
+ condition="f_gas_date > ='{} 00:00:00'">
207
+ </datepicker>
208
+ </div>
209
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
210
+ <label class="font_normal_body">开户时间</label>
211
+ <datepicker
212
+ :value.sync="model.f_check_gasend"
213
+ placeholder='结束时间' style="width: 60%"
214
+ :disabled-days-of-week="[]"
215
+ :format="'yyyy-MM-dd'"
216
+ :show-rest-button="reset"
217
+ v-model="model.f_check_gasend"
218
+ condition="f_gas_date <= '{} 23:59:59'">
219
+ </datepicker>
220
+ </div>
221
+ <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
222
+ <label class="font_normal_body">审核时间</label>
223
+ <datepicker
224
+ :value.sync="model.f_approved_timestart"
225
+ placeholder='开始时间' style="width: 60%"
226
+ :disabled-days-of-week="[]"
227
+ :format="'yyyy-MM-dd'"
228
+ :show-rest-button="reset"
229
+ v-model="model.f_approved_timestart"
230
+ condition="f_approved_time > ='{} 00:00:00'">
231
+ </datepicker>
232
+ </div>
233
+ <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
234
+ <label class="font_normal_body">审核时间</label>
235
+ <datepicker
236
+ :value.sync="model.f_approved_timeend"
237
+ placeholder='结束时间' style="width: 60%"
238
+ :disabled-days-of-week="[]"
239
+ :format="'yyyy-MM-dd'"
240
+ :show-rest-button="reset"
241
+ v-model="model.f_approved_timeend"
242
+ condition="f_approved_time <= '{} 23:59:59'">
243
+ </datepicker>
244
+ </div>
245
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
246
+ <label class="font_normal_body">气表品牌</label>
247
+ <v-select
248
+ class="select_list select"
249
+ placeholder='气表品牌' style="width: 60%"
250
+ v-model='model.tableBrand'
251
+ :value.sync="model.tableBrand"
252
+ :options='$parent.$parent.tableBrands'
253
+ condition="f_meter_brand = '{}'"
254
+ :value-single="true"
255
+ close-on-select clear-button></v-select>
256
+ </div>
257
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
258
+ <label class="font_normal_body">有无计划</label>
259
+ <v-select class="select_list select"
260
+ placeholder='请选择' style="width: 60%"
261
+ :value.sync="model.f_no_checkplan" v-model="model.f_no_checkplan"
262
+ :options='$parent.$parent.no_checkplans'
263
+ filer-key="name"
264
+ close-on-select clear-button
265
+ condition="f_no_checkplan='{}'"
266
+ :value-single="true">
267
+ </v-select>
268
+ </div>
269
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
270
+ <!-- <label class="font_normal_body">计划类型</label>-->
271
+ <!-- <v-select class="select_list select"-->
272
+ <!-- placeholder='请选择' style="width: 60%"-->
273
+ <!-- :value.sync="model.f_safe_type" v-model="model.f_safe_type"-->
274
+ <!-- :options='$parent.$parent.safe_types'-->
275
+ <!-- filer-key="name"-->
276
+ <!-- close-on-select clear-button-->
277
+ <!-- condition="f_safe_type='{}'"-->
278
+ <!-- :value-single="true">-->
279
+ <!-- </v-select>-->
280
+ <!-- </div>-->
281
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
282
+ <label class="font_normal_body">未用燃气</label>
283
+ <v-select class="select_list select"
284
+ placeholder='请选择' style="width: 60%"
285
+ :value.sync="model.f_usegas" v-model="model.f_usegas"
286
+ :options='$parent.$parent.usegas'
287
+ filer-key="name"
288
+ close-on-select clear-button
289
+ condition="f_usegas='{}'"
290
+ :value-single="true">
291
+ </v-select>
292
+ </div>
293
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
294
+ <label class="font_normal_body">客户卡号</label>
295
+ <input type="text" class="input_search" v-model="model.f_card_id"
296
+ style="width: 60%" placeholder="客户卡号" condition="f_card_id like '%{}%'">
297
+ </div>
298
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
299
+ <label class="font_normal_body">距上次安检天数</label>
300
+ <input type="number" class="input_search" v-model="model.f_check_date"
301
+ style="width: 60%" placeholder="距上次安检天数" >
302
+ </div>
303
+ </div>
304
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
305
+ <div slot="modal-header" class="modal-header">
306
+ <h4 class="modal-title">
307
+ 选择计划
308
+ </h4>
309
+ </div>
310
+ <div slot="modal-body" class="modal-body">
311
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
312
+ </div>
313
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
314
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
315
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
316
+ </div>
317
+ </modal>
318
+ </div>
319
+ </criteria>
320
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
321
+ <template partial='head'>
322
+ <tr>
323
+ <th>
324
+ <nobr>客户编号</nobr>
325
+ </th>
326
+ <th>
327
+ <nobr>客户名称</nobr>
328
+ </th>
329
+ <th>
330
+ <nobr>客户表号</nobr>
331
+ </th>
332
+ <th>
333
+ <nobr>气表品牌</nobr>
334
+ </th>
335
+ <th>
336
+ <nobr>客户电话</nobr>
337
+ </th>
338
+ <th>
339
+ <nobr>客户类型</nobr>
340
+ </th>
341
+ <th>
342
+ <nobr>客户地址</nobr>
343
+ </th>
344
+ <th>
345
+ <nobr>安检状态</nobr>
346
+ </th>
347
+ <th>
348
+ <nobr>用气状态</nobr>
349
+ </th>
350
+ <th>
351
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
352
+ </th>
353
+ <th>
354
+ <nobr>安检员</nobr>
355
+ </th>
356
+ <th>
357
+ <nobr>副操</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>备注</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>开户时间</nobr>
364
+ </th>
365
+ <th v-if="$parent.$parent.$parent.safeAudit">
366
+ <nobr>审核人</nobr>
367
+ </th>
368
+ <th v-if="$parent.$parent.$parent.safeAudit">
369
+ <nobr>审核时间</nobr>
370
+ </th>
371
+ <th v-if="$parent.$parent.$parent.safeAudit">
372
+ <nobr>审核状态</nobr>
373
+ </th>
374
+ <th>
375
+ <nobr>操作</nobr>
376
+ </th>
377
+ <th v-if="$parent.$parent.$parent.audioshow">
378
+ <nobr>录音</nobr>
379
+ </th>
380
+ </tr>
381
+ </template>
382
+ <template partial='body'>
383
+
384
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
385
+ <td style="text-align: center">{{row.f_user_name}}</td>
386
+ <td style="text-align: center">{{row.f_meternumber}}</td>
387
+ <td style="text-align: center">{{row.f_meter_brand}}</td>
388
+ <td style="text-align: center">{{row.f_user_phone}}</td>
389
+ <td style="text-align: center">{{row.f_check_type}}</td>
390
+
391
+ <td style="text-align: center">{{ row.f_address }}</td>
392
+ <td style="text-align: center">{{ row.f_entry_status }}</td>
393
+ <td style="text-align: center">{{ row.f_usegas }}</td>
394
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
395
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
396
+ <td style="text-align: center">{{ row.f_deputy_director}}</td>
397
+ <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
398
+ <td style="text-align: center">{{ row.f_gas_date }}</td>
399
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_by }}</td>
400
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_time }}</td>
401
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
402
+ {{ row.f_approved ? row.f_approved : '未审核' }}
403
+ </td>
404
+ <td style="text-align: center">
405
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
406
+
407
+
408
+ </td>
409
+ <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
410
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
411
+ <audio controls="controls" v-if="row.f_recording1_path">
412
+ <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
413
+ </audio>
414
+ <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
415
+ @click="$parent.$parent.$parent.print(row)">
416
+ 打印
417
+ </button>-->
418
+ </td>
419
+ </template>
420
+ </data-grid>
421
+ </criteria-paged>
422
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
423
+ </div>
424
+ </div>
425
+ </template>
426
+
427
+ <script>
428
+ import {PagedList} from 'vue-client'
429
+ import Vue from 'vue'
430
+ import co from 'co'
431
+ import AppData from '../../../stores/AppData'
432
+ import * as Util from '../../Util'
433
+ import getNowDate from "../../../utils/getNowDate";
434
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
435
+ import BenzAMRRecorder from 'benz-amr-recorder'
436
+
437
+ //获取json配置文件
438
+ let asyncReady = async function (self) {
439
+ // 获取配置信息
440
+ try {
441
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
442
+ Vue.config = res.data
443
+ } catch (error) {
444
+ // 忽略704,文件找不到异常R
445
+ if (error.status !== 704) {
446
+ throw error
447
+ }
448
+ }
449
+ }
450
+
451
+ let select = function* (self) {
452
+ let http = new HttpResetClass()
453
+ let getGasman = yield http.load('POST', '/rs/search', {
454
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
455
+ userid: self.$login.f.id
456
+ }, {resolveMsg: null, rejectMsg: null})
457
+ ////tag
458
+ self.checkersid.push({label: '全部', value: ''})
459
+ getGasman.data.forEach((checker) => {
460
+ self.checkersid.push({label: checker.name, value: checker.id})
461
+ })
462
+ }
463
+
464
+ export default {
465
+ title: '安检结果查看',
466
+ data() {
467
+ let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
468
+ f_plan_id: 'this.f_plan_id',
469
+ f_approved: 'this.f_approved',
470
+ f_entry_status: 'this.f_entry',
471
+ f_no_checkplan: 'this.f_no_checkplan',
472
+ f_filialeid: 'this.f_filialeid',
473
+ orderitem: "'f_offsite_time desc'"
474
+ })
475
+ model.f_check_type = ''
476
+ model.f_plan_id = ''
477
+ model.f_approved = ''
478
+ model.f_entry = ''
479
+ model.f_no_checkplan = ''
480
+ model.f_filialeid = `('${this.$login.f.orgid}')`
481
+ //model.f_check_type='民用'
482
+ // let searchData={
483
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
484
+ // f_approved: this.model.f_approved,
485
+ // f_entry_status: this.model.f_entry,
486
+ // f_no_checkplan:this.model.f_no_checkplan[0],
487
+ // f_filialeid: this.model.f_filialeid,
488
+ // //orderitem: this.model.f_offsite_time,
489
+ // //condition:this.model.condition
490
+ // }
491
+ // model.f_subcompany = this.$login.f.f_fengongsi
492
+ return {
493
+ tableBrands: [{label: '全部', value: ''}],
494
+ audioshow: false,
495
+ safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
496
+ searchData: {
497
+ condition: "1=1",
498
+ orderitem: "f_offsite_time desc",
499
+ f_plan_id: "",
500
+ f_approved: '',
501
+ f_entry_status: '',
502
+ f_no_checkplan: '',
503
+ f_filialeid: `('${this.$login.f.orgid}')`
504
+ },
505
+ model: model,
506
+ excelHeaders: {
507
+ //searchData:searchData,
508
+ 'f_userinfo_code': '客户编号',
509
+ 'f_user_name': '客户姓名',
510
+ 'f_meternumber':'客户表号',
511
+ 'f_user_phone':'客户电话',
512
+ 'f_check_type': '客户类型',
513
+ 'f_residential_area': '小区',
514
+ 'f_address': '客户地址',
515
+ 'f_entry_status': '安检状态',
516
+ 'f_usegas': '用气状态',
517
+ 'f_offsite_time': '安检时间',
518
+ 'f_checker_name': '安检员',
519
+ 'f_safecheck_type':'安检类型',
520
+ 'f_repair_approved_note': '备注',
521
+ 'f_gas_date': '开户时间',
522
+ 'f_plan_name': '计划名称',
523
+ 'f_download_path': '总体安检照片'
524
+ },
525
+ fun: this.$login.f,
526
+ pcds:[],
527
+ checkersid: [],
528
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
529
+ criteriaShow: false,
530
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
531
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
532
+ showModal: false,
533
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
534
+ f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
535
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
536
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
537
+ usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
538
+ showcheckmsg: false,
539
+ checkInfo: {},
540
+ orderDefault: "'f_offsite_time'",
541
+ orderFields: {
542
+ f_offsite_time: 'no'
543
+ },
544
+ sliceArea: [],
545
+ cbc:[]
546
+ }
547
+ },
548
+ methods: {
549
+ //气表品牌查询
550
+ getTableBrands() {
551
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
552
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
553
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
554
+ resp.data.forEach((result) => {
555
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
556
+ })
557
+ })
558
+ },
559
+ //获取省市区列表
560
+ getPcd(val){
561
+ this.pcds = [{label:'全部',value:''}]
562
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
563
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
564
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
565
+ pcdlist.data.forEach((result)=>{
566
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
567
+ })
568
+ })
569
+ },
570
+ showaudio(){
571
+ //tag
572
+ this.audioshow=!this.audioshow
573
+ //tag
574
+ },
575
+ getmeterbook(val){
576
+ this.cbc=[]
577
+ this.cbc.push({
578
+ label:'全部',
579
+ value:''
580
+ })
581
+ if (val==''){
582
+
583
+ this.cbcs.forEach(res=>{
584
+ this.cbc.push({
585
+ label:res.f_book_name,
586
+ value:res.id
587
+ })
588
+ })
589
+ }else{
590
+ this.cbcs.forEach(res=>{
591
+ if (res.f_book_slice_area==val){
592
+ this.cbc.push({
593
+ label:res.f_book_name,
594
+ value:res.id
595
+ })
596
+ }
597
+ })
598
+ }
599
+ },
600
+ Mreadibook(val){
601
+ ////tag
602
+ ////tag
603
+ if (val){
604
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
605
+ items: 'name',
606
+ tablename: 't_zone',
607
+ condition: `parentid in ${val}`,
608
+ orderitem: 'id'
609
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
610
+ this.sliceArea=[]
611
+ this.sliceArea.push({
612
+ label:'全部',
613
+ value:''
614
+ })
615
+ res.data.forEach(ress=>{
616
+ this.sliceArea.push({
617
+ label:ress.name,
618
+ value:ress.name
619
+ })
620
+ })
621
+
622
+ })
623
+ }
624
+ },
625
+ getAllMeterBook(val){
626
+ ////tag
627
+ ////tag
628
+ this.cbcs=[]
629
+ if (val){
630
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
631
+ items: 'f_book_name,f_book_slice_area,id',
632
+ tablename: 't_meter_book',
633
+ condition: `f_filiale_id in ${val}`,
634
+ orderitem: 'id'
635
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
636
+ res.data.forEach(ress=>{
637
+ this.cbcs.push({
638
+ id:ress.id,
639
+ f_book_name:ress.f_book_name,
640
+ f_book_slice_area:ress.f_book_slice_area
641
+ })
642
+ })
643
+ this.cbc=[]
644
+ this.cbc.push({
645
+ label:'全部',
646
+ value:''
647
+ })
648
+ this.cbcs.forEach(res=>{
649
+ this.cbc.push({
650
+ label:res.f_book_name,
651
+ value:res.id
652
+ })
653
+ })
654
+ })
655
+ }
656
+ },
657
+ getRes(obj) {
658
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
659
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
660
+ this.Mreadibook(this.model.f_filialeid)
661
+ this.getAllMeterBook(this.model.f_filialeid)
662
+ this.getPcd(this.model.f_filialeid)
663
+ //this.$refs.paged.$refs.criteria.search()
664
+ },
665
+
666
+ change(row) {
667
+ // Vue.$login = {jwt: row.f_checker_id}
668
+ asyncReady(this).then(() => {
669
+ ////tag)
670
+ row.f_upload_state = '已传'
671
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
672
+ }).catch(
673
+ (respanse) => {
674
+ alert('获取配置文件失败')
675
+ })
676
+ },
677
+ readConfig() {
678
+ let gen = asyncReady(this)
679
+ return co(gen)
680
+ },
681
+ showChooser() {
682
+ this.showModal = true
683
+ },
684
+ hidden() {
685
+ this.criteriaShow = !this.criteriaShow
686
+ },
687
+ refresh() {
688
+ this.$refs.paged.$refs.criteria.search()
689
+ },
690
+ ok() {
691
+ this.showModal = false
692
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
693
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
694
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
695
+ }
696
+ },
697
+ cancel() {
698
+ this.showModal = false
699
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
700
+ this.model.f_plan_id=''
701
+ },
702
+ print(row) {
703
+ this.showcheckmsg = true
704
+ this.checkInfo = row
705
+ },
706
+
707
+ sort(field, rule) {
708
+ // 将所有排序方式设为不排序,实现相互排斥
709
+ for (let key in this.orderFields) {
710
+ if (key === field) {
711
+ this.orderFields[key] = rule
712
+ } else {
713
+ this.orderFields[key] = 'no'
714
+ }
715
+ }
716
+ // 如果新规则不排序,还原为默认排序
717
+ if (rule === 'no') {
718
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
719
+ } else {
720
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
721
+ }
722
+ this.search()
723
+ },
724
+ search() {
725
+ this.$refs.paged.$refs.criteria.search()
726
+ },
727
+ selfSearch(args) {
728
+ ////tag
729
+ //args.condition+=" and f_check_type='民用'"
730
+ if(args.model.f_check_date){
731
+ const daysBefore = Number(args.model.f_check_date);
732
+ if ( daysBefore > 0) {
733
+ // 获取当前日期
734
+ const now = new Date();
735
+ // 计算三天前的日期
736
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
737
+ // 如果需要格式化日期,可以使用Date对象的方法
738
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
739
+ args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
740
+ } else {
741
+ console.error('f_check_date不是一个有效的正整数');
742
+ }
743
+ }
744
+ this.model.search(args.condition, args.model, args.condValue)
745
+ }
746
+ },
747
+
748
+ ready() {
749
+ ////tag
750
+ this.function = this.f
751
+ ////tag
752
+ //获取气表品牌
753
+ this.getTableBrands()
754
+ let gen = select(this)
755
+ //this.pianqu()
756
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
757
+ co(gen)
758
+ },
759
+ watch: {
760
+ 'model.f_no_checkplan'(val) {
761
+ if (this.model.f_no_checkplan){
762
+ this.searchData.f_no_checkplan = val
763
+ }
764
+ if (this.model.f_no_checkplan == '有计划安检') {
765
+
766
+ this.showChooser()
767
+ }
768
+ },
769
+ 'model.condition'(val) {
770
+ if (val) {
771
+ this.searchData.condition = val
772
+ }
773
+
774
+ },
775
+ 'model.f_entry'(val) {
776
+ this.searchData.f_entry_status = val
777
+ },
778
+ 'model.f_plan_id'(val) {
779
+ if (val) {
780
+ this.searchData.f_plan_id = val
781
+ }
782
+ },
783
+ 'model.f_slice_area'(val) {
784
+ },
785
+ 'model.f_approved'(val) {
786
+ if (val) {
787
+ this.searchData.f_approved = val
788
+ }
789
+ },
790
+ }
791
+
792
+ }
793
+ </script>