manage-client 3.3.234 → 3.3.236

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 (206) hide show
  1. package/build/dev-server.js +190 -190
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/gradlew +234 -234
  4. package/gradlew.bat +89 -89
  5. package/hs_err_pid13052.log +206 -206
  6. package/package.json +111 -111
  7. package/src/components/SellReport/BusinessClassify.vue +382 -292
  8. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  9. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  10. package/src/components/SellReport/ManageGasGroupSummary.vue +208 -208
  11. package/src/components/SellReport/ManageSellType.vue +267 -267
  12. package/src/components/SellReport/ReportItems.vue +312 -312
  13. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  14. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  15. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  16. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  17. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  18. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  19. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  20. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  21. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  22. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  23. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  24. package/src/components/sale/businessquery/CollectManage.vue +161 -161
  25. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  26. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  27. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
  29. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  30. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  31. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  32. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  33. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  34. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  35. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  36. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  37. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  38. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  39. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  40. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  41. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  42. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  43. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  44. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  45. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  46. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  47. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  48. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  49. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  50. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  51. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  52. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  53. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  54. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  55. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
  56. package/src/components/sale/businessquery/usergas.vue +315 -315
  57. package/src/components/sale/config/exportConfig.js +2763 -2763
  58. package/src/components/sale/config/tableConfig.js +59 -59
  59. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  60. package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
  61. package/src/components/sale/filesquery/UserQuery.vue +1002 -1002
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
  64. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
  65. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  66. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  67. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  68. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  69. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  70. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
  71. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +1 -1
  72. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  73. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  74. package/src/components/webmeter/report/ReportList.vue +453 -453
  75. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  76. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  77. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  78. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  79. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  80. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  81. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  82. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  83. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  84. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  85. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  86. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  87. package/src/filiale/bayan/config/tableConfig.js +59 -59
  88. package/src/filiale/bayan/sale.js +8 -8
  89. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  90. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  91. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  92. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  93. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  94. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  95. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  96. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  97. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  98. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  99. package/src/filiale/bayan/webmeterManage.js +26 -26
  100. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  101. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  102. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  103. package/src/filiale/dingcheng/sale.js +9 -9
  104. package/src/filiale/fugou/RecordInfoQuery.vue +1451 -0
  105. package/src/filiale/fugou/config/DefaultPrint.js +6 -0
  106. package/src/filiale/fugou/config/exportConfig.js +2761 -0
  107. package/src/filiale/fugou/config/tableConfig.js +59 -0
  108. package/src/filiale/fugou/sale.js +6 -0
  109. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  110. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  111. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  112. package/src/filiale/hantou/config/tableConfig.js +54 -54
  113. package/src/filiale/hantou/sale.js +8 -8
  114. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  115. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  116. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  117. package/src/filiale/jingyang/RechargeList.vue +346 -346
  118. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  119. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  120. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  121. package/src/filiale/jingyang/sale.js +8 -8
  122. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  123. package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
  124. package/src/filiale/kelai/GasStatistics.vue +561 -561
  125. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  126. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  127. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  128. package/src/filiale/kelai/reportManage.js +13 -13
  129. package/src/filiale/kelai/sale.js +17 -17
  130. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  131. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  132. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  133. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  134. package/src/filiale/macheng/config/exportConfig.js +79 -79
  135. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  136. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  137. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  138. package/src/filiale/meihekou/CollectManage.vue +152 -152
  139. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  140. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  141. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  142. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  143. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  144. package/src/filiale/meihekou/sale.js +39 -39
  145. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  146. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  147. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  148. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  149. package/src/filiale/qianneng/exportConfig.js +232 -232
  150. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  151. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  152. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  153. package/src/filiale/rizhao/sale.js +13 -13
  154. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  155. package/src/filiale/shangluo/sale.js +17 -17
  156. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  157. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  158. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  159. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  160. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  161. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  162. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  163. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  164. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  165. package/src/filiale/taizhoukesi/sale.js +11 -11
  166. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  167. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  168. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  169. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  170. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  171. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  172. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  173. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  174. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  175. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  176. package/src/filiale/xinjiangdexin/sale.js +7 -7
  177. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  178. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  179. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  180. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  181. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  182. package/src/filiale/yangchun/UserQuery.vue +980 -980
  183. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  184. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  185. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  186. package/src/filiale/yangchun/reportManage.js +6 -6
  187. package/src/filiale/yangchun/sale.js +20 -20
  188. package/src/filiale/yangchun/webmeterManage.js +5 -5
  189. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  190. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  191. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  192. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  193. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  194. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  195. package/src/filiale/yuncheng/sale.js +23 -23
  196. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  197. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  198. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  199. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  200. package/src/filiale/zhongyi/sale.js +33 -33
  201. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  202. package/src/main.js +68 -68
  203. package/src/plugins/LodopFuncs.js +159 -159
  204. package/src/reportManage.js +777 -777
  205. package/src/saleManage.js +689 -689
  206. package/src/webmeterManage.js +130 -130
@@ -1,853 +1,853 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-inline auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">录入日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label for="startHandDate" class="font_normal_body">下发日期</label>
31
- <datepicker id="startHandDate" placeholder="开始日期" style="width:60%"
32
- v-model="model.startHandDate"
33
- :value.sync="model.startHandDate"
34
- :format="'yyyy-MM-dd HH:mm:ss'"
35
- :show-reset-button="true"
36
- >
37
- </datepicker>
38
- </div>
39
- <div class="col-sm-2 form-group">
40
- <label for="endHandDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
41
- <datepicker id="endHandDate" placeholder="结束日期" style="width:60%"
42
- v-model="model.endHandDate"
43
- :value.sync="model.endHandDate"
44
- :format="'yyyy-MM-dd HH:mm:ss'"
45
- :show-reset-button="true"
46
- >
47
- </datepicker>
48
- </div>
49
- <div class="span" style="float:right;">
50
- <button class="button_search button_spacing" @click="search()">查询</button>
51
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
52
- <export-excel :data="$parent.$parent.getCondition"
53
- :field="$parent.$parent.getfield"
54
- :footer="$parent.$parent.footer"
55
- :header="$parent.$parent.other"
56
- sqlurl="rs/easyExcel/exportExcel"
57
- sql-name="FMYgasQuery"
58
- template-name='用气查询导出'
59
- :choose-col="true"></export-excel>
60
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
61
- :defaultfield="$parent.$parent.defaultfield" print-name="用气查询打印"
62
- ></print-data>
63
-
64
- <div style="float: right" class="button_spacing"
65
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
66
- @click="$parent.$parent.hidden()"></div>
67
- </div>
68
- </div>
69
- <div class="row" v-show="$parent.$parent.criteriaShow">
70
-
71
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">表&emsp;&emsp;号</label>
74
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
75
- condition="f_meternumber = '{}'" placeholder='表号'>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
-
79
- <label class="font_normal_body">客户编号</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
81
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">客户名称</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
86
- condition="f_user_name = '{}'" placeholder="客户名称">
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
90
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
91
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
92
- </div>
93
- <div class="col-sm-2 form-group">
94
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
95
- <v-select :value.sync="model.f_residential_area"
96
- class="select_list select"
97
- v-model="model.f_residential_area"
98
- style="width: 60%"
99
- multiple
100
- condition="f_residential_area in {}"
101
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
102
- close-on-select>
103
-
104
- </v-select>
105
- </div>
106
- <div class="col-sm-2 form-group">
107
- <label class="font_normal_body">客户地址</label>
108
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
109
- condition="f_address like '%{}%'" placeholder='客户地址'>
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_meternumber"
114
- condition="f_meternumber like '%{}%'" placeholder='客户表号'>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
118
- <v-select :value.sync="model.f_meter_classify"
119
- v-model="model.f_meter_classify"
120
- :options='$parent.$parent.metertype' placeholder='请选择'
121
- condition="f_meter_classify like '%{}%'"
122
- close-on-select></v-select>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
126
- <v-select :value.sync="model.f_user_type"
127
- @change="$parent.$parent.userTypeChange()"
128
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
129
- condition="f_user_type = '{}'"
130
- close-on-select></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group" >
133
- <label class="font_normal_body">客户状态</label>
134
- <v-select :value.sync="model.f_user_state"
135
- v-model="model.f_user_state"
136
- :options='$parent.$parent.userstates' placeholder='请选择'
137
- condition="f_user_state = '{}'"
138
- close-on-select></v-select>
139
- </div>
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">用气性质</label>
142
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
143
- :options='$parent.$parent.gasproperties' placeholder='请选择'
144
- condition="f_gasproperties = '{}'"
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.pricetype" v-model="model.pricetype"
150
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
151
- close-on-select v-ref:type>
152
- </v-select>
153
- </div>
154
- <div class="col-sm-2 form-group">
155
- <label class="font_normal_body">气价名称</label>
156
- <v-select :value.sync="model.f_price_name"
157
- v-model="model.f_price_name"
158
- :options="$parent.$parent.getPricenames"
159
- condition="f_price_name = '{}'"
160
- close-on-select></v-select>
161
- </div>
162
- <!--表册片区-->
163
- <div class="col-sm-2 form-group">
164
- <label class="font_normal_body">表册片区</label>
165
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
166
- @change="$parent.$parent.inputtorchange"
167
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
168
- style="width:60%"
169
- close-on-select
170
- condition="f_book_slice_area = '{}'"></v-select>
171
- </div>
172
- <div class="col-sm-2 form-group">
173
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
174
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
175
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
176
- style="width:60%" :multiple="true"
177
- condition="f_meter_book_num in {}"></v-select>
178
- </div>
179
- <div class="col-sm-2 form-group">
180
- <label class="font_normal_body">气表品牌</label>
181
- <v-select :value.sync="model.f_meter_brand" multiple
182
- v-model="model.f_meter_brand"
183
- :options='$parent.$parent.meterbrands' placeholder='请选择'
184
- condition="f_meter_brand in {}"
185
- close-on-select></v-select>
186
- </div>
187
- <div class="col-sm-2 form-group">
188
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;街道&nbsp;&nbsp;&nbsp;</label>
189
- <v-select :value.sync="model.f_street"
190
- class="select_list select"
191
- v-model="model.f_street"
192
- style="width: 60%"
193
- @change="$parent.$parent.streetChange"
194
- condition="f_street in {}"
195
- :options='$parent.$parent.streetslist' placeholder='选择街道'
196
- close-on-select>
197
- </v-select>
198
- </div>
199
- </div>
200
- </div>
201
- </criteria>
202
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
203
- <template partial='head'>
204
- <tr>
205
- <th>
206
- <nobr>客户编号</nobr>
207
- </th>
208
- <th>
209
- <nobr>客户名称</nobr>
210
- </th>
211
- <th>
212
- <nobr>档案编号</nobr>
213
- </th>
214
- <th>
215
- <nobr>客户电话</nobr>
216
- </th>
217
- <th>
218
- <nobr>证件类型</nobr>
219
- </th>
220
- <th>
221
- <nobr>证件号码</nobr>
222
- </th>
223
- <th>
224
- <nobr>街道</nobr>
225
- </th>
226
- <th>
227
- <nobr>小区</nobr>
228
- </th>
229
- <th>
230
- <nobr>客户地址</nobr>
231
- </th>
232
- <th>
233
- <nobr>客户类型</nobr>
234
- </th>
235
- <th>
236
- <nobr>用气性质</nobr>
237
- </th>
238
- <th>
239
- <nobr>表号</nobr>
240
- </th>
241
- <th>
242
- <nobr>气表品牌</nobr>
243
- </th>
244
- <th>
245
- <nobr>气表类型</nobr>
246
- </th>
247
- <th>
248
- <nobr>气价名称</nobr>
249
- </th>
250
- <th>
251
- <nobr>气价详情</nobr>
252
- </th>
253
- <!--<th><nobr>气表底数</nobr></th>-->
254
- <!--<th><nobr>表上余额</nobr></th>-->
255
- <!--<th><nobr>账户余额</nobr></th>-->
256
- <th>
257
- <nobr>预购气量</nobr>
258
- </th>
259
- <th>
260
- <nobr>预购金额</nobr>
261
- </th>
262
- <th>
263
- <nobr>实交金额</nobr>
264
- </th>
265
- <th>
266
- <nobr>抄表员</nobr>
267
- </th>
268
- <th>
269
- <nobr>表册片区</nobr>
270
- </th>
271
- <th>
272
- <nobr>抄表次数</nobr>
273
- </th>
274
- <th>
275
- <nobr>抄表区间</nobr>
276
- </th>
277
- <th title="抄表区间间隔天数">
278
- <nobr>天数</nobr>
279
- </th>
280
- <th>
281
- <nobr>用气量</nobr>
282
- </th>
283
- <th>
284
- <nobr>用气金额</nobr>
285
- </th>
286
- <th>
287
- <nobr>建档日期</nobr>
288
- </th>
289
- </tr>
290
- </template>
291
- <template partial='body'>
292
- <td style="text-align: center;">
293
- <nobr>{{row.f_userinfo_code}}</nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr>{{row.f_user_name}}</nobr>
297
- </td>
298
- <td style="text-align: center;">
299
- <nobr>{{row.f_olduserinfo_code}}</nobr>
300
- </td>
301
- <td style="text-align: center;">
302
- <nobr>{{row.f_user_phone}}</nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_credentials}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.f_idnumber}}</nobr>
309
- </td>
310
- <td style="text-align: center;">
311
- <nobr>{{row.f_street}}</nobr>
312
- </td>
313
- <td style="text-align: center;">
314
- <nobr>{{row.f_residential_area}}</nobr>
315
- </td>
316
- <td style="text-align: center;">
317
- <nobr>{{row.f_address}}</nobr>
318
- </td>
319
- <td style="text-align: center;">
320
- <nobr>{{row.f_user_type}}</nobr>
321
- </td>
322
- <td style="text-align: center;">
323
- <nobr>{{row.f_gasproperties}}</nobr>
324
- </td>
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_meternumber}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_meter_brand}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_meter_classify}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_price_name}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_price_value}}</nobr>
339
- </td>
340
- <!--<td style="text-align: center;">-->
341
- <!--<nobr>{{row.f_meter_base}}</nobr>-->
342
- <!--</td>-->
343
- <!--<td style="text-align: center;">-->
344
- <!--<nobr>{{row.f_balance_amount}}</nobr>-->
345
- <!--</td>-->
346
- <!--<td style="text-align: center;">-->
347
- <!--<nobr>{{row.f_balance}}</nobr>-->
348
- <!--</td>-->
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_pregas}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_preamount}}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{row.f_collection}}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{row.f_inputtor}}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{row.f_book_slice_area}}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{row.f_hand_number}}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{row.f_date}}</nobr>
369
- </td>
370
- <td style="text-align: center;" title="抄表区间间隔天数">
371
- <nobr>{{row.f_input_day}}</nobr>
372
- </td>
373
- <td style="text-align: center;">
374
- <nobr>{{row.f_oughtamount}}</nobr>
375
- </td>
376
- <td style="text-align: center;">
377
- <nobr>{{row.f_oughtfee}}</nobr>
378
- </td>
379
- <td style="text-align: center;">
380
- <nobr>{{row.f_createfile_date}}</nobr>
381
- </td>
382
- </template>
383
- <template partial='foot'></template>
384
- </data-grid>
385
- </criteria-paged>
386
- <table class="table-hover">
387
- <tr style="position: relative" class="table-bordered">
388
- <td
389
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
390
- 汇总信息
391
- </td>
392
- <td
393
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
394
- 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
395
- </td>
396
- <td
397
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
398
- 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
399
- </td>
400
- <td
401
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
402
- 实交金额合计:&emsp;{{sumsmodel.f_collection}}
403
- </td>
404
- <td
405
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
406
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
407
- </td>
408
- <td
409
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
410
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
411
- </td>
412
- </tr>
413
- </table>
414
- </div>
415
- <div v-if="show">
416
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
417
- </div>
418
- </div>
419
- </div>
420
- </template>
421
- <script>
422
- import {HttpResetClass, PagedList} from 'vue-client'
423
- import defaultPrint from './../../../../src/components/sale/config/DefaultPrint'
424
- import exportConfig from './../exportConfig'
425
-
426
-
427
- let readySomething = async function (self) {
428
- //加载抄表册
429
- self.initmeterbook();
430
- self.initSlice(self.$login.f.orgid)
431
-
432
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
433
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
434
- await self.$MagLoadParams.loadParam()
435
- self.initParams()
436
- self.getaddress()
437
- self.getstreetslist()
438
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
439
- }
440
- export default {
441
- title: '用气查询',
442
- name: 'AddMaterial',
443
- data () {
444
- return {
445
- other: [],
446
- footer: [],
447
- model: new PagedList('api/af-revenue/sql/FMYgasQuery', 30, {
448
- startDate: 'this.model.startDate != null && this.model.startDate != "" ? this.model.startDate : this.model.startHandDate',
449
- endDate: 'this.model.endDate != null && this.model.endDate != "" ? this.model.endDate : this.model.endHandDate',
450
- f_queryweb: 'this.model.f_queryweb'
451
- }, {
452
- f_pregas: 0,
453
- f_preamount: 0,
454
- f_collection: 0,
455
- f_oughtamount: 0,
456
- f_oughtfee: 0
457
- }),
458
- initres: {
459
- org: [this.$login.f.orgid],
460
- dep: [],
461
- user: [],
462
- },
463
- gasproperties: [],
464
- //初始化街道数据
465
- streetslist:[],
466
- residentialArea: [],
467
- f_filialeid: this.$login.f.orgid,
468
- show: false,
469
- rowdata: {},
470
- criteriaShow: false,
471
- orgCondtionStr: '',
472
- modelval: [],
473
- meterbrands: [],
474
- printshow: false,
475
- all: false,
476
- fields: {},
477
- thead: '',
478
- tfoot: '',
479
- //表册片区
480
- bookSlice:[{label: '全部',value: ''}],
481
- // 下拉框
482
-
483
- //合计数据
484
- sumsmodel: {},
485
- defaultfield: [],
486
- // 使用类型,壁挂炉
487
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
488
- userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
489
- meterbooks: [{label: '全部',value: ''}], //抄表册
490
- tempfalg :false,
491
- isQueryWeb: this.$appdata.getSingleValue('用气查询是否查物联网表') ? this.$appdata.getSingleValue('用气查询是否查物联网表') : '否' ,
492
- lastorgstr:'',
493
- allorgid:[],
494
- }
495
- },
496
- ready () {
497
- readySomething(this)
498
- },
499
- methods: {
500
- initParams(){
501
- //初始化气表品牌
502
- let brandArr = []
503
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
504
- let temp = {}
505
- temp.label = item.label
506
- temp.value = item.value.f_meter_brand
507
- brandArr.push(temp)
508
- })
509
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
510
- },
511
- //初始化片区
512
- async initSlice (val) {
513
- if (val) {
514
- let getAllArea = await this.$resetpost('/rs/search', {
515
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
516
- userid: this.$login.f.id
517
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
518
- let arr = getAllArea.data.filter((res) => {
519
- return res.parentid == val
520
- })
521
- this.bookSlice = []
522
- arr.forEach((res) => {
523
- this.bookSlice.push({label: res.name, value: res.name})
524
- })
525
- }
526
- },
527
- //表册片区和抄表册关联
528
- async inputtorchange(){
529
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
530
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[])
531
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
532
- if((val2.length>0)){
533
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
534
- if(val2[0]) {
535
- condition = condition + ` and f_book_slice_area = '${val2}' `
536
- }
537
- let param={
538
- items:'*',
539
- tablename:'t_meter_book',
540
- condition:condition,
541
- orderitem:'id'
542
- }
543
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
544
- if (getMeterBooks.data) {
545
- if(getMeterBooks.data.length >0){
546
- let rs = [];
547
- getMeterBooks.data.forEach((item)=>{
548
- let temp = {
549
- label:item.f_book_name,
550
- value:item.id
551
- };
552
- rs.push(temp);
553
-
554
- })
555
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
556
- }else{
557
-
558
- this.meterbooks = [{label: '全部',value: ''}];
559
- }
560
- }
561
- }else{
562
- this.meterbooks = [{label: '全部',value: ''}];
563
- this.initmeterbook()
564
- }
565
- },
566
- //获取街道
567
- async getstreetslist(){
568
- let HttpReset = new HttpResetClass()
569
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getstreetlist', {
570
- data: {
571
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
572
- }
573
- }, {resolveMsg: null, rejectMsg: '获取街道失败!'})
574
- console.log('街道------->',data)
575
- let house = [{label: '全部', value: ''}]
576
- for (let row of data.data){
577
- house.push({label: row.f_street, value: row.f_street})
578
- }
579
- this.streetslist = house
580
- },
581
- async getaddress(){
582
- let HttpReset = new HttpResetClass()
583
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
584
- data: {
585
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
586
- }
587
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
588
- console.log('小区',data)
589
- let house = [{label: '全部', value: ''}]
590
- for (let row of data.data){
591
- house.push({label: row.f_residential_area, value: row.f_residential_area})
592
- }
593
- this.residentialArea = house
594
- },
595
- async streetChange(val){
596
- console.log('val---------------',val)
597
- this.residentialArea = []
598
- let HttpReset = new HttpResetClass()
599
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
600
- data: {
601
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}' and f_street = '${val}'`
602
- }
603
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
604
- console.log('改变小区',data)
605
- let house = [{label: '全部', value: ''}]
606
- for (let row of data.data){
607
- house.push({label: row.f_residential_area, value: row.f_residential_area})
608
- }
609
- this.residentialArea = house
610
- },
611
- async initmeterbook(orgstr){
612
- if(orgstr == null ){
613
- orgstr = this.f_filialeid;
614
- }
615
- //获取新的抄表册,先去清理所有的抄表册
616
- this.$GetSaleParam.meterbooks = []
617
- //开始加载新的抄表册
618
- await this.$LoadParams.loadMeterBook(orgstr)
619
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
620
- },
621
- getotherfooter () {
622
- this.other = [];
623
- this.footer = [];
624
- // let exportdata = this.getCondition;
625
- let otherInData = [];
626
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
627
- let footerData = [], exportfield = this.getfield;
628
- footerData.push("合计");
629
- let self = this;
630
- for (var field in self.sumsmodel) {
631
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
632
- }
633
- this.footer.push(footerData);
634
- this.other.push(otherInData);
635
- },
636
- userTypeChange () {
637
- this.gasproperties = []
638
- if (this.$refs.paged.$refs.cri.model !== null) {
639
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
640
-
641
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
642
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
643
- // this.gasproperties.push({label: '全部', value: ''})
644
- } else {
645
- this.gasproperties = [{label: '全部', value: ''}]
646
- }
647
- },
648
- search () {
649
- this.$refs.paged.$refs.cri.search()
650
- },
651
- cancel () {
652
- this.show = false
653
- },
654
- selfSearch (args) {
655
- args.condition = `${args.condition} ` + this.orgCondtionStr
656
- let con = '1=1'
657
- let mod =this.$refs.paged.$refs.cri.model
658
- if(mod.startDate != null && mod.startDate != '') {
659
- con += ` and f_input_date >= '${mod.startDate}'`
660
- }
661
- if(mod.endDate != null && mod.endDate != '') {
662
- con += ` and f_input_date <= '${mod.endDate}'`
663
- }
664
- if(mod.startHandDate != null && mod.startHandDate != '') {
665
- con += ` and f_hand_date >= '${mod.startHandDate}'`
666
- }
667
- if(mod.endHandDate != null && mod.endHandDate != '') {
668
- con += ` and f_hand_date <= '${mod.endHandDate}'`
669
- }
670
- this.$refs.paged.$refs.cri.model.f_queryweb = this.isQueryWeb
671
- this.model.search(args.condition, args.model,con)
672
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
673
- },
674
- clear () {
675
- //清空部门和人员
676
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
677
- //部门和人员变为全选
678
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
679
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
680
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
681
- this.$refs.paged.$refs.cri.model[key] = []
682
- })
683
- },
684
- show () {
685
- this.criteriaShow = true
686
- },
687
- hidden () {
688
- this.criteriaShow = !this.criteriaShow
689
- },
690
- showmsg (obj) {
691
- this.rowdata = obj
692
- this.show = true
693
- },
694
- async getRes(condition,obj) {
695
- this.orgCondtionStr = condition
696
-
697
- },
698
- stamp () {
699
- this.all = false
700
- //默认选择要打印的列
701
- this.modelval = defaultPrint.config
702
- this.fields = this.getfield
703
- console.log('所有打印字段', this.fields)
704
- this.printshow = true
705
- this.put()
706
- },
707
- put () {
708
- // 对Modelval进行排序
709
- this.sortModelval()
710
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
711
- for (let key of this.modelval) {
712
- this.thead += '<th>' + this.fields[key] + '</th>'
713
- }
714
- this.thead += '</tr>'
715
- },
716
- print () {
717
- this.$refs.print.PrintAsFile()
718
- this.printshow = false
719
- },
720
- dealmsg (val) {
721
- this.rowdata = val
722
- this.show = true
723
- val.model = this.model.model
724
- this.$dispatch('deal-msg', val)
725
- },
726
- close () {
727
- this.printshow = false
728
- this.all = false
729
- },
730
- // 对选择的列进行排序
731
- sortModelval () {
732
- let sortModel = []
733
- Object.keys(this.fields).forEach((key) => {
734
- if (this.modelval.includes(key)) {
735
- sortModel.push(key)
736
- }
737
- })
738
- this.modelval = sortModel
739
- console.log('选择的打印的字段', this.modelval)
740
- }
741
-
742
- },
743
- computed: {
744
- getCondition () {
745
- return {
746
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
747
- condValue: this.$refs.paged.model.condValue,
748
- startDate: this.$refs.paged.$refs.cri.model.startDate,
749
- endDate: this.$refs.paged.$refs.cri.model.endDate
750
- }
751
- },
752
- getfield () {
753
- return exportConfig.fmygasConfig
754
- },
755
- usertypes () {
756
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
757
- },
758
- credentials () {
759
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
760
- },
761
- pricetypes() {
762
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
763
- },
764
- // 获取气价
765
- getPricenames() {
766
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
767
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
768
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
769
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
770
- if(this.$refs.paged.$refs.cri.model !==null) {
771
- let rs = []
772
- let priceArr = []
773
- if ( pricetype.length >0) {
774
- let params = {
775
- f_price_type: pricetype[0],
776
- filter: this.f_filialeid,
777
- prices: this.prices
778
- }
779
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
780
- let temp = {}
781
- temp.label = item.label
782
- temp.value = item.value.f_price_name
783
- if(f_user_type && f_user_type.length >0){
784
- if(f_user_type== item.value.f_user_type) {
785
- if (f_gasproperties && f_gasproperties !=='') {
786
- if (f_gasproperties == item.value.f_gasproperties) {
787
- priceArr.push(temp)
788
- }
789
- } else {
790
- priceArr.push(temp)
791
- }
792
- }
793
- }else {
794
- priceArr.push(temp)
795
- }
796
- })
797
- rs = [{label: '全部', value: ''}, ...priceArr]
798
- }
799
- if (rs.length === 0) {
800
- console.log('rs读出来是空')
801
- this.$refs.paged.$refs.cri.model.f_price_name = ''
802
- }
803
- return rs
804
- }
805
- },
806
- metertype () {
807
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
808
- }
809
- },
810
- events: {},
811
- watch: {
812
- 'all' (val) {
813
- if (val) {
814
- this.modelval = this.bodyData
815
- } else {
816
- this.modelval = defaultPrint.config
817
- this.put()
818
- }
819
- },
820
- 'modelval.length' () {
821
- this.put()
822
- },
823
- sumsmodel: {
824
- handler: function (val) {
825
- this.getotherfooter();
826
- },
827
- deep: true
828
- },
829
- async 'orgCondtionStr'(val) {
830
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
831
- this.$refs.paged.$refs.cri.model.f_meter_book = []
832
- this.meterbooks = [{label: '全部',value: ''}];
833
- if(this.lastorgstr != val){
834
- this.tempfalg = true;
835
- this.lastorgstr = val;
836
- }
837
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
838
- this.tempfalg = false;
839
- let a = val.substring(val.indexOf("(")+2)
840
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
841
- }
842
- },
843
- }
844
- }
845
- </script>
846
- <style>
847
- .datapanel {
848
- color: #333;
849
- background-color: white;
850
- padding: 10px 20px;
851
- border-radius: 15px;
852
- }
853
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">录入日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label for="startHandDate" class="font_normal_body">下发日期</label>
31
+ <datepicker id="startHandDate" placeholder="开始日期" style="width:60%"
32
+ v-model="model.startHandDate"
33
+ :value.sync="model.startHandDate"
34
+ :format="'yyyy-MM-dd HH:mm:ss'"
35
+ :show-reset-button="true"
36
+ >
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label for="endHandDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
41
+ <datepicker id="endHandDate" placeholder="结束日期" style="width:60%"
42
+ v-model="model.endHandDate"
43
+ :value.sync="model.endHandDate"
44
+ :format="'yyyy-MM-dd HH:mm:ss'"
45
+ :show-reset-button="true"
46
+ >
47
+ </datepicker>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :footer="$parent.$parent.footer"
55
+ :header="$parent.$parent.other"
56
+ sqlurl="rs/easyExcel/exportExcel"
57
+ sql-name="FMYgasQuery"
58
+ template-name='用气查询导出'
59
+ :choose-col="true"></export-excel>
60
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
61
+ :defaultfield="$parent.$parent.defaultfield" print-name="用气查询打印"
62
+ ></print-data>
63
+
64
+ <div style="float: right" class="button_spacing"
65
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
66
+ @click="$parent.$parent.hidden()"></div>
67
+ </div>
68
+ </div>
69
+ <div class="row" v-show="$parent.$parent.criteriaShow">
70
+
71
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
75
+ condition="f_meternumber = '{}'" placeholder='表号'>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+
79
+ <label class="font_normal_body">客户编号</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
81
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户名称</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
86
+ condition="f_user_name = '{}'" placeholder="客户名称">
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
90
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
91
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
92
+ </div>
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
95
+ <v-select :value.sync="model.f_residential_area"
96
+ class="select_list select"
97
+ v-model="model.f_residential_area"
98
+ style="width: 60%"
99
+ multiple
100
+ condition="f_residential_area in {}"
101
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
102
+ close-on-select>
103
+
104
+ </v-select>
105
+ </div>
106
+ <div class="col-sm-2 form-group">
107
+ <label class="font_normal_body">客户地址</label>
108
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
109
+ condition="f_address like '%{}%'" placeholder='客户地址'>
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_meternumber"
114
+ condition="f_meternumber like '%{}%'" placeholder='客户表号'>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
118
+ <v-select :value.sync="model.f_meter_classify"
119
+ v-model="model.f_meter_classify"
120
+ :options='$parent.$parent.metertype' placeholder='请选择'
121
+ condition="f_meter_classify like '%{}%'"
122
+ close-on-select></v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
126
+ <v-select :value.sync="model.f_user_type"
127
+ @change="$parent.$parent.userTypeChange()"
128
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
129
+ condition="f_user_type = '{}'"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group" >
133
+ <label class="font_normal_body">客户状态</label>
134
+ <v-select :value.sync="model.f_user_state"
135
+ v-model="model.f_user_state"
136
+ :options='$parent.$parent.userstates' placeholder='请选择'
137
+ condition="f_user_state = '{}'"
138
+ close-on-select></v-select>
139
+ </div>
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">用气性质</label>
142
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
143
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
144
+ condition="f_gasproperties = '{}'"
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.pricetype" v-model="model.pricetype"
150
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
151
+ close-on-select v-ref:type>
152
+ </v-select>
153
+ </div>
154
+ <div class="col-sm-2 form-group">
155
+ <label class="font_normal_body">气价名称</label>
156
+ <v-select :value.sync="model.f_price_name"
157
+ v-model="model.f_price_name"
158
+ :options="$parent.$parent.getPricenames"
159
+ condition="f_price_name = '{}'"
160
+ close-on-select></v-select>
161
+ </div>
162
+ <!--表册片区-->
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">表册片区</label>
165
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
166
+ @change="$parent.$parent.inputtorchange"
167
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
168
+ style="width:60%"
169
+ close-on-select
170
+ condition="f_book_slice_area = '{}'"></v-select>
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
174
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
175
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
176
+ style="width:60%" :multiple="true"
177
+ condition="f_meter_book_num in {}"></v-select>
178
+ </div>
179
+ <div class="col-sm-2 form-group">
180
+ <label class="font_normal_body">气表品牌</label>
181
+ <v-select :value.sync="model.f_meter_brand" multiple
182
+ v-model="model.f_meter_brand"
183
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
184
+ condition="f_meter_brand in {}"
185
+ close-on-select></v-select>
186
+ </div>
187
+ <div class="col-sm-2 form-group">
188
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;街道&nbsp;&nbsp;&nbsp;</label>
189
+ <v-select :value.sync="model.f_street"
190
+ class="select_list select"
191
+ v-model="model.f_street"
192
+ style="width: 60%"
193
+ @change="$parent.$parent.streetChange"
194
+ condition="f_street in {}"
195
+ :options='$parent.$parent.streetslist' placeholder='选择街道'
196
+ close-on-select>
197
+ </v-select>
198
+ </div>
199
+ </div>
200
+ </div>
201
+ </criteria>
202
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
203
+ <template partial='head'>
204
+ <tr>
205
+ <th>
206
+ <nobr>客户编号</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>客户名称</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>档案编号</nobr>
213
+ </th>
214
+ <th>
215
+ <nobr>客户电话</nobr>
216
+ </th>
217
+ <th>
218
+ <nobr>证件类型</nobr>
219
+ </th>
220
+ <th>
221
+ <nobr>证件号码</nobr>
222
+ </th>
223
+ <th>
224
+ <nobr>街道</nobr>
225
+ </th>
226
+ <th>
227
+ <nobr>小区</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr>客户地址</nobr>
231
+ </th>
232
+ <th>
233
+ <nobr>客户类型</nobr>
234
+ </th>
235
+ <th>
236
+ <nobr>用气性质</nobr>
237
+ </th>
238
+ <th>
239
+ <nobr>表号</nobr>
240
+ </th>
241
+ <th>
242
+ <nobr>气表品牌</nobr>
243
+ </th>
244
+ <th>
245
+ <nobr>气表类型</nobr>
246
+ </th>
247
+ <th>
248
+ <nobr>气价名称</nobr>
249
+ </th>
250
+ <th>
251
+ <nobr>气价详情</nobr>
252
+ </th>
253
+ <!--<th><nobr>气表底数</nobr></th>-->
254
+ <!--<th><nobr>表上余额</nobr></th>-->
255
+ <!--<th><nobr>账户余额</nobr></th>-->
256
+ <th>
257
+ <nobr>预购气量</nobr>
258
+ </th>
259
+ <th>
260
+ <nobr>预购金额</nobr>
261
+ </th>
262
+ <th>
263
+ <nobr>实交金额</nobr>
264
+ </th>
265
+ <th>
266
+ <nobr>抄表员</nobr>
267
+ </th>
268
+ <th>
269
+ <nobr>表册片区</nobr>
270
+ </th>
271
+ <th>
272
+ <nobr>抄表次数</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>抄表区间</nobr>
276
+ </th>
277
+ <th title="抄表区间间隔天数">
278
+ <nobr>天数</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>用气量</nobr>
282
+ </th>
283
+ <th>
284
+ <nobr>用气金额</nobr>
285
+ </th>
286
+ <th>
287
+ <nobr>建档日期</nobr>
288
+ </th>
289
+ </tr>
290
+ </template>
291
+ <template partial='body'>
292
+ <td style="text-align: center;">
293
+ <nobr>{{row.f_userinfo_code}}</nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>{{row.f_user_name}}</nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
300
+ </td>
301
+ <td style="text-align: center;">
302
+ <nobr>{{row.f_user_phone}}</nobr>
303
+ </td>
304
+ <td style="text-align: center;">
305
+ <nobr>{{row.f_credentials}}</nobr>
306
+ </td>
307
+ <td style="text-align: center;">
308
+ <nobr>{{row.f_idnumber}}</nobr>
309
+ </td>
310
+ <td style="text-align: center;">
311
+ <nobr>{{row.f_street}}</nobr>
312
+ </td>
313
+ <td style="text-align: center;">
314
+ <nobr>{{row.f_residential_area}}</nobr>
315
+ </td>
316
+ <td style="text-align: center;">
317
+ <nobr>{{row.f_address}}</nobr>
318
+ </td>
319
+ <td style="text-align: center;">
320
+ <nobr>{{row.f_user_type}}</nobr>
321
+ </td>
322
+ <td style="text-align: center;">
323
+ <nobr>{{row.f_gasproperties}}</nobr>
324
+ </td>
325
+ <td style="text-align: center;">
326
+ <nobr>{{row.f_meternumber}}</nobr>
327
+ </td>
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_meter_brand}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_meter_classify}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_price_name}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_price_value}}</nobr>
339
+ </td>
340
+ <!--<td style="text-align: center;">-->
341
+ <!--<nobr>{{row.f_meter_base}}</nobr>-->
342
+ <!--</td>-->
343
+ <!--<td style="text-align: center;">-->
344
+ <!--<nobr>{{row.f_balance_amount}}</nobr>-->
345
+ <!--</td>-->
346
+ <!--<td style="text-align: center;">-->
347
+ <!--<nobr>{{row.f_balance}}</nobr>-->
348
+ <!--</td>-->
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_pregas}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_preamount}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_collection}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_inputtor}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_book_slice_area}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_hand_number}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_date}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;" title="抄表区间间隔天数">
371
+ <nobr>{{row.f_input_day}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_oughtamount}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.f_oughtfee}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;">
380
+ <nobr>{{row.f_createfile_date}}</nobr>
381
+ </td>
382
+ </template>
383
+ <template partial='foot'></template>
384
+ </data-grid>
385
+ </criteria-paged>
386
+ <table class="table-hover">
387
+ <tr style="position: relative" class="table-bordered">
388
+ <td
389
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
390
+ 汇总信息
391
+ </td>
392
+ <td
393
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
394
+ 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
395
+ </td>
396
+ <td
397
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
398
+ 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
399
+ </td>
400
+ <td
401
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
402
+ 实交金额合计:&emsp;{{sumsmodel.f_collection}}
403
+ </td>
404
+ <td
405
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
406
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
407
+ </td>
408
+ <td
409
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
410
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
411
+ </td>
412
+ </tr>
413
+ </table>
414
+ </div>
415
+ <div v-if="show">
416
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
417
+ </div>
418
+ </div>
419
+ </div>
420
+ </template>
421
+ <script>
422
+ import {HttpResetClass, PagedList} from 'vue-client'
423
+ import defaultPrint from './../../../../src/components/sale/config/DefaultPrint'
424
+ import exportConfig from './../exportConfig'
425
+
426
+
427
+ let readySomething = async function (self) {
428
+ //加载抄表册
429
+ self.initmeterbook();
430
+ self.initSlice(self.$login.f.orgid)
431
+
432
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
433
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
434
+ await self.$MagLoadParams.loadParam()
435
+ self.initParams()
436
+ self.getaddress()
437
+ self.getstreetslist()
438
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
439
+ }
440
+ export default {
441
+ title: '用气查询',
442
+ name: 'AddMaterial',
443
+ data () {
444
+ return {
445
+ other: [],
446
+ footer: [],
447
+ model: new PagedList('api/af-revenue/sql/FMYgasQuery', 30, {
448
+ startDate: 'this.model.startDate != null && this.model.startDate != "" ? this.model.startDate : this.model.startHandDate',
449
+ endDate: 'this.model.endDate != null && this.model.endDate != "" ? this.model.endDate : this.model.endHandDate',
450
+ f_queryweb: 'this.model.f_queryweb'
451
+ }, {
452
+ f_pregas: 0,
453
+ f_preamount: 0,
454
+ f_collection: 0,
455
+ f_oughtamount: 0,
456
+ f_oughtfee: 0
457
+ }),
458
+ initres: {
459
+ org: [this.$login.f.orgid],
460
+ dep: [],
461
+ user: [],
462
+ },
463
+ gasproperties: [],
464
+ //初始化街道数据
465
+ streetslist:[],
466
+ residentialArea: [],
467
+ f_filialeid: this.$login.f.orgid,
468
+ show: false,
469
+ rowdata: {},
470
+ criteriaShow: false,
471
+ orgCondtionStr: '',
472
+ modelval: [],
473
+ meterbrands: [],
474
+ printshow: false,
475
+ all: false,
476
+ fields: {},
477
+ thead: '',
478
+ tfoot: '',
479
+ //表册片区
480
+ bookSlice:[{label: '全部',value: ''}],
481
+ // 下拉框
482
+
483
+ //合计数据
484
+ sumsmodel: {},
485
+ defaultfield: [],
486
+ // 使用类型,壁挂炉
487
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
488
+ userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
489
+ meterbooks: [{label: '全部',value: ''}], //抄表册
490
+ tempfalg :false,
491
+ isQueryWeb: this.$appdata.getSingleValue('用气查询是否查物联网表') ? this.$appdata.getSingleValue('用气查询是否查物联网表') : '否' ,
492
+ lastorgstr:'',
493
+ allorgid:[],
494
+ }
495
+ },
496
+ ready () {
497
+ readySomething(this)
498
+ },
499
+ methods: {
500
+ initParams(){
501
+ //初始化气表品牌
502
+ let brandArr = []
503
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
504
+ let temp = {}
505
+ temp.label = item.label
506
+ temp.value = item.value.f_meter_brand
507
+ brandArr.push(temp)
508
+ })
509
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
510
+ },
511
+ //初始化片区
512
+ async initSlice (val) {
513
+ if (val) {
514
+ let getAllArea = await this.$resetpost('/rs/search', {
515
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
516
+ userid: this.$login.f.id
517
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
518
+ let arr = getAllArea.data.filter((res) => {
519
+ return res.parentid == val
520
+ })
521
+ this.bookSlice = []
522
+ arr.forEach((res) => {
523
+ this.bookSlice.push({label: res.name, value: res.name})
524
+ })
525
+ }
526
+ },
527
+ //表册片区和抄表册关联
528
+ async inputtorchange(){
529
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
530
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[])
531
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
532
+ if((val2.length>0)){
533
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
534
+ if(val2[0]) {
535
+ condition = condition + ` and f_book_slice_area = '${val2}' `
536
+ }
537
+ let param={
538
+ items:'*',
539
+ tablename:'t_meter_book',
540
+ condition:condition,
541
+ orderitem:'id'
542
+ }
543
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
544
+ if (getMeterBooks.data) {
545
+ if(getMeterBooks.data.length >0){
546
+ let rs = [];
547
+ getMeterBooks.data.forEach((item)=>{
548
+ let temp = {
549
+ label:item.f_book_name,
550
+ value:item.id
551
+ };
552
+ rs.push(temp);
553
+
554
+ })
555
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
556
+ }else{
557
+
558
+ this.meterbooks = [{label: '全部',value: ''}];
559
+ }
560
+ }
561
+ }else{
562
+ this.meterbooks = [{label: '全部',value: ''}];
563
+ this.initmeterbook()
564
+ }
565
+ },
566
+ //获取街道
567
+ async getstreetslist(){
568
+ let HttpReset = new HttpResetClass()
569
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getstreetlist', {
570
+ data: {
571
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
572
+ }
573
+ }, {resolveMsg: null, rejectMsg: '获取街道失败!'})
574
+ console.log('街道------->',data)
575
+ let house = [{label: '全部', value: ''}]
576
+ for (let row of data.data){
577
+ house.push({label: row.f_street, value: row.f_street})
578
+ }
579
+ this.streetslist = house
580
+ },
581
+ async getaddress(){
582
+ let HttpReset = new HttpResetClass()
583
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
584
+ data: {
585
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
586
+ }
587
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
588
+ console.log('小区',data)
589
+ let house = [{label: '全部', value: ''}]
590
+ for (let row of data.data){
591
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
592
+ }
593
+ this.residentialArea = house
594
+ },
595
+ async streetChange(val){
596
+ console.log('val---------------',val)
597
+ this.residentialArea = []
598
+ let HttpReset = new HttpResetClass()
599
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
600
+ data: {
601
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}' and f_street = '${val}'`
602
+ }
603
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
604
+ console.log('改变小区',data)
605
+ let house = [{label: '全部', value: ''}]
606
+ for (let row of data.data){
607
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
608
+ }
609
+ this.residentialArea = house
610
+ },
611
+ async initmeterbook(orgstr){
612
+ if(orgstr == null ){
613
+ orgstr = this.f_filialeid;
614
+ }
615
+ //获取新的抄表册,先去清理所有的抄表册
616
+ this.$GetSaleParam.meterbooks = []
617
+ //开始加载新的抄表册
618
+ await this.$LoadParams.loadMeterBook(orgstr)
619
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
620
+ },
621
+ getotherfooter () {
622
+ this.other = [];
623
+ this.footer = [];
624
+ // let exportdata = this.getCondition;
625
+ let otherInData = [];
626
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
627
+ let footerData = [], exportfield = this.getfield;
628
+ footerData.push("合计");
629
+ let self = this;
630
+ for (var field in self.sumsmodel) {
631
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
632
+ }
633
+ this.footer.push(footerData);
634
+ this.other.push(otherInData);
635
+ },
636
+ userTypeChange () {
637
+ this.gasproperties = []
638
+ if (this.$refs.paged.$refs.cri.model !== null) {
639
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
640
+
641
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
642
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
643
+ // this.gasproperties.push({label: '全部', value: ''})
644
+ } else {
645
+ this.gasproperties = [{label: '全部', value: ''}]
646
+ }
647
+ },
648
+ search () {
649
+ this.$refs.paged.$refs.cri.search()
650
+ },
651
+ cancel () {
652
+ this.show = false
653
+ },
654
+ selfSearch (args) {
655
+ args.condition = `${args.condition} ` + this.orgCondtionStr
656
+ let con = '1=1'
657
+ let mod =this.$refs.paged.$refs.cri.model
658
+ if(mod.startDate != null && mod.startDate != '') {
659
+ con += ` and f_input_date >= '${mod.startDate}'`
660
+ }
661
+ if(mod.endDate != null && mod.endDate != '') {
662
+ con += ` and f_input_date <= '${mod.endDate}'`
663
+ }
664
+ if(mod.startHandDate != null && mod.startHandDate != '') {
665
+ con += ` and f_hand_date >= '${mod.startHandDate}'`
666
+ }
667
+ if(mod.endHandDate != null && mod.endHandDate != '') {
668
+ con += ` and f_hand_date <= '${mod.endHandDate}'`
669
+ }
670
+ this.$refs.paged.$refs.cri.model.f_queryweb = this.isQueryWeb
671
+ this.model.search(args.condition, args.model,con)
672
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
673
+ },
674
+ clear () {
675
+ //清空部门和人员
676
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
677
+ //部门和人员变为全选
678
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
679
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
680
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
681
+ this.$refs.paged.$refs.cri.model[key] = []
682
+ })
683
+ },
684
+ show () {
685
+ this.criteriaShow = true
686
+ },
687
+ hidden () {
688
+ this.criteriaShow = !this.criteriaShow
689
+ },
690
+ showmsg (obj) {
691
+ this.rowdata = obj
692
+ this.show = true
693
+ },
694
+ async getRes(condition,obj) {
695
+ this.orgCondtionStr = condition
696
+
697
+ },
698
+ stamp () {
699
+ this.all = false
700
+ //默认选择要打印的列
701
+ this.modelval = defaultPrint.config
702
+ this.fields = this.getfield
703
+ console.log('所有打印字段', this.fields)
704
+ this.printshow = true
705
+ this.put()
706
+ },
707
+ put () {
708
+ // 对Modelval进行排序
709
+ this.sortModelval()
710
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
711
+ for (let key of this.modelval) {
712
+ this.thead += '<th>' + this.fields[key] + '</th>'
713
+ }
714
+ this.thead += '</tr>'
715
+ },
716
+ print () {
717
+ this.$refs.print.PrintAsFile()
718
+ this.printshow = false
719
+ },
720
+ dealmsg (val) {
721
+ this.rowdata = val
722
+ this.show = true
723
+ val.model = this.model.model
724
+ this.$dispatch('deal-msg', val)
725
+ },
726
+ close () {
727
+ this.printshow = false
728
+ this.all = false
729
+ },
730
+ // 对选择的列进行排序
731
+ sortModelval () {
732
+ let sortModel = []
733
+ Object.keys(this.fields).forEach((key) => {
734
+ if (this.modelval.includes(key)) {
735
+ sortModel.push(key)
736
+ }
737
+ })
738
+ this.modelval = sortModel
739
+ console.log('选择的打印的字段', this.modelval)
740
+ }
741
+
742
+ },
743
+ computed: {
744
+ getCondition () {
745
+ return {
746
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
747
+ condValue: this.$refs.paged.model.condValue,
748
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
749
+ endDate: this.$refs.paged.$refs.cri.model.endDate
750
+ }
751
+ },
752
+ getfield () {
753
+ return exportConfig.fmygasConfig
754
+ },
755
+ usertypes () {
756
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
757
+ },
758
+ credentials () {
759
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
760
+ },
761
+ pricetypes() {
762
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
763
+ },
764
+ // 获取气价
765
+ getPricenames() {
766
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
767
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
768
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
769
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
770
+ if(this.$refs.paged.$refs.cri.model !==null) {
771
+ let rs = []
772
+ let priceArr = []
773
+ if ( pricetype.length >0) {
774
+ let params = {
775
+ f_price_type: pricetype[0],
776
+ filter: this.f_filialeid,
777
+ prices: this.prices
778
+ }
779
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
780
+ let temp = {}
781
+ temp.label = item.label
782
+ temp.value = item.value.f_price_name
783
+ if(f_user_type && f_user_type.length >0){
784
+ if(f_user_type== item.value.f_user_type) {
785
+ if (f_gasproperties && f_gasproperties !=='') {
786
+ if (f_gasproperties == item.value.f_gasproperties) {
787
+ priceArr.push(temp)
788
+ }
789
+ } else {
790
+ priceArr.push(temp)
791
+ }
792
+ }
793
+ }else {
794
+ priceArr.push(temp)
795
+ }
796
+ })
797
+ rs = [{label: '全部', value: ''}, ...priceArr]
798
+ }
799
+ if (rs.length === 0) {
800
+ console.log('rs读出来是空')
801
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
802
+ }
803
+ return rs
804
+ }
805
+ },
806
+ metertype () {
807
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
808
+ }
809
+ },
810
+ events: {},
811
+ watch: {
812
+ 'all' (val) {
813
+ if (val) {
814
+ this.modelval = this.bodyData
815
+ } else {
816
+ this.modelval = defaultPrint.config
817
+ this.put()
818
+ }
819
+ },
820
+ 'modelval.length' () {
821
+ this.put()
822
+ },
823
+ sumsmodel: {
824
+ handler: function (val) {
825
+ this.getotherfooter();
826
+ },
827
+ deep: true
828
+ },
829
+ async 'orgCondtionStr'(val) {
830
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
831
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
832
+ this.meterbooks = [{label: '全部',value: ''}];
833
+ if(this.lastorgstr != val){
834
+ this.tempfalg = true;
835
+ this.lastorgstr = val;
836
+ }
837
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
838
+ this.tempfalg = false;
839
+ let a = val.substring(val.indexOf("(")+2)
840
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
841
+ }
842
+ },
843
+ }
844
+ }
845
+ </script>
846
+ <style>
847
+ .datapanel {
848
+ color: #333;
849
+ background-color: white;
850
+ padding: 10px 20px;
851
+ border-radius: 15px;
852
+ }
853
+ </style>