manage-client 3.3.230 → 3.3.232

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 (207) hide show
  1. package/build/dev-server.js +190 -190
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/gradlew +234 -234
  4. package/gradlew.bat +89 -89
  5. package/hs_err_pid13052.log +206 -206
  6. package/package.json +111 -111
  7. package/src/components/SellReport/BusinessClassify.vue +292 -292
  8. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  9. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  10. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -0
  11. package/src/components/SellReport/ManageSellType.vue +267 -267
  12. package/src/components/SellReport/ReportItems.vue +312 -312
  13. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  14. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  15. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  16. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  17. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  18. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  19. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  20. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  21. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  22. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  23. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  24. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  25. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  26. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  27. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  29. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  30. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  31. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  32. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  33. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  34. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  35. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  36. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  37. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  38. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  39. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  40. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  41. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  42. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  43. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  44. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  45. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  46. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  47. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  48. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  49. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  50. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  51. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  52. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  53. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  54. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  55. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  56. package/src/components/sale/businessquery/usergas.vue +315 -315
  57. package/src/components/sale/config/exportConfig.js +2762 -2762
  58. package/src/components/sale/config/tableConfig.js +59 -59
  59. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  60. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  61. package/src/components/sale/filesquery/UserQuery.vue +977 -977
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -736
  64. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -689
  65. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  66. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  67. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  68. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  69. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  70. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
  71. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  72. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  73. package/src/components/webmeter/report/ReportList.vue +453 -453
  74. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  75. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  76. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  77. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  78. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  79. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  80. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  81. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  82. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  83. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  84. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  85. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  86. package/src/filiale/bayan/config/tableConfig.js +59 -59
  87. package/src/filiale/bayan/sale.js +8 -8
  88. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  89. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  90. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  91. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  92. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  93. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  94. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  95. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  96. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  97. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  98. package/src/filiale/bayan/webmeterManage.js +26 -26
  99. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  100. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  101. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  102. package/src/filiale/dingcheng/sale.js +9 -9
  103. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  104. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  105. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  106. package/src/filiale/hantou/config/tableConfig.js +54 -54
  107. package/src/filiale/hantou/sale.js +8 -8
  108. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  109. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  110. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  111. package/src/filiale/jingyang/RechargeList.vue +346 -346
  112. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  113. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  114. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  115. package/src/filiale/jingyang/sale.js +8 -8
  116. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  117. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  118. package/src/filiale/kelai/GasStatistics.vue +561 -561
  119. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  120. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  121. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  122. package/src/filiale/kelai/reportManage.js +13 -13
  123. package/src/filiale/kelai/sale.js +17 -17
  124. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  125. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  126. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  127. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  128. package/src/filiale/macheng/config/exportConfig.js +79 -79
  129. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  130. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  131. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  132. package/src/filiale/meihekou/CollectManage.vue +152 -152
  133. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  134. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  135. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  136. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  137. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  138. package/src/filiale/meihekou/sale.js +39 -39
  139. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  140. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  141. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  142. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  143. package/src/filiale/qianneng/exportConfig.js +232 -232
  144. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  145. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  146. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  147. package/src/filiale/rizhao/sale.js +13 -13
  148. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  149. package/src/filiale/shangluo/sale.js +17 -17
  150. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  151. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  152. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  153. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  154. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  155. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  156. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  157. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  158. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  159. package/src/filiale/taizhoukesi/sale.js +11 -11
  160. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  161. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  162. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  163. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  164. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  165. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  166. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  167. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  168. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  169. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  170. package/src/filiale/xinjiangdexin/sale.js +7 -7
  171. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  172. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  173. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  174. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  175. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  176. package/src/filiale/yangchun/UserQuery.vue +980 -980
  177. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  178. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  179. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  180. package/src/filiale/yangchun/reportManage.js +6 -6
  181. package/src/filiale/yangchun/sale.js +20 -20
  182. package/src/filiale/yangchun/webmeterManage.js +5 -5
  183. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  184. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  185. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  186. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  187. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  188. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  189. package/src/filiale/yuncheng/sale.js +23 -23
  190. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  191. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  192. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  193. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  194. package/src/filiale/zhongyi/sale.js +33 -33
  195. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  196. package/src/main.js +68 -68
  197. package/src/plugins/LodopFuncs.js +159 -159
  198. package/src/reportManage.js +777 -773
  199. package/src/saleManage.js +689 -689
  200. package/src/webmeterManage.js +130 -130
  201. package/.gradle/7.4/checksums/checksums.lock +0 -0
  202. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  203. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  204. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  205. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  206. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  207. package/.gradle/7.4/gc.properties +0 -0
@@ -1,736 +1,739 @@
1
- <template>
2
- <div class="flex-row" v-show="!showdetail">
3
- <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
- <criteria-paged :model="model" :pager='true' v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
- <div class="row">
8
- <!--<div class="form-group">-->
9
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
- <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
- <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
- <!--</div>-->
13
-
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
- v-model="model.f_userinfo_code" placeholder='客户编号'
18
- condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
- >
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">客户名称</label>
23
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
- v-model="model.f_user_name" placeholder='客户名称'
25
- condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
- >
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户地址</label>
30
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
- placeholder='地址'
32
- condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
- >
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
- v-model="model.f_meternumber" placeholder='表号'
39
- condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
- >
41
- </div>
42
- <div style="float:right">
43
- <button class="button_search button_spacing" @click="search()">查询</button>
44
- <button class="button_clear button_spacing" @click="clear">清空</button>
45
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
46
- :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
47
- :header="$parent.$parent.other"
48
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getAllLoseQuery" template-name='失联分析'
49
- :choose-col="true"></export-excel>
50
- <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
- <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
53
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
54
- </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
- <right-tree @re-res="$parent.$parent.getorg" width="60%"
60
- :initresid='$parent.$parent.org'></right-tree>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门</label>
64
- <res-select id="dep" restype='department' style="width: 60%"
65
- is-mul="false"
66
- @res-select="$parent.$parent.getdep"
67
- :parentresid="$parent.$parent.depresid"
68
- :initresid='$parent.$parent.depid' >
69
- </res-select>
70
-
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">客户类型</label>
74
- <v-select style="width:60%" id="f_user_type"
75
- v-model="model.f_user_type"
76
- placeholder='客户类型'
77
- :value.sync="model.f_user_type"
78
- @change="$parent.$parent.userTypeChange()"
79
- :options='$parent.$parent.usertypes'
80
- condition="f_user_type = '{}'"
81
- close-on-select>
82
- </v-select>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">用气性质</label>
86
- <v-select style="width:60%" id="f_gasproperties"
87
- v-model="model.f_gasproperties"
88
- placeholder='用气性质'
89
- :value.sync="model.f_gasproperties"
90
- :options='$parent.$parent.gasproperties'
91
- condition="f_gasproperties = '{}'"
92
- close-on-select>
93
- </v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">气表品牌</label>
97
- <v-select
98
- placeholder='气表品牌'
99
- :value.sync="model.f_meter_brand"
100
- v-model="model.f_meter_brand"
101
- :options='$parent.$parent.WarningType'
102
- @change="$parent.$parent.getMeterType"
103
- close-on-select
104
- condition="f_meter_brand='{}'">
105
- </v-select>
106
- </div>
107
- <div class="col-sm-2 form-group" >
108
- <label class="font_normal_body">气表型号</label>
109
- <v-select v-if="$parent.$parent.styles"
110
- placeholder='气表型号'
111
- :value.sync="model.f_meter_style"
112
- v-model="model.f_meter_style"
113
- :options='$parent.$parent.Warningstyle'
114
- close-on-select
115
- condition="f_meter_style='{}'">
116
- </v-select>
117
- <v-select v-if="!$parent.$parent.styles"
118
- placeholder='气表型号'
119
- :value.sync="model.f_meter_style"
120
- v-model="model.f_meter_style"
121
- :options='$parent.$parent.Warningstyles'
122
- close-on-select
123
- condition="f_meter_style='{}'">
124
- </v-select>
125
- </div>
126
- <div class="col-sm-2 form-group">
127
- <label class="font_normal_body">用户状态</label>
128
- <v-select
129
- placeholder='用户状态'
130
- value-single
131
- style="width:60%"
132
- :value.sync="model.f_user_state"
133
- v-model="model.f_user_state"
134
- :options='$parent.$parent.userstate'
135
- close-on-select condition="f_user_state ='{}'">
136
- </v-select>
137
- </div>
138
- <!--<div class="col-sm-2 form-group">-->
139
- <!--<label class="font_normal_body">最新状态</label>-->
140
- <!-- <v-select style="width:60%" id="f_state"-->
141
- <!--v-model="model.f_state"-->
142
- <!--placeholder='最新状态'-->
143
- <!--:value.sync="model.f_state"-->
144
- <!--:options='$parent.$parent.getstate'-->
145
- <!--condition="f_state = '{}'"-->
146
- <!--close-on-select>-->
147
- <!--</v-select>-->
148
- <!--</div>-->
149
- <div class="col-sm-2 form-group">
150
- <label class="font_normal_body">开始时间</label>
151
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
152
- v-model="model.startDate"
153
- :value.sync="model.startDate"
154
- :disabled-days-of-Week="[]"
155
- :format="'yyyy-MM-dd HH:mm:ss'"
156
-
157
- :show-reset-button="reset">
158
- </datepicker>
159
- </div>
160
- <div class="col-sm-2 form-group">
161
- <label class="font_normal_body">结束时间</label>
162
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
163
- v-model="model.endDate"
164
- :value.sync="model.endDate"
165
- :disabled-days-of-Week="[]"
166
- :format="'yyyy-MM-dd HH:mm:ss'"
167
-
168
- :show-reset-button="reset">
169
- </datepicker>
170
- </div>
171
-
172
-
173
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
174
- <label class="font_normal_body">最长失联</label>
175
- <div class="row">
176
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
177
- condition="max_interval_day >= {} " placeholder="">
178
- <label class="font_normal_body"> &nbsp;≤ x ≤ </label>
179
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
180
- condition="max_interval_day <= {} " placeholder="">
181
- </div>
182
- </div>
183
-
184
-
185
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
186
- <label class="font_normal_body">合计失联</label>
187
- <div class="row">
188
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
189
- condition="SLdays >= {} " placeholder="">
190
- <label class="font_normal_body">&nbsp; ≤ x ≤ </label>
191
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
192
- condition="SLdays <= {} " placeholder="">
193
- </div>
194
- </div>
195
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
196
- <label class="font_normal_body">最新失联</label>
197
- <div class="row">
198
- <input type="text" style="width:27%" class="input_search" v-model="model.new_days1"
199
- condition="new_days >= {} " placeholder="">
200
- <label class="font_normal_body">&nbsp; ≤ x ≤ </label>
201
- <input type="text" style="width:27%" class="input_search" v-model="model.new_days2"
202
- condition="new_days <= {} " placeholder="">
203
- </div>
204
- </div>
205
- <div class="col-sm-2 form-group">
206
- <label class="font_normal_body">是否通气</label>
207
- <v-select
208
- placeholder='是否通气'
209
- style="width:60%"
210
- :value.sync="model.f_address_state"
211
- v-model="model.f_address_state"
212
- :options='$parent.$parent.addressState'
213
- close-on-select condition="f_address_state = '{}'">
214
- </v-select>
215
- </div>
216
-
217
- <!--<div class="col-sm-2 form-group">-->
218
- <!--<label class="font_normal_body">最新失联</label>-->
219
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
220
- <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
221
- <!--&gt;-->
222
- <!--</div>-->
223
- <!--<div class="col-sm-2 form-group">-->
224
- <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
225
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
226
- <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
227
- <!--&gt;-->
228
- <!--</div>-->
229
- </div>
230
-
231
-
232
-
233
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
234
- <!--:thead='"<th>序号</th>\n"+-->
235
- <!--"<th>档案编号</th>" +-->
236
- <!--" <th>档案标识</th>"+-->
237
- <!--"<th>客户名称</th>"+-->
238
- <!--"<th>表号</th"+-->
239
- <!--"<th>表具类型</th>"+-->
240
- <!--"<th>客户类型</th>"+-->
241
- <!--"<th>区域</th>"+-->
242
- <!--"<th>小区</th>"+-->
243
- <!--"<th>地址</th>"+-->
244
- <!--"<th>用气气量</th>"+-->
245
- <!--"<th>用气金额</th>"-->
246
- <!--+"<th>用气价格</th>"-->
247
- <!--+"<th>时间</th>"-->
248
- <!--+"<th>所属机构</th>"'-->
249
- <!--:fields='["$index+1","f_username","f_meternumber","f_usertype","f_save_money","f_operate_status","f_close_reason","f_area","f_districtname","f_address","id","yytdepa"]'>-->
250
- <!--</print-table>-->
251
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
252
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
253
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
254
- <!--sqlurl="api/af-revenue/sql/getUserGas"></export-excel>-->
255
- </div>
256
- </criteria>
257
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
258
- <template partial='head'>
259
- <tr>
260
- <th style="text-align:center">
261
- <nobr>序号</nobr>
262
- </th>
263
- <th style="text-align:center">
264
- <nobr>客户编号</nobr>
265
- </th>
266
- <th style="text-align:center">
267
- <nobr>客户名称</nobr>
268
- </th>
269
- <th style="text-align:center">
270
- <nobr>客户地址</nobr>
271
- </th>
272
- <th style="text-align:center">
273
- <nobr>客户类型</nobr>
274
- </th>
275
- <th style="text-align:center">
276
- <nobr>用气性质</nobr>
277
- </th>
278
- <th style="text-align:center">
279
- <nobr>表号</nobr>
280
- </th>
281
- <th style="text-align:center">
282
- <nobr>启用日期</nobr>
283
- </th>
284
-
285
- <th style="text-align:center">
286
- <nobr>应报天数</nobr>
287
- </th>
288
- <th style="text-align:center">
289
- <nobr>实报天数</nobr>
290
- </th>
291
- <th style="text-align:center">
292
- <nobr>最长失联天数</nobr>
293
- </th>
294
- <th style="text-align:center">
295
- <nobr>累计失联天数</nobr>
296
- </th>
297
- <th style="text-align:center">
298
- <nobr>最新失联天数</nobr>
299
- </th>
300
- <th style="text-align:center">
301
- <nobr>气表厂家</nobr>
302
- </th>
303
- <th style="text-align:center" >
304
- <nobr>气表型号</nobr>
305
- </th>
306
- <th style="text-align:center" >
307
- <nobr>用户状态</nobr>
308
- </th>
309
- <th style="text-align:center" >
310
- <nobr>组织机构</nobr>
311
- </th>
312
-
313
- </tr>
314
-
315
- </template>
316
- <template partial='body'>
317
- <td style="text-align:center">{{$index+1}}</td>
318
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
319
- <td style="text-align: center;"><nobr>
320
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
321
- </nobr> </td>
322
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
323
- <td><nobr>{{row.f_address}}</nobr></td>
324
- <td style="text-align:center">{{row.f_user_type}}</td>
325
- <td style="text-align:center">{{row.f_gasproperties}}</td>
326
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
327
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
328
-
329
- <td style="text-align:center">{{row.ybdays}}</td>
330
- <td style="text-align:center">{{row.sbdays}}</td>
331
- <td style="text-align:center">
332
- <nobr>{{row.max_interval_day}}</nobr>
333
- </td>
334
- <td style="text-align:center">
335
- <nobr>{{row.sldays}}</nobr>
336
- </td>
337
- <td style="text-align:center">
338
- <nobr>{{row.new_days}}</nobr>
339
- </td>
340
- <td style="text-align:center">
341
- <nobr>{{row.f_meter_brand}}</nobr>
342
- </td>
343
- <td style="text-align:center">
344
- <nobr>{{row.f_meter_style}}</nobr>
345
- </td>
346
- <td style="text-align:center">
347
- <nobr>{{row.f_user_state}}</nobr>
348
- </td>
349
- <td style="text-align:center">
350
- <nobr>{{row.f_orgname}}</nobr>
351
- </td>
352
-
353
- </template>
354
- </data-grid>
355
- </criteria-paged>
356
- </div>
357
- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">
358
- <lost-contact-echarts :groupname="groupname[0]" :condition = "condition" :startdate="startDate"
359
- :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
360
- </div>
361
- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
362
- <lost-contact-eform :condition="condition"
363
- ></lost-contact-eform>
364
- </div>
365
- </div>
366
-
367
- <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
368
- <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
369
- <!-- </div>-->
370
- <!-- <div class="flex-row" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
371
- <!-- <lost-contact-eform :condition="model.condition" :startdate="startDate"-->
372
- <!-- :enddate="endDate"></lost-contact-eform>-->
373
- <!-- </div>-->
374
- <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
375
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
376
- </div>
377
- </template>
378
-
379
- <script>
380
- import {PagedList} from 'vue-client'
381
- import UserGasEcharts from './UserGasEcharts'
382
- import * as Util from '../../../Util'
383
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
384
- import {HttpResetClass} from 'vue-client'
385
- let readySomething = async function (self) {
386
-
387
- await self.$MagLoadParams.loadParam()
388
- self.initParams()
389
- let year = new Date().getFullYear()
390
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
391
- // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
392
- self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
393
- self.$refs.paged.$refs.cri.model.f_user_state='正常'
394
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
395
- }
396
- export default {
397
- title: '失联分析',
398
- props: ['data'],
399
- components: {UserGasEcharts},
400
- data() {
401
- return {
402
- model: new PagedList('api/af-revenue/sql/webmeter_getAllLoseQuery', 20, {
403
- startDate: 'this.model.startDate',
404
- endDate: 'this.model.endDate'
405
- }),
406
- getfield:{
407
- "f_userinfo_code":"客户编号",
408
- "f_user_name":"客户名称",
409
- "f_residential_area":"小区",
410
- "f_address":"客户地址",
411
- "f_user_type":"客户类型",
412
- "f_gasproperties":"用气性质",
413
- "f_meternumber":"表号",
414
- "f_startuse_date":"启用日期",
415
- "ybdays":"应报天数",
416
- "sbdays":"实报天数",
417
- "max_interval_day":"最长失联天数",
418
- "sldays":"累计失联天数",
419
- "new_days":"最新失联天数",
420
- "f_meter_brand":"气表厂家",
421
- "f_orgname":"组织机构"},
422
- reportStr: null,
423
- show: false,
424
- showdetail:false,
425
- rowdata:{},
426
- other: [],
427
- sumsmodel: {},
428
- startDate: '',
429
- endDate: '',
430
- criteriaShow:false,
431
- outlets: [],
432
- depresid: [],
433
- queryData: {
434
- f_orgid: [],
435
- f_depid: [],
436
- f_operatorid: [],
437
- f_payment: []
438
- },
439
- gasproperties:[{label: '全部', value: ''}],
440
- operator: [],
441
- WarningType: [
442
- {label: '全部', value: ''}
443
- ],
444
- Warningstyles: [
445
- {label: '全部', value: ''}
446
- ],
447
- styles:false,
448
- filename: '',
449
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
450
- echarts: false,
451
- orgid:[this.$login.f.orgid],
452
- searchshow: false,
453
- isActiveTotalForm: false,
454
- condition: '1=1',
455
- groupname: ['max_days_type'],
456
- getgroupname: [
457
- {label: '客户类型', value: 'f_user_type'},
458
- {label: '用气性质', value: 'f_gasproperties'},
459
- {label: '分公司', value: 'f_orgname'},
460
- {label: '最长失联天数', value: 'max_days_type'},
461
- {label: '合计失联天数', value: 'all_days_type'}
462
- ],
463
- org:[this.$login.f.orgid]
464
-
465
- }
466
- },
467
- ready() {
468
- readySomething(this)
469
- this.getMeterTypeAndBrand('f_meter_brand', '1=1')
470
- },
471
- methods: {
472
- getotherfooter() {
473
- this.other = [];
474
-
475
- let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
476
-
477
-
478
- let secondLine = [
479
- `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
480
- `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
481
- ];
482
-
483
- this.other.push(firstLine);
484
- this.other.push(secondLine);
485
-
486
- console.log('Header Data:', this.other);
487
- },
488
- getMeterType() {
489
- this.Warningstyle = [{label: '全部', value: ''}]
490
- this.styles = false
491
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
492
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
493
- },
494
- getMeterTypeAndBrand(groupname, condition) {
495
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
496
- let self = this
497
- let load = new HttpResetClass()
498
- load.load('POST', 'api/af-revenue/sql/getMeterStyleAndBrand1', {
499
- data: {
500
- condition: condition,
501
- groupname: groupname
502
- }
503
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
504
- for (let i = 0; i < res.data.length; i++) {
505
- if (groupname == 'f_meter_brand') {
506
- let dr = {}
507
- dr.label = res.data[i].f_meter_brand
508
- dr.value = res.data[i].f_meter_brand
509
- //气表品牌
510
- // self.WarningType.push(dr)
511
- } else if (groupname == 'f_meter_style') {
512
- self.Warningstyle= [
513
- {label: '全部', value: ''}
514
- ],
515
- self.$refs.paged.$refs.cri.model.f_meter_style=''
516
- let dr = {}
517
- dr.label = res.data[i].f_meter_style
518
- dr.value = res.data[i].f_meter_style
519
- //气表类型
520
- self.Warningstyle.push(dr)
521
- }
522
- }
523
- if (self.Warningstyle.length > 1) {
524
- self.showMeterStyle()
525
- }
526
- })
527
-
528
- },
529
- showMeterStyle() {
530
- this.styles = true
531
- },
532
- userTypeChange () {
533
- this.gasproperties=[{label: '全部', value: ''}]
534
- if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
535
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
536
-
537
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
538
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
539
- // this.gasproperties.push({label: '全部', value: ''})
540
- }
541
- else{
542
- this.gasproperties =[{label: '全部', value: ''}]
543
- }
544
- },
545
- hidden(){
546
- this.criteriaShow = !this.criteriaShow
547
- },
548
- clickshow() {
549
- this.searchshow = !this.searchshow
550
- },
551
- showmsg(obj){
552
- this.rowdata=obj
553
- this.showdetail = true
554
- },
555
- cancel() {
556
- this.showdetail = false
557
- },
558
- initParams () {
559
- let arr = []
560
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
561
- let temp = {}
562
- if(item.value.f_meter_type==='物联网表'){
563
- temp.label = item.label
564
- temp.value = item.value.f_meter_brand
565
- arr.push(temp )
566
- }
567
-
568
- })
569
- this.WarningType = [{label: '全部', value: ''}, ...arr]
570
-
571
- },
572
- search(args) {
573
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
574
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
575
- if (this.endDate == '' || this.startDate == '') {
576
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
577
- }
578
- this.condition = args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
579
- console.log( args.model);
580
- this.model.search(args.condition, args.model)
581
- },
582
- getorg(obj) {
583
- if (obj.resids.length>0) {
584
- this.depresid = obj.resids
585
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
586
- }else
587
- {
588
- this.depresid = obj.resids
589
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
590
- }
591
- },
592
- getdep(obj, val) {
593
- this.orgCondtionStr = ""
594
-
595
- this.depname = val[0]
596
- this.userresid = obj
597
- this.queryData.f_depid = obj
598
- console.log(this.queryData.f_depid)
599
-
600
- if (obj.length > 0) {
601
- this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
602
- } else {
603
- this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
604
- }
605
-
606
- if (this.depresid && this.depresid.length > 0) {
607
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
608
- } else {
609
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
610
- }
611
-
612
- console.log(this.orgCondtionStr);
613
- },
614
- // SaveAsFile(str) {
615
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
616
- // if (res === 'confirm') {
617
- // let style = '<style>' +
618
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
619
- // let strHtml = style + document.getElementById(str).innerHTML;
620
- // console.log(strHtml);
621
- // let LODOP = getLodop();
622
- // LODOP.PRINT_INIT('');
623
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
624
- // LODOP.SAVE_TO_FILE('失联分析.xls')
625
- // }
626
- // })
627
- // },
628
- clearmsg() {
629
- this.$refs.paged.$refs.cri.model = {}
630
- },
631
-
632
-
633
- close() {
634
- this.show = false
635
- },
636
- // 显示柱状图
637
- showEcharts() {
638
- this.echarts = true
639
- this.isActiveTotalForm = false
640
- },
641
- notShowTotalForm() {
642
- this.echarts = false
643
- this.isActiveTotalForm = false
644
- },
645
- // 不显示柱状图
646
- notShowEcharts() {
647
- this.echarts = false
648
- this.isActiveTotalForm = false
649
- },
650
- // 显示汇总数据表格
651
- showTotalForm() {
652
- this.echarts = false
653
- this.isActiveTotalForm = true
654
- }
655
- },
656
- watch: {
657
- 'data'(val) {
658
- if (val.f_files_path) {
659
- this.getFileContent(val.f_files_path)
660
- } else {
661
- this.reportStr = null
662
- }
663
- },
664
- sumsmodel:{
665
- handler: function(val) {
666
- this.getotherfooter();
667
- },
668
- deep: true
669
- },
670
- },
671
- computed: {
672
- // usertypes () {
673
- // return this.$appdate.getParams("客户类型")
674
- // },
675
- getCondition() {
676
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
677
- return {
678
- condition: condition ,
679
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
680
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
681
- }
682
-
683
- },
684
- usertypes() {
685
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
686
- },
687
- f_outlets() {
688
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
689
- },
690
- valveStatus() {
691
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
692
- },
693
- getstate() {
694
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
695
- },
696
- userstate() {
697
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
698
- },
699
- addressState() {
700
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('是否通气')]
701
- }
702
- }
703
- }
704
- </script>
705
- <style>
706
- .form-input-group label {
707
- text-align: right;
708
- width: auto;
709
- }
710
-
711
- .mystyle {
712
- float: right;
713
- padding-right: 10%;
714
- }
715
-
716
- .mystyle1 {
717
- padding-top: 10px;
718
-
719
- }
720
-
721
- .mystyle2 {
722
- width: 100%;
723
- height: 35px;
724
- /*background: #00A3F0;*/
725
- padding-left: 15px;
726
- float: left;
727
- }
728
-
729
- .datapanel {
730
- color: #333;
731
- background-color: white;
732
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
733
- padding: 10px 30px 10px 30px;
734
- border-radius: 15px;
735
- }
736
- </style>
1
+ <template>
2
+ <div class="flex-row" v-show="!showdetail">
3
+ <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <!--<div class="form-group">-->
9
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
+ <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
+ <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
+ <!--</div>-->
13
+
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
+ v-model="model.f_userinfo_code" placeholder='客户编号'
18
+ condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
+ >
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
+ v-model="model.f_user_name" placeholder='客户名称'
25
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
+ >
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户地址</label>
30
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
+ placeholder='地址'
32
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
+ >
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
+ v-model="model.f_meternumber" placeholder='表号'
39
+ condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
+ >
41
+ </div>
42
+ <div style="float:right">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="clear">清空</button>
45
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
46
+ :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
47
+ :header="$parent.$parent.other"
48
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getAllLoseQuery" template-name='失联分析'
49
+ :choose-col="true"></export-excel>
50
+ <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
+ <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
+ <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
53
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
+ <right-tree @re-res="$parent.$parent.getorg" width="60%"
60
+ :initresid='$parent.$parent.org'></right-tree>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门</label>
64
+ <res-select id="dep" restype='department' style="width: 60%"
65
+ is-mul="false"
66
+ @res-select="$parent.$parent.getdep"
67
+ :parentresid="$parent.$parent.depresid"
68
+ :initresid='$parent.$parent.depid' >
69
+ </res-select>
70
+
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">客户类型</label>
74
+ <v-select style="width:60%" id="f_user_type"
75
+ v-model="model.f_user_type"
76
+ placeholder='客户类型'
77
+ :value.sync="model.f_user_type"
78
+ @change="$parent.$parent.userTypeChange()"
79
+ :options='$parent.$parent.usertypes'
80
+ condition="f_user_type = '{}'"
81
+ close-on-select>
82
+ </v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">用气性质</label>
86
+ <v-select style="width:60%" id="f_gasproperties"
87
+ v-model="model.f_gasproperties"
88
+ placeholder='用气性质'
89
+ :value.sync="model.f_gasproperties"
90
+ :options='$parent.$parent.gasproperties'
91
+ condition="f_gasproperties = '{}'"
92
+ close-on-select>
93
+ </v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">气表品牌</label>
97
+ <v-select
98
+ placeholder='气表品牌'
99
+ :value.sync="model.f_meter_brand"
100
+ v-model="model.f_meter_brand"
101
+ :options='$parent.$parent.WarningType'
102
+ @change="$parent.$parent.getMeterType"
103
+ close-on-select
104
+ condition="f_meter_brand='{}'">
105
+ </v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group" >
108
+ <label class="font_normal_body">气表型号</label>
109
+ <v-select v-if="$parent.$parent.styles"
110
+ placeholder='气表型号'
111
+ :value.sync="model.f_meter_style"
112
+ v-model="model.f_meter_style"
113
+ :options='$parent.$parent.Warningstyle'
114
+ close-on-select
115
+ condition="f_meter_style='{}'">
116
+ </v-select>
117
+ <v-select v-if="!$parent.$parent.styles"
118
+ placeholder='气表型号'
119
+ :value.sync="model.f_meter_style"
120
+ v-model="model.f_meter_style"
121
+ :options='$parent.$parent.Warningstyles'
122
+ close-on-select
123
+ condition="f_meter_style='{}'">
124
+ </v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">用户状态</label>
128
+ <v-select
129
+ placeholder='用户状态'
130
+ value-single
131
+ style="width:60%"
132
+ :value.sync="model.f_user_state"
133
+ v-model="model.f_user_state"
134
+ :options='$parent.$parent.userstate'
135
+ close-on-select condition="f_user_state ='{}'">
136
+ </v-select>
137
+ </div>
138
+ <!--<div class="col-sm-2 form-group">-->
139
+ <!--<label class="font_normal_body">最新状态</label>-->
140
+ <!-- <v-select style="width:60%" id="f_state"-->
141
+ <!--v-model="model.f_state"-->
142
+ <!--placeholder='最新状态'-->
143
+ <!--:value.sync="model.f_state"-->
144
+ <!--:options='$parent.$parent.getstate'-->
145
+ <!--condition="f_state = '{}'"-->
146
+ <!--close-on-select>-->
147
+ <!--</v-select>-->
148
+ <!--</div>-->
149
+ <div class="col-sm-2 form-group">
150
+ <label class="font_normal_body">开始时间</label>
151
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
152
+ v-model="model.startDate"
153
+ :value.sync="model.startDate"
154
+ :disabled-days-of-Week="[]"
155
+ :format="'yyyy-MM-dd HH:mm:ss'"
156
+
157
+ :show-reset-button="reset">
158
+ </datepicker>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body">结束时间</label>
162
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
163
+ v-model="model.endDate"
164
+ :value.sync="model.endDate"
165
+ :disabled-days-of-Week="[]"
166
+ :format="'yyyy-MM-dd HH:mm:ss'"
167
+
168
+ :show-reset-button="reset">
169
+ </datepicker>
170
+ </div>
171
+
172
+
173
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
174
+ <label class="font_normal_body">最长失联</label>
175
+ <div class="row">
176
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
177
+ condition="max_interval_day >= {} " placeholder="">
178
+ <label class="font_normal_body"> &nbsp;≤ x ≤ </label>
179
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
180
+ condition="max_interval_day <= {} " placeholder="">
181
+ </div>
182
+ </div>
183
+
184
+
185
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
186
+ <label class="font_normal_body">合计失联</label>
187
+ <div class="row">
188
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
189
+ condition="SLdays >= {} " placeholder="">
190
+ <label class="font_normal_body">&nbsp; ≤ x ≤ </label>
191
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
192
+ condition="SLdays <= {} " placeholder="">
193
+ </div>
194
+ </div>
195
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
196
+ <label class="font_normal_body">最新失联</label>
197
+ <div class="row">
198
+ <input type="text" style="width:27%" class="input_search" v-model="model.new_days1"
199
+ condition="new_days >= {} " placeholder="">
200
+ <label class="font_normal_body">&nbsp; ≤ x ≤ </label>
201
+ <input type="text" style="width:27%" class="input_search" v-model="model.new_days2"
202
+ condition="new_days <= {} " placeholder="">
203
+ </div>
204
+ </div>
205
+ <div class="col-sm-2 form-group">
206
+ <label class="font_normal_body">是否通气</label>
207
+ <v-select
208
+ placeholder='是否通气'
209
+ style="width:60%"
210
+ :value.sync="model.f_address_state"
211
+ v-model="model.f_address_state"
212
+ :options='$parent.$parent.addressState'
213
+ close-on-select condition="f_address_state = '{}'">
214
+ </v-select>
215
+ </div>
216
+
217
+ <!--<div class="col-sm-2 form-group">-->
218
+ <!--<label class="font_normal_body">最新失联</label>-->
219
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
220
+ <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
221
+ <!--&gt;-->
222
+ <!--</div>-->
223
+ <!--<div class="col-sm-2 form-group">-->
224
+ <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
225
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
226
+ <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
227
+ <!--&gt;-->
228
+ <!--</div>-->
229
+ </div>
230
+
231
+
232
+
233
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
234
+ <!--:thead='"<th>序号</th>\n"+-->
235
+ <!--"<th>档案编号</th>" +-->
236
+ <!--" <th>档案标识</th>"+-->
237
+ <!--"<th>客户名称</th>"+-->
238
+ <!--"<th>表号</th"+-->
239
+ <!--"<th>表具类型</th>"+-->
240
+ <!--"<th>客户类型</th>"+-->
241
+ <!--"<th>区域</th>"+-->
242
+ <!--"<th>小区</th>"+-->
243
+ <!--"<th>地址</th>"+-->
244
+ <!--"<th>用气气量</th>"+-->
245
+ <!--"<th>用气金额</th>"-->
246
+ <!--+"<th>用气价格</th>"-->
247
+ <!--+"<th>时间</th>"-->
248
+ <!--+"<th>所属机构</th>"'-->
249
+ <!--:fields='["$index+1","f_username","f_meternumber","f_usertype","f_save_money","f_operate_status","f_close_reason","f_area","f_districtname","f_address","id","yytdepa"]'>-->
250
+ <!--</print-table>-->
251
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
252
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
253
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
254
+ <!--sqlurl="api/af-revenue/sql/getUserGas"></export-excel>-->
255
+ </div>
256
+ </criteria>
257
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
258
+ <template partial='head'>
259
+ <tr>
260
+ <th style="text-align:center">
261
+ <nobr>序号</nobr>
262
+ </th>
263
+ <th style="text-align:center">
264
+ <nobr>客户编号</nobr>
265
+ </th>
266
+ <th style="text-align:center">
267
+ <nobr>客户名称</nobr>
268
+ </th>
269
+ <th style="text-align:center">
270
+ <nobr>客户地址</nobr>
271
+ </th>
272
+ <th style="text-align:center">
273
+ <nobr>客户类型</nobr>
274
+ </th>
275
+ <th style="text-align:center">
276
+ <nobr>用气性质</nobr>
277
+ </th>
278
+ <th style="text-align:center">
279
+ <nobr>表号</nobr>
280
+ </th>
281
+ <th style="text-align:center">
282
+ <nobr>启用日期</nobr>
283
+ </th>
284
+
285
+ <th style="text-align:center">
286
+ <nobr>应报天数</nobr>
287
+ </th>
288
+ <th style="text-align:center">
289
+ <nobr>实报天数</nobr>
290
+ </th>
291
+ <th style="text-align:center">
292
+ <nobr>最长失联天数</nobr>
293
+ </th>
294
+ <th style="text-align:center">
295
+ <nobr>累计失联天数</nobr>
296
+ </th>
297
+ <th style="text-align:center">
298
+ <nobr>最新失联天数</nobr>
299
+ </th>
300
+ <th style="text-align:center">
301
+ <nobr>气表厂家</nobr>
302
+ </th>
303
+ <th style="text-align:center" >
304
+ <nobr>气表型号</nobr>
305
+ </th>
306
+ <th style="text-align:center" >
307
+ <nobr>用户状态</nobr>
308
+ </th>
309
+ <th style="text-align:center" >
310
+ <nobr>组织机构</nobr>
311
+ </th>
312
+ <th style="text-align:center" >
313
+ <nobr>部门</nobr>
314
+ </th>
315
+
316
+ </tr>
317
+
318
+ </template>
319
+ <template partial='body'>
320
+ <td style="text-align:center">{{$index+1}}</td>
321
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
322
+ <td style="text-align: center;"><nobr>
323
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
324
+ </nobr> </td>
325
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
326
+ <td><nobr>{{row.f_address}}</nobr></td>
327
+ <td style="text-align:center">{{row.f_user_type}}</td>
328
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
329
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
330
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
331
+
332
+ <td style="text-align:center">{{row.ybdays}}</td>
333
+ <td style="text-align:center">{{row.sbdays}}</td>
334
+ <td style="text-align:center">
335
+ <nobr>{{row.max_interval_day}}</nobr>
336
+ </td>
337
+ <td style="text-align:center">
338
+ <nobr>{{row.sldays}}</nobr>
339
+ </td>
340
+ <td style="text-align:center">
341
+ <nobr>{{row.new_days}}</nobr>
342
+ </td>
343
+ <td style="text-align:center">
344
+ <nobr>{{row.f_meter_brand}}</nobr>
345
+ </td>
346
+ <td style="text-align:center">
347
+ <nobr>{{row.f_meter_style}}</nobr>
348
+ </td>
349
+ <td style="text-align:center">
350
+ <nobr>{{row.f_user_state}}</nobr>
351
+ </td>
352
+ <td style="text-align:center">
353
+ <nobr>{{row.f_orgname}}</nobr>
354
+ </td>
355
+ <td style="text-align:center">
356
+ <nobr>{{row.f_depname}}</nobr>
357
+ </td>
358
+
359
+ </template>
360
+ </data-grid>
361
+ </criteria-paged>
362
+ </div>
363
+ <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">
364
+ <lost-contact-echarts :groupname="groupname[0]" :condition = "condition" :startdate="startDate"
365
+ :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
366
+ </div>
367
+ <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
368
+ <lost-contact-eform :condition="condition"
369
+ ></lost-contact-eform>
370
+ </div>
371
+ </div>
372
+
373
+ <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
374
+ <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
375
+ <!-- </div>-->
376
+ <!-- <div class="flex-row" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
377
+ <!-- <lost-contact-eform :condition="model.condition" :startdate="startDate"-->
378
+ <!-- :enddate="endDate"></lost-contact-eform>-->
379
+ <!-- </div>-->
380
+ <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
381
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
382
+ </div>
383
+ </template>
384
+
385
+ <script>
386
+ import {PagedList} from 'vue-client'
387
+ import UserGasEcharts from './UserGasEcharts'
388
+ import * as Util from '../../../Util'
389
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
390
+ import {HttpResetClass} from 'vue-client'
391
+ let readySomething = async function (self) {
392
+
393
+ await self.$MagLoadParams.loadParam()
394
+ self.initParams()
395
+ let year = new Date().getFullYear()
396
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
397
+ // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
398
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
399
+ self.$refs.paged.$refs.cri.model.f_user_state='正常'
400
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
401
+ }
402
+ export default {
403
+ title: '失联分析',
404
+ props: ['data'],
405
+ components: {UserGasEcharts},
406
+ data() {
407
+ return {
408
+ model: new PagedList('api/af-revenue/sql/webmeter_getAllLoseQuery', 20, {
409
+ startDate: 'this.model.startDate',
410
+ endDate: 'this.model.endDate'
411
+ }),
412
+ getfield:{
413
+ "f_userinfo_code":"客户编号",
414
+ "f_user_name":"客户名称",
415
+ "f_residential_area":"小区",
416
+ "f_address":"客户地址",
417
+ "f_user_type":"客户类型",
418
+ "f_gasproperties":"用气性质",
419
+ "f_meternumber":"表号",
420
+ "f_startuse_date":"启用日期",
421
+ "ybdays":"应报天数",
422
+ "sbdays":"实报天数",
423
+ "max_interval_day":"最长失联天数",
424
+ "sldays":"累计失联天数",
425
+ "new_days":"最新失联天数",
426
+ "f_meter_brand":"气表厂家",
427
+ "f_orgname":"组织机构",
428
+ "f_depname":"部门"},
429
+ reportStr: null,
430
+ show: false,
431
+ showdetail:false,
432
+ rowdata:{},
433
+ other: [],
434
+ sumsmodel: {},
435
+ startDate: '',
436
+ endDate: '',
437
+ criteriaShow:false,
438
+ outlets: [],
439
+ depresid: [],
440
+ queryData: {
441
+ f_orgid: [],
442
+ f_depid: [],
443
+ f_operatorid: [],
444
+ f_payment: []
445
+ },
446
+ gasproperties:[{label: '全部', value: ''}],
447
+ operator: [],
448
+ WarningType: [
449
+ {label: '全部', value: ''}
450
+ ],
451
+ Warningstyles: [
452
+ {label: '全部', value: ''}
453
+ ],
454
+ styles:false,
455
+ filename: '',
456
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
457
+ echarts: false,
458
+ orgid:[this.$login.f.orgid],
459
+ searchshow: false,
460
+ isActiveTotalForm: false,
461
+ condition: '1=1',
462
+ groupname: ['max_days_type'],
463
+ getgroupname: [
464
+ {label: '客户类型', value: 'f_user_type'},
465
+ {label: '用气性质', value: 'f_gasproperties'},
466
+ {label: '分公司', value: 'f_orgname'},
467
+ {label: '最长失联天数', value: 'max_days_type'},
468
+ {label: '合计失联天数', value: 'all_days_type'}
469
+ ],
470
+ org:[this.$login.f.orgid]
471
+
472
+ }
473
+ },
474
+ ready() {
475
+ readySomething(this)
476
+ this.getMeterTypeAndBrand('f_meter_brand', '1=1')
477
+ },
478
+ methods: {
479
+ getotherfooter() {
480
+ this.other = [];
481
+
482
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
483
+
484
+
485
+ let secondLine = [
486
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
487
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
488
+ ];
489
+
490
+ this.other.push(firstLine);
491
+ this.other.push(secondLine);
492
+
493
+ console.log('Header Data:', this.other);
494
+ },
495
+ getMeterType() {
496
+ this.Warningstyle = [{label: '全部', value: ''}]
497
+ this.styles = false
498
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
499
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
500
+ },
501
+ getMeterTypeAndBrand(groupname, condition) {
502
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
503
+ let self = this
504
+ let load = new HttpResetClass()
505
+ load.load('POST', 'api/af-revenue/sql/getMeterStyleAndBrand1', {
506
+ data: {
507
+ condition: condition,
508
+ groupname: groupname
509
+ }
510
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
511
+ for (let i = 0; i < res.data.length; i++) {
512
+ if (groupname == 'f_meter_brand') {
513
+ let dr = {}
514
+ dr.label = res.data[i].f_meter_brand
515
+ dr.value = res.data[i].f_meter_brand
516
+ //气表品牌
517
+ // self.WarningType.push(dr)
518
+ } else if (groupname == 'f_meter_style') {
519
+ self.Warningstyle= [
520
+ {label: '全部', value: ''}
521
+ ],
522
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
523
+ let dr = {}
524
+ dr.label = res.data[i].f_meter_style
525
+ dr.value = res.data[i].f_meter_style
526
+ //气表类型
527
+ self.Warningstyle.push(dr)
528
+ }
529
+ }
530
+ if (self.Warningstyle.length > 1) {
531
+ self.showMeterStyle()
532
+ }
533
+ })
534
+
535
+ },
536
+ showMeterStyle() {
537
+ this.styles = true
538
+ },
539
+ userTypeChange () {
540
+ this.gasproperties=[{label: '全部', value: ''}]
541
+ if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
542
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
543
+
544
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
545
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
546
+ // this.gasproperties.push({label: '全部', value: ''})
547
+ }
548
+ else{
549
+ this.gasproperties =[{label: '全部', value: ''}]
550
+ }
551
+ },
552
+ hidden(){
553
+ this.criteriaShow = !this.criteriaShow
554
+ },
555
+ clickshow() {
556
+ this.searchshow = !this.searchshow
557
+ },
558
+ showmsg(obj){
559
+ this.rowdata=obj
560
+ this.showdetail = true
561
+ },
562
+ cancel() {
563
+ this.showdetail = false
564
+ },
565
+ initParams () {
566
+ let arr = []
567
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
568
+ let temp = {}
569
+ if(item.value.f_meter_type==='物联网表'){
570
+ temp.label = item.label
571
+ temp.value = item.value.f_meter_brand
572
+ arr.push(temp )
573
+ }
574
+
575
+ })
576
+ this.WarningType = [{label: '全部', value: ''}, ...arr]
577
+
578
+ },
579
+ search(args) {
580
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
581
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
582
+ if (this.endDate == '' || this.startDate == '') {
583
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
584
+ }
585
+ this.condition = args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
586
+ console.log( args.model);
587
+ this.model.search(args.condition, args.model)
588
+ },
589
+ getorg(obj) {
590
+ if (obj.resids.length>0) {
591
+ this.depresid = obj.resids
592
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
593
+ }else
594
+ {
595
+ this.depresid = obj.resids
596
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
597
+ }
598
+ },
599
+ getdep(obj, val) {
600
+ this.orgCondtionStr = ""
601
+
602
+ this.depname = val[0]
603
+ this.userresid = obj
604
+ this.queryData.f_depid = obj
605
+ console.log(this.queryData.f_depid)
606
+ if (obj.length > 0) {
607
+ this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
608
+ }
609
+ if (this.depresid && this.depresid.length > 0) {
610
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
611
+ } else {
612
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
613
+ }
614
+
615
+ console.log(this.orgCondtionStr);
616
+ },
617
+ // SaveAsFile(str) {
618
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
619
+ // if (res === 'confirm') {
620
+ // let style = '<style>' +
621
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
622
+ // let strHtml = style + document.getElementById(str).innerHTML;
623
+ // console.log(strHtml);
624
+ // let LODOP = getLodop();
625
+ // LODOP.PRINT_INIT('');
626
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
627
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
628
+ // }
629
+ // })
630
+ // },
631
+ clearmsg() {
632
+ this.$refs.paged.$refs.cri.model = {}
633
+ },
634
+
635
+
636
+ close() {
637
+ this.show = false
638
+ },
639
+ // 显示柱状图
640
+ showEcharts() {
641
+ this.echarts = true
642
+ this.isActiveTotalForm = false
643
+ },
644
+ notShowTotalForm() {
645
+ this.echarts = false
646
+ this.isActiveTotalForm = false
647
+ },
648
+ // 不显示柱状图
649
+ notShowEcharts() {
650
+ this.echarts = false
651
+ this.isActiveTotalForm = false
652
+ },
653
+ // 显示汇总数据表格
654
+ showTotalForm() {
655
+ this.echarts = false
656
+ this.isActiveTotalForm = true
657
+ }
658
+ },
659
+ watch: {
660
+ 'data'(val) {
661
+ if (val.f_files_path) {
662
+ this.getFileContent(val.f_files_path)
663
+ } else {
664
+ this.reportStr = null
665
+ }
666
+ },
667
+ sumsmodel:{
668
+ handler: function(val) {
669
+ this.getotherfooter();
670
+ },
671
+ deep: true
672
+ },
673
+ },
674
+ computed: {
675
+ // usertypes () {
676
+ // return this.$appdate.getParams("客户类型")
677
+ // },
678
+ getCondition() {
679
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
680
+ return {
681
+ condition: condition ,
682
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
683
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
684
+ }
685
+
686
+ },
687
+ usertypes() {
688
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
689
+ },
690
+ f_outlets() {
691
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
692
+ },
693
+ valveStatus() {
694
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
695
+ },
696
+ getstate() {
697
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
698
+ },
699
+ userstate() {
700
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
701
+ },
702
+ addressState() {
703
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('是否通气')]
704
+ }
705
+ }
706
+ }
707
+ </script>
708
+ <style>
709
+ .form-input-group label {
710
+ text-align: right;
711
+ width: auto;
712
+ }
713
+
714
+ .mystyle {
715
+ float: right;
716
+ padding-right: 10%;
717
+ }
718
+
719
+ .mystyle1 {
720
+ padding-top: 10px;
721
+
722
+ }
723
+
724
+ .mystyle2 {
725
+ width: 100%;
726
+ height: 35px;
727
+ /*background: #00A3F0;*/
728
+ padding-left: 15px;
729
+ float: left;
730
+ }
731
+
732
+ .datapanel {
733
+ color: #333;
734
+ background-color: white;
735
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
736
+ padding: 10px 30px 10px 30px;
737
+ border-radius: 15px;
738
+ }
739
+ </style>