safecheck-client 3.0.35-1 → 3.0.35-11
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 +1 -1
- package/src/components/Util/SafecheckUpload.vue +269 -265
- package/src/components/android/CivilCurrentCreate.vue +46 -41
- package/src/components/android/examples/UserExamples.vue +136 -136
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +1049 -1045
- package/src/filiale/bayan/android/AddPlanItem.vue +13 -2
- package/src/filiale/bayan/android/CheckPlanDown.vue +2 -2
- package/src/filiale/bayan/android/PaperFeedback.vue +1669 -1669
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
- package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/bayan/pc/CheckPlanAreaList.vue +42 -0
- package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1992 -1992
- package/src/filiale/bayan/pc/PaperList.vue +900 -900
- package/src/filiale/bayan/pc/PlanManage.vue +2 -0
- package/src/filiale/bayan/pc/SelectCheckPlan.vue +58 -0
- package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
- package/src/filiale/huaran/android.js +13 -12
- package/src/filiale/shanxian/android/AddPlanItem.vue +1 -1
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1207 -1207
- package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3035 -3035
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1053 -1053
- package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
- package/src/filiale/xilan/android/AddPlanItem.vue +4 -0
- package/src/filiale/xilan/android/CurrentCreate.vue +6 -2
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
- package/src/main.js +1 -1
@@ -488,6 +488,7 @@
|
|
488
488
|
isSend:false,
|
489
489
|
createPlan:{
|
490
490
|
f_outlets:'',
|
491
|
+
f_class:'',
|
491
492
|
f_end_time:'',
|
492
493
|
f_start_time:'',
|
493
494
|
f_plan_name:'',
|
@@ -638,6 +639,7 @@
|
|
638
639
|
f_plan_name:'',
|
639
640
|
f_plan_year:'',
|
640
641
|
f_plan_month:'',
|
642
|
+
f_class:'',
|
641
643
|
f_outlets:'',
|
642
644
|
isShare:'否',
|
643
645
|
f_issued:'否',
|
@@ -66,6 +66,30 @@
|
|
66
66
|
close-on-select
|
67
67
|
condition="f_check_type = '{}'"></v-select>
|
68
68
|
</div>
|
69
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
70
|
+
<label class="font_normal_body" >区  域</label>
|
71
|
+
<v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
|
72
|
+
:options='$parent.$parent.quyus' placeholder='区域' class="select_list select" style="width: 60%"
|
73
|
+
@change="$parent.$parent.quyuChange"
|
74
|
+
close-on-select>
|
75
|
+
</v-select>
|
76
|
+
</div>
|
77
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
78
|
+
<label class="font_normal_body" >营 业 厅</label>
|
79
|
+
<v-select :value.sync="model.f_bumen" :value-single="true" v-model="model.f_bumen"
|
80
|
+
:options='$parent.$parent.bumens' placeholder='营业厅'
|
81
|
+
@change="$parent.$parent.bumenChange" class="select_list select" style="width: 60%"
|
82
|
+
close-on-select>
|
83
|
+
</v-select>
|
84
|
+
</div>
|
85
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
86
|
+
<label class="font_normal_body">小  组</label>
|
87
|
+
<v-select :value.sync="model.f_team" :value-single="true" v-model="model.f_team"
|
88
|
+
:options='$parent.$parent.teams' placeholder='小组'
|
89
|
+
@change="$parent.$parent.teamChange" class="select_list select" style="width: 60%"
|
90
|
+
close-on-select>
|
91
|
+
</v-select>
|
92
|
+
</div>
|
69
93
|
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
70
94
|
<!--<label class="font_normal_body">安检起始</label>-->
|
71
95
|
<!--<datepicker-->
|
@@ -92,6 +116,7 @@
|
|
92
116
|
progress="safeGetExportProgress"
|
93
117
|
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
|
94
118
|
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
119
|
+
<button type="button" class="button_search button_spacing" @click="$parent.$parent.cleamsg()">清空</button>
|
95
120
|
<!--<div class="button_spacing"-->
|
96
121
|
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
97
122
|
<!--@click="$parent.$parent.hidden()">-->
|
@@ -185,6 +210,9 @@ export default {
|
|
185
210
|
}, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
|
186
211
|
model.f_filialeids = '('+this.$login.f.orgid+')'
|
187
212
|
return {
|
213
|
+
quyus: [{label: '请选择', value: ''}, ...this.$appdata.getParam('区域')],
|
214
|
+
bumens: [{label: '请选择', value: ''}],
|
215
|
+
teams: [{label: '请选择', value: ''}],
|
188
216
|
checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
|
189
217
|
excelHeaders:{
|
190
218
|
'f_checker': '安检员',
|
@@ -228,6 +256,36 @@ export default {
|
|
228
256
|
}
|
229
257
|
},
|
230
258
|
methods: {
|
259
|
+
cleamsg(){
|
260
|
+
this.$refs.paged.$refs.cri.model= {}
|
261
|
+
},
|
262
|
+
bumenChange(val) {
|
263
|
+
if (val) {
|
264
|
+
this.teams = this.$appdata.getParam(`工单-` + val) ? [{
|
265
|
+
label: '请选择',
|
266
|
+
value: ''
|
267
|
+
}, ...this.$appdata.getParam(`工单-` + val)] : [{label: '请选择', value: ''}]
|
268
|
+
}else {
|
269
|
+
this.checkers = this.allCheckers
|
270
|
+
}
|
271
|
+
},
|
272
|
+
teamChange(val) {
|
273
|
+
if (val) {
|
274
|
+
this.checkers = this.$appdata.getParam(val) ? [...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
|
275
|
+
}else {
|
276
|
+
this.checkers = this.allCheckers
|
277
|
+
}
|
278
|
+
},
|
279
|
+
quyuChange(val) {
|
280
|
+
if (val) {
|
281
|
+
this.bumens = this.$appdata.getParam(val) ? [{
|
282
|
+
label: '请选择',
|
283
|
+
value: ''
|
284
|
+
}, ...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
|
285
|
+
}else {
|
286
|
+
this.checkers = this.allCheckers
|
287
|
+
}
|
288
|
+
},
|
231
289
|
hidden() {
|
232
290
|
this.criteriaShow = !this.criteriaShow
|
233
291
|
},
|
@@ -0,0 +1,212 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto">
|
3
|
+
|
4
|
+
<div class="auto">
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
6
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
7
|
+
<div partial>
|
8
|
+
<div class="row app-row">
|
9
|
+
<div class="col-xs-4">
|
10
|
+
<img src="../../../assets/档案信息.png" style="width: 20px;margin-bottom: 5px" alt="">
|
11
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
12
|
+
</div>
|
13
|
+
<div class="col-xs-8" >
|
14
|
+
<input id="f_plan_name" class="search_input input-font"
|
15
|
+
v-model="model.f_plan_name" condition="f_plan_name like '%{}%'" />
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="row text-center" style="margin-top: 20px;">
|
19
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
|
20
|
+
</div>
|
21
|
+
<!--<div class="row app-btn">-->
|
22
|
+
<!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
|
23
|
+
<!--</div>-->
|
24
|
+
<div style="height:30px;"></div>
|
25
|
+
</div>
|
26
|
+
</criteria>
|
27
|
+
<list :model="model" partial='list'>
|
28
|
+
<div partial>
|
29
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
30
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
31
|
+
<div class="panel-body panel-self">
|
32
|
+
<div class="row">
|
33
|
+
<p class="panel-title col-xs-4 text-left font">计划名称</p>
|
34
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_name }}</p>
|
35
|
+
</div>
|
36
|
+
<div class="row">
|
37
|
+
<p class="panel-title col-xs-4 text-left font">计划时间</p>
|
38
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}/{{row.f_plan_month}}</p>
|
39
|
+
</div>
|
40
|
+
<!--<div class="row">-->
|
41
|
+
<!--<p class="panel-title col-xs-4 text-left font">生成人员</p>-->
|
42
|
+
<!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_create_operator }}/{{row.f_plan_month}}</p>-->
|
43
|
+
<!--</div>-->
|
44
|
+
<!--<div class="row">-->
|
45
|
+
<!--<p class="panel-title col-xs-4 text-left font">下发人员</p>-->
|
46
|
+
<!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_send_operator }}/{{row.f_plan_month}}</p>-->
|
47
|
+
<!--</div>-->
|
48
|
+
<div class="row text-right" >
|
49
|
+
<button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.downloadHand(row)' v-if="$parent.$parent.$parent.isDown(row)">下载</button>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</list>
|
57
|
+
</criteria-paged>
|
58
|
+
</div>
|
59
|
+
<!--<div class="row text-center" style="margin-top: 20px;">-->
|
60
|
+
<!--<button type="' 正在进行共享计划下载,请确认!' btn-lg btn-font btn-color" style="width: 45%;" @click="downHand()">共享计划下载</button>-->
|
61
|
+
<!--<!–<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="database()">数据库导出</button>–>-->
|
62
|
+
<!--</div>-->
|
63
|
+
<!-- <div class="auto" style="padding-top: 20px;" v-if='show'>
|
64
|
+
<p class="text-warning" style="padding: 0 10px">正在下载抄表单...</p>
|
65
|
+
</div> -->
|
66
|
+
<!-- <hand-info v-if="show" :data="handinfo"></hand-info> -->
|
67
|
+
<!-- <div class="auto" v-if="!show">
|
68
|
+
<p class="text-warning" style="padding: 0 10px">
|
69
|
+
暂无可操作的抄表信息
|
70
|
+
</p>
|
71
|
+
</div> -->
|
72
|
+
</div>
|
73
|
+
<!-- <back-page :need-back='true' @flag="$back()"></back-page>-->
|
74
|
+
</template>
|
75
|
+
<script>
|
76
|
+
import { PagedList } from 'vue-client'
|
77
|
+
import co from 'co'
|
78
|
+
import Vue from 'vue'
|
79
|
+
// const downloadHand = function * (self, row) {
|
80
|
+
//
|
81
|
+
// }
|
82
|
+
|
83
|
+
export default {
|
84
|
+
title: '共享计划下载',
|
85
|
+
data () {
|
86
|
+
return {
|
87
|
+
model: new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/getShareCheckPlan`,5,{f_fengongsi:`'${Vue.user.orgid}'`,f_fengongsi_name:`'${Vue.user.orgs.split('.').pop()}'`}),
|
88
|
+
checkPlanInfo: [],
|
89
|
+
localcheckPlanInfo:[]
|
90
|
+
}
|
91
|
+
},
|
92
|
+
ready () {
|
93
|
+
|
94
|
+
this.getlocalCheckPlan()
|
95
|
+
},
|
96
|
+
methods: {
|
97
|
+
reload() {
|
98
|
+
//tag
|
99
|
+
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
100
|
+
},
|
101
|
+
getlocalCheckPlan() {
|
102
|
+
let value = this.$androidUtil.path({alias: 'getLocalCheckPlan', data: {}})
|
103
|
+
//tag
|
104
|
+
this.localcheckPlanInfo = value.data
|
105
|
+
// this.$androidUtil.path({alias: 'getLocalCheckPlan', data:{}}).then((value)=>{
|
106
|
+
// //tag
|
107
|
+
// this.localcheckPlanInfo = value.data
|
108
|
+
// })
|
109
|
+
},
|
110
|
+
downloadHand(row) {
|
111
|
+
HostApp.__this__ =this
|
112
|
+
this.$showMessage('正在进行共享计划下载,请确认!', ['confirm', 'cancel']).then((res) => {
|
113
|
+
if (res === 'confirm') {
|
114
|
+
HostApp.logicWithHint({
|
115
|
+
'logic': 'DownCheckPlanInfo',
|
116
|
+
'callback': 'javascript: HostApp.__this__.downloadHandCallback()',
|
117
|
+
'data': {id: row.id},
|
118
|
+
'backresult': 1
|
119
|
+
})
|
120
|
+
}
|
121
|
+
})
|
122
|
+
},
|
123
|
+
downloadHandCallback(jo) {
|
124
|
+
// 安卓端
|
125
|
+
//tag
|
126
|
+
if (jo.state == 'ok') {
|
127
|
+
let result = JSON.parse(jo.result)
|
128
|
+
if (result.state == 0) {
|
129
|
+
if (result.data.length > 0) {
|
130
|
+
this.getlocalCheckPlan()
|
131
|
+
this.$showMessage('下载成功,您可前往计划导航进行查看!')
|
132
|
+
} else {
|
133
|
+
this.$showMessage('无可下载的共享计划!')
|
134
|
+
}
|
135
|
+
} else {
|
136
|
+
this.$showMessage('下载失败!')
|
137
|
+
}
|
138
|
+
} else {
|
139
|
+
this.$showMessage('下载失败,请重试!')
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
computed: {
|
144
|
+
isDown () {
|
145
|
+
return function (row) {
|
146
|
+
for (let info of this.localcheckPlanInfo) {
|
147
|
+
if (info.id == row.id) {
|
148
|
+
return false
|
149
|
+
}
|
150
|
+
}
|
151
|
+
return true
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
</script>
|
157
|
+
<style>
|
158
|
+
.bg {
|
159
|
+
background-color: blue;
|
160
|
+
height: 1px;
|
161
|
+
border: 0;
|
162
|
+
}
|
163
|
+
.app-row {
|
164
|
+
background-color: white;
|
165
|
+
padding: 10px 10px 0 10px;
|
166
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
167
|
+
}
|
168
|
+
.search_input {
|
169
|
+
border: 0;
|
170
|
+
outline: none;
|
171
|
+
}
|
172
|
+
.font{
|
173
|
+
font: 15px PingFang-SC-Medium;
|
174
|
+
color: #666666;
|
175
|
+
}
|
176
|
+
.input-font{
|
177
|
+
font: 15px PingFang-SC-Medium;
|
178
|
+
color: #333333;
|
179
|
+
}
|
180
|
+
.btn-font{
|
181
|
+
font:600 16px PingFang-SC-Bold;
|
182
|
+
color: #499EDF;
|
183
|
+
}
|
184
|
+
.btn-color{
|
185
|
+
background-color: #FFFFFF;
|
186
|
+
border-radius: 10px ;
|
187
|
+
border: 1px solid #499EDF;
|
188
|
+
}
|
189
|
+
.app-text {
|
190
|
+
font-size: 12px;
|
191
|
+
}
|
192
|
+
.panel-self{
|
193
|
+
border-radius: 10px;
|
194
|
+
border:1px solid #499EDF;
|
195
|
+
background-color: #F8F8F8;
|
196
|
+
}
|
197
|
+
.yybtn-color{
|
198
|
+
background-color:#499edf;
|
199
|
+
border-radius: 4px ;
|
200
|
+
border: 1px solid #499EDF;
|
201
|
+
color: #FFFFFF;
|
202
|
+
font: 14px PingFang-SC-Bold;
|
203
|
+
}
|
204
|
+
.qxbtn-color{
|
205
|
+
background-color: #FFFFFF;
|
206
|
+
border-radius: 4px ;
|
207
|
+
color: #499edf;
|
208
|
+
font: 14px PingFang-SC-Bold;
|
209
|
+
border: 1px solid #499EDF;
|
210
|
+
}
|
211
|
+
|
212
|
+
</style>
|
@@ -1,12 +1,13 @@
|
|
1
|
-
// 分公司特殊组件页面注册
|
2
|
-
import Vue from "vue";
|
3
|
-
|
4
|
-
//手机特殊目录注册到该文件中
|
5
|
-
let specialComp = {
|
6
|
-
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
|
7
|
-
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
// 分公司特殊组件页面注册
|
2
|
+
import Vue from "vue";
|
3
|
+
|
4
|
+
//手机特殊目录注册到该文件中
|
5
|
+
let specialComp = {
|
6
|
+
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
|
7
|
+
'check-plan-down': (resolve) => { require(['./android/CheckPlanDown'], resolve) }
|
8
|
+
}
|
9
|
+
exports.specialComp = specialComp
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
@@ -223,7 +223,7 @@
|
|
223
223
|
export default {
|
224
224
|
title: '安检员B',
|
225
225
|
data () {
|
226
|
-
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int) desc,f_room"',f_check_type:'this.f_check_type[0]',
|
226
|
+
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int) desc,f_unit,CAST(floor1 as int) desc,f_room"',f_check_type:'this.f_check_type[0]',
|
227
227
|
f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
|
228
228
|
model.f_sign = ['']
|
229
229
|
model.f_user_type = ''
|