telephone-clients 3.0.105-23 → 3.0.105-24

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.105-23",
3
+ "version": "3.0.105-24",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,468 +1,468 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
- .app-row {
8
- background-color: white;
9
- padding: 10px 10px 0 10px;
10
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
- }
12
- .search_input {
13
- border: 0;
14
- outline: none;
15
- }
16
- .font{
17
- font: 15px PingFang-SC-Medium;
18
- color: #666666;
19
- }
20
- .input-font{
21
- font: 15px PingFang-SC-Medium;
22
- color: #333333;
23
- }
24
- .btn-font{
25
- font:600 16px PingFang-SC-Bold;
26
- color: #499EDF;
27
- }
28
- .btn-color{
29
- background-color: #FFFFFF;
30
- border-radius: 10px ;
31
- border: 1px solid #499EDF;
32
- }
33
- .app-text {
34
- font-size: 12px;
35
- }
36
- .panel-self{
37
- border-radius: 10px;
38
- border:1px solid #499EDF;
39
- background-color: #F8F8F8;
40
- }
41
- .btn_cz {
42
- background-color: #499edf;
43
- color:#FFFFFF;
44
- width: 55px;
45
- margin-right: 2%;
46
- margin-top: 10px;
47
- height: 38px;
48
- border-radius: 9px;
49
- font: 600 17px PingFang-SC-Bold;
50
- }
51
-
52
- .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
53
- .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
54
- .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
55
- .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
56
- </style>
57
-
58
- <template>
59
- <div style="height: auto;width: 100%">
60
- <criteria-paged :model="model" v-ref:paged>
61
- <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
62
- <div partial>
63
- <form>
64
- <div class="row app-row">
65
- <div class="col-xs-4">
66
- <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
67
- <label class="font text-left">用户编号:</label>
68
- </div>
69
- <div class="col-xs-8" >
70
- <input class="search_input input-font" v-model="model.f_userinfo_code" condition="ui.f_userinfo_code = '{}'" />
71
- </div>
72
- </div>
73
- <div class="row app-row">
74
- <div class="col-xs-4">
75
- <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
76
- <label class="font text-left">用户姓名:</label>
77
- </div>
78
- <div class="col-xs-8" >
79
- <input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name like '%{}%'" />
80
- </div>
81
- </div>
82
- <div class="row app-row">
83
- <div class="col-xs-4">
84
- <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
85
- <label class="font text-left">用户地址:</label>
86
- </div>
87
- <div class="col-xs-8" >
88
- <input class="search_input input-font" v-model="model.f_address" condition="ua.f_address like '%{}%'" />
89
- </div>
90
- </div>
91
- <div class="row app-row">
92
- <div class="col-xs-4">
93
- <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
94
- <label class="font text-left">用户表号:</label>
95
- </div>
96
- <div class="col-xs-8" >
97
- <input class="search_input input-font" v-model="model.f_meternumber" condition=" uf.f_meternumber = '{}'" />
98
- </div>
99
- </div>
100
- <div class="row app-row">
101
- <div class="col-xs-4">
102
- <img src="../../assets/卡号 (1).png" style="width: 20px;margin-bottom: 5px" alt="">
103
- <label class="font text-left">用户卡号:</label>
104
- </div>
105
- <div class="col-xs-8" >
106
- <input class="search_input input-font" v-model="model.f_card_id" condition=" uf.f_card_id = '{}'" />
107
- </div>
108
- </div>
109
- <div class="row app-row">
110
- <div class="col-xs-4">
111
- <img src="../../assets/表名.png" style="width: 20px;margin-bottom: 5px" alt="">
112
- <label class="font text-left">表别名:</label>
113
- </div>
114
- <div class="col-xs-8" >
115
- <input class="search_input input-font" v-model="model.f_alias" condition=" gb.f_alias = '{}'" />
116
- </div>
117
- </div>
118
- <div class="row text-center" style="margin-top: 20px;text-align: center">
119
- <button type="button" class="btn btn-lg btn-font" style="width: 25%;margin-right: 3%; background-color: #499edf;color:#FFFFFF;border-radius: 10px ;" @click="search()">查询</button>
120
- <button type="button" class="btn btn-lg btn-font btn-color" v-show="$parent.$parent.ispos" style="width: 25%;margin-right: 3%" @click="$parent.$parent.poscard">POS读卡</button>
121
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;margin-right: 3%" @click="$parent.$parent.Scanningtable">扫表号</button>
122
- </div>
123
- <!--<div class="row text-center" style="margin-top: 20px;">
124
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.searchBluetooth">扫描蓝牙</button>
125
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.gotoReadCard">蓝牙读卡</button>
126
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.poscard" v-if="$parent.$parent.ispos">POS读卡</button>
127
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.Scanningtable">扫表号</button>
128
- </div>-->
129
- <div style="height:20px;"></div>
130
- </form>
131
- </div>
132
- </criteria>
133
- <list :model="model" partial='list'>
134
- <div partial>
135
- <div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.selectopt(row)">
136
- <div class="panel" style="padding: 10px 10px 5px 10px;">
137
- <div class="panel-body panel-self">
138
- <div class="col-xs-12">
139
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户编号:</b></p>
140
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_userinfo_code }}</p>
141
- </div>
142
- <div class="col-xs-12">
143
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户名称:</b></p>
144
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_name }}</p>
145
- </div>
146
- <div class="col-xs-12">
147
- <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
148
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
149
- </p>
150
- </div>
151
- <div class="col-xs-12">
152
- <p class="panel-title col-xs-5 text-left font"><b>用户电话:</b></p>
153
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_phone }}
154
- </p>
155
- </div>
156
- <div class="col-xs-12">
157
- <p class="panel-title col-xs-5 text-left font"><b>用户地址:</b></p>
158
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_address }}</p>
159
- </div>
160
- <div class="col-xs-12">
161
- <p class="panel-title col-xs-5 text-left font"><b>燃气表号:</b></p>
162
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meternumber }}</p>
163
- </div>
164
- <!--<div class="col-xs-12">
165
- <p class="panel-title col-xs-5 text-left font"><b>左右表:</b></p>
166
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_aroundmeter }}</p>
167
- </div>-->
168
- <div class="col-xs-12">
169
- <p class="panel-title col-xs-5 text-left font"><b>气表品牌:</b></p>
170
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_brand }}</p>
171
- </div>
172
- <div class="col-xs-12">
173
- <p class="panel-title col-xs-5 text-left font"><b>气表类型:</b></p>
174
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_type }}</p>
175
- </div>
176
- <div class="col-xs-12">
177
- <p class="panel-title col-xs-5 text-left font"><b>气表分类:</b></p>
178
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_collection_type }}</p>
179
- </div>
180
- <div class="col-xs-12">
181
- <p class="panel-title col-xs-5 text-left font"><b>气表底数:</b></p>
182
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_base }}</p>
183
- </div>
184
- <div class="col-xs-12">
185
- <p class="panel-title col-xs-5 text-left font"><b>累计气量:</b></p>
186
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}</p>
187
- </div>
188
- <div class="col-xs-12">
189
- <p class="panel-title col-xs-5 text-left font"><b>累计金额:</b></p>
190
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}</p>
191
- </div>
192
- <!--<div class="col-xs-6">
193
- <p class="panel-title col-xs-5 text-left font"><b>阀门状态:</b></p>
194
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_valve_state }}</p>
195
- </div>
196
- <div class="col-xs-6">
197
- <button class="btn btn-font btn-color" type="button" style="width: 28%;padding: 2px 5px;" v-show="row.f_valve_state.indexOf('关阀')>=0" @click="$parent.$parent.$parent.openvalve(row.f_meternumber)">开阀</button>
198
- <button class="btn btn-font btn-color" type="button" style="width: 28%;padding: 2px 5px;" v-show="row.f_valve_state.indexOf('开阀')>=0" @click="$parent.$parent.$parent.clonevalve(row.f_meternumber)">关阀</button>
199
- </div>-->
200
- </div>
201
- </div>
202
- </div>
203
- </div>
204
- </list>
205
- </criteria-paged>
206
-
207
- <modal :show.sync="model_f" v-ref:modal>
208
- <div slot="modal-header" class="modal-header">
209
- <h4 class="modal-title">
210
- 卡信息
211
- </h4>
212
- </div>
213
- <div slot="modal-body" class="modal-body">
214
- <div class="flex">
215
- <div class="row">
216
- <label class="col-sm-2">卡号:</label>
217
- <span class = "col-sm-3">{{cardinfo.CardID}}</span>
218
- </div>
219
- <div class="row">
220
- <label class="col-sm-2">厂名:</label>
221
- <span class = "col-sm-3">{{cardinfo.Factory}}</span>
222
- </div>
223
- <div class="row">
224
- <label class="col-sm-2">气量:</label>
225
- <span class = "col-sm-3">{{cardinfo.Gas}}</span>
226
- </div>
227
- <div class="row">
228
- <label class="col-sm-2">金额:</label>
229
- <span class = "col-sm-3">{{cardinfo.Money}}</span>
230
- </div>
231
- <div class="row">
232
- <label class="col-sm-2">写卡次数:</label>
233
- <span class = "col-sm-3">{{cardinfo.Times}}</span>
234
- </div>
235
- </div>
236
- </div>
237
- <div slot="modal-footer" class="modal-footer">
238
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">关闭</button>
239
- </div>
240
- </modal>
241
- <work-busy :is-busy="isworking"></work-busy>
242
-
243
-
244
- </div>
245
- </template>
246
-
247
- <script>
248
- import Vue from 'vue'
249
- import { PagedList,HttpResetClass } from 'vue-client'
250
-
251
-
252
-
253
-
254
- export default {
255
- title: '在线查询',
256
- data() {
257
- return {
258
- model_f: false,
259
- ispos: true,
260
- cardinfo: {},
261
- userinfo: {},
262
- operation: '',
263
- isworking: false,
264
- timer: null,
265
- timer2: null,
266
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/onlinequeryuser`,5),
267
- f_operator: Vue.user.name,
268
- f_orgid : Vue.user.orgid
269
- // model:new PagedList( `rs/sql/onlinequeryuser`,5),
270
- // f_operator: '温艺轩',
271
- // f_orgid : '21142'
272
-
273
- }
274
- },
275
- ready(){
276
- //tag
277
- if(Vue.config.telephone != undefined){
278
- if(Vue.config.telephone.ApproveConfig != undefined){
279
- this.ispos = Vue.config.telephone.ApproveConfig.ispos
280
- //tag)
281
-
282
- }else {
283
- //tag
284
- }
285
- }
286
-
287
- },
288
-
289
- methods: {
290
- selfsearch(args){
291
- if(args.condition == ' 1=1 '){
292
- this.$showMessage(' 请输入条件...')
293
- return
294
- }else {
295
- args.condition += ` and uf.f_orgid = '${this.f_orgid}' and f_table_state = '正常' `
296
- // 取消分公司
297
- // args.condition += ` and f_table_state = '正常' `
298
- // args.condition += ` and uf.f_orgid = '454' and f_table_state = '正常' `
299
- //tag
300
- //tag
301
- this.model.search(args.condition)
302
- }
303
-
304
-
305
- },
306
- poscard2 () {
307
- if (this.ispos) {
308
- let fengongsi = this.$appdata.getSingleValue('分公司')
309
- if (!fengongsi) {
310
- this.$showMessage('分公司获取失败!')
311
- return
312
- }
313
- let _this = this
314
- //tag
315
- var pardate = {
316
- _this:_this,
317
- title:'POS读卡',
318
- safe:false
319
- }
320
- _this.$dispatch('gotoson',pardate)
321
- _this.$goto('tel_readcard', {fengongsi: fengongsi}, 'self',_this.workingback)
322
- }else {
323
- this.$showMessage('该设备暂不支持读卡')
324
- }
325
-
326
- },
327
- workingback(val) {
328
- //tag)
329
- if(val){
330
- this.$showMessage(val.msg)
331
- if (val.msg == '读卡成功!') {
332
- this.cardinfo = val.data.msg
333
- this.$refs.paged.$refs.cri.model.f_card_id = val.data.msg.CardID // 卡号
334
- this.$refs.paged.$refs.cri.model.f_alias = val.data.msg.Factory // 表别名
335
- this.model_f = true
336
- }
337
- }
338
- },
339
- poscard() {
340
- //tag
341
- if (this.ispos) {
342
- let fengongsi = this.$appdata.getSingleValue('分公司')
343
- if (!fengongsi) {
344
- this.$showMessage('分公司获取失败!')
345
- return
346
- }
347
- //tag
348
- this.isworking = true
349
- this.timer = setTimeout(this.aa,"10000")
350
- this.timer2 = setTimeout(this.bb,"2000")
351
- } else {
352
- this.$showMessage('该设备暂不支持')
353
- }
354
-
355
- },
356
- aa() {
357
- //tag
358
- this.isworking = false
359
- clearTimeout(this.timer);
360
- clearTimeout(this.timer2);
361
- },
362
- bb() {
363
- let fengongsi = this.$appdata.getSingleValue('分公司')
364
- let posinfo2 = HostApp.read(fengongsi)
365
- //tag)
366
- if(posinfo2.code == 200){
367
- //tag
368
- this.isworking = false
369
- this.cardinfo = posinfo2.msg
370
- this.$refs.paged.$refs.cri.model.f_card_id = posinfo2.msg.CardID // 卡号
371
- this.$refs.paged.$refs.cri.model.f_alias = posinfo2.msg.Factory // 表别名
372
- this.model_f = true
373
- }else {
374
- this.isworking = false
375
- this.$showMessage(posinfo2.msg)
376
- }
377
- },
378
- selectopt(row) {
379
- let _this = this
380
- //tag
381
- //tag)
382
- var pardate = {
383
- _this:_this,
384
- title:'选择操作',
385
- safe:false
386
- }
387
- _this.$dispatch('gotoson',pardate)
388
- _this.$goto('online-operation', {item: row,cardinfo2:this.cardinfo}, 'self')
389
- },
390
- openvalve (f_meternumber) {
391
- //tag
392
- var data = {
393
- f_meternumber: `${f_meternumber}`,
394
- type: '开阀',
395
- f_operator: `${this.f_operator}`
396
- }
397
- //tag)
398
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/openfileorvalve`, {data: data}).then((row) => {
399
- //tag)
400
- this.$showMessage(row.data.msg)
401
- }).catch((e) => {
402
- //tag
403
- //tag)
404
- })
405
- },
406
- clonevalve (f_meternumber) {
407
- //tag
408
- var data = {
409
- f_meternumber: `${f_meternumber}`,
410
- type: '关阀',
411
- f_operator: `${this.f_operator}`
412
- }
413
- //tag)
414
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/openfileorvalve`, {data: data}).then((row) => {
415
- //tag
416
- this.$showMessage(row.data.msg)
417
- }).catch((e) => {
418
- //tag
419
- //tag)
420
- })
421
- },
422
- cancel() {
423
- //tag
424
- this.model_f = false
425
- },
426
- searchBluetooth() {
427
- //tag
428
- HostApp.searchPRMT()
429
- },
430
- gotoReadCard() {
431
- //tag
432
- let isConnect = HostApp.isConnect().data
433
- //tag)
434
- if(isConnect) {
435
- //tag
436
- let blueinfo = HostApp.read("XianYang")
437
- //tag)
438
- if(blueinfo.code == 200){
439
- this.$showMessage('读卡成功,请点击查询按钮')
440
- this.$refs.paged.$refs.cri.model.f_card_id = blueinfo.msg.CardID // 卡号
441
- this.$refs.paged.$refs.cri.model.f_alias = blueinfo.msg.Factory // 表别名
442
- }else {
443
- this.$showMessage(posinfo.msg)
444
- }
445
- }else {
446
- //tag
447
- this.$showMessage('连接失败!请打开蓝牙或蓝牙读卡器')
448
- }
449
- },
450
- Scanningtable() {
451
- //tag
452
- HostApp.__this__=this
453
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
454
- },
455
- getCode(){
456
- var datapa = HostApp.getCode().data;
457
- //tag
458
- this.$refs.paged.$refs.cri.model.f_meternumber = datapa
459
- this.$showMessage(`扫码返回值为:${datapa}`)
460
-
461
- }
462
-
463
- }
464
- }
465
-
466
-
467
-
468
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+ .app-row {
8
+ background-color: white;
9
+ padding: 10px 10px 0 10px;
10
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
+ }
12
+ .search_input {
13
+ border: 0;
14
+ outline: none;
15
+ }
16
+ .font{
17
+ font: 15px PingFang-SC-Medium;
18
+ color: #666666;
19
+ }
20
+ .input-font{
21
+ font: 15px PingFang-SC-Medium;
22
+ color: #333333;
23
+ }
24
+ .btn-font{
25
+ font:600 16px PingFang-SC-Bold;
26
+ color: #499EDF;
27
+ }
28
+ .btn-color{
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px ;
31
+ border: 1px solid #499EDF;
32
+ }
33
+ .app-text {
34
+ font-size: 12px;
35
+ }
36
+ .panel-self{
37
+ border-radius: 10px;
38
+ border:1px solid #499EDF;
39
+ background-color: #F8F8F8;
40
+ }
41
+ .btn_cz {
42
+ background-color: #499edf;
43
+ color:#FFFFFF;
44
+ width: 55px;
45
+ margin-right: 2%;
46
+ margin-top: 10px;
47
+ height: 38px;
48
+ border-radius: 9px;
49
+ font: 600 17px PingFang-SC-Bold;
50
+ }
51
+
52
+ .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
53
+ .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
54
+ .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
55
+ .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
56
+ </style>
57
+
58
+ <template>
59
+ <div style="height: auto;width: 100%">
60
+ <criteria-paged :model="model" v-ref:paged>
61
+ <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
62
+ <div partial>
63
+ <form>
64
+ <div class="row app-row">
65
+ <div class="col-xs-4">
66
+ <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
67
+ <label class="font text-left">用户编号:</label>
68
+ </div>
69
+ <div class="col-xs-8" >
70
+ <input class="search_input input-font" v-model="model.f_userinfo_code" condition="ui.f_userinfo_code = '{}'" />
71
+ </div>
72
+ </div>
73
+ <div class="row app-row">
74
+ <div class="col-xs-4">
75
+ <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
76
+ <label class="font text-left">用户姓名:</label>
77
+ </div>
78
+ <div class="col-xs-8" >
79
+ <input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name like '%{}%'" />
80
+ </div>
81
+ </div>
82
+ <div class="row app-row">
83
+ <div class="col-xs-4">
84
+ <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
85
+ <label class="font text-left">用户地址:</label>
86
+ </div>
87
+ <div class="col-xs-8" >
88
+ <input class="search_input input-font" v-model="model.f_address" condition="ua.f_address like '%{}%'" />
89
+ </div>
90
+ </div>
91
+ <div class="row app-row">
92
+ <div class="col-xs-4">
93
+ <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
94
+ <label class="font text-left">用户表号:</label>
95
+ </div>
96
+ <div class="col-xs-8" >
97
+ <input class="search_input input-font" v-model="model.f_meternumber" condition=" uf.f_meternumber = '{}'" />
98
+ </div>
99
+ </div>
100
+ <div class="row app-row">
101
+ <div class="col-xs-4">
102
+ <img src="../../assets/卡号 (1).png" style="width: 20px;margin-bottom: 5px" alt="">
103
+ <label class="font text-left">用户卡号:</label>
104
+ </div>
105
+ <div class="col-xs-8" >
106
+ <input class="search_input input-font" v-model="model.f_card_id" condition=" uf.f_card_id = '{}'" />
107
+ </div>
108
+ </div>
109
+ <div class="row app-row">
110
+ <div class="col-xs-4">
111
+ <img src="../../assets/表名.png" style="width: 20px;margin-bottom: 5px" alt="">
112
+ <label class="font text-left">表别名:</label>
113
+ </div>
114
+ <div class="col-xs-8" >
115
+ <input class="search_input input-font" v-model="model.f_alias" condition=" gb.f_alias = '{}'" />
116
+ </div>
117
+ </div>
118
+ <div class="row text-center" style="margin-top: 20px;text-align: center">
119
+ <button type="button" class="btn btn-lg btn-font" style="width: 25%;margin-right: 3%; background-color: #499edf;color:#FFFFFF;border-radius: 10px ;" @click="search()">查询</button>
120
+ <button type="button" class="btn btn-lg btn-font btn-color" v-show="$parent.$parent.ispos" style="width: 25%;margin-right: 3%" @click="$parent.$parent.poscard">POS读卡</button>
121
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;margin-right: 3%" @click="$parent.$parent.Scanningtable">扫表号</button>
122
+ </div>
123
+ <!--<div class="row text-center" style="margin-top: 20px;">
124
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.searchBluetooth">扫描蓝牙</button>
125
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.gotoReadCard">蓝牙读卡</button>
126
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.poscard" v-if="$parent.$parent.ispos">POS读卡</button>
127
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.Scanningtable">扫表号</button>
128
+ </div>-->
129
+ <div style="height:20px;"></div>
130
+ </form>
131
+ </div>
132
+ </criteria>
133
+ <list :model="model" partial='list'>
134
+ <div partial>
135
+ <div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.selectopt(row)">
136
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
137
+ <div class="panel-body panel-self">
138
+ <div class="col-xs-12">
139
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户编号:</b></p>
140
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_userinfo_code }}</p>
141
+ </div>
142
+ <div class="col-xs-12">
143
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户名称:</b></p>
144
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_name }}</p>
145
+ </div>
146
+ <div class="col-xs-12">
147
+ <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
148
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
149
+ </p>
150
+ </div>
151
+ <div class="col-xs-12">
152
+ <p class="panel-title col-xs-5 text-left font"><b>用户电话:</b></p>
153
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_phone }}
154
+ </p>
155
+ </div>
156
+ <div class="col-xs-12">
157
+ <p class="panel-title col-xs-5 text-left font"><b>用户地址:</b></p>
158
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_address }}</p>
159
+ </div>
160
+ <div class="col-xs-12">
161
+ <p class="panel-title col-xs-5 text-left font"><b>燃气表号:</b></p>
162
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meternumber }}</p>
163
+ </div>
164
+ <!--<div class="col-xs-12">
165
+ <p class="panel-title col-xs-5 text-left font"><b>左右表:</b></p>
166
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_aroundmeter }}</p>
167
+ </div>-->
168
+ <div class="col-xs-12">
169
+ <p class="panel-title col-xs-5 text-left font"><b>气表品牌:</b></p>
170
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_brand }}</p>
171
+ </div>
172
+ <div class="col-xs-12">
173
+ <p class="panel-title col-xs-5 text-left font"><b>气表类型:</b></p>
174
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_type }}</p>
175
+ </div>
176
+ <div class="col-xs-12">
177
+ <p class="panel-title col-xs-5 text-left font"><b>气表分类:</b></p>
178
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_collection_type }}</p>
179
+ </div>
180
+ <div class="col-xs-12">
181
+ <p class="panel-title col-xs-5 text-left font"><b>气表底数:</b></p>
182
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_base }}</p>
183
+ </div>
184
+ <div class="col-xs-12">
185
+ <p class="panel-title col-xs-5 text-left font"><b>累计气量:</b></p>
186
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}</p>
187
+ </div>
188
+ <div class="col-xs-12">
189
+ <p class="panel-title col-xs-5 text-left font"><b>累计金额:</b></p>
190
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}</p>
191
+ </div>
192
+ <!--<div class="col-xs-6">
193
+ <p class="panel-title col-xs-5 text-left font"><b>阀门状态:</b></p>
194
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_valve_state }}</p>
195
+ </div>
196
+ <div class="col-xs-6">
197
+ <button class="btn btn-font btn-color" type="button" style="width: 28%;padding: 2px 5px;" v-show="row.f_valve_state.indexOf('关阀')>=0" @click="$parent.$parent.$parent.openvalve(row.f_meternumber)">开阀</button>
198
+ <button class="btn btn-font btn-color" type="button" style="width: 28%;padding: 2px 5px;" v-show="row.f_valve_state.indexOf('开阀')>=0" @click="$parent.$parent.$parent.clonevalve(row.f_meternumber)">关阀</button>
199
+ </div>-->
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </list>
205
+ </criteria-paged>
206
+
207
+ <modal :show.sync="model_f" v-ref:modal>
208
+ <div slot="modal-header" class="modal-header">
209
+ <h4 class="modal-title">
210
+ 卡信息
211
+ </h4>
212
+ </div>
213
+ <div slot="modal-body" class="modal-body">
214
+ <div class="flex">
215
+ <div class="row">
216
+ <label class="col-sm-2">卡号:</label>
217
+ <span class = "col-sm-3">{{cardinfo.CardID}}</span>
218
+ </div>
219
+ <div class="row">
220
+ <label class="col-sm-2">厂名:</label>
221
+ <span class = "col-sm-3">{{cardinfo.Factory}}</span>
222
+ </div>
223
+ <div class="row">
224
+ <label class="col-sm-2">气量:</label>
225
+ <span class = "col-sm-3">{{cardinfo.Gas}}</span>
226
+ </div>
227
+ <div class="row">
228
+ <label class="col-sm-2">金额:</label>
229
+ <span class = "col-sm-3">{{cardinfo.Money}}</span>
230
+ </div>
231
+ <div class="row">
232
+ <label class="col-sm-2">写卡次数:</label>
233
+ <span class = "col-sm-3">{{cardinfo.Times}}</span>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ <div slot="modal-footer" class="modal-footer">
238
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">关闭</button>
239
+ </div>
240
+ </modal>
241
+ <work-busy :is-busy="isworking"></work-busy>
242
+
243
+
244
+ </div>
245
+ </template>
246
+
247
+ <script>
248
+ import Vue from 'vue'
249
+ import { PagedList,HttpResetClass } from 'vue-client'
250
+
251
+
252
+
253
+
254
+ export default {
255
+ title: '在线查询',
256
+ data() {
257
+ return {
258
+ model_f: false,
259
+ ispos: true,
260
+ cardinfo: {},
261
+ userinfo: {},
262
+ operation: '',
263
+ isworking: false,
264
+ timer: null,
265
+ timer2: null,
266
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/onlinequeryuser`,5),
267
+ f_operator: Vue.user.name,
268
+ f_orgid : Vue.user.orgid
269
+ // model:new PagedList( `rs/sql/onlinequeryuser`,5),
270
+ // f_operator: '温艺轩',
271
+ // f_orgid : '21142'
272
+
273
+ }
274
+ },
275
+ ready(){
276
+ //tag
277
+ if(Vue.config.telephone != undefined){
278
+ if(Vue.config.telephone.ApproveConfig != undefined){
279
+ this.ispos = Vue.config.telephone.ApproveConfig.ispos
280
+ //tag)
281
+
282
+ }else {
283
+ //tag
284
+ }
285
+ }
286
+
287
+ },
288
+
289
+ methods: {
290
+ selfsearch(args){
291
+ if(args.condition == ' 1=1 '){
292
+ this.$showMessage(' 请输入条件...')
293
+ return
294
+ }else {
295
+ args.condition += ` and uf.f_orgid = '${this.f_orgid}' `
296
+ // 取消分公司
297
+ // args.condition += ` and f_table_state = '正常' `
298
+ // args.condition += ` and uf.f_orgid = '454' and f_table_state = '正常' `
299
+ //tag
300
+ //tag
301
+ this.model.search(args.condition)
302
+ }
303
+
304
+
305
+ },
306
+ poscard2 () {
307
+ if (this.ispos) {
308
+ let fengongsi = this.$appdata.getSingleValue('分公司')
309
+ if (!fengongsi) {
310
+ this.$showMessage('分公司获取失败!')
311
+ return
312
+ }
313
+ let _this = this
314
+ //tag
315
+ var pardate = {
316
+ _this:_this,
317
+ title:'POS读卡',
318
+ safe:false
319
+ }
320
+ _this.$dispatch('gotoson',pardate)
321
+ _this.$goto('tel_readcard', {fengongsi: fengongsi}, 'self',_this.workingback)
322
+ }else {
323
+ this.$showMessage('该设备暂不支持读卡')
324
+ }
325
+
326
+ },
327
+ workingback(val) {
328
+ //tag)
329
+ if(val){
330
+ this.$showMessage(val.msg)
331
+ if (val.msg == '读卡成功!') {
332
+ this.cardinfo = val.data.msg
333
+ this.$refs.paged.$refs.cri.model.f_card_id = val.data.msg.CardID // 卡号
334
+ this.$refs.paged.$refs.cri.model.f_alias = val.data.msg.Factory // 表别名
335
+ this.model_f = true
336
+ }
337
+ }
338
+ },
339
+ poscard() {
340
+ //tag
341
+ if (this.ispos) {
342
+ let fengongsi = this.$appdata.getSingleValue('分公司')
343
+ if (!fengongsi) {
344
+ this.$showMessage('分公司获取失败!')
345
+ return
346
+ }
347
+ //tag
348
+ this.isworking = true
349
+ this.timer = setTimeout(this.aa,"10000")
350
+ this.timer2 = setTimeout(this.bb,"2000")
351
+ } else {
352
+ this.$showMessage('该设备暂不支持')
353
+ }
354
+
355
+ },
356
+ aa() {
357
+ //tag
358
+ this.isworking = false
359
+ clearTimeout(this.timer);
360
+ clearTimeout(this.timer2);
361
+ },
362
+ bb() {
363
+ let fengongsi = this.$appdata.getSingleValue('分公司')
364
+ let posinfo2 = HostApp.read(fengongsi)
365
+ //tag)
366
+ if(posinfo2.code == 200){
367
+ //tag
368
+ this.isworking = false
369
+ this.cardinfo = posinfo2.msg
370
+ this.$refs.paged.$refs.cri.model.f_card_id = posinfo2.msg.CardID // 卡号
371
+ this.$refs.paged.$refs.cri.model.f_alias = posinfo2.msg.Factory // 表别名
372
+ this.model_f = true
373
+ }else {
374
+ this.isworking = false
375
+ this.$showMessage(posinfo2.msg)
376
+ }
377
+ },
378
+ selectopt(row) {
379
+ let _this = this
380
+ //tag
381
+ //tag)
382
+ var pardate = {
383
+ _this:_this,
384
+ title:'选择操作',
385
+ safe:false
386
+ }
387
+ _this.$dispatch('gotoson',pardate)
388
+ _this.$goto('online-operation', {item: row,cardinfo2:this.cardinfo}, 'self')
389
+ },
390
+ openvalve (f_meternumber) {
391
+ //tag
392
+ var data = {
393
+ f_meternumber: `${f_meternumber}`,
394
+ type: '开阀',
395
+ f_operator: `${this.f_operator}`
396
+ }
397
+ //tag)
398
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/openfileorvalve`, {data: data}).then((row) => {
399
+ //tag)
400
+ this.$showMessage(row.data.msg)
401
+ }).catch((e) => {
402
+ //tag
403
+ //tag)
404
+ })
405
+ },
406
+ clonevalve (f_meternumber) {
407
+ //tag
408
+ var data = {
409
+ f_meternumber: `${f_meternumber}`,
410
+ type: '关阀',
411
+ f_operator: `${this.f_operator}`
412
+ }
413
+ //tag)
414
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/openfileorvalve`, {data: data}).then((row) => {
415
+ //tag
416
+ this.$showMessage(row.data.msg)
417
+ }).catch((e) => {
418
+ //tag
419
+ //tag)
420
+ })
421
+ },
422
+ cancel() {
423
+ //tag
424
+ this.model_f = false
425
+ },
426
+ searchBluetooth() {
427
+ //tag
428
+ HostApp.searchPRMT()
429
+ },
430
+ gotoReadCard() {
431
+ //tag
432
+ let isConnect = HostApp.isConnect().data
433
+ //tag)
434
+ if(isConnect) {
435
+ //tag
436
+ let blueinfo = HostApp.read("XianYang")
437
+ //tag)
438
+ if(blueinfo.code == 200){
439
+ this.$showMessage('读卡成功,请点击查询按钮')
440
+ this.$refs.paged.$refs.cri.model.f_card_id = blueinfo.msg.CardID // 卡号
441
+ this.$refs.paged.$refs.cri.model.f_alias = blueinfo.msg.Factory // 表别名
442
+ }else {
443
+ this.$showMessage(posinfo.msg)
444
+ }
445
+ }else {
446
+ //tag
447
+ this.$showMessage('连接失败!请打开蓝牙或蓝牙读卡器')
448
+ }
449
+ },
450
+ Scanningtable() {
451
+ //tag
452
+ HostApp.__this__=this
453
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
454
+ },
455
+ getCode(){
456
+ var datapa = HostApp.getCode().data;
457
+ //tag
458
+ this.$refs.paged.$refs.cri.model.f_meternumber = datapa
459
+ this.$showMessage(`扫码返回值为:${datapa}`)
460
+
461
+ }
462
+
463
+ }
464
+ }
465
+
466
+
467
+
468
+ </script>