manage-client 3.2.60-aode → 3.2.61-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 (71) 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/InspectManage.vue +34 -34
  18. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  20. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  21. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  22. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  23. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  24. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  25. package/src/components/sale/config/exportConfig.js +260 -260
  26. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  27. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  28. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  29. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  30. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  31. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  32. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  33. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  34. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  35. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  36. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  37. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  38. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  39. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  40. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  41. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  42. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  43. package/src/components/sale/report/aode/iot/ReportQuery.vue +5 -0
  44. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  45. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  46. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  47. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  48. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  49. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  50. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  51. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  52. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  53. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  54. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  55. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  56. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  57. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  58. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  59. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  60. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  61. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  62. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  63. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  65. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  67. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  69. package/src/components/webmeter/report/ReportList.vue +211 -211
  70. package/src/main.js +56 -56
  71. package/src/saleManage.js +256 -256
@@ -1,435 +1,435 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
- <div class="col-sm-2 form-group">
12
- <label class="font_normal_body">客户编号</label>
13
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
14
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
15
- </div>
16
- <div class="col-sm-2 form-group">
17
- <label class="font_normal_body">客户名称</label>
18
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
19
- condition="f_user_name like '%{}%'" placeholder="客户名称">
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label for="startDate" class="font_normal_body">开始日期</label>
23
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
- v-model="model.startDate"
25
- :value.sync="model.startDate"
26
- :format="'yyyy-MM-dd HH:mm:ss'"
27
- :show-reset-button="true"
28
- condition="f_operate_date >= '{}'">
29
- </datepicker>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label for="endDate" class="font_normal_body">结束日期</label>
33
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
- v-model="model.endDate"
35
- :value.sync="model.endDate"
36
- :format="'yyyy-MM-dd HH:mm:ss'"
37
- :show-reset-button="true"
38
- condition="f_operate_date <= '{}'">
39
- </datepicker>
40
- </div>
41
- <div class="col-sm-2 form-group">
42
- <label class="font_normal_body">客户类型</label>
43
- <v-select :value.sync="model.f_user_type"
44
- @change="$parent.$parent.userTypeChange()"
45
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
46
- condition="f_user_type = '{}'"
47
- close-on-select></v-select>
48
- </div>
49
- <div class="col-sm-2 form-group">
50
- <label class="font_normal_body">用气性质</label>
51
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
52
- :options='$parent.$parent.gasproperties' placeholder='请选择'
53
- condition="f_gasproperties = '{}'"
54
- close-on-select></v-select>
55
- </div>
56
- <div class="span" style="float:right;">
57
- <button class="button_search button_spacing" @click="search()">查询</button>
58
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
59
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
60
-
61
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
- :field="$parent.$parent.getfield"
63
- :defaultselect="$parent.$parent.selectfields"
64
- sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" template-name='补气查询导出'
65
- :choose-col="true"></export-excel>
66
-
67
- <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>
68
- </div>
69
- </div>
70
-
71
- <div class="row" v-show="$parent.$parent.criteriaShow">
72
-
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">客户地址</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
76
- condition="f_address like '%{}%'" placeholder='客户地址'>
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">补气类型</label>
80
- <v-select :value.sync="model.f_type"
81
- v-model="model.f_type"
82
- :options='$parent.$parent.fillGasTypes' placeholder='请选择'
83
- condition="f_type = '{}'"
84
- close-on-select></v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
88
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
89
- condition="f_card_id like '%{}%'" placeholder='卡号'>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">气表品牌</label>
93
- <v-select :value.sync="model.f_meter_brand"
94
- v-model="model.f_meter_brand"
95
- :options='$parent.$parent.meterbrands' placeholder='请选择'
96
- condition="f_meter_brand = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">补气状态</label>
101
- <v-select :value.sync="model.f_state"
102
- v-model="model.f_state"
103
- :options='$parent.$parent.chargeState' placeholder='请选择'
104
- condition="f_state = '{}'"
105
- close-on-select></v-select>
106
- </div>
107
- </div>
108
-
109
- </div>
110
- </criteria>
111
-
112
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
113
- <template partial='head'>
114
- <tr>
115
- <th>
116
- <nobr>客户编号</nobr>
117
- </th>
118
- <th>
119
- <nobr>客户名称</nobr>
120
- </th>
121
- <th>
122
- <nobr>客户地址</nobr>
123
- </th>
124
- <th>
125
- <nobr>用户类型</nobr>
126
- </th>
127
- <th>
128
- <nobr>用气性质</nobr>
129
- </th>
130
- <th>
131
- <nobr>卡号</nobr>
132
- </th>
133
- <th>
134
- <nobr>气表品牌</nobr>
135
- </th>
136
- <th>
137
- <nobr>补气量</nobr>
138
- </th>
139
- <th>
140
- <nobr>补气金额</nobr>
141
- </th>
142
- <th>
143
- <nobr>补气类型</nobr>
144
- </th>
145
- <th>
146
- <nobr>补气日期</nobr>
147
- </th>
148
- <th>
149
- <nobr>补气原因</nobr>
150
- </th>
151
- <th>
152
- <nobr>操作员</nobr>
153
- </th>
154
- <th>
155
- <nobr>部门</nobr>
156
- </th>
157
- <th>
158
- <nobr>公司</nobr>
159
- </th>
160
- </tr>
161
- </template>
162
- <template partial='body'>
163
- <td style="text-align: center;">
164
- <nobr>
165
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
166
- </td>
167
- <td style="text-align: center;">
168
- <nobr>{{row.f_user_name}}</nobr>
169
- </td>
170
- <td style="text-align: center;">
171
- <nobr>{{row.f_address}}</nobr>
172
- </td>
173
- <td style="text-align: center;">
174
- <nobr>{{row.f_user_type}}</nobr>
175
- </td>
176
- <td style="text-align: center;">
177
- <nobr>{{row.f_gasproperties}}</nobr>
178
- </td>
179
- <td style="text-align: center;">
180
- <nobr>{{row.f_card_id}}</nobr>
181
- </td>
182
- <td style="text-align: center;">
183
- <nobr>{{row.f_meter_brand}}</nobr>
184
- </td>
185
- <td style="text-align: center;">
186
- <nobr>{{row.f_pregas}}</nobr>
187
- </td>
188
- <td style="text-align: center;">
189
- <nobr>{{row.f_preamount}}</nobr>
190
- </td>
191
- <td style="text-align: center;">
192
- <nobr>{{row.f_type}}</nobr>
193
- </td>
194
- <td style="text-align: center;">
195
- <nobr>{{row.f_operate_date}}</nobr>
196
- </td>
197
- <td style="text-align: center;">
198
- <nobr>{{row.f_comments}}</nobr>
199
- </td>
200
- <td style="text-align: center;">
201
- <nobr>{{row.f_operator}}</nobr>
202
- </td>
203
- <td style="text-align: center;">
204
- <nobr>{{row.f_depname}}</nobr>
205
- </td>
206
- <td style="text-align: center;">
207
- <nobr>{{row.f_orgname}}</nobr>
208
- </td>
209
- </template>
210
- <template partial='foot'></template>
211
- </data-grid>
212
- </criteria-paged>
213
-
214
- <table class="table-hover">
215
- <tr style="position: relative" class="table-bordered">
216
- <td
217
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
218
- 汇总信息
219
- </td>
220
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
221
- 补气量合计:&emsp;{{sumsmodel.f_pregas}}
222
- </td>
223
- </tr>
224
- </table>
225
- </div>
226
- <div v-if="show">
227
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
228
- </div>
229
- </div>
230
- </div>
231
- </template>
232
-
233
- <script>
234
- import {PagedList} from 'vue-client'
235
- import defaultPrint from '../config/DefaultPrint'
236
- import exportConfig from '../config/exportConfig'
237
-
238
- let readySomething = async function (self) {
239
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
240
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
241
- // await self.$refs.paged.$refs.cri.search()
242
- self.initParams()
243
- await self.$MagLoadParams.loadParam()
244
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
245
- }
246
- export default {
247
- data() {
248
- return {
249
- selectfields:[],
250
- data: {},
251
- model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0}),
252
- criteriaShow: false,
253
- headData: ["客户编号", "客户名称","用户编号","用户类型","用气性质", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
254
- bodyData: ["f_userinfo_code", "f_user_name","f_user_type","f_propertiesa", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
255
- orgCondtionStr: '',
256
-
257
- modelval: [],
258
- printshow: false,
259
- all: false,
260
- fields: {},
261
- thead: '',
262
- tfoot: '',
263
- show:false,
264
- rowdata:{},
265
- meterbrands: [],
266
- initres: {
267
- org:[this.$login.f.orgid],
268
- dep:[],
269
- user:[],
270
- },
271
- gasproperties:[],
272
- //合计数据
273
- sumsmodel: {}
274
- }
275
- },
276
- props:['selectorg'],
277
- ready() {
278
- if(this.selectorg != null && this.selectorg != null != ''){
279
- this.initres.org=[]
280
- this.initres.org.push(this.selectorg);
281
- }
282
- readySomething(this).then(() => {
283
- this.$emit('ready')
284
- }).catch((error) => {
285
- this.$emit('error', error)
286
- })
287
- for(var item in exportConfig.fillgasConfig){
288
- this.selectfields.push(item)
289
- }
290
- },
291
- methods: {
292
- userTypeChange () {
293
- this.gasproperties=[]
294
- if(this.$refs.paged.$refs.cri.model !==null) {
295
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
296
-
297
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
299
- // this.gasproperties.push({label: '全部', value: ''})
300
- }
301
- else{
302
- this.gasproperties =[{label: '全部', value: ''}]
303
- }
304
- },
305
- search(){
306
- this.$refs.paged.$refs.cri.search()
307
- },
308
- initParams() {
309
- // 初始化气表品牌
310
- let brandArr = []
311
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
312
- let temp = {}
313
- temp.label = item.label
314
- temp.value = item.value.f_meter_brand
315
- brandArr.push(temp)
316
- })
317
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
318
- },
319
- selfSearch(args) {
320
- args.condition = `${args.condition}` + this.orgCondtionStr
321
- this.model.search(args.condition, args.model)
322
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
323
- },
324
- clear() {
325
- //清空部门和人员
326
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
327
- //部门和人员变为全选
328
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
329
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
330
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
331
- this.$refs.paged.$refs.cri.model[key] = ''
332
- })
333
- },
334
- show() {
335
- this.criteriaShow = true
336
- },
337
- hidden() {
338
- this.criteriaShow = !this.criteriaShow
339
- },
340
- getRes(condition) {
341
- this.orgCondtionStr = condition
342
- },
343
- stamp() {
344
- this.all = false
345
- //默认选择要打印的列
346
- this.modelval = defaultPrint.config
347
- this.fields = this.getfield
348
- console.log('所有打印字段', this.fields)
349
- this.printshow = true
350
- this.put()
351
- },
352
- cancel() {
353
- this.show = false
354
- },
355
- dealmsg(val) {
356
- console.log('---------------dealmsg')
357
- this.rowdata=val
358
- this.show=true
359
- val.model = this.model.model
360
- this.$dispatch('deal-msg', val)
361
- },
362
- put() {
363
- // 对Modelval进行排序
364
- this.sortModelval()
365
- this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
366
- for (let key of this.modelval) {
367
- this.thead += '<th>' + this.fields[key] + '</th>'
368
- }
369
- this.thead += '</tr>'
370
- },
371
- print() {
372
- this.$refs.print.PrintAsFile()
373
- this.printshow = false
374
- },
375
- close() {
376
- this.printshow = false
377
- this.all = false
378
- },
379
- // 对选择的列进行排序
380
- sortModelval() {
381
- let sortModel = []
382
- Object.keys(this.fields).forEach((key) => {
383
- if (this.modelval.includes(key)) {
384
- sortModel.push(key)
385
- }
386
- })
387
- this.modelval = sortModel
388
- console.log('选择的打印的字段', this.modelval)
389
- },
390
- async updateParams() {
391
- await this.$MagLoadParams.loadParam(this.f_filialeid)
392
- this.initParams()
393
- },
394
- },
395
- watch: {
396
- 'all'(val) {
397
- if (val) {
398
- this.modelval = this.bodyData
399
- } else {
400
- this.modelval = defaultPrint.config
401
- this.put()
402
- }
403
- },
404
- 'modelval.length'() {
405
- this.put()
406
- },
407
- 'orgCondtionStr'(val) {
408
- let res = val.match(/'(.*?)'/)
409
- console.log('正则提取:',res && res[1])
410
- if (res) {
411
- this.selectorg = res[1]
412
- this.f_filialeid = res[1]
413
- this.updateParams()
414
- }
415
- }
416
- },
417
- computed: {
418
- getCondition() {
419
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
- },
421
- getfield() {
422
- return exportConfig.fillgasConfig
423
- },
424
- usertypes() {
425
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
426
- },
427
- fillGasTypes() {
428
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
429
- },
430
- chargeState() {
431
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
432
- }
433
- }
434
- }
435
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+ <div class="col-sm-2 form-group">
12
+ <label class="font_normal_body">客户编号</label>
13
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
14
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">客户名称</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
19
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="startDate" class="font_normal_body">开始日期</label>
23
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
+ v-model="model.startDate"
25
+ :value.sync="model.startDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_operate_date >= '{}'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label for="endDate" class="font_normal_body">结束日期</label>
33
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd HH:mm:ss'"
37
+ :show-reset-button="true"
38
+ condition="f_operate_date <= '{}'">
39
+ </datepicker>
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">客户类型</label>
43
+ <v-select :value.sync="model.f_user_type"
44
+ @change="$parent.$parent.userTypeChange()"
45
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
46
+ condition="f_user_type = '{}'"
47
+ close-on-select></v-select>
48
+ </div>
49
+ <div class="col-sm-2 form-group">
50
+ <label class="font_normal_body">用气性质</label>
51
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
52
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
53
+ condition="f_gasproperties = '{}'"
54
+ close-on-select></v-select>
55
+ </div>
56
+ <div class="span" style="float:right;">
57
+ <button class="button_search button_spacing" @click="search()">查询</button>
58
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
59
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
60
+
61
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
+ :field="$parent.$parent.getfield"
63
+ :defaultselect="$parent.$parent.selectfields"
64
+ sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" template-name='补气查询导出'
65
+ :choose-col="true"></export-excel>
66
+
67
+ <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>
68
+ </div>
69
+ </div>
70
+
71
+ <div class="row" v-show="$parent.$parent.criteriaShow">
72
+
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户地址</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
76
+ condition="f_address like '%{}%'" placeholder='客户地址'>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">补气类型</label>
80
+ <v-select :value.sync="model.f_type"
81
+ v-model="model.f_type"
82
+ :options='$parent.$parent.fillGasTypes' placeholder='请选择'
83
+ condition="f_type = '{}'"
84
+ close-on-select></v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
89
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">气表品牌</label>
93
+ <v-select :value.sync="model.f_meter_brand"
94
+ v-model="model.f_meter_brand"
95
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
96
+ condition="f_meter_brand = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">补气状态</label>
101
+ <v-select :value.sync="model.f_state"
102
+ v-model="model.f_state"
103
+ :options='$parent.$parent.chargeState' placeholder='请选择'
104
+ condition="f_state = '{}'"
105
+ close-on-select></v-select>
106
+ </div>
107
+ </div>
108
+
109
+ </div>
110
+ </criteria>
111
+
112
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
113
+ <template partial='head'>
114
+ <tr>
115
+ <th>
116
+ <nobr>客户编号</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>客户名称</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>客户地址</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>用户类型</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>用气性质</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>卡号</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>气表品牌</nobr>
135
+ </th>
136
+ <th>
137
+ <nobr>补气量</nobr>
138
+ </th>
139
+ <th>
140
+ <nobr>补气金额</nobr>
141
+ </th>
142
+ <th>
143
+ <nobr>补气类型</nobr>
144
+ </th>
145
+ <th>
146
+ <nobr>补气日期</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>补气原因</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>操作员</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>部门</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>公司</nobr>
159
+ </th>
160
+ </tr>
161
+ </template>
162
+ <template partial='body'>
163
+ <td style="text-align: center;">
164
+ <nobr>
165
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_user_name}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_address}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <nobr>{{row.f_user_type}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <nobr>{{row.f_gasproperties}}</nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr>{{row.f_card_id}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.f_meter_brand}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_pregas}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.f_preamount}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.f_type}}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{row.f_operate_date}}</nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_comments}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_operator}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_depname}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_orgname}}</nobr>
208
+ </td>
209
+ </template>
210
+ <template partial='foot'></template>
211
+ </data-grid>
212
+ </criteria-paged>
213
+
214
+ <table class="table-hover">
215
+ <tr style="position: relative" class="table-bordered">
216
+ <td
217
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
218
+ 汇总信息
219
+ </td>
220
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
221
+ 补气量合计:&emsp;{{sumsmodel.f_pregas}}
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ </div>
226
+ <div v-if="show">
227
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ </template>
232
+
233
+ <script>
234
+ import {PagedList} from 'vue-client'
235
+ import defaultPrint from '../config/DefaultPrint'
236
+ import exportConfig from '../config/exportConfig'
237
+
238
+ let readySomething = async function (self) {
239
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
240
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
241
+ // await self.$refs.paged.$refs.cri.search()
242
+ self.initParams()
243
+ await self.$MagLoadParams.loadParam()
244
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
245
+ }
246
+ export default {
247
+ data() {
248
+ return {
249
+ selectfields:[],
250
+ data: {},
251
+ model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0}),
252
+ criteriaShow: false,
253
+ headData: ["客户编号", "客户名称","用户编号","用户类型","用气性质", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
254
+ bodyData: ["f_userinfo_code", "f_user_name","f_user_type","f_propertiesa", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
255
+ orgCondtionStr: '',
256
+
257
+ modelval: [],
258
+ printshow: false,
259
+ all: false,
260
+ fields: {},
261
+ thead: '',
262
+ tfoot: '',
263
+ show:false,
264
+ rowdata:{},
265
+ meterbrands: [],
266
+ initres: {
267
+ org:[this.$login.f.orgid],
268
+ dep:[],
269
+ user:[],
270
+ },
271
+ gasproperties:[],
272
+ //合计数据
273
+ sumsmodel: {}
274
+ }
275
+ },
276
+ props:['selectorg'],
277
+ ready() {
278
+ if(this.selectorg != null && this.selectorg != null != ''){
279
+ this.initres.org=[]
280
+ this.initres.org.push(this.selectorg);
281
+ }
282
+ readySomething(this).then(() => {
283
+ this.$emit('ready')
284
+ }).catch((error) => {
285
+ this.$emit('error', error)
286
+ })
287
+ for(var item in exportConfig.fillgasConfig){
288
+ this.selectfields.push(item)
289
+ }
290
+ },
291
+ methods: {
292
+ userTypeChange () {
293
+ this.gasproperties=[]
294
+ if(this.$refs.paged.$refs.cri.model !==null) {
295
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
296
+
297
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
299
+ // this.gasproperties.push({label: '全部', value: ''})
300
+ }
301
+ else{
302
+ this.gasproperties =[{label: '全部', value: ''}]
303
+ }
304
+ },
305
+ search(){
306
+ this.$refs.paged.$refs.cri.search()
307
+ },
308
+ initParams() {
309
+ // 初始化气表品牌
310
+ let brandArr = []
311
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
312
+ let temp = {}
313
+ temp.label = item.label
314
+ temp.value = item.value.f_meter_brand
315
+ brandArr.push(temp)
316
+ })
317
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
318
+ },
319
+ selfSearch(args) {
320
+ args.condition = `${args.condition}` + this.orgCondtionStr
321
+ this.model.search(args.condition, args.model)
322
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
323
+ },
324
+ clear() {
325
+ //清空部门和人员
326
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
327
+ //部门和人员变为全选
328
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
329
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
330
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
331
+ this.$refs.paged.$refs.cri.model[key] = ''
332
+ })
333
+ },
334
+ show() {
335
+ this.criteriaShow = true
336
+ },
337
+ hidden() {
338
+ this.criteriaShow = !this.criteriaShow
339
+ },
340
+ getRes(condition) {
341
+ this.orgCondtionStr = condition
342
+ },
343
+ stamp() {
344
+ this.all = false
345
+ //默认选择要打印的列
346
+ this.modelval = defaultPrint.config
347
+ this.fields = this.getfield
348
+ console.log('所有打印字段', this.fields)
349
+ this.printshow = true
350
+ this.put()
351
+ },
352
+ cancel() {
353
+ this.show = false
354
+ },
355
+ dealmsg(val) {
356
+ console.log('---------------dealmsg')
357
+ this.rowdata=val
358
+ this.show=true
359
+ val.model = this.model.model
360
+ this.$dispatch('deal-msg', val)
361
+ },
362
+ put() {
363
+ // 对Modelval进行排序
364
+ this.sortModelval()
365
+ this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
366
+ for (let key of this.modelval) {
367
+ this.thead += '<th>' + this.fields[key] + '</th>'
368
+ }
369
+ this.thead += '</tr>'
370
+ },
371
+ print() {
372
+ this.$refs.print.PrintAsFile()
373
+ this.printshow = false
374
+ },
375
+ close() {
376
+ this.printshow = false
377
+ this.all = false
378
+ },
379
+ // 对选择的列进行排序
380
+ sortModelval() {
381
+ let sortModel = []
382
+ Object.keys(this.fields).forEach((key) => {
383
+ if (this.modelval.includes(key)) {
384
+ sortModel.push(key)
385
+ }
386
+ })
387
+ this.modelval = sortModel
388
+ console.log('选择的打印的字段', this.modelval)
389
+ },
390
+ async updateParams() {
391
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
392
+ this.initParams()
393
+ },
394
+ },
395
+ watch: {
396
+ 'all'(val) {
397
+ if (val) {
398
+ this.modelval = this.bodyData
399
+ } else {
400
+ this.modelval = defaultPrint.config
401
+ this.put()
402
+ }
403
+ },
404
+ 'modelval.length'() {
405
+ this.put()
406
+ },
407
+ 'orgCondtionStr'(val) {
408
+ let res = val.match(/'(.*?)'/)
409
+ console.log('正则提取:',res && res[1])
410
+ if (res) {
411
+ this.selectorg = res[1]
412
+ this.f_filialeid = res[1]
413
+ this.updateParams()
414
+ }
415
+ }
416
+ },
417
+ computed: {
418
+ getCondition() {
419
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
+ },
421
+ getfield() {
422
+ return exportConfig.fillgasConfig
423
+ },
424
+ usertypes() {
425
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
426
+ },
427
+ fillGasTypes() {
428
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
429
+ },
430
+ chargeState() {
431
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
432
+ }
433
+ }
434
+ }
435
+ </script>