apply-clients 7.1.36-yuchuan-58 → 7.1.36-yuchuan-60

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 (68) hide show
  1. package/android.html +27 -27
  2. package/build/dev-server.js +187 -187
  3. package/package.json +1 -1
  4. package/src/apply.js +166 -166
  5. package/src/applyAndroid.js +98 -98
  6. package/src/components/android/AppSign.vue +232 -232
  7. package/src/components/android/Ignition/VentilationIgnition.vue +409 -409
  8. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +472 -472
  9. package/src/components/android/Process/AppExplorationUser.vue +454 -454
  10. package/src/components/android/Process/AppServiceControl.vue +1434 -1434
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +1026 -1026
  12. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
  13. package/src/components/android/SealBind.vue +382 -382
  14. package/src/components/android/SealManage.vue +278 -278
  15. package/src/components/android/Sign/AppSignTask.vue +183 -183
  16. package/src/components/android/Supervisory/AppProcessSupervisory.vue +344 -344
  17. package/src/components/android/Task/Build/BuildTsak.vue +117 -117
  18. package/src/components/android/Task/BuildIgnition/BuildIgnition.vue +114 -114
  19. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -317
  20. package/src/components/android/Task/RepairFromSend/RepairFrom.vue +124 -124
  21. package/src/components/android/Task/RepairFromSend/RepairSend.vue +124 -124
  22. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +431 -431
  23. package/src/components/android/Task/Survey/SurveyTsak.vue +141 -141
  24. package/src/components/android/Task/yiban/AppShowDone.vue +442 -442
  25. package/src/components/android/newPackage/customerServiceManager.vue +218 -218
  26. package/src/components/android/newPackage/projectPrice.vue +218 -218
  27. package/src/components/product/ApplyCharge/ApplyChargeList.vue +1101 -1101
  28. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -236
  29. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +325 -325
  30. package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +142 -142
  31. package/src/components/product/ApplyGuanXian/GuanXianExplorationsupervisory.vue +166 -166
  32. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -119
  33. package/src/components/product/ApplyGuanXian/GuanXiansupsupervisory.vue +140 -140
  34. package/src/components/product/ApplyMap/AppMapLocation.vue +829 -829
  35. package/src/components/product/ApplyMap/ApplyMapInputSearch.vue +335 -335
  36. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +417 -417
  37. package/src/components/product/Function/InstallFunction.vue +132 -132
  38. package/src/components/product/Function/InstallInfoSelect.vue +374 -374
  39. package/src/components/product/Ignition/IgnitionDispatch.vue +90 -90
  40. package/src/components/product/Ignition/IgnitionListManage.vue +604 -604
  41. package/src/components/product/Ignition/IgnitionRecord.vue +380 -380
  42. package/src/components/product/InsuranceApply/InsuranceReport.vue +188 -188
  43. package/src/components/product/List/ShowAllActivity.vue +541 -541
  44. package/src/components/product/List/ShowDevices.vue +279 -279
  45. package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
  46. package/src/components/product/Process/ExplorationSelect.vue +593 -593
  47. package/src/components/product/Process/ExplorationUser.vue +154 -154
  48. package/src/components/product/Process/New1ExplorationUser.vue +196 -196
  49. package/src/components/product/Process/NewExplorationSelect.vue +587 -587
  50. package/src/components/product/Process/NewExplorationUser.vue +216 -216
  51. package/src/components/product/Process/Processes/chargeManagement.vue +714 -714
  52. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  53. package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -230
  54. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
  55. package/src/components/product/Process/Processes/selectUserinfo.vue +234 -234
  56. package/src/components/product/Process/Service/ServiceControl.vue +2223 -2223
  57. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  58. package/src/components/product/ServiceView.vue +644 -644
  59. package/src/components/product/Stop/StopApplyList.vue +224 -224
  60. package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -175
  61. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +593 -593
  62. package/src/components/product/Supervisory/SupervisoryControl.vue +114 -114
  63. package/src/components/product/Supervisory/SupervisoryList.vue +586 -586
  64. package/src/components/product/Supervisory/SupervisoryhCart.vue +120 -120
  65. package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +111 -111
  66. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +4 -0
  67. package/src/components/product/VueUtils/ApplyUpload.vue +303 -303
  68. package/src/main.js +27 -27
@@ -1,278 +1,278 @@
1
- <template>
2
- <div class="auto">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div partial>
6
- <form>
7
- <div class="row app-row">
8
- <div class="col-xs-4">
9
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
- <label class="font text-left">用户编号:</label>
11
- </div>
12
- <div class="col-xs-8" >
13
- <input class="search_input input-font"
14
- v-model="model.f_userinfo_id" condition="ui.f_userinfo_id = '{}'" placeholder="请输入用户编号" />
15
- </div>
16
- </div>
17
- <div class="row app-row">
18
- <div class="col-xs-4">
19
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
- <label class="font text-left">表号:</label>
21
- </div>
22
- <div class="col-xs-6" >
23
- <input class="search_input input-font"
24
- v-model="model.f_meternumber" condition="uf.f_meternumber like '%{}%'" placeholder="请输入表号" />
25
- </div>
26
- <div class="col-xs-2">
27
- <button type="button" class="btn btn-font btn-color" @click="$parent.$parent.scanCode()">扫码</button>
28
- </div>
29
- </div>
30
- <div class="row app-row">
31
- <div class="col-xs-4">
32
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
33
- <label class="font text-left">基表号:</label>
34
- </div>
35
- <div class="col-xs-8" >
36
- <input class="search_input input-font"
37
- v-model="model.f_base_meternumber" condition="uf.f_base_meternumber like '%{}%'" placeholder="请输入基表号" />
38
- </div>
39
- </div>
40
- <div class="row app-row">
41
- <div class="col-xs-4">
42
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
43
- <label class="font text-left">NB号:</label>
44
- </div>
45
- <div class="col-xs-8" >
46
- <input class="search_input input-font"
47
- v-model="model.f_meternumber2" condition="uf.f_meternumber like '%{}%'" placeholder="请输入NB号" />
48
- </div>
49
- </div>
50
- <div class="row app-row">
51
- <div class="col-xs-4">
52
- <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
53
- <label class="font text-left">用户名称:</label>
54
- </div>
55
- <div class="col-xs-8" >
56
- <input class="search_input input-font"
57
- condition="ui.f_user_name like '%{}%'" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
58
- </div>
59
- </div>
60
- <div class="row app-row">
61
- <div class="col-xs-4">
62
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
63
- <label class="font text-left">用户地址:</label>
64
- </div>
65
- <div class="col-xs-8" >
66
- <input style="width: 100%" class="search_input input-font"
67
- condition="ui.f_address like '%{}%'" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
68
- </div>
69
- </div>
70
- <div class="row text-center" style="margin-top: 20px;">
71
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
72
- @click="search">查询
73
- </button>
74
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
75
- @click="$parent.$parent.sealScan">铅封识别
76
- </button>
77
- </div>
78
- <div style="height:30px;"></div>
79
- </form>
80
- </div>
81
- </criteria>
82
- <list :model="model" partial='list'>
83
- <div partial>
84
- <div class="auto app-text" style="margin-top: 5px;">
85
- <div class="panel" style="padding: 10px 10px 5px 10px;">
86
- <div class="panel-body panel-self">
87
- <div class="row">
88
- <p class="panel-title col-xs-4 text-left font">用户编号</p>
89
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_id }}</p>
90
- </div>
91
- <div class="row">
92
- <p class="panel-title col-xs-4 text-left font">用户名称</p>
93
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
94
- </div>
95
- <div class="row">
96
- <p class="panel-title col-xs-4 text-left font">表号</p>
97
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
98
- </div>
99
- <div class="row">
100
- <p class="panel-title col-xs-4 text-left font">基表号</p>
101
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_base_meternumber }}</p>
102
- </div>
103
- <div class="row">
104
- <p class="panel-title col-xs-4 text-left font">NB号</p>
105
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
106
- </div>
107
- <div class="row">
108
- <p class="panel-title col-xs-4 text-left font">用户地址</p>
109
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
110
- </div>
111
- <div class="row" v-if="!row.f_seal_uid">
112
- <p class="panel-title col-xs-4 text-left font">施封信息</p>
113
- <p class="panel-title col-xs-8 text-left input-font">暂无</p>
114
- </div>
115
- <div class="row" v-if="row.f_operate_name">
116
- <p class="panel-title col-xs-4 text-left font">施封人员</p>
117
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_name }}</p>
118
- </div>
119
- <div class="row" v-if="row.f_operate_name">
120
- <p class="panel-title col-xs-4 text-left font">施封时间</p>
121
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_date }}</p>
122
- </div>
123
- <div class="row" v-if="row.f_operate_name">
124
- <p class="panel-title col-xs-4 text-left font">施封原因</p>
125
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_cause }}</p>
126
- </div>
127
- <div class="col-xs-12">
128
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.toBind(row)">
129
- {{row.f_seal_uid ? '重新施封' : '施封'}}
130
- </button>
131
- </div>
132
- </div>
133
- </div>
134
- </div>
135
- </div>
136
- </list>
137
- <div partial='emptyHint' style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px">
138
- <div style="color: steelblue; font-size: 19px">未查询到相关信息</div>
139
- </div>
140
- </criteria-paged>
141
- </div>
142
- </template>
143
-
144
- <script>
145
- import {HttpResetClass, PagedList} from 'vue-client'
146
- import Vue from 'vue'
147
- import * as Util from '../Util'
148
- import {isEmpty} from "../Util";
149
-
150
- export default {
151
- title: '施封',
152
- data () {
153
- let model = new PagedList(
154
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, 20)
155
- return {
156
- model: model,
157
- row: null,
158
- }
159
- },
160
- ready () {
161
-
162
- },
163
- computed: {
164
-
165
- },
166
- methods:{
167
- async scanCode () {
168
- console.log('===============扫码===================')
169
- HostApp.__this__ = this,
170
- HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
171
- },
172
- async getCode () {
173
- this.$refs.paged.$refs.cri.model.f_meternumber=''
174
- let code = HostApp.getCode().data;
175
- this.$refs.paged.$refs.cri.model.f_meternumber=code
176
- },
177
- sealScan() {
178
- HostApp.__this__ = this
179
- HostApp.readNfc({
180
- 'callback': 'javascript:HostApp.__this__.sealScanCallback()',
181
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
182
- // 执行回调方法传入key为backresult
183
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
184
- 'backresult': 1
185
- })
186
- },
187
- async sealScanCallback() {
188
- console.log('sealScanCallback=========')
189
- let result = HostApp.getNfcUUID()
190
- console.log('result=', result)
191
- if (result.code == 200){
192
- const sealUID = result.data
193
- let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
194
- data: {
195
- items: '*',
196
- tablename: 't_seals_record',
197
- orderitem: 'f_creation_date desc',
198
- condition: `f_uid = '${sealUID}' and f_state = '有效'`
199
- }
200
- }, {resolveMsg: null, rejectMsg: null})
201
- if (res.data.length && res.data[0].f_userinfo_id){
202
- this.$refs.paged.$refs.cri.model.f_userinfo_id = res.data[0].f_userinfo_id
203
- this.$refs.paged.$refs.cri.search()
204
- }else {
205
- return this.$showMessage("该铅封未绑定用户!")
206
- }
207
- }else {
208
- return this.$showMessage("未识别到铅封信息,请重新尝试!")
209
- }
210
- },
211
- async toBind(row) {
212
- if (row.f_seal_uid){
213
- let res = await this.$showMessage('该用户已施封,是否重新进行施封?', ['confirm', 'cancel'])
214
- if (res == 'cancel'){
215
- return
216
- }
217
- }
218
- var pardate = {
219
- _this: this,
220
- title:'铅封绑定',
221
- safe:false
222
- }
223
- this.$dispatch('gotoson',pardate)
224
- //tag
225
- this.$goto('seal-bind', {row: row}, 'self', this.reload)
226
- },
227
- reload(sealUID){
228
- console.log('sealUID=', sealUID)
229
- this.$refs.paged.$refs.cri.search()
230
- }
231
- },
232
- }
233
- </script>
234
- <style scoped>
235
- .app-row {
236
- background-color: white;
237
- padding: 10px 10px 0 10px;
238
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
239
- }
240
- .search_input {
241
- border: 0;
242
- outline: none;
243
- }
244
- .font{
245
- font: 15px PingFang-SC-Medium;
246
- color: #666666;
247
- }
248
- .input-font{
249
- font: 15px PingFang-SC-Medium;
250
- color: #333333;
251
- }
252
- .btn-font{
253
- font:600 16px PingFang-SC-Bold;
254
- color: #499EDF;
255
- }
256
- .btn-color{
257
- background-color: #FFFFFF;
258
- border-radius: 10px ;
259
- border: 1px solid #499EDF;
260
- }
261
- .app-text {
262
- font-size: 12px;
263
- }
264
- .panel-self{
265
- border-radius: 10px;
266
- border:1px solid #499EDF;
267
- background-color: #F8F8F8;
268
- }
269
- .yybtn-color{
270
- border-radius: 4px ;
271
- border: 1px solid #499EDF;
272
- }
273
- .qxbtn-color{
274
- background-color: #FFFFFF;
275
- border-radius: 4px ;
276
- border: 1px solid #499EDF;
277
- }
278
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div partial>
6
+ <form>
7
+ <div class="row app-row">
8
+ <div class="col-xs-4">
9
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
+ <label class="font text-left">用户编号:</label>
11
+ </div>
12
+ <div class="col-xs-8" >
13
+ <input class="search_input input-font"
14
+ v-model="model.f_userinfo_id" condition="ui.f_userinfo_id = '{}'" placeholder="请输入用户编号" />
15
+ </div>
16
+ </div>
17
+ <div class="row app-row">
18
+ <div class="col-xs-4">
19
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
+ <label class="font text-left">表号:</label>
21
+ </div>
22
+ <div class="col-xs-6" >
23
+ <input class="search_input input-font"
24
+ v-model="model.f_meternumber" condition="uf.f_meternumber like '%{}%'" placeholder="请输入表号" />
25
+ </div>
26
+ <div class="col-xs-2">
27
+ <button type="button" class="btn btn-font btn-color" @click="$parent.$parent.scanCode()">扫码</button>
28
+ </div>
29
+ </div>
30
+ <div class="row app-row">
31
+ <div class="col-xs-4">
32
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
33
+ <label class="font text-left">基表号:</label>
34
+ </div>
35
+ <div class="col-xs-8" >
36
+ <input class="search_input input-font"
37
+ v-model="model.f_base_meternumber" condition="uf.f_base_meternumber like '%{}%'" placeholder="请输入基表号" />
38
+ </div>
39
+ </div>
40
+ <div class="row app-row">
41
+ <div class="col-xs-4">
42
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
43
+ <label class="font text-left">NB号:</label>
44
+ </div>
45
+ <div class="col-xs-8" >
46
+ <input class="search_input input-font"
47
+ v-model="model.f_meternumber2" condition="uf.f_meternumber like '%{}%'" placeholder="请输入NB号" />
48
+ </div>
49
+ </div>
50
+ <div class="row app-row">
51
+ <div class="col-xs-4">
52
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
53
+ <label class="font text-left">用户名称:</label>
54
+ </div>
55
+ <div class="col-xs-8" >
56
+ <input class="search_input input-font"
57
+ condition="ui.f_user_name like '%{}%'" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
58
+ </div>
59
+ </div>
60
+ <div class="row app-row">
61
+ <div class="col-xs-4">
62
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
63
+ <label class="font text-left">用户地址:</label>
64
+ </div>
65
+ <div class="col-xs-8" >
66
+ <input style="width: 100%" class="search_input input-font"
67
+ condition="ui.f_address like '%{}%'" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
68
+ </div>
69
+ </div>
70
+ <div class="row text-center" style="margin-top: 20px;">
71
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
72
+ @click="search">查询
73
+ </button>
74
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
75
+ @click="$parent.$parent.sealScan">铅封识别
76
+ </button>
77
+ </div>
78
+ <div style="height:30px;"></div>
79
+ </form>
80
+ </div>
81
+ </criteria>
82
+ <list :model="model" partial='list'>
83
+ <div partial>
84
+ <div class="auto app-text" style="margin-top: 5px;">
85
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
86
+ <div class="panel-body panel-self">
87
+ <div class="row">
88
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
89
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_id }}</p>
90
+ </div>
91
+ <div class="row">
92
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
93
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
94
+ </div>
95
+ <div class="row">
96
+ <p class="panel-title col-xs-4 text-left font">表号</p>
97
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
98
+ </div>
99
+ <div class="row">
100
+ <p class="panel-title col-xs-4 text-left font">基表号</p>
101
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_base_meternumber }}</p>
102
+ </div>
103
+ <div class="row">
104
+ <p class="panel-title col-xs-4 text-left font">NB号</p>
105
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
106
+ </div>
107
+ <div class="row">
108
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
109
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
110
+ </div>
111
+ <div class="row" v-if="!row.f_seal_uid">
112
+ <p class="panel-title col-xs-4 text-left font">施封信息</p>
113
+ <p class="panel-title col-xs-8 text-left input-font">暂无</p>
114
+ </div>
115
+ <div class="row" v-if="row.f_operate_name">
116
+ <p class="panel-title col-xs-4 text-left font">施封人员</p>
117
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_name }}</p>
118
+ </div>
119
+ <div class="row" v-if="row.f_operate_name">
120
+ <p class="panel-title col-xs-4 text-left font">施封时间</p>
121
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_date }}</p>
122
+ </div>
123
+ <div class="row" v-if="row.f_operate_name">
124
+ <p class="panel-title col-xs-4 text-left font">施封原因</p>
125
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_cause }}</p>
126
+ </div>
127
+ <div class="col-xs-12">
128
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.toBind(row)">
129
+ {{row.f_seal_uid ? '重新施封' : '施封'}}
130
+ </button>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </list>
137
+ <div partial='emptyHint' style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px">
138
+ <div style="color: steelblue; font-size: 19px">未查询到相关信息</div>
139
+ </div>
140
+ </criteria-paged>
141
+ </div>
142
+ </template>
143
+
144
+ <script>
145
+ import {HttpResetClass, PagedList} from 'vue-client'
146
+ import Vue from 'vue'
147
+ import * as Util from '../Util'
148
+ import {isEmpty} from "../Util";
149
+
150
+ export default {
151
+ title: '施封',
152
+ data () {
153
+ let model = new PagedList(
154
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, 20)
155
+ return {
156
+ model: model,
157
+ row: null,
158
+ }
159
+ },
160
+ ready () {
161
+
162
+ },
163
+ computed: {
164
+
165
+ },
166
+ methods:{
167
+ async scanCode () {
168
+ console.log('===============扫码===================')
169
+ HostApp.__this__ = this,
170
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
171
+ },
172
+ async getCode () {
173
+ this.$refs.paged.$refs.cri.model.f_meternumber=''
174
+ let code = HostApp.getCode().data;
175
+ this.$refs.paged.$refs.cri.model.f_meternumber=code
176
+ },
177
+ sealScan() {
178
+ HostApp.__this__ = this
179
+ HostApp.readNfc({
180
+ 'callback': 'javascript:HostApp.__this__.sealScanCallback()',
181
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
182
+ // 执行回调方法传入key为backresult
183
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
184
+ 'backresult': 1
185
+ })
186
+ },
187
+ async sealScanCallback() {
188
+ console.log('sealScanCallback=========')
189
+ let result = HostApp.getNfcUUID()
190
+ console.log('result=', result)
191
+ if (result.code == 200){
192
+ const sealUID = result.data
193
+ let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
194
+ data: {
195
+ items: '*',
196
+ tablename: 't_seals_record',
197
+ orderitem: 'f_creation_date desc',
198
+ condition: `f_uid = '${sealUID}' and f_state = '有效'`
199
+ }
200
+ }, {resolveMsg: null, rejectMsg: null})
201
+ if (res.data.length && res.data[0].f_userinfo_id){
202
+ this.$refs.paged.$refs.cri.model.f_userinfo_id = res.data[0].f_userinfo_id
203
+ this.$refs.paged.$refs.cri.search()
204
+ }else {
205
+ return this.$showMessage("该铅封未绑定用户!")
206
+ }
207
+ }else {
208
+ return this.$showMessage("未识别到铅封信息,请重新尝试!")
209
+ }
210
+ },
211
+ async toBind(row) {
212
+ if (row.f_seal_uid){
213
+ let res = await this.$showMessage('该用户已施封,是否重新进行施封?', ['confirm', 'cancel'])
214
+ if (res == 'cancel'){
215
+ return
216
+ }
217
+ }
218
+ var pardate = {
219
+ _this: this,
220
+ title:'铅封绑定',
221
+ safe:false
222
+ }
223
+ this.$dispatch('gotoson',pardate)
224
+ //tag
225
+ this.$goto('seal-bind', {row: row}, 'self', this.reload)
226
+ },
227
+ reload(sealUID){
228
+ console.log('sealUID=', sealUID)
229
+ this.$refs.paged.$refs.cri.search()
230
+ }
231
+ },
232
+ }
233
+ </script>
234
+ <style scoped>
235
+ .app-row {
236
+ background-color: white;
237
+ padding: 10px 10px 0 10px;
238
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
239
+ }
240
+ .search_input {
241
+ border: 0;
242
+ outline: none;
243
+ }
244
+ .font{
245
+ font: 15px PingFang-SC-Medium;
246
+ color: #666666;
247
+ }
248
+ .input-font{
249
+ font: 15px PingFang-SC-Medium;
250
+ color: #333333;
251
+ }
252
+ .btn-font{
253
+ font:600 16px PingFang-SC-Bold;
254
+ color: #499EDF;
255
+ }
256
+ .btn-color{
257
+ background-color: #FFFFFF;
258
+ border-radius: 10px ;
259
+ border: 1px solid #499EDF;
260
+ }
261
+ .app-text {
262
+ font-size: 12px;
263
+ }
264
+ .panel-self{
265
+ border-radius: 10px;
266
+ border:1px solid #499EDF;
267
+ background-color: #F8F8F8;
268
+ }
269
+ .yybtn-color{
270
+ border-radius: 4px ;
271
+ border: 1px solid #499EDF;
272
+ }
273
+ .qxbtn-color{
274
+ background-color: #FFFFFF;
275
+ border-radius: 4px ;
276
+ border: 1px solid #499EDF;
277
+ }
278
+ </style>