safecheck-client 3.0.39-1 → 3.0.39-2
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 +1 -1
- package/src/components/android/AreaPlan.vue +567 -566
- package/src/components/android/SafecheckDevices.vue +1300 -1300
- package/src/components/android/SealBind.vue +392 -392
- package/src/components/android/SealManage.vue +250 -250
- package/src/components/map/checkScreen.vue +920 -920
- package/src/filiale/dexin/android/AreaPlan.vue +567 -0
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2983 -2983
- package/src/filiale/dexin/android.js +21 -20
- package/src/filiale/dexin/pc/PlanManage.vue +894 -894
- package/src/filiale/dexin/pc.js +15 -15
- package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
- package/src/filiale/huayin/android/AddPlanItem.vue +509 -509
- package/src/filiale/huayin/android/AreaPlan.vue +572 -572
- package/src/filiale/huayin/android/CurrentCreate.vue +1121 -1121
- package/src/filiale/huayin/android.js +16 -16
- package/src/filiale/huayin/pc/PaperList.vue +635 -635
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1231 -1231
- package/src/filiale/tongchuan/android/AddPlanItemset.vue +484 -484
- package/src/filiale/tongchuan/android/PaperFeedback.vue +1317 -1317
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1343 -1343
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1209 -1209
- package/src/filiale/tongchuan/android.js +22 -22
- package/src/filiale/tongchuan/pc/CheckBookList.vue +377 -377
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +618 -618
- package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1524 -1524
- package/src/filiale/tongchuan/pc/PaperList.vue +684 -684
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +278 -278
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1136 -1136
|
@@ -1,250 +1,250 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' 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_code" condition="ui.f_userinfo_code = '{}'" 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/用户姓名.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
|
-
condition="ui.f_user_name like '%{}%'" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="row app-row">
|
|
38
|
-
<div class="col-xs-4">
|
|
39
|
-
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
40
|
-
<label class="font text-left">用户地址:</label>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="col-xs-8" >
|
|
43
|
-
<input style="width: 100%" class="search_input input-font"
|
|
44
|
-
condition="ui.f_address like '%{}%'" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row text-center" style="margin-top: 20px;">
|
|
48
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
49
|
-
@click="search">查询
|
|
50
|
-
</button>
|
|
51
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
52
|
-
@click="$parent.$parent.sealScan">铅封识别
|
|
53
|
-
</button>
|
|
54
|
-
</div>
|
|
55
|
-
<div style="height:30px;"></div>
|
|
56
|
-
</form>
|
|
57
|
-
</div>
|
|
58
|
-
</criteria>
|
|
59
|
-
<list :model="model" partial='list'>
|
|
60
|
-
<div partial>
|
|
61
|
-
<div class="auto app-text" style="margin-top: 5px;">
|
|
62
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
63
|
-
<div class="panel-body panel-self">
|
|
64
|
-
<div class="row">
|
|
65
|
-
<p class="panel-title col-xs-4 text-left font">用户编号</p>
|
|
66
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="row">
|
|
69
|
-
<p class="panel-title col-xs-4 text-left font">用户名称</p>
|
|
70
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="row">
|
|
73
|
-
<p class="panel-title col-xs-4 text-left font">表号</p>
|
|
74
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="row">
|
|
77
|
-
<p class="panel-title col-xs-4 text-left font">表状态</p>
|
|
78
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_table_state }}</p>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="row">
|
|
81
|
-
<p class="panel-title col-xs-4 text-left font">用户地址</p>
|
|
82
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="row" v-if="!row.f_seal_uid">
|
|
85
|
-
<p class="panel-title col-xs-4 text-left font">施封信息</p>
|
|
86
|
-
<p class="panel-title col-xs-8 text-left input-font">暂无</p>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="row" v-if="row.f_operate_name">
|
|
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_operate_name }}</p>
|
|
91
|
-
</div>
|
|
92
|
-
<div class="row" v-if="row.f_operate_name">
|
|
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_operate_date }}</p>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="row" v-if="row.f_operate_name">
|
|
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_cause }}</p>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="col-xs-12" v-if="row.f_user_state!='销户'">
|
|
101
|
-
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.toBind(row)">
|
|
102
|
-
{{row.f_seal_uid ? '重新施封' : '施封'}}
|
|
103
|
-
</button>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</list>
|
|
110
|
-
<div partial='emptyHint' style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px">
|
|
111
|
-
<div style="color: steelblue; font-size: 19px">未查询到相关信息</div>
|
|
112
|
-
</div>
|
|
113
|
-
</criteria-paged>
|
|
114
|
-
</div>
|
|
115
|
-
</template>
|
|
116
|
-
|
|
117
|
-
<script>
|
|
118
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
119
|
-
import Vue from 'vue'
|
|
120
|
-
import * as Util from '../Util'
|
|
121
|
-
|
|
122
|
-
export default {
|
|
123
|
-
title: '施封',
|
|
124
|
-
data () {
|
|
125
|
-
let model = new PagedList(
|
|
126
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, 20)
|
|
127
|
-
return {
|
|
128
|
-
model: model,
|
|
129
|
-
row: null,
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
ready () {
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
computed: {
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
methods:{
|
|
139
|
-
sealScan() {
|
|
140
|
-
HostApp.__this__ = this
|
|
141
|
-
HostApp.readNfc({
|
|
142
|
-
'callback': 'javascript:HostApp.__this__.sealScanCallback()',
|
|
143
|
-
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
144
|
-
// 执行回调方法传入key为backresult
|
|
145
|
-
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
146
|
-
'backresult': 1
|
|
147
|
-
})
|
|
148
|
-
},
|
|
149
|
-
async sealScanCallback() {
|
|
150
|
-
console.log('sealScanCallback=========')
|
|
151
|
-
let result = HostApp.getNfcUUID()
|
|
152
|
-
console.log('result=', result)
|
|
153
|
-
if (result.code == 200){
|
|
154
|
-
let sealUID = ''
|
|
155
|
-
if (result.data.indexOf('=') > 0) {
|
|
156
|
-
sealUID = result.data.substring(result.data.indexOf('=') + 1)
|
|
157
|
-
}else{
|
|
158
|
-
sealUID = result.data
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
162
|
-
data: {
|
|
163
|
-
items: '*',
|
|
164
|
-
tablename: 't_seals_record',
|
|
165
|
-
orderitem: 'f_creation_date desc',
|
|
166
|
-
condition: `f_uid = '${sealUID}' and f_state = '有效'`
|
|
167
|
-
}
|
|
168
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
169
|
-
if (res.data.length > 0 && res.data[0].f_userinfo_code){
|
|
170
|
-
this.$refs.paged.$refs.cri.model.f_userinfo_code = res.data[0].f_userinfo_code
|
|
171
|
-
this.$refs.paged.$refs.cri.search()
|
|
172
|
-
}else {
|
|
173
|
-
return this.$showMessage("该铅封未绑定用户!")
|
|
174
|
-
}
|
|
175
|
-
}else {
|
|
176
|
-
return this.$showMessage("未识别到铅封信息,请重新尝试!")
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
async toBind(row) {
|
|
180
|
-
if (row.f_seal_uid){
|
|
181
|
-
let res = await this.$showMessage('该用户已施封,是否重新进行施封?', ['confirm', 'cancel'])
|
|
182
|
-
if (res == 'cancel'){
|
|
183
|
-
return
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
var pardate = {
|
|
187
|
-
_this: this,
|
|
188
|
-
title:'铅封绑定',
|
|
189
|
-
safe:false
|
|
190
|
-
}
|
|
191
|
-
this.$dispatch('gotoson',pardate)
|
|
192
|
-
//tag
|
|
193
|
-
this.$goto('seal-bind', {row: row}, 'self', this.reload)
|
|
194
|
-
},
|
|
195
|
-
reload(sealUID){
|
|
196
|
-
console.log('sealUID=', sealUID)
|
|
197
|
-
this.$refs.paged.$refs.cri.search()
|
|
198
|
-
},
|
|
199
|
-
selfSearch(args){
|
|
200
|
-
args.condition +=` and uf.f_whether_hairpin = '已发'`
|
|
201
|
-
this.model.search(args.condition, args.model, args.condValue)
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
}
|
|
205
|
-
</script>
|
|
206
|
-
<style scoped>
|
|
207
|
-
.app-row {
|
|
208
|
-
background-color: white;
|
|
209
|
-
padding: 10px 10px 0 10px;
|
|
210
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
211
|
-
}
|
|
212
|
-
.search_input {
|
|
213
|
-
border: 0;
|
|
214
|
-
outline: none;
|
|
215
|
-
}
|
|
216
|
-
.font{
|
|
217
|
-
font: 15px PingFang-SC-Medium;
|
|
218
|
-
color: #666666;
|
|
219
|
-
}
|
|
220
|
-
.input-font{
|
|
221
|
-
font: 15px PingFang-SC-Medium;
|
|
222
|
-
color: #333333;
|
|
223
|
-
}
|
|
224
|
-
.btn-font{
|
|
225
|
-
font:600 16px PingFang-SC-Bold;
|
|
226
|
-
color: #499EDF;
|
|
227
|
-
}
|
|
228
|
-
.btn-color{
|
|
229
|
-
background-color: #FFFFFF;
|
|
230
|
-
border-radius: 10px ;
|
|
231
|
-
border: 1px solid #499EDF;
|
|
232
|
-
}
|
|
233
|
-
.app-text {
|
|
234
|
-
font-size: 12px;
|
|
235
|
-
}
|
|
236
|
-
.panel-self{
|
|
237
|
-
border-radius: 10px;
|
|
238
|
-
border:1px solid #499EDF;
|
|
239
|
-
background-color: #F8F8F8;
|
|
240
|
-
}
|
|
241
|
-
.yybtn-color{
|
|
242
|
-
border-radius: 4px ;
|
|
243
|
-
border: 1px solid #499EDF;
|
|
244
|
-
}
|
|
245
|
-
.qxbtn-color{
|
|
246
|
-
background-color: #FFFFFF;
|
|
247
|
-
border-radius: 4px ;
|
|
248
|
-
border: 1px solid #499EDF;
|
|
249
|
-
}
|
|
250
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' 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_code" condition="ui.f_userinfo_code = '{}'" 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/用户姓名.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
|
+
condition="ui.f_user_name like '%{}%'" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row app-row">
|
|
38
|
+
<div class="col-xs-4">
|
|
39
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
40
|
+
<label class="font text-left">用户地址:</label>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-xs-8" >
|
|
43
|
+
<input style="width: 100%" class="search_input input-font"
|
|
44
|
+
condition="ui.f_address like '%{}%'" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
48
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
49
|
+
@click="search">查询
|
|
50
|
+
</button>
|
|
51
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
52
|
+
@click="$parent.$parent.sealScan">铅封识别
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
55
|
+
<div style="height:30px;"></div>
|
|
56
|
+
</form>
|
|
57
|
+
</div>
|
|
58
|
+
</criteria>
|
|
59
|
+
<list :model="model" partial='list'>
|
|
60
|
+
<div partial>
|
|
61
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
|
62
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
63
|
+
<div class="panel-body panel-self">
|
|
64
|
+
<div class="row">
|
|
65
|
+
<p class="panel-title col-xs-4 text-left font">用户编号</p>
|
|
66
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="row">
|
|
69
|
+
<p class="panel-title col-xs-4 text-left font">用户名称</p>
|
|
70
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="row">
|
|
73
|
+
<p class="panel-title col-xs-4 text-left font">表号</p>
|
|
74
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="row">
|
|
77
|
+
<p class="panel-title col-xs-4 text-left font">表状态</p>
|
|
78
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_table_state }}</p>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="row">
|
|
81
|
+
<p class="panel-title col-xs-4 text-left font">用户地址</p>
|
|
82
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="row" v-if="!row.f_seal_uid">
|
|
85
|
+
<p class="panel-title col-xs-4 text-left font">施封信息</p>
|
|
86
|
+
<p class="panel-title col-xs-8 text-left input-font">暂无</p>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="row" v-if="row.f_operate_name">
|
|
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_operate_name }}</p>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="row" v-if="row.f_operate_name">
|
|
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_operate_date }}</p>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="row" v-if="row.f_operate_name">
|
|
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_cause }}</p>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-xs-12" v-if="row.f_user_state!='销户'">
|
|
101
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.toBind(row)">
|
|
102
|
+
{{row.f_seal_uid ? '重新施封' : '施封'}}
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</list>
|
|
110
|
+
<div partial='emptyHint' style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px">
|
|
111
|
+
<div style="color: steelblue; font-size: 19px">未查询到相关信息</div>
|
|
112
|
+
</div>
|
|
113
|
+
</criteria-paged>
|
|
114
|
+
</div>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<script>
|
|
118
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
119
|
+
import Vue from 'vue'
|
|
120
|
+
import * as Util from '../Util'
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
title: '施封',
|
|
124
|
+
data () {
|
|
125
|
+
let model = new PagedList(
|
|
126
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, 20)
|
|
127
|
+
return {
|
|
128
|
+
model: model,
|
|
129
|
+
row: null,
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
ready () {
|
|
133
|
+
|
|
134
|
+
},
|
|
135
|
+
computed: {
|
|
136
|
+
|
|
137
|
+
},
|
|
138
|
+
methods:{
|
|
139
|
+
sealScan() {
|
|
140
|
+
HostApp.__this__ = this
|
|
141
|
+
HostApp.readNfc({
|
|
142
|
+
'callback': 'javascript:HostApp.__this__.sealScanCallback()',
|
|
143
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
144
|
+
// 执行回调方法传入key为backresult
|
|
145
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
146
|
+
'backresult': 1
|
|
147
|
+
})
|
|
148
|
+
},
|
|
149
|
+
async sealScanCallback() {
|
|
150
|
+
console.log('sealScanCallback=========')
|
|
151
|
+
let result = HostApp.getNfcUUID()
|
|
152
|
+
console.log('result=', result)
|
|
153
|
+
if (result.code == 200){
|
|
154
|
+
let sealUID = ''
|
|
155
|
+
if (result.data.indexOf('=') > 0) {
|
|
156
|
+
sealUID = result.data.substring(result.data.indexOf('=') + 1)
|
|
157
|
+
}else{
|
|
158
|
+
sealUID = result.data
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
162
|
+
data: {
|
|
163
|
+
items: '*',
|
|
164
|
+
tablename: 't_seals_record',
|
|
165
|
+
orderitem: 'f_creation_date desc',
|
|
166
|
+
condition: `f_uid = '${sealUID}' and f_state = '有效'`
|
|
167
|
+
}
|
|
168
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
169
|
+
if (res.data.length > 0 && res.data[0].f_userinfo_code){
|
|
170
|
+
this.$refs.paged.$refs.cri.model.f_userinfo_code = res.data[0].f_userinfo_code
|
|
171
|
+
this.$refs.paged.$refs.cri.search()
|
|
172
|
+
}else {
|
|
173
|
+
return this.$showMessage("该铅封未绑定用户!")
|
|
174
|
+
}
|
|
175
|
+
}else {
|
|
176
|
+
return this.$showMessage("未识别到铅封信息,请重新尝试!")
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
async toBind(row) {
|
|
180
|
+
if (row.f_seal_uid){
|
|
181
|
+
let res = await this.$showMessage('该用户已施封,是否重新进行施封?', ['confirm', 'cancel'])
|
|
182
|
+
if (res == 'cancel'){
|
|
183
|
+
return
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
var pardate = {
|
|
187
|
+
_this: this,
|
|
188
|
+
title:'铅封绑定',
|
|
189
|
+
safe:false
|
|
190
|
+
}
|
|
191
|
+
this.$dispatch('gotoson',pardate)
|
|
192
|
+
//tag
|
|
193
|
+
this.$goto('seal-bind', {row: row}, 'self', this.reload)
|
|
194
|
+
},
|
|
195
|
+
reload(sealUID){
|
|
196
|
+
console.log('sealUID=', sealUID)
|
|
197
|
+
this.$refs.paged.$refs.cri.search()
|
|
198
|
+
},
|
|
199
|
+
selfSearch(args){
|
|
200
|
+
args.condition +=` and uf.f_whether_hairpin = '已发'`
|
|
201
|
+
this.model.search(args.condition, args.model, args.condValue)
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
}
|
|
205
|
+
</script>
|
|
206
|
+
<style scoped>
|
|
207
|
+
.app-row {
|
|
208
|
+
background-color: white;
|
|
209
|
+
padding: 10px 10px 0 10px;
|
|
210
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
211
|
+
}
|
|
212
|
+
.search_input {
|
|
213
|
+
border: 0;
|
|
214
|
+
outline: none;
|
|
215
|
+
}
|
|
216
|
+
.font{
|
|
217
|
+
font: 15px PingFang-SC-Medium;
|
|
218
|
+
color: #666666;
|
|
219
|
+
}
|
|
220
|
+
.input-font{
|
|
221
|
+
font: 15px PingFang-SC-Medium;
|
|
222
|
+
color: #333333;
|
|
223
|
+
}
|
|
224
|
+
.btn-font{
|
|
225
|
+
font:600 16px PingFang-SC-Bold;
|
|
226
|
+
color: #499EDF;
|
|
227
|
+
}
|
|
228
|
+
.btn-color{
|
|
229
|
+
background-color: #FFFFFF;
|
|
230
|
+
border-radius: 10px ;
|
|
231
|
+
border: 1px solid #499EDF;
|
|
232
|
+
}
|
|
233
|
+
.app-text {
|
|
234
|
+
font-size: 12px;
|
|
235
|
+
}
|
|
236
|
+
.panel-self{
|
|
237
|
+
border-radius: 10px;
|
|
238
|
+
border:1px solid #499EDF;
|
|
239
|
+
background-color: #F8F8F8;
|
|
240
|
+
}
|
|
241
|
+
.yybtn-color{
|
|
242
|
+
border-radius: 4px ;
|
|
243
|
+
border: 1px solid #499EDF;
|
|
244
|
+
}
|
|
245
|
+
.qxbtn-color{
|
|
246
|
+
background-color: #FFFFFF;
|
|
247
|
+
border-radius: 4px ;
|
|
248
|
+
border: 1px solid #499EDF;
|
|
249
|
+
}
|
|
250
|
+
</style>
|