safecheck-client 4.0.0-10 → 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/components/NewDefectList/DefectListNew.vue +11 -14
- 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 +769 -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 +5 -5
- 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 +47 -2
- 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 +349 -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 +61 -72
- 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 +1 -1
- package/src/components/pc/NewCheckpaper.vue +16 -10
- 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/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 -448
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +339 -0
- package/src/filiale/jinhong/android.js +3 -1
- 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 +13 -5
- package/src/filiale/zhongsheng/android/PaperFeedback.vue +2 -2
- package/src/filiale/zhoukou/android/PaperFeedback.vue +2 -2
- package/src/main.js +33 -33
- package/src/safecheck-android.js +3 -0
- package/src/safecheck.js +3 -1
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged >
|
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="form-group col-sm-2">
|
|
9
|
+
<label class="control-label">公  司</label>
|
|
10
|
+
<right-tree @re-res="$parent.$parent.getRes" :initresid="$login.f.orgid">
|
|
11
|
+
</right-tree>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-2" >
|
|
14
|
+
<label class="font_normal_body">区域</label>
|
|
15
|
+
<v-select :value.sync="model.f_name" v-model='model.f_name'
|
|
16
|
+
:value-single="true" style="width: 60%"
|
|
17
|
+
class="select_list select"
|
|
18
|
+
:options='$parent.$parent.areaList' placeholder='区域'
|
|
19
|
+
close-on-select
|
|
20
|
+
condition="f_name = '{}'"></v-select>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="form-group col-sm-2" >
|
|
24
|
+
<label class="font_normal_body">调压箱</label>
|
|
25
|
+
<v-select :value.sync="model.f_adjustable_id" v-model='model.f_adjustable_id'
|
|
26
|
+
:value-single="true" style="width: 60%"
|
|
27
|
+
class="select_list select"
|
|
28
|
+
:options='$parent.$parent.boxOptions' placeholder='调压箱'
|
|
29
|
+
close-on-select
|
|
30
|
+
condition="f_adjustable_id = '{}'"></v-select>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="form-group col-sm-2" >
|
|
33
|
+
<label class="font_normal_body">安检时间</label>
|
|
34
|
+
<datepicker
|
|
35
|
+
:value.sync="model.start"
|
|
36
|
+
placeholder='开始时间' style="width: 60%"
|
|
37
|
+
:disabled-days-of-week="[]"
|
|
38
|
+
:format="'yyyy-MM-dd'"
|
|
39
|
+
:show-rest-button="reset"
|
|
40
|
+
v-model="model.start"
|
|
41
|
+
>
|
|
42
|
+
</datepicker>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="form-group col-sm-2" >
|
|
45
|
+
<label class="font_normal_body">安检时间</label>
|
|
46
|
+
<datepicker
|
|
47
|
+
:value.sync="model.end"
|
|
48
|
+
placeholder='结束时间' style="width: 60%"
|
|
49
|
+
:disabled-days-of-week="[]"
|
|
50
|
+
:format="'yyyy-MM-dd'"
|
|
51
|
+
:show-rest-button="reset"
|
|
52
|
+
v-model="model.end">
|
|
53
|
+
</datepicker>
|
|
54
|
+
</div>
|
|
55
|
+
<button class="button_spacing button_search" @click="$parent.$parent.search()">查询</button>
|
|
56
|
+
<div style="float: right" class="button_spacing"
|
|
57
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
58
|
+
@click="$parent.$parent.hidden()"></div>
|
|
59
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</criteria>
|
|
64
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
|
65
|
+
<template partial='head'>
|
|
66
|
+
<tr>
|
|
67
|
+
<th>
|
|
68
|
+
<nobr>公司</nobr>
|
|
69
|
+
</th>
|
|
70
|
+
<th>
|
|
71
|
+
<nobr>区域</nobr>
|
|
72
|
+
</th>
|
|
73
|
+
<th>
|
|
74
|
+
<nobr>调压箱</nobr>
|
|
75
|
+
</th>
|
|
76
|
+
<th>
|
|
77
|
+
<nobr>总用户数</nobr>
|
|
78
|
+
</th>
|
|
79
|
+
<th>
|
|
80
|
+
<nobr>已检数</nobr>
|
|
81
|
+
</th>
|
|
82
|
+
<th>
|
|
83
|
+
<nobr>未检数</nobr>
|
|
84
|
+
</th>
|
|
85
|
+
<th>
|
|
86
|
+
<nobr>到访不遇</nobr>
|
|
87
|
+
</th>
|
|
88
|
+
<th>
|
|
89
|
+
<nobr>拒检数</nobr>
|
|
90
|
+
</th>
|
|
91
|
+
<th>
|
|
92
|
+
<nobr>隐患数</nobr>
|
|
93
|
+
</th>
|
|
94
|
+
<th>
|
|
95
|
+
<nobr>已处理数</nobr>
|
|
96
|
+
</th>
|
|
97
|
+
<th>
|
|
98
|
+
<nobr>未处理数</nobr>
|
|
99
|
+
</th>
|
|
100
|
+
<th>
|
|
101
|
+
<nobr>安检完成率</nobr>
|
|
102
|
+
</th>
|
|
103
|
+
</tr>
|
|
104
|
+
</template>
|
|
105
|
+
<template partial='body'>
|
|
106
|
+
<td style="text-align: center">{{row.f_orgname}}</td>
|
|
107
|
+
<td style="text-align: center">{{row.f_name}}</td>
|
|
108
|
+
<td style="text-align: center">{{row.f_adjustable_name}}</td>
|
|
109
|
+
<td style="text-align: center">{{row.usertotal}}</td>
|
|
110
|
+
<td style="text-align: center">{{row.ruhutotal}}</td>
|
|
111
|
+
<td style="text-align: center">{{row.usertotal-row.ruhutotal}}</td>
|
|
112
|
+
<td style="text-align: center">{{row.buyutotal}}</td>
|
|
113
|
+
<td style="text-align: center">{{row.jujiantotal}}</td>
|
|
114
|
+
<td style="text-align: center">{{row.f_defect_count}}</td>
|
|
115
|
+
<td style="text-align: center">{{row.f_repair_count}}</td>
|
|
116
|
+
<td style="text-align: center">{{row.weichuli}}</td>
|
|
117
|
+
<td style="text-align: center">{{row.ruhulv}}</td>
|
|
118
|
+
</template>
|
|
119
|
+
</data-grid>
|
|
120
|
+
</criteria-paged>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</template>
|
|
124
|
+
|
|
125
|
+
<script>
|
|
126
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
127
|
+
export default {
|
|
128
|
+
title: '安检区域汇总',
|
|
129
|
+
data() {
|
|
130
|
+
let model = new PagedList('rs/sql/regionalCheckList', 20,{
|
|
131
|
+
start: 'this.start',
|
|
132
|
+
end: 'this.end',
|
|
133
|
+
})
|
|
134
|
+
model.start = ''
|
|
135
|
+
model.end = ''
|
|
136
|
+
return {
|
|
137
|
+
model: model,
|
|
138
|
+
f_filialeids: '',
|
|
139
|
+
areaList: [],
|
|
140
|
+
boxOptions: [],
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
methods: {
|
|
144
|
+
//获取区域信息
|
|
145
|
+
async getAreaList() {
|
|
146
|
+
let resp = await new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
|
147
|
+
data: {
|
|
148
|
+
items:'*',
|
|
149
|
+
tablename: 't_region',
|
|
150
|
+
condition: `f_orgid = '${this.$login.f.orgid}'`,
|
|
151
|
+
orderitem:'id'
|
|
152
|
+
}
|
|
153
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
154
|
+
//tag)
|
|
155
|
+
const areas = [{label: '全部', value: ''}]
|
|
156
|
+
for (const item of resp.data) {
|
|
157
|
+
areas.push({
|
|
158
|
+
label: item.f_name,
|
|
159
|
+
value: item.f_name
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
this.areaList = areas
|
|
163
|
+
},
|
|
164
|
+
getAdjustableList() {
|
|
165
|
+
new HttpResetClass().load('post', `/rs/sql/adjustableboxQuery`,
|
|
166
|
+
{data: {condition: '1 = 1'}},
|
|
167
|
+
{
|
|
168
|
+
resolveMsg: null,
|
|
169
|
+
rejectMsg: null
|
|
170
|
+
}).then((res) => {
|
|
171
|
+
const boxOptions =[{label: '全部', value: ''}]
|
|
172
|
+
for (const data of res.data) {
|
|
173
|
+
const one = {
|
|
174
|
+
label: data.f_adjustable_id + data.f_adjustable_name,
|
|
175
|
+
value: Number(data.f_adjustable_id)
|
|
176
|
+
}
|
|
177
|
+
boxOptions.push(one)
|
|
178
|
+
}
|
|
179
|
+
this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
|
|
180
|
+
}).catch((msg) => {
|
|
181
|
+
})
|
|
182
|
+
},
|
|
183
|
+
getRes(obj) {
|
|
184
|
+
this.f_filialeids = this.$login.convertToIn(obj.resids);
|
|
185
|
+
},
|
|
186
|
+
hidden() {
|
|
187
|
+
this.criteriaShow = !this.criteriaShow
|
|
188
|
+
},
|
|
189
|
+
refresh() {
|
|
190
|
+
this.$refs.paged.$refs.criteria.search()
|
|
191
|
+
},
|
|
192
|
+
search() {
|
|
193
|
+
this.$refs.paged.$refs.criteria.search()
|
|
194
|
+
},
|
|
195
|
+
selfSearch(args) {
|
|
196
|
+
if(args.model.start!=''){
|
|
197
|
+
this.model.start = args.model.start
|
|
198
|
+
}
|
|
199
|
+
if(args.model.end!=''){
|
|
200
|
+
this.model.end = args.model.end
|
|
201
|
+
}
|
|
202
|
+
if(this.f_filialeids!=''){
|
|
203
|
+
args.condition += ` and f_orgid in ${this.f_filialeids}`
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
this.model.search(args.condition, args.model)
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
ready() {
|
|
210
|
+
this.getAdjustableList()
|
|
211
|
+
this.getAreaList()
|
|
212
|
+
this.search()
|
|
213
|
+
},
|
|
214
|
+
watch: { }
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
</script>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id='AddTobook'>
|
|
3
3
|
<div class="auto select-overspread">
|
|
4
|
+
<button class="button_new" style="margin-right: 10px" @click="showUploadCodeCondition()">导入编号</button>
|
|
4
5
|
<validator name='v'>
|
|
5
6
|
<ul class="nav nav-tabs">
|
|
6
7
|
<p class="bg-info text-center" style="padding: 8px;">{{tabstitles[$parent.$refs.tabs.active]}}</p>
|
|
7
8
|
</ul>
|
|
8
|
-
<div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;"
|
|
9
|
+
<div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;">
|
|
9
10
|
<div class="row" style="text-align: center">
|
|
10
|
-
|
|
11
11
|
<div class="col-sm-12 form-group" :class="[$v.f_check_book_num.required ? 'has-error' : '']">
|
|
12
|
-
<label class="font_normal_body" style="width: 26%;"
|
|
12
|
+
<label class="font_normal_body" style="width: 26%;">目标安检册</label>
|
|
13
13
|
<input type="text" v-model="model.f_check_book_num" v-show="false"
|
|
14
14
|
v-validate:f_check_book_num='{required: true }'>
|
|
15
15
|
<v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
|
|
16
|
-
:options='checkbook' placeholder='
|
|
16
|
+
:options='checkbook' placeholder='安检册'
|
|
17
17
|
:value-single="true" :search="true"
|
|
18
18
|
style="width:60%"
|
|
19
19
|
close-on-select></v-select>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
<div class="row"
|
|
23
|
+
<div class="row" >
|
|
24
24
|
<div style="float:right;margin-top: 250px;margin-right: 20px;">
|
|
25
25
|
<button @click="confirm()" class="btn button_search" style="width: 70px" :disabled='!$v.valid'>
|
|
26
26
|
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
|
@@ -29,8 +29,23 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</validator>
|
|
31
31
|
</div>
|
|
32
|
+
<modal :show.sync="excelUserCondtion" width="500px" v-ref:modal1 >
|
|
33
|
+
<div slot="modal-header" class="modal-header">
|
|
34
|
+
<h4 class="modal-title">
|
|
35
|
+
导入用户编号
|
|
36
|
+
</h4>
|
|
37
|
+
</div>
|
|
38
|
+
<div slot="modal-body" class="modal-body">
|
|
39
|
+
<div class="row">
|
|
40
|
+
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
|
|
41
|
+
action="api/af-safecheck/file/uploadFile" tagname="安检册导入" v-ref:file :headers="headers" multiple></file-upload>
|
|
42
|
+
<img src="../../assets/anjince.png" style="width: 100%"/>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
46
|
+
</footer>
|
|
47
|
+
</modal>
|
|
32
48
|
</div>
|
|
33
|
-
|
|
34
49
|
</template>
|
|
35
50
|
|
|
36
51
|
<script>
|
|
@@ -45,16 +60,17 @@
|
|
|
45
60
|
model:{
|
|
46
61
|
f_check_book_num:''
|
|
47
62
|
},
|
|
63
|
+
excelUserCondtion:false,
|
|
48
64
|
checkbook: [],
|
|
49
65
|
checkbooks:[],
|
|
50
|
-
tabstitles:['
|
|
66
|
+
tabstitles:['请选择用户添加到安检册内']
|
|
51
67
|
}
|
|
52
68
|
},
|
|
53
69
|
created () {
|
|
54
70
|
},
|
|
55
71
|
ready () {
|
|
56
72
|
// this.close()
|
|
57
|
-
new HttpResetClass().load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy',{data: {
|
|
73
|
+
new HttpResetClass().load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999',{data: {
|
|
58
74
|
items: 'id,f_check_book_name,f_check_book_type,f_user_type',
|
|
59
75
|
tablename: 't_check_book',
|
|
60
76
|
condition: `1=1`,
|
|
@@ -69,10 +85,17 @@
|
|
|
69
85
|
value:item.id
|
|
70
86
|
})
|
|
71
87
|
})
|
|
72
|
-
this.checkbook = this.checkbooks
|
|
88
|
+
this.checkbook = this.checkbooks
|
|
73
89
|
})
|
|
74
90
|
},
|
|
75
91
|
methods: {
|
|
92
|
+
cancel(){
|
|
93
|
+
this.showCondtion=false
|
|
94
|
+
this.excelUserCondtion=false
|
|
95
|
+
},
|
|
96
|
+
showUploadCodeCondition(){
|
|
97
|
+
this.excelUserCondtion=true
|
|
98
|
+
},
|
|
76
99
|
selectbook(val){
|
|
77
100
|
|
|
78
101
|
},
|
|
@@ -82,7 +105,7 @@
|
|
|
82
105
|
|
|
83
106
|
confirm () {
|
|
84
107
|
if (!this.model.f_check_book_num){
|
|
85
|
-
this.$showMessage('
|
|
108
|
+
this.$showMessage('请选择目标安检册')
|
|
86
109
|
return
|
|
87
110
|
}
|
|
88
111
|
console.log(this.$parent.$refs.tabs.active)
|
|
@@ -90,6 +113,7 @@
|
|
|
90
113
|
console.log(this.$parent.bookAll)
|
|
91
114
|
console.log(this.$parent.bookCondition)
|
|
92
115
|
let userCondition = ''
|
|
116
|
+
let f_userinfo_ids = "'"
|
|
93
117
|
if(this.$parent.bookAll){
|
|
94
118
|
if(!this.$parent.bookCondition){
|
|
95
119
|
this.$showMessage("请先查询")
|
|
@@ -98,13 +122,27 @@
|
|
|
98
122
|
userCondition = this.$parent.bookCondition
|
|
99
123
|
}
|
|
100
124
|
}else if(this.$parent.bookList.length > 0){
|
|
101
|
-
|
|
102
|
-
|
|
125
|
+
if(this.$parent.$refs.tabs.active ===0){
|
|
126
|
+
for(let i = 0;i<this.$parent.bookList.length;i++){
|
|
127
|
+
if(i === this.$parent.bookList.length-1){
|
|
128
|
+
f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "'"
|
|
129
|
+
}else{
|
|
130
|
+
f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "','"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
userCondition ='tui.f_userinfo_id in (' + f_userinfo_ids+ ')'
|
|
134
|
+
}
|
|
135
|
+
if(this.$parent.$refs.tabs.active ===1){
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
if(this.$parent.$refs.tabs.active ===2){
|
|
139
|
+
|
|
140
|
+
}
|
|
103
141
|
}else{
|
|
104
|
-
this.$showMessage(this.$parent.$refs.tabs.active===
|
|
142
|
+
this.$showMessage(this.$parent.$refs.tabs.active===3?'请选择用户':'请选择')
|
|
105
143
|
return;
|
|
106
144
|
}
|
|
107
|
-
if(this.$parent.$refs.tabs.active ===
|
|
145
|
+
if(this.$parent.$refs.tabs.active ===1){
|
|
108
146
|
new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
|
109
147
|
f_check_book_type:'小区',condition:userCondition}},
|
|
110
148
|
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
|
@@ -120,7 +158,27 @@
|
|
|
120
158
|
this.$showMessage("添加失败")
|
|
121
159
|
}
|
|
122
160
|
})
|
|
123
|
-
}else{
|
|
161
|
+
}else if(this.$parent.$refs.tabs.active ===0){
|
|
162
|
+
new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {
|
|
163
|
+
f_check_book_id: this.model.f_check_book_num,
|
|
164
|
+
f_check_book_type:'用户',
|
|
165
|
+
booklist:this.$parent.bookList,
|
|
166
|
+
condition:userCondition
|
|
167
|
+
}},
|
|
168
|
+
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
|
169
|
+
if(res && res.data){
|
|
170
|
+
this.model.f_check_book_num = ""
|
|
171
|
+
this.$showMessage("本次成功添加"+this.$parent.bookList.length+"个用户",['confirm']).then(res=>{
|
|
172
|
+
if(res==='confirm'){
|
|
173
|
+
console.log("刷新了")
|
|
174
|
+
bus.$emit('fresh-area')
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
}else{
|
|
178
|
+
this.$showMessage("添加失败")
|
|
179
|
+
}
|
|
180
|
+
})
|
|
181
|
+
} else{
|
|
124
182
|
new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
|
125
183
|
f_check_book_type:'单位',condition:userCondition}},
|
|
126
184
|
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
|
@@ -140,17 +198,36 @@
|
|
|
140
198
|
}
|
|
141
199
|
},
|
|
142
200
|
watch:{
|
|
143
|
-
'$parent.$refs.tabs.active'(val){
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
201
|
+
// '$parent.$refs.tabs.active'(val){
|
|
202
|
+
// if(val =='0'){
|
|
203
|
+
// this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='民用')
|
|
204
|
+
// }else{
|
|
205
|
+
// this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='非民用')
|
|
206
|
+
// }
|
|
207
|
+
// this.model.f_check_book_num = ''
|
|
208
|
+
// }
|
|
151
209
|
},
|
|
152
210
|
computed: {
|
|
153
211
|
|
|
212
|
+
},
|
|
213
|
+
events: {
|
|
214
|
+
onFileUpload: function (file, res) {
|
|
215
|
+
if ( this.model.f_check_book_num==''){
|
|
216
|
+
this.$showMessage("请先选择目标安检册")
|
|
217
|
+
return
|
|
218
|
+
}
|
|
219
|
+
let data = {
|
|
220
|
+
f_check_book_id: this.model.f_check_book_num,
|
|
221
|
+
filepath: res.f_downloadpath
|
|
222
|
+
}
|
|
223
|
+
new HttpResetClass().load('POST','/api/af-safecheck/logic/checkbookImport', {data: data}, {
|
|
224
|
+
resolveMsg: '导入成功!',
|
|
225
|
+
rejectMsg: '导入失败'
|
|
226
|
+
}).then((res) => {
|
|
227
|
+
this.excelUserCondtion = false
|
|
228
|
+
})
|
|
229
|
+
},
|
|
230
|
+
|
|
154
231
|
}
|
|
155
232
|
}
|
|
156
233
|
</script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<validator name='v'>
|
|
4
4
|
<form class="form-horizontal" novalidate>
|
|
5
5
|
<ul class="nav nav-tabs" style="margin-bottom: 10px">
|
|
6
|
-
<li class="active"><a href="#"
|
|
6
|
+
<li class="active"><a href="#">安检册信息</a></li>
|
|
7
7
|
</ul>
|
|
8
8
|
<div class="row" style="margin-top: 10px">
|
|
9
9
|
<div class="col-sm-12 form-group" style="margin: 0">
|
|
@@ -38,43 +38,10 @@
|
|
|
38
38
|
close-on-select></v-select>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_name.required ? 'has-error' : '']">
|
|
41
|
-
<label class="font_normal_body"
|
|
41
|
+
<label class="font_normal_body">安检册名称</label>
|
|
42
42
|
<input type="text" class="input_search" v-model="checkBook.f_check_book_name"
|
|
43
43
|
style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
|
|
44
44
|
</div>
|
|
45
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
|
46
|
-
<label class="font_normal_body">执行日期</label>
|
|
47
|
-
<datepicker
|
|
48
|
-
:value.sync="checkBook.f_run_date"
|
|
49
|
-
style="width: 60%"
|
|
50
|
-
:format="'yyyy-MM-dd'"
|
|
51
|
-
v-model="checkBook.f_run_date"
|
|
52
|
-
>
|
|
53
|
-
</datepicker>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
|
56
|
-
<label class="font_normal_body">执行周期</label>
|
|
57
|
-
<input type="number" class="input_search" v-model="checkBook.f_around_time"
|
|
58
|
-
style="width: 60%" >
|
|
59
|
-
</div>
|
|
60
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
|
61
|
-
<label class="font_normal_body">周期单位</label>
|
|
62
|
-
<v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
|
|
63
|
-
:value-single="true" style="width: 60%"
|
|
64
|
-
class="select_list select"
|
|
65
|
-
:options='aroundUnit' placeholder=''
|
|
66
|
-
close-on-select></v-select>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
|
|
71
|
-
<!-- <label class="font_normal_body">自动下发</label>-->
|
|
72
|
-
<!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
|
|
73
|
-
<!-- :value-single="true" style="width: 60%"-->
|
|
74
|
-
<!-- class="select_list select"-->
|
|
75
|
-
<!-- :options='autos' placeholder=''-->
|
|
76
|
-
<!-- close-on-select></v-select>-->
|
|
77
|
-
<!-- </div>-->
|
|
78
45
|
</div>
|
|
79
46
|
</form>
|
|
80
47
|
<div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
|
|
@@ -150,7 +117,7 @@ export default {
|
|
|
150
117
|
},
|
|
151
118
|
confirm () {
|
|
152
119
|
if(!this.checkBook.f_check_book_name){
|
|
153
|
-
this.$showMessage('
|
|
120
|
+
this.$showMessage('请填写安检册名称')
|
|
154
121
|
return
|
|
155
122
|
}
|
|
156
123
|
// if(!this.checkBook.f_check_book_type){
|
|
@@ -168,15 +135,15 @@ export default {
|
|
|
168
135
|
console.log('checkbook', this.checkBook)
|
|
169
136
|
let http = new HttpResetClass()
|
|
170
137
|
http.load('POST', 'api/af-safecheck/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
|
|
171
|
-
{resolveMsg: '
|
|
138
|
+
{resolveMsg: '保存安检册信息成功', rejectMsg: '保存安检册信息失败'}).then(res => {
|
|
172
139
|
if (res.data.code === 200) {
|
|
173
|
-
this.$showMessage('
|
|
140
|
+
this.$showMessage('保存安检册信息成功',['confirm']).then(res=>{
|
|
174
141
|
if (res==='confirm'){
|
|
175
142
|
bus.$emit('fresh-main')
|
|
176
143
|
}
|
|
177
144
|
})
|
|
178
145
|
}else{
|
|
179
|
-
this.$showMessage('
|
|
146
|
+
this.$showMessage('保存安检册信息失败')
|
|
180
147
|
}
|
|
181
148
|
})
|
|
182
149
|
},
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
<div id='checkbookEntry' class="flex-row binary">
|
|
3
3
|
<div class="binary-left">
|
|
4
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
5
|
<tab header="用户查询">
|
|
12
6
|
<check-book-search-user @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-user>
|
|
13
7
|
</tab>
|
|
8
|
+
<!-- <tab header="小区查询">-->
|
|
9
|
+
<!-- <check-book-search-area @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-area>-->
|
|
10
|
+
<!-- </tab>-->
|
|
11
|
+
<!-- <tab header="单位查询">-->
|
|
12
|
+
<!-- <check-book-search-unit @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-unit>-->
|
|
13
|
+
<!-- </tab>-->
|
|
14
14
|
</tabset>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="binary-right">
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
methods: {
|
|
39
39
|
setBookList(val){
|
|
40
40
|
console.log("555555")
|
|
41
|
-
// console.log("66666",val)
|
|
42
41
|
this.bookList = val
|
|
43
42
|
},
|
|
44
43
|
setBookAll(val){
|