manage-client 3.2.173 → 3.2.175

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.
@@ -1,332 +1,332 @@
1
- <template>
2
- <div class="flex-row binary" id="unit">
3
- <div class="basic-main" @keyup.enter="search1">
4
- <div class="flex">
5
- <div class="flex" style="flex:1;" v-show="!echarts">
6
- <criteria-paged :model="model" :pager='true' v-ref:paged>
7
- <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
- <div class="row" width="100%">
10
-
11
- <div class="col-sm-2 form-group">
12
- <label class="font_normal_body">客户编号</label>
13
- <input style="width:60%" class="input_search" condition="info.f_userinfo_code = '{}'"
14
- placeholder='客户编号' type="text"
15
- v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
16
- >
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label class="font_normal_body">客户名称</label>
20
- <input style="width:60%" class="input_search" condition="info.f_user_name like '%{}%'"
21
- placeholder='客户名称' type="text"
22
- v-el:username v-model="model.f_username" v-next-el='userid'>
23
- </div>
24
- <div class="col-sm-2 form-group">
25
- <label class="font_normal_body">客户地址</label>
26
- <input style="width:60%" class="input_search" condition="a.f_address like '%{}%'" placeholder='地址'
27
- type="text"
28
- v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
29
- >
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label class="font_normal_body">表&emsp;&emsp;号</label>
33
- <input style="width:60%" class="input_search" condition="uf.f_meternumber = '{}'"
34
- placeholder='表钢号' type="text"
35
- v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
36
- >
37
- </div>
38
- <div class="span" style="float:right;">
39
- <button @click="search()" class="button_search button_spacing">查询</button>
40
- <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
41
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
42
- :field="$parent.$parent.getfield"
43
- sqlurl="rs/logic/exportfile" sql-name="webmeter_PriceInstructList"
44
- template-name='调价分析'
45
- :choose-col="true"></export-excel>
46
- <!-- <button @click="$parent.$parent.showEcharts()" class="button_export button_spacing">显示图表</button>-->
47
- <div style="float: right" class="button_spacing"
48
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
- @click="$parent.$parent.hidden()"></div>
50
- </div>
51
- </div>
52
- <div class="row" v-show="$parent.$parent.criteriaShow">
53
-
54
- <div class="col-sm-2 form-group">
55
- <!-- <label class="font_normal_body">组织机构</label>-->
56
- <!-- <res-select :initresid="$parent.$parent.orgid"-->
57
- <!-- @res-select="$parent.$parent.getRes"-->
58
- <!-- restype='organization'style="width: 60%">-->
59
- <!-- </res-select>-->
60
- <label class="font_normal_body">公&emsp;&emsp;司</label>
61
- <right-tree @re-res="$parent.$parent.getRes"
62
- :initresid='$parent.$parent.orgid'></right-tree>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">用户类型</label>
66
- <v-select :options='$parent.$parent.usertypes'
67
- :value.sync="model.f_user_type"
68
- close-on-select
69
- style="width:60%"
70
- condition="uf.f_user_type = '{}'"
71
- @change="$parent.$parent.userTypeChange()"
72
- id="f_user_type"
73
- placeholder='用户类型'
74
- v-model="model.f_user_type">
75
- </v-select>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">用气性质</label>
79
- <v-select :options='$parent.$parent.gasproperties'
80
- :value.sync="model.f_gasproperties"
81
- close-on-select
82
- style="width:60%"
83
- condition="uf.f_gasproperties = '{}'"
84
- id="f_gasproperties"
85
- placeholder='用气性质'
86
- v-model="model.f_gasproperties">
87
- </v-select>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body" style="word-break:keep-all;">调价时间</label>
91
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
92
- :value.sync="model.startDate"
93
- style="width:60%"
94
- placeholder="起始时间"
95
- v-model="model.startDate"
96
- ></datepicker>
97
- </div>
98
- <div class="col-sm-2 form-group">
99
- <label class="font_normal_body" style="word-break:keep-all;">&emsp;&ensp;至&emsp;</label>
100
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
101
- :value.sync="model.endDate"
102
- placeholder="结束时间"
103
- style="width:60%"
104
- v-model="model.endDate"
105
- ></datepicker>
106
- </div>
107
-
108
- </div>
109
- </div>
110
- </criteria>
111
- <data-grid :model="model" id="reportgas" partial='list' class="list_area table_sy" v-ref:grid>
112
- <template partial='head'>
113
- <tr>
114
- <th style="text-align:center">序号</th>
115
- <th style="text-align:center">
116
- <nobr>调价日期</nobr>
117
- </th>
118
- <th style="text-align:center" title="调价户数:调价记录数量">
119
- <nobr>调价户数</nobr>
120
- </th>
121
- <th style="text-align:center" title="指令总数:调价记录生成的指令数量">
122
- <nobr>指令总数</nobr>
123
- </th>
124
- <th style="text-align:center" title="指令总数:未发送指令户数">
125
- <nobr>未生成指令户数</nobr>
126
- </th>
127
- <th style="text-align:center" title="已发送待执行数目">
128
- <nobr>已发送待执行数目</nobr>
129
- </th>
130
- <th style="text-align:center" title="执行失败数目">
131
- <nobr>执行失败数目</nobr>
132
- </th>
133
- <th style="text-align:center" title="成功指令数">
134
- <nobr>成功指令数</nobr>
135
- </th>
136
- <th style="text-align:center" title="指令生成率:指令总数/调价户数">
137
- <nobr>指令生成率</nobr>
138
- </th>
139
- <th style="text-align:center" title="指令待执行率:待执行数目/指令总数">
140
- <nobr>指令待执行率</nobr>
141
- </th>
142
- <th style="text-align:center" title="指令生成率:指令成功数/指令总数">
143
- <nobr>指令成功率</nobr>
144
- </th>
145
- </tr>
146
- </template>
147
- <template partial='body' partial='list' v-ref:grid>
148
- <tr>
149
- <td style="text-align:center">{{ $index + 1 }}</td>
150
- <td style="text-align:center;width: 170px;">{{ row.f_operate_date }}</td>
151
- <td style="text-align:center">{{ row.pricesum }}</td>
152
- <td style="text-align:center">{{ row.instructsum }}</td>
153
- <td style="text-align:center">
154
- <span @click="$parent.$parent.$parent.openDetail(row,' and ins.id is null ',row.noinstructsum)"><a
155
- style="cursor:pointer;">{{ row.noinstructsum }}</a></span>
156
- </td>
157
- <td style="text-align:center">
158
- <span
159
- @click="$parent.$parent.$parent.openDetail(row,` and ins.f_instruct_state ='待发送' `,row.awaitsum)"><a
160
- style="cursor:pointer;">{{ row.awaitsum }}</a></span>
161
- </td>
162
- <td style="text-align:center">
163
- <span
164
- @click="$parent.$parent.$parent.openDetail(row,` and ins.f_instruct_state ='执行失败'` ,row.failsum)"><a
165
- style="cursor:pointer;">{{ row.failsum }}</a></span>
166
- </td>
167
- <td style="text-align:center">{{ row.succsum }}</td>
168
- <td style="text-align:center">{{ row.production_rate }}</td>
169
- <td style="text-align:center">{{ row.await_rate }}</td>
170
- <td style="text-align:center">{{ row.succ_rate }}</td>
171
- </tr>
172
- </template>
173
- <template partial='foot'></template>
174
- </data-grid>
175
- </criteria-paged>
176
- </div>
177
- <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
178
- <!-- <button @click="showEcharts()" class="button_search button_spacing">隐藏图表</button>-->
179
- <!-- </div>-->
180
- <!-- &lt;!&ndash; 图显示模板&ndash;&gt;-->
181
- <!-- <div class="span " style="width: 100%;" v-show="echarts">-->
182
- <!-- <user-instruct-echarts-list :condition="condition" :echarts="echarts"-->
183
- <!-- :enddate="endDate" :startdate="startDate"></user-instruct-echarts-list>-->
184
- <!-- </div>-->
185
- </div>
186
- </div>
187
- </div>
188
- </template>
189
- <script>
190
- import {PagedList} from 'vue-client'
191
- import * as Util from '../../../Util'
192
- import plugins from '../../../plugins/GetLoginInfoService'
193
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
194
-
195
- export default {
196
- title: '调价分析',
197
- data() {
198
- return {
199
- model: new PagedList('rs/sql/webmeter_PriceInstructList', 100, {
200
- startDate: 'this.model.startDate',
201
- endDate: 'this.model.endDate'
202
- }),
203
- condition: '1=1',
204
- startDate: '',
205
- gasproperties: [{label: '全部', value: ''}],
206
- endDate: '',
207
- getfield: {
208
- "f_operate_date": "调价日期",
209
- "pricesum": "调价户数",
210
- "instructsum": "指令总数",
211
- "noinstructsum": "未生成指令数",
212
- "awaitsum": "已发送待执行数目",
213
- "failsum": "执行失败数目",
214
- "succsum": "成功指令数",
215
- "production_rate": "指令生成率",
216
- "await_rate": "指令待执行率",
217
- "succ_rate": "指令成功率",
218
- },
219
- criteriaShow: false,
220
- echarts: false,
221
- searchshow: false,
222
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
223
- orgid: [this.$login.f.orgid]
224
- }
225
- },
226
- ready() {
227
- this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(), -6).substring(0, 10) + ' 00:00:00'
228
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
229
- this.getdata()
230
- },
231
- methods: {
232
- userTypeChange() {
233
- this.gasproperties = [{label: '全部', value: ''}]
234
- if (this.$refs.paged.$refs.cri.model !== null) {
235
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
236
-
237
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
238
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
239
- // this.gasproperties.push({label: '全部', value: ''})
240
- } else {
241
- this.gasproperties = [{label: '全部', value: ''}]
242
- }
243
- },
244
- openDetail(row, type, num) {
245
- if (num === 0) {
246
- console.log('用户数为0')
247
- }
248
- this.$dispatch('change-tab', {
249
- startDate: row.f_operate_date + ' 00:00:00',
250
- endDate: row.f_operate_date + ' 23:59:59',
251
- condition: this.condition + type
252
- })
253
- },
254
- search1() {
255
- this.$refs.paged.$refs.cri.search()
256
- },
257
- // 查询开关
258
- hidden() {
259
- this.criteriaShow = !this.criteriaShow
260
- },
261
- getdata() {
262
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
263
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
264
- if (this.orgCondtionStr)
265
- this.condition = this.$refs.paged.$refs.cri.condition + 'and uf.f_orgid in ' + this.orgCondtionStr
266
- this.$refs.paged.$refs.cri.search()
267
- },
268
- // 显示柱状图
269
- showEcharts() {
270
- this.echarts = !this.echarts
271
- },
272
- close() {
273
- this.show = false
274
- },
275
- clearmsg() {
276
- this.$refs.paged.$refs.cri.model = {}
277
- },
278
- search(args) {
279
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
280
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
281
- if (this.endDate == '' || this.startDate == '') {
282
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
283
- }
284
- if (this.orgCondtionStr)
285
- args.condition = `${args.condition}` + 'and uf.f_orgid in ' + this.orgCondtionStr
286
- this.condition = args.condition
287
- this.model.search(args.condition, args.model)
288
- },
289
- getRes(obj) {
290
- this.orgCondtionStr = plugins.convertToIn(obj.resids) ? plugin.convertToIn(obj.resids) : '(' + this.$login.f.orgid + ')'
291
- }
292
- // getRes(obj) {
293
- // this.orgCondtionStr = plugins.convertToIn(obj)
294
- // }
295
- },
296
- computed: {
297
- getCondition() {
298
- var con = ""
299
- if (this.orgCondtionStr) {
300
- con = `${this.$refs.paged.$refs.cri.condition} and uf.f_orgid in ${this.orgCondtionStr}`
301
- } else {
302
- con = `${this.$refs.paged.$refs.cri.condition} `
303
- }
304
- return {
305
- condition: con,
306
- startDate: `${this.$refs.paged.$refs.cri.model.startDate}`,
307
- endDate: `${this.$refs.paged.$refs.cri.model.endDate}`
308
- }
309
-
310
- },
311
- usertypes() {
312
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
313
- },
314
- Getuserstyle() {
315
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
316
- }
317
- }
318
- }
319
- </script>
320
- <style>
321
- .mystyle {
322
- margin-left: 80px;
323
- }
324
-
325
- .datapanel {
326
- color: #333;
327
- background-color: white;
328
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
329
- padding: 10px 10px 10px 10px;
330
- border-radius: 15px;
331
- }
332
- </style>
1
+ <template>
2
+ <div class="flex-row binary" id="unit">
3
+ <div class="basic-main" @keyup.enter="search1">
4
+ <div class="flex">
5
+ <div class="flex" style="flex:1;" v-show="!echarts">
6
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
7
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row" width="100%">
10
+
11
+ <div class="col-sm-2 form-group">
12
+ <label class="font_normal_body">客户编号</label>
13
+ <input style="width:60%" class="input_search" condition="info.f_userinfo_code = '{}'"
14
+ placeholder='客户编号' type="text"
15
+ v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
16
+ >
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">客户名称</label>
20
+ <input style="width:60%" class="input_search" condition="info.f_user_name like '%{}%'"
21
+ placeholder='客户名称' type="text"
22
+ v-el:username v-model="model.f_username" v-next-el='userid'>
23
+ </div>
24
+ <div class="col-sm-2 form-group">
25
+ <label class="font_normal_body">客户地址</label>
26
+ <input style="width:60%" class="input_search" condition="a.f_address like '%{}%'" placeholder='地址'
27
+ type="text"
28
+ v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
29
+ >
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
33
+ <input style="width:60%" class="input_search" condition="uf.f_meternumber = '{}'"
34
+ placeholder='表钢号' type="text"
35
+ v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
36
+ >
37
+ </div>
38
+ <div class="span" style="float:right;">
39
+ <button @click="search()" class="button_search button_spacing">查询</button>
40
+ <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
41
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
42
+ :field="$parent.$parent.getfield"
43
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_PriceInstructList"
44
+ template-name='调价分析'
45
+ :choose-col="true"></export-excel>
46
+ <!-- <button @click="$parent.$parent.showEcharts()" class="button_export button_spacing">显示图表</button>-->
47
+ <div style="float: right" class="button_spacing"
48
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
+ @click="$parent.$parent.hidden()"></div>
50
+ </div>
51
+ </div>
52
+ <div class="row" v-show="$parent.$parent.criteriaShow">
53
+
54
+ <div class="col-sm-2 form-group">
55
+ <!-- <label class="font_normal_body">组织机构</label>-->
56
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
57
+ <!-- @res-select="$parent.$parent.getRes"-->
58
+ <!-- restype='organization'style="width: 60%">-->
59
+ <!-- </res-select>-->
60
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
61
+ <right-tree @re-res="$parent.$parent.getRes"
62
+ :initresid='$parent.$parent.orgid'></right-tree>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">用户类型</label>
66
+ <v-select :options='$parent.$parent.usertypes'
67
+ :value.sync="model.f_user_type"
68
+ close-on-select
69
+ style="width:60%"
70
+ condition="uf.f_user_type = '{}'"
71
+ @change="$parent.$parent.userTypeChange()"
72
+ id="f_user_type"
73
+ placeholder='用户类型'
74
+ v-model="model.f_user_type">
75
+ </v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">用气性质</label>
79
+ <v-select :options='$parent.$parent.gasproperties'
80
+ :value.sync="model.f_gasproperties"
81
+ close-on-select
82
+ style="width:60%"
83
+ condition="uf.f_gasproperties = '{}'"
84
+ id="f_gasproperties"
85
+ placeholder='用气性质'
86
+ v-model="model.f_gasproperties">
87
+ </v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body" style="word-break:keep-all;">调价时间</label>
91
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
92
+ :value.sync="model.startDate"
93
+ style="width:60%"
94
+ placeholder="起始时间"
95
+ v-model="model.startDate"
96
+ ></datepicker>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body" style="word-break:keep-all;">&emsp;&ensp;至&emsp;</label>
100
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
101
+ :value.sync="model.endDate"
102
+ placeholder="结束时间"
103
+ style="width:60%"
104
+ v-model="model.endDate"
105
+ ></datepicker>
106
+ </div>
107
+
108
+ </div>
109
+ </div>
110
+ </criteria>
111
+ <data-grid :model="model" id="reportgas" partial='list' class="list_area table_sy" v-ref:grid>
112
+ <template partial='head'>
113
+ <tr>
114
+ <th style="text-align:center">序号</th>
115
+ <th style="text-align:center">
116
+ <nobr>调价日期</nobr>
117
+ </th>
118
+ <th style="text-align:center" title="调价户数:调价记录数量">
119
+ <nobr>调价户数</nobr>
120
+ </th>
121
+ <th style="text-align:center" title="指令总数:调价记录生成的指令数量">
122
+ <nobr>指令总数</nobr>
123
+ </th>
124
+ <th style="text-align:center" title="指令总数:未发送指令户数">
125
+ <nobr>未生成指令户数</nobr>
126
+ </th>
127
+ <th style="text-align:center" title="已发送待执行数目">
128
+ <nobr>已发送待执行数目</nobr>
129
+ </th>
130
+ <th style="text-align:center" title="执行失败数目">
131
+ <nobr>执行失败数目</nobr>
132
+ </th>
133
+ <th style="text-align:center" title="成功指令数">
134
+ <nobr>成功指令数</nobr>
135
+ </th>
136
+ <th style="text-align:center" title="指令生成率:指令总数/调价户数">
137
+ <nobr>指令生成率</nobr>
138
+ </th>
139
+ <th style="text-align:center" title="指令待执行率:待执行数目/指令总数">
140
+ <nobr>指令待执行率</nobr>
141
+ </th>
142
+ <th style="text-align:center" title="指令生成率:指令成功数/指令总数">
143
+ <nobr>指令成功率</nobr>
144
+ </th>
145
+ </tr>
146
+ </template>
147
+ <template partial='body' partial='list' v-ref:grid>
148
+ <tr>
149
+ <td style="text-align:center">{{ $index + 1 }}</td>
150
+ <td style="text-align:center;width: 170px;">{{ row.f_operate_date }}</td>
151
+ <td style="text-align:center">{{ row.pricesum }}</td>
152
+ <td style="text-align:center">{{ row.instructsum }}</td>
153
+ <td style="text-align:center">
154
+ <span @click="$parent.$parent.$parent.openDetail(row,' and ins.id is null ',row.noinstructsum)"><a
155
+ style="cursor:pointer;">{{ row.noinstructsum }}</a></span>
156
+ </td>
157
+ <td style="text-align:center">
158
+ <span
159
+ @click="$parent.$parent.$parent.openDetail(row,` and ins.f_instruct_state ='待发送' `,row.awaitsum)"><a
160
+ style="cursor:pointer;">{{ row.awaitsum }}</a></span>
161
+ </td>
162
+ <td style="text-align:center">
163
+ <span
164
+ @click="$parent.$parent.$parent.openDetail(row,` and ins.f_instruct_state ='执行失败'` ,row.failsum)"><a
165
+ style="cursor:pointer;">{{ row.failsum }}</a></span>
166
+ </td>
167
+ <td style="text-align:center">{{ row.succsum }}</td>
168
+ <td style="text-align:center">{{ row.production_rate }}</td>
169
+ <td style="text-align:center">{{ row.await_rate }}</td>
170
+ <td style="text-align:center">{{ row.succ_rate }}</td>
171
+ </tr>
172
+ </template>
173
+ <template partial='foot'></template>
174
+ </data-grid>
175
+ </criteria-paged>
176
+ </div>
177
+ <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
178
+ <!-- <button @click="showEcharts()" class="button_search button_spacing">隐藏图表</button>-->
179
+ <!-- </div>-->
180
+ <!-- &lt;!&ndash; 图显示模板&ndash;&gt;-->
181
+ <!-- <div class="span " style="width: 100%;" v-show="echarts">-->
182
+ <!-- <user-instruct-echarts-list :condition="condition" :echarts="echarts"-->
183
+ <!-- :enddate="endDate" :startdate="startDate"></user-instruct-echarts-list>-->
184
+ <!-- </div>-->
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </template>
189
+ <script>
190
+ import {PagedList} from 'vue-client'
191
+ import * as Util from '../../../Util'
192
+ import plugins from '../../../plugins/GetLoginInfoService'
193
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
194
+
195
+ export default {
196
+ title: '调价分析',
197
+ data() {
198
+ return {
199
+ model: new PagedList('rs/sql/webmeter_PriceInstructList', 100, {
200
+ startDate: 'this.model.startDate',
201
+ endDate: 'this.model.endDate'
202
+ }),
203
+ condition: '1=1',
204
+ startDate: '',
205
+ gasproperties: [{label: '全部', value: ''}],
206
+ endDate: '',
207
+ getfield: {
208
+ "f_operate_date": "调价日期",
209
+ "pricesum": "调价户数",
210
+ "instructsum": "指令总数",
211
+ "noinstructsum": "未生成指令数",
212
+ "awaitsum": "已发送待执行数目",
213
+ "failsum": "执行失败数目",
214
+ "succsum": "成功指令数",
215
+ "production_rate": "指令生成率",
216
+ "await_rate": "指令待执行率",
217
+ "succ_rate": "指令成功率",
218
+ },
219
+ criteriaShow: false,
220
+ echarts: false,
221
+ searchshow: false,
222
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
223
+ orgid: [this.$login.f.orgid]
224
+ }
225
+ },
226
+ ready() {
227
+ this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(), -6).substring(0, 10) + ' 00:00:00'
228
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
229
+ this.getdata()
230
+ },
231
+ methods: {
232
+ userTypeChange() {
233
+ this.gasproperties = [{label: '全部', value: ''}]
234
+ if (this.$refs.paged.$refs.cri.model !== null) {
235
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
236
+
237
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
238
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
239
+ // this.gasproperties.push({label: '全部', value: ''})
240
+ } else {
241
+ this.gasproperties = [{label: '全部', value: ''}]
242
+ }
243
+ },
244
+ openDetail(row, type, num) {
245
+ if (num === 0) {
246
+ console.log('用户数为0')
247
+ }
248
+ this.$dispatch('change-tab', {
249
+ startDate: row.f_operate_date + ' 00:00:00',
250
+ endDate: row.f_operate_date + ' 23:59:59',
251
+ condition: this.condition + type
252
+ })
253
+ },
254
+ search1() {
255
+ this.$refs.paged.$refs.cri.search()
256
+ },
257
+ // 查询开关
258
+ hidden() {
259
+ this.criteriaShow = !this.criteriaShow
260
+ },
261
+ getdata() {
262
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
263
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
264
+ if (this.orgCondtionStr)
265
+ this.condition = this.$refs.paged.$refs.cri.condition + 'and uf.f_orgid in ' + this.orgCondtionStr
266
+ this.$refs.paged.$refs.cri.search()
267
+ },
268
+ // 显示柱状图
269
+ showEcharts() {
270
+ this.echarts = !this.echarts
271
+ },
272
+ close() {
273
+ this.show = false
274
+ },
275
+ clearmsg() {
276
+ this.$refs.paged.$refs.cri.model = {}
277
+ },
278
+ search(args) {
279
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
280
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
281
+ if (this.endDate == '' || this.startDate == '') {
282
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
283
+ }
284
+ if (this.orgCondtionStr)
285
+ args.condition = `${args.condition}` + 'and uf.f_orgid in ' + this.orgCondtionStr
286
+ this.condition = args.condition
287
+ this.model.search(args.condition, args.model)
288
+ },
289
+ getRes(obj) {
290
+ this.orgCondtionStr = plugins.convertToIn(obj.resids) ? plugin.convertToIn(obj.resids) : '(' + this.$login.f.orgid + ')'
291
+ }
292
+ // getRes(obj) {
293
+ // this.orgCondtionStr = plugins.convertToIn(obj)
294
+ // }
295
+ },
296
+ computed: {
297
+ getCondition() {
298
+ var con = ""
299
+ if (this.orgCondtionStr) {
300
+ con = `${this.$refs.paged.$refs.cri.condition} and uf.f_orgid in ${this.orgCondtionStr}`
301
+ } else {
302
+ con = `${this.$refs.paged.$refs.cri.condition} `
303
+ }
304
+ return {
305
+ condition: con,
306
+ startDate: `${this.$refs.paged.$refs.cri.model.startDate}`,
307
+ endDate: `${this.$refs.paged.$refs.cri.model.endDate}`
308
+ }
309
+
310
+ },
311
+ usertypes() {
312
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
313
+ },
314
+ Getuserstyle() {
315
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
316
+ }
317
+ }
318
+ }
319
+ </script>
320
+ <style>
321
+ .mystyle {
322
+ margin-left: 80px;
323
+ }
324
+
325
+ .datapanel {
326
+ color: #333;
327
+ background-color: white;
328
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
329
+ padding: 10px 10px 10px 10px;
330
+ border-radius: 15px;
331
+ }
332
+ </style>