safecheck-client 3.0.32-36 → 3.0.32-38
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 +133 -133
- package/src/App.vue +2 -2
- package/src/components/map/checkScreen.vue +880 -880
- package/src/filiale/Util.js +332 -332
- package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +648 -648
- package/src/filiale/ankangyihua/android/CurrentCreate.vue +1039 -1039
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1958 -1958
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2851 -2851
- package/src/filiale/fugou/pc/CheckBook.vue +301 -301
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -66
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -651
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -1081
- package/src/filiale/fugou/pc/PlanManage.vue +5 -17
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/kelai/android/SafecheckDevices.vue +1232 -1232
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -1680
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2942 -2942
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +4 -4
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +135 -135
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +869 -869
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +198 -198
- package/src/main.js +1 -1
@@ -1,135 +1,135 @@
|
|
1
|
-
<template>
|
2
|
-
<div id='app' class="basic-main" style="height: 100%">
|
3
|
-
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' class="search_area" v-ref:criteria>
|
5
|
-
<div novalidate class="form-inline auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-sm-4 form-group">
|
8
|
-
<role-selector-safe
|
9
|
-
role-name="安检员"
|
10
|
-
role-lable="安 检 员"
|
11
|
-
@re-res="$parent.$parent.getRes"
|
12
|
-
:value.sync="model.f_checker_id"
|
13
|
-
v-model="model.f_checker_id"
|
14
|
-
condition="f_checker_name = '{}'">
|
15
|
-
</role-selector-safe>
|
16
|
-
</div>
|
17
|
-
<div class="col-sm-2 form-group">
|
18
|
-
<label for="startDate" class="font_normal_body">开始日期:</label>
|
19
|
-
<datepicker id="startDate" placeholder="开始日期"
|
20
|
-
v-model="model.startDate"
|
21
|
-
:value.sync="model.startDate"
|
22
|
-
style="width: 60%;"
|
23
|
-
:disabled-days-of-Week="[]"
|
24
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
25
|
-
:show-reset-button="reset">
|
26
|
-
</datepicker>
|
27
|
-
</div>
|
28
|
-
<div class="form-group col-sm-2">
|
29
|
-
<label class="font_normal_body">部门</label>
|
30
|
-
<v-select :value.sync="model.f_department_name" v-model='model.f_department_name'
|
31
|
-
:value-single="true" style="width: 60%"
|
32
|
-
class="select_list select"
|
33
|
-
:options='$parent.$parent.department_names' placeholder='部门'
|
34
|
-
close-on-select
|
35
|
-
condition="f_department_name = '{}'"></v-select>
|
36
|
-
</div>
|
37
|
-
<div class="col-sm-2 form-group">
|
38
|
-
<label for="endDate" class="font_normal_body">结束日期:</label>
|
39
|
-
<datepicker id="endDate" placeholder="结束日期"
|
40
|
-
v-model="model.endDate"
|
41
|
-
:value.sync="model.endDate"
|
42
|
-
:disabled-days-of-Week="[]"
|
43
|
-
style="width: 60%;"
|
44
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
45
|
-
:show-reset-button="reset">
|
46
|
-
</datepicker>
|
47
|
-
</div>
|
48
|
-
<div class="col-sm-3 form-group" style="margin-top: 8px">
|
49
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
50
|
-
<report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
|
51
|
-
<report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
</criteria>
|
56
|
-
<div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
|
57
|
-
<table class='tableprint' style="margin: 0px auto">
|
58
|
-
<thead>
|
59
|
-
<tr>
|
60
|
-
<th colspan='5' style="font-weight: normal; text-align: left;">
|
61
|
-
<h3 style="text-align: center">安检数据报表</h3>
|
62
|
-
</th>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<th colspan='5' style="font-weight: normal; text-align: center;">
|
66
|
-
开始时间:{{model.model.startDate}}
|
67
|
-
结束时间:{{ model.model.endDate }}
|
68
|
-
</th>
|
69
|
-
</tr>
|
70
|
-
</thead>
|
71
|
-
<tr>
|
72
|
-
<th colspan='5' style="font-weight: normal;">
|
73
|
-
{{{ model.data.substring(26,model.data.length-8) }}}
|
74
|
-
</th>
|
75
|
-
</tr>
|
76
|
-
</table>
|
77
|
-
</div>
|
78
|
-
</criteria-paged>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
</template>
|
82
|
-
|
83
|
-
<script>
|
84
|
-
import {DataModel, HttpResetClass} from 'vue-client'
|
85
|
-
import * as Util from "../../../components/Util";
|
86
|
-
|
87
|
-
export default {
|
88
|
-
title: '统计报表',
|
89
|
-
data() {
|
90
|
-
let model = new DataModel('/rs/safecheck/report/CheckPlanCountChartArea', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_filialeid: 'this.f_filialeid'})
|
91
|
-
model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
92
|
-
return {
|
93
|
-
filialeNameStr: '',
|
94
|
-
filialeCodeStr: '',
|
95
|
-
department_names:[{label:'全部',value:''}],
|
96
|
-
userid: this.$login.f.id,
|
97
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
98
|
-
model: model
|
99
|
-
}
|
100
|
-
},
|
101
|
-
methods: {
|
102
|
-
getRes(obj) {
|
103
|
-
this.model.f_filialeid = this.$login.convertToIn(obj.resids);
|
104
|
-
},
|
105
|
-
search(args){
|
106
|
-
if (args.model.endDate){
|
107
|
-
args.condition += ` and tcp.f_offsite_time <= '${args.model.endDate}'`
|
108
|
-
}
|
109
|
-
if (args.model.startDate){
|
110
|
-
args.condition += ` and tcp.f_offsite_time >= '${args.model.startDate}'`
|
111
|
-
}
|
112
|
-
if (this.model.f_filialeid){
|
113
|
-
args.condition += ` and o.id in ${this.model.f_filialeid}`
|
114
|
-
}
|
115
|
-
this.model.search(args.condition,args.model)
|
116
|
-
}
|
117
|
-
},
|
118
|
-
ready() {
|
119
|
-
this.$refs.paged.$refs.criteria.model.startDate = Util.toStandardDateString()+' 00:00:00'
|
120
|
-
this.$refs.paged.$refs.criteria.model.endDate = Util.toStandardDateString()+' 23:59:59'
|
121
|
-
new HttpResetClass().load('post','/rs/sql/searchGroupByArea',{data:{condition:"1=1"}}).then(response=>{
|
122
|
-
response.data.forEach(item=>{
|
123
|
-
this.department_names.push({label:item.f_residential_area,value:item.f_residential_area})
|
124
|
-
})
|
125
|
-
}).catch(error=>{
|
126
|
-
|
127
|
-
})
|
128
|
-
},
|
129
|
-
computed: {
|
130
|
-
selected() {
|
131
|
-
return this.$refs.grid.selected
|
132
|
-
},
|
133
|
-
}
|
134
|
-
}
|
135
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div id='app' class="basic-main" style="height: 100%">
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' class="search_area" v-ref:criteria>
|
5
|
+
<div novalidate class="form-inline auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-4 form-group">
|
8
|
+
<role-selector-safe
|
9
|
+
role-name="安检员"
|
10
|
+
role-lable="安 检 员"
|
11
|
+
@re-res="$parent.$parent.getRes"
|
12
|
+
:value.sync="model.f_checker_id"
|
13
|
+
v-model="model.f_checker_id"
|
14
|
+
condition="f_checker_name = '{}'">
|
15
|
+
</role-selector-safe>
|
16
|
+
</div>
|
17
|
+
<div class="col-sm-2 form-group">
|
18
|
+
<label for="startDate" class="font_normal_body">开始日期:</label>
|
19
|
+
<datepicker id="startDate" placeholder="开始日期"
|
20
|
+
v-model="model.startDate"
|
21
|
+
:value.sync="model.startDate"
|
22
|
+
style="width: 60%;"
|
23
|
+
:disabled-days-of-Week="[]"
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
25
|
+
:show-reset-button="reset">
|
26
|
+
</datepicker>
|
27
|
+
</div>
|
28
|
+
<div class="form-group col-sm-2">
|
29
|
+
<label class="font_normal_body">部门</label>
|
30
|
+
<v-select :value.sync="model.f_department_name" v-model='model.f_department_name'
|
31
|
+
:value-single="true" style="width: 60%"
|
32
|
+
class="select_list select"
|
33
|
+
:options='$parent.$parent.department_names' placeholder='部门'
|
34
|
+
close-on-select
|
35
|
+
condition="f_department_name = '{}'"></v-select>
|
36
|
+
</div>
|
37
|
+
<div class="col-sm-2 form-group">
|
38
|
+
<label for="endDate" class="font_normal_body">结束日期:</label>
|
39
|
+
<datepicker id="endDate" placeholder="结束日期"
|
40
|
+
v-model="model.endDate"
|
41
|
+
:value.sync="model.endDate"
|
42
|
+
:disabled-days-of-Week="[]"
|
43
|
+
style="width: 60%;"
|
44
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
45
|
+
:show-reset-button="reset">
|
46
|
+
</datepicker>
|
47
|
+
</div>
|
48
|
+
<div class="col-sm-3 form-group" style="margin-top: 8px">
|
49
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
50
|
+
<report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
|
51
|
+
<report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</criteria>
|
56
|
+
<div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
|
57
|
+
<table class='tableprint' style="margin: 0px auto">
|
58
|
+
<thead>
|
59
|
+
<tr>
|
60
|
+
<th colspan='5' style="font-weight: normal; text-align: left;">
|
61
|
+
<h3 style="text-align: center">安检数据报表</h3>
|
62
|
+
</th>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<th colspan='5' style="font-weight: normal; text-align: center;">
|
66
|
+
开始时间:{{model.model.startDate}}
|
67
|
+
结束时间:{{ model.model.endDate }}
|
68
|
+
</th>
|
69
|
+
</tr>
|
70
|
+
</thead>
|
71
|
+
<tr>
|
72
|
+
<th colspan='5' style="font-weight: normal;">
|
73
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
74
|
+
</th>
|
75
|
+
</tr>
|
76
|
+
</table>
|
77
|
+
</div>
|
78
|
+
</criteria-paged>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</template>
|
82
|
+
|
83
|
+
<script>
|
84
|
+
import {DataModel, HttpResetClass} from 'vue-client'
|
85
|
+
import * as Util from "../../../components/Util";
|
86
|
+
|
87
|
+
export default {
|
88
|
+
title: '统计报表',
|
89
|
+
data() {
|
90
|
+
let model = new DataModel('/rs/safecheck/report/CheckPlanCountChartArea', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_filialeid: 'this.f_filialeid'})
|
91
|
+
model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
92
|
+
return {
|
93
|
+
filialeNameStr: '',
|
94
|
+
filialeCodeStr: '',
|
95
|
+
department_names:[{label:'全部',value:''}],
|
96
|
+
userid: this.$login.f.id,
|
97
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
98
|
+
model: model
|
99
|
+
}
|
100
|
+
},
|
101
|
+
methods: {
|
102
|
+
getRes(obj) {
|
103
|
+
this.model.f_filialeid = this.$login.convertToIn(obj.resids);
|
104
|
+
},
|
105
|
+
search(args){
|
106
|
+
if (args.model.endDate){
|
107
|
+
args.condition += ` and tcp.f_offsite_time <= '${args.model.endDate}'`
|
108
|
+
}
|
109
|
+
if (args.model.startDate){
|
110
|
+
args.condition += ` and tcp.f_offsite_time >= '${args.model.startDate}'`
|
111
|
+
}
|
112
|
+
if (this.model.f_filialeid){
|
113
|
+
args.condition += ` and o.id in ${this.model.f_filialeid}`
|
114
|
+
}
|
115
|
+
this.model.search(args.condition,args.model)
|
116
|
+
}
|
117
|
+
},
|
118
|
+
ready() {
|
119
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.toStandardDateString()+' 00:00:00'
|
120
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.toStandardDateString()+' 23:59:59'
|
121
|
+
new HttpResetClass().load('post','/rs/sql/searchGroupByArea',{data:{condition:"1=1"}}).then(response=>{
|
122
|
+
response.data.forEach(item=>{
|
123
|
+
this.department_names.push({label:item.f_residential_area,value:item.f_residential_area})
|
124
|
+
})
|
125
|
+
}).catch(error=>{
|
126
|
+
|
127
|
+
})
|
128
|
+
},
|
129
|
+
computed: {
|
130
|
+
selected() {
|
131
|
+
return this.$refs.grid.selected
|
132
|
+
},
|
133
|
+
}
|
134
|
+
}
|
135
|
+
</script>
|