manage-client 4.1.39 → 4.1.41

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": "4.1.39",
3
+ "version": "4.1.41",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -12,7 +12,7 @@
12
12
  <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
13
  v-model="model.startDate"
14
14
  :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd hh:mm:ss'"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
16
  :show-reset-button="true"
17
17
  condition="f_operate_date >= '{}'">
18
18
  </datepicker>
@@ -22,7 +22,7 @@
22
22
  <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
23
  v-model="model.endDate"
24
24
  :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd hh:mm:ss'"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
26
  :show-reset-button="true"
27
27
  condition="f_operate_date <= '{}'">
28
28
  </datepicker>
@@ -0,0 +1,634 @@
1
+ <template >
2
+ <div class="flex-row">
3
+ <div @keyup.enter="search1" class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial @keyup.enter="search()">
7
+ <div class="row">
8
+ <div class="col-sm-2">
9
+ <res-select-group :show-component="['company']" :initres="$parent.$parent.org" @re-res="$parent.$parent.getorg" style="width:60%"></res-select-group>
10
+ </div>
11
+ <div class="col-sm-2 form-group ">
12
+ <label class="font_normal_body">客户编号</label>
13
+ <input
14
+ class="input_search" condition="f_userinfo_code = '{}'"
15
+ placeholder='客户编号'
16
+ style="width:60%"
17
+ type="text"
18
+ v-model="model.f_userinfo_code">
19
+ </div>
20
+
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input
24
+ class="input_search" condition="f_user_name like '%{}%'"
25
+ placeholder='客户名称'
26
+ style="width:60%"
27
+ type="text"
28
+ v-model="model.f_user_name"
29
+ >
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">客户地址</label>
33
+ <input class="input_search"
34
+ condition="f_address like '%{}%'"
35
+ placeholder='客户地址'
36
+ style="width:60%"
37
+ type="text"
38
+ v-model="model.f_address"
39
+ >
40
+ </div>
41
+
42
+ <div style="float:right">
43
+ <button @click="search()" class="button_search" v-el:cba>查询</button>
44
+ <button @click="$parent.$parent.clearmsg" class="button_clear">清空</button>
45
+ <export-excel
46
+ :choose-col="true"
47
+ :data="{condition: $parent.$parent.condition,
48
+ f_orgid: $parent.$parent.f_orgid,
49
+ f_start_date: $parent.$parent.f_start_date,
50
+ f_end_date: $parent.$parent.f_end_date
51
+ }"
52
+ :header="$parent.$parent.other"
53
+ :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="api/af-revenue/logic/openapi/exportfile"
54
+ template-name='指令查看'></export-excel>
55
+ <div
56
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
57
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
58
+ </div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+
62
+ <!-- <div class="col-sm-2">-->
63
+ <!-- <label class="font_normal_body">组织机构</label>-->
64
+ <!-- <res-select :initresid="$parent.$parent.org"-->
65
+ <!-- style="width:60%"-->
66
+ <!-- @res-select="$parent.$parent.getorg"-->
67
+ <!-- restype='organization'>-->
68
+ <!-- </res-select>-->
69
+
70
+ <!-- </div>-->
71
+
72
+ <!-- <div class="col-sm-2 form-group">-->
73
+ <!-- <label class="font_normal_body">客户类型</label>-->
74
+ <!-- <v-select style="width:60%" :value.sync="model.f_user_type" v-model="model.f_user_type"-->
75
+ <!-- placeholder='客户类型'-->
76
+ <!-- value-single="true"-->
77
+ <!-- :options='$parent.$parent.userType'-->
78
+ <!-- close-on-select-->
79
+ <!-- condition="f_user_type ='{}'"-->
80
+ <!-- ></v-select>-->
81
+ <!-- </div>-->
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">用气性质</label>
84
+ <v-select style="width:60%" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
85
+ placeholder='用气性质'
86
+ value-single="true"
87
+ :options='$parent.$parent.Gasproperties'
88
+ close-on-select
89
+ condition="f_gasproperties = '{}'"
90
+ ></v-select>
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号</label>
94
+ <input
95
+ class="input_search" condition="f_meternumber = '{}'"
96
+ placeholder='表号'
97
+ style="width:60%"
98
+ type="text"
99
+ v-model="model.f_meternumber">
100
+ </div>
101
+ <div class="col-sm-2 form-group">
102
+ <label class="font_normal_body">气表品牌</label>
103
+ <v-select
104
+ :options='$parent.$parent.meterbrand'
105
+
106
+ :value.sync="model.f_gasbrand"
107
+ close-on-select
108
+ condition="f_meter_brand='{}'"
109
+ placeholder='气表品牌'
110
+ style="width:60%"
111
+ v-model="model.f_gasbrand">
112
+ </v-select>
113
+ </div>
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">指令类型</label>
116
+ <v-select :options='$parent.$parent.instructtype' :value.sync="model.f_instruct_type" close-on-select
117
+ condition="f_instruct_type='{}'"
118
+ placeholder='指令类型'
119
+ style="width:60%"
120
+ v-model="model.f_instruct_type"></v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">执行状态</label>
124
+ <v-select :options='$parent.$parent.instructstate' :value.sync="model.f_instruct_state" close-on-select
125
+ condition="f_instruct_state='{}'"
126
+ placeholder='执行状态'
127
+ style="width:60%"
128
+ v-model="model.f_instruct_state"
129
+ ></v-select>
130
+ </div>
131
+
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">指令时间</label>
134
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
135
+ condition="f_instruct_date >= '{}'"
136
+ placeholder="起始时间"
137
+ style="width:60%"
138
+ v-model="model.f_start_date"
139
+ ></datepicker>
140
+ </div>
141
+ <div class="col-sm-2 form-group">
142
+ <label class="font_normal_body">&emsp;&emsp;至&emsp;</label>
143
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
144
+ condition="f_instruct_date <= '{}'"
145
+ placeholder="结束时间"
146
+ style="width:60%"
147
+ v-model="model.f_end_date"
148
+ ></datepicker>
149
+ </div>
150
+ <div class="col-sm-2 form-group">
151
+ <label class="font_normal_body">指令标题</label>
152
+ <v-select :options='$parent.$parent.instructtitle' :value.sync="model.f_instruct_title" close-on-select
153
+ condition="f_instruct_title='{}'"
154
+ placeholder='指令标题'
155
+ style="width:60%"
156
+ v-model="model.f_instruct_title"></v-select>
157
+ </div>
158
+
159
+ <div class="col-sm-2 form-group">
160
+ <label class="font_normal_body">操&nbsp;作&nbsp;人</label>
161
+ <v-select :options='$parent.$parent.operators' :value.sync="model.f_operator" close-on-select
162
+ condition="f_operator='{}'"
163
+ placeholder='操作人'
164
+ style="width:60%"
165
+ v-model="model.f_operator"></v-select>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </criteria>
170
+ <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' :modelval="$parent.$parent.modelval" v-ref:grid>
171
+ <template partial='head'>
172
+ <tr>
173
+ <th style="text-align:center">
174
+ <nobr>操作</nobr>
175
+ </th>
176
+ <th style="text-align:center">
177
+ <nobr>序号</nobr>
178
+ </th>
179
+ <th style="text-align:center">
180
+ <nobr>客户编号</nobr>
181
+ </th>
182
+ <th style="text-align:center">
183
+ <nobr>客户名称</nobr>
184
+ </th>
185
+ <th style="text-align:center">
186
+ <nobr>客户地址</nobr>
187
+ </th>
188
+ <th style="text-align:center">
189
+ <nobr>表号</nobr>
190
+ </th>
191
+ <th style="text-align:center">
192
+ <nobr>气表品牌</nobr>
193
+ </th>
194
+ <th style="text-align:center">
195
+ <nobr>指令类型</nobr>
196
+ </th>
197
+ <th style="text-align:center">
198
+ <nobr>指令标题</nobr>
199
+ </th>
200
+ <th style="text-align:center">
201
+ <nobr>执行状态</nobr>
202
+ </th>
203
+ <th style="text-align:center"><nobr>执行结果</nobr></th>
204
+ <th style="text-align:center"><nobr>指令生成人</nobr></th>
205
+ <th style="text-align:center"><nobr>指令生成时间</nobr></th>
206
+ <th style="text-align:center"><nobr>指令发送时间</nobr></th>
207
+ <th style="text-align:center"><nobr>上表时间</nobr></th>
208
+ <th style="text-align:center">
209
+ <nobr>充值金额</nobr>
210
+ </th>
211
+ <th style="text-align:center">
212
+ <nobr>操作内容</nobr>
213
+ </th>
214
+ <th style="text-align:center">
215
+ <nobr>操作原因</nobr>
216
+ </th>
217
+ <th style="text-align:center">
218
+ <nobr>操作人(记录)</nobr>
219
+ </th>
220
+ <th style="text-align:center">
221
+ <nobr>操作时间(记录)</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>操作类型</nobr>
225
+ </th>
226
+ <th style="text-align:center">
227
+ <nobr>记录状态</nobr>
228
+ </th>
229
+ <th style="text-align:center">
230
+ <nobr>组织机构</nobr>
231
+ </th>
232
+ <th style="text-align:center;">
233
+ <nobr>指令内容</nobr>
234
+ </th>
235
+ <th style="text-align:center">
236
+ <nobr>指令详情</nobr>
237
+ </th>
238
+ </tr>
239
+ </template>
240
+ <template partial='body'>
241
+ <tr>
242
+ <td style="text-align:center" >
243
+ <button v-if="row.f_instruct_state==='执行失败' && $login.r.includes('指令重发')" style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.reSend(row)">指令重发</button>
244
+ </td>
245
+ <td style="text-align:center">
246
+ <nobr>{{$index+1}}</nobr>
247
+ </td>
248
+ <td style="text-align:center">
249
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
250
+ </td>
251
+ <td style="text-align:center">
252
+ <nobr>{{row.f_user_name}}</nobr>
253
+ </td>
254
+ <td style="text-align:center">
255
+ <nobr>{{row.f_address}}</nobr>
256
+ </td>
257
+ <td style="text-align:center">
258
+ <nobr>{{row.f_meternumber}}</nobr>
259
+ </td>
260
+ <td style="text-align:center">
261
+ <nobr>{{row.f_meter_brand}}</nobr>
262
+ </td>
263
+
264
+ <td style="text-align:center">
265
+ <nobr>{{row.f_instruct_type}}</nobr>
266
+ </td>
267
+ <td style="text-align:center">
268
+ <nobr>{{row.f_instruct_title}}</nobr>
269
+ </td>
270
+ <td style="text-align:center">
271
+ <nobr>{{row.f_instruct_state}}</nobr>
272
+ </td>
273
+ <td style="text-align:center">
274
+ <nobr>{{row.f_receive_state}}</nobr>
275
+ </td>
276
+ <td style="text-align:center">
277
+ <nobr>{{row.f_inputtor}}</nobr>
278
+ </td>
279
+ <td style="text-align:center">
280
+ <nobr>{{row.f_instruct_date}}</nobr>
281
+ </td>
282
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
283
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
284
+ <td style="text-align:center">
285
+ <nobr>{{row.f_collection}}</nobr>
286
+ </td>
287
+ <td style="text-align:center">
288
+ <nobr>{{row.note}}</nobr>
289
+ </td>
290
+ <td style="text-align:center">
291
+ <nobr>{{row.f_info}}</nobr>
292
+ </td>
293
+ <td style="text-align:center">
294
+ <nobr>{{row.f_operator}}</nobr>
295
+ </td>
296
+ <td style="text-align:center">
297
+ <nobr>{{row.f_operate_date}}</nobr>
298
+ </td>
299
+ <td style="text-align:center">
300
+ <nobr>{{row.f_operate_type}}</nobr>
301
+ </td>
302
+ <td style="text-align:center">
303
+ <nobr>{{row.f_state}}</nobr>
304
+ </td>
305
+ <td style="text-align:center">
306
+ <nobr>{{row.f_orgname}}</nobr>
307
+ </td>
308
+ <td style="text-align:center;">
309
+ <nobr>{{row.f_instruct_content}}</nobr>
310
+ </td>
311
+ <td style="text-align:center">
312
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.instructDetail(row)">指令详情</button>
313
+ </td>
314
+ </tr>
315
+ </template>
316
+ </data-grid>
317
+ </criteria-paged>
318
+ </div>
319
+ <modal :show.sync="detailShow" v-if="detailShow" width="40%" style="width:auto;" v-ref:modal middle backdrop="false">
320
+ <article slot="modal-body">
321
+ <p class="text-center" style="font-size: 15px" v-html="f_instruct_content"></p>
322
+ </article>
323
+ <footer slot="modal-footer" class="modal-footer">
324
+ </footer>
325
+ </modal>
326
+ </div>
327
+ </template>
328
+ <script>
329
+ import {PagedList} from 'vue-client'
330
+ import * as Util from '../../Util'
331
+ let readyGen = async function (self) {
332
+ await self.$MagLoadParams.loadParam()
333
+ await self.$MagGetSaleParam.initinputtor()
334
+ self.initQueryParam()
335
+ // self.getinstructtype()
336
+ // self.getinstructtitle()
337
+ // self.getinstructstate()
338
+ await self.$getConfig(self, 'NewQueryInstruct')
339
+ console.log('指令查看config', self.config)
340
+ self.getfield = self.config.excelHeaders
341
+ self.getOperators(self.$login.f.orgid)
342
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
343
+ // self.reflash()
344
+ }
345
+ export default {
346
+ title: '指令查看',
347
+ data () {
348
+ return {
349
+ model: new PagedList('api/af-revenue/sql/manage_getNewQueryInstruct', 50),
350
+ row: null,
351
+ isLoading: true,
352
+ searchshow: true,
353
+ criteriaShow:false,
354
+ Gasproperties:[],
355
+ meterbrand: [],
356
+ operators:[],
357
+ other: [],
358
+ sumsmodel: {},
359
+ userType:[],
360
+ // instructtype:[],
361
+ // instructstate:[],
362
+ org:{
363
+ org:[this.$login.f.orgid],
364
+ dep:[],
365
+ user:[],
366
+ },
367
+ orgcondition:'',
368
+ show: false,
369
+ condition:'',
370
+ f_orgid:'',
371
+ f_start_date:'',
372
+ f_end_date:'',
373
+ getfield: {},
374
+ config: {
375
+ excelHeaders: {
376
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
377
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
378
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
379
+ 'note':'操作内容','f_info':'操作原因','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
380
+ 'f_orgname': '组织机构', 'f_instruct_title': '指令标题'
381
+ }
382
+ },
383
+ // instructtitle: [],
384
+ detailShow: false,
385
+ f_instruct_content: '',
386
+ modelval: [
387
+ '序号','客户编号','客户名称','客户地址','表号','气表品牌','指令类型','指令标题','执行状态','执行结果','指令生成人','指令生成时间',
388
+ '指令发送时间','上表时间','充值金额','操作内容','操作原因','操作人(记录)','操作时间(记录)','操作类型','记录状态','组织机构'
389
+ ]
390
+ }
391
+ },
392
+ ready () {
393
+ readyGen(this)
394
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
395
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
396
+ this.$refs.paged.$refs.grid.modelval = this.modelval
397
+ //this.$refs.paged.$refs.criteria.search()
398
+
399
+ // 添加回车键监听
400
+ document.addEventListener('keyup', this.handleKeyUp)
401
+ },
402
+ methods: {
403
+ // 添加处理回车键的方法
404
+ handleKeyUp(e) {
405
+ if (e.key === 'Enter') {
406
+ this.search()
407
+ }
408
+ },
409
+ instructDetail(row){
410
+ if (row.f_instruct_content != '{}') {
411
+ let data = JSON.parse(row.f_instruct_content)
412
+ console.log('看下具体的指令详情===>',data)
413
+ let str = ''
414
+ if (data.hasOwnProperty("Data")) {
415
+ console.log('看下具体的指令详情2===>',data.Data)
416
+ console.log('看下具体的指令详情2===>',typeof data.Data)
417
+ for (let key in data.Data) {
418
+ str = str + key + ':' + data.Data[key] + '</br>'
419
+ }
420
+ }
421
+ for (let key in data) {
422
+ if (key != 'Data'){
423
+ str = str + key + ':' + data[key] + '</br>'
424
+ }
425
+ }
426
+ this.f_instruct_content = str
427
+ this.detailShow = true
428
+ }else{
429
+ this.$showMessage('当前指令没有内容!!!', ['confirm'])
430
+ }
431
+ },
432
+ hidden(){
433
+ this.criteriaShow = !this.criteriaShow
434
+ },
435
+ getorg(condition,obj) {
436
+ this.orgcondition = condition.replace('f_orgid','f_orgid')
437
+ this.orgcondition = this.orgcondition.replace('f_depid','f_depid')
438
+ this.orgname = obj.orgnames[0]
439
+ },
440
+ initQueryParam () {
441
+ let arr = []
442
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
443
+ let temp = {}
444
+ if(item.value.f_meter_type==='物联网表'){
445
+ temp.label = item.label
446
+ temp.value = item.value.f_meter_brand
447
+ arr.push(temp )
448
+ }
449
+
450
+ })
451
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
452
+ },
453
+ //获取资源数据
454
+ getOperators(orgid) {
455
+ this.operators = []
456
+ this.$MagGetSaleParam.inputtors.forEach((res) => {
457
+ if(res.rolestr != null && res.rolestr!='' ){
458
+ if( res.f_orgid == orgid) {
459
+ let temp = {
460
+ label :res.name,
461
+ value:res.name,
462
+ }
463
+ this.operators.push(temp)
464
+ }
465
+ }
466
+ })
467
+ },
468
+ // getinstructtype(){
469
+ // this.instructtype=[]
470
+ // let load = new HttpResetClass()
471
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
472
+ // data: {
473
+ // items:'f_instruct_type',
474
+ // tablename:'t_instruct',
475
+ // condition:`f_instruct_type is not null and f_instruct_date>='${this.f_start_date}' and f_instruct_date<='${this.f_end_date}' group by f_instruct_type`
476
+ // }
477
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
478
+ // this.instructtype.push({label: '全部', value: ''})
479
+ // res.data.forEach((item) => {
480
+ // this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
481
+ // })
482
+ // })
483
+ //
484
+ // },
485
+ // getinstructtitle(){
486
+ // this.instructtype=[]
487
+ // let load = new HttpResetClass()
488
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
489
+ // data: {
490
+ // items:'f_instruct_title',
491
+ // tablename:'t_instruct',
492
+ // condition:'f_instruct_title is not null group by f_instruct_title'
493
+ // }
494
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
495
+ // this.instructtitle.push({label: '全部', value: ''})
496
+ // res.data.forEach((item) => {
497
+ // this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
498
+ // })
499
+ // })
500
+ //
501
+ // },
502
+ // getinstructstate(){
503
+ // this.instructstate=[]
504
+ // let load = new HttpResetClass()
505
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
506
+ // data: {
507
+ // items:'f_instruct_state',
508
+ // tablename:'t_instruct',
509
+ // condition:'f_instruct_state is not null group by f_instruct_state'
510
+ // }
511
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
512
+ // this.instructstate.push({label: '全部', value: ''})
513
+ // res.data.forEach((item) => {
514
+ // this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
515
+ // })
516
+ // })
517
+ //
518
+ // },
519
+ clearmsg () {
520
+ this.$refs.paged.$refs.criteria.model = {}
521
+ },
522
+ async reSend (row) {
523
+ let sql = `update t_instruct set f_instruct_state = '待发送' WHERE id = ${row.id}`
524
+ await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
525
+ this.$refs.paged.$refs.criteria.search()
526
+ },
527
+ clickshow () {
528
+ this.searchshow = !this.searchshow
529
+ },
530
+ dealmsg (val) {
531
+ val.model = this.model.model
532
+ this.$emit('deal-msg', val)
533
+ },
534
+ async search (args) {
535
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
536
+ args.condition = `${args.condition}`+this.orgcondition
537
+ console.log(args.condition+"args.condition")
538
+ this.condition = args.condition
539
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
540
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
541
+ this.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
542
+ }else{
543
+ this.model.params.f_start_date = '';
544
+ this.f_start_date = '';
545
+ }
546
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
547
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
548
+ this.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
549
+ }else{
550
+ this.model.params.f_end_date = "";
551
+ this.f_end_date = "";
552
+ }
553
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
554
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
555
+ this.f_orgid = `${this.$login.f.orgid}`;
556
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
557
+ }else{
558
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
559
+ this.f_orgid = `${this.f_orgid_new}`;
560
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
561
+ }
562
+ await this.model.search(args.condition, args.model)
563
+ await this.initQueryParam();
564
+ await this.$refs.paged.$refs.grid.InitializedData()
565
+ await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
566
+
567
+ },
568
+ getotherfooter() {
569
+ this.other = [];
570
+
571
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
572
+
573
+
574
+ let secondLine = [
575
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
576
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
577
+ ];
578
+
579
+ this.other.push(firstLine);
580
+ this.other.push(secondLine);
581
+
582
+ console.log('Header Data:', this.other);
583
+ },
584
+
585
+ },
586
+ watch:{
587
+ sumsmodel:{
588
+ handler: function(val) {
589
+ this.getotherfooter();
590
+ },
591
+ deep: true
592
+ },
593
+ },
594
+ computed: {
595
+ instructtype () {
596
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令类型')]
597
+ },
598
+ instructstate () {
599
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('执行状态')]
600
+ },
601
+ instructtitle () {
602
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令标题')]
603
+ },
604
+ userType () {
605
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
606
+ },
607
+ Gasproperties () {
608
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
609
+ },
610
+ mounted() {
611
+ this.getotherfooter();
612
+ }
613
+
614
+
615
+ },
616
+ beforeDestroy() {
617
+ // 组件销毁前移除事件监听
618
+ document.removeEventListener('keyup', this.handleKeyUp)
619
+ }
620
+ }
621
+ </script>
622
+ <style>
623
+ .form-input-group label {
624
+ text-align: right;
625
+ width: auto;
626
+ }
627
+ .datapanel {
628
+ color: #333;
629
+ background-color: white;
630
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
631
+ padding: 10px 30px 10px 30px;
632
+ border-radius:15px;
633
+ }
634
+ </style>
@@ -11,5 +11,7 @@ export default function () {
11
11
  // 业务查询
12
12
  Vue.component('business-manage', (resolve) => { require(['./BusinessManage'], resolve) })
13
13
  // 物联网表用气量统计表新
14
+ Vue.component('new-query-instruct', (resolve) => { require(['./NewQueryInstruct.vue'], resolve) })
15
+ // 物联网表用气量统计表新
14
16
  Vue.component('new-use-gas-statistics-single', (resolve) => { require(['./NewGasStatisticsSingle'], resolve) })
15
17
  }