manage-client 3.3.234 → 3.3.236

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 (206) 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 +382 -292
  8. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  9. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  10. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -208
  11. package/src/components/SellReport/ManageSellType.vue +267 -267
  12. package/src/components/SellReport/ReportItems.vue +312 -312
  13. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  14. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  15. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  16. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  17. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  18. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  19. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  20. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  21. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  22. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  23. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  24. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  25. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  26. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  27. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  29. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  30. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  31. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  32. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  33. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  34. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  35. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  36. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  37. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  38. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  39. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  40. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  41. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  42. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  43. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  44. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  45. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  46. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  47. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  48. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  49. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  50. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  51. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  52. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  53. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  54. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  55. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  56. package/src/components/sale/businessquery/usergas.vue +315 -315
  57. package/src/components/sale/config/exportConfig.js +2763 -2763
  58. package/src/components/sale/config/tableConfig.js +59 -59
  59. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  60. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  61. package/src/components/sale/filesquery/UserQuery.vue +1002 -1002
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
  64. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
  65. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  66. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  67. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  68. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  69. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  70. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
  71. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +1 -1
  72. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  73. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  74. package/src/components/webmeter/report/ReportList.vue +453 -453
  75. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  76. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  77. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  78. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  79. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  80. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  81. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  82. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  83. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  84. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  85. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  86. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  87. package/src/filiale/bayan/config/tableConfig.js +59 -59
  88. package/src/filiale/bayan/sale.js +8 -8
  89. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  90. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  91. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  92. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  93. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  94. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  95. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  96. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  97. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  98. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  99. package/src/filiale/bayan/webmeterManage.js +26 -26
  100. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  101. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  102. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  103. package/src/filiale/dingcheng/sale.js +9 -9
  104. package/src/filiale/fugou/RecordInfoQuery.vue +1451 -0
  105. package/src/filiale/fugou/config/DefaultPrint.js +6 -0
  106. package/src/filiale/fugou/config/exportConfig.js +2761 -0
  107. package/src/filiale/fugou/config/tableConfig.js +59 -0
  108. package/src/filiale/fugou/sale.js +6 -0
  109. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  110. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  111. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  112. package/src/filiale/hantou/config/tableConfig.js +54 -54
  113. package/src/filiale/hantou/sale.js +8 -8
  114. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  115. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  116. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  117. package/src/filiale/jingyang/RechargeList.vue +346 -346
  118. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  119. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  120. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  121. package/src/filiale/jingyang/sale.js +8 -8
  122. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  123. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  124. package/src/filiale/kelai/GasStatistics.vue +561 -561
  125. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  126. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  127. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  128. package/src/filiale/kelai/reportManage.js +13 -13
  129. package/src/filiale/kelai/sale.js +17 -17
  130. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  131. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  132. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  133. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  134. package/src/filiale/macheng/config/exportConfig.js +79 -79
  135. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  136. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  137. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  138. package/src/filiale/meihekou/CollectManage.vue +152 -152
  139. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  140. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  141. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  142. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  143. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  144. package/src/filiale/meihekou/sale.js +39 -39
  145. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  146. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  147. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  148. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  149. package/src/filiale/qianneng/exportConfig.js +232 -232
  150. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  151. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  152. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  153. package/src/filiale/rizhao/sale.js +13 -13
  154. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  155. package/src/filiale/shangluo/sale.js +17 -17
  156. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  157. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  158. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  159. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  160. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  161. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  162. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  163. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  164. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  165. package/src/filiale/taizhoukesi/sale.js +11 -11
  166. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  167. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  168. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  169. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  170. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  171. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  172. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  173. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  174. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  175. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  176. package/src/filiale/xinjiangdexin/sale.js +7 -7
  177. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  178. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  179. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  180. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  181. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  182. package/src/filiale/yangchun/UserQuery.vue +980 -980
  183. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  184. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  185. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  186. package/src/filiale/yangchun/reportManage.js +6 -6
  187. package/src/filiale/yangchun/sale.js +20 -20
  188. package/src/filiale/yangchun/webmeterManage.js +5 -5
  189. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  190. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  191. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  192. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  193. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  194. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  195. package/src/filiale/yuncheng/sale.js +23 -23
  196. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  197. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  198. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  199. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  200. package/src/filiale/zhongyi/sale.js +33 -33
  201. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  202. package/src/main.js +68 -68
  203. package/src/plugins/LodopFuncs.js +159 -159
  204. package/src/reportManage.js +777 -777
  205. package/src/saleManage.js +689 -689
  206. package/src/webmeterManage.js +130 -130
@@ -1,712 +1,712 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
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="$parent.$parent.style">
10
- <label class="font_normal_body">按单位查询</label>
11
- <v-select :value.sync="$parent.$parent.f_is_company"
12
- :options='$parent.$parent.isCompany'
13
- placeholder='请选择' v-model="$parent.$parent.f_is_company"
14
- @change="$parent.$parent.isCompanyChange()"
15
- value-single="true"
16
- :disabled="$parent.$parent.isCompanyShow"
17
- close-on-select></v-select>
18
- </div>
19
- <div :class="$parent.$parent.style">
20
- <label class="font_normal_body">按小区查询</label>
21
- <v-select :value.sync="$parent.$parent.f_is_area"
22
- :options='$parent.$parent.isArea'
23
- placeholder='请选择' v-model="$parent.$parent.f_is_area"
24
- @change="$parent.$parent.isAreaChange()"
25
- value-single="true"
26
- :disabled="$parent.$parent.isAreaShow"
27
- close-on-select></v-select>
28
- </div>
29
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
30
- <label for="startDate" class="font_normal_body">开始日期</label>
31
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
32
- v-model="model.startDate"
33
- :value.sync="model.startDate"
34
- :format="'yyyy-MM-dd'"
35
- :show-reset-button="true">
36
- </datepicker>
37
- </div>
38
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
39
- <label for="endDate" class="font_normal_body">结束日期</label>
40
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
41
- v-model="model.endDate"
42
- :value.sync="model.endDate"
43
- :format="'yyyy-MM-dd'"
44
- :show-reset-button="true">
45
- </datepicker>
46
- </div>
47
- <div class="span" style="float:right;">
48
- <button class="button_search button_spacing" @click="search()">查询</button>
49
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
50
- <export-excel :data="$parent.$parent.getCondition"
51
- :field="$parent.$parent.getfield"
52
- :header="$parent.$parent.other"
53
- :footer="$parent.$parent.footer"
54
- sqlurl="api/af-revenue/logic/openapi/exportfile"
55
- :sql-name="$parent.$parent.sqlName"
56
- template-name='营收汇总报表'
57
- :choose-col="true"></export-excel>
58
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
59
- :field="$parent.$parent.getfield"
60
- titletable="营收汇总报表" :starthead="$parent.$parent.startDate"
61
- :defaultfield="$parent.$parent.defaultfield"
62
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
63
- <div
64
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
65
- @click="$parent.$parent.hidden()"
66
- class="button_spacing"
67
- style="float: right"></div>
68
- </div>
69
- </div>
70
- <div class="row" v-if="$parent.$parent.criteriaShow">
71
- <res-select-group
72
- :style="$parent.$parent.style"
73
- :show-component="['company','slicearea']"
74
- :initres="$parent.$parent.initres"
75
- @re-res="$parent.$parent.getRes"
76
- v-ref:sel
77
- ></res-select-group>
78
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
79
- <label for="startDate" class="font_normal_body">开始日期</label>
80
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
81
- v-model="model.startDate"
82
- :value.sync="model.startDate"
83
- :format="'yyyy-MM-dd'"
84
- :show-reset-button="true">
85
- </datepicker>
86
- </div>
87
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
88
- <label for="endDate" class="font_normal_body">结束日期</label>
89
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
90
- v-model="model.endDate"
91
- :value.sync="model.endDate"
92
- :format="'yyyy-MM-dd'"
93
- :show-reset-button="true">
94
- </datepicker>
95
- </div>
96
- <div :class="$parent.$parent.style">
97
- <label class="font_normal_body">用户类型</label>
98
- <v-select :value.sync="model.f_user_type"
99
- :options='$parent.$parent.usertypes'
100
- placeholder='请选择' v-model="model.f_user_type"
101
- :value-single="true"
102
- @change="$parent.$parent.userTypeChange()"
103
- close-on-select></v-select>
104
- </div>
105
- <div :class="$parent.$parent.style">
106
- <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
107
- <v-select :value.sync="model.f_user_usetype" :search="false"
108
- @change="$parent.$parent.userUseTypeChange()"
109
- v-model="model.f_user_usetype"
110
- :multiple="true"
111
- :options='$parent.$parent.userusetypes'
112
- condition="f_user_usetype in {}"
113
- placeholder='用气类型'>
114
- </v-select>
115
- </div>
116
- <div :class="$parent.$parent.style">
117
- <label for="f_use_institution" class="font_normal_body">用气机构</label>
118
- <v-select :value.sync="model.f_use_institution" :search="false"
119
- @change="$parent.$parent.userUseInstitutionChange()"
120
- v-model="model.f_use_institution"
121
- :value-single="true"
122
- :options='$parent.$parent.useinstitutions'
123
- condition="f_use_institution = '{}'"
124
- placeholder='用气机构'
125
- close-on-select>
126
- </v-select>
127
- </div>
128
- <div :class="$parent.$parent.style">
129
- <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
130
- <v-select :value.sync="model.f_user_usenature" :search="false"
131
- v-model="model.f_user_usenature"
132
- :value-single="true"
133
- :options='$parent.$parent.userusenatures'
134
- condition="f_user_usenature = '{}'"
135
- placeholder='使用性质'
136
- close-on-select>
137
- </v-select>
138
- </div>
139
- <div :class="$parent.$parent.style">
140
- <label for="endDate" class="font_normal_body">单位名称</label>
141
- <v-select :value.sync="model.f_company_id"
142
- class="select_list select"
143
- enter-push :disabled="$parent.$parent.isCompanyShow"
144
- v-model="model.f_company_id" multiple="true"
145
- @select-search="$parent.$parent.getCompanyList"
146
- :options='$parent.$parent.corporatename' placeholder='单位名称'
147
- condition="f_company_id in {}">
148
- </v-select>
149
- </div>
150
- <div :class="$parent.$parent.style">
151
- <label for="endDate" class="font_normal_body">小区名称</label>
152
- <v-select :value.sync="model.f_residential_area_id"
153
- class="select_list select"
154
- enter-push :disabled="$parent.$parent.isAreaShow"
155
- v-model="model.f_residential_area_id" multiple="true"
156
- @select-search="$parent.$parent.getAreaList"
157
- :options='$parent.$parent.areaList' placeholder='小区名称'
158
- condition="f_residential_area_id in {}">
159
- </v-select>
160
- </div>
161
- </div>
162
- </div>
163
- </criteria>
164
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
165
- <template partial='head'>
166
- <tr>
167
- <th>
168
- <nobr>序号</nobr>
169
- </th>
170
- <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
171
- <nobr>用户编号</nobr>
172
- </th>
173
- <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
174
- <nobr>用户名称</nobr>
175
- </th>
176
- <th v-show="$parent.$parent.$parent.isAreaShow">
177
- <nobr>单位名称</nobr>
178
- </th>
179
- <th v-show="$parent.$parent.$parent.isCompanyShow">
180
- <nobr>小区名称</nobr>
181
- </th>
182
- <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
183
- <nobr>购气(充值)时间</nobr>
184
- </th>
185
- <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
186
- <nobr>卡表购气量</nobr>
187
- </th>
188
- <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
189
- <nobr>卡表购气金额</nobr>
190
- </th>
191
- <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
192
- <nobr>物联网表购气金额</nobr>
193
- </th>
194
- <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
195
- <nobr>表具数量</nobr>
196
- </th>
197
- <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
198
- <nobr>期间购气表具数</nobr>
199
- </th>
200
- <th>
201
- <nobr>购气(充值)数量</nobr>
202
- </th>
203
- <th>
204
- <nobr>一阶气量</nobr>
205
- </th>
206
- <th v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
207
- <nobr>二阶气量</nobr>
208
- </th>
209
- <th v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
210
- <nobr>三阶气量</nobr>
211
- </th>
212
- <th>
213
- <nobr>实收款</nobr>
214
- </th>
215
- <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
216
- <nobr>购气网点</nobr>
217
- </th>
218
- <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
219
- <nobr>操作员</nobr>
220
- </th>
221
- </tr>
222
- </template>
223
- <template partial='body'>
224
- <td style="text-align:center">
225
- <nobr>{{ $index + 1 }}</nobr>
226
- </td>
227
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
228
- <nobr>{{ row.f_userinfo_code }}</nobr>
229
- </td>
230
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow">
231
- <nobr><span @click="$parent.$parent.$parent.toDetail(row,'1')"><a>{{ row.f_company_name }}</a></span></nobr>
232
- </td>
233
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isCompanyShow">
234
- <nobr><span @click="$parent.$parent.$parent.toDetail(row,'2')"><a>{{ row.f_residential_area }}</a></span></nobr>
235
- </td>
236
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
237
- <nobr>{{ row.f_user_name }}</nobr>
238
- </td>
239
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
240
- <nobr>{{ row.f_operate_date }}</nobr>
241
- </td>
242
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
243
- <nobr>{{ row.f_gas }}</nobr>
244
- </td>
245
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
246
- <nobr>{{ row.f_card_money }}</nobr>
247
- </td>
248
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
249
- <nobr>{{ row.f_money }}</nobr>
250
- </td>
251
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
252
- <nobr>{{ row.f_table_num }}</nobr>
253
- </td>
254
- <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
255
- <nobr>{{ row.f_sell_num }}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{ row.f_pregas }}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{ row.f_stairamount1 }}</nobr>
262
- </td>
263
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
264
- <nobr>{{ row.f_stairamount2 }}</nobr>
265
- </td>
266
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
267
- <nobr>{{ row.f_stairamount3 }}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{ row.f_collection }}</nobr>
271
- </td>
272
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
273
- <nobr>{{ row.f_depname }}</nobr>
274
- </td>
275
- <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
276
- <nobr>{{ row.f_operator }}</nobr>
277
- </td>
278
- </template>
279
- <template partial='foot'></template>
280
- </data-grid>
281
- </criteria-paged>
282
- <table class="table-hover">
283
- <tr style="position: relative" class="table-bordered">
284
- <td
285
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
286
- 汇总信息
287
- </td>
288
- <td
289
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
290
- 卡表购气:&emsp;{{ sumsmodel.f_gas.toFixed(2) }}m³
291
- </td>
292
- <td
293
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
294
- 卡表购气金额:&emsp;{{ sumsmodel.f_card_money.toFixed(2) }}元
295
- </td>
296
- <td
297
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
298
- 物联表充值:&emsp;{{ sumsmodel.f_money.toFixed(2) }}元
299
- </td>
300
- <td
301
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
302
- 收款合计:&emsp;{{ sumsmodel.f_collection.toFixed(2) }}元
303
- </td>
304
- <td v-if="isAreaShow || isCompanyShow"
305
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
306
- 表具数:&emsp;{{ sumsmodel.f_table_num }}
307
- </td>
308
- <td v-if="isAreaShow || isCompanyShow"
309
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
310
- 期间购气表具数:&emsp;{{ sumsmodel.f_sell_num }}
311
- </td>
312
- </tr>
313
- </table>
314
- </div>
315
- </div>
316
- </div>
317
- </template>
318
- <script>
319
- import {PagedList, HttpResetClass} from 'vue-client'
320
- import defaultPrint from './config/DefaultPrint'
321
- import exportConfig from './config/exportConfig'
322
- import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
323
-
324
- let readySomething = async function (self) {
325
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
326
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
327
- self.getCompanyList()
328
- self.getAreaList()
329
- }
330
- export default {
331
- title: '用户查询',
332
- data () {
333
- return {
334
- depresid: [],
335
- userresid: [],
336
- f_orgid: this.$login.f.orgid,
337
- f_depid: this.$login.f.depids,
338
- f_operatorid: this.$login.f.id,
339
- operatorid: [],
340
- depid: [],
341
- orgname: '',
342
- depname: [],
343
- operatorname: '',
344
- condition: '',
345
- orgConditionStr: '',
346
- data: {},
347
- other: [],
348
- footer: [],
349
- model: new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
350
- startDate: 'this.model.startDate',
351
- endDate: 'this.model.endDate'
352
- }, {
353
- f_collection: 0,
354
- f_gas: 0,
355
- f_card_money:0,
356
- f_money: 0
357
- }),
358
- gasproperties: [],
359
- show: false,
360
- sqlName: 'manage_chargeSummary',
361
- rowdata: {},
362
- areaList: [],
363
- modelval: [],
364
- startDate: '',
365
- endDate: '',
366
- inputtouPerson: [],
367
- printshow: false,
368
- all: false,
369
- fields: {},
370
- thead: '',
371
- tfoot: '',
372
- defaultfield: [],
373
- sumsmodel: {},
374
- initres: {
375
- org: [this.$login.f.orgid],
376
- slice_area: [],
377
- },
378
- criteriaShow: false,
379
- userusetypes: [],
380
- useinstitutions: [],
381
- userusenatures: [],
382
- sumExport: {'f_gas': '卡表购气', 'f_collection': '实收款', 'f_money': '物联表充值'},
383
- isCompany: [{label: '是', value: '是'}, {label: '否', value: '否'}],
384
- isArea: [{label: '是', value: '是'}, {label: '否', value: '否'}],
385
- f_is_company: '否',
386
- f_is_area: '否',
387
- isCompanyShow: false,
388
- isAreaShow: false,
389
- corporatename: []
390
- }
391
- },
392
- props: {
393
- style: {
394
- type: String,
395
- default: 'col-sm-2 form-group'
396
- }
397
- },
398
- ready () {
399
- readySomething(this).then(() => {
400
- this.$emit('ready')
401
- }).catch((error) => {
402
- this.$emit('error', error)
403
- })
404
- },
405
- methods: {
406
- toDetail (row, val) {
407
- row.type = val
408
- this.$dispatch('user-detail', row)
409
- },
410
- async getCompanyList(searchText){
411
- let condition = ' 1 = 1 '
412
- if (searchText) {
413
- condition = ` f_company_name like '%${searchText}%' `
414
- }
415
- let HttpReset = new HttpResetClass()
416
- HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
417
- data: {
418
- items: 'f_company_name, id',
419
- tablename: 't_company',
420
- orderitem: 'id desc',
421
- condition: condition
422
- }
423
- }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
424
- let redata = []
425
- req.data.forEach((row, n) => {
426
- redata[n] = {
427
- label: row.f_company_name,
428
- value: row.id
429
- }
430
- })
431
- this.corporatename = [{label: '全部', value: ''}, ...redata]
432
- })
433
- },
434
- getAreaList (searchText) {
435
- let condition = ' 1 = 1 '
436
- if (searchText) {
437
- condition = ` f_residential_area like '%${searchText}%' `
438
- }
439
- let HttpReset = new HttpResetClass()
440
- HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
441
- data: {
442
- items: 'f_residential_area, id',
443
- tablename: 't_area',
444
- orderitem: 'id desc',
445
- condition: condition
446
- }
447
- }, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
448
- let redata = []
449
- req.data.forEach((row, n) => {
450
- redata[n] = {
451
- label: row.f_residential_area,
452
- value: row.id
453
- }
454
- })
455
- this.areaList = [{label: '全部', value: ''}, ...redata]
456
- })
457
- },
458
- clear() {
459
- //清空部门和人员
460
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
461
- //部门和人员变为全选
462
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
463
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
464
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
465
- this.$refs.paged.$refs.cri.model[key] = []
466
- })
467
- this.f_is_company = '否'
468
- this.f_is_area = '否'
469
- },
470
- isAreaChange () {
471
- if(this.f_is_area){
472
- if (this.f_is_area == '是') {
473
- this.isCompanyShow = true
474
- this.sqlName = 'manage_chargeSummaryByArea'
475
- this.model = new PagedList('api/af-revenue/sql/manage_chargeSummaryByArea', 20, {
476
- startDate: 'this.model.startDate',
477
- endDate: 'this.model.endDate',
478
- condition2: 'this.model.condition2'
479
- }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,f_sell_num:0,f_table_num:0})
480
- } else {
481
- this.sqlName = 'manage_chargeSummary'
482
- this.isCompanyShow = false
483
- this.model = new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
484
- startDate: 'this.model.startDate',
485
- endDate: 'this.model.endDate'
486
- }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,})
487
- }
488
- }
489
- },
490
- isCompanyChange () {
491
- if (this.f_is_company) {
492
- if (this.f_is_company == '是') {
493
- this.sqlName = 'manage_chargeSummaryByCompany'
494
- this.isAreaShow = true
495
- this.model = new PagedList('api/af-revenue/sql/manage_chargeSummaryByCompany', 20, {
496
- startDate: 'this.model.startDate',
497
- endDate: 'this.model.endDate',
498
- condition2: 'this.model.condition2'
499
- }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,f_sell_num:0,f_table_num:0})
500
- } else {
501
- this.sqlName = 'manage_chargeSummary'
502
- this.isAreaShow = false
503
- this.model = new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
504
- startDate: 'this.model.startDate',
505
- endDate: 'this.model.endDate'
506
- }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,})
507
- }
508
- }
509
- },
510
- userTypeChange () {
511
- this.userusetypes = []
512
- this.userusenatures = []
513
- this.useinstitutions = []
514
- this.$refs.paged.$refs.cri.model.f_user_usetype = []
515
- this.$refs.paged.$refs.cri.model.f_use_institution = ''
516
- this.$refs.paged.$refs.cri.model.f_user_usenature = ''
517
- if (this.$refs.paged.$refs.cri.model.f_user_type) {
518
- let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
519
- this.userusetypes = this.$appdata.getParam(str)
520
- }
521
- },
522
- userUseTypeChange () {
523
- this.useinstitutions = []
524
- this.userusenatures = []
525
- this.$refs.paged.$refs.cri.model.f_use_institution = ''
526
- this.$refs.paged.$refs.cri.model.f_user_usenature = ''
527
- if (this.$refs.paged.$refs.cri.model.f_user_usetype.length > 0) {
528
- for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_user_usetype.length; i++) {
529
- let str = this.$refs.paged.$refs.cri.model.f_user_usetype[i] + '机构'
530
- let getParam = this.$appdata.getParam(str)
531
- Array.prototype.push.apply(this.useinstitutions, getParam);
532
- }
533
- }
534
- let temp = {}
535
- this.useinstitutions = this.useinstitutions.filter(function(item) {
536
- var key = JSON.stringify(item);
537
- return temp.hasOwnProperty(key) ? false : (temp[key] = true);
538
- });
539
- },
540
- userUseInstitutionChange () {
541
- this.userusenatures = []
542
- this.$refs.paged.$refs.cri.model.f_user_usenature = ''
543
- if (this.$refs.paged.$refs.cri.model.f_use_institution) {
544
- let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
545
- this.userusenatures = this.$appdata.getParam(str)
546
- }
547
- },
548
- hidden () {
549
- this.criteriaShow = !this.criteriaShow
550
- },
551
- getotherfooter () {
552
- this.other = []
553
- this.footer = []
554
- let exportdata = this.getCondition
555
- let otherInData = []
556
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
557
- let footerData = [], exportfield = this.sumExport
558
- footerData.push('合计')
559
- let self = this
560
- for (var field in self.sumsmodel) {
561
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
562
- }
563
- this.footer.push(footerData)
564
- this.other.push(otherInData)
565
- },
566
- search () {
567
- this.$refs.paged.$refs.cri.search()
568
- },
569
- appendCondition (data) {
570
- console.log('data=====>',data)
571
- let stringValue = ''
572
- for (var i = 0; i < data.length; i++) {
573
- if (data[i]) {
574
- if (i === data.length - 1) {
575
- stringValue = stringValue + "'" + data[i] + "'"
576
- } else {
577
- stringValue = stringValue + "'" + data[i] + "',"
578
- }
579
- }
580
- }
581
- return stringValue
582
- },
583
- async selfSearch (args) {
584
- let companyCondition2 = '1=1'
585
- if (!this.orgConditionStr) {
586
- args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
587
- companyCondition2 = companyCondition2 + ' and f_orgid = ' + this.$login.f.orgid
588
- } else {
589
- args.condition = `${args.condition}` + this.orgConditionStr
590
- companyCondition2 = companyCondition2 + this.orgConditionStr
591
- }
592
- if (this.isAreaShow || this.isCompanyShow) {
593
- if (args.model.f_company_id.length > 0) {
594
- companyCondition2 = companyCondition2 + ' and id in (' + await this.appendCondition(args.model.f_company_id) + ')'
595
- }
596
- if (args.model.f_residential_area_id.length > 0) {
597
- companyCondition2 = companyCondition2 + ' and id in (' + await this.appendCondition(args.model.f_residential_area_id) + ')'
598
- }
599
- }
600
- if (this.$refs.paged.$refs.cri.model.f_user_type == '民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
601
- args.condition = args.condition + " and f_user_usetype in ('居民用气')"
602
- } else if (this.$refs.paged.$refs.cri.model.f_user_type == '非民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
603
- args.condition = args.condition + " and f_user_usetype in ('公福用气','商业用户','工业用户')"
604
- }
605
- args.model.condition2 = companyCondition2
606
- this.condition = args.condition
607
- console.log("查看条件",this.condition)
608
- await this.model.search(args.condition, args.model)
609
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
610
- this.card = ''
611
- this.IdCardInfo = ''
612
- console.log('合计字段', this.sumsmodel)
613
- this.$dispatch('cancel')
614
- },
615
- getRes (obj) {
616
- this.orgConditionStr = obj
617
- },
618
- stamp () {
619
- this.all = false
620
- //默认选择要打印的列
621
- this.modelval = defaultPrint.config
622
- this.fields = this.getfield
623
- console.log('所有打印字段', this.fields)
624
- this.printshow = true
625
- this.put()
626
- },
627
- put () {
628
- // 对Modelval进行排序
629
- this.sortModelval()
630
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
631
- for (let key of this.modelval) {
632
- this.thead += '<th>' + this.fields[key] + '</th>'
633
- }
634
- this.thead += '</tr>'
635
- },
636
- print () {
637
- this.$refs.print.PrintAsFile()
638
- this.printshow = false
639
- },
640
- dealmsg (val) {
641
- console.log('---------------dealmsg')
642
- this.rowdata = val
643
- this.show = true
644
- val.model = this.model.model
645
- this.$dispatch('deal-msg', val)
646
- },
647
- close () {
648
- this.printshow = false
649
- this.all = false
650
- },
651
- // 对选择的列进行排序
652
- sortModelval () {
653
- let sortModel = []
654
- Object.keys(this.fields).forEach((key) => {
655
- if (this.modelval.includes(key)) {
656
- sortModel.push(key)
657
- }
658
- })
659
- this.modelval = sortModel
660
- console.log('选择的打印的字段', this.modelval)
661
- }
662
- },
663
- watch: {
664
- 'all' (val) {
665
- if (val) {
666
- this.modelval = this.bodyData
667
- } else {
668
- this.modelval = defaultPrint.config
669
- this.put()
670
- }
671
- },
672
- sumsmodel: {
673
- handler: function (val) {
674
- this.getotherfooter()
675
- },
676
- deep: true
677
- },
678
- 'modelval.length' () {
679
- this.put()
680
- }
681
- },
682
- computed: {
683
- getCondition () {
684
- return {
685
- condition: this.condition,
686
- startDate: this.$refs.paged.$refs.cri.model.startDate,
687
- endDate: this.$refs.paged.$refs.cri.model.endDate,
688
- condition2: this.$refs.paged.$refs.cri.model.condition2
689
- }
690
- },
691
- getfield () {
692
- let field
693
- if (this.isAreaShow) {
694
- field = exportConfig.manageChargeSummaryByCompanyConfig
695
- } else if (this.isCompanyShow) {
696
- field = exportConfig.manageChargeSummaryByAreaConfig
697
- } else {
698
- field = exportConfig.manageChargeSummaryConfig
699
- }
700
- return field
701
- },
702
- useTypes () {
703
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
704
- },
705
- usertypes () {
706
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
707
- }
708
-
709
- }
710
- }
711
- </script>
712
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
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="$parent.$parent.style">
10
+ <label class="font_normal_body">按单位查询</label>
11
+ <v-select :value.sync="$parent.$parent.f_is_company"
12
+ :options='$parent.$parent.isCompany'
13
+ placeholder='请选择' v-model="$parent.$parent.f_is_company"
14
+ @change="$parent.$parent.isCompanyChange()"
15
+ value-single="true"
16
+ :disabled="$parent.$parent.isCompanyShow"
17
+ close-on-select></v-select>
18
+ </div>
19
+ <div :class="$parent.$parent.style">
20
+ <label class="font_normal_body">按小区查询</label>
21
+ <v-select :value.sync="$parent.$parent.f_is_area"
22
+ :options='$parent.$parent.isArea'
23
+ placeholder='请选择' v-model="$parent.$parent.f_is_area"
24
+ @change="$parent.$parent.isAreaChange()"
25
+ value-single="true"
26
+ :disabled="$parent.$parent.isAreaShow"
27
+ close-on-select></v-select>
28
+ </div>
29
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
30
+ <label for="startDate" class="font_normal_body">开始日期</label>
31
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
32
+ v-model="model.startDate"
33
+ :value.sync="model.startDate"
34
+ :format="'yyyy-MM-dd'"
35
+ :show-reset-button="true">
36
+ </datepicker>
37
+ </div>
38
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
39
+ <label for="endDate" class="font_normal_body">结束日期</label>
40
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
41
+ v-model="model.endDate"
42
+ :value.sync="model.endDate"
43
+ :format="'yyyy-MM-dd'"
44
+ :show-reset-button="true">
45
+ </datepicker>
46
+ </div>
47
+ <div class="span" style="float:right;">
48
+ <button class="button_search button_spacing" @click="search()">查询</button>
49
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
50
+ <export-excel :data="$parent.$parent.getCondition"
51
+ :field="$parent.$parent.getfield"
52
+ :header="$parent.$parent.other"
53
+ :footer="$parent.$parent.footer"
54
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
55
+ :sql-name="$parent.$parent.sqlName"
56
+ template-name='营收汇总报表'
57
+ :choose-col="true"></export-excel>
58
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
59
+ :field="$parent.$parent.getfield"
60
+ titletable="营收汇总报表" :starthead="$parent.$parent.startDate"
61
+ :defaultfield="$parent.$parent.defaultfield"
62
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
63
+ <div
64
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
65
+ @click="$parent.$parent.hidden()"
66
+ class="button_spacing"
67
+ style="float: right"></div>
68
+ </div>
69
+ </div>
70
+ <div class="row" v-if="$parent.$parent.criteriaShow">
71
+ <res-select-group
72
+ :style="$parent.$parent.style"
73
+ :show-component="['company','slicearea']"
74
+ :initres="$parent.$parent.initres"
75
+ @re-res="$parent.$parent.getRes"
76
+ v-ref:sel
77
+ ></res-select-group>
78
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
79
+ <label for="startDate" class="font_normal_body">开始日期</label>
80
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
81
+ v-model="model.startDate"
82
+ :value.sync="model.startDate"
83
+ :format="'yyyy-MM-dd'"
84
+ :show-reset-button="true">
85
+ </datepicker>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
88
+ <label for="endDate" class="font_normal_body">结束日期</label>
89
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
90
+ v-model="model.endDate"
91
+ :value.sync="model.endDate"
92
+ :format="'yyyy-MM-dd'"
93
+ :show-reset-button="true">
94
+ </datepicker>
95
+ </div>
96
+ <div :class="$parent.$parent.style">
97
+ <label class="font_normal_body">用户类型</label>
98
+ <v-select :value.sync="model.f_user_type"
99
+ :options='$parent.$parent.usertypes'
100
+ placeholder='请选择' v-model="model.f_user_type"
101
+ :value-single="true"
102
+ @change="$parent.$parent.userTypeChange()"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div :class="$parent.$parent.style">
106
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
107
+ <v-select :value.sync="model.f_user_usetype" :search="false"
108
+ @change="$parent.$parent.userUseTypeChange()"
109
+ v-model="model.f_user_usetype"
110
+ :multiple="true"
111
+ :options='$parent.$parent.userusetypes'
112
+ condition="f_user_usetype in {}"
113
+ placeholder='用气类型'>
114
+ </v-select>
115
+ </div>
116
+ <div :class="$parent.$parent.style">
117
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
118
+ <v-select :value.sync="model.f_use_institution" :search="false"
119
+ @change="$parent.$parent.userUseInstitutionChange()"
120
+ v-model="model.f_use_institution"
121
+ :value-single="true"
122
+ :options='$parent.$parent.useinstitutions'
123
+ condition="f_use_institution = '{}'"
124
+ placeholder='用气机构'
125
+ close-on-select>
126
+ </v-select>
127
+ </div>
128
+ <div :class="$parent.$parent.style">
129
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
130
+ <v-select :value.sync="model.f_user_usenature" :search="false"
131
+ v-model="model.f_user_usenature"
132
+ :value-single="true"
133
+ :options='$parent.$parent.userusenatures'
134
+ condition="f_user_usenature = '{}'"
135
+ placeholder='使用性质'
136
+ close-on-select>
137
+ </v-select>
138
+ </div>
139
+ <div :class="$parent.$parent.style">
140
+ <label for="endDate" class="font_normal_body">单位名称</label>
141
+ <v-select :value.sync="model.f_company_id"
142
+ class="select_list select"
143
+ enter-push :disabled="$parent.$parent.isCompanyShow"
144
+ v-model="model.f_company_id" multiple="true"
145
+ @select-search="$parent.$parent.getCompanyList"
146
+ :options='$parent.$parent.corporatename' placeholder='单位名称'
147
+ condition="f_company_id in {}">
148
+ </v-select>
149
+ </div>
150
+ <div :class="$parent.$parent.style">
151
+ <label for="endDate" class="font_normal_body">小区名称</label>
152
+ <v-select :value.sync="model.f_residential_area_id"
153
+ class="select_list select"
154
+ enter-push :disabled="$parent.$parent.isAreaShow"
155
+ v-model="model.f_residential_area_id" multiple="true"
156
+ @select-search="$parent.$parent.getAreaList"
157
+ :options='$parent.$parent.areaList' placeholder='小区名称'
158
+ condition="f_residential_area_id in {}">
159
+ </v-select>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </criteria>
164
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
165
+ <template partial='head'>
166
+ <tr>
167
+ <th>
168
+ <nobr>序号</nobr>
169
+ </th>
170
+ <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
171
+ <nobr>用户编号</nobr>
172
+ </th>
173
+ <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
174
+ <nobr>用户名称</nobr>
175
+ </th>
176
+ <th v-show="$parent.$parent.$parent.isAreaShow">
177
+ <nobr>单位名称</nobr>
178
+ </th>
179
+ <th v-show="$parent.$parent.$parent.isCompanyShow">
180
+ <nobr>小区名称</nobr>
181
+ </th>
182
+ <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
183
+ <nobr>购气(充值)时间</nobr>
184
+ </th>
185
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
186
+ <nobr>卡表购气量</nobr>
187
+ </th>
188
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
189
+ <nobr>卡表购气金额</nobr>
190
+ </th>
191
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
192
+ <nobr>物联网表购气金额</nobr>
193
+ </th>
194
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
195
+ <nobr>表具数量</nobr>
196
+ </th>
197
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
198
+ <nobr>期间购气表具数</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>购气(充值)数量</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>一阶气量</nobr>
205
+ </th>
206
+ <th v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
207
+ <nobr>二阶气量</nobr>
208
+ </th>
209
+ <th v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
210
+ <nobr>三阶气量</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>实收款</nobr>
214
+ </th>
215
+ <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
216
+ <nobr>购气网点</nobr>
217
+ </th>
218
+ <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
219
+ <nobr>操作员</nobr>
220
+ </th>
221
+ </tr>
222
+ </template>
223
+ <template partial='body'>
224
+ <td style="text-align:center">
225
+ <nobr>{{ $index + 1 }}</nobr>
226
+ </td>
227
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
228
+ <nobr>{{ row.f_userinfo_code }}</nobr>
229
+ </td>
230
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow">
231
+ <nobr><span @click="$parent.$parent.$parent.toDetail(row,'1')"><a>{{ row.f_company_name }}</a></span></nobr>
232
+ </td>
233
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isCompanyShow">
234
+ <nobr><span @click="$parent.$parent.$parent.toDetail(row,'2')"><a>{{ row.f_residential_area }}</a></span></nobr>
235
+ </td>
236
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
237
+ <nobr>{{ row.f_user_name }}</nobr>
238
+ </td>
239
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
240
+ <nobr>{{ row.f_operate_date }}</nobr>
241
+ </td>
242
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
243
+ <nobr>{{ row.f_gas }}</nobr>
244
+ </td>
245
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
246
+ <nobr>{{ row.f_card_money }}</nobr>
247
+ </td>
248
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
249
+ <nobr>{{ row.f_money }}</nobr>
250
+ </td>
251
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
252
+ <nobr>{{ row.f_table_num }}</nobr>
253
+ </td>
254
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
255
+ <nobr>{{ row.f_sell_num }}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{ row.f_pregas }}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{ row.f_stairamount1 }}</nobr>
262
+ </td>
263
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
264
+ <nobr>{{ row.f_stairamount2 }}</nobr>
265
+ </td>
266
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
267
+ <nobr>{{ row.f_stairamount3 }}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{ row.f_collection }}</nobr>
271
+ </td>
272
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
273
+ <nobr>{{ row.f_depname }}</nobr>
274
+ </td>
275
+ <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
276
+ <nobr>{{ row.f_operator }}</nobr>
277
+ </td>
278
+ </template>
279
+ <template partial='foot'></template>
280
+ </data-grid>
281
+ </criteria-paged>
282
+ <table class="table-hover">
283
+ <tr style="position: relative" class="table-bordered">
284
+ <td
285
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
286
+ 汇总信息
287
+ </td>
288
+ <td
289
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
290
+ 卡表购气:&emsp;{{ sumsmodel.f_gas.toFixed(2) }}m³
291
+ </td>
292
+ <td
293
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
294
+ 卡表购气金额:&emsp;{{ sumsmodel.f_card_money.toFixed(2) }}元
295
+ </td>
296
+ <td
297
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
298
+ 物联表充值:&emsp;{{ sumsmodel.f_money.toFixed(2) }}元
299
+ </td>
300
+ <td
301
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
302
+ 收款合计:&emsp;{{ sumsmodel.f_collection.toFixed(2) }}元
303
+ </td>
304
+ <td v-if="isAreaShow || isCompanyShow"
305
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
306
+ 表具数:&emsp;{{ sumsmodel.f_table_num }}
307
+ </td>
308
+ <td v-if="isAreaShow || isCompanyShow"
309
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
310
+ 期间购气表具数:&emsp;{{ sumsmodel.f_sell_num }}
311
+ </td>
312
+ </tr>
313
+ </table>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </template>
318
+ <script>
319
+ import {PagedList, HttpResetClass} from 'vue-client'
320
+ import defaultPrint from './config/DefaultPrint'
321
+ import exportConfig from './config/exportConfig'
322
+ import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
323
+
324
+ let readySomething = async function (self) {
325
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
326
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
327
+ self.getCompanyList()
328
+ self.getAreaList()
329
+ }
330
+ export default {
331
+ title: '用户查询',
332
+ data () {
333
+ return {
334
+ depresid: [],
335
+ userresid: [],
336
+ f_orgid: this.$login.f.orgid,
337
+ f_depid: this.$login.f.depids,
338
+ f_operatorid: this.$login.f.id,
339
+ operatorid: [],
340
+ depid: [],
341
+ orgname: '',
342
+ depname: [],
343
+ operatorname: '',
344
+ condition: '',
345
+ orgConditionStr: '',
346
+ data: {},
347
+ other: [],
348
+ footer: [],
349
+ model: new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
350
+ startDate: 'this.model.startDate',
351
+ endDate: 'this.model.endDate'
352
+ }, {
353
+ f_collection: 0,
354
+ f_gas: 0,
355
+ f_card_money:0,
356
+ f_money: 0
357
+ }),
358
+ gasproperties: [],
359
+ show: false,
360
+ sqlName: 'manage_chargeSummary',
361
+ rowdata: {},
362
+ areaList: [],
363
+ modelval: [],
364
+ startDate: '',
365
+ endDate: '',
366
+ inputtouPerson: [],
367
+ printshow: false,
368
+ all: false,
369
+ fields: {},
370
+ thead: '',
371
+ tfoot: '',
372
+ defaultfield: [],
373
+ sumsmodel: {},
374
+ initres: {
375
+ org: [this.$login.f.orgid],
376
+ slice_area: [],
377
+ },
378
+ criteriaShow: false,
379
+ userusetypes: [],
380
+ useinstitutions: [],
381
+ userusenatures: [],
382
+ sumExport: {'f_gas': '卡表购气', 'f_collection': '实收款', 'f_money': '物联表充值'},
383
+ isCompany: [{label: '是', value: '是'}, {label: '否', value: '否'}],
384
+ isArea: [{label: '是', value: '是'}, {label: '否', value: '否'}],
385
+ f_is_company: '否',
386
+ f_is_area: '否',
387
+ isCompanyShow: false,
388
+ isAreaShow: false,
389
+ corporatename: []
390
+ }
391
+ },
392
+ props: {
393
+ style: {
394
+ type: String,
395
+ default: 'col-sm-2 form-group'
396
+ }
397
+ },
398
+ ready () {
399
+ readySomething(this).then(() => {
400
+ this.$emit('ready')
401
+ }).catch((error) => {
402
+ this.$emit('error', error)
403
+ })
404
+ },
405
+ methods: {
406
+ toDetail (row, val) {
407
+ row.type = val
408
+ this.$dispatch('user-detail', row)
409
+ },
410
+ async getCompanyList(searchText){
411
+ let condition = ' 1 = 1 '
412
+ if (searchText) {
413
+ condition = ` f_company_name like '%${searchText}%' `
414
+ }
415
+ let HttpReset = new HttpResetClass()
416
+ HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
417
+ data: {
418
+ items: 'f_company_name, id',
419
+ tablename: 't_company',
420
+ orderitem: 'id desc',
421
+ condition: condition
422
+ }
423
+ }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
424
+ let redata = []
425
+ req.data.forEach((row, n) => {
426
+ redata[n] = {
427
+ label: row.f_company_name,
428
+ value: row.id
429
+ }
430
+ })
431
+ this.corporatename = [{label: '全部', value: ''}, ...redata]
432
+ })
433
+ },
434
+ getAreaList (searchText) {
435
+ let condition = ' 1 = 1 '
436
+ if (searchText) {
437
+ condition = ` f_residential_area like '%${searchText}%' `
438
+ }
439
+ let HttpReset = new HttpResetClass()
440
+ HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
441
+ data: {
442
+ items: 'f_residential_area, id',
443
+ tablename: 't_area',
444
+ orderitem: 'id desc',
445
+ condition: condition
446
+ }
447
+ }, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
448
+ let redata = []
449
+ req.data.forEach((row, n) => {
450
+ redata[n] = {
451
+ label: row.f_residential_area,
452
+ value: row.id
453
+ }
454
+ })
455
+ this.areaList = [{label: '全部', value: ''}, ...redata]
456
+ })
457
+ },
458
+ clear() {
459
+ //清空部门和人员
460
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
461
+ //部门和人员变为全选
462
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
463
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
464
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
465
+ this.$refs.paged.$refs.cri.model[key] = []
466
+ })
467
+ this.f_is_company = '否'
468
+ this.f_is_area = '否'
469
+ },
470
+ isAreaChange () {
471
+ if(this.f_is_area){
472
+ if (this.f_is_area == '是') {
473
+ this.isCompanyShow = true
474
+ this.sqlName = 'manage_chargeSummaryByArea'
475
+ this.model = new PagedList('api/af-revenue/sql/manage_chargeSummaryByArea', 20, {
476
+ startDate: 'this.model.startDate',
477
+ endDate: 'this.model.endDate',
478
+ condition2: 'this.model.condition2'
479
+ }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,f_sell_num:0,f_table_num:0})
480
+ } else {
481
+ this.sqlName = 'manage_chargeSummary'
482
+ this.isCompanyShow = false
483
+ this.model = new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
484
+ startDate: 'this.model.startDate',
485
+ endDate: 'this.model.endDate'
486
+ }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,})
487
+ }
488
+ }
489
+ },
490
+ isCompanyChange () {
491
+ if (this.f_is_company) {
492
+ if (this.f_is_company == '是') {
493
+ this.sqlName = 'manage_chargeSummaryByCompany'
494
+ this.isAreaShow = true
495
+ this.model = new PagedList('api/af-revenue/sql/manage_chargeSummaryByCompany', 20, {
496
+ startDate: 'this.model.startDate',
497
+ endDate: 'this.model.endDate',
498
+ condition2: 'this.model.condition2'
499
+ }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,f_sell_num:0,f_table_num:0})
500
+ } else {
501
+ this.sqlName = 'manage_chargeSummary'
502
+ this.isAreaShow = false
503
+ this.model = new PagedList('api/af-revenue/sql/manage_chargeSummary', 20, {
504
+ startDate: 'this.model.startDate',
505
+ endDate: 'this.model.endDate'
506
+ }, {f_collection: 0, f_gas: 0, f_money: 0,f_card_money:0,})
507
+ }
508
+ }
509
+ },
510
+ userTypeChange () {
511
+ this.userusetypes = []
512
+ this.userusenatures = []
513
+ this.useinstitutions = []
514
+ this.$refs.paged.$refs.cri.model.f_user_usetype = []
515
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
516
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
517
+ if (this.$refs.paged.$refs.cri.model.f_user_type) {
518
+ let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
519
+ this.userusetypes = this.$appdata.getParam(str)
520
+ }
521
+ },
522
+ userUseTypeChange () {
523
+ this.useinstitutions = []
524
+ this.userusenatures = []
525
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
526
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
527
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype.length > 0) {
528
+ for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_user_usetype.length; i++) {
529
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype[i] + '机构'
530
+ let getParam = this.$appdata.getParam(str)
531
+ Array.prototype.push.apply(this.useinstitutions, getParam);
532
+ }
533
+ }
534
+ let temp = {}
535
+ this.useinstitutions = this.useinstitutions.filter(function(item) {
536
+ var key = JSON.stringify(item);
537
+ return temp.hasOwnProperty(key) ? false : (temp[key] = true);
538
+ });
539
+ },
540
+ userUseInstitutionChange () {
541
+ this.userusenatures = []
542
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
543
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
544
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
545
+ this.userusenatures = this.$appdata.getParam(str)
546
+ }
547
+ },
548
+ hidden () {
549
+ this.criteriaShow = !this.criteriaShow
550
+ },
551
+ getotherfooter () {
552
+ this.other = []
553
+ this.footer = []
554
+ let exportdata = this.getCondition
555
+ let otherInData = []
556
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
557
+ let footerData = [], exportfield = this.sumExport
558
+ footerData.push('合计')
559
+ let self = this
560
+ for (var field in self.sumsmodel) {
561
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
562
+ }
563
+ this.footer.push(footerData)
564
+ this.other.push(otherInData)
565
+ },
566
+ search () {
567
+ this.$refs.paged.$refs.cri.search()
568
+ },
569
+ appendCondition (data) {
570
+ console.log('data=====>',data)
571
+ let stringValue = ''
572
+ for (var i = 0; i < data.length; i++) {
573
+ if (data[i]) {
574
+ if (i === data.length - 1) {
575
+ stringValue = stringValue + "'" + data[i] + "'"
576
+ } else {
577
+ stringValue = stringValue + "'" + data[i] + "',"
578
+ }
579
+ }
580
+ }
581
+ return stringValue
582
+ },
583
+ async selfSearch (args) {
584
+ let companyCondition2 = '1=1'
585
+ if (!this.orgConditionStr) {
586
+ args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
587
+ companyCondition2 = companyCondition2 + ' and f_orgid = ' + this.$login.f.orgid
588
+ } else {
589
+ args.condition = `${args.condition}` + this.orgConditionStr
590
+ companyCondition2 = companyCondition2 + this.orgConditionStr
591
+ }
592
+ if (this.isAreaShow || this.isCompanyShow) {
593
+ if (args.model.f_company_id.length > 0) {
594
+ companyCondition2 = companyCondition2 + ' and id in (' + await this.appendCondition(args.model.f_company_id) + ')'
595
+ }
596
+ if (args.model.f_residential_area_id.length > 0) {
597
+ companyCondition2 = companyCondition2 + ' and id in (' + await this.appendCondition(args.model.f_residential_area_id) + ')'
598
+ }
599
+ }
600
+ if (this.$refs.paged.$refs.cri.model.f_user_type == '民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
601
+ args.condition = args.condition + " and f_user_usetype in ('居民用气')"
602
+ } else if (this.$refs.paged.$refs.cri.model.f_user_type == '非民用' && !this.$refs.paged.$refs.cri.model.f_user_usetype[0]) {
603
+ args.condition = args.condition + " and f_user_usetype in ('公福用气','商业用户','工业用户')"
604
+ }
605
+ args.model.condition2 = companyCondition2
606
+ this.condition = args.condition
607
+ console.log("查看条件",this.condition)
608
+ await this.model.search(args.condition, args.model)
609
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
610
+ this.card = ''
611
+ this.IdCardInfo = ''
612
+ console.log('合计字段', this.sumsmodel)
613
+ this.$dispatch('cancel')
614
+ },
615
+ getRes (obj) {
616
+ this.orgConditionStr = obj
617
+ },
618
+ stamp () {
619
+ this.all = false
620
+ //默认选择要打印的列
621
+ this.modelval = defaultPrint.config
622
+ this.fields = this.getfield
623
+ console.log('所有打印字段', this.fields)
624
+ this.printshow = true
625
+ this.put()
626
+ },
627
+ put () {
628
+ // 对Modelval进行排序
629
+ this.sortModelval()
630
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
631
+ for (let key of this.modelval) {
632
+ this.thead += '<th>' + this.fields[key] + '</th>'
633
+ }
634
+ this.thead += '</tr>'
635
+ },
636
+ print () {
637
+ this.$refs.print.PrintAsFile()
638
+ this.printshow = false
639
+ },
640
+ dealmsg (val) {
641
+ console.log('---------------dealmsg')
642
+ this.rowdata = val
643
+ this.show = true
644
+ val.model = this.model.model
645
+ this.$dispatch('deal-msg', val)
646
+ },
647
+ close () {
648
+ this.printshow = false
649
+ this.all = false
650
+ },
651
+ // 对选择的列进行排序
652
+ sortModelval () {
653
+ let sortModel = []
654
+ Object.keys(this.fields).forEach((key) => {
655
+ if (this.modelval.includes(key)) {
656
+ sortModel.push(key)
657
+ }
658
+ })
659
+ this.modelval = sortModel
660
+ console.log('选择的打印的字段', this.modelval)
661
+ }
662
+ },
663
+ watch: {
664
+ 'all' (val) {
665
+ if (val) {
666
+ this.modelval = this.bodyData
667
+ } else {
668
+ this.modelval = defaultPrint.config
669
+ this.put()
670
+ }
671
+ },
672
+ sumsmodel: {
673
+ handler: function (val) {
674
+ this.getotherfooter()
675
+ },
676
+ deep: true
677
+ },
678
+ 'modelval.length' () {
679
+ this.put()
680
+ }
681
+ },
682
+ computed: {
683
+ getCondition () {
684
+ return {
685
+ condition: this.condition,
686
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
687
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
688
+ condition2: this.$refs.paged.$refs.cri.model.condition2
689
+ }
690
+ },
691
+ getfield () {
692
+ let field
693
+ if (this.isAreaShow) {
694
+ field = exportConfig.manageChargeSummaryByCompanyConfig
695
+ } else if (this.isCompanyShow) {
696
+ field = exportConfig.manageChargeSummaryByAreaConfig
697
+ } else {
698
+ field = exportConfig.manageChargeSummaryConfig
699
+ }
700
+ return field
701
+ },
702
+ useTypes () {
703
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
704
+ },
705
+ usertypes () {
706
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
707
+ }
708
+
709
+ }
710
+ }
711
+ </script>
712
+