telephone-clients 4.0.0-1-89 → 4.0.0-1-91
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 +2 -2
- package/src/components/pc/MaintenanceWorker.vue +152 -0
- package/src/components/pc/NewRepairPaper.vue +704 -704
- package/src/components/pc/NewRepairTablePaper.vue +442 -442
- package/src/components/pc/WorkHistory.vue +650 -650
- package/src/components/pc/WorkListNew.vue +838 -838
- package/src/components/sendsingle/onlinecharge.vue +424 -424
- package/src/components/workorder/ChangeMeterPageNew.vue +663 -663
- package/src/components/workorder/ChangeMeterUserInfo.vue +130 -130
- package/src/components/workorder/RepairFirstV.vue +736 -736
- package/src/components/workorder/RepairInfo.vue +178 -178
- package/src/components/workorder/RepairOrderT.vue +713 -713
- package/src/components/workorder/oldMeterPage.vue +104 -104
- package/src/components/workorder/repairFirstTable.vue +715 -715
- package/src/filiale/jinhong/android/FaultAll.vue +936 -936
- package/src/filiale/jinhong/android/ZHihuanFirst.vue +540 -540
- package/src/filiale/jinhong/pc/WorkListAllNew.vue +884 -884
- package/src/filiale/jinhong/telephone.js +10 -10
- package/src/filiale/jinhong/telephoneAndroid.js +13 -13
- package/src/filiale/meihekou/android/Othercharge.vue +454 -454
- package/src/filiale/meihekou/android/PhoneStandWorkNew.vue +692 -692
- package/src/filiale/meihekou/android/ServiceOnlineQuery.vue +477 -477
- package/src/filiale/meihekou/pc/WorkListAllNew.vue +925 -901
- package/src/filiale/meihekou/pc/WorkListNew.vue +1113 -1049
- package/src/filiale/meihekou/telephoneAndroid.js +26 -26
- package/src/filiale/xinjiangdexin/telephone.js +16 -16
- package/src/filiale/xinliansihui/android/FaultAll.vue +923 -923
- package/src/filiale/xinliansihui/android/RepairFirstV.vue +734 -734
- package/src/filiale/xinliansihui/android/RepairOrderT.vue +713 -713
- package/src/main.js +1 -1
- package/src/telephone-android.js +425 -425
- package/src/telephone.js +799 -796
|
@@ -1,424 +1,424 @@
|
|
|
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
|
-
<template>
|
|
58
|
-
<div style="height: auto;width: 100%">
|
|
59
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
60
|
-
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
61
|
-
<div partial>
|
|
62
|
-
<form>
|
|
63
|
-
<div class="row app-row">
|
|
64
|
-
<div class="col-xs-4">
|
|
65
|
-
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
66
|
-
<label class="font text-left">用户编号:</label>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="col-xs-8" >
|
|
69
|
-
<input class="search_input input-font" v-model="model.f_userinfo_code" condition="ui.f_userinfo_code = '{}'" />
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="row app-row">
|
|
73
|
-
<div class="col-xs-4">
|
|
74
|
-
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
75
|
-
<label class="font text-left">用户姓名:</label>
|
|
76
|
-
</div>
|
|
77
|
-
<div class="col-xs-8" >
|
|
78
|
-
<input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name like '%{}%'" />
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="row app-row">
|
|
82
|
-
<div class="col-xs-4">
|
|
83
|
-
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
84
|
-
<label class="font text-left">用户地址:</label>
|
|
85
|
-
</div>
|
|
86
|
-
<div class="col-xs-8" >
|
|
87
|
-
<input class="search_input input-font" v-model="model.f_address" condition="ua.f_address like '%{}%'" />
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="row app-row">
|
|
91
|
-
<div class="col-xs-4">
|
|
92
|
-
<img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
93
|
-
<label class="font text-left">用户表号:</label>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="col-xs-8" >
|
|
96
|
-
<input class="search_input input-font" v-model="model.f_meternumber" condition=" uf.f_meternumber = '{}'" />
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
<div class="row app-row">
|
|
100
|
-
<div class="col-xs-4">
|
|
101
|
-
<img src="../../assets/卡号 (1).png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
102
|
-
<label class="font text-left">用户卡号:</label>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="col-xs-8" >
|
|
105
|
-
<input class="search_input input-font" v-model="model.f_card_id" condition=" uf.f_card_id = '{}'" />
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="row app-row">
|
|
109
|
-
<div class="col-xs-4">
|
|
110
|
-
<img src="../../assets/表名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
111
|
-
<label class="font text-left">表别名:</label>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="col-xs-8" >
|
|
114
|
-
<input class="search_input input-font" v-model="model.f_alias" condition=" gb.f_alias = '{}'" />
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="row text-center" style="margin-top: 20px;text-align: center">
|
|
118
|
-
<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>
|
|
119
|
-
<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>
|
|
120
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;margin-right: 3%" @click="$parent.$parent.Scanningtable">扫表号</button>
|
|
121
|
-
</div>
|
|
122
|
-
<div style="height:20px;"></div>
|
|
123
|
-
</form>
|
|
124
|
-
</div>
|
|
125
|
-
</criteria>
|
|
126
|
-
<list :model="model" partial='list'>
|
|
127
|
-
<div partial>
|
|
128
|
-
<div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.selectopt(row)">
|
|
129
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
130
|
-
<div class="panel-body panel-self">
|
|
131
|
-
<div class="col-xs-12">
|
|
132
|
-
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户编号:</b></p>
|
|
133
|
-
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_userinfo_code }}</p>
|
|
134
|
-
</div>
|
|
135
|
-
<div class="col-xs-12">
|
|
136
|
-
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户名称:</b></p>
|
|
137
|
-
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_name }}</p>
|
|
138
|
-
</div>
|
|
139
|
-
<div class="col-xs-12">
|
|
140
|
-
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
|
141
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
|
142
|
-
</p>
|
|
143
|
-
</div>
|
|
144
|
-
<div class="col-xs-12">
|
|
145
|
-
<p class="panel-title col-xs-5 text-left font"><b>用户电话:</b></p>
|
|
146
|
-
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_phone }}
|
|
147
|
-
</p>
|
|
148
|
-
</div>
|
|
149
|
-
<div class="col-xs-12">
|
|
150
|
-
<p class="panel-title col-xs-5 text-left font"><b>用户地址:</b></p>
|
|
151
|
-
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_address }}</p>
|
|
152
|
-
</div>
|
|
153
|
-
<div class="col-xs-12">
|
|
154
|
-
<p class="panel-title col-xs-5 text-left font"><b>燃气表号:</b></p>
|
|
155
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meternumber }}</p>
|
|
156
|
-
</div>
|
|
157
|
-
<div class="col-xs-12">
|
|
158
|
-
<p class="panel-title col-xs-5 text-left font"><b>气表品牌:</b></p>
|
|
159
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_brand }}</p>
|
|
160
|
-
</div>
|
|
161
|
-
<div class="col-xs-12">
|
|
162
|
-
<p class="panel-title col-xs-5 text-left font"><b>气表类型:</b></p>
|
|
163
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_type }}</p>
|
|
164
|
-
</div>
|
|
165
|
-
<div class="col-xs-12">
|
|
166
|
-
<p class="panel-title col-xs-5 text-left font"><b>气表分类:</b></p>
|
|
167
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_collection_type }}</p>
|
|
168
|
-
</div>
|
|
169
|
-
<div class="col-xs-12">
|
|
170
|
-
<p class="panel-title col-xs-5 text-left font"><b>气表底数:</b></p>
|
|
171
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_base }}</p>
|
|
172
|
-
</div>
|
|
173
|
-
<div class="col-xs-12">
|
|
174
|
-
<p class="panel-title col-xs-5 text-left font"><b>累计气量:</b></p>
|
|
175
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}</p>
|
|
176
|
-
</div>
|
|
177
|
-
<div class="col-xs-12">
|
|
178
|
-
<p class="panel-title col-xs-5 text-left font"><b>累计金额:</b></p>
|
|
179
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}</p>
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</list>
|
|
186
|
-
</criteria-paged>
|
|
187
|
-
<modal :show.sync="model_f" v-ref:modal>
|
|
188
|
-
<div slot="modal-header" class="modal-header">
|
|
189
|
-
<h4 class="modal-title">
|
|
190
|
-
卡信息
|
|
191
|
-
</h4>
|
|
192
|
-
</div>
|
|
193
|
-
<div slot="modal-body" class="modal-body">
|
|
194
|
-
<div class="flex">
|
|
195
|
-
<div class="row">
|
|
196
|
-
<label class="col-sm-2">卡号:</label>
|
|
197
|
-
<span class = "col-sm-3">{{cardinfo.CardID}}</span>
|
|
198
|
-
</div>
|
|
199
|
-
<div class="row">
|
|
200
|
-
<label class="col-sm-2">厂名:</label>
|
|
201
|
-
<span class = "col-sm-3">{{cardinfo.Factory}}</span>
|
|
202
|
-
</div>
|
|
203
|
-
<div class="row">
|
|
204
|
-
<label class="col-sm-2">气量:</label>
|
|
205
|
-
<span class = "col-sm-3">{{cardinfo.Gas}}</span>
|
|
206
|
-
</div>
|
|
207
|
-
<div class="row">
|
|
208
|
-
<label class="col-sm-2">金额:</label>
|
|
209
|
-
<span class = "col-sm-3">{{cardinfo.Money}}</span>
|
|
210
|
-
</div>
|
|
211
|
-
<div class="row">
|
|
212
|
-
<label class="col-sm-2">写卡次数:</label>
|
|
213
|
-
<span class = "col-sm-3">{{cardinfo.Times}}</span>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
</div>
|
|
217
|
-
<div slot="modal-footer" class="modal-footer">
|
|
218
|
-
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">关闭</button>
|
|
219
|
-
</div>
|
|
220
|
-
</modal>
|
|
221
|
-
<work-busy :is-busy="isworking"></work-busy>
|
|
222
|
-
</div>
|
|
223
|
-
</template>
|
|
224
|
-
<script>
|
|
225
|
-
import Vue from 'vue'
|
|
226
|
-
import { PagedList,HttpResetClass } from 'vue-client'
|
|
227
|
-
export default {
|
|
228
|
-
title: '在线查询',
|
|
229
|
-
data() {
|
|
230
|
-
return {
|
|
231
|
-
model_f: false,
|
|
232
|
-
ispos: true,
|
|
233
|
-
cardinfo: {},
|
|
234
|
-
userinfo: {},
|
|
235
|
-
operation: '',
|
|
236
|
-
isworking: false,
|
|
237
|
-
timer: null,
|
|
238
|
-
timer2: null,
|
|
239
|
-
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/onlinequeryuser`,5),
|
|
240
|
-
f_operator: Vue.user.name,
|
|
241
|
-
f_orgid : Vue.user.orgid
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
ready(){
|
|
245
|
-
|
|
246
|
-
if(Vue.config.telephone != undefined){
|
|
247
|
-
if(Vue.config.telephone.ApproveConfig != undefined){
|
|
248
|
-
this.ispos = Vue.config.telephone.ApproveConfig.ispos
|
|
249
|
-
}else {
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
methods: {
|
|
255
|
-
selfsearch(args){
|
|
256
|
-
if(args.condition == ' 1=1 '){
|
|
257
|
-
this.$showMessage(' 请输入条件...')
|
|
258
|
-
return
|
|
259
|
-
}else {
|
|
260
|
-
args.condition += ` and uf.f_orgid = '${this.f_orgid}' `
|
|
261
|
-
this.model.search(args.condition)
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
poscard2 () {
|
|
265
|
-
if (this.ispos) {
|
|
266
|
-
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
267
|
-
if (!fengongsi) {
|
|
268
|
-
this.$showMessage('分公司获取失败!')
|
|
269
|
-
return
|
|
270
|
-
}
|
|
271
|
-
let _this = this
|
|
272
|
-
//tag
|
|
273
|
-
var pardate = {
|
|
274
|
-
_this:_this,
|
|
275
|
-
title:'POS读卡',
|
|
276
|
-
safe:false
|
|
277
|
-
}
|
|
278
|
-
_this.$dispatch('gotoson',pardate)
|
|
279
|
-
_this.$goto('tel_readcard', {fengongsi: fengongsi}, 'self',_this.workingback)
|
|
280
|
-
}else {
|
|
281
|
-
this.$showMessage('该设备暂不支持读卡')
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
workingback(val) {
|
|
286
|
-
//tag)
|
|
287
|
-
if(val){
|
|
288
|
-
this.$showMessage(val.msg)
|
|
289
|
-
if (val.msg == '读卡成功!') {
|
|
290
|
-
this.cardinfo = val.data.msg
|
|
291
|
-
this.$refs.paged.$refs.cri.model.f_card_id = val.data.msg.CardID // 卡号
|
|
292
|
-
this.$refs.paged.$refs.cri.model.f_alias = val.data.msg.Factory // 表别名
|
|
293
|
-
this.model_f = true
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
poscard() {
|
|
298
|
-
//tag
|
|
299
|
-
if (this.ispos) {
|
|
300
|
-
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
301
|
-
if (!fengongsi) {
|
|
302
|
-
this.$showMessage('分公司获取失败!')
|
|
303
|
-
return
|
|
304
|
-
}
|
|
305
|
-
//tag
|
|
306
|
-
this.isworking = true
|
|
307
|
-
this.timer = setTimeout(this.aa,"10000")
|
|
308
|
-
this.timer2 = setTimeout(this.bb,"2000")
|
|
309
|
-
} else {
|
|
310
|
-
this.$showMessage('该设备暂不支持')
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
},
|
|
314
|
-
aa() {
|
|
315
|
-
//tag
|
|
316
|
-
this.isworking = false
|
|
317
|
-
clearTimeout(this.timer);
|
|
318
|
-
clearTimeout(this.timer2);
|
|
319
|
-
},
|
|
320
|
-
bb() {
|
|
321
|
-
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
322
|
-
let posinfo2 = HostApp.read(fengongsi)
|
|
323
|
-
//tag)
|
|
324
|
-
if(posinfo2.code == 200){
|
|
325
|
-
//tag
|
|
326
|
-
this.isworking = false
|
|
327
|
-
this.cardinfo = posinfo2.msg
|
|
328
|
-
this.$refs.paged.$refs.cri.model.f_card_id = posinfo2.msg.CardID // 卡号
|
|
329
|
-
this.$refs.paged.$refs.cri.model.f_alias = posinfo2.msg.Factory // 表别名
|
|
330
|
-
this.model_f = true
|
|
331
|
-
}else {
|
|
332
|
-
this.isworking = false
|
|
333
|
-
this.$showMessage(posinfo2.msg)
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
selectopt(row) {
|
|
337
|
-
let _this = this
|
|
338
|
-
var pardate = {
|
|
339
|
-
_this:_this,
|
|
340
|
-
title:'其他收费',
|
|
341
|
-
safe:false
|
|
342
|
-
}
|
|
343
|
-
_this.$dispatch('gotoson',pardate)
|
|
344
|
-
_this.$goto('other_charge', {row: row}, 'self')
|
|
345
|
-
},
|
|
346
|
-
openvalve (f_meternumber) {
|
|
347
|
-
//tag
|
|
348
|
-
var data = {
|
|
349
|
-
f_meternumber: `${f_meternumber}`,
|
|
350
|
-
type: '开阀',
|
|
351
|
-
f_operator: `${this.f_operator}`
|
|
352
|
-
}
|
|
353
|
-
//tag)
|
|
354
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/openfileorvalve`, {data: data}).then((row) => {
|
|
355
|
-
//tag)
|
|
356
|
-
this.$showMessage(row.data.msg)
|
|
357
|
-
}).catch((e) => {
|
|
358
|
-
//tag
|
|
359
|
-
//tag)
|
|
360
|
-
})
|
|
361
|
-
},
|
|
362
|
-
clonevalve (f_meternumber) {
|
|
363
|
-
//tag
|
|
364
|
-
var data = {
|
|
365
|
-
f_meternumber: `${f_meternumber}`,
|
|
366
|
-
type: '关阀',
|
|
367
|
-
f_operator: `${this.f_operator}`
|
|
368
|
-
}
|
|
369
|
-
//tag)
|
|
370
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/openfileorvalve`, {data: data}).then((row) => {
|
|
371
|
-
//tag
|
|
372
|
-
this.$showMessage(row.data.msg)
|
|
373
|
-
}).catch((e) => {
|
|
374
|
-
//tag
|
|
375
|
-
//tag)
|
|
376
|
-
})
|
|
377
|
-
},
|
|
378
|
-
cancel() {
|
|
379
|
-
//tag
|
|
380
|
-
this.model_f = false
|
|
381
|
-
},
|
|
382
|
-
searchBluetooth() {
|
|
383
|
-
//tag
|
|
384
|
-
HostApp.searchPRMT()
|
|
385
|
-
},
|
|
386
|
-
gotoReadCard() {
|
|
387
|
-
//tag
|
|
388
|
-
let isConnect = HostApp.isConnect().data
|
|
389
|
-
//tag)
|
|
390
|
-
if(isConnect) {
|
|
391
|
-
//tag
|
|
392
|
-
let blueinfo = HostApp.read("XianYang")
|
|
393
|
-
//tag)
|
|
394
|
-
if(blueinfo.code == 200){
|
|
395
|
-
this.$showMessage('读卡成功,请点击查询按钮')
|
|
396
|
-
this.$refs.paged.$refs.cri.model.f_card_id = blueinfo.msg.CardID // 卡号
|
|
397
|
-
this.$refs.paged.$refs.cri.model.f_alias = blueinfo.msg.Factory // 表别名
|
|
398
|
-
}else {
|
|
399
|
-
this.$showMessage(posinfo.msg)
|
|
400
|
-
}
|
|
401
|
-
}else {
|
|
402
|
-
//tag
|
|
403
|
-
this.$showMessage('连接失败!请打开蓝牙或蓝牙读卡器')
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
Scanningtable() {
|
|
407
|
-
//tag
|
|
408
|
-
HostApp.__this__=this
|
|
409
|
-
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
|
410
|
-
},
|
|
411
|
-
getCode(){
|
|
412
|
-
var datapa = HostApp.getCode().data;
|
|
413
|
-
//tag
|
|
414
|
-
this.$refs.paged.$refs.cri.model.f_meternumber = datapa
|
|
415
|
-
this.$showMessage(`扫码返回值为:${datapa}`)
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
</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
|
+
<template>
|
|
58
|
+
<div style="height: auto;width: 100%">
|
|
59
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
60
|
+
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
|
|
61
|
+
<div partial>
|
|
62
|
+
<form>
|
|
63
|
+
<div class="row app-row">
|
|
64
|
+
<div class="col-xs-4">
|
|
65
|
+
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
66
|
+
<label class="font text-left">用户编号:</label>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-xs-8" >
|
|
69
|
+
<input class="search_input input-font" v-model="model.f_userinfo_code" condition="ui.f_userinfo_code = '{}'" />
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="row app-row">
|
|
73
|
+
<div class="col-xs-4">
|
|
74
|
+
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
75
|
+
<label class="font text-left">用户姓名:</label>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-xs-8" >
|
|
78
|
+
<input class="search_input input-font" v-model="model.f_user_name" condition="ui.f_user_name like '%{}%'" />
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="row app-row">
|
|
82
|
+
<div class="col-xs-4">
|
|
83
|
+
<img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
84
|
+
<label class="font text-left">用户地址:</label>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-xs-8" >
|
|
87
|
+
<input class="search_input input-font" v-model="model.f_address" condition="ua.f_address like '%{}%'" />
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="row app-row">
|
|
91
|
+
<div class="col-xs-4">
|
|
92
|
+
<img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
93
|
+
<label class="font text-left">用户表号:</label>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-xs-8" >
|
|
96
|
+
<input class="search_input input-font" v-model="model.f_meternumber" condition=" uf.f_meternumber = '{}'" />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="row app-row">
|
|
100
|
+
<div class="col-xs-4">
|
|
101
|
+
<img src="../../assets/卡号 (1).png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
102
|
+
<label class="font text-left">用户卡号:</label>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-xs-8" >
|
|
105
|
+
<input class="search_input input-font" v-model="model.f_card_id" condition=" uf.f_card_id = '{}'" />
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="row app-row">
|
|
109
|
+
<div class="col-xs-4">
|
|
110
|
+
<img src="../../assets/表名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
111
|
+
<label class="font text-left">表别名:</label>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-xs-8" >
|
|
114
|
+
<input class="search_input input-font" v-model="model.f_alias" condition=" gb.f_alias = '{}'" />
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="row text-center" style="margin-top: 20px;text-align: center">
|
|
118
|
+
<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>
|
|
119
|
+
<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>
|
|
120
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;margin-right: 3%" @click="$parent.$parent.Scanningtable">扫表号</button>
|
|
121
|
+
</div>
|
|
122
|
+
<div style="height:20px;"></div>
|
|
123
|
+
</form>
|
|
124
|
+
</div>
|
|
125
|
+
</criteria>
|
|
126
|
+
<list :model="model" partial='list'>
|
|
127
|
+
<div partial>
|
|
128
|
+
<div class="auto app-text" style="margin-top: 5px;" @click="$parent.$parent.$parent.selectopt(row)">
|
|
129
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
130
|
+
<div class="panel-body panel-self">
|
|
131
|
+
<div class="col-xs-12">
|
|
132
|
+
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户编号:</b></p>
|
|
133
|
+
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_userinfo_code }}</p>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-xs-12">
|
|
136
|
+
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>用户名称:</b></p>
|
|
137
|
+
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_name }}</p>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="col-xs-12">
|
|
140
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
|
141
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
|
142
|
+
</p>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col-xs-12">
|
|
145
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户电话:</b></p>
|
|
146
|
+
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_user_phone }}
|
|
147
|
+
</p>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-xs-12">
|
|
150
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户地址:</b></p>
|
|
151
|
+
<p class="panel-title col-xs-7 text-left input-font" >{{ row.f_address }}</p>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="col-xs-12">
|
|
154
|
+
<p class="panel-title col-xs-5 text-left font"><b>燃气表号:</b></p>
|
|
155
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meternumber }}</p>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="col-xs-12">
|
|
158
|
+
<p class="panel-title col-xs-5 text-left font"><b>气表品牌:</b></p>
|
|
159
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_brand }}</p>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="col-xs-12">
|
|
162
|
+
<p class="panel-title col-xs-5 text-left font"><b>气表类型:</b></p>
|
|
163
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_type }}</p>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="col-xs-12">
|
|
166
|
+
<p class="panel-title col-xs-5 text-left font"><b>气表分类:</b></p>
|
|
167
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_collection_type }}</p>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-xs-12">
|
|
170
|
+
<p class="panel-title col-xs-5 text-left font"><b>气表底数:</b></p>
|
|
171
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_meter_base }}</p>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="col-xs-12">
|
|
174
|
+
<p class="panel-title col-xs-5 text-left font"><b>累计气量:</b></p>
|
|
175
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}</p>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="col-xs-12">
|
|
178
|
+
<p class="panel-title col-xs-5 text-left font"><b>累计金额:</b></p>
|
|
179
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}</p>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</list>
|
|
186
|
+
</criteria-paged>
|
|
187
|
+
<modal :show.sync="model_f" v-ref:modal>
|
|
188
|
+
<div slot="modal-header" class="modal-header">
|
|
189
|
+
<h4 class="modal-title">
|
|
190
|
+
卡信息
|
|
191
|
+
</h4>
|
|
192
|
+
</div>
|
|
193
|
+
<div slot="modal-body" class="modal-body">
|
|
194
|
+
<div class="flex">
|
|
195
|
+
<div class="row">
|
|
196
|
+
<label class="col-sm-2">卡号:</label>
|
|
197
|
+
<span class = "col-sm-3">{{cardinfo.CardID}}</span>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="row">
|
|
200
|
+
<label class="col-sm-2">厂名:</label>
|
|
201
|
+
<span class = "col-sm-3">{{cardinfo.Factory}}</span>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="row">
|
|
204
|
+
<label class="col-sm-2">气量:</label>
|
|
205
|
+
<span class = "col-sm-3">{{cardinfo.Gas}}</span>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="row">
|
|
208
|
+
<label class="col-sm-2">金额:</label>
|
|
209
|
+
<span class = "col-sm-3">{{cardinfo.Money}}</span>
|
|
210
|
+
</div>
|
|
211
|
+
<div class="row">
|
|
212
|
+
<label class="col-sm-2">写卡次数:</label>
|
|
213
|
+
<span class = "col-sm-3">{{cardinfo.Times}}</span>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
<div slot="modal-footer" class="modal-footer">
|
|
218
|
+
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">关闭</button>
|
|
219
|
+
</div>
|
|
220
|
+
</modal>
|
|
221
|
+
<work-busy :is-busy="isworking"></work-busy>
|
|
222
|
+
</div>
|
|
223
|
+
</template>
|
|
224
|
+
<script>
|
|
225
|
+
import Vue from 'vue'
|
|
226
|
+
import { PagedList,HttpResetClass } from 'vue-client'
|
|
227
|
+
export default {
|
|
228
|
+
title: '在线查询',
|
|
229
|
+
data() {
|
|
230
|
+
return {
|
|
231
|
+
model_f: false,
|
|
232
|
+
ispos: true,
|
|
233
|
+
cardinfo: {},
|
|
234
|
+
userinfo: {},
|
|
235
|
+
operation: '',
|
|
236
|
+
isworking: false,
|
|
237
|
+
timer: null,
|
|
238
|
+
timer2: null,
|
|
239
|
+
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/onlinequeryuser`,5),
|
|
240
|
+
f_operator: Vue.user.name,
|
|
241
|
+
f_orgid : Vue.user.orgid
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
ready(){
|
|
245
|
+
|
|
246
|
+
if(Vue.config.telephone != undefined){
|
|
247
|
+
if(Vue.config.telephone.ApproveConfig != undefined){
|
|
248
|
+
this.ispos = Vue.config.telephone.ApproveConfig.ispos
|
|
249
|
+
}else {
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
methods: {
|
|
255
|
+
selfsearch(args){
|
|
256
|
+
if(args.condition == ' 1=1 '){
|
|
257
|
+
this.$showMessage(' 请输入条件...')
|
|
258
|
+
return
|
|
259
|
+
}else {
|
|
260
|
+
args.condition += ` and uf.f_orgid = '${this.f_orgid}' `
|
|
261
|
+
this.model.search(args.condition)
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
poscard2 () {
|
|
265
|
+
if (this.ispos) {
|
|
266
|
+
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
267
|
+
if (!fengongsi) {
|
|
268
|
+
this.$showMessage('分公司获取失败!')
|
|
269
|
+
return
|
|
270
|
+
}
|
|
271
|
+
let _this = this
|
|
272
|
+
//tag
|
|
273
|
+
var pardate = {
|
|
274
|
+
_this:_this,
|
|
275
|
+
title:'POS读卡',
|
|
276
|
+
safe:false
|
|
277
|
+
}
|
|
278
|
+
_this.$dispatch('gotoson',pardate)
|
|
279
|
+
_this.$goto('tel_readcard', {fengongsi: fengongsi}, 'self',_this.workingback)
|
|
280
|
+
}else {
|
|
281
|
+
this.$showMessage('该设备暂不支持读卡')
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
},
|
|
285
|
+
workingback(val) {
|
|
286
|
+
//tag)
|
|
287
|
+
if(val){
|
|
288
|
+
this.$showMessage(val.msg)
|
|
289
|
+
if (val.msg == '读卡成功!') {
|
|
290
|
+
this.cardinfo = val.data.msg
|
|
291
|
+
this.$refs.paged.$refs.cri.model.f_card_id = val.data.msg.CardID // 卡号
|
|
292
|
+
this.$refs.paged.$refs.cri.model.f_alias = val.data.msg.Factory // 表别名
|
|
293
|
+
this.model_f = true
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
poscard() {
|
|
298
|
+
//tag
|
|
299
|
+
if (this.ispos) {
|
|
300
|
+
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
301
|
+
if (!fengongsi) {
|
|
302
|
+
this.$showMessage('分公司获取失败!')
|
|
303
|
+
return
|
|
304
|
+
}
|
|
305
|
+
//tag
|
|
306
|
+
this.isworking = true
|
|
307
|
+
this.timer = setTimeout(this.aa,"10000")
|
|
308
|
+
this.timer2 = setTimeout(this.bb,"2000")
|
|
309
|
+
} else {
|
|
310
|
+
this.$showMessage('该设备暂不支持')
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
},
|
|
314
|
+
aa() {
|
|
315
|
+
//tag
|
|
316
|
+
this.isworking = false
|
|
317
|
+
clearTimeout(this.timer);
|
|
318
|
+
clearTimeout(this.timer2);
|
|
319
|
+
},
|
|
320
|
+
bb() {
|
|
321
|
+
let fengongsi = this.$appdata.getSingleValue('分公司')
|
|
322
|
+
let posinfo2 = HostApp.read(fengongsi)
|
|
323
|
+
//tag)
|
|
324
|
+
if(posinfo2.code == 200){
|
|
325
|
+
//tag
|
|
326
|
+
this.isworking = false
|
|
327
|
+
this.cardinfo = posinfo2.msg
|
|
328
|
+
this.$refs.paged.$refs.cri.model.f_card_id = posinfo2.msg.CardID // 卡号
|
|
329
|
+
this.$refs.paged.$refs.cri.model.f_alias = posinfo2.msg.Factory // 表别名
|
|
330
|
+
this.model_f = true
|
|
331
|
+
}else {
|
|
332
|
+
this.isworking = false
|
|
333
|
+
this.$showMessage(posinfo2.msg)
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
selectopt(row) {
|
|
337
|
+
let _this = this
|
|
338
|
+
var pardate = {
|
|
339
|
+
_this:_this,
|
|
340
|
+
title:'其他收费',
|
|
341
|
+
safe:false
|
|
342
|
+
}
|
|
343
|
+
_this.$dispatch('gotoson',pardate)
|
|
344
|
+
_this.$goto('other_charge', {row: row}, 'self')
|
|
345
|
+
},
|
|
346
|
+
openvalve (f_meternumber) {
|
|
347
|
+
//tag
|
|
348
|
+
var data = {
|
|
349
|
+
f_meternumber: `${f_meternumber}`,
|
|
350
|
+
type: '开阀',
|
|
351
|
+
f_operator: `${this.f_operator}`
|
|
352
|
+
}
|
|
353
|
+
//tag)
|
|
354
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/openfileorvalve`, {data: data}).then((row) => {
|
|
355
|
+
//tag)
|
|
356
|
+
this.$showMessage(row.data.msg)
|
|
357
|
+
}).catch((e) => {
|
|
358
|
+
//tag
|
|
359
|
+
//tag)
|
|
360
|
+
})
|
|
361
|
+
},
|
|
362
|
+
clonevalve (f_meternumber) {
|
|
363
|
+
//tag
|
|
364
|
+
var data = {
|
|
365
|
+
f_meternumber: `${f_meternumber}`,
|
|
366
|
+
type: '关阀',
|
|
367
|
+
f_operator: `${this.f_operator}`
|
|
368
|
+
}
|
|
369
|
+
//tag)
|
|
370
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/openfileorvalve`, {data: data}).then((row) => {
|
|
371
|
+
//tag
|
|
372
|
+
this.$showMessage(row.data.msg)
|
|
373
|
+
}).catch((e) => {
|
|
374
|
+
//tag
|
|
375
|
+
//tag)
|
|
376
|
+
})
|
|
377
|
+
},
|
|
378
|
+
cancel() {
|
|
379
|
+
//tag
|
|
380
|
+
this.model_f = false
|
|
381
|
+
},
|
|
382
|
+
searchBluetooth() {
|
|
383
|
+
//tag
|
|
384
|
+
HostApp.searchPRMT()
|
|
385
|
+
},
|
|
386
|
+
gotoReadCard() {
|
|
387
|
+
//tag
|
|
388
|
+
let isConnect = HostApp.isConnect().data
|
|
389
|
+
//tag)
|
|
390
|
+
if(isConnect) {
|
|
391
|
+
//tag
|
|
392
|
+
let blueinfo = HostApp.read("XianYang")
|
|
393
|
+
//tag)
|
|
394
|
+
if(blueinfo.code == 200){
|
|
395
|
+
this.$showMessage('读卡成功,请点击查询按钮')
|
|
396
|
+
this.$refs.paged.$refs.cri.model.f_card_id = blueinfo.msg.CardID // 卡号
|
|
397
|
+
this.$refs.paged.$refs.cri.model.f_alias = blueinfo.msg.Factory // 表别名
|
|
398
|
+
}else {
|
|
399
|
+
this.$showMessage(posinfo.msg)
|
|
400
|
+
}
|
|
401
|
+
}else {
|
|
402
|
+
//tag
|
|
403
|
+
this.$showMessage('连接失败!请打开蓝牙或蓝牙读卡器')
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
Scanningtable() {
|
|
407
|
+
//tag
|
|
408
|
+
HostApp.__this__=this
|
|
409
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
|
410
|
+
},
|
|
411
|
+
getCode(){
|
|
412
|
+
var datapa = HostApp.getCode().data;
|
|
413
|
+
//tag
|
|
414
|
+
this.$refs.paged.$refs.cri.model.f_meternumber = datapa
|
|
415
|
+
this.$showMessage(`扫码返回值为:${datapa}`)
|
|
416
|
+
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
</script>
|