manage-client 3.3.234 → 3.3.235

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 (213) 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 +382 -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 -2763
  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 -1002
  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/NewException/TotalExceptionByMeter.vue +1 -1
  79. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  80. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  81. package/src/components/webmeter/report/ReportList.vue +453 -453
  82. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  83. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  84. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  85. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  86. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  87. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  88. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  89. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  90. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  91. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  92. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  93. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  94. package/src/filiale/bayan/config/tableConfig.js +59 -59
  95. package/src/filiale/bayan/sale.js +8 -8
  96. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  97. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  98. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  99. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  100. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  101. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  102. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  103. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  104. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  105. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  106. package/src/filiale/bayan/webmeterManage.js +26 -26
  107. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  108. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  109. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  110. package/src/filiale/dingcheng/sale.js +9 -9
  111. package/src/filiale/fugou/RecordInfoQuery.vue +1451 -0
  112. package/src/filiale/fugou/config/DefaultPrint.js +6 -0
  113. package/src/filiale/fugou/config/exportConfig.js +2763 -0
  114. package/src/filiale/fugou/config/tableConfig.js +59 -0
  115. package/src/filiale/fugou/sale.js +6 -0
  116. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  117. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  118. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  119. package/src/filiale/hantou/config/tableConfig.js +54 -54
  120. package/src/filiale/hantou/sale.js +8 -8
  121. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  122. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  123. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  124. package/src/filiale/jingyang/RechargeList.vue +346 -346
  125. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  126. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  127. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  128. package/src/filiale/jingyang/sale.js +8 -8
  129. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  130. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  131. package/src/filiale/kelai/GasStatistics.vue +561 -561
  132. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  133. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  134. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  135. package/src/filiale/kelai/reportManage.js +13 -13
  136. package/src/filiale/kelai/sale.js +17 -17
  137. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  138. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  139. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  140. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  141. package/src/filiale/macheng/config/exportConfig.js +79 -79
  142. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  143. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  144. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  145. package/src/filiale/meihekou/CollectManage.vue +152 -152
  146. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  147. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  148. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  149. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  150. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  151. package/src/filiale/meihekou/sale.js +39 -39
  152. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  153. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  154. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  155. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  156. package/src/filiale/qianneng/exportConfig.js +232 -232
  157. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  158. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  159. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  160. package/src/filiale/rizhao/sale.js +13 -13
  161. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  162. package/src/filiale/shangluo/sale.js +17 -17
  163. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  164. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  165. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  166. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  167. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  168. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  169. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  170. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  171. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  172. package/src/filiale/taizhoukesi/sale.js +11 -11
  173. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  174. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  175. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  176. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  177. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  178. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  179. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  180. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  181. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  182. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  183. package/src/filiale/xinjiangdexin/sale.js +7 -7
  184. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  185. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  186. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  187. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  188. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  189. package/src/filiale/yangchun/UserQuery.vue +980 -980
  190. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  191. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  192. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  193. package/src/filiale/yangchun/reportManage.js +6 -6
  194. package/src/filiale/yangchun/sale.js +20 -20
  195. package/src/filiale/yangchun/webmeterManage.js +5 -5
  196. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  197. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  198. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  199. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  200. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  201. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  202. package/src/filiale/yuncheng/sale.js +23 -23
  203. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  204. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  205. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  206. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  207. package/src/filiale/zhongyi/sale.js +33 -33
  208. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  209. package/src/main.js +68 -68
  210. package/src/plugins/LodopFuncs.js +159 -159
  211. package/src/reportManage.js +777 -777
  212. package/src/saleManage.js +689 -689
  213. package/src/webmeterManage.js +130 -130
@@ -1,1002 +1,1002 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search" v-if="!show">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" >
6
- <criteria-paged :model="model" v-ref:paged @sort="sort" :drawer="true" drawertitle="开户查询">
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
23
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label class="font_normal_body">客户电话</label>
27
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
28
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
29
- </div>
30
- <div class="span" style="float:right;">
31
- <button class="button_search button_spacing" @click="search()">查询</button>
32
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
34
-
35
- <export-excel :data="$parent.$parent.getCondition"
36
- :field="$parent.$parent.getExportField"
37
- :footer="$parent.$parent.footer"
38
- :header="$parent.$parent.other"
39
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
40
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="filesQuery" template-name='用户查询导出'
41
- :choose-col="true"></export-excel>
42
- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
43
- :defaultfield="$parent.$parent.defaultfield"
44
- titletable="客户查询"
45
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
46
-
47
- <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>
48
- </div>
49
- </div>
50
- <div class="row" v-show="$parent.$parent.criteriaShow">
51
-
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">身份证号</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
55
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
56
- </div>
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">客户状态</label>
59
- <v-select :value.sync="model.f_user_state"
60
- v-model="model.f_user_state"
61
- :options='$parent.$parent.userstates' placeholder='请选择'
62
- condition="f_user_state = '{}'"
63
- close-on-select></v-select>
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">客户类型</label>
67
- <v-select :value.sync="model.f_user_type"
68
- v-model="model.f_user_type" condition="f_user_type = '{}'"
69
- @change="$parent.$parent.userTypeChange()"
70
- :options='$parent.$parent.userTypes' placeholder='请选择'
71
- close-on-select></v-select>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">用气性质</label>
75
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
76
- :options='$parent.$parent.gasproperties' placeholder='请选择'
77
- condition="f_gasproperties = '{}'"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;&nbsp;</label>
82
- <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
83
- condition="f_people_num = '{}'" placeholder="人数">
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body">微信绑定</label>
87
- <v-select
88
- :value.sync="model.f_wechat"
89
- v-model="model.f_wechat"
90
- :options='$parent.$parent.weixinSign'
91
- placeholder='请选择'
92
- condition="f_wechat = '{}'"
93
- close-on-select>
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body" >缴费类型</label>
98
- <v-select :value.sync="model.f_payment" multiple
99
- v-model="model.f_payment"
100
- :options='$parent.$parent.dypayment' placeholder='请选择'
101
- condition="f_cost_type in {}"
102
- close-on-select></v-select>
103
- </div>
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">客户地址</label>
106
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
107
- condition="f_address like '%{}%'" placeholder='客户地址'>
108
- </div>
109
- <!-- <div class="col-sm-2 form-group">-->
110
- <!-- <label for="startDate" class="font_normal_body">建档日期</label>-->
111
- <!-- <datepicker placeholder="建档开始日期" style="width:60%"-->
112
- <!-- v-model="model.f_createfile_date"-->
113
- <!-- :value.sync="model.f_createfile_date"-->
114
- <!-- :format="'yyyy-MM-dd'"-->
115
- <!-- :show-reset-button="true"-->
116
- <!-- condition="f_createfile_date >= '{} 00:00:00'">-->
117
- <!-- </datepicker>-->
118
- <!-- </div>-->
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">建档部门</label>
121
- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
122
- condition="f_depname like '%{}%'" placeholder='建档部门'>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body">报警器编码</label>
126
- <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
127
- condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body">发票编码</label>
131
- <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
132
- condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
133
- </div>
134
- <div class="col-sm-2 form-group">
135
- <label class="font_normal_body">燃气表号</label>
136
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
137
- condition="f_meternumber = '{}'" placeholder='燃气表号'>
138
- </div>
139
- <!-- <div class="col-sm-2">-->
140
- <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
141
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
142
- <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
143
- <!-- <div class="col-sm-8">&ndash;&gt;-->
144
- <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
145
- <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
146
- <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
147
- <!-- class="select_list select"&ndash;&gt;-->
148
- <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
149
- <!-- close-on-select search="true">&ndash;&gt;-->
150
- <!-- </v-select>-->
151
- <!-- </div>-->
152
-
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;&nbsp;</label>
155
- <v-select :value.sync="model.f_residential_area"
156
- class="select_list select"
157
- enter-push
158
- multiple = "true"
159
- v-model="model.f_residential_area"
160
- style="width: 60%"
161
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
162
- close-on-select>
163
-
164
- </v-select>
165
- </div>
166
- <div class="col-sm-2 form-group">
167
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;&nbsp;</label>
168
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
169
- condition="f_building like '%{}%'" placeholder="楼栋"/>
170
- </div>
171
- <div class="col-sm-2 form-group">
172
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;&nbsp;</label>
173
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
174
- condition="f_unit like '%{}%'" placeholder="单元"/>
175
- </div>
176
- <div class="col-sm-2 form-group">
177
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;&nbsp;&nbsp;</label>
178
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
179
- condition="f_floor like '%{}%'" placeholder="楼层"/>
180
- </div>
181
- <div class="col-sm-2 form-group">
182
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
183
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
184
- condition="f_room like '%{}%'" placeholder="门牌号">
185
- </div>
186
- <div class="col-sm-2 form-group">
187
- <label class="font_normal_body">余额区间</label>
188
- <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
189
- condition="f_balance >= '{}'" placeholder="最小值">
190
- </div>
191
- <div class="col-sm-2 form-group">
192
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
193
- <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
194
- condition="f_balance <= '{}'" placeholder="最大值">
195
- </div>
196
- <div class="col-sm-2 form-group">
197
- <label class="font_normal_body">&nbsp;&nbsp;抄表员&nbsp;</label>
198
- <v-select :value.sync="model.f_inputtor"
199
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
200
- :options='$parent.$parent.inputtores' placeholder='请选择'
201
- multiple = "true"
202
- close-on-select></v-select>
203
- </div>
204
-
205
- <!-- <div class="col-sm-2" >-->
206
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
207
- <!-- <div class="form-group">-->
208
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
209
- <!-- :expression.sync = 'model.f_balance'-->
210
- <!-- v-model="model.f_balance"-->
211
- <!-- condition= "f_balance {}"-->
212
- <!-- :show-reset-button="reset"-->
213
- <!-- v-ref:f_balance>-->
214
- <!-- </v-input>-->
215
- <!-- </div>-->
216
- <!-- </div>-->
217
- <div class="col-sm-2 form-group">
218
- <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
219
- <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
220
- v-model="model.startDate"
221
- :value.sync="model.startDate"
222
- :format="'yyyy-MM-dd'"
223
- :show-reset-button="true"
224
- condition="f_createfile_date >= '{} 00:00:00'">
225
- </datepicker>
226
- </div>
227
- <div class="col-sm-2 form-group">
228
- <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
229
- <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
230
- v-model="model.endDate"
231
- :value.sync="model.endDate"
232
- :format="'yyyy-MM-dd'"
233
- :show-reset-button="true"
234
- condition="f_createfile_date <= '{} 23:59:59'">
235
- </datepicker>
236
- </div>
237
- <div class="col-sm-2 form-group">
238
- <label for="startGasDate" class="font_normal_body">通气时间</label>
239
- <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
240
- v-model="model.startGasDate"
241
- :value.sync="model.startGasDate"
242
- :format="'yyyy-MM-dd'"
243
- :show-reset-button="true"
244
- condition="f_gas_date >= '{} 00:00:00'">
245
- </datepicker>
246
- </div>
247
- <div class="col-sm-2 form-group">
248
- <label for="endGasDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
249
- <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
250
- v-model="model.endGasDate"
251
- :value.sync="model.endGasDate"
252
- :format="'yyyy-MM-dd'"
253
- :show-reset-button="true"
254
- condition="f_gas_date <= '{} 23:59:59'">
255
- </datepicker>
256
- </div>
257
- <!--表册片区-->
258
- <div class="col-sm-2 form-group">
259
- <label class="font_normal_body">表册片区</label>
260
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
261
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
262
- style="width:60%"
263
- close-on-select
264
- condition="f_book_slice_area = '{}'"></v-select>
265
- </div>
266
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
267
- <div class="col-sm-2 form-group">
268
- <label class="font_normal_body">客户等级</label>
269
- <v-select :value.sync="model.f_user_level"
270
- v-model="model.f_user_level" condition="f_user_level in {}"
271
- :options='$parent.$parent.userLevels' placeholder='请选择'
272
- multiple = "true"
273
- close-on-select></v-select>
274
- </div>
275
- <div class="col-sm-2 form-group">
276
- <label class="font_normal_body">通气状态</label>
277
- <v-select :value.sync="model.f_address_state"
278
- v-model="model.f_address_state" condition="f_address_state = '{}'"
279
- :options='$parent.$parent.addressstate' placeholder='请选择'
280
- close-on-select></v-select>
281
- </div>
282
- <div class="col-sm-2 form-group">
283
- <label class="font_normal_body">发卡状态</label>
284
- <v-select :value.sync="model.f_whether_hairpin"
285
- v-model="model.f_whether_hairpin" condition="f_whether_hairpin = '{}'"
286
- :options='$parent.$parent.hairpin' placeholder='请选择'
287
- close-on-select></v-select>
288
- </div>
289
- <div class="col-sm-2 form-group">
290
- <label for="startDate" class="font_normal_body" title="开户开始日期">开户时间</label>
291
- <datepicker id="startDate" placeholder="开户开始日期" style="width:60%"
292
- v-model="model.startOpenDate"
293
- :value.sync="model.startOpenDate"
294
- :format="'yyyy-MM-dd'"
295
- :show-reset-button="true"
296
- condition="f_open_date >= '{} 00:00:00'">
297
- </datepicker>
298
- </div>
299
- <div class="col-sm-2 form-group">
300
- <label for="endDate" class="font_normal_body" title="开户结束日期">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
301
- <datepicker id="endDate" placeholder="开户结束日期" style="width:60%"
302
- v-model="model.endOpenDate"
303
- :value.sync="model.endOpenDate"
304
- :format="'yyyy-MM-dd'"
305
- :show-reset-button="true"
306
- condition="f_open_date <= '{} 23:59:59'">
307
- </datepicker>
308
- </div>
309
- </div>
310
- </div>
311
- </criteria>
312
-
313
-
314
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
315
- <template partial='head'>
316
- <tr>
317
- <th>
318
- <!--<nobr>客户编号</nobr>-->
319
- <data-order field="f_userinfo_code" name="客户编号"
320
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
321
- </th>
322
- <th>
323
- <nobr>客户名称</nobr>
324
- </th>
325
- <th>
326
- <nobr>档案编号</nobr>
327
- </th>
328
- <th>
329
- <nobr>客户电话</nobr>
330
- </th>
331
- <th>
332
- <nobr>身份证号</nobr>
333
- </th>
334
- <th>
335
- <nobr>表册片区</nobr>
336
- </th>
337
- <th>
338
- <nobr>账户余额</nobr>
339
- </th>
340
- <th>
341
- <nobr>客户等级</nobr>
342
- </th>
343
- <th>
344
- <nobr>客户类型</nobr>
345
- </th>
346
- <th>
347
- <nobr>用气性质</nobr>
348
- </th>
349
- <th>
350
- <data-order field="f_address" name="客户地址"
351
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
352
- </th>
353
- <th>
354
- <nobr>表号</nobr>
355
- </th>
356
- <th>
357
- <nobr>小区</nobr>
358
- </th>
359
- <th>
360
- <nobr>楼栋</nobr>
361
- </th>
362
- <th>
363
- <nobr>单元</nobr>
364
- </th>
365
- <th>
366
- <nobr>楼层</nobr>
367
- </th>
368
- <th>
369
- <nobr>门牌号</nobr>
370
- </th>
371
- <th>
372
- <nobr>客户状态</nobr>
373
- </th>
374
- <th>
375
- <!--<nobr>建档日期</nobr>-->
376
- <data-order field="f_createfile_date" name="建档日期"
377
- :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
378
- </th>
379
- <th>
380
- <nobr>建档人</nobr>
381
- </th>
382
- <th>
383
- <nobr>缴费类型</nobr>
384
- </th>
385
- <th>
386
- <nobr>银行户名</nobr>
387
- </th>
388
- <th>
389
- <nobr>银行名称</nobr>
390
- </th>
391
- <th>
392
- <nobr>银行账号</nobr>
393
- </th>
394
- <th>
395
- <nobr>银行身份证号</nobr>
396
- </th>
397
- <th>
398
- <nobr>缴费编号</nobr>
399
- </th>
400
- <th>
401
- <nobr>通气状态</nobr>
402
- </th>
403
- <th>
404
- <nobr>通气时间</nobr>
405
- </th>
406
- <th>
407
- <nobr>发卡状态</nobr>
408
- </th>
409
- <th>
410
- <nobr>备注</nobr>
411
- </th>
412
- <!-- <th>-->
413
- <!-- <nobr>部门</nobr>-->
414
- <!-- </th>-->
415
- <!-- <th>-->
416
- <!-- <nobr>公司</nobr>-->
417
- <!-- </th>-->
418
- </tr>
419
- </template>
420
- <template partial='body'>
421
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
422
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
423
- </nobr> </td>
424
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
425
- <nobr>{{row.f_user_name}}</nobr>
426
- </td>
427
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
428
- <nobr>{{row.f_olduserinfo_code}}</nobr>
429
- </td>
430
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
431
- <nobr>{{row.f_user_phone}}</nobr>
432
- </td>
433
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
434
- <nobr>{{row.f_idnumber}}</nobr>
435
- </td>
436
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
437
- <nobr>{{row.f_book_slice_area}}</nobr>
438
- </td>
439
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
440
- <nobr>{{row.f_balance}}</nobr>
441
- </td>
442
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
443
- <nobr>{{row.f_user_level}}</nobr>
444
- </td>
445
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
446
- <nobr>{{row.f_user_type}}</nobr>
447
- </td>
448
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
449
- <nobr>{{row.f_gasproperties}}</nobr>
450
- </td>
451
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
452
- <nobr>{{row.f_address}}</nobr>
453
- </td>
454
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
455
- <nobr>{{row.f_meternumber}}</nobr>
456
- </td>
457
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
458
- <nobr>{{row.f_residential_area}}</nobr>
459
- </td>
460
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
461
- <nobr>{{row.f_building}}</nobr>
462
- </td>
463
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
464
- <nobr>{{row.f_unit}}</nobr>
465
- </td>
466
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
467
- <nobr>{{row.f_floor}}</nobr>
468
- </td>
469
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
470
- <nobr>{{row.f_room}}</nobr>
471
- </td>
472
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
473
- <nobr>{{row.f_user_state}}</nobr>
474
- </td>
475
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
476
- <nobr>{{row.f_createfile_date}}</nobr>
477
- </td>
478
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
479
- <nobr>{{row.f_createfile_person}}</nobr>
480
- </td>
481
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
482
- <nobr>{{row.f_cost_type}}</nobr>
483
- </td>
484
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
485
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
486
- </td>
487
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
488
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
489
- </td>
490
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
491
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
492
- </td>
493
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
494
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
495
- </td>
496
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
497
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
498
- </td>
499
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
500
- <nobr>{{row.f_address_state}}</nobr>
501
- </td>
502
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
503
- <nobr>{{row.f_gas_date}}</nobr>
504
- </td>
505
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
506
- <nobr>{{row.f_whether_hairpin}}</nobr>
507
- </td>
508
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
509
- <nobr>{{row.f_comments}}</nobr>
510
- </td>
511
- <!-- <td style="text-align: center;">-->
512
- <!-- <nobr>{{row.f_depname}}</nobr>-->
513
- <!-- </td>-->
514
- <!-- <td style="text-align: center;">-->
515
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
516
- <!-- </td>-->
517
- </template>
518
- <template partial='foot'>
519
- </template>
520
- </data-grid>
521
- <template partial='other'>
522
- <charge-query-echarts
523
- :data="$parent.getCondition"
524
- ></charge-query-echarts>
525
- </template>
526
- </criteria-paged>
527
-
528
- <table class="table-hover">
529
- <tr style="position: relative" class="table-bordered">
530
- <td
531
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
532
- 汇总信息
533
- </td>
534
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
535
- 结余合计:&emsp;{{sumsmodel.f_balance}}
536
- </td>
537
- </tr>
538
- </table>
539
-
540
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
541
- <!--<header slot="modal-header" class="modal-header text-center">-->
542
- <!--<h4 class="modal-title">打印列选择</h4>-->
543
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
544
- <!--<label for="f_generations" class="font-size">全选</label>-->
545
- <!--</header>-->
546
- <!--<article slot="modal-body">-->
547
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
548
- <!--<div class="col-sm-3" v-for="f in fields">-->
549
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
550
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
551
- <!--</div>-->
552
- <!--</div>-->
553
- <!--</article>-->
554
- <!--<footer slot="modal-footer" class="modal-footer">-->
555
- <!--<center>-->
556
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
557
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
558
- <!--<print-table :model='model' v-show="false" v-ref:print-->
559
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
560
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
561
- <!--:fields="modelval" :printpage="true">-->
562
- <!--</print-table>-->
563
- <!--</center>-->
564
- <!--</footer>-->
565
- <!--</modal>-->
566
- <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
567
- </div>
568
-
569
- </div>
570
- </div>
571
- <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
572
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
573
- </div>
574
- </div>
575
- </template>
576
-
577
- <script>
578
- import {HttpResetClass, PagedList} from 'vue-client'
579
- import defaultPrint from '../config/DefaultPrint'
580
- import exportConfig from '../config/exportConfig'
581
-
582
- let readySomething = async function (self) {
583
- self.$MagGetSaleParam.initinputtor();
584
- self.getinputtores();
585
- // 获取区县
586
- self.$refs.paged.$refs.cri.model.startOpenDate = self.$login.toStandardDateString()
587
- self.$refs.paged.$refs.cri.model.endOpenDate = self.$login.toStandardDateString()
588
- // await self.$refs.paged.$refs.cri.search()
589
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
590
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
591
- }
592
-
593
- export default {
594
- title: '客户查询',
595
- data() {
596
- return {
597
- other:[],
598
- footer:[],
599
- model: new PagedList('api/af-revenue/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
600
- criteriaShow: false,
601
- orgCondtionStr: '',
602
- modelval: [],
603
- printshow: false,
604
- all: false,
605
- fields: {},
606
- gasproperties: [],
607
- //排序
608
- orderitem:'f_userinfo_code desc',
609
- orderFields: {
610
- f_operate_date: 'no'
611
- },
612
- //默认打印列
613
- defaultfield: [],
614
- config: {
615
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
616
- },
617
- balance2:'',
618
- thead: '',
619
- tfoot: '',
620
- area: [],
621
- //合计数据
622
- sumsmodel: {},
623
- initres: {
624
- org:[this.$login.f.orgid],
625
- dep:[],
626
- user:[],
627
- },
628
- userdetail: {
629
- show: false,
630
- f_userinfo_code: '',
631
- f_filialeids: ''
632
- },
633
-
634
- show:false,
635
- rowdata:{},
636
- meterInfo:{},
637
- deviceInfo:{},
638
- condition2:'',
639
-
640
-
641
- weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
642
- //小区
643
- residentialArea: [],
644
- //表册片区
645
- bookSlice:[{label: '全部',value: ''}],
646
- inputtores:[{label: '全部',value: ''}], //抄表员
647
- allorgid:[],
648
- f_filialeid: this.$login.f.f_orgid,
649
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
650
- }
651
- },
652
- ready() {
653
- this.getaddress()
654
- this.$refs.paged.$refs.cri.model.f_user_state=['正常']
655
- readySomething(this).then(() => {
656
- this.$emit('ready')
657
- }).catch((error) => {
658
- this.$emit('error', error)
659
- })
660
- this.initAreas(this.$login.f.orgid)
661
- },
662
- methods: {
663
- async getinputtores () {
664
- // 获取抄表员
665
- let rs = []
666
- if (this.$login.f.f_gasman.length > 0) {
667
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
668
- let temp = {
669
- label: this.$login.f.f_gasman[i].name,
670
- value: this.$login.f.f_gasman[i].name
671
- }
672
- rs.push(temp)
673
- }
674
- }
675
- this.inputtores = [{label: '全部', value: ''}, ...rs]
676
- },
677
- async updateParams() {
678
- await this.$MagLoadParams.loadParam(this.f_filialeid)
679
- this.inputtores = [];
680
- this.inputtores.push({label: "全部", value: ""})
681
- this.initSlice(this.f_filialeid)
682
- if(this.allorgid!=null){
683
- this.allorgid.forEach((res)=>{
684
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
685
- })
686
- }
687
- },
688
- getotherfooter () {
689
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
690
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
691
- this.other = [];
692
- this.footer = [];
693
- let exportdata = this.getCondition;
694
- let otherInData = [];
695
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
696
- let footerData = [], exportfield = this.getExportField;
697
- footerData.push("合计");
698
- let self = this;
699
- for (var field in self.sumsmodel) {
700
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
701
- }
702
- this.footer.push(footerData);
703
- this.other.push(otherInData);
704
- },
705
- async getaddress(){
706
- console.log('开始获取小区')
707
- let HttpReset = new HttpResetClass()
708
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
709
- data: {
710
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
711
- }
712
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
713
- console.log('小区',data)
714
- let house = []
715
- for (let row of data.data){
716
- console.log('开始保存小区')
717
- house.push({label: row.f_residential_area, value: row.f_residential_area})
718
- }
719
- this.residentialArea = house
720
- },
721
-
722
- //把数据库查询数据转换为下拉数据
723
- calculate(rows){
724
- let data = []
725
- rows.forEach((row, n) => {
726
- data[n] = {label: row.f_residential_area, value: row.id}
727
- })
728
- return data
729
- },
730
- search(){
731
- this.$refs.paged.$refs.cri.search()
732
- },
733
- cancel(obj) {
734
- this.show = false
735
- },
736
- userTypeChange() {
737
- this.gasproperties = []
738
- if (this.$refs.paged.$refs.cri.model !== null) {
739
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
740
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
741
- } else {
742
- this.gasproperties = [{label: '全部', value: ''}]
743
- }
744
- },
745
-
746
- showmsg(obj){
747
-
748
- this.rowdata=obj
749
- this.show=true
750
- // let http = new HttpResetClass()
751
- // http.load('POST','api/af-revenue/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
752
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
753
- // this.meterInfo = res.data})
754
- // let http2 = new HttpResetClass()
755
- // http2.load('POST','api/af-revenue/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
756
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
757
- // this.deviceInfo = res.data})
758
-
759
- // this.f_userinfo_id=obj.f_userinfo_id
760
- },
761
- //初始化片区
762
- async initSlice (val) {
763
- if (val) {
764
- let getAllArea = await this.$resetpost('/rs/search', {
765
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
766
- userid: this.$login.f.id
767
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
768
- let arr = getAllArea.data.filter((res) => {
769
- return res.parentid == val
770
- })
771
- this.bookSlice = []
772
- console.log('过滤之后的片区-------------------', arr)
773
- arr.forEach((res) => {
774
- this.bookSlice.push({label: res.name, value: res.name})
775
- })
776
- }
777
- },
778
- async initAreas (val) {
779
-
780
- if (val) {
781
- let getAllArea = await this.$resetpost('/rs/search', {
782
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
783
- userid: this.$login.f.id
784
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
785
-
786
- let arr = getAllArea.data.filter((res) => {
787
- return res.parentid == val
788
- })
789
- console.log('过滤之后的片区', arr)
790
- this.sliceArea = []
791
- arr.forEach((res) => {
792
- this.sliceArea.push({label: res.name, value: res.name})
793
- })
794
- }
795
- },
796
- selfSearch(args) {
797
- //小区查询条件
798
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
799
- console.log("=====小区model绑定====",this.area)
800
- if(this.area.length !== 0){
801
- let str = JSON.stringify(this.area)
802
- str = str.replace(/"/g,`'`)
803
- str = str.replace(/\[/g,``)
804
- str = str.replace(/\]/g,``)
805
- console.log("=====小区model22222222222绑定====",str)
806
- //查询多个小区时条件
807
- args.condition += ` and f_residential_area in ( ${str} )`
808
- }
809
-
810
- if (!this.orgCondtionStr) {
811
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
812
- } else {
813
- args.condition = `${args.condition}` + this.orgCondtionStr
814
- }
815
- this.condition2 = args.condition
816
- this.model.search(args.condition, args.model)
817
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
818
- console.log('合计字段', this.sumsmodel)
819
- },
820
- clear() {
821
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
822
- this.$refs.paged.$refs.cri.model[key] = []
823
- })
824
- },
825
- hidden() {
826
- this.criteriaShow = !this.criteriaShow
827
- },
828
- getRes(obj) {
829
- this.orgCondtionStr = obj
830
- },
831
- stamp() {
832
- this.all = false
833
- //默认选择要打印的列
834
- this.modelval = defaultPrint.config
835
- this.fields = this.getfield
836
- console.log('所有打印字段', this.fields)
837
- this.printshow = true
838
- this.put()
839
- },
840
- put() {
841
- // 对Modelval进行排序
842
- this.sortModelval()
843
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
844
- for (let key of this.modelval) {
845
- this.thead += '<th>' + this.fields[key] + '</th>'
846
- }
847
- this.thead += '</tr>'
848
- },
849
- print() {
850
- this.$refs.print.PrintAsFile()
851
- this.printshow = false
852
- },
853
- close() {
854
- this.printshow = false
855
- },
856
- // 对选择的列进行排序
857
- sortModelval() {
858
- let sortModel = []
859
- Object.keys(this.fields).forEach((key) => {
860
- if (this.modelval.includes(key)) {
861
- sortModel.push(key)
862
- }
863
- })
864
- this.modelval = sortModel
865
- console.log('选择的打印的字段', this.modelval)
866
- },
867
- dblclick(row, index) {
868
- console.log('双击之后数据', row, index)
869
- this.userdetail.show = true
870
- this.userdetail.f_userinfo_code = row.f_userinfo_code
871
- this.userdetail.f_filialeids = row.f_filialeids
872
- },
873
- sort (field, rule) {
874
- // 将所有排序方式设为不排序,实现相互排斥
875
- for (let key in this.orderFields) {
876
- if (key === field) {
877
- this.orderFields[key] = rule
878
- } else {
879
- this.orderFields[key] = 'no'
880
- }
881
- }
882
- // 如果新规则不排序,还原为默认排序
883
- if (rule === 'no') {
884
- this.model.paramSource.orderitem = `'${this.orderitem}'`
885
- } else {
886
- this.model.paramSource.orderitem = `'${field} ${rule}'`
887
- }
888
-
889
- this.search()
890
- }
891
- },
892
-
893
- watch: {
894
- 'all'(val) {
895
- if (val) {
896
- this.modelval = this.bodyData
897
- } else {
898
- this.modelval = defaultPrint.config
899
- this.put()
900
- }
901
- },
902
- 'modelval.length'() {
903
- this.put()
904
- },
905
- sumsmodel:{
906
- handler: function(val) {
907
- this.getotherfooter();
908
- },
909
- deep: true
910
- },
911
- 'orgCondtionStr'(val) {
912
- let res = val.match(/'(.*?)'/)
913
- console.log('正则提取:',res && res[1])
914
- if (res) {
915
- this.f_filialeid = res[1]
916
- if(res.input !=null){
917
- let resorgid = res.input.substring(res.input.indexOf("'"));
918
- if(resorgid!= null && resorgid!=''){
919
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
920
- // resorgid = resorgid.replaceAll("'","");
921
- resorgid = resorgid.replace(/'/g,"");
922
- this.allorgid = resorgid.split(",")
923
- }
924
- }
925
- this.updateParams()
926
- }
927
- },
928
- },
929
- computed: {
930
- // defaultexport() {
931
- // return exportConfig.chargeexportConfig
932
- // },
933
- authArr () {
934
- return this.$login.r ? this.$login.r : []
935
- },
936
-
937
- getCondition() {
938
- return {condition: this.condition2,orderitem:this.orderitem}
939
- },
940
- getfield() {
941
- let data = {}
942
- this.bodyData.forEach((value, index) => {
943
- data[this.bodyData[index]] = this.headData[index]
944
- })
945
- //合计字段打印
946
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
947
- if (this.sumsmodel) {
948
- Object.keys(this.sumsmodel).forEach((key) => {
949
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
950
- })
951
- } else {
952
- this.tfoot += '暂无'
953
- }
954
- this.tfoot += '</th></tr>'
955
- return data
956
- },
957
- getExportField() {
958
- return exportConfig.userConfig
959
- },
960
- inputtor () {
961
- // 获取抄表员
962
- console.log('获取抄表员', this.$login.f)
963
- let rs = []
964
- if (this.$login.f.f_gasman.length > 0) {
965
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
966
- let temp = {
967
- label: this.$login.f.f_gasman[i].name,
968
- value: this.$login.f.f_gasman[i].name
969
- }
970
- rs.push(temp)
971
- }
972
- }
973
-
974
- return [{label: '全部', value: ''}, ...rs]
975
- },
976
- userstates() {
977
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
978
- },
979
- userLevels () {
980
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
981
- },
982
- userTypes () {
983
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
984
- },
985
- hairpin() {
986
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
987
- },
988
- addressstate() {
989
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
990
- }
991
- }
992
- }
993
- </script>
994
- <style>
995
- .back-red{ /* 红色背景 */
996
- background-color: #F6C6CE;
997
- }
998
- .back-blue{ /* 蓝色背景 */
999
-
1000
- }
1001
- </style>
1002
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" >
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort" :drawer="true" drawertitle="开户查询">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
23
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body">客户电话</label>
27
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
28
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
29
+ </div>
30
+ <div class="span" style="float:right;">
31
+ <button class="button_search button_spacing" @click="search()">查询</button>
32
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
34
+
35
+ <export-excel :data="$parent.$parent.getCondition"
36
+ :field="$parent.$parent.getExportField"
37
+ :footer="$parent.$parent.footer"
38
+ :header="$parent.$parent.other"
39
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
40
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="filesQuery" template-name='用户查询导出'
41
+ :choose-col="true"></export-excel>
42
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
43
+ :defaultfield="$parent.$parent.defaultfield"
44
+ titletable="客户查询"
45
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
46
+
47
+ <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>
48
+ </div>
49
+ </div>
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">身份证号</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
55
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
56
+ </div>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户状态</label>
59
+ <v-select :value.sync="model.f_user_state"
60
+ v-model="model.f_user_state"
61
+ :options='$parent.$parent.userstates' placeholder='请选择'
62
+ condition="f_user_state = '{}'"
63
+ close-on-select></v-select>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户类型</label>
67
+ <v-select :value.sync="model.f_user_type"
68
+ v-model="model.f_user_type" condition="f_user_type = '{}'"
69
+ @change="$parent.$parent.userTypeChange()"
70
+ :options='$parent.$parent.userTypes' placeholder='请选择'
71
+ close-on-select></v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">用气性质</label>
75
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
76
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
77
+ condition="f_gasproperties = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;&nbsp;</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
83
+ condition="f_people_num = '{}'" placeholder="人数">
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body">微信绑定</label>
87
+ <v-select
88
+ :value.sync="model.f_wechat"
89
+ v-model="model.f_wechat"
90
+ :options='$parent.$parent.weixinSign'
91
+ placeholder='请选择'
92
+ condition="f_wechat = '{}'"
93
+ close-on-select>
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body" >缴费类型</label>
98
+ <v-select :value.sync="model.f_payment" multiple
99
+ v-model="model.f_payment"
100
+ :options='$parent.$parent.dypayment' placeholder='请选择'
101
+ condition="f_cost_type in {}"
102
+ ></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">客户地址</label>
106
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
107
+ condition="f_address like '%{}%'" placeholder='客户地址'>
108
+ </div>
109
+ <!-- <div class="col-sm-2 form-group">-->
110
+ <!-- <label for="startDate" class="font_normal_body">建档日期</label>-->
111
+ <!-- <datepicker placeholder="建档开始日期" style="width:60%"-->
112
+ <!-- v-model="model.f_createfile_date"-->
113
+ <!-- :value.sync="model.f_createfile_date"-->
114
+ <!-- :format="'yyyy-MM-dd'"-->
115
+ <!-- :show-reset-button="true"-->
116
+ <!-- condition="f_createfile_date >= '{} 00:00:00'">-->
117
+ <!-- </datepicker>-->
118
+ <!-- </div>-->
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">建档部门</label>
121
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
122
+ condition="f_depname like '%{}%'" placeholder='建档部门'>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body">报警器编码</label>
126
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
127
+ condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">发票编码</label>
131
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
132
+ condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
133
+ </div>
134
+ <div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">燃气表号</label>
136
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
137
+ condition="f_meternumber = '{}'" placeholder='燃气表号'>
138
+ </div>
139
+ <!-- <div class="col-sm-2">-->
140
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
141
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
142
+ <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
143
+ <!-- <div class="col-sm-8">&ndash;&gt;-->
144
+ <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
145
+ <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
146
+ <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
147
+ <!-- class="select_list select"&ndash;&gt;-->
148
+ <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
149
+ <!-- close-on-select search="true">&ndash;&gt;-->
150
+ <!-- </v-select>-->
151
+ <!-- </div>-->
152
+
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;&nbsp;</label>
155
+ <v-select :value.sync="model.f_residential_area"
156
+ class="select_list select"
157
+ enter-push
158
+ multiple = "true"
159
+ v-model="model.f_residential_area"
160
+ style="width: 60%"
161
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
162
+ close-on-select>
163
+
164
+ </v-select>
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;&nbsp;</label>
168
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
169
+ condition="f_building like '%{}%'" placeholder="楼栋"/>
170
+ </div>
171
+ <div class="col-sm-2 form-group">
172
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;&nbsp;</label>
173
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
174
+ condition="f_unit like '%{}%'" placeholder="单元"/>
175
+ </div>
176
+ <div class="col-sm-2 form-group">
177
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;&nbsp;&nbsp;</label>
178
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
179
+ condition="f_floor like '%{}%'" placeholder="楼层"/>
180
+ </div>
181
+ <div class="col-sm-2 form-group">
182
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
183
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
184
+ condition="f_room like '%{}%'" placeholder="门牌号">
185
+ </div>
186
+ <div class="col-sm-2 form-group">
187
+ <label class="font_normal_body">余额区间</label>
188
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
189
+ condition="f_balance >= '{}'" placeholder="最小值">
190
+ </div>
191
+ <div class="col-sm-2 form-group">
192
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
193
+ <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
194
+ condition="f_balance <= '{}'" placeholder="最大值">
195
+ </div>
196
+ <div class="col-sm-2 form-group">
197
+ <label class="font_normal_body">&nbsp;&nbsp;抄表员&nbsp;</label>
198
+ <v-select :value.sync="model.f_inputtor"
199
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
200
+ :options='$parent.$parent.inputtores' placeholder='请选择'
201
+ multiple = "true"
202
+ close-on-select></v-select>
203
+ </div>
204
+
205
+ <!-- <div class="col-sm-2" >-->
206
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
207
+ <!-- <div class="form-group">-->
208
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
209
+ <!-- :expression.sync = 'model.f_balance'-->
210
+ <!-- v-model="model.f_balance"-->
211
+ <!-- condition= "f_balance {}"-->
212
+ <!-- :show-reset-button="reset"-->
213
+ <!-- v-ref:f_balance>-->
214
+ <!-- </v-input>-->
215
+ <!-- </div>-->
216
+ <!-- </div>-->
217
+ <div class="col-sm-2 form-group">
218
+ <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
219
+ <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
220
+ v-model="model.startDate"
221
+ :value.sync="model.startDate"
222
+ :format="'yyyy-MM-dd'"
223
+ :show-reset-button="true"
224
+ condition="f_createfile_date >= '{} 00:00:00'">
225
+ </datepicker>
226
+ </div>
227
+ <div class="col-sm-2 form-group">
228
+ <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
229
+ <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
230
+ v-model="model.endDate"
231
+ :value.sync="model.endDate"
232
+ :format="'yyyy-MM-dd'"
233
+ :show-reset-button="true"
234
+ condition="f_createfile_date <= '{} 23:59:59'">
235
+ </datepicker>
236
+ </div>
237
+ <div class="col-sm-2 form-group">
238
+ <label for="startGasDate" class="font_normal_body">通气时间</label>
239
+ <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
240
+ v-model="model.startGasDate"
241
+ :value.sync="model.startGasDate"
242
+ :format="'yyyy-MM-dd'"
243
+ :show-reset-button="true"
244
+ condition="f_gas_date >= '{} 00:00:00'">
245
+ </datepicker>
246
+ </div>
247
+ <div class="col-sm-2 form-group">
248
+ <label for="endGasDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
249
+ <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
250
+ v-model="model.endGasDate"
251
+ :value.sync="model.endGasDate"
252
+ :format="'yyyy-MM-dd'"
253
+ :show-reset-button="true"
254
+ condition="f_gas_date <= '{} 23:59:59'">
255
+ </datepicker>
256
+ </div>
257
+ <!--表册片区-->
258
+ <div class="col-sm-2 form-group">
259
+ <label class="font_normal_body">表册片区</label>
260
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
261
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
262
+ style="width:60%"
263
+ close-on-select
264
+ condition="f_book_slice_area = '{}'"></v-select>
265
+ </div>
266
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
267
+ <div class="col-sm-2 form-group">
268
+ <label class="font_normal_body">客户等级</label>
269
+ <v-select :value.sync="model.f_user_level"
270
+ v-model="model.f_user_level" condition="f_user_level in {}"
271
+ :options='$parent.$parent.userLevels' placeholder='请选择'
272
+ multiple = "true"
273
+ close-on-select></v-select>
274
+ </div>
275
+ <div class="col-sm-2 form-group">
276
+ <label class="font_normal_body">通气状态</label>
277
+ <v-select :value.sync="model.f_address_state"
278
+ v-model="model.f_address_state" condition="f_address_state = '{}'"
279
+ :options='$parent.$parent.addressstate' placeholder='请选择'
280
+ close-on-select></v-select>
281
+ </div>
282
+ <div class="col-sm-2 form-group">
283
+ <label class="font_normal_body">发卡状态</label>
284
+ <v-select :value.sync="model.f_whether_hairpin"
285
+ v-model="model.f_whether_hairpin" condition="f_whether_hairpin = '{}'"
286
+ :options='$parent.$parent.hairpin' placeholder='请选择'
287
+ close-on-select></v-select>
288
+ </div>
289
+ <div class="col-sm-2 form-group">
290
+ <label for="startDate" class="font_normal_body" title="开户开始日期">开户时间</label>
291
+ <datepicker id="startDate" placeholder="开户开始日期" style="width:60%"
292
+ v-model="model.startOpenDate"
293
+ :value.sync="model.startOpenDate"
294
+ :format="'yyyy-MM-dd'"
295
+ :show-reset-button="true"
296
+ condition="f_open_date >= '{} 00:00:00'">
297
+ </datepicker>
298
+ </div>
299
+ <div class="col-sm-2 form-group">
300
+ <label for="endDate" class="font_normal_body" title="开户结束日期">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
301
+ <datepicker id="endDate" placeholder="开户结束日期" style="width:60%"
302
+ v-model="model.endOpenDate"
303
+ :value.sync="model.endOpenDate"
304
+ :format="'yyyy-MM-dd'"
305
+ :show-reset-button="true"
306
+ condition="f_open_date <= '{} 23:59:59'">
307
+ </datepicker>
308
+ </div>
309
+ </div>
310
+ </div>
311
+ </criteria>
312
+
313
+
314
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
315
+ <template partial='head'>
316
+ <tr>
317
+ <th>
318
+ <!--<nobr>客户编号</nobr>-->
319
+ <data-order field="f_userinfo_code" name="客户编号"
320
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
321
+ </th>
322
+ <th>
323
+ <nobr>客户名称</nobr>
324
+ </th>
325
+ <th>
326
+ <nobr>档案编号</nobr>
327
+ </th>
328
+ <th>
329
+ <nobr>客户电话</nobr>
330
+ </th>
331
+ <th>
332
+ <nobr>身份证号</nobr>
333
+ </th>
334
+ <th>
335
+ <nobr>表册片区</nobr>
336
+ </th>
337
+ <th>
338
+ <nobr>账户余额</nobr>
339
+ </th>
340
+ <th>
341
+ <nobr>客户等级</nobr>
342
+ </th>
343
+ <th>
344
+ <nobr>客户类型</nobr>
345
+ </th>
346
+ <th>
347
+ <nobr>用气性质</nobr>
348
+ </th>
349
+ <th>
350
+ <data-order field="f_address" name="客户地址"
351
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
352
+ </th>
353
+ <th>
354
+ <nobr>表号</nobr>
355
+ </th>
356
+ <th>
357
+ <nobr>小区</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>楼栋</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>单元</nobr>
364
+ </th>
365
+ <th>
366
+ <nobr>楼层</nobr>
367
+ </th>
368
+ <th>
369
+ <nobr>门牌号</nobr>
370
+ </th>
371
+ <th>
372
+ <nobr>客户状态</nobr>
373
+ </th>
374
+ <th>
375
+ <!--<nobr>建档日期</nobr>-->
376
+ <data-order field="f_createfile_date" name="建档日期"
377
+ :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
378
+ </th>
379
+ <th>
380
+ <nobr>建档人</nobr>
381
+ </th>
382
+ <th>
383
+ <nobr>缴费类型</nobr>
384
+ </th>
385
+ <th>
386
+ <nobr>银行户名</nobr>
387
+ </th>
388
+ <th>
389
+ <nobr>银行名称</nobr>
390
+ </th>
391
+ <th>
392
+ <nobr>银行账号</nobr>
393
+ </th>
394
+ <th>
395
+ <nobr>银行身份证号</nobr>
396
+ </th>
397
+ <th>
398
+ <nobr>缴费编号</nobr>
399
+ </th>
400
+ <th>
401
+ <nobr>通气状态</nobr>
402
+ </th>
403
+ <th>
404
+ <nobr>通气时间</nobr>
405
+ </th>
406
+ <th>
407
+ <nobr>发卡状态</nobr>
408
+ </th>
409
+ <th>
410
+ <nobr>备注</nobr>
411
+ </th>
412
+ <!-- <th>-->
413
+ <!-- <nobr>部门</nobr>-->
414
+ <!-- </th>-->
415
+ <!-- <th>-->
416
+ <!-- <nobr>公司</nobr>-->
417
+ <!-- </th>-->
418
+ </tr>
419
+ </template>
420
+ <template partial='body'>
421
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
422
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
423
+ </nobr> </td>
424
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
425
+ <nobr>{{row.f_user_name}}</nobr>
426
+ </td>
427
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
428
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
429
+ </td>
430
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
431
+ <nobr>{{row.f_user_phone}}</nobr>
432
+ </td>
433
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
434
+ <nobr>{{row.f_idnumber}}</nobr>
435
+ </td>
436
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
437
+ <nobr>{{row.f_book_slice_area}}</nobr>
438
+ </td>
439
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
440
+ <nobr>{{row.f_balance}}</nobr>
441
+ </td>
442
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
443
+ <nobr>{{row.f_user_level}}</nobr>
444
+ </td>
445
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
446
+ <nobr>{{row.f_user_type}}</nobr>
447
+ </td>
448
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
449
+ <nobr>{{row.f_gasproperties}}</nobr>
450
+ </td>
451
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
452
+ <nobr>{{row.f_address}}</nobr>
453
+ </td>
454
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
455
+ <nobr>{{row.f_meternumber}}</nobr>
456
+ </td>
457
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
458
+ <nobr>{{row.f_residential_area}}</nobr>
459
+ </td>
460
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
461
+ <nobr>{{row.f_building}}</nobr>
462
+ </td>
463
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
464
+ <nobr>{{row.f_unit}}</nobr>
465
+ </td>
466
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
467
+ <nobr>{{row.f_floor}}</nobr>
468
+ </td>
469
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
470
+ <nobr>{{row.f_room}}</nobr>
471
+ </td>
472
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
473
+ <nobr>{{row.f_user_state}}</nobr>
474
+ </td>
475
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
476
+ <nobr>{{row.f_createfile_date}}</nobr>
477
+ </td>
478
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
479
+ <nobr>{{row.f_createfile_person}}</nobr>
480
+ </td>
481
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
482
+ <nobr>{{row.f_cost_type}}</nobr>
483
+ </td>
484
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
485
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
486
+ </td>
487
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
488
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
489
+ </td>
490
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
491
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
492
+ </td>
493
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
494
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
495
+ </td>
496
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
497
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
498
+ </td>
499
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
500
+ <nobr>{{row.f_address_state}}</nobr>
501
+ </td>
502
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
503
+ <nobr>{{row.f_gas_date}}</nobr>
504
+ </td>
505
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
506
+ <nobr>{{row.f_whether_hairpin}}</nobr>
507
+ </td>
508
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
509
+ <nobr>{{row.f_comments}}</nobr>
510
+ </td>
511
+ <!-- <td style="text-align: center;">-->
512
+ <!-- <nobr>{{row.f_depname}}</nobr>-->
513
+ <!-- </td>-->
514
+ <!-- <td style="text-align: center;">-->
515
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
516
+ <!-- </td>-->
517
+ </template>
518
+ <template partial='foot'>
519
+ </template>
520
+ </data-grid>
521
+ <template partial='other'>
522
+ <charge-query-echarts
523
+ :data="$parent.getCondition"
524
+ ></charge-query-echarts>
525
+ </template>
526
+ </criteria-paged>
527
+
528
+ <table class="table-hover">
529
+ <tr style="position: relative" class="table-bordered">
530
+ <td
531
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
532
+ 汇总信息
533
+ </td>
534
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
535
+ 结余合计:&emsp;{{sumsmodel.f_balance}}
536
+ </td>
537
+ </tr>
538
+ </table>
539
+
540
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
541
+ <!--<header slot="modal-header" class="modal-header text-center">-->
542
+ <!--<h4 class="modal-title">打印列选择</h4>-->
543
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
544
+ <!--<label for="f_generations" class="font-size">全选</label>-->
545
+ <!--</header>-->
546
+ <!--<article slot="modal-body">-->
547
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
548
+ <!--<div class="col-sm-3" v-for="f in fields">-->
549
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
550
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
551
+ <!--</div>-->
552
+ <!--</div>-->
553
+ <!--</article>-->
554
+ <!--<footer slot="modal-footer" class="modal-footer">-->
555
+ <!--<center>-->
556
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
557
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
558
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
559
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
560
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
561
+ <!--:fields="modelval" :printpage="true">-->
562
+ <!--</print-table>-->
563
+ <!--</center>-->
564
+ <!--</footer>-->
565
+ <!--</modal>-->
566
+ <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
567
+ </div>
568
+
569
+ </div>
570
+ </div>
571
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
572
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
573
+ </div>
574
+ </div>
575
+ </template>
576
+
577
+ <script>
578
+ import {HttpResetClass, PagedList} from 'vue-client'
579
+ import defaultPrint from '../config/DefaultPrint'
580
+ import exportConfig from '../config/exportConfig'
581
+
582
+ let readySomething = async function (self) {
583
+ self.$MagGetSaleParam.initinputtor();
584
+ self.getinputtores();
585
+ // 获取区县
586
+ self.$refs.paged.$refs.cri.model.startOpenDate = self.$login.toStandardDateString()
587
+ self.$refs.paged.$refs.cri.model.endOpenDate = self.$login.toStandardDateString()
588
+ // await self.$refs.paged.$refs.cri.search()
589
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
590
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
591
+ }
592
+
593
+ export default {
594
+ title: '客户查询',
595
+ data() {
596
+ return {
597
+ other:[],
598
+ footer:[],
599
+ model: new PagedList('api/af-revenue/sql/filesQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {f_balance: 0}),
600
+ criteriaShow: false,
601
+ orgCondtionStr: '',
602
+ modelval: [],
603
+ printshow: false,
604
+ all: false,
605
+ fields: {},
606
+ gasproperties: [],
607
+ //排序
608
+ orderitem:'f_userinfo_code desc',
609
+ orderFields: {
610
+ f_operate_date: 'no'
611
+ },
612
+ //默认打印列
613
+ defaultfield: [],
614
+ config: {
615
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
616
+ },
617
+ balance2:'',
618
+ thead: '',
619
+ tfoot: '',
620
+ area: [],
621
+ //合计数据
622
+ sumsmodel: {},
623
+ initres: {
624
+ org:[this.$login.f.orgid],
625
+ dep:[],
626
+ user:[],
627
+ },
628
+ userdetail: {
629
+ show: false,
630
+ f_userinfo_code: '',
631
+ f_filialeids: ''
632
+ },
633
+
634
+ show:false,
635
+ rowdata:{},
636
+ meterInfo:{},
637
+ deviceInfo:{},
638
+ condition2:'',
639
+
640
+
641
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
642
+ //小区
643
+ residentialArea: [],
644
+ //表册片区
645
+ bookSlice:[{label: '全部',value: ''}],
646
+ inputtores:[{label: '全部',value: ''}], //抄表员
647
+ allorgid:[],
648
+ f_filialeid: this.$login.f.f_orgid,
649
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
650
+ }
651
+ },
652
+ ready() {
653
+ this.getaddress()
654
+ this.$refs.paged.$refs.cri.model.f_user_state=['正常']
655
+ readySomething(this).then(() => {
656
+ this.$emit('ready')
657
+ }).catch((error) => {
658
+ this.$emit('error', error)
659
+ })
660
+ this.initAreas(this.$login.f.orgid)
661
+ },
662
+ methods: {
663
+ async getinputtores () {
664
+ // 获取抄表员
665
+ let rs = []
666
+ if (this.$login.f.f_gasman.length > 0) {
667
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
668
+ let temp = {
669
+ label: this.$login.f.f_gasman[i].name,
670
+ value: this.$login.f.f_gasman[i].name
671
+ }
672
+ rs.push(temp)
673
+ }
674
+ }
675
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
676
+ },
677
+ async updateParams() {
678
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
679
+ this.inputtores = [];
680
+ this.inputtores.push({label: "全部", value: ""})
681
+ this.initSlice(this.f_filialeid)
682
+ if(this.allorgid!=null){
683
+ this.allorgid.forEach((res)=>{
684
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
685
+ })
686
+ }
687
+ },
688
+ getotherfooter () {
689
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
690
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
691
+ this.other = [];
692
+ this.footer = [];
693
+ let exportdata = this.getCondition;
694
+ let otherInData = [];
695
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
696
+ let footerData = [], exportfield = this.getExportField;
697
+ footerData.push("合计");
698
+ let self = this;
699
+ for (var field in self.sumsmodel) {
700
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
701
+ }
702
+ this.footer.push(footerData);
703
+ this.other.push(otherInData);
704
+ },
705
+ async getaddress(){
706
+ console.log('开始获取小区')
707
+ let HttpReset = new HttpResetClass()
708
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
709
+ data: {
710
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
711
+ }
712
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
713
+ console.log('小区',data)
714
+ let house = []
715
+ for (let row of data.data){
716
+ console.log('开始保存小区')
717
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
718
+ }
719
+ this.residentialArea = house
720
+ },
721
+
722
+ //把数据库查询数据转换为下拉数据
723
+ calculate(rows){
724
+ let data = []
725
+ rows.forEach((row, n) => {
726
+ data[n] = {label: row.f_residential_area, value: row.id}
727
+ })
728
+ return data
729
+ },
730
+ search(){
731
+ this.$refs.paged.$refs.cri.search()
732
+ },
733
+ cancel(obj) {
734
+ this.show = false
735
+ },
736
+ userTypeChange() {
737
+ this.gasproperties = []
738
+ if (this.$refs.paged.$refs.cri.model !== null) {
739
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
740
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
741
+ } else {
742
+ this.gasproperties = [{label: '全部', value: ''}]
743
+ }
744
+ },
745
+
746
+ showmsg(obj){
747
+
748
+ this.rowdata=obj
749
+ this.show=true
750
+ // let http = new HttpResetClass()
751
+ // http.load('POST','api/af-revenue/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
752
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
753
+ // this.meterInfo = res.data})
754
+ // let http2 = new HttpResetClass()
755
+ // http2.load('POST','api/af-revenue/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
756
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
757
+ // this.deviceInfo = res.data})
758
+
759
+ // this.f_userinfo_id=obj.f_userinfo_id
760
+ },
761
+ //初始化片区
762
+ async initSlice (val) {
763
+ if (val) {
764
+ let getAllArea = await this.$resetpost('/rs/search', {
765
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
766
+ userid: this.$login.f.id
767
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
768
+ let arr = getAllArea.data.filter((res) => {
769
+ return res.parentid == val
770
+ })
771
+ this.bookSlice = []
772
+ console.log('过滤之后的片区-------------------', arr)
773
+ arr.forEach((res) => {
774
+ this.bookSlice.push({label: res.name, value: res.name})
775
+ })
776
+ }
777
+ },
778
+ async initAreas (val) {
779
+
780
+ if (val) {
781
+ let getAllArea = await this.$resetpost('/rs/search', {
782
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
783
+ userid: this.$login.f.id
784
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
785
+
786
+ let arr = getAllArea.data.filter((res) => {
787
+ return res.parentid == val
788
+ })
789
+ console.log('过滤之后的片区', arr)
790
+ this.sliceArea = []
791
+ arr.forEach((res) => {
792
+ this.sliceArea.push({label: res.name, value: res.name})
793
+ })
794
+ }
795
+ },
796
+ selfSearch(args) {
797
+ //小区查询条件
798
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
799
+ console.log("=====小区model绑定====",this.area)
800
+ if(this.area.length !== 0){
801
+ let str = JSON.stringify(this.area)
802
+ str = str.replace(/"/g,`'`)
803
+ str = str.replace(/\[/g,``)
804
+ str = str.replace(/\]/g,``)
805
+ console.log("=====小区model22222222222绑定====",str)
806
+ //查询多个小区时条件
807
+ args.condition += ` and f_residential_area in ( ${str} )`
808
+ }
809
+
810
+ if (!this.orgCondtionStr) {
811
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
812
+ } else {
813
+ args.condition = `${args.condition}` + this.orgCondtionStr
814
+ }
815
+ this.condition2 = args.condition
816
+ this.model.search(args.condition, args.model)
817
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
818
+ console.log('合计字段', this.sumsmodel)
819
+ },
820
+ clear() {
821
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
822
+ this.$refs.paged.$refs.cri.model[key] = []
823
+ })
824
+ },
825
+ hidden() {
826
+ this.criteriaShow = !this.criteriaShow
827
+ },
828
+ getRes(obj) {
829
+ this.orgCondtionStr = obj
830
+ },
831
+ stamp() {
832
+ this.all = false
833
+ //默认选择要打印的列
834
+ this.modelval = defaultPrint.config
835
+ this.fields = this.getfield
836
+ console.log('所有打印字段', this.fields)
837
+ this.printshow = true
838
+ this.put()
839
+ },
840
+ put() {
841
+ // 对Modelval进行排序
842
+ this.sortModelval()
843
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
844
+ for (let key of this.modelval) {
845
+ this.thead += '<th>' + this.fields[key] + '</th>'
846
+ }
847
+ this.thead += '</tr>'
848
+ },
849
+ print() {
850
+ this.$refs.print.PrintAsFile()
851
+ this.printshow = false
852
+ },
853
+ close() {
854
+ this.printshow = false
855
+ },
856
+ // 对选择的列进行排序
857
+ sortModelval() {
858
+ let sortModel = []
859
+ Object.keys(this.fields).forEach((key) => {
860
+ if (this.modelval.includes(key)) {
861
+ sortModel.push(key)
862
+ }
863
+ })
864
+ this.modelval = sortModel
865
+ console.log('选择的打印的字段', this.modelval)
866
+ },
867
+ dblclick(row, index) {
868
+ console.log('双击之后数据', row, index)
869
+ this.userdetail.show = true
870
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
871
+ this.userdetail.f_filialeids = row.f_filialeids
872
+ },
873
+ sort (field, rule) {
874
+ // 将所有排序方式设为不排序,实现相互排斥
875
+ for (let key in this.orderFields) {
876
+ if (key === field) {
877
+ this.orderFields[key] = rule
878
+ } else {
879
+ this.orderFields[key] = 'no'
880
+ }
881
+ }
882
+ // 如果新规则不排序,还原为默认排序
883
+ if (rule === 'no') {
884
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
885
+ } else {
886
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
887
+ }
888
+
889
+ this.search()
890
+ }
891
+ },
892
+
893
+ watch: {
894
+ 'all'(val) {
895
+ if (val) {
896
+ this.modelval = this.bodyData
897
+ } else {
898
+ this.modelval = defaultPrint.config
899
+ this.put()
900
+ }
901
+ },
902
+ 'modelval.length'() {
903
+ this.put()
904
+ },
905
+ sumsmodel:{
906
+ handler: function(val) {
907
+ this.getotherfooter();
908
+ },
909
+ deep: true
910
+ },
911
+ 'orgCondtionStr'(val) {
912
+ let res = val.match(/'(.*?)'/)
913
+ console.log('正则提取:',res && res[1])
914
+ if (res) {
915
+ this.f_filialeid = res[1]
916
+ if(res.input !=null){
917
+ let resorgid = res.input.substring(res.input.indexOf("'"));
918
+ if(resorgid!= null && resorgid!=''){
919
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
920
+ // resorgid = resorgid.replaceAll("'","");
921
+ resorgid = resorgid.replace(/'/g,"");
922
+ this.allorgid = resorgid.split(",")
923
+ }
924
+ }
925
+ this.updateParams()
926
+ }
927
+ },
928
+ },
929
+ computed: {
930
+ // defaultexport() {
931
+ // return exportConfig.chargeexportConfig
932
+ // },
933
+ authArr () {
934
+ return this.$login.r ? this.$login.r : []
935
+ },
936
+
937
+ getCondition() {
938
+ return {condition: this.condition2,orderitem:this.orderitem}
939
+ },
940
+ getfield() {
941
+ let data = {}
942
+ this.bodyData.forEach((value, index) => {
943
+ data[this.bodyData[index]] = this.headData[index]
944
+ })
945
+ //合计字段打印
946
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
947
+ if (this.sumsmodel) {
948
+ Object.keys(this.sumsmodel).forEach((key) => {
949
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
950
+ })
951
+ } else {
952
+ this.tfoot += '暂无'
953
+ }
954
+ this.tfoot += '</th></tr>'
955
+ return data
956
+ },
957
+ getExportField() {
958
+ return exportConfig.userConfig
959
+ },
960
+ inputtor () {
961
+ // 获取抄表员
962
+ console.log('获取抄表员', this.$login.f)
963
+ let rs = []
964
+ if (this.$login.f.f_gasman.length > 0) {
965
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
966
+ let temp = {
967
+ label: this.$login.f.f_gasman[i].name,
968
+ value: this.$login.f.f_gasman[i].name
969
+ }
970
+ rs.push(temp)
971
+ }
972
+ }
973
+
974
+ return [{label: '全部', value: ''}, ...rs]
975
+ },
976
+ userstates() {
977
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
978
+ },
979
+ userLevels () {
980
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
981
+ },
982
+ userTypes () {
983
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
984
+ },
985
+ hairpin() {
986
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
987
+ },
988
+ addressstate() {
989
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
990
+ }
991
+ }
992
+ }
993
+ </script>
994
+ <style>
995
+ .back-red{ /* 红色背景 */
996
+ background-color: #F6C6CE;
997
+ }
998
+ .back-blue{ /* 蓝色背景 */
999
+
1000
+ }
1001
+ </style>
1002
+