apply-clients 7.1.36-yuchuan-3 → 7.1.36-yuchuan-4.1

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 (51) hide show
  1. package/build/dev-server.js +173 -176
  2. package/index.html +1 -1
  3. package/package.json +119 -119
  4. package/src/apply.js +15 -3
  5. package/src/applyAndroid.js +9 -0
  6. package/src/assets//345/260/217/345/214/272.png +0 -0
  7. package/src/assets//347/224/250/346/210/267ID.png +0 -0
  8. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  9. package/src/components/android/AppSign.vue +7 -4
  10. package/src/components/android/AppUpload.vue +1 -1
  11. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +38 -31
  12. package/src/components/android/Process/AppServiceControl.vue +32 -5
  13. package/src/components/android/Process/Processes/AppInstallationDetails.vue +205 -92
  14. package/src/components/android/SealBind.vue +376 -0
  15. package/src/components/android/SealManage.vue +264 -0
  16. package/src/components/android/Supervisory/AppProcessSupervisory.vue +25 -15
  17. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +9 -9
  18. package/src/components/android/Task/yiban/AppShowDone.vue +442 -0
  19. package/src/components/android/Task/yiban/ShowDone.vue +95 -0
  20. package/src/components/android/Task/yiban/satisfactionShow.vue +166 -0
  21. package/src/components/product/ApplyCharge/ApplyChargeList.vue +18 -0
  22. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianViewList.vue +272 -0
  23. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +1 -1
  24. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +31 -31
  25. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +4 -4
  26. package/src/components/product/ApplyMap/ApplyDragaboutList.vue +2 -2
  27. package/src/components/product/ApplyMap/ApplyMapLocation.vue +22 -10
  28. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +1 -1
  29. package/src/components/product/Function/Service/FunctionServiceControl.vue +125 -14
  30. package/src/components/product/GongJianPush/ApplyPushDispose.vue +182 -0
  31. package/src/components/product/GongJianPush/ApplyPushList.vue +192 -0
  32. package/src/components/product/GongJianPush/ApplyPushManage.vue +83 -0
  33. package/src/components/product/Ignition/IgnitionListManage.vue +1 -1
  34. package/src/components/product/Ignition/IgnitionRecord.vue +22 -0
  35. package/src/components/product/List/OldShowDevices.vue +271 -0
  36. package/src/components/product/List/ShowAllActivity.vue +104 -19
  37. package/src/components/product/List/ShowDevices.vue +1 -1
  38. package/src/components/product/Process/ExplorationSelect.vue +41 -35
  39. package/src/components/product/Process/NewExplorationSelect.vue +31 -31
  40. package/src/components/product/Process/Processes/InstallationDetails.vue +34 -1
  41. package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -0
  42. package/src/components/product/Process/Processes/devicesManagement.vue +23 -4
  43. package/src/components/product/Process/Processes/newDevicesManagement.vue +10 -1
  44. package/src/components/product/Process/Service/ServiceControl.vue +42 -3
  45. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +1 -3
  46. package/src/components/product/Supervisory/SupervisoryControl.vue +2 -0
  47. package/src/components/product/Supervisory/SupervisoryList.vue +19 -1
  48. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +0 -2
  49. package/src/components/product/VueUtils/ApplyUpload.vue +3 -2
  50. package/src/components/product/records/AdjustmentRecordList.vue +162 -0
  51. package/yarn-error.log +9968 -0
@@ -0,0 +1,376 @@
1
+ <template>
2
+ <div class="auto">
3
+ <div class="row app-row">
4
+ <div class="col-xs-4">
5
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
6
+ <label for="f_userinfoid" class="font text-left">用户编号:</label>
7
+ </div>
8
+ <div class="col-xs-8" >
9
+ <input id="f_userinfoid" class="search_input input-font" readonly
10
+ v-model=row.f_userinfo_id :value.sync="row.f_userinfo_id" />
11
+ </div>
12
+ </div>
13
+ <div class="row app-row">
14
+ <div class="col-xs-4">
15
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
16
+ <label class="font text-left">用户姓名:</label>
17
+ </div>
18
+ <div class="col-xs-8" >
19
+ <input class="search_input input-font" v-model=row.f_user_name :value.sync="row.f_user_name" readonly />
20
+ </div>
21
+ </div>
22
+ <div class="row app-row">
23
+ <div class="col-xs-4">
24
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
25
+ <label class="font text-left">用户地址:</label>
26
+ </div>
27
+ <div class="col-xs-8" >
28
+ <input class="search_input input-font" v-model=row.f_address :value.sync="row.f_address" readonly />
29
+ </div>
30
+ </div>
31
+ <div class="row app-row">
32
+ <div class="col-xs-4">
33
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
34
+ <label class="font text-left">铅封编号:</label>
35
+ </div>
36
+ <div class="col-xs-5" >
37
+ <input class="search_input input-font"
38
+ v-model=sealUID :value.sync="sealUID" readonly />
39
+ </div>
40
+ <div class="col-xs-3">
41
+ <button style="padding: 5px" type="button" class="btn btn-font btn-color" @click="scan()">NFC识别</button>
42
+ </div>
43
+ </div>
44
+ <div class="row app-row">
45
+ <div class="col-xs-4">
46
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
47
+ <label class="font text-left">二维码编号:</label>
48
+ </div>
49
+ <div class="col-xs-5" >
50
+ <input class="search_input input-font"
51
+ v-model=f_qr_code :value.sync="f_qr_code" readonly />
52
+ </div>
53
+ <div class="col-xs-3">
54
+ <button style="padding: 5px" type="button" class="btn btn-font btn-color" @click="codeScan()">扫描二维码</button>
55
+ </div>
56
+ </div>
57
+ <div class="row app-row">
58
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
59
+ <label class="text-left font">铅封照片:</label>
60
+
61
+ <div class="auto" :class="style__">
62
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
63
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
64
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
65
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in imgs">
66
+ <img-self :src="img" alt="铅封照片" :width="140" :height="170"></img-self>
67
+ <img src="../../assets/删除.png" @click="delfile(img,index)" style="width: 15px;margin-top: -80px" alt="">
68
+ </div>
69
+ </div>
70
+ <div class="row text-right div-photo">
71
+ <button type="button" name="button" class="btn btn-photo" @click="takePic()">拍照</button>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <div class="row app-row">
79
+ <div class="col-xs-4">
80
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
81
+ <label class="font text-left">施封原因:</label>
82
+ </div>
83
+ <div class="col-xs-8" >
84
+ <v-select
85
+ v-model="cause"
86
+ :value.sync="cause"
87
+ :value-single="true"
88
+ :options='causeOption'
89
+ placeholder='请选择施封原因'
90
+ width="100%"
91
+ close-on-select></v-select>
92
+ </div>
93
+ </div>
94
+ <div class="row text-center" style="margin-top: 40px;">
95
+ <button style="font-size: 20px; padding: 8px 40px" type="button" name="button" class="col-sm-3 btn btn-primary" @click="bind">
96
+ 施封
97
+ </button>
98
+ </div>
99
+ </div>
100
+ </template>
101
+
102
+ <script>
103
+ import {HttpResetClass, PagedList} from 'vue-client'
104
+ import Vue from 'vue'
105
+ import * as Util from '../Util'
106
+
107
+ export default {
108
+ title: '施封',
109
+ props: ['row'],
110
+ data () {
111
+ return {
112
+ sealUID: '',
113
+ imgs: [],
114
+ cause: '',
115
+ address: '',
116
+ longitude: '',
117
+ latitude: '',
118
+ f_qr_code: '',
119
+ causeOption: this.$appdata.getParam('施封原因')
120
+ }
121
+ },
122
+ ready () {
123
+ console.log('this.row=', JSON.stringify(this.row))
124
+ this.getLocation()
125
+ },
126
+ computed: {
127
+
128
+ },
129
+ methods:{
130
+ codeScan() {
131
+ console.log('codeScan=========')
132
+ HostApp.__this__ = this
133
+ HostApp.scanQRCode({callback:"javascript:HostApp.__this__.codeScanCallback()"})
134
+ },
135
+ codeScanCallback() {
136
+ console.log('codeScanCallback=========')
137
+ let result = HostApp.getQRCode()
138
+ console.log('result=', result)
139
+ if (result.code == 200){
140
+ this.f_qr_code = result.data
141
+ }else {
142
+ this.$showMessage("未识别到二维码信息,请重新尝试!")
143
+ }
144
+ },
145
+ generateUUID() {
146
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
147
+ var r = (Math.random() * 16) | 0,
148
+ v = c == 'x' ? r : (r & 0x3) | 0x8;
149
+ return v.toString(16);
150
+ });
151
+ },
152
+ getLocation() {
153
+ const location = HostApp.getDetailAddress()
154
+ this.address = location.data
155
+ const longitude = HostApp.getPreference('longitude')
156
+ this.longitude = longitude.data
157
+ const latitude = HostApp.getPreference('latitude')
158
+ this.latitude = latitude.data
159
+ console.log('this.address=', this.address)
160
+ console.log('this.longitude=', this.longitude)
161
+ console.log('this.latitude=', this.latitude)
162
+ },
163
+ bind() {
164
+ if (!this.sealUID) {
165
+ this.$showMessage("铅封编号不能为空!")
166
+ return
167
+ }
168
+ if (!this.f_qr_code) {
169
+ this.$showMessage("二维码编号不能为空!")
170
+ return
171
+ }
172
+ if (!this.imgs.length) {
173
+ this.$showMessage("请拍摄铅封照片!")
174
+ return
175
+ }
176
+ if (!this.cause) {
177
+ this.$showMessage("请选择施封原因!")
178
+ return
179
+ }
180
+ this.getLocation()
181
+ if (this.longitude == 0){
182
+ this.$showMessage("位置获取失败,请开启定位后进行施封!")
183
+ return
184
+ }
185
+ const param = {
186
+ seal: {
187
+ f_uid: this.sealUID,
188
+ f_qr_code: this.f_qr_code,
189
+ f_userinfo_id: this.row.f_userinfo_id,
190
+ f_filiale: this.row.f_filiale,
191
+ f_filiale_id: this.row.f_filiale_id,
192
+ f_user_id: this.row.f_user_id,
193
+ f_address: this.address,
194
+ f_longitude: this.longitude,
195
+ f_latitude: this.latitude,
196
+ f_operate_name: Vue.user.name,
197
+ f_operate_id: Vue.user.id,
198
+ f_operate_date: Util.toStandardTimeString(),
199
+ f_state: '有效'
200
+ },
201
+ operateList: {
202
+ f_cause: this.cause,
203
+ f_operate_date: Util.toStandardTimeString(),
204
+ f_creation_date: Util.toStandardTimeString(),
205
+ f_creation_name: Vue.user.name,
206
+ f_creation_name_id: Vue.user.id
207
+ },
208
+ files: [],
209
+ imgs: [],
210
+ f_devices_no: this.generateUUID()
211
+ }
212
+ for (const img of this.imgs) {
213
+ const i1 = img.lastIndexOf('?')
214
+ const i2 = img.lastIndexOf('/')
215
+ const key = img.substring(i2+1, i1)
216
+ const filename = img.substring(0, i1)
217
+ param.files.push({
218
+ f_img_url: key,
219
+ f_operate_date: Util.toStandardTimeString(),
220
+ f_operator: Vue.user.name,
221
+ f_operatorid: Vue.user.id
222
+ })
223
+ param.imgs.push({
224
+ key: key,
225
+ filename: filename
226
+ })
227
+ }
228
+ //tag)
229
+ let paramStr = JSON.stringify(param)
230
+ console.log('paramStr=', paramStr)
231
+ // 多长截断一次
232
+ let subLength = 800
233
+ for (let i = 0; i < paramStr.length; i += subLength) {
234
+ HostApp.param_cache(paramStr.substr(i, subLength))
235
+ }
236
+ HostApp.__this__ = this
237
+ HostApp.syncLogic({
238
+ 'logic': 'sealBind',
239
+ 'callback': 'javascript:HostApp.__this__.sealBindBack()',
240
+ 'backresult': 1
241
+ })
242
+ },
243
+ sealBindBack(jo) {
244
+ if(jo.state == 'ok') {
245
+ let res = JSON.parse(jo.result)
246
+ if (res.code == 200 && res.data.code == 200) {
247
+ this.$showMessage('施封成功!')
248
+ this.$back(this.sealUID)
249
+ return
250
+ }
251
+ this.$showMessage(res.data.msg)
252
+ return
253
+ }
254
+ this.$showMessage('网络异常!')
255
+ },
256
+ scan() {
257
+ HostApp.__this__ = this
258
+ HostApp.readNfc({
259
+ 'callback': 'javascript:HostApp.__this__.scanCallback()',
260
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
261
+ // 执行回调方法传入key为backresult
262
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
263
+ 'backresult': 1
264
+ })
265
+ },
266
+ scanCallback() {
267
+ console.log('scanCallback=========')
268
+ const result = HostApp.getNfcUUID()
269
+ console.log('result=', result)
270
+ if (result.code == 200){
271
+ this.sealUID = result.data
272
+ }else {
273
+ this.$showMessage("未识别到铅封信息,请重新尝试!")
274
+ return
275
+ }
276
+ },
277
+ takePic() {
278
+ HostApp.__callback__ = this.cameraCallBack
279
+ HostApp.__this__ = this
280
+
281
+ let fileName = `${Util.guid()}.jpg`
282
+ HostApp._open_a_page({
283
+ type: 'boomerang',
284
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
285
+ param: {
286
+ file: fileName,
287
+ requestCode: 111,
288
+ callback: 'javascript:HostApp.__callback__("%s");',
289
+ watermark: '铅封照片\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.row.f_userinfo_id+ '\t' + this.row.f_user_name+ '\t' + this.row.f_address
290
+ }
291
+ })
292
+ },
293
+ cameraCallBack(fileName) {
294
+ // if (prop == 'f_overall_path') {
295
+ // let f_overall_path = fileName + '?' + Math.random()
296
+ // HostApp.__this__.paper.f_overall_imgs.push({
297
+ // f_overall_path: f_overall_path
298
+ // })
299
+ // } else {
300
+ // HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
301
+ // }
302
+ this.imgs.push(fileName + '?' + Math.random())
303
+ HostApp.__callback__ = null
304
+ HostApp.__this__ = null
305
+ },
306
+ delfile(fileName, index) {
307
+ if (fileName == Vue.nopic)
308
+ return
309
+ else {
310
+ this.imgs.splice(index, 1)
311
+ HostApp.delfile(fileName)
312
+ }
313
+ }
314
+ }
315
+ }
316
+ </script>
317
+ <style scoped>
318
+ .app-row {
319
+ background-color: white;
320
+ padding: 10px 10px 0 10px;
321
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
322
+ }
323
+ .search_input {
324
+ border: 0;
325
+ outline: none;
326
+ }
327
+ .font{
328
+ font: 15px PingFang-SC-Medium;
329
+ color: #666666;
330
+ }
331
+ .input-font{
332
+ font: 15px PingFang-SC-Medium;
333
+ color: #333333;
334
+ }
335
+ .btn-font{
336
+ font:600 16px PingFang-SC-Bold;
337
+ color: #499EDF;
338
+ }
339
+ .btn-color{
340
+ background-color: #FFFFFF;
341
+ border-radius: 10px ;
342
+ border: 1px solid #499EDF;
343
+ }
344
+ .app-text {
345
+ font-size: 12px;
346
+ }
347
+ .panel-self{
348
+ border-radius: 10px;
349
+ border:1px solid #499EDF;
350
+ background-color: #F8F8F8;
351
+ }
352
+ .yybtn-color{
353
+ border-radius: 4px ;
354
+ border: 1px solid #499EDF;
355
+ }
356
+ .qxbtn-color{
357
+ background-color: #FFFFFF;
358
+ border-radius: 4px ;
359
+ border: 1px solid #499EDF;
360
+ }
361
+ .btn-photo{
362
+ border: 0;
363
+ border-radius: 7px;
364
+ background-color: #7dc1f4;
365
+ font: 15px PingFang-SC-Bold;
366
+ height: 20%;
367
+ }
368
+ .div-photo{
369
+ width: auto;
370
+ height: auto;
371
+ /* margin-top: 10px; */
372
+ position: absolute;
373
+ bottom: 10px;
374
+ right: 10px;
375
+ }
376
+ </style>
@@ -0,0 +1,264 @@
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-8" >
23
+ <input class="search_input input-font"
24
+ v-model="model.f_meternumber" condition="uf.f_meternumber like '%{}%'" placeholder="请输入表号" />
25
+ </div>
26
+ </div>
27
+ <div class="row app-row">
28
+ <div class="col-xs-4">
29
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
30
+ <label class="font text-left">基表号:</label>
31
+ </div>
32
+ <div class="col-xs-8" >
33
+ <input class="search_input input-font"
34
+ v-model="model.f_base_meternumber" condition="uf.f_base_meternumber like '%{}%'" placeholder="请输入基表号" />
35
+ </div>
36
+ </div>
37
+ <div class="row app-row">
38
+ <div class="col-xs-4">
39
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
40
+ <label class="font text-left">NB号:</label>
41
+ </div>
42
+ <div class="col-xs-8" >
43
+ <input class="search_input input-font"
44
+ v-model="model.f_meternumber2" condition="uf.f_meternumber like '%{}%'" placeholder="请输入NB号" />
45
+ </div>
46
+ </div>
47
+ <div class="row app-row">
48
+ <div class="col-xs-4">
49
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
50
+ <label class="font text-left">用户名称:</label>
51
+ </div>
52
+ <div class="col-xs-8" >
53
+ <input class="search_input input-font"
54
+ condition="ui.f_user_name like '%{}%'" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
55
+ </div>
56
+ </div>
57
+ <div class="row app-row">
58
+ <div class="col-xs-4">
59
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
60
+ <label class="font text-left">用户地址:</label>
61
+ </div>
62
+ <div class="col-xs-8" >
63
+ <input style="width: 100%" class="search_input input-font"
64
+ condition="ui.f_address like '%{}%'" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
65
+ </div>
66
+ </div>
67
+ <div class="row text-center" style="margin-top: 20px;">
68
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
69
+ @click="search">查询
70
+ </button>
71
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
72
+ @click="$parent.$parent.sealScan">铅封识别
73
+ </button>
74
+ </div>
75
+ <div style="height:30px;"></div>
76
+ </form>
77
+ </div>
78
+ </criteria>
79
+ <list :model="model" partial='list'>
80
+ <div partial>
81
+ <div class="auto app-text" style="margin-top: 5px;">
82
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
83
+ <div class="panel-body panel-self">
84
+ <div class="row">
85
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
86
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_id }}</p>
87
+ </div>
88
+ <div class="row">
89
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
90
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
91
+ </div>
92
+ <div class="row">
93
+ <p class="panel-title col-xs-4 text-left font">表号</p>
94
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
95
+ </div>
96
+ <div class="row">
97
+ <p class="panel-title col-xs-4 text-left font">基表号</p>
98
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_base_meternumber }}</p>
99
+ </div>
100
+ <div class="row">
101
+ <p class="panel-title col-xs-4 text-left font">NB号</p>
102
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
103
+ </div>
104
+ <div class="row">
105
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
106
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
107
+ </div>
108
+ <div class="row" v-if="!row.f_seal_uid">
109
+ <p class="panel-title col-xs-4 text-left font">施封信息</p>
110
+ <p class="panel-title col-xs-8 text-left input-font">暂无</p>
111
+ </div>
112
+ <div class="row" v-if="row.f_operate_name">
113
+ <p class="panel-title col-xs-4 text-left font">施封人员</p>
114
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_name }}</p>
115
+ </div>
116
+ <div class="row" v-if="row.f_operate_name">
117
+ <p class="panel-title col-xs-4 text-left font">施封时间</p>
118
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_operate_date }}</p>
119
+ </div>
120
+ <div class="row" v-if="row.f_operate_name">
121
+ <p class="panel-title col-xs-4 text-left font">施封原因</p>
122
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_cause }}</p>
123
+ </div>
124
+ <div class="col-xs-12">
125
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.toBind(row)">
126
+ {{row.f_seal_uid ? '重新施封' : '施封'}}
127
+ </button>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </list>
134
+ <div partial='emptyHint' style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px">
135
+ <div style="color: steelblue; font-size: 19px">未查询到相关信息</div>
136
+ </div>
137
+ </criteria-paged>
138
+ </div>
139
+ </template>
140
+
141
+ <script>
142
+ import {HttpResetClass, PagedList} from 'vue-client'
143
+ import Vue from 'vue'
144
+ import * as Util from '../Util'
145
+
146
+ export default {
147
+ title: '施封',
148
+ data () {
149
+ let model = new PagedList(
150
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, 20)
151
+ return {
152
+ model: model,
153
+ row: null,
154
+ }
155
+ },
156
+ ready () {
157
+
158
+ },
159
+ computed: {
160
+
161
+ },
162
+ methods:{
163
+ sealScan() {
164
+ HostApp.__this__ = this
165
+ HostApp.readNfc({
166
+ 'callback': 'javascript:HostApp.__this__.sealScanCallback()',
167
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
168
+ // 执行回调方法传入key为backresult
169
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
170
+ 'backresult': 1
171
+ })
172
+ },
173
+ async sealScanCallback() {
174
+ console.log('sealScanCallback=========')
175
+ let result = HostApp.getNfcUUID()
176
+ console.log('result=', result)
177
+ if (result.code == 200){
178
+ const sealUID = result.data
179
+ let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
180
+ data: {
181
+ items: '*',
182
+ tablename: 't_seals_record',
183
+ orderitem: 'f_creation_date desc',
184
+ condition: `f_uid = '${sealUID}' and f_state = '有效'`
185
+ }
186
+ }, {resolveMsg: null, rejectMsg: null})
187
+ if (res.data.length && res.data[0].f_userinfo_id){
188
+ this.$refs.paged.$refs.cri.model.f_userinfo_id = res.data[0].f_userinfo_id
189
+ this.$refs.paged.$refs.cri.search()
190
+ }else {
191
+ return this.$showMessage("该铅封未绑定用户!")
192
+ }
193
+ }else {
194
+ return this.$showMessage("未识别到铅封信息,请重新尝试!")
195
+ }
196
+ },
197
+ async toBind(row) {
198
+ if (row.f_seal_uid){
199
+ let res = await this.$showMessage('该用户已施封,是否重新进行施封?', ['confirm', 'cancel'])
200
+ if (res == 'cancel'){
201
+ return
202
+ }
203
+ }
204
+ var pardate = {
205
+ _this: this,
206
+ title:'铅封绑定',
207
+ safe:false
208
+ }
209
+ this.$dispatch('gotoson',pardate)
210
+ //tag
211
+ this.$goto('seal-bind', {row: row}, 'self', this.reload)
212
+ },
213
+ reload(sealUID){
214
+ console.log('sealUID=', sealUID)
215
+ this.$refs.paged.$refs.cri.search()
216
+ }
217
+ },
218
+ }
219
+ </script>
220
+ <style scoped>
221
+ .app-row {
222
+ background-color: white;
223
+ padding: 10px 10px 0 10px;
224
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
225
+ }
226
+ .search_input {
227
+ border: 0;
228
+ outline: none;
229
+ }
230
+ .font{
231
+ font: 15px PingFang-SC-Medium;
232
+ color: #666666;
233
+ }
234
+ .input-font{
235
+ font: 15px PingFang-SC-Medium;
236
+ color: #333333;
237
+ }
238
+ .btn-font{
239
+ font:600 16px PingFang-SC-Bold;
240
+ color: #499EDF;
241
+ }
242
+ .btn-color{
243
+ background-color: #FFFFFF;
244
+ border-radius: 10px ;
245
+ border: 1px solid #499EDF;
246
+ }
247
+ .app-text {
248
+ font-size: 12px;
249
+ }
250
+ .panel-self{
251
+ border-radius: 10px;
252
+ border:1px solid #499EDF;
253
+ background-color: #F8F8F8;
254
+ }
255
+ .yybtn-color{
256
+ border-radius: 4px ;
257
+ border: 1px solid #499EDF;
258
+ }
259
+ .qxbtn-color{
260
+ background-color: #FFFFFF;
261
+ border-radius: 4px ;
262
+ border: 1px solid #499EDF;
263
+ }
264
+ </style>