manage-client 3.3.251 → 3.3.253

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": "3.3.251",
3
+ "version": "3.3.253",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -70,11 +70,11 @@
70
70
  </div>
71
71
  <div class="col-sm-2 form-group">
72
72
  <label class="font_normal_body">气表品牌</label>
73
- <v-select :value.sync="model.f_meter_brand"
73
+ <v-select :value.sync="model.f_meter_brand" multiple="true"
74
74
  v-model="model.f_meter_brand"
75
75
  :options='$parent.$parent.meterbrands' placeholder='请选择'
76
- condition="f_meter_brand = '{}'"
77
- close-on-select></v-select>
76
+ condition="f_meter_brand in {}"
77
+ ></v-select>
78
78
  </div>
79
79
  <div class="col-sm-2 form-group">
80
80
  <label class="font_normal_body">上报区间</label>
@@ -131,13 +131,13 @@
131
131
  </div>
132
132
  <div class="col-sm-2 form-group">
133
133
  <label class="font_normal_body">异常类型</label>
134
- <v-select style="width:60%"
134
+ <v-select style="width:60%" multiple="true"
135
135
  v-model="model.f_error_type"
136
136
  placeholder='异常类型'
137
137
  :value.sync="model.f_error_type"
138
138
  :options='$parent.$parent.GetErrorType'
139
- condition="f_error_type = '{}'"
140
- close-on-select>
139
+ condition="f_error_type in {}"
140
+ >
141
141
  </v-select>
142
142
  </div>
143
143
  </div>
@@ -0,0 +1,471 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row" >
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid="$parent.$parent.org"
12
+ style="width:60%"
13
+ @res-select="$parent.$parent.getorg"
14
+ :is-mul=false
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
20
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
21
+ condition="m.f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
22
+ >
23
+ </div>
24
+ <!-- <div class="col-sm-2">-->
25
+ <!-- <label class="font_normal_body">组织机构</label>-->
26
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
27
+ <!-- style="width:60%"-->
28
+ <!-- @res-select="$parent.$parent.getRes"-->
29
+ <!-- restype='organization'>-->
30
+ <!-- </res-select>-->
31
+ <!-- </div>-->
32
+ <div class="col-sm-2">
33
+ <label class="font_normal_body">客户编号</label>
34
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
35
+ condition="ui.f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
36
+ >
37
+ </div>
38
+ <div class="col-sm-2">
39
+ <label class="font_normal_body">客户名称</label>
40
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
41
+ condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
42
+ </div>
43
+
44
+ <div class="span" style="float:right;margin-top:10px">
45
+ <button class="button_search button_spacing" @click="search()">查询</button>
46
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
47
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
48
+ :field="$parent.$parent.getfield"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="manage_getReportList" template-name='上报查询'
51
+ :choose-col="true"></export-excel>
52
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <div class="col-sm-2">
57
+ <label class="font_normal_body">客户地址</label>
58
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
59
+ condition="ua.f_address like '%{}%'" v-next-el='userid' v-el:username>
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户类型</label>
63
+ <v-select :value.sync="model.f_user_type"
64
+ @change="$parent.$parent.userTypeChange()"
65
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
66
+ condition="uf.f_user_type = '{}'"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">用气性质</label>
71
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
72
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
73
+ condition="uf.f_gasproperties = '{}'"
74
+ closfe-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">气价类型</label>
78
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
79
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
80
+ close-on-select>
81
+ </v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">气价名称</label>
85
+ <v-select :value.sync="model.f_price_name"
86
+ v-model="model.f_price_name"
87
+ :options="$parent.$parent.getPricenames"
88
+ condition="ts.f_price_name = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">气表品牌</label>
93
+ <v-select :value.sync="model.f_meter_brand"
94
+ v-model="model.f_meter_brand"
95
+ :options="$parent.$parent.meterbrands"
96
+ condition="br.f_meter_brand = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group" >
100
+ <label class="font_normal_body" >开始时间</label>
101
+ <datepicker style="width: 60%" placeholder="大于等于"
102
+ :value.sync="model.f_start_date"
103
+ v-model="model.f_start_date"
104
+ :format="'yyyy-MM-dd HH:mm:ss'"
105
+ condition="m.f_hand_date >= '{}'"
106
+ ></datepicker>
107
+ </div>
108
+ <div class="col-sm-2 form-group" >
109
+ <label class="font_normal_body">结束时间</label>
110
+ <datepicker style="width: 60%" placeholder="小于等于"
111
+ :value.sync="model.f_end_date"
112
+ v-model="model.f_end_date"
113
+ :format="'yyyy-MM-dd HH:mm:ss'"
114
+ condition="m.f_hand_date <= '{}'"
115
+ ></datepicker>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </criteria>
120
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
121
+ <template partial='head'>
122
+ <tr>
123
+ <th><nobr>客户编号</nobr></th>
124
+ <th><nobr>表号</nobr></th>
125
+ <th><nobr>客户姓名</nobr></th>
126
+ <th><nobr>客户电话</nobr></th>
127
+ <th><nobr>客户地址</nobr></th>
128
+
129
+ <th><nobr>上报日期</nobr></th>
130
+ <th><nobr>系统接收时间</nobr></th>
131
+ <th><nobr>表内剩余金额</nobr></th>
132
+ <th><nobr>表内单价</nobr></th>
133
+ <th><nobr>本次抄表底数</nobr></th>
134
+ <th><nobr>阀门状态</nobr></th>
135
+
136
+ <th><nobr>温度</nobr></th>
137
+ <th><nobr>压力</nobr></th>
138
+
139
+ <th><nobr>上报类型</nobr></th>
140
+ <th><nobr>表内累计充值金额</nobr></th>
141
+ <th><nobr>信号强度</nobr></th>
142
+ <th><nobr>信噪比</nobr></th>
143
+ <th><nobr>电压</nobr></th>
144
+
145
+ <th><nobr>表状态</nobr></th>
146
+ <th><nobr>金额状态</nobr></th>
147
+ <th>
148
+ <nobr>抵扣单价</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>本次抵扣金额</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>剩余抵扣金额</nobr>
155
+ </th>
156
+ <!--<th><nobr>每小时上报量</nobr></th>-->
157
+ </tr>
158
+ </template>
159
+ <template partial='body' partial='list'>
160
+ <tr >
161
+ <td style="text-align: left;"><nobr> <span> {{row.f_userinfo_code}}</span></nobr></td>
162
+ <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
163
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
164
+ <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
165
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
166
+
167
+ <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
168
+ <th style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></th>
169
+ <th style="text-align:center"><nobr>{{row.f_jval}}</nobr></th>
170
+ <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
171
+ <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
172
+ <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
173
+ <th style="text-align:center"><nobr>{{row.flowmetertemperature}}</nobr></th>
174
+ <th style="text-align:center"><nobr>{{row.flowmeterpressure}}</nobr></th>
175
+
176
+
177
+ <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
178
+ <th style="text-align:center"><nobr>{{row.f_meterdebitamt}}</nobr></th>
179
+ <th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
180
+ <th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
181
+ <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
182
+
183
+ <th style="text-align:center"><nobr>{{row.f_table_msg}}</nobr></th>
184
+ <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
185
+ <td style="text-align: center;">
186
+ <nobr>{{ row.f_gas_type }}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{ row.f_current_deduct_amount }}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{ row.f_remaining_deduct_amount }}</nobr>
193
+ </td>
194
+
195
+ <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
196
+ <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
197
+ <!--<th style="text-align:center">-->
198
+ <!--<button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
199
+ <!--</th>-->
200
+ </tr>
201
+ </template>
202
+ <template partial='foot'></template>
203
+ </data-grid>
204
+ </criteria-paged>
205
+ <table class="table-hover">
206
+ <!-- <tr style="position: relative" class="table-bordered">-->
207
+ <!-- <td-->
208
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
209
+ <!-- 汇总信息-->
210
+ <!-- </td>-->
211
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
212
+ <!-- 表内剩余金额合计:&emsp;{{sumsmodel.f_meterbalanceamt}}-->
213
+ <!-- </td>-->
214
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
215
+ <!-- 抄表底数合计:&emsp;{{sumsmodel.f_tablebase}}-->
216
+ <!-- </td>-->
217
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
218
+ <!-- 表累计充值金额合计:&emsp;{{sumsmodel.f_meterdebitamt}}-->
219
+ <!-- </td>-->
220
+ <!-- </tr>-->
221
+ </table>
222
+ <modal :show.sync="detail24" >
223
+ <header slot="modal-header" class="modal-header">
224
+ <h4 class="modal-title">24小时上报数据明细</h4>
225
+ </header>
226
+ <article slot="modal-body" class="modal-body">
227
+ <table v-for="detail of detaillist">
228
+ <tr><td>{{detail.frozenDate}}</td><td>&nbsp;&nbsp;--&nbsp;&nbsp;</td><td>{{detail.frozenValue}}</td></tr>
229
+ </table>
230
+ </article>
231
+ <footer slot="modal-footer" class="modal-footer">
232
+ <div class="form-group">
233
+ <button class="btn btn-success" @click="close()">确认</button>
234
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
235
+ </div>
236
+ </footer>
237
+ </modal>
238
+ </div>
239
+ <div class="flex" v-if="show">
240
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
241
+ </div>
242
+ </div>
243
+
244
+ </div>
245
+ </template>
246
+
247
+ <script>
248
+ import {HttpResetClass, PagedList} from 'vue-client'
249
+ import * as Util from '../../Util'
250
+ import exportConfig from './config/exportConfig'
251
+ import plugins from '../../plugins/GetLoginInfoService'
252
+
253
+ let readySomething = async function (self) {
254
+ await self.$MagLoadParams.loadParam()
255
+ self.initParams()
256
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
257
+ }
258
+ export default {
259
+ title: '上报查询',
260
+ data () {
261
+ return {
262
+ show:false,
263
+ detail24: false,
264
+ org:[this.$login.f.orgid],
265
+ orgcondition: ' and m.f_orgid = ' + this.$login.f.orgid,
266
+ //f_filialeid: this.$login.f.f_orgid,
267
+ detaillist: [],
268
+ meterbrands: [],
269
+ prices: [],
270
+ gasproperties:[],
271
+ condition:'',
272
+ rowdata:{},
273
+ other: [],
274
+ sumsmodel: {},
275
+ orgid:[this.$login.f.orgid],
276
+ criteriaShow:false,
277
+ orgCondtionStr: '',
278
+ model: new PagedList('api/af-revenue/sql/manage_getReportList', 50,{startDate: 'this.model.f_start_date', endDate: 'this.model.f_end_date'},{f_meterbalanceamt: 0,f_tablebase: 0,f_meterdebitamt: 0})
279
+ }
280
+ },
281
+ ready () {
282
+ // this.$refs.paged.$refs.criteria.search()
283
+ readySomething(this).then(() => {
284
+ this.$emit('ready')
285
+ }).catch((error) => {
286
+ this.$emit('error', error)
287
+ })
288
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
289
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
290
+ },
291
+ methods: {
292
+ getotherfooter() {
293
+ this.other = [];
294
+
295
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
296
+
297
+
298
+ let secondLine = [
299
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
300
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
301
+ ];
302
+
303
+ this.other.push(firstLine);
304
+ this.other.push(secondLine);
305
+
306
+ console.log('Header Data:', this.other);
307
+ },
308
+ initParams() {
309
+ // 初始化气表品牌
310
+ let brandArr = []
311
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
312
+ let temp = {}
313
+ if(item.value.f_meter_type==='物联网表'){
314
+ temp.label = item.label
315
+ temp.value = item.value.f_meter_brand
316
+ brandArr.push(temp )
317
+ }
318
+
319
+ })
320
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
321
+ //初始化气表价格
322
+ this.prices = this.$MagGetSaleParam.getPrices();
323
+ },
324
+ async updateParams() {
325
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
326
+ this.initParams()
327
+ },
328
+ getorg(obj) {
329
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
330
+ this.orgcondition = " and m.f_orgid in " + plugins.convertToIn(obj)
331
+ }else{
332
+ this.orgcondition = " and m.f_orgid = " + this.$login.f.orgid
333
+ }
334
+
335
+ },
336
+ userTypeChange () {
337
+ this.gasproperties=[]
338
+ if(this.$refs.paged.$refs.criteria.model !==null) {
339
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
340
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
341
+ }
342
+ else{
343
+ this.gasproperties =[{label: '全部', value: ''}]
344
+ }
345
+ },
346
+ hidden(){
347
+ this.criteriaShow = !this.criteriaShow
348
+ },
349
+ cancel() {
350
+ this.show = false
351
+ },
352
+ clearmsg () {
353
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
354
+ this.$refs.paged.$refs.criteria.model[key] = []
355
+ })
356
+ },
357
+ getRes (obj) {
358
+ this.orgCondtionStr = condition
359
+ this.orgname = obj.orgnames[0]
360
+ this.depname = obj.depnames[0]
361
+ },
362
+ showmsg(obj){
363
+ this.rowdata=obj
364
+ this.show=true
365
+ },
366
+
367
+ search (args) {
368
+ args.condition = `${args.condition}`+this.orgcondition
369
+ console.log(args.condition+"args.condition")
370
+ this.condition = args.condition
371
+ this.model.search(args.condition, args.model)
372
+ console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
373
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
374
+ // args.condition = `${args.condition}`
375
+ // if (this.orgcondition)
376
+ // args.condition = `${args.condition}` + this.orgcondition
377
+ // else
378
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
379
+ // this.model.search(args.condition, args.model)
380
+ }
381
+ },
382
+ watch: {
383
+ 'orgCondtionStr'(val) {
384
+ let res = val.match(/'(.*?)'/)
385
+ console.log('正则提取:',res && res[1])
386
+ if (res) {
387
+ this.f_filialeid = res[1]
388
+ // this.updateParams()
389
+ }
390
+ },
391
+ sumsmodel:{
392
+ handler: function(val) {
393
+ this.getotherfooter();
394
+ },
395
+ deep: true
396
+ },
397
+ },
398
+ computed: {
399
+ getPricenames() {
400
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
401
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
402
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
403
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
404
+ console.log("查看f_orgid:",this.$login.f.f_orgid)
405
+ if(this.$refs.paged.$refs.criteria.model !==null) {
406
+ let rs = []
407
+ let priceArr = []
408
+ if ( pricetype.length >0) {
409
+ let params = {
410
+ f_price_type: pricetype[0],
411
+ filter: this.org[0],
412
+ prices: this.prices
413
+ }
414
+ console.log("打印一下params:",params)
415
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
416
+ console.log("====================================》")
417
+ let temp = {}
418
+ temp.label = item.label
419
+ temp.value = item.value.f_price_name
420
+ priceArr.push(temp)
421
+ console.log("打印一下temp:",temp)
422
+ })
423
+
424
+ rs = [{label: '全部', value: ''}, ...priceArr]
425
+ }
426
+ if (rs.length === 0) {
427
+ console.log('rs读出来是空')
428
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
429
+ }
430
+ return rs
431
+ }
432
+ },
433
+ getfield () {
434
+ return exportConfig.ReportListConfig
435
+ },
436
+ usertypes() {
437
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
438
+ },
439
+ pricetypes() {
440
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
441
+ },
442
+ getCondition () {
443
+ var con = ""
444
+ if (this.orgCondtionStr) {
445
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
446
+ }
447
+ else {
448
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
449
+ }
450
+ return {
451
+ startDate: this.$refs.paged.$refs.criteria.model.f_start_date,
452
+ endDate: this.$refs.paged.$refs.criteria.model.f_end_date,
453
+ condition: con
454
+ }
455
+ }
456
+ }
457
+ }
458
+ </script>
459
+
460
+ <style>
461
+ .mystyle{
462
+ margin-left:80px;
463
+ }
464
+ .datapanel {
465
+ color: #333;
466
+ background-color: white;
467
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
468
+ padding: 10px 10px 10px 10px;
469
+ border-radius:15px;
470
+ }
471
+ </style>
@@ -18,4 +18,6 @@ export default function () {
18
18
  Vue.component('lost-contact-analysis-list', (resolve) => { require(['./LostContactAnalysisList'], resolve) })
19
19
  // 物联网表用气量统计表新
20
20
  Vue.component('new-use-gas-statistics', (resolve) => { require(['./NewGasStatistics'], resolve) })
21
+ // 上报查询
22
+ Vue.component('report-list', (resolve) => { require(['./reportList'], resolve) })
21
23
  }
@@ -0,0 +1,606 @@
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">
265
+ <nobr>{{row.f_instruct_state}}</nobr>
266
+ </td>
267
+ <td style="text-align:center">
268
+ <nobr>{{row.f_receive_state}}</nobr>
269
+ </td>
270
+ <td style="text-align:center">
271
+ <nobr>{{row.f_inputtor}}</nobr>
272
+ </td>
273
+ <td style="text-align:center">
274
+ <nobr>{{row.f_instruct_date}}</nobr>
275
+ </td>
276
+ <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
277
+ <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
278
+ <td style="text-align:center">
279
+ <nobr>{{row.f_collection}}</nobr>
280
+ </td>
281
+ <!-- <td style="text-align:center">-->
282
+ <!-- <nobr>{{row.note}}</nobr>-->
283
+ <!-- </td> -->
284
+ <td style="text-align:center">
285
+ <nobr>{{row.f_info}}</nobr>
286
+ </td>
287
+ <!-- <td style="text-align:center">-->
288
+ <!-- <nobr>{{row.f_operator}}</nobr>-->
289
+ <!-- </td>-->
290
+ <!-- <td style="text-align:center">-->
291
+ <!-- <nobr>{{row.f_operate_date}}</nobr>-->
292
+ <!-- </td>-->
293
+ <td style="text-align:center">
294
+ <nobr>{{row.f_operate_type}}</nobr>
295
+ </td>
296
+ <td style="text-align:center">
297
+ <nobr>{{row.f_state}}</nobr>
298
+ </td>
299
+ <td style="text-align:center">
300
+ <nobr>{{row.f_orgname}}</nobr>
301
+ </td>
302
+ <td style="text-align:center;">
303
+ <nobr>{{row.f_instruct_content}}</nobr>
304
+ </td>
305
+ <td style="text-align:center">
306
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.instructDetail(row)">指令详情</button>
307
+ </td>
308
+ </tr>
309
+ </template>
310
+ </data-grid>
311
+ </criteria-paged>
312
+ </div>
313
+ <modal :show.sync="detailShow" v-if="detailShow" width="40%" style="width:auto;" v-ref:modal middle backdrop="false">
314
+ <article slot="modal-body">
315
+ <p class="text-center" style="font-size: 15px" v-html="f_instruct_content"></p>
316
+ </article>
317
+ <footer slot="modal-footer" class="modal-footer">
318
+ </footer>
319
+ </modal>
320
+ </div>
321
+ </template>
322
+ <script>
323
+ import {PagedList} from 'vue-client'
324
+ import co from 'co'
325
+ import * as Util from '../../../Util'
326
+ import getLodop from '../../../plugins/LodopFuncs'
327
+ import {HttpResetClass} from 'vue-client'
328
+ import plugins from '../../../plugins/GetLoginInfoService'
329
+
330
+ let readyGen = async function (self) {
331
+ await self.$MagLoadParams.loadParam()
332
+ await self.$MagGetSaleParam.initinputtor()
333
+ self.initQueryParam()
334
+ self.getinstructtype()
335
+ self.getinstructtitle()
336
+ self.getinstructstate()
337
+ await self.$getConfig(self, 'NewQueryInstruct')
338
+ console.log('指令查看config', self.config)
339
+ self.getfield = self.config.excelHeaders
340
+ self.getOperators(self.$login.f.orgid)
341
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
342
+ // self.reflash()
343
+ }
344
+ export default {
345
+ title: '指令查看',
346
+ data () {
347
+ return {
348
+ model: new PagedList('api/af-revenue/sql/manage_getNewQueryInstruct', 50),
349
+ row: null,
350
+ isLoading: true,
351
+ searchshow: true,
352
+ criteriaShow:false,
353
+ Gasproperties:[],
354
+ meterbrand: [],
355
+ operators:[],
356
+ other: [],
357
+ sumsmodel: {},
358
+ userType:[],
359
+ instructtype:[],
360
+ instructstate:[],
361
+ org:{
362
+ org:[this.$login.f.orgid],
363
+ dep:[],
364
+ user:[],
365
+ },
366
+ orgcondition:'',
367
+ show: false,
368
+ condition:'',
369
+ f_orgid:'',
370
+ f_start_date:'',
371
+ f_end_date:'',
372
+ getfield: {},
373
+ config: {
374
+ excelHeaders: {
375
+ 'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
376
+ 'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
377
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
378
+ 'f_info':'操作原因','f_operate_type':'操作类型','f_state':'操作状态',
379
+ 'f_orgname': '组织机构'
380
+ }
381
+ },
382
+ instructtitle: [],
383
+ detailShow: false,
384
+ f_instruct_content: '',
385
+ modelval: [
386
+ '序号','客户编号','客户名称','客户地址','表号','气表品牌','指令类型','指令标题','执行状态','执行结果','指令生成人','指令生成时间',
387
+ '指令发送时间','上表时间','充值金额','操作原因','操作类型','记录状态','组织机构'
388
+ ]
389
+ }
390
+ },
391
+ ready () {
392
+ readyGen(this)
393
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
394
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
395
+ this.$refs.paged.$refs.grid.modelval = this.modelval
396
+ //this.$refs.paged.$refs.criteria.search()
397
+ },
398
+ methods: {
399
+ instructDetail(row){
400
+ if (row.f_instruct_content != '{}') {
401
+ let data = JSON.parse(row.f_instruct_content)
402
+ console.log('看下具体的指令详情===>',data)
403
+ let str = ''
404
+ if (data.hasOwnProperty("Data")) {
405
+ console.log('看下具体的指令详情2===>',data.Data)
406
+ console.log('看下具体的指令详情2===>',typeof data.Data)
407
+ for (let key in data.Data) {
408
+ str = str + key + ':' + data.Data[key] + '</br>'
409
+ }
410
+ }
411
+ for (let key in data) {
412
+ if (key != 'Data'){
413
+ str = str + key + ':' + data[key] + '</br>'
414
+ }
415
+ }
416
+ this.f_instruct_content = str
417
+ this.detailShow = true
418
+ }else{
419
+ this.$showMessage('当前指令没有内容!!!', ['confirm'])
420
+ }
421
+ },
422
+ hidden(){
423
+ this.criteriaShow = !this.criteriaShow
424
+ },
425
+ getorg(condition,obj) {
426
+ this.orgcondition = condition.replace('f_orgid','f_orgid')
427
+ this.orgcondition = this.orgcondition.replace('f_depid','f_depid')
428
+ this.orgname = obj.orgnames[0]
429
+ },
430
+ initQueryParam () {
431
+ let arr = []
432
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
433
+ let temp = {}
434
+ if(item.value.f_meter_type==='物联网表'){
435
+ temp.label = item.label
436
+ temp.value = item.value.f_meter_brand
437
+ arr.push(temp )
438
+ }
439
+
440
+ })
441
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
442
+ },
443
+ //获取资源数据
444
+ getOperators(orgid) {
445
+ this.operators = []
446
+ this.$MagGetSaleParam.inputtors.forEach((res) => {
447
+ if(res.rolestr != null && res.rolestr!='' ){
448
+ if( res.f_orgid == orgid) {
449
+ let temp = {
450
+ label :res.name,
451
+ value:res.name,
452
+ }
453
+ this.operators.push(temp)
454
+ }
455
+ }
456
+ })
457
+ },
458
+ getinstructtype(){
459
+ this.instructtype=[]
460
+ let load = new HttpResetClass()
461
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
462
+ data: {
463
+ items:'f_instruct_type',
464
+ tablename:'t_instruct',
465
+ condition:'f_instruct_type is not null group by f_instruct_type'
466
+ }
467
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
468
+ this.instructtype.push({label: '全部', value: ''})
469
+ res.data.forEach((item) => {
470
+ this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
471
+ })
472
+ })
473
+
474
+ },
475
+ getinstructtitle(){
476
+ this.instructtype=[]
477
+ let load = new HttpResetClass()
478
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
479
+ data: {
480
+ items:'f_instruct_title',
481
+ tablename:'t_instruct',
482
+ condition:'f_instruct_title is not null group by f_instruct_title'
483
+ }
484
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
485
+ this.instructtitle.push({label: '全部', value: ''})
486
+ res.data.forEach((item) => {
487
+ this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
488
+ })
489
+ })
490
+
491
+ },
492
+ getinstructstate(){
493
+ this.instructstate=[]
494
+ let load = new HttpResetClass()
495
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
496
+ data: {
497
+ items:'f_instruct_state',
498
+ tablename:'t_instruct',
499
+ condition:'f_instruct_state is not null group by f_instruct_state'
500
+ }
501
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
502
+ this.instructstate.push({label: '全部', value: ''})
503
+ res.data.forEach((item) => {
504
+ this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
505
+ })
506
+ })
507
+
508
+ },
509
+ clearmsg () {
510
+ this.$refs.paged.$refs.criteria.model = {}
511
+ },
512
+ clickshow () {
513
+ this.searchshow = !this.searchshow
514
+ },
515
+ dealmsg (val) {
516
+ val.model = this.model.model
517
+ this.$emit('deal-msg', val)
518
+ },
519
+ async search (args) {
520
+ // this.obj.resids = this.obj.resids.replace(/\./g, ''),
521
+ args.condition = `${args.condition}`+this.orgcondition
522
+ console.log(args.condition+"args.condition")
523
+ this.condition = args.condition
524
+ if( this.$refs.paged.$refs.criteria.model.f_start_date!=null && this.$refs.paged.$refs.criteria.model.f_start_date!=''){
525
+ this.model.params.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
526
+ this.f_start_date = `'${this.$refs.paged.$refs.criteria.model.f_start_date}'`;
527
+ }else{
528
+ this.model.params.f_start_date = '';
529
+ this.f_start_date = '';
530
+ }
531
+ if( this.$refs.paged.$refs.criteria.model.f_end_date!=null && this.$refs.paged.$refs.criteria.model.f_end_date!=''){
532
+ this.model.params.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
533
+ this.f_end_date = `'${this.$refs.paged.$refs.criteria.model.f_end_date}'`;
534
+ }else{
535
+ this.model.params.f_end_date = "";
536
+ this.f_end_date = "";
537
+ }
538
+ if(this.f_orgid_new == '' || this.f_orgid_new == null){
539
+ this.model.params.f_orgid = `'${this.$login.f.orgid}'`;
540
+ this.f_orgid = `${this.$login.f.orgid}`;
541
+ //await this.$LoadParams.loadParam(this.$login.f.orgid)
542
+ }else{
543
+ this.model.params.f_orgid = `'${this.f_orgid_new}'`;
544
+ this.f_orgid = `${this.f_orgid_new}`;
545
+ //await this.$LoadParams.loadParam(this.f_orgid_new)
546
+ }
547
+ await this.model.search(args.condition, args.model)
548
+ await this.initQueryParam();
549
+ await this.$refs.paged.$refs.grid.InitializedData()
550
+ await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
551
+
552
+ },
553
+ getotherfooter() {
554
+ this.other = [];
555
+
556
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
557
+
558
+
559
+ let secondLine = [
560
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
561
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
562
+ ];
563
+
564
+ this.other.push(firstLine);
565
+ this.other.push(secondLine);
566
+
567
+ console.log('Header Data:', this.other);
568
+ },
569
+
570
+ },
571
+ watch:{
572
+ sumsmodel:{
573
+ handler: function(val) {
574
+ this.getotherfooter();
575
+ },
576
+ deep: true
577
+ },
578
+ },
579
+ computed: {
580
+ userType () {
581
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
582
+ },
583
+ Gasproperties () {
584
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
585
+ },
586
+ mounted() {
587
+ this.getotherfooter();
588
+ }
589
+
590
+
591
+ }
592
+ }
593
+ </script>
594
+ <style>
595
+ .form-input-group label {
596
+ text-align: right;
597
+ width: auto;
598
+ }
599
+ .datapanel {
600
+ color: #333;
601
+ background-color: white;
602
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
603
+ padding: 10px 30px 10px 30px;
604
+ border-radius:15px;
605
+ }
606
+ </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
+ }