manage-client 3.1.23 → 3.1.27

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 (85) hide show
  1. package/build/dev-server.js +181 -174
  2. package/package.json +1 -1
  3. package/src/App.vue +29 -28
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/BasisEcharts/RingChart.vue +196 -196
  6. package/src/components/SellReport/BusinessClassify.vue +251 -251
  7. package/src/components/SellReport/ChargePrick.vue +245 -262
  8. package/src/components/SellReport/DepartmentPrick.vue +262 -262
  9. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  10. package/src/components/SellReport/ManageSellType.vue +284 -284
  11. package/src/components/SellReport/ManageUserCount.vue +347 -347
  12. package/src/components/SellReport/MarketMonth.vue +251 -251
  13. package/src/components/SellReport/SellingTable.vue +220 -220
  14. package/src/components/SellReport/UserClassify.vue +251 -251
  15. package/src/components/SellReport/UserSellingGas.vue +251 -251
  16. package/src/components/daping/CallCenter.vue +366 -366
  17. package/src/components/daping/DataManagement.vue +543 -703
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/daping/ManageMain.vue +267 -255
  20. package/src/components/daping/NetWork.vue +238 -0
  21. package/src/components/daping/RedactDaPing.vue +454 -0
  22. package/src/components/daping/Ring.vue +212 -217
  23. package/src/components/daping/SafeCheck.vue +446 -0
  24. package/src/components/daping/SafeCheckRing.vue +149 -160
  25. package/src/components/daping/SafecheckBarChart.vue +48 -133
  26. package/src/components/daping/WuHaiMap.vue +418 -0
  27. package/src/components/qinhua/BarChart.vue +256 -256
  28. package/src/components/qinhua/Pie.vue +132 -116
  29. package/src/components/qinhua/SellEcharts.vue +115 -94
  30. package/src/components/qinhua/qinHuaMap.vue +414 -390
  31. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  32. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/NewHandplanQuery.vue +995 -0
  35. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  36. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/sale/config/exportConfig.js +2 -1
  39. package/src/components/sale/filesquery/UserQuery.vue +16 -0
  40. package/src/components/statistical/StatisticalAnalysis.vue +247 -249
  41. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  42. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  43. package/src/components/webmeter/DrillData/UserGasAll.vue +596 -596
  44. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  45. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  46. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  47. package/src/components/webmeter/instruction/NewQueryInstruct.vue +9 -12
  48. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -0
  49. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -0
  50. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +899 -899
  51. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -0
  52. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -0
  53. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -0
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +606 -606
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +252 -252
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +440 -440
  57. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/alashan/SellingTable.vue +231 -231
  62. package/src/filiale/alashan/reportManage.js +10 -10
  63. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  64. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  65. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  66. package/src/filiale/meihekou/sale.js +26 -26
  67. package/src/filiale/rongcheng/exportConfig.js +257 -251
  68. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  69. package/src/filiale/rongchuang/reportManage.js +11 -11
  70. package/src/filiale/shaoguan/config/exportConfig.js +433 -430
  71. package/src/filiale/tongchuan/ResSelectGroupNew.vue +176 -0
  72. package/src/filiale/tongchuan/ResSelectNew.vue +144 -0
  73. package/src/filiale/tongchuan/sale.js +2 -1
  74. package/src/main.js +66 -66
  75. package/src/newmanage.js +525 -504
  76. package/src/reportManage.js +458 -458
  77. package/src/saleManage.js +23 -0
  78. package/static/wuhai.json +1610 -1610
  79. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  80. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  81. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  82. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  83. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  84. package/.gradle/5.2.1/gc.properties +0 -0
  85. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
@@ -0,0 +1,995 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
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
+
11
+ <div class="col-sm-2 form-group">
12
+ <label for="startDate" class="font_normal_body">录入日期</label>
13
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
+ v-model="model.startDate"
15
+ :value.sync="model.startDate"
16
+ :format="'yyyy-MM-dd HH:mm:ss'"
17
+ :show-reset-button="true"
18
+ condition="f_input_date >= '{}'">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
23
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_input_date <= '{}'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">客户编号</label>
33
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
34
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
35
+ </div>
36
+ <div class="col-sm-2 form-group">
37
+ <label class="font_normal_body">客户名称</label>
38
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
39
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
40
+ </div>
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+
45
+ <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getBankfield" :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="newhandplanQuery" template-name='送盘导出' btn-name="送盘导出"
49
+ :choose-col="true"></export-excel>
50
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
52
+ sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
53
+ :choose-col="true"></export-excel>
54
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
56
+ titletable="抄表查询"
57
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
+
59
+ <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>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
+
65
+
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">小区名称</label>
68
+ <v-select :value.sync="model.f_residential_area"
69
+ class="select_list select"
70
+ enter-push
71
+ multiple = "true"
72
+ v-model="model.f_residential_area"
73
+ style="width: 60%"
74
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
75
+ close-on-select>
76
+
77
+ </v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
82
+ condition="f_building like '%{}%'" placeholder="楼栋">
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">客户地址</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
87
+ condition="f_address like '%{}%'" placeholder='客户地址'>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">抄表状态</label>
91
+ <v-select :value.sync="model.f_meter_state"
92
+ v-model="model.f_meter_state"
93
+ :options='$parent.$parent.meterstate' placeholder='请选择'
94
+ condition="f_meter_state = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">表单状态</label>
99
+ <v-select :value.sync="model.f_hand_state"
100
+ v-model="model.f_hand_state"
101
+ :options='$parent.$parent.handstate' placeholder='请选择'
102
+ condition="f_hand_state = '{}'"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">录入人员</label>
107
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
108
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">是否缴费</label>
112
+ <v-select :value.sync="model.f_whether_pay"
113
+ v-model="model.f_whether_pay"
114
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
115
+ condition="f_whether_pay = '{}'"
116
+ close-on-select></v-select>
117
+ </div>
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
120
+ <v-select :value.sync="model.f_bgl"
121
+ v-model="model.f_bgl"
122
+ :options='$parent.$parent.bgl' placeholder='请选择'
123
+ condition="f_bgl = '{}'"
124
+ close-on-select></v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">客户类型</label>
128
+ <v-select :value.sync="model.f_user_type"
129
+ @change="$parent.$parent.userTypeChange()"
130
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
131
+ condition="f_user_type = '{}'"
132
+ close-on-select></v-select>
133
+ </div>
134
+ <div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">用气性质</label>
136
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
137
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
138
+ condition="f_gasproperties = '{}'"
139
+ close-on-select></v-select>
140
+ </div>
141
+ <div class="col-sm-2 form-group">
142
+ <label class="font_normal_body">气价类型</label>
143
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
144
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
145
+ close-on-select v-ref:type>
146
+ </v-select>
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">气价名称</label>
150
+ <v-select :value.sync="model.f_price_name"
151
+ v-model="model.f_price_name"
152
+ :options="$parent.$parent.getPricenames"
153
+ condition="f_price_name = '{}'"
154
+ close-on-select></v-select>
155
+ </div>
156
+ <div class="col-sm-2 form-group">
157
+ <label class="font_normal_body">下账状态</label>
158
+ <v-select :value.sync="model.f_accounts_state"
159
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
160
+ condition="f_accounts_state = '{}'"
161
+ close-on-select></v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">气表类型</label>
165
+ <v-select :value.sync="model.f_meter_classify" multiple
166
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
167
+ condition="f_meter_classify in {}"
168
+ close-on-select></v-select>
169
+ </div>
170
+ <div class="col-sm-2 form-group">
171
+ <label class="font_normal_body">气表品牌</label>
172
+ <v-select :value.sync="model.f_meter_brand" multiple
173
+ v-model="model.f_meter_brand"
174
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
175
+ condition="f_meter_brand in {}"
176
+ close-on-select></v-select>
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
180
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
181
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
182
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
183
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
184
+ </div>
185
+ <!-- <div class="col-sm-2 form-group">-->
186
+ <!-- <label class="font_normal_body">气价名称</label>-->
187
+ <!-- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name" :options="$parent.$parent.prices"-->
188
+ <!-- condition="f_price_name = '{}'" close-on-select></v-select>-->
189
+ <!-- </div>-->
190
+ <div class="col-sm-2 form-group">
191
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
192
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
193
+ condition="f_meternumber = '{}' " placeholder="表号">
194
+ </div>
195
+ <div class="col-sm-2 form-group">
196
+ <label for="startDate" class="font_normal_body">下发日期</label>
197
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
198
+ v-model="model.handStartDate"
199
+ :value.sync="model.handStartDate"
200
+ :format="'yyyy-MM-dd 00:00:00'"
201
+ :show-reset-button="true"
202
+ condition="f_hand_date >= '{}'">
203
+ </datepicker>
204
+ </div>
205
+ <div class="col-sm-2 form-group">
206
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
207
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
208
+ v-model="model.handEndDate"
209
+ :value.sync="model.handEndDate"
210
+ :format="'yyyy-MM-dd 23:59:59'"
211
+ :show-reset-button="true"
212
+ condition="f_hand_date <= '{}'">
213
+ </datepicker>
214
+ </div>
215
+ <div class="col-sm-2 form-group">
216
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
217
+ <v-select :value.sync="model.f_inputtor"
218
+ v-model="model.f_inputtor"
219
+ :options='$parent.$parent.inputtores' placeholder='请选择'
220
+ condition="f_inputtor = '{}'"
221
+ close-on-select :search="false">
222
+ </v-select>
223
+ </div>
224
+ <!--表册片区-->
225
+ <div class="col-sm-2 form-group">
226
+ <label class="font_normal_body">表册片区</label>
227
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
228
+ @change="$parent.$parent.inputtorchange"
229
+ multiple
230
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
231
+ style="width:60%"
232
+ close-on-select
233
+ condition="f_book_slice_area in {}"></v-select>
234
+ </div>
235
+ <div class="col-sm-2 form-group">
236
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
237
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
238
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
239
+ style="width:60%"
240
+ multiple
241
+ close-on-select
242
+ condition="f_meter_book_num in {}"></v-select>
243
+ </div>
244
+ <div class="col-sm-2 form-group" >
245
+ <label for="belongmonth" class="font_normal_body" >所属年月</label>
246
+ <datepicker placeholder="所属年月" style="width:60%"
247
+ v-model="model.belongmonth"
248
+ :value.sync="model.belongmonth"
249
+ :format="'yyyy-MM'"
250
+ :show-reset-button="true"
251
+ condition="belongmonth = '{}'"
252
+ :select-month="true">
253
+ </datepicker>
254
+ </div>
255
+ <div class="col-sm-2 form-group">
256
+ <label class="font_normal_body">银行名称</label>
257
+ <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
258
+ :options='$parent.$parent.banklist' placeholder='银行名称'
259
+ style="width:60%"
260
+ close-on-select
261
+ condition="f_bank_name = '{}'"></v-select>
262
+ </div>
263
+ <div class="col-sm-2 form-group">
264
+ <label for="startDate" class="font_normal_body">收费日期</label>
265
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
266
+ v-model="model.sellStartDate"
267
+ :value.sync="model.sellStartDate"
268
+ :format="'yyyy-MM-dd 00:00:00'"
269
+ :show-reset-button="true"
270
+ condition="f_sellinggas_operate_date >= '{}'">
271
+ </datepicker>
272
+ </div>
273
+ <div class="col-sm-2 form-group">
274
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
275
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
276
+ v-model="model.sellEndDate"
277
+ :value.sync="model.sellEndDate"
278
+ :format="'yyyy-MM-dd 23:59:59'"
279
+ :show-reset-button="true"
280
+ condition="f_sellinggas_operate_date <= '{}'">
281
+ </datepicker>
282
+ </div>
283
+ </div>
284
+ </div>
285
+ </criteria>
286
+
287
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
288
+ <template partial='head'>
289
+ <tr>
290
+ <th>
291
+ <nobr>客户编号</nobr>
292
+ </th>
293
+ </tr>
294
+ </template>
295
+ <template partial='body'>
296
+ <td style="text-align: center;">
297
+ {{row.f_userinfo_code}}
298
+ </td>
299
+ </template>
300
+ <template partial='foot'></template>
301
+ </data-grid>
302
+ </criteria-paged>
303
+
304
+ <!-- <table class="table-hover">-->
305
+ <!-- <tr style="position: relative;margin-top: -16px;" class="table-bordered">-->
306
+ <!-- <td-->
307
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
308
+ <!-- 汇总信息-->
309
+ <!-- </td>-->
310
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
311
+ <!-- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}-->
312
+ <!-- </td>-->
313
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
314
+ <!-- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}-->
315
+ <!-- </td>-->
316
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
317
+ <!-- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}-->
318
+ <!-- </td>-->
319
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
320
+ <!-- 欠费金额合计:&emsp;{{sumsmodel.f_actual_arrears}}-->
321
+ <!-- </td>-->
322
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
323
+ <!-- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}-->
324
+ <!-- </td>-->
325
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
326
+ <!-- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}-->
327
+ <!-- </td>-->
328
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
329
+ <!-- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}-->
330
+ <!-- </td>-->
331
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
332
+ <!-- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}-->
333
+ <!-- </td>-->
334
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
335
+ <!-- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}-->
336
+ <!-- </td>-->
337
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
338
+ <!-- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}-->
339
+ <!-- </td>-->
340
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
341
+ <!-- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}-->
342
+ <!-- </td>-->
343
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
344
+ <!-- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}-->
345
+ <!-- </td>-->
346
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
347
+ <!-- 应交气量合计:&emsp;{{sumsmodel.f_oughtamount}}-->
348
+ <!-- </td>-->
349
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
350
+ <!-- 已交气费金额合计:&emsp;{{sumsmodel.alloughtfee}}-->
351
+ <!-- </td>-->
352
+ <!-- </tr>-->
353
+ <!-- </table>-->
354
+ </div>
355
+ <!-- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">-->
356
+ <!-- <article slot="modal-body" class="modal-body">-->
357
+ <!-- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>-->
358
+ <!-- </article>-->
359
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
360
+ <!-- </footer>-->
361
+ <!-- </modal>-->
362
+ </div>
363
+ <!-- <div class="flex" v-if="show">-->
364
+ <!-- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>-->
365
+ <!-- </div>-->
366
+ <!-- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">-->
367
+ <!-- <article slot="modal-body">-->
368
+ <!-- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="机表抄表" :isremark="false" style="width:auto" ></upload>-->
369
+ <!-- </article>-->
370
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
371
+ <!-- </footer>-->
372
+ <!-- </modal>-->
373
+ <!-- <modal :show.sync="imgshow" v-ref:modal backdrop="true">-->
374
+ <!-- <header slot="modal-header" class="modal-header">-->
375
+ <!-- 抄表图像识别照片-->
376
+ <!-- </header>-->
377
+ <!-- <article slot="modal-body" class="modal-body">-->
378
+ <!-- <div class="from-group">-->
379
+ <!-- <img-self :src="imgfilename" width="500" height="500"></img-self>-->
380
+ <!-- </div>-->
381
+ <!-- </article>-->
382
+ <!-- </modal>-->
383
+
384
+ <!-- <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >-->
385
+ <!-- <header slot="modal-header" class="modal-header">-->
386
+ <!-- 反盘导入-->
387
+ <!-- </header>-->
388
+ <!-- <article slot="modal-body" class="modal-body">-->
389
+ <!-- <div class="progress" style="margin: 20px" >-->
390
+ <!-- <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">-->
391
+ <!-- {{percent}}%-->
392
+ <!-- </div>-->
393
+ <!-- </div>-->
394
+ <!-- </article>-->
395
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
396
+ <!-- <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>-->
397
+ <!-- </footer>-->
398
+ <!-- </modal>-->
399
+ <!-- <work-busy :is-busy="iswork" v-show="iswork"></work-busy>-->
400
+ </div>
401
+ </template>
402
+
403
+ <script>
404
+ import {PagedList, HttpResetClass} from 'vue-client'
405
+ import defaultPrint from '../config/DefaultPrint'
406
+ import exportConfig from '../config/exportConfig'
407
+ import axios from 'axios'
408
+
409
+ let readySomething = async function (self) {
410
+ //加载抄表册
411
+ self.$MagGetSaleParam.initinputtor();
412
+ self.getinputtores();
413
+ self.initmeterbook();
414
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
415
+ // self.loadMeterBooks()
416
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
417
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
418
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
419
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
420
+ // await self.$refs.paged.$refs.cri.search()
421
+ await self.$getConfig(self, 'HandplanQuery')
422
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
423
+ await self.$MagLoadParams.loadParam()
424
+ // await self.$MagLoadParams.loadParam()
425
+ self.initParams()
426
+ console.log('开始查询')
427
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
428
+ }
429
+ export default {
430
+ props:['data'],
431
+ title: '新机表抄表查询',
432
+ data() {
433
+ return {
434
+ iswork:false,
435
+ other:[],
436
+ footer:[],
437
+ data: {},
438
+ model: {},
439
+ // model: new PagedList('handplanQuery', 20, {
440
+ // startDate: 'this.model.startDate',
441
+ // endDate: 'this.model.endDate',
442
+ // f_orgid: 'this.model.f_orgid',
443
+ // }),
444
+ initres: {
445
+ org:[this.$login.f.orgid],
446
+ dep:[],
447
+ user:[],
448
+ },
449
+ show:false,
450
+ rowdata:{},
451
+ criteriaShow: false,
452
+ residentialArea: [],
453
+ orgCondtionStr: '',
454
+ modelval: [],
455
+ gasproperties:[],
456
+ inputtouPerson: [],
457
+ meterbrands: [],
458
+ printshow: false,
459
+ f_filialeid: this.$login.f.f_orgid,
460
+ all: false,
461
+ fields: {},
462
+ thead: '',
463
+ tfoot: '',
464
+ showupload:false,
465
+ selected:{},
466
+
467
+ // 下拉框
468
+
469
+ //合计数据
470
+ sumsmodel: {},
471
+ defaultfield: [],
472
+ config: {
473
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
474
+ },
475
+ batchmoneyShow:false,
476
+ prices: [],
477
+ bgl:[{label: '全部', value: ''},{label: '有', value: '1'},{label: '无', value: '0'}],
478
+ meterbooks:[{label: '全部',value: ''}], //抄表册
479
+ tempfalg :false,
480
+ lastorgstr:'',
481
+ allorgid:[],
482
+ inputtores:[{label: '全部',value: ''}], //抄表员
483
+ //表册片区
484
+ bookSlice:[{label: '全部',value: ''}],
485
+ imgshow:false,
486
+ imgfilename:'',
487
+ percent:0,
488
+ progressShow:false,
489
+ uuida:'',
490
+ timer:'',
491
+ }
492
+ },
493
+ ready() {
494
+ this.getaddress()
495
+ readySomething(this).then(() => {
496
+ this.$emit('ready')
497
+ }).catch((error) => {
498
+ this.$emit('error', error)
499
+ })
500
+ },
501
+ methods: {
502
+ getuuid(){
503
+ let uuidA = '';
504
+ var s = [];
505
+ var hexDigits = '0123456789abcdef';
506
+ for (var i = 0; i < 36; i++) {
507
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
508
+ }
509
+ s[14] = '4';
510
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
511
+ s[8] = s[13] = s[18] = s[23] = '-';
512
+ uuidA = s.join('');
513
+ this.uuida = uuidA;
514
+ },
515
+ progressclose(){
516
+ this.progressShow = false;
517
+ if(this.timer != null){
518
+ clearInterval(this.timer);
519
+ }
520
+ },
521
+ async initmeterbook(orgstr){
522
+ if(orgstr == null ){
523
+ orgstr = this.f_filialeid;
524
+ }
525
+ //获取新的抄表册,先去清理所有的抄表册
526
+ this.$GetSaleParam.meterbooks = [];
527
+ //开始加载新的抄表册
528
+ await this.$LoadParams.loadMeterBook(orgstr)
529
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
530
+ },
531
+ //初始化片区
532
+ async initSlice (val) {
533
+ if (val) {
534
+ let getAllArea = await this.$resetpost('/rs/search', {
535
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
536
+ userid: this.$login.f.id
537
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
538
+ let arr = getAllArea.data.filter((res) => {
539
+ return res.parentid == val
540
+ })
541
+ this.bookSlice = []
542
+ arr.forEach((res) => {
543
+ this.bookSlice.push({label: res.name, value: res.name})
544
+ })
545
+ }
546
+ },
547
+ //表册片区和抄表册关联
548
+ async inputtorchange(){
549
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
550
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
551
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
552
+ if((val2.length>0)){
553
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
554
+ let aaa = '('
555
+ val2.forEach((item) => {
556
+ aaa = aaa + `'${item}',`
557
+ })
558
+ aaa = aaa + `'')`
559
+ condition = condition + ` and f_book_slice_area in ${aaa} `
560
+ let param={
561
+ items:'*',
562
+ tablename:'t_meter_book',
563
+ condition:condition,
564
+ orderitem:'id'
565
+ }
566
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
567
+ if (getMeterBooks.data) {
568
+ if(getMeterBooks.data.length >0){
569
+ let rs = [];
570
+ getMeterBooks.data.forEach((item)=>{
571
+ let temp = {
572
+ label:item.f_book_name,
573
+ value:item.id
574
+ };
575
+ rs.push(temp);
576
+
577
+ })
578
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
579
+ }else{
580
+ this.meterbooks = [{label: '全部',value: ''}];
581
+ }
582
+ }
583
+ }else{
584
+ this.meterbooks = [{label: '全部',value: ''}];
585
+ this.initmeterbook();
586
+ }
587
+ },
588
+ async initmeterbook(orgstr){
589
+ if(orgstr == null ){
590
+ orgstr = this.f_filialeid;
591
+ }
592
+ //获取新的抄表册,先去清理所有的抄表册
593
+ this.$GetSaleParam.meterbooks = [];
594
+ //开始加载新的抄表册
595
+ await this.$LoadParams.loadMeterBook(orgstr)
596
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
597
+ },
598
+
599
+ async getinputtores () {
600
+ // 获取抄表员
601
+ let rs = []
602
+ if (this.$login.f.f_gasman.length > 0) {
603
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
604
+ let temp = {
605
+ label: this.$login.f.f_gasman[i].name,
606
+ value: this.$login.f.f_gasman[i].name
607
+ }
608
+ rs.push(temp)
609
+ }
610
+ }
611
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
612
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
613
+ },
614
+ async updateParams() {
615
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
616
+ this.inputtores = [];
617
+ this.inputtores.push({label: "全部", value: ""})
618
+ this.initSlice(this.f_filialeid)
619
+ if(this.allorgid!=null){
620
+ this.allorgid.forEach((res)=>{
621
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
622
+ })
623
+ }
624
+ this.initParams()
625
+ },
626
+ view(row){
627
+ this.showupload = true
628
+ this.selected= row
629
+ },
630
+ imgclose(){
631
+ this.imgshow = false
632
+ },
633
+ imgShow(val){
634
+ this.imgfilename = `rs/image/file/`+val
635
+ this.imgshow = true
636
+ },
637
+ initParams() {
638
+ // 初始化气表品牌
639
+ let brandArr = []
640
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
641
+ let temp = {}
642
+ temp.label = item.label
643
+ temp.value = item.value.f_meter_brand
644
+ brandArr.push(temp)
645
+ })
646
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
647
+ //初始化气价
648
+ let result = []
649
+ this.$MagGetSaleParam.prices.forEach((item) => {
650
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
651
+ let value = {
652
+ label: item.f_price_name,
653
+ value: item.f_price_name
654
+ }
655
+ result.push(value)
656
+ }
657
+ })
658
+ let hash = {}
659
+ result = result.reduce((item, next) => {
660
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
661
+ return item
662
+ }, [])
663
+ this.prices = Array.from(new Set(result))
664
+ },
665
+ getotherfooter(){
666
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
667
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
668
+ this.other=[];
669
+ this.footer=[];
670
+ let exportdata = this.getCondition;
671
+ let otherInData=[];
672
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
673
+ let footerData=[],exportfield=this.getfield;
674
+ footerData.push("合计");
675
+ let self = this;
676
+ for(var field in self.sumsmodel){
677
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
678
+ }
679
+ this.footer.push(footerData);
680
+ this.other.push(otherInData);
681
+ },
682
+ async getaddress(){
683
+ let HttpReset = new HttpResetClass()
684
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
685
+ data: {
686
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
687
+ }
688
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
689
+ console.log('小区',data)
690
+ let house = [{label: '全部', value: ''}]
691
+ for (let row of data.data){
692
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
693
+ }
694
+ this.residentialArea = house
695
+ },
696
+ Fileinput(){
697
+ this.batchmoneyShow=true;
698
+ },
699
+ search(){
700
+ this.$refs.paged.$refs.cri.search()
701
+ },
702
+ cancel() {
703
+ this.show = false
704
+ },
705
+ selfSearch(args) {
706
+ let m = args.model
707
+ let load = new HttpResetClass()
708
+ load.load('POST', 'handplanQuery',
709
+ {
710
+ startDate: m.startDate.replace(' ','T'),
711
+ endDate: m.endDate.replace(' ','T')
712
+ },
713
+ {resolveMsg: null, rejectMsg: null}
714
+ ).then((res) => {
715
+ console.log('res', res.data[0].handplan, typeof res.data[0].handplan)
716
+ let ss = res.data.filter(x => x.handplan !== '[]')
717
+ // res.filter(x => x.handplan != '[]')
718
+ // if(){
719
+ //
720
+ // }
721
+ this.model = ss
722
+ console.log('res', ss)
723
+ })
724
+ },
725
+ clear() {
726
+ //清空部门和人员
727
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
728
+ //部门和人员变为全选
729
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
730
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
731
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
732
+ this.$refs.paged.$refs.cri.model[key] = []
733
+ })
734
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
735
+ },
736
+ show() {
737
+ this.criteriaShow = true
738
+ },
739
+ hidden() {
740
+ this.criteriaShow = !this.criteriaShow
741
+ },
742
+ async getRes(condition,obj) {
743
+ this.orgCondtionStr = condition
744
+
745
+ },
746
+ stamp() {
747
+ this.all = false
748
+ //默认选择要打印的列
749
+ this.modelval = defaultPrint.config
750
+ this.fields = this.getfield
751
+ this.printshow = true
752
+ this.put()
753
+ },
754
+ put() {
755
+ // 对Modelval进行排序
756
+ this.sortModelval()
757
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
758
+ for (let key of this.modelval) {
759
+ this.thead += '<th>' + this.fields[key] + '</th>'
760
+ }
761
+ this.thead += '</tr>'
762
+ },
763
+ print() {
764
+ this.$refs.print.PrintAsFile()
765
+ this.printshow = false
766
+ },
767
+ dealmsg(val) {
768
+ this.rowdata=val
769
+ this.show=true
770
+ val.model = this.model.model
771
+ this.$dispatch('deal-msg', val)
772
+ },
773
+ close() {
774
+ this.printshow = false
775
+ this.all = false
776
+ },
777
+
778
+ userTypeChange () {
779
+ this.gasproperties=[]
780
+ if(this.$refs.paged.$refs.cri.model !==null) {
781
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
782
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
783
+ }
784
+ else{
785
+ this.gasproperties =[{label: '全部', value: ''}]
786
+ }
787
+ },
788
+ // 对选择的列进行排序
789
+ sortModelval() {
790
+ let sortModel = []
791
+ Object.keys(this.fields).forEach((key) => {
792
+ if (this.modelval.includes(key)) {
793
+ sortModel.push(key)
794
+ }
795
+ })
796
+ this.modelval = sortModel
797
+ }
798
+ },
799
+ watch: {
800
+ 'model.rows'(val) {
801
+ if(val.length === 0){
802
+ this.sumsmodel = {}
803
+ }
804
+ },
805
+ async 'orgCondtionStr'(val) {
806
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
807
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
808
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
809
+ this.meterbooks = [{label: '全部',value: ''}];
810
+ if(this.lastorgstr != val){
811
+ this.tempfalg = true;
812
+ this.lastorgstr = val;
813
+ }
814
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
815
+ this.tempfalg = false;
816
+ let a = val.substring(val.indexOf("(")+2)
817
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
818
+ }
819
+ let res = val.match(/'(.*?)'/)
820
+ console.log('正则提取:',res && res[1])
821
+ if (res) {
822
+ this.f_filialeid = res[1]
823
+ if(res.input !=null){
824
+ let resorgid = res.input.substring(res.input.indexOf("'"));
825
+ if(resorgid!= null && resorgid!=''){
826
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
827
+ // resorgid = resorgid.replaceAll("'","");
828
+ resorgid = resorgid.replace(/'/g,"");
829
+ this.allorgid = resorgid.split(",")
830
+ }
831
+ }
832
+ this.updateParams()
833
+ }
834
+ },
835
+ 'all'(val) {
836
+ if (val) {
837
+ this.modelval = this.bodyData
838
+ } else {
839
+ this.modelval = defaultPrint.config
840
+ this.put()
841
+ }
842
+ },
843
+ 'modelval.length'() {
844
+ this.put()
845
+ },
846
+ sumsmodel:{
847
+ handler: function(val) {
848
+ this.getotherfooter();
849
+ },
850
+ deep: true
851
+ }
852
+ },
853
+ computed: {
854
+
855
+ metertypes() {
856
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
857
+ },
858
+ banklist() {
859
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
860
+ },
861
+ getCondition() {
862
+ return {
863
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
864
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
865
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
866
+ },
867
+ getfield() {
868
+ return exportConfig.handplanConfig
869
+ },
870
+ getBankfield(){
871
+ return exportConfig.batchBankConfig2
872
+ },
873
+ usertypes() {
874
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
875
+ },
876
+ accountsState() {
877
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
878
+ },
879
+ meterstate() {
880
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
881
+ },
882
+ handstate() {
883
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
884
+ },
885
+ // inputtor() {
886
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
887
+ // },
888
+ pricetypes() {
889
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
890
+ },
891
+ getPricenames() {
892
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
893
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
894
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
895
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
896
+ if(this.$refs.paged.$refs.cri.model !==null) {
897
+ let rs = []
898
+ let priceArr = []
899
+ if ( pricetype.length >0) {
900
+ let params = {
901
+ f_price_type: pricetype[0],
902
+ filter: this.f_filialeid,
903
+ prices: this.prices
904
+ }
905
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
906
+ let temp = {}
907
+ temp.label = item.label
908
+ temp.value = item.value.f_price_name
909
+ priceArr.push(temp)
910
+ })
911
+ rs = [{label: '全部', value: ''}, ...priceArr]
912
+ }
913
+ if (rs.length === 0) {
914
+ console.log('rs读出来是空')
915
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
916
+ }
917
+ return rs
918
+ }
919
+ },
920
+ inputtor () {
921
+ // 获取抄表员
922
+ console.log('获取抄表员', this.$login.f)
923
+ let rs = []
924
+ if (this.$login.f.f_gasman.length > 0) {
925
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
926
+ let temp = {
927
+ label: this.$login.f.f_gasman[i].name,
928
+ value: this.$login.f.f_gasman[i].name
929
+ }
930
+ rs.push(temp)
931
+ }
932
+ }
933
+
934
+ return [{label: '全部', value: ''}, ...rs]
935
+ },
936
+ whetherPay() {
937
+ return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
938
+ },
939
+
940
+ },
941
+ events:{
942
+ 'onFileUpload': async function (file, res) {
943
+ if (this.batchmoneyShow) {
944
+ this.percent = 0;
945
+ this.getuuid();
946
+ let param = {
947
+ filepath: res.f_downloadpath,
948
+ f_operator: this.$login.f.name,
949
+ f_operatorid: this.$login.f.id,
950
+ f_orgid: this.$login.f.orgid,
951
+ f_orgname: this.$login.f.orgs,
952
+ f_depid: this.$login.f.depids,
953
+ f_depname: this.$login.f.deps,
954
+ uuid: this.uuida
955
+ }
956
+ this.batchmoneyShow=false;
957
+ try{
958
+ await this.$resetpost('rs/logic/SumSettleFileImport',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
959
+ if(res.data){
960
+ }
961
+ })
962
+ }catch(error){}
963
+ let getparam = {
964
+ uuid: this.uuida
965
+ }
966
+ let self = this;
967
+ this.progressShow=true;
968
+ this.timer = setInterval(function(){
969
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
970
+ if(res.data ){
971
+ if(res.data.speed){
972
+ if(res.data.speed>= 100){
973
+ clearInterval(self.timer);
974
+ if(res.data.speed){
975
+ self.percent = 99;
976
+ }
977
+ setTimeout(()=>{
978
+ self.percent = 100;
979
+ self.progressclose();
980
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
981
+ },600);
982
+ }else{
983
+ self.percent = res.data.speed
984
+ }
985
+ }else{
986
+ self.percent=0;
987
+ }
988
+ }
989
+ });
990
+ },3000);
991
+ }
992
+ }
993
+ }
994
+ }
995
+ </script>