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,504 +1,504 @@
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">小&emsp;&emsp;区</label>
25
- <input type="text" class="input_search" v-model="model.f_residential_area"
26
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">详细地址</label>
30
- <input type="text" class="input_search" v-model="model.f_address"
31
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
-
35
- <export-excel :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- progress="safeGetExportProgress"
38
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='异常差值明细'></export-excel>
39
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
41
-
42
- <button class="button_spacing button_search" @click="search()">查询</button>
43
- <div style="float: right" class="button_spacing"
44
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
- @click="$parent.$parent.hidden()"></div>
46
- </div>
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
- </div>
55
- <div class="row">
56
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
57
- <role-selector-safe
58
- role-name="安检员"
59
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
60
- @re-res="$parent.$parent.getRes"
61
- :value.sync="model.f_checker_id"
62
- v-model="model.f_checker_id"
63
- condition="f_checker_name = '{}'">
64
- </role-selector-safe>
65
- </div>
66
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
67
- <label class="font_normal_body">差值类型</label>
68
- <v-select class="select_list select"
69
- placeholder='差值类型' style="width: 60%"
70
- :value.sync="model.f_item_name" v-model="model.f_item_name"
71
- :options='$parent.$parent.f_item_names'
72
- filer-key="name"
73
- close-on-select clear-button
74
- condition="f_item_name='{}'"
75
- :value-single="true">
76
- </v-select>
77
- </div>
78
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
79
- <label class="font_normal_body">差值区间</label>
80
- <input type="text" class="input_search" v-model="model.f_item_start"
81
- style="width: 60%" placeholder="差值区间(>=)" condition="f_item_value >= {}">
82
- </div>
83
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
84
- <label class="font_normal_body">差值区间</label>
85
- <input type="text" class="input_search" v-model="model.f_item_end"
86
- style="width: 60%" placeholder="差值区间(<=)" condition="f_item_value <= {}">
87
- </div>
88
- </div>
89
- <div class="row">
90
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
91
- <label class="font_normal_body">气表编号</label>
92
- <input type="text" class="input_search" v-model="model.f_meternumber"
93
- style="width: 60%" placeholder="气表编号" condition="f_meternumber = '{}'">
94
- </div>
95
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
96
- <label class="font_normal_body">气表品牌</label>
97
- <input type="text" class="input_search" v-model="model.f_meter_brand"
98
- style="width: 60%" placeholder="气表品牌" condition="f_meter_brand like '%{}%'">
99
- </div>
100
- </div>
101
-
102
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
103
- <div slot="modal-header" class="modal-header">
104
- <h4 class="modal-title">
105
- 选择计划
106
- </h4>
107
- </div>
108
- <div slot="modal-body" class="modal-body">
109
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
110
- </div>
111
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
112
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
113
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
114
- </div>
115
- </modal>
116
- </div>
117
- </criteria>
118
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
119
- <template partial='head'>
120
- <tr>
121
- <th>
122
- <nobr>隐患名称</nobr>
123
- </th>
124
- <th>
125
- <nobr>差值</nobr>
126
- </th>
127
- <th>
128
- <nobr>客户编号</nobr>
129
- </th>
130
- <th>
131
- <nobr>客户名称</nobr>
132
- </th>
133
-
134
- <th>
135
- <nobr>气表编号</nobr>
136
- </th>
137
- <th>
138
- <nobr>气表品牌</nobr>
139
- </th>
140
-
141
- <th>
142
- <nobr>客户电话</nobr>
143
- </th>
144
- <th>
145
- <nobr>客户小区</nobr>
146
- </th>
147
- <th>
148
- <data-order field="f_address" name="客户地址"></data-order>
149
- </th>
150
-
151
- <th>
152
- <data-order field="f_offsite_time" name="安检时间"></data-order>
153
- </th>
154
- <th>
155
- <nobr>安检员</nobr>
156
- </th>
157
-
158
- </tr>
159
- </template>
160
- <template partial='body'>
161
-
162
- <td style="text-align: center">{{row.f_item_name}}</td>
163
- <td style="text-align: center">{{row.f_item_value}}</td>
164
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
165
- <td style="text-align: center">{{row.f_user_name}}</td>
166
-
167
- <td style="text-align: center">{{row.f_meternumber}}</td>
168
- <td style="text-align: center">{{row.f_meter_brand}}</td>
169
-
170
- <td style="text-align: center">{{row.f_user_phone}}</td>
171
- <td style="text-align: center">{{row.f_residential_area}}</td>
172
-
173
- <td style="text-align: center">{{row.f_address}}</td>
174
- <td style="text-align: center">{{row.f_offsite_time}}</td>
175
- <td style="text-align: center">{{row.f_checker_name}}</td>
176
-
177
- </template>
178
- </data-grid>
179
- </criteria-paged>
180
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
181
- </div>
182
- </div>
183
- </template>
184
-
185
- <script>
186
- import {PagedList} from 'vue-client'
187
- import Vue from 'vue'
188
- import co from 'co'
189
- import AppData from '../../stores/AppData'
190
- import * as Util from '../Util'
191
- import getNowDate from "../../utils/getNowDate";
192
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
193
- import BenzAMRRecorder from 'benz-amr-recorder'
194
-
195
- //获取json配置文件
196
- let asyncReady = async function (self) {
197
- // 获取配置信息
198
- try {
199
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
200
- Vue.config = res.data
201
- } catch (error) {
202
- // 忽略704,文件找不到异常R
203
- if (error.status !== 704) {
204
- throw error
205
- }
206
- }
207
- }
208
-
209
- let select = function* (self) {
210
- let http = new HttpResetClass()
211
- let getGasman = yield http.load('POST', '/rs/search', {
212
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
213
- userid: self.$login.f.id
214
- }, {resolveMsg: null, rejectMsg: null})
215
- ////tag
216
- self.checkersid.push({label: '全部', value: ''})
217
- getGasman.data.forEach((checker) => {
218
- self.checkersid.push({label: checker.name, value: checker.id})
219
- })
220
- }
221
-
222
- export default {
223
- title: '差值明细查看',
224
- data() {
225
- let model = new PagedList('api/af-safecheck/sql/getChazhi', 20, {
226
- })
227
- model.f_plan_id = ''
228
- model.f_approved = ''
229
- model.f_entry = ''
230
- model.f_no_checkplan = ''
231
- model.f_filialeid = `('${this.$login.f.orgid}')`
232
- //model.f_check_type='民用'
233
- // let searchData={
234
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
235
- // f_approved: this.model.f_approved,
236
- // f_entry_status: this.model.f_entry,
237
- // f_no_checkplan:this.model.f_no_checkplan[0],
238
- // f_filialeid: this.model.f_filialeid,
239
- // //orderitem: this.model.f_offsite_time,
240
- // //condition:this.model.condition
241
- // }
242
- // model.f_subcompany = this.$login.f.f_fengongsi
243
- return {
244
- audioshow:false,
245
- searchData: {
246
- condition: "1=1",
247
- items: "*",
248
- tablename: "(SELECT tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,tdi.f_item_name,case when tdl.f_item_value is null or tdl.f_item_value ='' then 0 else CONVERT(NUMERIC(19,2),tdl.f_item_value) end as f_item_value FROM t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_devices_items tdi ON tpd.id= tdi.f_device_id LEFT JOIN t_devices_items_lists tdl ON tdi.id= tdl.f_item_id where f_item_name LIKE '%异常差值' ) tt",
249
- orderitem: "f_userinfo_code"
250
- },
251
- model: model,
252
- //searchData:searchData,
253
- excelHeaders: {
254
-
255
- 'f_item_name': '差值类型',
256
- 'f_item_value': '差值',
257
- 'f_userinfo_code': '客户编号',
258
- 'f_user_name': '客户姓名',
259
- 'f_user_phone': '客户类型',
260
- 'f_residential_area': '小区',
261
- 'f_address': '客户地址',
262
- 'f_offsite_time': '安检时间',
263
- 'f_checker_name': '安检员'
264
- },
265
- fun: this.$login.f,
266
- checkersid: [],
267
- safetype: this.getSafeParam('安检类型'),
268
- criteriaShow: false,
269
- showModal: false,
270
- f_approval_states: this.getSafeParam('安检单审核状态'),
271
- f_entry_status:this.getSafeParam('安检状态'),
272
- f_checkplans: this.getSafeParam('有无计划'),
273
- showcheckmsg: false,
274
- f_item_names:[{label: '全部', value: ''}, {label: '气量异常差值', value: '气量异常差值'},{label: '金额异常差值', value: '金额异常差值'}],
275
- checkInfo: {},
276
- orderDefault: "'f_offsite_time'",
277
- orderFields: {
278
- f_offsite_time: 'no'
279
- },
280
- sliceArea: [],
281
- cbc:[]
282
- }
283
- },
284
- methods: {
285
- showaudio(){
286
- //tag
287
- this.audioshow=!this.audioshow
288
- //tag
289
- },
290
- getmeterbook(val){
291
- this.cbc=[]
292
- this.cbc.push({
293
- label:'全部',
294
- value:''
295
- })
296
- if (val==''){
297
-
298
- this.cbcs.forEach(res=>{
299
- this.cbc.push({
300
- label:res.f_book_name,
301
- value:res.id
302
- })
303
- })
304
- }else{
305
- this.cbcs.forEach(res=>{
306
- if (res.f_book_slice_area==val){
307
- this.cbc.push({
308
- label:res.f_book_name,
309
- value:res.id
310
- })
311
- }
312
- })
313
- }
314
- },
315
- getSafeParam(val){
316
- if(this.$appdata.getParam(val)){
317
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
318
- }else{
319
- return [{label: '全部', value: ''}]
320
- }
321
-
322
- },
323
- Mreadibook(val){
324
- ////tag
325
- ////tag
326
- this.sliceArea=[]
327
- if (val){
328
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
329
- items: 'name',
330
- tablename: 't_zone',
331
- condition: `parentid in ${val}`,
332
- orderitem: 'id'
333
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
334
- this.sliceArea.push({
335
- label:'全部',
336
- value:''
337
- })
338
- res.data.forEach(ress=>{
339
- this.sliceArea.push({
340
- label:ress.name,
341
- value:ress.name
342
- })
343
- })
344
-
345
- })
346
- }
347
- },
348
- getAllMeterBook(val){
349
- ////tag
350
- ////tag
351
- this.cbcs=[]
352
- if (val){
353
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
354
- items: 'f_book_name,f_book_slice_area,id',
355
- tablename: 't_meter_book',
356
- condition: `f_filiale_id in ${val}`,
357
- orderitem: 'id'
358
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
359
- res.data.forEach(ress=>{
360
- this.cbcs.push({
361
- id:ress.id,
362
- f_book_name:ress.f_book_name,
363
- f_book_slice_area:ress.f_book_slice_area
364
- })
365
- })
366
- this.cbc=[]
367
- this.cbc.push({
368
- label:'全部',
369
- value:''
370
- })
371
- this.cbcs.forEach(res=>{
372
- this.cbc.push({
373
- label:res.f_book_name,
374
- value:res.id
375
- })
376
- })
377
- })
378
- }
379
- },
380
- getRes(obj) {
381
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
382
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
383
- this.Mreadibook(this.model.f_filialeid)
384
- this.getAllMeterBook(this.model.f_filialeid)
385
- //this.$refs.paged.$refs.criteria.search()
386
- },
387
-
388
- change(row) {
389
- // Vue.$login = {jwt: row.f_checker_id}
390
- asyncReady(this).then(() => {
391
- ////tag)
392
- row.f_upload_state = '已传'
393
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
394
- }).catch(
395
- (respanse) => {
396
- alert('获取配置文件失败')
397
- })
398
- },
399
- readConfig() {
400
- let gen = asyncReady(this)
401
- return co(gen)
402
- },
403
- showChooser() {
404
- this.showModal = true
405
- },
406
- hidden() {
407
- this.criteriaShow = !this.criteriaShow
408
- },
409
- refresh() {
410
- this.$refs.paged.$refs.criteria.search()
411
- },
412
- ok() {
413
- this.showModal = false
414
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
415
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
416
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
417
- }
418
- },
419
- cancel() {
420
- this.showModal = false
421
- this.model.f_check_plan = {f_plan_name: '', id: ''}
422
- this.model.f_plan_id=''
423
- },
424
- print(row) {
425
- this.showcheckmsg = true
426
- this.checkInfo = row
427
- },
428
-
429
- sort(field, rule) {
430
- // 将所有排序方式设为不排序,实现相互排斥
431
- for (let key in this.orderFields) {
432
- if (key === field) {
433
- this.orderFields[key] = rule
434
- } else {
435
- this.orderFields[key] = 'no'
436
- }
437
- }
438
- // 如果新规则不排序,还原为默认排序
439
- if (rule === 'no') {
440
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
441
- } else {
442
- this.model.paramSource.orderitem = `'${field} ${rule}'`
443
- }
444
- this.search()
445
- },
446
- search() {
447
- this.$refs.paged.$refs.criteria.search()
448
- },
449
- selfSearch(args) {
450
- ////tag
451
- this.model.search(args.condition, args.model, args.condValue)
452
- }
453
- },
454
-
455
- ready() {
456
- ////tag
457
- this.function = this.f
458
- ////tag
459
-
460
- let gen = select(this)
461
- //this.pianqu()
462
- this.Mreadibook(`('${this.$login.f.orgid}')`)
463
- co(gen)
464
- },
465
- watch: {
466
- 'model.f_no_checkplan'(val) {
467
- if (this.model.f_no_checkplan){
468
- this.searchData.f_no_checkplan = val
469
- }
470
- if (this.model.f_no_checkplan == '有计划安检') {
471
-
472
- this.showChooser()
473
- }
474
- },
475
- 'model.condition'(val) {
476
- if (val) {
477
- this.searchData.condition = val
478
- }
479
-
480
- },
481
- 'model.f_item_name'(val) {
482
- if (val) {
483
- this.searchData.f_item_name = val
484
- }
485
- },
486
- 'model.f_plan_id'(val) {
487
- if (val) {
488
- this.searchData.f_plan_id = val
489
- }
490
- },
491
- 'model.f_slice_area'(val) {
492
- if (val) {
493
-
494
- }
495
- },
496
- 'model.f_approved'(val) {
497
- if (val) {
498
- this.searchData.f_approved = val
499
- }
500
- },
501
- }
502
-
503
- }
504
- </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">小&emsp;&emsp;区</label>
25
+ <input type="text" class="input_search" v-model="model.f_residential_area"
26
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">详细地址</label>
30
+ <input type="text" class="input_search" v-model="model.f_address"
31
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
+ </div>
33
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
+
35
+ <export-excel :data="$parent.$parent.searchData"
36
+ :field="$parent.$parent.excelHeaders"
37
+ progress="safeGetExportProgress"
38
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="safe_singleTable_OrderBy" template-name='异常差值明细'></export-excel>
39
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
41
+
42
+ <button class="button_spacing button_search" @click="search()">查询</button>
43
+ <div style="float: right" class="button_spacing"
44
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
+ @click="$parent.$parent.hidden()"></div>
46
+ </div>
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+ </div>
55
+ <div class="row">
56
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
57
+ <role-selector-safe
58
+ role-name="安检员"
59
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
60
+ @re-res="$parent.$parent.getRes"
61
+ :value.sync="model.f_checker_id"
62
+ v-model="model.f_checker_id"
63
+ condition="f_checker_name = '{}'">
64
+ </role-selector-safe>
65
+ </div>
66
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
67
+ <label class="font_normal_body">差值类型</label>
68
+ <v-select class="select_list select"
69
+ placeholder='差值类型' style="width: 60%"
70
+ :value.sync="model.f_item_name" v-model="model.f_item_name"
71
+ :options='$parent.$parent.f_item_names'
72
+ filer-key="name"
73
+ close-on-select clear-button
74
+ condition="f_item_name='{}'"
75
+ :value-single="true">
76
+ </v-select>
77
+ </div>
78
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
79
+ <label class="font_normal_body">差值区间</label>
80
+ <input type="text" class="input_search" v-model="model.f_item_start"
81
+ style="width: 60%" placeholder="差值区间(>=)" condition="f_item_value >= {}">
82
+ </div>
83
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
84
+ <label class="font_normal_body">差值区间</label>
85
+ <input type="text" class="input_search" v-model="model.f_item_end"
86
+ style="width: 60%" placeholder="差值区间(<=)" condition="f_item_value <= {}">
87
+ </div>
88
+ </div>
89
+ <div class="row">
90
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
91
+ <label class="font_normal_body">气表编号</label>
92
+ <input type="text" class="input_search" v-model="model.f_meternumber"
93
+ style="width: 60%" placeholder="气表编号" condition="f_meternumber = '{}'">
94
+ </div>
95
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
96
+ <label class="font_normal_body">气表品牌</label>
97
+ <input type="text" class="input_search" v-model="model.f_meter_brand"
98
+ style="width: 60%" placeholder="气表品牌" condition="f_meter_brand like '%{}%'">
99
+ </div>
100
+ </div>
101
+
102
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
103
+ <div slot="modal-header" class="modal-header">
104
+ <h4 class="modal-title">
105
+ 选择计划
106
+ </h4>
107
+ </div>
108
+ <div slot="modal-body" class="modal-body">
109
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
110
+ </div>
111
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
112
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
113
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
114
+ </div>
115
+ </modal>
116
+ </div>
117
+ </criteria>
118
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
119
+ <template partial='head'>
120
+ <tr>
121
+ <th>
122
+ <nobr>隐患名称</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>差值</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>客户编号</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>客户名称</nobr>
132
+ </th>
133
+
134
+ <th>
135
+ <nobr>气表编号</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>气表品牌</nobr>
139
+ </th>
140
+
141
+ <th>
142
+ <nobr>客户电话</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>客户小区</nobr>
146
+ </th>
147
+ <th>
148
+ <data-order field="f_address" name="客户地址"></data-order>
149
+ </th>
150
+
151
+ <th>
152
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
153
+ </th>
154
+ <th>
155
+ <nobr>安检员</nobr>
156
+ </th>
157
+
158
+ </tr>
159
+ </template>
160
+ <template partial='body'>
161
+
162
+ <td style="text-align: center">{{row.f_item_name}}</td>
163
+ <td style="text-align: center">{{row.f_item_value}}</td>
164
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
165
+ <td style="text-align: center">{{row.f_user_name}}</td>
166
+
167
+ <td style="text-align: center">{{row.f_meternumber}}</td>
168
+ <td style="text-align: center">{{row.f_meter_brand}}</td>
169
+
170
+ <td style="text-align: center">{{row.f_user_phone}}</td>
171
+ <td style="text-align: center">{{row.f_residential_area}}</td>
172
+
173
+ <td style="text-align: center">{{row.f_address}}</td>
174
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
175
+ <td style="text-align: center">{{row.f_checker_name}}</td>
176
+
177
+ </template>
178
+ </data-grid>
179
+ </criteria-paged>
180
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
181
+ </div>
182
+ </div>
183
+ </template>
184
+
185
+ <script>
186
+ import {PagedList} from 'vue-client'
187
+ import Vue from 'vue'
188
+ import co from 'co'
189
+ import AppData from '../../stores/AppData'
190
+ import * as Util from '../Util'
191
+ import getNowDate from "../../utils/getNowDate";
192
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
193
+ import BenzAMRRecorder from 'benz-amr-recorder'
194
+
195
+ //获取json配置文件
196
+ let asyncReady = async function (self) {
197
+ // 获取配置信息
198
+ try {
199
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
200
+ Vue.config = res.data
201
+ } catch (error) {
202
+ // 忽略704,文件找不到异常R
203
+ if (error.status !== 704) {
204
+ throw error
205
+ }
206
+ }
207
+ }
208
+
209
+ let select = function* (self) {
210
+ let http = new HttpResetClass()
211
+ let getGasman = yield http.load('POST', '/rs/search', {
212
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
213
+ userid: self.$login.f.id
214
+ }, {resolveMsg: null, rejectMsg: null})
215
+ ////tag
216
+ self.checkersid.push({label: '全部', value: ''})
217
+ getGasman.data.forEach((checker) => {
218
+ self.checkersid.push({label: checker.name, value: checker.id})
219
+ })
220
+ }
221
+
222
+ export default {
223
+ title: '差值明细查看',
224
+ data() {
225
+ let model = new PagedList('api/af-safecheck/sql/getChazhi', 20, {
226
+ })
227
+ model.f_plan_id = ''
228
+ model.f_approved = ''
229
+ model.f_entry = ''
230
+ model.f_no_checkplan = ''
231
+ model.f_filialeid = `('${this.$login.f.orgid}')`
232
+ //model.f_check_type='民用'
233
+ // let searchData={
234
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
235
+ // f_approved: this.model.f_approved,
236
+ // f_entry_status: this.model.f_entry,
237
+ // f_no_checkplan:this.model.f_no_checkplan[0],
238
+ // f_filialeid: this.model.f_filialeid,
239
+ // //orderitem: this.model.f_offsite_time,
240
+ // //condition:this.model.condition
241
+ // }
242
+ // model.f_subcompany = this.$login.f.f_fengongsi
243
+ return {
244
+ audioshow:false,
245
+ searchData: {
246
+ condition: "1=1",
247
+ items: "*",
248
+ tablename: "(SELECT tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,tdi.f_item_name,case when tdl.f_item_value is null or tdl.f_item_value ='' then 0 else CONVERT(NUMERIC(19,2),tdl.f_item_value) end as f_item_value FROM t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_devices_items tdi ON tpd.id= tdi.f_device_id LEFT JOIN t_devices_items_lists tdl ON tdi.id= tdl.f_item_id where f_item_name LIKE '%异常差值' ) tt",
249
+ orderitem: "f_userinfo_code"
250
+ },
251
+ model: model,
252
+ //searchData:searchData,
253
+ excelHeaders: {
254
+
255
+ 'f_item_name': '差值类型',
256
+ 'f_item_value': '差值',
257
+ 'f_userinfo_code': '客户编号',
258
+ 'f_user_name': '客户姓名',
259
+ 'f_user_phone': '客户类型',
260
+ 'f_residential_area': '小区',
261
+ 'f_address': '客户地址',
262
+ 'f_offsite_time': '安检时间',
263
+ 'f_checker_name': '安检员'
264
+ },
265
+ fun: this.$login.f,
266
+ checkersid: [],
267
+ safetype: this.getSafeParam('安检类型'),
268
+ criteriaShow: false,
269
+ showModal: false,
270
+ f_approval_states: this.getSafeParam('安检单审核状态'),
271
+ f_entry_status:this.getSafeParam('安检状态'),
272
+ f_checkplans: this.getSafeParam('有无计划'),
273
+ showcheckmsg: false,
274
+ f_item_names:[{label: '全部', value: ''}, {label: '气量异常差值', value: '气量异常差值'},{label: '金额异常差值', value: '金额异常差值'}],
275
+ checkInfo: {},
276
+ orderDefault: "'f_offsite_time'",
277
+ orderFields: {
278
+ f_offsite_time: 'no'
279
+ },
280
+ sliceArea: [],
281
+ cbc:[]
282
+ }
283
+ },
284
+ methods: {
285
+ showaudio(){
286
+ //tag
287
+ this.audioshow=!this.audioshow
288
+ //tag
289
+ },
290
+ getmeterbook(val){
291
+ this.cbc=[]
292
+ this.cbc.push({
293
+ label:'全部',
294
+ value:''
295
+ })
296
+ if (val==''){
297
+
298
+ this.cbcs.forEach(res=>{
299
+ this.cbc.push({
300
+ label:res.f_book_name,
301
+ value:res.id
302
+ })
303
+ })
304
+ }else{
305
+ this.cbcs.forEach(res=>{
306
+ if (res.f_book_slice_area==val){
307
+ this.cbc.push({
308
+ label:res.f_book_name,
309
+ value:res.id
310
+ })
311
+ }
312
+ })
313
+ }
314
+ },
315
+ getSafeParam(val){
316
+ if(this.$appdata.getParam(val)){
317
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
318
+ }else{
319
+ return [{label: '全部', value: ''}]
320
+ }
321
+
322
+ },
323
+ Mreadibook(val){
324
+ ////tag
325
+ ////tag
326
+ this.sliceArea=[]
327
+ if (val){
328
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
329
+ items: 'name',
330
+ tablename: 't_zone',
331
+ condition: `parentid in ${val}`,
332
+ orderitem: 'id'
333
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
334
+ this.sliceArea.push({
335
+ label:'全部',
336
+ value:''
337
+ })
338
+ res.data.forEach(ress=>{
339
+ this.sliceArea.push({
340
+ label:ress.name,
341
+ value:ress.name
342
+ })
343
+ })
344
+
345
+ })
346
+ }
347
+ },
348
+ getAllMeterBook(val){
349
+ ////tag
350
+ ////tag
351
+ this.cbcs=[]
352
+ if (val){
353
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
354
+ items: 'f_book_name,f_book_slice_area,id',
355
+ tablename: 't_meter_book',
356
+ condition: `f_filiale_id in ${val}`,
357
+ orderitem: 'id'
358
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
359
+ res.data.forEach(ress=>{
360
+ this.cbcs.push({
361
+ id:ress.id,
362
+ f_book_name:ress.f_book_name,
363
+ f_book_slice_area:ress.f_book_slice_area
364
+ })
365
+ })
366
+ this.cbc=[]
367
+ this.cbc.push({
368
+ label:'全部',
369
+ value:''
370
+ })
371
+ this.cbcs.forEach(res=>{
372
+ this.cbc.push({
373
+ label:res.f_book_name,
374
+ value:res.id
375
+ })
376
+ })
377
+ })
378
+ }
379
+ },
380
+ getRes(obj) {
381
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
382
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
383
+ this.Mreadibook(this.model.f_filialeid)
384
+ this.getAllMeterBook(this.model.f_filialeid)
385
+ //this.$refs.paged.$refs.criteria.search()
386
+ },
387
+
388
+ change(row) {
389
+ // Vue.$login = {jwt: row.f_checker_id}
390
+ asyncReady(this).then(() => {
391
+ ////tag)
392
+ row.f_upload_state = '已传'
393
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
394
+ }).catch(
395
+ (respanse) => {
396
+ alert('获取配置文件失败')
397
+ })
398
+ },
399
+ readConfig() {
400
+ let gen = asyncReady(this)
401
+ return co(gen)
402
+ },
403
+ showChooser() {
404
+ this.showModal = true
405
+ },
406
+ hidden() {
407
+ this.criteriaShow = !this.criteriaShow
408
+ },
409
+ refresh() {
410
+ this.$refs.paged.$refs.criteria.search()
411
+ },
412
+ ok() {
413
+ this.showModal = false
414
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
415
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
416
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
417
+ }
418
+ },
419
+ cancel() {
420
+ this.showModal = false
421
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
422
+ this.model.f_plan_id=''
423
+ },
424
+ print(row) {
425
+ this.showcheckmsg = true
426
+ this.checkInfo = row
427
+ },
428
+
429
+ sort(field, rule) {
430
+ // 将所有排序方式设为不排序,实现相互排斥
431
+ for (let key in this.orderFields) {
432
+ if (key === field) {
433
+ this.orderFields[key] = rule
434
+ } else {
435
+ this.orderFields[key] = 'no'
436
+ }
437
+ }
438
+ // 如果新规则不排序,还原为默认排序
439
+ if (rule === 'no') {
440
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
441
+ } else {
442
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
443
+ }
444
+ this.search()
445
+ },
446
+ search() {
447
+ this.$refs.paged.$refs.criteria.search()
448
+ },
449
+ selfSearch(args) {
450
+ ////tag
451
+ this.model.search(args.condition, args.model, args.condValue)
452
+ }
453
+ },
454
+
455
+ ready() {
456
+ ////tag
457
+ this.function = this.f
458
+ ////tag
459
+
460
+ let gen = select(this)
461
+ //this.pianqu()
462
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
463
+ co(gen)
464
+ },
465
+ watch: {
466
+ 'model.f_no_checkplan'(val) {
467
+ if (this.model.f_no_checkplan){
468
+ this.searchData.f_no_checkplan = val
469
+ }
470
+ if (this.model.f_no_checkplan == '有计划安检') {
471
+
472
+ this.showChooser()
473
+ }
474
+ },
475
+ 'model.condition'(val) {
476
+ if (val) {
477
+ this.searchData.condition = val
478
+ }
479
+
480
+ },
481
+ 'model.f_item_name'(val) {
482
+ if (val) {
483
+ this.searchData.f_item_name = val
484
+ }
485
+ },
486
+ 'model.f_plan_id'(val) {
487
+ if (val) {
488
+ this.searchData.f_plan_id = val
489
+ }
490
+ },
491
+ 'model.f_slice_area'(val) {
492
+ if (val) {
493
+
494
+ }
495
+ },
496
+ 'model.f_approved'(val) {
497
+ if (val) {
498
+ this.searchData.f_approved = val
499
+ }
500
+ },
501
+ }
502
+
503
+ }
504
+ </script>