telephone-clients 3.0.103-72 → 3.0.103-74

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": "telephone-clients",
3
- "version": "3.0.103-72",
3
+ "version": "3.0.103-74",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,98 +1,98 @@
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'"
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'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-3 form-group" style="margin-top: 8px">
30
- <button class="button_search button_spacing" @click="search()">查询</button>
31
- <report-print class="button_export button_spacing" style="width:28%" ></report-print>
32
- <report-excel class="button_export button_spacing" style="width:28%" ></report-excel>
33
- </div>
34
- </div>
35
- </div>
36
- </criteria>
37
- <div partial='list' class="list_area" style="overflow-y: scroll;position:relative">
38
- <table class='tableprint' style="margin: 0px auto">
39
- <thead>
40
- <tr>
41
- <th colspan='5' style="font-weight: normal; text-align: left;">
42
- <h3 style="text-align: center">维修报表统计</h3>
43
- </th>
44
- </tr>
45
- </thead>
46
- <tr>
47
- <th colspan='5' style="font-weight: normal;">
48
- {{{ model.data.substring(26,model.data.length-8) }}}
49
- </th>
50
- </tr>
51
- </table>
52
- </div>
53
- </criteria-paged>
54
- </div>
55
-
56
- </template>
57
-
58
- <script>
59
- import {DataModel} from 'vue-client'
60
-
61
- export default {
62
- title: '维修报表',
63
- data() {
64
- let model = new DataModel('rs/telephone/report/repairsDetailsReport')
65
- return {
66
- filialeNameStr: '',
67
- filialeCodeStr: '',
68
- userid: this.$login.f.id,
69
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
70
- model: model
71
- }
72
- },
73
- methods: {
74
- getRes(obj) {
75
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
76
- },
77
- search(args){
78
- let condition = ' and 1 = 1 '
79
- if (args.model.startDate){
80
- condition += ` and ts1.f_date_leave >= '${args.model.startDate} 00:00:00' `
81
- }
82
- if (args.model.endDate){
83
- condition += ` and ts1.f_date_leave <= '${args.model.endDate} 23:59:59' `
84
- }
85
- this.model.search(condition,args.model)
86
- }
87
- },
88
- ready() {
89
- },
90
- computed: {
91
- }
92
- }
93
- </script>
94
- <style>
95
- th>tr>td {
96
- width: 200px;
97
- }
98
- </style>
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'"
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'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3 form-group" style="margin-top: 8px">
30
+ <button class="button_search button_spacing" @click="search()">查询</button>
31
+ <report-print class="button_export button_spacing" style="width:28%" ></report-print>
32
+ <report-excel class="button_export button_spacing" style="width:28%" ></report-excel>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </criteria>
37
+ <div partial='list' class="list_area" style="overflow-y: scroll;position:relative">
38
+ <table class='tableprint' style="margin: 0px auto">
39
+ <thead>
40
+ <tr>
41
+ <th colspan='5' style="font-weight: normal; text-align: left;">
42
+ <h3 style="text-align: center">维修报表统计</h3>
43
+ </th>
44
+ </tr>
45
+ </thead>
46
+ <tr>
47
+ <th colspan='5' style="font-weight: normal;">
48
+ {{{ model.data.substring(26,model.data.length-8) }}}
49
+ </th>
50
+ </tr>
51
+ </table>
52
+ </div>
53
+ </criteria-paged>
54
+ </div>
55
+
56
+ </template>
57
+
58
+ <script>
59
+ import {DataModel} from 'vue-client'
60
+
61
+ export default {
62
+ title: '维修报表',
63
+ data() {
64
+ let model = new DataModel('rs/telephone/report/repairsDetailsReport')
65
+ return {
66
+ filialeNameStr: '',
67
+ filialeCodeStr: '',
68
+ userid: this.$login.f.id,
69
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
70
+ model: model
71
+ }
72
+ },
73
+ methods: {
74
+ getRes(obj) {
75
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
76
+ },
77
+ search(args){
78
+ let condition = ' and 1 = 1 '
79
+ if (args.model.startDate){
80
+ condition += ` and ts1.f_date_leave >= '${args.model.startDate} 00:00:00' `
81
+ }
82
+ if (args.model.endDate){
83
+ condition += ` and ts1.f_date_leave <= '${args.model.endDate} 23:59:59' `
84
+ }
85
+ this.model.search(condition,args.model)
86
+ }
87
+ },
88
+ ready() {
89
+ },
90
+ computed: {
91
+ }
92
+ }
93
+ </script>
94
+ <style>
95
+ th>tr>td {
96
+ width: 200px;
97
+ }
98
+ </style>
@@ -368,9 +368,6 @@
368
368
  this.$showMessage('请填写报警内容类别')
369
369
  return
370
370
  }
371
- if(data.model.failure){
372
- data.model.f_json = this.trouble(data.model.failure)
373
- }
374
371
  //tag)
375
372
  let data = {
376
373
  model: this.model, loginUser: {
@@ -378,6 +375,9 @@
378
375
  ename: Vue.user.ename
379
376
  }, user: null, callObj: null
380
377
  }
378
+ if(data.model.failure){
379
+ data.model.f_json = this.trouble(data.model.failure)
380
+ }
381
381
  if(this.model.f_handlingtype=='转维修员'){
382
382
  data.toRepair = '一级派单'
383
383
  this.model.f_meetunit = Vue.user.deps
@@ -0,0 +1,273 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div style="height: 95%" class="basic-main" >
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
9
+ <label class="font_normal_body" style="width: 40%">工单编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
11
+ condition="tswo.f_service_id like '%{}%'"
12
+ :size="model.f_service_id ? model.f_service_id.length : 6">
13
+ </div>
14
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%;">
15
+ <label class="font_normal_body" style="width: 40%">客户姓名</label>
16
+ <input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
17
+ condition="tswo.f_user_name like '%{}%'"
18
+ :size="model.f_user_name ? model.f_user_name.length : 6">
19
+ </div>
20
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
21
+ <label class="font_normal_body" style="width: 40%">开始时间</label>
22
+ <datepicker placeholder="维修完成时间"
23
+ :value.sync="model.f_date_start"
24
+ v-model="model.f_date_start"
25
+ :format="'yyyy-MM-dd 00:00:00'"
26
+ condition="f_date > '{}'"
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%">结束时间</label>
31
+ <datepicker placeholder="维修完成时间"
32
+ :value.sync="model.f_date_end"
33
+ v-model="model.f_date_end"
34
+ :format="'yyyy-MM-dd 23:59:59'"
35
+ condition="f_date < '{}'"
36
+ ></datepicker>
37
+ </div>
38
+ <div class="form-group col-sm-3 button-range">
39
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
40
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+ <export-excel :data="$parent.$parent.getCondition"
42
+ :field="$parent.$parent.getfield"
43
+ sqlurl="rs/logic/telephoneExport"
44
+ sql-name="changeTable"
45
+ template-name='工单换表记录'
46
+ :choose-col="true"></export-excel>
47
+ <div style="float: right;" class="button_spacing button_search"
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
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
54
+ <label class="font_normal_body" style="width: 40%">客户编号</label>
55
+ <input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
56
+ condition="tswo.f_userinfo_code like '%{}%'"
57
+ :size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
58
+ </div>
59
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
60
+ <label class="font_normal_body" style="width: 40%">联系电话</label>
61
+ <input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
62
+ condition="tswo.f_contact_phone like '%{}%'"
63
+ :size="model.f_contact_phone ? model.f_contact_phone.length : 6">
64
+ </div>
65
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
66
+ <label class="font_normal_body" style="width: 40%">地&emsp;&emsp;址</label>
67
+ <input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
68
+ condition="tswo.f_address like '%{}%'"
69
+ :size="model.f_address ? model.f_address.length : 4">
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </criteria>
74
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
75
+ <template partial='head'>
76
+ <tr>
77
+ <th><nobr>序号</nobr></th>
78
+ <th><nobr>工单编号</nobr></th>
79
+ <th><nobr>用户编号</nobr></th>
80
+ <th><nobr>用户名称</nobr></th>
81
+ <th><nobr>用户地址</nobr></th>
82
+ <th><nobr>联系电话</nobr></th>
83
+ <th><nobr>是否换表</nobr></th>
84
+ <th><nobr>换表类型</nobr></th>
85
+ <th><nobr>换表原因</nobr></th>
86
+ <th><nobr>旧表底数</nobr></th>
87
+ <th><nobr>旧表剩余气量</nobr></th>
88
+ <th><nobr>累用金额</nobr></th>
89
+ <th><nobr>剩余金额</nobr></th>
90
+ <th><nobr>表向</nobr></th>
91
+ <th><nobr>防盗卡1</nobr></th>
92
+ <th><nobr>防盗卡2</nobr></th>
93
+ <th><nobr>出厂日期</nobr></th>
94
+ <th><nobr>表位置</nobr></th>
95
+ <th><nobr>气表品牌</nobr></th>
96
+ <th><nobr>气表型号</nobr></th>
97
+ <th><nobr>新表号</nobr></th>
98
+ <th><nobr>新表底数</nobr></th>
99
+ <th><nobr>补气量</nobr></th>
100
+ <th><nobr>补气金额</nobr></th>
101
+ <th><nobr>换表费用</nobr></th>
102
+ <th><nobr>备注</nobr></th>
103
+ <th><nobr>完成时间</nobr></th>
104
+ </tr>
105
+ </template>
106
+ <template partial='body'>
107
+ <tr >
108
+ <td style="text-align: center;">
109
+ <nobr><font>{{$index+1}}</font></nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr><font>{{ row.f_service_id}}</font></nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr><font>{{ row.f_userinfo_code}}</font></nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr><font>{{ row.f_user_name}}</font></nobr>
119
+ </td>
120
+ <td style="text-align: center;">
121
+ <nobr><font>{{ row.f_address}}</font></nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr><font>{{ row.f_contact_phone}}</font></nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr><font>{{ row.是否换表 }}</font></nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr><font>{{ row.换表类型 }}</font></nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr><font>{{ row.换表原因 }}</font></nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr><font>{{ row.旧表底数 }}</font></nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr><font>{{ row.旧表剩余气量 }}</font></nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr><font>{{ row.累用金额 }}</font></nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr><font>{{ row.剩余金额 }}</font></nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr><font>{{ row.表向 }}</font></nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr><font>{{ row.防盗卡1 }}</font></nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr><font>{{ row.防盗卡2 }}</font></nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr><font>{{ row.出厂日期 }}</font></nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr><font>{{ row.表位置 }}</font></nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr><font>{{ row.气表品牌 }}</font></nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr><font>{{ row.气表型号 }}</font></nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr><font>{{ row.新表号 }}</font></nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr><font>{{ row.新表底数 }}</font></nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr><font>{{ row.补气量 }}</font></nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr><font>{{ row.补气金额 }}</font></nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr><font>{{ row.换表费用 }}</font></nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr><font>{{ row.备注 }}</font></nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <nobr><font>{{ row.f_date }}</font></nobr>
188
+ </td>
189
+ </tr>
190
+ </template>
191
+ </data-grid>
192
+ </criteria-paged>
193
+ </div>
194
+
195
+ </div>
196
+ </template>
197
+
198
+ <script>
199
+ import {PagedList} from 'vue-client'
200
+ export default {
201
+ title: '工单换表记录',
202
+ data () {
203
+ return {
204
+ model: new PagedList('rs/sql/changeTable', 30, {
205
+ f_orgid: 'this.model.f_orgid'
206
+ }),
207
+ criteriaShow: false,
208
+ getfield: {
209
+ 'f_service_id': '工单编号',
210
+ 'f_userinfo_code': '客户编号',
211
+ 'f_user_name': '客户名称',
212
+ 'f_address': '用户地址',
213
+ 'f_contact_phone': '联系电话',
214
+ '是否换表':'是否换表',
215
+ '换表类型':'换表类型',
216
+ '换表原因':'换表原因',
217
+ '旧表底数':'旧表底数',
218
+ '旧表剩余气量':'旧表剩余气量',
219
+ '累用金额':'累用金额',
220
+ '剩余金额':'剩余金额',
221
+ '表向':'表向',
222
+ '防盗卡1':'防盗卡1',
223
+ '防盗卡2':'防盗卡2',
224
+ '出厂日期':'出厂日期',
225
+ '表位置':'表位置',
226
+ '气表品牌':'气表品牌',
227
+ '气表型号':'气表型号',
228
+ '新表号':'新表号',
229
+ '新表底数':'新表底数',
230
+ '补气量':'补气量',
231
+ '补气金额':'补气金额',
232
+ '换表费用':'换表费用',
233
+ '备注':'备注',
234
+ 'f_date': '完成时间'
235
+ }
236
+ }
237
+ },
238
+ ready () {
239
+ // 调用查询
240
+ this.$refs.cp.$refs.cri.model.f_orgid = this.$login.f.orgid
241
+ this.search()
242
+ },
243
+ methods: {
244
+ clear () {
245
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
246
+ this.$refs.cp.$refs.cri.model[key] = ''
247
+ })
248
+ },
249
+ searchCondition (args) {
250
+ this.$refs.cp.$refs.cri.model.f_orgid = this.$login.f.orgid
251
+ this.model.search(args.condition, args.model)
252
+ },
253
+ // 查询
254
+ search () {
255
+ this.$refs.cp.$refs.cri.search()
256
+ },
257
+ hidden () {
258
+ this.criteriaShow = !this.criteriaShow
259
+ },
260
+ },
261
+ computed: {
262
+ getCondition () {
263
+ return {
264
+ condition: this.model.condition,
265
+ f_orgid: this.$login.f.orgid
266
+ }
267
+ }
268
+ }
269
+ }
270
+ </script>
271
+
272
+ <style scoped>
273
+ </style>
@@ -13,6 +13,7 @@ let specialComp = {
13
13
  'new-repair-paper': (resolve) => { require(['./pc/NewRepairPaper'], resolve)},
14
14
  'tel-material-detailed': (resolve) => { require(['./pc/MaterialDetailed'], resolve)},
15
15
  'material-statistics': (resolve) => { require(['./pc/MaterialStatistics'], resolve)},
16
+ 'change-table': (resolve) => { require(['./pc/changetable'], resolve)},
16
17
  }
17
18
  exports.specialComp = specialComp
18
19