telephone-clients 3.0.103-99 → 3.0.104-1

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.
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' class="search_area" v-ref:criteria>
5
+ <div novalidate class="form-inline auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group">
8
+ <label for="startDate" class="font_normal_body">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ style="width: 60%;"
13
+ :disabled-days-of-Week="[]"
14
+ :format="'yyyy-MM-dd 00:00:00'"
15
+ :show-reset-button="reset">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期:</label>
20
+ <datepicker id="endDate" placeholder="结束日期"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :disabled-days-of-Week="[]"
24
+ style="width: 60%;"
25
+ :format="'yyyy-MM-dd 23:59:59'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
30
+ <label class="font_normal_body" style="width: 40%">话&ensp;务&ensp;员</label>
31
+ <v-select :value.sync="model.attendants"
32
+ :options='$parent.$parent.operators'
33
+ placeholder='请选择话务员'
34
+ style="width: 60%"
35
+ ></v-select>
36
+ </div>
37
+ <div class="col-sm-3 form-group" style="margin-top: 8px">
38
+ <button class="button_search button_spacing" @click="search()">查询</button>
39
+ <report-print class="button_export button_spacing" style="width:28%" ></report-print>
40
+ <report-excel class="button_export button_spacing" style="width:28%" ></report-excel>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </criteria>
45
+ <div partial='list' class="list_area" style="overflow-y: scroll;position:relative">
46
+ <table class='tableprint' style="margin: 0px auto">
47
+ <thead>
48
+ <tr>
49
+ <th colspan='5' style="font-weight: normal; text-align: left;">
50
+ <h3 style="text-align: center">话务报表统计</h3>
51
+ </th>
52
+ </tr>
53
+ </thead>
54
+ <tr>
55
+ <th colspan='5' style="font-weight: normal;">
56
+ {{{ model.data.substring(26,model.data.length-8) }}}
57
+ </th>
58
+ </tr>
59
+ </table>
60
+ </div>
61
+ </criteria-paged>
62
+ </div>
63
+
64
+ </template>
65
+
66
+ <script>
67
+ import {DataModel, HttpResetClass} from 'vue-client'
68
+ import * as Util from "../Util";
69
+
70
+ export default {
71
+ title: '话务报表',
72
+ data() {
73
+ let model = new DataModel('rs/telephone/report/trafficClassification',{
74
+ startDate:'this.model.startDate',
75
+ endDate:'this.model.endDate',
76
+ attendant:'this.model.attendant'
77
+ })
78
+ return {
79
+ operators:[],
80
+ filialeNameStr: '',
81
+ filialeCodeStr: '',
82
+ userid: this.$login.f.id,
83
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
84
+ model: model
85
+ }
86
+ },
87
+ methods: {
88
+ getOperators (role) {
89
+ this.operators = []
90
+ let val = {source: `this.getParentByType($organization$).getChildByName($${role}$).getUsers()`, userid: `${this.$login.f.id}`}
91
+ let http = new HttpResetClass()
92
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
93
+ res.data.forEach((item) => {
94
+ this.operators.push({label: item.name, value: item.name})
95
+ })
96
+ })
97
+ },
98
+ getRes(obj) {
99
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
100
+ },
101
+ search(args){
102
+ debugger
103
+ if (args.model.attendants && args.model.attendants.length>0){
104
+ // let attStr = "("
105
+ // for (let attendantKey in args.model.attendants) {
106
+ // attStr +=`'${args.model.attendants[attendantKey]}',`
107
+ // }
108
+ // attStr+="'')"
109
+ // args.model.attendant = attStr
110
+ args.model.attendant = args.model.attendants[0]
111
+ }else {
112
+ args.model.attendant = ""
113
+ }
114
+ this.model.search('1=1',args.model)
115
+ }
116
+ },
117
+ ready() {
118
+ let date = new Date()
119
+ let month = date.getMonth()
120
+ let realMonth = date.getMonth()+1
121
+ let day = date.getDate()
122
+ this.$refs.paged.$refs.criteria.model.startDate = date.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (day<10? '0'+ day : day) + ' 00:00:00'
123
+ this.$refs.paged.$refs.criteria.model.endDate = date.getFullYear() + '-' + (realMonth<10? '0'+ realMonth : realMonth) + '-' + (day<10? '0'+ day : day) + ' 23:59:59'
124
+ this.getOperators('话务员')
125
+ },
126
+ computed: {
127
+ }
128
+ }
129
+ </script>
130
+ <style>
131
+ th>tr>td {
132
+ width: 200px;
133
+ }
134
+ </style>
@@ -8,7 +8,6 @@
8
8
  <template partial='head'>
9
9
  <tr>
10
10
  <th><nobr>表号</nobr></th>
11
- <!--<th><nobr>气表厂家</nobr></th>-->
12
11
  <th><nobr>上报日期</nobr></th>
13
12
  <th><nobr>本次抄表底数</nobr></th>
14
13
  <th><nobr>表内剩余金额</nobr></th>
@@ -17,12 +16,10 @@
17
16
  </template>
18
17
  <template partial='body'>
19
18
  <td style="text-align: center">{{row.f_meternumber}}</td>
20
- <!--<td>{{row.f_manufacturers}}</td>-->
21
19
  <td style="text-align: center">{{row.f_hand_date}}</td>
22
20
  <td style="text-align: center">{{row.f_tablebase}}</td>
23
21
  <td style="text-align: center">{{row.f_jval}}</td>
24
- <td style="text-align: center" v-if="row.f_valveState===0">开阀</td>
25
- <td style="text-align: center" v-else>关阀</td>
22
+ <td style="text-align: center">{{row.f_valvestate == '0' ? '开阀' : '关阀'}}</td>
26
23
  </template>
27
24
  </data-grid>
28
25
  </criteria-paged>
@@ -356,7 +356,7 @@
356
356
  callObj = {
357
357
  callNum: this.initPhone,
358
358
  ext_no: this.ext_no,
359
- aId: Util.f.id,
359
+ aId: this.$login.f.id,
360
360
  RecordsID: ''
361
361
  }
362
362
  this.$emit('call-in', callObj)
@@ -433,7 +433,7 @@ export default {
433
433
  return
434
434
  }
435
435
  let imgflag = this.checkzhihuanimg()
436
- if(!(imgflag.check) && Vue.config.telephone.FaultAll.photograph?Vue.config.telephone.FaultAll.photograph:false){
436
+ if(!(imgflag.check)){
437
437
  this.$showMessage(`${imgflag.title}未拍照!`, ['confirm'])
438
438
  return
439
439
  }