safecheck-client 3.0.34-99 → 3.0.35-1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/android/AddPlanItemYy.vue +451 -451
- package/src/components/android/examples/SafeListExamples.vue +296 -296
- package/src/components/android/examples/UserExamples.vue +7 -8
- package/src/components/rongcheng/AspiratedAreaPlan.vue +309 -199
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
- package/src/filiale/bayan/android/PaperFeedback.vue +1669 -1669
- package/src/filiale/bayan/pc/HiddenSituation.vue +295 -256
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1992 -1992
- package/src/filiale/bayan/pc/PaperList.vue +900 -900
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1207 -1207
- package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3035 -3033
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1053 -1040
- package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
- package/src/filiale/xilan/android/AddPlanItem.vue +457 -457
- package/src/filiale/xilan/android/CurrentCreate.vue +1063 -1063
- package/src/filiale/xilan/android.js +11 -11
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
- package/src/main.js +33 -33
- package/src/safecheck-android.js +307 -307
@@ -1,61 +1,61 @@
|
|
1
1
|
<style scoped>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
|
56
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
|
57
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
|
58
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
|
59
59
|
|
60
60
|
</style>
|
61
61
|
|
@@ -153,7 +153,7 @@
|
|
153
153
|
</div>
|
154
154
|
<div class="col-xs-8" >
|
155
155
|
<input class="search_input input-font"
|
156
|
-
|
156
|
+
v-model=model.f_address condition="ti.f_address like '%{}%'" />
|
157
157
|
</div>
|
158
158
|
|
159
159
|
</div>
|
@@ -192,17 +192,17 @@
|
|
192
192
|
v-model="model.f_no_checkplan" condition="ti.f_no_checkplan='{}'" close-on-select clear-button></v-select>
|
193
193
|
</div>
|
194
194
|
</div>-->
|
195
|
-
<!-- <div class="row app-row" v-show="false">-->
|
196
|
-
<!-- <div class="col-xs-4">-->
|
197
|
-
<!-- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
198
|
-
<!-- <label for="f_state" class="font text-left">是否已检:</label>-->
|
199
|
-
<!-- </div>-->
|
200
|
-
<!-- <div class="col-xs-8" >-->
|
201
|
-
<!-- <v-select id="f_state" :value.sync="model.f_state" class="input-font"-->
|
202
|
-
<!-- :options='$parent.$parent.check_states' placeholder='请选择是否已检'-->
|
203
|
-
<!-- v-model="model.f_state" condition="ti.f_state='{}'" close-on-select clear-button></v-select>-->
|
204
|
-
<!-- </div>-->
|
205
|
-
<!-- </div>-->
|
195
|
+
<!-- <div class="row app-row" v-show="false">-->
|
196
|
+
<!-- <div class="col-xs-4">-->
|
197
|
+
<!-- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">-->
|
198
|
+
<!-- <label for="f_state" class="font text-left">是否已检:</label>-->
|
199
|
+
<!-- </div>-->
|
200
|
+
<!-- <div class="col-xs-8" >-->
|
201
|
+
<!-- <v-select id="f_state" :value.sync="model.f_state" class="input-font"-->
|
202
|
+
<!-- :options='$parent.$parent.check_states' placeholder='请选择是否已检'-->
|
203
|
+
<!-- v-model="model.f_state" condition="ti.f_state='{}'" close-on-select clear-button></v-select>-->
|
204
|
+
<!-- </div>-->
|
205
|
+
<!-- </div>-->
|
206
206
|
<!--<div class="row app-row" v-show="$parent.$parent.criteriaShow">
|
207
207
|
<div class="col-xs-4">
|
208
208
|
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
@@ -230,7 +230,7 @@
|
|
230
230
|
<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>
|
231
231
|
</div>
|
232
232
|
<!--<div class="row app-btn">-->
|
233
|
-
|
233
|
+
<!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
|
234
234
|
<!--</div>-->
|
235
235
|
<div style="height:30px;"></div>
|
236
236
|
</form>
|
@@ -238,7 +238,7 @@
|
|
238
238
|
</criteria>
|
239
239
|
<list :model="model" partial='list'>
|
240
240
|
<div partial>
|
241
|
-
<div
|
241
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
242
242
|
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
243
243
|
<div class="panel-body panel-self">
|
244
244
|
<div class="col-xs-12">
|
@@ -284,11 +284,11 @@
|
|
284
284
|
<p class="panel-title col-xs-4 text-left font"><b>上传时间</b></p>
|
285
285
|
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_upload_date }}</p>
|
286
286
|
</div>
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
287
|
+
<div class="row text-right">
|
288
|
+
<button type="button" class="btn yybtn-color" @click="$parent.$parent.$parent.inspect(row)" >查看</button>
|
289
|
+
<button type="button" class="btn qxbtn-color" v-if ="row.f_upload_state=='已传'"
|
290
|
+
@click='$parent.$parent.$parent.imgUp(row)'>图片补充</button>
|
291
|
+
</div>
|
292
292
|
</div>
|
293
293
|
</div>
|
294
294
|
|
@@ -309,156 +309,266 @@
|
|
309
309
|
<button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
|
310
310
|
</div>
|
311
311
|
</modal>
|
312
|
+
<modal :show.sync="imgUpModalShow">
|
313
|
+
<div slot="modal-header" class="modal-header">
|
314
|
+
<h4 class="modal-title">
|
315
|
+
图片补充上传
|
316
|
+
</h4>
|
317
|
+
</div>
|
318
|
+
<div slot="modal-body" class="modal-body">
|
319
|
+
<div class="auto" :class="style__">
|
320
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
321
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
322
|
+
<div class="row" style="height: 240px;overflow: scroll;top: 1px" >
|
323
|
+
<div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in tableImages">
|
324
|
+
<img-self :src="img.path" alt="安检补充照片" :width="140" :height="170"></img-self>
|
325
|
+
<img src="../../assets/删除.png" @click="delfile('path', img.path,index)" style="width: 15px;margin-top: -80px" alt="">
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
<div class="row text-right div-photo">
|
329
|
+
<button type="button" name="button" class="btn btn-photo" @click="takePic('path', '安检补充照片')">拍照</button>
|
330
|
+
</div>
|
331
|
+
</div>
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
</div>
|
335
|
+
<div slot="modal-footer" class="modal-footer">
|
336
|
+
<button type="button" class="btn btn-default" @click="uploadPic">上传</button>
|
337
|
+
</div>
|
338
|
+
</modal>
|
312
339
|
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
313
340
|
</div>
|
314
341
|
</template>
|
315
342
|
|
316
343
|
<script>
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
344
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
345
|
+
import Vue from 'vue'
|
346
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
347
|
+
import * as Util from '../Util'
|
321
348
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
349
|
+
export default {
|
350
|
+
title: '安检计划项',
|
351
|
+
data() {
|
352
|
+
return {
|
353
|
+
tableImages:[],
|
354
|
+
paper_id:'',
|
355
|
+
imgUpModalShow:false,
|
356
|
+
model:Vue.android? new LocalPagedList('androidGetHasDone',5): new PagedList( 'AndroidRest/rs/sql/androidGetHasDone',5),
|
357
|
+
showModal: false,
|
358
|
+
param: null,
|
359
|
+
criteriaShow: false,
|
360
|
+
f_preset_dt : Util.to3339TimeString(),
|
361
|
+
flow_direction:[
|
362
|
+
{label: '全部', value: ''},
|
363
|
+
{label: '左表', value: '左表'},
|
364
|
+
{label: '右表', value: '右表'}
|
365
|
+
],
|
366
|
+
check_states: [
|
367
|
+
{label: '请选择安检状态', value: ''},
|
368
|
+
{label: '未检', value: '未检'},
|
369
|
+
{label: '已检', value: '已检'},
|
370
|
+
],
|
371
|
+
last_check_states: [
|
372
|
+
{label: '请选择上次安检状态', value: ''},
|
373
|
+
{label: '入户', value: '入户'},
|
374
|
+
{label: '拒检', value: '拒检'},
|
375
|
+
{label: '到访不遇', value: '到访不遇'},
|
376
|
+
{label: '未使用天然气', value: '未使用天然气'}
|
377
|
+
],
|
378
|
+
upload_states: [
|
379
|
+
{label: '请选择上传状态', value: ''},
|
380
|
+
{label: '未传', value: '未传'},
|
381
|
+
{label: '已传', value: '已传'}
|
382
|
+
],
|
383
|
+
user_types: [
|
384
|
+
{label: '请选择用户类型', value: ''},
|
385
|
+
{label: '民用', value: '民用'},
|
386
|
+
{label: '非民用', value: '非民用'},
|
387
|
+
],
|
388
|
+
verify_state: [
|
389
|
+
{label: '请选择审核状态', value: ''},
|
390
|
+
{label: '未审核', value: '未审核'},
|
391
|
+
{label: '打回', value: '打回'}
|
392
|
+
],
|
393
|
+
planstates:[
|
364
394
|
{label: '请选择有无安检计划', value: ''},
|
365
395
|
{label: '有计划安检', value: '有计划安检'},
|
366
396
|
{label: '无计划安检', value: '无计划安检'},
|
367
|
-
|
397
|
+
]
|
398
|
+
}
|
399
|
+
},
|
400
|
+
ready(){
|
401
|
+
this.$refs.paged.$refs.cri.model.f_state = '已检'
|
402
|
+
},
|
403
|
+
methods: {
|
404
|
+
delfile(prop, fileName, index) {
|
405
|
+
if (fileName == Vue.nopic){
|
406
|
+
|
407
|
+
}else {
|
408
|
+
this.tableImages.splice(index, 1)
|
409
|
+
HostApp.delfile(fileName)
|
410
|
+
}
|
411
|
+
},
|
412
|
+
cameraCallBack(prop, fileName) {
|
413
|
+
if (prop == 'path') {
|
414
|
+
let path = fileName
|
415
|
+
HostApp.__this__.tableImages.push({
|
416
|
+
path: path
|
417
|
+
})
|
418
|
+
} else {
|
419
|
+
HostApp.__this__.paper[prop] = fileName
|
368
420
|
}
|
421
|
+
HostApp.__callback__ = null
|
422
|
+
HostApp.__this__ = null
|
369
423
|
},
|
370
|
-
|
371
|
-
|
424
|
+
takePic(prop, title) {
|
425
|
+
HostApp.__callback__ = this.cameraCallBack
|
426
|
+
HostApp.__this__ = this
|
427
|
+
let fileName = Util.guid() + '-' + prop + '.jpg'
|
428
|
+
HostApp._open_a_page({
|
429
|
+
type: 'boomerang',
|
430
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
431
|
+
param: {
|
432
|
+
file: fileName,
|
433
|
+
requestCode: 111,
|
434
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
435
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
436
|
+
}
|
437
|
+
})
|
438
|
+
},
|
439
|
+
imgUp(row){
|
440
|
+
this.tableImages = []
|
441
|
+
this.paper_id = ''
|
442
|
+
let http = new HttpResetClass()
|
443
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
444
|
+
items: 'id',
|
445
|
+
tablename: 't_check_paper',
|
446
|
+
condition: `f_check_item_id = '${row.id}'`,
|
447
|
+
orderitem: 'f_upload_date'
|
448
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
449
|
+
this.paper_id = res.data[0].id
|
450
|
+
this.imgUpModalShow = true
|
451
|
+
})
|
452
|
+
},
|
453
|
+
async uploadPic() {
|
454
|
+
if (this.tableImages.length == 0){
|
455
|
+
this.$showMessage('请上传图片')
|
456
|
+
return
|
457
|
+
}
|
458
|
+
let data = {
|
459
|
+
tableImages: this.tableImages
|
460
|
+
}
|
461
|
+
HostApp.__this__ = this
|
462
|
+
HostApp.logicWithHint({
|
463
|
+
'logic': 'imagesUploadAndroid', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
464
|
+
'data': data, 'backresult': 1
|
465
|
+
})
|
466
|
+
},
|
467
|
+
async commitCallBack(jo) {
|
468
|
+
if (jo.state == 'ok'){
|
469
|
+
let result = JSON.parse(jo.result)
|
470
|
+
if (result.images && result.images.length > 0){
|
471
|
+
let condition = result.images.map((item)=>{return `'${item.imgid}'`}).join()
|
472
|
+
await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: `update t_files set f_blobid = '${this.paper_id}' where id in (${condition})`}},
|
473
|
+
{resolveMsg: null, rejectMsg: '上传成功'})
|
474
|
+
this.$showMessage('上传图片成功')
|
475
|
+
this.tableImages = []
|
476
|
+
this.paper_id = ''
|
477
|
+
this.imgUpModalShow = false
|
478
|
+
}else {
|
479
|
+
this.$showMessage('上传图片失败')
|
480
|
+
}
|
481
|
+
}
|
482
|
+
|
483
|
+
},
|
484
|
+
refresh() {
|
485
|
+
//tag
|
486
|
+
// hard code relationship
|
487
|
+
this.$refs.paged.$refs.cri.search()
|
488
|
+
},
|
489
|
+
reload(){
|
490
|
+
//tag
|
491
|
+
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
372
492
|
},
|
373
|
-
|
374
|
-
|
375
|
-
//tag
|
376
|
-
// hard code relationship
|
377
|
-
this.$refs.paged.$refs.cri.search()
|
378
|
-
},
|
379
|
-
reload(){
|
380
|
-
//tag
|
381
|
-
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
382
|
-
},
|
383
|
-
inspect(row) {
|
384
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}}).then((response) => {
|
493
|
+
inspect(row) {
|
494
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}}).then((response) => {
|
385
495
|
//tag)
|
386
496
|
row['f_plan_meters'] = response.data
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
497
|
+
var pardate = {
|
498
|
+
_this:this,
|
499
|
+
tittle:'安检计划',
|
500
|
+
safe:true
|
501
|
+
}
|
502
|
+
this.$dispatch('gotoson',pardate)
|
503
|
+
this.$goto('AspiratedOrderV', {f_plan_id: row.f_plan_id, item: row, role: 'inspect'}, 'self', this.reload)
|
394
504
|
/* if (row.f_user_type == '民用') {
|
395
505
|
this.$goto('paper-set', {f_plan_id: row.f_plan_id, item: row, role: 'inspect'}, 'self', this.reload)
|
396
506
|
} else {
|
397
507
|
this.$goto('paper-set-noncivil', {f_plan_id: row.f_plan_id, item: row, role: 'inspect'}, 'self', this.reload)
|
398
508
|
}*/
|
399
509
|
}).catch((err)=>{
|
400
|
-
|
401
|
-
|
510
|
+
this.$showMessage('网络异常,请稍后再试!')
|
511
|
+
})
|
402
512
|
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
513
|
+
},
|
514
|
+
makeAPhoneCall(phoneNumber) {
|
515
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
516
|
+
},
|
517
|
+
reserve (idx) {
|
518
|
+
this.param = idx
|
519
|
+
this.showModal = true
|
520
|
+
},
|
521
|
+
cancelReserve (idx, id) {
|
522
|
+
if(Vue.android){
|
523
|
+
let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
|
524
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
525
|
+
if (res.code == 200) {
|
526
|
+
this.$showMessage("取消预约成功")
|
527
|
+
}
|
528
|
+
}else {
|
529
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
|
414
530
|
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
415
|
-
if (
|
416
|
-
|
417
|
-
}
|
418
|
-
}else {
|
419
|
-
this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
|
420
|
-
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
421
|
-
if (repanse.data.code == 200) {
|
422
|
-
alert("取消预约成功!")
|
423
|
-
}
|
424
|
-
})
|
425
|
-
}},
|
426
|
-
genuineReserve () {
|
427
|
-
if(Vue.android){
|
428
|
-
if (!this.f_preset_dt) {
|
429
|
-
this.$showMessage('请选择一个日期')
|
430
|
-
return
|
531
|
+
if (repanse.data.code == 200) {
|
532
|
+
alert("取消预约成功!")
|
431
533
|
}
|
432
|
-
|
433
|
-
|
534
|
+
})
|
535
|
+
}},
|
536
|
+
genuineReserve () {
|
537
|
+
if(Vue.android){
|
538
|
+
if (!this.f_preset_dt) {
|
539
|
+
this.$showMessage('请选择一个日期')
|
540
|
+
return
|
541
|
+
}
|
542
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
543
|
+
let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
|
544
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
545
|
+
if(respanse.code == 200) {
|
546
|
+
this.$showMessage("预约成功!")
|
547
|
+
}
|
548
|
+
this.showModal = false
|
549
|
+
}else {
|
550
|
+
if (!this.f_preset_dt) {
|
551
|
+
alert('请选择一个日期')
|
552
|
+
return
|
553
|
+
}
|
554
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
555
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
|
434
556
|
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
435
|
-
if(
|
436
|
-
|
557
|
+
if(res.data.code == 200) {
|
558
|
+
alert("预约成功!")
|
437
559
|
}
|
438
560
|
this.showModal = false
|
439
|
-
}
|
440
|
-
if (!this.f_preset_dt) {
|
441
|
-
alert('请选择一个日期')
|
442
|
-
return
|
443
|
-
}
|
444
|
-
let pdt = this.f_preset_dt.replace('T', ' ')
|
445
|
-
this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
|
446
|
-
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
447
|
-
if(res.data.code == 200) {
|
448
|
-
alert("预约成功!")
|
449
|
-
}
|
450
|
-
this.showModal = false
|
451
|
-
})
|
452
|
-
}
|
453
|
-
},
|
454
|
-
selfSearch (args) {
|
455
|
-
args.condition += " and f_complete = '已完成' and ti.f_safecheck_type='送气类型'"
|
456
|
-
//tag)
|
457
|
-
this.model.search(args.condition,args.model)
|
458
|
-
},
|
459
|
-
hidden() {
|
460
|
-
this.criteriaShow = !this.criteriaShow
|
561
|
+
})
|
461
562
|
}
|
563
|
+
},
|
564
|
+
selfSearch (args) {
|
565
|
+
args.condition += " and f_complete = '已完成' and ti.f_safecheck_type='送气类型'"
|
566
|
+
//tag)
|
567
|
+
this.model.search(args.condition,args.model)
|
568
|
+
},
|
569
|
+
hidden() {
|
570
|
+
this.criteriaShow = !this.criteriaShow
|
462
571
|
}
|
463
572
|
}
|
573
|
+
}
|
464
574
|
</script>
|