safecheck-client 4.0.0-1 → 4.0.0-100
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 +2 -2
- package/src/App.vue +2 -2
- package/src/components/NewDefectList/DefectListNew.vue +660 -663
- package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
- package/src/components/Util/ImgSelfSafePlus.vue +13 -3
- package/src/components/Util/SafecheckUpload.vue +281 -281
- package/src/components/android/AndroidDefectDeal.vue +1 -1
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +1 -1
- package/src/components/android/AndroidDefectDetails.vue +769 -0
- package/src/components/android/BlackUserOnLine.vue +2 -2
- package/src/components/android/Insurance/PhoneInsurancePurchase.vue +175 -165
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +108 -116
- package/src/components/android/Insurance/PhoneInsuranceRecordList.vue +1 -1
- package/src/components/android/NewCheckpaperAndroid.vue +28 -21
- 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 +48 -6
- package/src/components/android/SafecheckOrderV.vue +3 -3
- 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/paper/RegionalList.vue +217 -0
- 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 -69
- 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/DefectDeal.vue +1007 -1007
- package/src/components/pc/NewCheckpaper.vue +22 -14
- package/src/components/pc/NewCheckpaperTemp.vue +5 -5
- package/src/components/pc/PaperDefectMain.vue +1 -0
- package/src/components/pc/RoleSelectorDep.vue +2 -1
- package/src/components/planmanage/PlanManage.vue +825 -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 +1240 -0
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +438 -0
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +339 -0
- package/src/filiale/jinhong/android.js +11 -0
- package/src/filiale/jinhong/pc/CheckBookList.vue +388 -0
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +528 -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 +844 -0
- package/src/filiale/jinhong/pc/PlanManage.vue +925 -0
- package/src/filiale/jinhong/pc/SelectCheckPlan.vue +308 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +745 -0
- package/src/filiale/jinhong/pc.js +13 -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 +577 -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 +1108 -0
- package/src/filiale/meihekou/android/MeterReading.vue +106 -0
- package/src/filiale/meihekou/android/PaperFeedback.vue +1538 -0
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -0
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1306 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2414 -0
- package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -0
- package/src/filiale/meihekou/android.js +21 -0
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +1959 -0
- package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -0
- package/src/filiale/meihekou/pc.js +13 -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/AndroidDefectDeal.vue +634 -0
- package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -0
- 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 +4 -0
- package/src/filiale/xiangyuanzhongai/pc/DefectDeal.vue +1007 -0
- package/src/filiale/xiangyuanzhongai/pc/PaperList.vue +791 -0
- package/src/filiale/xiangyuanzhongai/pc.js +2 -0
- package/src/filiale/xinkang/android/AddPlanItem.vue +413 -0
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/xinkang/android.js +1 -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 +4 -2
- 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
- package/src/safecheck.js +3 -1
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItemAll">
|
|
7
|
+
<div :class="$parent.$parent.style2" style="margin: 0px">
|
|
8
|
+
<role-selector-safe-dep
|
|
9
|
+
role-name="安检员"
|
|
10
|
+
role-lable="安 检 员 "
|
|
11
|
+
@re-res="$parent.$parent.getRes"
|
|
12
|
+
@alluser="$parent.$parent.getchecker"
|
|
13
|
+
:value.sync="model.f_checker_id"
|
|
14
|
+
v-model="model.f_checker_id"
|
|
15
|
+
:value-multiple="true"
|
|
16
|
+
condition=" f_checker_name in {}">
|
|
17
|
+
>
|
|
18
|
+
</role-selector-safe-dep>
|
|
19
|
+
</div>
|
|
20
|
+
<div :class="$parent.$parent.style">
|
|
21
|
+
<label class="font_normal_body">安检册名称</label>
|
|
22
|
+
<v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
|
|
23
|
+
:value-single="true" style="width: 60%"
|
|
24
|
+
class="select_list select"
|
|
25
|
+
:options='$parent.$parent.checkBooks' placeholder='安检册名称'
|
|
26
|
+
close-on-select
|
|
27
|
+
condition="tcb.id ='{}'"></v-select>
|
|
28
|
+
</div>
|
|
29
|
+
<!-- <div :class="$parent.$parent.style">-->
|
|
30
|
+
<!-- <label class="font_normal_body">表册类型</label>-->
|
|
31
|
+
<!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
|
|
32
|
+
<!-- :value-single="true" style="width: 60%"-->
|
|
33
|
+
<!-- class="select_list select"-->
|
|
34
|
+
<!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
|
|
35
|
+
<!-- close-on-select-->
|
|
36
|
+
<!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
|
|
37
|
+
<!-- </div>-->
|
|
38
|
+
<!-- <div :class="$parent.$parent.style">-->
|
|
39
|
+
<!-- <label class="font_normal_body">用户类型</label>-->
|
|
40
|
+
<!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
|
|
41
|
+
<!-- :value-single="true" style="width: 60%"-->
|
|
42
|
+
<!-- class="select_list select"-->
|
|
43
|
+
<!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
|
|
44
|
+
<!-- close-on-select-->
|
|
45
|
+
<!-- condition="tcb.f_user_type ='{}'"></v-select>-->
|
|
46
|
+
<!-- </div>-->
|
|
47
|
+
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
|
48
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
|
49
|
+
<button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
|
|
50
|
+
<button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
|
|
51
|
+
<div style="float: right" class="button_spacing"
|
|
52
|
+
v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
|
|
53
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
|
|
54
|
+
@click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<div class="row" v-show="$parent.$parent.$parent.showItemAll">
|
|
62
|
+
<div :class="$parent.$parent.style2" style="margin: 0px">
|
|
63
|
+
<role-selector-safe-dep
|
|
64
|
+
role-name="安检员"
|
|
65
|
+
role-lable="安 检 员 "
|
|
66
|
+
@re-res="$parent.$parent.getRes"
|
|
67
|
+
@alluser="$parent.$parent.getchecker"
|
|
68
|
+
:value.sync="model.f_checker_id"
|
|
69
|
+
v-model="model.f_checker_id"
|
|
70
|
+
:value-multiple="true"
|
|
71
|
+
condition=" f_checker_name in {}">
|
|
72
|
+
</role-selector-safe-dep>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div :class="$parent.$parent.style">
|
|
76
|
+
<label class="font_normal_body">安检册名</label>
|
|
77
|
+
<v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
|
|
78
|
+
:value-single="true" style="width: 60%"
|
|
79
|
+
class="select_list select"
|
|
80
|
+
:options='$parent.$parent.checkBooks' placeholder='安检册名称'
|
|
81
|
+
close-on-select
|
|
82
|
+
condition="tcb.id ='{}'"></v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
|
85
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
|
86
|
+
<button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
|
|
87
|
+
<button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
|
|
88
|
+
<div style="float: right" class="button_spacing"
|
|
89
|
+
v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
|
|
90
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
|
|
91
|
+
@click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
|
|
92
|
+
<!-- <div style="float: right" class="button_spacing"-->
|
|
93
|
+
<!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
|
|
94
|
+
<!-- @click="$parent.$parent.hidden()">-->
|
|
95
|
+
<!-- </div>-->
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
</div>
|
|
101
|
+
</criteria>
|
|
102
|
+
<data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
|
|
103
|
+
<template partial='head'>
|
|
104
|
+
<tr>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>所属安检员</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>安检册名称</nobr>
|
|
110
|
+
</th>
|
|
111
|
+
<!-- <th>-->
|
|
112
|
+
<!-- <nobr>安检册类型</nobr>-->
|
|
113
|
+
<!-- </th>-->
|
|
114
|
+
<th>
|
|
115
|
+
<nobr>用户类型</nobr>
|
|
116
|
+
</th>
|
|
117
|
+
<th>
|
|
118
|
+
<nobr>创建日期</nobr>
|
|
119
|
+
</th>
|
|
120
|
+
<th>
|
|
121
|
+
<nobr>创建人</nobr>
|
|
122
|
+
</th>
|
|
123
|
+
<th>
|
|
124
|
+
<nobr>用户数量</nobr>
|
|
125
|
+
</th>
|
|
126
|
+
<th>
|
|
127
|
+
<nobr>已下发</nobr>
|
|
128
|
+
</th>
|
|
129
|
+
<th>
|
|
130
|
+
<nobr>未下发</nobr>
|
|
131
|
+
</th>
|
|
132
|
+
<!-- <th>
|
|
133
|
+
<nobr>已检</nobr>
|
|
134
|
+
</th>
|
|
135
|
+
<th>
|
|
136
|
+
<nobr>未检</nobr>
|
|
137
|
+
</th>-->
|
|
138
|
+
<!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
|
|
139
|
+
<!-- <nobr>操作</nobr>-->
|
|
140
|
+
<!-- </th>-->
|
|
141
|
+
</tr>
|
|
142
|
+
</template>
|
|
143
|
+
<template partial='body'>
|
|
144
|
+
<td style="text-align: center;">{{ row.f_checker_name }}</td>
|
|
145
|
+
<td style="text-align: center;">{{ row.f_check_book_name }}</td>
|
|
146
|
+
<!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
|
|
147
|
+
<td style="text-align: center;">{{ row.f_user_type }}</td>
|
|
148
|
+
<td style="text-align: center;">{{ row.f_create_date }}</td>
|
|
149
|
+
<td style="text-align: center;">{{ row.f_create_person }}</td>
|
|
150
|
+
<td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num}}</b></button></td>
|
|
151
|
+
<td style="text-align: center;">{{ row.xiafa }}</td>
|
|
152
|
+
<td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
|
|
153
|
+
<!-- <td style="text-align: center;">{{ row.yijian }}</td>
|
|
154
|
+
<td style="text-align: center;">{{ row.weijian }}</td>-->
|
|
155
|
+
<!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
|
|
156
|
+
</template>
|
|
157
|
+
</data-grid>
|
|
158
|
+
</criteria-paged>
|
|
159
|
+
<modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
|
|
160
|
+
<article slot="modal-body" class="modal-body">
|
|
161
|
+
<check-book-entry v-if="showModal" @select-changed="selectedEntry" :showtype="showtype"></check-book-entry>
|
|
162
|
+
</article>
|
|
163
|
+
<footer slot="modal-footer">
|
|
164
|
+
</footer>
|
|
165
|
+
|
|
166
|
+
</modal>
|
|
167
|
+
<modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
|
|
168
|
+
<article slot="modal-body" class="modal-body" style="height: 80vh">
|
|
169
|
+
<check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
|
|
170
|
+
</article>
|
|
171
|
+
<footer slot="modal-footer">
|
|
172
|
+
</footer>
|
|
173
|
+
|
|
174
|
+
</modal>
|
|
175
|
+
</div>
|
|
176
|
+
</template>
|
|
177
|
+
|
|
178
|
+
<script>
|
|
179
|
+
import {PagedList} from 'vue-client'
|
|
180
|
+
import {HttpResetClass} from 'vue-client'
|
|
181
|
+
import bus from '../../../bus'
|
|
182
|
+
export default {
|
|
183
|
+
title: '用户安检情况',
|
|
184
|
+
data () {
|
|
185
|
+
return {
|
|
186
|
+
checker_name:'',
|
|
187
|
+
showSendModal:false,
|
|
188
|
+
searchData: {
|
|
189
|
+
condition: '1=1'
|
|
190
|
+
},
|
|
191
|
+
showCaoZuo:false,
|
|
192
|
+
userlogin:{
|
|
193
|
+
id:this.$login.f.id,
|
|
194
|
+
name:this.$login.f.name,
|
|
195
|
+
orgid:this.$login.f.orgid,
|
|
196
|
+
orgstr:this.$login.f.orgs,
|
|
197
|
+
},
|
|
198
|
+
checkBooks:[],
|
|
199
|
+
bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
|
|
200
|
+
userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
|
201
|
+
aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
|
|
202
|
+
showModal:false,
|
|
203
|
+
excelHeaders: {
|
|
204
|
+
|
|
205
|
+
'f_userinfo_code': '用户编号',
|
|
206
|
+
'f_user_name': '用户名称',
|
|
207
|
+
'f_user_phone': '用户电话',
|
|
208
|
+
'f_meternumber': '用户表号',
|
|
209
|
+
'f_user_type': '用户类型',
|
|
210
|
+
'f_last_checker': '安检员',
|
|
211
|
+
'f_residential_area': '小区名称',
|
|
212
|
+
'f_address': '地址',
|
|
213
|
+
'f_last_check_date': '安检日期',
|
|
214
|
+
'f_last_check_state': '安检状态',
|
|
215
|
+
'f_last_check_result': '安检结果'
|
|
216
|
+
},
|
|
217
|
+
model: new PagedList('api/af-safecheck/sql/QueryCheckBook', 20),
|
|
218
|
+
checkBookRow:{},
|
|
219
|
+
checkBook :{
|
|
220
|
+
f_check_book_name: '',
|
|
221
|
+
f_run_date: '',
|
|
222
|
+
f_around_time: '',
|
|
223
|
+
f_around_unit: '',
|
|
224
|
+
f_create_date: '',
|
|
225
|
+
f_create_person: '',
|
|
226
|
+
f_orgid: '',
|
|
227
|
+
f_checker_name: ''
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
props: {
|
|
232
|
+
style: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: 'col-sm-2 form-group'
|
|
235
|
+
},
|
|
236
|
+
style2: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: 'col-sm-4 form-group'
|
|
239
|
+
},
|
|
240
|
+
needprops:{
|
|
241
|
+
type: Object,
|
|
242
|
+
default:{}
|
|
243
|
+
},
|
|
244
|
+
showtype:{
|
|
245
|
+
type: String
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
ready () {
|
|
249
|
+
bus.$on('fresh-main',()=>{
|
|
250
|
+
console.log("进入方法")
|
|
251
|
+
this.$refs.paged.$refs.criteria.search()
|
|
252
|
+
})
|
|
253
|
+
this.freshCheckBook()
|
|
254
|
+
},
|
|
255
|
+
beforeDestroy() {
|
|
256
|
+
//tag
|
|
257
|
+
bus.$off('fresh-main')
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
getchecker(val){
|
|
261
|
+
this.$refs.paged.$refs.criteria.model.f_checker_id = ''
|
|
262
|
+
if(val && val.length > 0){
|
|
263
|
+
this.checker_name = ''
|
|
264
|
+
val.forEach(user => {
|
|
265
|
+
this.checker_name += `'${user.name}',`
|
|
266
|
+
})
|
|
267
|
+
this.checker_name = this.checker_name.slice(0,this.checker_name.length-1)
|
|
268
|
+
}else{
|
|
269
|
+
this.checker_name = ''
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
send(row){
|
|
274
|
+
console.log(" ",row)
|
|
275
|
+
this.checkBookRow = row
|
|
276
|
+
this.showSendModal = true
|
|
277
|
+
},
|
|
278
|
+
freshCheckBook () {
|
|
279
|
+
this.checkBooks = []
|
|
280
|
+
new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999`, {
|
|
281
|
+
data: {
|
|
282
|
+
items: 'id,f_check_book_name',
|
|
283
|
+
tablename: 't_check_book',
|
|
284
|
+
condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
|
|
285
|
+
orderitem: 'id desc'
|
|
286
|
+
}
|
|
287
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
288
|
+
this.checkBooks.push({label: '全部', value: ''})
|
|
289
|
+
res.data.forEach(ress => {
|
|
290
|
+
this.checkBooks.push({
|
|
291
|
+
label: ress.f_check_book_name,
|
|
292
|
+
value: ress.id
|
|
293
|
+
})
|
|
294
|
+
})
|
|
295
|
+
})
|
|
296
|
+
},
|
|
297
|
+
selectedEntry(){
|
|
298
|
+
console.log("666666666666666666")
|
|
299
|
+
},
|
|
300
|
+
details(row){
|
|
301
|
+
this.$emit('showdetails' ,row)
|
|
302
|
+
},
|
|
303
|
+
add(){
|
|
304
|
+
this.$emit('addbook')
|
|
305
|
+
},
|
|
306
|
+
ok (){
|
|
307
|
+
//tag
|
|
308
|
+
let http = new HttpResetClass()
|
|
309
|
+
http.load('POST', 'api/af-safecheck/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
|
|
310
|
+
{resolveMsg: '更新安检册信息成功', rejectMsg: '保存安检册信息成功'}).then(res=>{
|
|
311
|
+
if (res.data.code===200){
|
|
312
|
+
this.$showMessage('修改成功')
|
|
313
|
+
this.showModal = false
|
|
314
|
+
this.checkBook= {}
|
|
315
|
+
}
|
|
316
|
+
})
|
|
317
|
+
},
|
|
318
|
+
cancel () {
|
|
319
|
+
this.showModal = false
|
|
320
|
+
this.checkBook= {}
|
|
321
|
+
},
|
|
322
|
+
updateCheckBook(val){
|
|
323
|
+
this.checkBook=val
|
|
324
|
+
this.showModal = true
|
|
325
|
+
},
|
|
326
|
+
search (args) {
|
|
327
|
+
// //tag
|
|
328
|
+
// //tag
|
|
329
|
+
if(this.checker_name){
|
|
330
|
+
args.condition += ` and f_checker_name in (${this.checker_name}) `
|
|
331
|
+
}
|
|
332
|
+
this.$parent.showItem = false
|
|
333
|
+
this.$parent.showItemUser = false
|
|
334
|
+
args.condition += ` and f_orgid in ('${this.$login.f.orgid}')`
|
|
335
|
+
args.condition += ` and tcb.f_user_type ='${this.showtype}' `
|
|
336
|
+
return this.model.search(args.condition, args.model)
|
|
337
|
+
},
|
|
338
|
+
getRes (obj) {
|
|
339
|
+
// this.model.f_filialeids = this.$login.convertToIn(obj.resids)
|
|
340
|
+
},
|
|
341
|
+
async deleteCheckBook (val) {
|
|
342
|
+
try {
|
|
343
|
+
//tag
|
|
344
|
+
let http = new HttpResetClass()
|
|
345
|
+
let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
|
|
346
|
+
let delCheckBook= `delete from t_check_book where id ='${val.id}'`
|
|
347
|
+
await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: upAddress}},
|
|
348
|
+
{resolveMsg: null, rejectMsg: '删除安检册失败'})
|
|
349
|
+
await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: delCheckBook}},
|
|
350
|
+
{resolveMsg: null, rejectMsg: '删除安检册失败'})
|
|
351
|
+
this.$showMessage('删除成功')
|
|
352
|
+
this.$refs.paged.$refs.criteria.search()
|
|
353
|
+
}catch (e) {
|
|
354
|
+
this.$showMessage('删除失败',e)
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
watch: {
|
|
360
|
+
'model.rows'(val){
|
|
361
|
+
console.log("997997",val)
|
|
362
|
+
this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
computed: {
|
|
366
|
+
selected () {
|
|
367
|
+
return this.$refs.paged.$refs.grid.selected
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
</script>
|
|
372
|
+
<style scoped>
|
|
373
|
+
.newcolor {
|
|
374
|
+
color: red;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.table th {
|
|
378
|
+
background-color: #f2f6fa;
|
|
379
|
+
color: black;
|
|
380
|
+
}
|
|
381
|
+
</style>
|
|
382
|
+
<style lang="less">
|
|
383
|
+
#checkbookEntryShow {
|
|
384
|
+
.modal-dialog {
|
|
385
|
+
width: 80%;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
</style>
|