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