manage-client 3.2.79-aode → 3.2.80-aode

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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,480 +1,480 @@
1
- <template>
2
- <div style="height: 90%;">
3
- <!--<p style="height:30px;" >-->
4
- <!--<button style="float:right;" type="button" class="button_search button_spacing" @click='addpushData'>新增交账记录</button>-->
5
- <!--</p>-->
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
- <!-- <button class="button_search button_spacing" @click="search()">刷新</button>-->
11
- <!-- </div>-->
12
- </div>
13
- </criteria>
14
- <data-grid :model="model" partial='list' :sumsmodel="sumsmodel" class="list_area table_sy" v-ref:grid >
15
- <template partial='head'>
16
- <tr>
17
- <!--<th>-->
18
- <!--<data-order name="操作"></data-order>-->
19
- <!--</th>-->
20
- <th>
21
- <data-order field="f_userinfo_code" name="NC客户编号"></data-order>
22
- </th>
23
- <th><data-order field="f_user_name" name="NC客户姓名"></data-order>
24
- </th>
25
- <th>
26
- <data-order field="f_userinfo_code" name="系统客户编号"></data-order>
27
- </th>
28
- <th><data-order field="f_user_name" name="系统客户姓名"></data-order>
29
- </th>
30
- <th>
31
- <data-order field="f_payment" name="付款方式"></data-order>
32
- <!--<nobr>付款方式</nobr>-->
33
- </th>
34
- <th>
35
- <data-order field="f_type" name="缴费类型"></data-order>
36
- <!--<nobr>付款方式</nobr>-->
37
- </th>
38
- <th><nobr>地址</nobr></th>
39
- <th>
40
- <data-order field="f_user_type" name="客户类型"></data-order>
41
- <!--<nobr>客户类型</nobr>-->
42
- </th>
43
- <th><data-order field="f_operate_date" name="操作状态"></data-order>
44
- <!--<nobr>操作时间</nobr>-->
45
- </th>
46
- <th>
47
- <data-order field="f_pregas" name="气量"></data-order>
48
- </th>
49
- <th>
50
- <data-order field="f_preamount" name="应收金额"></data-order>
51
- </th>
52
- <th>
53
- <data-order field="f_collection" name="实收金额"></data-order>
54
-
55
- </th>
56
- </tr>
57
- </template>
58
- <template partial='body' >
59
- <!--<td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>-->
60
- <!--<div v-if="row.flag!=null && row.flag=='1'">-->
61
- <!--<button type="button" class="btn btn-link button_spacing" @click='$parent.$parent.$parent.deleterow(row)'>删除</button>-->
62
- <!--<button type="button" class="btn btn-link button_spacing" @click='$parent.$parent.$parent.updaterow(row)'>修改</button>-->
63
- <!--</div>-->
64
- <!--</nobr> </td>-->
65
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
66
- <span >{{row.f_userinfo_code}}</span>
67
- </nobr> </td>
68
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
69
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newolduserinfo_code}}</nobr></td>
70
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newolduser_name}}</nobr></td>
71
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
72
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
73
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
74
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
75
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
76
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
77
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
78
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
79
- </template>
80
- </data-grid>
81
- </criteria-paged>
82
- <table class="table-hover">
83
- <tr style="position: relative" class="table-bordered">
84
- <td
85
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
86
- 汇总信息
87
- </td>
88
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
89
- 总业务气量:&emsp;{{sumsmodel.allpregas}}
90
- </td>
91
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
92
- 总应收金额:&emsp;{{sumsmodel.allpreamount}}
93
- </td>
94
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
95
- 总实收金额:&emsp;{{sumsmodel.allf_collection}}
96
- </td>
97
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
98
- 民用总业务气量:&emsp;{{sumsmodel.prgas_civill}}
99
- </td>
100
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
101
- 民用总实收金额:{{sumsmodel.collection_civill}}
102
- </td>
103
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
104
- 民用柜台微信:&emsp;{{sumsmodel.f_civill_sumgtwx}}
105
- </td>
106
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
107
- 民用财务收款:&emsp;{{sumsmodel.f_civill_sumcwsf}}
108
- </td>
109
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
110
- 民用现金缴费:&emsp;{{sumsmodel.f_civill_sumxjjf}}
111
- </td>
112
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
113
- 民用柜台支付宝:&emsp;{{sumsmodel.f_civill_sumzfb}}
114
- </td>
115
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
116
- 民用POS:&emsp;{{sumsmodel.f_civill_sumpos}}
117
- </td>
118
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
119
- 民用销售气票:&emsp;{{sumsmodel.f_civill_sumqp}}
120
- </td>
121
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
122
- 民用银行码收款:&emsp;{{sumsmodel.f_civill_sumyysk}}
123
- </td>
124
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
125
- 民用降价补气:&emsp;{{sumsmodel.f_civill_sumjjbq}}
126
- </td>
127
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
128
- 民用煤改气补贴款&emsp;{{sumsmodel.f_civill_sumbtk}}
129
- </td>
130
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
131
- 非民用总业务气量:&emsp;{{sumsmodel.prgas_nocivill}}
132
- </td>
133
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
134
- <!-- 非民用总应收金额:&emsp;{{sumsmodel.preamount_nocivill}}-->
135
- <!-- </td>-->
136
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
137
- 非民用总实收金额:&emsp;{{sumsmodel.collection_nocivill}}
138
- </td>
139
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
140
- 非民用柜台微信:&emsp;{{sumsmodel.f_no_civill_sumgtwx}}
141
- </td>
142
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
143
- 非民用财务收款:&emsp;{{sumsmodel.f_no_civill_sumcwsf}}
144
- </td>
145
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
146
- 非民用现金缴费:&emsp;{{sumsmodel.f_no_civill_sumxjjf}}
147
- </td>
148
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
149
- 非民用柜台支付宝:&emsp;{{sumsmodel.f_no_civill_sumzfb}}
150
- </td>
151
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
152
- 非民用POS:&emsp;{{sumsmodel.f_no_civill_sumpos}}
153
- </td>
154
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
155
- 非民用销售气票:&emsp;{{sumsmodel.f_no_civill_sumqp}}
156
- </td>
157
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
158
- 非民用银行码收款:&emsp;{{sumsmodel.f_no_civill_sumyysk}}
159
- </td>
160
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
161
- 非民用降价补气:&emsp;{{sumsmodel.f_no_civill_sumjjbq}}
162
- </td>
163
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
164
- 非民用煤改气补贴款:&emsp;{{sumsmodel.f_no_civill_sumbtk}}
165
- </td>
166
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
167
- 其他应收金额:&emsp;{{sumsmodel.f_other_preamount}}
168
- </td>
169
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
170
- 其他实收金额:&emsp;{{sumsmodel.f_other_collection}}
171
- </td>
172
- </tr>
173
- </table>
174
- </div>
175
- </template>
176
-
177
- <script>
178
- import { PagedList } from 'vue-client'
179
-
180
- let readySomething = async function (self) {
181
- self.model.params.startDate = self.searchcondition.startDate;
182
- self.model.params.endDate = self.searchcondition.endDate;
183
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
184
- self.sumchangeflag=0;
185
- }
186
-
187
- export default {
188
- title: '交账记录确认',
189
- data() {
190
- return {
191
- orderDefault: "'f_operate_date'",
192
- orderFields: {
193
- f_userinfo_code: 'no'
194
- },
195
- model: new PagedList('rs/sql/ncPushBillQueryCivill', 300,{},{
196
- allpregas: 0,
197
- allf_collection: 0,
198
- allpreamount:0,
199
- prgas_civill:0,
200
- collection_civill:0,
201
- prgas_nocivill:0,
202
- collection_nocivill:0,
203
- preamount_nocivill:0,
204
- preamount_civill:0,
205
- f_other_preamount:0,
206
- f_other_collection:0,
207
- f_civill_sumgtwx:0, //民用各种金额合计
208
- f_civill_sumcwsf:0,
209
- f_civill_sumxjjf:0,
210
- f_civill_sumzfb:0,
211
- f_civill_sumpos:0,
212
- f_civill_sumqp:0,
213
- f_civill_sumyysk:0,
214
- f_civill_sumjjbq:0,
215
- f_civill_sumbtk:0,
216
- f_no_civill_sumgtwx:0, //非民用各种金额合计
217
- f_no_civill_sumcwsf:0,
218
- f_no_civill_sumxjjf:0,
219
- f_no_civill_sumzfb:0,
220
- f_no_civill_sumpos:0,
221
- f_no_civill_sumqp:0,
222
- f_no_civill_sumyysk:0,
223
- f_no_civill_sumjjbq:0,
224
- f_no_civill_sumbtk:0
225
- }),
226
- confirmmodel:[],
227
- sumsmodel: {},
228
- allmodel:{},
229
- sumchangeflag:0,
230
- }
231
- },
232
- props:['othermodel','searchcondition'],
233
- ready() {
234
- readySomething(this);
235
- this.search();
236
- },
237
- methods: {
238
- search() {
239
- this.$refs.paged.$refs.cri.search();
240
- this.checkotherbill();
241
- },
242
- checkuserdata(){
243
- let flag = true;
244
- if(this.model.rows && this.model.rows.length>0){
245
- this.model.rows.forEach(item=>{
246
- if(item.f_user_type && item.f_user_type=='非民用' && ( item.f_user_name==null || item.f_user_name =='')){
247
- this.$showMessage("当前推送记录有非民用用户未关联NC档案,请关联后进行交账");
248
- flag = false;
249
- return;
250
- }
251
- })
252
- }
253
- if(flag){
254
- this.$dispatch('openconfimbutton');
255
- }else{
256
- this.$dispatch('closeconfimbutton');
257
- }
258
- },
259
- checknopushuserdata(){
260
- let flag = true;
261
- if(this.nopushmodel && this.nopushmodel.length>0){
262
- this.nopushmodel.forEach(item=>{
263
- if(item.f_user_type && item.f_user_type=='非民用' && ( item.f_customer==null || item.f_customer =='')){
264
- this.$showMessage("本次推送记录之前未推送记录有非民用用户未关联NC档案,请关联后进行交账");
265
- flag = false;
266
- return;
267
- }
268
- })
269
- }
270
- if(flag){
271
- this.$dispatch('openconfimbutton');
272
- }else{
273
- this.$dispatch('closeconfimbutton');
274
- }
275
- },
276
- async selfSearch(args) {
277
- args.condition = `${args.condition} and ` + this.searchcondition.condition;
278
- await this.model.search(args.condition, args.model);
279
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
280
- console.log('计算合计。', this.sumsmodel)
281
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
282
- for (let key in this.sumsmodel) {
283
- this.sumsmodel[key] = 0;
284
- }
285
- }
286
- this.sumchangeflag=0;
287
- this.checkotherbill();
288
- },
289
- checkotherbill(){
290
- this.checkuserdata();
291
- //检查特殊数据
292
- if(this.othermodel && this.othermodel.length>0 && this.model.rows && this.sumchangeflag==0 ){
293
- this.sumchangeflag = 1;
294
- let otherpramount = 0;
295
- let othercollection =0;
296
- //如果存在将数据放入开头
297
- let newrow = [];
298
- if(this.model.rows.length>0){
299
- this.model.rows.forEach((item,index)=>{
300
- let flag = 1;
301
- this.othermodel.forEach(item2=>{
302
- if(this.compareObject(item,item2)){
303
- flag = 0;
304
- }
305
- })
306
- if(flag == 1){
307
- newrow.push(item);
308
- }
309
- })
310
- }
311
- this.model.rows = newrow;
312
- this.othermodel.forEach(item=>{
313
- otherpramount = ((item.f_preamount-0)+(otherpramount-0)).toFixed(2);
314
- othercollection = ((item.f_collection-0)+(othercollection-0)).toFixed(2);
315
- })
316
- this.sumsmodel.f_other_preamount = otherpramount;
317
- this.sumsmodel.f_other_collection = othercollection;
318
- this.sumsmodel.allpreamount = ((this.sumsmodel.allpreamount-0)+(otherpramount-0)).toFixed(2);
319
- this.sumsmodel.allf_collection =((this.sumsmodel.allf_collection-0)+(othercollection-0)).toFixed(2);
320
- this.model.rows = [...this.model.rows,...this.othermodel];
321
- }
322
- //合并未交账数据: 要将民用进行合并,非民用不进行合并
323
- if(this.nopushmodel && this.nopushmodel.length>0 ){
324
- let civilldata ={}
325
- if(this.model.rows.length>0) {
326
- if (this.model.rows[0].sumchangeflag == null) {
327
- this.model.rows[0].sumchangeflag = 0;
328
- } else {
329
- return;
330
- }
331
- this.model.rows.forEach(item => {
332
- if (item.f_user_name == '民用') {
333
- civilldata = item;
334
- return;
335
- }
336
- })
337
- }
338
- if(civilldata.f_user_name == null){
339
- civilldata = {
340
- f_user_name:'民用',
341
- f_payment:'',
342
- f_type:'',
343
- f_address:'',
344
- f_user_type:'民用',
345
- f_meter_brand:'',
346
- f_state:'有效',
347
- f_pregas:0,
348
- f_preamount:0,
349
- f_collection:0,
350
- sumchangeflag:0
351
- }
352
- }
353
- this.nopushmodel.forEach(items=>{
354
- let newsums = this.sumsmodel;
355
- if(items.f_user_type == '民用'){
356
- civilldata.f_pregas = ((civilldata.f_pregas-0) + (items.f_pregas-0)).toFixed(2);
357
- civilldata.f_preamount =((civilldata.f_preamount-0) + (items.f_preamount-0)).toFixed(2);
358
- civilldata.f_collection = ((civilldata.f_collection-0) + (items.f_collection-0)).toFixed(2);
359
- newsums.pregas_civill = ((newsums.pregas_civill-0)+ (items.f_pregas-0)).toFixed(2);
360
- if(items.f_payment=='柜台微信'){
361
- newsums.f_civill_sumgtwx = newsums.f_civill_sumgtwx+ parseFloat(items.f_collection-0);
362
- }
363
- if(items.f_payment=='财务收款'){
364
- newsums.f_civill_sumcwsf = newsums.f_civill_sumcwsf+ parseFloat(items.f_collection-0);
365
- }
366
- if(items.f_payment=='现金缴费'){
367
- newsums.f_civill_sumxjjf = newsums.f_civill_sumxjjf+ parseFloat(items.f_collection-0);
368
- }
369
- if(items.f_payment=='柜台支付宝'){
370
- newsums.f_civill_sumzfb = newsums.f_civill_sumzfb+ parseFloat(items.f_collection-0);
371
- }
372
- if(items.f_payment=='POS'){
373
- newsums.f_civill_sumpos = newsums.f_civill_sumpos+ parseFloat(items.f_collection-0);
374
- }
375
- if(items.f_payment=='气票'){
376
- newsums.f_civill_sumqp = newsums.f_civill_sumqp+ parseFloat(items.f_collection-0);
377
- }
378
- }
379
- if(items.f_user_type == '非民用'){
380
- newsums.pregas_nocivill = newsums.pregas_nocivill+ parseFloat(items.f_pregas-0);
381
- newsums.collection_nocivill = newsums.collection_nocivill+ parseFloat(items.f_collection-0);
382
- if(items.f_payment=='柜台微信'){
383
- newsums.f_no_civill_sumgtwx = newsums.f_no_civill_sumgtwx+ parseFloat(items.f_collection-0);
384
- }
385
- if(items.f_payment=='财务收款'){
386
- newsums.f_no_civill_sumcwsf = newsums.f_no_civill_sumcwsf+ parseFloat(items.f_collection-0);
387
- }
388
- if(items.f_payment=='现金缴费'){
389
- newsums.f_no_civill_sumxjjf = newsums.f_no_civill_sumxjjf+ parseFloat(items.f_collection-0);
390
- }
391
- if(items.f_payment=='柜台支付宝'){
392
- newsums.f_no_civill_sumzfb = newsums.f_no_civill_sumzfb+ parseFloat(items.f_collection-0);
393
- }
394
- if(items.f_payment=='POS'){
395
- newsums.f_no_civill_sumpos = newsums.f_no_civill_sumpos+ parseFloat(items.f_collection-0);
396
- }
397
- if(items.f_payment=='气票'){
398
- newsums.f_no_civill_sumqp = newsums.f_no_civill_sumqp+ parseFloat(items.f_collection-0);
399
- }
400
- this.model.rows.unshift(items);
401
- }
402
- newsums.allpregas = ((newsums.allpregas-0)+(items.f_pregas-0)).toFixed(2);
403
- newsums.allpreamount = ((newsums.allpreamount-0)+(items.f_preamount-0)).toFixed(2);
404
- newsums.allf_collection = ((newsums.allf_collection-0)+(items.f_collection-0)).toFixed(2);
405
- this.$set('this.sumsmodel',newsums);
406
- this.$refs.paged.$refs.grid.model.sums = newsums;
407
- })
408
- let hastrue=1;
409
- if(this.model.rows.length>0)(
410
- this.model.rows.forEach(item=>{
411
- if(item.f_user_name=='民用'){
412
- hastrue=0
413
- item=civilldata;
414
- return;
415
- }
416
- })
417
- )
418
- if(hastrue==1){
419
- this.model.rows.push(civilldata);
420
- }
421
- }
422
- },
423
- compareObject(o1,o2){
424
- if(typeof o1 != typeof o2)return false;
425
- if(typeof o1 == 'object'){
426
- for(var o in o1){
427
- if(typeof o2[o] == 'undefined')return false;
428
- if(!this.compareObject(o1[o],o2[o]))return false;
429
- }
430
- return true;
431
- }else{
432
- return o1 === o2;
433
- }
434
- },
435
- deleterow(row){
436
- this.$dispatch('deleterow',row)
437
- // this.allmodel.rows.pop(row);
438
- // this.sumalldata();
439
- this.$showAlert('删除成功!','success',1000);
440
- },
441
- updaterow(row){
442
- this.$dispatch('updaterow',row)
443
- },
444
- addpushData(){
445
- this.$dispatch('add');
446
- },
447
- sort (field, rule) {
448
- // 将所有排序方式设为不排序,实现相互排斥
449
- for (let key in this.orderFields) {
450
- if (key === field) {
451
- this.orderFields[key] = rule
452
- } else {
453
- this.orderFields[key] = 'no'
454
- }
455
- }
456
- if (rule === 'no') {
457
- this.allmodel.paramSource.orderitem = `'${this.orderDefault}'`
458
- } else {
459
- this.allmodel.paramSource.orderitem = `'${field} ${rule}'`
460
- }
461
- },
462
- },
463
- watch:{
464
- 'model.pageIndex'(){
465
- this.checkotherbill();
466
- }
467
- }
468
- }
469
- </script>
470
-
471
- <style scoped>
472
-
473
- .col {
474
- width: 300px;
475
- overflow: hidden;
476
- text-overflow: ellipsis;
477
- white-space: nowrap;
478
- }
479
-
480
- </style>
1
+ <template>
2
+ <div style="height: 90%;">
3
+ <!--<p style="height:30px;" >-->
4
+ <!--<button style="float:right;" type="button" class="button_search button_spacing" @click='addpushData'>新增交账记录</button>-->
5
+ <!--</p>-->
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
+ <!-- <button class="button_search button_spacing" @click="search()">刷新</button>-->
11
+ <!-- </div>-->
12
+ </div>
13
+ </criteria>
14
+ <data-grid :model="model" partial='list' :sumsmodel="sumsmodel" class="list_area table_sy" v-ref:grid >
15
+ <template partial='head'>
16
+ <tr>
17
+ <!--<th>-->
18
+ <!--<data-order name="操作"></data-order>-->
19
+ <!--</th>-->
20
+ <th>
21
+ <data-order field="f_userinfo_code" name="NC客户编号"></data-order>
22
+ </th>
23
+ <th><data-order field="f_user_name" name="NC客户姓名"></data-order>
24
+ </th>
25
+ <th>
26
+ <data-order field="f_userinfo_code" name="系统客户编号"></data-order>
27
+ </th>
28
+ <th><data-order field="f_user_name" name="系统客户姓名"></data-order>
29
+ </th>
30
+ <th>
31
+ <data-order field="f_payment" name="付款方式"></data-order>
32
+ <!--<nobr>付款方式</nobr>-->
33
+ </th>
34
+ <th>
35
+ <data-order field="f_type" name="缴费类型"></data-order>
36
+ <!--<nobr>付款方式</nobr>-->
37
+ </th>
38
+ <th><nobr>地址</nobr></th>
39
+ <th>
40
+ <data-order field="f_user_type" name="客户类型"></data-order>
41
+ <!--<nobr>客户类型</nobr>-->
42
+ </th>
43
+ <th><data-order field="f_operate_date" name="操作状态"></data-order>
44
+ <!--<nobr>操作时间</nobr>-->
45
+ </th>
46
+ <th>
47
+ <data-order field="f_pregas" name="气量"></data-order>
48
+ </th>
49
+ <th>
50
+ <data-order field="f_preamount" name="应收金额"></data-order>
51
+ </th>
52
+ <th>
53
+ <data-order field="f_collection" name="实收金额"></data-order>
54
+
55
+ </th>
56
+ </tr>
57
+ </template>
58
+ <template partial='body' >
59
+ <!--<td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>-->
60
+ <!--<div v-if="row.flag!=null && row.flag=='1'">-->
61
+ <!--<button type="button" class="btn btn-link button_spacing" @click='$parent.$parent.$parent.deleterow(row)'>删除</button>-->
62
+ <!--<button type="button" class="btn btn-link button_spacing" @click='$parent.$parent.$parent.updaterow(row)'>修改</button>-->
63
+ <!--</div>-->
64
+ <!--</nobr> </td>-->
65
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
66
+ <span >{{row.f_userinfo_code}}</span>
67
+ </nobr> </td>
68
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
69
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newolduserinfo_code}}</nobr></td>
70
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newolduser_name}}</nobr></td>
71
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
72
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
73
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
74
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
75
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
76
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
77
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
78
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
79
+ </template>
80
+ </data-grid>
81
+ </criteria-paged>
82
+ <table class="table-hover">
83
+ <tr style="position: relative" class="table-bordered">
84
+ <td
85
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
86
+ 汇总信息
87
+ </td>
88
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
89
+ 总业务气量:&emsp;{{sumsmodel.allpregas}}
90
+ </td>
91
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
92
+ 总应收金额:&emsp;{{sumsmodel.allpreamount}}
93
+ </td>
94
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
95
+ 总实收金额:&emsp;{{sumsmodel.allf_collection}}
96
+ </td>
97
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
98
+ 民用总业务气量:&emsp;{{sumsmodel.prgas_civill}}
99
+ </td>
100
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
101
+ 民用总实收金额:{{sumsmodel.collection_civill}}
102
+ </td>
103
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
104
+ 民用柜台微信:&emsp;{{sumsmodel.f_civill_sumgtwx}}
105
+ </td>
106
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
107
+ 民用财务收款:&emsp;{{sumsmodel.f_civill_sumcwsf}}
108
+ </td>
109
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
110
+ 民用现金缴费:&emsp;{{sumsmodel.f_civill_sumxjjf}}
111
+ </td>
112
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
113
+ 民用柜台支付宝:&emsp;{{sumsmodel.f_civill_sumzfb}}
114
+ </td>
115
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
116
+ 民用POS:&emsp;{{sumsmodel.f_civill_sumpos}}
117
+ </td>
118
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
119
+ 民用销售气票:&emsp;{{sumsmodel.f_civill_sumqp}}
120
+ </td>
121
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
122
+ 民用银行码收款:&emsp;{{sumsmodel.f_civill_sumyysk}}
123
+ </td>
124
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
125
+ 民用降价补气:&emsp;{{sumsmodel.f_civill_sumjjbq}}
126
+ </td>
127
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
128
+ 民用煤改气补贴款&emsp;{{sumsmodel.f_civill_sumbtk}}
129
+ </td>
130
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
131
+ 非民用总业务气量:&emsp;{{sumsmodel.prgas_nocivill}}
132
+ </td>
133
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
134
+ <!-- 非民用总应收金额:&emsp;{{sumsmodel.preamount_nocivill}}-->
135
+ <!-- </td>-->
136
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
137
+ 非民用总实收金额:&emsp;{{sumsmodel.collection_nocivill}}
138
+ </td>
139
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
140
+ 非民用柜台微信:&emsp;{{sumsmodel.f_no_civill_sumgtwx}}
141
+ </td>
142
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
143
+ 非民用财务收款:&emsp;{{sumsmodel.f_no_civill_sumcwsf}}
144
+ </td>
145
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
146
+ 非民用现金缴费:&emsp;{{sumsmodel.f_no_civill_sumxjjf}}
147
+ </td>
148
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
149
+ 非民用柜台支付宝:&emsp;{{sumsmodel.f_no_civill_sumzfb}}
150
+ </td>
151
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
152
+ 非民用POS:&emsp;{{sumsmodel.f_no_civill_sumpos}}
153
+ </td>
154
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
155
+ 非民用销售气票:&emsp;{{sumsmodel.f_no_civill_sumqp}}
156
+ </td>
157
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
158
+ 非民用银行码收款:&emsp;{{sumsmodel.f_no_civill_sumyysk}}
159
+ </td>
160
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
161
+ 非民用降价补气:&emsp;{{sumsmodel.f_no_civill_sumjjbq}}
162
+ </td>
163
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
164
+ 非民用煤改气补贴款:&emsp;{{sumsmodel.f_no_civill_sumbtk}}
165
+ </td>
166
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
167
+ 其他应收金额:&emsp;{{sumsmodel.f_other_preamount}}
168
+ </td>
169
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
170
+ 其他实收金额:&emsp;{{sumsmodel.f_other_collection}}
171
+ </td>
172
+ </tr>
173
+ </table>
174
+ </div>
175
+ </template>
176
+
177
+ <script>
178
+ import { PagedList } from 'vue-client'
179
+
180
+ let readySomething = async function (self) {
181
+ self.model.params.startDate = self.searchcondition.startDate;
182
+ self.model.params.endDate = self.searchcondition.endDate;
183
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
184
+ self.sumchangeflag=0;
185
+ }
186
+
187
+ export default {
188
+ title: '交账记录确认',
189
+ data() {
190
+ return {
191
+ orderDefault: "'f_operate_date'",
192
+ orderFields: {
193
+ f_userinfo_code: 'no'
194
+ },
195
+ model: new PagedList('rs/sql/ncPushBillQueryCivill', 300,{},{
196
+ allpregas: 0,
197
+ allf_collection: 0,
198
+ allpreamount:0,
199
+ prgas_civill:0,
200
+ collection_civill:0,
201
+ prgas_nocivill:0,
202
+ collection_nocivill:0,
203
+ preamount_nocivill:0,
204
+ preamount_civill:0,
205
+ f_other_preamount:0,
206
+ f_other_collection:0,
207
+ f_civill_sumgtwx:0, //民用各种金额合计
208
+ f_civill_sumcwsf:0,
209
+ f_civill_sumxjjf:0,
210
+ f_civill_sumzfb:0,
211
+ f_civill_sumpos:0,
212
+ f_civill_sumqp:0,
213
+ f_civill_sumyysk:0,
214
+ f_civill_sumjjbq:0,
215
+ f_civill_sumbtk:0,
216
+ f_no_civill_sumgtwx:0, //非民用各种金额合计
217
+ f_no_civill_sumcwsf:0,
218
+ f_no_civill_sumxjjf:0,
219
+ f_no_civill_sumzfb:0,
220
+ f_no_civill_sumpos:0,
221
+ f_no_civill_sumqp:0,
222
+ f_no_civill_sumyysk:0,
223
+ f_no_civill_sumjjbq:0,
224
+ f_no_civill_sumbtk:0
225
+ }),
226
+ confirmmodel:[],
227
+ sumsmodel: {},
228
+ allmodel:{},
229
+ sumchangeflag:0,
230
+ }
231
+ },
232
+ props:['othermodel','searchcondition'],
233
+ ready() {
234
+ readySomething(this);
235
+ this.search();
236
+ },
237
+ methods: {
238
+ search() {
239
+ this.$refs.paged.$refs.cri.search();
240
+ this.checkotherbill();
241
+ },
242
+ checkuserdata(){
243
+ let flag = true;
244
+ if(this.model.rows && this.model.rows.length>0){
245
+ this.model.rows.forEach(item=>{
246
+ if(item.f_user_type && item.f_user_type=='非民用' && ( item.f_user_name==null || item.f_user_name =='')){
247
+ this.$showMessage("当前推送记录有非民用用户未关联NC档案,请关联后进行交账");
248
+ flag = false;
249
+ return;
250
+ }
251
+ })
252
+ }
253
+ if(flag){
254
+ this.$dispatch('openconfimbutton');
255
+ }else{
256
+ this.$dispatch('closeconfimbutton');
257
+ }
258
+ },
259
+ checknopushuserdata(){
260
+ let flag = true;
261
+ if(this.nopushmodel && this.nopushmodel.length>0){
262
+ this.nopushmodel.forEach(item=>{
263
+ if(item.f_user_type && item.f_user_type=='非民用' && ( item.f_customer==null || item.f_customer =='')){
264
+ this.$showMessage("本次推送记录之前未推送记录有非民用用户未关联NC档案,请关联后进行交账");
265
+ flag = false;
266
+ return;
267
+ }
268
+ })
269
+ }
270
+ if(flag){
271
+ this.$dispatch('openconfimbutton');
272
+ }else{
273
+ this.$dispatch('closeconfimbutton');
274
+ }
275
+ },
276
+ async selfSearch(args) {
277
+ args.condition = `${args.condition} and ` + this.searchcondition.condition;
278
+ await this.model.search(args.condition, args.model);
279
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
280
+ console.log('计算合计。', this.sumsmodel)
281
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
282
+ for (let key in this.sumsmodel) {
283
+ this.sumsmodel[key] = 0;
284
+ }
285
+ }
286
+ this.sumchangeflag=0;
287
+ this.checkotherbill();
288
+ },
289
+ checkotherbill(){
290
+ this.checkuserdata();
291
+ //检查特殊数据
292
+ if(this.othermodel && this.othermodel.length>0 && this.model.rows && this.sumchangeflag==0 ){
293
+ this.sumchangeflag = 1;
294
+ let otherpramount = 0;
295
+ let othercollection =0;
296
+ //如果存在将数据放入开头
297
+ let newrow = [];
298
+ if(this.model.rows.length>0){
299
+ this.model.rows.forEach((item,index)=>{
300
+ let flag = 1;
301
+ this.othermodel.forEach(item2=>{
302
+ if(this.compareObject(item,item2)){
303
+ flag = 0;
304
+ }
305
+ })
306
+ if(flag == 1){
307
+ newrow.push(item);
308
+ }
309
+ })
310
+ }
311
+ this.model.rows = newrow;
312
+ this.othermodel.forEach(item=>{
313
+ otherpramount = ((item.f_preamount-0)+(otherpramount-0)).toFixed(2);
314
+ othercollection = ((item.f_collection-0)+(othercollection-0)).toFixed(2);
315
+ })
316
+ this.sumsmodel.f_other_preamount = otherpramount;
317
+ this.sumsmodel.f_other_collection = othercollection;
318
+ this.sumsmodel.allpreamount = ((this.sumsmodel.allpreamount-0)+(otherpramount-0)).toFixed(2);
319
+ this.sumsmodel.allf_collection =((this.sumsmodel.allf_collection-0)+(othercollection-0)).toFixed(2);
320
+ this.model.rows = [...this.model.rows,...this.othermodel];
321
+ }
322
+ //合并未交账数据: 要将民用进行合并,非民用不进行合并
323
+ if(this.nopushmodel && this.nopushmodel.length>0 ){
324
+ let civilldata ={}
325
+ if(this.model.rows.length>0) {
326
+ if (this.model.rows[0].sumchangeflag == null) {
327
+ this.model.rows[0].sumchangeflag = 0;
328
+ } else {
329
+ return;
330
+ }
331
+ this.model.rows.forEach(item => {
332
+ if (item.f_user_name == '民用') {
333
+ civilldata = item;
334
+ return;
335
+ }
336
+ })
337
+ }
338
+ if(civilldata.f_user_name == null){
339
+ civilldata = {
340
+ f_user_name:'民用',
341
+ f_payment:'',
342
+ f_type:'',
343
+ f_address:'',
344
+ f_user_type:'民用',
345
+ f_meter_brand:'',
346
+ f_state:'有效',
347
+ f_pregas:0,
348
+ f_preamount:0,
349
+ f_collection:0,
350
+ sumchangeflag:0
351
+ }
352
+ }
353
+ this.nopushmodel.forEach(items=>{
354
+ let newsums = this.sumsmodel;
355
+ if(items.f_user_type == '民用'){
356
+ civilldata.f_pregas = ((civilldata.f_pregas-0) + (items.f_pregas-0)).toFixed(2);
357
+ civilldata.f_preamount =((civilldata.f_preamount-0) + (items.f_preamount-0)).toFixed(2);
358
+ civilldata.f_collection = ((civilldata.f_collection-0) + (items.f_collection-0)).toFixed(2);
359
+ newsums.pregas_civill = ((newsums.pregas_civill-0)+ (items.f_pregas-0)).toFixed(2);
360
+ if(items.f_payment=='柜台微信'){
361
+ newsums.f_civill_sumgtwx = newsums.f_civill_sumgtwx+ parseFloat(items.f_collection-0);
362
+ }
363
+ if(items.f_payment=='财务收款'){
364
+ newsums.f_civill_sumcwsf = newsums.f_civill_sumcwsf+ parseFloat(items.f_collection-0);
365
+ }
366
+ if(items.f_payment=='现金缴费'){
367
+ newsums.f_civill_sumxjjf = newsums.f_civill_sumxjjf+ parseFloat(items.f_collection-0);
368
+ }
369
+ if(items.f_payment=='柜台支付宝'){
370
+ newsums.f_civill_sumzfb = newsums.f_civill_sumzfb+ parseFloat(items.f_collection-0);
371
+ }
372
+ if(items.f_payment=='POS'){
373
+ newsums.f_civill_sumpos = newsums.f_civill_sumpos+ parseFloat(items.f_collection-0);
374
+ }
375
+ if(items.f_payment=='气票'){
376
+ newsums.f_civill_sumqp = newsums.f_civill_sumqp+ parseFloat(items.f_collection-0);
377
+ }
378
+ }
379
+ if(items.f_user_type == '非民用'){
380
+ newsums.pregas_nocivill = newsums.pregas_nocivill+ parseFloat(items.f_pregas-0);
381
+ newsums.collection_nocivill = newsums.collection_nocivill+ parseFloat(items.f_collection-0);
382
+ if(items.f_payment=='柜台微信'){
383
+ newsums.f_no_civill_sumgtwx = newsums.f_no_civill_sumgtwx+ parseFloat(items.f_collection-0);
384
+ }
385
+ if(items.f_payment=='财务收款'){
386
+ newsums.f_no_civill_sumcwsf = newsums.f_no_civill_sumcwsf+ parseFloat(items.f_collection-0);
387
+ }
388
+ if(items.f_payment=='现金缴费'){
389
+ newsums.f_no_civill_sumxjjf = newsums.f_no_civill_sumxjjf+ parseFloat(items.f_collection-0);
390
+ }
391
+ if(items.f_payment=='柜台支付宝'){
392
+ newsums.f_no_civill_sumzfb = newsums.f_no_civill_sumzfb+ parseFloat(items.f_collection-0);
393
+ }
394
+ if(items.f_payment=='POS'){
395
+ newsums.f_no_civill_sumpos = newsums.f_no_civill_sumpos+ parseFloat(items.f_collection-0);
396
+ }
397
+ if(items.f_payment=='气票'){
398
+ newsums.f_no_civill_sumqp = newsums.f_no_civill_sumqp+ parseFloat(items.f_collection-0);
399
+ }
400
+ this.model.rows.unshift(items);
401
+ }
402
+ newsums.allpregas = ((newsums.allpregas-0)+(items.f_pregas-0)).toFixed(2);
403
+ newsums.allpreamount = ((newsums.allpreamount-0)+(items.f_preamount-0)).toFixed(2);
404
+ newsums.allf_collection = ((newsums.allf_collection-0)+(items.f_collection-0)).toFixed(2);
405
+ this.$set('this.sumsmodel',newsums);
406
+ this.$refs.paged.$refs.grid.model.sums = newsums;
407
+ })
408
+ let hastrue=1;
409
+ if(this.model.rows.length>0)(
410
+ this.model.rows.forEach(item=>{
411
+ if(item.f_user_name=='民用'){
412
+ hastrue=0
413
+ item=civilldata;
414
+ return;
415
+ }
416
+ })
417
+ )
418
+ if(hastrue==1){
419
+ this.model.rows.push(civilldata);
420
+ }
421
+ }
422
+ },
423
+ compareObject(o1,o2){
424
+ if(typeof o1 != typeof o2)return false;
425
+ if(typeof o1 == 'object'){
426
+ for(var o in o1){
427
+ if(typeof o2[o] == 'undefined')return false;
428
+ if(!this.compareObject(o1[o],o2[o]))return false;
429
+ }
430
+ return true;
431
+ }else{
432
+ return o1 === o2;
433
+ }
434
+ },
435
+ deleterow(row){
436
+ this.$dispatch('deleterow',row)
437
+ // this.allmodel.rows.pop(row);
438
+ // this.sumalldata();
439
+ this.$showAlert('删除成功!','success',1000);
440
+ },
441
+ updaterow(row){
442
+ this.$dispatch('updaterow',row)
443
+ },
444
+ addpushData(){
445
+ this.$dispatch('add');
446
+ },
447
+ sort (field, rule) {
448
+ // 将所有排序方式设为不排序,实现相互排斥
449
+ for (let key in this.orderFields) {
450
+ if (key === field) {
451
+ this.orderFields[key] = rule
452
+ } else {
453
+ this.orderFields[key] = 'no'
454
+ }
455
+ }
456
+ if (rule === 'no') {
457
+ this.allmodel.paramSource.orderitem = `'${this.orderDefault}'`
458
+ } else {
459
+ this.allmodel.paramSource.orderitem = `'${field} ${rule}'`
460
+ }
461
+ },
462
+ },
463
+ watch:{
464
+ 'model.pageIndex'(){
465
+ this.checkotherbill();
466
+ }
467
+ }
468
+ }
469
+ </script>
470
+
471
+ <style scoped>
472
+
473
+ .col {
474
+ width: 300px;
475
+ overflow: hidden;
476
+ text-overflow: ellipsis;
477
+ white-space: nowrap;
478
+ }
479
+
480
+ </style>