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,831 +1,831 @@
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
-
11
- <div class="span" style="float:right;">
12
- <button class="button_search button_spacing" @click="search()">查询</button>
13
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
-
15
- <export-excel :data="$parent.$parent.getCondition"
16
- :field="$parent.$parent.getfield"
17
- :footer="$parent.$parent.footer"
18
- :header="$parent.$parent.other"
19
- sqlurl="api/af-revenue/logic/openapi/exportfile"
20
- sql-name="arrearsQuery"
21
- template-name='用户欠费查询导出'
22
- :choose-col="true"></export-excel>
23
-
24
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
- :defaultfield="$parent.$parent.defaultfield"
26
- titletable="用户欠费查询导出"
27
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
29
- 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
-
31
- </div>
32
- </div>
33
-
34
- <div class="row" v-show="$parent.$parent.criteriaShow">
35
- <div class="col-sm-2 form-group">
36
-
37
- <label for="startDate" class="font_normal_body">开始日期</label>
38
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
39
- v-model="model.startDate"
40
- :value.sync="model.startDate"
41
- :format="'yyyy-MM-dd HH:mm:ss'"
42
- :show-reset-button="true"
43
- >
44
- </datepicker>
45
- </div>
46
- <div class="col-sm-2 form-group">
47
- <label for="endDate" class="font_normal_body">结束日期</label>
48
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
49
- v-model="model.endDate"
50
- :value.sync="model.endDate"
51
- :format="'yyyy-MM-dd HH:mm:ss'"
52
- :show-reset-button="true"
53
- >
54
- </datepicker>
55
- </div>
56
- <div class="col-sm-2 form-group">
57
-
58
- <label for="inputstartDate" class="font_normal_body">抄表日期</label>
59
- <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
60
- v-model="model.inputstartDate"
61
- :value.sync="model.inputstartDate"
62
- :format="'yyyy-MM-dd 00:00:00'"
63
- :show-reset-button="true"
64
- condition="f_input_date >= '{}'"
65
- >
66
- </datepicker>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label for="inputendDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
70
- <datepicker id="inputendDate" placeholder="结束日期" style="width:60%"
71
- v-model="model.inputendDate"
72
- :value.sync="model.inputendDate"
73
- :format="'yyyy-MM-dd 23:59:59'"
74
- :show-reset-button="true"
75
- condition="f_input_date <= '{}'"
76
- >
77
- </datepicker>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">客户编号</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
82
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">客户名称</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
87
- condition="f_user_name like '%{}%'" placeholder="客户名称">
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
91
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
92
- condition="f_meternumber = '{}' " placeholder="表号">
93
- </div>
94
- <!--<div class="col-sm-2 form-group">-->
95
- <!--<label class="font_normal_body">收费编号</label>-->
96
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
97
- <!--condition="id = '{}'" placeholder="收费编号">-->
98
- <!--</div>-->
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">客户电话</label>
101
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
102
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
103
- </div>
104
- <!--<div class="col-sm-2 form-group">-->
105
- <!--<label class="font_normal_body">身份证号</label>-->
106
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
107
- <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
108
- <!--</div>-->
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">客户地址</label>
111
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
112
- condition="f_address like '%{}%'" placeholder='客户地址'>
113
- </div>
114
- <div class="col-sm-2 form-group">
115
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
116
- <v-select :value.sync="model.f_residential_area"
117
- class="select_list select"
118
- enter-push
119
- multiple
120
- condition="f_residential_area in {}"
121
- v-model="model.f_residential_area"
122
- style="width: 60%"
123
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
124
- close-on-select>
125
-
126
- </v-select>
127
- </div>
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body" >缴费类型</label>
130
- <v-select :value.sync="model.f_payment" multiple
131
- v-model="model.f_payment"
132
- :options='$parent.$parent.dypayment' placeholder='请选择'
133
- condition="f_cost_type in {}"
134
- close-on-select></v-select>
135
- </div>
136
- <!--<div class="col-sm-2 form-group">-->
137
- <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
138
- <!--<v-select :value.sync="model.f_payment" multiple-->
139
- <!--v-model="model.f_payment"-->
140
- <!--:options='$parent.$parent.payment' placeholder='请选择'-->
141
- <!--condition="f_payment in {}"-->
142
- <!--close-on-select></v-select>-->
143
- <!--</div>-->
144
- <!--<div class="col-sm-2 form-group">-->
145
- <!--<label class="font_normal_body">收费类型</label>-->
146
- <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
147
- <!--v-model="model.f_type"-->
148
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
- <!--condition="f_type = '{}'"-->
150
- <!--close-on-select></v-select>&ndash;&gt;-->
151
- <!--<v-select :value.sync="model.f_type" multiple-->
152
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
153
- <!--close-on-select clear-button-->
154
- <!--condition="f_type in {}"-->
155
- <!--v-model="model.f_type"></v-select>-->
156
- <!--</div>-->
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">客户类型</label>
159
- <v-select :value.sync="model.f_user_type"
160
- @change="$parent.$parent.userTypeChange()"
161
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
162
- condition="f_user_type = '{}'"
163
- close-on-select></v-select>
164
- </div>
165
- <div class="col-sm-2 form-group">
166
- <label class="font_normal_body">用气性质</label>
167
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
168
- :options='$parent.$parent.gasproperties' placeholder='请选择'
169
- condition="f_gasproperties = '{}'"
170
- close-on-select></v-select>
171
- </div>
172
- <div class="col-sm-2 form-group">
173
- <label class="font_normal_body">气价类型</label>
174
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
175
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
176
- close-on-select v-ref:type>
177
- </v-select>
178
- </div>
179
- <div class="col-sm-2 form-group">
180
- <label class="font_normal_body">气价名称</label>
181
- <v-select :value.sync="model.f_price_name"
182
- v-model="model.f_price_name"
183
- :options="$parent.$parent.getPricenames"
184
- condition="f_price_name = '{}'"
185
- close-on-select></v-select>
186
- </div>
187
- <div class="col-sm-2 form-group">
188
- <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
189
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
190
- condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
191
- </div>
192
- <div class="col-sm-2 form-group">
193
- <label class="font_normal_body" title="气费金额大于">气费金额</label>
194
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
195
- condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
196
- </div>
197
- <div class="col-sm-2 form-group">
198
- <label class="font_normal_body" title="欠费金额大于">欠费金额</label>
199
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_all"
200
- condition="f_oughtfee_all > '{}'" placeholder="欠费金额大于">
201
- </div>
202
- <div class="col-sm-2 form-group">
203
- <label class="font_normal_body">欠费期数</label>
204
- <input type="text" style="width:60%" class="input_search" v-model="model.c"
205
- condition="c > '{}'" placeholder='欠费期数大于'>
206
- </div>
207
- <div class="col-sm-2 form-group">
208
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
209
- <v-select :value.sync="model.f_inputtor"
210
- v-model="model.f_inputtor"
211
- :options='$parent.$parent.inputtores' placeholder='请选择'
212
- condition="f_inputtor = '{}'"
213
- @change="$parent.$parent.inputtorchange"
214
- close-on-select :value-single="true" :search="false">
215
- </v-select>
216
- </div>
217
- <div class="col-sm-2 form-group">
218
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
219
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
220
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
221
- style="width:60%"
222
- close-on-select
223
- condition="f_meter_book_num = '{}'"></v-select>
224
- </div>
225
- <!--<div class="col-sm-2 form-group">-->
226
- <!--<label class="font_normal_body">气价类型</label>-->
227
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
228
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
229
- <!--close-on-select v-ref:type>-->
230
- <!--</v-select>-->
231
- <!--</div>-->
232
- <!--<div class="col-sm-2 form-group">-->
233
- <!--<label class="font_normal_body">气价名称</label>-->
234
- <!--<v-select :value.sync="model.f_price_name"-->
235
- <!--v-model="model.f_price_name"-->
236
- <!--:options="$parent.$parent.getPricenames"-->
237
- <!--condition="f_price_name = '{}'"-->
238
- <!--close-on-select></v-select>-->
239
- <!--</div>-->
240
- <!--<div class="col-sm-2 form-group">-->
241
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
242
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
243
- <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
244
- <!--</div>-->
245
- </div>
246
- </div>
247
- </criteria>
248
-
249
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
250
- <template partial='head'>
251
- <tr>
252
- <th>
253
- <nobr>序号</nobr>
254
- </th>
255
- <th>
256
- <nobr>客户编号</nobr>
257
- </th>
258
- <th>
259
- <nobr>客户姓名</nobr>
260
- </th>
261
- <th>
262
- <nobr>小区名称</nobr>
263
- </th>
264
- <th>
265
- <nobr>地址</nobr>
266
- </th>
267
- <th>
268
- <nobr>客户电话</nobr>
269
- </th>
270
- <th>
271
- <nobr>备用电话</nobr>
272
- </th>
273
- <th>
274
- <nobr>表号</nobr>
275
- </th>
276
-
277
- <th>
278
- <nobr>欠费期数</nobr>
279
- </th>
280
- <th>
281
- <nobr>欠费区间</nobr>
282
- </th>
283
- <th>
284
- <nobr>上期抄表底数</nobr>
285
- </th>
286
- <th>
287
- <nobr>本期抄表底数</nobr>
288
- </th>
289
- <th>
290
- <nobr>用气量</nobr>
291
- </th>
292
- <th>
293
- <nobr>用气金额</nobr>
294
- </th>
295
- <th>
296
- <nobr>缴费时间</nobr>
297
- </th>
298
- <th>
299
- <nobr>已交金额</nobr>
300
- </th>
301
- <!--<th>-->
302
- <!--<nobr>回收率</nobr>-->
303
- <!--</th>-->
304
- <th>
305
- <nobr>应交气费</nobr>
306
- </th>
307
- <th>
308
- <nobr>违约金</nobr>
309
- </th>
310
- <th>
311
- <nobr>附加费</nobr>
312
- </th>
313
- <th>
314
- <nobr>上期余额</nobr>
315
- </th>
316
- <th>
317
- <nobr>合计欠费</nobr>
318
- </th>
319
- <th>
320
- <nobr>抄表员</nobr>
321
- </th>
322
- <th>
323
- <nobr>抄表册</nobr>
324
- </th>
325
- <th>
326
- <nobr>客户类型</nobr>
327
- </th>
328
- <th>
329
- <nobr>缴费类型</nobr>
330
- </th>
331
- <th>
332
- <nobr>用气性质</nobr>
333
- </th>
334
- <th>
335
- <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
336
- </th>
337
- </tr>
338
- </template>
339
- <template partial='body'>
340
- <td style="text-align:center">
341
- <nobr>{{$index+1}}</nobr>
342
- </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_userinfo_code}}</nobr>
345
- </td>
346
- <td style="text-align: center;">
347
- <nobr>{{row.f_user_name}}</nobr>
348
- </td>
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_residential_area}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_address}}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{row.f_user_phone}}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{row.f_rent_phone}}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{row.f_meternumber}}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{row.c}}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{row.f_hand_date}}</nobr>
369
- </td>
370
- <td style="text-align: center;">
371
- <nobr>{{row.f_last_tablebase}}</nobr>
372
- </td>
373
- <td style="text-align: center;">
374
- <nobr>{{row.f_tablebase}}</nobr>
375
- </td>
376
- <td style="text-align: center;">
377
- <nobr>{{row.f_oughtamount}}</nobr>
378
- </td>
379
- <td style="text-align: center;">
380
- <nobr>{{row.f_oughtfee}}</nobr>
381
- </td>
382
- <td style="text-align: center;">
383
- <nobr>{{row.f_operate_date}}</nobr>
384
- </td>
385
- <td style="text-align: center;">
386
- <nobr>{{row.f_debt_money}}</nobr>
387
- </td>
388
- <!--<td style="text-align: center;">-->
389
- <!--<nobr>{{row.f_hand_bv}}</nobr>-->
390
- <!--</td>-->
391
- <td style="text-align: center;">
392
- <nobr>{{row.f_oughtfee_new}}</nobr>
393
- </td>
394
- <td style="text-align: center;">
395
- <nobr>{{row.overdue}}</nobr>
396
- </td>
397
- <td style="text-align: center;">
398
- <nobr>{{row.f_garbage_fee}}</nobr>
399
- </td>
400
- <td style="text-align: center;">
401
- <nobr>{{row.f_balance}}</nobr>
402
- </td>
403
- <td style="text-align: center;">
404
- <nobr>{{row.f_oughtfee_all}}</nobr>
405
- </td>
406
- <td style="text-align: center;">
407
- <nobr>{{row.f_inputtor}}</nobr>
408
- </td>
409
- <td style="text-align: center;">
410
- <nobr>{{row.f_book_name}}</nobr>
411
- </td>
412
- <td style="text-align: center;">
413
- <nobr>{{row.f_user_type}}</nobr>
414
- </td>
415
- <td style="text-align: center;">
416
- <nobr>{{row.f_gasproperties}}</nobr>
417
- </td>
418
- <td style="text-align: center;">
419
- <nobr>{{row.f_cost_type}}</nobr>
420
- </td>
421
- <td style="text-align: center;">
422
- <nobr>{{row.f_comments}}</nobr>
423
- </td>
424
- </template>
425
- <template partial='foot'></template>
426
- </data-grid>
427
- </criteria-paged>
428
- <table class="table-hover">
429
- <tr style="position: relative" class="table-bordered">
430
- <td
431
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
432
- 汇总信息
433
- </td>
434
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
435
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
436
- </td>
437
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
438
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
439
- </td>
440
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
441
- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
442
- </td>
443
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
444
- 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
445
- </td>
446
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
447
- 违约金合计:&emsp;{{sumsmodel.overdue}}
448
- </td>
449
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
450
- 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
451
- </td>
452
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
453
- 上期余额合计:&emsp;{{sumsmodel.f_balance}}
454
- </td>
455
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
456
- 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
457
- </td>
458
- </tr>
459
- </table>
460
- </div>
461
- <div v-if="show">
462
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
463
- </div>
464
- </div>
465
- </div>
466
- </template>
467
-
468
- <script>
469
- import {HttpResetClass, PagedList} from 'vue-client'
470
- import exportConfig from './config/exportConfig'
471
-
472
- let readySomething = async function (self) {
473
- self.$MagGetSaleParam.initinputtor();
474
- self.getinputtores();
475
- //加载抄表册
476
- self.initmeterbook();
477
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
478
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
479
- // self.$refs.paged.$refs.cri.search()
480
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
481
- await self.$MagLoadParams.loadParam()
482
- self.initParams()
483
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
484
- }
485
- export default {
486
- data() {
487
- return {
488
- config: {
489
- defaultPrint: ['f_userinfo_code', 'f_address']
490
- },
491
- other:[],
492
- footer:[],
493
- //f_price_name:[],
494
- gasproperties:[],
495
- showinfo: false,
496
- data: {},
497
- show:false,
498
- rowdata:{},
499
- initres: {
500
- org:[this.$login.f.orgid],
501
- dep:[],
502
- user:[]
503
- },
504
- model: new PagedList('api/af-revenue/sql/arrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
505
- f_oughtamount: 0,
506
- f_oughtfee: 0,
507
- f_debt_money: 0,
508
- f_oughtfee_new: 0,
509
- overdue: 0,
510
- f_garbage_fee: 0,
511
- f_balance:0,
512
- f_oughtfee_all: 0
513
- }),
514
- criteriaShow: false,
515
- orgCondtionStr: '',
516
- // 下拉框
517
- meterbrands: [],
518
- pricenames: [],
519
- prices: [],
520
- area: [],
521
- //合计数据
522
- defaultfield: [],
523
- //小区
524
- residentialArea: [],
525
- sumsmodel: {},
526
- f_filialeid: this.$login.f.f_orgid,
527
- meterbooks:[{label: '全部',value: ''}], //抄表册
528
- inputtores:[{label: '全部',value: ''}],
529
- allorgid:[],
530
- tempfalg :false,
531
- lastorgstr:'',
532
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
533
- }
534
- },
535
- ready() {
536
- this.getaddress()
537
- readySomething(this).then(() => {
538
- this.$emit('ready')
539
- }).catch((error) => {
540
- this.$emit('error', error)
541
- })
542
- },
543
- methods: {
544
- async inputtorchange(){
545
- let val = this.$refs.paged.$refs.cri.model.f_inputtor;
546
- if(val!=null && val !=""){
547
- let param={
548
- items:'*',
549
- tablename:'t_meter_book',
550
- condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
551
- orderitem:'id'
552
-
553
- }
554
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
555
- if (getMeterBooks.data) {
556
- if(getMeterBooks.data.length >0){
557
- let rs = [];
558
- getMeterBooks.data.forEach((item)=>{
559
- let temp = {
560
- label:item.f_book_name,
561
- value:item.id
562
- };
563
- rs.push(temp);
564
-
565
- })
566
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
567
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
568
- }else{
569
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
570
- this.meterbooks = [{label: '全部',value: ''}];
571
- }
572
- }
573
- }else{
574
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
575
- this.meterbooks = [{label: '全部',value: ''}];
576
- this.initmeterbook();
577
- }
578
- },
579
- async initmeterbook(orgstr){
580
- if(orgstr == null ){
581
- orgstr = this.f_filialeid;
582
- }
583
- //获取新的抄表册,先去清理所有的抄表册
584
- this.$GetSaleParam.meterbooks = [];
585
- //开始加载新的抄表册
586
- await this.$LoadParams.loadMeterBook(orgstr)
587
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
588
- },
589
- getinputtores () {
590
- // 获取抄表员
591
- let rs = []
592
- if (this.$login.f.f_gasman.length > 0) {
593
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
594
- let temp = {
595
- label: this.$login.f.f_gasman[i].name,
596
- value: this.$login.f.f_gasman[i].name
597
- }
598
- rs.push(temp)
599
- }
600
- }
601
- return [{label: '全部', value: ''}, ...rs]
602
- },
603
- //加载抄表册
604
- loadMeterBooks(){
605
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
606
- },
607
- getotherfooter(){
608
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
609
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
610
- this.other=[];
611
- this.footer=[];
612
- let exportdata = this.getCondition;
613
- let otherInData=[];
614
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
615
- let footerData=[],exportfield=this.getfield;
616
- footerData.push("合计");
617
- let self =this;
618
- for(var field in self.sumsmodel){
619
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
620
- }
621
- this.footer.push(footerData);
622
- this.other.push(otherInData);
623
- },
624
- async getaddress(){
625
- console.log('开始获取小区')
626
- let HttpReset = new HttpResetClass()
627
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
628
- data: {
629
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
630
- }
631
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
632
- console.log('小区',data)
633
- let house = [{label: '全部', value: ''}]
634
- for (let row of data.data){
635
- console.log('开始保存小区')
636
- house.push({label: row.f_residential_area, value: row.f_residential_area})
637
- }
638
- this.residentialArea = house
639
- },
640
- //把数据库查询数据转换为下拉数据
641
- calculate(rows){
642
- let data = []
643
- rows.forEach((row, n) => {
644
- data[n] = {label: row.f_residential_area, value: row.id}
645
- })
646
- return data
647
- },
648
-
649
- search(){
650
- this.$refs.paged.$refs.cri.search()
651
- },
652
- cancel() {
653
- this.show = false
654
- },
655
- showmsg(obj){
656
- this.rowdata=obj
657
- this.show=true
658
- },
659
- userTypeChange () {
660
- this.gasproperties=[]
661
- if(this.$refs.paged.$refs.cri.model !==null) {
662
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
663
-
664
- console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
665
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
666
- // this.gasproperties.push({label: '全部', value: ''})
667
- }
668
- else{
669
- this.gasproperties =[{label: '全部', value: ''}]
670
- }
671
- },
672
- initParams() {
673
- // 初始化气表品牌
674
- let brandArr = []
675
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
676
- let temp = {}
677
- temp.label = item.label
678
- temp.value = item.value.f_meter_brand
679
- brandArr.push(temp)
680
- })
681
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
682
- //初始化气表价格
683
- this.prices = this.$MagGetSaleParam.getPrices();
684
- },
685
- selfSearch(args) {
686
- console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
687
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
688
- this.$refs.paged.$refs.cri.model.startDate='2010-01-01 00:00:00'
689
- this.$refs.paged.$refs.cri.model.endDate=new Date()
690
- }
691
- //小区查询条件
692
- let f_orgstr = this.orgCondtionStr
693
- args.condition = `${args.condition} ` + f_orgstr
694
- this.model.search(args.condition, args.model)
695
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
696
- },
697
- clear() {
698
- //清空部门和人员
699
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
700
- //部门和人员变为全选
701
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
702
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
703
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
704
- this.$refs.paged.$refs.cri.model[key] = []
705
- })
706
-
707
- },
708
- dealmsg(val) {
709
- val.model = this.model.model
710
- this.$dispatch('deal-msg', val)
711
- },
712
- show() {
713
- this.criteriaShow = true
714
- },
715
- hidden() {
716
- this.criteriaShow = !this.criteriaShow
717
- },
718
- async getRes(condition,obj) {
719
- this.orgCondtionStr = condition
720
- this.orgname = obj.orgnames[0]
721
- this.depname = obj.depnames[0]
722
-
723
- },
724
- async updateParams() {
725
- await this.$MagLoadParams.loadParam(this.f_filialeid)
726
- this.inputtores = [];
727
- this.inputtores.push({label: "全部", value: ""})
728
- if(this.allorgid!=null){
729
- this.allorgid.forEach((res)=>{
730
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
731
- })
732
- }
733
- this.initParams()
734
- },
735
- },
736
- events:{
737
- 'getidcard'(IdCard){
738
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
739
- }
740
- },
741
- watch: {
742
- 'model'(val) {
743
- },
744
- async 'orgCondtionStr'(val) {
745
- this.meterbooks = [{label: '全部',value: ''}];
746
- if(this.lastorgstr != val){
747
- this.tempfalg = true;
748
- this.lastorgstr = val;
749
- }
750
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
751
- this.tempfalg = false;
752
- let a = val.substring(val.indexOf("(")+2)
753
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
754
- }
755
- let res = val.match(/'(.*?)'/)
756
- if (res) {
757
- this.f_filialeid = res[1]
758
- if(res.input !=null){
759
- let resorgid = res.input.substring(res.input.indexOf("'"));
760
- if(resorgid!= null && resorgid!=''){
761
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
762
- // resorgid = resorgid.replaceAll("'","");
763
- resorgid = resorgid.replace(/'/g,"");
764
- this.allorgid = resorgid.split(",")
765
- }
766
- }
767
- this.updateParams()
768
- }
769
- },
770
- sumsmodel:{
771
- handler: function(val) {
772
- this.getotherfooter();
773
- },
774
- deep: true
775
- }
776
- },
777
- computed: {
778
- pricetypes() {
779
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
780
- },
781
-
782
- getPricenames() {
783
- let f_user_type = this.$refs.paged.model.model.f_user_type;
784
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
785
- let pricetype = this.$refs.paged.model.model.pricetype;
786
- if(this.$refs.paged.model.model !==null) {
787
- let rs = []
788
- let priceArr = []
789
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
790
- let params = {
791
- f_user_type: f_user_type[0],
792
- f_gasproperties: f_gasproperties[0],
793
- f_price_type: pricetype[0],
794
- filter: this.f_filialeid,
795
- prices: this.prices
796
- }
797
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
798
- let temp = {}
799
- temp.label = item.label
800
- temp.value = item.value.f_price_name
801
- priceArr.push(temp)
802
- })
803
- rs = [{label: '全部', value: ''}, ...priceArr]
804
- }
805
- if (rs.length === 0) {
806
- this.$refs.paged.model.model.f_price_name = ''
807
- }
808
- return rs
809
- }
810
- },
811
- getCondition() {
812
- return {
813
- startDate: this.$refs.paged.$refs.cri.model.startDate,
814
- endDate: this.$refs.paged.$refs.cri.model.endDate,
815
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
816
- },
817
- getfield() {
818
- return exportConfig.arrearsConfig
819
- },
820
- usertypes() {
821
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
822
- },
823
- metertypes() {
824
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
825
- },
826
- chargetype() {
827
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
828
- }
829
- }
830
- }
831
- </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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
+
11
+ <div class="span" style="float:right;">
12
+ <button class="button_search button_spacing" @click="search()">查询</button>
13
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
+
15
+ <export-excel :data="$parent.$parent.getCondition"
16
+ :field="$parent.$parent.getfield"
17
+ :footer="$parent.$parent.footer"
18
+ :header="$parent.$parent.other"
19
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
20
+ sql-name="arrearsQuery"
21
+ template-name='用户欠费查询导出'
22
+ :choose-col="true"></export-excel>
23
+
24
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
+ :defaultfield="$parent.$parent.defaultfield"
26
+ titletable="用户欠费查询导出"
27
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
29
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
+
31
+ </div>
32
+ </div>
33
+
34
+ <div class="row" v-show="$parent.$parent.criteriaShow">
35
+ <div class="col-sm-2 form-group">
36
+
37
+ <label for="startDate" class="font_normal_body">开始日期</label>
38
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
39
+ v-model="model.startDate"
40
+ :value.sync="model.startDate"
41
+ :format="'yyyy-MM-dd HH:mm:ss'"
42
+ :show-reset-button="true"
43
+ >
44
+ </datepicker>
45
+ </div>
46
+ <div class="col-sm-2 form-group">
47
+ <label for="endDate" class="font_normal_body">结束日期</label>
48
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
49
+ v-model="model.endDate"
50
+ :value.sync="model.endDate"
51
+ :format="'yyyy-MM-dd HH:mm:ss'"
52
+ :show-reset-button="true"
53
+ >
54
+ </datepicker>
55
+ </div>
56
+ <div class="col-sm-2 form-group">
57
+
58
+ <label for="inputstartDate" class="font_normal_body">抄表日期</label>
59
+ <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
60
+ v-model="model.inputstartDate"
61
+ :value.sync="model.inputstartDate"
62
+ :format="'yyyy-MM-dd 00:00:00'"
63
+ :show-reset-button="true"
64
+ condition="f_input_date >= '{}'"
65
+ >
66
+ </datepicker>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label for="inputendDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
70
+ <datepicker id="inputendDate" placeholder="结束日期" style="width:60%"
71
+ v-model="model.inputendDate"
72
+ :value.sync="model.inputendDate"
73
+ :format="'yyyy-MM-dd 23:59:59'"
74
+ :show-reset-button="true"
75
+ condition="f_input_date <= '{}'"
76
+ >
77
+ </datepicker>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">客户编号</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
82
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">客户名称</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
87
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
91
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
92
+ condition="f_meternumber = '{}' " placeholder="表号">
93
+ </div>
94
+ <!--<div class="col-sm-2 form-group">-->
95
+ <!--<label class="font_normal_body">收费编号</label>-->
96
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
97
+ <!--condition="id = '{}'" placeholder="收费编号">-->
98
+ <!--</div>-->
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">客户电话</label>
101
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
102
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
103
+ </div>
104
+ <!--<div class="col-sm-2 form-group">-->
105
+ <!--<label class="font_normal_body">身份证号</label>-->
106
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
107
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
108
+ <!--</div>-->
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">客户地址</label>
111
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
112
+ condition="f_address like '%{}%'" placeholder='客户地址'>
113
+ </div>
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
116
+ <v-select :value.sync="model.f_residential_area"
117
+ class="select_list select"
118
+ enter-push
119
+ multiple
120
+ condition="f_residential_area in {}"
121
+ v-model="model.f_residential_area"
122
+ style="width: 60%"
123
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
124
+ close-on-select>
125
+
126
+ </v-select>
127
+ </div>
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body" >缴费类型</label>
130
+ <v-select :value.sync="model.f_payment" multiple
131
+ v-model="model.f_payment"
132
+ :options='$parent.$parent.dypayment' placeholder='请选择'
133
+ condition="f_cost_type in {}"
134
+ close-on-select></v-select>
135
+ </div>
136
+ <!--<div class="col-sm-2 form-group">-->
137
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
138
+ <!--<v-select :value.sync="model.f_payment" multiple-->
139
+ <!--v-model="model.f_payment"-->
140
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
141
+ <!--condition="f_payment in {}"-->
142
+ <!--close-on-select></v-select>-->
143
+ <!--</div>-->
144
+ <!--<div class="col-sm-2 form-group">-->
145
+ <!--<label class="font_normal_body">收费类型</label>-->
146
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
147
+ <!--v-model="model.f_type"-->
148
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
+ <!--condition="f_type = '{}'"-->
150
+ <!--close-on-select></v-select>&ndash;&gt;-->
151
+ <!--<v-select :value.sync="model.f_type" multiple-->
152
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
153
+ <!--close-on-select clear-button-->
154
+ <!--condition="f_type in {}"-->
155
+ <!--v-model="model.f_type"></v-select>-->
156
+ <!--</div>-->
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">客户类型</label>
159
+ <v-select :value.sync="model.f_user_type"
160
+ @change="$parent.$parent.userTypeChange()"
161
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
162
+ condition="f_user_type = '{}'"
163
+ close-on-select></v-select>
164
+ </div>
165
+ <div class="col-sm-2 form-group">
166
+ <label class="font_normal_body">用气性质</label>
167
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
168
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
169
+ condition="f_gasproperties = '{}'"
170
+ close-on-select></v-select>
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">气价类型</label>
174
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
175
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
176
+ close-on-select v-ref:type>
177
+ </v-select>
178
+ </div>
179
+ <div class="col-sm-2 form-group">
180
+ <label class="font_normal_body">气价名称</label>
181
+ <v-select :value.sync="model.f_price_name"
182
+ v-model="model.f_price_name"
183
+ :options="$parent.$parent.getPricenames"
184
+ condition="f_price_name = '{}'"
185
+ close-on-select></v-select>
186
+ </div>
187
+ <div class="col-sm-2 form-group">
188
+ <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
189
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
190
+ condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body" title="气费金额大于">气费金额</label>
194
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
195
+ condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
196
+ </div>
197
+ <div class="col-sm-2 form-group">
198
+ <label class="font_normal_body" title="欠费金额大于">欠费金额</label>
199
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_all"
200
+ condition="f_oughtfee_all > '{}'" placeholder="欠费金额大于">
201
+ </div>
202
+ <div class="col-sm-2 form-group">
203
+ <label class="font_normal_body">欠费期数</label>
204
+ <input type="text" style="width:60%" class="input_search" v-model="model.c"
205
+ condition="c > '{}'" placeholder='欠费期数大于'>
206
+ </div>
207
+ <div class="col-sm-2 form-group">
208
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
209
+ <v-select :value.sync="model.f_inputtor"
210
+ v-model="model.f_inputtor"
211
+ :options='$parent.$parent.inputtores' placeholder='请选择'
212
+ condition="f_inputtor = '{}'"
213
+ @change="$parent.$parent.inputtorchange"
214
+ close-on-select :value-single="true" :search="false">
215
+ </v-select>
216
+ </div>
217
+ <div class="col-sm-2 form-group">
218
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
219
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
220
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
221
+ style="width:60%"
222
+ close-on-select
223
+ condition="f_meter_book_num = '{}'"></v-select>
224
+ </div>
225
+ <!--<div class="col-sm-2 form-group">-->
226
+ <!--<label class="font_normal_body">气价类型</label>-->
227
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
228
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
229
+ <!--close-on-select v-ref:type>-->
230
+ <!--</v-select>-->
231
+ <!--</div>-->
232
+ <!--<div class="col-sm-2 form-group">-->
233
+ <!--<label class="font_normal_body">气价名称</label>-->
234
+ <!--<v-select :value.sync="model.f_price_name"-->
235
+ <!--v-model="model.f_price_name"-->
236
+ <!--:options="$parent.$parent.getPricenames"-->
237
+ <!--condition="f_price_name = '{}'"-->
238
+ <!--close-on-select></v-select>-->
239
+ <!--</div>-->
240
+ <!--<div class="col-sm-2 form-group">-->
241
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
242
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
243
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
244
+ <!--</div>-->
245
+ </div>
246
+ </div>
247
+ </criteria>
248
+
249
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
250
+ <template partial='head'>
251
+ <tr>
252
+ <th>
253
+ <nobr>序号</nobr>
254
+ </th>
255
+ <th>
256
+ <nobr>客户编号</nobr>
257
+ </th>
258
+ <th>
259
+ <nobr>客户姓名</nobr>
260
+ </th>
261
+ <th>
262
+ <nobr>小区名称</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>地址</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>客户电话</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>备用电话</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>表号</nobr>
275
+ </th>
276
+
277
+ <th>
278
+ <nobr>欠费期数</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>欠费区间</nobr>
282
+ </th>
283
+ <th>
284
+ <nobr>上期抄表底数</nobr>
285
+ </th>
286
+ <th>
287
+ <nobr>本期抄表底数</nobr>
288
+ </th>
289
+ <th>
290
+ <nobr>用气量</nobr>
291
+ </th>
292
+ <th>
293
+ <nobr>用气金额</nobr>
294
+ </th>
295
+ <th>
296
+ <nobr>缴费时间</nobr>
297
+ </th>
298
+ <th>
299
+ <nobr>已交金额</nobr>
300
+ </th>
301
+ <!--<th>-->
302
+ <!--<nobr>回收率</nobr>-->
303
+ <!--</th>-->
304
+ <th>
305
+ <nobr>应交气费</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>违约金</nobr>
309
+ </th>
310
+ <th>
311
+ <nobr>附加费</nobr>
312
+ </th>
313
+ <th>
314
+ <nobr>上期余额</nobr>
315
+ </th>
316
+ <th>
317
+ <nobr>合计欠费</nobr>
318
+ </th>
319
+ <th>
320
+ <nobr>抄表员</nobr>
321
+ </th>
322
+ <th>
323
+ <nobr>抄表册</nobr>
324
+ </th>
325
+ <th>
326
+ <nobr>客户类型</nobr>
327
+ </th>
328
+ <th>
329
+ <nobr>缴费类型</nobr>
330
+ </th>
331
+ <th>
332
+ <nobr>用气性质</nobr>
333
+ </th>
334
+ <th>
335
+ <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
336
+ </th>
337
+ </tr>
338
+ </template>
339
+ <template partial='body'>
340
+ <td style="text-align:center">
341
+ <nobr>{{$index+1}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_userinfo_code}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_user_name}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_residential_area}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_address}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_user_phone}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_rent_phone}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_meternumber}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.c}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_hand_date}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.f_last_tablebase}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_tablebase}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.f_oughtamount}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;">
380
+ <nobr>{{row.f_oughtfee}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>{{row.f_operate_date}}</nobr>
384
+ </td>
385
+ <td style="text-align: center;">
386
+ <nobr>{{row.f_debt_money}}</nobr>
387
+ </td>
388
+ <!--<td style="text-align: center;">-->
389
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
390
+ <!--</td>-->
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.f_oughtfee_new}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.overdue}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.f_garbage_fee}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;">
401
+ <nobr>{{row.f_balance}}</nobr>
402
+ </td>
403
+ <td style="text-align: center;">
404
+ <nobr>{{row.f_oughtfee_all}}</nobr>
405
+ </td>
406
+ <td style="text-align: center;">
407
+ <nobr>{{row.f_inputtor}}</nobr>
408
+ </td>
409
+ <td style="text-align: center;">
410
+ <nobr>{{row.f_book_name}}</nobr>
411
+ </td>
412
+ <td style="text-align: center;">
413
+ <nobr>{{row.f_user_type}}</nobr>
414
+ </td>
415
+ <td style="text-align: center;">
416
+ <nobr>{{row.f_gasproperties}}</nobr>
417
+ </td>
418
+ <td style="text-align: center;">
419
+ <nobr>{{row.f_cost_type}}</nobr>
420
+ </td>
421
+ <td style="text-align: center;">
422
+ <nobr>{{row.f_comments}}</nobr>
423
+ </td>
424
+ </template>
425
+ <template partial='foot'></template>
426
+ </data-grid>
427
+ </criteria-paged>
428
+ <table class="table-hover">
429
+ <tr style="position: relative" class="table-bordered">
430
+ <td
431
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
432
+ 汇总信息
433
+ </td>
434
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
435
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
436
+ </td>
437
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
438
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
439
+ </td>
440
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
441
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
442
+ </td>
443
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
444
+ 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
445
+ </td>
446
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
447
+ 违约金合计:&emsp;{{sumsmodel.overdue}}
448
+ </td>
449
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
450
+ 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
451
+ </td>
452
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
453
+ 上期余额合计:&emsp;{{sumsmodel.f_balance}}
454
+ </td>
455
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
456
+ 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
457
+ </td>
458
+ </tr>
459
+ </table>
460
+ </div>
461
+ <div v-if="show">
462
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ </template>
467
+
468
+ <script>
469
+ import {HttpResetClass, PagedList} from 'vue-client'
470
+ import exportConfig from './config/exportConfig'
471
+
472
+ let readySomething = async function (self) {
473
+ self.$MagGetSaleParam.initinputtor();
474
+ self.getinputtores();
475
+ //加载抄表册
476
+ self.initmeterbook();
477
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
478
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
479
+ // self.$refs.paged.$refs.cri.search()
480
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
481
+ await self.$MagLoadParams.loadParam()
482
+ self.initParams()
483
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
484
+ }
485
+ export default {
486
+ data() {
487
+ return {
488
+ config: {
489
+ defaultPrint: ['f_userinfo_code', 'f_address']
490
+ },
491
+ other:[],
492
+ footer:[],
493
+ //f_price_name:[],
494
+ gasproperties:[],
495
+ showinfo: false,
496
+ data: {},
497
+ show:false,
498
+ rowdata:{},
499
+ initres: {
500
+ org:[this.$login.f.orgid],
501
+ dep:[],
502
+ user:[]
503
+ },
504
+ model: new PagedList('api/af-revenue/sql/arrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
505
+ f_oughtamount: 0,
506
+ f_oughtfee: 0,
507
+ f_debt_money: 0,
508
+ f_oughtfee_new: 0,
509
+ overdue: 0,
510
+ f_garbage_fee: 0,
511
+ f_balance:0,
512
+ f_oughtfee_all: 0
513
+ }),
514
+ criteriaShow: false,
515
+ orgCondtionStr: '',
516
+ // 下拉框
517
+ meterbrands: [],
518
+ pricenames: [],
519
+ prices: [],
520
+ area: [],
521
+ //合计数据
522
+ defaultfield: [],
523
+ //小区
524
+ residentialArea: [],
525
+ sumsmodel: {},
526
+ f_filialeid: this.$login.f.f_orgid,
527
+ meterbooks:[{label: '全部',value: ''}], //抄表册
528
+ inputtores:[{label: '全部',value: ''}],
529
+ allorgid:[],
530
+ tempfalg :false,
531
+ lastorgstr:'',
532
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
533
+ }
534
+ },
535
+ ready() {
536
+ this.getaddress()
537
+ readySomething(this).then(() => {
538
+ this.$emit('ready')
539
+ }).catch((error) => {
540
+ this.$emit('error', error)
541
+ })
542
+ },
543
+ methods: {
544
+ async inputtorchange(){
545
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor;
546
+ if(val!=null && val !=""){
547
+ let param={
548
+ items:'*',
549
+ tablename:'t_meter_book',
550
+ condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
551
+ orderitem:'id'
552
+
553
+ }
554
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
555
+ if (getMeterBooks.data) {
556
+ if(getMeterBooks.data.length >0){
557
+ let rs = [];
558
+ getMeterBooks.data.forEach((item)=>{
559
+ let temp = {
560
+ label:item.f_book_name,
561
+ value:item.id
562
+ };
563
+ rs.push(temp);
564
+
565
+ })
566
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
567
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
568
+ }else{
569
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
570
+ this.meterbooks = [{label: '全部',value: ''}];
571
+ }
572
+ }
573
+ }else{
574
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
575
+ this.meterbooks = [{label: '全部',value: ''}];
576
+ this.initmeterbook();
577
+ }
578
+ },
579
+ async initmeterbook(orgstr){
580
+ if(orgstr == null ){
581
+ orgstr = this.f_filialeid;
582
+ }
583
+ //获取新的抄表册,先去清理所有的抄表册
584
+ this.$GetSaleParam.meterbooks = [];
585
+ //开始加载新的抄表册
586
+ await this.$LoadParams.loadMeterBook(orgstr)
587
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
588
+ },
589
+ getinputtores () {
590
+ // 获取抄表员
591
+ let rs = []
592
+ if (this.$login.f.f_gasman.length > 0) {
593
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
594
+ let temp = {
595
+ label: this.$login.f.f_gasman[i].name,
596
+ value: this.$login.f.f_gasman[i].name
597
+ }
598
+ rs.push(temp)
599
+ }
600
+ }
601
+ return [{label: '全部', value: ''}, ...rs]
602
+ },
603
+ //加载抄表册
604
+ loadMeterBooks(){
605
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
606
+ },
607
+ getotherfooter(){
608
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
609
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
610
+ this.other=[];
611
+ this.footer=[];
612
+ let exportdata = this.getCondition;
613
+ let otherInData=[];
614
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
615
+ let footerData=[],exportfield=this.getfield;
616
+ footerData.push("合计");
617
+ let self =this;
618
+ for(var field in self.sumsmodel){
619
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
620
+ }
621
+ this.footer.push(footerData);
622
+ this.other.push(otherInData);
623
+ },
624
+ async getaddress(){
625
+ console.log('开始获取小区')
626
+ let HttpReset = new HttpResetClass()
627
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
628
+ data: {
629
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
630
+ }
631
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
632
+ console.log('小区',data)
633
+ let house = [{label: '全部', value: ''}]
634
+ for (let row of data.data){
635
+ console.log('开始保存小区')
636
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
637
+ }
638
+ this.residentialArea = house
639
+ },
640
+ //把数据库查询数据转换为下拉数据
641
+ calculate(rows){
642
+ let data = []
643
+ rows.forEach((row, n) => {
644
+ data[n] = {label: row.f_residential_area, value: row.id}
645
+ })
646
+ return data
647
+ },
648
+
649
+ search(){
650
+ this.$refs.paged.$refs.cri.search()
651
+ },
652
+ cancel() {
653
+ this.show = false
654
+ },
655
+ showmsg(obj){
656
+ this.rowdata=obj
657
+ this.show=true
658
+ },
659
+ userTypeChange () {
660
+ this.gasproperties=[]
661
+ if(this.$refs.paged.$refs.cri.model !==null) {
662
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
663
+
664
+ console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
665
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
666
+ // this.gasproperties.push({label: '全部', value: ''})
667
+ }
668
+ else{
669
+ this.gasproperties =[{label: '全部', value: ''}]
670
+ }
671
+ },
672
+ initParams() {
673
+ // 初始化气表品牌
674
+ let brandArr = []
675
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
676
+ let temp = {}
677
+ temp.label = item.label
678
+ temp.value = item.value.f_meter_brand
679
+ brandArr.push(temp)
680
+ })
681
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
682
+ //初始化气表价格
683
+ this.prices = this.$MagGetSaleParam.getPrices();
684
+ },
685
+ selfSearch(args) {
686
+ console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
687
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
688
+ this.$refs.paged.$refs.cri.model.startDate='2010-01-01 00:00:00'
689
+ this.$refs.paged.$refs.cri.model.endDate=new Date()
690
+ }
691
+ //小区查询条件
692
+ let f_orgstr = this.orgCondtionStr
693
+ args.condition = `${args.condition} ` + f_orgstr
694
+ this.model.search(args.condition, args.model)
695
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
696
+ },
697
+ clear() {
698
+ //清空部门和人员
699
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
700
+ //部门和人员变为全选
701
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
702
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
703
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
704
+ this.$refs.paged.$refs.cri.model[key] = []
705
+ })
706
+
707
+ },
708
+ dealmsg(val) {
709
+ val.model = this.model.model
710
+ this.$dispatch('deal-msg', val)
711
+ },
712
+ show() {
713
+ this.criteriaShow = true
714
+ },
715
+ hidden() {
716
+ this.criteriaShow = !this.criteriaShow
717
+ },
718
+ async getRes(condition,obj) {
719
+ this.orgCondtionStr = condition
720
+ this.orgname = obj.orgnames[0]
721
+ this.depname = obj.depnames[0]
722
+
723
+ },
724
+ async updateParams() {
725
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
726
+ this.inputtores = [];
727
+ this.inputtores.push({label: "全部", value: ""})
728
+ if(this.allorgid!=null){
729
+ this.allorgid.forEach((res)=>{
730
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
731
+ })
732
+ }
733
+ this.initParams()
734
+ },
735
+ },
736
+ events:{
737
+ 'getidcard'(IdCard){
738
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
739
+ }
740
+ },
741
+ watch: {
742
+ 'model'(val) {
743
+ },
744
+ async 'orgCondtionStr'(val) {
745
+ this.meterbooks = [{label: '全部',value: ''}];
746
+ if(this.lastorgstr != val){
747
+ this.tempfalg = true;
748
+ this.lastorgstr = val;
749
+ }
750
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
751
+ this.tempfalg = false;
752
+ let a = val.substring(val.indexOf("(")+2)
753
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
754
+ }
755
+ let res = val.match(/'(.*?)'/)
756
+ if (res) {
757
+ this.f_filialeid = res[1]
758
+ if(res.input !=null){
759
+ let resorgid = res.input.substring(res.input.indexOf("'"));
760
+ if(resorgid!= null && resorgid!=''){
761
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
762
+ // resorgid = resorgid.replaceAll("'","");
763
+ resorgid = resorgid.replace(/'/g,"");
764
+ this.allorgid = resorgid.split(",")
765
+ }
766
+ }
767
+ this.updateParams()
768
+ }
769
+ },
770
+ sumsmodel:{
771
+ handler: function(val) {
772
+ this.getotherfooter();
773
+ },
774
+ deep: true
775
+ }
776
+ },
777
+ computed: {
778
+ pricetypes() {
779
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
780
+ },
781
+
782
+ getPricenames() {
783
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
784
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
785
+ let pricetype = this.$refs.paged.model.model.pricetype;
786
+ if(this.$refs.paged.model.model !==null) {
787
+ let rs = []
788
+ let priceArr = []
789
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
790
+ let params = {
791
+ f_user_type: f_user_type[0],
792
+ f_gasproperties: f_gasproperties[0],
793
+ f_price_type: pricetype[0],
794
+ filter: this.f_filialeid,
795
+ prices: this.prices
796
+ }
797
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
798
+ let temp = {}
799
+ temp.label = item.label
800
+ temp.value = item.value.f_price_name
801
+ priceArr.push(temp)
802
+ })
803
+ rs = [{label: '全部', value: ''}, ...priceArr]
804
+ }
805
+ if (rs.length === 0) {
806
+ this.$refs.paged.model.model.f_price_name = ''
807
+ }
808
+ return rs
809
+ }
810
+ },
811
+ getCondition() {
812
+ return {
813
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
814
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
815
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
816
+ },
817
+ getfield() {
818
+ return exportConfig.arrearsConfig
819
+ },
820
+ usertypes() {
821
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
822
+ },
823
+ metertypes() {
824
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
825
+ },
826
+ chargetype() {
827
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
828
+ }
829
+ }
830
+ }
831
+ </script>