telephone-clients 3.0.104-1 → 3.0.104-100

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