manage-client 1.60.12-8 → 1.60.12-9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "1.60.12-8",
3
+ "version": "1.60.12-9",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,634 @@
1
+ <template>
2
+ <div style="flex:1;" class="flex">
3
+ <!-- <div class="basic-main" @keyup.enter="search">-->
4
+ <!-- <div class="flex" >-->
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group form-input-group">
10
+ <label for="startDate" class="control-label">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:100%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ condition= "f_hand_date >= '{}'"
16
+ :show-reset-button="true"
17
+ >
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group form-input-group">
21
+ <label for="endDate" class="control-label">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:100%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ condition= "f_hand_date <= '{}'"
27
+ :show-reset-button="true"
28
+ >
29
+ </datepicker>
30
+ </div>
31
+ <div class="span" style="float:right;">
32
+ <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="search()">查询</button>
33
+ <!-- <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="$parent.$parent.clear()">清空</button>-->
34
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
35
+ <!-- :field="$parent.$parent.getfield"-->
36
+ <!-- :footer="$parent.$parent.footer"-->
37
+ <!-- :header="$parent.$parent.other"-->
38
+ <!-- sqlurl="rs/logic/exportfile"-->
39
+ <!-- sql-name="getnogas"-->
40
+ <!-- template-name='不用气查询导出'-->
41
+ <!-- :choose-col="true"></export-excel>-->
42
+ <!-- <print-data :model="$parent.model" :field="$parent.$parent.getfield"-->
43
+ <!-- :defaultfield="$parent.$parent.defaultfield" print-name="不用气查询打印"-->
44
+ <!-- ></print-data>-->
45
+ </div>
46
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
47
+ <!-- <label class="control-label">客户编号</label>-->
48
+ <!-- <input type="text" style="width:60%" class="form-control" v-model="model.f_userinfo_code"-->
49
+ <!-- condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
50
+ <!-- </div>-->
51
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
52
+ <!-- <label class="control-label">客户名称</label>-->
53
+ <!-- <input type="text" style="width:60%" class="form-control" v-model="model.f_user_name"-->
54
+ <!-- condition="f_user_name like '%{}%'" placeholder="客户名称">-->
55
+ <!-- </div>-->
56
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
57
+ <!-- <label class="control-label" >档案编号</label>-->
58
+ <!-- <input type="text" style="width:60%" class="form-control" v-model="model.f_olduserinfo_code"-->
59
+ <!-- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">-->
60
+ <!-- </div>-->
61
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
62
+ <!-- <label class="control-label">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>-->
63
+ <!-- <v-select :value.sync="model.f_residential_area"-->
64
+ <!-- class="select_list select"-->
65
+ <!-- v-model="model.f_residential_area"-->
66
+ <!-- style="width: 60%"-->
67
+ <!-- multiple-->
68
+ <!-- condition="f_residential_area in {}"-->
69
+ <!-- :options='$parent.$parent.residentialArea' placeholder='选择小区'-->
70
+ <!-- close-on-select>-->
71
+
72
+ <!-- </v-select>-->
73
+ <!-- </div>-->
74
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
75
+ <!-- <label class="control-label">客户地址</label>-->
76
+ <!-- <input type="text" style="width:60%" class="form-control" v-model="model.f_address"-->
77
+ <!-- condition="f_address like '%{}%'" placeholder='客户地址'>-->
78
+ <!-- </div>-->
79
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
80
+ <!-- <label class="control-label">客户表号</label>-->
81
+ <!-- <input type="text" style="width:60%" class="form-control" v-model="model.f_meternumber"-->
82
+ <!-- condition="f_meternumber like '%{}%'" placeholder='客户表号'>-->
83
+ <!-- </div>-->
84
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
85
+ <!-- <label class="control-label" title="参数名称:气表类型">气表类型</label>-->
86
+ <!-- <v-select :value.sync="model.f_meter_classify"-->
87
+ <!-- v-model="model.f_meter_classify"-->
88
+ <!-- :options='$parent.$parent.metertype' placeholder='请选择'-->
89
+ <!-- condition="f_meter_classify like '%{}%'"-->
90
+ <!-- close-on-select></v-select>-->
91
+ <!-- </div>-->
92
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
93
+ <!-- <label class="control-label">气表品牌</label>-->
94
+ <!-- <v-select :value.sync="model.f_meter_brand" multiple-->
95
+ <!-- v-model="model.f_meter_brand"-->
96
+ <!-- :options='$parent.$parent.meterbrands' placeholder='请选择'-->
97
+ <!-- condition="f_meter_brand in {}"-->
98
+ <!-- close-on-select></v-select>-->
99
+ <!-- </div>-->
100
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
101
+ <!-- <label class="control-label" title="参数名称:用户类型">客户类型</label>-->
102
+ <!-- <v-select :value.sync="model.f_user_type"-->
103
+ <!-- @change="$parent.$parent.userTypeChange()"-->
104
+ <!-- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"-->
105
+ <!-- condition="f_user_type = '{}'"-->
106
+ <!-- close-on-select></v-select>-->
107
+ <!-- </div>-->
108
+ <!-- <div class="col-sm-2 form-group form-input-group" >-->
109
+ <!-- <label class="control-label">客户状态</label>-->
110
+ <!-- <v-select :value.sync="model.f_user_state"-->
111
+ <!-- v-model="model.f_user_state"-->
112
+ <!-- :options='$parent.$parent.userstates' placeholder='请选择'-->
113
+ <!-- condition="f_user_state = '{}'"-->
114
+ <!-- close-on-select></v-select>-->
115
+ <!-- </div>-->
116
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
117
+ <!-- <label class="control-label">用气性质</label>-->
118
+ <!-- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
119
+ <!-- :options='$parent.$parent.gasproperties' placeholder='请选择'-->
120
+ <!-- condition="f_gasproperties = '{}'"-->
121
+ <!-- close-on-select></v-select>-->
122
+ <!-- </div>-->
123
+ <!--表册片区-->
124
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
125
+ <!-- <label class="control-label">表册片区</label>-->
126
+ <!-- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"-->
127
+ <!-- @change="$parent.$parent.inputtorchange"-->
128
+ <!-- :options='$parent.$parent.bookSlice' placeholder='片区/表册'-->
129
+ <!-- style="width:60%"-->
130
+ <!-- close-on-select-->
131
+ <!-- condition="f_book_slice_area = '{}'"></v-select>-->
132
+ <!-- </div>-->
133
+ <!-- <div class="col-sm-2 form-group form-input-group">-->
134
+ <!-- <label class="control-label">抄&ensp;表&ensp;册</label>-->
135
+ <!-- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"-->
136
+ <!-- :options='$parent.$parent.meterbooks' placeholder='抄表册'-->
137
+ <!-- style="width:60%" :multiple="true"-->
138
+ <!-- condition="f_meter_book_num in {}"></v-select>-->
139
+ <!-- </div>-->
140
+ </div>
141
+ </div>
142
+ </criteria>
143
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
144
+ <template partial='head'>
145
+ <tr>
146
+ <th>
147
+ <nobr>客户编号</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>客户名称</nobr>
151
+ </th>
152
+ <!-- <th>-->
153
+ <!-- <nobr>档案编号</nobr>-->
154
+ <!-- </th>-->
155
+ <th>
156
+ <nobr>客户电话</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>证件类型</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>证件号码</nobr>
163
+ </th>
164
+ <!-- <th>-->
165
+ <!-- <nobr>小区</nobr>-->
166
+ <!-- </th>-->
167
+ <!-- <th>-->
168
+ <!-- <nobr>客户地址</nobr>-->
169
+ <!-- </th>-->
170
+ <!-- <th>-->
171
+ <!-- <nobr>客户类型</nobr>-->
172
+ <!-- </th>-->
173
+ <th>
174
+ <nobr>客户状态</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>表号</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>气表品牌</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>气表类型</nobr>
184
+ </th>
185
+ <!-- <th>-->
186
+ <!-- <nobr>气价详情</nobr>-->
187
+ <!-- </th>-->
188
+ <!-- <th>-->
189
+ <!-- <nobr>预购气量</nobr>-->
190
+ <!-- </th>-->
191
+ <!-- <th>-->
192
+ <!-- <nobr>预购金额</nobr>-->
193
+ <!-- </th>-->
194
+ <!-- <th>-->
195
+ <!-- <nobr>实交金额</nobr>-->
196
+ <!-- </th>-->
197
+ <!-- <th>-->
198
+ <!-- <nobr>抄表员</nobr>-->
199
+ <!-- </th>-->
200
+ <!-- <th>-->
201
+ <!-- <nobr>表册片区</nobr>-->
202
+ <!-- </th>-->
203
+ <!-- <th>-->
204
+ <!-- <nobr>抄表次数</nobr>-->
205
+ <!-- </th>-->
206
+ <!-- <th>-->
207
+ <!-- <nobr>抄表区间</nobr>-->
208
+ <!-- </th>-->
209
+ <!-- <th title="抄表区间间隔天数">-->
210
+ <!-- <nobr>天数</nobr>-->
211
+ <!-- </th>-->
212
+ <th>
213
+ <nobr>用气量</nobr>
214
+ </th>
215
+ <!-- <th>-->
216
+ <!-- <nobr>用气金额</nobr>-->
217
+ <!-- </th>-->
218
+ </tr>
219
+ </template>
220
+ <template partial='body'>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_userinfo_code}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_user_name}}</nobr>
226
+ </td>
227
+ <!-- <td style="text-align: center;">-->
228
+ <!-- <nobr>{{row.f_olduserinfo_code}}</nobr>-->
229
+ <!-- </td>-->
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_user_phone}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_credentials}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_idnumber}}</nobr>
238
+ </td>
239
+ <!-- <td style="text-align: center;">-->
240
+ <!-- <nobr>{{row.f_residential_area}}</nobr>-->
241
+ <!-- </td>-->
242
+ <!-- <td style="text-align: center;">-->
243
+ <!-- <nobr>{{row.f_address}}</nobr>-->
244
+ <!-- </td>-->
245
+ <!-- <td style="text-align: center;">-->
246
+ <!-- <nobr>{{row.f_user_type}}</nobr>-->
247
+ <!-- </td>-->
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_user_state}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_meternumber}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_meter_brand}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_meter_classify}}</nobr>
259
+ </td>
260
+ <!-- <td style="text-align: center;">-->
261
+ <!-- <nobr>{{row.f_price_value}}</nobr>-->
262
+ <!-- </td>-->
263
+ <!-- <td style="text-align: center;">-->
264
+ <!-- <nobr>{{row.f_pregas}}</nobr>-->
265
+ <!-- </td>-->
266
+ <!-- <td style="text-align: center;">-->
267
+ <!-- <nobr>{{row.f_preamount}}</nobr>-->
268
+ <!-- </td>-->
269
+ <!-- <td style="text-align: center;">-->
270
+ <!-- <nobr>{{row.f_collection}}</nobr>-->
271
+ <!-- </td>-->
272
+ <!-- <td style="text-align: center;">-->
273
+ <!-- <nobr>{{row.f_inputtor}}</nobr>-->
274
+ <!-- </td>-->
275
+ <!-- <td style="text-align: center;">-->
276
+ <!-- <nobr>{{row.f_book_slice_area}}</nobr>-->
277
+ <!-- </td>-->
278
+ <!-- <td style="text-align: center;">-->
279
+ <!-- <nobr>{{row.f_hand_number}}</nobr>-->
280
+ <!-- </td>-->
281
+ <!-- <td style="text-align: center;">-->
282
+ <!-- <nobr>{{row.f_date}}</nobr>-->
283
+ <!-- </td>-->
284
+ <!-- <td style="text-align: center;" title="抄表区间间隔天数">-->
285
+ <!-- <nobr>{{row.f_input_day}}</nobr>-->
286
+ <!-- </td>-->
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_oughtamount}}</nobr>
289
+ </td>
290
+ <!-- <td style="text-align: center;">-->
291
+ <!-- <nobr>{{row.f_oughtfee}}</nobr>-->
292
+ <!-- </td>-->
293
+ </template>
294
+ </data-grid>
295
+ </criteria-paged>
296
+ </div>
297
+ <!-- </div>-->
298
+ <!-- </div>-->
299
+ </template>
300
+ <script>
301
+ import {HttpResetClass, PagedList} from 'vue-client'
302
+
303
+
304
+ let readySomething = async function (self) {
305
+ //加载抄表册
306
+ self.initmeterbook();
307
+ self.initSlice(self.$login.f.orgid)
308
+
309
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
310
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
311
+ await self.$MagLoadParams.loadParam()
312
+ self.initParams()
313
+ self.getaddress()
314
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
315
+ }
316
+ export default {
317
+ title: '不用气查询',
318
+ data () {
319
+ return {
320
+ other: [],
321
+ footer: [],
322
+ model: new PagedList('rs/sql/getnogas', 30,{
323
+ startDate: 'this.model.startDate',
324
+ endDate: 'this.model.endDate'
325
+ }),
326
+ initres: {
327
+ org: [this.$login.f.orgid],
328
+ dep: [],
329
+ user: [],
330
+ },
331
+ gasproperties: [],
332
+ residentialArea: [],
333
+ f_filialeid: this.$login.f.orgid,
334
+ show: false,
335
+ rowdata: {},
336
+ criteriaShow: true,
337
+ orgCondtionStr: '',
338
+ modelval: [],
339
+ meterbrands: [],
340
+ printshow: false,
341
+ all: false,
342
+ fields: {},
343
+ thead: '',
344
+ tfoot: '',
345
+ //表册片区
346
+ bookSlice:[{label: '全部',value: ''}],
347
+ // 下拉框
348
+
349
+ //合计数据
350
+ sumsmodel: {},
351
+ defaultfield: [],
352
+ // 使用类型,壁挂炉
353
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
354
+ userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
355
+ meterbooks: [{label: '全部',value: ''}], //抄表册
356
+ tempfalg :false,
357
+ lastorgstr:'',
358
+ allorgid:[],
359
+ }
360
+ },
361
+ ready () {
362
+ readySomething(this)
363
+ },
364
+ methods: {
365
+ initParams(){
366
+ //初始化气表品牌
367
+ let brandArr = []
368
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
369
+ let temp = {}
370
+ temp.label = item.label
371
+ temp.value = item.value.f_meter_brand
372
+ brandArr.push(temp)
373
+ })
374
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
375
+ },
376
+ //初始化片区
377
+ async initSlice (val) {
378
+ if (val) {
379
+ let getAllArea = await this.$resetpost('/rs/search', {
380
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
381
+ userid: this.$login.f.id
382
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
383
+ let arr = getAllArea.data.filter((res) => {
384
+ return res.parentid == val
385
+ })
386
+ this.bookSlice = []
387
+ arr.forEach((res) => {
388
+ this.bookSlice.push({label: res.name, value: res.name})
389
+ })
390
+ }
391
+ },
392
+ //表册片区和抄表册关联
393
+ async inputtorchange(){
394
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
395
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
396
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
397
+ if((val2.length>0)){
398
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
399
+ if(val2[0]) {
400
+ condition = condition + ` and f_book_slice_area = '${val2}' `
401
+ }
402
+ let param={
403
+ items:'*',
404
+ tablename:'t_meter_book',
405
+ condition:condition,
406
+ orderitem:'id'
407
+ }
408
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
409
+ if (getMeterBooks.data) {
410
+ if(getMeterBooks.data.length >0){
411
+ let rs = [];
412
+ getMeterBooks.data.forEach((item)=>{
413
+ let temp = {
414
+ label:item.f_book_name,
415
+ value:item.id
416
+ };
417
+ rs.push(temp);
418
+
419
+ })
420
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
421
+ }else{
422
+
423
+ this.meterbooks = [{label: '全部',value: ''}];
424
+ }
425
+ }
426
+ }else{
427
+ this.meterbooks = [{label: '全部',value: ''}];
428
+ this.initmeterbook();
429
+ }
430
+ },
431
+ async getaddress(){
432
+ let HttpReset = new HttpResetClass()
433
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
434
+ data: {
435
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
436
+ }
437
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
438
+ console.log('小区',data)
439
+ let house = [{label: '全部', value: ''}]
440
+ for (let row of data.data){
441
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
442
+ }
443
+ this.residentialArea = house
444
+ },
445
+ async initmeterbook(orgstr){
446
+ if(orgstr == null ){
447
+ orgstr = this.f_filialeid;
448
+ }
449
+ //获取新的抄表册,先去清理所有的抄表册
450
+ this.$GetSaleParam.meterbooks = [];
451
+ //开始加载新的抄表册
452
+ await this.$LoadParams.loadMeterBook(orgstr)
453
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
454
+ },
455
+ getotherfooter () {
456
+ this.other = [];
457
+ this.footer = [];
458
+ // let exportdata = this.getCondition;
459
+ let otherInData = [];
460
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
461
+ let footerData = [], exportfield = this.getfield;
462
+ footerData.push("合计");
463
+ let self = this;
464
+ for (var field in self.sumsmodel) {
465
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
466
+ }
467
+ this.footer.push(footerData);
468
+ this.other.push(otherInData);
469
+ },
470
+ userTypeChange () {
471
+ this.gasproperties = []
472
+ if (this.$refs.paged.$refs.cri.model !== null) {
473
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
474
+
475
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
476
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
477
+ } else {
478
+ this.gasproperties = [{label: '全部', value: ''}]
479
+ }
480
+ },
481
+ search () {
482
+ this.$refs.paged.$refs.cri.search()
483
+ },
484
+ cancel () {
485
+ this.show = false
486
+ },
487
+ selfSearch (args) {
488
+ args.condition = `${args.condition} ` + this.orgCondtionStr
489
+ let con = '1=1'
490
+ let mod =this.$refs.paged.$refs.cri.model
491
+ if(mod.startDate != null && mod.startDate != '') {
492
+ con += ` and f_input_date >= '${mod.startDate}'`
493
+ }
494
+ if(mod.endDate != null && mod.endDate != '') {
495
+ con += ` and f_input_date <= '${mod.endDate}'`
496
+ }
497
+ this.model.search(args.condition, args.model,con)
498
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
499
+ },
500
+ clear () {
501
+ //清空部门和人员
502
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
503
+ //部门和人员变为全选
504
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
505
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
506
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
507
+ this.$refs.paged.$refs.cri.model[key] = []
508
+ })
509
+ },
510
+ show () {
511
+ this.criteriaShow = true
512
+ },
513
+ hidden () {
514
+ this.criteriaShow = !this.criteriaShow
515
+ },
516
+ showmsg (obj) {
517
+ this.rowdata = obj
518
+ this.show = true
519
+ },
520
+ async getRes(condition,obj) {
521
+ this.orgCondtionStr = condition
522
+
523
+ },
524
+ stamp () {
525
+ this.all = false
526
+ //默认选择要打印的列
527
+ this.modelval = defaultPrint.config
528
+ this.fields = this.getfield
529
+ console.log('所有打印字段', this.fields)
530
+ this.printshow = true
531
+ this.put()
532
+ },
533
+ put () {
534
+ // 对Modelval进行排序
535
+ this.sortModelval()
536
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
537
+ for (let key of this.modelval) {
538
+ this.thead += '<th>' + this.fields[key] + '</th>'
539
+ }
540
+ this.thead += '</tr>'
541
+ },
542
+ print () {
543
+ this.$refs.print.PrintAsFile()
544
+ this.printshow = false
545
+ },
546
+ dealmsg (val) {
547
+ this.rowdata = val
548
+ this.show = true
549
+ val.model = this.model.model
550
+ this.$dispatch('deal-msg', val)
551
+ },
552
+ close () {
553
+ this.printshow = false
554
+ this.all = false
555
+ },
556
+ // 对选择的列进行排序
557
+ sortModelval () {
558
+ let sortModel = []
559
+ Object.keys(this.fields).forEach((key) => {
560
+ if (this.modelval.includes(key)) {
561
+ sortModel.push(key)
562
+ }
563
+ })
564
+ this.modelval = sortModel
565
+ console.log('选择的打印的字段', this.modelval)
566
+ }
567
+
568
+ },
569
+ computed: {
570
+ getCondition () {
571
+ return {
572
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
573
+ condValue: this.$refs.paged.model.condValue,
574
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
575
+ endDate: this.$refs.paged.$refs.cri.model.endDate
576
+ }
577
+ },
578
+ getfield () {
579
+ return exportConfig.notgasConfig
580
+ },
581
+ usertypes () {
582
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
583
+ },
584
+ credentials () {
585
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
586
+ },
587
+ metertype () {
588
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
589
+ }
590
+ },
591
+ events: {},
592
+ watch: {
593
+ 'all' (val) {
594
+ if (val) {
595
+ this.modelval = this.bodyData
596
+ } else {
597
+ this.modelval = defaultPrint.config
598
+ this.put()
599
+ }
600
+ },
601
+ 'modelval.length' () {
602
+ this.put()
603
+ },
604
+ sumsmodel: {
605
+ handler: function (val) {
606
+ this.getotherfooter();
607
+ },
608
+ deep: true
609
+ },
610
+ async 'orgCondtionStr'(val) {
611
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
612
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
613
+ this.meterbooks = [{label: '全部',value: ''}];
614
+ if(this.lastorgstr != val){
615
+ this.tempfalg = true;
616
+ this.lastorgstr = val;
617
+ }
618
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
619
+ this.tempfalg = false;
620
+ let a = val.substring(val.indexOf("(")+2)
621
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
622
+ }
623
+ },
624
+ }
625
+ }
626
+ </script>
627
+ <style>
628
+ .datapanel {
629
+ color: #333;
630
+ background-color: white;
631
+ padding: 10px 20px;
632
+ border-radius: 15px;
633
+ }
634
+ </style>
package/src/manage.js CHANGED
@@ -566,6 +566,10 @@ export default function () {
566
566
  require(['./components/WebReport/NotUpload'], resolve)
567
567
  }
568
568
  )
569
+ // 不用气用户查询
570
+ Vue.component('notuse-query', (resolve) => {
571
+ require(['./components/WebReport/NotUseQuery'], resolve)
572
+ })
569
573
  // 电量不足查询
570
574
  Vue.component('battery-low', (resolve) => {
571
575
  require(['./components/WebReport/BatteryLow'], resolve)
@@ -738,11 +742,6 @@ export default function () {
738
742
  Vue.component('user-query', (resolve) => {
739
743
  require(['./components/ManageBusiness/UserQuery'], resolve)
740
744
  })
741
- // 不用气用户查询
742
- Vue.component('not-use-query', (resolve) => {
743
- require(['./components/ManageBusiness/NotUseQuery'], resolve)
744
- }
745
- )
746
745
  //表具查询
747
746
  Vue.component('table-with-query', (resolve) => {
748
747
  require(['./components/ManageBusiness/TableWithQuery'], resolve)