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

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