manage-client 3.3.232 → 3.3.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  6. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/7.4/gc.properties +0 -0
  8. package/build/dev-server.js +190 -190
  9. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  10. package/gradlew +234 -234
  11. package/gradlew.bat +89 -89
  12. package/hs_err_pid13052.log +206 -206
  13. package/package.json +111 -111
  14. package/src/components/SellReport/BusinessClassify.vue +292 -292
  15. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  16. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  17. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -208
  18. package/src/components/SellReport/ManageSellType.vue +267 -267
  19. package/src/components/SellReport/ReportItems.vue +312 -312
  20. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  21. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  22. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  23. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  24. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  25. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  26. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  27. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  28. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  29. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  30. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  31. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  32. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  33. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  34. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  35. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  36. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  37. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  38. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  39. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  40. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  41. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  42. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  43. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  44. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  45. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  46. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  47. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  48. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  49. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  50. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  51. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  52. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  53. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  54. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  55. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  56. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  57. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  58. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  59. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  60. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  61. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  62. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  63. package/src/components/sale/businessquery/usergas.vue +315 -315
  64. package/src/components/sale/config/exportConfig.js +2763 -2762
  65. package/src/components/sale/config/tableConfig.js +59 -59
  66. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  67. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  68. package/src/components/sale/filesquery/UserQuery.vue +1002 -977
  69. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  70. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
  71. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
  72. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  73. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  74. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  75. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  76. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  77. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
  78. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  79. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  80. package/src/components/webmeter/report/ReportList.vue +453 -453
  81. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  82. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  83. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  84. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  85. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  86. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  87. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  88. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  89. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  90. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  91. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  92. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  93. package/src/filiale/bayan/config/tableConfig.js +59 -59
  94. package/src/filiale/bayan/sale.js +8 -8
  95. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  96. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  97. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  98. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  99. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  100. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  101. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  102. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  103. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  104. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  105. package/src/filiale/bayan/webmeterManage.js +26 -26
  106. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  107. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  108. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  109. package/src/filiale/dingcheng/sale.js +9 -9
  110. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  111. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  112. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  113. package/src/filiale/hantou/config/tableConfig.js +54 -54
  114. package/src/filiale/hantou/sale.js +8 -8
  115. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  116. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  117. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  118. package/src/filiale/jingyang/RechargeList.vue +346 -346
  119. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  120. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  121. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  122. package/src/filiale/jingyang/sale.js +8 -8
  123. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  124. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  125. package/src/filiale/kelai/GasStatistics.vue +561 -561
  126. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  127. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  128. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  129. package/src/filiale/kelai/reportManage.js +13 -13
  130. package/src/filiale/kelai/sale.js +17 -17
  131. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  132. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  133. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  134. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  135. package/src/filiale/macheng/config/exportConfig.js +79 -79
  136. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  137. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  138. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  139. package/src/filiale/meihekou/CollectManage.vue +152 -152
  140. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  141. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  142. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  143. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  144. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  145. package/src/filiale/meihekou/sale.js +39 -39
  146. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  147. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  148. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  149. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  150. package/src/filiale/qianneng/exportConfig.js +232 -232
  151. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  152. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  153. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  154. package/src/filiale/rizhao/sale.js +13 -13
  155. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  156. package/src/filiale/shangluo/sale.js +17 -17
  157. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  158. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  159. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  160. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  161. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  162. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  163. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  164. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  165. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  166. package/src/filiale/taizhoukesi/sale.js +11 -11
  167. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  168. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  169. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  170. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  171. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  172. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  173. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  174. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  175. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  176. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  177. package/src/filiale/xinjiangdexin/sale.js +7 -7
  178. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  179. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  180. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  181. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  182. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  183. package/src/filiale/yangchun/UserQuery.vue +980 -980
  184. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  185. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  186. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  187. package/src/filiale/yangchun/reportManage.js +6 -6
  188. package/src/filiale/yangchun/sale.js +20 -20
  189. package/src/filiale/yangchun/webmeterManage.js +5 -5
  190. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  191. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  192. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  193. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  194. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  195. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  196. package/src/filiale/yuncheng/sale.js +23 -23
  197. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  198. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  199. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  200. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  201. package/src/filiale/zhongyi/sale.js +33 -33
  202. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  203. package/src/main.js +68 -68
  204. package/src/plugins/LodopFuncs.js +159 -159
  205. package/src/reportManage.js +777 -777
  206. package/src/saleManage.js +689 -689
  207. package/src/webmeterManage.js +130 -130
@@ -1,716 +1,716 @@
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="col-sm-2 form-group">
10
- <label class="font_normal_body">公&emsp;&emsp;司&emsp;</label>
11
- <right-tree @re-res="$parent.$parent.getorg"
12
- :initresid='$parent.$parent.org'></right-tree>
13
- </div>
14
-
15
- <div class="col-sm-2 form-group ">
16
- <label for="startDate" class="font_normal_body">抄表开始&emsp;</label>
17
- <datepicker id="startDate" placeholder="开始日期"
18
- v-model="model.startDate"
19
- style="width:60%"
20
- :value.sync="model.startDate"
21
- :disabled-days-of-Week="[]"
22
- :format="'yyyy-MM-dd HH:mm:ss'"
23
- :show-reset-button="reset">
24
- </datepicker>
25
- </div>
26
- <div class="col-sm-2 form-group ">
27
- <label for="startDate" class="font_normal_body">抄表结束&emsp;</label>
28
- <datepicker id="endDate" placeholder="结束日期"
29
- v-model="model.endDate"
30
- style="width:60%"
31
- :value.sync="model.endDate"
32
- :disabled-days-of-Week="[]"
33
- :format="'yyyy-MM-dd HH:mm:ss'"
34
- :show-reset-button="reset">
35
- </datepicker>
36
- </div>
37
-
38
- <div class="col-sm-2 form-group ">
39
- <label for="f_gasproperties"class="font_normal_body">用气性质&emsp;</label>
40
- <v-select id="f_gasproperties"
41
- style="width:60%"
42
- v-model="model.f_gasproperties"
43
- placeholder='用气性质'
44
- :value.sync="model.f_gasproperties"
45
- :options='$parent.$parent.gasproperties'
46
- condition="f_gasproperties = '{}'"
47
- close-on-select >
48
- </v-select>
49
- </div>
50
- <div class="span" style="float:right;">
51
- <button class="btn button_search" @click="search()">查询</button>
52
- <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
53
- <export-excel :data="$parent.$parent.getCondition"
54
- :field="$parent.$parent.getfield"
55
- :footer="$parent.$parent.footer"
56
- :header="$parent.$parent.other"
57
- sqlurl="api/af-revenue/logic/openapi/exportfile"
58
- :sql-name="$parent.$parent.sqlName"
59
- template-name='用气稽查导出' :choose-col="true"></export-excel>
60
- <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
61
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
62
-
63
- </div>
64
- </div>
65
- <div class="row" v-show="$parent.$parent.criteriaShow">
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body" title="二级用气性质">二级性质</label>
68
- <v-select :value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
69
- :options='$parent.$parent.gaspropertiessecond' placeholder='二级用气性质'
70
- condition="f_gasproperties_second = '{}'"
71
- close-on-select></v-select>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">客户状态&emsp; </label>
75
- <v-select :value.sync="model.f_user_state"
76
- v-model="model.f_user_state"
77
- :options='$parent.$parent.userstates' placeholder='请选择'
78
- condition="f_user_state = '{}'"
79
- close-on-select></v-select>
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body">气表状态&emsp;</label>
83
- <v-select :value.sync="model.f_table_state"
84
- v-model="model.f_table_state"
85
- :options='$parent.$parent.tablestate' placeholder='请选择'
86
- condition="f_table_state = '{}'"
87
- close-on-select></v-select>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">表&emsp;&emsp;号&emsp;</label>
91
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
92
- condition="f_meternumber = '{}'" placeholder='表号'>
93
- </div>
94
- <div class="col-sm-2 form-group ">
95
- <label class="font_normal_body">用户类型&emsp;</label>
96
- <v-select :value.sync="model.f_user_type"
97
- @change="$parent.$parent.userTypeChange()"
98
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
99
- condition="f_user_type = '{}'"
100
- close-on-select></v-select>
101
- </div>
102
- <div class="col-sm-2 form-group">
103
- <label class="font_normal_body">气价类型</label>
104
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
105
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
106
- close-on-select v-ref:type>
107
- </v-select>
108
- </div>
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">气价名称</label>
111
- <v-select :value.sync="model.f_price_name"
112
- v-model="model.f_price_name"
113
- :options="$parent.$parent.getPricenames"
114
- condition="f_price_name = '{}'"
115
- close-on-select></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">客户名称&emsp;</label>
119
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
120
- condition="f_user_name like '%{}%'" placeholder="客户名称">
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">客户编号&emsp;</label>
124
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
125
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body" title="旧客户编号">档案编号&emsp;</label>
129
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
130
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">表箱号&emsp;&emsp;</label>
134
- <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
135
- condition="f_metertitles = '{}'" placeholder="表箱号">
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">客户地址&emsp;</label>
139
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
140
- condition="f_address like '%{}%'" placeholder='客户地址'>
141
- </div>
142
- <div class="col-sm-2 form-group">
143
- <label class="font_normal_body">客户电话&emsp;</label>
144
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
145
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">气表品牌&emsp;</label>
149
- <v-select :value.sync="model.f_meter_brand"
150
- v-model="model.f_meter_brand"
151
- :options='$parent.$parent.meterbrands' placeholder='请选择'
152
- condition="f_meter_brand = '{}'"
153
- close-on-select></v-select>
154
- </div>
155
- <div class="col-sm-2 form-group">
156
- <label class="font_normal_body">表册片区&emsp;</label>
157
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
158
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
159
- style="width:60%"
160
- close-on-select
161
- condition="f_book_slice_area = '{}'"></v-select>
162
- </div>
163
- <div class="col-sm-2 ">
164
- <label for="f_meter_classify" class="font_normal_body">表类型&emsp;&emsp;</label>
165
- <v-select id="f_meter_classify"
166
- v-model="model.meter_classify"
167
- placeholder='表类型'
168
- style="width:70%"
169
- :value.sync="model.meter_classify"
170
- :options='$parent.$parent.f_meter_classify'
171
- condition="f_meter_classify like '%{}'"
172
- :value-single="true"
173
- close-on-select >
174
- </v-select>
175
- </div>
176
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
177
- <label class="font_normal_body">欠费月数&emsp;</label>
178
- <div class="row">
179
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummin"
180
- placeholder="">
181
- <label class="font_normal_body"> ≤ x ≤ </label>
182
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummax"
183
- placeholder="">
184
- </div>
185
- </div>
186
-
187
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
188
- <label class="font_normal_body">欠费条数&emsp;</label>
189
- <div class="row">
190
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummin"
191
- placeholder="">
192
- <label class="font_normal_body"> ≤ x ≤ </label>
193
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummax"
194
- placeholder="">
195
- </div>
196
- </div>
197
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
198
- <label class="font_normal_body">总欠费气量</label>
199
- <div class="row">
200
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmin"
201
- placeholder="">
202
- <label class="font_normal_body"> ≤ x ≤ </label>
203
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmax"
204
- placeholder="">
205
- </div>
206
- </div>
207
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
208
- <label class="font_normal_body">总欠费金额</label>
209
- <div class="row">
210
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemin"
211
- placeholder="">
212
- <label class="font_normal_body"> ≤ x ≤ </label>
213
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemax"
214
- placeholder="">
215
- </div>
216
- </div>
217
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
218
- <label class="font_normal_body">欠费月平均气量</label>
219
- <div class="row">
220
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmin"
221
- placeholder="">
222
- <label class="font_normal_body"> ≤ x ≤ </label>
223
- <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmax"
224
- placeholder="">
225
- </div>
226
- </div>
227
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
228
- <label class="font_normal_body">用气量&emsp;&emsp;</label>
229
- <div class="row">
230
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_min"
231
- placeholder="">
232
- <label class="font_normal_body"> ≤ x ≤ </label>
233
- <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_max"
234
- placeholder="">
235
- </div>
236
- </div>
237
- </div>
238
-
239
- </div>
240
- </criteria>
241
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
242
- <template partial='head'>
243
- <tr>
244
- <th><nobr>序号</nobr></th>
245
- <th><nobr>客户编号</nobr></th>
246
- <th><nobr>客户电话</nobr></th>
247
- <th><nobr>档案编号</nobr></th>
248
- <th><nobr>表号</nobr></th>
249
- <th><nobr>客户名称</nobr></th>
250
- <th><nobr>地址</nobr></th>
251
- <th><nobr>表箱号</nobr></th>
252
- <th><nobr>用户类型</nobr></th>
253
- <th><nobr>用气性质</nobr></th>
254
- <th><nobr>二级用气性质</nobr></th>
255
- <th><nobr>表具状态</nobr></th>
256
- <th><nobr>客户状态</nobr></th>
257
- <th><nobr>气价名称</nobr></th>
258
- <th><nobr>气表品牌</nobr></th>
259
- <th><nobr>表册片区</nobr></th>
260
- <th><nobr>当前表底数</nobr></th>
261
- <th><nobr>最后抄表日期</nobr></th>
262
- <th><nobr>用气量</nobr></th>
263
- <th><nobr>用气金额</nobr></th>
264
- <th><nobr>一阶气量</nobr></th>
265
- <th><nobr>一阶金额</nobr></th>
266
- <th><nobr>二阶气量</nobr></th>
267
- <th><nobr>二阶金额</nobr></th>
268
- <th><nobr>三阶气量</nobr></th>
269
- <th><nobr>三阶金额</nobr></th>
270
- <th><nobr>欠费月数</nobr></th>
271
- <th><nobr>欠费条数</nobr></th>
272
- <th><nobr>欠费月平均气量</nobr></th>
273
- <th><nobr>欠费气量</nobr></th>
274
- <th><nobr>欠费金额</nobr></th>
275
- </tr>
276
- </template>
277
- <template partial='body'>
278
- <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
279
- <td style="text-align: center;"><nobr>
280
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
281
- </nobr> </td>
282
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
283
- <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
284
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
285
- <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
286
- <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
287
- <th style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></th>
288
- <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
289
- <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
290
- <th style="text-align: center;"><nobr>{{row.f_gasproperties_second}}</nobr></th>
291
- <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
292
- <th style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></th>
293
- <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
294
- <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
295
- <th style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></th>
296
- <th style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></th>
297
- <th style="text-align: center;"><nobr>{{row.end_time}}</nobr></th>
298
- <th style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></th>
299
- <th style="text-align: center;"><nobr>{{row.f_oughtfee}}</nobr></th>
300
-
301
- <th style="text-align: center;"><nobr>{{row.f_stair_gas1}}</nobr></th>
302
- <th style="text-align: center;"><nobr>{{row.f_stair_money1}}</nobr></th>
303
- <th style="text-align: center;"><nobr>{{row.f_stair_gas2}}</nobr></th>
304
- <th style="text-align: center;"><nobr>{{row.f_stair_money2}}</nobr></th>
305
- <th style="text-align: center;"><nobr>{{row.f_stair_gas3}}</nobr></th>
306
- <th style="text-align: center;"><nobr>{{row.f_stair_money3}}</nobr></th>
307
-
308
- <th style="text-align: center;"><nobr>{{row.qianfei_month_num}}</nobr></th>
309
- <th style="text-align: center;"><nobr>{{row.qianfei_num}}</nobr></th>
310
- <th style="text-align: center;"><nobr>{{row.qianfei_avg_gas}}</nobr></th>
311
- <th style="text-align: center;"><nobr>{{row.f_totalowe_gas}}</nobr></th>
312
- <th style="text-align: center;"><nobr>{{row.f_totalowe_fee}}</nobr></th>
313
- </template>
314
- </data-grid>
315
- </criteria-paged>
316
- <table class="table-hover">
317
- <tr style="position: relative" class="table-bordered">
318
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
319
- <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">总用气量:&emsp;&emsp;{{sumsmodel.f_oughtamount}}</td>
320
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总用气金额:&emsp;&emsp;{{sumsmodel.f_oughtfee}}</td>
321
-
322
- <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">一阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas1}}</td>
323
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">一阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money1}}</td>
324
- <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">二阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas2}}</td>
325
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">二阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money2}}</td>
326
- <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">三阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas3}}</td>
327
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">三阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money3}}</td>
328
-
329
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费条数:&emsp;&emsp;{{sumsmodel.qianfei_num}}</td>
330
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费气量:&emsp;{{sumsmodel.f_totalowe_gas}}</td>
331
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费金额:&emsp;{{sumsmodel.f_totalowe_fee}}</td>
332
- </tr>
333
- </table>
334
- </div>
335
- <div class="flex" v-if="show">
336
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
337
- </div>
338
- </div></div>
339
- </template>
340
- <script>
341
- /**
342
- *用户档案查询列表以及添加操作组件
343
- */
344
- import { PagedList } from 'vue-client'
345
- import Vue from 'vue'
346
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
347
-
348
- let readySomething = async function (self) {
349
- await self.$MagLoadParams.loadParam()
350
- self.initParams()
351
- self.initSlice(self.$login.f.orgid)
352
- let year = new Date().getFullYear()
353
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
354
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
355
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
356
- self.prices = self.$MagGetSaleParam.getPrices();
357
- }
358
- export default {
359
- title: '用气稽查',
360
- data () {
361
- return {
362
- other:[],
363
- footer:[],
364
- org:[this.$login.f.orgid],
365
- criteriaShow: false,
366
- filialeNameStr: null,
367
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
368
- userid: this.$login.f.id,
369
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
370
- model: new PagedList('api/af-revenue/sql/getGasInspection', 50,{mycondition:'this.model.model.mycondition'},{
371
- f_oughtamount:0,
372
- f_oughtfee:0,
373
- f_stair_gas1:0,
374
- f_stair_money1:0,
375
- f_stair_gas2:0,
376
- f_stair_money2:0,
377
- f_stair_gas3:0,
378
- f_stair_money3:0,
379
- qianfei_num:0,
380
- f_totalowe_gas:0,
381
- f_totalowe_fee:0
382
- }),
383
- prices: [],
384
- rows: null,
385
- //orgid:'',
386
- sumsmodel: {},
387
- sqlName:'getGasInspection',
388
- gaspropertiessecond: this.$appdata.getParam('二级用气性质') ? [{
389
- label: '全部',
390
- value: ''
391
- }, ...this.$appdata.getParam('二级用气性质')] : [],
392
- config: {
393
- defaultPrint: ['f_userinfo_code','f_user_id']
394
- },
395
- show:false,
396
- rowdata:{},
397
- initres: {
398
- org:[this.$login.f.orgid],
399
- dep:[],
400
- user:[],
401
- },
402
- // qianfei_month_nummin:null,
403
- // qianfei_month_nummax:null,
404
- // qianfei_nummin:null,
405
- // qianfei_nummax:null,
406
- // qianfei_avg_gasmin:null,
407
- // qianfei_avg_gasmax:null,
408
- // f_totalowe_feemin:null,
409
- // f_totalowe_feemax:null,
410
- // f_totalowe_gasmin:null,
411
- // f_totalowe_gasmax:null,
412
- mycondition:null,
413
- defaultfield: [],
414
- meterbrands: [],
415
- // 表册片区
416
- bookSlice:[],
417
- f_filialeid: this.$login.f.orgid,
418
-
419
- }
420
- },
421
- watch:{
422
- sumsmodel:{
423
- handler: function(val) {
424
- this.getotherfooter();
425
- },
426
- deep: true
427
- }
428
- },
429
- ready () {
430
- readySomething(this).then(() => {
431
- this.$emit('ready')
432
- }).catch((error) => {
433
- this.$emit('error', error)
434
- })
435
- },
436
- methods: {
437
- // 初始化抄表册片区
438
- async initSlice (val) {
439
- if (val) {
440
- let getAllArea = await this.$resetpost('/rs/search', {
441
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
442
- userid: this.$login.f.id
443
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
444
- let arr = getAllArea.data.filter((res) => {
445
- return res.parentid == val
446
- })
447
- this.bookSlice = [{label: '全部',value: ''}]
448
- arr.forEach((res) => {
449
- this.bookSlice.push({label: res.name, value: res.name})
450
- })
451
- }
452
- },
453
- initParams () {
454
- // 初始化气表品牌
455
- let brandArr = []
456
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
457
- let temp = {}
458
- temp.label = item.label
459
- temp.value = item.value.f_meter_brand
460
- brandArr.push(temp)
461
- })
462
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
463
- },
464
- getotherfooter(){
465
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
466
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
467
- this.other=[];
468
- this.footer=[];
469
- // let exportdata = this.$refs.paged.$refs.cri.model.model.mycondition;
470
- let otherInData=[];
471
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
472
- let footerData=[],exportfield=this.getfield;
473
- footerData.push("合计");
474
- let self = this;
475
- for(var field in self.sumsmodel){
476
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
477
- }
478
- this.footer.push(footerData);
479
- this.other.push(otherInData);
480
- },
481
- cancel() {
482
- this.show = false
483
- },
484
- showmsg(obj){
485
- this.rowdata=obj
486
- this.show=true
487
- },
488
- async getorg (obj) {
489
- console.log('组织变化',obj)
490
- if(obj && obj.resids && obj.resids[0]){
491
- this.initSlice(obj.resids[0])
492
- }
493
-
494
- if(obj.resids.length>0){
495
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
496
- }
497
- else{
498
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
499
- }
500
- },
501
- userTypeChange () {
502
- this.gasproperties=[]
503
- if(this.$refs.paged.model.model !==null) {
504
- this.$refs.paged.model.model.f_gasproperties=''
505
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
506
- // this.gasproperties.push({label: '全部', value: ''})
507
- console.log(this.gasproperties )
508
- }
509
- else{
510
- this.gasproperties =[{label: '全部', value: ''}]
511
- }
512
- },
513
- search () {
514
- this.$refs.paged.$refs.cri.search()
515
- },
516
- selfSearch (args) {
517
- let a = " and 1=1 "
518
- let m=this.$refs.paged.$refs.cri.model.model;
519
- if(m.qianfei_month_nummin!=null && m.qianfei_month_nummin!=''){
520
- a += " and qianfei_month_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummin
521
- }
522
- if(m.qianfei_month_nummax!=null&&m.qianfei_month_nummax!=''){
523
- a+=' and qianfei_month_num <= '+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummax
524
- }
525
- if(m.qianfei_nummin!=null&&m.qianfei_nummin!=''){
526
- a += " and qianfei_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummin
527
- }
528
- if(m.qianfei_nummax!=null&&m.qianfei_nummax!=''){
529
- a +=" and qianfei_num <= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummax
530
- }
531
- if(m.qianfei_avg_gasmin!=null&&m.qianfei_avg_gasmin!=''){
532
- a +=" and qianfei_avg_gas >= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmin
533
- }
534
- if(m.qianfei_avg_gasmax!=null&&m.qianfei_avg_gasmax!=''){
535
- a += " and qianfei_avg_gas <= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmax
536
- }
537
- if(m.f_totalowe_feemin!=null&&m.f_totalowe_feemin!=''){
538
- a += " and f_totalowe_fee >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemin
539
- }
540
- if(m.f_totalowe_feemax!=null&&m.f_totalowe_feemax!=''){
541
- a += " and f_totalowe_fee <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemax
542
- }
543
- if(m.f_totalowe_gasmin!=null&&m.f_totalowe_gasmin!=''){
544
- a += " and f_totalowe_gas >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmin
545
- }
546
- if(m.f_totalowe_gasmax!=null&&m.f_totalowe_gasmax!=''){
547
- a += " and f_totalowe_gas <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmax
548
- }
549
- if (m.f_oughtamount_min) {
550
- a += " and f_oughtamount >= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_min
551
- }
552
- if (m.f_oughtamount_max) {
553
- a += " and f_oughtamount <= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_max
554
- }
555
- if (m.f_book_slice_area) {
556
- a += ` and f_book_slice_area = '${this.$refs.paged.$refs.cri.model.model.f_book_slice_area}'`
557
- }
558
- if(this.$refs.paged.$refs.cri.model.startDate){
559
- this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate}' `
560
- }else{
561
- this.model.params.startDate = this.$login.toStandardDateString() + ' 00:00:00'
562
- }
563
-
564
- if(this.$refs.paged.$refs.cri.model.endDate){
565
- this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate}' `
566
- }else{
567
- this.model.params.endDate = this.$login.toStandardDateString() + ' 23:59:59'
568
- }
569
- this.mycondition = a
570
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
571
- args.condition = args.condition+ ` ${a}`
572
- console.log("拼接的condition", args.condition, this.model)
573
- this.model.search(args.condition, args.model)
574
- },
575
- hidden(){
576
- this.criteriaShow = !this.criteriaShow
577
- },
578
- clear(){
579
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
580
- if (key != 'startDate' && key != 'endDate')
581
- if (key == 'model')
582
- this.$refs.paged.$refs.cri.model[key] = {}
583
- else
584
- this.$refs.paged.$refs.cri.model[key] = []
585
- })
586
- this.$refs.paged.$refs.cri.model.contain_newfile='是'
587
- let year = new Date().getFullYear()
588
- this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
589
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
590
- }
591
-
592
- },
593
- computed: {
594
- getPricenames() {
595
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
596
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
597
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
598
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
599
- if(this.$refs.paged.$refs.cri.model !==null) {
600
- let rs = []
601
- let priceArr = []
602
- if ( pricetype.length >0) {
603
- let params = {
604
- f_price_type: pricetype[0],
605
- filter: this.f_filialeid,
606
- prices: this.prices
607
- }
608
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
609
- let temp = {}
610
- temp.label = item.label
611
- temp.value = item.value.f_price_name
612
- priceArr.push(temp)
613
- })
614
- rs = [{label: '全部', value: ''}, ...priceArr]
615
- }
616
- if (rs.length === 0) {
617
- console.log('rs读出来是空')
618
- this.$refs.paged.$refs.cri.model.f_price_name = ''
619
- }
620
- return rs
621
- }
622
- },
623
- userstates (){
624
- return this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
625
- },
626
- tablestate() {
627
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
628
- },
629
- pricetypes() {
630
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
631
- },
632
- getfield() {
633
- return {
634
- 'f_userinfo_code': '客户编号',
635
- 'f_user_phone': '客户电话',
636
- 'f_olduserinfo_code': '档案编号',
637
- 'f_meternumber': '表号',
638
- 'f_user_name': '客户名称',
639
- 'f_address': '地址',
640
- 'f_metertitles': '表箱号',
641
- 'f_user_type': '用户类型',
642
- 'f_gasproperties': '用气性质',
643
- 'f_gasproperties_second': '二级用气性质',
644
- 'f_price_name': '气价名称',
645
- 'f_table_state': '表具状态',
646
- 'f_user_state': '用户状态',
647
- 'f_meter_brand': '气表品牌',
648
- 'f_book_slice_area': '表册片区',
649
- 'end_time': '最后抄表日期',
650
- 'f_meter_base': '表底数',
651
- 'f_oughtamount': '用气量',
652
- 'f_oughtfee': '用气金额',
653
- 'f_stair_gas1': '一阶气量',
654
- 'f_stair_money1': '一阶金额',
655
- 'f_stair_gas2': '二阶气量',
656
- 'f_stair_money2': '二阶金额',
657
- 'f_stair_gas3': '三阶气量',
658
- 'f_stair_money3': '三阶金额',
659
- 'qianfei_month_num': '欠费月数',
660
- 'qianfei_num': '欠费条数',
661
- 'qianfei_avg_gas': '欠费月平均气量',
662
- 'f_totalowe_gas': '欠费气量',
663
- 'f_totalowe_fee': '欠费金额'
664
- }
665
- },
666
- usertypes() {
667
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
668
- },
669
- gasproperties() {
670
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
671
- },
672
- f_meter_classify(){
673
- return [{label: '全部', value: ''}, {label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
674
- // return [{label: '卡表', value: '卡表'}]
675
- },
676
- getCondition () {
677
- let result = {
678
- condition: '',
679
- startDate: '',
680
- endDate: '',
681
- mycondition:''
682
- }
683
- result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
684
- result.condition = result.condition + this.mycondition
685
- let temp2 = this.$refs.paged.$refs.cri
686
- if (temp2.model.startDate && temp2.model.endDate) {
687
- result.startDate = ` '${temp2.model.startDate}'`
688
- result.endDate = ` '${temp2.model.endDate}'`
689
- } if (!temp2.model.startDate && !temp2.model.endDate) {
690
- result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
691
- result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
692
- }
693
- if (temp2.model.startDate&&!temp2.model.endDate) {
694
- result.startDate = ` '${temp2.model.startDate}'`
695
- result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
696
- } if (temp2.model.endDate&&!temp2.model.startDate) {
697
- result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
698
- result.endDate = ` '${temp2.model.endDate}'`
699
- }
700
- if (temp2.model.contain_newfile==='否'){
701
- result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
702
- }
703
- return result
704
- }
705
- }
706
- }
707
- </script>
708
- <style media="screen">
709
- .divtext {
710
- min-width: 50px;
711
- max-width: 200px;
712
- border: 1px solid green;
713
- display: inline-block;
714
- }
715
- </style>
716
-
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="col-sm-2 form-group">
10
+ <label class="font_normal_body">公&emsp;&emsp;司&emsp;</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+
15
+ <div class="col-sm-2 form-group ">
16
+ <label for="startDate" class="font_normal_body">抄表开始&emsp;</label>
17
+ <datepicker id="startDate" placeholder="开始日期"
18
+ v-model="model.startDate"
19
+ style="width:60%"
20
+ :value.sync="model.startDate"
21
+ :disabled-days-of-Week="[]"
22
+ :format="'yyyy-MM-dd HH:mm:ss'"
23
+ :show-reset-button="reset">
24
+ </datepicker>
25
+ </div>
26
+ <div class="col-sm-2 form-group ">
27
+ <label for="startDate" class="font_normal_body">抄表结束&emsp;</label>
28
+ <datepicker id="endDate" placeholder="结束日期"
29
+ v-model="model.endDate"
30
+ style="width:60%"
31
+ :value.sync="model.endDate"
32
+ :disabled-days-of-Week="[]"
33
+ :format="'yyyy-MM-dd HH:mm:ss'"
34
+ :show-reset-button="reset">
35
+ </datepicker>
36
+ </div>
37
+
38
+ <div class="col-sm-2 form-group ">
39
+ <label for="f_gasproperties"class="font_normal_body">用气性质&emsp;</label>
40
+ <v-select id="f_gasproperties"
41
+ style="width:60%"
42
+ v-model="model.f_gasproperties"
43
+ placeholder='用气性质'
44
+ :value.sync="model.f_gasproperties"
45
+ :options='$parent.$parent.gasproperties'
46
+ condition="f_gasproperties = '{}'"
47
+ close-on-select >
48
+ </v-select>
49
+ </div>
50
+ <div class="span" style="float:right;">
51
+ <button class="btn button_search" @click="search()">查询</button>
52
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
53
+ <export-excel :data="$parent.$parent.getCondition"
54
+ :field="$parent.$parent.getfield"
55
+ :footer="$parent.$parent.footer"
56
+ :header="$parent.$parent.other"
57
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
58
+ :sql-name="$parent.$parent.sqlName"
59
+ template-name='用气稽查导出' :choose-col="true"></export-excel>
60
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
61
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
62
+
63
+ </div>
64
+ </div>
65
+ <div class="row" v-show="$parent.$parent.criteriaShow">
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body" title="二级用气性质">二级性质</label>
68
+ <v-select :value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
69
+ :options='$parent.$parent.gaspropertiessecond' placeholder='二级用气性质'
70
+ condition="f_gasproperties_second = '{}'"
71
+ close-on-select></v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户状态&emsp; </label>
75
+ <v-select :value.sync="model.f_user_state"
76
+ v-model="model.f_user_state"
77
+ :options='$parent.$parent.userstates' placeholder='请选择'
78
+ condition="f_user_state = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">气表状态&emsp;</label>
83
+ <v-select :value.sync="model.f_table_state"
84
+ v-model="model.f_table_state"
85
+ :options='$parent.$parent.tablestate' placeholder='请选择'
86
+ condition="f_table_state = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">表&emsp;&emsp;号&emsp;</label>
91
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
92
+ condition="f_meternumber = '{}'" placeholder='表号'>
93
+ </div>
94
+ <div class="col-sm-2 form-group ">
95
+ <label class="font_normal_body">用户类型&emsp;</label>
96
+ <v-select :value.sync="model.f_user_type"
97
+ @change="$parent.$parent.userTypeChange()"
98
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
99
+ condition="f_user_type = '{}'"
100
+ close-on-select></v-select>
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">气价类型</label>
104
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
105
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
106
+ close-on-select v-ref:type>
107
+ </v-select>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">气价名称</label>
111
+ <v-select :value.sync="model.f_price_name"
112
+ v-model="model.f_price_name"
113
+ :options="$parent.$parent.getPricenames"
114
+ condition="f_price_name = '{}'"
115
+ close-on-select></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">客户名称&emsp;</label>
119
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
120
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">客户编号&emsp;</label>
124
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
125
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body" title="旧客户编号">档案编号&emsp;</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
130
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">表箱号&emsp;&emsp;</label>
134
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
135
+ condition="f_metertitles = '{}'" placeholder="表箱号">
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">客户地址&emsp;</label>
139
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
140
+ condition="f_address like '%{}%'" placeholder='客户地址'>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
143
+ <label class="font_normal_body">客户电话&emsp;</label>
144
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
145
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">气表品牌&emsp;</label>
149
+ <v-select :value.sync="model.f_meter_brand"
150
+ v-model="model.f_meter_brand"
151
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
152
+ condition="f_meter_brand = '{}'"
153
+ close-on-select></v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">表册片区&emsp;</label>
157
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
158
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
159
+ style="width:60%"
160
+ close-on-select
161
+ condition="f_book_slice_area = '{}'"></v-select>
162
+ </div>
163
+ <div class="col-sm-2 ">
164
+ <label for="f_meter_classify" class="font_normal_body">表类型&emsp;&emsp;</label>
165
+ <v-select id="f_meter_classify"
166
+ v-model="model.meter_classify"
167
+ placeholder='表类型'
168
+ style="width:70%"
169
+ :value.sync="model.meter_classify"
170
+ :options='$parent.$parent.f_meter_classify'
171
+ condition="f_meter_classify like '%{}'"
172
+ :value-single="true"
173
+ close-on-select >
174
+ </v-select>
175
+ </div>
176
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
177
+ <label class="font_normal_body">欠费月数&emsp;</label>
178
+ <div class="row">
179
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummin"
180
+ placeholder="">
181
+ <label class="font_normal_body"> ≤ x ≤ </label>
182
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummax"
183
+ placeholder="">
184
+ </div>
185
+ </div>
186
+
187
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
188
+ <label class="font_normal_body">欠费条数&emsp;</label>
189
+ <div class="row">
190
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummin"
191
+ placeholder="">
192
+ <label class="font_normal_body"> ≤ x ≤ </label>
193
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummax"
194
+ placeholder="">
195
+ </div>
196
+ </div>
197
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
198
+ <label class="font_normal_body">总欠费气量</label>
199
+ <div class="row">
200
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmin"
201
+ placeholder="">
202
+ <label class="font_normal_body"> ≤ x ≤ </label>
203
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmax"
204
+ placeholder="">
205
+ </div>
206
+ </div>
207
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
208
+ <label class="font_normal_body">总欠费金额</label>
209
+ <div class="row">
210
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemin"
211
+ placeholder="">
212
+ <label class="font_normal_body"> ≤ x ≤ </label>
213
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemax"
214
+ placeholder="">
215
+ </div>
216
+ </div>
217
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
218
+ <label class="font_normal_body">欠费月平均气量</label>
219
+ <div class="row">
220
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmin"
221
+ placeholder="">
222
+ <label class="font_normal_body"> ≤ x ≤ </label>
223
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmax"
224
+ placeholder="">
225
+ </div>
226
+ </div>
227
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
228
+ <label class="font_normal_body">用气量&emsp;&emsp;</label>
229
+ <div class="row">
230
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_min"
231
+ placeholder="">
232
+ <label class="font_normal_body"> ≤ x ≤ </label>
233
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_max"
234
+ placeholder="">
235
+ </div>
236
+ </div>
237
+ </div>
238
+
239
+ </div>
240
+ </criteria>
241
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
242
+ <template partial='head'>
243
+ <tr>
244
+ <th><nobr>序号</nobr></th>
245
+ <th><nobr>客户编号</nobr></th>
246
+ <th><nobr>客户电话</nobr></th>
247
+ <th><nobr>档案编号</nobr></th>
248
+ <th><nobr>表号</nobr></th>
249
+ <th><nobr>客户名称</nobr></th>
250
+ <th><nobr>地址</nobr></th>
251
+ <th><nobr>表箱号</nobr></th>
252
+ <th><nobr>用户类型</nobr></th>
253
+ <th><nobr>用气性质</nobr></th>
254
+ <th><nobr>二级用气性质</nobr></th>
255
+ <th><nobr>表具状态</nobr></th>
256
+ <th><nobr>客户状态</nobr></th>
257
+ <th><nobr>气价名称</nobr></th>
258
+ <th><nobr>气表品牌</nobr></th>
259
+ <th><nobr>表册片区</nobr></th>
260
+ <th><nobr>当前表底数</nobr></th>
261
+ <th><nobr>最后抄表日期</nobr></th>
262
+ <th><nobr>用气量</nobr></th>
263
+ <th><nobr>用气金额</nobr></th>
264
+ <th><nobr>一阶气量</nobr></th>
265
+ <th><nobr>一阶金额</nobr></th>
266
+ <th><nobr>二阶气量</nobr></th>
267
+ <th><nobr>二阶金额</nobr></th>
268
+ <th><nobr>三阶气量</nobr></th>
269
+ <th><nobr>三阶金额</nobr></th>
270
+ <th><nobr>欠费月数</nobr></th>
271
+ <th><nobr>欠费条数</nobr></th>
272
+ <th><nobr>欠费月平均气量</nobr></th>
273
+ <th><nobr>欠费气量</nobr></th>
274
+ <th><nobr>欠费金额</nobr></th>
275
+ </tr>
276
+ </template>
277
+ <template partial='body'>
278
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
279
+ <td style="text-align: center;"><nobr>
280
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
281
+ </nobr> </td>
282
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
283
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
284
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
285
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
286
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
287
+ <th style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></th>
288
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
289
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
290
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties_second}}</nobr></th>
291
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
292
+ <th style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></th>
293
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
294
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
295
+ <th style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></th>
296
+ <th style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></th>
297
+ <th style="text-align: center;"><nobr>{{row.end_time}}</nobr></th>
298
+ <th style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></th>
299
+ <th style="text-align: center;"><nobr>{{row.f_oughtfee}}</nobr></th>
300
+
301
+ <th style="text-align: center;"><nobr>{{row.f_stair_gas1}}</nobr></th>
302
+ <th style="text-align: center;"><nobr>{{row.f_stair_money1}}</nobr></th>
303
+ <th style="text-align: center;"><nobr>{{row.f_stair_gas2}}</nobr></th>
304
+ <th style="text-align: center;"><nobr>{{row.f_stair_money2}}</nobr></th>
305
+ <th style="text-align: center;"><nobr>{{row.f_stair_gas3}}</nobr></th>
306
+ <th style="text-align: center;"><nobr>{{row.f_stair_money3}}</nobr></th>
307
+
308
+ <th style="text-align: center;"><nobr>{{row.qianfei_month_num}}</nobr></th>
309
+ <th style="text-align: center;"><nobr>{{row.qianfei_num}}</nobr></th>
310
+ <th style="text-align: center;"><nobr>{{row.qianfei_avg_gas}}</nobr></th>
311
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_gas}}</nobr></th>
312
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_fee}}</nobr></th>
313
+ </template>
314
+ </data-grid>
315
+ </criteria-paged>
316
+ <table class="table-hover">
317
+ <tr style="position: relative" class="table-bordered">
318
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
319
+ <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">总用气量:&emsp;&emsp;{{sumsmodel.f_oughtamount}}</td>
320
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总用气金额:&emsp;&emsp;{{sumsmodel.f_oughtfee}}</td>
321
+
322
+ <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">一阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas1}}</td>
323
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">一阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money1}}</td>
324
+ <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">二阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas2}}</td>
325
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">二阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money2}}</td>
326
+ <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">三阶气量:&emsp;&emsp;{{sumsmodel.f_stair_gas3}}</td>
327
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">三阶金额:&emsp;&emsp;{{sumsmodel.f_stair_money3}}</td>
328
+
329
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费条数:&emsp;&emsp;{{sumsmodel.qianfei_num}}</td>
330
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费气量:&emsp;{{sumsmodel.f_totalowe_gas}}</td>
331
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费金额:&emsp;{{sumsmodel.f_totalowe_fee}}</td>
332
+ </tr>
333
+ </table>
334
+ </div>
335
+ <div class="flex" v-if="show">
336
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
337
+ </div>
338
+ </div></div>
339
+ </template>
340
+ <script>
341
+ /**
342
+ *用户档案查询列表以及添加操作组件
343
+ */
344
+ import { PagedList } from 'vue-client'
345
+ import Vue from 'vue'
346
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
347
+
348
+ let readySomething = async function (self) {
349
+ await self.$MagLoadParams.loadParam()
350
+ self.initParams()
351
+ self.initSlice(self.$login.f.orgid)
352
+ let year = new Date().getFullYear()
353
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
354
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
355
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
356
+ self.prices = self.$MagGetSaleParam.getPrices();
357
+ }
358
+ export default {
359
+ title: '用气稽查',
360
+ data () {
361
+ return {
362
+ other:[],
363
+ footer:[],
364
+ org:[this.$login.f.orgid],
365
+ criteriaShow: false,
366
+ filialeNameStr: null,
367
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
368
+ userid: this.$login.f.id,
369
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
370
+ model: new PagedList('api/af-revenue/sql/getGasInspection', 50,{mycondition:'this.model.model.mycondition'},{
371
+ f_oughtamount:0,
372
+ f_oughtfee:0,
373
+ f_stair_gas1:0,
374
+ f_stair_money1:0,
375
+ f_stair_gas2:0,
376
+ f_stair_money2:0,
377
+ f_stair_gas3:0,
378
+ f_stair_money3:0,
379
+ qianfei_num:0,
380
+ f_totalowe_gas:0,
381
+ f_totalowe_fee:0
382
+ }),
383
+ prices: [],
384
+ rows: null,
385
+ //orgid:'',
386
+ sumsmodel: {},
387
+ sqlName:'getGasInspection',
388
+ gaspropertiessecond: this.$appdata.getParam('二级用气性质') ? [{
389
+ label: '全部',
390
+ value: ''
391
+ }, ...this.$appdata.getParam('二级用气性质')] : [],
392
+ config: {
393
+ defaultPrint: ['f_userinfo_code','f_user_id']
394
+ },
395
+ show:false,
396
+ rowdata:{},
397
+ initres: {
398
+ org:[this.$login.f.orgid],
399
+ dep:[],
400
+ user:[],
401
+ },
402
+ // qianfei_month_nummin:null,
403
+ // qianfei_month_nummax:null,
404
+ // qianfei_nummin:null,
405
+ // qianfei_nummax:null,
406
+ // qianfei_avg_gasmin:null,
407
+ // qianfei_avg_gasmax:null,
408
+ // f_totalowe_feemin:null,
409
+ // f_totalowe_feemax:null,
410
+ // f_totalowe_gasmin:null,
411
+ // f_totalowe_gasmax:null,
412
+ mycondition:null,
413
+ defaultfield: [],
414
+ meterbrands: [],
415
+ // 表册片区
416
+ bookSlice:[],
417
+ f_filialeid: this.$login.f.orgid,
418
+
419
+ }
420
+ },
421
+ watch:{
422
+ sumsmodel:{
423
+ handler: function(val) {
424
+ this.getotherfooter();
425
+ },
426
+ deep: true
427
+ }
428
+ },
429
+ ready () {
430
+ readySomething(this).then(() => {
431
+ this.$emit('ready')
432
+ }).catch((error) => {
433
+ this.$emit('error', error)
434
+ })
435
+ },
436
+ methods: {
437
+ // 初始化抄表册片区
438
+ async initSlice (val) {
439
+ if (val) {
440
+ let getAllArea = await this.$resetpost('/rs/search', {
441
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
442
+ userid: this.$login.f.id
443
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
444
+ let arr = getAllArea.data.filter((res) => {
445
+ return res.parentid == val
446
+ })
447
+ this.bookSlice = [{label: '全部',value: ''}]
448
+ arr.forEach((res) => {
449
+ this.bookSlice.push({label: res.name, value: res.name})
450
+ })
451
+ }
452
+ },
453
+ initParams () {
454
+ // 初始化气表品牌
455
+ let brandArr = []
456
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
457
+ let temp = {}
458
+ temp.label = item.label
459
+ temp.value = item.value.f_meter_brand
460
+ brandArr.push(temp)
461
+ })
462
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
463
+ },
464
+ getotherfooter(){
465
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
466
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
467
+ this.other=[];
468
+ this.footer=[];
469
+ // let exportdata = this.$refs.paged.$refs.cri.model.model.mycondition;
470
+ let otherInData=[];
471
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
472
+ let footerData=[],exportfield=this.getfield;
473
+ footerData.push("合计");
474
+ let self = this;
475
+ for(var field in self.sumsmodel){
476
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
477
+ }
478
+ this.footer.push(footerData);
479
+ this.other.push(otherInData);
480
+ },
481
+ cancel() {
482
+ this.show = false
483
+ },
484
+ showmsg(obj){
485
+ this.rowdata=obj
486
+ this.show=true
487
+ },
488
+ async getorg (obj) {
489
+ console.log('组织变化',obj)
490
+ if(obj && obj.resids && obj.resids[0]){
491
+ this.initSlice(obj.resids[0])
492
+ }
493
+
494
+ if(obj.resids.length>0){
495
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
496
+ }
497
+ else{
498
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
499
+ }
500
+ },
501
+ userTypeChange () {
502
+ this.gasproperties=[]
503
+ if(this.$refs.paged.model.model !==null) {
504
+ this.$refs.paged.model.model.f_gasproperties=''
505
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
506
+ // this.gasproperties.push({label: '全部', value: ''})
507
+ console.log(this.gasproperties )
508
+ }
509
+ else{
510
+ this.gasproperties =[{label: '全部', value: ''}]
511
+ }
512
+ },
513
+ search () {
514
+ this.$refs.paged.$refs.cri.search()
515
+ },
516
+ selfSearch (args) {
517
+ let a = " and 1=1 "
518
+ let m=this.$refs.paged.$refs.cri.model.model;
519
+ if(m.qianfei_month_nummin!=null && m.qianfei_month_nummin!=''){
520
+ a += " and qianfei_month_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummin
521
+ }
522
+ if(m.qianfei_month_nummax!=null&&m.qianfei_month_nummax!=''){
523
+ a+=' and qianfei_month_num <= '+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummax
524
+ }
525
+ if(m.qianfei_nummin!=null&&m.qianfei_nummin!=''){
526
+ a += " and qianfei_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummin
527
+ }
528
+ if(m.qianfei_nummax!=null&&m.qianfei_nummax!=''){
529
+ a +=" and qianfei_num <= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummax
530
+ }
531
+ if(m.qianfei_avg_gasmin!=null&&m.qianfei_avg_gasmin!=''){
532
+ a +=" and qianfei_avg_gas >= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmin
533
+ }
534
+ if(m.qianfei_avg_gasmax!=null&&m.qianfei_avg_gasmax!=''){
535
+ a += " and qianfei_avg_gas <= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmax
536
+ }
537
+ if(m.f_totalowe_feemin!=null&&m.f_totalowe_feemin!=''){
538
+ a += " and f_totalowe_fee >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemin
539
+ }
540
+ if(m.f_totalowe_feemax!=null&&m.f_totalowe_feemax!=''){
541
+ a += " and f_totalowe_fee <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemax
542
+ }
543
+ if(m.f_totalowe_gasmin!=null&&m.f_totalowe_gasmin!=''){
544
+ a += " and f_totalowe_gas >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmin
545
+ }
546
+ if(m.f_totalowe_gasmax!=null&&m.f_totalowe_gasmax!=''){
547
+ a += " and f_totalowe_gas <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmax
548
+ }
549
+ if (m.f_oughtamount_min) {
550
+ a += " and f_oughtamount >= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_min
551
+ }
552
+ if (m.f_oughtamount_max) {
553
+ a += " and f_oughtamount <= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_max
554
+ }
555
+ if (m.f_book_slice_area) {
556
+ a += ` and f_book_slice_area = '${this.$refs.paged.$refs.cri.model.model.f_book_slice_area}'`
557
+ }
558
+ if(this.$refs.paged.$refs.cri.model.startDate){
559
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate}' `
560
+ }else{
561
+ this.model.params.startDate = this.$login.toStandardDateString() + ' 00:00:00'
562
+ }
563
+
564
+ if(this.$refs.paged.$refs.cri.model.endDate){
565
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate}' `
566
+ }else{
567
+ this.model.params.endDate = this.$login.toStandardDateString() + ' 23:59:59'
568
+ }
569
+ this.mycondition = a
570
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
571
+ args.condition = args.condition+ ` ${a}`
572
+ console.log("拼接的condition", args.condition, this.model)
573
+ this.model.search(args.condition, args.model)
574
+ },
575
+ hidden(){
576
+ this.criteriaShow = !this.criteriaShow
577
+ },
578
+ clear(){
579
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
580
+ if (key != 'startDate' && key != 'endDate')
581
+ if (key == 'model')
582
+ this.$refs.paged.$refs.cri.model[key] = {}
583
+ else
584
+ this.$refs.paged.$refs.cri.model[key] = []
585
+ })
586
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
587
+ let year = new Date().getFullYear()
588
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
589
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
590
+ }
591
+
592
+ },
593
+ computed: {
594
+ getPricenames() {
595
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
596
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
597
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
598
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
599
+ if(this.$refs.paged.$refs.cri.model !==null) {
600
+ let rs = []
601
+ let priceArr = []
602
+ if ( pricetype.length >0) {
603
+ let params = {
604
+ f_price_type: pricetype[0],
605
+ filter: this.f_filialeid,
606
+ prices: this.prices
607
+ }
608
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
609
+ let temp = {}
610
+ temp.label = item.label
611
+ temp.value = item.value.f_price_name
612
+ priceArr.push(temp)
613
+ })
614
+ rs = [{label: '全部', value: ''}, ...priceArr]
615
+ }
616
+ if (rs.length === 0) {
617
+ console.log('rs读出来是空')
618
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
619
+ }
620
+ return rs
621
+ }
622
+ },
623
+ userstates (){
624
+ return this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
625
+ },
626
+ tablestate() {
627
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
628
+ },
629
+ pricetypes() {
630
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
631
+ },
632
+ getfield() {
633
+ return {
634
+ 'f_userinfo_code': '客户编号',
635
+ 'f_user_phone': '客户电话',
636
+ 'f_olduserinfo_code': '档案编号',
637
+ 'f_meternumber': '表号',
638
+ 'f_user_name': '客户名称',
639
+ 'f_address': '地址',
640
+ 'f_metertitles': '表箱号',
641
+ 'f_user_type': '用户类型',
642
+ 'f_gasproperties': '用气性质',
643
+ 'f_gasproperties_second': '二级用气性质',
644
+ 'f_price_name': '气价名称',
645
+ 'f_table_state': '表具状态',
646
+ 'f_user_state': '用户状态',
647
+ 'f_meter_brand': '气表品牌',
648
+ 'f_book_slice_area': '表册片区',
649
+ 'end_time': '最后抄表日期',
650
+ 'f_meter_base': '表底数',
651
+ 'f_oughtamount': '用气量',
652
+ 'f_oughtfee': '用气金额',
653
+ 'f_stair_gas1': '一阶气量',
654
+ 'f_stair_money1': '一阶金额',
655
+ 'f_stair_gas2': '二阶气量',
656
+ 'f_stair_money2': '二阶金额',
657
+ 'f_stair_gas3': '三阶气量',
658
+ 'f_stair_money3': '三阶金额',
659
+ 'qianfei_month_num': '欠费月数',
660
+ 'qianfei_num': '欠费条数',
661
+ 'qianfei_avg_gas': '欠费月平均气量',
662
+ 'f_totalowe_gas': '欠费气量',
663
+ 'f_totalowe_fee': '欠费金额'
664
+ }
665
+ },
666
+ usertypes() {
667
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
668
+ },
669
+ gasproperties() {
670
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
671
+ },
672
+ f_meter_classify(){
673
+ return [{label: '全部', value: ''}, {label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
674
+ // return [{label: '卡表', value: '卡表'}]
675
+ },
676
+ getCondition () {
677
+ let result = {
678
+ condition: '',
679
+ startDate: '',
680
+ endDate: '',
681
+ mycondition:''
682
+ }
683
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
684
+ result.condition = result.condition + this.mycondition
685
+ let temp2 = this.$refs.paged.$refs.cri
686
+ if (temp2.model.startDate && temp2.model.endDate) {
687
+ result.startDate = ` '${temp2.model.startDate}'`
688
+ result.endDate = ` '${temp2.model.endDate}'`
689
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
690
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
691
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
692
+ }
693
+ if (temp2.model.startDate&&!temp2.model.endDate) {
694
+ result.startDate = ` '${temp2.model.startDate}'`
695
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
696
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
697
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
698
+ result.endDate = ` '${temp2.model.endDate}'`
699
+ }
700
+ if (temp2.model.contain_newfile==='否'){
701
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
702
+ }
703
+ return result
704
+ }
705
+ }
706
+ }
707
+ </script>
708
+ <style media="screen">
709
+ .divtext {
710
+ min-width: 50px;
711
+ max-width: 200px;
712
+ border: 1px solid green;
713
+ display: inline-block;
714
+ }
715
+ </style>
716
+