manage-client 3.3.217 → 3.3.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  6. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/7.4/gc.properties +0 -0
  8. package/.npmignore +10 -0
  9. package/build/.npmignore +1 -0
  10. package/build/dev-server.js +190 -190
  11. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  12. package/gradlew +234 -234
  13. package/gradlew.bat +89 -89
  14. package/hs_err_pid13052.log +206 -206
  15. package/package-lock.json +10123 -0
  16. package/package.json +111 -111
  17. package/src/components/SellReport/BusinessClassify.vue +292 -292
  18. package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
  19. package/src/components/SellReport/ManageSellType.vue +267 -267
  20. package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
  21. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  22. package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
  23. package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
  24. package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
  25. package/src/components/sale/businessquery/BalanceTable.vue +482 -482
  26. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  27. package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
  28. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  29. package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
  30. package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
  31. package/src/components/sale/businessquery/CollectManage.vue +6 -6
  32. package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
  33. package/src/components/sale/businessquery/DisableQuery.vue +523 -523
  34. package/src/components/sale/businessquery/EnableQuery.vue +462 -462
  35. package/src/components/sale/businessquery/FMYGasQuery.vue +813 -813
  36. package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
  37. package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
  38. package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
  39. package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
  40. package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
  41. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
  42. package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
  43. package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
  44. package/src/components/sale/businessquery/Handgasquery.vue +477 -477
  45. package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
  46. package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
  47. package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
  48. package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
  49. package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
  50. package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
  51. package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
  52. package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
  53. package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
  54. package/src/components/sale/businessquery/SellingHand.vue +421 -421
  55. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  56. package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
  57. package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
  58. package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
  59. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  60. package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
  61. package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
  62. package/src/components/sale/businessquery/usergas.vue +315 -315
  63. package/src/components/sale/config/exportConfig.js +2761 -2761
  64. package/src/components/sale/config/tableConfig.js +59 -59
  65. package/src/components/sale/filesquery/FireQuery.vue +539 -539
  66. package/src/components/sale/filesquery/RecordInfoQuery.vue +1443 -1443
  67. package/src/components/sale/filesquery/UserQuery.vue +977 -977
  68. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
  69. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +695 -695
  70. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +646 -646
  71. package/src/components/webmeter/WebmeterQuery.vue +77 -77
  72. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
  73. package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
  74. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
  75. package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
  76. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +552 -552
  77. package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
  78. package/src/components/webmeter/recharge/RechargeList.vue +371 -371
  79. package/src/components/webmeter/report/ReportList.vue +453 -453
  80. package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
  81. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  82. package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +12 -10
  83. package/src/filiale/ancheng/exportConfig.js +120 -120
  84. package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
  85. package/src/filiale/bayan/PrintTableManage.vue +242 -242
  86. package/src/filiale/bayan/config/DefaultPrint.js +6 -6
  87. package/src/filiale/bayan/config/exportConfig.js +2642 -2642
  88. package/src/filiale/bayan/config/tableConfig.js +59 -59
  89. package/src/filiale/bayan/sale.js +8 -8
  90. package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
  91. package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
  92. package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
  93. package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
  94. package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
  95. package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
  96. package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
  97. package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
  98. package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
  99. package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
  100. package/src/filiale/bayan/webmeterManage.js +26 -26
  101. package/src/filiale/dingcheng/DefaultPrint.js +6 -6
  102. package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
  103. package/src/filiale/dingcheng/exportConfig.js +2765 -2765
  104. package/src/filiale/dingcheng/sale.js +9 -9
  105. package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
  106. package/src/filiale/hantou/config/DefaultPrint.js +6 -6
  107. package/src/filiale/hantou/config/exportConfig.js +2667 -2667
  108. package/src/filiale/hantou/config/tableConfig.js +54 -54
  109. package/src/filiale/hantou/sale.js +8 -8
  110. package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
  111. package/src/filiale/jingyang/RechargeList.vue +346 -346
  112. package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
  113. package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
  114. package/src/filiale/jingyang/config/tableConfig.js +58 -58
  115. package/src/filiale/jingyang/sale.js +8 -8
  116. package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
  117. package/src/filiale/kelai/GasStatistics.vue +561 -561
  118. package/src/filiale/kelai/NewAccountQuery.vue +417 -417
  119. package/src/filiale/kelai/NewGasStatistics.vue +542 -542
  120. package/src/filiale/kelai/feimin_style_kl.vue +400 -400
  121. package/src/filiale/kelai/reportManage.js +13 -13
  122. package/src/filiale/kelai/sale.js +17 -17
  123. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  124. package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
  125. package/src/filiale/macheng/ArrearsQuery.vue +831 -831
  126. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  127. package/src/filiale/macheng/config/exportConfig.js +79 -79
  128. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
  129. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  130. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  131. package/src/filiale/meihekou/CollectManage.vue +152 -152
  132. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  133. package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
  134. package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
  135. package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
  136. package/src/filiale/meihekou/config/exportConfig.js +829 -829
  137. package/src/filiale/meihekou/sale.js +39 -39
  138. package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
  139. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  140. package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
  141. package/src/filiale/qianneng/exportConfig.js +232 -232
  142. package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
  143. package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
  144. package/src/filiale/rizhao/BusinessManage.vue +212 -212
  145. package/src/filiale/rizhao/sale.js +13 -13
  146. package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
  147. package/src/filiale/shangluo/sale.js +17 -17
  148. package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
  149. package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
  150. package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
  151. package/src/filiale/shanxian/EchartsBox.vue +134 -134
  152. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  153. package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
  154. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  155. package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
  156. package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
  157. package/src/filiale/taizhoukesi/sale.js +11 -11
  158. package/src/filiale/tongchuan/GasInspection.vue +716 -716
  159. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  160. package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
  161. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  162. package/src/filiale/tongchuan/config/exportConfig.js +858 -858
  163. package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
  164. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  165. package/src/filiale/wenxi/config/exportConfig.js +995 -995
  166. package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
  167. package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
  168. package/src/filiale/xinjiangdexin/sale.js +7 -7
  169. package/src/filiale/yangchun/ChangeMeterQuery.vue +716 -716
  170. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  171. package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
  172. package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
  173. package/src/filiale/yangchun/RecordInfoQuery.vue +1477 -1477
  174. package/src/filiale/yangchun/UserQuery.vue +980 -980
  175. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  176. package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
  177. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  178. package/src/filiale/yangchun/reportManage.js +6 -6
  179. package/src/filiale/yangchun/sale.js +20 -20
  180. package/src/filiale/yangchun/webmeterManage.js +5 -5
  181. package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
  182. package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
  183. package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
  184. package/src/filiale/yuncheng/MeterQuery.vue +995 -995
  185. package/src/filiale/yuncheng/config/exportConfig.js +2674 -2674
  186. package/src/filiale/yuncheng/sale.js +23 -23
  187. package/src/filiale/zhongyi/GasStatistics.vue +522 -522
  188. package/src/filiale/zhongyi/exportConfig.js +2554 -2554
  189. package/src/main.js +68 -68
  190. package/src/plugins/LodopFuncs.js +159 -159
  191. package/src/reportManage.js +773 -773
  192. package/src/saleManage.js +689 -689
  193. package/src/webmeterManage.js +130 -130
@@ -1,1289 +1,1289 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search" v-if="!show">
4
- <div class="flex">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label 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
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</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
- </datepicker>
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户编号</label>
30
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label class="font_normal_body">客户名称</label>
35
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
- condition="f_user_name like '%{}%'" placeholder="客户名称">
37
- </div>
38
- <div class="span" style="float:right;">
39
- <button class="button_search button_spacing" @click="search()">查询</button>
40
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
-
42
- <button class="btn btn-default" @click="$parent.$parent.Fileinput()" v-show="$parent.$parent.authArr.includes('送反盘权限')">反盘导入</button>
43
- <export-excel :data="$parent.$parent.getCondition"
44
- :field="$parent.$parent.getBankfield" :header="$parent.$parent.other" v-show="$parent.$parent.authArr.includes('送反盘权限')"
45
- sqlurl="api/af-revenue/logic/offerexportfile" sql-name="newhandplanQuery_shaoguan" template-name='送盘导出' btn-name="送盘导出"
46
- :choose-col="true"></export-excel>
47
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
48
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
49
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
50
- :choose-col="true"></export-excel>
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
53
- titletable="抄表查询"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
-
56
- <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>
57
- </div>
58
- </div>
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">小区名称</label>
63
- <v-select :value.sync="model.f_residential_area"
64
- class="select_list select"
65
- enter-push
66
- multiple = "true"
67
- v-model="model.f_residential_area"
68
- style="width: 60%"
69
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
70
- close-on-select>
71
-
72
- </v-select>
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">楼&emsp;栋&emsp;</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
77
- condition="f_building like '%{}%'" placeholder="楼栋">
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">客户地址</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
- condition="f_address like '%{}%'" placeholder='客户地址'>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">抄表状态</label>
86
- <v-select :value.sync="model.f_meter_state"
87
- v-model="model.f_meter_state"
88
- :options='$parent.$parent.meterstate' placeholder='请选择'
89
- condition="f_meter_state = '{}'"
90
- close-on-select></v-select>
91
- </div>
92
- <div class="col-sm-2 form-group">
93
- <label class="font_normal_body">表单状态</label>
94
- <v-select :value.sync="model.f_hand_state"
95
- v-model="model.f_hand_state"
96
- :options='$parent.$parent.handstate' placeholder='请选择'
97
- condition="f_hand_state = '{}'"
98
- close-on-select></v-select>
99
- </div>
100
- <div class="col-sm-2 form-group">
101
- <label class="font_normal_body">录入人员</label>
102
- <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
103
- condition="f_input_person like '%{}%'" placeholder='录入人员'>
104
- </div>
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">是否缴费</label>
107
- <v-select :value.sync="model.f_whether_pay"
108
- v-model="model.f_whether_pay"
109
- :options='$parent.$parent.whetherPay' placeholder='请选择'
110
- condition="f_whether_pay = '{}'"
111
- close-on-select></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body" >收款方式</label>
115
- <v-select :value.sync="model.f_payment" multiple
116
- v-model="model.f_payment"
117
- :options='$parent.$parent.dypayment' placeholder='请选择'
118
- condition="f_dypayment in {}"
119
- close-on-select></v-select>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
123
- <v-select :value.sync="model.f_bgl"
124
- v-model="model.f_bgl"
125
- :options='$parent.$parent.bgl' placeholder='请选择'
126
- condition="f_bgl = '{}'"
127
- close-on-select></v-select>
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body">客户类型</label>
131
- <v-select :value.sync="model.f_user_type"
132
- @change="$parent.$parent.userTypeChange()"
133
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
134
- condition="f_user_type = '{}'"
135
- close-on-select></v-select>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">用气性质</label>
139
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
140
- :options='$parent.$parent.gasproperties' placeholder='请选择'
141
- condition="f_gasproperties = '{}'"
142
- close-on-select></v-select>
143
- </div>
144
- <div class="col-sm-2 form-group">
145
- <label class="font_normal_body">气价类型</label>
146
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
147
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
148
- close-on-select v-ref:type>
149
- </v-select>
150
- </div>
151
- <div class="col-sm-2 form-group">
152
- <label class="font_normal_body">气价名称</label>
153
- <v-select :value.sync="model.f_price_name"
154
- v-model="model.f_price_name"
155
- multiple
156
- :options="$parent.$parent.getPricenames"
157
- condition="f_price_name in {}"
158
- ></v-select>
159
- </div>
160
- <div class="col-sm-2 form-group">
161
- <label class="font_normal_body">下账状态</label>
162
- <v-select :value.sync="model.f_accounts_state"
163
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
164
- condition="f_accounts_state = '{}'"
165
- close-on-select></v-select>
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">气表类型</label>
169
- <v-select :value.sync="model.f_meter_classify" multiple
170
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
171
- condition="f_meter_classify in {}"
172
- close-on-select></v-select>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">气表品牌</label>
176
- <v-select :value.sync="model.f_meter_brand" multiple
177
- v-model="model.f_meter_brand"
178
- :options='$parent.$parent.meterbrands' placeholder='请选择'
179
- condition="f_meter_brand in {}"
180
- close-on-select></v-select>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body">用&ensp;气&ensp;量</label>
184
- <input type="text" style="width:30%" class="input_search" title="大于等于"
185
- v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
186
- <input type="text" style="width:30%" class="input_search" title="小于等于"
187
- v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
188
- </div>
189
- <!-- <div class="col-sm-2 form-group">-->
190
- <!-- <label class="font_normal_body">气价名称</label>-->
191
- <!-- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name" :options="$parent.$parent.prices"-->
192
- <!-- condition="f_price_name = '{}'" close-on-select></v-select>-->
193
- <!-- </div>-->
194
- <div class="col-sm-2 form-group">
195
- <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
196
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
197
- condition="f_meternumber = '{}' " placeholder="表号">
198
- </div>
199
- <div class="col-sm-2 form-group">
200
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
201
- <v-select :value.sync="model.f_inputtor"
202
- v-model="model.f_inputtor"
203
- :options='$parent.$parent.inputtores' placeholder='请选择'
204
- condition="f_inputtor = '{}'"
205
- close-on-select :search="false">
206
- </v-select>
207
- </div>
208
- <!--表册片区-->
209
- <div class="col-sm-2 form-group">
210
- <label class="font_normal_body">表册片区</label>
211
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
212
- @change="$parent.$parent.inputtorchange"
213
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
214
- style="width:60%"
215
- close-on-select
216
- condition="f_book_slice_area = '{}'"></v-select>
217
- </div>
218
- <div class="col-sm-2 form-group">
219
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
220
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
221
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
222
- style="width:60%"
223
- close-on-select
224
- condition="f_file_meter_book_num = '{}'"></v-select>
225
- </div>
226
- <div class="col-sm-2 form-group" >
227
- <label for="belongmonth" class="font_normal_body" >所属年月</label>
228
- <datepicker placeholder="所属年月" style="width:60%"
229
- v-model="model.belongmonth"
230
- :value.sync="model.belongmonth"
231
- :format="'yyyy-MM'"
232
- :show-reset-button="true"
233
- condition="belongmonth = '{}'"
234
- :select-month="true">
235
- </datepicker>
236
- </div>
237
- <div class="col-sm-2 form-group">
238
- <label class="font_normal_body">银行名称</label>
239
- <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
240
- :options='$parent.$parent.banklist' placeholder='银行名称'
241
- style="width:60%"
242
- close-on-select
243
- condition="f_bank_name = '{}'"></v-select>
244
- </div>
245
- <div class="col-sm-2 form-group">
246
- <label for="startDate" class="font_normal_body">收费日期</label>
247
- <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
248
- v-model="model.sellStartDate"
249
- :value.sync="model.sellStartDate"
250
- :format="'yyyy-MM-dd 00:00:00'"
251
- :show-reset-button="true"
252
- condition="f_sellinggas_operate_date >= '{}'">
253
- </datepicker>
254
- </div>
255
- <div class="col-sm-2 form-group">
256
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
257
- <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
258
- v-model="model.sellEndDate"
259
- :value.sync="model.sellEndDate"
260
- :format="'yyyy-MM-dd 23:59:59'"
261
- :show-reset-button="true"
262
- condition="f_sellinggas_operate_date <= '{}'">
263
- </datepicker>
264
- </div>
265
- </div>
266
- </div>
267
- </criteria>
268
-
269
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
270
- <template partial='head'>
271
- <tr>
272
- <th>
273
- <nobr>客户编号</nobr>
274
- </th>
275
- <th>
276
- <nobr>客户名称</nobr>
277
- </th>
278
- <th>
279
- <nobr>片区</nobr>
280
- </th>
281
- <th>
282
- <nobr>小区</nobr>
283
- </th>
284
- <th>
285
- <nobr>表册片区</nobr>
286
- </th>
287
- <th>
288
- <nobr>客户地址</nobr>
289
- </th>
290
- <th>
291
- <nobr>客户手机</nobr>
292
- </th>
293
- <th>
294
- <nobr>表号</nobr>
295
- </th>
296
- <th>
297
- <nobr>数据年月</nobr>
298
- </th>
299
- <th>
300
- <nobr>上期底数</nobr>
301
- </th>
302
- <th>
303
- <nobr>本期底数</nobr>
304
- </th>
305
- <th>
306
- <nobr>用气量</nobr>
307
- </th>
308
- <th>
309
- <nobr>违约金</nobr>
310
- </th>
311
- <th>
312
- <nobr>用气金额</nobr>
313
- </th>
314
- <th>
315
- <nobr>已交金额</nobr>
316
- </th>
317
- <th>
318
- <nobr>优惠金额</nobr>
319
- </th>
320
- <th>
321
- <nobr>上期余额</nobr>
322
- </th>
323
- <th>
324
- <nobr>本期余额</nobr>
325
- </th>
326
- <th>
327
- <nobr>下账状态</nobr>
328
- </th>
329
- <th>
330
- <nobr>收费时间</nobr>
331
- </th>
332
- <th>
333
- <nobr>收费人员</nobr>
334
- </th>
335
- <th>
336
- <nobr>冲正时间</nobr>
337
- </th>
338
- <th>
339
- <nobr>冲正人员</nobr>
340
- </th>
341
- <th>
342
- <nobr>所属年月</nobr>
343
- </th>
344
- <th>
345
- <nobr>录入日期</nobr>
346
- </th>
347
- <th>
348
- <nobr>气价名称</nobr>
349
- </th>
350
- <th>
351
- <nobr>一阶气量</nobr>
352
- </th>
353
- <th>
354
- <nobr>一阶单价</nobr>
355
- </th>
356
- <th>
357
- <nobr>一阶气费</nobr>
358
- </th>
359
- <th>
360
- <nobr>二阶气量</nobr>
361
- </th>
362
- <th>
363
- <nobr>二阶单价</nobr>
364
- </th>
365
- <th>
366
- <nobr>二阶气费</nobr>
367
- </th>
368
- <th>
369
- <nobr>三阶气量</nobr>
370
- </th>
371
- <th>
372
- <nobr>三阶单价</nobr>
373
- </th>
374
- <th>
375
- <nobr>三阶气费</nobr>
376
- </th>
377
- <th>
378
- <nobr>天数</nobr>
379
- </th>
380
- <th>
381
- <nobr>抄表员</nobr>
382
- </th>
383
- <th>
384
- <nobr>录入人员</nobr>
385
- </th>
386
- <th>
387
- <nobr>是否缴费</nobr>
388
- </th>
389
-
390
- <th>
391
- <nobr>抄表状态</nobr>
392
- </th>
393
- <th>
394
- <nobr>状态</nobr>
395
- </th>
396
- <th>
397
- <nobr>下发人员</nobr>
398
- </th>
399
- <th>
400
- <nobr>部门</nobr>
401
- </th>
402
- <th>
403
- <nobr>公司</nobr>
404
- </th>
405
- <th><nobr>附件</nobr></th>
406
- </tr>
407
- </template>
408
- <template partial='body'>
409
- <td style="text-align: center;">
410
- <nobr>
411
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
412
- </td>
413
- <td style="text-align: center;">
414
- <nobr>{{row.f_user_name}}</nobr>
415
- </td>
416
- <td style="text-align: center;">
417
- <nobr>{{row.f_zones}}</nobr>
418
- </td>
419
- <td style="text-align: center;">
420
- <nobr>{{row.f_residential_area}}</nobr>
421
- </td>
422
- <td style="text-align: center;">
423
- <nobr>{{row.f_book_slice_area}}</nobr>
424
- </td>
425
- <td style="text-align: center;">
426
- <nobr>{{row.f_address}}</nobr>
427
- </td>
428
-
429
- <td style="text-align: center;">
430
- <nobr>{{row.phone}}</nobr>
431
- </td>
432
- <td style="text-align: center;">
433
- <nobr>{{row.f_meternumber}}</nobr>
434
- </td>
435
- <td style="text-align: center;">
436
- <nobr>{{row.ym_data}}</nobr>
437
- </td>
438
- <td style="text-align: center;">
439
- <nobr>{{row.f_last_tablebase}}</nobr>
440
- </td>
441
- <td style="text-align: center;">
442
- <nobr>{{row.f_tablebase}}</nobr>
443
- </td>
444
- <td style="text-align: center;">
445
- <nobr>{{row.f_oughtamount}}</nobr>
446
- </td>
447
- <td style="text-align: center;">
448
- <nobr>{{row.overdue}}</nobr>
449
- </td>
450
- <td style="text-align: center;">
451
- <nobr>{{row.f_oughtfee}}</nobr>
452
- </td>
453
- <td style="text-align: center;">
454
- <nobr>{{row.f_debt_money}}</nobr>
455
- </td>
456
- <td style="text-align: center;">
457
- <nobr>{{row.f_privilege_money}}</nobr>
458
- </td>
459
- <td style="text-align: center;">
460
- <nobr>{{row.f_balance}}</nobr>
461
- </td>
462
- <td style="text-align: center;">
463
- <nobr>{{row.f_curbalance}}</nobr>
464
- </td>
465
- <td style="text-align: center;">
466
- <nobr>{{row.f_accounts_state}}</nobr>
467
- </td>
468
- <td style="text-align: center;">
469
- <nobr>{{row.f_sellinggas_operate_date}}</nobr>
470
- </td>
471
- <td style="text-align: center;">
472
- <nobr>{{row.f_sell_operator}}</nobr>
473
- </td>
474
- <td style="text-align: center;">
475
- <nobr>{{row.f_corrhand_date}}</nobr>
476
- </td>
477
- <td style="text-align: center;">
478
- <nobr>{{row.f_corrhand_operator}}</nobr>
479
- </td>
480
- <td>
481
- <nobr>{{row.belongmonth}}</nobr>
482
- </td>
483
- <td style="text-align: center;">
484
- <nobr>{{row.f_input_date}}</nobr>
485
- </td>
486
- <td style="text-align: center;">
487
- <nobr>{{row.f_price_name}}</nobr>
488
- </td>
489
- <td style="text-align: center;">
490
- <nobr>{{row.f_stair1amount}}</nobr>
491
- </td>
492
- <td style="text-align: center;">
493
- <nobr>{{row.f_stair1price}}</nobr>
494
- </td>
495
- <td style="text-align: center;">
496
- <nobr>{{row.f_stair1fee}}</nobr>
497
- </td>
498
- <td style="text-align: center;">
499
- <nobr>{{row.f_stair2amount}}</nobr>
500
- </td>
501
- <td style="text-align: center;">
502
- <nobr>{{row.f_stair2price}}</nobr>
503
- </td>
504
- <td style="text-align: center;">
505
- <nobr>{{row.f_stair2fee}}</nobr>
506
- </td>
507
- <td style="text-align: center;">
508
- <nobr>{{row.f_stair3amount}}</nobr>
509
- </td>
510
- <td style="text-align: center;">
511
- <nobr>{{row.f_stair3price}}</nobr>
512
- </td>
513
- <td style="text-align: center;">
514
- <nobr>{{row.f_stair3fee}}</nobr>
515
- </td>
516
- <td style="text-align: center;">
517
- <nobr>{{row.dd}}</nobr>
518
- </td>
519
- <td style="text-align: center;">
520
- <nobr>{{row.f_inputtor}}</nobr>
521
- </td>
522
- <td style="text-align: center;">
523
- <nobr>{{row.f_input_person}}</nobr>
524
- </td>
525
- <td style="text-align: center;">
526
- <nobr>{{row.f_whether_pay}}</nobr>
527
- </td>
528
-
529
- <td style="text-align: center;">
530
- <nobr>{{row.f_meter_state}}</nobr>
531
- </td>
532
- <td style="text-align: center;">
533
- <nobr>{{row.f_hand_state}}</nobr>
534
- </td>
535
- <td style="text-align: center;">
536
- <nobr>{{row.f_operator}}</nobr>
537
- </td>
538
- <td style="text-align: center;">
539
- <nobr>{{row.f_depname}}</nobr>
540
- </td>
541
- <td style="text-align: center;">
542
- <nobr>{{row.f_orgname}}</nobr>
543
- </td>
544
- <td style="text-align: center;"><nobr>
545
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
546
- <button v-if="row.f_notified_path" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别</button>
547
- </nobr></td>
548
- </template>
549
- <template partial='foot'></template>
550
- </data-grid>
551
- </criteria-paged>
552
-
553
- <table class="table-hover">
554
- <tr style="position: relative;margin-top: -16px;" class="table-bordered">
555
- <td
556
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
557
- 汇总信息
558
- </td>
559
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
560
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
561
- </td>
562
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
563
- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
564
- </td>
565
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
566
- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
567
- </td>
568
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
569
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
570
- </td>
571
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
572
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
573
- </td>
574
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
575
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
576
- </td>
577
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
578
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
579
- </td>
580
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
581
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
582
- </td>
583
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
584
- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
585
- </td>
586
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
587
- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
588
- </td>
589
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
590
- 应交气量合计:&emsp;{{sumsmodel.f_oughtamount}}
591
- </td>
592
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
593
- 已交气量合计:&emsp;{{sumsmodel.alloughtfee}}
594
- </td>
595
- </tr>
596
- </table>
597
- </div>
598
- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
599
- <article slot="modal-body" class="modal-body">
600
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
601
- </article>
602
- <footer slot="modal-footer" class="modal-footer">
603
- </footer>
604
- </modal>
605
- </div>
606
- <div class="flex" v-if="show">
607
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
608
- </div>
609
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
610
- <article slot="modal-body">
611
- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="机表抄表" :isremark="false" style="width:auto" ></upload>
612
- </article>
613
- <footer slot="modal-footer" class="modal-footer">
614
- </footer>
615
- </modal>
616
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
617
- <header slot="modal-header" class="modal-header">
618
- 抄表图像识别照片
619
- </header>
620
- <article slot="modal-body" class="modal-body">
621
- <div class="from-group">
622
- <img-self :src="imgfilename" width="500" height="500"></img-self>
623
- </div>
624
- </article>
625
- </modal>
626
-
627
- <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
628
- <header slot="modal-header" class="modal-header">
629
- 反盘导入
630
- </header>
631
- <article slot="modal-body" class="modal-body">
632
- <div class="progress" style="margin: 20px" >
633
- <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
634
- {{percent}}%
635
- </div>
636
- </div>
637
- </article>
638
- <footer slot="modal-footer" class="modal-footer">
639
- <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
640
- </footer>
641
- </modal>
642
- <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
643
- </div>
644
- </template>
645
-
646
- <script>
647
- import {PagedList, HttpResetClass} from 'vue-client'
648
- import defaultPrint from '../../components/sale/config/DefaultPrint'
649
- import exportConfig from './exportConfig'
650
- import axios from 'axios'
651
-
652
- let readySomething = async function (self) {
653
- //加载抄表册
654
- self.$MagGetSaleParam.initinputtor();
655
- self.getinputtores();
656
- self.initmeterbook();
657
- // await self.$LoadParams.loadMeterBook(self.f_filialeid)
658
- // self.loadMeterBooks()
659
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
660
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
661
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
662
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
663
- // await self.$refs.paged.$refs.cri.search()
664
- await self.$getConfig(self, 'HandplanQuery')
665
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
666
- await self.$MagLoadParams.loadParam()
667
- // await self.$MagLoadParams.loadParam()
668
- self.initParams()
669
- console.log('开始查询')
670
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
671
- }
672
- export default {
673
- props:['data'],
674
- title: '机表抄表查询',
675
- data() {
676
- return {
677
- iswork:false,
678
- other:[],
679
- footer:[],
680
- data: {},
681
- model: new PagedList('api/af-revenue/sql/handplanQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
682
- f_oughtamount: 0,
683
- f_oughtfee: 0,
684
- f_stair1amount: 0,
685
- f_stair1fee: 0,
686
- f_stair2amount: 0,
687
- f_stair2fee: 0,
688
- f_stair3amount: 0,
689
- f_stair3fee: 0,
690
- f_surplus_gas: 0,
691
- f_haircut_gas: 0,
692
- alloughtfee:0
693
- }),
694
- initres: {
695
- org:[this.$login.f.orgid],
696
- dep:[],
697
- user:[],
698
- },
699
- show:false,
700
- rowdata:{},
701
- criteriaShow: false,
702
- residentialArea: [],
703
- orgCondtionStr: '',
704
- modelval: [],
705
- gasproperties:[],
706
- inputtouPerson: [],
707
- meterbrands: [],
708
- printshow: false,
709
- f_filialeid: this.$login.f.f_orgid,
710
- all: false,
711
- fields: {},
712
- thead: '',
713
- tfoot: '',
714
- showupload:false,
715
- selected:{},
716
-
717
- // 下拉框
718
-
719
- //合计数据
720
- sumsmodel: {},
721
- defaultfield: [],
722
- config: {
723
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
724
- },
725
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费"}],
726
- batchmoneyShow:false,
727
- prices: [],
728
- bgl:[{label: '全部', value: ''},{label: '有', value: '1'},{label: '无', value: '0'}],
729
- meterbooks:[{label: '全部',value: ''}], //抄表册
730
- tempfalg :false,
731
- lastorgstr:'',
732
- allorgid:[],
733
- inputtores:[{label: '全部',value: ''}], //抄表员
734
- //表册片区
735
- bookSlice:[{label: '全部',value: ''}],
736
- imgshow:false,
737
- imgfilename:'',
738
- percent:0,
739
- progressShow:false,
740
- uuida:'',
741
- timer:'',
742
- }
743
- },
744
- ready() {
745
- this.getaddress()
746
- readySomething(this).then(() => {
747
- this.$emit('ready')
748
- }).catch((error) => {
749
- this.$emit('error', error)
750
- })
751
- },
752
- methods: {
753
- getuuid(){
754
- let uuidA = '';
755
- var s = [];
756
- var hexDigits = '0123456789abcdef';
757
- for (var i = 0; i < 36; i++) {
758
- s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
759
- }
760
- s[14] = '4';
761
- s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
762
- s[8] = s[13] = s[18] = s[23] = '-';
763
- uuidA = s.join('');
764
- this.uuida = uuidA;
765
- },
766
- progressclose(){
767
- this.progressShow = false;
768
- if(this.timer != null){
769
- clearInterval(this.timer);
770
- }
771
- },
772
- async initmeterbook(orgstr){
773
- if(orgstr == null ){
774
- orgstr = this.f_filialeid;
775
- }
776
- //获取新的抄表册,先去清理所有的抄表册
777
- this.$GetSaleParam.meterbooks = [];
778
- //开始加载新的抄表册
779
- await this.$LoadParams.loadMeterBook(orgstr)
780
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
781
- },
782
- //初始化片区
783
- async initSlice (val) {
784
- if (val) {
785
- let getAllArea = await this.$resetpost('/rs/search', {
786
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
787
- userid: this.$login.f.id
788
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
789
- let arr = getAllArea.data.filter((res) => {
790
- return res.parentid == val
791
- })
792
- this.bookSlice = []
793
- arr.forEach((res) => {
794
- this.bookSlice.push({label: res.name, value: res.name})
795
- })
796
- }
797
- },
798
- //表册片区和抄表册关联
799
- async inputtorchange(){
800
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
801
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
802
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
803
- if((val2.length>0)){
804
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
805
- /*if (val1[0]){
806
- condition = condition+ ` and f_meter_book = '${val1[0]}' `
807
- }*/
808
- if(val2[0]) {
809
- condition = condition + ` and f_book_slice_area = '${val2}' `
810
- }
811
- let param={
812
- items:'*',
813
- tablename:'t_meter_book',
814
- condition:condition,
815
- orderitem:'id'
816
- }
817
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
818
- if (getMeterBooks.data) {
819
- if(getMeterBooks.data.length >0){
820
- let rs = [];
821
- getMeterBooks.data.forEach((item)=>{
822
- let temp = {
823
- label:item.f_book_name,
824
- value:item.id
825
- };
826
- rs.push(temp);
827
-
828
- })
829
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
830
- }else{
831
- this.meterbooks = [{label: '全部',value: ''}];
832
- }
833
- }
834
- }else{
835
- this.meterbooks = [{label: '全部',value: ''}];
836
- this.initmeterbook();
837
- }
838
- },
839
- async initmeterbook(orgstr){
840
- if(orgstr == null ){
841
- orgstr = this.f_filialeid;
842
- }
843
- //获取新的抄表册,先去清理所有的抄表册
844
- this.$GetSaleParam.meterbooks = [];
845
- //开始加载新的抄表册
846
- await this.$LoadParams.loadMeterBook(orgstr)
847
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
848
- },
849
-
850
- async getinputtores () {
851
- // 获取抄表员
852
- let rs = []
853
- if (this.$login.f.f_gasman.length > 0) {
854
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
855
- let temp = {
856
- label: this.$login.f.f_gasman[i].name,
857
- value: this.$login.f.f_gasman[i].name
858
- }
859
- rs.push(temp)
860
- }
861
- }
862
- this.inputtores = [{label: '全部', value: ''}, ...rs]
863
- this.inputtores.push({label: "微信公众号", value: "微信公众号"})
864
- },
865
- async updateParams() {
866
- await this.$MagLoadParams.loadParam(this.f_filialeid)
867
- this.inputtores = [];
868
- this.inputtores.push({label: "全部", value: ""})
869
- this.initSlice(this.f_filialeid)
870
- if(this.allorgid!=null){
871
- this.allorgid.forEach((res)=>{
872
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
873
- })
874
- }
875
- this.initParams()
876
- },
877
- view(row){
878
- this.showupload = true
879
- this.selected= row
880
- },
881
- imgclose(){
882
- this.imgshow = false
883
- },
884
- imgShow(val){
885
- this.imgfilename = `rs/image/file/`+val
886
- this.imgshow = true
887
- },
888
- initParams() {
889
- // 初始化气表品牌
890
- let brandArr = []
891
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
892
- let temp = {}
893
- temp.label = item.label
894
- temp.value = item.value.f_meter_brand
895
- brandArr.push(temp)
896
- })
897
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
898
- //初始化气价
899
- let result = []
900
- this.$MagGetSaleParam.prices.forEach((item) => {
901
- if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
902
- let value = {
903
- label: item.f_price_name,
904
- value: item.f_price_name
905
- }
906
- result.push(value)
907
- }
908
- })
909
- let hash = {}
910
- result = result.reduce((item, next) => {
911
- hash[next.label] ? '' : hash[next.label] = true && item.push(next)
912
- return item
913
- }, [])
914
- this.prices = Array.from(new Set(result))
915
- },
916
- getotherfooter(){
917
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
918
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
919
- this.other=[];
920
- this.footer=[];
921
- let exportdata = this.getCondition;
922
- let otherInData=[];
923
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
924
- let footerData=[],exportfield=this.getfield;
925
- footerData.push("合计");
926
- let self = this;
927
- for(var field in self.sumsmodel){
928
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
929
- }
930
- this.footer.push(footerData);
931
- this.other.push(otherInData);
932
- },
933
- async getaddress(){
934
- let HttpReset = new HttpResetClass()
935
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
936
- data: {
937
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
938
- }
939
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
940
- console.log('小区',data)
941
- let house = [{label: '全部', value: ''}]
942
- for (let row of data.data){
943
- house.push({label: row.f_residential_area, value: row.f_residential_area})
944
- }
945
- this.residentialArea = house
946
- },
947
- Fileinput(){
948
- this.batchmoneyShow=true;
949
- },
950
- search(){
951
- this.$refs.paged.$refs.cri.search()
952
- },
953
- cancel() {
954
- this.show = false
955
- },
956
- selfSearch(args) {
957
- if (this.data) {
958
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
959
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
960
- }
961
- if (this.$refs.paged.$refs.cri.model.startDate === ''|| this.$refs.paged.$refs.cri.model.endDate === '') {
962
- this.$showMessage('请选择录入日期开始时间和结束时间!')
963
- return
964
- }
965
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
966
- if(this.area.length !== 0){
967
- let str = JSON.stringify(this.area)
968
- str = str.replace(/"/g,`'`)
969
- str = str.replace(/\[/g,``)
970
- str = str.replace(/\]/g,``)
971
- //查询多个小区时条件
972
- args.condition += ` and f_residential_area in ( ${str} )`
973
- }
974
- //抄表员查询条件
975
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
976
- if(this.inputtouPerson.length !== 0){
977
- let str = JSON.stringify(this.inputtouPerson)
978
- str = str.replace(/"/g,`'`)
979
- str = str.replace(/\[/g,``)
980
- str = str.replace(/\]/g,``)
981
- //查询多个抄表员时条件
982
- args.condition += ` and f_inputtor in ( ${str} )`
983
- }
984
-
985
- args.condition = `${args.condition} ` + this.orgCondtionStr
986
- this.model.search(args.condition, args.model)
987
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
988
- },
989
- clear() {
990
- //清空部门和人员
991
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
992
- //部门和人员变为全选
993
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
994
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
995
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
996
- this.$refs.paged.$refs.cri.model[key] = []
997
- })
998
- this.$refs.paged.$refs.cri.model.f_meter_classify = []
999
- },
1000
- show() {
1001
- this.criteriaShow = true
1002
- },
1003
- hidden() {
1004
- this.criteriaShow = !this.criteriaShow
1005
- },
1006
- async getRes(condition,obj) {
1007
- this.orgCondtionStr = condition
1008
-
1009
- },
1010
- stamp() {
1011
- this.all = false
1012
- //默认选择要打印的列
1013
- this.modelval = defaultPrint.config
1014
- this.fields = this.getfield
1015
- this.printshow = true
1016
- this.put()
1017
- },
1018
- put() {
1019
- // 对Modelval进行排序
1020
- this.sortModelval()
1021
- this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
1022
- for (let key of this.modelval) {
1023
- this.thead += '<th>' + this.fields[key] + '</th>'
1024
- }
1025
- this.thead += '</tr>'
1026
- },
1027
- print() {
1028
- this.$refs.print.PrintAsFile()
1029
- this.printshow = false
1030
- },
1031
- dealmsg(val) {
1032
- this.rowdata=val
1033
- this.show=true
1034
- val.model = this.model.model
1035
- this.$dispatch('deal-msg', val)
1036
- },
1037
- close() {
1038
- this.printshow = false
1039
- this.all = false
1040
- },
1041
-
1042
- userTypeChange () {
1043
- this.gasproperties=[]
1044
- if(this.$refs.paged.$refs.cri.model !==null) {
1045
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
1046
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1047
- }
1048
- else{
1049
- this.gasproperties =[{label: '全部', value: ''}]
1050
- }
1051
- },
1052
- // 对选择的列进行排序
1053
- sortModelval() {
1054
- let sortModel = []
1055
- Object.keys(this.fields).forEach((key) => {
1056
- if (this.modelval.includes(key)) {
1057
- sortModel.push(key)
1058
- }
1059
- })
1060
- this.modelval = sortModel
1061
- }
1062
- },
1063
- watch: {
1064
- 'model.rows'(val) {
1065
- if(val.length === 0){
1066
- this.sumsmodel = {}
1067
- }
1068
- },
1069
- async 'orgCondtionStr'(val) {
1070
- this.$refs.paged.$refs.cri.model.f_inputtor=[]
1071
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
1072
- this.$refs.paged.$refs.cri.model.f_meter_book = []
1073
- this.meterbooks = [{label: '全部',value: ''}];
1074
- if(this.lastorgstr != val){
1075
- this.tempfalg = true;
1076
- this.lastorgstr = val;
1077
- }
1078
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1079
- this.tempfalg = false;
1080
- let a = val.substring(val.indexOf("(")+2)
1081
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1082
- }
1083
- let res = val.match(/'(.*?)'/)
1084
- console.log('正则提取:',res && res[1])
1085
- if (res) {
1086
- this.f_filialeid = res[1]
1087
- if(res.input !=null){
1088
- let resorgid = res.input.substring(res.input.indexOf("'"));
1089
- if(resorgid!= null && resorgid!=''){
1090
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1091
- // resorgid = resorgid.replaceAll("'","");
1092
- resorgid = resorgid.replace(/'/g,"");
1093
- this.allorgid = resorgid.split(",")
1094
- }
1095
- }
1096
- this.updateParams()
1097
- }
1098
- },
1099
- 'all'(val) {
1100
- if (val) {
1101
- this.modelval = this.bodyData
1102
- } else {
1103
- this.modelval = defaultPrint.config
1104
- this.put()
1105
- }
1106
- },
1107
- 'modelval.length'() {
1108
- this.put()
1109
- },
1110
- sumsmodel:{
1111
- handler: function(val) {
1112
- this.getotherfooter();
1113
- },
1114
- deep: true
1115
- }
1116
- },
1117
- computed: {
1118
- payment() {
1119
- return [...this.$appdata.getParam('付款方式查询')]
1120
- },
1121
- authArr () {
1122
- return this.$login.r ? this.$login.r : []
1123
- },
1124
- metertypes() {
1125
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1126
- },
1127
- banklist() {
1128
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1129
- },
1130
- getCondition() {
1131
- return {
1132
- startDate: this.$refs.paged.$refs.cri.model.startDate,
1133
- endDate: this.$refs.paged.$refs.cri.model.endDate,
1134
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
1135
- },
1136
- getfield() {
1137
- return exportConfig.handplanConfig
1138
- },
1139
- getBankfield(){
1140
- return exportConfig.batchBankConfig
1141
- },
1142
- usertypes() {
1143
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1144
- },
1145
- accountsState() {
1146
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
1147
- },
1148
- meterstate() {
1149
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
1150
- },
1151
- handstate() {
1152
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1153
- },
1154
- // inputtor() {
1155
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1156
- // },
1157
- pricetypes() {
1158
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1159
- },
1160
- getPricenames() {
1161
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1162
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1163
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1164
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1165
- if(this.$refs.paged.$refs.cri.model !==null) {
1166
- let rs = []
1167
- let priceArr = []
1168
- if ( pricetype.length >0) {
1169
- let params = {
1170
- f_price_type: pricetype[0],
1171
- filter: this.f_filialeid,
1172
- prices: this.prices
1173
- }
1174
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1175
- let temp = {}
1176
- temp.label = item.label
1177
- temp.value = item.value.f_price_name
1178
- priceArr.push(temp)
1179
- })
1180
- rs = [{label: '全部', value: ''}, ...priceArr]
1181
- }
1182
- if (rs.length === 0) {
1183
- console.log('rs读出来是空')
1184
- this.$refs.paged.$refs.cri.model.f_price_name = ''
1185
- }
1186
- return rs
1187
- }
1188
- },
1189
- inputtor () {
1190
- // 获取抄表员
1191
- console.log('获取抄表员', this.$login.f)
1192
- let rs = []
1193
- if (this.$login.f.f_gasman.length > 0) {
1194
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1195
- let temp = {
1196
- label: this.$login.f.f_gasman[i].name,
1197
- value: this.$login.f.f_gasman[i].name
1198
- }
1199
- rs.push(temp)
1200
- }
1201
- }
1202
-
1203
- return [{label: '全部', value: ''}, ...rs]
1204
- },
1205
- whetherPay() {
1206
- return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
1207
- },
1208
- },
1209
- events:{
1210
- 'onFileUpload': async function (file, res) {
1211
- let res1=await this.$resetpost('api/af-revenue/sql/manageSingleTable', {
1212
- data: {
1213
- tablename: 't_singlevalue',
1214
- condition: `f_filialeids = ${this.$login.f.orgid} and name='反盘状态'`
1215
- }},{ resolveMsg: null, rejectMsg: null})
1216
- console.log("看看res1,",res1.data[0])
1217
- if (res1.data[0].value === '导入中') {
1218
- this.$showAlert(`数据正在导入中,请稍后再试`, 'warning', 3000);
1219
- this.batchmoneyShow=false
1220
- return
1221
- }
1222
-
1223
- //更新状态
1224
- let bankreverse={
1225
- id:res1.data[0].id,
1226
- value:'导入中'
1227
- }
1228
- await this.$resetpost('rs/entity/t_singlevalue', bankreverse,{ resolveMsg: null, rejectMsg: null})
1229
-
1230
- //导入逻辑开始
1231
- if (this.batchmoneyShow) {
1232
- this.percent = 0;
1233
- this.getuuid();
1234
- let param = {
1235
- filepath: res.f_downloadpath,
1236
- f_operator: this.$login.f.name,
1237
- f_operatorid: this.$login.f.id,
1238
- f_orgid: this.$login.f.orgid,
1239
- f_orgname: this.$login.f.orgs,
1240
- f_depid: this.$login.f.depids,
1241
- f_depname: this.$login.f.deps,
1242
- uuid: this.uuida,
1243
- id:res1.data[0].id
1244
- }
1245
- this.batchmoneyShow = false;
1246
- try{
1247
- await this.$resetpost('api/af-revenue/logic/SumSettleFileImport', {data: param}, {
1248
- resolveMsg: null,
1249
- rejectMsg: null
1250
- },1000)
1251
- }catch (e) {
1252
- }
1253
- let getparam = {
1254
- uuid: this.uuida
1255
- }
1256
- let self = this;
1257
- this.progressShow = true;
1258
- this.timer = setInterval(function () {
1259
- self.$resetpost('/api/af-revenue/logic/getBatchOperaPro', {data: getparam}, {
1260
- resolveMsg: null,
1261
- rejectMsg: null
1262
- }, 0).then((res) => {
1263
- if (res.data) {
1264
- if (res.data.speed) {
1265
- if (res.data.speed >= 100) {
1266
- clearInterval(self.timer);
1267
- if (res.data.speed) {
1268
- self.percent = 99;
1269
- }
1270
- setTimeout(() => {
1271
- self.percent = 100;
1272
- self.progressclose();
1273
- self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
1274
- }, 600);
1275
- } else {
1276
- self.percent = res.data.speed
1277
- }
1278
- } else {
1279
- self.percent = 0;
1280
- }
1281
- }
1282
- });
1283
- }, 3000);
1284
- }
1285
- }
1286
-
1287
- }
1288
- }
1289
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label 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
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</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
+ </datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">客户名称</label>
35
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
37
+ </div>
38
+ <div class="span" style="float:right;">
39
+ <button class="button_search button_spacing" @click="search()">查询</button>
40
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+
42
+ <button class="btn btn-default" @click="$parent.$parent.Fileinput()" v-show="$parent.$parent.authArr.includes('送反盘权限')">反盘导入</button>
43
+ <export-excel :data="$parent.$parent.getCondition"
44
+ :field="$parent.$parent.getBankfield" :header="$parent.$parent.other" v-show="$parent.$parent.authArr.includes('送反盘权限')"
45
+ sqlurl="api/af-revenue/logic/offerexportfile" sql-name="newhandplanQuery_shaoguan" template-name='送盘导出' btn-name="送盘导出"
46
+ :choose-col="true"></export-excel>
47
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
48
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
49
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
53
+ titletable="抄表查询"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+
56
+ <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>
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">小区名称</label>
63
+ <v-select :value.sync="model.f_residential_area"
64
+ class="select_list select"
65
+ enter-push
66
+ multiple = "true"
67
+ v-model="model.f_residential_area"
68
+ style="width: 60%"
69
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
70
+ close-on-select>
71
+
72
+ </v-select>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
77
+ condition="f_building like '%{}%'" placeholder="楼栋">
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">客户地址</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
+ condition="f_address like '%{}%'" placeholder='客户地址'>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">抄表状态</label>
86
+ <v-select :value.sync="model.f_meter_state"
87
+ v-model="model.f_meter_state"
88
+ :options='$parent.$parent.meterstate' placeholder='请选择'
89
+ condition="f_meter_state = '{}'"
90
+ close-on-select></v-select>
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">表单状态</label>
94
+ <v-select :value.sync="model.f_hand_state"
95
+ v-model="model.f_hand_state"
96
+ :options='$parent.$parent.handstate' placeholder='请选择'
97
+ condition="f_hand_state = '{}'"
98
+ close-on-select></v-select>
99
+ </div>
100
+ <div class="col-sm-2 form-group">
101
+ <label class="font_normal_body">录入人员</label>
102
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
103
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">是否缴费</label>
107
+ <v-select :value.sync="model.f_whether_pay"
108
+ v-model="model.f_whether_pay"
109
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
110
+ condition="f_whether_pay = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body" >收款方式</label>
115
+ <v-select :value.sync="model.f_payment" multiple
116
+ v-model="model.f_payment"
117
+ :options='$parent.$parent.dypayment' placeholder='请选择'
118
+ condition="f_dypayment in {}"
119
+ close-on-select></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
123
+ <v-select :value.sync="model.f_bgl"
124
+ v-model="model.f_bgl"
125
+ :options='$parent.$parent.bgl' placeholder='请选择'
126
+ condition="f_bgl = '{}'"
127
+ close-on-select></v-select>
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">客户类型</label>
131
+ <v-select :value.sync="model.f_user_type"
132
+ @change="$parent.$parent.userTypeChange()"
133
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
134
+ condition="f_user_type = '{}'"
135
+ close-on-select></v-select>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">用气性质</label>
139
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
140
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
141
+ condition="f_gasproperties = '{}'"
142
+ close-on-select></v-select>
143
+ </div>
144
+ <div class="col-sm-2 form-group">
145
+ <label class="font_normal_body">气价类型</label>
146
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
147
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
148
+ close-on-select v-ref:type>
149
+ </v-select>
150
+ </div>
151
+ <div class="col-sm-2 form-group">
152
+ <label class="font_normal_body">气价名称</label>
153
+ <v-select :value.sync="model.f_price_name"
154
+ v-model="model.f_price_name"
155
+ multiple
156
+ :options="$parent.$parent.getPricenames"
157
+ condition="f_price_name in {}"
158
+ ></v-select>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body">下账状态</label>
162
+ <v-select :value.sync="model.f_accounts_state"
163
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
164
+ condition="f_accounts_state = '{}'"
165
+ close-on-select></v-select>
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">气表类型</label>
169
+ <v-select :value.sync="model.f_meter_classify" multiple
170
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
171
+ condition="f_meter_classify in {}"
172
+ close-on-select></v-select>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">气表品牌</label>
176
+ <v-select :value.sync="model.f_meter_brand" multiple
177
+ v-model="model.f_meter_brand"
178
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
179
+ condition="f_meter_brand in {}"
180
+ close-on-select></v-select>
181
+ </div>
182
+ <div class="col-sm-2 form-group">
183
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
184
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
185
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
186
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
187
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
188
+ </div>
189
+ <!-- <div class="col-sm-2 form-group">-->
190
+ <!-- <label class="font_normal_body">气价名称</label>-->
191
+ <!-- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name" :options="$parent.$parent.prices"-->
192
+ <!-- condition="f_price_name = '{}'" close-on-select></v-select>-->
193
+ <!-- </div>-->
194
+ <div class="col-sm-2 form-group">
195
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
196
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
197
+ condition="f_meternumber = '{}' " placeholder="表号">
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
201
+ <v-select :value.sync="model.f_inputtor"
202
+ v-model="model.f_inputtor"
203
+ :options='$parent.$parent.inputtores' placeholder='请选择'
204
+ condition="f_inputtor = '{}'"
205
+ close-on-select :search="false">
206
+ </v-select>
207
+ </div>
208
+ <!--表册片区-->
209
+ <div class="col-sm-2 form-group">
210
+ <label class="font_normal_body">表册片区</label>
211
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
212
+ @change="$parent.$parent.inputtorchange"
213
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
214
+ style="width:60%"
215
+ close-on-select
216
+ condition="f_book_slice_area = '{}'"></v-select>
217
+ </div>
218
+ <div class="col-sm-2 form-group">
219
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
220
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
221
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
222
+ style="width:60%"
223
+ close-on-select
224
+ condition="f_file_meter_book_num = '{}'"></v-select>
225
+ </div>
226
+ <div class="col-sm-2 form-group" >
227
+ <label for="belongmonth" class="font_normal_body" >所属年月</label>
228
+ <datepicker placeholder="所属年月" style="width:60%"
229
+ v-model="model.belongmonth"
230
+ :value.sync="model.belongmonth"
231
+ :format="'yyyy-MM'"
232
+ :show-reset-button="true"
233
+ condition="belongmonth = '{}'"
234
+ :select-month="true">
235
+ </datepicker>
236
+ </div>
237
+ <div class="col-sm-2 form-group">
238
+ <label class="font_normal_body">银行名称</label>
239
+ <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
240
+ :options='$parent.$parent.banklist' placeholder='银行名称'
241
+ style="width:60%"
242
+ close-on-select
243
+ condition="f_bank_name = '{}'"></v-select>
244
+ </div>
245
+ <div class="col-sm-2 form-group">
246
+ <label for="startDate" class="font_normal_body">收费日期</label>
247
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
248
+ v-model="model.sellStartDate"
249
+ :value.sync="model.sellStartDate"
250
+ :format="'yyyy-MM-dd 00:00:00'"
251
+ :show-reset-button="true"
252
+ condition="f_sellinggas_operate_date >= '{}'">
253
+ </datepicker>
254
+ </div>
255
+ <div class="col-sm-2 form-group">
256
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
257
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
258
+ v-model="model.sellEndDate"
259
+ :value.sync="model.sellEndDate"
260
+ :format="'yyyy-MM-dd 23:59:59'"
261
+ :show-reset-button="true"
262
+ condition="f_sellinggas_operate_date <= '{}'">
263
+ </datepicker>
264
+ </div>
265
+ </div>
266
+ </div>
267
+ </criteria>
268
+
269
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
270
+ <template partial='head'>
271
+ <tr>
272
+ <th>
273
+ <nobr>客户编号</nobr>
274
+ </th>
275
+ <th>
276
+ <nobr>客户名称</nobr>
277
+ </th>
278
+ <th>
279
+ <nobr>片区</nobr>
280
+ </th>
281
+ <th>
282
+ <nobr>小区</nobr>
283
+ </th>
284
+ <th>
285
+ <nobr>表册片区</nobr>
286
+ </th>
287
+ <th>
288
+ <nobr>客户地址</nobr>
289
+ </th>
290
+ <th>
291
+ <nobr>客户手机</nobr>
292
+ </th>
293
+ <th>
294
+ <nobr>表号</nobr>
295
+ </th>
296
+ <th>
297
+ <nobr>数据年月</nobr>
298
+ </th>
299
+ <th>
300
+ <nobr>上期底数</nobr>
301
+ </th>
302
+ <th>
303
+ <nobr>本期底数</nobr>
304
+ </th>
305
+ <th>
306
+ <nobr>用气量</nobr>
307
+ </th>
308
+ <th>
309
+ <nobr>违约金</nobr>
310
+ </th>
311
+ <th>
312
+ <nobr>用气金额</nobr>
313
+ </th>
314
+ <th>
315
+ <nobr>已交金额</nobr>
316
+ </th>
317
+ <th>
318
+ <nobr>优惠金额</nobr>
319
+ </th>
320
+ <th>
321
+ <nobr>上期余额</nobr>
322
+ </th>
323
+ <th>
324
+ <nobr>本期余额</nobr>
325
+ </th>
326
+ <th>
327
+ <nobr>下账状态</nobr>
328
+ </th>
329
+ <th>
330
+ <nobr>收费时间</nobr>
331
+ </th>
332
+ <th>
333
+ <nobr>收费人员</nobr>
334
+ </th>
335
+ <th>
336
+ <nobr>冲正时间</nobr>
337
+ </th>
338
+ <th>
339
+ <nobr>冲正人员</nobr>
340
+ </th>
341
+ <th>
342
+ <nobr>所属年月</nobr>
343
+ </th>
344
+ <th>
345
+ <nobr>录入日期</nobr>
346
+ </th>
347
+ <th>
348
+ <nobr>气价名称</nobr>
349
+ </th>
350
+ <th>
351
+ <nobr>一阶气量</nobr>
352
+ </th>
353
+ <th>
354
+ <nobr>一阶单价</nobr>
355
+ </th>
356
+ <th>
357
+ <nobr>一阶气费</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>二阶气量</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>二阶单价</nobr>
364
+ </th>
365
+ <th>
366
+ <nobr>二阶气费</nobr>
367
+ </th>
368
+ <th>
369
+ <nobr>三阶气量</nobr>
370
+ </th>
371
+ <th>
372
+ <nobr>三阶单价</nobr>
373
+ </th>
374
+ <th>
375
+ <nobr>三阶气费</nobr>
376
+ </th>
377
+ <th>
378
+ <nobr>天数</nobr>
379
+ </th>
380
+ <th>
381
+ <nobr>抄表员</nobr>
382
+ </th>
383
+ <th>
384
+ <nobr>录入人员</nobr>
385
+ </th>
386
+ <th>
387
+ <nobr>是否缴费</nobr>
388
+ </th>
389
+
390
+ <th>
391
+ <nobr>抄表状态</nobr>
392
+ </th>
393
+ <th>
394
+ <nobr>状态</nobr>
395
+ </th>
396
+ <th>
397
+ <nobr>下发人员</nobr>
398
+ </th>
399
+ <th>
400
+ <nobr>部门</nobr>
401
+ </th>
402
+ <th>
403
+ <nobr>公司</nobr>
404
+ </th>
405
+ <th><nobr>附件</nobr></th>
406
+ </tr>
407
+ </template>
408
+ <template partial='body'>
409
+ <td style="text-align: center;">
410
+ <nobr>
411
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
412
+ </td>
413
+ <td style="text-align: center;">
414
+ <nobr>{{row.f_user_name}}</nobr>
415
+ </td>
416
+ <td style="text-align: center;">
417
+ <nobr>{{row.f_zones}}</nobr>
418
+ </td>
419
+ <td style="text-align: center;">
420
+ <nobr>{{row.f_residential_area}}</nobr>
421
+ </td>
422
+ <td style="text-align: center;">
423
+ <nobr>{{row.f_book_slice_area}}</nobr>
424
+ </td>
425
+ <td style="text-align: center;">
426
+ <nobr>{{row.f_address}}</nobr>
427
+ </td>
428
+
429
+ <td style="text-align: center;">
430
+ <nobr>{{row.phone}}</nobr>
431
+ </td>
432
+ <td style="text-align: center;">
433
+ <nobr>{{row.f_meternumber}}</nobr>
434
+ </td>
435
+ <td style="text-align: center;">
436
+ <nobr>{{row.ym_data}}</nobr>
437
+ </td>
438
+ <td style="text-align: center;">
439
+ <nobr>{{row.f_last_tablebase}}</nobr>
440
+ </td>
441
+ <td style="text-align: center;">
442
+ <nobr>{{row.f_tablebase}}</nobr>
443
+ </td>
444
+ <td style="text-align: center;">
445
+ <nobr>{{row.f_oughtamount}}</nobr>
446
+ </td>
447
+ <td style="text-align: center;">
448
+ <nobr>{{row.overdue}}</nobr>
449
+ </td>
450
+ <td style="text-align: center;">
451
+ <nobr>{{row.f_oughtfee}}</nobr>
452
+ </td>
453
+ <td style="text-align: center;">
454
+ <nobr>{{row.f_debt_money}}</nobr>
455
+ </td>
456
+ <td style="text-align: center;">
457
+ <nobr>{{row.f_privilege_money}}</nobr>
458
+ </td>
459
+ <td style="text-align: center;">
460
+ <nobr>{{row.f_balance}}</nobr>
461
+ </td>
462
+ <td style="text-align: center;">
463
+ <nobr>{{row.f_curbalance}}</nobr>
464
+ </td>
465
+ <td style="text-align: center;">
466
+ <nobr>{{row.f_accounts_state}}</nobr>
467
+ </td>
468
+ <td style="text-align: center;">
469
+ <nobr>{{row.f_sellinggas_operate_date}}</nobr>
470
+ </td>
471
+ <td style="text-align: center;">
472
+ <nobr>{{row.f_sell_operator}}</nobr>
473
+ </td>
474
+ <td style="text-align: center;">
475
+ <nobr>{{row.f_corrhand_date}}</nobr>
476
+ </td>
477
+ <td style="text-align: center;">
478
+ <nobr>{{row.f_corrhand_operator}}</nobr>
479
+ </td>
480
+ <td>
481
+ <nobr>{{row.belongmonth}}</nobr>
482
+ </td>
483
+ <td style="text-align: center;">
484
+ <nobr>{{row.f_input_date}}</nobr>
485
+ </td>
486
+ <td style="text-align: center;">
487
+ <nobr>{{row.f_price_name}}</nobr>
488
+ </td>
489
+ <td style="text-align: center;">
490
+ <nobr>{{row.f_stair1amount}}</nobr>
491
+ </td>
492
+ <td style="text-align: center;">
493
+ <nobr>{{row.f_stair1price}}</nobr>
494
+ </td>
495
+ <td style="text-align: center;">
496
+ <nobr>{{row.f_stair1fee}}</nobr>
497
+ </td>
498
+ <td style="text-align: center;">
499
+ <nobr>{{row.f_stair2amount}}</nobr>
500
+ </td>
501
+ <td style="text-align: center;">
502
+ <nobr>{{row.f_stair2price}}</nobr>
503
+ </td>
504
+ <td style="text-align: center;">
505
+ <nobr>{{row.f_stair2fee}}</nobr>
506
+ </td>
507
+ <td style="text-align: center;">
508
+ <nobr>{{row.f_stair3amount}}</nobr>
509
+ </td>
510
+ <td style="text-align: center;">
511
+ <nobr>{{row.f_stair3price}}</nobr>
512
+ </td>
513
+ <td style="text-align: center;">
514
+ <nobr>{{row.f_stair3fee}}</nobr>
515
+ </td>
516
+ <td style="text-align: center;">
517
+ <nobr>{{row.dd}}</nobr>
518
+ </td>
519
+ <td style="text-align: center;">
520
+ <nobr>{{row.f_inputtor}}</nobr>
521
+ </td>
522
+ <td style="text-align: center;">
523
+ <nobr>{{row.f_input_person}}</nobr>
524
+ </td>
525
+ <td style="text-align: center;">
526
+ <nobr>{{row.f_whether_pay}}</nobr>
527
+ </td>
528
+
529
+ <td style="text-align: center;">
530
+ <nobr>{{row.f_meter_state}}</nobr>
531
+ </td>
532
+ <td style="text-align: center;">
533
+ <nobr>{{row.f_hand_state}}</nobr>
534
+ </td>
535
+ <td style="text-align: center;">
536
+ <nobr>{{row.f_operator}}</nobr>
537
+ </td>
538
+ <td style="text-align: center;">
539
+ <nobr>{{row.f_depname}}</nobr>
540
+ </td>
541
+ <td style="text-align: center;">
542
+ <nobr>{{row.f_orgname}}</nobr>
543
+ </td>
544
+ <td style="text-align: center;"><nobr>
545
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
546
+ <button v-if="row.f_notified_path" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别</button>
547
+ </nobr></td>
548
+ </template>
549
+ <template partial='foot'></template>
550
+ </data-grid>
551
+ </criteria-paged>
552
+
553
+ <table class="table-hover">
554
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
555
+ <td
556
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
557
+ 汇总信息
558
+ </td>
559
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
560
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
561
+ </td>
562
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
563
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
564
+ </td>
565
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
566
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
567
+ </td>
568
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
569
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
570
+ </td>
571
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
572
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
573
+ </td>
574
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
575
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
576
+ </td>
577
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
578
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
579
+ </td>
580
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
581
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
582
+ </td>
583
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
584
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
585
+ </td>
586
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
587
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
588
+ </td>
589
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
590
+ 应交气量合计:&emsp;{{sumsmodel.f_oughtamount}}
591
+ </td>
592
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
593
+ 已交气量合计:&emsp;{{sumsmodel.alloughtfee}}
594
+ </td>
595
+ </tr>
596
+ </table>
597
+ </div>
598
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
599
+ <article slot="modal-body" class="modal-body">
600
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
601
+ </article>
602
+ <footer slot="modal-footer" class="modal-footer">
603
+ </footer>
604
+ </modal>
605
+ </div>
606
+ <div class="flex" v-if="show">
607
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
608
+ </div>
609
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
610
+ <article slot="modal-body">
611
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="机表抄表" :isremark="false" style="width:auto" ></upload>
612
+ </article>
613
+ <footer slot="modal-footer" class="modal-footer">
614
+ </footer>
615
+ </modal>
616
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
617
+ <header slot="modal-header" class="modal-header">
618
+ 抄表图像识别照片
619
+ </header>
620
+ <article slot="modal-body" class="modal-body">
621
+ <div class="from-group">
622
+ <img-self :src="imgfilename" width="500" height="500"></img-self>
623
+ </div>
624
+ </article>
625
+ </modal>
626
+
627
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
628
+ <header slot="modal-header" class="modal-header">
629
+ 反盘导入
630
+ </header>
631
+ <article slot="modal-body" class="modal-body">
632
+ <div class="progress" style="margin: 20px" >
633
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
634
+ {{percent}}%
635
+ </div>
636
+ </div>
637
+ </article>
638
+ <footer slot="modal-footer" class="modal-footer">
639
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
640
+ </footer>
641
+ </modal>
642
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
643
+ </div>
644
+ </template>
645
+
646
+ <script>
647
+ import {PagedList, HttpResetClass} from 'vue-client'
648
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
649
+ import exportConfig from './exportConfig'
650
+ import axios from 'axios'
651
+
652
+ let readySomething = async function (self) {
653
+ //加载抄表册
654
+ self.$MagGetSaleParam.initinputtor();
655
+ self.getinputtores();
656
+ self.initmeterbook();
657
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
658
+ // self.loadMeterBooks()
659
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
660
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
661
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
662
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
663
+ // await self.$refs.paged.$refs.cri.search()
664
+ await self.$getConfig(self, 'HandplanQuery')
665
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
666
+ await self.$MagLoadParams.loadParam()
667
+ // await self.$MagLoadParams.loadParam()
668
+ self.initParams()
669
+ console.log('开始查询')
670
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
671
+ }
672
+ export default {
673
+ props:['data'],
674
+ title: '机表抄表查询',
675
+ data() {
676
+ return {
677
+ iswork:false,
678
+ other:[],
679
+ footer:[],
680
+ data: {},
681
+ model: new PagedList('api/af-revenue/sql/handplanQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
682
+ f_oughtamount: 0,
683
+ f_oughtfee: 0,
684
+ f_stair1amount: 0,
685
+ f_stair1fee: 0,
686
+ f_stair2amount: 0,
687
+ f_stair2fee: 0,
688
+ f_stair3amount: 0,
689
+ f_stair3fee: 0,
690
+ f_surplus_gas: 0,
691
+ f_haircut_gas: 0,
692
+ alloughtfee:0
693
+ }),
694
+ initres: {
695
+ org:[this.$login.f.orgid],
696
+ dep:[],
697
+ user:[],
698
+ },
699
+ show:false,
700
+ rowdata:{},
701
+ criteriaShow: false,
702
+ residentialArea: [],
703
+ orgCondtionStr: '',
704
+ modelval: [],
705
+ gasproperties:[],
706
+ inputtouPerson: [],
707
+ meterbrands: [],
708
+ printshow: false,
709
+ f_filialeid: this.$login.f.f_orgid,
710
+ all: false,
711
+ fields: {},
712
+ thead: '',
713
+ tfoot: '',
714
+ showupload:false,
715
+ selected:{},
716
+
717
+ // 下拉框
718
+
719
+ //合计数据
720
+ sumsmodel: {},
721
+ defaultfield: [],
722
+ config: {
723
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
724
+ },
725
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费"}],
726
+ batchmoneyShow:false,
727
+ prices: [],
728
+ bgl:[{label: '全部', value: ''},{label: '有', value: '1'},{label: '无', value: '0'}],
729
+ meterbooks:[{label: '全部',value: ''}], //抄表册
730
+ tempfalg :false,
731
+ lastorgstr:'',
732
+ allorgid:[],
733
+ inputtores:[{label: '全部',value: ''}], //抄表员
734
+ //表册片区
735
+ bookSlice:[{label: '全部',value: ''}],
736
+ imgshow:false,
737
+ imgfilename:'',
738
+ percent:0,
739
+ progressShow:false,
740
+ uuida:'',
741
+ timer:'',
742
+ }
743
+ },
744
+ ready() {
745
+ this.getaddress()
746
+ readySomething(this).then(() => {
747
+ this.$emit('ready')
748
+ }).catch((error) => {
749
+ this.$emit('error', error)
750
+ })
751
+ },
752
+ methods: {
753
+ getuuid(){
754
+ let uuidA = '';
755
+ var s = [];
756
+ var hexDigits = '0123456789abcdef';
757
+ for (var i = 0; i < 36; i++) {
758
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
759
+ }
760
+ s[14] = '4';
761
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
762
+ s[8] = s[13] = s[18] = s[23] = '-';
763
+ uuidA = s.join('');
764
+ this.uuida = uuidA;
765
+ },
766
+ progressclose(){
767
+ this.progressShow = false;
768
+ if(this.timer != null){
769
+ clearInterval(this.timer);
770
+ }
771
+ },
772
+ async initmeterbook(orgstr){
773
+ if(orgstr == null ){
774
+ orgstr = this.f_filialeid;
775
+ }
776
+ //获取新的抄表册,先去清理所有的抄表册
777
+ this.$GetSaleParam.meterbooks = [];
778
+ //开始加载新的抄表册
779
+ await this.$LoadParams.loadMeterBook(orgstr)
780
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
781
+ },
782
+ //初始化片区
783
+ async initSlice (val) {
784
+ if (val) {
785
+ let getAllArea = await this.$resetpost('/rs/search', {
786
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
787
+ userid: this.$login.f.id
788
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
789
+ let arr = getAllArea.data.filter((res) => {
790
+ return res.parentid == val
791
+ })
792
+ this.bookSlice = []
793
+ arr.forEach((res) => {
794
+ this.bookSlice.push({label: res.name, value: res.name})
795
+ })
796
+ }
797
+ },
798
+ //表册片区和抄表册关联
799
+ async inputtorchange(){
800
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
801
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
802
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
803
+ if((val2.length>0)){
804
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
805
+ /*if (val1[0]){
806
+ condition = condition+ ` and f_meter_book = '${val1[0]}' `
807
+ }*/
808
+ if(val2[0]) {
809
+ condition = condition + ` and f_book_slice_area = '${val2}' `
810
+ }
811
+ let param={
812
+ items:'*',
813
+ tablename:'t_meter_book',
814
+ condition:condition,
815
+ orderitem:'id'
816
+ }
817
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
818
+ if (getMeterBooks.data) {
819
+ if(getMeterBooks.data.length >0){
820
+ let rs = [];
821
+ getMeterBooks.data.forEach((item)=>{
822
+ let temp = {
823
+ label:item.f_book_name,
824
+ value:item.id
825
+ };
826
+ rs.push(temp);
827
+
828
+ })
829
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
830
+ }else{
831
+ this.meterbooks = [{label: '全部',value: ''}];
832
+ }
833
+ }
834
+ }else{
835
+ this.meterbooks = [{label: '全部',value: ''}];
836
+ this.initmeterbook();
837
+ }
838
+ },
839
+ async initmeterbook(orgstr){
840
+ if(orgstr == null ){
841
+ orgstr = this.f_filialeid;
842
+ }
843
+ //获取新的抄表册,先去清理所有的抄表册
844
+ this.$GetSaleParam.meterbooks = [];
845
+ //开始加载新的抄表册
846
+ await this.$LoadParams.loadMeterBook(orgstr)
847
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
848
+ },
849
+
850
+ async getinputtores () {
851
+ // 获取抄表员
852
+ let rs = []
853
+ if (this.$login.f.f_gasman.length > 0) {
854
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
855
+ let temp = {
856
+ label: this.$login.f.f_gasman[i].name,
857
+ value: this.$login.f.f_gasman[i].name
858
+ }
859
+ rs.push(temp)
860
+ }
861
+ }
862
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
863
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
864
+ },
865
+ async updateParams() {
866
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
867
+ this.inputtores = [];
868
+ this.inputtores.push({label: "全部", value: ""})
869
+ this.initSlice(this.f_filialeid)
870
+ if(this.allorgid!=null){
871
+ this.allorgid.forEach((res)=>{
872
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
873
+ })
874
+ }
875
+ this.initParams()
876
+ },
877
+ view(row){
878
+ this.showupload = true
879
+ this.selected= row
880
+ },
881
+ imgclose(){
882
+ this.imgshow = false
883
+ },
884
+ imgShow(val){
885
+ this.imgfilename = `rs/image/file/`+val
886
+ this.imgshow = true
887
+ },
888
+ initParams() {
889
+ // 初始化气表品牌
890
+ let brandArr = []
891
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
892
+ let temp = {}
893
+ temp.label = item.label
894
+ temp.value = item.value.f_meter_brand
895
+ brandArr.push(temp)
896
+ })
897
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
898
+ //初始化气价
899
+ let result = []
900
+ this.$MagGetSaleParam.prices.forEach((item) => {
901
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
902
+ let value = {
903
+ label: item.f_price_name,
904
+ value: item.f_price_name
905
+ }
906
+ result.push(value)
907
+ }
908
+ })
909
+ let hash = {}
910
+ result = result.reduce((item, next) => {
911
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
912
+ return item
913
+ }, [])
914
+ this.prices = Array.from(new Set(result))
915
+ },
916
+ getotherfooter(){
917
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
918
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
919
+ this.other=[];
920
+ this.footer=[];
921
+ let exportdata = this.getCondition;
922
+ let otherInData=[];
923
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
924
+ let footerData=[],exportfield=this.getfield;
925
+ footerData.push("合计");
926
+ let self = this;
927
+ for(var field in self.sumsmodel){
928
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
929
+ }
930
+ this.footer.push(footerData);
931
+ this.other.push(otherInData);
932
+ },
933
+ async getaddress(){
934
+ let HttpReset = new HttpResetClass()
935
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
936
+ data: {
937
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
938
+ }
939
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
940
+ console.log('小区',data)
941
+ let house = [{label: '全部', value: ''}]
942
+ for (let row of data.data){
943
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
944
+ }
945
+ this.residentialArea = house
946
+ },
947
+ Fileinput(){
948
+ this.batchmoneyShow=true;
949
+ },
950
+ search(){
951
+ this.$refs.paged.$refs.cri.search()
952
+ },
953
+ cancel() {
954
+ this.show = false
955
+ },
956
+ selfSearch(args) {
957
+ if (this.data) {
958
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
959
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
960
+ }
961
+ if (this.$refs.paged.$refs.cri.model.startDate === ''|| this.$refs.paged.$refs.cri.model.endDate === '') {
962
+ this.$showMessage('请选择录入日期开始时间和结束时间!')
963
+ return
964
+ }
965
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
966
+ if(this.area.length !== 0){
967
+ let str = JSON.stringify(this.area)
968
+ str = str.replace(/"/g,`'`)
969
+ str = str.replace(/\[/g,``)
970
+ str = str.replace(/\]/g,``)
971
+ //查询多个小区时条件
972
+ args.condition += ` and f_residential_area in ( ${str} )`
973
+ }
974
+ //抄表员查询条件
975
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
976
+ if(this.inputtouPerson.length !== 0){
977
+ let str = JSON.stringify(this.inputtouPerson)
978
+ str = str.replace(/"/g,`'`)
979
+ str = str.replace(/\[/g,``)
980
+ str = str.replace(/\]/g,``)
981
+ //查询多个抄表员时条件
982
+ args.condition += ` and f_inputtor in ( ${str} )`
983
+ }
984
+
985
+ args.condition = `${args.condition} ` + this.orgCondtionStr
986
+ this.model.search(args.condition, args.model)
987
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
988
+ },
989
+ clear() {
990
+ //清空部门和人员
991
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
992
+ //部门和人员变为全选
993
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
994
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
995
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
996
+ this.$refs.paged.$refs.cri.model[key] = []
997
+ })
998
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
999
+ },
1000
+ show() {
1001
+ this.criteriaShow = true
1002
+ },
1003
+ hidden() {
1004
+ this.criteriaShow = !this.criteriaShow
1005
+ },
1006
+ async getRes(condition,obj) {
1007
+ this.orgCondtionStr = condition
1008
+
1009
+ },
1010
+ stamp() {
1011
+ this.all = false
1012
+ //默认选择要打印的列
1013
+ this.modelval = defaultPrint.config
1014
+ this.fields = this.getfield
1015
+ this.printshow = true
1016
+ this.put()
1017
+ },
1018
+ put() {
1019
+ // 对Modelval进行排序
1020
+ this.sortModelval()
1021
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
1022
+ for (let key of this.modelval) {
1023
+ this.thead += '<th>' + this.fields[key] + '</th>'
1024
+ }
1025
+ this.thead += '</tr>'
1026
+ },
1027
+ print() {
1028
+ this.$refs.print.PrintAsFile()
1029
+ this.printshow = false
1030
+ },
1031
+ dealmsg(val) {
1032
+ this.rowdata=val
1033
+ this.show=true
1034
+ val.model = this.model.model
1035
+ this.$dispatch('deal-msg', val)
1036
+ },
1037
+ close() {
1038
+ this.printshow = false
1039
+ this.all = false
1040
+ },
1041
+
1042
+ userTypeChange () {
1043
+ this.gasproperties=[]
1044
+ if(this.$refs.paged.$refs.cri.model !==null) {
1045
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
1046
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1047
+ }
1048
+ else{
1049
+ this.gasproperties =[{label: '全部', value: ''}]
1050
+ }
1051
+ },
1052
+ // 对选择的列进行排序
1053
+ sortModelval() {
1054
+ let sortModel = []
1055
+ Object.keys(this.fields).forEach((key) => {
1056
+ if (this.modelval.includes(key)) {
1057
+ sortModel.push(key)
1058
+ }
1059
+ })
1060
+ this.modelval = sortModel
1061
+ }
1062
+ },
1063
+ watch: {
1064
+ 'model.rows'(val) {
1065
+ if(val.length === 0){
1066
+ this.sumsmodel = {}
1067
+ }
1068
+ },
1069
+ async 'orgCondtionStr'(val) {
1070
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
1071
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
1072
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1073
+ this.meterbooks = [{label: '全部',value: ''}];
1074
+ if(this.lastorgstr != val){
1075
+ this.tempfalg = true;
1076
+ this.lastorgstr = val;
1077
+ }
1078
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1079
+ this.tempfalg = false;
1080
+ let a = val.substring(val.indexOf("(")+2)
1081
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1082
+ }
1083
+ let res = val.match(/'(.*?)'/)
1084
+ console.log('正则提取:',res && res[1])
1085
+ if (res) {
1086
+ this.f_filialeid = res[1]
1087
+ if(res.input !=null){
1088
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1089
+ if(resorgid!= null && resorgid!=''){
1090
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1091
+ // resorgid = resorgid.replaceAll("'","");
1092
+ resorgid = resorgid.replace(/'/g,"");
1093
+ this.allorgid = resorgid.split(",")
1094
+ }
1095
+ }
1096
+ this.updateParams()
1097
+ }
1098
+ },
1099
+ 'all'(val) {
1100
+ if (val) {
1101
+ this.modelval = this.bodyData
1102
+ } else {
1103
+ this.modelval = defaultPrint.config
1104
+ this.put()
1105
+ }
1106
+ },
1107
+ 'modelval.length'() {
1108
+ this.put()
1109
+ },
1110
+ sumsmodel:{
1111
+ handler: function(val) {
1112
+ this.getotherfooter();
1113
+ },
1114
+ deep: true
1115
+ }
1116
+ },
1117
+ computed: {
1118
+ payment() {
1119
+ return [...this.$appdata.getParam('付款方式查询')]
1120
+ },
1121
+ authArr () {
1122
+ return this.$login.r ? this.$login.r : []
1123
+ },
1124
+ metertypes() {
1125
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1126
+ },
1127
+ banklist() {
1128
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1129
+ },
1130
+ getCondition() {
1131
+ return {
1132
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1133
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1134
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
1135
+ },
1136
+ getfield() {
1137
+ return exportConfig.handplanConfig
1138
+ },
1139
+ getBankfield(){
1140
+ return exportConfig.batchBankConfig
1141
+ },
1142
+ usertypes() {
1143
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1144
+ },
1145
+ accountsState() {
1146
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
1147
+ },
1148
+ meterstate() {
1149
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
1150
+ },
1151
+ handstate() {
1152
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1153
+ },
1154
+ // inputtor() {
1155
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1156
+ // },
1157
+ pricetypes() {
1158
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1159
+ },
1160
+ getPricenames() {
1161
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1162
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1163
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1164
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1165
+ if(this.$refs.paged.$refs.cri.model !==null) {
1166
+ let rs = []
1167
+ let priceArr = []
1168
+ if ( pricetype.length >0) {
1169
+ let params = {
1170
+ f_price_type: pricetype[0],
1171
+ filter: this.f_filialeid,
1172
+ prices: this.prices
1173
+ }
1174
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1175
+ let temp = {}
1176
+ temp.label = item.label
1177
+ temp.value = item.value.f_price_name
1178
+ priceArr.push(temp)
1179
+ })
1180
+ rs = [{label: '全部', value: ''}, ...priceArr]
1181
+ }
1182
+ if (rs.length === 0) {
1183
+ console.log('rs读出来是空')
1184
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1185
+ }
1186
+ return rs
1187
+ }
1188
+ },
1189
+ inputtor () {
1190
+ // 获取抄表员
1191
+ console.log('获取抄表员', this.$login.f)
1192
+ let rs = []
1193
+ if (this.$login.f.f_gasman.length > 0) {
1194
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1195
+ let temp = {
1196
+ label: this.$login.f.f_gasman[i].name,
1197
+ value: this.$login.f.f_gasman[i].name
1198
+ }
1199
+ rs.push(temp)
1200
+ }
1201
+ }
1202
+
1203
+ return [{label: '全部', value: ''}, ...rs]
1204
+ },
1205
+ whetherPay() {
1206
+ return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
1207
+ },
1208
+ },
1209
+ events:{
1210
+ 'onFileUpload': async function (file, res) {
1211
+ let res1=await this.$resetpost('api/af-revenue/sql/manageSingleTable', {
1212
+ data: {
1213
+ tablename: 't_singlevalue',
1214
+ condition: `f_filialeids = ${this.$login.f.orgid} and name='反盘状态'`
1215
+ }},{ resolveMsg: null, rejectMsg: null})
1216
+ console.log("看看res1,",res1.data[0])
1217
+ if (res1.data[0].value === '导入中') {
1218
+ this.$showAlert(`数据正在导入中,请稍后再试`, 'warning', 3000);
1219
+ this.batchmoneyShow=false
1220
+ return
1221
+ }
1222
+
1223
+ //更新状态
1224
+ let bankreverse={
1225
+ id:res1.data[0].id,
1226
+ value:'导入中'
1227
+ }
1228
+ await this.$resetpost('rs/entity/t_singlevalue', bankreverse,{ resolveMsg: null, rejectMsg: null})
1229
+
1230
+ //导入逻辑开始
1231
+ if (this.batchmoneyShow) {
1232
+ this.percent = 0;
1233
+ this.getuuid();
1234
+ let param = {
1235
+ filepath: res.f_downloadpath,
1236
+ f_operator: this.$login.f.name,
1237
+ f_operatorid: this.$login.f.id,
1238
+ f_orgid: this.$login.f.orgid,
1239
+ f_orgname: this.$login.f.orgs,
1240
+ f_depid: this.$login.f.depids,
1241
+ f_depname: this.$login.f.deps,
1242
+ uuid: this.uuida,
1243
+ id:res1.data[0].id
1244
+ }
1245
+ this.batchmoneyShow = false;
1246
+ try{
1247
+ await this.$resetpost('api/af-revenue/logic/SumSettleFileImport', {data: param}, {
1248
+ resolveMsg: null,
1249
+ rejectMsg: null
1250
+ },1000)
1251
+ }catch (e) {
1252
+ }
1253
+ let getparam = {
1254
+ uuid: this.uuida
1255
+ }
1256
+ let self = this;
1257
+ this.progressShow = true;
1258
+ this.timer = setInterval(function () {
1259
+ self.$resetpost('/api/af-revenue/logic/getBatchOperaPro', {data: getparam}, {
1260
+ resolveMsg: null,
1261
+ rejectMsg: null
1262
+ }, 0).then((res) => {
1263
+ if (res.data) {
1264
+ if (res.data.speed) {
1265
+ if (res.data.speed >= 100) {
1266
+ clearInterval(self.timer);
1267
+ if (res.data.speed) {
1268
+ self.percent = 99;
1269
+ }
1270
+ setTimeout(() => {
1271
+ self.percent = 100;
1272
+ self.progressclose();
1273
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
1274
+ }, 600);
1275
+ } else {
1276
+ self.percent = res.data.speed
1277
+ }
1278
+ } else {
1279
+ self.percent = 0;
1280
+ }
1281
+ }
1282
+ });
1283
+ }, 3000);
1284
+ }
1285
+ }
1286
+
1287
+ }
1288
+ }
1289
+ </script>