safecheck-client 4.0.0-7 → 4.0.0-71
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 +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +11 -11
- package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
- package/src/components/Util/ImgSelfSafePlus.vue +13 -3
- package/src/components/android/AndroidDefectDeal.vue +1 -1
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +1 -1
- package/src/components/android/AndroidDefectDetails.vue +725 -0
- package/src/components/android/BlackUserOnLine.vue +2 -2
- package/src/components/android/Insurance/PhoneInsurancePurchase.vue +1 -1
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +4 -4
- package/src/components/android/PaperFeedback.vue +15 -13
- package/src/components/android/PaperFeedbackTemp.vue +2 -2
- package/src/components/android/PhoneUpUserinfo.vue +20 -0
- package/src/components/android/RelieveRestrict.vue +1 -1
- package/src/components/android/Restriction.vue +1 -1
- package/src/components/android/SafecheckDevices.vue +47 -2
- package/src/components/android/SafecheckOrderV.vue +2 -2
- package/src/components/android/SealBind.vue +392 -0
- package/src/components/android/SealManage.vue +250 -0
- package/src/components/inspections/inspectionFeedback.vue +2 -2
- package/src/components/paper/PaperList.vue +360 -332
- package/src/components/pc/AddToCheckBook.vue +100 -23
- package/src/components/pc/CheckBook.vue +2 -0
- package/src/components/pc/CheckBookDetails.vue +6 -39
- package/src/components/pc/CheckBookEntry.vue +6 -7
- package/src/components/pc/CheckBookList.vue +60 -71
- package/src/components/pc/CheckBookSearchArea.vue +20 -24
- package/src/components/pc/CheckBookSearchUser.vue +139 -84
- package/src/components/pc/CheckBookSearchUserList.vue +1 -2
- package/src/components/pc/CheckBookUser.vue +276 -44
- package/src/components/pc/NewCheckpaper.vue +14 -8
- package/src/components/pc/NewCheckpaperTemp.vue +5 -5
- package/src/components/pc/PaperDefectMain.vue +1 -0
- package/src/components/planmanage/PlanManage.vue +819 -821
- package/src/components/planmanage/checkPlanList.vue +28 -0
- package/src/components/planmanage/checkUserList.vue +346 -346
- package/src/components/querycheckpaper/CheckSearchUser.vue +68 -68
- package/src/components/report/CheckPlanAreaList.vue +266 -266
- package/src/components/rongcheng/AspPaperFeedback.vue +1 -1
- package/src/components/rongcheng/PaperFeedback.vue +2 -2
- package/src/components/safecheck/queryManage/CheckBookAll.vue +2 -2
- package/src/filiale/ancheng/android/PaperFeedback.vue +2 -2
- package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/bayan/android/PaperFeedback.vue +2 -2
- package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/hanzhong/android/PaperFeedback.vue +2 -2
- package/src/filiale/huatong/android/PaperFeedback.vue +2 -2
- package/src/filiale/huayin/android/PaperFeedback.vue +2 -2
- package/src/filiale/huayin/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/jiaocheng/android/PaperFeedback.vue +2 -2
- package/src/filiale/jingyang/android/PaperFeedback.vue +2 -2
- package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +173 -101
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -0
- package/src/filiale/jinhong/android.js +3 -1
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -0
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -0
- package/src/filiale/jinhong/pc/DefectListNew.vue +663 -0
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -0
- package/src/filiale/jinhong/pc/PaperList.vue +823 -0
- package/src/filiale/jinhong/pc/PlanManage.vue +891 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +776 -0
- package/src/filiale/jinhong/pc.js +11 -0
- package/src/filiale/kelai/android/AndroidDefectDeal.vue +2 -2
- package/src/filiale/kelai/android/PaperFeedback.vue +2 -2
- package/src/filiale/kelai/android/RelieveRestrict.vue +1 -1
- package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +1 -1
- package/src/filiale/meihekou/android/AreaPlan.vue +569 -0
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -0
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -0
- package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -0
- package/src/filiale/meihekou/android/MeterReading.vue +106 -0
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -0
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1276 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2400 -0
- package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -0
- package/src/filiale/meihekou/android.js +20 -0
- package/src/filiale/meihekou/pc.js +12 -0
- package/src/filiale/pingxiang/android/PaperFeedback.vue +2 -2
- package/src/filiale/qianneng/android/PaperFeedback.vue +2 -2
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +5 -11
- package/src/filiale/rizhao/android/PaperFeedback.vue +2 -2
- package/src/filiale/rongchuang/android/PaperFeedback.vue +2 -2
- package/src/filiale/shanggao/android/PaperFeedback.vue +2 -2
- package/src/filiale/shanxian/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/shanxian/android/PaperFeedback.vue +2 -2
- package/src/filiale/shexian/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/shexian/android/PaperFeedback.vue +2 -2
- package/src/filiale/shimen/android/PaperFeedback.vue +2 -2
- package/src/filiale/tongchuan/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/tongchuan/android/PaperFeedback.vue +2 -2
- package/src/filiale/weinan/android/SafecheckOrderV.vue +3 -3
- package/src/filiale/wenxi/android/PaperFeedback.vue +3 -3
- package/src/filiale/wuan/android/PaperFeedback.vue +2 -2
- package/src/filiale/wuhai/android/PaperFeedback.vue +2 -2
- package/src/filiale/xiangyuanzhongai/android/SafecheckDevices.vue +20 -1
- package/src/filiale/xiangyuanzhongai/android/SafecheckOrderV.vue +2282 -0
- package/src/filiale/xiangyuanzhongai/android/SafecheckUserInfo.vue +786 -0
- package/src/filiale/xiangyuanzhongai/android.js +2 -0
- package/src/filiale/xiangyuanzhongai/pc/DefectDeal.vue +1007 -0
- package/src/filiale/xiangyuanzhongai/pc/PaperList.vue +795 -0
- package/src/filiale/xiangyuanzhongai/pc.js +2 -0
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +2 -2
- package/src/filiale/yongzhou/android/PaperFeedback.vue +2 -2
- package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/yuansheng/android/PaperFeedback.vue +2 -2
- package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +2 -2
- package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -0
- package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +3 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yunchengminsheng/android.js +1 -0
- package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +16 -5
- package/src/filiale/zhongsheng/android/PaperFeedback.vue +2 -2
- package/src/filiale/zhoukou/android/PaperFeedback.vue +2 -2
- package/src/main.js +1 -1
- package/src/safecheck-android.js +3 -0
@@ -21,7 +21,7 @@
|
|
21
21
|
:value-single="true" style="width: 60%"
|
22
22
|
class="select_list select"
|
23
23
|
@change="$parent.$parent.changeState"
|
24
|
-
:options='$parent.$parent.isCheckBook' placeholder='
|
24
|
+
:options='$parent.$parent.isCheckBook' placeholder='有无所属安检册'
|
25
25
|
close-on-select
|
26
26
|
condition="{}"></v-select>
|
27
27
|
</div>
|
@@ -45,22 +45,19 @@
|
|
45
45
|
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
|
46
46
|
</th>
|
47
47
|
<th>
|
48
|
-
<nobr
|
48
|
+
<nobr>区/县</nobr>
|
49
49
|
</th>
|
50
50
|
<th>
|
51
|
-
<nobr
|
51
|
+
<nobr>街道/乡镇</nobr>
|
52
52
|
</th>
|
53
53
|
<th>
|
54
|
-
<nobr
|
54
|
+
<nobr>片区/行政村</nobr>
|
55
55
|
</th>
|
56
56
|
<th>
|
57
|
-
<nobr
|
57
|
+
<nobr>小区/自然村</nobr>
|
58
58
|
</th>
|
59
59
|
<th>
|
60
|
-
<nobr
|
61
|
-
</th>
|
62
|
-
<th>
|
63
|
-
<nobr>所属片区</nobr>
|
60
|
+
<nobr>所属安检册</nobr>
|
64
61
|
</th>
|
65
62
|
</tr>
|
66
63
|
</template>
|
@@ -72,9 +69,8 @@
|
|
72
69
|
</td>
|
73
70
|
<td style="text-align: center">{{ row.f_pcd }}</td>
|
74
71
|
<td style="text-align: center">{{ row.f_street }}</td>
|
75
|
-
<td style="text-align: center">{{ row.
|
72
|
+
<td style="text-align: center">{{ row.f_community_name }}</td>
|
76
73
|
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
77
|
-
<td style="text-align: center">{{ row.f_area_address }}</td>
|
78
74
|
<td style="text-align: center">{{ row.f_check_book_name }}</td>
|
79
75
|
</template>
|
80
76
|
</data-grid>
|
@@ -83,7 +79,7 @@
|
|
83
79
|
<modal :show.sync="showModal" :backdrop="false">
|
84
80
|
<div slot="modal-header" class="modal-header">
|
85
81
|
<h4 class="modal-title">
|
86
|
-
|
82
|
+
创建安检册
|
87
83
|
</h4>
|
88
84
|
</div>
|
89
85
|
<div slot="modal-body" class="modal-body">
|
@@ -100,7 +96,7 @@
|
|
100
96
|
</role-selector-safe>
|
101
97
|
</div>
|
102
98
|
<div class="form-group col-sm-6" style="margin-top: 20px">
|
103
|
-
<label class="font_normal_body"
|
99
|
+
<label class="font_normal_body">安检册名</label>
|
104
100
|
<input type="text" class="input_search" v-model="checkBook.f_check_book_name"
|
105
101
|
style="width: 60%" >
|
106
102
|
</div>
|
@@ -195,11 +191,11 @@ import * as Util from '../../components/Util'
|
|
195
191
|
import bus from "../../bus";
|
196
192
|
|
197
193
|
export default {
|
198
|
-
title: '
|
194
|
+
title: '安检册管理',
|
199
195
|
data () {
|
200
196
|
let model = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 20,{
|
201
|
-
items: "'ta
|
202
|
-
tablename: "'t_area ta left join t_check_book tcb on ta.f_check_book_id=tcb.id'",
|
197
|
+
items: "'ta.f_residential_area,ta.id,tcb.f_check_book_name,tcm.f_community_name,tcm.f_street'",
|
198
|
+
tablename: "'t_area ta left join t_check_book tcb on ta.f_check_book_id=tcb.id left join t_community tcm on ta.f_community_id = tcm.id'",
|
203
199
|
orderitem: "'id desc'"
|
204
200
|
})
|
205
201
|
return {
|
@@ -262,7 +258,7 @@ export default {
|
|
262
258
|
methods: {
|
263
259
|
async ok2() {
|
264
260
|
if (!this.selectBook) {
|
265
|
-
this.$showMessage('
|
261
|
+
this.$showMessage('请选择安检册')
|
266
262
|
return
|
267
263
|
}
|
268
264
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -299,7 +295,7 @@ export default {
|
|
299
295
|
},
|
300
296
|
async ok3() {
|
301
297
|
if (!this.selectBook) {
|
302
|
-
this.$showMessage('
|
298
|
+
this.$showMessage('请选择安检册')
|
303
299
|
return
|
304
300
|
}
|
305
301
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -350,7 +346,7 @@ export default {
|
|
350
346
|
},
|
351
347
|
addUser () {
|
352
348
|
if (!this.isCreateBook) {
|
353
|
-
this.$showMessage('
|
349
|
+
this.$showMessage('请选择查询未划分安检册的用户')
|
354
350
|
return
|
355
351
|
}
|
356
352
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -362,7 +358,7 @@ export default {
|
|
362
358
|
},
|
363
359
|
upUser () {
|
364
360
|
if (!this.isChangeBook) {
|
365
|
-
this.$showMessage('
|
361
|
+
this.$showMessage('请选择查询已划分安检册的用户')
|
366
362
|
return
|
367
363
|
}
|
368
364
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -374,7 +370,7 @@ export default {
|
|
374
370
|
},
|
375
371
|
async delUser () {
|
376
372
|
if (!this.isChangeBook) {
|
377
|
-
this.$showMessage('
|
373
|
+
this.$showMessage('请选择查询已划分安检册的用户')
|
378
374
|
return
|
379
375
|
}
|
380
376
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -400,8 +396,8 @@ export default {
|
|
400
396
|
AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
|
401
397
|
AND ${userCondition}`
|
402
398
|
await new HttpResetClass().load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: delUser}},
|
403
|
-
{resolveMsg: null, rejectMsg: '
|
404
|
-
this.$showMessage('
|
399
|
+
{resolveMsg: null, rejectMsg: '删除安检册失败'})
|
400
|
+
this.$showMessage('从安检册删除所选用户成功')
|
405
401
|
this.selectBook = ''
|
406
402
|
this.bookAll = false
|
407
403
|
this.bookList = []
|
@@ -413,7 +409,7 @@ export default {
|
|
413
409
|
},
|
414
410
|
beforeCreateBook () {
|
415
411
|
if (!this.isCreateBook) {
|
416
|
-
this.$showMessage('
|
412
|
+
this.$showMessage('请选择查询未划分安检册的用户')
|
417
413
|
return
|
418
414
|
}
|
419
415
|
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
@@ -5,34 +5,35 @@
|
|
5
5
|
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
6
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
7
|
<div class="row">
|
8
|
-
<div class="form-group col-sm-
|
8
|
+
<div class="form-group col-sm-4">
|
9
9
|
<label class="font_normal_body">客户编号</label>
|
10
10
|
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
11
11
|
style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
|
12
12
|
</div>
|
13
|
-
<div class="form-group col-sm-
|
13
|
+
<div class="form-group col-sm-4">
|
14
14
|
<label class="font_normal_body">客户名称</label>
|
15
15
|
<input type="text" class="input_search" v-model="model.f_user_name"
|
16
16
|
style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
|
17
17
|
</div>
|
18
|
-
<div class="form-group col-sm-
|
19
|
-
<label class="font_normal_body">用户单位</label>
|
20
|
-
<input type="text" class="input_search" v-model="model.f_residential_area"
|
21
|
-
style="width: 60%" placeholder="用户单位" condition="f_residential_area like '%{}%'">
|
22
|
-
</div>
|
23
|
-
<div class="form-group col-sm-3">
|
18
|
+
<div class="form-group col-sm-4">
|
24
19
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
25
20
|
<div style="float: right" class="button_spacing"
|
26
21
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
27
22
|
@click="$parent.$parent.hidden()"></div>
|
28
23
|
</div>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
</div>
|
25
|
+
<div class="row">
|
26
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
27
|
+
<label class="font_normal_body">地  址</label>
|
28
|
+
<input type="text" class="input_search" v-model="model.f_address"
|
29
|
+
style="width: 60%" placeholder="地址" condition="f_address like '%{}%'">
|
30
|
+
</div>
|
31
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
32
|
+
<label class="font_normal_body">小区名称</label>
|
33
|
+
<input type="text" class="input_search" v-model="model.f_residential_area"
|
34
|
+
style="width: 60%" placeholder="小区名称" condition="f_residential_area like '%{}%'">
|
35
|
+
</div>
|
36
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
36
37
|
<label class="font_normal_body">客户类型</label>
|
37
38
|
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
38
39
|
:value-single="true" style="width: 60%"
|
@@ -41,40 +42,97 @@
|
|
41
42
|
close-on-select
|
42
43
|
condition="f_user_type ='{}'"></v-select>
|
43
44
|
</div>
|
44
|
-
<div class="col-sm-
|
45
|
+
<div class="col-sm-4 form-group" style="margin-bottom: 0px" v-show="$parent.$parent.criteriaShow">
|
45
46
|
<label class="font_normal_body">公  司</label>
|
46
|
-
<right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="f_orgid in {}"></right-tree-safe>
|
47
|
+
<right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="ui.f_orgid in {}"></right-tree-safe>
|
47
48
|
</div>
|
48
|
-
<div class="col-sm-
|
49
|
-
|
50
|
-
<label class="font_normal_body">片区名称</label>
|
49
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
50
|
+
<label class="font_normal_body">安 检 册</label>
|
51
51
|
<v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
|
52
52
|
:value-single="true" style="width: 60%"
|
53
53
|
class="select_list select"
|
54
|
-
:options='$parent.$parent.checkBooks' placeholder='
|
54
|
+
:options='$parent.$parent.checkBooks' placeholder='安检册名称'
|
55
55
|
close-on-select
|
56
56
|
condition="f_check_book_id ='{}'"></v-select>
|
57
|
-
|
58
57
|
</div>
|
59
|
-
<div class="col-sm-
|
58
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
60
59
|
<label class="font_normal_body">是否在册</label>
|
61
60
|
<v-select :value.sync="model.f_is_checkbook" v-model='model.f_is_checkbook'
|
62
61
|
:value-single="true" style="width: 60%"
|
63
62
|
class="select_list select"
|
64
63
|
@change="$parent.$parent.changeState"
|
65
|
-
:options='$parent.$parent.isCheckBook' placeholder='
|
64
|
+
:options='$parent.$parent.isCheckBook' placeholder='有无所属安检册'
|
66
65
|
close-on-select
|
67
66
|
condition="{}"></v-select>
|
68
67
|
</div>
|
69
68
|
</div>
|
69
|
+
<div class="row">
|
70
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
71
|
+
<label class="font_normal_body">首次通气开始</label>
|
72
|
+
<datepicker
|
73
|
+
:value.sync="model.f_gas_date_str"
|
74
|
+
style="width: 60%"
|
75
|
+
placeholder='首次通气开始日期'
|
76
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
77
|
+
v-model="model.f_gas_date_str"
|
78
|
+
condition="f_uservent_date > '{}'"
|
79
|
+
>
|
80
|
+
</datepicker>
|
81
|
+
</div>
|
82
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
83
|
+
<label class="font_normal_body">首次通气结束</label>
|
84
|
+
<datepicker
|
85
|
+
:value.sync="model.f_gas_date_end"
|
86
|
+
style="width: 60%"
|
87
|
+
placeholder='首次通气结束日期'
|
88
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
89
|
+
v-model="model.f_gas_date_end"
|
90
|
+
condition="f_uservent_date < '{}'"
|
91
|
+
>
|
92
|
+
</datepicker>
|
93
|
+
</div>
|
94
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow" >
|
95
|
+
<label class="font_normal_body">表具通气开始</label>
|
96
|
+
<datepicker
|
97
|
+
:value.sync="model.f_check_start"
|
98
|
+
placeholder='表具通气开始时间' style="width: 60%"
|
99
|
+
:disabled-days-of-week="[]"
|
100
|
+
:format="'yyyy-MM-dd'"
|
101
|
+
:show-rest-button="reset"
|
102
|
+
v-model="model.f_check_start"
|
103
|
+
condition="f_gas_date > ='{} 00:00:00'">
|
104
|
+
</datepicker>
|
105
|
+
</div>
|
106
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow" >
|
107
|
+
<label class="font_normal_body">表具通气结束</label>
|
108
|
+
<datepicker
|
109
|
+
:value.sync="model.f_check_end"
|
110
|
+
placeholder='表具通气结束时间' style="width: 60%"
|
111
|
+
:disabled-days-of-week="[]"
|
112
|
+
:format="'yyyy-MM-dd'"
|
113
|
+
:show-rest-button="reset"
|
114
|
+
v-model="model.f_check_end"
|
115
|
+
condition="f_gas_date <= '{} 23:59:59'">
|
116
|
+
</datepicker>
|
117
|
+
</div>
|
118
|
+
<div class="form-group col-sm-4" v-show="$parent.$parent.criteriaShow">
|
119
|
+
<label class="font_normal_body">用户状态</label>
|
120
|
+
<v-select :value.sync="model.f_user_state" v-model='model.f_user_state'
|
121
|
+
:value-single="true" style="width: 60%"
|
122
|
+
class="select_list select"
|
123
|
+
:options='$parent.$parent.userstates'
|
124
|
+
close-on-select
|
125
|
+
condition="f_user_state = '{}'"></v-select>
|
126
|
+
</div>
|
127
|
+
</div>
|
70
128
|
</div>
|
71
129
|
</criteria>
|
72
130
|
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
73
131
|
<template partial='head'>
|
74
132
|
<tr @dblclick.stop="">
|
75
|
-
|
76
|
-
|
77
|
-
|
133
|
+
<th>
|
134
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
|
135
|
+
</th>
|
78
136
|
<th>
|
79
137
|
<nobr>客户姓名</nobr>
|
80
138
|
</th>
|
@@ -94,22 +152,26 @@
|
|
94
152
|
<nobr>客户地址</nobr>
|
95
153
|
</th>
|
96
154
|
<th>
|
97
|
-
<nobr
|
155
|
+
<nobr>首次通气时间</nobr>
|
156
|
+
</th>
|
157
|
+
<th>
|
158
|
+
<nobr>所属安检册</nobr>
|
98
159
|
</th>
|
99
160
|
</tr>
|
100
161
|
</template>
|
101
162
|
<template partial='body'>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
163
|
+
<td style="text-align: center">
|
164
|
+
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
165
|
+
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
166
|
+
</nobr>
|
167
|
+
</td>
|
107
168
|
<td style="text-align: center">{{ row.f_user_name }}</td>
|
108
169
|
<td style="text-align: center">{{ row.f_userinfo_code }}</td>
|
109
170
|
<td style="text-align: center">{{ row.f_user_type }}</td>
|
110
171
|
<td style="text-align: center">{{ row.f_user_phone }}</td>
|
111
172
|
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
112
173
|
<td style="text-align: center">{{ row.f_address }}</td>
|
174
|
+
<td style="text-align: center">{{ row.f_uservent_date }}</td>
|
113
175
|
<td style="text-align: center">{{ row.f_check_book_name }}</td>
|
114
176
|
</template>
|
115
177
|
</data-grid>
|
@@ -124,10 +186,6 @@
|
|
124
186
|
<div slot="modal-body" class="modal-body">
|
125
187
|
<div v-if="true">
|
126
188
|
<div class="row" style="margin-top: 10px">
|
127
|
-
<!-- <label class="control-label font text-left" style="float:left;margin-left:10%;margin-top:5px">片区名称</label>-->
|
128
|
-
<!-- <div class="col-xs-8 col-md-8">-->
|
129
|
-
<!-- <input type="text" class="input_search" style="width: 70%;" v-model="checkBook.f_check_book_name"/>-->
|
130
|
-
<!-- </div>-->
|
131
189
|
<div class="col-sm-12 form-group" style="margin: 0">
|
132
190
|
<role-selector-safe
|
133
191
|
@re-res="getRes"
|
@@ -146,10 +204,10 @@
|
|
146
204
|
<label class="font_normal_body">执行日期</label>
|
147
205
|
<datepicker
|
148
206
|
:value.sync="checkBook.f_run_date"
|
149
|
-
|
207
|
+
style="width: 60%"
|
150
208
|
:format="'yyyy-MM-dd'"
|
151
209
|
v-model="checkBook.f_run_date"
|
152
|
-
|
210
|
+
>
|
153
211
|
</datepicker>
|
154
212
|
</div>
|
155
213
|
<div class="form-group col-sm-6" style="margin-top: 20px">
|
@@ -244,6 +302,7 @@ export default {
|
|
244
302
|
f_orgid: '',
|
245
303
|
bookAll: false,
|
246
304
|
bookList: [],
|
305
|
+
userstates:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
|
247
306
|
selectBook:'',
|
248
307
|
userTypes: [{label: '全部', value: ''},{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
249
308
|
// init:false,
|
@@ -287,29 +346,29 @@ export default {
|
|
287
346
|
if(!val){
|
288
347
|
this.bookList=[]
|
289
348
|
}
|
290
|
-
|
291
|
-
|
349
|
+
this.bookList=[]
|
350
|
+
for (let row of this.model.rows){
|
351
|
+
this.bookList.push({f_userinfo_id:row.f_userinfo_id,f_plan_id:row.f_plan_id})
|
352
|
+
}
|
353
|
+
// this.$emit('book-all',this.bookAll)
|
292
354
|
}
|
293
355
|
},
|
294
356
|
methods: {
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
//tag
|
311
|
-
}
|
312
|
-
let addUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
|
357
|
+
async ok2() {
|
358
|
+
if (!this.selectBook) {
|
359
|
+
this.$showMessage('请选择片区')
|
360
|
+
return
|
361
|
+
}
|
362
|
+
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
363
|
+
let userCondition = ''
|
364
|
+
if (this.bookList.length < 1) {
|
365
|
+
//tag
|
366
|
+
userCondition = this.bookCondition
|
367
|
+
} else {
|
368
|
+
userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
|
369
|
+
userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
|
370
|
+
}
|
371
|
+
let addUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
|
313
372
|
FROM
|
314
373
|
t_userinfo tui
|
315
374
|
LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
|
@@ -319,16 +378,16 @@ export default {
|
|
319
378
|
tui.f_user_state = '正常'
|
320
379
|
AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
|
321
380
|
AND ${userCondition}`
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
381
|
+
await new HttpResetClass().load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: addUser}},
|
382
|
+
{resolveMsg: null, rejectMsg: '添加用户失败'})
|
383
|
+
this.$showMessage('添加用户成功')
|
384
|
+
this.selectBook = ''
|
385
|
+
this.bookAll = false
|
386
|
+
this.bookList = []
|
387
|
+
this.showModal2 = false
|
388
|
+
this.$refs.paged.$refs.criteria.search()
|
389
|
+
}
|
390
|
+
},
|
332
391
|
async ok3() {
|
333
392
|
if (!this.selectBook) {
|
334
393
|
this.$showMessage('请选择片区')
|
@@ -513,10 +572,8 @@ export default {
|
|
513
572
|
},
|
514
573
|
checkModel (row) {
|
515
574
|
if (this.bookAll) {
|
516
|
-
//tag)
|
517
575
|
return true
|
518
576
|
} else {
|
519
|
-
// this.bookList = []
|
520
577
|
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
521
578
|
return true
|
522
579
|
} else {
|
@@ -525,13 +582,11 @@ export default {
|
|
525
582
|
}
|
526
583
|
},
|
527
584
|
checkChange (row, e) {
|
528
|
-
//tag
|
529
585
|
if (e.target.checked) {
|
530
|
-
this.bookList.push(row.f_userinfo_id)
|
586
|
+
this.bookList.push({f_userinfo_id:row.f_userinfo_id,f_plan_id:row.f_plan_id})
|
531
587
|
} else {
|
532
|
-
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
588
|
+
this.bookList.splice(this.bookList.findIndex(res => res.f_userinfo_id === row.f_userinfo_id), 1)
|
533
589
|
}
|
534
|
-
// //tag)
|
535
590
|
},
|
536
591
|
getRes (obj) {
|
537
592
|
this.checkBook.f_orgid = obj.resids[0]
|
@@ -583,15 +638,15 @@ export default {
|
|
583
638
|
bus.$off('fresh-user')
|
584
639
|
},
|
585
640
|
ready () {
|
586
|
-
bus.$on('fresh-user',()=>{
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
})
|
592
|
-
this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'f_check_book_name is null'
|
593
|
-
//tag
|
594
|
-
// this.init=true
|
641
|
+
// bus.$on('fresh-user',()=>{
|
642
|
+
// console.log("进入方法")
|
643
|
+
// this.bookAll = false
|
644
|
+
// this.bookList = []
|
645
|
+
// this.$refs.paged.$refs.criteria.search()
|
646
|
+
// })
|
647
|
+
// this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'f_check_book_name is null'
|
648
|
+
// //tag
|
649
|
+
// // this.init=true
|
595
650
|
this.freshCheckBook()
|
596
651
|
}
|
597
652
|
}
|
@@ -147,7 +147,7 @@
|
|
147
147
|
<div slot="modal-body" class="modal-body">
|
148
148
|
<div class="row">
|
149
149
|
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
|
150
|
-
action="
|
150
|
+
action="api/af-safecheck/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
|
151
151
|
<img src="../../assets/Excelformat.png" style="width: 100%"/>
|
152
152
|
</div>
|
153
153
|
</div>
|
@@ -263,7 +263,6 @@
|
|
263
263
|
import {HttpResetClass, PagedList} from "vue-client";
|
264
264
|
import * as Util from "../../components/Util";
|
265
265
|
import Vue from "vue";
|
266
|
-
import {toStandardDateString} from "../../components/Util";
|
267
266
|
|
268
267
|
export default {
|
269
268
|
title: '计划管理',
|