manage-client 3.3.217 → 3.3.218

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 (193) 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/.npmignore +10 -0
  9. package/build/.npmignore +1 -0
  10. package/build/dev-server.js +190 -190
  11. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  12. package/gradlew +234 -234
  13. package/gradlew.bat +89 -89
  14. package/hs_err_pid13052.log +206 -206
  15. package/package-lock.json +10123 -0
  16. package/package.json +111 -111
  17. package/src/components/SellReport/BusinessClassify.vue +292 -292
  18. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  19. package/src/components/SellReport/ManageSellType.vue +267 -267
  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 +6 -6
  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 +813 -813
  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/usergas.vue +315 -315
  63. package/src/components/sale/config/exportConfig.js +2761 -2761
  64. package/src/components/sale/config/tableConfig.js +59 -59
  65. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  66. package/src/components/sale/filesquery/RecordInfoQuery.vue +1443 -1443
  67. package/src/components/sale/filesquery/UserQuery.vue +977 -977
  68. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  69. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +695 -695
  70. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +646 -646
  71. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  72. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  73. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  74. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  75. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  76. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +552 -552
  77. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  78. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  79. package/src/components/webmeter/report/ReportList.vue +453 -453
  80. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  81. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  82. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +12 -10
  83. package/src/filiale/ancheng/exportConfig.js +120 -120
  84. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  85. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  86. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  87. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  88. package/src/filiale/bayan/config/tableConfig.js +59 -59
  89. package/src/filiale/bayan/sale.js +8 -8
  90. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  91. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  92. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  93. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  94. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  95. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  96. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  97. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  98. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  99. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  100. package/src/filiale/bayan/webmeterManage.js +26 -26
  101. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  102. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  103. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  104. package/src/filiale/dingcheng/sale.js +9 -9
  105. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  106. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  107. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  108. package/src/filiale/hantou/config/tableConfig.js +54 -54
  109. package/src/filiale/hantou/sale.js +8 -8
  110. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  111. package/src/filiale/jingyang/RechargeList.vue +346 -346
  112. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  113. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  114. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  115. package/src/filiale/jingyang/sale.js +8 -8
  116. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  117. package/src/filiale/kelai/GasStatistics.vue +561 -561
  118. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  119. package/src/filiale/kelai/NewGasStatistics.vue +542 -542
  120. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  121. package/src/filiale/kelai/reportManage.js +13 -13
  122. package/src/filiale/kelai/sale.js +17 -17
  123. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  124. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  125. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  126. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  127. package/src/filiale/macheng/config/exportConfig.js +79 -79
  128. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  129. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  130. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  131. package/src/filiale/meihekou/CollectManage.vue +152 -152
  132. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  133. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  134. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  135. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  136. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  137. package/src/filiale/meihekou/sale.js +39 -39
  138. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  139. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  140. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  141. package/src/filiale/qianneng/exportConfig.js +232 -232
  142. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  143. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  144. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  145. package/src/filiale/rizhao/sale.js +13 -13
  146. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  147. package/src/filiale/shangluo/sale.js +17 -17
  148. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  149. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  150. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  151. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  152. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  153. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  154. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  155. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  156. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  157. package/src/filiale/taizhoukesi/sale.js +11 -11
  158. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  159. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  160. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  161. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  162. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  163. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  164. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  165. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  166. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  167. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  168. package/src/filiale/xinjiangdexin/sale.js +7 -7
  169. package/src/filiale/yangchun/ChangeMeterQuery.vue +716 -716
  170. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  171. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  172. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  173. package/src/filiale/yangchun/RecordInfoQuery.vue +1477 -1477
  174. package/src/filiale/yangchun/UserQuery.vue +980 -980
  175. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  176. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  177. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  178. package/src/filiale/yangchun/reportManage.js +6 -6
  179. package/src/filiale/yangchun/sale.js +20 -20
  180. package/src/filiale/yangchun/webmeterManage.js +5 -5
  181. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  182. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  183. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  184. package/src/filiale/yuncheng/MeterQuery.vue +995 -995
  185. package/src/filiale/yuncheng/config/exportConfig.js +2674 -2674
  186. package/src/filiale/yuncheng/sale.js +23 -23
  187. package/src/filiale/zhongyi/GasStatistics.vue +522 -522
  188. package/src/filiale/zhongyi/exportConfig.js +2554 -2554
  189. package/src/main.js +68 -68
  190. package/src/plugins/LodopFuncs.js +159 -159
  191. package/src/reportManage.js +773 -773
  192. package/src/saleManage.js +689 -689
  193. package/src/webmeterManage.js +130 -130
@@ -1,977 +1,977 @@
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">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;&nbsp;</label>
74
- <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
75
- condition="f_people_num = '{}'" placeholder="人数">
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">微信绑定</label>
79
- <v-select
80
- :value.sync="model.f_wechat"
81
- v-model="model.f_wechat"
82
- :options='$parent.$parent.weixinSign'
83
- placeholder='请选择'
84
- condition="f_wechat = '{}'"
85
- close-on-select>
86
- </v-select>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body" >缴费类型</label>
90
- <v-select :value.sync="model.f_payment" multiple
91
- v-model="model.f_payment"
92
- :options='$parent.$parent.dypayment' placeholder='请选择'
93
- condition="f_cost_type in {}"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">客户地址</label>
98
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
99
- condition="f_address like '%{}%'" placeholder='客户地址'>
100
- </div>
101
- <!-- <div class="col-sm-2 form-group">-->
102
- <!-- <label for="startDate" class="font_normal_body">建档日期</label>-->
103
- <!-- <datepicker placeholder="建档开始日期" style="width:60%"-->
104
- <!-- v-model="model.f_createfile_date"-->
105
- <!-- :value.sync="model.f_createfile_date"-->
106
- <!-- :format="'yyyy-MM-dd'"-->
107
- <!-- :show-reset-button="true"-->
108
- <!-- condition="f_createfile_date >= '{} 00:00:00'">-->
109
- <!-- </datepicker>-->
110
- <!-- </div>-->
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">建档部门</label>
113
- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
114
- condition="f_depname like '%{}%'" placeholder='建档部门'>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body">报警器编码</label>
118
- <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
119
- condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">发票编码</label>
123
- <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
124
- condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
125
- </div>
126
- <div class="col-sm-2 form-group">
127
- <label class="font_normal_body">燃气表号</label>
128
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
129
- condition="f_meternumber = '{}'" placeholder='燃气表号'>
130
- </div>
131
- <!-- <div class="col-sm-2">-->
132
- <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
133
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
134
- <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
135
- <!-- <div class="col-sm-8">&ndash;&gt;-->
136
- <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
137
- <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
138
- <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
139
- <!-- class="select_list select"&ndash;&gt;-->
140
- <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
141
- <!-- close-on-select search="true">&ndash;&gt;-->
142
- <!-- </v-select>-->
143
- <!-- </div>-->
144
-
145
- <div class="col-sm-2 form-group">
146
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;&nbsp;</label>
147
- <v-select :value.sync="model.f_residential_area"
148
- class="select_list select"
149
- enter-push
150
- multiple = "true"
151
- v-model="model.f_residential_area"
152
- style="width: 60%"
153
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
154
- close-on-select>
155
-
156
- </v-select>
157
- </div>
158
- <div class="col-sm-2 form-group">
159
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;&nbsp;</label>
160
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
161
- condition="f_building like '%{}%'" placeholder="楼栋"/>
162
- </div>
163
- <div class="col-sm-2 form-group">
164
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;&nbsp;</label>
165
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
166
- condition="f_unit like '%{}%'" placeholder="单元"/>
167
- </div>
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;&nbsp;&nbsp;</label>
170
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
171
- condition="f_floor like '%{}%'" placeholder="楼层"/>
172
- </div>
173
- <div class="col-sm-2 form-group">
174
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
175
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
176
- condition="f_room like '%{}%'" placeholder="门牌号">
177
- </div>
178
- <div class="col-sm-2 form-group">
179
- <label class="font_normal_body">余额区间</label>
180
- <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
181
- condition="f_balance >= '{}'" placeholder="最小值">
182
- </div>
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
185
- <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
186
- condition="f_balance <= '{}'" placeholder="最大值">
187
- </div>
188
- <div class="col-sm-2 form-group">
189
- <label class="font_normal_body">&nbsp;&nbsp;抄表员&nbsp;</label>
190
- <v-select :value.sync="model.f_inputtor"
191
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
192
- :options='$parent.$parent.inputtores' placeholder='请选择'
193
- multiple = "true"
194
- close-on-select></v-select>
195
- </div>
196
-
197
- <!-- <div class="col-sm-2" >-->
198
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
199
- <!-- <div class="form-group">-->
200
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
201
- <!-- :expression.sync = 'model.f_balance'-->
202
- <!-- v-model="model.f_balance"-->
203
- <!-- condition= "f_balance {}"-->
204
- <!-- :show-reset-button="reset"-->
205
- <!-- v-ref:f_balance>-->
206
- <!-- </v-input>-->
207
- <!-- </div>-->
208
- <!-- </div>-->
209
- <div class="col-sm-2 form-group">
210
- <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
211
- <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
212
- v-model="model.startDate"
213
- :value.sync="model.startDate"
214
- :format="'yyyy-MM-dd'"
215
- :show-reset-button="true"
216
- condition="f_createfile_date >= '{} 00:00:00'">
217
- </datepicker>
218
- </div>
219
- <div class="col-sm-2 form-group">
220
- <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
221
- <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
222
- v-model="model.endDate"
223
- :value.sync="model.endDate"
224
- :format="'yyyy-MM-dd'"
225
- :show-reset-button="true"
226
- condition="f_createfile_date <= '{} 23:59:59'">
227
- </datepicker>
228
- </div>
229
- <div class="col-sm-2 form-group">
230
- <label for="startGasDate" class="font_normal_body">通气时间</label>
231
- <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
232
- v-model="model.startGasDate"
233
- :value.sync="model.startGasDate"
234
- :format="'yyyy-MM-dd'"
235
- :show-reset-button="true"
236
- condition="f_gas_date >= '{} 00:00:00'">
237
- </datepicker>
238
- </div>
239
- <div class="col-sm-2 form-group">
240
- <label for="endGasDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
241
- <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
242
- v-model="model.endGasDate"
243
- :value.sync="model.endGasDate"
244
- :format="'yyyy-MM-dd'"
245
- :show-reset-button="true"
246
- condition="f_gas_date <= '{} 23:59:59'">
247
- </datepicker>
248
- </div>
249
- <!--表册片区-->
250
- <div class="col-sm-2 form-group">
251
- <label class="font_normal_body">表册片区</label>
252
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
253
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
254
- style="width:60%"
255
- close-on-select
256
- condition="f_book_slice_area = '{}'"></v-select>
257
- </div>
258
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
259
- <div class="col-sm-2 form-group">
260
- <label class="font_normal_body">客户等级</label>
261
- <v-select :value.sync="model.f_user_level"
262
- v-model="model.f_user_level" condition="f_user_level in {}"
263
- :options='$parent.$parent.userLevels' placeholder='请选择'
264
- multiple = "true"
265
- close-on-select></v-select>
266
- </div>
267
- <div class="col-sm-2 form-group">
268
- <label class="font_normal_body">通气状态</label>
269
- <v-select :value.sync="model.f_address_state"
270
- v-model="model.f_address_state" condition="f_address_state = '{}'"
271
- :options='$parent.$parent.addressstate' placeholder='请选择'
272
- close-on-select></v-select>
273
- </div>
274
- <div class="col-sm-2 form-group">
275
- <label class="font_normal_body">发卡状态</label>
276
- <v-select :value.sync="model.f_whether_hairpin"
277
- v-model="model.f_whether_hairpin" condition="f_whether_hairpin = '{}'"
278
- :options='$parent.$parent.hairpin' placeholder='请选择'
279
- close-on-select></v-select>
280
- </div>
281
- <div class="col-sm-2 form-group">
282
- <label for="startDate" class="font_normal_body" title="开户开始日期">开户时间</label>
283
- <datepicker id="startDate" placeholder="开户开始日期" style="width:60%"
284
- v-model="model.startOpenDate"
285
- :value.sync="model.startOpenDate"
286
- :format="'yyyy-MM-dd'"
287
- :show-reset-button="true"
288
- condition="f_open_date >= '{} 00:00:00'">
289
- </datepicker>
290
- </div>
291
- <div class="col-sm-2 form-group">
292
- <label for="endDate" class="font_normal_body" title="开户结束日期">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
293
- <datepicker id="endDate" placeholder="开户结束日期" style="width:60%"
294
- v-model="model.endOpenDate"
295
- :value.sync="model.endOpenDate"
296
- :format="'yyyy-MM-dd'"
297
- :show-reset-button="true"
298
- condition="f_open_date <= '{} 23:59:59'">
299
- </datepicker>
300
- </div>
301
- </div>
302
- </div>
303
- </criteria>
304
-
305
-
306
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
307
- <template partial='head'>
308
- <tr>
309
- <th>
310
- <!--<nobr>客户编号</nobr>-->
311
- <data-order field="f_userinfo_code" name="客户编号"
312
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
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
- <nobr>客户等级</nobr>
334
- </th>
335
- <th>
336
- <nobr>客户类型</nobr>
337
- </th>
338
- <th>
339
- <data-order field="f_address" name="客户地址"
340
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
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
- </th>
360
- <th>
361
- <nobr>客户状态</nobr>
362
- </th>
363
- <th>
364
- <!--<nobr>建档日期</nobr>-->
365
- <data-order field="f_createfile_date" name="建档日期"
366
- :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
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
- <!-- <th>-->
405
- <!-- <nobr>公司</nobr>-->
406
- <!-- </th>-->
407
- </tr>
408
- </template>
409
- <template partial='body'>
410
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
411
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
412
- </nobr> </td>
413
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
414
- <nobr>{{row.f_user_name}}</nobr>
415
- </td>
416
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
417
- <nobr>{{row.f_olduserinfo_code}}</nobr>
418
- </td>
419
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
420
- <nobr>{{row.f_user_phone}}</nobr>
421
- </td>
422
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
423
- <nobr>{{row.f_idnumber}}</nobr>
424
- </td>
425
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
426
- <nobr>{{row.f_book_slice_area}}</nobr>
427
- </td>
428
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
429
- <nobr>{{row.f_balance}}</nobr>
430
- </td>
431
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
432
- <nobr>{{row.f_user_level}}</nobr>
433
- </td>
434
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
435
- <nobr>{{row.f_user_type}}</nobr>
436
- </td>
437
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
438
- <nobr>{{row.f_address}}</nobr>
439
- </td>
440
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
441
- <nobr>{{row.f_meternumber}}</nobr>
442
- </td>
443
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
444
- <nobr>{{row.f_residential_area}}</nobr>
445
- </td>
446
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
447
- <nobr>{{row.f_building}}</nobr>
448
- </td>
449
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
450
- <nobr>{{row.f_unit}}</nobr>
451
- </td>
452
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
453
- <nobr>{{row.f_floor}}</nobr>
454
- </td>
455
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
456
- <nobr>{{row.f_room}}</nobr>
457
- </td>
458
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
459
- <nobr>{{row.f_user_state}}</nobr>
460
- </td>
461
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
462
- <nobr>{{row.f_createfile_date}}</nobr>
463
- </td>
464
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
465
- <nobr>{{row.f_createfile_person}}</nobr>
466
- </td>
467
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
468
- <nobr>{{row.f_cost_type}}</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_accopen}}</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_name}}</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_account}}</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_idnumber}}</span></nobr>
481
- </td>
482
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
483
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
484
- </td>
485
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
486
- <nobr>{{row.f_address_state}}</nobr>
487
- </td>
488
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
489
- <nobr>{{row.f_gas_date}}</nobr>
490
- </td>
491
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
492
- <nobr>{{row.f_whether_hairpin}}</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.startOpenDate = self.$login.toStandardDateString()
573
- self.$refs.paged.$refs.cri.model.endOpenDate = 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
- hairpin() {
961
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
962
- },
963
- addressstate() {
964
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
965
- }
966
- }
967
- }
968
- </script>
969
- <style>
970
- .back-red{ /* 红色背景 */
971
- background-color: #F6C6CE;
972
- }
973
- .back-blue{ /* 蓝色背景 */
974
-
975
- }
976
- </style>
977
-
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">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;&nbsp;</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
75
+ condition="f_people_num = '{}'" placeholder="人数">
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">微信绑定</label>
79
+ <v-select
80
+ :value.sync="model.f_wechat"
81
+ v-model="model.f_wechat"
82
+ :options='$parent.$parent.weixinSign'
83
+ placeholder='请选择'
84
+ condition="f_wechat = '{}'"
85
+ close-on-select>
86
+ </v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body" >缴费类型</label>
90
+ <v-select :value.sync="model.f_payment" multiple
91
+ v-model="model.f_payment"
92
+ :options='$parent.$parent.dypayment' placeholder='请选择'
93
+ condition="f_cost_type in {}"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">客户地址</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
99
+ condition="f_address like '%{}%'" placeholder='客户地址'>
100
+ </div>
101
+ <!-- <div class="col-sm-2 form-group">-->
102
+ <!-- <label for="startDate" class="font_normal_body">建档日期</label>-->
103
+ <!-- <datepicker placeholder="建档开始日期" style="width:60%"-->
104
+ <!-- v-model="model.f_createfile_date"-->
105
+ <!-- :value.sync="model.f_createfile_date"-->
106
+ <!-- :format="'yyyy-MM-dd'"-->
107
+ <!-- :show-reset-button="true"-->
108
+ <!-- condition="f_createfile_date >= '{} 00:00:00'">-->
109
+ <!-- </datepicker>-->
110
+ <!-- </div>-->
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">建档部门</label>
113
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
114
+ condition="f_depname like '%{}%'" placeholder='建档部门'>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">报警器编码</label>
118
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
119
+ condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">发票编码</label>
123
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
124
+ condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">燃气表号</label>
128
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
129
+ condition="f_meternumber = '{}'" placeholder='燃气表号'>
130
+ </div>
131
+ <!-- <div class="col-sm-2">-->
132
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
133
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
134
+ <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
135
+ <!-- <div class="col-sm-8">&ndash;&gt;-->
136
+ <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
137
+ <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
138
+ <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
139
+ <!-- class="select_list select"&ndash;&gt;-->
140
+ <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
141
+ <!-- close-on-select search="true">&ndash;&gt;-->
142
+ <!-- </v-select>-->
143
+ <!-- </div>-->
144
+
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;&nbsp;</label>
147
+ <v-select :value.sync="model.f_residential_area"
148
+ class="select_list select"
149
+ enter-push
150
+ multiple = "true"
151
+ v-model="model.f_residential_area"
152
+ style="width: 60%"
153
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
154
+ close-on-select>
155
+
156
+ </v-select>
157
+ </div>
158
+ <div class="col-sm-2 form-group">
159
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;&nbsp;</label>
160
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
161
+ condition="f_building like '%{}%'" placeholder="楼栋"/>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;&nbsp;</label>
165
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
166
+ condition="f_unit like '%{}%'" placeholder="单元"/>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;&nbsp;&nbsp;</label>
170
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
171
+ condition="f_floor like '%{}%'" placeholder="楼层"/>
172
+ </div>
173
+ <div class="col-sm-2 form-group">
174
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
175
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
176
+ condition="f_room like '%{}%'" placeholder="门牌号">
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">余额区间</label>
180
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
181
+ condition="f_balance >= '{}'" placeholder="最小值">
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
186
+ condition="f_balance <= '{}'" placeholder="最大值">
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body">&nbsp;&nbsp;抄表员&nbsp;</label>
190
+ <v-select :value.sync="model.f_inputtor"
191
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
192
+ :options='$parent.$parent.inputtores' placeholder='请选择'
193
+ multiple = "true"
194
+ close-on-select></v-select>
195
+ </div>
196
+
197
+ <!-- <div class="col-sm-2" >-->
198
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
199
+ <!-- <div class="form-group">-->
200
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
201
+ <!-- :expression.sync = 'model.f_balance'-->
202
+ <!-- v-model="model.f_balance"-->
203
+ <!-- condition= "f_balance {}"-->
204
+ <!-- :show-reset-button="reset"-->
205
+ <!-- v-ref:f_balance>-->
206
+ <!-- </v-input>-->
207
+ <!-- </div>-->
208
+ <!-- </div>-->
209
+ <div class="col-sm-2 form-group">
210
+ <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
211
+ <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
212
+ v-model="model.startDate"
213
+ :value.sync="model.startDate"
214
+ :format="'yyyy-MM-dd'"
215
+ :show-reset-button="true"
216
+ condition="f_createfile_date >= '{} 00:00:00'">
217
+ </datepicker>
218
+ </div>
219
+ <div class="col-sm-2 form-group">
220
+ <label for="endDate" class="font_normal_body" title="建档结束日期">结束日期</label>
221
+ <datepicker id="endDate" placeholder="建档结束日期" style="width:60%"
222
+ v-model="model.endDate"
223
+ :value.sync="model.endDate"
224
+ :format="'yyyy-MM-dd'"
225
+ :show-reset-button="true"
226
+ condition="f_createfile_date <= '{} 23:59:59'">
227
+ </datepicker>
228
+ </div>
229
+ <div class="col-sm-2 form-group">
230
+ <label for="startGasDate" class="font_normal_body">通气时间</label>
231
+ <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
232
+ v-model="model.startGasDate"
233
+ :value.sync="model.startGasDate"
234
+ :format="'yyyy-MM-dd'"
235
+ :show-reset-button="true"
236
+ condition="f_gas_date >= '{} 00:00:00'">
237
+ </datepicker>
238
+ </div>
239
+ <div class="col-sm-2 form-group">
240
+ <label for="endGasDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
241
+ <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
242
+ v-model="model.endGasDate"
243
+ :value.sync="model.endGasDate"
244
+ :format="'yyyy-MM-dd'"
245
+ :show-reset-button="true"
246
+ condition="f_gas_date <= '{} 23:59:59'">
247
+ </datepicker>
248
+ </div>
249
+ <!--表册片区-->
250
+ <div class="col-sm-2 form-group">
251
+ <label class="font_normal_body">表册片区</label>
252
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
253
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
254
+ style="width:60%"
255
+ close-on-select
256
+ condition="f_book_slice_area = '{}'"></v-select>
257
+ </div>
258
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
259
+ <div class="col-sm-2 form-group">
260
+ <label class="font_normal_body">客户等级</label>
261
+ <v-select :value.sync="model.f_user_level"
262
+ v-model="model.f_user_level" condition="f_user_level in {}"
263
+ :options='$parent.$parent.userLevels' placeholder='请选择'
264
+ multiple = "true"
265
+ close-on-select></v-select>
266
+ </div>
267
+ <div class="col-sm-2 form-group">
268
+ <label class="font_normal_body">通气状态</label>
269
+ <v-select :value.sync="model.f_address_state"
270
+ v-model="model.f_address_state" condition="f_address_state = '{}'"
271
+ :options='$parent.$parent.addressstate' placeholder='请选择'
272
+ close-on-select></v-select>
273
+ </div>
274
+ <div class="col-sm-2 form-group">
275
+ <label class="font_normal_body">发卡状态</label>
276
+ <v-select :value.sync="model.f_whether_hairpin"
277
+ v-model="model.f_whether_hairpin" condition="f_whether_hairpin = '{}'"
278
+ :options='$parent.$parent.hairpin' placeholder='请选择'
279
+ close-on-select></v-select>
280
+ </div>
281
+ <div class="col-sm-2 form-group">
282
+ <label for="startDate" class="font_normal_body" title="开户开始日期">开户时间</label>
283
+ <datepicker id="startDate" placeholder="开户开始日期" style="width:60%"
284
+ v-model="model.startOpenDate"
285
+ :value.sync="model.startOpenDate"
286
+ :format="'yyyy-MM-dd'"
287
+ :show-reset-button="true"
288
+ condition="f_open_date >= '{} 00:00:00'">
289
+ </datepicker>
290
+ </div>
291
+ <div class="col-sm-2 form-group">
292
+ <label for="endDate" class="font_normal_body" title="开户结束日期">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
293
+ <datepicker id="endDate" placeholder="开户结束日期" style="width:60%"
294
+ v-model="model.endOpenDate"
295
+ :value.sync="model.endOpenDate"
296
+ :format="'yyyy-MM-dd'"
297
+ :show-reset-button="true"
298
+ condition="f_open_date <= '{} 23:59:59'">
299
+ </datepicker>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ </criteria>
304
+
305
+
306
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
307
+ <template partial='head'>
308
+ <tr>
309
+ <th>
310
+ <!--<nobr>客户编号</nobr>-->
311
+ <data-order field="f_userinfo_code" name="客户编号"
312
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
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
+ <nobr>客户等级</nobr>
334
+ </th>
335
+ <th>
336
+ <nobr>客户类型</nobr>
337
+ </th>
338
+ <th>
339
+ <data-order field="f_address" name="客户地址"
340
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
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
+ </th>
360
+ <th>
361
+ <nobr>客户状态</nobr>
362
+ </th>
363
+ <th>
364
+ <!--<nobr>建档日期</nobr>-->
365
+ <data-order field="f_createfile_date" name="建档日期"
366
+ :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
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
+ <!-- <th>-->
405
+ <!-- <nobr>公司</nobr>-->
406
+ <!-- </th>-->
407
+ </tr>
408
+ </template>
409
+ <template partial='body'>
410
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
411
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
412
+ </nobr> </td>
413
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
414
+ <nobr>{{row.f_user_name}}</nobr>
415
+ </td>
416
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
417
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
418
+ </td>
419
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
420
+ <nobr>{{row.f_user_phone}}</nobr>
421
+ </td>
422
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
423
+ <nobr>{{row.f_idnumber}}</nobr>
424
+ </td>
425
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
426
+ <nobr>{{row.f_book_slice_area}}</nobr>
427
+ </td>
428
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
429
+ <nobr>{{row.f_balance}}</nobr>
430
+ </td>
431
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
432
+ <nobr>{{row.f_user_level}}</nobr>
433
+ </td>
434
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
435
+ <nobr>{{row.f_user_type}}</nobr>
436
+ </td>
437
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
438
+ <nobr>{{row.f_address}}</nobr>
439
+ </td>
440
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
441
+ <nobr>{{row.f_meternumber}}</nobr>
442
+ </td>
443
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
444
+ <nobr>{{row.f_residential_area}}</nobr>
445
+ </td>
446
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
447
+ <nobr>{{row.f_building}}</nobr>
448
+ </td>
449
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
450
+ <nobr>{{row.f_unit}}</nobr>
451
+ </td>
452
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
453
+ <nobr>{{row.f_floor}}</nobr>
454
+ </td>
455
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
456
+ <nobr>{{row.f_room}}</nobr>
457
+ </td>
458
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
459
+ <nobr>{{row.f_user_state}}</nobr>
460
+ </td>
461
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
462
+ <nobr>{{row.f_createfile_date}}</nobr>
463
+ </td>
464
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
465
+ <nobr>{{row.f_createfile_person}}</nobr>
466
+ </td>
467
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
468
+ <nobr>{{row.f_cost_type}}</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_accopen}}</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_name}}</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_account}}</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_idnumber}}</span></nobr>
481
+ </td>
482
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
483
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
484
+ </td>
485
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
486
+ <nobr>{{row.f_address_state}}</nobr>
487
+ </td>
488
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
489
+ <nobr>{{row.f_gas_date}}</nobr>
490
+ </td>
491
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
492
+ <nobr>{{row.f_whether_hairpin}}</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.startOpenDate = self.$login.toStandardDateString()
573
+ self.$refs.paged.$refs.cri.model.endOpenDate = 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
+ hairpin() {
961
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
962
+ },
963
+ addressstate() {
964
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
965
+ }
966
+ }
967
+ }
968
+ </script>
969
+ <style>
970
+ .back-red{ /* 红色背景 */
971
+ background-color: #F6C6CE;
972
+ }
973
+ .back-blue{ /* 蓝色背景 */
974
+
975
+ }
976
+ </style>
977
+