manage-client 3.2.65-aode → 3.2.66-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 (69) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  24. package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
  25. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  26. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  27. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  28. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  29. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  30. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  31. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  32. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  33. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  34. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  35. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  36. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  37. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  38. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  39. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  40. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  41. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  42. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  43. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  44. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  45. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  46. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  47. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  48. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  49. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  50. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  51. package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  53. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  54. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  55. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  56. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  57. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  58. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  59. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  60. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  61. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  63. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  66. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  67. package/src/components/webmeter/report/ReportList.vue +211 -211
  68. package/src/main.js +56 -56
  69. package/src/saleManage.js +4 -0
@@ -1,477 +1,477 @@
1
- <template>
2
- <div v-if="!listpage" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged @sort="sort">
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial style="background: #fff;padding-left: 10px;">
6
- <div class="row">
7
- <res-select-group :style="$parent.$parent.style" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
-
9
- <div class="button-range" style="float:right">
10
- <button class="button_search button_spacing" @click="search()">查询</button>
11
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
12
- <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel
13
- :field="$parent.$parent.getfield"
14
- :defaultselect="$parent.$parent.selectfields"
15
- sqlurl="rs/logic/exportfile" sql-name="aode_userbuyQuery" template-name='用户数据' :choose-col="true"
16
- class="button_export button_spacing"></export-excel>
17
- <!--<day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>-->
18
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
19
- </div>
20
- </div>
21
- <div class="row" v-show="$parent.$parent.criteriaShow">
22
- <div :class="$parent.$parent.style" >
23
- <label for="startDate" class="font_normal_body">开始日期</label>
24
- <datepicker placeholder="开始日期" style="width:60%"
25
- v-model="model.f_startDate"
26
- :value.sync="model.f_startDate"
27
- :format="'yyyy-MM-dd 00:00:00'"
28
- class="datepicker"
29
- :show-reset-button="true"
30
- class="select"
31
- >
32
- </datepicker>
33
- </div>
34
- <div :class="$parent.$parent.style" >
35
- <label for="endDate" class="font_normal_body">结束日期</label>
36
- <datepicker placeholder="结束日期" style="width:60%"
37
- v-model="model.f_endDate"
38
- :value.sync="model.f_endDate"
39
- :format="'yyyy-MM-dd 23:59:59'"
40
- class="datepicker"
41
- :show-reset-button="true"
42
- class="select"
43
- >
44
- </datepicker>
45
- </div>
46
- <div :class="$parent.$parent.style" >
47
- <label class="font_normal_body">客户编号</label>
48
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
49
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
50
- </div>
51
- <div :class="$parent.$parent.style">
52
- <label class="font_normal_body">客户名称</label>
53
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
54
- condition="f_user_name like '%{}%'" placeholder="客户名称">
55
- </div>
56
- <div :class="$parent.$parent.style">
57
- <label class="font_normal_body">新客户名称</label>
58
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
59
- placeholder="新客户名称">
60
- </div>
61
- <div :class="$parent.$parent.style">
62
- <label class="font_normal_body">用气性质</label>
63
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
64
- :options='$parent.$parent.useroptions' placeholder='请选择'
65
- condition="f_gasproperties = '{}'"
66
- close-on-select></v-select>
67
- </div>
68
- <div :class="$parent.$parent.style">
69
- <label class="font_normal_body">操作类型</label>
70
- <v-select :value.sync="model.f_type" v-model="model.f_type"
71
- :options='$parent.$parent.operates' placeholder='请选择'
72
- condition="f_type = '{}'"
73
- close-on-select></v-select>
74
- </div>
75
- <div :class="$parent.$parent.style">
76
- <label class="font_normal_body">操作状态</label>
77
- <v-select :value.sync="model.f_state" v-model="model.f_state"
78
- :options='$parent.$parent.stateoptions' placeholder='请选择'
79
- condition="f_state = '{}'"
80
- close-on-select></v-select>
81
- </div>
82
- <div :class="$parent.$parent.style">
83
- <label class="font_normal_body">包含APP</label>
84
- <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
85
- :options='$parent.$parent.hasapps' placeholder='请选择'
86
- condition="f_operator {} "
87
- close-on-select></v-select>
88
- </div>
89
-
90
-
91
-
92
- </div>
93
- </div>
94
- </criteria>
95
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
96
- <template partial='head'>
97
- <tr>
98
- <th>
99
- <data-order field="f_userinfo_code" name="客户编号"></data-order>
100
- <!--<nobr>客户编号</nobr>-->
101
- </th>
102
- <th><data-order field="f_user_name" name="客户姓名(缴费记录)"></data-order>
103
- <th><data-order field="f_user_name" name="新客户姓名(用户档案)"></data-order>
104
- <!--<nobr>客户姓名</nobr>-->
105
- </th>
106
- <th><nobr>地址</nobr></th>
107
- <th>
108
- <data-order field="f_meter_brand" name="气表厂家"></data-order>
109
- </th>
110
- <th><data-order field="f_operate_date" name="操作时间"></data-order>
111
- <!--<nobr>操作时间</nobr>-->
112
- </th>
113
- <th><data-order field="f_operate_date" name="操作状态"></data-order>
114
- <!--<nobr>操作时间</nobr>-->
115
- </th>
116
- <th>
117
- <data-order field="f_stair1price" name="1单价"></data-order>
118
- </th>
119
- <th>
120
- <data-order field="f_stair1amount" name="1气量"></data-order>
121
- </th>
122
- <th>
123
- <data-order field="f_stair2price" name="2单价"></data-order>
124
- </th>
125
- <th>
126
- <data-order field="f_stair2amount" name="2气量"></data-order>
127
- </th>
128
- <th>
129
- <data-order field="f_stair3price" name="3单价"></data-order>
130
- </th>
131
- <th>
132
- <data-order field="f_stair3amount" name="3气量"></data-order>
133
- </th>
134
- <th>
135
- <data-order field="f_pregas" name="气量"></data-order>
136
- </th>
137
- <th>
138
- <data-order field="f_preamount" name="应收金额"></data-order>
139
- </th>
140
- <th>
141
- <data-order field="f_collection" name="实收金额"></data-order>
142
- </th>
143
- <th><nobr>上期余额</nobr></th>
144
- <th><nobr>本期余额</nobr></th>
145
- <th>
146
- <data-order field="f_payment" name="付款方式"></data-order>
147
- </th>
148
- <th>
149
- <data-order field="f_type" name="收费类型"></data-order>
150
- </th>
151
- <th>
152
- <data-order field="f_operator" name="操作员"></data-order>
153
- </th>
154
- <th>
155
- <data-order field="f_user_type" name="客户类型"></data-order>
156
- </th>
157
- <th><nobr>备注</nobr></th>
158
-
159
- </tr>
160
- </template>
161
- <template partial='body' >
162
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
163
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
164
- </nobr> </td>
165
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
166
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newuser_name}}</nobr></td>
167
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
168
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
169
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
170
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
171
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
172
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
173
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
174
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
175
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
176
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
177
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
178
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
179
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
180
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
181
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
182
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
183
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
184
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
185
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
186
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
187
- </template>
188
- </data-grid>
189
- </criteria-paged>
190
- <table class="table-hover" style="margin-top: -1.2%;">
191
- <tr style="position: relative" class="table-bordered">
192
- <td
193
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
194
- 汇总信息
195
- </td>
196
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
197
- 业务气量:&emsp;{{sumsmodel.f_shouru_gas}}
198
- </td>
199
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
200
- 实收金额:&emsp;{{sumsmodel.f_shouru_fee}}
201
- </td>
202
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
203
- 应收金额:&emsp;{{sumsmodel.f_yingshou_fee}}
204
- </td>
205
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
206
- 柜台微信:&emsp;{{sumsmodel.f_sumgtwx}}
207
- </td>
208
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
209
- 财务收款:&emsp;{{sumsmodel.f_sumcwsf}}
210
- </td>
211
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
212
- 现金缴费:&emsp;{{sumsmodel.f_sumxjjf}}
213
- </td>
214
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
215
- 柜台支付宝:&emsp;{{sumsmodel.f_sumzfb}}
216
- </td>
217
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
218
- pos:&emsp;{{sumsmodel.f_sumpos}}
219
- </td>
220
- </tr>
221
- </table>
222
-
223
- </div>
224
- <div v-if="listpage">
225
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
226
- </div>
227
- </template>
228
-
229
- <script>
230
-
231
- import { PagedList } from 'vue-client'
232
- import exportConfig from '../../config/exportConfig'
233
- import getLodop from '../../../../plugins/LodopFuncs'
234
-
235
- export default {
236
- // components: {DayReportSummary},
237
- title: '购气记录',
238
- props: {
239
- style: {
240
- type: String,
241
- default: 'col-sm-2 form-group'
242
- },
243
- },
244
- data() {
245
- return {
246
- orderDefault: "'f_operate_date'",
247
- orderFields: {
248
- f_userinfo_code: 'no'
249
- },
250
- initres: {
251
- org:[this.$login.f.orgid],
252
- dep:[this.$login.f.depids],
253
- user:[this.$login.f.id]
254
- },
255
- model: new PagedList('rs/sql/aode_userbuyQuery', 30, {orderitem: "'f_operate_date'"},{
256
- f_pregas: 0,
257
- f_collection: 0,
258
- f_count_open: 0,
259
- f_pregas_open: 0,
260
- f_collection_open: 0,
261
- f_count_zg: 0,
262
- f_pregas_zg: 0,
263
- f_collection_zg: 0,
264
- f_count_bk: 0,
265
- f_pregas_bk: 0,
266
- f_collection_bk: 0,
267
- f_count_bq: 0,
268
- f_pregas_bq: 0,
269
- f_collection_bq: 0,
270
- f_count_hb: 0,
271
- f_pregas_hb: 0,
272
- f_collection_hb: 0,
273
- f_count_cz: 0,
274
- f_pregas_cz: 0,
275
- f_collection_cz: 0,
276
- f_sum_count:0,
277
- f_shouru_gas:0,
278
- f_shouru_fee:0,
279
- f_yingshou_fee:0,
280
- f_usebenqi_fee:0,
281
- f_benqi_fee:0,
282
- f_sumgtwx:0,
283
- f_sumcwsf:0,
284
- f_sumxjjf:0,
285
- f_sumzfb:0,
286
- f_sumpos:0,
287
- f_sumwxjf:0
288
- }),
289
- listpage:false,
290
- rowdata: {},
291
- orgCondtionStr: '',
292
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
293
- count: 0,
294
- sumsmodel: {},
295
- printshow: false,
296
- all: false,
297
- orgname: '',
298
- depname: '',
299
- criteriaShow: true,
300
- operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
301
- stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
302
- hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
303
- useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
304
- selectfields:[],
305
- pushncshow:false,
306
- pushncshow2:false,
307
- searchCondition:{},
308
- }
309
- },
310
- ready() {
311
- if(this.$login.r.includes('收费推送')){
312
- this.pushncshow = true;
313
- }
314
- this.model.params = {"f_newuser_name":""}
315
- this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
316
- this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
317
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
318
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
319
- for(var item in exportConfig.userbuyReportConfig){
320
- this.selectfields.push(item)
321
- }
322
- // this.search()
323
- },
324
- methods: {
325
-
326
- showmsg(obj){
327
- this.criteriaShow = false
328
- this.$emit('close')
329
- this.rowdata=obj
330
- this.listpage=true
331
- },
332
- cancel() {
333
- this.listpage = false
334
- this.clear();
335
- },
336
- search() {
337
- this.$refs.paged.$refs.cri.search()
338
- },
339
- async selfSearch(args) {
340
- if( this.$refs.paged.$refs.cri.model.f_newuser_name!=null && this.$refs.paged.$refs.cri.model.f_newuser_name!=''){
341
- this.model.params = {"f_newuser_name":this.$refs.paged.$refs.cri.model.f_newuser_name}
342
- }else{
343
- this.model.params = {"f_newuser_name":""}
344
- }
345
- let f_orgstr = this.orgCondtionStr
346
- if (!this.orgCondtionStr) {
347
- f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
348
- }
349
- args.condition = `${args.condition} ` + f_orgstr
350
-
351
- this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
352
- this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
353
-
354
-
355
-
356
- //推送条件: 需要 选择片区
357
- if(this.depname != null && this.depname != ''){
358
- this.pushncshow2 = true;
359
- }else{
360
- this.pushncshow2= false;
361
- }
362
- this.searchCondition = this.getCondition;
363
- await this.model.search(args.condition, args.model)
364
-
365
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
366
- console.log('计算合计。', this.sumsmodel)
367
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
368
- for (let key in this.sumsmodel) {
369
- this.sumsmodel[key] = 0
370
- }
371
- }
372
- this.$dispatch('getdata', this.sumsmodel)
373
- },
374
- getRes(condition, obj) {
375
- this.orgCondtionStr = condition
376
- this.orgname = obj.orgnames[0]
377
- this.depname = obj.depnames[0]
378
- //当未选中组织时不可进行推送
379
- if(this.depname == ''){
380
- this.pushncshow2 = false;
381
- }
382
- },
383
- clear() {
384
- //清空部门和人员
385
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
386
- //部门和人员变为全选
387
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
388
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
389
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
390
- this.$refs.paged.$refs.cri.model[key] = ''
391
- })
392
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
393
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
394
- },
395
- close() {
396
- this.printshow = false
397
- },
398
- getfield() {
399
-
400
- return exportConfig.dataReportConfig
401
- },
402
- show() {
403
- this.criteriaShow = !this.criteriaShow
404
- },
405
- /*sort(field, rule) {
406
- console.log('sort...')
407
-
408
- },*/
409
- sort (field, rule) {
410
- // 将所有排序方式设为不排序,实现相互排斥
411
- for (let key in this.orderFields) {
412
- if (key === field) {
413
- this.orderFields[key] = rule
414
- } else {
415
- this.orderFields[key] = 'no'
416
- }
417
- }
418
- // 如果新规则不排序,还原为默认排序
419
- if (rule === 'no') {
420
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
421
- } else {
422
- this.model.paramSource.orderitem = `'${field} ${rule}'`
423
- }
424
-
425
- this.search()
426
- },
427
- },
428
- computed: {
429
- getCondition() {
430
- let exportcondition={
431
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
432
- startDate: this.$refs.paged.$refs.cri.model.f_startDate,
433
- endDate: this.$refs.paged.$refs.cri.model.f_endDate,
434
- orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
435
- };
436
- if( this.$refs.paged.$refs.cri.model.f_newuser_name!=null && this.$refs.paged.$refs.cri.model.f_newuser_name!=''){
437
- exportcondition.f_newuser_name = this.$refs.paged.$refs.cri.model.f_newuser_name
438
- };
439
- return exportcondition;
440
- },
441
- getfield() {
442
- //设置默认值
443
-
444
- return exportConfig.userbuyReportConfig
445
- },
446
- gasproperties() {
447
- console.log("xxx");
448
- console.log(this.$appdata.getParam('用气性质'));
449
- console.log(this);
450
- let options = this.$appdata.getParam('用气性质')
451
- let resultoptions = [];
452
- if(options.length>0){
453
- resultoptions.push({label: ' 全部 ', value: ''})
454
- options.forEach((item)=>{
455
- console.log(item)
456
- resultoptions.push(item)
457
- })
458
- }
459
- console.log(resultoptions);
460
- return resultoptions;
461
- //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
462
- }
463
- }
464
- }
465
-
466
- </script>
467
-
468
- <style scoped>
469
-
470
- .col {
471
- width: 300px;
472
- overflow: hidden;
473
- text-overflow: ellipsis;
474
- white-space: nowrap;
475
- }
476
-
477
- </style>
1
+ <template>
2
+ <div v-if="!listpage" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial style="background: #fff;padding-left: 10px;">
6
+ <div class="row">
7
+ <res-select-group :style="$parent.$parent.style" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
+
9
+ <div class="button-range" style="float:right">
10
+ <button class="button_search button_spacing" @click="search()">查询</button>
11
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
12
+ <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel
13
+ :field="$parent.$parent.getfield"
14
+ :defaultselect="$parent.$parent.selectfields"
15
+ sqlurl="rs/logic/exportfile" sql-name="aode_userbuyQuery" template-name='用户数据' :choose-col="true"
16
+ class="button_export button_spacing"></export-excel>
17
+ <!--<day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>-->
18
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
19
+ </div>
20
+ </div>
21
+ <div class="row" v-show="$parent.$parent.criteriaShow">
22
+ <div :class="$parent.$parent.style" >
23
+ <label for="startDate" class="font_normal_body">开始日期</label>
24
+ <datepicker placeholder="开始日期" style="width:60%"
25
+ v-model="model.f_startDate"
26
+ :value.sync="model.f_startDate"
27
+ :format="'yyyy-MM-dd 00:00:00'"
28
+ class="datepicker"
29
+ :show-reset-button="true"
30
+ class="select"
31
+ >
32
+ </datepicker>
33
+ </div>
34
+ <div :class="$parent.$parent.style" >
35
+ <label for="endDate" class="font_normal_body">结束日期</label>
36
+ <datepicker placeholder="结束日期" style="width:60%"
37
+ v-model="model.f_endDate"
38
+ :value.sync="model.f_endDate"
39
+ :format="'yyyy-MM-dd 23:59:59'"
40
+ class="datepicker"
41
+ :show-reset-button="true"
42
+ class="select"
43
+ >
44
+ </datepicker>
45
+ </div>
46
+ <div :class="$parent.$parent.style" >
47
+ <label class="font_normal_body">客户编号</label>
48
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
49
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
50
+ </div>
51
+ <div :class="$parent.$parent.style">
52
+ <label class="font_normal_body">客户名称</label>
53
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
54
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
55
+ </div>
56
+ <div :class="$parent.$parent.style">
57
+ <label class="font_normal_body">新客户名称</label>
58
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
59
+ placeholder="新客户名称">
60
+ </div>
61
+ <div :class="$parent.$parent.style">
62
+ <label class="font_normal_body">用气性质</label>
63
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
64
+ :options='$parent.$parent.useroptions' placeholder='请选择'
65
+ condition="f_gasproperties = '{}'"
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div :class="$parent.$parent.style">
69
+ <label class="font_normal_body">操作类型</label>
70
+ <v-select :value.sync="model.f_type" v-model="model.f_type"
71
+ :options='$parent.$parent.operates' placeholder='请选择'
72
+ condition="f_type = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div :class="$parent.$parent.style">
76
+ <label class="font_normal_body">操作状态</label>
77
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
78
+ :options='$parent.$parent.stateoptions' placeholder='请选择'
79
+ condition="f_state = '{}'"
80
+ close-on-select></v-select>
81
+ </div>
82
+ <div :class="$parent.$parent.style">
83
+ <label class="font_normal_body">包含APP</label>
84
+ <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
85
+ :options='$parent.$parent.hasapps' placeholder='请选择'
86
+ condition="f_operator {} "
87
+ close-on-select></v-select>
88
+ </div>
89
+
90
+
91
+
92
+ </div>
93
+ </div>
94
+ </criteria>
95
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
96
+ <template partial='head'>
97
+ <tr>
98
+ <th>
99
+ <data-order field="f_userinfo_code" name="客户编号"></data-order>
100
+ <!--<nobr>客户编号</nobr>-->
101
+ </th>
102
+ <th><data-order field="f_user_name" name="客户姓名(缴费记录)"></data-order>
103
+ <th><data-order field="f_user_name" name="新客户姓名(用户档案)"></data-order>
104
+ <!--<nobr>客户姓名</nobr>-->
105
+ </th>
106
+ <th><nobr>地址</nobr></th>
107
+ <th>
108
+ <data-order field="f_meter_brand" name="气表厂家"></data-order>
109
+ </th>
110
+ <th><data-order field="f_operate_date" name="操作时间"></data-order>
111
+ <!--<nobr>操作时间</nobr>-->
112
+ </th>
113
+ <th><data-order field="f_operate_date" name="操作状态"></data-order>
114
+ <!--<nobr>操作时间</nobr>-->
115
+ </th>
116
+ <th>
117
+ <data-order field="f_stair1price" name="1单价"></data-order>
118
+ </th>
119
+ <th>
120
+ <data-order field="f_stair1amount" name="1气量"></data-order>
121
+ </th>
122
+ <th>
123
+ <data-order field="f_stair2price" name="2单价"></data-order>
124
+ </th>
125
+ <th>
126
+ <data-order field="f_stair2amount" name="2气量"></data-order>
127
+ </th>
128
+ <th>
129
+ <data-order field="f_stair3price" name="3单价"></data-order>
130
+ </th>
131
+ <th>
132
+ <data-order field="f_stair3amount" name="3气量"></data-order>
133
+ </th>
134
+ <th>
135
+ <data-order field="f_pregas" name="气量"></data-order>
136
+ </th>
137
+ <th>
138
+ <data-order field="f_preamount" name="应收金额"></data-order>
139
+ </th>
140
+ <th>
141
+ <data-order field="f_collection" name="实收金额"></data-order>
142
+ </th>
143
+ <th><nobr>上期余额</nobr></th>
144
+ <th><nobr>本期余额</nobr></th>
145
+ <th>
146
+ <data-order field="f_payment" name="付款方式"></data-order>
147
+ </th>
148
+ <th>
149
+ <data-order field="f_type" name="收费类型"></data-order>
150
+ </th>
151
+ <th>
152
+ <data-order field="f_operator" name="操作员"></data-order>
153
+ </th>
154
+ <th>
155
+ <data-order field="f_user_type" name="客户类型"></data-order>
156
+ </th>
157
+ <th><nobr>备注</nobr></th>
158
+
159
+ </tr>
160
+ </template>
161
+ <template partial='body' >
162
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
163
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
164
+ </nobr> </td>
165
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
166
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_newuser_name}}</nobr></td>
167
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
168
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
169
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
170
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
171
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
172
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
173
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
174
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
175
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
176
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
177
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
178
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
179
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
180
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
181
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
182
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
183
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
184
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
185
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
186
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
187
+ </template>
188
+ </data-grid>
189
+ </criteria-paged>
190
+ <table class="table-hover" style="margin-top: -1.2%;">
191
+ <tr style="position: relative" class="table-bordered">
192
+ <td
193
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
194
+ 汇总信息
195
+ </td>
196
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
197
+ 业务气量:&emsp;{{sumsmodel.f_shouru_gas}}
198
+ </td>
199
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
200
+ 实收金额:&emsp;{{sumsmodel.f_shouru_fee}}
201
+ </td>
202
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
203
+ 应收金额:&emsp;{{sumsmodel.f_yingshou_fee}}
204
+ </td>
205
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
206
+ 柜台微信:&emsp;{{sumsmodel.f_sumgtwx}}
207
+ </td>
208
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
209
+ 财务收款:&emsp;{{sumsmodel.f_sumcwsf}}
210
+ </td>
211
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
212
+ 现金缴费:&emsp;{{sumsmodel.f_sumxjjf}}
213
+ </td>
214
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
215
+ 柜台支付宝:&emsp;{{sumsmodel.f_sumzfb}}
216
+ </td>
217
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
218
+ pos:&emsp;{{sumsmodel.f_sumpos}}
219
+ </td>
220
+ </tr>
221
+ </table>
222
+
223
+ </div>
224
+ <div v-if="listpage">
225
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
226
+ </div>
227
+ </template>
228
+
229
+ <script>
230
+
231
+ import { PagedList } from 'vue-client'
232
+ import exportConfig from '../../config/exportConfig'
233
+ import getLodop from '../../../../plugins/LodopFuncs'
234
+
235
+ export default {
236
+ // components: {DayReportSummary},
237
+ title: '购气记录',
238
+ props: {
239
+ style: {
240
+ type: String,
241
+ default: 'col-sm-2 form-group'
242
+ },
243
+ },
244
+ data() {
245
+ return {
246
+ orderDefault: "'f_operate_date'",
247
+ orderFields: {
248
+ f_userinfo_code: 'no'
249
+ },
250
+ initres: {
251
+ org:[this.$login.f.orgid],
252
+ dep:[this.$login.f.depids],
253
+ user:[this.$login.f.id]
254
+ },
255
+ model: new PagedList('rs/sql/aode_userbuyQuery', 30, {orderitem: "'f_operate_date'"},{
256
+ f_pregas: 0,
257
+ f_collection: 0,
258
+ f_count_open: 0,
259
+ f_pregas_open: 0,
260
+ f_collection_open: 0,
261
+ f_count_zg: 0,
262
+ f_pregas_zg: 0,
263
+ f_collection_zg: 0,
264
+ f_count_bk: 0,
265
+ f_pregas_bk: 0,
266
+ f_collection_bk: 0,
267
+ f_count_bq: 0,
268
+ f_pregas_bq: 0,
269
+ f_collection_bq: 0,
270
+ f_count_hb: 0,
271
+ f_pregas_hb: 0,
272
+ f_collection_hb: 0,
273
+ f_count_cz: 0,
274
+ f_pregas_cz: 0,
275
+ f_collection_cz: 0,
276
+ f_sum_count:0,
277
+ f_shouru_gas:0,
278
+ f_shouru_fee:0,
279
+ f_yingshou_fee:0,
280
+ f_usebenqi_fee:0,
281
+ f_benqi_fee:0,
282
+ f_sumgtwx:0,
283
+ f_sumcwsf:0,
284
+ f_sumxjjf:0,
285
+ f_sumzfb:0,
286
+ f_sumpos:0,
287
+ f_sumwxjf:0
288
+ }),
289
+ listpage:false,
290
+ rowdata: {},
291
+ orgCondtionStr: '',
292
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
293
+ count: 0,
294
+ sumsmodel: {},
295
+ printshow: false,
296
+ all: false,
297
+ orgname: '',
298
+ depname: '',
299
+ criteriaShow: true,
300
+ operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
301
+ stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
302
+ hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
303
+ useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
304
+ selectfields:[],
305
+ pushncshow:false,
306
+ pushncshow2:false,
307
+ searchCondition:{},
308
+ }
309
+ },
310
+ ready() {
311
+ if(this.$login.r.includes('收费推送')){
312
+ this.pushncshow = true;
313
+ }
314
+ this.model.params = {"f_newuser_name":""}
315
+ this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
316
+ this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
317
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
318
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
319
+ for(var item in exportConfig.userbuyReportConfig){
320
+ this.selectfields.push(item)
321
+ }
322
+ // this.search()
323
+ },
324
+ methods: {
325
+
326
+ showmsg(obj){
327
+ this.criteriaShow = false
328
+ this.$emit('close')
329
+ this.rowdata=obj
330
+ this.listpage=true
331
+ },
332
+ cancel() {
333
+ this.listpage = false
334
+ this.clear();
335
+ },
336
+ search() {
337
+ this.$refs.paged.$refs.cri.search()
338
+ },
339
+ async selfSearch(args) {
340
+ if( this.$refs.paged.$refs.cri.model.f_newuser_name!=null && this.$refs.paged.$refs.cri.model.f_newuser_name!=''){
341
+ this.model.params = {"f_newuser_name":this.$refs.paged.$refs.cri.model.f_newuser_name}
342
+ }else{
343
+ this.model.params = {"f_newuser_name":""}
344
+ }
345
+ let f_orgstr = this.orgCondtionStr
346
+ if (!this.orgCondtionStr) {
347
+ f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
348
+ }
349
+ args.condition = `${args.condition} ` + f_orgstr
350
+
351
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
352
+ this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
353
+
354
+
355
+
356
+ //推送条件: 需要 选择片区
357
+ if(this.depname != null && this.depname != ''){
358
+ this.pushncshow2 = true;
359
+ }else{
360
+ this.pushncshow2= false;
361
+ }
362
+ this.searchCondition = this.getCondition;
363
+ await this.model.search(args.condition, args.model)
364
+
365
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
366
+ console.log('计算合计。', this.sumsmodel)
367
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
368
+ for (let key in this.sumsmodel) {
369
+ this.sumsmodel[key] = 0
370
+ }
371
+ }
372
+ this.$dispatch('getdata', this.sumsmodel)
373
+ },
374
+ getRes(condition, obj) {
375
+ this.orgCondtionStr = condition
376
+ this.orgname = obj.orgnames[0]
377
+ this.depname = obj.depnames[0]
378
+ //当未选中组织时不可进行推送
379
+ if(this.depname == ''){
380
+ this.pushncshow2 = false;
381
+ }
382
+ },
383
+ clear() {
384
+ //清空部门和人员
385
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
386
+ //部门和人员变为全选
387
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
388
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
389
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
390
+ this.$refs.paged.$refs.cri.model[key] = ''
391
+ })
392
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
393
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
394
+ },
395
+ close() {
396
+ this.printshow = false
397
+ },
398
+ getfield() {
399
+
400
+ return exportConfig.dataReportConfig
401
+ },
402
+ show() {
403
+ this.criteriaShow = !this.criteriaShow
404
+ },
405
+ /*sort(field, rule) {
406
+ console.log('sort...')
407
+
408
+ },*/
409
+ sort (field, rule) {
410
+ // 将所有排序方式设为不排序,实现相互排斥
411
+ for (let key in this.orderFields) {
412
+ if (key === field) {
413
+ this.orderFields[key] = rule
414
+ } else {
415
+ this.orderFields[key] = 'no'
416
+ }
417
+ }
418
+ // 如果新规则不排序,还原为默认排序
419
+ if (rule === 'no') {
420
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
421
+ } else {
422
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
423
+ }
424
+
425
+ this.search()
426
+ },
427
+ },
428
+ computed: {
429
+ getCondition() {
430
+ let exportcondition={
431
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
432
+ startDate: this.$refs.paged.$refs.cri.model.f_startDate,
433
+ endDate: this.$refs.paged.$refs.cri.model.f_endDate,
434
+ orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
435
+ };
436
+ if( this.$refs.paged.$refs.cri.model.f_newuser_name!=null && this.$refs.paged.$refs.cri.model.f_newuser_name!=''){
437
+ exportcondition.f_newuser_name = this.$refs.paged.$refs.cri.model.f_newuser_name
438
+ };
439
+ return exportcondition;
440
+ },
441
+ getfield() {
442
+ //设置默认值
443
+
444
+ return exportConfig.userbuyReportConfig
445
+ },
446
+ gasproperties() {
447
+ console.log("xxx");
448
+ console.log(this.$appdata.getParam('用气性质'));
449
+ console.log(this);
450
+ let options = this.$appdata.getParam('用气性质')
451
+ let resultoptions = [];
452
+ if(options.length>0){
453
+ resultoptions.push({label: ' 全部 ', value: ''})
454
+ options.forEach((item)=>{
455
+ console.log(item)
456
+ resultoptions.push(item)
457
+ })
458
+ }
459
+ console.log(resultoptions);
460
+ return resultoptions;
461
+ //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
462
+ }
463
+ }
464
+ }
465
+
466
+ </script>
467
+
468
+ <style scoped>
469
+
470
+ .col {
471
+ width: 300px;
472
+ overflow: hidden;
473
+ text-overflow: ellipsis;
474
+ white-space: nowrap;
475
+ }
476
+
477
+ </style>