safecheck-client 3.0.34-4 → 3.0.34-43
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/docs/FormPrint.md +18 -18
- package/docs/GridTree.md +47 -47
- package/docs/PrintFile.md +38 -38
- package/docs/tree.md +40 -40
- package/package.json +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/android/AddGas.vue +147 -147
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +566 -572
- package/src/components/android/CheckerMonthly.vue +84 -84
- package/src/components/android/LcheckUnplan.vue +108 -108
- package/src/components/android/PaperFeedback.vue +1 -1
- package/src/components/android/PaperFeedbackTemp.vue +1 -1
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +1 -1
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +2809 -2809
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +126 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- package/src/components/checkerphonestate/Checker.vue +32 -32
- package/src/components/checkerphonestate/CheckerState.vue +97 -97
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +104 -104
- package/src/components/notice/NoticeQuery.vue +76 -76
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/phonestate/DailyTraffic.vue +57 -57
- package/src/components/phonestate/LastKnownState.vue +74 -74
- package/src/components/task/RepairAnnual.vue +79 -79
- package/src/components/task/RepairAnnualDetail.vue +49 -49
- package/src/components/task/RepairMonthly.vue +91 -91
- package/src/components/task/TaskAnnual.vue +77 -77
- package/src/components/task/TaskAnnualDetail.vue +47 -47
- package/src/components/task/TaskMonthly.vue +89 -89
- package/src/components/userfile/UserfileChange.vue +277 -277
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +34 -113
- package/src/filiale/weinan/pc.js +47 -46
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/safecheck-android.js +4 -0
@@ -0,0 +1,166 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="form-group col-sm-3">
|
8
|
+
<label class="font_normal_body">单位名称</label>
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
|
10
|
+
placeholder='单位名称'
|
11
|
+
condition="f_company_name like '%{}%'" @keyup.enter="search()">
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-2 button-range">
|
14
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
15
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.send()" v-el:cba>下发
|
16
|
+
</button>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</criteria>
|
21
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
|
22
|
+
<template partial='head'>
|
23
|
+
<tr>
|
24
|
+
<th>
|
25
|
+
<nobr><input type="checkbox" onClick="event.cancelBubble = true"
|
26
|
+
:checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>全选
|
27
|
+
</nobr>
|
28
|
+
</th>
|
29
|
+
<th>
|
30
|
+
<nobr>省市区/县</nobr>
|
31
|
+
</th>
|
32
|
+
<th>
|
33
|
+
<nobr>街道/乡镇</nobr>
|
34
|
+
</th>
|
35
|
+
<th>
|
36
|
+
<nobr>单位名称</nobr>
|
37
|
+
</th>
|
38
|
+
<th>
|
39
|
+
<nobr>用户数量</nobr>
|
40
|
+
</th>
|
41
|
+
<th>
|
42
|
+
<nobr>详细地址</nobr>
|
43
|
+
</th>
|
44
|
+
</tr>
|
45
|
+
</template>
|
46
|
+
<template partial='body'>
|
47
|
+
<tr>
|
48
|
+
<td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
|
49
|
+
:checked="$parent.$parent.$parent.isChecked(row.id)"
|
50
|
+
@change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
|
51
|
+
<td style="text-align:center">{{ row.f_rea }}</td>
|
52
|
+
<td style="text-align:center">{{ row.f_company_street }}</td>
|
53
|
+
<td style="text-align:center">{{ row.f_company_name }}</td>
|
54
|
+
<td style="text-align:center">
|
55
|
+
<button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
|
56
|
+
<b>{{ row.num ? row.num : 0 }}</b></button>
|
57
|
+
</td>
|
58
|
+
<td style="text-align:center">{{ row.f_company_position }}</td>
|
59
|
+
</tr>
|
60
|
+
</template>
|
61
|
+
<template partial='foot'></template>
|
62
|
+
</data-grid>
|
63
|
+
</criteria-paged>
|
64
|
+
<modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
|
65
|
+
<article slot="modal-body" class="modal-body" style="height: 80vh">
|
66
|
+
<check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
|
67
|
+
:bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
|
68
|
+
:userlogin="userlogin"></check-book-search-user-list>
|
69
|
+
</article>
|
70
|
+
<footer slot="modal-footer">
|
71
|
+
</footer>
|
72
|
+
|
73
|
+
</modal>
|
74
|
+
</div>
|
75
|
+
</template>
|
76
|
+
|
77
|
+
<script>
|
78
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
79
|
+
|
80
|
+
export default {
|
81
|
+
title: '非民用安检册单位',
|
82
|
+
props: ['row', 'needprops'],
|
83
|
+
data() {
|
84
|
+
return {
|
85
|
+
rowdata: this.row,
|
86
|
+
showSendModal: false,
|
87
|
+
checkBookRow: {},
|
88
|
+
userlogin: {
|
89
|
+
id: this.$login.f.id,
|
90
|
+
name: this.$login.f.name,
|
91
|
+
orgid: this.$login.f.orgid,
|
92
|
+
orgstr: this.$login.f.orgs,
|
93
|
+
},
|
94
|
+
model: new PagedList('rs/sql/getCheckBookCompany', 50),
|
95
|
+
checkAll: false,
|
96
|
+
checkes: [],
|
97
|
+
addcondata: '',
|
98
|
+
}
|
99
|
+
},
|
100
|
+
ready() {
|
101
|
+
console.log(this.row)
|
102
|
+
const val = this.row
|
103
|
+
if (val) {
|
104
|
+
this.checkAll = false
|
105
|
+
this.checkes = []
|
106
|
+
this.rowdata = val
|
107
|
+
const condition = `f_check_book_id =${val.id}`
|
108
|
+
this.model.search(condition)
|
109
|
+
}
|
110
|
+
},
|
111
|
+
watch: {
|
112
|
+
'row'(val) {
|
113
|
+
if (val) {
|
114
|
+
this.checkAll = false
|
115
|
+
this.checkes = []
|
116
|
+
this.rowdata = val
|
117
|
+
const condition = `f_check_book_id =${val.id}`
|
118
|
+
this.model.search(condition)
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
methods: {
|
123
|
+
setCheckAll() {
|
124
|
+
this.checkAll = this.checkAll ? false : true;
|
125
|
+
// 全选改变后,清空选中数据
|
126
|
+
this.checkes = []
|
127
|
+
},
|
128
|
+
isChecked(v) {
|
129
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
130
|
+
if (this.checkAll) {
|
131
|
+
return this.checkes.indexOf(v) == -1
|
132
|
+
} else {
|
133
|
+
return this.checkes.indexOf(v) != -1
|
134
|
+
}
|
135
|
+
},
|
136
|
+
setCheckes(id) {
|
137
|
+
let index = this.checkes.indexOf(id)
|
138
|
+
if (index < 0) {
|
139
|
+
this.checkes.push(id)
|
140
|
+
} else {
|
141
|
+
this.checkes.splice(index, 1)
|
142
|
+
}
|
143
|
+
},
|
144
|
+
send() {
|
145
|
+
if (!this.checkAll && this.checkes.length == 0) {
|
146
|
+
return this.$showMessage('请选择单位')
|
147
|
+
}
|
148
|
+
this.showSendModal = true
|
149
|
+
},
|
150
|
+
details(row) {
|
151
|
+
this.$emit('showuser', row)
|
152
|
+
},
|
153
|
+
selfSearch(args) {
|
154
|
+
if (this.rowdata.id) {
|
155
|
+
this.checkAll = false
|
156
|
+
this.checkes = []
|
157
|
+
args.condition += `and f_check_book_id =${this.rowdata.id}`
|
158
|
+
this.model.search(args.condition)
|
159
|
+
this.addcondata = args.model.f_residential_area ? ` and tc.f_company_name like '%${args.model.f_residential_area}%'` : ''
|
160
|
+
} else {
|
161
|
+
this.$showMessage('请选择安检册')
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
</script>
|
@@ -0,0 +1,196 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread">
|
3
|
+
<validator name='v'>
|
4
|
+
<form class="form-horizontal" novalidate>
|
5
|
+
<ul class="nav nav-tabs" style="margin-bottom: 10px">
|
6
|
+
<li class="active"><a href="#">安检册信息</a></li>
|
7
|
+
</ul>
|
8
|
+
<div class="row" style="margin-top: 10px">
|
9
|
+
<div class="col-sm-12 form-group" style="margin: 0">
|
10
|
+
<role-selector-safe
|
11
|
+
@alluser="getUsers"
|
12
|
+
@re-res="getRes"
|
13
|
+
role-name="安检员"
|
14
|
+
role-lable="安 检 员 "
|
15
|
+
:value.sync="checkBook.f_checker_name"
|
16
|
+
v-model="checkBook.f_checker_name">
|
17
|
+
</role-selector-safe>
|
18
|
+
</div>
|
19
|
+
<!-- <div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_type.required ? 'has-error' : '']">-->
|
20
|
+
<!-- <label class="font_normal_body">表册类型</label>-->
|
21
|
+
<!-- <input type="text" v-show="false" v-model="checkBook.f_check_book_type"-->
|
22
|
+
<!-- :value.sync="checkBook.f_check_book_type"-->
|
23
|
+
<!-- v-validate:f_check_book_type='{required: true }'>-->
|
24
|
+
<!-- <v-select :value.sync="checkBook.f_check_book_type" v-model='checkBook.f_check_book_type'-->
|
25
|
+
<!-- :value-single="true" style="width: 60%"-->
|
26
|
+
<!-- class="select_list select"-->
|
27
|
+
<!-- :options='bookTypes' placeholder=''-->
|
28
|
+
<!-- close-on-select></v-select>-->
|
29
|
+
<!-- </div>-->
|
30
|
+
<div class="form-group col-sm-6" style="margin-top: 20px"
|
31
|
+
:class="[$v.f_user_type.required ? 'has-error' : '']">
|
32
|
+
<label class="font_normal_body">用户类型</label>
|
33
|
+
<input type="text" v-show="false" v-model="checkBook.f_user_type"
|
34
|
+
v-validate:f_user_type='{required: true }'>
|
35
|
+
<v-select :value.sync="checkBook.f_user_type" v-model='checkBook.f_user_type'
|
36
|
+
:value-single="true" style="width: 60%"
|
37
|
+
class="select_list select"
|
38
|
+
:options='userTypes' placeholder=''
|
39
|
+
close-on-select></v-select>
|
40
|
+
</div>
|
41
|
+
<div class="form-group col-sm-6" style="margin-top: 20px"
|
42
|
+
:class="[$v.f_check_book_name.required ? 'has-error' : '']">
|
43
|
+
<label class="font_normal_body">安检册名称</label>
|
44
|
+
<input type="text" class="input_search" v-model="checkBook.f_check_book_name"
|
45
|
+
style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
|
46
|
+
</div>
|
47
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
48
|
+
<label class="font_normal_body">执行日期</label>
|
49
|
+
<datepicker
|
50
|
+
:value.sync="checkBook.f_run_date"
|
51
|
+
style="width: 60%"
|
52
|
+
:format="'yyyy-MM-dd'"
|
53
|
+
v-model="checkBook.f_run_date"
|
54
|
+
>
|
55
|
+
</datepicker>
|
56
|
+
</div>
|
57
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
58
|
+
<label class="font_normal_body">执行周期</label>
|
59
|
+
<input type="number" class="input_search" v-model="checkBook.f_around_time"
|
60
|
+
style="width: 60%">
|
61
|
+
</div>
|
62
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
63
|
+
<label class="font_normal_body">周期单位</label>
|
64
|
+
<v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
|
65
|
+
:value-single="true" style="width: 60%"
|
66
|
+
class="select_list select"
|
67
|
+
:options='aroundUnit' placeholder=''
|
68
|
+
close-on-select></v-select>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
<!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
|
73
|
+
<!-- <label class="font_normal_body">自动下发</label>-->
|
74
|
+
<!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
|
75
|
+
<!-- :value-single="true" style="width: 60%"-->
|
76
|
+
<!-- class="select_list select"-->
|
77
|
+
<!-- :options='autos' placeholder=''-->
|
78
|
+
<!-- close-on-select></v-select>-->
|
79
|
+
<!-- </div>-->
|
80
|
+
</div>
|
81
|
+
</form>
|
82
|
+
<div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
|
83
|
+
<button @click="confirm()" class="button_search">确认</button>
|
84
|
+
<!-- <button @click="deleteBook()" class="button_delete">删除</button>-->
|
85
|
+
<button @click="close()" class="button_clear">取消</button>
|
86
|
+
</div>
|
87
|
+
</validator>
|
88
|
+
</div>
|
89
|
+
</template>
|
90
|
+
<script>
|
91
|
+
import * as Util from "../../../components/Util";
|
92
|
+
import bus from "../../../bus";
|
93
|
+
import {HttpResetClass} from 'vue-client'
|
94
|
+
|
95
|
+
export default {
|
96
|
+
data() {
|
97
|
+
return {
|
98
|
+
aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
|
99
|
+
bookTypes: [{label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
|
100
|
+
userTypes: [{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
101
|
+
autos: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
102
|
+
allUsers: [],
|
103
|
+
checkBook: {
|
104
|
+
f_check_book_name: '',
|
105
|
+
f_run_date: '',
|
106
|
+
f_around_time: '',
|
107
|
+
f_around_unit: '',
|
108
|
+
f_create_date: '',
|
109
|
+
f_create_person: '',
|
110
|
+
f_user_type: '',
|
111
|
+
f_orgid: '',
|
112
|
+
f_is_auto: '否',
|
113
|
+
f_check_book_type: "小区",
|
114
|
+
f_checker_name: '',
|
115
|
+
f_checker_id: '',
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
119
|
+
props: ['row', 'showtype'],
|
120
|
+
watch: {
|
121
|
+
'checkBook.f_checker_name'(val) {
|
122
|
+
const user = this.allUsers.filter(item => item.name == val);
|
123
|
+
if (user.length > 0) {
|
124
|
+
this.checkBook.f_checker_id = user[0]["id"]
|
125
|
+
}
|
126
|
+
console.log("777", this.checkBook)
|
127
|
+
},
|
128
|
+
row(row) {
|
129
|
+
this.changeCheckBook(row)
|
130
|
+
}
|
131
|
+
},
|
132
|
+
ready() {
|
133
|
+
// console.log(this.$login.f.orgid)
|
134
|
+
this.changeCheckBook(this.row)
|
135
|
+
this.checkBook.f_user_type = this.showtype
|
136
|
+
console.log('row', JSON.stringify(this.row))
|
137
|
+
},
|
138
|
+
methods: {
|
139
|
+
changeCheckBook(row) {
|
140
|
+
console.log('row改变了', row)
|
141
|
+
if (row && row.id) {
|
142
|
+
console.log('进入修改赋值')
|
143
|
+
this.checkBook = row
|
144
|
+
}
|
145
|
+
},
|
146
|
+
deleteBook() {
|
147
|
+
console.log('delete', this.row)
|
148
|
+
},
|
149
|
+
close() {
|
150
|
+
console.log('关闭')
|
151
|
+
this.$parent.showItem = false
|
152
|
+
},
|
153
|
+
confirm() {
|
154
|
+
if (!this.checkBook.f_check_book_name) {
|
155
|
+
this.$showMessage('请填写安检册名称')
|
156
|
+
return
|
157
|
+
}
|
158
|
+
// if(!this.checkBook.f_check_book_type){
|
159
|
+
// this.$showMessage('请选择表册类型')
|
160
|
+
// return
|
161
|
+
// }
|
162
|
+
if (!this.checkBook.f_user_type) {
|
163
|
+
this.$showMessage('请选择用户类型')
|
164
|
+
return
|
165
|
+
|
166
|
+
}
|
167
|
+
this.checkBook.f_orgid = this.$login.f.orgid
|
168
|
+
this.checkBook.f_create_person = this.$login.f.name
|
169
|
+
this.checkBook.f_create_date = Util.toStandardDateString()
|
170
|
+
console.log('checkbook', this.checkBook)
|
171
|
+
let http = new HttpResetClass()
|
172
|
+
http.load('POST', 'rs/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
|
173
|
+
{resolveMsg: '保存安检册信息成功', rejectMsg: '保存安检册信息失败'}).then(res => {
|
174
|
+
if (res.data.code === 200) {
|
175
|
+
this.$showMessage('保存安检册信息成功', ['confirm']).then(res => {
|
176
|
+
if (res === 'confirm') {
|
177
|
+
bus.$emit('fresh-main')
|
178
|
+
}
|
179
|
+
})
|
180
|
+
} else {
|
181
|
+
this.$showMessage('保存安检册信息失败')
|
182
|
+
}
|
183
|
+
})
|
184
|
+
},
|
185
|
+
getRes(obj) {
|
186
|
+
if (obj.resids) {
|
187
|
+
this.checkBook.f_orgid = obj.resids[0]
|
188
|
+
console.log('id', this.checkBook.f_orgid)
|
189
|
+
}
|
190
|
+
},
|
191
|
+
getUsers(obj) {
|
192
|
+
this.allUsers = obj
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
</script>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<template>
|
2
|
+
<div id='checkbookEntry' class="flex-row binary">
|
3
|
+
<div class="binary-left">
|
4
|
+
<tabset v-ref:tabs :close="false" class="nav-tabss">
|
5
|
+
<tab header="小区查询">
|
6
|
+
<check-book-search-area @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-area>
|
7
|
+
</tab>
|
8
|
+
<!-- <tab header="单位查询">-->
|
9
|
+
<!-- <check-book-search-unit @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-unit>-->
|
10
|
+
<!-- </tab>-->
|
11
|
+
<tab header="用户查询">
|
12
|
+
<check-book-search-user @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-user>
|
13
|
+
</tab>
|
14
|
+
</tabset>
|
15
|
+
</div>
|
16
|
+
<div class="binary-right">
|
17
|
+
<add-to-check-book @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></add-to-check-book>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script>
|
23
|
+
|
24
|
+
export default {
|
25
|
+
name: 'checkBookEntry',
|
26
|
+
title: '添加用户到安检册',
|
27
|
+
data () {
|
28
|
+
return {
|
29
|
+
bookList: [],
|
30
|
+
bookCondition:"",
|
31
|
+
bookAll: false
|
32
|
+
}
|
33
|
+
},
|
34
|
+
created () {
|
35
|
+
},
|
36
|
+
ready () {
|
37
|
+
},
|
38
|
+
methods: {
|
39
|
+
setBookList(val){
|
40
|
+
console.log("555555")
|
41
|
+
// console.log("66666",val)
|
42
|
+
this.bookList = val
|
43
|
+
},
|
44
|
+
setBookAll(val){
|
45
|
+
this.bookAll = val
|
46
|
+
},
|
47
|
+
setCondition(val){
|
48
|
+
this.bookCondition = val
|
49
|
+
},
|
50
|
+
},
|
51
|
+
events: {
|
52
|
+
|
53
|
+
}
|
54
|
+
}
|
55
|
+
</script>
|
56
|
+
|
57
|
+
<style lang="less">
|
58
|
+
#checkbookEntry {
|
59
|
+
height: 700px;
|
60
|
+
}
|
61
|
+
</style>
|