manage-client 3.3.210 → 3.3.211

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