safecheck-client 4.0.0-77 → 4.0.0-79

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 (220) 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/android/AddPlanItem.vue +447 -447
  6. package/src/components/android/AddPlanItemYy.vue +451 -451
  7. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  8. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  9. package/src/components/android/Devices.vue +327 -327
  10. package/src/components/android/Devicesm.vue +327 -327
  11. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  12. package/src/components/android/PhoneRecordInfo.vue +113 -113
  13. package/src/components/android/PhoneSellInfo.vue +113 -113
  14. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  15. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  16. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  17. package/src/components/android/SafePlanItem.vue +509 -509
  18. package/src/components/android/examples/SafeListExamples.vue +296 -296
  19. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  20. package/src/components/android/recheck/Recheck.vue +402 -402
  21. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  22. package/src/components/checkplan/checkmsg.vue +459 -459
  23. package/src/components/defect/DefectList.vue +507 -507
  24. package/src/components/defect/DefectListWeixiu.vue +484 -484
  25. package/src/components/filialCircle/CircleList.vue +139 -139
  26. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  27. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  28. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  29. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  30. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  31. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  32. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  33. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  34. package/src/components/pc/AnnouncementPC.vue +524 -524
  35. package/src/components/pc/DefectList.vue +742 -742
  36. package/src/components/pc/DeviceChange.vue +1068 -1068
  37. package/src/components/pc/SafeVisitInfo.vue +261 -261
  38. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  39. package/src/components/report/HiddenSituation.vue +165 -165
  40. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  41. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  42. package/src/components/rongcheng/DefectList.vue +560 -560
  43. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  44. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  45. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  46. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  47. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  48. package/src/components/shaoguan/DefectList.vue +473 -473
  49. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  50. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  51. package/src/components/userfile/SecurityAudit.vue +243 -243
  52. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  53. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  54. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  55. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  56. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  57. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  58. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  59. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  60. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  61. package/src/filiale/bayan/android/Edit.vue +132 -132
  62. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  63. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  64. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  65. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  66. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  67. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  68. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  69. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  70. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  71. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  72. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  73. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  74. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  75. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  76. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  77. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  78. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  79. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  80. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  81. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  82. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  83. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  84. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  85. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  86. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  87. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  88. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  89. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  90. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  91. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  92. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  93. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  94. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  95. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  96. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  97. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  98. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  99. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  100. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  101. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  102. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  103. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  104. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  105. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  106. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  107. package/src/filiale/meihekou/android/MeterReading.vue +106 -106
  108. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  109. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  110. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  111. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  112. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  113. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  114. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  115. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  116. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  117. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  118. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  119. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  120. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  121. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  122. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  123. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  124. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  125. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  126. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  127. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  128. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  129. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  130. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  131. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  132. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  133. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  134. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  135. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  136. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  137. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  138. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  139. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  140. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  141. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  142. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  143. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  144. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  145. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  146. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  147. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  148. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  149. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  150. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  151. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  152. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  153. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  154. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  155. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  156. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  157. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  158. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  159. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  160. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  161. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  162. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  163. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  164. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  165. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  166. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  167. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  168. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  169. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  170. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  171. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  172. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  173. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  174. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  175. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  176. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  177. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  178. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  179. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  180. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  181. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  182. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  183. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  184. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  185. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  186. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  187. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  188. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  189. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1249 -0
  190. package/src/filiale/xiangyuanzhongai/android.js +13 -12
  191. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  192. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  193. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  194. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  195. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  196. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  197. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  198. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  199. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  200. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  201. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  202. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  203. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  204. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  205. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  206. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  207. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  208. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  209. package/src/filiale/yunchengminsheng/android.js +15 -15
  210. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  211. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  212. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  213. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  214. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  215. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  216. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  217. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  218. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  219. package/src/main.js +32 -33
  220. package/src/filiale/jinhong/pc/android.js +0 -12
@@ -1,167 +1,167 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false'>
4
- <criteria partial='criteria' @condition-changed='$parent.search' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-4 form-group">
8
- <role-selector-safe role-name="安检员" role-lable="安&ensp;检&ensp;员" @re-res="$parent.$parent.getRes"
9
- :value.sync="model.f_checker_id" v-model="model.f_checker_id" condition="f_checker_name like '%{}%'">
10
- </role-selector-safe>
11
- </div>
12
- <div class="col-sm-2 form-group">
13
- <label for="startDate" class="font_normal_body">开始日期:</label>
14
- <datepicker id="startDate" placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate"
15
- style="width: 60%;" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd 00:00:00'"
16
- :show-reset-button="reset">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate"
22
- :disabled-days-of-Week="[]" style="width: 60%;" :format="'yyyy-MM-dd 23:59:59'"
23
- :show-reset-button="reset">
24
- </datepicker>
25
- </div>
26
- <div class="col-sm-4 form-group" style="margin-top: 8px">
27
- <button class="button_search button_spacing" @click="search()">查询</button>
28
- <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
29
- <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
30
- </div>
31
- </div>
32
- <div class="row">
33
- <div class="col-sm-2 form-group">
34
- <label class="font_normal_body">用气性质</label>
35
- <v-select class="select_list select" placeholder='用气性质' style="width: 60%" v-model='model.userType'
36
- :value.sync="model.userType" :options='$parent.$parent.userTypes' condition="tuf.f_gasproperties in {} "
37
- :multiple="true"></v-select>
38
- </div>
39
- <div class="col-sm-2 form-group">
40
- <label class="font_normal_body">气表类型</label>
41
- <v-select class="select_list select" placeholder='气表类型' style="width: 60%" v-model='model.tableType'
42
- :value.sync="model.tableType" :options='$parent.$parent.tableTypes'
43
- condition="tuf.f_meter_classify = '{}'" :value-single="true" close-on-select clear-button></v-select>
44
- </div>
45
- <div class="col-sm-2 form-group">
46
- <label class="font_normal_body">气表品牌</label>
47
- <v-select class="select_list select" placeholder='气表类型' style="width: 60%" v-model='model.tableBrand'
48
- :value.sync="model.tableBrand" :options='$parent.$parent.tableBrands'
49
- condition="gb.f_meter_brand = '{}'" :value-single="true" close-on-select clear-button></v-select>
50
- </div>
51
- </div>
52
- </div>
53
- </criteria>
54
- <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
55
- <table class='tableprint' style="margin: 0px auto">
56
- <thead>
57
- <tr>
58
- <th colspan='5' style="font-weight: normal; text-align: left;">
59
- <h3 style="text-align: center">隐患报表</h3>
60
- </th>
61
- </tr>
62
- <tr>
63
- <th colspan='5' style="font-weight: normal; text-align: center;">
64
- 隐患户数:{{ $parent.hiddenHouseholds }}&nbsp;&nbsp;&nbsp;
65
- 隐患发生数:{{ $parent.hiddenNumber }}&nbsp;&nbsp;&nbsp;
66
- 开始时间:{{ model.model.startDate }}&nbsp;&nbsp;&nbsp;
67
- 结束时间:{{ model.model.endDate }}
68
- </th>
69
- </tr>
70
- </thead>
71
- <tr>
72
- <th colspan='5' style="font-weight: normal;">
73
- {{{ model.data.substring(26, model.data.length - 8) }}}
74
- </th>
75
- </tr>
76
- </table>
77
- </div>
78
- </criteria-paged>
79
- </div>
80
-
81
- </template>
82
-
83
- <script>
84
- import { DataModel, HttpResetClass } from 'vue-client'
85
-
86
- export default {
87
- title: '隐患报表',
88
- data() {
89
-
90
- let model = new DataModel('/api/af-safecheck/report/hiddensituation', {
91
- startDate: 'this.model.startDate',
92
- endDate: 'this.model.endDate',
93
- f_filialeid: 'this.f_filialeid'
94
- })
95
- model.f_filialeid = '(' + this.$login.f.orgid + ')'
96
- return {
97
- userTypes: [{ label: '全部', value: '' }, ...this.$appdata.getParam('用气性质')],
98
- tableTypes: [{ label: '全部', value: '' }, ...this.$appdata.getParam('气表类型')],
99
- tableBrands: [{ label: '全部', value: '' }],
100
- filialeNameStr: '',
101
- hiddenNumber: '',
102
- hiddenHouseholds: '',
103
- filialeCodeStr: '',
104
- userid: this.$login.f.id,
105
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
106
- model: model
107
- }
108
- },
109
- methods: {
110
- search(args) {
111
- this.model.search(args.condition, args.model)
112
- let dateCondition
113
- if (args.model.startDate && args.model.endDate) {
114
- dateCondition = `f_offsite_time BETWEEN '${args.model.startDate}' AND '${args.model.endDate}'`
115
- } else if (args.model.startDate) {
116
- dateCondition = `f_offsite_time >= '${args.model.startDate}'`
117
- } else if (args.model.endDate) {
118
- dateCondition = `f_offsite_time <= '${args.model.endDate}'`
119
- }
120
- if (dateCondition){
121
- this.getHiddenNumber(dateCondition)
122
- this.getHiddenHouseholds(dateCondition)
123
- }
124
- },
125
- getRes(obj) {
126
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
127
- },
128
- getHiddenNumber(condition) {
129
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/defectDetails`,
130
- { data: { condition: condition } },
131
- { resolveMsg: null, rejectMsg: null }).then(resp => {
132
- this.$set('hiddenNumber',resp.data.length)
133
- })
134
- },
135
- getHiddenHouseholds(condition) {
136
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`,
137
- { data: { items: "f_userinfoid", tablename: "t_check_paper", groupitem: "f_userinfoid", condition: ` f_defect_content LIKE '%有隐患%' and ${condition}` } },
138
- { resolveMsg: null, rejectMsg: null }).then(resp => {
139
- this.$set('hiddenHouseholds',resp.data.length)
140
- })
141
- },
142
- getTableBrands() {
143
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
144
- { data: { items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 ` } },
145
- { resolveMsg: null, rejectMsg: null }).then((resp) => {
146
- resp.data.forEach((result) => {
147
- this.tableBrands.push({ label: result.f_meter_brand, value: result.f_meter_brand })
148
- })
149
- })
150
- },
151
- },
152
- ready() {
153
- this.getTableBrands()
154
- },
155
- computed: {
156
- selected() {
157
- return this.$refs.grid.selected
158
- }
159
- // outlets () {
160
- // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
161
- // },
162
- // operator () {
163
- // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
164
- // }
165
- }
166
- }
167
- </script>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false'>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-4 form-group">
8
+ <role-selector-safe role-name="安检员" role-lable="安&ensp;检&ensp;员" @re-res="$parent.$parent.getRes"
9
+ :value.sync="model.f_checker_id" v-model="model.f_checker_id" condition="f_checker_name like '%{}%'">
10
+ </role-selector-safe>
11
+ </div>
12
+ <div class="col-sm-2 form-group">
13
+ <label for="startDate" class="font_normal_body">开始日期:</label>
14
+ <datepicker id="startDate" placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate"
15
+ style="width: 60%;" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd 00:00:00'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]" style="width: 60%;" :format="'yyyy-MM-dd 23:59:59'"
23
+ :show-reset-button="reset">
24
+ </datepicker>
25
+ </div>
26
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
27
+ <button class="button_search button_spacing" @click="search()">查询</button>
28
+ <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
29
+ <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
30
+ </div>
31
+ </div>
32
+ <div class="row">
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">用气性质</label>
35
+ <v-select class="select_list select" placeholder='用气性质' style="width: 60%" v-model='model.userType'
36
+ :value.sync="model.userType" :options='$parent.$parent.userTypes' condition="tuf.f_gasproperties in {} "
37
+ :multiple="true"></v-select>
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label class="font_normal_body">气表类型</label>
41
+ <v-select class="select_list select" placeholder='气表类型' style="width: 60%" v-model='model.tableType'
42
+ :value.sync="model.tableType" :options='$parent.$parent.tableTypes'
43
+ condition="tuf.f_meter_classify = '{}'" :value-single="true" close-on-select clear-button></v-select>
44
+ </div>
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">气表品牌</label>
47
+ <v-select class="select_list select" placeholder='气表类型' style="width: 60%" v-model='model.tableBrand'
48
+ :value.sync="model.tableBrand" :options='$parent.$parent.tableBrands'
49
+ condition="gb.f_meter_brand = '{}'" :value-single="true" close-on-select clear-button></v-select>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </criteria>
54
+ <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
55
+ <table class='tableprint' style="margin: 0px auto">
56
+ <thead>
57
+ <tr>
58
+ <th colspan='5' style="font-weight: normal; text-align: left;">
59
+ <h3 style="text-align: center">隐患报表</h3>
60
+ </th>
61
+ </tr>
62
+ <tr>
63
+ <th colspan='5' style="font-weight: normal; text-align: center;">
64
+ 隐患户数:{{ $parent.hiddenHouseholds }}&nbsp;&nbsp;&nbsp;
65
+ 隐患发生数:{{ $parent.hiddenNumber }}&nbsp;&nbsp;&nbsp;
66
+ 开始时间:{{ model.model.startDate }}&nbsp;&nbsp;&nbsp;
67
+ 结束时间:{{ model.model.endDate }}
68
+ </th>
69
+ </tr>
70
+ </thead>
71
+ <tr>
72
+ <th colspan='5' style="font-weight: normal;">
73
+ {{{ model.data.substring(26, model.data.length - 8) }}}
74
+ </th>
75
+ </tr>
76
+ </table>
77
+ </div>
78
+ </criteria-paged>
79
+ </div>
80
+
81
+ </template>
82
+
83
+ <script>
84
+ import { DataModel, HttpResetClass } from 'vue-client'
85
+
86
+ export default {
87
+ title: '隐患报表',
88
+ data() {
89
+
90
+ let model = new DataModel('/api/af-safecheck/report/hiddensituation', {
91
+ startDate: 'this.model.startDate',
92
+ endDate: 'this.model.endDate',
93
+ f_filialeid: 'this.f_filialeid'
94
+ })
95
+ model.f_filialeid = '(' + this.$login.f.orgid + ')'
96
+ return {
97
+ userTypes: [{ label: '全部', value: '' }, ...this.$appdata.getParam('用气性质')],
98
+ tableTypes: [{ label: '全部', value: '' }, ...this.$appdata.getParam('气表类型')],
99
+ tableBrands: [{ label: '全部', value: '' }],
100
+ filialeNameStr: '',
101
+ hiddenNumber: '',
102
+ hiddenHouseholds: '',
103
+ filialeCodeStr: '',
104
+ userid: this.$login.f.id,
105
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
106
+ model: model
107
+ }
108
+ },
109
+ methods: {
110
+ search(args) {
111
+ this.model.search(args.condition, args.model)
112
+ let dateCondition
113
+ if (args.model.startDate && args.model.endDate) {
114
+ dateCondition = `f_offsite_time BETWEEN '${args.model.startDate}' AND '${args.model.endDate}'`
115
+ } else if (args.model.startDate) {
116
+ dateCondition = `f_offsite_time >= '${args.model.startDate}'`
117
+ } else if (args.model.endDate) {
118
+ dateCondition = `f_offsite_time <= '${args.model.endDate}'`
119
+ }
120
+ if (dateCondition){
121
+ this.getHiddenNumber(dateCondition)
122
+ this.getHiddenHouseholds(dateCondition)
123
+ }
124
+ },
125
+ getRes(obj) {
126
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
127
+ },
128
+ getHiddenNumber(condition) {
129
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/defectDetails`,
130
+ { data: { condition: condition } },
131
+ { resolveMsg: null, rejectMsg: null }).then(resp => {
132
+ this.$set('hiddenNumber',resp.data.length)
133
+ })
134
+ },
135
+ getHiddenHouseholds(condition) {
136
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`,
137
+ { data: { items: "f_userinfoid", tablename: "t_check_paper", groupitem: "f_userinfoid", condition: ` f_defect_content LIKE '%有隐患%' and ${condition}` } },
138
+ { resolveMsg: null, rejectMsg: null }).then(resp => {
139
+ this.$set('hiddenHouseholds',resp.data.length)
140
+ })
141
+ },
142
+ getTableBrands() {
143
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
144
+ { data: { items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 ` } },
145
+ { resolveMsg: null, rejectMsg: null }).then((resp) => {
146
+ resp.data.forEach((result) => {
147
+ this.tableBrands.push({ label: result.f_meter_brand, value: result.f_meter_brand })
148
+ })
149
+ })
150
+ },
151
+ },
152
+ ready() {
153
+ this.getTableBrands()
154
+ },
155
+ computed: {
156
+ selected() {
157
+ return this.$refs.grid.selected
158
+ }
159
+ // outlets () {
160
+ // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
161
+ // },
162
+ // operator () {
163
+ // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
164
+ // }
165
+ }
166
+ }
167
+ </script>