manage-client 3.3.233 → 3.3.234

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 (208) 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 -208
  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 +2763 -2763
  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 +1002 -1002
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
  64. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
  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 -777
  199. package/src/saleManage.js +689 -689
  200. package/src/stores/MagLoadParams.js +8 -4
  201. package/src/webmeterManage.js +130 -130
  202. package/.gradle/7.4/checksums/checksums.lock +0 -0
  203. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  204. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  205. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  206. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  207. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  208. package/.gradle/7.4/gc.properties +0 -0
@@ -1,692 +1,692 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @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">
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">
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
- <v-select :value.sync="model.f_residential_area"
32
- class="select_list select"
33
- enter-push
34
- multiple = "true"
35
- v-model="model.f_residential_area"
36
- style="width: 60%"
37
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
38
- close-on-select>
39
-
40
- </v-select>
41
- </div>
42
- <div class="col-sm-2 form-group">
43
- <label class="font_normal_body">客户类型</label>
44
- <v-select :value.sync="model.f_user_type"
45
- @change="$parent.$parent.userTypeChange()"
46
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
47
- condition="f_user_type = '{}'"
48
- close-on-select></v-select>
49
- </div>
50
- <div class="span" style="float:right;">
51
- <!--<read-idcard></read-idcard>-->
52
- <button class="button_search button_spacing" @click="search()">查询</button>
53
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
54
-
55
- <export-excel :data="$parent.$parent.getCondition"
56
- :field="$parent.$parent.getfield"
57
- :footer="$parent.$parent.footer"
58
- :header="$parent.$parent.other"
59
- sqlurl="api/af-revenue/logic/openapi/exportfile"
60
- sql-name="handBookQuery"
61
- template-name='抄表册统计查询导出'
62
- :choose-col="true"></export-excel>
63
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
64
- :defaultfield="$parent.$parent.defaultfield"
65
- titletable="抄表册统计查询导出"
66
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
67
- <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>
68
-
69
- </div>
70
- </div>
71
- <div class="row" v-show="$parent.$parent.criteriaShow">
72
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
73
-
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">用气性质</label>
76
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
77
- :options='$parent.$parent.gasproperties' placeholder='请选择'
78
- condition="f_gasproperties = '{}'"
79
- close-on-select></v-select>
80
- </div>
81
- <!--<div class="col-sm-2 form-group">-->
82
- <!--<label class="font_normal_body">抄&ensp;表&ensp;员</label>-->
83
- <!--<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'-->
84
- <!--style="width:60%"-->
85
- <!--multiple="true"-->
86
- <!--:options='$parent.$parent.inputtores' placeholder='抄表员'-->
87
- <!--close-on-select-->
88
- <!--v-el:cc></v-select>-->
89
- <!--</div>-->
90
- <div class="col-sm-2 form-group">
91
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
92
- <v-select :value.sync="model.f_inputtor"
93
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
94
- :options='$parent.$parent.inputtores' placeholder='请选择'
95
- multiple = "true"
96
- close-on-select></v-select>
97
- </div>
98
- <!--表册片区-->
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">表册片区</label>
101
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
102
- @change="$parent.$parent.inputtchange"
103
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
104
- multiple
105
- style="width:60%"
106
- close-on-select
107
- condition="f_book_slice_area in {}"></v-select>
108
- </div>
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
111
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
112
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
113
- style="width:60%"
114
- multiple
115
- close-on-select
116
- condition="f_meter_book_num in {}"></v-select>
117
- </div>
118
- <!--<div class="col-sm-2 form-group">-->
119
- <!--<label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
120
- <!--<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"-->
121
- <!--:options='$parent.$parent.meterbooks' placeholder='抄表册'-->
122
- <!--style="width:60%"-->
123
- <!--close-on-select-->
124
- <!--condition="uf.f_meter_book_num = '{}'"></v-select>-->
125
- <!--</div>-->
126
- <!--<div class="col-sm-2 form-group">-->
127
- <!--<label class="font_normal_body">气价类型</label>-->
128
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
129
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
130
- <!--close-on-select v-ref:type>-->
131
- <!--</v-select>-->
132
- <!--</div>-->
133
- <!--<div class="col-sm-2 form-group">-->
134
- <!--<label class="font_normal_body">气价名称</label>-->
135
- <!--<v-select :value.sync="model.f_price_name"-->
136
- <!--v-model="model.f_price_name"-->
137
- <!--:options="$parent.$parent.getPricenames"-->
138
- <!--condition="f_price_name = '{}'"-->
139
- <!--close-on-select></v-select>-->
140
- <!--</div>-->
141
-
142
- <!--<div class="col-sm-2 form-group">-->
143
- <!--<label class="font_normal_body">气表类型</label>-->
144
- <!--<v-select :value.sync="model.f_meter_type" multiple-->
145
- <!--:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"-->
146
- <!--condition="f_meter_type in {}"-->
147
- <!--close-on-select></v-select>-->
148
- <!--</div>-->
149
- <!--<div class="col-sm-2 form-group">-->
150
- <!--<label class="font_normal_body">气表品牌</label>-->
151
- <!--<v-select :value.sync="model.f_meter_brand" multiple-->
152
- <!--v-model="model.f_meter_brand"-->
153
- <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
154
- <!--condition="f_meter_brand in {}"-->
155
- <!--close-on-select></v-select>-->
156
- <!--</div>-->
157
- </div>
158
- </div>
159
- </criteria>
160
-
161
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
162
- <template partial='head'>
163
- <tr>
164
- <th>
165
- <nobr>抄表员</nobr>
166
- </th>
167
- <th>
168
- <nobr>抄表册</nobr>
169
- </th>
170
- <th>
171
- <nobr>应抄户数</nobr>
172
- </th>
173
- <th>
174
- <nobr>未抄户数</nobr>
175
- </th>
176
- <th>
177
- <nobr>已抄无用量</nobr>
178
- </th>
179
- <th>
180
- <nobr>实抄户数</nobr>
181
- </th>
182
- <th>
183
- <nobr>抄表率</nobr>
184
- </th>
185
- <th>
186
- <nobr>期间抄表气量</nobr>
187
- </th>
188
- <th>
189
- <nobr>期间抄表金额</nobr>
190
- </th>
191
- <th>
192
- <nobr>期间实收气费金额</nobr>
193
- </th>
194
- <th>
195
- <nobr>已收户数</nobr>
196
- </th>
197
- <th>
198
- <nobr>收费率</nobr>
199
- </th>
200
- </tr>
201
- </template>
202
- <template partial='body'>
203
- <td style="text-align: center;">
204
- <nobr>{{row.f_inputtor}}</nobr>
205
- </td>
206
- <td style="text-align: center;">
207
- <nobr>{{row.f_book_name}}</nobr>
208
- </td>
209
- <td style="text-align: center;">
210
- <nobr>{{row.f_user_number}}</nobr>
211
- </td>
212
- <td style="text-align: center;">
213
- <nobr>{{row.f_no_hand}}</nobr>
214
- </td>
215
- <td style="text-align: center;">
216
- <nobr>{{row.f_out_hand}}</nobr>
217
- </td>
218
- <td style="text-align: center;">
219
- <nobr>{{row.f_hand_num}}</nobr>
220
- </td>
221
- <td style="text-align: center;">
222
- <nobr>{{row.f_hand_lv}}</nobr>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_oughtamount}}</nobr>
226
- </td>
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_oughtfee}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_debt_money}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_sell_hand}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_sell_lv}}</nobr>
238
- </td>
239
- </template>
240
- <template partial='foot'></template>
241
- </data-grid>
242
- </criteria-paged>
243
- <table class="table-hover">
244
- <tr style="position: relative" class="table-bordered">
245
- <td
246
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
247
- 汇总信息
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_user_number}}
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_no_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_out_hand}}
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_hand_num}}
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_oughtamount}}
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_oughtfee}}
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_debt_money}}
269
- </td>
270
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
271
- 已收户数合计:&emsp;{{sumsmodel.f_sell_hand}}
272
- </td>
273
- </tr>
274
- </table>
275
- </div>
276
- <!--<div v-if="show">-->
277
- <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
278
- <!--</div>-->
279
- </div>
280
- </div>
281
- </template>
282
-
283
- <script>
284
- import {HttpResetClass, PagedList} from 'vue-client'
285
- import exportConfig from '../config/exportConfig'
286
-
287
- let readySomething = async function (self) {
288
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
289
- self.$MagGetSaleParam.initinputtor();
290
- self.getinputtores();
291
- self.initmeterbook();
292
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
293
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
294
- // self.$refs.paged.$refs.cri.search()
295
-
296
- await self.$MagLoadParams.loadParam()
297
- self.initParams()
298
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
299
- }
300
- export default {
301
- title: '抄表册统计',
302
- data() {
303
- return {
304
- other: [],
305
- footer: [],
306
- config: {
307
- defaultPrint: ['f_no_hand', 'f_inputtor']
308
- },
309
- //f_price_name:[],
310
- gasproperties:[],
311
- showinfo: false,
312
- data: {},
313
- show:false,
314
- rowdata:{},
315
- initres: {
316
- org:[this.$login.f.orgid],
317
- dep:[],
318
- user:[]
319
- },
320
- model: new PagedList('api/af-revenue/sql/handBookQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
321
- f_user_number: 0,
322
- f_no_hand: 0,
323
- f_out_hand: 0,
324
- f_hand_num :0,
325
- f_oughtamount: 0,
326
- f_oughtfee: 0,
327
- f_debt_money:0,
328
- f_sell_hand:0
329
- }),
330
- criteriaShow: false,
331
- orgCondtionStr: '',
332
- // 下拉框
333
- meterbrands: [],
334
- pricenames: [],
335
- prices: [],
336
- area: [],
337
- //合计数据
338
- defaultfield: [],
339
- //小区
340
- residentialArea: [],
341
- sumsmodel: {},
342
- inputtouPerson: [],
343
- inputtores2: [], // 下发时使用自定义抄表员,
344
- f_filialeid: this.$login.f.f_orgid,
345
- f_orgid: this.$login.f.orgid,
346
- f_depid: this.$login.f.depids,
347
- f_operatorid: this.$login.f.id,
348
- bookSlice:[{label: '全部',value: ''}], //表册片区
349
- meterbooks:[{label: '全部',value: ''}], //抄表册
350
- tempfalg :false,
351
- lastorgstr:'',
352
- allorgid:[],
353
- inputtores:[{label: '全部',value: ''}], //抄表员
354
- }
355
- },
356
- ready() {
357
- this.getaddress()
358
- readySomething(this).then(() => {
359
- this.$emit('ready')
360
- }).catch((error) => {
361
- this.$emit('error', error)
362
- })
363
- },
364
- methods: {
365
- // 初始化抄表册片区
366
- async initSlice (val) {
367
- if (val) {
368
- let getAllArea = await this.$resetpost('/rs/search', {
369
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
370
- userid: this.$login.f.id
371
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
372
- let arr = getAllArea.data.filter((res) => {
373
- return res.parentid == val
374
- })
375
- this.bookSlice = []
376
- arr.forEach((res) => {
377
- this.bookSlice.push({label: res.name, value: res.name})
378
- })
379
- }
380
- },
381
- //表册片区和抄表册关联
382
- async inputtchange(){
383
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
384
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
385
- if((val2.length>0)){
386
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
387
- let aaa = '('
388
- val2.forEach((item) => {
389
- aaa = aaa + `'${item}',`
390
- })
391
- aaa = aaa + `'')`
392
- condition = condition + ` and f_book_slice_area in ${aaa} `
393
- let param={
394
- items:'*',
395
- tablename:'t_meter_book',
396
- condition:condition,
397
- orderitem:'id'
398
- }
399
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
400
- if (getMeterBooks.data) {
401
- if(getMeterBooks.data.length >0){
402
- let rs = [];
403
- getMeterBooks.data.forEach((item)=>{
404
- let temp = {
405
- label:item.f_book_name,
406
- value:item.id
407
- };
408
- rs.push(temp);
409
-
410
- })
411
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
412
- }else{
413
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
414
- this.meterbooks = [{label: '全部',value: ''}];
415
- }
416
- }else{
417
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
418
- }
419
- }else{
420
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
421
- this.meterbooks = [{label: '全部',value: ''}];
422
- this.initmeterbook();
423
- }
424
- },
425
- async initmeterbook(orgstr){
426
- if(orgstr == null ){
427
- orgstr = this.f_filialeid;
428
- }
429
- //获取新的抄表册,先去清理所有的抄表册
430
- this.$GetSaleParam.meterbooks = [];
431
- //开始加载新的抄表册
432
- await this.$LoadParams.loadMeterBook(orgstr)
433
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
434
- },
435
- async getinputtores () {
436
- // 获取抄表员
437
- let rs = []
438
- if (this.$login.f.f_gasman.length > 0) {
439
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
440
- let temp = {
441
- label: this.$login.f.f_gasman[i].name,
442
- value: this.$login.f.f_gasman[i].name
443
- }
444
- rs.push(temp)
445
- }
446
- }
447
- this.inputtores = [{label: '全部', value: ''}, ...rs]
448
- },
449
- async updateParams() {
450
- await this.$MagLoadParams.loadParam(this.f_filialeid)
451
- this.inputtores = [];
452
- this.inputtores.push({label: "全部", value: ""})
453
- this.initSlice(this.f_filialeid)
454
- if(this.allorgid!=null){
455
- this.allorgid.forEach((res)=>{
456
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
457
- })
458
- }
459
- this.initParams()
460
- },
461
- getotherfooter() {
462
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
463
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
464
- this.other = [];
465
- this.footer = [];
466
- // let exportdata = this.getCondition;
467
- let otherInData = [];
468
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
469
- let footerData = [], exportfield = this.getfield;
470
- footerData.push("合计");
471
- let self = this;
472
- for (var field in self.sumsmodel) {
473
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
474
- }
475
- this.footer.push(footerData);
476
- this.other.push(otherInData);
477
- let date = []
478
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
479
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
480
- this.other.push(date)
481
- },
482
- async getaddress(){
483
- // await self.$LoadParams.loadMeterBook(self.f_filialeid)
484
- // self.loadMeterBooks()
485
- let HttpReset = new HttpResetClass()
486
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
487
- data: {
488
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
489
- }
490
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
491
- let house = [{label: '全部', value: ''}]
492
- for (let row of data.data){
493
- house.push({label: row.f_residential_area, value: row.f_residential_area})
494
- }
495
- this.residentialArea = house
496
- },
497
-
498
-
499
-
500
-
501
- //把数据库查询数据转换为下拉数据
502
- calculate(rows){
503
- let data = []
504
- rows.forEach((row, n) => {
505
- data[n] = {label: row.f_residential_area, value: row.id}
506
- })
507
- return data
508
- },
509
-
510
- search(){
511
- this.$refs.paged.$refs.cri.search()
512
- },
513
- cancel() {
514
- this.show = false
515
- },
516
- showmsg(obj){
517
- this.rowdata=obj
518
- this.show=true
519
- },
520
- userTypeChange () {
521
- this.gasproperties=[]
522
- if(this.$refs.paged.$refs.cri.model !==null) {
523
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
524
-
525
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
526
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
527
- // this.gasproperties.push({label: '全部', value: ''})
528
- }
529
- else{
530
- this.gasproperties =[{label: '全部', value: ''}]
531
- }
532
- },
533
- initParams() {
534
- // 初始化气表品牌
535
- let brandArr = []
536
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
537
- let temp = {}
538
- temp.label = item.label
539
- temp.value = item.value.f_meter_brand
540
- brandArr.push(temp)
541
- })
542
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
543
- //初始化气表价格
544
- this.prices = this.$MagGetSaleParam.getPrices();
545
- },
546
- selfSearch(args) {
547
- if(this.$refs.paged.$refs.cri.model.startDate == '' || this.$refs.paged.$refs.cri.model.endDate == ''){
548
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
549
- return
550
- }
551
- //小区查询条件
552
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
553
- if(this.area.length !== 0){
554
- let str = JSON.stringify(this.area)
555
- str = str.replace(/"/g,`'`)
556
- str = str.replace(/\[/g,``)
557
- str = str.replace(/\]/g,``)
558
- //查询多个小区时条件
559
- args.condition += ` and f_residential_area in ( ${str} )`
560
- }
561
- console.log("33333333333333333333")
562
- let f_orgstr = this.orgCondtionStr
563
- args.condition = `${args.condition} ` + f_orgstr
564
- this.model.search(args.condition, args.model)
565
- console.log("3333333333333")
566
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
567
- },
568
- clear() {
569
- //清空部门和人员
570
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
571
- //部门和人员变为全选
572
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
573
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
574
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
575
- this.$refs.paged.$refs.cri.model[key] = []
576
- })
577
-
578
- },
579
- // loadMeterBooks(){
580
- // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
581
- // },
582
- dealmsg(val) {
583
- val.model = this.model.model
584
- this.$dispatch('deal-msg', val)
585
- },
586
- show() {
587
- this.criteriaShow = true
588
- },
589
- hidden() {
590
- this.criteriaShow = !this.criteriaShow
591
- },
592
- async getRes(condition,obj) {
593
- this.orgCondtionStr = condition
594
-
595
- },
596
-
597
- },
598
- events:{
599
- 'getidcard'(IdCard){
600
- // console.log(param)
601
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
602
- }
603
- },
604
- watch: {
605
- 'model'(val) {
606
- },
607
- async 'orgCondtionStr'(val) {
608
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
609
- this.$refs.paged.$refs.cri.model.f_inputtor = []
610
- this.$refs.paged.$refs.cri.model.f_meter_book = []
611
- this.meterbooks = [{label: '全部',value: ''}];
612
- if(this.lastorgstr != val){
613
- this.tempfalg = true;
614
- this.lastorgstr = val;
615
- }
616
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
617
- this.tempfalg = false;
618
- let a = val.substring(val.indexOf("(")+2)
619
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
620
- }
621
- let res = val.match(/'(.*?)'/)
622
- console.log('正则提取:',res && res[1])
623
- if (res) {
624
- this.f_filialeid = res[1]
625
- if(res.input !=null){
626
- let resorgid = res.input.substring(res.input.indexOf("'"));
627
- if(resorgid!= null && resorgid!=''){
628
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
629
- // resorgid = resorgid.replaceAll("'","");
630
- resorgid = resorgid.replace(/'/g,"");
631
- this.allorgid = resorgid.split(",")
632
- }
633
- }
634
- this.updateParams()
635
- }
636
- },
637
- sumsmodel: {
638
- handler: function (val) {
639
- this.getotherfooter();
640
- },
641
- deep: true
642
- }
643
- },
644
- computed: {
645
- getPricenames() {
646
- let f_user_type = this.$refs.paged.model.model.f_user_type;
647
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
648
- let pricetype = this.$refs.paged.model.model.pricetype;
649
- if(this.$refs.paged.model.model !==null) {
650
- let rs = []
651
- let priceArr = []
652
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
653
- let params = {
654
- f_user_type: f_user_type[0],
655
- f_gasproperties: f_gasproperties[0],
656
- f_price_type: pricetype[0],
657
- filter: this.f_filialeid,
658
- prices: this.prices
659
- }
660
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
661
- let temp = {}
662
- temp.label = item.label
663
- temp.value = item.value.f_price_name
664
- priceArr.push(temp)
665
- })
666
- rs = [{label: '全部', value: ''}, ...priceArr]
667
- }
668
- if (rs.length === 0) {
669
- this.$refs.paged.model.model.f_price_name = ''
670
- }
671
- return rs
672
- }
673
- },
674
- getCondition() {
675
- return {
676
- startDate: this.$refs.paged.$refs.cri.model.startDate,
677
- endDate: this.$refs.paged.$refs.cri.model.endDate,
678
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
679
- }
680
- },
681
- getfield() {
682
- return exportConfig.handBookConfig
683
- },
684
- pricetypes() {
685
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
686
- },
687
- usertypes() {
688
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
689
- }
690
- }
691
- }
692
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @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">
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">
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
+ <v-select :value.sync="model.f_residential_area"
32
+ class="select_list select"
33
+ enter-push
34
+ multiple = "true"
35
+ v-model="model.f_residential_area"
36
+ style="width: 60%"
37
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
38
+ close-on-select>
39
+
40
+ </v-select>
41
+ </div>
42
+ <div class="col-sm-2 form-group">
43
+ <label class="font_normal_body">客户类型</label>
44
+ <v-select :value.sync="model.f_user_type"
45
+ @change="$parent.$parent.userTypeChange()"
46
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
47
+ condition="f_user_type = '{}'"
48
+ close-on-select></v-select>
49
+ </div>
50
+ <div class="span" style="float:right;">
51
+ <!--<read-idcard></read-idcard>-->
52
+ <button class="button_search button_spacing" @click="search()">查询</button>
53
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
54
+
55
+ <export-excel :data="$parent.$parent.getCondition"
56
+ :field="$parent.$parent.getfield"
57
+ :footer="$parent.$parent.footer"
58
+ :header="$parent.$parent.other"
59
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
60
+ sql-name="handBookQuery"
61
+ template-name='抄表册统计查询导出'
62
+ :choose-col="true"></export-excel>
63
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
64
+ :defaultfield="$parent.$parent.defaultfield"
65
+ titletable="抄表册统计查询导出"
66
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
67
+ <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>
68
+
69
+ </div>
70
+ </div>
71
+ <div class="row" v-show="$parent.$parent.criteriaShow">
72
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
73
+
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">用气性质</label>
76
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
77
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
78
+ condition="f_gasproperties = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <!--<div class="col-sm-2 form-group">-->
82
+ <!--<label class="font_normal_body">抄&ensp;表&ensp;员</label>-->
83
+ <!--<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'-->
84
+ <!--style="width:60%"-->
85
+ <!--multiple="true"-->
86
+ <!--:options='$parent.$parent.inputtores' placeholder='抄表员'-->
87
+ <!--close-on-select-->
88
+ <!--v-el:cc></v-select>-->
89
+ <!--</div>-->
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
92
+ <v-select :value.sync="model.f_inputtor"
93
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
94
+ :options='$parent.$parent.inputtores' placeholder='请选择'
95
+ multiple = "true"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <!--表册片区-->
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">表册片区</label>
101
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
102
+ @change="$parent.$parent.inputtchange"
103
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
104
+ multiple
105
+ style="width:60%"
106
+ close-on-select
107
+ condition="f_book_slice_area in {}"></v-select>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
111
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
112
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
113
+ style="width:60%"
114
+ multiple
115
+ close-on-select
116
+ condition="f_meter_book_num in {}"></v-select>
117
+ </div>
118
+ <!--<div class="col-sm-2 form-group">-->
119
+ <!--<label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
120
+ <!--<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"-->
121
+ <!--:options='$parent.$parent.meterbooks' placeholder='抄表册'-->
122
+ <!--style="width:60%"-->
123
+ <!--close-on-select-->
124
+ <!--condition="uf.f_meter_book_num = '{}'"></v-select>-->
125
+ <!--</div>-->
126
+ <!--<div class="col-sm-2 form-group">-->
127
+ <!--<label class="font_normal_body">气价类型</label>-->
128
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
129
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
130
+ <!--close-on-select v-ref:type>-->
131
+ <!--</v-select>-->
132
+ <!--</div>-->
133
+ <!--<div class="col-sm-2 form-group">-->
134
+ <!--<label class="font_normal_body">气价名称</label>-->
135
+ <!--<v-select :value.sync="model.f_price_name"-->
136
+ <!--v-model="model.f_price_name"-->
137
+ <!--:options="$parent.$parent.getPricenames"-->
138
+ <!--condition="f_price_name = '{}'"-->
139
+ <!--close-on-select></v-select>-->
140
+ <!--</div>-->
141
+
142
+ <!--<div class="col-sm-2 form-group">-->
143
+ <!--<label class="font_normal_body">气表类型</label>-->
144
+ <!--<v-select :value.sync="model.f_meter_type" multiple-->
145
+ <!--:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"-->
146
+ <!--condition="f_meter_type in {}"-->
147
+ <!--close-on-select></v-select>-->
148
+ <!--</div>-->
149
+ <!--<div class="col-sm-2 form-group">-->
150
+ <!--<label class="font_normal_body">气表品牌</label>-->
151
+ <!--<v-select :value.sync="model.f_meter_brand" multiple-->
152
+ <!--v-model="model.f_meter_brand"-->
153
+ <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
154
+ <!--condition="f_meter_brand in {}"-->
155
+ <!--close-on-select></v-select>-->
156
+ <!--</div>-->
157
+ </div>
158
+ </div>
159
+ </criteria>
160
+
161
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
162
+ <template partial='head'>
163
+ <tr>
164
+ <th>
165
+ <nobr>抄表员</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>抄表册</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>应抄户数</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>未抄户数</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>已抄无用量</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>实抄户数</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>抄表率</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>期间抄表气量</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>期间抄表金额</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>期间实收气费金额</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>已收户数</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>收费率</nobr>
199
+ </th>
200
+ </tr>
201
+ </template>
202
+ <template partial='body'>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_inputtor}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_book_name}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_user_number}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_no_hand}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_out_hand}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_hand_num}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_hand_lv}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_oughtamount}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_oughtfee}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_debt_money}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_sell_hand}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_sell_lv}}</nobr>
238
+ </td>
239
+ </template>
240
+ <template partial='foot'></template>
241
+ </data-grid>
242
+ </criteria-paged>
243
+ <table class="table-hover">
244
+ <tr style="position: relative" class="table-bordered">
245
+ <td
246
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
247
+ 汇总信息
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_user_number}}
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_no_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_out_hand}}
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_hand_num}}
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_oughtamount}}
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_oughtfee}}
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_debt_money}}
269
+ </td>
270
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
271
+ 已收户数合计:&emsp;{{sumsmodel.f_sell_hand}}
272
+ </td>
273
+ </tr>
274
+ </table>
275
+ </div>
276
+ <!--<div v-if="show">-->
277
+ <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
278
+ <!--</div>-->
279
+ </div>
280
+ </div>
281
+ </template>
282
+
283
+ <script>
284
+ import {HttpResetClass, PagedList} from 'vue-client'
285
+ import exportConfig from '../config/exportConfig'
286
+
287
+ let readySomething = async function (self) {
288
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
289
+ self.$MagGetSaleParam.initinputtor();
290
+ self.getinputtores();
291
+ self.initmeterbook();
292
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
293
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
294
+ // self.$refs.paged.$refs.cri.search()
295
+
296
+ await self.$MagLoadParams.loadParam()
297
+ self.initParams()
298
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
299
+ }
300
+ export default {
301
+ title: '抄表册统计',
302
+ data() {
303
+ return {
304
+ other: [],
305
+ footer: [],
306
+ config: {
307
+ defaultPrint: ['f_no_hand', 'f_inputtor']
308
+ },
309
+ //f_price_name:[],
310
+ gasproperties:[],
311
+ showinfo: false,
312
+ data: {},
313
+ show:false,
314
+ rowdata:{},
315
+ initres: {
316
+ org:[this.$login.f.orgid],
317
+ dep:[],
318
+ user:[]
319
+ },
320
+ model: new PagedList('api/af-revenue/sql/handBookQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
321
+ f_user_number: 0,
322
+ f_no_hand: 0,
323
+ f_out_hand: 0,
324
+ f_hand_num :0,
325
+ f_oughtamount: 0,
326
+ f_oughtfee: 0,
327
+ f_debt_money:0,
328
+ f_sell_hand:0
329
+ }),
330
+ criteriaShow: false,
331
+ orgCondtionStr: '',
332
+ // 下拉框
333
+ meterbrands: [],
334
+ pricenames: [],
335
+ prices: [],
336
+ area: [],
337
+ //合计数据
338
+ defaultfield: [],
339
+ //小区
340
+ residentialArea: [],
341
+ sumsmodel: {},
342
+ inputtouPerson: [],
343
+ inputtores2: [], // 下发时使用自定义抄表员,
344
+ f_filialeid: this.$login.f.f_orgid,
345
+ f_orgid: this.$login.f.orgid,
346
+ f_depid: this.$login.f.depids,
347
+ f_operatorid: this.$login.f.id,
348
+ bookSlice:[{label: '全部',value: ''}], //表册片区
349
+ meterbooks:[{label: '全部',value: ''}], //抄表册
350
+ tempfalg :false,
351
+ lastorgstr:'',
352
+ allorgid:[],
353
+ inputtores:[{label: '全部',value: ''}], //抄表员
354
+ }
355
+ },
356
+ ready() {
357
+ this.getaddress()
358
+ readySomething(this).then(() => {
359
+ this.$emit('ready')
360
+ }).catch((error) => {
361
+ this.$emit('error', error)
362
+ })
363
+ },
364
+ methods: {
365
+ // 初始化抄表册片区
366
+ async initSlice (val) {
367
+ if (val) {
368
+ let getAllArea = await this.$resetpost('/rs/search', {
369
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
370
+ userid: this.$login.f.id
371
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
372
+ let arr = getAllArea.data.filter((res) => {
373
+ return res.parentid == val
374
+ })
375
+ this.bookSlice = []
376
+ arr.forEach((res) => {
377
+ this.bookSlice.push({label: res.name, value: res.name})
378
+ })
379
+ }
380
+ },
381
+ //表册片区和抄表册关联
382
+ async inputtchange(){
383
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
384
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
385
+ if((val2.length>0)){
386
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
387
+ let aaa = '('
388
+ val2.forEach((item) => {
389
+ aaa = aaa + `'${item}',`
390
+ })
391
+ aaa = aaa + `'')`
392
+ condition = condition + ` and f_book_slice_area in ${aaa} `
393
+ let param={
394
+ items:'*',
395
+ tablename:'t_meter_book',
396
+ condition:condition,
397
+ orderitem:'id'
398
+ }
399
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
400
+ if (getMeterBooks.data) {
401
+ if(getMeterBooks.data.length >0){
402
+ let rs = [];
403
+ getMeterBooks.data.forEach((item)=>{
404
+ let temp = {
405
+ label:item.f_book_name,
406
+ value:item.id
407
+ };
408
+ rs.push(temp);
409
+
410
+ })
411
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
412
+ }else{
413
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
414
+ this.meterbooks = [{label: '全部',value: ''}];
415
+ }
416
+ }else{
417
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
418
+ }
419
+ }else{
420
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
421
+ this.meterbooks = [{label: '全部',value: ''}];
422
+ this.initmeterbook();
423
+ }
424
+ },
425
+ async initmeterbook(orgstr){
426
+ if(orgstr == null ){
427
+ orgstr = this.f_filialeid;
428
+ }
429
+ //获取新的抄表册,先去清理所有的抄表册
430
+ this.$GetSaleParam.meterbooks = [];
431
+ //开始加载新的抄表册
432
+ await this.$LoadParams.loadMeterBook(orgstr)
433
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
434
+ },
435
+ async getinputtores () {
436
+ // 获取抄表员
437
+ let rs = []
438
+ if (this.$login.f.f_gasman.length > 0) {
439
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
440
+ let temp = {
441
+ label: this.$login.f.f_gasman[i].name,
442
+ value: this.$login.f.f_gasman[i].name
443
+ }
444
+ rs.push(temp)
445
+ }
446
+ }
447
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
448
+ },
449
+ async updateParams() {
450
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
451
+ this.inputtores = [];
452
+ this.inputtores.push({label: "全部", value: ""})
453
+ this.initSlice(this.f_filialeid)
454
+ if(this.allorgid!=null){
455
+ this.allorgid.forEach((res)=>{
456
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
457
+ })
458
+ }
459
+ this.initParams()
460
+ },
461
+ getotherfooter() {
462
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
463
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
464
+ this.other = [];
465
+ this.footer = [];
466
+ // let exportdata = this.getCondition;
467
+ let otherInData = [];
468
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
469
+ let footerData = [], exportfield = this.getfield;
470
+ footerData.push("合计");
471
+ let self = this;
472
+ for (var field in self.sumsmodel) {
473
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
474
+ }
475
+ this.footer.push(footerData);
476
+ this.other.push(otherInData);
477
+ let date = []
478
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
479
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
480
+ this.other.push(date)
481
+ },
482
+ async getaddress(){
483
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
484
+ // self.loadMeterBooks()
485
+ let HttpReset = new HttpResetClass()
486
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
487
+ data: {
488
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
489
+ }
490
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
491
+ let house = [{label: '全部', value: ''}]
492
+ for (let row of data.data){
493
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
494
+ }
495
+ this.residentialArea = house
496
+ },
497
+
498
+
499
+
500
+
501
+ //把数据库查询数据转换为下拉数据
502
+ calculate(rows){
503
+ let data = []
504
+ rows.forEach((row, n) => {
505
+ data[n] = {label: row.f_residential_area, value: row.id}
506
+ })
507
+ return data
508
+ },
509
+
510
+ search(){
511
+ this.$refs.paged.$refs.cri.search()
512
+ },
513
+ cancel() {
514
+ this.show = false
515
+ },
516
+ showmsg(obj){
517
+ this.rowdata=obj
518
+ this.show=true
519
+ },
520
+ userTypeChange () {
521
+ this.gasproperties=[]
522
+ if(this.$refs.paged.$refs.cri.model !==null) {
523
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
524
+
525
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
526
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
527
+ // this.gasproperties.push({label: '全部', value: ''})
528
+ }
529
+ else{
530
+ this.gasproperties =[{label: '全部', value: ''}]
531
+ }
532
+ },
533
+ initParams() {
534
+ // 初始化气表品牌
535
+ let brandArr = []
536
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
537
+ let temp = {}
538
+ temp.label = item.label
539
+ temp.value = item.value.f_meter_brand
540
+ brandArr.push(temp)
541
+ })
542
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
543
+ //初始化气表价格
544
+ this.prices = this.$MagGetSaleParam.getPrices();
545
+ },
546
+ selfSearch(args) {
547
+ if(this.$refs.paged.$refs.cri.model.startDate == '' || this.$refs.paged.$refs.cri.model.endDate == ''){
548
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
549
+ return
550
+ }
551
+ //小区查询条件
552
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
553
+ if(this.area.length !== 0){
554
+ let str = JSON.stringify(this.area)
555
+ str = str.replace(/"/g,`'`)
556
+ str = str.replace(/\[/g,``)
557
+ str = str.replace(/\]/g,``)
558
+ //查询多个小区时条件
559
+ args.condition += ` and f_residential_area in ( ${str} )`
560
+ }
561
+ console.log("33333333333333333333")
562
+ let f_orgstr = this.orgCondtionStr
563
+ args.condition = `${args.condition} ` + f_orgstr
564
+ this.model.search(args.condition, args.model)
565
+ console.log("3333333333333")
566
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
567
+ },
568
+ clear() {
569
+ //清空部门和人员
570
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
571
+ //部门和人员变为全选
572
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
573
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
574
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
575
+ this.$refs.paged.$refs.cri.model[key] = []
576
+ })
577
+
578
+ },
579
+ // loadMeterBooks(){
580
+ // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
581
+ // },
582
+ dealmsg(val) {
583
+ val.model = this.model.model
584
+ this.$dispatch('deal-msg', val)
585
+ },
586
+ show() {
587
+ this.criteriaShow = true
588
+ },
589
+ hidden() {
590
+ this.criteriaShow = !this.criteriaShow
591
+ },
592
+ async getRes(condition,obj) {
593
+ this.orgCondtionStr = condition
594
+
595
+ },
596
+
597
+ },
598
+ events:{
599
+ 'getidcard'(IdCard){
600
+ // console.log(param)
601
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
602
+ }
603
+ },
604
+ watch: {
605
+ 'model'(val) {
606
+ },
607
+ async 'orgCondtionStr'(val) {
608
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
609
+ this.$refs.paged.$refs.cri.model.f_inputtor = []
610
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
611
+ this.meterbooks = [{label: '全部',value: ''}];
612
+ if(this.lastorgstr != val){
613
+ this.tempfalg = true;
614
+ this.lastorgstr = val;
615
+ }
616
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
617
+ this.tempfalg = false;
618
+ let a = val.substring(val.indexOf("(")+2)
619
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
620
+ }
621
+ let res = val.match(/'(.*?)'/)
622
+ console.log('正则提取:',res && res[1])
623
+ if (res) {
624
+ this.f_filialeid = res[1]
625
+ if(res.input !=null){
626
+ let resorgid = res.input.substring(res.input.indexOf("'"));
627
+ if(resorgid!= null && resorgid!=''){
628
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
629
+ // resorgid = resorgid.replaceAll("'","");
630
+ resorgid = resorgid.replace(/'/g,"");
631
+ this.allorgid = resorgid.split(",")
632
+ }
633
+ }
634
+ this.updateParams()
635
+ }
636
+ },
637
+ sumsmodel: {
638
+ handler: function (val) {
639
+ this.getotherfooter();
640
+ },
641
+ deep: true
642
+ }
643
+ },
644
+ computed: {
645
+ getPricenames() {
646
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
647
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
648
+ let pricetype = this.$refs.paged.model.model.pricetype;
649
+ if(this.$refs.paged.model.model !==null) {
650
+ let rs = []
651
+ let priceArr = []
652
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
653
+ let params = {
654
+ f_user_type: f_user_type[0],
655
+ f_gasproperties: f_gasproperties[0],
656
+ f_price_type: pricetype[0],
657
+ filter: this.f_filialeid,
658
+ prices: this.prices
659
+ }
660
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
661
+ let temp = {}
662
+ temp.label = item.label
663
+ temp.value = item.value.f_price_name
664
+ priceArr.push(temp)
665
+ })
666
+ rs = [{label: '全部', value: ''}, ...priceArr]
667
+ }
668
+ if (rs.length === 0) {
669
+ this.$refs.paged.model.model.f_price_name = ''
670
+ }
671
+ return rs
672
+ }
673
+ },
674
+ getCondition() {
675
+ return {
676
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
677
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
678
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
679
+ }
680
+ },
681
+ getfield() {
682
+ return exportConfig.handBookConfig
683
+ },
684
+ pricetypes() {
685
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
686
+ },
687
+ usertypes() {
688
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
689
+ }
690
+ }
691
+ }
692
+ </script>