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,949 +1,949 @@
1
- <template>
2
- <div class="flex-row">
3
- <work-busy :is-busy="showbusy"></work-busy>
4
- <div class="basic-main">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="form-group col-sm-2">
10
- <label class="font_normal_body">客户编号</label>
11
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
12
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
13
- </div>
14
- <div class="form-group col-sm-2">
15
- <label class="font_normal_body">客户名称</label>
16
- <input type="text" class="input_search" v-model="model.f_user_name"
17
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
18
- </div>
19
- <div class="form-group col-sm-2">
20
- <label class="font_normal_body">客户电话</label>
21
- <input type="text" class="input_search" v-model="model.f_user_phone"
22
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-2">
25
- <label class="font_normal_body">小&emsp;&emsp;区</label>
26
- <input type="text" class="input_search" v-model="model.f_residential_area"
27
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
28
- </div>
29
- <div class="form-group col-sm-2" >
30
- <label class="font_normal_body">详细地址</label>
31
- <input type="text" class="input_search" v-model="model.f_address"
32
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
33
- </div>
34
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
35
-
36
- <export-excel :data="$parent.$parent.searchData"
37
- :field="$parent.$parent.excelHeaders"
38
- :choose-col="true"
39
- progress="safeGetExportProgress"
40
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="查找安检单"
41
- template-name='安检结果明细'></export-excel>
42
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
43
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()"
44
- v-if="$parent.$parent.audioshow">隐藏
45
- </button>
46
-
47
- <button id="btnbbb" class="button_spacing button_search" @click="search()">查询</button>
48
- <div style="float: right" class="button_spacing"
49
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
50
- @click="$parent.$parent.hidden()"></div>
51
- </div>
52
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow" >
53
- <label class="font_normal_body">安检计划</label>
54
- <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
55
- @click="$parent.$parent.showChooser"
56
- style="width: 60%" placeholder="安检计划" readonly="readonly">
57
- </div>
58
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
59
- <label class="font_normal_body">开始时间</label>
60
- <datepicker
61
- class="select_list select"
62
- :value.sync="model.f_check_start"
63
- placeholder='开始时间' style="width: 60%"
64
- :disabled-days-of-week="[]"
65
- :format="'yyyy-MM-dd'"
66
- :show-rest-button="reset"
67
- v-model="model.f_check_start"
68
- condition="f_offsite_time > ='{} 00:00:00'">
69
- </datepicker>
70
- </div>
71
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
72
- <label class="font_normal_body">结束时间</label>
73
- <datepicker
74
- :value.sync="model.f_check_end"
75
- placeholder='结束时间' style="width: 60%"
76
- :disabled-days-of-week="[]"
77
- :format="'yyyy-MM-dd'"
78
- :show-rest-button="reset"
79
- v-model="model.f_check_end"
80
- condition="f_offsite_time <= '{} 23:59:59'">
81
- </datepicker>
82
- </div>
83
- <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow" v-show="false">-->
84
- <!-- <label class="font_normal_body" >安检类型</label>-->
85
- <!-- <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'-->
86
- <!-- :value-single="true" style="width: 60%"-->
87
- <!-- class="select_list select"-->
88
- <!-- :options='$parent.$parent.safetype' placeholder='安检类型'-->
89
- <!-- close-on-select-->
90
- <!-- condition="f_safecheck_type = '{}'"></v-select>-->
91
- <!-- </div>-->
92
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
93
- <label class="font_normal_body">安检状态</label>
94
- <v-select id="f_entry"
95
- class="select_list select"
96
- placeholder='安检状态' style="width: 60%"
97
- v-model='model.f_entry'
98
- :value.sync="$parent.$parent.model.f_entry"
99
- :options='$parent.$parent.f_entry_status'
100
- condition=""
101
- :value-single="true"
102
- close-on-select clear-button></v-select>
103
- </div>
104
-
105
- <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">-->
106
- <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
107
- <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
108
- <!-- :value-single="true" style="width: 60%"-->
109
- <!-- class="select_list select"-->
110
- <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
111
- <!-- close-on-select-->
112
- <!-- condition="f_checker_id = '{}'"></v-select>-->
113
- <!-- </div>-->
114
- <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">-->
115
- <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
116
- <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
117
- <!-- </right-tree>-->
118
- <!-- </div>-->
119
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
120
-
121
- <label class="font_normal_body">用户状态</label>
122
- <v-select :value.sync="model.f_user_state" v-model='model.f_user_state'
123
- :value-single="true" style="width: 60%"
124
- class="select_list select"
125
- :options='$parent.$parent.user_states' placeholder='用户状态'
126
- close-on-select
127
- condition="f_user_state = '{}'"></v-select>
128
- </div>
129
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
130
-
131
- <label class="font_normal_body">录音照片状态</label>
132
- <v-select :value.sync="model.f_downloadpath" v-model='model.f_downloadpath'
133
- :value-single="true" style="width: 60%"
134
- class="select_list select"
135
- :options='$parent.$parent.downloadpaths' placeholder='录音/照片'
136
- close-on-select
137
- condition="f_downloadpath = '{}'"></v-select>
138
- </div>
139
- <div class="col-sm-4 form-group" v-if="$parent.$parent.criteriaShow" style="margin: 0">
140
- <role-selector-safe
141
- role-name="安检员"
142
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
143
- @re-res="$parent.$parent.getRes"
144
- :value.sync="model.f_checker_id"
145
- v-model="model.f_checker_id"
146
- condition="f_checker_name = '{}'">
147
- </role-selector-safe>
148
- </div>
149
- <div class="form-group col-sm-2" v-show="false">
150
- <label class="font_normal_body">片&emsp;&emsp;区</label>
151
- <v-select class="select_list select"
152
- placeholder='片区/管理站' style="width: 60%"
153
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
154
- :options='$parent.$parent.sliceArea'
155
- filer-key="name"
156
- close-on-select clear-button
157
- condition="f_slice_area='{}'"
158
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
159
- :value-single="true">
160
- </v-select>
161
- </div>
162
- <div class="form-group col-sm-2" v-show="false">
163
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
164
- <v-select class="select_list select"
165
- placeholder='抄表册' style="width: 60%"
166
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
167
- :options='$parent.$parent.cbc'
168
- filer-key="name"
169
- close-on-select clear-button
170
- condition="f_meter_book_num={}"
171
- :value-single="true">
172
- </v-select>
173
- </div>
174
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
175
- <label class="font_normal_body">是否作废</label>
176
- <v-select class="select_list select"
177
- placeholder='是否作废' style="width: 60%"
178
- :value.sync="model.f_is_delete" v-model="model.f_is_delete"
179
- :options='$parent.$parent.isdels'
180
- filer-key="name"
181
- close-on-select clear-button
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">维修结果</label>
187
- <v-select class="select_list select"
188
- placeholder='维修结果' style="width: 60%"
189
- :value.sync="model.f_repaired" v-model="model.f_repaired"
190
- :options='$parent.$parent.repaireds'
191
- filer-key="name"
192
- close-on-select clear-button
193
- condition="f_repaired = '{}'"
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
- <v-select class="select_list select"
200
- placeholder='安检结果' style="width: 60%"
201
- :value.sync="model.f_check_result" v-model="model.f_check_result"
202
- :options='$parent.$parent.checkresults'
203
- filer-key="name"
204
- close-on-select clear-button
205
- condition="f_defect_content like'%{}%'"
206
- :value-single="true">
207
- </v-select>
208
- </div>
209
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
210
-
211
- <label class="font_normal_body">安检类型</label>
212
- <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
213
- :value-single="true" style="width: 60%"
214
- class="select_list select"
215
- :options='$parent.$parent.safecheck_type' placeholder='安检类型'
216
- close-on-select
217
- condition="f_safecheck_type = '{}'"></v-select>
218
- </div>
219
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
220
- <label class="font_normal_body">是否有改动</label>
221
- <v-select class="select_list select"
222
- placeholder='安检结果' style="width: 60%"
223
- :value.sync="model.f_gaodong_flag" v-model="model.f_gaodong_flag"
224
- :options='$parent.$parent.isdels'
225
- filer-key="name"
226
- close-on-select clear-button
227
- condition="f_gaodong_flag = '{}'"
228
- :value-single="true">
229
- </v-select>
230
- </div>
231
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
232
- <label class="font_normal_body">气表状态</label>
233
- <v-select :value.sync="model.f_table_state" v-model='model.f_table_state'
234
- :value-single="true" style="width: 60%"
235
- class="select_list select"
236
- :options='$parent.$parent.table_state' placeholder='气表状态'
237
- close-on-select
238
- condition="f_table_state = '{}'"></v-select>
239
- </div>
240
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
241
- <label class="font_normal_body">审核状态</label>
242
- <v-select :value.sync="model.f_approved" v-model='model.f_approved'
243
- :value-single="true" style="width: 60%"
244
- class="select_list select"
245
- :options='$parent.$parent.review_status' placeholder='审核状态'
246
- close-on-select
247
- condition="f_approved= '{}'"></v-select>
248
- </div>
249
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
250
- <label class="font_normal_body">审核开始</label>
251
- <datepicker
252
- class="select_list select"
253
- :value.sync="model.f_checksh_start"
254
- placeholder='审核开始时间' style="width: 60%"
255
- :disabled-days-of-week="[]"
256
- :format="'yyyy-MM-dd'"
257
- :show-rest-button="reset"
258
- v-model="model.f_checksh_start"
259
- condition="f_approved_time > ='{} 00:00:00'">
260
- </datepicker>
261
- </div>
262
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
263
- <label class="font_normal_body">审核结束</label>
264
- <datepicker
265
- :value.sync="model.f_checksh_end"
266
- placeholder='审核结束时间' style="width: 60%"
267
- :disabled-days-of-week="[]"
268
- :format="'yyyy-MM-dd'"
269
- :show-rest-button="reset"
270
- v-model="model.f_checksh_end"
271
- condition="f_approved_time <= '{} 23:59:59'">
272
- </datepicker>
273
- </div>
274
- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
275
- <label class="font_normal_body">审&ensp;核&ensp;人</label>
276
- <input type="text" class="input_search" v-model="model.f_approved_by"
277
- style="width: 60%" placeholder="审核人" condition="f_approved_by like '%{}%'">
278
- </div>
279
- </div>
280
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
281
- <div slot="modal-header" class="modal-header">
282
- <h4 class="modal-title">
283
- 选择计划
284
- </h4>
285
- </div>
286
- <div slot="modal-body" class="modal-body">
287
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
288
- </div>
289
- <div slot="modal-footer" class="modal-footer" style="text-align: center;white-space: nowrap">
290
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
291
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
292
- </div>
293
- </modal>
294
- </div>
295
- </criteria>
296
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
297
- <template partial='head'>
298
- <tr>
299
- <th>
300
- <nobr>客户编号</nobr>
301
- </th>
302
- <th>
303
- <nobr>客户名称</nobr>
304
- </th>
305
- <th>
306
- <nobr>客户电话</nobr>
307
- </th>
308
- <th>
309
- <nobr>客户类型</nobr>
310
- </th>
311
- <th>
312
- <nobr>用户状态</nobr>
313
- </th>
314
- <th>
315
- <nobr>小区</nobr>
316
- </th>
317
- <th>
318
- <nobr>地址</nobr>
319
- </th>
320
- <th>
321
- <nobr>码盘数</nobr>
322
- </th>
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
- <nobr>表封号</nobr>
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>-->
366
- <!-- <nobr>维修状态</nobr>-->
367
- <!-- </th>-->
368
- <!-- <th>-->
369
- <!-- <nobr>维修人</nobr>-->
370
- <!-- </th>-->
371
- <!-- <th>-->
372
- <!-- <nobr>维修时间</nobr>-->
373
- <!-- </th>-->
374
- <!-- <th>-->
375
- <!-- <nobr>维修描述</nobr>-->
376
- <!-- </th>-->
377
-
378
- <th>
379
- <nobr>备注</nobr>
380
- </th>
381
- <th>
382
- <nobr>安检状态</nobr>
383
- </th>
384
- <th>
385
- <nobr>安检计划</nobr>
386
- </th>
387
- <th>
388
- <nobr>整改通知书</nobr>
389
- </th>
390
- <th>
391
- <nobr>录音/照片</nobr>
392
- </th>
393
- <th>
394
- <data-order field="f_offsite_time" name="安检时间"></data-order>
395
- </th>
396
- <th>
397
- <nobr>安检员</nobr>
398
- </th>
399
- <th>
400
- <nobr>审核状态</nobr>
401
- </th>
402
- <th>
403
- <nobr>审核人</nobr>
404
- </th>
405
- <th>
406
- <nobr>审核时间</nobr>
407
- </th>
408
- <th>
409
- <nobr>操作</nobr>
410
- </th>
411
- <th v-if="$parent.$parent.$parent.audioshow">
412
- <nobr>录音</nobr>
413
- </th>
414
- </tr>
415
- </template>
416
- <template partial='body'>
417
- <td style="text-align: center;white-space: nowrap">{{ row.f_userinfo_code }}</td>
418
- <td style="text-align: center;white-space: nowrap">{{ row.f_user_name }}</td>
419
- <td style="text-align: center;white-space: nowrap">{{ row.f_user_phone }}</td>
420
- <td style="text-align: center;white-space: nowrap">{{ row.f_check_type }}</td>
421
- <td style="text-align: center;white-space: nowrap">{{ row.f_user_state }}</td>
422
- <td style="text-align: center;white-space: nowrap">{{ row.f_residential_area }}</td>
423
- <td style="text-align: center;white-space: nowrap">{{ row.f_address }}</td>
424
- <td style="text-align: center;white-space: nowrap">{{ row.f_mapanshu }}</td>
425
- <td style="text-align: center;white-space: nowrap"
426
- @dblclick.stop="$parent.$parent.$parent.tochangeRemark(row)">{{ row.f_chazhi }}
427
- </td>
428
- <td style="text-align: center;white-space: nowrap">{{ row.f_shengyu_gas }}</td>
429
- <td style="text-align: center;white-space: nowrap">{{ row.f_bowenguan }}</td>
430
- <td style="text-align: center;white-space: nowrap">{{ row.f_zibifa }}</td>
431
- <td style="text-align: center;white-space: nowrap">{{ row.f_contractdate }}</td>
432
- <td style="text-align: center;white-space: nowrap">{{ row.f_meternumber }}</td>
433
- <td style="text-align: center;white-space: nowrap">{{ row.f_meter_classify }}</td>
434
- <td style="text-align: center;white-space: nowrap">{{ row.f_position }}</td>
435
- <td style="text-align: center;white-space: nowrap">{{ row.f_aroundmeter }}</td>
436
- <td style="text-align: center;white-space: nowrap">{{ row.f_metertitles }}</td>
437
- <td style="text-align: center;white-space: nowrap">{{ row.f_table_state }}</td>
438
- <td style="text-align: center;white-space: nowrap">{{ row.f_safecheck_type }}</td>
439
- <td style="text-align: center;white-space: nowrap">{{ row.defect_content == '无隐患' ? '正常' : '有隐患' }}</td>
440
- <td style="text-align: center;white-space: nowrap">{{ row.defect_content }}</td>
441
- <!-- <td style="text-align: center;white-space: nowrap">{{ row.repaired}}</td>-->
442
- <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_repairman}}</td>-->
443
- <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_repair_date}}</td>-->
444
- <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_ratification_des}}</td>-->
445
- <td style="text-align: center;white-space: nowrap">{{ row.f_repair_approved_note }}</td>
446
- <td style="text-align: center;white-space: nowrap">{{ row.f_entry_status }}</td>
447
- <td style="text-align: center;white-space: nowrap">{{ row.f_plan_name }}</td>
448
- <!--整改通知书别名-->
449
- <td style="text-align: center;white-space: nowrap">{{ row.f_rectification_notice }}</td>
450
- <td style="text-align: center;white-space: nowrap"
451
- v-if="row.f_entry_status=='到访不遇'|| row.f_entry_status=='拒检'">{{ row.f_downloadpath }}
452
- </td>
453
- <td style="text-align: center;white-space: nowrap" v-else></td>
454
- <td style="text-align: center;white-space: nowrap">{{ row.f_offsite_time }}</td>
455
- <td style="text-align: center;white-space: nowrap">{{ row.f_checker_name }}</td>
456
- <td style="text-align: center;white-space: nowrap">{{ row.f_approved }}</td>
457
- <td style="text-align: center;white-space: nowrap">{{ row.f_approved_by }}</td>
458
- <td style="text-align: center;white-space: nowrap">{{ row.f_approved_time }}</td>
459
- <td style="text-align: center;white-space: nowrap">
460
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
461
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.del(row)' v-show="$parent.$parent.$parent.isdel=='否'">作废</button>-->
462
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.pass(row)'
463
- v-show ="row.f_approved == '未审核'">通过
464
- </button>
465
- <button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
466
- @click="$parent.$parent.$parent.print(row)">
467
- 打印
468
- </button>
469
- </td>
470
- <td style="text-align: center;white-space: nowrap" v-if="$parent.$parent.$parent.audioshow">
471
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
472
- <audio controls="controls" v-if="row.f_recording1_path">
473
- <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
474
- </audio>
475
- </td>
476
- </template>
477
- </data-grid>
478
- </criteria-paged>
479
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
480
- </div>
481
- <modal :show.sync="showModal2" :backdrop="false">
482
- <div slot="modal-header" class="modal-header">
483
- <h4 class="modal-title">
484
- 用户{{ this.paperrow.f_user_name }}备注修改
485
- </h4>
486
- </div>
487
- <div slot="modal-body" class="modal-body">
488
- <div class="row" style="margin-top: 10px">
489
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备注</label>
490
- <div class="col-xs-8 col-md-8">
491
- <textarea class="form-control" type="text" v-model="paperRemark"></textarea>
492
- </div>
493
- </div>
494
- </div>
495
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
496
- <button class="button_search" @click="okshow">确认</button>
497
- <button class="button_search" @click="cancelshow">取消</button>
498
- </div>
499
- </modal>
500
- </div>
501
- </template>
502
-
503
- <script>
504
- import {PagedList} from 'vue-client'
505
- import Vue from 'vue'
506
- import co from 'co'
507
- import AppData from '../../../stores/AppData'
508
- import * as Util from '../../Util'
509
- import getNowDate from "../../../utils/getNowDate";
510
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
511
- import BenzAMRRecorder from 'benz-amr-recorder'
512
-
513
- //获取json配置文件
514
- let asyncReady = async function (self) {
515
- // 获取配置信息
516
- try {
517
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
518
- Vue.config = res.data
519
- } catch (error) {
520
- // 忽略704,文件找不到异常R
521
- if (error.status !== 704) {
522
- throw error
523
- }
524
- }
525
- }
526
-
527
- let select = function* (self) {
528
- let http = new HttpResetClass()
529
- let getGasman = yield http.load('POST', '/rs/search', {
530
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
531
- userid: self.$login.f.id
532
- }, {resolveMsg: null, rejectMsg: null})
533
- ////tag
534
- self.checkersid.push({label: '全部', value: ''})
535
- getGasman.data.forEach((checker) => {
536
- self.checkersid.push({label: checker.name, value: checker.id})
537
- })
538
- }
539
-
540
- export default {
541
- title: '安检结果查看',
542
- data() {
543
- let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
544
- f_plan_id: 'this.f_plan_id',
545
- f_approved: 'this.f_approved',
546
- f_entry_status: 'this.f_entry',
547
- f_no_checkplan: 'this.f_no_checkplan',
548
- f_filialeid: 'this.f_filialeid',
549
- f_defect_content:'this.f_defect_content',
550
- orderitem: "'f_offsite_time desc'"
551
- })
552
- model.f_plan_id = ''
553
- model.f_approved = ''
554
- model.f_entry = ''
555
- model.f_no_checkplan = ''
556
- model.f_filialeid = `('${this.$login.f.orgid}')`
557
- model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
558
- return {
559
- showbusy:false,
560
- audioshow: false,
561
- paperRemark:'',
562
- searchData: {
563
- condition: "1=1",
564
- orderitem: "f_offsite_time desc",
565
- f_plan_id: "",
566
- f_approved: '',
567
- f_entry_status: '',
568
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
569
- f_no_checkplan: '',
570
- f_filialeid: `('${this.$login.f.orgid}')`
571
- },
572
- model: model,
573
- //searchData:searchData,
574
- excelHeaders: {
575
- 'f_userinfo_code': '客户编号',
576
- 'f_user_name': '客户名称',
577
- 'f_user_phone': '客户电话',
578
- 'f_check_type': '客户类型',
579
- 'f_user_state': '客户状态',
580
- 'f_residential_area': '小区',
581
- 'f_address': '地址',
582
- 'f_mapanshu': '码盘数',
583
- 'f_chazhi': '气量差值',
584
- 'f_shengyu_gas':'剩余气量',
585
- 'f_bowenguan':'波纹管数量',
586
- 'f_zibifa':'自闭阀数量',
587
- 'f_contractdate': '合同日期',
588
- 'f_table_state': '气表状态',
589
- 'f_meternumber': '表号',
590
- 'f_meter_classify': '表品牌',
591
- 'f_position': '表位置',
592
- 'f_aroundmeter': '左右表',
593
- 'f_metertitles': '表封号',
594
- 'defect_content': '安检结果',
595
- // 'repaired': '维修状态',
596
- // 'f_repairman': '维修人',
597
- // 'f_repair_date': '维修时间',
598
- // 'f_ratification_des': '维修描述',
599
- 'f_repair_approved_note': '备注',
600
- 'f_plan_name':'计划名称',
601
- 'f_rectification_notice':'整改通知书',
602
- 'f_downloadpath':'录音/照片',
603
- 'f_entry_status': '安检状态',
604
- 'f_offsite_time': '安检时间',
605
- 'f_checker_name': '安检员',
606
- 'f_approved' : '审核状态',
607
- 'f_approved_by' : '审核人',
608
- 'f_approved_time':'审核时间'
609
- },
610
- fun: this.$login.f,
611
- showModal2:false,
612
- paperrow:{},
613
- checkersid: [],
614
- safetype: [
615
- {label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
616
- downloadpaths: [{label: '全部', value: ''},{label: '已上传', value: '已上传'},{label: '未上传', value: '未上传'}],
617
- criteriaShow: false,
618
- showModal: false,
619
- table_state: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')],
620
- f_approval_states: this.$appdata.getParam('安检单审核状态'),
621
- f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
622
- user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
623
- safecheck_type:[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
624
- f_checkplans: this.$appdata.getParam('有无计划'),
625
- showcheckmsg: false,
626
- checkInfo: {},
627
- orderDefault: "'f_offsite_time'",
628
- orderFields: {
629
- f_offsite_time: 'no'
630
- },
631
- sliceArea: [],
632
- review_status:[{label: '全部', value: ''},{label: '待审核', value: '未审核'},{label: '正常', value: '通过'}],
633
- isdels: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
634
- repaireds: [{label: '全部', value: ''},{label: '已修', value: '已修'},{label: '未修', value: '未修'}],
635
- checkresults: [{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
636
- isdel: '否',
637
- cbc: []
638
- }
639
- },
640
- methods: {
641
- tochangeRemark(row){
642
- //tag
643
- this.paperRemark=row.f_chazhi
644
- this.paperrow=row
645
- this.showModal2=true
646
-
647
- },
648
- okshow(){
649
- let sql=`update t_check_paper set f_chazhi='${this.paperRemark}' where id='${this.paperrow.id}'`
650
- //tag
651
- new HttpResetClass().load('post','api/af-safecheck/logic/runSQL',{data:{sql:sql}},{resolveMsg:'修改成功',rejectMsg:'修改失败'}).then(res=>{
652
- // this.$showMessage("修改成功")
653
- let e = document.createEvent("MouseEvents");
654
- e.initEvent("click", true, true);
655
- document.getElementById("btnbbb").dispatchEvent(e);
656
- this.showModal2=false
657
- })
658
-
659
- },
660
- cancelshow(){
661
- this.showModal2=false
662
- },
663
- pass(row) {
664
- //判断当前登录人是否有审核权限
665
- if(this.$appdata.getSingleValue('开启安检审核权限')=='是'){
666
- if(!this.$login.r.includes('安检结果审核')){
667
- //提示无审核权限
668
- this.$showMessage('您无审核权限')
669
- return
670
- }
671
- }
672
- var reqdata = {
673
- audit_result: '通过',
674
- operator: "success",
675
- audit_time: Util.getNowDate(),
676
- user_name: this.$login.f.name,
677
- id: row.id,
678
- f_check_item_id: row.f_check_item_id
679
- }
680
- this.$showMessage('确认通过当前安检单吗?', ['confirm', 'cancel']).then((res) => {
681
- if (res === 'confirm') {
682
- this.$resetpost('/api/af-safecheck/logic/updateAafeAudit', {data: reqdata}).then((res) => {
683
- //tag
684
- if (res.data.code == 200) {
685
- this.$showMessage('通过成功')
686
- this.search()
687
- } else {
688
- this.$showMessage('通过失败!')
689
- }
690
- }).catch((e) => {
691
- this.$showMessage(JSON.stringify(e) + '通过失败!')
692
- })
693
- }
694
- })
695
- },
696
- del(row) {
697
- //tag
698
- this.$showMessage('确认作废当前安检单吗?', ['confirm', 'cancel']).then((res) => {
699
- if (res === 'confirm') {
700
- this.$resetpost('api/af-safecheck/logic/DelCheckPaper', {id:row.id}).then((res) => {
701
- //tag
702
- if(res.data.code == 200){
703
- this.$showMessage('作废成功')
704
- this.search()
705
- }else {
706
- this.$showMessage('作废失败!')
707
- }
708
- }).catch((e) => {
709
- this.$showMessage(JSON.stringify(e) +'作废失败!')
710
- })
711
- }
712
- })
713
- },
714
- showaudio() {
715
- //tag
716
- this.audioshow = !this.audioshow
717
- //tag
718
- },
719
- getmeterbook(val) {
720
- this.cbc = []
721
- this.cbc.push({
722
- label: '全部',
723
- value: ''
724
- })
725
- if (val == '') {
726
-
727
- this.cbcs.forEach(res => {
728
- this.cbc.push({
729
- label: res.f_book_name,
730
- value: res.id
731
- })
732
- })
733
- } else {
734
- this.cbcs.forEach(res => {
735
- if (res.f_book_slice_area == val) {
736
- this.cbc.push({
737
- label: res.f_book_name,
738
- value: res.id
739
- })
740
- }
741
- })
742
- }
743
- },
744
- Mreadibook(val) {
745
- ////tag
746
- ////tag
747
- this.sliceArea = []
748
- if (val) {
749
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
750
- data: {
751
- items: 'name',
752
- tablename: 't_zone',
753
- condition: `parentid in ${val}`,
754
- orderitem: 'id'
755
- }
756
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
757
- this.sliceArea.push({
758
- label: '全部',
759
- value: ''
760
- })
761
- res.data.forEach(ress => {
762
- this.sliceArea.push({
763
- label: ress.name,
764
- value: ress.name
765
- })
766
- })
767
-
768
- })
769
- }
770
- },
771
- getAllMeterBook(val) {
772
- ////tag
773
- ////tag
774
- this.cbcs = []
775
- if (val) {
776
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
777
- data: {
778
- items: 'f_book_name,f_book_slice_area,id',
779
- tablename: 't_meter_book',
780
- condition: `f_filiale_id in ${val}`,
781
- orderitem: 'id'
782
- }
783
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
784
- res.data.forEach(ress => {
785
- this.cbcs.push({
786
- id: ress.id,
787
- f_book_name: ress.f_book_name,
788
- f_book_slice_area: ress.f_book_slice_area
789
- })
790
- })
791
- this.cbc = []
792
- this.cbc.push({
793
- label: '全部',
794
- value: ''
795
- })
796
- this.cbcs.forEach(res => {
797
- this.cbc.push({
798
- label: res.f_book_name,
799
- value: res.id
800
- })
801
- })
802
- })
803
- }
804
- },
805
- getRes(obj) {
806
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
807
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
808
- this.Mreadibook(this.model.f_filialeid)
809
- this.getAllMeterBook(this.model.f_filialeid)
810
- //this.$refs.paged.$refs.criteria.search()
811
- },
812
-
813
- change(row) {
814
- // Vue.$login = {jwt: row.f_checker_id}
815
- asyncReady(this).then(() => {
816
- ////tag)
817
- row.f_upload_state = '已传'
818
- this.$goto('new-check-paper', {
819
- f_plan_id: row.f_check_plan_id,
820
- item: row,
821
- role: 'view',
822
- isdel: this.isdel
823
- }, 'self')
824
- }).catch(
825
- (respanse) => {
826
- alert('获取配置文件失败')
827
- })
828
- },
829
- readConfig() {
830
- let gen = asyncReady(this)
831
- return co(gen)
832
- },
833
- showChooser() {
834
- this.showModal = true
835
- },
836
- hidden() {
837
- this.criteriaShow = !this.criteriaShow
838
- },
839
- refresh() {
840
- this.$refs.paged.$refs.criteria.search()
841
- },
842
- ok() {
843
- this.showModal = false
844
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
845
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
846
- this.model.f_check_plan = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
847
- }
848
- },
849
- cancel() {
850
- this.showModal = false
851
- this.model.f_check_plan = {f_plan_name: '', id: ''}
852
- this.model.f_plan_id = ''
853
- },
854
- print(row) {
855
- this.showcheckmsg = true
856
- this.checkInfo = row
857
- },
858
- sort(field, rule) {
859
- // 将所有排序方式设为不排序,实现相互排斥
860
- for (let key in this.orderFields) {
861
- if (key === field) {
862
- this.orderFields[key] = rule
863
- } else {
864
- this.orderFields[key] = 'no'
865
- }
866
- }
867
- // 如果新规则不排序,还原为默认排序
868
- if (rule === 'no') {
869
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
870
- } else {
871
- this.model.paramSource.orderitem = `'${field} ${rule}'`
872
- }
873
- this.search()
874
- },
875
- search() {
876
- this.$refs.paged.$refs.criteria.search()
877
- },
878
- selfSearch(args) {
879
- ////tag
880
- //args.condition+=" and f_check_type='民用'"
881
- //tag
882
- // //tag
883
- if (this.$refs.paged.$refs.criteria.model.f_is_delete == '是') {
884
- //tag
885
- this.isdel = '是'
886
- this.model.url = 'api/af-safecheck/sql/QueryDelCheckPaper'
887
-
888
- } else {
889
- //tag
890
- this.isdel = '否'
891
- this.model.url = 'api/af-safecheck/sql/查找安检单'
892
- }
893
- // if (args.condition.indexOf('f_table_state') == -1){
894
- // args.condition += " and f_table_state = '正常'"
895
- // }
896
- this.model.search(args.condition, args.model, args.condValue)
897
- }
898
- },
899
-
900
- ready() {
901
- ////tag
902
- this.function = this.f
903
- ////tag
904
-
905
- let gen = select(this)
906
- //this.pianqu()
907
- this.Mreadibook(`('${this.$login.f.orgid}')`)
908
- co(gen)
909
- },
910
- watch: {
911
- 'model.f_no_checkplan'(val) {
912
- if (this.model.f_no_checkplan) {
913
- this.searchData.f_no_checkplan = val
914
- }
915
- if (this.model.f_no_checkplan == '有计划安检') {
916
-
917
- this.showChooser()
918
- }
919
- },
920
- 'model.condition'(val) {
921
- if (val) {
922
- this.searchData.condition = val
923
- }
924
-
925
- },
926
- 'model.f_entry'(val) {
927
- if (val) {
928
- this.searchData.f_entry_status = val
929
- }
930
- },
931
- 'model.f_plan_id'(val) {
932
- if (val) {
933
- this.searchData.f_plan_id = val
934
- }
935
- },
936
- 'model.f_slice_area'(val) {
937
- if (val) {
938
-
939
- }
940
- },
941
- 'model.f_approved'(val) {
942
- if (val) {
943
- this.searchData.f_approved = val
944
- }
945
- },
946
- }
947
-
948
- }
949
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <work-busy :is-busy="showbusy"></work-busy>
4
+ <div class="basic-main">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="form-group col-sm-2">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
12
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
13
+ </div>
14
+ <div class="form-group col-sm-2">
15
+ <label class="font_normal_body">客户名称</label>
16
+ <input type="text" class="input_search" v-model="model.f_user_name"
17
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
18
+ </div>
19
+ <div class="form-group col-sm-2">
20
+ <label class="font_normal_body">客户电话</label>
21
+ <input type="text" class="input_search" v-model="model.f_user_phone"
22
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2">
25
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
26
+ <input type="text" class="input_search" v-model="model.f_residential_area"
27
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
28
+ </div>
29
+ <div class="form-group col-sm-2" >
30
+ <label class="font_normal_body">详细地址</label>
31
+ <input type="text" class="input_search" v-model="model.f_address"
32
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
33
+ </div>
34
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
35
+
36
+ <export-excel :data="$parent.$parent.searchData"
37
+ :field="$parent.$parent.excelHeaders"
38
+ :choose-col="true"
39
+ progress="safeGetExportProgress"
40
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="查找安检单"
41
+ template-name='安检结果明细'></export-excel>
42
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
43
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()"
44
+ v-if="$parent.$parent.audioshow">隐藏
45
+ </button>
46
+
47
+ <button id="btnbbb" class="button_spacing button_search" @click="search()">查询</button>
48
+ <div style="float: right" class="button_spacing"
49
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
50
+ @click="$parent.$parent.hidden()"></div>
51
+ </div>
52
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow" >
53
+ <label class="font_normal_body">安检计划</label>
54
+ <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
55
+ @click="$parent.$parent.showChooser"
56
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
57
+ </div>
58
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
59
+ <label class="font_normal_body">开始时间</label>
60
+ <datepicker
61
+ class="select_list select"
62
+ :value.sync="model.f_check_start"
63
+ placeholder='开始时间' style="width: 60%"
64
+ :disabled-days-of-week="[]"
65
+ :format="'yyyy-MM-dd'"
66
+ :show-rest-button="reset"
67
+ v-model="model.f_check_start"
68
+ condition="f_offsite_time > ='{} 00:00:00'">
69
+ </datepicker>
70
+ </div>
71
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
72
+ <label class="font_normal_body">结束时间</label>
73
+ <datepicker
74
+ :value.sync="model.f_check_end"
75
+ placeholder='结束时间' style="width: 60%"
76
+ :disabled-days-of-week="[]"
77
+ :format="'yyyy-MM-dd'"
78
+ :show-rest-button="reset"
79
+ v-model="model.f_check_end"
80
+ condition="f_offsite_time <= '{} 23:59:59'">
81
+ </datepicker>
82
+ </div>
83
+ <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow" v-show="false">-->
84
+ <!-- <label class="font_normal_body" >安检类型</label>-->
85
+ <!-- <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'-->
86
+ <!-- :value-single="true" style="width: 60%"-->
87
+ <!-- class="select_list select"-->
88
+ <!-- :options='$parent.$parent.safetype' placeholder='安检类型'-->
89
+ <!-- close-on-select-->
90
+ <!-- condition="f_safecheck_type = '{}'"></v-select>-->
91
+ <!-- </div>-->
92
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
93
+ <label class="font_normal_body">安检状态</label>
94
+ <v-select id="f_entry"
95
+ class="select_list select"
96
+ placeholder='安检状态' style="width: 60%"
97
+ v-model='model.f_entry'
98
+ :value.sync="$parent.$parent.model.f_entry"
99
+ :options='$parent.$parent.f_entry_status'
100
+ condition=""
101
+ :value-single="true"
102
+ close-on-select clear-button></v-select>
103
+ </div>
104
+
105
+ <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">-->
106
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
107
+ <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
108
+ <!-- :value-single="true" style="width: 60%"-->
109
+ <!-- class="select_list select"-->
110
+ <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
111
+ <!-- close-on-select-->
112
+ <!-- condition="f_checker_id = '{}'"></v-select>-->
113
+ <!-- </div>-->
114
+ <!-- <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">-->
115
+ <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
116
+ <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
117
+ <!-- </right-tree>-->
118
+ <!-- </div>-->
119
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
120
+
121
+ <label class="font_normal_body">用户状态</label>
122
+ <v-select :value.sync="model.f_user_state" v-model='model.f_user_state'
123
+ :value-single="true" style="width: 60%"
124
+ class="select_list select"
125
+ :options='$parent.$parent.user_states' placeholder='用户状态'
126
+ close-on-select
127
+ condition="f_user_state = '{}'"></v-select>
128
+ </div>
129
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
130
+
131
+ <label class="font_normal_body">录音照片状态</label>
132
+ <v-select :value.sync="model.f_downloadpath" v-model='model.f_downloadpath'
133
+ :value-single="true" style="width: 60%"
134
+ class="select_list select"
135
+ :options='$parent.$parent.downloadpaths' placeholder='录音/照片'
136
+ close-on-select
137
+ condition="f_downloadpath = '{}'"></v-select>
138
+ </div>
139
+ <div class="col-sm-4 form-group" v-if="$parent.$parent.criteriaShow" style="margin: 0">
140
+ <role-selector-safe
141
+ role-name="安检员"
142
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
143
+ @re-res="$parent.$parent.getRes"
144
+ :value.sync="model.f_checker_id"
145
+ v-model="model.f_checker_id"
146
+ condition="f_checker_name = '{}'">
147
+ </role-selector-safe>
148
+ </div>
149
+ <div class="form-group col-sm-2" v-show="false">
150
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
151
+ <v-select class="select_list select"
152
+ placeholder='片区/管理站' style="width: 60%"
153
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
154
+ :options='$parent.$parent.sliceArea'
155
+ filer-key="name"
156
+ close-on-select clear-button
157
+ condition="f_slice_area='{}'"
158
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
159
+ :value-single="true">
160
+ </v-select>
161
+ </div>
162
+ <div class="form-group col-sm-2" v-show="false">
163
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
164
+ <v-select class="select_list select"
165
+ placeholder='抄表册' style="width: 60%"
166
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
167
+ :options='$parent.$parent.cbc'
168
+ filer-key="name"
169
+ close-on-select clear-button
170
+ condition="f_meter_book_num={}"
171
+ :value-single="true">
172
+ </v-select>
173
+ </div>
174
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
175
+ <label class="font_normal_body">是否作废</label>
176
+ <v-select class="select_list select"
177
+ placeholder='是否作废' style="width: 60%"
178
+ :value.sync="model.f_is_delete" v-model="model.f_is_delete"
179
+ :options='$parent.$parent.isdels'
180
+ filer-key="name"
181
+ close-on-select clear-button
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">维修结果</label>
187
+ <v-select class="select_list select"
188
+ placeholder='维修结果' style="width: 60%"
189
+ :value.sync="model.f_repaired" v-model="model.f_repaired"
190
+ :options='$parent.$parent.repaireds'
191
+ filer-key="name"
192
+ close-on-select clear-button
193
+ condition="f_repaired = '{}'"
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
+ <v-select class="select_list select"
200
+ placeholder='安检结果' style="width: 60%"
201
+ :value.sync="model.f_check_result" v-model="model.f_check_result"
202
+ :options='$parent.$parent.checkresults'
203
+ filer-key="name"
204
+ close-on-select clear-button
205
+ condition="f_defect_content like'%{}%'"
206
+ :value-single="true">
207
+ </v-select>
208
+ </div>
209
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
210
+
211
+ <label class="font_normal_body">安检类型</label>
212
+ <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
213
+ :value-single="true" style="width: 60%"
214
+ class="select_list select"
215
+ :options='$parent.$parent.safecheck_type' placeholder='安检类型'
216
+ close-on-select
217
+ condition="f_safecheck_type = '{}'"></v-select>
218
+ </div>
219
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
220
+ <label class="font_normal_body">是否有改动</label>
221
+ <v-select class="select_list select"
222
+ placeholder='安检结果' style="width: 60%"
223
+ :value.sync="model.f_gaodong_flag" v-model="model.f_gaodong_flag"
224
+ :options='$parent.$parent.isdels'
225
+ filer-key="name"
226
+ close-on-select clear-button
227
+ condition="f_gaodong_flag = '{}'"
228
+ :value-single="true">
229
+ </v-select>
230
+ </div>
231
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
232
+ <label class="font_normal_body">气表状态</label>
233
+ <v-select :value.sync="model.f_table_state" v-model='model.f_table_state'
234
+ :value-single="true" style="width: 60%"
235
+ class="select_list select"
236
+ :options='$parent.$parent.table_state' placeholder='气表状态'
237
+ close-on-select
238
+ condition="f_table_state = '{}'"></v-select>
239
+ </div>
240
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
241
+ <label class="font_normal_body">审核状态</label>
242
+ <v-select :value.sync="model.f_approved" v-model='model.f_approved'
243
+ :value-single="true" style="width: 60%"
244
+ class="select_list select"
245
+ :options='$parent.$parent.review_status' placeholder='审核状态'
246
+ close-on-select
247
+ condition="f_approved= '{}'"></v-select>
248
+ </div>
249
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
250
+ <label class="font_normal_body">审核开始</label>
251
+ <datepicker
252
+ class="select_list select"
253
+ :value.sync="model.f_checksh_start"
254
+ placeholder='审核开始时间' style="width: 60%"
255
+ :disabled-days-of-week="[]"
256
+ :format="'yyyy-MM-dd'"
257
+ :show-rest-button="reset"
258
+ v-model="model.f_checksh_start"
259
+ condition="f_approved_time > ='{} 00:00:00'">
260
+ </datepicker>
261
+ </div>
262
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
263
+ <label class="font_normal_body">审核结束</label>
264
+ <datepicker
265
+ :value.sync="model.f_checksh_end"
266
+ placeholder='审核结束时间' style="width: 60%"
267
+ :disabled-days-of-week="[]"
268
+ :format="'yyyy-MM-dd'"
269
+ :show-rest-button="reset"
270
+ v-model="model.f_checksh_end"
271
+ condition="f_approved_time <= '{} 23:59:59'">
272
+ </datepicker>
273
+ </div>
274
+ <div class="form-group col-sm-2" v-if="$parent.$parent.criteriaShow">
275
+ <label class="font_normal_body">审&ensp;核&ensp;人</label>
276
+ <input type="text" class="input_search" v-model="model.f_approved_by"
277
+ style="width: 60%" placeholder="审核人" condition="f_approved_by like '%{}%'">
278
+ </div>
279
+ </div>
280
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
281
+ <div slot="modal-header" class="modal-header">
282
+ <h4 class="modal-title">
283
+ 选择计划
284
+ </h4>
285
+ </div>
286
+ <div slot="modal-body" class="modal-body">
287
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
288
+ </div>
289
+ <div slot="modal-footer" class="modal-footer" style="text-align: center;white-space: nowrap">
290
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
291
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
292
+ </div>
293
+ </modal>
294
+ </div>
295
+ </criteria>
296
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
297
+ <template partial='head'>
298
+ <tr>
299
+ <th>
300
+ <nobr>客户编号</nobr>
301
+ </th>
302
+ <th>
303
+ <nobr>客户名称</nobr>
304
+ </th>
305
+ <th>
306
+ <nobr>客户电话</nobr>
307
+ </th>
308
+ <th>
309
+ <nobr>客户类型</nobr>
310
+ </th>
311
+ <th>
312
+ <nobr>用户状态</nobr>
313
+ </th>
314
+ <th>
315
+ <nobr>小区</nobr>
316
+ </th>
317
+ <th>
318
+ <nobr>地址</nobr>
319
+ </th>
320
+ <th>
321
+ <nobr>码盘数</nobr>
322
+ </th>
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
+ <nobr>表封号</nobr>
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>-->
366
+ <!-- <nobr>维修状态</nobr>-->
367
+ <!-- </th>-->
368
+ <!-- <th>-->
369
+ <!-- <nobr>维修人</nobr>-->
370
+ <!-- </th>-->
371
+ <!-- <th>-->
372
+ <!-- <nobr>维修时间</nobr>-->
373
+ <!-- </th>-->
374
+ <!-- <th>-->
375
+ <!-- <nobr>维修描述</nobr>-->
376
+ <!-- </th>-->
377
+
378
+ <th>
379
+ <nobr>备注</nobr>
380
+ </th>
381
+ <th>
382
+ <nobr>安检状态</nobr>
383
+ </th>
384
+ <th>
385
+ <nobr>安检计划</nobr>
386
+ </th>
387
+ <th>
388
+ <nobr>整改通知书</nobr>
389
+ </th>
390
+ <th>
391
+ <nobr>录音/照片</nobr>
392
+ </th>
393
+ <th>
394
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
395
+ </th>
396
+ <th>
397
+ <nobr>安检员</nobr>
398
+ </th>
399
+ <th>
400
+ <nobr>审核状态</nobr>
401
+ </th>
402
+ <th>
403
+ <nobr>审核人</nobr>
404
+ </th>
405
+ <th>
406
+ <nobr>审核时间</nobr>
407
+ </th>
408
+ <th>
409
+ <nobr>操作</nobr>
410
+ </th>
411
+ <th v-if="$parent.$parent.$parent.audioshow">
412
+ <nobr>录音</nobr>
413
+ </th>
414
+ </tr>
415
+ </template>
416
+ <template partial='body'>
417
+ <td style="text-align: center;white-space: nowrap">{{ row.f_userinfo_code }}</td>
418
+ <td style="text-align: center;white-space: nowrap">{{ row.f_user_name }}</td>
419
+ <td style="text-align: center;white-space: nowrap">{{ row.f_user_phone }}</td>
420
+ <td style="text-align: center;white-space: nowrap">{{ row.f_check_type }}</td>
421
+ <td style="text-align: center;white-space: nowrap">{{ row.f_user_state }}</td>
422
+ <td style="text-align: center;white-space: nowrap">{{ row.f_residential_area }}</td>
423
+ <td style="text-align: center;white-space: nowrap">{{ row.f_address }}</td>
424
+ <td style="text-align: center;white-space: nowrap">{{ row.f_mapanshu }}</td>
425
+ <td style="text-align: center;white-space: nowrap"
426
+ @dblclick.stop="$parent.$parent.$parent.tochangeRemark(row)">{{ row.f_chazhi }}
427
+ </td>
428
+ <td style="text-align: center;white-space: nowrap">{{ row.f_shengyu_gas }}</td>
429
+ <td style="text-align: center;white-space: nowrap">{{ row.f_bowenguan }}</td>
430
+ <td style="text-align: center;white-space: nowrap">{{ row.f_zibifa }}</td>
431
+ <td style="text-align: center;white-space: nowrap">{{ row.f_contractdate }}</td>
432
+ <td style="text-align: center;white-space: nowrap">{{ row.f_meternumber }}</td>
433
+ <td style="text-align: center;white-space: nowrap">{{ row.f_meter_classify }}</td>
434
+ <td style="text-align: center;white-space: nowrap">{{ row.f_position }}</td>
435
+ <td style="text-align: center;white-space: nowrap">{{ row.f_aroundmeter }}</td>
436
+ <td style="text-align: center;white-space: nowrap">{{ row.f_metertitles }}</td>
437
+ <td style="text-align: center;white-space: nowrap">{{ row.f_table_state }}</td>
438
+ <td style="text-align: center;white-space: nowrap">{{ row.f_safecheck_type }}</td>
439
+ <td style="text-align: center;white-space: nowrap">{{ row.defect_content == '无隐患' ? '正常' : '有隐患' }}</td>
440
+ <td style="text-align: center;white-space: nowrap">{{ row.defect_content }}</td>
441
+ <!-- <td style="text-align: center;white-space: nowrap">{{ row.repaired}}</td>-->
442
+ <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_repairman}}</td>-->
443
+ <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_repair_date}}</td>-->
444
+ <!-- <td style="text-align: center;white-space: nowrap">{{ row.f_ratification_des}}</td>-->
445
+ <td style="text-align: center;white-space: nowrap">{{ row.f_repair_approved_note }}</td>
446
+ <td style="text-align: center;white-space: nowrap">{{ row.f_entry_status }}</td>
447
+ <td style="text-align: center;white-space: nowrap">{{ row.f_plan_name }}</td>
448
+ <!--整改通知书别名-->
449
+ <td style="text-align: center;white-space: nowrap">{{ row.f_rectification_notice }}</td>
450
+ <td style="text-align: center;white-space: nowrap"
451
+ v-if="row.f_entry_status=='到访不遇'|| row.f_entry_status=='拒检'">{{ row.f_downloadpath }}
452
+ </td>
453
+ <td style="text-align: center;white-space: nowrap" v-else></td>
454
+ <td style="text-align: center;white-space: nowrap">{{ row.f_offsite_time }}</td>
455
+ <td style="text-align: center;white-space: nowrap">{{ row.f_checker_name }}</td>
456
+ <td style="text-align: center;white-space: nowrap">{{ row.f_approved }}</td>
457
+ <td style="text-align: center;white-space: nowrap">{{ row.f_approved_by }}</td>
458
+ <td style="text-align: center;white-space: nowrap">{{ row.f_approved_time }}</td>
459
+ <td style="text-align: center;white-space: nowrap">
460
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
461
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.del(row)' v-show="$parent.$parent.$parent.isdel=='否'">作废</button>-->
462
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.pass(row)'
463
+ v-show ="row.f_approved == '未审核'">通过
464
+ </button>
465
+ <button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
466
+ @click="$parent.$parent.$parent.print(row)">
467
+ 打印
468
+ </button>
469
+ </td>
470
+ <td style="text-align: center;white-space: nowrap" v-if="$parent.$parent.$parent.audioshow">
471
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
472
+ <audio controls="controls" v-if="row.f_recording1_path">
473
+ <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
474
+ </audio>
475
+ </td>
476
+ </template>
477
+ </data-grid>
478
+ </criteria-paged>
479
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
480
+ </div>
481
+ <modal :show.sync="showModal2" :backdrop="false">
482
+ <div slot="modal-header" class="modal-header">
483
+ <h4 class="modal-title">
484
+ 用户{{ this.paperrow.f_user_name }}备注修改
485
+ </h4>
486
+ </div>
487
+ <div slot="modal-body" class="modal-body">
488
+ <div class="row" style="margin-top: 10px">
489
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备注</label>
490
+ <div class="col-xs-8 col-md-8">
491
+ <textarea class="form-control" type="text" v-model="paperRemark"></textarea>
492
+ </div>
493
+ </div>
494
+ </div>
495
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
496
+ <button class="button_search" @click="okshow">确认</button>
497
+ <button class="button_search" @click="cancelshow">取消</button>
498
+ </div>
499
+ </modal>
500
+ </div>
501
+ </template>
502
+
503
+ <script>
504
+ import {PagedList} from 'vue-client'
505
+ import Vue from 'vue'
506
+ import co from 'co'
507
+ import AppData from '../../../stores/AppData'
508
+ import * as Util from '../../Util'
509
+ import getNowDate from "../../../utils/getNowDate";
510
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
511
+ import BenzAMRRecorder from 'benz-amr-recorder'
512
+
513
+ //获取json配置文件
514
+ let asyncReady = async function (self) {
515
+ // 获取配置信息
516
+ try {
517
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
518
+ Vue.config = res.data
519
+ } catch (error) {
520
+ // 忽略704,文件找不到异常R
521
+ if (error.status !== 704) {
522
+ throw error
523
+ }
524
+ }
525
+ }
526
+
527
+ let select = function* (self) {
528
+ let http = new HttpResetClass()
529
+ let getGasman = yield http.load('POST', '/rs/search', {
530
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
531
+ userid: self.$login.f.id
532
+ }, {resolveMsg: null, rejectMsg: null})
533
+ ////tag
534
+ self.checkersid.push({label: '全部', value: ''})
535
+ getGasman.data.forEach((checker) => {
536
+ self.checkersid.push({label: checker.name, value: checker.id})
537
+ })
538
+ }
539
+
540
+ export default {
541
+ title: '安检结果查看',
542
+ data() {
543
+ let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
544
+ f_plan_id: 'this.f_plan_id',
545
+ f_approved: 'this.f_approved',
546
+ f_entry_status: 'this.f_entry',
547
+ f_no_checkplan: 'this.f_no_checkplan',
548
+ f_filialeid: 'this.f_filialeid',
549
+ f_defect_content:'this.f_defect_content',
550
+ orderitem: "'f_offsite_time desc'"
551
+ })
552
+ model.f_plan_id = ''
553
+ model.f_approved = ''
554
+ model.f_entry = ''
555
+ model.f_no_checkplan = ''
556
+ model.f_filialeid = `('${this.$login.f.orgid}')`
557
+ model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
558
+ return {
559
+ showbusy:false,
560
+ audioshow: false,
561
+ paperRemark:'',
562
+ searchData: {
563
+ condition: "1=1",
564
+ orderitem: "f_offsite_time desc",
565
+ f_plan_id: "",
566
+ f_approved: '',
567
+ f_entry_status: '',
568
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
569
+ f_no_checkplan: '',
570
+ f_filialeid: `('${this.$login.f.orgid}')`
571
+ },
572
+ model: model,
573
+ //searchData:searchData,
574
+ excelHeaders: {
575
+ 'f_userinfo_code': '客户编号',
576
+ 'f_user_name': '客户名称',
577
+ 'f_user_phone': '客户电话',
578
+ 'f_check_type': '客户类型',
579
+ 'f_user_state': '客户状态',
580
+ 'f_residential_area': '小区',
581
+ 'f_address': '地址',
582
+ 'f_mapanshu': '码盘数',
583
+ 'f_chazhi': '气量差值',
584
+ 'f_shengyu_gas':'剩余气量',
585
+ 'f_bowenguan':'波纹管数量',
586
+ 'f_zibifa':'自闭阀数量',
587
+ 'f_contractdate': '合同日期',
588
+ 'f_table_state': '气表状态',
589
+ 'f_meternumber': '表号',
590
+ 'f_meter_classify': '表品牌',
591
+ 'f_position': '表位置',
592
+ 'f_aroundmeter': '左右表',
593
+ 'f_metertitles': '表封号',
594
+ 'defect_content': '安检结果',
595
+ // 'repaired': '维修状态',
596
+ // 'f_repairman': '维修人',
597
+ // 'f_repair_date': '维修时间',
598
+ // 'f_ratification_des': '维修描述',
599
+ 'f_repair_approved_note': '备注',
600
+ 'f_plan_name':'计划名称',
601
+ 'f_rectification_notice':'整改通知书',
602
+ 'f_downloadpath':'录音/照片',
603
+ 'f_entry_status': '安检状态',
604
+ 'f_offsite_time': '安检时间',
605
+ 'f_checker_name': '安检员',
606
+ 'f_approved' : '审核状态',
607
+ 'f_approved_by' : '审核人',
608
+ 'f_approved_time':'审核时间'
609
+ },
610
+ fun: this.$login.f,
611
+ showModal2:false,
612
+ paperrow:{},
613
+ checkersid: [],
614
+ safetype: [
615
+ {label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
616
+ downloadpaths: [{label: '全部', value: ''},{label: '已上传', value: '已上传'},{label: '未上传', value: '未上传'}],
617
+ criteriaShow: false,
618
+ showModal: false,
619
+ table_state: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')],
620
+ f_approval_states: this.$appdata.getParam('安检单审核状态'),
621
+ f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
622
+ user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
623
+ safecheck_type:[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
624
+ f_checkplans: this.$appdata.getParam('有无计划'),
625
+ showcheckmsg: false,
626
+ checkInfo: {},
627
+ orderDefault: "'f_offsite_time'",
628
+ orderFields: {
629
+ f_offsite_time: 'no'
630
+ },
631
+ sliceArea: [],
632
+ review_status:[{label: '全部', value: ''},{label: '待审核', value: '未审核'},{label: '正常', value: '通过'}],
633
+ isdels: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
634
+ repaireds: [{label: '全部', value: ''},{label: '已修', value: '已修'},{label: '未修', value: '未修'}],
635
+ checkresults: [{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
636
+ isdel: '否',
637
+ cbc: []
638
+ }
639
+ },
640
+ methods: {
641
+ tochangeRemark(row){
642
+ //tag
643
+ this.paperRemark=row.f_chazhi
644
+ this.paperrow=row
645
+ this.showModal2=true
646
+
647
+ },
648
+ okshow(){
649
+ let sql=`update t_check_paper set f_chazhi='${this.paperRemark}' where id='${this.paperrow.id}'`
650
+ //tag
651
+ new HttpResetClass().load('post','api/af-safecheck/logic/runSQL',{data:{sql:sql}},{resolveMsg:'修改成功',rejectMsg:'修改失败'}).then(res=>{
652
+ // this.$showMessage("修改成功")
653
+ let e = document.createEvent("MouseEvents");
654
+ e.initEvent("click", true, true);
655
+ document.getElementById("btnbbb").dispatchEvent(e);
656
+ this.showModal2=false
657
+ })
658
+
659
+ },
660
+ cancelshow(){
661
+ this.showModal2=false
662
+ },
663
+ pass(row) {
664
+ //判断当前登录人是否有审核权限
665
+ if(this.$appdata.getSingleValue('开启安检审核权限')=='是'){
666
+ if(!this.$login.r.includes('安检结果审核')){
667
+ //提示无审核权限
668
+ this.$showMessage('您无审核权限')
669
+ return
670
+ }
671
+ }
672
+ var reqdata = {
673
+ audit_result: '通过',
674
+ operator: "success",
675
+ audit_time: Util.getNowDate(),
676
+ user_name: this.$login.f.name,
677
+ id: row.id,
678
+ f_check_item_id: row.f_check_item_id
679
+ }
680
+ this.$showMessage('确认通过当前安检单吗?', ['confirm', 'cancel']).then((res) => {
681
+ if (res === 'confirm') {
682
+ this.$resetpost('/api/af-safecheck/logic/updateAafeAudit', {data: reqdata}).then((res) => {
683
+ //tag
684
+ if (res.data.code == 200) {
685
+ this.$showMessage('通过成功')
686
+ this.search()
687
+ } else {
688
+ this.$showMessage('通过失败!')
689
+ }
690
+ }).catch((e) => {
691
+ this.$showMessage(JSON.stringify(e) + '通过失败!')
692
+ })
693
+ }
694
+ })
695
+ },
696
+ del(row) {
697
+ //tag
698
+ this.$showMessage('确认作废当前安检单吗?', ['confirm', 'cancel']).then((res) => {
699
+ if (res === 'confirm') {
700
+ this.$resetpost('api/af-safecheck/logic/DelCheckPaper', {id:row.id}).then((res) => {
701
+ //tag
702
+ if(res.data.code == 200){
703
+ this.$showMessage('作废成功')
704
+ this.search()
705
+ }else {
706
+ this.$showMessage('作废失败!')
707
+ }
708
+ }).catch((e) => {
709
+ this.$showMessage(JSON.stringify(e) +'作废失败!')
710
+ })
711
+ }
712
+ })
713
+ },
714
+ showaudio() {
715
+ //tag
716
+ this.audioshow = !this.audioshow
717
+ //tag
718
+ },
719
+ getmeterbook(val) {
720
+ this.cbc = []
721
+ this.cbc.push({
722
+ label: '全部',
723
+ value: ''
724
+ })
725
+ if (val == '') {
726
+
727
+ this.cbcs.forEach(res => {
728
+ this.cbc.push({
729
+ label: res.f_book_name,
730
+ value: res.id
731
+ })
732
+ })
733
+ } else {
734
+ this.cbcs.forEach(res => {
735
+ if (res.f_book_slice_area == val) {
736
+ this.cbc.push({
737
+ label: res.f_book_name,
738
+ value: res.id
739
+ })
740
+ }
741
+ })
742
+ }
743
+ },
744
+ Mreadibook(val) {
745
+ ////tag
746
+ ////tag
747
+ this.sliceArea = []
748
+ if (val) {
749
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
750
+ data: {
751
+ items: 'name',
752
+ tablename: 't_zone',
753
+ condition: `parentid in ${val}`,
754
+ orderitem: 'id'
755
+ }
756
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
757
+ this.sliceArea.push({
758
+ label: '全部',
759
+ value: ''
760
+ })
761
+ res.data.forEach(ress => {
762
+ this.sliceArea.push({
763
+ label: ress.name,
764
+ value: ress.name
765
+ })
766
+ })
767
+
768
+ })
769
+ }
770
+ },
771
+ getAllMeterBook(val) {
772
+ ////tag
773
+ ////tag
774
+ this.cbcs = []
775
+ if (val) {
776
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
777
+ data: {
778
+ items: 'f_book_name,f_book_slice_area,id',
779
+ tablename: 't_meter_book',
780
+ condition: `f_filiale_id in ${val}`,
781
+ orderitem: 'id'
782
+ }
783
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
784
+ res.data.forEach(ress => {
785
+ this.cbcs.push({
786
+ id: ress.id,
787
+ f_book_name: ress.f_book_name,
788
+ f_book_slice_area: ress.f_book_slice_area
789
+ })
790
+ })
791
+ this.cbc = []
792
+ this.cbc.push({
793
+ label: '全部',
794
+ value: ''
795
+ })
796
+ this.cbcs.forEach(res => {
797
+ this.cbc.push({
798
+ label: res.f_book_name,
799
+ value: res.id
800
+ })
801
+ })
802
+ })
803
+ }
804
+ },
805
+ getRes(obj) {
806
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
807
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
808
+ this.Mreadibook(this.model.f_filialeid)
809
+ this.getAllMeterBook(this.model.f_filialeid)
810
+ //this.$refs.paged.$refs.criteria.search()
811
+ },
812
+
813
+ change(row) {
814
+ // Vue.$login = {jwt: row.f_checker_id}
815
+ asyncReady(this).then(() => {
816
+ ////tag)
817
+ row.f_upload_state = '已传'
818
+ this.$goto('new-check-paper', {
819
+ f_plan_id: row.f_check_plan_id,
820
+ item: row,
821
+ role: 'view',
822
+ isdel: this.isdel
823
+ }, 'self')
824
+ }).catch(
825
+ (respanse) => {
826
+ alert('获取配置文件失败')
827
+ })
828
+ },
829
+ readConfig() {
830
+ let gen = asyncReady(this)
831
+ return co(gen)
832
+ },
833
+ showChooser() {
834
+ this.showModal = true
835
+ },
836
+ hidden() {
837
+ this.criteriaShow = !this.criteriaShow
838
+ },
839
+ refresh() {
840
+ this.$refs.paged.$refs.criteria.search()
841
+ },
842
+ ok() {
843
+ this.showModal = false
844
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
845
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
846
+ this.model.f_check_plan = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
847
+ }
848
+ },
849
+ cancel() {
850
+ this.showModal = false
851
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
852
+ this.model.f_plan_id = ''
853
+ },
854
+ print(row) {
855
+ this.showcheckmsg = true
856
+ this.checkInfo = row
857
+ },
858
+ sort(field, rule) {
859
+ // 将所有排序方式设为不排序,实现相互排斥
860
+ for (let key in this.orderFields) {
861
+ if (key === field) {
862
+ this.orderFields[key] = rule
863
+ } else {
864
+ this.orderFields[key] = 'no'
865
+ }
866
+ }
867
+ // 如果新规则不排序,还原为默认排序
868
+ if (rule === 'no') {
869
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
870
+ } else {
871
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
872
+ }
873
+ this.search()
874
+ },
875
+ search() {
876
+ this.$refs.paged.$refs.criteria.search()
877
+ },
878
+ selfSearch(args) {
879
+ ////tag
880
+ //args.condition+=" and f_check_type='民用'"
881
+ //tag
882
+ // //tag
883
+ if (this.$refs.paged.$refs.criteria.model.f_is_delete == '是') {
884
+ //tag
885
+ this.isdel = '是'
886
+ this.model.url = 'api/af-safecheck/sql/QueryDelCheckPaper'
887
+
888
+ } else {
889
+ //tag
890
+ this.isdel = '否'
891
+ this.model.url = 'api/af-safecheck/sql/查找安检单'
892
+ }
893
+ // if (args.condition.indexOf('f_table_state') == -1){
894
+ // args.condition += " and f_table_state = '正常'"
895
+ // }
896
+ this.model.search(args.condition, args.model, args.condValue)
897
+ }
898
+ },
899
+
900
+ ready() {
901
+ ////tag
902
+ this.function = this.f
903
+ ////tag
904
+
905
+ let gen = select(this)
906
+ //this.pianqu()
907
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
908
+ co(gen)
909
+ },
910
+ watch: {
911
+ 'model.f_no_checkplan'(val) {
912
+ if (this.model.f_no_checkplan) {
913
+ this.searchData.f_no_checkplan = val
914
+ }
915
+ if (this.model.f_no_checkplan == '有计划安检') {
916
+
917
+ this.showChooser()
918
+ }
919
+ },
920
+ 'model.condition'(val) {
921
+ if (val) {
922
+ this.searchData.condition = val
923
+ }
924
+
925
+ },
926
+ 'model.f_entry'(val) {
927
+ if (val) {
928
+ this.searchData.f_entry_status = val
929
+ }
930
+ },
931
+ 'model.f_plan_id'(val) {
932
+ if (val) {
933
+ this.searchData.f_plan_id = val
934
+ }
935
+ },
936
+ 'model.f_slice_area'(val) {
937
+ if (val) {
938
+
939
+ }
940
+ },
941
+ 'model.f_approved'(val) {
942
+ if (val) {
943
+ this.searchData.f_approved = val
944
+ }
945
+ },
946
+ }
947
+
948
+ }
949
+ </script>