manage-client 3.3.231 → 3.3.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/build/dev-server.js +190 -190
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/gradlew +234 -234
  4. package/gradlew.bat +89 -89
  5. package/hs_err_pid13052.log +206 -206
  6. package/package.json +111 -111
  7. package/src/components/SellReport/BusinessClassify.vue +292 -292
  8. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  9. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  10. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -0
  11. package/src/components/SellReport/ManageSellType.vue +267 -267
  12. package/src/components/SellReport/ReportItems.vue +312 -312
  13. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  14. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  15. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  16. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  17. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  18. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  19. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  20. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  21. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  22. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  23. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  24. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  25. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  26. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  27. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  29. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  30. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  31. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  32. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  33. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  34. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  35. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  36. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  37. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  38. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  39. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  40. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  41. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  42. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  43. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  44. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  45. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  46. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  47. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  48. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  49. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  50. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  51. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  52. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  53. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  54. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  55. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  56. package/src/components/sale/businessquery/usergas.vue +315 -315
  57. package/src/components/sale/config/exportConfig.js +2762 -2762
  58. package/src/components/sale/config/tableConfig.js +59 -59
  59. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  60. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  61. package/src/components/sale/filesquery/UserQuery.vue +977 -977
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -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 -773
  199. package/src/saleManage.js +689 -689
  200. package/src/webmeterManage.js +130 -130
  201. package/.gradle/7.4/checksums/checksums.lock +0 -0
  202. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  203. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  204. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  205. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  206. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  207. package/.gradle/7.4/gc.properties +0 -0
@@ -1,752 +1,752 @@
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
- condition="f_operate_date >= '{}'">
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
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
31
- <v-select :value.sync="model.f_payment" multiple
32
- v-model="model.f_payment"
33
- :options='$parent.$parent.payment' placeholder='请选择'
34
- condition="f_payment in {}"
35
- close-on-select></v-select>
36
- </div>
37
- <div class="span" style="float:right;">
38
- <!--<read-idcard></read-idcard>-->
39
- <button class="button_search button_spacing" @click="search()">查询</button>
40
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
-
42
- <export-excel :data="$parent.$parent.getCondition"
43
- :field="$parent.$parent.getfield"
44
- :footer="$parent.$parent.footer"
45
- :header="$parent.$parent.other"
46
- sqlurl="api/af-revenue/logic/openapi/exportfile"
47
- sql-name="sellPeopleQuery"
48
- template-name='收费员汇总导出'
49
- :choose-col="true"></export-excel>
50
-
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield"
53
- titletable="小区综合查询(机表)导出"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
- <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>
56
-
57
- </div>
58
- </div>
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
-
62
- <!--<div class="col-sm-2 form-group">-->
63
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>-->
64
- <!--<v-select :value.sync="model.f_residential_area"-->
65
- <!--class="select_list select"-->
66
- <!--enter-push-->
67
- <!--multiple = "true"-->
68
- <!--v-model="model.f_residential_area"-->
69
- <!--style="width: 60%"-->
70
- <!--:options='$parent.$parent.residentialArea' placeholder='选择小区'-->
71
- <!--close-on-select>-->
72
-
73
- <!--</v-select>-->
74
- <!--</div>-->
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">收费类型</label>
77
- <v-select :value.sync="model.f_type" multiple
78
- :options='$parent.$parent.chargetype' placeholder='请选择'
79
- close-on-select clear-button
80
- condition="f_type in {}"
81
- v-model="model.f_type"></v-select>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">客户类型</label>
85
- <v-select :value.sync="model.f_user_type"
86
- @change="$parent.$parent.userTypeChange()"
87
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
88
- condition="f_user_type = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">用气性质</label>
93
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
94
- :options='$parent.$parent.gasproperties' placeholder='请选择'
95
- condition="f_gasproperties = '{}'"
96
- close-on-select></v-select>
97
- </div>
98
- <!--<div class="col-sm-2 form-group">-->
99
- <!--<label class="font_normal_body">气价类型</label>-->
100
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
101
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
102
- <!--close-on-select v-ref:type>-->
103
- <!--</v-select>-->
104
- <!--</div>-->
105
- <!--<div class="col-sm-2 form-group">-->
106
- <!--<label class="font_normal_body">气价名称</label>-->
107
- <!--<v-select :value.sync="model.f_price_name"-->
108
- <!--v-model="model.f_price_name"-->
109
- <!--:options="$parent.$parent.getPricenames"-->
110
- <!--condition="f_price_name = '{}'"-->
111
- <!--close-on-select></v-select>-->
112
- <!--</div>-->
113
-
114
- <div class="col-sm-2 form-group">
115
- <label class="font_normal_body">气表类型</label>
116
- <v-select :value.sync="model.f_meter_type" multiple
117
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
118
- condition="f_meter_type in {}"
119
- close-on-select></v-select>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">气表品牌</label>
123
- <v-select :value.sync="model.f_meter_brand" multiple
124
- v-model="model.f_meter_brand"
125
- :options='$parent.$parent.meterbrands' placeholder='请选择'
126
- condition="f_meter_brand in {}"
127
- close-on-select></v-select>
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
131
- <v-select :value.sync="model.f_inputtor"
132
- v-model="model.f_inputtor"
133
- :options='$parent.$parent.inputtores' placeholder='请选择'
134
- condition="f_inputtor = '{}'"
135
- close-on-select :search="false">
136
- </v-select>
137
- </div>
138
- <!--表册片区-->
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">表册片区</label>
141
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
142
- @change="$parent.$parent.inputtchange"
143
- multiple
144
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
145
- style="width:60%"
146
- close-on-select
147
- condition="f_book_slice_area in {}"></v-select>
148
- </div>
149
- <div class="col-sm-2 form-group">
150
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
151
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
152
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
153
- style="width:60%"
154
- multiple
155
- close-on-select
156
- condition="f_meter_book_num in {}"></v-select>
157
- </div>
158
-
159
- <div class="col-sm-2 form-group">
160
- <label class="font_normal_body">收费状态</label>
161
- <v-select :value.sync="model.f_state" multiple
162
- v-model="model.f_state"
163
- :options='$parent.$parent.charge_state' placeholder='请选择'
164
- condition="f_state in {}"
165
- close-on-select></v-select>
166
- </div>
167
-
168
- </div>
169
- </div>
170
- </criteria>
171
-
172
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
173
- <template partial='head'>
174
- <tr>
175
- <th>
176
- <nobr>收费员</nobr>
177
- </th>
178
- <th>
179
- <nobr>燃气费</nobr>
180
- </th>
181
- <th>
182
- <nobr>预存款</nobr>
183
- </th>
184
- <th>
185
- <nobr>其他费</nobr>
186
- </th>
187
- <th>
188
- <nobr>销售笔数</nobr>
189
- </th>
190
- <th>
191
- <nobr>冲正金额</nobr>
192
- </th>
193
- <th title="实收金额 = 燃气费 + 预存款 - 冲正金额">
194
- <nobr>实收金额</nobr>
195
- </th>
196
- <th>
197
- <nobr>气费笔数</nobr>
198
- </th>
199
- <th>
200
- <nobr>气费金额</nobr>
201
- </th>
202
- <th>
203
- <nobr>预存笔数</nobr>
204
- </th>
205
- <th>
206
- <nobr>预存金额</nobr>
207
- </th>
208
- <th>
209
- <nobr>退费笔数</nobr>
210
- </th>
211
- <th>
212
- <nobr>退费金额</nobr>
213
- </th>
214
- <th>
215
- <nobr>已交违约金</nobr>
216
- </th>
217
- <th title="合计金额 = 实收金额 + 其他费">
218
- <nobr>合计金额</nobr>
219
- </th>
220
- </tr>
221
- </template>
222
- <template partial='body'>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_operator}}</nobr>
225
- </td>
226
- <td style="text-align: center;"><nobr>
227
- <nobr>{{row.f_oughtfee}}</nobr>
228
- </nobr> </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_yucun}}</nobr>
231
- </td>
232
- <td style="text-align: center;">
233
- <nobr>{{row.f_other_fee}}</nobr>
234
- </td>
235
- <td style="text-align: center;">
236
- <nobr>{{row.f_number}}</nobr>
237
- </td>
238
- <td style="text-align: center;">
239
- <nobr>{{row.f_cal_collection}}</nobr>
240
- </td>
241
- <td style="text-align: center;">
242
- <nobr>{{row.f_collection}}</nobr>
243
- </td>
244
- <td style="text-align: center;">
245
- <nobr>{{row.qifei_num}}</nobr>
246
- </td>
247
- <td style="text-align: center;">
248
- <nobr>{{row.qifei_fee}}</nobr>
249
- </td>
250
- <td style="text-align: center;">
251
- <nobr>{{row.yucun_num}}</nobr>
252
- </td>
253
- <td style="text-align: center;">
254
- <nobr>{{row.yucun_fee}}</nobr>
255
- </td>
256
- <td style="text-align: center;">
257
- <nobr>{{row.tuifei_num}}</nobr>
258
- </td>
259
- <td style="text-align: center;">
260
- <nobr>{{row.tuifei_fee}}</nobr>
261
- </td>
262
- <td style="text-align: center;">
263
- <nobr>{{row.f_delaypay}}</nobr>
264
- </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_heji}}</nobr>
267
- </td>
268
- </template>
269
- <template partial='foot'></template>
270
- </data-grid>
271
- </criteria-paged>
272
- <table class="table-hover">
273
- <tr style="position: relative" class="table-bordered">
274
- <td
275
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
276
- 汇总信息
277
- </td>
278
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
279
- 燃气费合计:&emsp;{{sumsmodel.f_oughtfee}}
280
- </td>
281
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
282
- 预存款合计:&emsp;{{sumsmodel.f_yucun}}
283
- </td>
284
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
285
- 其他费合计:&emsp;{{sumsmodel.f_other_fee}}
286
- </td>
287
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
288
- 销售笔数合计:&emsp;{{sumsmodel.f_number}}
289
- </td>
290
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
291
- 冲正金额合计:&emsp;{{sumsmodel.f_cal_collection}}
292
- </td>
293
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
294
- 实收金额合计:&emsp;{{sumsmodel.f_collection}}
295
- </td>
296
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
297
- 气费笔数合计:&emsp;{{sumsmodel.qifei_num}}
298
- </td>
299
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
300
- 气费金额合计:&emsp;{{sumsmodel.qifei_fee}}
301
- </td>
302
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
303
- 预存笔数合计:&emsp;{{sumsmodel.yucun_num}}
304
- </td>
305
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
306
- 预存金额合计:&emsp;{{sumsmodel.yucun_fee}}
307
- </td>
308
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
309
- 退费笔数合计:&emsp;{{sumsmodel.tuifei_num}}
310
- </td>
311
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
312
- 退费金额合计:&emsp;{{sumsmodel.tuifei_fee}}
313
- </td>
314
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
315
- 已交违约金合计:&emsp;{{sumsmodel.f_delaypay}}
316
- </td>
317
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
318
- 总合计:&emsp;{{sumsmodel.f_heji}}
319
- </td>
320
- </tr>
321
- </table>
322
- </div>
323
- </div>
324
- </div>
325
- </template>
326
-
327
- <script>
328
- import {HttpResetClass, PagedList} from 'vue-client'
329
- import exportConfig from '../config/exportConfig'
330
-
331
- let readySomething = async function (self) {
332
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
333
- //加载抄表册
334
- self.$MagGetSaleParam.initinputtor();
335
- self.getinputtores();
336
- self.initmeterbook();
337
-
338
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
339
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
340
- // self.$refs.paged.$refs.cri.search()
341
-
342
- await self.$MagLoadParams.loadParam()
343
- self.initParams()
344
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
345
- }
346
- export default {
347
- title: '收费员汇总表',
348
- data() {
349
- return {
350
-
351
- config: {
352
- defaultPrint: ['qifei_fee','f_collection','f_delaypay']
353
- },
354
- other: [],
355
- footer: [],
356
- //f_price_name:[],
357
- gasproperties:[],
358
- showinfo: false,
359
- data: {},
360
- show:false,
361
- rowdata:{},
362
- initres: {
363
- org:[this.$login.f.orgid],
364
- dep:[],
365
- user:[]
366
- },
367
- model: new PagedList('api/af-revenue/sql/sellPeopleQuery', 20, {}, {
368
- f_oughtfee: 0,
369
- f_yucun: 0,
370
- f_other_fee: 0,
371
- f_number :0,
372
- f_cal_collection: 0,
373
- f_collection: 0,
374
- qifei_num:0,
375
- qifei_fee:0,
376
- yucun_num:0,
377
- yucun_fee:0,
378
- tuifei_num:0,
379
- tuifei_fee:0,
380
- f_heji:0,
381
- f_delaypay:0
382
- }),
383
- criteriaShow: false,
384
- orgCondtionStr: '',
385
- // 下拉框
386
- meterbrands: [],
387
- pricenames: [],
388
- prices: [],
389
- area: [],
390
- //合计数据
391
- defaultfield: [],
392
- //小区
393
- residentialArea: [],
394
- sumsmodel: {},
395
- f_filialeid: this.$login.f.f_orgid,
396
- meterbooks:[{label: '全部',value: ''}], //抄表册
397
- bookSlice:[{label: '全部',value: ''}], //表册片区
398
- tempfalg :false,
399
- lastorgstr:'',
400
- allorgid:[],
401
- inputtores:[{label: '全部',value: ''}], //抄表员
402
- }
403
- },
404
- ready() {
405
-
406
-
407
- readySomething(this).then(() => {
408
- this.$emit('ready')
409
- }).catch((error) => {
410
- this.$emit('error', error)
411
- })
412
- },
413
- methods: {
414
- //初始化片区
415
- async initSlice (val) {
416
- if (val) {
417
- let getAllArea = await this.$resetpost('/rs/search', {
418
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
419
- userid: this.$login.f.id
420
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
421
- let arr = getAllArea.data.filter((res) => {
422
- return res.parentid == val
423
- })
424
- this.bookSlice = []
425
- arr.forEach((res) => {
426
- this.bookSlice.push({label: res.name, value: res.name})
427
- })
428
- }
429
- },
430
- //表册片区和抄表册关联
431
- async inputtchange(){
432
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
433
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
434
- if((val2.length>0)){
435
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
436
- let aaa = '('
437
- val2.forEach((item) => {
438
- aaa = aaa + `'${item}',`
439
- })
440
- aaa = aaa + `'')`
441
- condition = condition + ` and f_book_slice_area in ${aaa} `
442
- let param={
443
- items:'*',
444
- tablename:'t_meter_book',
445
- condition:condition,
446
- orderitem:'id'
447
- }
448
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
449
- if (getMeterBooks.data) {
450
- if(getMeterBooks.data.length >0){
451
- let rs = [];
452
- getMeterBooks.data.forEach((item)=>{
453
- let temp = {
454
- label:item.f_book_name,
455
- value:item.id
456
- };
457
- rs.push(temp);
458
-
459
- })
460
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
461
- }else{
462
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
463
- this.meterbooks = [{label: '全部',value: ''}];
464
- }
465
- }else{
466
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
467
- }
468
- }else{
469
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
470
- this.meterbooks = [{label: '全部',value: ''}];
471
- this.initmeterbook();
472
- }
473
- },
474
- async initmeterbook(orgstr){
475
- if(orgstr == null ){
476
- orgstr = this.f_filialeid;
477
- }
478
- //获取新的抄表册,先去清理所有的抄表册
479
- this.$GetSaleParam.meterbooks = [];
480
- //开始加载新的抄表册
481
- await this.$LoadParams.loadMeterBook(orgstr)
482
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
483
- },
484
- async getinputtores () {
485
- // 获取抄表员
486
- let rs = []
487
- if (this.$login.f.f_gasman.length > 0) {
488
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
489
- let temp = {
490
- label: this.$login.f.f_gasman[i].name,
491
- value: this.$login.f.f_gasman[i].name
492
- }
493
- rs.push(temp)
494
- }
495
- }
496
- this.inputtores = [{label: '全部', value: ''}, ...rs]
497
- },
498
- async updateParams() {
499
- await this.$MagLoadParams.loadParam(this.f_filialeid)
500
- this.inputtores = [];
501
- this.inputtores.push({label: "全部", value: ""})
502
- this.initSlice(this.f_filialeid)
503
- if(this.allorgid!=null){
504
- this.allorgid.forEach((res)=>{
505
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
506
- })
507
- }
508
- this.initParams()
509
- },
510
- getotherfooter() {
511
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
512
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
513
- this.other = [];
514
- this.footer = [];
515
- // let exportdata = this.getCondition;
516
- let otherInData = [];
517
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
518
- let footerData = [], exportfield = this.getfield;
519
- footerData.push("合计");
520
- let self = this;
521
- for (var field in self.sumsmodel) {
522
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
523
- }
524
- this.footer.push(footerData);
525
- this.other.push(otherInData);
526
- let date = []
527
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
528
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
529
- this.other.push(date)
530
- },
531
- async getaddress(){
532
- console.log('开始获取小区')
533
- let HttpReset = new HttpResetClass()
534
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
535
- data: {
536
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
537
- }
538
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
539
- console.log('小区',data)
540
- let house = [{label: '全部', value: ''}]
541
- for (let row of data.data){
542
- console.log('开始保存小区')
543
- house.push({label: row.f_residential_area, value: row.f_residential_area})
544
- }
545
- this.residentialArea = house
546
- },
547
-
548
-
549
-
550
-
551
- //把数据库查询数据转换为下拉数据
552
- calculate(rows){
553
- let data = []
554
- rows.forEach((row, n) => {
555
- data[n] = {label: row.f_residential_area, value: row.id}
556
- })
557
- return data
558
- },
559
-
560
- search(){
561
- this.$refs.paged.$refs.cri.search()
562
- },
563
- cancel() {
564
- this.show = false
565
- },
566
- showmsg(obj){
567
- this.rowdata=obj
568
- this.show=true
569
- },
570
- userTypeChange () {
571
- this.gasproperties=[]
572
- if(this.$refs.paged.$refs.cri.model !==null) {
573
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
574
-
575
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
576
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
577
- // this.gasproperties.push({label: '全部', value: ''})
578
- }
579
- else{
580
- this.gasproperties =[{label: '全部', value: ''}]
581
- }
582
- },
583
- initParams() {
584
- // 初始化气表品牌
585
- let brandArr = []
586
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
587
- let temp = {}
588
- temp.label = item.label
589
- temp.value = item.value.f_meter_brand
590
- brandArr.push(temp)
591
- })
592
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
593
- //初始化气表价格
594
- this.prices = this.$MagGetSaleParam.getPrices();
595
- },
596
- clearSum(sum){
597
- for (let itme in sum) {
598
- sum[itme] = 0
599
- }
600
- },
601
- selfSearch(args) {
602
- this.clearSum(this.$refs.paged.$refs.grid.model.sums)
603
- let f_orgstr = this.orgCondtionStr
604
- args.condition = `${args.condition} ` + f_orgstr
605
- this.model.search(args.condition, args.model)
606
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
607
- },
608
- clear() {
609
- //清空部门和人员
610
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
611
- //部门和人员变为全选
612
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
613
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
614
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
615
- this.$refs.paged.$refs.cri.model[key] = []
616
- })
617
-
618
- },
619
- dealmsg(val) {
620
- val.model = this.model.model
621
- this.$dispatch('deal-msg', val)
622
- },
623
- show() {
624
- this.criteriaShow = true
625
- },
626
- hidden() {
627
- this.criteriaShow = !this.criteriaShow
628
- },
629
- async getRes(condition,obj) {
630
- this.orgCondtionStr = condition
631
- this.orgname = obj.orgnames[0]
632
- this.depname = obj.depnames[0]
633
-
634
- },
635
-
636
-
637
- },
638
- events:{
639
- 'getidcard'(IdCard){
640
- console.log("IdCard-===")
641
- console.log(IdCard)
642
- // console.log(param)
643
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
644
- }
645
- },
646
- watch: {
647
- 'model'(val) {
648
- },
649
- sumsmodel: {
650
- handler: function (val) {
651
- this.getotherfooter();
652
- },
653
- deep: true
654
- },
655
- async 'orgCondtionStr'(val) {
656
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
657
- this.$refs.paged.$refs.cri.model.f_inputtor = []
658
- this.$refs.paged.$refs.cri.model.f_meter_book = []
659
- this.meterbooks = [{label: '全部',value: ''}];
660
- if(this.lastorgstr != val){
661
- this.tempfalg = true;
662
- this.lastorgstr = val;
663
- }
664
- debugger
665
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
666
- this.tempfalg = false;
667
- let a = val.substring(val.indexOf("(")+2)
668
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
669
- }
670
- debugger
671
- let res = val.match(/'(.*?)'/)
672
- console.log('正则提取:',res && res[1])
673
- if (res) {
674
- this.f_filialeid = res[1]
675
- if(res.input !=null){
676
- let resorgid = res.input.substring(res.input.indexOf("'"));
677
- if(resorgid!= null && resorgid!=''){
678
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
679
- // resorgid = resorgid.replaceAll("'","");
680
- resorgid = resorgid.replace(/'/g,"");
681
- this.allorgid = resorgid.split(",")
682
- }
683
- }
684
- this.updateParams()
685
- }
686
- },
687
- },
688
- computed: {
689
-
690
- getPricenames() {
691
- let f_user_type = this.$refs.paged.model.model.f_user_type;
692
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
693
- let pricetype = this.$refs.paged.model.model.pricetype;
694
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
695
- if(this.$refs.paged.model.model !==null) {
696
- let rs = []
697
- let priceArr = []
698
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
699
- let params = {
700
- f_user_type: f_user_type[0],
701
- f_gasproperties: f_gasproperties[0],
702
- f_price_type: pricetype[0],
703
- filter: this.f_filialeid,
704
- prices: this.prices
705
- }
706
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
707
- let temp = {}
708
- temp.label = item.label
709
- temp.value = item.value.f_price_name
710
- priceArr.push(temp)
711
- })
712
- rs = [{label: '全部', value: ''}, ...priceArr]
713
- }
714
- if (rs.length === 0) {
715
- console.log('rs读出来是空')
716
- this.$refs.paged.model.model.f_price_name = ''
717
- }
718
- return rs
719
- }
720
- },
721
- getCondition() {
722
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
723
- },
724
- getfield() {
725
- return exportConfig.sellPeopleConfig
726
- },
727
- pricetypes() {
728
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
729
- },
730
-
731
- usertypes() {
732
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
733
- },
734
- metertypes() {
735
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
736
- },
737
-
738
- tablestate() {
739
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
740
- },
741
- chargetype() {
742
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
743
- },
744
- payment() {
745
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式查询')]
746
- },
747
- charge_state() {
748
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
749
- }
750
- }
751
- }
752
- </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
+ condition="f_operate_date >= '{}'">
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
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
31
+ <v-select :value.sync="model.f_payment" multiple
32
+ v-model="model.f_payment"
33
+ :options='$parent.$parent.payment' placeholder='请选择'
34
+ condition="f_payment in {}"
35
+ close-on-select></v-select>
36
+ </div>
37
+ <div class="span" style="float:right;">
38
+ <!--<read-idcard></read-idcard>-->
39
+ <button class="button_search button_spacing" @click="search()">查询</button>
40
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ :footer="$parent.$parent.footer"
45
+ :header="$parent.$parent.other"
46
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
47
+ sql-name="sellPeopleQuery"
48
+ template-name='收费员汇总导出'
49
+ :choose-col="true"></export-excel>
50
+
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="小区综合查询(机表)导出"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ <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>
56
+
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+
62
+ <!--<div class="col-sm-2 form-group">-->
63
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>-->
64
+ <!--<v-select :value.sync="model.f_residential_area"-->
65
+ <!--class="select_list select"-->
66
+ <!--enter-push-->
67
+ <!--multiple = "true"-->
68
+ <!--v-model="model.f_residential_area"-->
69
+ <!--style="width: 60%"-->
70
+ <!--:options='$parent.$parent.residentialArea' placeholder='选择小区'-->
71
+ <!--close-on-select>-->
72
+
73
+ <!--</v-select>-->
74
+ <!--</div>-->
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">收费类型</label>
77
+ <v-select :value.sync="model.f_type" multiple
78
+ :options='$parent.$parent.chargetype' placeholder='请选择'
79
+ close-on-select clear-button
80
+ condition="f_type in {}"
81
+ v-model="model.f_type"></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户类型</label>
85
+ <v-select :value.sync="model.f_user_type"
86
+ @change="$parent.$parent.userTypeChange()"
87
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
88
+ condition="f_user_type = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">用气性质</label>
93
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
94
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
95
+ condition="f_gasproperties = '{}'"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <!--<div class="col-sm-2 form-group">-->
99
+ <!--<label class="font_normal_body">气价类型</label>-->
100
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
101
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
102
+ <!--close-on-select v-ref:type>-->
103
+ <!--</v-select>-->
104
+ <!--</div>-->
105
+ <!--<div class="col-sm-2 form-group">-->
106
+ <!--<label class="font_normal_body">气价名称</label>-->
107
+ <!--<v-select :value.sync="model.f_price_name"-->
108
+ <!--v-model="model.f_price_name"-->
109
+ <!--:options="$parent.$parent.getPricenames"-->
110
+ <!--condition="f_price_name = '{}'"-->
111
+ <!--close-on-select></v-select>-->
112
+ <!--</div>-->
113
+
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">气表类型</label>
116
+ <v-select :value.sync="model.f_meter_type" multiple
117
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
118
+ condition="f_meter_type in {}"
119
+ close-on-select></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">气表品牌</label>
123
+ <v-select :value.sync="model.f_meter_brand" multiple
124
+ v-model="model.f_meter_brand"
125
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
126
+ condition="f_meter_brand in {}"
127
+ close-on-select></v-select>
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
131
+ <v-select :value.sync="model.f_inputtor"
132
+ v-model="model.f_inputtor"
133
+ :options='$parent.$parent.inputtores' placeholder='请选择'
134
+ condition="f_inputtor = '{}'"
135
+ close-on-select :search="false">
136
+ </v-select>
137
+ </div>
138
+ <!--表册片区-->
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">表册片区</label>
141
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
142
+ @change="$parent.$parent.inputtchange"
143
+ multiple
144
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
145
+ style="width:60%"
146
+ close-on-select
147
+ condition="f_book_slice_area in {}"></v-select>
148
+ </div>
149
+ <div class="col-sm-2 form-group">
150
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
151
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
152
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
153
+ style="width:60%"
154
+ multiple
155
+ close-on-select
156
+ condition="f_meter_book_num in {}"></v-select>
157
+ </div>
158
+
159
+ <div class="col-sm-2 form-group">
160
+ <label class="font_normal_body">收费状态</label>
161
+ <v-select :value.sync="model.f_state" multiple
162
+ v-model="model.f_state"
163
+ :options='$parent.$parent.charge_state' placeholder='请选择'
164
+ condition="f_state in {}"
165
+ close-on-select></v-select>
166
+ </div>
167
+
168
+ </div>
169
+ </div>
170
+ </criteria>
171
+
172
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
173
+ <template partial='head'>
174
+ <tr>
175
+ <th>
176
+ <nobr>收费员</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>燃气费</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>预存款</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>其他费</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>销售笔数</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>冲正金额</nobr>
192
+ </th>
193
+ <th title="实收金额 = 燃气费 + 预存款 - 冲正金额">
194
+ <nobr>实收金额</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>气费笔数</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>气费金额</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>预存笔数</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>预存金额</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>退费笔数</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>退费金额</nobr>
213
+ </th>
214
+ <th>
215
+ <nobr>已交违约金</nobr>
216
+ </th>
217
+ <th title="合计金额 = 实收金额 + 其他费">
218
+ <nobr>合计金额</nobr>
219
+ </th>
220
+ </tr>
221
+ </template>
222
+ <template partial='body'>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_operator}}</nobr>
225
+ </td>
226
+ <td style="text-align: center;"><nobr>
227
+ <nobr>{{row.f_oughtfee}}</nobr>
228
+ </nobr> </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_yucun}}</nobr>
231
+ </td>
232
+ <td style="text-align: center;">
233
+ <nobr>{{row.f_other_fee}}</nobr>
234
+ </td>
235
+ <td style="text-align: center;">
236
+ <nobr>{{row.f_number}}</nobr>
237
+ </td>
238
+ <td style="text-align: center;">
239
+ <nobr>{{row.f_cal_collection}}</nobr>
240
+ </td>
241
+ <td style="text-align: center;">
242
+ <nobr>{{row.f_collection}}</nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr>{{row.qifei_num}}</nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr>{{row.qifei_fee}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.yucun_num}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.yucun_fee}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.tuifei_num}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.tuifei_fee}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_delaypay}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_heji}}</nobr>
267
+ </td>
268
+ </template>
269
+ <template partial='foot'></template>
270
+ </data-grid>
271
+ </criteria-paged>
272
+ <table class="table-hover">
273
+ <tr style="position: relative" class="table-bordered">
274
+ <td
275
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
276
+ 汇总信息
277
+ </td>
278
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
279
+ 燃气费合计:&emsp;{{sumsmodel.f_oughtfee}}
280
+ </td>
281
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
282
+ 预存款合计:&emsp;{{sumsmodel.f_yucun}}
283
+ </td>
284
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
285
+ 其他费合计:&emsp;{{sumsmodel.f_other_fee}}
286
+ </td>
287
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
288
+ 销售笔数合计:&emsp;{{sumsmodel.f_number}}
289
+ </td>
290
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
291
+ 冲正金额合计:&emsp;{{sumsmodel.f_cal_collection}}
292
+ </td>
293
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
294
+ 实收金额合计:&emsp;{{sumsmodel.f_collection}}
295
+ </td>
296
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
297
+ 气费笔数合计:&emsp;{{sumsmodel.qifei_num}}
298
+ </td>
299
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
300
+ 气费金额合计:&emsp;{{sumsmodel.qifei_fee}}
301
+ </td>
302
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
303
+ 预存笔数合计:&emsp;{{sumsmodel.yucun_num}}
304
+ </td>
305
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
306
+ 预存金额合计:&emsp;{{sumsmodel.yucun_fee}}
307
+ </td>
308
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
309
+ 退费笔数合计:&emsp;{{sumsmodel.tuifei_num}}
310
+ </td>
311
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
312
+ 退费金额合计:&emsp;{{sumsmodel.tuifei_fee}}
313
+ </td>
314
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
315
+ 已交违约金合计:&emsp;{{sumsmodel.f_delaypay}}
316
+ </td>
317
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
318
+ 总合计:&emsp;{{sumsmodel.f_heji}}
319
+ </td>
320
+ </tr>
321
+ </table>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ </template>
326
+
327
+ <script>
328
+ import {HttpResetClass, PagedList} from 'vue-client'
329
+ import exportConfig from '../config/exportConfig'
330
+
331
+ let readySomething = async function (self) {
332
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
333
+ //加载抄表册
334
+ self.$MagGetSaleParam.initinputtor();
335
+ self.getinputtores();
336
+ self.initmeterbook();
337
+
338
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
339
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
340
+ // self.$refs.paged.$refs.cri.search()
341
+
342
+ await self.$MagLoadParams.loadParam()
343
+ self.initParams()
344
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
345
+ }
346
+ export default {
347
+ title: '收费员汇总表',
348
+ data() {
349
+ return {
350
+
351
+ config: {
352
+ defaultPrint: ['qifei_fee','f_collection','f_delaypay']
353
+ },
354
+ other: [],
355
+ footer: [],
356
+ //f_price_name:[],
357
+ gasproperties:[],
358
+ showinfo: false,
359
+ data: {},
360
+ show:false,
361
+ rowdata:{},
362
+ initres: {
363
+ org:[this.$login.f.orgid],
364
+ dep:[],
365
+ user:[]
366
+ },
367
+ model: new PagedList('api/af-revenue/sql/sellPeopleQuery', 20, {}, {
368
+ f_oughtfee: 0,
369
+ f_yucun: 0,
370
+ f_other_fee: 0,
371
+ f_number :0,
372
+ f_cal_collection: 0,
373
+ f_collection: 0,
374
+ qifei_num:0,
375
+ qifei_fee:0,
376
+ yucun_num:0,
377
+ yucun_fee:0,
378
+ tuifei_num:0,
379
+ tuifei_fee:0,
380
+ f_heji:0,
381
+ f_delaypay:0
382
+ }),
383
+ criteriaShow: false,
384
+ orgCondtionStr: '',
385
+ // 下拉框
386
+ meterbrands: [],
387
+ pricenames: [],
388
+ prices: [],
389
+ area: [],
390
+ //合计数据
391
+ defaultfield: [],
392
+ //小区
393
+ residentialArea: [],
394
+ sumsmodel: {},
395
+ f_filialeid: this.$login.f.f_orgid,
396
+ meterbooks:[{label: '全部',value: ''}], //抄表册
397
+ bookSlice:[{label: '全部',value: ''}], //表册片区
398
+ tempfalg :false,
399
+ lastorgstr:'',
400
+ allorgid:[],
401
+ inputtores:[{label: '全部',value: ''}], //抄表员
402
+ }
403
+ },
404
+ ready() {
405
+
406
+
407
+ readySomething(this).then(() => {
408
+ this.$emit('ready')
409
+ }).catch((error) => {
410
+ this.$emit('error', error)
411
+ })
412
+ },
413
+ methods: {
414
+ //初始化片区
415
+ async initSlice (val) {
416
+ if (val) {
417
+ let getAllArea = await this.$resetpost('/rs/search', {
418
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
419
+ userid: this.$login.f.id
420
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
421
+ let arr = getAllArea.data.filter((res) => {
422
+ return res.parentid == val
423
+ })
424
+ this.bookSlice = []
425
+ arr.forEach((res) => {
426
+ this.bookSlice.push({label: res.name, value: res.name})
427
+ })
428
+ }
429
+ },
430
+ //表册片区和抄表册关联
431
+ async inputtchange(){
432
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
433
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
434
+ if((val2.length>0)){
435
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
436
+ let aaa = '('
437
+ val2.forEach((item) => {
438
+ aaa = aaa + `'${item}',`
439
+ })
440
+ aaa = aaa + `'')`
441
+ condition = condition + ` and f_book_slice_area in ${aaa} `
442
+ let param={
443
+ items:'*',
444
+ tablename:'t_meter_book',
445
+ condition:condition,
446
+ orderitem:'id'
447
+ }
448
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
449
+ if (getMeterBooks.data) {
450
+ if(getMeterBooks.data.length >0){
451
+ let rs = [];
452
+ getMeterBooks.data.forEach((item)=>{
453
+ let temp = {
454
+ label:item.f_book_name,
455
+ value:item.id
456
+ };
457
+ rs.push(temp);
458
+
459
+ })
460
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
461
+ }else{
462
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
463
+ this.meterbooks = [{label: '全部',value: ''}];
464
+ }
465
+ }else{
466
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
467
+ }
468
+ }else{
469
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
470
+ this.meterbooks = [{label: '全部',value: ''}];
471
+ this.initmeterbook();
472
+ }
473
+ },
474
+ async initmeterbook(orgstr){
475
+ if(orgstr == null ){
476
+ orgstr = this.f_filialeid;
477
+ }
478
+ //获取新的抄表册,先去清理所有的抄表册
479
+ this.$GetSaleParam.meterbooks = [];
480
+ //开始加载新的抄表册
481
+ await this.$LoadParams.loadMeterBook(orgstr)
482
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
483
+ },
484
+ async getinputtores () {
485
+ // 获取抄表员
486
+ let rs = []
487
+ if (this.$login.f.f_gasman.length > 0) {
488
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
489
+ let temp = {
490
+ label: this.$login.f.f_gasman[i].name,
491
+ value: this.$login.f.f_gasman[i].name
492
+ }
493
+ rs.push(temp)
494
+ }
495
+ }
496
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
497
+ },
498
+ async updateParams() {
499
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
500
+ this.inputtores = [];
501
+ this.inputtores.push({label: "全部", value: ""})
502
+ this.initSlice(this.f_filialeid)
503
+ if(this.allorgid!=null){
504
+ this.allorgid.forEach((res)=>{
505
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
506
+ })
507
+ }
508
+ this.initParams()
509
+ },
510
+ getotherfooter() {
511
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
512
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
513
+ this.other = [];
514
+ this.footer = [];
515
+ // let exportdata = this.getCondition;
516
+ let otherInData = [];
517
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
518
+ let footerData = [], exportfield = this.getfield;
519
+ footerData.push("合计");
520
+ let self = this;
521
+ for (var field in self.sumsmodel) {
522
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
523
+ }
524
+ this.footer.push(footerData);
525
+ this.other.push(otherInData);
526
+ let date = []
527
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
528
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
529
+ this.other.push(date)
530
+ },
531
+ async getaddress(){
532
+ console.log('开始获取小区')
533
+ let HttpReset = new HttpResetClass()
534
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
535
+ data: {
536
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
537
+ }
538
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
539
+ console.log('小区',data)
540
+ let house = [{label: '全部', value: ''}]
541
+ for (let row of data.data){
542
+ console.log('开始保存小区')
543
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
544
+ }
545
+ this.residentialArea = house
546
+ },
547
+
548
+
549
+
550
+
551
+ //把数据库查询数据转换为下拉数据
552
+ calculate(rows){
553
+ let data = []
554
+ rows.forEach((row, n) => {
555
+ data[n] = {label: row.f_residential_area, value: row.id}
556
+ })
557
+ return data
558
+ },
559
+
560
+ search(){
561
+ this.$refs.paged.$refs.cri.search()
562
+ },
563
+ cancel() {
564
+ this.show = false
565
+ },
566
+ showmsg(obj){
567
+ this.rowdata=obj
568
+ this.show=true
569
+ },
570
+ userTypeChange () {
571
+ this.gasproperties=[]
572
+ if(this.$refs.paged.$refs.cri.model !==null) {
573
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
574
+
575
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
576
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
577
+ // this.gasproperties.push({label: '全部', value: ''})
578
+ }
579
+ else{
580
+ this.gasproperties =[{label: '全部', value: ''}]
581
+ }
582
+ },
583
+ initParams() {
584
+ // 初始化气表品牌
585
+ let brandArr = []
586
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
587
+ let temp = {}
588
+ temp.label = item.label
589
+ temp.value = item.value.f_meter_brand
590
+ brandArr.push(temp)
591
+ })
592
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
593
+ //初始化气表价格
594
+ this.prices = this.$MagGetSaleParam.getPrices();
595
+ },
596
+ clearSum(sum){
597
+ for (let itme in sum) {
598
+ sum[itme] = 0
599
+ }
600
+ },
601
+ selfSearch(args) {
602
+ this.clearSum(this.$refs.paged.$refs.grid.model.sums)
603
+ let f_orgstr = this.orgCondtionStr
604
+ args.condition = `${args.condition} ` + f_orgstr
605
+ this.model.search(args.condition, args.model)
606
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
607
+ },
608
+ clear() {
609
+ //清空部门和人员
610
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
611
+ //部门和人员变为全选
612
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
613
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
614
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
615
+ this.$refs.paged.$refs.cri.model[key] = []
616
+ })
617
+
618
+ },
619
+ dealmsg(val) {
620
+ val.model = this.model.model
621
+ this.$dispatch('deal-msg', val)
622
+ },
623
+ show() {
624
+ this.criteriaShow = true
625
+ },
626
+ hidden() {
627
+ this.criteriaShow = !this.criteriaShow
628
+ },
629
+ async getRes(condition,obj) {
630
+ this.orgCondtionStr = condition
631
+ this.orgname = obj.orgnames[0]
632
+ this.depname = obj.depnames[0]
633
+
634
+ },
635
+
636
+
637
+ },
638
+ events:{
639
+ 'getidcard'(IdCard){
640
+ console.log("IdCard-===")
641
+ console.log(IdCard)
642
+ // console.log(param)
643
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
644
+ }
645
+ },
646
+ watch: {
647
+ 'model'(val) {
648
+ },
649
+ sumsmodel: {
650
+ handler: function (val) {
651
+ this.getotherfooter();
652
+ },
653
+ deep: true
654
+ },
655
+ async 'orgCondtionStr'(val) {
656
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
657
+ this.$refs.paged.$refs.cri.model.f_inputtor = []
658
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
659
+ this.meterbooks = [{label: '全部',value: ''}];
660
+ if(this.lastorgstr != val){
661
+ this.tempfalg = true;
662
+ this.lastorgstr = val;
663
+ }
664
+ debugger
665
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
666
+ this.tempfalg = false;
667
+ let a = val.substring(val.indexOf("(")+2)
668
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
669
+ }
670
+ debugger
671
+ let res = val.match(/'(.*?)'/)
672
+ console.log('正则提取:',res && res[1])
673
+ if (res) {
674
+ this.f_filialeid = res[1]
675
+ if(res.input !=null){
676
+ let resorgid = res.input.substring(res.input.indexOf("'"));
677
+ if(resorgid!= null && resorgid!=''){
678
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
679
+ // resorgid = resorgid.replaceAll("'","");
680
+ resorgid = resorgid.replace(/'/g,"");
681
+ this.allorgid = resorgid.split(",")
682
+ }
683
+ }
684
+ this.updateParams()
685
+ }
686
+ },
687
+ },
688
+ computed: {
689
+
690
+ getPricenames() {
691
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
692
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
693
+ let pricetype = this.$refs.paged.model.model.pricetype;
694
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
695
+ if(this.$refs.paged.model.model !==null) {
696
+ let rs = []
697
+ let priceArr = []
698
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
699
+ let params = {
700
+ f_user_type: f_user_type[0],
701
+ f_gasproperties: f_gasproperties[0],
702
+ f_price_type: pricetype[0],
703
+ filter: this.f_filialeid,
704
+ prices: this.prices
705
+ }
706
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
707
+ let temp = {}
708
+ temp.label = item.label
709
+ temp.value = item.value.f_price_name
710
+ priceArr.push(temp)
711
+ })
712
+ rs = [{label: '全部', value: ''}, ...priceArr]
713
+ }
714
+ if (rs.length === 0) {
715
+ console.log('rs读出来是空')
716
+ this.$refs.paged.model.model.f_price_name = ''
717
+ }
718
+ return rs
719
+ }
720
+ },
721
+ getCondition() {
722
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
723
+ },
724
+ getfield() {
725
+ return exportConfig.sellPeopleConfig
726
+ },
727
+ pricetypes() {
728
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
729
+ },
730
+
731
+ usertypes() {
732
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
733
+ },
734
+ metertypes() {
735
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
736
+ },
737
+
738
+ tablestate() {
739
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
740
+ },
741
+ chargetype() {
742
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
743
+ },
744
+ payment() {
745
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式查询')]
746
+ },
747
+ charge_state() {
748
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
749
+ }
750
+ }
751
+ }
752
+ </script>