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,1002 +1,1002 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
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 like '%{}%' " 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" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
32
- <read-card v-if="!$filialeInfo || $filialeInfo!=='rongcheng'" :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
33
- <button class="button_search button_spacing" @click="search()">查询</button>
34
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
-
37
- <export-excel :data="$parent.$parent.getCondition"
38
- :field="$parent.$parent.getExportField"
39
- :footer="$parent.$parent.footer"
40
- :header="$parent.$parent.other"
41
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
42
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="meterQuery" template-name='表具查询导出'
43
- :choose-col="true"></export-excel>
44
- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
45
- :defaultfield="$parent.$parent.defaultfield"
46
- titletable="客户查询"
47
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
48
-
49
-
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
55
-
56
-
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">客户地址</label>
59
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
- condition="f_address like '%{}%'" placeholder='客户地址'>
61
- </div>
62
-
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
65
- <v-select
66
- v-model="model.f_pcd"
67
- placeholder='选择区域'
68
- :value.sync="model.f_pcd"
69
- :options='$parent.$parent.pcdslist'
70
- condition="f_pcd_id = '{}'"
71
- style="width: 60%"
72
- close-on-select >
73
- </v-select>
74
- </div>
75
- <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
76
- <label class="font_normal_body">用气点</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
78
- condition="f_userfiles_address like '%{}%'" placeholder='用气点'>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
82
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
83
- condition="f_meternumber like '%{}%'" placeholder='表号'>
84
- </div>
85
-
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
88
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
89
- condition="f_card_id like '%{}%'" placeholder='卡号'>
90
- </div>
91
-
92
- <div class="col-sm-2 form-group">
93
- <label class="font_normal_body">客户类型</label>
94
- <v-select :value.sync="model.f_user_type"
95
- :options='$parent.$parent.usertypes'
96
- @change="$parent.$parent.userTypeChange()"
97
- placeholder='请选择' v-model="model.f_user_type"
98
- condition="f_user_type = '{}'"
99
- close-on-select></v-select>
100
- </div>
101
- <div class="col-sm-2 form-group" v-if="false">
102
- <label for="f_usetype" class="font_normal_body">二次挂表</label>
103
- <v-select :value.sync="model.issecondtype" v-model="model.issecondtype"
104
- condition="f_usetype {}"
105
- :options='$parent.$parent.issecond' placeholder='请选择'
106
- close-on-select></v-select>
107
- </div>
108
- <div class="col-sm-2 form-group" >
109
- <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
110
- <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
111
- condition="f_usetype = '{}'"
112
- :options='$parent.$parent.usetype' placeholder='请选择'
113
- close-on-select></v-select>
114
- </div>
115
- <div class="col-sm-2 form-group">
116
- <label class="font_normal_body">用气性质</label>
117
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
118
- :options='$parent.$parent.gasproperties' placeholder='请选择'
119
- condition="f_gasproperties = '{}'"
120
- close-on-select></v-select>
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">气价类型</label>
124
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
125
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
126
- condition="f_price_type = '{}'"
127
- close-on-select v-ref:type>
128
- </v-select>
129
- </div>
130
- <div class="col-sm-2 form-group">
131
- <label class="font_normal_body">气价名称</label>
132
- <v-select :value.sync="model.f_price_name"
133
- v-model="model.f_price_name"
134
- :options="$parent.$parent.getPricenames"
135
- placeholder='请选择'
136
- condition="f_price_name = '{}'"
137
- close-on-select></v-select>
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">气表分类</label>
141
- <v-select :value.sync="model.f_meter_classify"
142
- v-model="model.f_meter_classify"
143
- :options='$parent.$parent.metertypes' placeholder='请选择'
144
- condition="f_meter_classify = '{}'"
145
- close-on-select></v-select>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">气表品牌</label>
149
- <v-select :value.sync="model.f_meter_brand"
150
- v-model="model.f_meter_brand"
151
- :options='$parent.$parent.meterbrands' placeholder='请选择'
152
- condition="f_meter_brand = '{}'"
153
- close-on-select></v-select>
154
- </div>
155
- <div class="col-sm-2 form-group">
156
- <label class="font_normal_body">气表型号</label>
157
- <v-select :value.sync="model.f_meter_style"
158
- v-model="model.f_meter_style"
159
- :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
160
- condition="f_meter_style = '{}'"
161
- close-on-select></v-select>
162
- </div>
163
- <div class="col-sm-2 form-group">
164
- <label class="font_normal_body">气表状态</label>
165
- <v-select :value.sync="model.f_table_state"
166
- v-model="model.f_table_state"
167
- multiple ="true"
168
- :options='$parent.$parent.tablestate' placeholder='请选择'
169
- condition="f_table_state in {} "
170
- close-on-select></v-select>
171
- </div>
172
- <!-- <div class="col-sm-2 form-group">-->
173
- <!-- <label class="font_normal_body">使用状态</label>-->
174
- <!-- <v-select :value.sync="model.f_usestate"-->
175
- <!-- v-model="model.f_usestate"-->
176
- <!-- :options='$parent.$parent.usestate' placeholder='请选择'-->
177
- <!-- condition="f_usestate = '{}'"-->
178
- <!-- close-on-select></v-select>-->
179
- <!-- </div>-->
180
- <div class="col-sm-2 form-group">
181
- <label for="startDate" class="font_normal_body">建表日期</label>
182
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
183
- v-model="model.startDate"
184
- :value.sync="model.startDate"
185
- :format="'yyyy-MM-dd'"
186
- :show-reset-button="true"
187
- condition="f_input_date >= '{} 00:00:00'">
188
- </datepicker>
189
- </div>
190
- <div class="col-sm-2 form-group">
191
- <label for="endDate" class="font_normal_body">建表日期</label>
192
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
193
- v-model="model.endDate"
194
- :value.sync="model.endDate"
195
- :format="'yyyy-MM-dd'"
196
- :show-reset-button="true"
197
- condition="f_input_date <= '{} 23:59:59'">
198
- </datepicker>
199
- </div>
200
- <div class="col-sm-2 form-group">
201
- <label for="startDate" class="font_normal_body">通气日期</label>
202
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
203
- v-model="model.startTQDate"
204
- :value.sync="model.startTQDate"
205
- :format="'yyyy-MM-dd'"
206
- :show-reset-button="true"
207
- condition="f_gas_date >= '{} 00:00:00'">
208
- </datepicker>
209
- </div>
210
- <div class="col-sm-2 form-group">
211
- <label for="endDate" class="font_normal_body">通气日期</label>
212
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
213
- v-model="model.endTQDate"
214
- :value.sync="model.endTQDate"
215
- :format="'yyyy-MM-dd'"
216
- :show-reset-button="true"
217
- condition="f_gas_date <= '{} 23:59:59'">
218
- </datepicker>
219
- </div>
220
- <div class="col-sm-2 form-group">
221
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
222
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
223
- :options='$parent.$parent.bgl' placeholder='请选择'
224
- condition="isbgl = '{}'"
225
- close-on-select></v-select>
226
- </div>
227
- <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
228
- <label class="font_normal_body">用户等级</label>
229
- <v-select :value.sync="model.f_user_grade"
230
- v-model="model.f_user_grade"
231
- :options='$parent.$parent.usergrade' placeholder='请选择'
232
- condition="f_user_grade = '{}'"
233
- close-on-select></v-select>
234
- </div>
235
- <!--表册片区-->
236
- <div class="col-sm-2 form-group">
237
- <label class="font_normal_body">表册片区</label>
238
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
239
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
240
- style="width:60%"
241
- close-on-select
242
- condition="f_book_slice_area = '{}'"></v-select>
243
- </div>
244
- <div class="col-sm-2 form-group">
245
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
246
- <v-select :value.sync="model.f_inputtor"
247
- v-model="model.f_inputtor"
248
- :options='$parent.$parent.inputtores' placeholder='请选择'
249
- condition="f_inputtor = '{}'"
250
- close-on-select :value-single="true" :search="false">
251
- </v-select>
252
- </div>
253
- <div class="col-sm-2 form-group">
254
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
255
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
256
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
257
- style="width:60%"
258
- close-on-select
259
- condition="f_meter_book_num = '{}'"></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_user_state"
264
- v-model="model.f_user_state"
265
- multiple = "true"
266
- :options='$parent.$parent.userstates' placeholder='请选择'
267
- condition="f_user_state in {}"
268
- close-on-select></v-select>
269
- </div>
270
- <div class="col-sm-2 form-group">
271
- <label for="startUseDate" class="font_normal_body">使用日期</label>
272
- <datepicker id="startUseDate" placeholder="开始日期" style="width:60%"
273
- v-model="model.startUseDate"
274
- :value.sync="model.startUseDate"
275
- :format="'yyyy-MM-dd'"
276
- :show-reset-button="true"
277
- condition="f_use_date >= '{} 00:00:00'">
278
- </datepicker>
279
- </div>
280
- <div class="col-sm-2 form-group">
281
- <label for="endUseDate" class="font_normal_body">使用日期</label>
282
- <datepicker id="endUseDate" placeholder="结束日期" style="width:60%"
283
- v-model="model.endUseDate"
284
- :value.sync="model.endUseDate"
285
- :format="'yyyy-MM-dd'"
286
- :show-reset-button="true"
287
- condition="f_use_date <= '{} 23:59:59'">
288
- </datepicker>
289
- </div>
290
- </div>
291
- </div>
292
- </criteria>
293
-
294
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
295
- <template partial='head'>
296
- <tr>
297
- <th>
298
- <nobr>客户编号</nobr>
299
- </th>
300
- <th>
301
- <nobr>客户名称</nobr>
302
- </th>
303
- <th>
304
- <nobr>档案编号</nobr>
305
- </th>
306
- <th>
307
- <nobr>客户电话</nobr>
308
- </th>
309
- <th>
310
- <nobr>身份证号</nobr>
311
- </th>
312
- <th>
313
- <nobr>客户地址</nobr>
314
- </th>
315
- <th>
316
- <nobr>表册片区</nobr>
317
- </th>
318
- <th>
319
- <nobr>表上余额</nobr>
320
- </th>
321
- <th>
322
- <nobr>客户类型</nobr>
323
- </th>
324
- <th>
325
- <nobr>使用类型</nobr>
326
- </th>
327
- <th>
328
- <nobr>使用日期</nobr>
329
- </th>
330
- <th>
331
- <nobr>用气性质</nobr>
332
- </th>
333
- <th>
334
- <nobr>表号</nobr>
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
- </th>
360
- <th>
361
- <nobr>建表时间</nobr>
362
- </th>
363
- <th>
364
- <nobr>气表状态</nobr>
365
- </th>
366
- <th>
367
- <nobr>是否壁挂炉</nobr>
368
- </th>
369
- </tr>
370
- </template>
371
- <template partial='body'>
372
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;"><nobr>
373
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
374
- </nobr> </td>
375
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
- <nobr>{{row.f_user_name}}</nobr>
377
- </td>
378
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
- <nobr>{{row.f_olduserinfo_code}}</nobr>
380
- </td>
381
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
- <nobr>{{row.f_user_phone}}</nobr>
383
- </td>
384
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
- <nobr>{{row.idnumber}}</nobr>
386
- </td>
387
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
- <nobr>{{row.f_address}}</nobr>
389
- </td>
390
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
- <nobr>{{row.f_book_slice_area}}</nobr>
392
- </td>
393
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
- <nobr>{{row.f_balance_amount}}</nobr>
395
- </td>
396
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
- <nobr>{{row.f_user_type}}</nobr>
398
- </td>
399
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
400
- <nobr>{{row.f_usetype}}</nobr>
401
- </td>
402
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
403
- <nobr>{{row.f_use_date}}</nobr>
404
- </td>
405
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
406
- <nobr>{{row.f_gasproperties}}</nobr>
407
- </td>
408
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
409
- <nobr>{{row.f_meternumber}}</nobr>
410
- </td>
411
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
412
- <nobr>{{row.f_card_id}}</nobr>
413
- </td>
414
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
415
- <nobr>{{row.f_price_name}}</nobr>
416
- </td>
417
- <th :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" title="{{row.value}}">
418
- <nobr>{{row.value.substring(0,10)}}</nobr>
419
- </th>
420
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
421
- <nobr>{{row.f_meter_brand}}</nobr>
422
- </td>
423
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
424
- <nobr>{{row.f_meter_style}}</nobr>
425
- </td>
426
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
427
- <nobr>{{row.f_inputtor}}</nobr>
428
- </td>
429
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
430
- <nobr>{{row.f_gas_person}}</nobr>
431
- </td>
432
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
433
- <nobr>{{row.f_gas_date}}</nobr>
434
- </td>
435
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
436
- <nobr>{{row.f_input_date}}</nobr>
437
- </td>
438
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
439
- <nobr>{{row.f_table_state}}</nobr>
440
- </td>
441
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
442
- <nobr>{{row.isbgl}}</nobr>
443
- </td>
444
- </template>
445
- <template partial='foot'>
446
- </template>
447
- </data-grid>
448
- </criteria-paged>
449
-
450
- <table class="table-hover">
451
- <tr style="position: relative" class="table-bordered">
452
- <td
453
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
454
- 汇总信息
455
- </td>
456
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
457
- 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
458
- </td>
459
- </tr>
460
- </table>
461
-
462
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
463
- <!--<header slot="modal-header" class="modal-header text-center">-->
464
- <!--<h4 class="modal-title">打印列选择</h4>-->
465
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
466
- <!--<label for="f_generations" class="font-size">全选</label>-->
467
- <!--</header>-->
468
- <!--<article slot="modal-body">-->
469
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
470
- <!--<div class="col-sm-3" v-for="f in fields">-->
471
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
472
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
473
- <!--</div>-->
474
- <!--</div>-->
475
- <!--</article>-->
476
- <!--<footer slot="modal-footer" class="modal-footer">-->
477
- <!--<center>-->
478
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
479
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
480
- <!--<print-table :model='model' v-show="false" v-ref:print-->
481
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
482
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
483
- <!--:fields="modelval" :printpage="true">-->
484
- <!--</print-table>-->
485
- <!--</center>-->
486
- <!--</footer>-->
487
- <!--</modal>-->
488
- </div>
489
- <div class="flex" v-if="show">
490
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
491
- </div>
492
- </div>
493
- </div>
494
- </div>
495
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
496
- </template>
497
-
498
- <script>
499
- import {HttpResetClass, PagedList} from 'vue-client'
500
- import exportConfig from './config/exportConfig'
501
- let cardBtnGen = async function (self, val) {
502
- self.cardInfo = val.data
503
-
504
- // 判断读卡是否需要卡密码
505
- console.log('读卡上的信息', self.cardInfo)
506
-
507
- if (self.cardInfo.NewParam) {
508
- if (self.cardInfo.NewParam.error) {
509
- if (self.cardInfo.NewParam.error === '0001') {
510
- // 需要重新读卡并传卡密码
511
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
512
- self.readCardParam = self.model.rows[0].f_card_password
513
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
514
- } else {
515
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
516
- return
517
- }
518
- }
519
- }
520
- }
521
- self.card=self.cardInfo.CardID
522
- self.search()
523
- }
524
-
525
- let readySomething = async function (self) {
526
- self.$MagGetSaleParam.initinputtor();
527
- self.getinputtores();
528
- self.initmeterbook();
529
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
530
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
531
- // await self.$refs.paged.$refs.cri.search()
532
- await self.$MagLoadParams.loadParam()
533
- self.initParams()
534
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
535
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
536
- }
537
-
538
- export default {
539
- title: '表具查询',
540
- data() {
541
- return {
542
- pcdslist:[],
543
- IdCardInfo:'',
544
- card:'',
545
- isSingleUser: null,
546
- other:[],
547
- footer:[],
548
- model: new PagedList('api/af-revenue/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
549
- criteriaShow: false,
550
- orgCondtionStr: '',
551
-
552
- modelval: [],
553
- printshow: false,
554
- all: false,
555
- fields: {},
556
- thead: '',
557
- tfoot: '',
558
- initres: {
559
- org:[this.$login.f.orgid],
560
- dep:[],
561
- user:[],
562
- },
563
- show:false,
564
- rowdata:{},
565
- meterbrands: [],
566
- // 气表型号
567
- meterstyle: {},
568
- //默认打印列
569
- defaultfield: [],
570
- config: {
571
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
572
- },
573
- pricenames: [],
574
- gasproperties:[],
575
- inputtouPerson: [],
576
- meterbooks:[{label: '全部',value: ''}], //抄表册
577
- inputtores:[{label: '全部',value: ''}],
578
- prices: [],
579
- //合计数据
580
- sumsmodel: {},
581
- //表册片区
582
- bookSlice:[{label: '全部',value: ''}],
583
- inputtores:[{label: '全部',value: ''}], //抄表员
584
- f_filialeid: this.$login.f.f_orgid,
585
- allorgid:[],
586
- tempfalg :false,
587
- lastorgstr:'',
588
- issecond: [{label:'是',value:" = '二次挂表'"},{label:'否',value:" <> '二次挂表'"}],
589
- usetype:this.$appdata.getParam('使用类型'),
590
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
591
- }
592
- },
593
- ready() {
594
- this.getpcd()
595
- console.log("===========",this.$filialeInfo)
596
- readySomething(this).then(() => {
597
- this.$emit('ready')
598
- }).catch((error) => {
599
- this.$emit('error', error)
600
- })
601
- },
602
- methods: {
603
- ReadIDCard(){
604
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
605
- console.log('======',msg)
606
- if(msg.err !== 0){ return}
607
- this.IdCardInfo=msg.strID
608
- })
609
- console.log(this.IdCardInfo)
610
- if(this.IdCardInfo) {
611
- this.search()
612
- }else{
613
- alert("读取失败,找不到用户信息")
614
- }
615
- },
616
- cardBtn (val) {
617
- // this.clear()
618
- cardBtnGen(this, val)
619
- },
620
- async initmeterbook(orgstr){
621
- if(orgstr == null ){
622
- orgstr = this.f_filialeid;
623
- }
624
- //获取新的抄表册,先去清理所有的抄表册
625
- this.$GetSaleParam.meterbooks = [];
626
- //开始加载新的抄表册
627
- await this.$LoadParams.loadMeterBook(orgstr)
628
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
629
- },
630
- async getinputtores () {
631
- // 获取抄表员
632
- let rs = []
633
- if (this.$login.f.f_gasman.length > 0) {
634
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
635
- let temp = {
636
- label: this.$login.f.f_gasman[i].name,
637
- value: this.$login.f.f_gasman[i].name
638
- }
639
- rs.push(temp)
640
- }
641
- }
642
- this.inputtores = [{label: '全部', value: ''}, ...rs]
643
- },
644
- getotherfooter () {
645
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
646
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
647
- this.other = [];
648
- this.footer = [];
649
- let exportdata = this.getCondition;
650
- let otherInData = [];
651
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
652
- let footerData = [], exportfield = this.getExportField;
653
- footerData.push("合计");
654
- let self = this;
655
- for (var field in self.sumsmodel) {
656
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
657
- }
658
- this.footer.push(footerData);
659
- this.other.push(otherInData);
660
- },
661
- search(){
662
- this.$refs.paged.$refs.cri.search()
663
- },
664
- cancel() {
665
- this.show = false
666
- },
667
- showmsg(obj){
668
- this.rowdata=obj
669
- this.show=true
670
- },
671
- selfSearch(args) {
672
- //抄表员查询条件
673
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
674
- if(this.inputtouPerson.length !== 0){
675
- let str = JSON.stringify(this.inputtouPerson)
676
- str = str.replace(/"/g,`'`)
677
- str = str.replace(/\[/g,``)
678
- str = str.replace(/\]/g,``)
679
- console.log("=====抄表员model22222222222绑定====",str)
680
- //查询多个抄表员时条件
681
- args.condition += ` and f_inputtor in ( ${str} )`
682
- }
683
- if (!this.orgCondtionStr) {
684
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
685
- } else {
686
- args.condition = `${args.condition}` + this.orgCondtionStr
687
- }
688
- if(this.card!=''){
689
- args.condition +=` and f_card_id='${this.card}'`
690
- }
691
- if(this.IdCardInfo!=''){
692
- args.condition+=` and f_idnumber='${this.IdCardInfo}'`
693
- }
694
- this.model.search(args.condition, args.model)
695
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
696
- this.card=''
697
- this.IdCardInfo=''
698
- },
699
- clear() {
700
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
701
- this.$refs.paged.$refs.cri.model[key] = []
702
- })
703
- },
704
- hidden() {
705
- this.criteriaShow = !this.criteriaShow
706
- },
707
- async getRes(condition) {
708
- this.orgCondtionStr = condition
709
-
710
- },
711
- stamp() {
712
- this.all = false
713
- //默认选择要打印的列
714
- this.modelval = defaultPrint.config
715
- this.fields = this.getfield
716
- console.log('所有打印字段', this.fields)
717
- this.printshow = true
718
- this.put()
719
- },
720
- put() {
721
- // 对Modelval进行排序
722
- this.sortModelval()
723
- this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
724
- for (let key of this.modelval) {
725
- this.thead += '<th>' + this.fields[key] + '</th>'
726
- }
727
- this.thead += '</tr>'
728
- },
729
- print() {
730
- this.$refs.print.PrintAsFile()
731
- this.printshow = false
732
- },
733
- close() {
734
- this.printshow = false
735
- this.all = false
736
- },
737
- userTypeChange () {
738
- this.gasproperties=[]
739
- if(this.$refs.paged.$refs.cri.model !==null) {
740
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
741
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
742
- }
743
- else{
744
- this.gasproperties =[{label: '全部', value: ''}]
745
- }
746
- },
747
- initParams() {
748
- // 初始化气表品牌
749
- let brandArr = []
750
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
751
- let temp = {}
752
- temp.label = item.label
753
- temp.value = item.value.f_meter_brand
754
- brandArr.push(temp)
755
- // 取出对应气表型号
756
- let styleArr = []
757
- for (let row of item.value.gasmodel) {
758
- styleArr.push({label: row.label,value: row.value.f_meter_style})
759
- }
760
- this.meterstyle[temp.value] = styleArr
761
- })
762
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
763
- //初始化气表价格
764
- this.prices = this.$MagGetSaleParam.getPrices();
765
- },
766
- // 对选择的列进行排序
767
- sortModelval() {
768
- let sortModel = []
769
- Object.keys(this.fields).forEach((key) => {
770
- if (this.modelval.includes(key)) {
771
- sortModel.push(key)
772
- }
773
- })
774
- this.modelval = sortModel
775
- console.log('选择的打印的字段', this.modelval)
776
- },
777
- async updateParams() {
778
- await this.$MagLoadParams.loadParam(this.f_filialeid)
779
- this.inputtores = [];
780
- this.inputtores.push({label: "全部", value: ""})
781
- this.initSlice(this.f_filialeid)
782
- if(this.allorgid!=null){
783
- this.allorgid.forEach((res)=>{
784
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
785
- })
786
- }
787
- },
788
- async initSlice (val) {
789
- if (val) {
790
- let getAllArea = await this.$resetpost('/rs/search', {
791
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
792
- userid: this.$login.f.id
793
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
794
- let arr = getAllArea.data.filter((res) => {
795
- return res.parentid == val
796
- })
797
- this.bookSlice = []
798
- console.log('过滤之后的片区-------------------', arr)
799
- arr.forEach((res) => {
800
- this.bookSlice.push({label: res.name, value: res.name})
801
- })
802
- }
803
- },
804
- async getpcd(){
805
- let HttpReset = new HttpResetClass()
806
- console.log('开始获取区域')
807
- var req = await HttpReset.load('POST','api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
808
- data: {
809
- items: '*',
810
- tablename: 't_pcd',
811
- orderitem: 'id',
812
- condition: `1=1`
813
- }
814
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
815
- let redata = []
816
- console.log('区域是:',req)
817
- req.data.forEach((row, n) => {
818
- redata[n] = {
819
- label: row.f_pcd,
820
- value: row.id,
821
- data: row,
822
- id: row.id
823
- }
824
- })
825
- console.log('获取到的区域',redata)
826
- this.pcdslist = redata
827
- }
828
- },
829
- watch: {
830
- 'model.rows.length' () {
831
- this.isSingleUser = this.model.rows
832
- },
833
- 'all'(val) {
834
- if (val) {
835
- this.modelval = this.bodyData
836
- } else {
837
- this.modelval = defaultPrint.config
838
- this.put()
839
- }
840
- },
841
- sumsmodel:{
842
- handler: function(val) {
843
- this.getotherfooter();
844
- },
845
- deep: true
846
- },
847
- 'modelval.length'() {
848
- this.put()
849
- },
850
- async 'orgCondtionStr'(val) {
851
- //更新抄表册
852
- this.meterbooks = [{label: '全部',value: ''}];
853
- if(this.lastorgstr != val){
854
- this.tempfalg = true;
855
- this.lastorgstr = val;
856
- }
857
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
858
- this.tempfalg = false;
859
- let a = val.substring(val.indexOf("(")+2)
860
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
861
- }
862
- let res = val.match(/'(.*?)'/)
863
- console.log('正则提取:',res && res[1])
864
- if (res) {
865
- this.f_filialeid = res[1]
866
- if(res.input !=null){
867
- let resorgid = res.input.substring(res.input.indexOf("'"));
868
- if(resorgid!= null && resorgid!=''){
869
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
870
- // resorgid = resorgid.replaceAll("'","");
871
- resorgid = resorgid.replace(/'/g,"");
872
- this.allorgid = resorgid.split(",")
873
- }
874
- }
875
- this.updateParams()
876
- }
877
- },
878
- },
879
- computed: {
880
- authArr () {
881
- return this.$login.r ? this.$login.r : []
882
- },
883
- getPricenames() {
884
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
885
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
886
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
887
- // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
888
- if(this.$refs.paged.$refs.cri.model !==null) {
889
- let rs = []
890
- let priceArr = []
891
- if ( pricetype.length >0) {
892
- let params = {
893
- f_price_type: pricetype[0],
894
- filter: this.f_filialeid,
895
- prices: this.prices
896
- }
897
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
898
- let temp = {}
899
- temp.label = item.label
900
- temp.value = item.value.f_price_name
901
- priceArr.push(temp)
902
- })
903
- rs = [{label: '全部', value: ''}, ...priceArr]
904
- }
905
- if (rs.length === 0) {
906
- console.log('rs读出来是空')
907
- this.$refs.paged.$refs.cri.model.f_price_name = ''
908
- }
909
- return rs
910
- }
911
- },
912
- getCondition() {
913
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
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.meterConfig
934
- },
935
- areas() {
936
- let rs = []
937
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
938
- let temp = {
939
- label: this.$login.f.f_allArea[i].label,
940
- value: this.$login.f.f_allArea[i].label
941
- }
942
- rs.push(temp)
943
- }
944
- return [{label: '全部', value: ''}, ...rs]
945
- },
946
- sliceArea() {
947
- let rs = []
948
- if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
949
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
950
- if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
951
- rs = this.$login.f.f_allArea[i].value
952
- }
953
- }
954
- }
955
- return [{label: '全部', value: ''}, ...rs]
956
- },
957
- usertypes() {
958
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
959
- },
960
- // gasproperties() {
961
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
962
- // },
963
-
964
- metertypes() {
965
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
966
- },
967
- // meterbrands() {
968
- // let arr = []
969
- // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
970
- // let temp = {}
971
- // temp.label = item.label
972
- // temp.value = item.value.f_meter_brand
973
- // arr.push(temp)
974
- // })
975
- // return [{label: '全部', value: ''}, ...arr]
976
- // },
977
- pricetypes() {
978
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
979
- },
980
- tablestate() {
981
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
982
- },
983
- bgl(){
984
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
985
- },
986
- usergrade(){
987
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
988
- },
989
- usestate(){
990
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用状态')]
991
- }
992
- }
993
- }
994
- </script>
995
- <style>
996
- .back-red{ /* 红色背景 */
997
- background-color: #F6C6CE;
998
- }
999
- .back-blue{ /* 蓝色背景 */
1000
-
1001
- }
1002
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
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 like '%{}%' " 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" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
32
+ <read-card v-if="!$filialeInfo || $filialeInfo!=='rongcheng'" :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
33
+ <button class="button_search button_spacing" @click="search()">查询</button>
34
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
+
37
+ <export-excel :data="$parent.$parent.getCondition"
38
+ :field="$parent.$parent.getExportField"
39
+ :footer="$parent.$parent.footer"
40
+ :header="$parent.$parent.other"
41
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
42
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="meterQuery" template-name='表具查询导出'
43
+ :choose-col="true"></export-excel>
44
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
45
+ :defaultfield="$parent.$parent.defaultfield"
46
+ titletable="客户查询"
47
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
48
+
49
+
50
+ <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>
51
+ </div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
55
+
56
+
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户地址</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
+ condition="f_address like '%{}%'" placeholder='客户地址'>
61
+ </div>
62
+
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
65
+ <v-select
66
+ v-model="model.f_pcd"
67
+ placeholder='选择区域'
68
+ :value.sync="model.f_pcd"
69
+ :options='$parent.$parent.pcdslist'
70
+ condition="f_pcd_id = '{}'"
71
+ style="width: 60%"
72
+ close-on-select >
73
+ </v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
76
+ <label class="font_normal_body">用气点</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
78
+ condition="f_userfiles_address like '%{}%'" placeholder='用气点'>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
83
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
84
+ </div>
85
+
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
89
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
90
+ </div>
91
+
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">客户类型</label>
94
+ <v-select :value.sync="model.f_user_type"
95
+ :options='$parent.$parent.usertypes'
96
+ @change="$parent.$parent.userTypeChange()"
97
+ placeholder='请选择' v-model="model.f_user_type"
98
+ condition="f_user_type = '{}'"
99
+ close-on-select></v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group" v-if="false">
102
+ <label for="f_usetype" class="font_normal_body">二次挂表</label>
103
+ <v-select :value.sync="model.issecondtype" v-model="model.issecondtype"
104
+ condition="f_usetype {}"
105
+ :options='$parent.$parent.issecond' placeholder='请选择'
106
+ close-on-select></v-select>
107
+ </div>
108
+ <div class="col-sm-2 form-group" >
109
+ <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
110
+ <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
111
+ condition="f_usetype = '{}'"
112
+ :options='$parent.$parent.usetype' placeholder='请选择'
113
+ close-on-select></v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group">
116
+ <label class="font_normal_body">用气性质</label>
117
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
118
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
119
+ condition="f_gasproperties = '{}'"
120
+ close-on-select></v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">气价类型</label>
124
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
125
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
126
+ condition="f_price_type = '{}'"
127
+ close-on-select v-ref:type>
128
+ </v-select>
129
+ </div>
130
+ <div class="col-sm-2 form-group">
131
+ <label class="font_normal_body">气价名称</label>
132
+ <v-select :value.sync="model.f_price_name"
133
+ v-model="model.f_price_name"
134
+ :options="$parent.$parent.getPricenames"
135
+ placeholder='请选择'
136
+ condition="f_price_name = '{}'"
137
+ close-on-select></v-select>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">气表分类</label>
141
+ <v-select :value.sync="model.f_meter_classify"
142
+ v-model="model.f_meter_classify"
143
+ :options='$parent.$parent.metertypes' placeholder='请选择'
144
+ condition="f_meter_classify = '{}'"
145
+ close-on-select></v-select>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">气表品牌</label>
149
+ <v-select :value.sync="model.f_meter_brand"
150
+ v-model="model.f_meter_brand"
151
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
152
+ condition="f_meter_brand = '{}'"
153
+ close-on-select></v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">气表型号</label>
157
+ <v-select :value.sync="model.f_meter_style"
158
+ v-model="model.f_meter_style"
159
+ :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
160
+ condition="f_meter_style = '{}'"
161
+ close-on-select></v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">气表状态</label>
165
+ <v-select :value.sync="model.f_table_state"
166
+ v-model="model.f_table_state"
167
+ multiple ="true"
168
+ :options='$parent.$parent.tablestate' placeholder='请选择'
169
+ condition="f_table_state in {} "
170
+ close-on-select></v-select>
171
+ </div>
172
+ <!-- <div class="col-sm-2 form-group">-->
173
+ <!-- <label class="font_normal_body">使用状态</label>-->
174
+ <!-- <v-select :value.sync="model.f_usestate"-->
175
+ <!-- v-model="model.f_usestate"-->
176
+ <!-- :options='$parent.$parent.usestate' placeholder='请选择'-->
177
+ <!-- condition="f_usestate = '{}'"-->
178
+ <!-- close-on-select></v-select>-->
179
+ <!-- </div>-->
180
+ <div class="col-sm-2 form-group">
181
+ <label for="startDate" class="font_normal_body">建表日期</label>
182
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
183
+ v-model="model.startDate"
184
+ :value.sync="model.startDate"
185
+ :format="'yyyy-MM-dd'"
186
+ :show-reset-button="true"
187
+ condition="f_input_date >= '{} 00:00:00'">
188
+ </datepicker>
189
+ </div>
190
+ <div class="col-sm-2 form-group">
191
+ <label for="endDate" class="font_normal_body">建表日期</label>
192
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
193
+ v-model="model.endDate"
194
+ :value.sync="model.endDate"
195
+ :format="'yyyy-MM-dd'"
196
+ :show-reset-button="true"
197
+ condition="f_input_date <= '{} 23:59:59'">
198
+ </datepicker>
199
+ </div>
200
+ <div class="col-sm-2 form-group">
201
+ <label for="startDate" class="font_normal_body">通气日期</label>
202
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
203
+ v-model="model.startTQDate"
204
+ :value.sync="model.startTQDate"
205
+ :format="'yyyy-MM-dd'"
206
+ :show-reset-button="true"
207
+ condition="f_gas_date >= '{} 00:00:00'">
208
+ </datepicker>
209
+ </div>
210
+ <div class="col-sm-2 form-group">
211
+ <label for="endDate" class="font_normal_body">通气日期</label>
212
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
213
+ v-model="model.endTQDate"
214
+ :value.sync="model.endTQDate"
215
+ :format="'yyyy-MM-dd'"
216
+ :show-reset-button="true"
217
+ condition="f_gas_date <= '{} 23:59:59'">
218
+ </datepicker>
219
+ </div>
220
+ <div class="col-sm-2 form-group">
221
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
222
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
223
+ :options='$parent.$parent.bgl' placeholder='请选择'
224
+ condition="isbgl = '{}'"
225
+ close-on-select></v-select>
226
+ </div>
227
+ <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
228
+ <label class="font_normal_body">用户等级</label>
229
+ <v-select :value.sync="model.f_user_grade"
230
+ v-model="model.f_user_grade"
231
+ :options='$parent.$parent.usergrade' placeholder='请选择'
232
+ condition="f_user_grade = '{}'"
233
+ close-on-select></v-select>
234
+ </div>
235
+ <!--表册片区-->
236
+ <div class="col-sm-2 form-group">
237
+ <label class="font_normal_body">表册片区</label>
238
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
239
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
240
+ style="width:60%"
241
+ close-on-select
242
+ condition="f_book_slice_area = '{}'"></v-select>
243
+ </div>
244
+ <div class="col-sm-2 form-group">
245
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
246
+ <v-select :value.sync="model.f_inputtor"
247
+ v-model="model.f_inputtor"
248
+ :options='$parent.$parent.inputtores' placeholder='请选择'
249
+ condition="f_inputtor = '{}'"
250
+ close-on-select :value-single="true" :search="false">
251
+ </v-select>
252
+ </div>
253
+ <div class="col-sm-2 form-group">
254
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
255
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
256
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
257
+ style="width:60%"
258
+ close-on-select
259
+ condition="f_meter_book_num = '{}'"></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_user_state"
264
+ v-model="model.f_user_state"
265
+ multiple = "true"
266
+ :options='$parent.$parent.userstates' placeholder='请选择'
267
+ condition="f_user_state in {}"
268
+ close-on-select></v-select>
269
+ </div>
270
+ <div class="col-sm-2 form-group">
271
+ <label for="startUseDate" class="font_normal_body">使用日期</label>
272
+ <datepicker id="startUseDate" placeholder="开始日期" style="width:60%"
273
+ v-model="model.startUseDate"
274
+ :value.sync="model.startUseDate"
275
+ :format="'yyyy-MM-dd'"
276
+ :show-reset-button="true"
277
+ condition="f_use_date >= '{} 00:00:00'">
278
+ </datepicker>
279
+ </div>
280
+ <div class="col-sm-2 form-group">
281
+ <label for="endUseDate" class="font_normal_body">使用日期</label>
282
+ <datepicker id="endUseDate" placeholder="结束日期" style="width:60%"
283
+ v-model="model.endUseDate"
284
+ :value.sync="model.endUseDate"
285
+ :format="'yyyy-MM-dd'"
286
+ :show-reset-button="true"
287
+ condition="f_use_date <= '{} 23:59:59'">
288
+ </datepicker>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ </criteria>
293
+
294
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
295
+ <template partial='head'>
296
+ <tr>
297
+ <th>
298
+ <nobr>客户编号</nobr>
299
+ </th>
300
+ <th>
301
+ <nobr>客户名称</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>档案编号</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>客户电话</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>身份证号</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>客户地址</nobr>
314
+ </th>
315
+ <th>
316
+ <nobr>表册片区</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>表上余额</nobr>
320
+ </th>
321
+ <th>
322
+ <nobr>客户类型</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>使用类型</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>使用日期</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>用气性质</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>表号</nobr>
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
+ </th>
360
+ <th>
361
+ <nobr>建表时间</nobr>
362
+ </th>
363
+ <th>
364
+ <nobr>气表状态</nobr>
365
+ </th>
366
+ <th>
367
+ <nobr>是否壁挂炉</nobr>
368
+ </th>
369
+ </tr>
370
+ </template>
371
+ <template partial='body'>
372
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;"><nobr>
373
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
374
+ </nobr> </td>
375
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
+ <nobr>{{row.f_user_name}}</nobr>
377
+ </td>
378
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
380
+ </td>
381
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
+ <nobr>{{row.f_user_phone}}</nobr>
383
+ </td>
384
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
+ <nobr>{{row.idnumber}}</nobr>
386
+ </td>
387
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
+ <nobr>{{row.f_address}}</nobr>
389
+ </td>
390
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
+ <nobr>{{row.f_book_slice_area}}</nobr>
392
+ </td>
393
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
+ <nobr>{{row.f_balance_amount}}</nobr>
395
+ </td>
396
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
+ <nobr>{{row.f_user_type}}</nobr>
398
+ </td>
399
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
400
+ <nobr>{{row.f_usetype}}</nobr>
401
+ </td>
402
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
403
+ <nobr>{{row.f_use_date}}</nobr>
404
+ </td>
405
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
406
+ <nobr>{{row.f_gasproperties}}</nobr>
407
+ </td>
408
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
409
+ <nobr>{{row.f_meternumber}}</nobr>
410
+ </td>
411
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
412
+ <nobr>{{row.f_card_id}}</nobr>
413
+ </td>
414
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
415
+ <nobr>{{row.f_price_name}}</nobr>
416
+ </td>
417
+ <th :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" title="{{row.value}}">
418
+ <nobr>{{row.value.substring(0,10)}}</nobr>
419
+ </th>
420
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
421
+ <nobr>{{row.f_meter_brand}}</nobr>
422
+ </td>
423
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
424
+ <nobr>{{row.f_meter_style}}</nobr>
425
+ </td>
426
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
427
+ <nobr>{{row.f_inputtor}}</nobr>
428
+ </td>
429
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
430
+ <nobr>{{row.f_gas_person}}</nobr>
431
+ </td>
432
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
433
+ <nobr>{{row.f_gas_date}}</nobr>
434
+ </td>
435
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
436
+ <nobr>{{row.f_input_date}}</nobr>
437
+ </td>
438
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
439
+ <nobr>{{row.f_table_state}}</nobr>
440
+ </td>
441
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
442
+ <nobr>{{row.isbgl}}</nobr>
443
+ </td>
444
+ </template>
445
+ <template partial='foot'>
446
+ </template>
447
+ </data-grid>
448
+ </criteria-paged>
449
+
450
+ <table class="table-hover">
451
+ <tr style="position: relative" class="table-bordered">
452
+ <td
453
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
454
+ 汇总信息
455
+ </td>
456
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
457
+ 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
458
+ </td>
459
+ </tr>
460
+ </table>
461
+
462
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
463
+ <!--<header slot="modal-header" class="modal-header text-center">-->
464
+ <!--<h4 class="modal-title">打印列选择</h4>-->
465
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
466
+ <!--<label for="f_generations" class="font-size">全选</label>-->
467
+ <!--</header>-->
468
+ <!--<article slot="modal-body">-->
469
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
470
+ <!--<div class="col-sm-3" v-for="f in fields">-->
471
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
472
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
473
+ <!--</div>-->
474
+ <!--</div>-->
475
+ <!--</article>-->
476
+ <!--<footer slot="modal-footer" class="modal-footer">-->
477
+ <!--<center>-->
478
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
479
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
480
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
481
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
482
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
483
+ <!--:fields="modelval" :printpage="true">-->
484
+ <!--</print-table>-->
485
+ <!--</center>-->
486
+ <!--</footer>-->
487
+ <!--</modal>-->
488
+ </div>
489
+ <div class="flex" v-if="show">
490
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
491
+ </div>
492
+ </div>
493
+ </div>
494
+ </div>
495
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
496
+ </template>
497
+
498
+ <script>
499
+ import {HttpResetClass, PagedList} from 'vue-client'
500
+ import exportConfig from './config/exportConfig'
501
+ let cardBtnGen = async function (self, val) {
502
+ self.cardInfo = val.data
503
+
504
+ // 判断读卡是否需要卡密码
505
+ console.log('读卡上的信息', self.cardInfo)
506
+
507
+ if (self.cardInfo.NewParam) {
508
+ if (self.cardInfo.NewParam.error) {
509
+ if (self.cardInfo.NewParam.error === '0001') {
510
+ // 需要重新读卡并传卡密码
511
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
512
+ self.readCardParam = self.model.rows[0].f_card_password
513
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
514
+ } else {
515
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
516
+ return
517
+ }
518
+ }
519
+ }
520
+ }
521
+ self.card=self.cardInfo.CardID
522
+ self.search()
523
+ }
524
+
525
+ let readySomething = async function (self) {
526
+ self.$MagGetSaleParam.initinputtor();
527
+ self.getinputtores();
528
+ self.initmeterbook();
529
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
530
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
531
+ // await self.$refs.paged.$refs.cri.search()
532
+ await self.$MagLoadParams.loadParam()
533
+ self.initParams()
534
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
535
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
536
+ }
537
+
538
+ export default {
539
+ title: '表具查询',
540
+ data() {
541
+ return {
542
+ pcdslist:[],
543
+ IdCardInfo:'',
544
+ card:'',
545
+ isSingleUser: null,
546
+ other:[],
547
+ footer:[],
548
+ model: new PagedList('api/af-revenue/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
549
+ criteriaShow: false,
550
+ orgCondtionStr: '',
551
+
552
+ modelval: [],
553
+ printshow: false,
554
+ all: false,
555
+ fields: {},
556
+ thead: '',
557
+ tfoot: '',
558
+ initres: {
559
+ org:[this.$login.f.orgid],
560
+ dep:[],
561
+ user:[],
562
+ },
563
+ show:false,
564
+ rowdata:{},
565
+ meterbrands: [],
566
+ // 气表型号
567
+ meterstyle: {},
568
+ //默认打印列
569
+ defaultfield: [],
570
+ config: {
571
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
572
+ },
573
+ pricenames: [],
574
+ gasproperties:[],
575
+ inputtouPerson: [],
576
+ meterbooks:[{label: '全部',value: ''}], //抄表册
577
+ inputtores:[{label: '全部',value: ''}],
578
+ prices: [],
579
+ //合计数据
580
+ sumsmodel: {},
581
+ //表册片区
582
+ bookSlice:[{label: '全部',value: ''}],
583
+ inputtores:[{label: '全部',value: ''}], //抄表员
584
+ f_filialeid: this.$login.f.f_orgid,
585
+ allorgid:[],
586
+ tempfalg :false,
587
+ lastorgstr:'',
588
+ issecond: [{label:'是',value:" = '二次挂表'"},{label:'否',value:" <> '二次挂表'"}],
589
+ usetype:this.$appdata.getParam('使用类型'),
590
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
591
+ }
592
+ },
593
+ ready() {
594
+ this.getpcd()
595
+ console.log("===========",this.$filialeInfo)
596
+ readySomething(this).then(() => {
597
+ this.$emit('ready')
598
+ }).catch((error) => {
599
+ this.$emit('error', error)
600
+ })
601
+ },
602
+ methods: {
603
+ ReadIDCard(){
604
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
605
+ console.log('======',msg)
606
+ if(msg.err !== 0){ return}
607
+ this.IdCardInfo=msg.strID
608
+ })
609
+ console.log(this.IdCardInfo)
610
+ if(this.IdCardInfo) {
611
+ this.search()
612
+ }else{
613
+ alert("读取失败,找不到用户信息")
614
+ }
615
+ },
616
+ cardBtn (val) {
617
+ // this.clear()
618
+ cardBtnGen(this, val)
619
+ },
620
+ async initmeterbook(orgstr){
621
+ if(orgstr == null ){
622
+ orgstr = this.f_filialeid;
623
+ }
624
+ //获取新的抄表册,先去清理所有的抄表册
625
+ this.$GetSaleParam.meterbooks = [];
626
+ //开始加载新的抄表册
627
+ await this.$LoadParams.loadMeterBook(orgstr)
628
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
629
+ },
630
+ async getinputtores () {
631
+ // 获取抄表员
632
+ let rs = []
633
+ if (this.$login.f.f_gasman.length > 0) {
634
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
635
+ let temp = {
636
+ label: this.$login.f.f_gasman[i].name,
637
+ value: this.$login.f.f_gasman[i].name
638
+ }
639
+ rs.push(temp)
640
+ }
641
+ }
642
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
643
+ },
644
+ getotherfooter () {
645
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
646
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
647
+ this.other = [];
648
+ this.footer = [];
649
+ let exportdata = this.getCondition;
650
+ let otherInData = [];
651
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
652
+ let footerData = [], exportfield = this.getExportField;
653
+ footerData.push("合计");
654
+ let self = this;
655
+ for (var field in self.sumsmodel) {
656
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
657
+ }
658
+ this.footer.push(footerData);
659
+ this.other.push(otherInData);
660
+ },
661
+ search(){
662
+ this.$refs.paged.$refs.cri.search()
663
+ },
664
+ cancel() {
665
+ this.show = false
666
+ },
667
+ showmsg(obj){
668
+ this.rowdata=obj
669
+ this.show=true
670
+ },
671
+ selfSearch(args) {
672
+ //抄表员查询条件
673
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
674
+ if(this.inputtouPerson.length !== 0){
675
+ let str = JSON.stringify(this.inputtouPerson)
676
+ str = str.replace(/"/g,`'`)
677
+ str = str.replace(/\[/g,``)
678
+ str = str.replace(/\]/g,``)
679
+ console.log("=====抄表员model22222222222绑定====",str)
680
+ //查询多个抄表员时条件
681
+ args.condition += ` and f_inputtor in ( ${str} )`
682
+ }
683
+ if (!this.orgCondtionStr) {
684
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
685
+ } else {
686
+ args.condition = `${args.condition}` + this.orgCondtionStr
687
+ }
688
+ if(this.card!=''){
689
+ args.condition +=` and f_card_id='${this.card}'`
690
+ }
691
+ if(this.IdCardInfo!=''){
692
+ args.condition+=` and f_idnumber='${this.IdCardInfo}'`
693
+ }
694
+ this.model.search(args.condition, args.model)
695
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
696
+ this.card=''
697
+ this.IdCardInfo=''
698
+ },
699
+ clear() {
700
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
701
+ this.$refs.paged.$refs.cri.model[key] = []
702
+ })
703
+ },
704
+ hidden() {
705
+ this.criteriaShow = !this.criteriaShow
706
+ },
707
+ async getRes(condition) {
708
+ this.orgCondtionStr = condition
709
+
710
+ },
711
+ stamp() {
712
+ this.all = false
713
+ //默认选择要打印的列
714
+ this.modelval = defaultPrint.config
715
+ this.fields = this.getfield
716
+ console.log('所有打印字段', this.fields)
717
+ this.printshow = true
718
+ this.put()
719
+ },
720
+ put() {
721
+ // 对Modelval进行排序
722
+ this.sortModelval()
723
+ this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
724
+ for (let key of this.modelval) {
725
+ this.thead += '<th>' + this.fields[key] + '</th>'
726
+ }
727
+ this.thead += '</tr>'
728
+ },
729
+ print() {
730
+ this.$refs.print.PrintAsFile()
731
+ this.printshow = false
732
+ },
733
+ close() {
734
+ this.printshow = false
735
+ this.all = false
736
+ },
737
+ userTypeChange () {
738
+ this.gasproperties=[]
739
+ if(this.$refs.paged.$refs.cri.model !==null) {
740
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
741
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
742
+ }
743
+ else{
744
+ this.gasproperties =[{label: '全部', value: ''}]
745
+ }
746
+ },
747
+ initParams() {
748
+ // 初始化气表品牌
749
+ let brandArr = []
750
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
751
+ let temp = {}
752
+ temp.label = item.label
753
+ temp.value = item.value.f_meter_brand
754
+ brandArr.push(temp)
755
+ // 取出对应气表型号
756
+ let styleArr = []
757
+ for (let row of item.value.gasmodel) {
758
+ styleArr.push({label: row.label,value: row.value.f_meter_style})
759
+ }
760
+ this.meterstyle[temp.value] = styleArr
761
+ })
762
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
763
+ //初始化气表价格
764
+ this.prices = this.$MagGetSaleParam.getPrices();
765
+ },
766
+ // 对选择的列进行排序
767
+ sortModelval() {
768
+ let sortModel = []
769
+ Object.keys(this.fields).forEach((key) => {
770
+ if (this.modelval.includes(key)) {
771
+ sortModel.push(key)
772
+ }
773
+ })
774
+ this.modelval = sortModel
775
+ console.log('选择的打印的字段', this.modelval)
776
+ },
777
+ async updateParams() {
778
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
779
+ this.inputtores = [];
780
+ this.inputtores.push({label: "全部", value: ""})
781
+ this.initSlice(this.f_filialeid)
782
+ if(this.allorgid!=null){
783
+ this.allorgid.forEach((res)=>{
784
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
785
+ })
786
+ }
787
+ },
788
+ async initSlice (val) {
789
+ if (val) {
790
+ let getAllArea = await this.$resetpost('/rs/search', {
791
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
792
+ userid: this.$login.f.id
793
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
794
+ let arr = getAllArea.data.filter((res) => {
795
+ return res.parentid == val
796
+ })
797
+ this.bookSlice = []
798
+ console.log('过滤之后的片区-------------------', arr)
799
+ arr.forEach((res) => {
800
+ this.bookSlice.push({label: res.name, value: res.name})
801
+ })
802
+ }
803
+ },
804
+ async getpcd(){
805
+ let HttpReset = new HttpResetClass()
806
+ console.log('开始获取区域')
807
+ var req = await HttpReset.load('POST','api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
808
+ data: {
809
+ items: '*',
810
+ tablename: 't_pcd',
811
+ orderitem: 'id',
812
+ condition: `1=1`
813
+ }
814
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
815
+ let redata = []
816
+ console.log('区域是:',req)
817
+ req.data.forEach((row, n) => {
818
+ redata[n] = {
819
+ label: row.f_pcd,
820
+ value: row.id,
821
+ data: row,
822
+ id: row.id
823
+ }
824
+ })
825
+ console.log('获取到的区域',redata)
826
+ this.pcdslist = redata
827
+ }
828
+ },
829
+ watch: {
830
+ 'model.rows.length' () {
831
+ this.isSingleUser = this.model.rows
832
+ },
833
+ 'all'(val) {
834
+ if (val) {
835
+ this.modelval = this.bodyData
836
+ } else {
837
+ this.modelval = defaultPrint.config
838
+ this.put()
839
+ }
840
+ },
841
+ sumsmodel:{
842
+ handler: function(val) {
843
+ this.getotherfooter();
844
+ },
845
+ deep: true
846
+ },
847
+ 'modelval.length'() {
848
+ this.put()
849
+ },
850
+ async 'orgCondtionStr'(val) {
851
+ //更新抄表册
852
+ this.meterbooks = [{label: '全部',value: ''}];
853
+ if(this.lastorgstr != val){
854
+ this.tempfalg = true;
855
+ this.lastorgstr = val;
856
+ }
857
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
858
+ this.tempfalg = false;
859
+ let a = val.substring(val.indexOf("(")+2)
860
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
861
+ }
862
+ let res = val.match(/'(.*?)'/)
863
+ console.log('正则提取:',res && res[1])
864
+ if (res) {
865
+ this.f_filialeid = res[1]
866
+ if(res.input !=null){
867
+ let resorgid = res.input.substring(res.input.indexOf("'"));
868
+ if(resorgid!= null && resorgid!=''){
869
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
870
+ // resorgid = resorgid.replaceAll("'","");
871
+ resorgid = resorgid.replace(/'/g,"");
872
+ this.allorgid = resorgid.split(",")
873
+ }
874
+ }
875
+ this.updateParams()
876
+ }
877
+ },
878
+ },
879
+ computed: {
880
+ authArr () {
881
+ return this.$login.r ? this.$login.r : []
882
+ },
883
+ getPricenames() {
884
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
885
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
886
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
887
+ // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
888
+ if(this.$refs.paged.$refs.cri.model !==null) {
889
+ let rs = []
890
+ let priceArr = []
891
+ if ( pricetype.length >0) {
892
+ let params = {
893
+ f_price_type: pricetype[0],
894
+ filter: this.f_filialeid,
895
+ prices: this.prices
896
+ }
897
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
898
+ let temp = {}
899
+ temp.label = item.label
900
+ temp.value = item.value.f_price_name
901
+ priceArr.push(temp)
902
+ })
903
+ rs = [{label: '全部', value: ''}, ...priceArr]
904
+ }
905
+ if (rs.length === 0) {
906
+ console.log('rs读出来是空')
907
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
908
+ }
909
+ return rs
910
+ }
911
+ },
912
+ getCondition() {
913
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
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.meterConfig
934
+ },
935
+ areas() {
936
+ let rs = []
937
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
938
+ let temp = {
939
+ label: this.$login.f.f_allArea[i].label,
940
+ value: this.$login.f.f_allArea[i].label
941
+ }
942
+ rs.push(temp)
943
+ }
944
+ return [{label: '全部', value: ''}, ...rs]
945
+ },
946
+ sliceArea() {
947
+ let rs = []
948
+ if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
949
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
950
+ if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
951
+ rs = this.$login.f.f_allArea[i].value
952
+ }
953
+ }
954
+ }
955
+ return [{label: '全部', value: ''}, ...rs]
956
+ },
957
+ usertypes() {
958
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
959
+ },
960
+ // gasproperties() {
961
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
962
+ // },
963
+
964
+ metertypes() {
965
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
966
+ },
967
+ // meterbrands() {
968
+ // let arr = []
969
+ // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
970
+ // let temp = {}
971
+ // temp.label = item.label
972
+ // temp.value = item.value.f_meter_brand
973
+ // arr.push(temp)
974
+ // })
975
+ // return [{label: '全部', value: ''}, ...arr]
976
+ // },
977
+ pricetypes() {
978
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
979
+ },
980
+ tablestate() {
981
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
982
+ },
983
+ bgl(){
984
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
985
+ },
986
+ usergrade(){
987
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
988
+ },
989
+ usestate(){
990
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用状态')]
991
+ }
992
+ }
993
+ }
994
+ </script>
995
+ <style>
996
+ .back-red{ /* 红色背景 */
997
+ background-color: #F6C6CE;
998
+ }
999
+ .back-blue{ /* 蓝色背景 */
1000
+
1001
+ }
1002
+ </style>