safecheck-client 3.0.30-53 → 3.0.30-55
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 +133 -133
- package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -509
- package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
- package/src/filiale/wensu/android.js +16 -15
- package/src/filiale/wensu/pc/checkUserList.vue +646 -596
- package/src/filiale/yongzhou/pc/safeDetail.vue +248 -248
- package/src/main.js +33 -33
@@ -0,0 +1,480 @@
|
|
1
|
+
<style scoped>
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
|
+
.app-row {
|
8
|
+
background-color: white;
|
9
|
+
padding: 10px 10px 0 10px;
|
10
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
11
|
+
}
|
12
|
+
.search_input {
|
13
|
+
border: 0;
|
14
|
+
outline: none;
|
15
|
+
}
|
16
|
+
.font{
|
17
|
+
font: 15px PingFang-SC-Medium;
|
18
|
+
color: #666666;
|
19
|
+
}
|
20
|
+
.input-font{
|
21
|
+
font: 15px PingFang-SC-Medium;
|
22
|
+
color: #333333;
|
23
|
+
}
|
24
|
+
.btn-font{
|
25
|
+
font:600 16px PingFang-SC-Bold;
|
26
|
+
color: #499EDF;
|
27
|
+
}
|
28
|
+
.btn-color{
|
29
|
+
background-color: #FFFFFF;
|
30
|
+
border-radius: 10px ;
|
31
|
+
border: 1px solid #499EDF;
|
32
|
+
}
|
33
|
+
.app-text {
|
34
|
+
font-size: 12px;
|
35
|
+
}
|
36
|
+
.panel-self{
|
37
|
+
border-radius: 10px;
|
38
|
+
border:1px solid #499EDF;
|
39
|
+
background-color: #F8F8F8;
|
40
|
+
}
|
41
|
+
.yybtn-color{
|
42
|
+
background-color:#499edf;
|
43
|
+
border-radius: 4px ;
|
44
|
+
border: 1px solid #499EDF;
|
45
|
+
color: #FFFFFF;
|
46
|
+
font: 14px PingFang-SC-Bold;
|
47
|
+
}
|
48
|
+
.qxbtn-color{
|
49
|
+
background-color: #FFFFFF;
|
50
|
+
border-radius: 4px ;
|
51
|
+
color: #499edf;
|
52
|
+
font: 14px PingFang-SC-Bold;
|
53
|
+
border: 1px solid #499EDF;
|
54
|
+
}
|
55
|
+
|
56
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
|
57
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
|
58
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
|
59
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
|
60
|
+
</style>
|
61
|
+
<template>
|
62
|
+
<div style="height: auto;width: 100%">
|
63
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
64
|
+
<!-- <criteria partial='criteria' @condition-changed='search' v-ref:cri>-->
|
65
|
+
<!-- <div partial>-->
|
66
|
+
<!-- <form>-->
|
67
|
+
<!-- <div class="row app-row">-->
|
68
|
+
<!-- <div class="col-xs-4">-->
|
69
|
+
<!-- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
70
|
+
<!-- <label class="font text-left">用户姓名:</label>-->
|
71
|
+
<!-- </div>-->
|
72
|
+
<!-- <div class="col-xs-8" >-->
|
73
|
+
<!-- <input class="search_input input-font" v-model=model.f_user_name condition="tcp.f_user_name like '%{}%'" />-->
|
74
|
+
<!-- </div>-->
|
75
|
+
<!-- </div>-->
|
76
|
+
<!-- <div class="row app-row">-->
|
77
|
+
<!-- <div class="col-xs-4">-->
|
78
|
+
<!-- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
79
|
+
<!-- <label for="f_userinfo_code" class="font text-left">用户编号:</label>-->
|
80
|
+
<!-- </div>-->
|
81
|
+
<!-- <div class="col-xs-8" >-->
|
82
|
+
<!-- <input id="f_userinfo_code" class="search_input input-font"-->
|
83
|
+
<!-- v-model=model.f_userinfo_code condition="tcp.f_userinfo_code = '{}'" />-->
|
84
|
+
<!-- </div>-->
|
85
|
+
<!-- </div>-->
|
86
|
+
<!-- <div class="row app-row">-->
|
87
|
+
<!-- <div class="col-xs-4">-->
|
88
|
+
<!-- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
89
|
+
<!-- <label for="f_meternumber" class="font text-left">用户表号:</label>-->
|
90
|
+
<!-- </div>-->
|
91
|
+
<!-- <div class="col-xs-8" >-->
|
92
|
+
<!-- <input id="f_meternumber" class="search_input input-font"-->
|
93
|
+
<!-- v-model=model.f_meternumber condition="uf.f_meternumber = '{}'" />-->
|
94
|
+
<!-- </div>-->
|
95
|
+
<!-- </div>-->
|
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"-->
|
103
|
+
<!-- v-model=model.f_address condition="tcp.f_address like '%{}%'" />-->
|
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 for="f_state" class="font text-left">起始时间:</label>-->
|
110
|
+
<!-- </div>-->
|
111
|
+
<!-- <datepicker id="f_start_date"-->
|
112
|
+
<!-- placeholder= '起始时间'-->
|
113
|
+
<!-- :value.sync="model.f_start_date"-->
|
114
|
+
<!-- :disabled-days-of-Week="[]"-->
|
115
|
+
<!-- v-model="model.f_start_date"-->
|
116
|
+
<!-- class="input-font"-->
|
117
|
+
<!-- :format="'yyyy-MM-dd 00:00:00'"-->
|
118
|
+
<!-- :show-reset-button="reset" readonly="readonly">-->
|
119
|
+
<!-- </datepicker>-->
|
120
|
+
<!-- </div>-->
|
121
|
+
<!-- <div class="row app-row">-->
|
122
|
+
<!-- <div class="col-xs-4">-->
|
123
|
+
<!-- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
124
|
+
<!-- <label for="f_state" class="font text-left">结束时间:</label>-->
|
125
|
+
<!-- </div>-->
|
126
|
+
<!-- <datepicker id="f_end_date"-->
|
127
|
+
<!-- placeholder= '结束时间'-->
|
128
|
+
<!-- :value.sync="model.f_end_date"-->
|
129
|
+
<!-- :disabled-days-of-Week="[]"-->
|
130
|
+
<!-- v-model="model.f_end_date"-->
|
131
|
+
<!-- class="input-font"-->
|
132
|
+
<!-- :format="'yyyy-MM-dd 23:59:00'"-->
|
133
|
+
<!-- :show-reset-button="reset" readonly="readonly">-->
|
134
|
+
<!-- </datepicker>-->
|
135
|
+
<!-- </div>-->
|
136
|
+
<!-- <div class="row text-center" style="margin-top: 20px;">-->
|
137
|
+
<!-- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>-->
|
138
|
+
<!-- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>-->
|
139
|
+
<!-- </div>-->
|
140
|
+
<!-- <div style="height:30px;"></div>-->
|
141
|
+
<!-- </form>-->
|
142
|
+
<!-- </div>-->
|
143
|
+
<!-- </criteria>-->
|
144
|
+
<list :model="model" partial='list'>
|
145
|
+
<div partial>
|
146
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
147
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
148
|
+
<div class="panel-body panel-self">
|
149
|
+
<div class="col-xs-12">
|
150
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
151
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
152
|
+
</div>
|
153
|
+
<div class="col-xs-12">
|
154
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户表号:</b></p>
|
155
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_meternumber }}</p>
|
156
|
+
</div>
|
157
|
+
<div class="col-xs-12">
|
158
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
159
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
160
|
+
</div>
|
161
|
+
<div class="col-xs-12">
|
162
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
163
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div class="col-xs-12">
|
167
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
168
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div class="col-xs-6">
|
172
|
+
<p class="panel-title col-xs-5 text-left font"><b>检 查 项:</b></p>
|
173
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
|
174
|
+
</div>
|
175
|
+
<div class="col-xs-6">
|
176
|
+
<p class="panel-title col-xs-5 text-left font"><b>隐 患 项:</b></p>
|
177
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
|
178
|
+
</div>
|
179
|
+
<div class="col-xs-6">
|
180
|
+
<p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
|
181
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
|
182
|
+
</div>
|
183
|
+
<div class="col-xs-12">
|
184
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.openshowModal(row.f_path)">查看</button>
|
185
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.openshowModal1(row)">处理</button>
|
186
|
+
<!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
</list>
|
193
|
+
</criteria-paged>
|
194
|
+
</div>
|
195
|
+
<modal :show.sync="showModal">
|
196
|
+
<div slot="modal-header" class="modal-header">
|
197
|
+
<h4 class="modal-title">
|
198
|
+
隐患照片
|
199
|
+
</h4>
|
200
|
+
</div>
|
201
|
+
<div slot="modal-body" class="modal-body">
|
202
|
+
<div class="from-group">
|
203
|
+
<div class="row">
|
204
|
+
<div class="col-md-6">
|
205
|
+
<img-self :src="showimg" width="300" height="400"></img-self>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
<div slot="modal-footer" class="modal-footer">
|
211
|
+
<button type="button" class="btn btn-default" @click="closeshowModal">确认</button>
|
212
|
+
</div>
|
213
|
+
</modal>
|
214
|
+
<modal :show.sync="showModal1">
|
215
|
+
<div slot="modal-header" class="modal-header">
|
216
|
+
<h4 class="modal-title">
|
217
|
+
处理结果
|
218
|
+
</h4>
|
219
|
+
</div>
|
220
|
+
<div slot="modal-body" class="modal-body">
|
221
|
+
<div class="form-group col-sm-12">
|
222
|
+
<div class="auto">
|
223
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
224
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
225
|
+
<img-self :src="deal.f_deal_path" alt="整改照片" :width="140" :height="170" capture="camera" type="file" ></img-self>
|
226
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
227
|
+
<img src="../../../assets/remove.png" @click="delfile('f_deal_path', deal.f_deal_path)" ></img>
|
228
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_deal_path','整改照片')" >拍照</button>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
<div class="form-group col-sm-12" v-if="isNeedDealSign">
|
235
|
+
<p class="panel-title text-left font" style="text-align: center">用户签名:</p>
|
236
|
+
<div class="auto">
|
237
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
238
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
239
|
+
<img :src="deal.f_dealsign_path" :width="200" :height="150"/>
|
240
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: 60px">
|
241
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button> </div>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div class="row app-row">
|
247
|
+
<div class="col-xs-2">
|
248
|
+
<p class="panel-title text-left font" style="text-align: center">备注</p>
|
249
|
+
</div>
|
250
|
+
<div class="col-xs-9">
|
251
|
+
<textarea class="input-font " v-model=deal.f_deal_remark style="width: 100%"></textarea>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
<div class="row app-row">
|
255
|
+
<label class="checkbox-inline">
|
256
|
+
<input type="checkbox" v-model="deletecauseBooble"> 是否需要取消拉黑
|
257
|
+
</label>
|
258
|
+
</div>
|
259
|
+
<div class="row app-row" v-show="deletecauseBooble">
|
260
|
+
<div class="col-xs-2">
|
261
|
+
<p class="panel-title text-left font" style="text-align: center">取消拉黑原因:</p>
|
262
|
+
</div>
|
263
|
+
<div class="col-xs-9">
|
264
|
+
<textarea class="input-font " v-model="deletecause" style="width: 100%" placeholder="请输入取消限制用户购气原因"></textarea>
|
265
|
+
</div>
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
<div slot="modal-footer" class="modal-footer">
|
269
|
+
<button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
|
270
|
+
<button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
|
271
|
+
</div>
|
272
|
+
</modal>
|
273
|
+
</template>
|
274
|
+
|
275
|
+
<script>
|
276
|
+
|
277
|
+
import Vue from 'vue'
|
278
|
+
import { PagedList,HttpResetClass } from 'vue-client'
|
279
|
+
import * as Util from '../../Util'
|
280
|
+
|
281
|
+
export default {
|
282
|
+
title: '无计划安检查询',
|
283
|
+
props: {
|
284
|
+
id: {
|
285
|
+
type: String
|
286
|
+
}
|
287
|
+
},
|
288
|
+
data() {
|
289
|
+
return {
|
290
|
+
showModal:false,
|
291
|
+
showModal1:false,
|
292
|
+
showimg:'',
|
293
|
+
deletecause:'',
|
294
|
+
deletecauseBooble: false,
|
295
|
+
deal:{
|
296
|
+
result:{},
|
297
|
+
f_deal_path:'',
|
298
|
+
f_deal_remark:'',
|
299
|
+
f_dealsign_path:'', //签名
|
300
|
+
f_dealer:Vue.user.name,
|
301
|
+
f_dealer_id:Vue.user.id
|
302
|
+
},
|
303
|
+
f_filialeids:'',
|
304
|
+
model:new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/AndroidDealWith`,20,{condition:'this.condition',f_filialeids:`'${Vue.user.orgid}'`,f_checker_id:`'${Vue.user.id}'`}),
|
305
|
+
criteriaShow: false,
|
306
|
+
isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
|
307
|
+
}
|
308
|
+
},
|
309
|
+
ready(){
|
310
|
+
this.$androidUtil.setPreference('paper_id', this.id)
|
311
|
+
this.selfSearch()
|
312
|
+
},
|
313
|
+
methods: {
|
314
|
+
// 签名回调
|
315
|
+
signCallback(prop, fileName) {
|
316
|
+
console.log("签名回调地址" + fileName)
|
317
|
+
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
318
|
+
HostApp.__this__.$set('deal.f_dealsign_path', fileName)
|
319
|
+
HostApp.__callback__ = null
|
320
|
+
HostApp.__this__ = null
|
321
|
+
},
|
322
|
+
// 用户签名
|
323
|
+
sign() {
|
324
|
+
if (!this.deal.f_deal_path) {
|
325
|
+
this.$showMessage('请先拍摄处理后照片!!!')
|
326
|
+
return
|
327
|
+
}
|
328
|
+
this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
|
329
|
+
let prop = 'f_dealsign_path'
|
330
|
+
let idx = 'aofeng'
|
331
|
+
let fileName
|
332
|
+
if (!this.deal.f_dealsign_path) {
|
333
|
+
fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
334
|
+
} else {
|
335
|
+
fileName = Util.getFileName(this.deal.f_dealsign_path)
|
336
|
+
}
|
337
|
+
HostApp.__callback__ = this.signCallback
|
338
|
+
HostApp.__this__ = this
|
339
|
+
HostApp.getSignature({
|
340
|
+
file: fileName,
|
341
|
+
requestCode: 111,
|
342
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
343
|
+
})
|
344
|
+
},
|
345
|
+
delAudioFile(prop, fileName) {
|
346
|
+
if (!fileName)
|
347
|
+
return
|
348
|
+
else {
|
349
|
+
HostApp.delfile(fileName)
|
350
|
+
this.deal[prop] = null
|
351
|
+
}
|
352
|
+
},
|
353
|
+
commitDealDefect(){
|
354
|
+
if (this.deletecauseBooble && !this.deletecause) {
|
355
|
+
this.$showMessage("请填写取消拉黑原因!")
|
356
|
+
return;
|
357
|
+
}
|
358
|
+
if (!this.deal.f_deal_path){
|
359
|
+
this.$showMessage('处理后照片必须上传')
|
360
|
+
return
|
361
|
+
}
|
362
|
+
if (this.isNeedDealSign && !this.deal.f_dealsign_path){
|
363
|
+
this.$showMessage('签名必须上传')
|
364
|
+
return
|
365
|
+
}
|
366
|
+
if (this.deletecauseBooble) {
|
367
|
+
let http = new HttpResetClass()
|
368
|
+
http.load('POST', 'http://36.108.175.152:8000/API/Secheck/SetBlackList', {
|
369
|
+
data: {
|
370
|
+
"id": this.deal.result.f_userinfo_code,
|
371
|
+
"bh": this.deal.result.f_meternumber,
|
372
|
+
"black": false,
|
373
|
+
"blackMemo": this.deletecause
|
374
|
+
}
|
375
|
+
}, {resolveMsg: null, rejectMsg: null})
|
376
|
+
.then((res)=>{
|
377
|
+
if (res.data.Success) {
|
378
|
+
HostApp.__this__ = this
|
379
|
+
HostApp.logicWithHint({'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
380
|
+
'data': this.deal, 'backresult':1
|
381
|
+
})
|
382
|
+
} else {
|
383
|
+
this.$showMessage("取消拉黑失败,请稍后再试!")
|
384
|
+
}
|
385
|
+
})
|
386
|
+
} else {
|
387
|
+
HostApp.__this__ = this
|
388
|
+
HostApp.logicWithHint({'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
389
|
+
'data': this.deal, 'backresult':1
|
390
|
+
})
|
391
|
+
}
|
392
|
+
},
|
393
|
+
commitCallBack(jo){
|
394
|
+
//tag
|
395
|
+
//tag)
|
396
|
+
if (jo.state =='ok'){
|
397
|
+
let ress = JSON.parse(jo.result)
|
398
|
+
if (ress.code == 200 ) {
|
399
|
+
this.$showMessage(ress.msg)
|
400
|
+
this.closeshowModal1()
|
401
|
+
} else {
|
402
|
+
this.$showMessage(ress.msg)
|
403
|
+
}
|
404
|
+
}else{
|
405
|
+
this.$showMessage('本地服务调用失败')
|
406
|
+
}
|
407
|
+
},
|
408
|
+
delfile(prop, fileName) {
|
409
|
+
if (fileName == Vue.nopic)
|
410
|
+
return
|
411
|
+
else {
|
412
|
+
HostApp.delfile(fileName)
|
413
|
+
this.deal[prop] = Vue.nopic
|
414
|
+
}
|
415
|
+
},
|
416
|
+
openshowModal(val){
|
417
|
+
//tag
|
418
|
+
//tag
|
419
|
+
this.showimg=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+val
|
420
|
+
this.showModal=true
|
421
|
+
},
|
422
|
+
closeshowModal(){
|
423
|
+
this.showimg=''
|
424
|
+
this.showModal=false
|
425
|
+
},
|
426
|
+
openshowModal1(val){
|
427
|
+
this.deal.result=val
|
428
|
+
//tag
|
429
|
+
//tag
|
430
|
+
this.showModal1=true
|
431
|
+
},
|
432
|
+
closeshowModal1(){
|
433
|
+
this.deal={
|
434
|
+
result: {},
|
435
|
+
f_deal_path:'',
|
436
|
+
f_deal_remark:'',
|
437
|
+
f_dealsign_path:'', //签名
|
438
|
+
f_dealer:Vue.user.name,
|
439
|
+
f_dealer_id:Vue.user.id
|
440
|
+
}
|
441
|
+
this.showModal1=false
|
442
|
+
this.selfSearch()
|
443
|
+
},
|
444
|
+
cameraCallBack(prop, fileName) {
|
445
|
+
HostApp.__this__.deal.f_deal_path = fileName
|
446
|
+
HostApp.__callback__ = null
|
447
|
+
HostApp.__this__ = null
|
448
|
+
},
|
449
|
+
takePic(prop, title) {
|
450
|
+
HostApp.__callback__ = this.cameraCallBack
|
451
|
+
HostApp.__this__ = this
|
452
|
+
let fileName
|
453
|
+
if (!this.deal.f_deal_path || this.deal.f_deal_path.includes("nopic.png")) {
|
454
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
455
|
+
} else {
|
456
|
+
fileName = Util.getFileName(this.deal.f_deal_path)
|
457
|
+
}
|
458
|
+
//tag
|
459
|
+
//tag
|
460
|
+
HostApp._open_a_page({
|
461
|
+
type: 'boomerang',
|
462
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
463
|
+
param: {
|
464
|
+
file: fileName,
|
465
|
+
requestCode: 111,
|
466
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
467
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
468
|
+
}
|
469
|
+
})
|
470
|
+
},
|
471
|
+
selfSearch () {
|
472
|
+
this.model.search(`tcp.id = '${this.id}'`)
|
473
|
+
},
|
474
|
+
|
475
|
+
hidden() {
|
476
|
+
this.criteriaShow = !this.criteriaShow
|
477
|
+
},
|
478
|
+
}
|
479
|
+
}
|
480
|
+
</script>
|
@@ -1,15 +1,16 @@
|
|
1
|
-
// 分公司特殊组件页面注册
|
2
|
-
import Vue from "vue";
|
3
|
-
//
|
4
|
-
// // 手机特殊目录注册到该文件中
|
5
|
-
let specialComp = {
|
6
|
-
'current-create' : (resolve) => { require(['./android/CurrentCreate'], resolve) },
|
7
|
-
'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
|
8
|
-
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
|
9
|
-
'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo'], resolve) },
|
10
|
-
'paper-feedback': (resolve) => { require(['./android/PaperFeedback'], resolve) },
|
11
|
-
'android-defect-deal': (resolve) => { require(['./android/AndroidDefectDeal'], resolve) },
|
12
|
-
'
|
13
|
-
}
|
14
|
-
|
15
|
-
|
1
|
+
// 分公司特殊组件页面注册
|
2
|
+
import Vue from "vue";
|
3
|
+
//
|
4
|
+
// // 手机特殊目录注册到该文件中
|
5
|
+
let specialComp = {
|
6
|
+
'current-create' : (resolve) => { require(['./android/CurrentCreate'], resolve) },
|
7
|
+
'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
|
8
|
+
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
|
9
|
+
'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo'], resolve) },
|
10
|
+
'paper-feedback': (resolve) => { require(['./android/PaperFeedback'], resolve) },
|
11
|
+
'android-defect-deal': (resolve) => { require(['./android/AndroidDefectDeal'], resolve) },
|
12
|
+
'android-defect-deal-items': (resolve) => { require(['./android/AndroidDefectDealItems'], resolve) },
|
13
|
+
'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) }
|
14
|
+
}
|
15
|
+
exports.specialComp = specialComp
|
16
|
+
|