manage-client 3.3.217 → 3.3.219

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 (185) 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 +1 -1
  9. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  10. package/src/components/SellReport/ManageSellType.vue +267 -267
  11. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  12. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  13. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  14. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  15. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  16. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  17. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  18. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  19. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  20. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  21. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  22. package/src/components/sale/businessquery/CollectManage.vue +6 -6
  23. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  24. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  25. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  26. package/src/components/sale/businessquery/FMYGasQuery.vue +813 -813
  27. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  28. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  29. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  30. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  31. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  32. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  33. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  34. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  35. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  36. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  37. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  38. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  39. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  40. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  41. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  42. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  43. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  44. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  45. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  46. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  47. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  48. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  49. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  50. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  51. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  52. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  53. package/src/components/sale/businessquery/usergas.vue +315 -315
  54. package/src/components/sale/config/exportConfig.js +2761 -2761
  55. package/src/components/sale/config/tableConfig.js +59 -59
  56. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  57. package/src/components/sale/filesquery/RecordInfoQuery.vue +1443 -1443
  58. package/src/components/sale/filesquery/UserQuery.vue +977 -977
  59. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  60. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +695 -695
  61. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +646 -646
  62. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  63. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  64. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  65. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  66. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  67. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +552 -552
  68. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  69. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  70. package/src/components/webmeter/report/ReportList.vue +453 -453
  71. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  72. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  73. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +12 -10
  74. package/src/filiale/ancheng/exportConfig.js +120 -120
  75. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  76. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  77. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  78. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  79. package/src/filiale/bayan/config/tableConfig.js +59 -59
  80. package/src/filiale/bayan/sale.js +8 -8
  81. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  82. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  83. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  84. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  85. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  86. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  87. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  88. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  89. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  90. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  91. package/src/filiale/bayan/webmeterManage.js +26 -26
  92. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  93. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  94. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  95. package/src/filiale/dingcheng/sale.js +9 -9
  96. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  97. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  98. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  99. package/src/filiale/hantou/config/tableConfig.js +54 -54
  100. package/src/filiale/hantou/sale.js +8 -8
  101. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  102. package/src/filiale/jingyang/RechargeList.vue +346 -346
  103. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  104. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  105. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  106. package/src/filiale/jingyang/sale.js +8 -8
  107. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  108. package/src/filiale/kelai/GasStatistics.vue +561 -561
  109. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  110. package/src/filiale/kelai/NewGasStatistics.vue +542 -542
  111. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  112. package/src/filiale/kelai/reportManage.js +13 -13
  113. package/src/filiale/kelai/sale.js +17 -17
  114. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  115. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  116. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  117. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  118. package/src/filiale/macheng/config/exportConfig.js +79 -79
  119. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  120. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  121. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  122. package/src/filiale/meihekou/CollectManage.vue +152 -152
  123. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  124. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  125. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  126. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  127. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  128. package/src/filiale/meihekou/sale.js +39 -39
  129. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  130. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  131. package/src/filiale/qianneng/RecordInfoQuery.vue +1 -1
  132. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  133. package/src/filiale/qianneng/exportConfig.js +232 -232
  134. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  135. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  136. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  137. package/src/filiale/rizhao/sale.js +13 -13
  138. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  139. package/src/filiale/shangluo/sale.js +17 -17
  140. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  141. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  142. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  143. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  144. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  145. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  146. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  147. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  148. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  149. package/src/filiale/taizhoukesi/sale.js +11 -11
  150. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  151. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  152. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  153. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  154. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  155. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  156. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  157. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  158. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  159. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  160. package/src/filiale/xinjiangdexin/sale.js +7 -7
  161. package/src/filiale/yangchun/ChangeMeterQuery.vue +716 -716
  162. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  163. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  164. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  165. package/src/filiale/yangchun/RecordInfoQuery.vue +1477 -1477
  166. package/src/filiale/yangchun/UserQuery.vue +980 -980
  167. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  168. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  169. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  170. package/src/filiale/yangchun/reportManage.js +6 -6
  171. package/src/filiale/yangchun/sale.js +20 -20
  172. package/src/filiale/yangchun/webmeterManage.js +5 -5
  173. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  174. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  175. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  176. package/src/filiale/yuncheng/MeterQuery.vue +995 -995
  177. package/src/filiale/yuncheng/config/exportConfig.js +2674 -2674
  178. package/src/filiale/yuncheng/sale.js +23 -23
  179. package/src/filiale/zhongyi/GasStatistics.vue +522 -522
  180. package/src/filiale/zhongyi/exportConfig.js +2554 -2554
  181. package/src/main.js +68 -68
  182. package/src/plugins/LodopFuncs.js +159 -159
  183. package/src/reportManage.js +773 -773
  184. package/src/saleManage.js +689 -689
  185. package/src/webmeterManage.js +130 -130
@@ -1,719 +1,719 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div :class="{'basic-main':((!isdetail) && (!usershow)),'binary-left':isdetail||usershow}" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="抄表开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="抄表结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <!-- <div class="col-sm-2 form-group">-->
30
- <!-- <label class="font_normal_body">组织机构</label>-->
31
- <!--&lt;!&ndash; <right-tree @re-res="$parent.$parent.getRes"></right-tree>&ndash;&gt;-->
32
- <!-- -->
33
- <!-- </div>-->
34
- <div class="span" style="float:right;">
35
- <!--<read-idcard></read-idcard>-->
36
- <button class="button_search button_spacing" @click="search()">查询</button>
37
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
38
-
39
- <export-excel :data="$parent.$parent.getCondition"
40
- :field="$parent.$parent.getfield"
41
- :footer="$parent.$parent.footer"
42
- :header="$parent.$parent.other"
43
- sqlurl="api/af-revenue/logic/openapi/exportfile"
44
- sql-name="handPeopleQuery"
45
- template-name='抄表员统计查询导出'
46
- :choose-col="true"></export-excel>
47
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
48
- :defaultfield="$parent.$parent.defaultfield"
49
- titletable="抄表员统计查询导出"
50
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
51
- <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>
52
-
53
- </div>
54
- </div>
55
- <div class="row" v-show="$parent.$parent.criteriaShow">
56
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
57
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
58
- <label class="font_normal_body">小区名称</label>
59
- <v-select :value.sync="model.f_residential_area"
60
- class="select_list select"
61
- enter-push
62
- multiple = "true"
63
- v-model="model.f_residential_area"
64
- style="width: 60%"
65
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
66
- close-on-select>
67
-
68
- </v-select>
69
- </div>
70
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
71
- <label class="font_normal_body">客户类型</label>
72
- <v-select :value.sync="model.f_user_type"
73
- @change="$parent.$parent.userTypeChange()"
74
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
75
- condition="f_user_type = '{}'"
76
- close-on-select></v-select>
77
- </div>
78
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
79
- <label class="font_normal_body">用气性质</label>
80
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
81
- :options='$parent.$parent.gasproperties' placeholder='请选择'
82
- condition="f_gasproperties = '{}'"
83
- close-on-select></v-select>
84
- </div>
85
- <!--<div class="col-sm-2 form-group">-->
86
- <!--<label class="font_normal_body">抄&ensp;表&ensp;员</label>-->
87
- <!--<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'-->
88
- <!--style="width:60%"-->
89
- <!--multiple="true"-->
90
- <!--:options='$parent.$parent.inputtores' placeholder='抄表员'-->
91
- <!--close-on-select-->
92
- <!--v-el:cc></v-select>-->
93
- <!--</div>-->
94
- <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
95
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
96
- <v-select :value.sync="model.f_inputtor"
97
- v-model="model.f_inputtor"
98
- :options='$parent.$parent.inputtores' placeholder='请选择'
99
- multiple = "true"
100
- close-on-select></v-select>
101
- </div>
102
- <!--表册片区-->
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">表册片区</label>
105
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
106
- @change="$parent.$parent.inputtchange"
107
- multiple
108
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
109
- style="width:60%"
110
- close-on-select
111
- condition="f_book_slice_area in {}"></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
115
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
116
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
117
- style="width:60%"
118
- multiple
119
- close-on-select
120
- condition="f_meter_book_num in {}"></v-select>
121
- </div>
122
- <!--<div class="col-sm-2 form-group">-->
123
- <!--<label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
124
- <!--<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"-->
125
- <!--:options='$parent.$parent.meterbooks' placeholder='抄表册'-->
126
- <!--style="width:60%"-->
127
- <!--close-on-select-->
128
- <!--condition="uf.f_meter_book_num = '{}'"></v-select>-->
129
- <!--</div>-->
130
- <!--<div class="col-sm-2 form-group">-->
131
- <!--<label class="font_normal_body">气价类型</label>-->
132
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
133
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
134
- <!--close-on-select v-ref:type>-->
135
- <!--</v-select>-->
136
- <!--</div>-->
137
- <!--<div class="col-sm-2 form-group">-->
138
- <!--<label class="font_normal_body">气价名称</label>-->
139
- <!--<v-select :value.sync="model.f_price_name"-->
140
- <!--v-model="model.f_price_name"-->
141
- <!--:options="$parent.$parent.getPricenames"-->
142
- <!--condition="f_price_name = '{}'"-->
143
- <!--close-on-select></v-select>-->
144
- <!--</div>-->
145
-
146
- <!--<div class="col-sm-2 form-group">-->
147
- <!--<label class="font_normal_body">气表类型</label>-->
148
- <!--<v-select :value.sync="model.f_meter_type" multiple-->
149
- <!--:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"-->
150
- <!--condition="f_meter_type in {}"-->
151
- <!--close-on-select></v-select>-->
152
- <!--</div>-->
153
- <!--<div class="col-sm-2 form-group">-->
154
- <!--<label class="font_normal_body">气表品牌</label>-->
155
- <!--<v-select :value.sync="model.f_meter_brand" multiple-->
156
- <!--v-model="model.f_meter_brand"-->
157
- <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
158
- <!--condition="f_meter_brand in {}"-->
159
- <!--close-on-select></v-select>-->
160
- <!--</div>-->
161
- </div>
162
- </div>
163
- </criteria>
164
-
165
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
166
- <template partial='head'>
167
- <tr>
168
- <th>
169
- <nobr>抄表员</nobr>
170
- </th>
171
- <th>
172
- <nobr>应抄户数</nobr>
173
- </th>
174
- <th>
175
- <nobr>未抄户数</nobr>
176
- </th>
177
- <th>
178
- <nobr>已抄无用量</nobr>
179
- </th>
180
- <th>
181
- <nobr>实抄户数</nobr>
182
- </th>
183
- <th>
184
- <nobr>抄表率</nobr>
185
- </th>
186
- <th>
187
- <nobr>期间抄表气量</nobr>
188
- </th>
189
- <th>
190
- <nobr>期间抄表金额</nobr>
191
- </th>
192
- <th>
193
- <nobr>期间实收气费金额</nobr>
194
- </th>
195
- <th>
196
- <nobr>已收户数</nobr>
197
- </th>
198
- <th>
199
- <nobr>收费率</nobr>
200
- </th>
201
- </tr>
202
- </template>
203
- <template partial='body'>
204
- <td style="text-align: center;">
205
- <nobr>{{row.f_inputtor}}</nobr>
206
- </td>
207
- <td style="text-align:center" v-if="row.f_inputtor!=null"><button @click.stop="$parent.$parent.$parent.operate(row.f_inputtor)" class="btn btn-link">{{row.f_user_number}}</button></td>
208
- <!--<td style="text-align:center" v-if="row.f_inputtor==null">{{row.f_user_number}}</td>-->
209
- <td style="text-align: center;">
210
- <nobr>{{row.f_no_hand}}</nobr>
211
- </td>
212
- <td style="text-align: center;">
213
- <nobr>{{row.f_out_hand}}</nobr>
214
- </td>
215
- <td style="text-align: center;">
216
- <nobr>{{row.f_hand_num}}</nobr>
217
- </td>
218
- <td style="text-align: center;">
219
- <nobr>{{row.f_hand_lv}}</nobr>
220
- </td>
221
- <td style="text-align: center;">
222
- <nobr>{{row.f_oughtamount}}</nobr>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_oughtfee}}</nobr>
226
- </td>
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_debt_money}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_sell_hand}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_sell_lv}}</nobr>
235
- </td>
236
- </template>
237
- <template partial='foot'></template>
238
- </data-grid>
239
- </criteria-paged>
240
- <table class="table-hover">
241
- <tr style="position: relative" class="table-bordered">
242
- <td
243
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
244
- 汇总信息
245
- </td>
246
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
247
- 应抄户数合计:&emsp;{{sumsmodel.f_user_number}}
248
- </td>
249
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
250
- 未抄户数合计:&emsp;{{sumsmodel.f_no_hand}}
251
- </td>
252
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
253
- 已抄无用量合计:&emsp;{{sumsmodel.f_out_hand}}
254
- </td>
255
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
256
- 实抄户数合计:&emsp;{{sumsmodel.f_hand_num}}
257
- </td>
258
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
259
- 期间抄表气量合计:&emsp;{{sumsmodel.f_oughtamount}}
260
- </td>
261
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
262
- 期间抄表金额合计:&emsp;{{sumsmodel.f_oughtfee}}
263
- </td>
264
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
265
- 期间实收气费金额合计:&emsp;{{sumsmodel.f_debt_money}}
266
- </td>
267
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
268
- 已收户数合计:&emsp;{{sumsmodel.f_sell_hand}}
269
- </td>
270
- </tr>
271
- </table>
272
- </div>
273
- <!--<div v-if="show">-->
274
- <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
275
- <!--</div>-->
276
- </div>
277
- <div class="binary-right" v-if="usershow">
278
- <handplan-user :start-date.sync="startd"
279
- :end-date.sync="endd"
280
- :inputtor.sync="selectinputtor" :f_filialeid="f_filialeid" ></handplan-user>
281
- </div>
282
-
283
- </div>
284
- </template>
285
-
286
- <script>
287
- import {HttpResetClass, PagedList} from 'vue-client'
288
- import exportConfig from '../config/exportConfig'
289
-
290
- let readySomething = async function (self) {
291
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
292
- self.$MagGetSaleParam.initinputtor();
293
- self.getinputtores();
294
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
295
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
296
- self.startd = self.$login.toStandardDateString() + ' 00:00:00'
297
- self.endd = self.$login.toStandardDateString() + ' 23:59:59'
298
- // self.$refs.paged.$refs.cri.search()
299
-
300
- await self.$MagLoadParams.loadParam()
301
- self.initParams()
302
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
303
- }
304
- export default {
305
- title: '抄表员统计',
306
- data() {
307
- return {
308
- defaultfield: [],
309
- config: {
310
- defaultPrint: ['f_out_hand', 'f_sell_hand']
311
- },
312
- //f_price_name:[],
313
- other: [],
314
- footer: [],
315
- gasproperties:[],
316
- showinfo: false,
317
- data: {},
318
- show:false,
319
- rowdata:{},
320
- initres: {
321
- org:[this.$login.f.orgid],
322
- dep:[],
323
- user:[]
324
- },
325
- model: new PagedList('api/af-revenue/sql/handPeopleQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
326
- f_user_number: 0,
327
- f_no_hand: 0,
328
- f_out_hand: 0,
329
- f_hand_num :0,
330
- f_oughtamount: 0,
331
- f_oughtfee: 0,
332
- f_debt_money:0,
333
- f_sell_hand:0
334
- }),
335
- criteriaShow: false,
336
- orgCondtionStr: '',
337
- // 下拉框
338
- meterbrands: [],
339
- meterbooks:[{label: '全部',value: ''}],
340
- pricenames: [],
341
- prices: [],
342
- area: [],
343
- //合计数据
344
- defaultfield: [],
345
- //小区
346
- residentialArea: [],
347
- sumsmodel: {},
348
- inputtouPerson: [],
349
- inputtores2: [], // 下发时使用自定义抄表员,
350
- f_filialeid: this.$login.f.f_orgid,
351
- f_orgid: this.$login.f.orgid,
352
- f_depid: this.$login.f.depids,
353
- f_operatorid: this.$login.f.id,
354
- inputtores:[{label: '全部',value: ''}], //抄表员
355
- bookSlice:[{label: '全部',value: ''}], //表册片区
356
- allorgid:[],
357
- isdetail: false,
358
- usershow:false,
359
- selectinputtor:'',
360
- startd:'',
361
- endd:''
362
- }
363
- },
364
- ready() {
365
- this.getaddress()
366
-
367
- readySomething(this).then(() => {
368
- this.$emit('ready')
369
- }).catch((error) => {
370
- this.$emit('error', error)
371
- })
372
- },
373
- methods: {
374
- //表册片区和抄表册关联
375
- async inputtchange(){
376
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
377
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
378
- if((val2.length>0)){
379
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
380
- let aaa = '('
381
- val2.forEach((item) => {
382
- aaa = aaa + `'${item}',`
383
- })
384
- aaa = aaa + `'')`
385
- condition = condition + ` and f_book_slice_area in ${aaa} `
386
- let param={
387
- items:'*',
388
- tablename:'t_meter_book',
389
- condition:condition,
390
- orderitem:'id'
391
- }
392
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
393
- if (getMeterBooks.data) {
394
- if(getMeterBooks.data.length >0){
395
- let rs = [];
396
- getMeterBooks.data.forEach((item)=>{
397
- let temp = {
398
- label:item.f_book_name,
399
- value:item.id
400
- };
401
- rs.push(temp);
402
-
403
- })
404
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
405
- }else{
406
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
407
- this.meterbooks = [{label: '全部',value: ''}];
408
- }
409
- }else{
410
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
411
- }
412
- }else{
413
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
414
- this.meterbooks = [{label: '全部',value: ''}];
415
- this.initmeterbook();
416
- }
417
- },
418
- //显示抄表户数
419
- operate(inputtor){
420
- if(inputtor!= null){
421
- this.selectinputtor = inputtor;
422
- }else{
423
- this.$showAlert('当前抄表员有误','warning',2000)
424
- return;
425
- }
426
- this.isdetail =true;
427
- this.usershow = true;
428
- },
429
- async getinputtores () {
430
- // 获取抄表员
431
- let rs = []
432
- if (this.$login.f.f_gasman.length > 0) {
433
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
434
- let temp = {
435
- label: this.$login.f.f_gasman[i].name,
436
- value: this.$login.f.f_gasman[i].name
437
- }
438
- rs.push(temp)
439
- }
440
- }
441
- this.inputtores = [{label: '全部', value: ''}, ...rs]
442
- },
443
- //初始化片区
444
- async initSlice (val) {
445
- if (val) {
446
- let getAllArea = await this.$resetpost('/rs/search', {
447
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
448
- userid: this.$login.f.id
449
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
450
- let arr = getAllArea.data.filter((res) => {
451
- return res.parentid == val
452
- })
453
- this.bookSlice = []
454
- arr.forEach((res) => {
455
- this.bookSlice.push({label: res.name, value: res.name})
456
- })
457
- }
458
- },
459
- async initmeterbook(orgstr){
460
- if(orgstr == null ){
461
- orgstr = this.f_filialeid;
462
- }
463
- //获取新的抄表册,先去清理所有的抄表册
464
- this.$GetSaleParam.meterbooks = [];
465
- //开始加载新的抄表册
466
- await this.$LoadParams.loadMeterBook(orgstr)
467
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
468
- },
469
- async updateParams() {
470
- await this.$MagLoadParams.loadParam(this.f_filialeid)
471
- this.inputtores = [];
472
- this.inputtores.push({label: "全部", value: ""})
473
- this.initSlice(this.f_filialeid)
474
- if(this.allorgid!=null){
475
- this.allorgid.forEach((res)=>{
476
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
477
- })
478
- }
479
- this.initParams()
480
- },
481
- getotherfooter() {
482
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
483
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
484
- this.other = [];
485
- this.footer = [];
486
- // let exportdata = this.getCondition;
487
- let otherInData = [];
488
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
489
- let footerData = [], exportfield = this.getfield;
490
- footerData.push("合计");
491
- let self = this;
492
- for (var field in self.sumsmodel) {
493
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
494
- }
495
- this.footer.push(footerData);
496
- this.other.push(otherInData);
497
- let date = []
498
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
499
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
500
- this.other.push(date)
501
- },
502
- async getaddress(){
503
- // await self.$LoadParams.loadMeterBook(self.f_filialeid)
504
- // self.loadMeterBooks()
505
- let HttpReset = new HttpResetClass()
506
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
507
- data: {
508
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
509
- }
510
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
511
- let house = [{label: '全部', value: ''}]
512
- for (let row of data.data){
513
- house.push({label: row.f_residential_area, value: row.f_residential_area})
514
- }
515
- this.residentialArea = house
516
- },
517
-
518
-
519
-
520
-
521
- //把数据库查询数据转换为下拉数据
522
- calculate(rows){
523
- let data = []
524
- rows.forEach((row, n) => {
525
- data[n] = {label: row.f_residential_area, value: row.id}
526
- })
527
- return data
528
- },
529
-
530
- search(){
531
- this.$refs.paged.$refs.cri.search()
532
- },
533
- cancel() {
534
- this.show = false
535
- },
536
- showmsg(obj){
537
- this.rowdata=obj
538
- this.show=true
539
- },
540
- userTypeChange () {
541
- this.gasproperties=[]
542
- if(this.$refs.paged.$refs.cri.model !==null) {
543
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
544
-
545
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
546
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
547
- // this.gasproperties.push({label: '全部', value: ''})
548
- }
549
- else{
550
- this.gasproperties =[{label: '全部', value: ''}]
551
- }
552
- },
553
- initParams() {
554
- // 初始化气表品牌
555
- let brandArr = []
556
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
557
- let temp = {}
558
- temp.label = item.label
559
- temp.value = item.value.f_meter_brand
560
- brandArr.push(temp)
561
- })
562
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
563
- //初始化气表价格
564
- this.prices = this.$MagGetSaleParam.getPrices();
565
- },
566
- selfSearch(args) {
567
- if(this.$refs.paged.$refs.cri.model.startDate == '' || this.$refs.paged.$refs.cri.model.endDate == ''){
568
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
569
- return
570
- }
571
- //抄表员查询条件
572
- this.inputtouPerson =this.$refs.paged.$refs.cri.model.f_inputtor
573
- if(this.inputtouPerson.length !== 0){
574
- let str = JSON.stringify(this.inputtouPerson)
575
- str = str.replace(/"/g,`'`)
576
- str = str.replace(/\[/g,``)
577
- str = str.replace(/\]/g,``)
578
- //查询多个抄表员时条件
579
- args.condition += ` and f_inputtor in ( ${str} )`
580
- }
581
- //小区查询条件
582
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
583
- if(this.area.length !== 0){
584
- let str = JSON.stringify(this.area)
585
- str = str.replace(/"/g,`'`)
586
- str = str.replace(/\[/g,``)
587
- str = str.replace(/\]/g,``)
588
- //查询多个小区时条件
589
- args.condition += ` and f_residential_area in ( ${str} )`
590
- }
591
- let f_orgstr = this.orgCondtionStr
592
- args.condition = `${args.condition} ` + f_orgstr
593
- self.startd = args.model.startDate;
594
- self.endd = args.model.endDate;
595
- this.model.search(args.condition, args.model)
596
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
597
- this.isdetail =false;
598
- this.usershow = false;
599
- },
600
- clear() {
601
- //清空部门和人员
602
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
603
- //部门和人员变为全选
604
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
605
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
606
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
607
- this.$refs.paged.$refs.cri.model[key] = []
608
- })
609
-
610
- },
611
- // loadMeterBooks(){
612
- // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
613
- // },
614
- dealmsg(val) {
615
- val.model = this.model.model
616
- this.$dispatch('deal-msg', val)
617
- },
618
- show() {
619
- this.criteriaShow = true
620
- },
621
- hidden() {
622
- this.criteriaShow = !this.criteriaShow
623
- },
624
- // getRes (obj) {
625
- // this.orgname = obj.res[0]
626
- // this.depresid = obj.resids
627
- // this.f_orgid = obj.resids
628
- // },
629
- getRes(obj) {
630
- this.orgCondtionStr = obj
631
- },
632
- },
633
- events:{
634
- 'getidcard'(IdCard){
635
- // console.log(param)
636
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
637
- }
638
- },
639
- watch: {
640
- 'model'(val) {
641
- },
642
- 'orgCondtionStr'(val) {
643
- this.$refs.paged.$refs.cri.model.f_inputtor = []
644
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
645
- let res = val.match(/'(.*?)'/)
646
- console.log('正则提取:',res && res[1])
647
- if (res) {
648
- this.f_filialeid = res[1]
649
- if(res.input !=null){
650
- let resorgid = res.input.substring(res.input.indexOf("'"));
651
- if(resorgid!= null && resorgid!=''){
652
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
653
- // resorgid = resorgid.replaceAll("'","");
654
- resorgid = resorgid.replace(/'/g,"");
655
- this.allorgid = resorgid.split(",")
656
- }
657
- }
658
- this.updateParams()
659
- }
660
- },
661
- sumsmodel: {
662
- handler: function (val) {
663
- this.getotherfooter();
664
- },
665
- deep: true
666
- }
667
- },
668
- computed: {
669
- getPricenames() {
670
- let f_user_type = this.$refs.paged.model.model.f_user_type;
671
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
672
- let pricetype = this.$refs.paged.model.model.pricetype;
673
- if(this.$refs.paged.model.model !==null) {
674
- let rs = []
675
- let priceArr = []
676
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
677
- let params = {
678
- f_user_type: f_user_type[0],
679
- f_gasproperties: f_gasproperties[0],
680
- f_price_type: pricetype[0],
681
- filter: this.f_filialeid,
682
- prices: this.prices
683
- }
684
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
685
- let temp = {}
686
- temp.label = item.label
687
- temp.value = item.value.f_price_name
688
- priceArr.push(temp)
689
- })
690
- rs = [{label: '全部', value: ''}, ...priceArr]
691
- }
692
- if (rs.length === 0) {
693
- this.$refs.paged.model.model.f_price_name = ''
694
- }
695
- return rs
696
- }
697
- },
698
- getCondition() {
699
- return {
700
- startDate: this.$refs.paged.$refs.cri.model.startDate,
701
- endDate: this.$refs.paged.$refs.cri.model.endDate,
702
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
703
- }
704
- },
705
- inputtor() {
706
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
707
- },
708
- getfield() {
709
- return exportConfig.handPeopleConfig
710
- },
711
- pricetypes() {
712
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
713
- },
714
- usertypes() {
715
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
716
- }
717
- }
718
- }
719
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div :class="{'basic-main':((!isdetail) && (!usershow)),'binary-left':isdetail||usershow}" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="抄表开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="抄表结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <!-- <div class="col-sm-2 form-group">-->
30
+ <!-- <label class="font_normal_body">组织机构</label>-->
31
+ <!--&lt;!&ndash; <right-tree @re-res="$parent.$parent.getRes"></right-tree>&ndash;&gt;-->
32
+ <!-- -->
33
+ <!-- </div>-->
34
+ <div class="span" style="float:right;">
35
+ <!--<read-idcard></read-idcard>-->
36
+ <button class="button_search button_spacing" @click="search()">查询</button>
37
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
38
+
39
+ <export-excel :data="$parent.$parent.getCondition"
40
+ :field="$parent.$parent.getfield"
41
+ :footer="$parent.$parent.footer"
42
+ :header="$parent.$parent.other"
43
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
44
+ sql-name="handPeopleQuery"
45
+ template-name='抄表员统计查询导出'
46
+ :choose-col="true"></export-excel>
47
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield"
49
+ titletable="抄表员统计查询导出"
50
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
51
+ <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>
52
+
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
57
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
58
+ <label class="font_normal_body">小区名称</label>
59
+ <v-select :value.sync="model.f_residential_area"
60
+ class="select_list select"
61
+ enter-push
62
+ multiple = "true"
63
+ v-model="model.f_residential_area"
64
+ style="width: 60%"
65
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
66
+ close-on-select>
67
+
68
+ </v-select>
69
+ </div>
70
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
71
+ <label class="font_normal_body">客户类型</label>
72
+ <v-select :value.sync="model.f_user_type"
73
+ @change="$parent.$parent.userTypeChange()"
74
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
75
+ condition="f_user_type = '{}'"
76
+ close-on-select></v-select>
77
+ </div>
78
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
79
+ <label class="font_normal_body">用气性质</label>
80
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
81
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
82
+ condition="f_gasproperties = '{}'"
83
+ close-on-select></v-select>
84
+ </div>
85
+ <!--<div class="col-sm-2 form-group">-->
86
+ <!--<label class="font_normal_body">抄&ensp;表&ensp;员</label>-->
87
+ <!--<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'-->
88
+ <!--style="width:60%"-->
89
+ <!--multiple="true"-->
90
+ <!--:options='$parent.$parent.inputtores' placeholder='抄表员'-->
91
+ <!--close-on-select-->
92
+ <!--v-el:cc></v-select>-->
93
+ <!--</div>-->
94
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.usershow,'col-sm-3 form-group':$parent.$parent.usershow}">
95
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
96
+ <v-select :value.sync="model.f_inputtor"
97
+ v-model="model.f_inputtor"
98
+ :options='$parent.$parent.inputtores' placeholder='请选择'
99
+ multiple = "true"
100
+ close-on-select></v-select>
101
+ </div>
102
+ <!--表册片区-->
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">表册片区</label>
105
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
106
+ @change="$parent.$parent.inputtchange"
107
+ multiple
108
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
109
+ style="width:60%"
110
+ close-on-select
111
+ condition="f_book_slice_area in {}"></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
115
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
116
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
117
+ style="width:60%"
118
+ multiple
119
+ close-on-select
120
+ condition="f_meter_book_num in {}"></v-select>
121
+ </div>
122
+ <!--<div class="col-sm-2 form-group">-->
123
+ <!--<label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
124
+ <!--<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"-->
125
+ <!--:options='$parent.$parent.meterbooks' placeholder='抄表册'-->
126
+ <!--style="width:60%"-->
127
+ <!--close-on-select-->
128
+ <!--condition="uf.f_meter_book_num = '{}'"></v-select>-->
129
+ <!--</div>-->
130
+ <!--<div class="col-sm-2 form-group">-->
131
+ <!--<label class="font_normal_body">气价类型</label>-->
132
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
133
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
134
+ <!--close-on-select v-ref:type>-->
135
+ <!--</v-select>-->
136
+ <!--</div>-->
137
+ <!--<div class="col-sm-2 form-group">-->
138
+ <!--<label class="font_normal_body">气价名称</label>-->
139
+ <!--<v-select :value.sync="model.f_price_name"-->
140
+ <!--v-model="model.f_price_name"-->
141
+ <!--:options="$parent.$parent.getPricenames"-->
142
+ <!--condition="f_price_name = '{}'"-->
143
+ <!--close-on-select></v-select>-->
144
+ <!--</div>-->
145
+
146
+ <!--<div class="col-sm-2 form-group">-->
147
+ <!--<label class="font_normal_body">气表类型</label>-->
148
+ <!--<v-select :value.sync="model.f_meter_type" multiple-->
149
+ <!--:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"-->
150
+ <!--condition="f_meter_type in {}"-->
151
+ <!--close-on-select></v-select>-->
152
+ <!--</div>-->
153
+ <!--<div class="col-sm-2 form-group">-->
154
+ <!--<label class="font_normal_body">气表品牌</label>-->
155
+ <!--<v-select :value.sync="model.f_meter_brand" multiple-->
156
+ <!--v-model="model.f_meter_brand"-->
157
+ <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
158
+ <!--condition="f_meter_brand in {}"-->
159
+ <!--close-on-select></v-select>-->
160
+ <!--</div>-->
161
+ </div>
162
+ </div>
163
+ </criteria>
164
+
165
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
166
+ <template partial='head'>
167
+ <tr>
168
+ <th>
169
+ <nobr>抄表员</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>应抄户数</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>未抄户数</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>已抄无用量</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>实抄户数</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>抄表率</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>期间抄表气量</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>期间抄表金额</nobr>
191
+ </th>
192
+ <th>
193
+ <nobr>期间实收气费金额</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>已收户数</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>收费率</nobr>
200
+ </th>
201
+ </tr>
202
+ </template>
203
+ <template partial='body'>
204
+ <td style="text-align: center;">
205
+ <nobr>{{row.f_inputtor}}</nobr>
206
+ </td>
207
+ <td style="text-align:center" v-if="row.f_inputtor!=null"><button @click.stop="$parent.$parent.$parent.operate(row.f_inputtor)" class="btn btn-link">{{row.f_user_number}}</button></td>
208
+ <!--<td style="text-align:center" v-if="row.f_inputtor==null">{{row.f_user_number}}</td>-->
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_no_hand}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_out_hand}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_hand_num}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_hand_lv}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_oughtamount}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_oughtfee}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_debt_money}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_sell_hand}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_sell_lv}}</nobr>
235
+ </td>
236
+ </template>
237
+ <template partial='foot'></template>
238
+ </data-grid>
239
+ </criteria-paged>
240
+ <table class="table-hover">
241
+ <tr style="position: relative" class="table-bordered">
242
+ <td
243
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
244
+ 汇总信息
245
+ </td>
246
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
247
+ 应抄户数合计:&emsp;{{sumsmodel.f_user_number}}
248
+ </td>
249
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
250
+ 未抄户数合计:&emsp;{{sumsmodel.f_no_hand}}
251
+ </td>
252
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
253
+ 已抄无用量合计:&emsp;{{sumsmodel.f_out_hand}}
254
+ </td>
255
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
256
+ 实抄户数合计:&emsp;{{sumsmodel.f_hand_num}}
257
+ </td>
258
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
259
+ 期间抄表气量合计:&emsp;{{sumsmodel.f_oughtamount}}
260
+ </td>
261
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
262
+ 期间抄表金额合计:&emsp;{{sumsmodel.f_oughtfee}}
263
+ </td>
264
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
265
+ 期间实收气费金额合计:&emsp;{{sumsmodel.f_debt_money}}
266
+ </td>
267
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
268
+ 已收户数合计:&emsp;{{sumsmodel.f_sell_hand}}
269
+ </td>
270
+ </tr>
271
+ </table>
272
+ </div>
273
+ <!--<div v-if="show">-->
274
+ <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
275
+ <!--</div>-->
276
+ </div>
277
+ <div class="binary-right" v-if="usershow">
278
+ <handplan-user :start-date.sync="startd"
279
+ :end-date.sync="endd"
280
+ :inputtor.sync="selectinputtor" :f_filialeid="f_filialeid" ></handplan-user>
281
+ </div>
282
+
283
+ </div>
284
+ </template>
285
+
286
+ <script>
287
+ import {HttpResetClass, PagedList} from 'vue-client'
288
+ import exportConfig from '../config/exportConfig'
289
+
290
+ let readySomething = async function (self) {
291
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
292
+ self.$MagGetSaleParam.initinputtor();
293
+ self.getinputtores();
294
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
295
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
296
+ self.startd = self.$login.toStandardDateString() + ' 00:00:00'
297
+ self.endd = self.$login.toStandardDateString() + ' 23:59:59'
298
+ // self.$refs.paged.$refs.cri.search()
299
+
300
+ await self.$MagLoadParams.loadParam()
301
+ self.initParams()
302
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
303
+ }
304
+ export default {
305
+ title: '抄表员统计',
306
+ data() {
307
+ return {
308
+ defaultfield: [],
309
+ config: {
310
+ defaultPrint: ['f_out_hand', 'f_sell_hand']
311
+ },
312
+ //f_price_name:[],
313
+ other: [],
314
+ footer: [],
315
+ gasproperties:[],
316
+ showinfo: false,
317
+ data: {},
318
+ show:false,
319
+ rowdata:{},
320
+ initres: {
321
+ org:[this.$login.f.orgid],
322
+ dep:[],
323
+ user:[]
324
+ },
325
+ model: new PagedList('api/af-revenue/sql/handPeopleQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
326
+ f_user_number: 0,
327
+ f_no_hand: 0,
328
+ f_out_hand: 0,
329
+ f_hand_num :0,
330
+ f_oughtamount: 0,
331
+ f_oughtfee: 0,
332
+ f_debt_money:0,
333
+ f_sell_hand:0
334
+ }),
335
+ criteriaShow: false,
336
+ orgCondtionStr: '',
337
+ // 下拉框
338
+ meterbrands: [],
339
+ meterbooks:[{label: '全部',value: ''}],
340
+ pricenames: [],
341
+ prices: [],
342
+ area: [],
343
+ //合计数据
344
+ defaultfield: [],
345
+ //小区
346
+ residentialArea: [],
347
+ sumsmodel: {},
348
+ inputtouPerson: [],
349
+ inputtores2: [], // 下发时使用自定义抄表员,
350
+ f_filialeid: this.$login.f.f_orgid,
351
+ f_orgid: this.$login.f.orgid,
352
+ f_depid: this.$login.f.depids,
353
+ f_operatorid: this.$login.f.id,
354
+ inputtores:[{label: '全部',value: ''}], //抄表员
355
+ bookSlice:[{label: '全部',value: ''}], //表册片区
356
+ allorgid:[],
357
+ isdetail: false,
358
+ usershow:false,
359
+ selectinputtor:'',
360
+ startd:'',
361
+ endd:''
362
+ }
363
+ },
364
+ ready() {
365
+ this.getaddress()
366
+
367
+ readySomething(this).then(() => {
368
+ this.$emit('ready')
369
+ }).catch((error) => {
370
+ this.$emit('error', error)
371
+ })
372
+ },
373
+ methods: {
374
+ //表册片区和抄表册关联
375
+ async inputtchange(){
376
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
377
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
378
+ if((val2.length>0)){
379
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
380
+ let aaa = '('
381
+ val2.forEach((item) => {
382
+ aaa = aaa + `'${item}',`
383
+ })
384
+ aaa = aaa + `'')`
385
+ condition = condition + ` and f_book_slice_area in ${aaa} `
386
+ let param={
387
+ items:'*',
388
+ tablename:'t_meter_book',
389
+ condition:condition,
390
+ orderitem:'id'
391
+ }
392
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
393
+ if (getMeterBooks.data) {
394
+ if(getMeterBooks.data.length >0){
395
+ let rs = [];
396
+ getMeterBooks.data.forEach((item)=>{
397
+ let temp = {
398
+ label:item.f_book_name,
399
+ value:item.id
400
+ };
401
+ rs.push(temp);
402
+
403
+ })
404
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
405
+ }else{
406
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
407
+ this.meterbooks = [{label: '全部',value: ''}];
408
+ }
409
+ }else{
410
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
411
+ }
412
+ }else{
413
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
414
+ this.meterbooks = [{label: '全部',value: ''}];
415
+ this.initmeterbook();
416
+ }
417
+ },
418
+ //显示抄表户数
419
+ operate(inputtor){
420
+ if(inputtor!= null){
421
+ this.selectinputtor = inputtor;
422
+ }else{
423
+ this.$showAlert('当前抄表员有误','warning',2000)
424
+ return;
425
+ }
426
+ this.isdetail =true;
427
+ this.usershow = true;
428
+ },
429
+ async getinputtores () {
430
+ // 获取抄表员
431
+ let rs = []
432
+ if (this.$login.f.f_gasman.length > 0) {
433
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
434
+ let temp = {
435
+ label: this.$login.f.f_gasman[i].name,
436
+ value: this.$login.f.f_gasman[i].name
437
+ }
438
+ rs.push(temp)
439
+ }
440
+ }
441
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
442
+ },
443
+ //初始化片区
444
+ async initSlice (val) {
445
+ if (val) {
446
+ let getAllArea = await this.$resetpost('/rs/search', {
447
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
448
+ userid: this.$login.f.id
449
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
450
+ let arr = getAllArea.data.filter((res) => {
451
+ return res.parentid == val
452
+ })
453
+ this.bookSlice = []
454
+ arr.forEach((res) => {
455
+ this.bookSlice.push({label: res.name, value: res.name})
456
+ })
457
+ }
458
+ },
459
+ async initmeterbook(orgstr){
460
+ if(orgstr == null ){
461
+ orgstr = this.f_filialeid;
462
+ }
463
+ //获取新的抄表册,先去清理所有的抄表册
464
+ this.$GetSaleParam.meterbooks = [];
465
+ //开始加载新的抄表册
466
+ await this.$LoadParams.loadMeterBook(orgstr)
467
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
468
+ },
469
+ async updateParams() {
470
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
471
+ this.inputtores = [];
472
+ this.inputtores.push({label: "全部", value: ""})
473
+ this.initSlice(this.f_filialeid)
474
+ if(this.allorgid!=null){
475
+ this.allorgid.forEach((res)=>{
476
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
477
+ })
478
+ }
479
+ this.initParams()
480
+ },
481
+ getotherfooter() {
482
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
483
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
484
+ this.other = [];
485
+ this.footer = [];
486
+ // let exportdata = this.getCondition;
487
+ let otherInData = [];
488
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
489
+ let footerData = [], exportfield = this.getfield;
490
+ footerData.push("合计");
491
+ let self = this;
492
+ for (var field in self.sumsmodel) {
493
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
494
+ }
495
+ this.footer.push(footerData);
496
+ this.other.push(otherInData);
497
+ let date = []
498
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
499
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
500
+ this.other.push(date)
501
+ },
502
+ async getaddress(){
503
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
504
+ // self.loadMeterBooks()
505
+ let HttpReset = new HttpResetClass()
506
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
507
+ data: {
508
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
509
+ }
510
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
511
+ let house = [{label: '全部', value: ''}]
512
+ for (let row of data.data){
513
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
514
+ }
515
+ this.residentialArea = house
516
+ },
517
+
518
+
519
+
520
+
521
+ //把数据库查询数据转换为下拉数据
522
+ calculate(rows){
523
+ let data = []
524
+ rows.forEach((row, n) => {
525
+ data[n] = {label: row.f_residential_area, value: row.id}
526
+ })
527
+ return data
528
+ },
529
+
530
+ search(){
531
+ this.$refs.paged.$refs.cri.search()
532
+ },
533
+ cancel() {
534
+ this.show = false
535
+ },
536
+ showmsg(obj){
537
+ this.rowdata=obj
538
+ this.show=true
539
+ },
540
+ userTypeChange () {
541
+ this.gasproperties=[]
542
+ if(this.$refs.paged.$refs.cri.model !==null) {
543
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
544
+
545
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
546
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
547
+ // this.gasproperties.push({label: '全部', value: ''})
548
+ }
549
+ else{
550
+ this.gasproperties =[{label: '全部', value: ''}]
551
+ }
552
+ },
553
+ initParams() {
554
+ // 初始化气表品牌
555
+ let brandArr = []
556
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
557
+ let temp = {}
558
+ temp.label = item.label
559
+ temp.value = item.value.f_meter_brand
560
+ brandArr.push(temp)
561
+ })
562
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
563
+ //初始化气表价格
564
+ this.prices = this.$MagGetSaleParam.getPrices();
565
+ },
566
+ selfSearch(args) {
567
+ if(this.$refs.paged.$refs.cri.model.startDate == '' || this.$refs.paged.$refs.cri.model.endDate == ''){
568
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
569
+ return
570
+ }
571
+ //抄表员查询条件
572
+ this.inputtouPerson =this.$refs.paged.$refs.cri.model.f_inputtor
573
+ if(this.inputtouPerson.length !== 0){
574
+ let str = JSON.stringify(this.inputtouPerson)
575
+ str = str.replace(/"/g,`'`)
576
+ str = str.replace(/\[/g,``)
577
+ str = str.replace(/\]/g,``)
578
+ //查询多个抄表员时条件
579
+ args.condition += ` and f_inputtor in ( ${str} )`
580
+ }
581
+ //小区查询条件
582
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
583
+ if(this.area.length !== 0){
584
+ let str = JSON.stringify(this.area)
585
+ str = str.replace(/"/g,`'`)
586
+ str = str.replace(/\[/g,``)
587
+ str = str.replace(/\]/g,``)
588
+ //查询多个小区时条件
589
+ args.condition += ` and f_residential_area in ( ${str} )`
590
+ }
591
+ let f_orgstr = this.orgCondtionStr
592
+ args.condition = `${args.condition} ` + f_orgstr
593
+ self.startd = args.model.startDate;
594
+ self.endd = args.model.endDate;
595
+ this.model.search(args.condition, args.model)
596
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
597
+ this.isdetail =false;
598
+ this.usershow = false;
599
+ },
600
+ clear() {
601
+ //清空部门和人员
602
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
603
+ //部门和人员变为全选
604
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
605
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
606
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
607
+ this.$refs.paged.$refs.cri.model[key] = []
608
+ })
609
+
610
+ },
611
+ // loadMeterBooks(){
612
+ // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
613
+ // },
614
+ dealmsg(val) {
615
+ val.model = this.model.model
616
+ this.$dispatch('deal-msg', val)
617
+ },
618
+ show() {
619
+ this.criteriaShow = true
620
+ },
621
+ hidden() {
622
+ this.criteriaShow = !this.criteriaShow
623
+ },
624
+ // getRes (obj) {
625
+ // this.orgname = obj.res[0]
626
+ // this.depresid = obj.resids
627
+ // this.f_orgid = obj.resids
628
+ // },
629
+ getRes(obj) {
630
+ this.orgCondtionStr = obj
631
+ },
632
+ },
633
+ events:{
634
+ 'getidcard'(IdCard){
635
+ // console.log(param)
636
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
637
+ }
638
+ },
639
+ watch: {
640
+ 'model'(val) {
641
+ },
642
+ 'orgCondtionStr'(val) {
643
+ this.$refs.paged.$refs.cri.model.f_inputtor = []
644
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
645
+ let res = val.match(/'(.*?)'/)
646
+ console.log('正则提取:',res && res[1])
647
+ if (res) {
648
+ this.f_filialeid = res[1]
649
+ if(res.input !=null){
650
+ let resorgid = res.input.substring(res.input.indexOf("'"));
651
+ if(resorgid!= null && resorgid!=''){
652
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
653
+ // resorgid = resorgid.replaceAll("'","");
654
+ resorgid = resorgid.replace(/'/g,"");
655
+ this.allorgid = resorgid.split(",")
656
+ }
657
+ }
658
+ this.updateParams()
659
+ }
660
+ },
661
+ sumsmodel: {
662
+ handler: function (val) {
663
+ this.getotherfooter();
664
+ },
665
+ deep: true
666
+ }
667
+ },
668
+ computed: {
669
+ getPricenames() {
670
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
671
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
672
+ let pricetype = this.$refs.paged.model.model.pricetype;
673
+ if(this.$refs.paged.model.model !==null) {
674
+ let rs = []
675
+ let priceArr = []
676
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
677
+ let params = {
678
+ f_user_type: f_user_type[0],
679
+ f_gasproperties: f_gasproperties[0],
680
+ f_price_type: pricetype[0],
681
+ filter: this.f_filialeid,
682
+ prices: this.prices
683
+ }
684
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
685
+ let temp = {}
686
+ temp.label = item.label
687
+ temp.value = item.value.f_price_name
688
+ priceArr.push(temp)
689
+ })
690
+ rs = [{label: '全部', value: ''}, ...priceArr]
691
+ }
692
+ if (rs.length === 0) {
693
+ this.$refs.paged.model.model.f_price_name = ''
694
+ }
695
+ return rs
696
+ }
697
+ },
698
+ getCondition() {
699
+ return {
700
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
701
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
702
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
703
+ }
704
+ },
705
+ inputtor() {
706
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
707
+ },
708
+ getfield() {
709
+ return exportConfig.handPeopleConfig
710
+ },
711
+ pricetypes() {
712
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
713
+ },
714
+ usertypes() {
715
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
716
+ }
717
+ }
718
+ }
719
+ </script>