manage-client 3.2.59-aode → 3.2.60-aode

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.2.59-aode",
3
+ "version": "3.2.60-aode",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -121,7 +121,18 @@
121
121
  :show-reset-button="reset">
122
122
  </datepicker>
123
123
  </div>
124
-
124
+ <div class="col-sm-2">
125
+ <label class="font_normal_body">阀门状态</label>
126
+ <v-select
127
+ placeholder='阀门状态'
128
+ value-single="true"
129
+ style="width:60%"
130
+ :value.sync="model.f_valvestate"
131
+ v-model="model.f_valvestate"
132
+ :options='$parent.$parent.ValveState'
133
+ close-on-select condition="f_valvestate ='{}'">
134
+ </v-select>
135
+ </div>
125
136
 
126
137
  <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
127
138
  <label class="font_normal_body">最长失联&nbsp;</label>
@@ -215,7 +226,9 @@
215
226
  <th style="text-align:center">
216
227
  <nobr>启用日期</nobr>
217
228
  </th>
218
-
229
+ <th style="text-align:center">
230
+ <nobr>阀门状态</nobr>
231
+ </th>
219
232
  <th style="text-align:center">
220
233
  <nobr>应报天数</nobr>
221
234
  </th>
@@ -250,7 +263,7 @@
250
263
  <td style="text-align:center">{{row.f_gasproperties}}</td>
251
264
  <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
252
265
  <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
253
-
266
+ <td style="text-align:center">{{row.f_valvestate}}</td>
254
267
  <td style="text-align:center">{{row.ybdays}}</td>
255
268
  <td style="text-align:center">{{row.sbdays}}</td>
256
269
  <td style="text-align:center">
@@ -306,19 +319,21 @@
306
319
  import UserGasEcharts from './UserGasEcharts'
307
320
  import * as Util from '../../../Util'
308
321
  import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
+ import {toStandardYearMonth, toStandardYearMonth1} from "../../../Util";
309
323
 
310
324
  let readySomething = async function (self) {
311
325
 
312
326
  await self.$MagLoadParams.loadParam()
313
327
  self.initParams()
314
328
  let year = new Date().getFullYear()
315
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
329
+ let month = new Date().getFullYear()
330
+ self.$refs.paged.$refs.cri.model.startDate = Util.toStandardYearMonth() +'-01 00:00:00'
316
331
  self.$refs.paged.$refs.cri.model.max_interval_day1 = 0
317
332
  self.$refs.paged.$refs.cri.model.max_interval_day2 = 7
318
333
 
319
334
  // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
320
335
  self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
321
- self.$refs.paged.$refs.cri.search()
336
+ // self.$refs.paged.$refs.cri.search()
322
337
  }
323
338
  export default {
324
339
  title: '失联分析',
@@ -334,7 +349,7 @@
334
349
  "f_userinfo_code":"客户编号","f_user_name":"客户名称",
335
350
  "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
336
351
  "f_meternumber":"表号",
337
-
352
+ "f_valvestate":"阀门状态",
338
353
  "f_startuse_date":"启用日期",
339
354
  "ybdays":"应报天数",
340
355
  "sbdays":"实报天数",
@@ -469,6 +484,9 @@
469
484
  // usertypes () {
470
485
  // return this.$appdate.getParams("客户类型")
471
486
  // },
487
+ ValveState() {
488
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
489
+ },
472
490
  getCondition() {
473
491
  let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
474
492
  return {
@@ -81,6 +81,18 @@
81
81
  close-on-select>
82
82
  </v-select>
83
83
  </div>
84
+ <div class="col-sm-2">
85
+ <label class="font_normal_body">阀门状态</label>
86
+ <v-select
87
+ placeholder='阀门状态'
88
+ value-single="true"
89
+ style="width:60%"
90
+ :value.sync="model.f_valvestate"
91
+ v-model="model.f_valvestate"
92
+ :options='$parent.$parent.ValveState'
93
+ close-on-select condition="f_valvestate ='{}'">
94
+ </v-select>
95
+ </div>
84
96
  <div class="col-sm-2 form-group">
85
97
  <label class="font_normal_body">气表品牌</label>
86
98
  <v-select :value.sync="model.f_meter_brand"
@@ -170,7 +182,9 @@
170
182
  <th style="text-align:center">
171
183
  <nobr>启用日期</nobr>
172
184
  </th>
173
-
185
+ <th style="text-align:center" >
186
+ <nobr>阀门状态</nobr>
187
+ </th>
174
188
  <th style="text-align:center" >
175
189
  <nobr>初次上报日期</nobr>
176
190
  </th>
@@ -209,6 +223,7 @@
209
223
  <td style="text-align:center">{{row.f_gasproperties}}</td>
210
224
  <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
211
225
  <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
226
+ <td style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></td>
212
227
  <td style="text-align:center">
213
228
  <nobr>{{row.initinsertdate}}</nobr>
214
229
  </td> <td style="text-align:center">
@@ -272,7 +287,7 @@
272
287
  self.initParams()
273
288
  self.$refs.paged.$refs.cri.model.notappear='不包含'
274
289
  self.$refs.paged.$refs.cri.model.SLday1=10
275
- self.$refs.paged.$refs.cri.search()
290
+ // self.$refs.paged.$refs.cri.search()
276
291
  }
277
292
  export default {
278
293
  title: '失联分析',
@@ -288,6 +303,7 @@
288
303
  "f_meternumber":"表号",
289
304
 
290
305
  "f_startuse_date":"启用日期",
306
+ "f_valvestate":"阀门状态",
291
307
  "initinsertdate":"初次上报日期",
292
308
  "lastinsertdate":"最后上报日期",
293
309
  "f_meter_base":"最后表读数",
@@ -436,6 +452,9 @@
436
452
  usertypes() {
437
453
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
438
454
  },
455
+ ValveState() {
456
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
457
+ },
439
458
  Gasproperties() {
440
459
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
441
460
  },