manage-client 4.0.13 → 4.0.15

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.
@@ -0,0 +1,665 @@
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>
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"><nobr>执行结果</nobr></th>
201
+ <th style="text-align:center"><nobr>指令生成人</nobr></th>
202
+ <th style="text-align:center"><nobr>指令生成时间</nobr></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">
206
+ <nobr>充值金额</nobr>
207
+ </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
+ </tr>
236
+ </template>
237
+ <template partial='body'>
238
+ <tr>
239
+ <td style="text-align:center">
240
+ <nobr>{{$index+1}}</nobr>
241
+ </td>
242
+ <td style="text-align:center">
243
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
244
+ </td>
245
+ <td style="text-align:center">
246
+ <nobr>{{row.f_user_name}}</nobr>
247
+ </td>
248
+ <td style="text-align:center">
249
+ <nobr>{{row.f_address}}</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
+
258
+ <td style="text-align:center">
259
+ <nobr>{{row.f_instruct_type}}</nobr>
260
+ </td>
261
+ <td style="text-align:center">
262
+ <nobr>{{row.f_instruct_title}}</nobr>
263
+ </td>
264
+ <td style="text-align:center;" v-show="row.f_instruct_state === '待发送' && row.f_instruct_state !== '取消发送'">
265
+ <nobr>
266
+ {{row.f_instruct_state}}
267
+ <button v-if="$login.r.includes('取消指令')" @click="$parent.$parent.$parent.backSend(row)" class="button_search" style="margin-left:1rem" v-el:cba>取消指令</button>
268
+ </nobr>
269
+ </td>
270
+ <td style="text-align:center;" v-show="row.f_instruct_state !== '待发送' && row.f_instruct_state !== '取消发送'">
271
+ <nobr>
272
+ {{row.f_receive_state}}
273
+
274
+ <button v-if="$login.r.includes('指令重发')" @click="$parent.$parent.$parent.reSend(row)" class="button_search" style="margin-left:1rem" v-el:cba>指令重发</button>
275
+ </nobr>
276
+ </td>
277
+ <td style="text-align:center">
278
+ <nobr>{{row.f_inputtor}}</nobr>
279
+ </td>
280
+ <td style="text-align:center">
281
+ <nobr>{{row.f_instruct_date}}</nobr>
282
+ </td>
283
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
284
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
285
+ <td style="text-align:center">
286
+ <nobr>{{row.f_collection}}</nobr>
287
+ </td>
288
+ <td style="text-align:center">
289
+ <nobr>{{row.note}}</nobr>
290
+ </td>
291
+ <td style="text-align:center">
292
+ <nobr>{{row.f_info}}</nobr>
293
+ </td>
294
+ <td style="text-align:center">
295
+ <nobr>{{row.f_operator}}</nobr>
296
+ </td>
297
+ <td style="text-align:center">
298
+ <nobr>{{row.f_operate_date}}</nobr>
299
+ </td>
300
+ <td style="text-align:center">
301
+ <nobr>{{row.f_operate_type}}</nobr>
302
+ </td>
303
+ <td style="text-align:center">
304
+ <nobr>{{row.f_state}}</nobr>
305
+ </td>
306
+ <td style="text-align:center">
307
+ <nobr>{{row.f_orgname}}</nobr>
308
+ </td>
309
+ <td style="text-align:center;">
310
+ <nobr>{{row.f_instruct_content}}</nobr>
311
+ </td>
312
+ <td style="text-align:center">
313
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.instructDetail(row)">指令详情</button>
314
+ </td>
315
+ </tr>
316
+ </template>
317
+ </data-grid>
318
+ </criteria-paged>
319
+ </div>
320
+ <modal :show.sync="detailShow" v-if="detailShow" width="40%" style="width:auto;" v-ref:modal middle backdrop="false">
321
+ <article slot="modal-body">
322
+ <p class="text-center" style="font-size: 15px" v-html="f_instruct_content"></p>
323
+ </article>
324
+ <footer slot="modal-footer" class="modal-footer">
325
+ </footer>
326
+ </modal>
327
+
328
+ <modal :show.sync="handcental" backdrop="false" v-ref:modal1>
329
+ <header class="modal-header" slot="modal-header">
330
+ <h4 class="modal-title">取消发送</h4>
331
+ </header>
332
+ <article class="modal-body" slot="modal-body">
333
+ <div class="form-group">
334
+ <label class="font_normal_body" >取消发送原因</label>
335
+ <textarea class="form-control" placeholder="请填写取消发送原因" rows="3" v-model="cancelreason"></textarea>
336
+ </div>
337
+ </article>
338
+ <footer class="modal-footer" slot="modal-footer">
339
+ <button @click='close()' class="btn btn-default" type="button" v-show="handcental">取消</button>
340
+ <button @click='confirmcenta()' class="button_search" type="button" v-show="handcental">确认</button>
341
+ </footer>
342
+ </modal>
343
+ </div>
344
+ </template>
345
+ <script>
346
+ import {PagedList} from 'vue-client'
347
+ import co from 'co'
348
+ import * as Util from '../../Util'
349
+ import getLodop from '../../plugins/LodopFuncs'
350
+ import {HttpResetClass} from 'vue-client'
351
+ import plugins from '../../plugins/GetLoginInfoService'
352
+
353
+ let readyGen = async function (self) {
354
+ await self.$MagLoadParams.loadParam()
355
+ await self.$MagGetSaleParam.initinputtor()
356
+ self.initQueryParam()
357
+ self.getinstructtype()
358
+ self.getinstructtitle()
359
+ self.getinstructstate()
360
+ await self.$getConfig(self, 'NewQueryInstruct')
361
+ console.log('指令查看config', self.config)
362
+ self.getfield = self.config.excelHeaders
363
+ self.getOperators(self.$login.f.orgid)
364
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
365
+ // self.reflash()
366
+ }
367
+ export default {
368
+ title: '指令查看',
369
+ data () {
370
+ return {
371
+ handcental: false,
372
+ model: new PagedList('api/af-revenue/sql/manage_getNewQueryInstruct', 50),
373
+ row: null,
374
+ isLoading: true,
375
+ searchshow: true,
376
+ criteriaShow:false,
377
+ Gasproperties:[],
378
+ meterbrand: [],
379
+ operators:[],
380
+ other: [],
381
+ sumsmodel: {},
382
+ userType:[],
383
+ instructtype:[],
384
+ instructstate:[],
385
+ org:{
386
+ org:[this.$login.f.orgid],
387
+ dep:[],
388
+ user:[],
389
+ },
390
+ orgcondition:'',
391
+ show: false,
392
+ condition:'',
393
+ f_orgid:'',
394
+ f_start_date:'',
395
+ f_end_date:'',
396
+ getfield: {},
397
+ config: {
398
+ excelHeaders: {
399
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
400
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
401
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
402
+ 'note':'操作内容','f_info':'操作原因','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
403
+ 'f_orgname': '组织机构'
404
+ }
405
+ },
406
+ instructtitle: [],
407
+ detailShow: false,
408
+ f_instruct_content: '',
409
+ modelval: [
410
+ '序号','客户编号','客户名称','客户地址','表号','气表品牌','指令类型','指令标题','执行状态','执行结果','指令生成人','指令生成时间',
411
+ '指令发送时间','上表时间','充值金额','操作内容','操作原因','操作人(记录)','操作时间(记录)','操作类型','记录状态','组织机构'
412
+ ]
413
+ }
414
+ },
415
+ ready () {
416
+ readyGen(this)
417
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
418
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
419
+ this.$refs.paged.$refs.grid.modelval = this.modelval
420
+ //this.$refs.paged.$refs.criteria.search()
421
+ },
422
+ methods: {
423
+ close() {
424
+ this.handcental = false
425
+ },
426
+ confirmcenta () {
427
+ let send = {
428
+ id: this.cancelid, // 当前记录ID
429
+ f_cancel_inputtor_id: this.$login.f.id, // 撤销人id
430
+ f_cancel_inputtor: this.$login.f.name, // 撤销人姓名
431
+ f_instruct_state: '取消发送',
432
+ f_comments: this.cancelreason
433
+ }
434
+ let param = {
435
+ tablename: 't_instruct',
436
+ basedata: send
437
+ }
438
+ this.$resetpost('api/af-revenue/logic/iot_saveTable', param).then(() => {
439
+ // this.params.rows.splice(index, 1)
440
+ console.log('更新成功!')
441
+ })
442
+ this.handcental = false
443
+ this.$refs.paged.$refs.criteria.search()
444
+ },
445
+ backSend (megrow) {
446
+ if (megrow.f_inputtor != '系统必需') {
447
+ this.handcental = true
448
+ this.cancelid = megrow.id
449
+ } else {
450
+ this.$showAlert('该指令为系统必需状态,无法取消发送。', 'warning', 3000)
451
+ }
452
+ },
453
+ async reSend (row) {
454
+ let sql = `update t_instruct set f_instruct_state = '待发送' WHERE id = ${row.id}`
455
+ await this.$resetpost('api/af-revenue/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
456
+ this.$refs.paged.$refs.criteria.search()
457
+ },
458
+ instructDetail(row){
459
+ if (row.f_instruct_content != '{}') {
460
+ let data = JSON.parse(row.f_instruct_content)
461
+ console.log('看下具体的指令详情===>',data)
462
+ let str = ''
463
+ if (data.hasOwnProperty("Data")) {
464
+ console.log('看下具体的指令详情2===>',data.Data)
465
+ console.log('看下具体的指令详情2===>',typeof data.Data)
466
+ for (let key in data.Data) {
467
+ str = str + key + ':' + data.Data[key] + '</br>'
468
+ }
469
+ }
470
+ for (let key in data) {
471
+ if (key != 'Data'){
472
+ str = str + key + ':' + data[key] + '</br>'
473
+ }
474
+ }
475
+ this.f_instruct_content = str
476
+ this.detailShow = true
477
+ }else{
478
+ this.$showMessage('当前指令没有内容!!!', ['confirm'])
479
+ }
480
+ },
481
+ hidden(){
482
+ this.criteriaShow = !this.criteriaShow
483
+ },
484
+ getorg(condition,obj) {
485
+ this.orgcondition = condition.replace('f_orgid','f_orgid')
486
+ this.orgcondition = this.orgcondition.replace('f_depid','f_depid')
487
+ this.orgname = obj.orgnames[0]
488
+ },
489
+ initQueryParam () {
490
+ let arr = []
491
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
492
+ let temp = {}
493
+ if(item.value.f_meter_type==='物联网表'){
494
+ temp.label = item.label
495
+ temp.value = item.value.f_meter_brand
496
+ arr.push(temp )
497
+ }
498
+
499
+ })
500
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
501
+ },
502
+ //获取资源数据
503
+ getOperators(orgid) {
504
+ this.operators = []
505
+ this.$MagGetSaleParam.inputtors.forEach((res) => {
506
+ if(res.rolestr != null && res.rolestr!='' ){
507
+ if( res.f_orgid == orgid) {
508
+ let temp = {
509
+ label :res.name,
510
+ value:res.name,
511
+ }
512
+ this.operators.push(temp)
513
+ }
514
+ }
515
+ })
516
+ },
517
+ getinstructtype(){
518
+ this.instructtype=[]
519
+ let load = new HttpResetClass()
520
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
521
+ data: {
522
+ items:'f_instruct_type',
523
+ tablename:'t_instruct',
524
+ condition:'f_instruct_type is not null group by f_instruct_type'
525
+ }
526
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
527
+ this.instructtype.push({label: '全部', value: ''})
528
+ res.data.forEach((item) => {
529
+ this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
530
+ })
531
+ })
532
+
533
+ },
534
+ getinstructtitle(){
535
+ this.instructtype=[]
536
+ let load = new HttpResetClass()
537
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
538
+ data: {
539
+ items:'f_instruct_title',
540
+ tablename:'t_instruct',
541
+ condition:'f_instruct_title is not null group by f_instruct_title'
542
+ }
543
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
544
+ this.instructtitle.push({label: '全部', value: ''})
545
+ res.data.forEach((item) => {
546
+ this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
547
+ })
548
+ })
549
+
550
+ },
551
+ getinstructstate(){
552
+ this.instructstate=[]
553
+ let load = new HttpResetClass()
554
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
555
+ data: {
556
+ items:'f_instruct_state',
557
+ tablename:'t_instruct',
558
+ condition:'f_instruct_state is not null group by f_instruct_state'
559
+ }
560
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
561
+ this.instructstate.push({label: '全部', value: ''})
562
+ res.data.forEach((item) => {
563
+ this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
564
+ })
565
+ })
566
+
567
+ },
568
+ clearmsg () {
569
+ this.$refs.paged.$refs.criteria.model = {}
570
+ },
571
+ clickshow () {
572
+ this.searchshow = !this.searchshow
573
+ },
574
+ dealmsg (val) {
575
+ val.model = this.model.model
576
+ this.$emit('deal-msg', val)
577
+ },
578
+ async search (args) {
579
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
580
+ args.condition = `${args.condition}`+this.orgcondition
581
+ console.log(args.condition+"args.condition")
582
+ this.condition = args.condition
583
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
584
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
585
+ this.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
586
+ }else{
587
+ this.model.params.f_start_date = '';
588
+ this.f_start_date = '';
589
+ }
590
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
591
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
592
+ this.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
593
+ }else{
594
+ this.model.params.f_end_date = "";
595
+ this.f_end_date = "";
596
+ }
597
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
598
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
599
+ this.f_orgid = `${this.$login.f.orgid}`;
600
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
601
+ }else{
602
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
603
+ this.f_orgid = `${this.f_orgid_new}`;
604
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
605
+ }
606
+ await this.model.search(args.condition, args.model)
607
+ await this.initQueryParam();
608
+ await this.$refs.paged.$refs.grid.InitializedData()
609
+ await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
610
+
611
+ },
612
+ getotherfooter() {
613
+ this.other = [];
614
+
615
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
616
+
617
+
618
+ let secondLine = [
619
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
620
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
621
+ ];
622
+
623
+ this.other.push(firstLine);
624
+ this.other.push(secondLine);
625
+
626
+ console.log('Header Data:', this.other);
627
+ },
628
+
629
+ },
630
+ watch:{
631
+ sumsmodel:{
632
+ handler: function(val) {
633
+ this.getotherfooter();
634
+ },
635
+ deep: true
636
+ },
637
+ },
638
+ computed: {
639
+ userType () {
640
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
641
+ },
642
+ Gasproperties () {
643
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
644
+ },
645
+ mounted() {
646
+ this.getotherfooter();
647
+ }
648
+
649
+
650
+ }
651
+ }
652
+ </script>
653
+ <style>
654
+ .form-input-group label {
655
+ text-align: right;
656
+ width: auto;
657
+ }
658
+ .datapanel {
659
+ color: #333;
660
+ background-color: white;
661
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
662
+ padding: 10px 30px 10px 30px;
663
+ border-radius:15px;
664
+ }
665
+ </style>
@@ -0,0 +1,6 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+ export default function () {
4
+ // 指令查看
5
+ Vue.component('new-query-instruct', (resolve) => { require(['./NewQueryInstruct'], resolve) })
6
+ }
@@ -501,7 +501,7 @@
501
501
  <th rowspan="2">
502
502
  <nobr>序号</nobr>
503
503
  </th>
504
- <th colspan="6">
504
+ <th colspan="7">
505
505
  <nobr>用户信息</nobr>
506
506
  </th>
507
507
  <th colspan="5">