safecheck-client 4.0.1-41 → 4.0.1-43

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 (264) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  6. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  7. package/src/components/Util/SafecheckUpload.vue +281 -281
  8. package/src/components/android/AddPlanItem.vue +447 -447
  9. package/src/components/android/AddPlanItemYy.vue +451 -451
  10. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  11. package/src/components/android/AndroidDefectDetails.vue +769 -769
  12. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  13. package/src/components/android/Devices.vue +327 -327
  14. package/src/components/android/Devicesm.vue +327 -327
  15. package/src/components/android/NewCheckpaperAndroid.vue +1344 -1369
  16. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  17. package/src/components/android/PhoneRecordInfo.vue +113 -113
  18. package/src/components/android/PhoneSellInfo.vue +113 -113
  19. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  20. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  21. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  22. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  23. package/src/components/android/SafePlanItem.vue +509 -509
  24. package/src/components/android/SafeRightTree.vue +218 -218
  25. package/src/components/android/SafecheckDevices.vue +1340 -1340
  26. package/src/components/android/examples/SafeListExamples.vue +296 -296
  27. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  28. package/src/components/android/recheck/Recheck.vue +402 -402
  29. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  30. package/src/components/checkplan/checkmsg.vue +459 -459
  31. package/src/components/defect/DefectList.vue +507 -507
  32. package/src/components/defect/DefectListWeixiu.vue +484 -484
  33. package/src/components/filialCircle/CircleList.vue +139 -139
  34. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  35. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  36. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  37. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  38. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  39. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  40. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  41. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  42. package/src/components/map/PersonTrack.vue +226 -226
  43. package/src/components/paper/PaperList.vue +797 -797
  44. package/src/components/paper/RegionalList.vue +220 -220
  45. package/src/components/pc/AnnouncementPC.vue +524 -524
  46. package/src/components/pc/CheckBook.vue +303 -303
  47. package/src/components/pc/CheckBookArea.vue +146 -146
  48. package/src/components/pc/CheckBookCompany.vue +144 -144
  49. package/src/components/pc/CheckBookDetails.vue +161 -161
  50. package/src/components/pc/CheckBookEntry.vue +60 -60
  51. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  52. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  53. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  54. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  55. package/src/components/pc/DefectList.vue +742 -742
  56. package/src/components/pc/DeviceChange.vue +1068 -1068
  57. package/src/components/pc/PaperDefectMain.vue +880 -880
  58. package/src/components/pc/SafeVisitInfo.vue +261 -261
  59. package/src/components/querycheckpaper/CheckPaperList.vue +133 -130
  60. package/src/components/report/HiddenSituation.vue +165 -165
  61. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  62. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  63. package/src/components/rongcheng/DefectList.vue +560 -560
  64. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  65. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  66. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  67. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  68. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  69. package/src/components/shaoguan/DefectList.vue +473 -473
  70. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  71. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  72. package/src/components/userfile/SecurityAudit.vue +243 -243
  73. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  74. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  75. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  76. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  77. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  78. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  79. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  80. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  81. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  82. package/src/filiale/bayan/android/Edit.vue +132 -132
  83. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  84. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  85. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  86. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  87. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  88. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  89. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  90. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  91. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  92. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  93. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  94. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  95. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  96. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  97. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  98. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  99. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  100. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  101. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  102. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  103. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  104. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  105. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  106. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  107. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  108. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  109. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  110. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  111. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  112. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  113. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  114. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  115. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  116. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  118. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  119. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  120. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  121. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  122. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  123. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  124. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  125. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  126. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  127. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  128. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  129. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  130. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  131. package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
  132. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  133. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  134. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  135. package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -1340
  136. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2446
  137. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  138. package/src/filiale/meihekou/android.js +22 -22
  139. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -2050
  140. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  141. package/src/filiale/meihekou/pc/PaperList.vue +828 -810
  142. package/src/filiale/meihekou/pc.js +15 -15
  143. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  144. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  145. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  146. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  147. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  148. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  149. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  150. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  151. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  152. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  153. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  154. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  155. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  156. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  157. package/src/filiale/qingjian/pc.js +15 -15
  158. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  159. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  160. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  161. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  162. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  163. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  164. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  165. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  166. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  167. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  168. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  169. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  170. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  171. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  172. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  173. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  174. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  175. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  176. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  177. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  178. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  179. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  180. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  181. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  182. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  183. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  184. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  185. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  186. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  187. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -1033
  188. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  189. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  190. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  191. package/src/filiale/taiyuan/pc.js +15 -15
  192. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  193. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  194. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  195. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  196. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  197. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  198. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  199. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  200. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  201. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  202. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  203. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  204. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  205. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  206. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  207. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  208. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  209. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  210. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  211. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  212. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  213. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  214. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  215. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  216. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  217. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  218. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  219. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  220. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  221. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  222. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  223. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  224. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  225. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  226. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  227. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  228. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  229. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  230. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  231. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  232. package/src/filiale/xinkang/android/AddPlanItem.vue +414 -413
  233. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  234. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1474 -1474
  235. package/src/filiale/xinkang/pc/PaperList.vue +596 -596
  236. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  237. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  238. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  239. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  240. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  241. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  242. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  243. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  244. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  245. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  246. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  247. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  248. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  249. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  250. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  251. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  252. package/src/filiale/yunchengminsheng/android.js +15 -15
  253. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  254. package/src/filiale/yunchengminsheng/pc.js +15 -15
  255. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  256. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  257. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  258. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  259. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  260. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  261. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  262. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  263. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  264. package/src/main.js +1 -2
@@ -1,596 +1,596 @@
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">片&emsp;&emsp;区</label>
137
- <v-select class="select_list select"
138
- placeholder='片区/管理站' style="width: 60%"
139
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
140
- :options='$parent.$parent.sliceArea'
141
- filer-key="name"
142
- close-on-select clear-button
143
- condition="f_slice_area='{}'"
144
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
145
- :value-single="true">
146
- </v-select>
147
- </div>
148
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
149
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
150
- <v-select class="select_list select"
151
- placeholder='抄表册' style="width: 60%"
152
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
153
- :options='$parent.$parent.cbc'
154
- filer-key="name"
155
- close-on-select clear-button
156
- condition="f_meter_book_num={}"
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 class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
173
- <label class="font_normal_body">用户类型</label>
174
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
175
- :value-single="true" style="width: 60%"
176
- class="select_list select"
177
- :options='$parent.$parent.f_check_type' placeholder='请选择'
178
- close-on-select
179
- condition="f_check_type = '{}'"></v-select>
180
- </div>
181
- </div>
182
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
183
- <div slot="modal-header" class="modal-header">
184
- <h4 class="modal-title">
185
- 选择计划
186
- </h4>
187
- </div>
188
- <div slot="modal-body" class="modal-body">
189
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
190
- </div>
191
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
192
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
193
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
194
- </div>
195
- </modal>
196
- </div>
197
- </criteria>
198
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
199
- <template partial='head'>
200
- <tr>
201
- <th>
202
- <nobr>客户编号</nobr>
203
- </th>
204
- <th>
205
- <nobr>客户名称</nobr>
206
- </th>
207
- <th>
208
- <nobr>客户电话</nobr>
209
- </th>
210
- <th>
211
- <nobr>客户类型</nobr>
212
- </th>
213
- <th>
214
- <data-order field="f_address" name="客户地址"></data-order>
215
- </th>
216
- <th>
217
- <nobr>安检状态</nobr>
218
- </th>
219
- <th>
220
- <data-order field="f_offsite_time" name="安检时间"></data-order>
221
- </th>
222
- <th>
223
- <nobr>安检员</nobr>
224
- </th>
225
- <th>
226
- <nobr>备注</nobr>
227
- </th>
228
- <th>
229
- <nobr>操作</nobr>
230
- </th>
231
- <th v-if="$parent.$parent.$parent.audioshow">
232
- <nobr>录音</nobr>
233
- </th>
234
- </tr>
235
- </template>
236
- <template partial='body'>
237
-
238
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
239
- <td style="text-align: center">{{row.f_user_name}}</td>
240
- <td style="text-align: center">{{row.f_user_phone}}</td>
241
- <td style="text-align: center">{{row.f_check_type}}</td>
242
-
243
- <td style="text-align: center">{{row.f_address}}</td>
244
- <td style="text-align: center">{{row.f_entry_status}}</td>
245
- <td style="text-align: center">{{row.f_offsite_time}}</td>
246
- <td style="text-align: center">{{row.f_checker_name}}</td>
247
- <td style="text-align: center">{{row.f_repair_approved_note}}</td>
248
- <td style="text-align: center">
249
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
250
-
251
-
252
- </td>
253
- <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
254
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
255
- <audio controls="controls" v-if="row.f_recording1_path">
256
- <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
257
- </audio>
258
- <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
259
- @click="$parent.$parent.$parent.print(row)">
260
- 打印
261
- </button>-->
262
- </td>
263
- </template>
264
- </data-grid>
265
- </criteria-paged>
266
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
267
- </div>
268
- </div>
269
- </template>
270
-
271
- <script>
272
- import {PagedList} from 'vue-client'
273
- import Vue from 'vue'
274
- import co from 'co'
275
- import AppData from '../../../stores/AppData'
276
- import * as Util from '../../Util'
277
- import getNowDate from "../../../utils/getNowDate";
278
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
279
- import BenzAMRRecorder from 'benz-amr-recorder'
280
- //获取json配置文件
281
- let asyncReady = async function (self) {
282
- // 获取配置信息
283
- try {
284
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
285
- Vue.config = res.data
286
- } catch (error) {
287
- // 忽略704,文件找不到异常R
288
- if (error.status !== 704) {
289
- throw error
290
- }
291
- }
292
- }
293
-
294
- let select = function* (self) {
295
- let http = new HttpResetClass()
296
- let getGasman = yield http.load('POST', '/rs/search', {
297
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
298
- userid: self.$login.f.id
299
- }, {resolveMsg: null, rejectMsg: null})
300
- ////tag
301
- self.checkersid.push({label: '全部', value: ''})
302
- getGasman.data.forEach((checker) => {
303
- self.checkersid.push({label: checker.name, value: checker.id})
304
- })
305
- }
306
-
307
- export default {
308
- title: '安检结果查看',
309
- data() {
310
- let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
311
- f_plan_id: 'this.f_plan_id',
312
- f_approved: 'this.f_approved',
313
- f_entry_status: 'this.f_entry',
314
- f_no_checkplan: 'this.f_no_checkplan',
315
- f_filialeid: 'this.f_filialeid',
316
- orderitem: "'f_offsite_time desc'"
317
- })
318
- model.f_check_type=''
319
- model.f_plan_id = ''
320
- model.f_approved = ''
321
- model.f_entry = ''
322
- model.f_no_checkplan = ''
323
- model.f_filialeid = `('${this.$login.f.orgid}')`
324
- //model.f_check_type='民用'
325
- // let searchData={
326
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
327
- // f_approved: this.model.f_approved,
328
- // f_entry_status: this.model.f_entry,
329
- // f_no_checkplan:this.model.f_no_checkplan[0],
330
- // f_filialeid: this.model.f_filialeid,
331
- // //orderitem: this.model.f_offsite_time,
332
- // //condition:this.model.condition
333
- // }
334
- // model.f_subcompany = this.$login.f.f_fengongsi
335
- return {
336
- audioshow:false,
337
- searchData: {
338
- condition: "1=1",
339
- orderitem: "f_offsite_time desc",
340
- f_plan_id: "",
341
- f_approved: '',
342
- f_entry_status: '',
343
- f_no_checkplan: '',
344
- f_filialeid: `('${this.$login.f.orgid}')`
345
- },
346
- model: model,
347
- excelHeaders: {
348
- //searchData:searchData,
349
- 'f_userinfo_code': '客户编号',
350
- 'f_user_name': '客户姓名',
351
- 'f_check_type': '客户类型',
352
- 'f_residential_area': '小区',
353
- 'f_address': '客户地址',
354
- 'f_entry_status': '安检状态',
355
- 'f_offsite_time': '安检时间',
356
- 'f_checker_name': '安检员'
357
- },
358
- fun: this.$login.f,
359
- pcds:[],
360
- checkersid: [],
361
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
362
- criteriaShow: false,
363
- showModal: false,
364
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
365
- f_approval_states: this.$appdata.getParam('安检单审核状态'),
366
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
367
- f_checkplans: this.$appdata.getParam('有无计划'),
368
- showcheckmsg: false,
369
- checkInfo: {},
370
- orderDefault: "'f_offsite_time'",
371
- orderFields: {
372
- f_offsite_time: 'no'
373
- },
374
- sliceArea: [],
375
- cbc:[]
376
- }
377
- },
378
- methods: {
379
- //获取省市区列表
380
- getPcd(val){
381
- this.pcds = [{label:'全部',value:''}]
382
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
383
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
384
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
385
- pcdlist.data.forEach((result)=>{
386
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
387
- })
388
- })
389
- },
390
- showaudio(){
391
- //tag
392
- this.audioshow=!this.audioshow
393
- //tag
394
- },
395
- getmeterbook(val){
396
- this.cbc=[]
397
- this.cbc.push({
398
- label:'全部',
399
- value:''
400
- })
401
- if (val==''){
402
-
403
- this.cbcs.forEach(res=>{
404
- this.cbc.push({
405
- label:res.f_book_name,
406
- value:res.id
407
- })
408
- })
409
- }else{
410
- this.cbcs.forEach(res=>{
411
- if (res.f_book_slice_area==val){
412
- this.cbc.push({
413
- label:res.f_book_name,
414
- value:res.id
415
- })
416
- }
417
- })
418
- }
419
- },
420
- Mreadibook(val){
421
- ////tag
422
- ////tag
423
- this.sliceArea=[]
424
- if (val){
425
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
426
- items: 'name',
427
- tablename: 't_zone',
428
- condition: `parentid in ${val}`,
429
- orderitem: 'id'
430
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
431
- this.sliceArea.push({
432
- label:'全部',
433
- value:''
434
- })
435
- res.data.forEach(ress=>{
436
- this.sliceArea.push({
437
- label:ress.name,
438
- value:ress.name
439
- })
440
- })
441
-
442
- })
443
- }
444
- },
445
- getAllMeterBook(val){
446
- ////tag
447
- ////tag
448
- this.cbcs=[]
449
- if (val){
450
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
451
- items: 'f_book_name,f_book_slice_area,id',
452
- tablename: 't_meter_book',
453
- condition: `f_filiale_id in ${val}`,
454
- orderitem: 'id'
455
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
456
- res.data.forEach(ress=>{
457
- this.cbcs.push({
458
- id:ress.id,
459
- f_book_name:ress.f_book_name,
460
- f_book_slice_area:ress.f_book_slice_area
461
- })
462
- })
463
- this.cbc=[]
464
- this.cbc.push({
465
- label:'全部',
466
- value:''
467
- })
468
- this.cbcs.forEach(res=>{
469
- this.cbc.push({
470
- label:res.f_book_name,
471
- value:res.id
472
- })
473
- })
474
- })
475
- }
476
- },
477
- getRes(obj) {
478
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
479
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
480
- this.Mreadibook(this.model.f_filialeid)
481
- this.getAllMeterBook(this.model.f_filialeid)
482
- this.getPcd(this.model.f_filialeid)
483
- //this.$refs.paged.$refs.criteria.search()
484
- },
485
-
486
- change(row) {
487
- row.f_upload_state = '已传'
488
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
489
- },
490
- readConfig() {
491
- let gen = asyncReady(this)
492
- return co(gen)
493
- },
494
- showChooser() {
495
- this.showModal = true
496
- },
497
- hidden() {
498
- this.criteriaShow = !this.criteriaShow
499
- },
500
- refresh() {
501
- this.$refs.paged.$refs.criteria.search()
502
- },
503
- ok() {
504
- this.showModal = false
505
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
506
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
507
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
508
- }
509
- },
510
- cancel() {
511
- this.showModal = false
512
- this.model.f_check_plan = {f_plan_name: '', id: ''}
513
- this.model.f_plan_id=''
514
- },
515
- print(row) {
516
- this.showcheckmsg = true
517
- this.checkInfo = row
518
- },
519
-
520
- sort(field, rule) {
521
- // 将所有排序方式设为不排序,实现相互排斥
522
- for (let key in this.orderFields) {
523
- if (key === field) {
524
- this.orderFields[key] = rule
525
- } else {
526
- this.orderFields[key] = 'no'
527
- }
528
- }
529
- // 如果新规则不排序,还原为默认排序
530
- if (rule === 'no') {
531
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
532
- } else {
533
- this.model.paramSource.orderitem = `'${field} ${rule}'`
534
- }
535
- this.search()
536
- },
537
- search() {
538
- this.$refs.paged.$refs.criteria.search()
539
- },
540
- selfSearch(args) {
541
- ////tag
542
- //args.condition+=" and f_check_type='民用'"
543
- this.model.search(args.condition, args.model, args.condValue)
544
- }
545
- },
546
-
547
- ready() {
548
- ////tag
549
- this.function = this.f
550
- ////tag
551
-
552
- let gen = select(this)
553
- //this.pianqu()
554
- this.Mreadibook(`('${this.$login.f.orgid}')`)
555
- co(gen)
556
- },
557
- watch: {
558
- 'model.f_no_checkplan'(val) {
559
- if (this.model.f_no_checkplan){
560
- this.searchData.f_no_checkplan = val
561
- }
562
- if (this.model.f_no_checkplan == '有计划安检') {
563
-
564
- this.showChooser()
565
- }
566
- },
567
- 'model.condition'(val) {
568
- if (val) {
569
- this.searchData.condition = val
570
- }
571
-
572
- },
573
- 'model.f_entry'(val) {
574
- if (val) {
575
- this.searchData.f_entry_status = val
576
- }
577
- },
578
- 'model.f_plan_id'(val) {
579
- if (val) {
580
- this.searchData.f_plan_id = val
581
- }
582
- },
583
- 'model.f_slice_area'(val) {
584
- if (val) {
585
-
586
- }
587
- },
588
- 'model.f_approved'(val) {
589
- if (val) {
590
- this.searchData.f_approved = val
591
- }
592
- },
593
- }
594
-
595
- }
596
- </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">片&emsp;&emsp;区</label>
137
+ <v-select class="select_list select"
138
+ placeholder='片区/管理站' style="width: 60%"
139
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
140
+ :options='$parent.$parent.sliceArea'
141
+ filer-key="name"
142
+ close-on-select clear-button
143
+ condition="f_slice_area='{}'"
144
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
145
+ :value-single="true">
146
+ </v-select>
147
+ </div>
148
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
149
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
150
+ <v-select class="select_list select"
151
+ placeholder='抄表册' style="width: 60%"
152
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
153
+ :options='$parent.$parent.cbc'
154
+ filer-key="name"
155
+ close-on-select clear-button
156
+ condition="f_meter_book_num={}"
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 class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
173
+ <label class="font_normal_body">用户类型</label>
174
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
175
+ :value-single="true" style="width: 60%"
176
+ class="select_list select"
177
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
178
+ close-on-select
179
+ condition="f_check_type = '{}'"></v-select>
180
+ </div>
181
+ </div>
182
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
183
+ <div slot="modal-header" class="modal-header">
184
+ <h4 class="modal-title">
185
+ 选择计划
186
+ </h4>
187
+ </div>
188
+ <div slot="modal-body" class="modal-body">
189
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
190
+ </div>
191
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
192
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
193
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
194
+ </div>
195
+ </modal>
196
+ </div>
197
+ </criteria>
198
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
199
+ <template partial='head'>
200
+ <tr>
201
+ <th>
202
+ <nobr>客户编号</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>客户名称</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>客户电话</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>客户类型</nobr>
212
+ </th>
213
+ <th>
214
+ <data-order field="f_address" name="客户地址"></data-order>
215
+ </th>
216
+ <th>
217
+ <nobr>安检状态</nobr>
218
+ </th>
219
+ <th>
220
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
221
+ </th>
222
+ <th>
223
+ <nobr>安检员</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>备注</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>操作</nobr>
230
+ </th>
231
+ <th v-if="$parent.$parent.$parent.audioshow">
232
+ <nobr>录音</nobr>
233
+ </th>
234
+ </tr>
235
+ </template>
236
+ <template partial='body'>
237
+
238
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
239
+ <td style="text-align: center">{{row.f_user_name}}</td>
240
+ <td style="text-align: center">{{row.f_user_phone}}</td>
241
+ <td style="text-align: center">{{row.f_check_type}}</td>
242
+
243
+ <td style="text-align: center">{{row.f_address}}</td>
244
+ <td style="text-align: center">{{row.f_entry_status}}</td>
245
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
246
+ <td style="text-align: center">{{row.f_checker_name}}</td>
247
+ <td style="text-align: center">{{row.f_repair_approved_note}}</td>
248
+ <td style="text-align: center">
249
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
250
+
251
+
252
+ </td>
253
+ <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
254
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
255
+ <audio controls="controls" v-if="row.f_recording1_path">
256
+ <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
257
+ </audio>
258
+ <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
259
+ @click="$parent.$parent.$parent.print(row)">
260
+ 打印
261
+ </button>-->
262
+ </td>
263
+ </template>
264
+ </data-grid>
265
+ </criteria-paged>
266
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
267
+ </div>
268
+ </div>
269
+ </template>
270
+
271
+ <script>
272
+ import {PagedList} from 'vue-client'
273
+ import Vue from 'vue'
274
+ import co from 'co'
275
+ import AppData from '../../../stores/AppData'
276
+ import * as Util from '../../Util'
277
+ import getNowDate from "../../../utils/getNowDate";
278
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
279
+ import BenzAMRRecorder from 'benz-amr-recorder'
280
+ //获取json配置文件
281
+ let asyncReady = async function (self) {
282
+ // 获取配置信息
283
+ try {
284
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
285
+ Vue.config = res.data
286
+ } catch (error) {
287
+ // 忽略704,文件找不到异常R
288
+ if (error.status !== 704) {
289
+ throw error
290
+ }
291
+ }
292
+ }
293
+
294
+ let select = function* (self) {
295
+ let http = new HttpResetClass()
296
+ let getGasman = yield http.load('POST', '/rs/search', {
297
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
298
+ userid: self.$login.f.id
299
+ }, {resolveMsg: null, rejectMsg: null})
300
+ ////tag
301
+ self.checkersid.push({label: '全部', value: ''})
302
+ getGasman.data.forEach((checker) => {
303
+ self.checkersid.push({label: checker.name, value: checker.id})
304
+ })
305
+ }
306
+
307
+ export default {
308
+ title: '安检结果查看',
309
+ data() {
310
+ let model = new PagedList('api/af-safecheck/sql/查找安检单', 20, {
311
+ f_plan_id: 'this.f_plan_id',
312
+ f_approved: 'this.f_approved',
313
+ f_entry_status: 'this.f_entry',
314
+ f_no_checkplan: 'this.f_no_checkplan',
315
+ f_filialeid: 'this.f_filialeid',
316
+ orderitem: "'f_offsite_time desc'"
317
+ })
318
+ model.f_check_type=''
319
+ model.f_plan_id = ''
320
+ model.f_approved = ''
321
+ model.f_entry = ''
322
+ model.f_no_checkplan = ''
323
+ model.f_filialeid = `('${this.$login.f.orgid}')`
324
+ //model.f_check_type='民用'
325
+ // let searchData={
326
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
327
+ // f_approved: this.model.f_approved,
328
+ // f_entry_status: this.model.f_entry,
329
+ // f_no_checkplan:this.model.f_no_checkplan[0],
330
+ // f_filialeid: this.model.f_filialeid,
331
+ // //orderitem: this.model.f_offsite_time,
332
+ // //condition:this.model.condition
333
+ // }
334
+ // model.f_subcompany = this.$login.f.f_fengongsi
335
+ return {
336
+ audioshow:false,
337
+ searchData: {
338
+ condition: "1=1",
339
+ orderitem: "f_offsite_time desc",
340
+ f_plan_id: "",
341
+ f_approved: '',
342
+ f_entry_status: '',
343
+ f_no_checkplan: '',
344
+ f_filialeid: `('${this.$login.f.orgid}')`
345
+ },
346
+ model: model,
347
+ excelHeaders: {
348
+ //searchData:searchData,
349
+ 'f_userinfo_code': '客户编号',
350
+ 'f_user_name': '客户姓名',
351
+ 'f_check_type': '客户类型',
352
+ 'f_residential_area': '小区',
353
+ 'f_address': '客户地址',
354
+ 'f_entry_status': '安检状态',
355
+ 'f_offsite_time': '安检时间',
356
+ 'f_checker_name': '安检员'
357
+ },
358
+ fun: this.$login.f,
359
+ pcds:[],
360
+ checkersid: [],
361
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
362
+ criteriaShow: false,
363
+ showModal: false,
364
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
365
+ f_approval_states: this.$appdata.getParam('安检单审核状态'),
366
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
367
+ f_checkplans: this.$appdata.getParam('有无计划'),
368
+ showcheckmsg: false,
369
+ checkInfo: {},
370
+ orderDefault: "'f_offsite_time'",
371
+ orderFields: {
372
+ f_offsite_time: 'no'
373
+ },
374
+ sliceArea: [],
375
+ cbc:[]
376
+ }
377
+ },
378
+ methods: {
379
+ //获取省市区列表
380
+ getPcd(val){
381
+ this.pcds = [{label:'全部',value:''}]
382
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
383
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
384
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
385
+ pcdlist.data.forEach((result)=>{
386
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
387
+ })
388
+ })
389
+ },
390
+ showaudio(){
391
+ //tag
392
+ this.audioshow=!this.audioshow
393
+ //tag
394
+ },
395
+ getmeterbook(val){
396
+ this.cbc=[]
397
+ this.cbc.push({
398
+ label:'全部',
399
+ value:''
400
+ })
401
+ if (val==''){
402
+
403
+ this.cbcs.forEach(res=>{
404
+ this.cbc.push({
405
+ label:res.f_book_name,
406
+ value:res.id
407
+ })
408
+ })
409
+ }else{
410
+ this.cbcs.forEach(res=>{
411
+ if (res.f_book_slice_area==val){
412
+ this.cbc.push({
413
+ label:res.f_book_name,
414
+ value:res.id
415
+ })
416
+ }
417
+ })
418
+ }
419
+ },
420
+ Mreadibook(val){
421
+ ////tag
422
+ ////tag
423
+ this.sliceArea=[]
424
+ if (val){
425
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
426
+ items: 'name',
427
+ tablename: 't_zone',
428
+ condition: `parentid in ${val}`,
429
+ orderitem: 'id'
430
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
431
+ this.sliceArea.push({
432
+ label:'全部',
433
+ value:''
434
+ })
435
+ res.data.forEach(ress=>{
436
+ this.sliceArea.push({
437
+ label:ress.name,
438
+ value:ress.name
439
+ })
440
+ })
441
+
442
+ })
443
+ }
444
+ },
445
+ getAllMeterBook(val){
446
+ ////tag
447
+ ////tag
448
+ this.cbcs=[]
449
+ if (val){
450
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
451
+ items: 'f_book_name,f_book_slice_area,id',
452
+ tablename: 't_meter_book',
453
+ condition: `f_filiale_id in ${val}`,
454
+ orderitem: 'id'
455
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
456
+ res.data.forEach(ress=>{
457
+ this.cbcs.push({
458
+ id:ress.id,
459
+ f_book_name:ress.f_book_name,
460
+ f_book_slice_area:ress.f_book_slice_area
461
+ })
462
+ })
463
+ this.cbc=[]
464
+ this.cbc.push({
465
+ label:'全部',
466
+ value:''
467
+ })
468
+ this.cbcs.forEach(res=>{
469
+ this.cbc.push({
470
+ label:res.f_book_name,
471
+ value:res.id
472
+ })
473
+ })
474
+ })
475
+ }
476
+ },
477
+ getRes(obj) {
478
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
479
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
480
+ this.Mreadibook(this.model.f_filialeid)
481
+ this.getAllMeterBook(this.model.f_filialeid)
482
+ this.getPcd(this.model.f_filialeid)
483
+ //this.$refs.paged.$refs.criteria.search()
484
+ },
485
+
486
+ change(row) {
487
+ row.f_upload_state = '已传'
488
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
489
+ },
490
+ readConfig() {
491
+ let gen = asyncReady(this)
492
+ return co(gen)
493
+ },
494
+ showChooser() {
495
+ this.showModal = true
496
+ },
497
+ hidden() {
498
+ this.criteriaShow = !this.criteriaShow
499
+ },
500
+ refresh() {
501
+ this.$refs.paged.$refs.criteria.search()
502
+ },
503
+ ok() {
504
+ this.showModal = false
505
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
506
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
507
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
508
+ }
509
+ },
510
+ cancel() {
511
+ this.showModal = false
512
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
513
+ this.model.f_plan_id=''
514
+ },
515
+ print(row) {
516
+ this.showcheckmsg = true
517
+ this.checkInfo = row
518
+ },
519
+
520
+ sort(field, rule) {
521
+ // 将所有排序方式设为不排序,实现相互排斥
522
+ for (let key in this.orderFields) {
523
+ if (key === field) {
524
+ this.orderFields[key] = rule
525
+ } else {
526
+ this.orderFields[key] = 'no'
527
+ }
528
+ }
529
+ // 如果新规则不排序,还原为默认排序
530
+ if (rule === 'no') {
531
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
532
+ } else {
533
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
534
+ }
535
+ this.search()
536
+ },
537
+ search() {
538
+ this.$refs.paged.$refs.criteria.search()
539
+ },
540
+ selfSearch(args) {
541
+ ////tag
542
+ //args.condition+=" and f_check_type='民用'"
543
+ this.model.search(args.condition, args.model, args.condValue)
544
+ }
545
+ },
546
+
547
+ ready() {
548
+ ////tag
549
+ this.function = this.f
550
+ ////tag
551
+
552
+ let gen = select(this)
553
+ //this.pianqu()
554
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
555
+ co(gen)
556
+ },
557
+ watch: {
558
+ 'model.f_no_checkplan'(val) {
559
+ if (this.model.f_no_checkplan){
560
+ this.searchData.f_no_checkplan = val
561
+ }
562
+ if (this.model.f_no_checkplan == '有计划安检') {
563
+
564
+ this.showChooser()
565
+ }
566
+ },
567
+ 'model.condition'(val) {
568
+ if (val) {
569
+ this.searchData.condition = val
570
+ }
571
+
572
+ },
573
+ 'model.f_entry'(val) {
574
+ if (val) {
575
+ this.searchData.f_entry_status = val
576
+ }
577
+ },
578
+ 'model.f_plan_id'(val) {
579
+ if (val) {
580
+ this.searchData.f_plan_id = val
581
+ }
582
+ },
583
+ 'model.f_slice_area'(val) {
584
+ if (val) {
585
+
586
+ }
587
+ },
588
+ 'model.f_approved'(val) {
589
+ if (val) {
590
+ this.searchData.f_approved = val
591
+ }
592
+ },
593
+ }
594
+
595
+ }
596
+ </script>