manage-client 3.3.233 → 3.3.234

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