manage-client 3.3.230 → 3.3.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/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 +292 -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 -0
  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 +2762 -2762
  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 +977 -977
  62. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  63. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -736
  64. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -689
  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/WebhandMonthGas.vue +819 -819
  72. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  73. package/src/components/webmeter/report/ReportList.vue +453 -453
  74. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  75. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  76. package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
  77. package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
  78. package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
  79. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
  80. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
  81. package/src/filiale/ancheng/exportConfig.js +1112 -1112
  82. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  83. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  84. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  85. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  86. package/src/filiale/bayan/config/tableConfig.js +59 -59
  87. package/src/filiale/bayan/sale.js +8 -8
  88. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  89. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  90. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  91. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  92. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  93. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  94. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  95. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  96. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  97. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  98. package/src/filiale/bayan/webmeterManage.js +26 -26
  99. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  100. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  101. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  102. package/src/filiale/dingcheng/sale.js +9 -9
  103. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  104. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  105. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  106. package/src/filiale/hantou/config/tableConfig.js +54 -54
  107. package/src/filiale/hantou/sale.js +8 -8
  108. package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
  109. package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
  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/ChargeQuery.vue +1348 -1348
  118. package/src/filiale/kelai/GasStatistics.vue +561 -561
  119. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  120. package/src/filiale/kelai/NewGasStatistics.vue +556 -556
  121. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  122. package/src/filiale/kelai/reportManage.js +13 -13
  123. package/src/filiale/kelai/sale.js +17 -17
  124. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  125. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  126. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  127. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  128. package/src/filiale/macheng/config/exportConfig.js +79 -79
  129. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  130. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  131. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  132. package/src/filiale/meihekou/CollectManage.vue +152 -152
  133. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  134. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  135. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  136. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  137. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  138. package/src/filiale/meihekou/sale.js +39 -39
  139. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  140. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  141. package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
  142. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  143. package/src/filiale/qianneng/exportConfig.js +232 -232
  144. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  145. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  146. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  147. package/src/filiale/rizhao/sale.js +13 -13
  148. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  149. package/src/filiale/shangluo/sale.js +17 -17
  150. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  151. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  152. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  153. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  154. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  155. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  156. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  157. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  158. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  159. package/src/filiale/taizhoukesi/sale.js +11 -11
  160. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  161. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  162. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  163. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  164. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  165. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  166. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  167. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  168. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  169. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  170. package/src/filiale/xinjiangdexin/sale.js +7 -7
  171. package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
  172. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  173. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  174. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  175. package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
  176. package/src/filiale/yangchun/UserQuery.vue +980 -980
  177. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  178. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  179. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  180. package/src/filiale/yangchun/reportManage.js +6 -6
  181. package/src/filiale/yangchun/sale.js +20 -20
  182. package/src/filiale/yangchun/webmeterManage.js +5 -5
  183. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  184. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  185. package/src/filiale/yuncheng/GasInspection.vue +610 -610
  186. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  187. package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
  188. package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
  189. package/src/filiale/yuncheng/sale.js +23 -23
  190. package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
  191. package/src/filiale/zhongyi/GasStatistics.vue +537 -537
  192. package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
  193. package/src/filiale/zhongyi/exportConfig.js +2556 -2556
  194. package/src/filiale/zhongyi/sale.js +33 -33
  195. package/src/filiale/zhongyi/webmeterManage.js +15 -15
  196. package/src/main.js +68 -68
  197. package/src/plugins/LodopFuncs.js +159 -159
  198. package/src/reportManage.js +777 -773
  199. package/src/saleManage.js +689 -689
  200. package/src/webmeterManage.js +130 -130
  201. package/.gradle/7.4/checksums/checksums.lock +0 -0
  202. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  203. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  204. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  205. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  206. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  207. package/.gradle/7.4/gc.properties +0 -0
@@ -1,755 +1,755 @@
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
-
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
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 for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
- </div>
40
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
- :choose-col="true"></export-excel>
50
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
- :defaultfield="$parent.$parent.defaultfield"
52
- titletable="其他收费记录"
53
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
- <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>
55
- </div>
56
- </div>
57
-
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户名称</label>
62
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
63
- condition="f_user_name like '%{}%'" placeholder="客户名称">
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">客户地址</label>
67
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
- condition="f_address like '%{}%'" placeholder='客户地址'>
69
- </div>
70
- <div class="col-sm-2 form-group">
71
- <label class="font_normal_body">收费类型</label>
72
- <v-select v-model="model.f_brand_spec"
73
- placeholder='请选择'
74
- condition="f_brand_spec in {}"
75
- :value.sync="model.f_brand_spec" multiple
76
- :options='$parent.$parent.chargetype'
77
- @change="$parent.$parent.setTypename"
78
- close-on-select clear-button></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">品名规格</label>
82
- <v-select v-model="model.f_typename"
83
- placeholder='请选择'
84
- condition="f_typename in {}"
85
- :value.sync="model.f_typename" multiple
86
- :options='$parent.$parent.typeNameList'
87
- @change="$parent.$parent.setTypenumber"
88
- close-on-select clear-button>
89
- </v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">型&emsp;&emsp;号</label>
93
- <v-select v-model="model.f_typenumber"
94
- placeholder='请选择'
95
- condition="f_typenumber = '{}'"
96
- :value.sync="model.f_typenumber"
97
- :options='$parent.$parent.typenumberList'
98
- close-on-select clear-button>
99
- </v-select>
100
- </div>
101
- <div class="col-sm-2 form-group">
102
- <label class="font_normal_body">表&emsp;&emsp;号</label>
103
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
104
- condition="f_meternumber = '{}'" placeholder='表号'>
105
- </div>
106
- <div class="col-sm-2 form-group">
107
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
108
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
109
- condition="f_card_id = '{}'" placeholder='卡号'>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">用户类型</label>
113
- <v-select id="f_user_type"
114
- v-model="model.f_user_type"
115
- placeholder='请选择'
116
- condition="f_user_type ='{}'"
117
- :value.sync="model.f_user_type"
118
- @change="$parent.$parent.userTypeChange(model.f_user_type)"
119
- :options='$parent.$parent.userTypes'
120
- close-on-select clear-button></v-select>
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">用气性质</label>
124
- <v-select id="f_gasproperties"
125
- v-model="model.f_gasproperties"
126
- placeholder='请选择'
127
- condition="f_gasproperties ='{}'"
128
- :value.sync="model.f_gasproperties"
129
- :options='$parent.$parent.gasproperties'
130
- close-on-select clear-button></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">收费状态</label>
134
- <v-select id="f_state"
135
- v-model="model.f_state"
136
- placeholder='请选择'
137
- condition="f_state in {}"
138
- multiple="true"
139
- :value.sync="model.f_state"
140
- :options='$parent.$parent.chargeState'
141
- close-on-select clear-button>
142
- </v-select>
143
- </div>
144
-
145
- <div class="col-sm-2 form-group">
146
- <label class="font_normal_body">付款方式</label>
147
- <v-select id="f_payment"
148
- v-model="model.f_payment"
149
- placeholder='请选择'
150
- condition="f_payment in {}"
151
- multiple="true"
152
- :value.sync="model.f_payment"
153
- :options='$parent.$parent.payments'
154
- close-on-select clear-button>
155
- </v-select>
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">服务人员</label>
159
- <v-select id="f_service_person"
160
- v-model="model.f_service_person"
161
- placeholder='请选择'
162
- condition="f_service_person ='{}'"
163
- :value.sync="model.f_service_person"
164
- :options='$parent.$parent.services'
165
- close-on-select clear-button>
166
- </v-select>
167
- </div>
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">气表类型</label>
170
- <v-select :value.sync="model.f_meter_classify" multiple
171
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
172
- condition="f_meter_classify in {}"
173
- close-on-select></v-select>
174
- </div>
175
- <div class="col-sm-2 form-group">
176
- <label class="font_normal_body">气表品牌</label>
177
- <v-select :value.sync="model.f_meter_brand" multiple
178
- v-model="model.f_meter_brand"
179
- :options='$parent.$parent.meterbrands' placeholder='请选择'
180
- condition="f_meter_brand in {}"
181
- close-on-select></v-select>
182
- </div>
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body" title="收据起始编号">收据票号</label>
185
- <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_start"
186
- condition="f_bill_number >= '{}'" placeholder="收据起始编号">
187
- </div>
188
- <div class="col-sm-2 form-group">
189
- <label class="font_normal_body" title="收据终止编号">收据票号</label>
190
- <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_end"
191
- condition="f_bill_number <= '{}'" placeholder="收据终止编号">
192
- </div>
193
- </div>
194
- </div>
195
- </criteria>
196
-
197
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
198
- <template partial='head'>
199
- <tr>
200
- <th>
201
- <!-- <nobr>客户编号</nobr>-->
202
- <data-order field="f_userinfo_code" name="客户编号"
203
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
204
- </th>
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
- <data-order field="f_address" name="客户地址"
220
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
221
- </th>
222
- <th>
223
- <nobr>表号</nobr>
224
- </th>
225
- <th>
226
- <nobr>客户电话</nobr>
227
- </th>
228
- <th>
229
- <nobr>气表类型</nobr>
230
- </th>
231
- <th>
232
- <nobr>气表品牌</nobr>
233
- </th>
234
- <th>
235
- <nobr>卡号</nobr>
236
- </th>
237
- <th>
238
- <nobr>收据票号</nobr>
239
- </th>
240
-
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>
254
- <nobr>数量</nobr>
255
- </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>
278
- <nobr>状态</nobr>
279
- </th>
280
- <th>
281
- <!-- <nobr>收费日期</nobr>-->
282
- <data-order field="f_operate_date" name="收费日期"
283
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
284
- </th>
285
- <th>
286
- <nobr>服务人员</nobr>
287
- </th>
288
- <th>
289
- <nobr>备注</nobr>
290
- </th>
291
- <th>
292
- <nobr>人员</nobr>
293
- </th>
294
- <th>
295
- <nobr>部门</nobr>
296
- </th>
297
- <th>
298
- <nobr>公司</nobr>
299
- </th>
300
- <th><nobr>附件</nobr></th>
301
- <!--<th><nobr>查看详情</nobr></th>-->
302
- </tr>
303
- </template>
304
- <template partial='body'>
305
- <td style="text-align: center;">
306
- <nobr>
307
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{row.f_olduserinfo_code}}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{row.id}}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{row.f_user_name}}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{row.f_idnumber}}</nobr>
320
- </td>
321
- <td style="text-align: center;">
322
- <nobr>{{row.f_address}}</nobr>
323
- </td>
324
- <td style="text-align: center;">
325
- <nobr>{{row.f_meternumber}}</nobr>
326
- </td>
327
- <td style="text-align: center;">
328
- <nobr>{{row.f_user_phone}}</nobr>
329
- </td>
330
- <td style="text-align: center;">
331
- <nobr>{{row.f_meter_classify}}</nobr>
332
- </td>
333
- <td style="text-align: center;">
334
- <nobr>{{row.f_meter_brand}}</nobr>
335
- </td>
336
- <td style="text-align: center;">
337
- <nobr>{{row.f_card_id}}</nobr>
338
- </td>
339
-
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_bill_number}}</nobr>
342
- </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_brand_spec}}</nobr>
345
- </td>
346
- <td style="text-align: center;">
347
- <nobr>{{row.f_typename}}</nobr>
348
- </td>
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_typenumber}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_unitprice}}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{row.f_number}}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{row.f_overlength_unitprice}}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{row.f_overlength_number}}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{row.f_discounts_money_detail}}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{row.f_actual_materials_detail}}</nobr>
369
- </td>
370
- <td style="text-align: center;">
371
- <nobr>{{row.f_disc_money}}</nobr>
372
- </td>
373
- <td style="text-align: center;">
374
- <nobr>{{row.f_money}}</nobr>
375
- </td>
376
- <td style="text-align: center;">
377
- <nobr>{{row.f_payment}}</nobr>
378
- </td>
379
- <td style="text-align: center;">
380
- <nobr>{{row.f_state}}</nobr>
381
- </td>
382
- <td style="text-align: center;">
383
- <nobr>{{row.f_operate_date}}</nobr>
384
- </td>
385
- <td style="text-align: center;">
386
- <nobr>{{row.f_service_person}}</nobr>
387
- </td>
388
- <td style="text-align: center;">
389
- <nobr>{{row.f_comments}}</nobr>
390
- </td>
391
- <td style="text-align: center;">
392
- <nobr>{{row.f_operator}}</nobr>
393
- </td>
394
- <td style="text-align: center;">
395
- <nobr>{{row.f_depname}}</nobr>
396
- </td>
397
- <td style="text-align: center;">
398
- <nobr>{{row.f_orgname}}</nobr>
399
- </td>
400
- <td style="text-align: center;"><nobr>
401
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
402
- </nobr></td>
403
- <!--<td style="text-align: center;">-->
404
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
405
- <!--</td>-->
406
- </template>
407
- <template partial='foot'></template>
408
- </data-grid>
409
-
410
- </criteria-paged>
411
-
412
- <table class="table-hover">
413
- <tr style="position: relative" class="table-bordered">
414
- <td
415
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
416
- 汇总信息
417
- </td>
418
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
419
- 收款合计:&emsp;{{sumsmodel.f_money}}
420
- </td>
421
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
422
- 总户数合计:&emsp;{{sumsmodel.hushu}}
423
- </td>
424
- </tr>
425
- </table>
426
-
427
- </div>
428
- <div class="flex" v-if="show">
429
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
430
- </div>
431
- </div>
432
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
433
- <article slot="modal-body">
434
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
435
- </article>
436
- <footer slot="modal-footer" class="modal-footer">
437
- </footer>
438
- </modal>
439
- </div>
440
-
441
- <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
442
- <article slot="modal-body" class="modal-body">
443
- <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
444
- </article>
445
- <footer slot="modal-footer" class="modal-footer">
446
- </footer>
447
- </modal>
448
-
449
- </template>
450
-
451
- <script>
452
- import {PagedList,HttpResetClass} from 'vue-client'
453
- import defaultPrint from './config/DefaultPrint'
454
- import exportConfig from './config/exportConfig'
455
- import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
456
-
457
- let readySomething = async function (self) {
458
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
459
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
460
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
461
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
462
- // await self.$refs.paged.$refs.cri.search()
463
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
464
- await self.$MagLoadParams.loadParam()
465
-
466
- self.initParams()
467
- self.initSecuritypersons()
468
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
469
- }
470
- export default {
471
- components: {
472
- OtherChargeDetailQuery
473
- },
474
- props:['data'],
475
- title: '其他收费查询',
476
- data() {
477
- return {
478
- data: {},
479
- other:[],
480
- footer:[],
481
- model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
482
- criteriaShow: false,
483
- orgCondtionStr: '',
484
- modelval: [],
485
- printshow: false,
486
- all: false,
487
- fields: {},
488
- config: {
489
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
490
- },
491
- //排序
492
- orderitem:'f_operate_date desc',
493
- orderFields: {
494
- f_operate_date: 'no'
495
- },
496
- //默认打印列
497
- defaultfield: [],
498
- thead: '',
499
- tfoot: '',
500
- initres: {
501
- org:[this.$login.f.orgid],
502
- dep:[],
503
- user:[],
504
- },
505
- show:false,
506
- showdetail:false,
507
- otherchargeid:'',
508
- rowdata:{},
509
- meterbrands: [],
510
- services:[],
511
- //合计数据
512
- sumsmodel: {},
513
- showupload:false,
514
- selected:{},
515
- // 用气性质
516
- gasproperties: [],
517
- // 品名规格
518
- typeNameList: [],
519
- // 型号
520
- typenumberList: []
521
- }
522
- },
523
- ready() {
524
- readySomething(this).then(() => {
525
- this.$emit('ready')
526
- }).catch((error) => {
527
- this.$emit('error', error)
528
- })
529
- },
530
- methods: {
531
- view(row){
532
- this.showupload = true
533
- this.selected= row
534
- },
535
- initParams() {
536
- // 初始化气表品牌
537
- let brandArr = []
538
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
539
- let temp = {}
540
- temp.label = item.label
541
- temp.value = item.value.f_meter_brand
542
- brandArr.push(temp)
543
- })
544
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
545
- },
546
- // 初始化安检人
547
- initSecuritypersons () {
548
- let origin = this.$appdata.getSingleValue('服务人员来源')
549
- if (origin) {
550
- try {
551
- this.services = []
552
- let http = new HttpResetClass()
553
- http.load('post', '/rs/search', {
554
- source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
555
- userid: this.$login.f.id
556
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
557
- console.log('获取安检人员', res.data)
558
- for (let i = 0; i < res.data.length; i++) {
559
- this.services.push({label: res.data[i].name, value: res.data[i].name})
560
- }
561
- })
562
- } catch (e) {
563
- console.log('获取安检人员失败')
564
- }
565
- }else {
566
- this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
567
- }
568
- },
569
- getotherfooter(){
570
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
571
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
572
- this.other=[];
573
- this.footer=[];
574
- let exportdata = this.getCondition;
575
- let otherInData=[];
576
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
577
- let footerData=[],exportfield=this.getfield;
578
- footerData.push("合计");
579
- let self = this;
580
- for(var field in self.sumsmodel){
581
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
582
- }
583
- this.footer.push(footerData);
584
- this.other.push(otherInData);
585
- },
586
- search(){
587
- this.$refs.paged.$refs.cri.search()
588
- },
589
- async selfSearch(args) {
590
- if (this.data) {
591
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
592
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
593
- }
594
- args.condition = `${args.condition}` + this.orgCondtionStr
595
- await this.model.search(args.condition, args.model)
596
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
597
- this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
598
- if(this.sumsmodel.hushu===null){
599
- this.sumsmodel.hushu = 0
600
- }
601
- },
602
- clear() {
603
- //清空部门和人员
604
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
605
- //部门和人员变为全选
606
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
607
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
608
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
609
- this.$refs.paged.$refs.cri.model[key] = []
610
- })
611
- },
612
- show() {
613
- this.criteriaShow = true
614
- },
615
- hidden() {
616
- this.criteriaShow = !this.criteriaShow
617
- },
618
- getRes(obj) {
619
- this.orgCondtionStr = obj
620
- },
621
- cancel() {
622
- this.show = false
623
- },
624
- dealmsg(val) {
625
- console.log('---------------dealmsg')
626
- this.rowdata=val
627
- this.show=true
628
- val.model = this.model.model
629
- this.$dispatch('deal-msg', val)
630
- },
631
- stamp() {
632
- this.all = false
633
- //默认选择要打印的列
634
- this.modelval = defaultPrint.config
635
- this.fields = this.getfield
636
- console.log('所有打印字段', this.fields)
637
- this.printshow = true
638
- this.put()
639
- },
640
- put() {
641
- // 对Modelval进行排序
642
- this.sortModelval()
643
- this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
644
- for (let key of this.modelval) {
645
- this.thead += '<th>' + this.fields[key] + '</th>'
646
- }
647
- this.thead += '</tr>'
648
- },
649
- print() {
650
- this.$refs.print.PrintAsFile()
651
- this.printshow = false
652
- },
653
- close() {
654
- this.printshow = false
655
- this.all = false
656
- },
657
- // 对选择的列进行排序
658
- sortModelval() {
659
- let sortModel = []
660
- Object.keys(this.fields).forEach((key) => {
661
- if (this.modelval.includes(key)) {
662
- sortModel.push(key)
663
- }
664
- })
665
- this.modelval = sortModel
666
- console.log('选择的打印的字段', this.modelval)
667
- },
668
- showchargedetail(row){
669
- this.showdetail=true
670
- this.otherchargeid=row.id
671
- },
672
- userTypeChange (f_user_type) {
673
- this.gasproperties = []
674
- if (f_user_type) {
675
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
676
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
677
- } else {
678
- this.gasproperties = [{label: '全部', value: ''}]
679
- }
680
- },
681
- setTypename (val) {
682
- this.typenumberList = []
683
- this.typeNameList = this.$appdata.getParam(val)
684
- },
685
- setTypenumber (val) {
686
- this.typenumberList = this.$appdata.getParam(val)
687
- },
688
- sort (field, rule) {
689
- // 将所有排序方式设为不排序,实现相互排斥
690
- for (let key in this.orderFields) {
691
- if (key === field) {
692
- this.orderFields[key] = rule
693
- } else {
694
- this.orderFields[key] = 'no'
695
- }
696
- }
697
- // 如果新规则不排序,还原为默认排序
698
- if (rule === 'no') {
699
- this.model.paramSource.orderitem = `'${this.orderitem}'`
700
- } else {
701
- this.model.paramSource.orderitem = `'${field} ${rule}'`
702
- }
703
-
704
- this.search()
705
- }
706
- },
707
- watch: {
708
- 'all'(val) {
709
- if (val) {
710
- this.modelval = this.bodyData
711
- } else {
712
- this.modelval = defaultPrint.config
713
- this.put()
714
- }
715
- },
716
- 'modelval.length'() {
717
- this.put()
718
- },
719
- sumsmodel:{
720
- handler: function(val) {
721
- this.getotherfooter();
722
- },
723
- deep: true
724
- }
725
- },
726
- computed: {
727
- getCondition() {
728
- return {
729
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
730
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
731
- },
732
- service_person() {
733
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
734
- },
735
- getfield() {
736
- return exportConfig.otherchargeConfig
737
- },
738
- chargetype() {
739
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
740
- },
741
- userTypes() {
742
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
743
- },
744
- chargeState() {
745
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
746
- },
747
- metertypes() {
748
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
749
- },
750
- payments() {
751
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
752
- }
753
- }
754
- }
755
- </script>
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
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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 for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="其他收费记录"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+ <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>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户名称</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
63
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户地址</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
+ condition="f_address like '%{}%'" placeholder='客户地址'>
69
+ </div>
70
+ <div class="col-sm-2 form-group">
71
+ <label class="font_normal_body">收费类型</label>
72
+ <v-select v-model="model.f_brand_spec"
73
+ placeholder='请选择'
74
+ condition="f_brand_spec in {}"
75
+ :value.sync="model.f_brand_spec" multiple
76
+ :options='$parent.$parent.chargetype'
77
+ @change="$parent.$parent.setTypename"
78
+ close-on-select clear-button></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">品名规格</label>
82
+ <v-select v-model="model.f_typename"
83
+ placeholder='请选择'
84
+ condition="f_typename in {}"
85
+ :value.sync="model.f_typename" multiple
86
+ :options='$parent.$parent.typeNameList'
87
+ @change="$parent.$parent.setTypenumber"
88
+ close-on-select clear-button>
89
+ </v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">型&emsp;&emsp;号</label>
93
+ <v-select v-model="model.f_typenumber"
94
+ placeholder='请选择'
95
+ condition="f_typenumber = '{}'"
96
+ :value.sync="model.f_typenumber"
97
+ :options='$parent.$parent.typenumberList'
98
+ close-on-select clear-button>
99
+ </v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group">
102
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
103
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
104
+ condition="f_meternumber = '{}'" placeholder='表号'>
105
+ </div>
106
+ <div class="col-sm-2 form-group">
107
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
108
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
109
+ condition="f_card_id = '{}'" placeholder='卡号'>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">用户类型</label>
113
+ <v-select id="f_user_type"
114
+ v-model="model.f_user_type"
115
+ placeholder='请选择'
116
+ condition="f_user_type ='{}'"
117
+ :value.sync="model.f_user_type"
118
+ @change="$parent.$parent.userTypeChange(model.f_user_type)"
119
+ :options='$parent.$parent.userTypes'
120
+ close-on-select clear-button></v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">用气性质</label>
124
+ <v-select id="f_gasproperties"
125
+ v-model="model.f_gasproperties"
126
+ placeholder='请选择'
127
+ condition="f_gasproperties ='{}'"
128
+ :value.sync="model.f_gasproperties"
129
+ :options='$parent.$parent.gasproperties'
130
+ close-on-select clear-button></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">收费状态</label>
134
+ <v-select id="f_state"
135
+ v-model="model.f_state"
136
+ placeholder='请选择'
137
+ condition="f_state in {}"
138
+ multiple="true"
139
+ :value.sync="model.f_state"
140
+ :options='$parent.$parent.chargeState'
141
+ close-on-select clear-button>
142
+ </v-select>
143
+ </div>
144
+
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">付款方式</label>
147
+ <v-select id="f_payment"
148
+ v-model="model.f_payment"
149
+ placeholder='请选择'
150
+ condition="f_payment in {}"
151
+ multiple="true"
152
+ :value.sync="model.f_payment"
153
+ :options='$parent.$parent.payments'
154
+ close-on-select clear-button>
155
+ </v-select>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">服务人员</label>
159
+ <v-select id="f_service_person"
160
+ v-model="model.f_service_person"
161
+ placeholder='请选择'
162
+ condition="f_service_person ='{}'"
163
+ :value.sync="model.f_service_person"
164
+ :options='$parent.$parent.services'
165
+ close-on-select clear-button>
166
+ </v-select>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">气表类型</label>
170
+ <v-select :value.sync="model.f_meter_classify" multiple
171
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
172
+ condition="f_meter_classify in {}"
173
+ close-on-select></v-select>
174
+ </div>
175
+ <div class="col-sm-2 form-group">
176
+ <label class="font_normal_body">气表品牌</label>
177
+ <v-select :value.sync="model.f_meter_brand" multiple
178
+ v-model="model.f_meter_brand"
179
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
180
+ condition="f_meter_brand in {}"
181
+ close-on-select></v-select>
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body" title="收据起始编号">收据票号</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_start"
186
+ condition="f_bill_number >= '{}'" placeholder="收据起始编号">
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body" title="收据终止编号">收据票号</label>
190
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_end"
191
+ condition="f_bill_number <= '{}'" placeholder="收据终止编号">
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </criteria>
196
+
197
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
198
+ <template partial='head'>
199
+ <tr>
200
+ <th>
201
+ <!-- <nobr>客户编号</nobr>-->
202
+ <data-order field="f_userinfo_code" name="客户编号"
203
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
204
+ </th>
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
+ <data-order field="f_address" name="客户地址"
220
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
221
+ </th>
222
+ <th>
223
+ <nobr>表号</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>客户电话</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>气表类型</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>气表品牌</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>卡号</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>收据票号</nobr>
239
+ </th>
240
+
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>
254
+ <nobr>数量</nobr>
255
+ </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>
278
+ <nobr>状态</nobr>
279
+ </th>
280
+ <th>
281
+ <!-- <nobr>收费日期</nobr>-->
282
+ <data-order field="f_operate_date" name="收费日期"
283
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
284
+ </th>
285
+ <th>
286
+ <nobr>服务人员</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>备注</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>人员</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>部门</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>公司</nobr>
299
+ </th>
300
+ <th><nobr>附件</nobr></th>
301
+ <!--<th><nobr>查看详情</nobr></th>-->
302
+ </tr>
303
+ </template>
304
+ <template partial='body'>
305
+ <td style="text-align: center;">
306
+ <nobr>
307
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.id}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_user_name}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_idnumber}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_address}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{row.f_meternumber}}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>{{row.f_user_phone}}</nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{row.f_meter_classify}}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{row.f_meter_brand}}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_card_id}}</nobr>
338
+ </td>
339
+
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_bill_number}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_brand_spec}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_typename}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_typenumber}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_unitprice}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_number}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_overlength_unitprice}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_overlength_number}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_discounts_money_detail}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_actual_materials_detail}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.f_disc_money}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_money}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.f_payment}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;">
380
+ <nobr>{{row.f_state}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>{{row.f_operate_date}}</nobr>
384
+ </td>
385
+ <td style="text-align: center;">
386
+ <nobr>{{row.f_service_person}}</nobr>
387
+ </td>
388
+ <td style="text-align: center;">
389
+ <nobr>{{row.f_comments}}</nobr>
390
+ </td>
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.f_operator}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.f_depname}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.f_orgname}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;"><nobr>
401
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
402
+ </nobr></td>
403
+ <!--<td style="text-align: center;">-->
404
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
405
+ <!--</td>-->
406
+ </template>
407
+ <template partial='foot'></template>
408
+ </data-grid>
409
+
410
+ </criteria-paged>
411
+
412
+ <table class="table-hover">
413
+ <tr style="position: relative" class="table-bordered">
414
+ <td
415
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
416
+ 汇总信息
417
+ </td>
418
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
419
+ 收款合计:&emsp;{{sumsmodel.f_money}}
420
+ </td>
421
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
422
+ 总户数合计:&emsp;{{sumsmodel.hushu}}
423
+ </td>
424
+ </tr>
425
+ </table>
426
+
427
+ </div>
428
+ <div class="flex" v-if="show">
429
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
430
+ </div>
431
+ </div>
432
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
433
+ <article slot="modal-body">
434
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
435
+ </article>
436
+ <footer slot="modal-footer" class="modal-footer">
437
+ </footer>
438
+ </modal>
439
+ </div>
440
+
441
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
442
+ <article slot="modal-body" class="modal-body">
443
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
444
+ </article>
445
+ <footer slot="modal-footer" class="modal-footer">
446
+ </footer>
447
+ </modal>
448
+
449
+ </template>
450
+
451
+ <script>
452
+ import {PagedList,HttpResetClass} from 'vue-client'
453
+ import defaultPrint from './config/DefaultPrint'
454
+ import exportConfig from './config/exportConfig'
455
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
456
+
457
+ let readySomething = async function (self) {
458
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
459
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
460
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
461
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
462
+ // await self.$refs.paged.$refs.cri.search()
463
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
464
+ await self.$MagLoadParams.loadParam()
465
+
466
+ self.initParams()
467
+ self.initSecuritypersons()
468
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
469
+ }
470
+ export default {
471
+ components: {
472
+ OtherChargeDetailQuery
473
+ },
474
+ props:['data'],
475
+ title: '其他收费查询',
476
+ data() {
477
+ return {
478
+ data: {},
479
+ other:[],
480
+ footer:[],
481
+ model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
482
+ criteriaShow: false,
483
+ orgCondtionStr: '',
484
+ modelval: [],
485
+ printshow: false,
486
+ all: false,
487
+ fields: {},
488
+ config: {
489
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
490
+ },
491
+ //排序
492
+ orderitem:'f_operate_date desc',
493
+ orderFields: {
494
+ f_operate_date: 'no'
495
+ },
496
+ //默认打印列
497
+ defaultfield: [],
498
+ thead: '',
499
+ tfoot: '',
500
+ initres: {
501
+ org:[this.$login.f.orgid],
502
+ dep:[],
503
+ user:[],
504
+ },
505
+ show:false,
506
+ showdetail:false,
507
+ otherchargeid:'',
508
+ rowdata:{},
509
+ meterbrands: [],
510
+ services:[],
511
+ //合计数据
512
+ sumsmodel: {},
513
+ showupload:false,
514
+ selected:{},
515
+ // 用气性质
516
+ gasproperties: [],
517
+ // 品名规格
518
+ typeNameList: [],
519
+ // 型号
520
+ typenumberList: []
521
+ }
522
+ },
523
+ ready() {
524
+ readySomething(this).then(() => {
525
+ this.$emit('ready')
526
+ }).catch((error) => {
527
+ this.$emit('error', error)
528
+ })
529
+ },
530
+ methods: {
531
+ view(row){
532
+ this.showupload = true
533
+ this.selected= row
534
+ },
535
+ initParams() {
536
+ // 初始化气表品牌
537
+ let brandArr = []
538
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
539
+ let temp = {}
540
+ temp.label = item.label
541
+ temp.value = item.value.f_meter_brand
542
+ brandArr.push(temp)
543
+ })
544
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
545
+ },
546
+ // 初始化安检人
547
+ initSecuritypersons () {
548
+ let origin = this.$appdata.getSingleValue('服务人员来源')
549
+ if (origin) {
550
+ try {
551
+ this.services = []
552
+ let http = new HttpResetClass()
553
+ http.load('post', '/rs/search', {
554
+ source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
555
+ userid: this.$login.f.id
556
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
557
+ console.log('获取安检人员', res.data)
558
+ for (let i = 0; i < res.data.length; i++) {
559
+ this.services.push({label: res.data[i].name, value: res.data[i].name})
560
+ }
561
+ })
562
+ } catch (e) {
563
+ console.log('获取安检人员失败')
564
+ }
565
+ }else {
566
+ this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
567
+ }
568
+ },
569
+ getotherfooter(){
570
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
571
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
572
+ this.other=[];
573
+ this.footer=[];
574
+ let exportdata = this.getCondition;
575
+ let otherInData=[];
576
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
577
+ let footerData=[],exportfield=this.getfield;
578
+ footerData.push("合计");
579
+ let self = this;
580
+ for(var field in self.sumsmodel){
581
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
582
+ }
583
+ this.footer.push(footerData);
584
+ this.other.push(otherInData);
585
+ },
586
+ search(){
587
+ this.$refs.paged.$refs.cri.search()
588
+ },
589
+ async selfSearch(args) {
590
+ if (this.data) {
591
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
592
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
593
+ }
594
+ args.condition = `${args.condition}` + this.orgCondtionStr
595
+ await this.model.search(args.condition, args.model)
596
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
597
+ this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
598
+ if(this.sumsmodel.hushu===null){
599
+ this.sumsmodel.hushu = 0
600
+ }
601
+ },
602
+ clear() {
603
+ //清空部门和人员
604
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
605
+ //部门和人员变为全选
606
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
607
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
608
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
609
+ this.$refs.paged.$refs.cri.model[key] = []
610
+ })
611
+ },
612
+ show() {
613
+ this.criteriaShow = true
614
+ },
615
+ hidden() {
616
+ this.criteriaShow = !this.criteriaShow
617
+ },
618
+ getRes(obj) {
619
+ this.orgCondtionStr = obj
620
+ },
621
+ cancel() {
622
+ this.show = false
623
+ },
624
+ dealmsg(val) {
625
+ console.log('---------------dealmsg')
626
+ this.rowdata=val
627
+ this.show=true
628
+ val.model = this.model.model
629
+ this.$dispatch('deal-msg', val)
630
+ },
631
+ stamp() {
632
+ this.all = false
633
+ //默认选择要打印的列
634
+ this.modelval = defaultPrint.config
635
+ this.fields = this.getfield
636
+ console.log('所有打印字段', this.fields)
637
+ this.printshow = true
638
+ this.put()
639
+ },
640
+ put() {
641
+ // 对Modelval进行排序
642
+ this.sortModelval()
643
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
644
+ for (let key of this.modelval) {
645
+ this.thead += '<th>' + this.fields[key] + '</th>'
646
+ }
647
+ this.thead += '</tr>'
648
+ },
649
+ print() {
650
+ this.$refs.print.PrintAsFile()
651
+ this.printshow = false
652
+ },
653
+ close() {
654
+ this.printshow = false
655
+ this.all = false
656
+ },
657
+ // 对选择的列进行排序
658
+ sortModelval() {
659
+ let sortModel = []
660
+ Object.keys(this.fields).forEach((key) => {
661
+ if (this.modelval.includes(key)) {
662
+ sortModel.push(key)
663
+ }
664
+ })
665
+ this.modelval = sortModel
666
+ console.log('选择的打印的字段', this.modelval)
667
+ },
668
+ showchargedetail(row){
669
+ this.showdetail=true
670
+ this.otherchargeid=row.id
671
+ },
672
+ userTypeChange (f_user_type) {
673
+ this.gasproperties = []
674
+ if (f_user_type) {
675
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
676
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
677
+ } else {
678
+ this.gasproperties = [{label: '全部', value: ''}]
679
+ }
680
+ },
681
+ setTypename (val) {
682
+ this.typenumberList = []
683
+ this.typeNameList = this.$appdata.getParam(val)
684
+ },
685
+ setTypenumber (val) {
686
+ this.typenumberList = this.$appdata.getParam(val)
687
+ },
688
+ sort (field, rule) {
689
+ // 将所有排序方式设为不排序,实现相互排斥
690
+ for (let key in this.orderFields) {
691
+ if (key === field) {
692
+ this.orderFields[key] = rule
693
+ } else {
694
+ this.orderFields[key] = 'no'
695
+ }
696
+ }
697
+ // 如果新规则不排序,还原为默认排序
698
+ if (rule === 'no') {
699
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
700
+ } else {
701
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
702
+ }
703
+
704
+ this.search()
705
+ }
706
+ },
707
+ watch: {
708
+ 'all'(val) {
709
+ if (val) {
710
+ this.modelval = this.bodyData
711
+ } else {
712
+ this.modelval = defaultPrint.config
713
+ this.put()
714
+ }
715
+ },
716
+ 'modelval.length'() {
717
+ this.put()
718
+ },
719
+ sumsmodel:{
720
+ handler: function(val) {
721
+ this.getotherfooter();
722
+ },
723
+ deep: true
724
+ }
725
+ },
726
+ computed: {
727
+ getCondition() {
728
+ return {
729
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
730
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
731
+ },
732
+ service_person() {
733
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
734
+ },
735
+ getfield() {
736
+ return exportConfig.otherchargeConfig
737
+ },
738
+ chargetype() {
739
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
740
+ },
741
+ userTypes() {
742
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
743
+ },
744
+ chargeState() {
745
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
746
+ },
747
+ metertypes() {
748
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
749
+ },
750
+ payments() {
751
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
752
+ }
753
+ }
754
+ }
755
+ </script>