manage-client 4.1.156 → 4.1.158

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.
@@ -5,6 +5,46 @@
5
5
  <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
6
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
7
  <div class="row">
8
+
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
12
+ v-model="model.f_userinfo_code" placeholder='客户编号'
13
+ condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
14
+ >
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">客户名称</label>
18
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
19
+ v-model="model.f_username" placeholder='客户名称'
20
+ condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
21
+ </div>
22
+ <div class="col-sm-2 form-group">
23
+ <label class="font_normal_body">客户地址</label>
24
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
25
+ v-model="model.f_address" placeholder='地址'
26
+ condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
27
+ >
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
31
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
32
+ v-model="model.f_meternumber" placeholder='表钢号'
33
+ condition="uf.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
34
+ >
35
+ </div>
36
+ <div class="span" style="float:right;margin-top:10px">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
+ :field="$parent.$parent.getfield"
41
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getNewHandChanceList" template-name='抄表分析'
42
+ :choose-col="true"></export-excel>
43
+ <button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
44
+ <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>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
8
48
  <div class="col-sm-2 form-group">
9
49
  <label class="font_normal_body">公&emsp;&emsp;司</label>
10
50
  <right-tree @re-res="$parent.$parent.getRes"
@@ -16,6 +56,9 @@
16
56
  <!-- restype='organization'>-->
17
57
  <!-- </res-select>-->
18
58
  </div>
59
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+
61
+ <!-- <res-select-group :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
19
62
  <div class="col-sm-2 form-group">
20
63
  <label class="font_normal_body">用户类型</label>
21
64
  <v-select style="width:60%" id="f_user_type"
@@ -28,6 +71,17 @@
28
71
  close-on-select>
29
72
  </v-select>
30
73
  </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">用气性质</label>
76
+ <v-select style="width:60%" id="f_gasproperties"
77
+ v-model="model.f_gasproperties"
78
+ placeholder='用气性质'
79
+ :value.sync="model.f_gasproperties"
80
+ :options='$parent.$parent.gasproperties'
81
+ condition="uf.f_gasproperties = '{}'"
82
+ close-on-select>
83
+ </v-select>
84
+ </div>
31
85
  <div class="col-sm-2 form-group">
32
86
  <label class="font_normal_body">气表品牌</label>
33
87
  <v-select
@@ -41,19 +95,37 @@
41
95
  v-model="model.f_meter_brand">
42
96
  </v-select>
43
97
  </div>
44
-
45
- <div class="span" style="float:right;margin-top:10px">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
- :field="$parent.$parent.getfield"
50
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getNewHandChanceList" template-name='抄表分析'
51
- :choose-col="true"></export-excel>
52
- <button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
53
- <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>
98
+ <!-- <div class="col-sm-2 form-group">-->
99
+ <!-- <label class="font_normal_body">气表品牌</label>-->
100
+ <!-- <v-select-->
101
+ <!-- placeholder='气表品牌'-->
102
+ <!-- :value.sync="model.f_meter_brand"-->
103
+ <!-- v-model="model.f_meter_brand"-->
104
+ <!-- :options='$parent.$parent.WarningType'-->
105
+ <!-- @change="$parent.$parent.getMeterType"-->
106
+ <!-- close-on-select-->
107
+ <!-- condition="gb.f_meter_brand='{}'">-->
108
+ <!-- </v-select>-->
109
+ <!-- </div>-->
110
+ <div class="col-sm-2 form-group" >
111
+ <label class="font_normal_body">气表型号</label>
112
+ <v-select
113
+ placeholder='气表型号'
114
+ :value.sync="model.f_meter_style"
115
+ v-model="model.f_meter_style"
116
+ :options='$parent.$parent.meterstyle[model.f_meter_brand]'
117
+ close-on-select
118
+ condition="gm.f_meter_style='{}'">
119
+ </v-select>
120
+ <!-- <v-select v-if="!$parent.$parent.styles"-->
121
+ <!-- placeholder='气表型号'-->
122
+ <!-- :value.sync="model.f_meter_style"-->
123
+ <!-- v-model="model.f_meter_style"-->
124
+ <!-- :options='$parent.$parent.Warningstyles'-->
125
+ <!-- close-on-select-->
126
+ <!-- condition="f_meter_style='{}'">-->
127
+ <!-- </v-select>-->
54
128
  </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
129
  <div class="col-sm-2 form-group">
58
130
  <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
59
131
  <datepicker style="width:60%" placeholder="起始时间"
@@ -70,6 +142,48 @@
70
142
  :format="'yyyy-MM-dd HH:mm:ss'"
71
143
  ></datepicker>
72
144
  </div>
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">气价类型</label>
147
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
148
+ @change="$parent.$parent.pricetypechanged"
149
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
150
+ close-on-select v-ref:type>
151
+ </v-select>
152
+ </div>
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">气价名称</label>
155
+ <v-select :value.sync="model.f_price_id"
156
+ v-model="model.f_price_id"
157
+ :multiple="true"
158
+ :options="$parent.$parent.getPricenames"
159
+ condition="uf.f_price_id in {}"
160
+ ></v-select>
161
+ </div>
162
+ <!-- <div class="col-sm-2 form-group">-->
163
+ <!-- <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>-->
164
+ <!-- <v-select id="f_meter_brand"-->
165
+ <!-- v-model="model.f_usetype"-->
166
+ <!-- placeholder='壁挂炉'-->
167
+ <!-- :value.sync="model.f_usetype"-->
168
+ <!-- :options='$parent.$parent.usetypes'-->
169
+ <!-- condition="" :search="false"-->
170
+ <!-- close-on-select style="width: 60%">-->
171
+ <!-- </v-select>-->
172
+ <!-- </div>-->
173
+ <!-- <div class="col-sm-2 form-group">-->
174
+ <!-- <label class="font_normal_body">房屋类型</label>-->
175
+ <!-- <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"-->
176
+ <!-- :options='$parent.$parent.houseTypes' placeholder='请选择'-->
177
+ <!-- close-on-select-->
178
+ <!-- condition=""></v-select>-->
179
+ <!-- </div>-->
180
+ <!-- <div class="col-sm-2 form-group">-->
181
+ <!-- <label class="font_normal_body">安装位置</label>-->
182
+ <!-- <v-select :value.sync="model.f_position" v-model="model.f_position"-->
183
+ <!-- :options='$parent.$parent.positions' placeholder='请选择'-->
184
+ <!-- condition=""-->
185
+ <!-- close-on-select></v-select>-->
186
+ <!-- </div>-->
73
187
  </div>
74
188
  </div>
75
189
  </criteria>
@@ -80,10 +194,10 @@
80
194
  <th style="text-align:center"><nobr>上报日期</nobr></th>
81
195
  <th style="text-align:center" title="安装户数=正常户数+停用户数+未注册户数"><nobr>安装户数</nobr></th>
82
196
 
83
- <!-- <th style="text-align:center" title="停用户数:表具状态为停用的用户数"><nobr>停用户数</nobr></th>-->
84
- <!-- <th style="text-align:center" title="在用户数:表具状态为正常的用户数"><nobr>在用户数</nobr></th>-->
197
+ <!-- <th style="text-align:center" title="停用户数:表具状态为停用的用户数"><nobr>停用户数</nobr></th>-->
198
+ <!-- <th style="text-align:center" title="在用户数:表具状态为正常的用户数"><nobr>在用户数</nobr></th>-->
85
199
 
86
- <!-- <th style="text-align:center" title="用户使用率=在用户数/正常户数"><nobr>用户使用率</nobr></th>-->
200
+ <!-- <th style="text-align:center" title="用户使用率=在用户数/正常户数"><nobr>用户使用率</nobr></th>-->
87
201
  <th style="text-align:center"><nobr>抄表成功户数</nobr></th>
88
202
  <th style="text-align:center"><nobr>总用气量</nobr></th>
89
203
  <th style="text-align:center"><nobr>总用气金额</nobr></th>
@@ -100,10 +214,10 @@
100
214
  <td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
101
215
  <td style="text-align:center">{{row.anzhuang}}</td>
102
216
 
103
- <!-- <th style="text-align:center">{{row.c0}}</th>-->
104
- <!-- <td style="text-align:center"><nobr>{{row.c}}</nobr></td>-->
217
+ <!-- <th style="text-align:center">{{row.c0}}</th>-->
218
+ <!-- <td style="text-align:center"><nobr>{{row.c}}</nobr></td>-->
105
219
 
106
- <!-- <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>-->
220
+ <!-- <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>-->
107
221
  <!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
108
222
  <td style="text-align:center">{{row.c1}}</td>
109
223
  <td style="text-align:center">{{row.f_gas_all}}</td>
@@ -132,9 +246,9 @@
132
246
  </tr>
133
247
  </table>
134
248
  </div>
135
- <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
136
- <!-- <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>-->
137
- <!-- </div>-->
249
+ <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
250
+ <!-- <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>-->
251
+ <!-- </div>-->
138
252
 
139
253
  </div>
140
254
  <!--图显示模板-->
@@ -144,275 +258,275 @@
144
258
  </div>
145
259
  </template>
146
260
  <script>
147
- import {HttpResetClass, PagedList} from 'vue-client'
148
- import UserGasEcharts from './UserGasEchartsList'
149
- import * as Util from '../../Util'
150
- import plugins from '../../plugins/GetLoginInfoService'
151
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
152
- let readySomething = async function (self) {
153
- self.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
154
- self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
155
- await self.$MagLoadParams.loadParam()
156
- self.initQueryParam()
157
- self.$refs.paged.$refs.cri.search()
158
- }
159
- export default {
160
- title: '抄表分析',
161
- props: ['data'],
162
- components: {UserGasEcharts},
163
- data () {
164
- return {
165
- resshow:['slicearea'],
166
- prices: [],
167
- model: new PagedList('api/af-revenue/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
168
- f_gas_all: 0,
169
- f_fee_all: 0
170
- }),
171
- condition: '1=1',
172
- startDate: '',
173
- gasproperties:[{label: '全部', value: ''}],
174
- endDate: '',
175
- meterbrand: [],
176
- meterstyle: {},
177
- WarningType: [
178
- {label: '全部', value: ''}
179
- ],
180
- Warningstyles: [
181
- {label: '全部', value: ''}
182
- ],
183
- styles:false,
184
- orgid:[this.$login.f.orgid],
185
- getfield:{
186
- "rownumber":"序号",
187
- "f_insert_date":"上报日期",
188
- "anzhuang":"安装户数",
189
- "c1":"抄表成功户数",
190
- "f_gas_all":"总用气量",
191
- "f_fee_all":"总用气金额",
192
- "f_gas":"日均户均用气量(成功)",
193
- "f_gas1":"日均户均用气量(在用)",
194
- "f_bv1":"抄表成功率"
195
- },
196
- criteriaShow:false,
197
- echarts: false,
198
- orgCondtionStr: '(\'' + this.$login.f.orgid + '\')',
199
- searchshow: false,
200
- initres: {
201
- org:[this.$login.f.orgid],
202
- dep:[],
203
- user:[]
204
- },
205
- zonesdata:'',
206
- obj: {
207
- userid: this.$login.f.id,
208
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
209
- res: this.$login.f.f_fengongsi,
210
- resids: this.$login.f.orgid
211
- },
212
- f_filialeid: this.$login.f.orgid,
213
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
214
- }
215
- },
216
- ready () {
217
- readySomething(this).then(() => {
218
- this.$emit('ready')
219
- }).catch((error) => {
220
- this.$emit('error', error)
221
- })
222
- },
223
- methods: {
224
- initQueryParam () {
225
- let meters = this.$MagGetSaleParam.getGasbrand().filter(item => item.value.f_meter_type==='物联网表')
226
- let arr = meters.map(res => {
227
- let sty = res.value.gasmodel.map(row => {
228
- return {
229
- label: row.label,
230
- value: row.value.f_meter_style
231
- }
232
- })
233
- this.meterstyle[res.value.f_meter_brand] = [{label: '全部', value: ''}, ...sty]
234
- return {
235
- label: res.label,
236
- value: res.value.f_meter_brand
237
- }
238
- })
239
- this.meterbrand = [{label: '全部', value: ''}, ...arr]
240
- //初始化气表价格
241
- this.prices = this.$MagGetSaleParam.getPrices()
261
+ import {HttpResetClass, PagedList} from 'vue-client'
262
+ import UserGasEcharts from './UserGasEchartsList'
263
+ import * as Util from '../../Util'
264
+ import plugins from '../../plugins/GetLoginInfoService'
265
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
266
+ let readySomething = async function (self) {
267
+ self.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
268
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
269
+ await self.$MagLoadParams.loadParam()
270
+ self.initQueryParam()
271
+ self.$refs.paged.$refs.cri.search()
272
+ }
273
+ export default {
274
+ title: '抄表分析',
275
+ props: ['data'],
276
+ components: {UserGasEcharts},
277
+ data () {
278
+ return {
279
+ resshow:['slicearea'],
280
+ prices: [],
281
+ model: new PagedList('api/af-revenue/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
282
+ f_gas_all: 0,
283
+ f_fee_all: 0
284
+ }),
285
+ condition: '1=1',
286
+ startDate: '',
287
+ gasproperties:[{label: '全部', value: ''}],
288
+ endDate: '',
289
+ meterbrand: [],
290
+ meterstyle: {},
291
+ WarningType: [
292
+ {label: '全部', value: ''}
293
+ ],
294
+ Warningstyles: [
295
+ {label: '全部', value: ''}
296
+ ],
297
+ styles:false,
298
+ orgid:[this.$login.f.orgid],
299
+ getfield:{
300
+ "rownumber":"序号",
301
+ "f_insert_date":"上报日期",
302
+ "anzhuang":"安装户数",
303
+ "c1":"抄表成功户数",
304
+ "f_gas_all":"总用气量",
305
+ "f_fee_all":"总用气金额",
306
+ "f_gas":"日均户均用气量(成功)",
307
+ "f_gas1":"日均户均用气量(在用)",
308
+ "f_bv1":"抄表成功率"
242
309
  },
243
- showMeterStyle() {
244
- this.styles = true
310
+ criteriaShow:false,
311
+ echarts: false,
312
+ orgCondtionStr: '(\'' + this.$login.f.orgid + '\')',
313
+ searchshow: false,
314
+ initres: {
315
+ org:[this.$login.f.orgid],
316
+ dep:[],
317
+ user:[]
245
318
  },
246
- userTypeChange () {
247
- this.gasproperties=[{label: '全部', value: ''}]
248
- if(this.$refs.paged.$refs.cri.model !==null) {
249
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
250
-
251
- if(this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type.length>0){
252
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
319
+ zonesdata:'',
320
+ obj: {
321
+ userid: this.$login.f.id,
322
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
323
+ res: this.$login.f.f_fengongsi,
324
+ resids: this.$login.f.orgid
325
+ },
326
+ f_filialeid: this.$login.f.orgid,
327
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
328
+ }
329
+ },
330
+ ready () {
331
+ readySomething(this).then(() => {
332
+ this.$emit('ready')
333
+ }).catch((error) => {
334
+ this.$emit('error', error)
335
+ })
336
+ },
337
+ methods: {
338
+ initQueryParam () {
339
+ let meters = this.$MagGetSaleParam.getGasbrand().filter(item => item.value.f_meter_type==='物联网表')
340
+ let arr = meters.map(res => {
341
+ let sty = res.value.gasmodel.map(row => {
342
+ return {
343
+ label: row.label,
344
+ value: row.value.f_meter_style
253
345
  }
254
- // this.gasproperties.push({label: '全部', value: ''})
255
- }
256
- else{
257
- this.gasproperties =[{label: '全部', value: ''}]
346
+ })
347
+ this.meterstyle[res.value.f_meter_brand] = [{label: '全部', value: ''}, ...sty]
348
+ return {
349
+ label: res.label,
350
+ value: res.value.f_meter_brand
258
351
  }
259
- },
260
- hidden(){
261
- this.criteriaShow = !this.criteriaShow
262
- },
263
- // 查询开关
264
- seachchange () {
265
- this.searchshow = !this.searchshow
266
- },
352
+ })
353
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
354
+ //初始化气表价格
355
+ this.prices = this.$MagGetSaleParam.getPrices()
356
+ },
357
+ showMeterStyle() {
358
+ this.styles = true
359
+ },
360
+ userTypeChange () {
361
+ this.gasproperties=[{label: '全部', value: ''}]
362
+ if(this.$refs.paged.$refs.cri.model !==null) {
363
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
267
364
 
268
- // 显示柱状图
269
- showEcharts () {
270
- this.echarts = !this.echarts
271
- console.log(this.echarts)
272
- },
273
- close () {
274
- this.show = false
275
- },
276
- // SaveAsFile(str) {
277
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
278
- // if (res === 'confirm') {
279
- // let style = '<style>' +
280
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
281
- // let strHtml = style + document.getElementById(str).innerHTML;
282
- // console.log(strHtml);
283
- // let LODOP = getLodop();
284
- // LODOP.PRINT_INIT('');
285
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
286
- // LODOP.SAVE_TO_FILE('抄表统计.xls')
287
- // }
288
- // })
289
- // },
290
- clearmsg () {
291
- this.$refs.paged.$refs.cri.model = {}
292
- this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
293
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
294
- },
295
- search (args) {
296
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
297
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
298
- if (this.endDate == '' || this.startDate == '') {
299
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
300
- }
301
- if (this.orgCondtionStr){
302
- this.condition = this.$refs.paged.$refs.cri.condition + ` and uf.f_orgid in ${this.orgCondtionStr}`
365
+ if(this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type.length>0){
366
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
303
367
  }
304
- else
305
- this.condition = this.$refs.paged.$refs.cri.condition + ` and uf.f_orgid = '${this.orgCondtionStr}'`
306
- if(this.zonesdata){
307
- this.condition = this.$refs.paged.$refs.cri.condition + ` and ${this.zonesdata}`
308
- }
309
- console.log('args.condition',args.condition)
310
- console.log('this.condition',this.condition)
311
- this.condition = this.condition.replace(/f_zones/, "a.f_slice_area")
312
- args.condition = this.condition
313
- this.model.search(args.condition, args.model)
314
- },
315
- // getRes (obj) {
316
- // this.orgCondtionStr = plugins.convertToIn(obj)
317
- // }
318
- getRes (obj) {
319
- this.orgCondtionStr = plugins.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(\'' + this.$login.f.orgid + '\')'
320
- if(obj.indexOf("f_zones = ")>0){
321
- this.zonesdata = obj.substring(obj.indexOf("f_zones = "))
322
- }else{
323
- this.zonesdata=''
324
- }
325
- },
326
- pricetypechanged(){
327
- this.$refs.paged.$refs.cri.model.f_price_id = []
328
- },
329
- // getRes(condition,obj) {
330
- // this.orgCondtionStr = condition
331
- // this.orgname = obj.orgnames[0]
332
- // this.depname = obj.depnames[0]
333
- // }
368
+ // this.gasproperties.push({label: '全部', value: ''})
369
+ }
370
+ else{
371
+ this.gasproperties =[{label: '全部', value: ''}]
372
+ }
334
373
  },
335
- computed: {
336
- getPricenames() {
337
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
338
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
339
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
340
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
341
- if(this.$refs.paged.$refs.cri.model !==null) {
342
- let rs = []
343
- let priceArr = []
344
- if ( pricetype.length >0) {
345
- let params = {
346
- f_price_type: pricetype[0],
347
- filter: this.f_filialeid,
348
- prices: this.prices
349
- }
350
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
351
- let temp = {}
352
- temp.label = item.label
353
- temp.value = item.value.f_price_id
354
- priceArr.push(temp)
355
- })
356
- rs = [{label: '全部', value: ''}, ...priceArr]
357
- }
358
- if (rs.length === 0) {
359
- console.log('rs读出来是空')
360
- this.$refs.paged.$refs.cri.model.f_price_id = ''
374
+ hidden(){
375
+ this.criteriaShow = !this.criteriaShow
376
+ },
377
+ // 查询开关
378
+ seachchange () {
379
+ this.searchshow = !this.searchshow
380
+ },
381
+
382
+ // 显示柱状图
383
+ showEcharts () {
384
+ this.echarts = !this.echarts
385
+ console.log(this.echarts)
386
+ },
387
+ close () {
388
+ this.show = false
389
+ },
390
+ // SaveAsFile(str) {
391
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
392
+ // if (res === 'confirm') {
393
+ // let style = '<style>' +
394
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
395
+ // let strHtml = style + document.getElementById(str).innerHTML;
396
+ // console.log(strHtml);
397
+ // let LODOP = getLodop();
398
+ // LODOP.PRINT_INIT('');
399
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
400
+ // LODOP.SAVE_TO_FILE('抄表统计.xls')
401
+ // }
402
+ // })
403
+ // },
404
+ clearmsg () {
405
+ this.$refs.paged.$refs.cri.model = {}
406
+ this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
407
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
408
+ },
409
+ search (args) {
410
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
411
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
412
+ if (this.endDate == '' || this.startDate == '') {
413
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
414
+ }
415
+ if (this.orgCondtionStr){
416
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and uf.f_orgid in ${this.orgCondtionStr}`
417
+ }
418
+ else
419
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and uf.f_orgid = '${this.orgCondtionStr}'`
420
+ if(this.zonesdata){
421
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and ${this.zonesdata}`
422
+ }
423
+ console.log('args.condition',args.condition)
424
+ console.log('this.condition',this.condition)
425
+ this.condition = this.condition.replace(/f_zones/, "a.f_slice_area")
426
+ args.condition = this.condition
427
+ this.model.search(args.condition, args.model)
428
+ },
429
+ // getRes (obj) {
430
+ // this.orgCondtionStr = plugins.convertToIn(obj)
431
+ // }
432
+ getRes (obj) {
433
+ this.orgCondtionStr = plugins.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(\'' + this.$login.f.orgid + '\')'
434
+ if(obj.indexOf("f_zones = ")>0){
435
+ this.zonesdata = obj.substring(obj.indexOf("f_zones = "))
436
+ }else{
437
+ this.zonesdata=''
438
+ }
439
+ },
440
+ pricetypechanged(){
441
+ this.$refs.paged.$refs.cri.model.f_price_id = []
442
+ },
443
+ // getRes(condition,obj) {
444
+ // this.orgCondtionStr = condition
445
+ // this.orgname = obj.orgnames[0]
446
+ // this.depname = obj.depnames[0]
447
+ // }
448
+ },
449
+ computed: {
450
+ getPricenames() {
451
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
452
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
453
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
454
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
455
+ if(this.$refs.paged.$refs.cri.model !==null) {
456
+ let rs = []
457
+ let priceArr = []
458
+ if ( pricetype.length >0) {
459
+ let params = {
460
+ f_price_type: pricetype[0],
461
+ filter: this.f_filialeid,
462
+ prices: this.prices
361
463
  }
362
- return rs
363
- }
364
- },
365
- pricetypes() {
366
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
367
- },
368
- houseTypes() {
369
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
370
- },
371
- positions() {
372
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
373
- },
374
- getCondition() {
375
- var con=""
376
- if (this.orgCondtionStr) {
377
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
378
- }
379
- else{
380
- con= `${this.$refs.paged.$refs.cri.condition} `
464
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
465
+ let temp = {}
466
+ temp.label = item.label
467
+ temp.value = item.value.f_price_id
468
+ priceArr.push(temp)
469
+ })
470
+ rs = [{label: '全部', value: ''}, ...priceArr]
381
471
  }
382
- return {
383
- condition: this.condition,
384
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
385
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
472
+ if (rs.length === 0) {
473
+ console.log('rs读出来是空')
474
+ this.$refs.paged.$refs.cri.model.f_price_id = ''
386
475
  }
387
-
388
- },
389
- usertypes () {
390
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
391
- },
392
- // usertypes () {
393
- // return this.$getParams('用户类型', [{label: '全部', value: ''}])
394
- // },
395
- f_outlets () {
396
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
397
- },
398
- valveStatus () {
399
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
400
- },
401
- Getuserstyle () {
402
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
476
+ return rs
403
477
  }
478
+ },
479
+ pricetypes() {
480
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
481
+ },
482
+ houseTypes() {
483
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
484
+ },
485
+ positions() {
486
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
487
+ },
488
+ getCondition() {
489
+ var con=""
490
+ if (this.orgCondtionStr) {
491
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
492
+ }
493
+ else{
494
+ con= `${this.$refs.paged.$refs.cri.condition} `
495
+ }
496
+ return {
497
+ condition: this.condition,
498
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
499
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
500
+ }
501
+
502
+ },
503
+ usertypes () {
504
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
505
+ },
506
+ // usertypes () {
507
+ // return this.$getParams('用户类型', [{label: '全部', value: ''}])
508
+ // },
509
+ f_outlets () {
510
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
511
+ },
512
+ valveStatus () {
513
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
514
+ },
515
+ Getuserstyle () {
516
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
404
517
  }
405
518
  }
519
+ }
406
520
  </script>
407
521
  <style>
408
- .mystyle{
409
- margin-left:80px;
410
- }
411
- .datapanel {
412
- color: #333;
413
- background-color: white;
414
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
415
- padding: 10px 10px 10px 10px;
416
- border-radius:15px;
417
- }
522
+ .mystyle{
523
+ margin-left:80px;
524
+ }
525
+ .datapanel {
526
+ color: #333;
527
+ background-color: white;
528
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
529
+ padding: 10px 10px 10px 10px;
530
+ border-radius:15px;
531
+ }
418
532
  </style>