safecheck-client 3.0.33-66 → 3.0.33-69

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.
@@ -1,137 +1,137 @@
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 partial>
7
- <div class="row">
8
- <div class="col-sm-4 form-group">
9
- <label class="font_normal_body">用户名称:</label>
10
- <input style="width: 60%" class="input_search" v-model="model.f_user_name"
11
- placeholder="请输入用户名称(可模糊查询)" condition="f_user_name like '%{}%'">
12
- </div>
13
- <div class="col-sm-4 form-group">
14
- <label class="font_normal_body">安检年份:</label>
15
- <input style="width: 60%" class="input_search" v-model="model.year">
16
- </div>
17
- <div style="float: right">
18
- <export-excel-safe :data="$parent.$parent.searchData"
19
- :field="$parent.$parent.excelHeaders"
20
- progress="safeGetExportProgress"
21
- sqlurl="rs/logic/SafeExportExcel" sql-name="communityTypeDetailG"
22
- template-name='工商情况明细表' :choose-col="true"></export-excel-safe>
23
- </div>
24
- <!-- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"-->
25
- <!-- :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"-->
26
- <!-- :titletable="'工商情况明细表'" :starthead="$parent.$parent.getstart"-->
27
- <!-- ></print-data-safe>-->
28
- <button class="button_spacing button_search" @click="search()">查询</button>
29
- </div>
30
- </div>
31
- </criteria>
32
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
33
- <template partial='head'>
34
- <tr>
35
- <th rowspan="2">序号</th>
36
- <th rowspan="2">用户名称</th>
37
- <th colspan="2">1季度完成情况</th>
38
- <th colspan="2">2季度完成情况</th>
39
- <th colspan="2">3季度完成情况</th>
40
- <th colspan="2">4季度完成情况</th>
41
- </tr>
42
- <tr>
43
- <th>已安检</th>
44
- <th>未安检原因</th>
45
- <th>已安检</th>
46
- <th>未安检原因</th>
47
- <th>已安检</th>
48
- <th>未安检原因</th>
49
- <th>已安检</th>
50
- <th>未安检原因</th>
51
- </tr>
52
- </template>
53
- <template partial='body'>
54
- <td style="text-align: center">{{ $index + 1 }}</td>
55
- <td style="text-align: center">{{ row.f_user_name }}</td>
56
- <td style="text-align: center">{{ row.m1_safe }}</td>
57
- <td style="text-align: center">{{ row.m1_remarks }}</td>
58
- <td style="text-align: center">{{ row.m2_safe }}</td>
59
- <td style="text-align: center">{{ row.m2_remarks }}</td>
60
- <td style="text-align: center">{{ row.m3_safe }}</td>
61
- <td style="text-align: center">{{ row.m3_remarks }}</td>
62
- <td style="text-align: center">{{ row.m4_safe }}</td>
63
- <td style="text-align: center">{{ row.m4_remarks }}</td>
64
- </template>
65
- </data-grid>
66
- </criteria-paged>
67
- </div>
68
- </div>
69
- </template>
70
-
71
- <script>
72
- import {PagedList} from "vue-client";
73
-
74
- export default {
75
- name: "communityTypeDetailG",
76
- title: "工商情况明细表",
77
- data() {
78
- let model = new PagedList("/rs/sql/communityTypeDetailG", 20, {year: 'this.year'})
79
- model.year = ''
80
- return {
81
- model: model,
82
- resids: {},
83
- print_model:{},
84
- searchData: {
85
- condition: "1=1",
86
- year: null
87
- },
88
- excelHeaders: {
89
- 'f_user_name': '用户名称',
90
- 'm1_safe': '1季度完成安检',
91
- 'm1_remarks': '1季度未安检原因',
92
- 'm2_safe': '2季度完成安检',
93
- 'm2_remarks': '2季度未安检原因',
94
- 'm3_safe': '3季度完成安检',
95
- 'm3_remarks': '3季度未安检原因',
96
- 'm4_safe' : '4季度完成安检',
97
- 'm4_remarks' : '4季度未安检原因'
98
- },
99
- printshow: false,
100
- }
101
- },
102
- ready() {
103
- this.$refs.paged.$refs.criteria.model.year = new Date().getFullYear()
104
- // this.model.search('1=1')
105
- },
106
- methods: {
107
- selfSearch(args) {
108
- this.model.year = args.model.year
109
- args.condition += ` and uf.f_user_type = '非民用' `
110
- this.searchData.condition = args.condition
111
- this.model.search(args.condition, args.model, args.condValue)
112
- this.print_model.totalPage = 0
113
- },
114
- getRes(obj) {
115
- //tag
116
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
117
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
118
- },
119
- // 打印
120
- stamp() {
121
- this.printshow = true
122
- },
123
- close() {
124
- this.printshow = false
125
- }
126
- },
127
- computed: {
128
- getstart() {
129
- return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
130
- },
131
- }
132
- }
133
- </script>
134
-
135
- <style scoped>
136
-
137
- </style>
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 partial>
7
+ <div class="row">
8
+ <div class="col-sm-4 form-group">
9
+ <label class="font_normal_body">用户名称:</label>
10
+ <input style="width: 60%" class="input_search" v-model="model.f_user_name"
11
+ placeholder="请输入用户名称(可模糊查询)" condition="f_user_name like '%{}%'">
12
+ </div>
13
+ <div class="col-sm-4 form-group">
14
+ <label class="font_normal_body">安检年份:</label>
15
+ <input style="width: 60%" class="input_search" v-model="model.year">
16
+ </div>
17
+ <div style="float: right">
18
+ <export-excel-safe :data="$parent.$parent.searchData"
19
+ :field="$parent.$parent.excelHeaders"
20
+ progress="safeGetExportProgress"
21
+ sqlurl="rs/logic/SafeExportExcel" sql-name="communityTypeDetailG"
22
+ template-name='工商情况明细表' :choose-col="true"></export-excel-safe>
23
+ </div>
24
+ <!-- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"-->
25
+ <!-- :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"-->
26
+ <!-- :titletable="'工商情况明细表'" :starthead="$parent.$parent.getstart"-->
27
+ <!-- ></print-data-safe>-->
28
+ <button class="button_spacing button_search" @click="search()">查询</button>
29
+ </div>
30
+ </div>
31
+ </criteria>
32
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
33
+ <template partial='head'>
34
+ <tr>
35
+ <th rowspan="2">序号</th>
36
+ <th rowspan="2">用户名称</th>
37
+ <th colspan="2">1季度完成情况</th>
38
+ <th colspan="2">2季度完成情况</th>
39
+ <th colspan="2">3季度完成情况</th>
40
+ <th colspan="2">4季度完成情况</th>
41
+ </tr>
42
+ <tr>
43
+ <th>已安检</th>
44
+ <th>未安检原因</th>
45
+ <th>已安检</th>
46
+ <th>未安检原因</th>
47
+ <th>已安检</th>
48
+ <th>未安检原因</th>
49
+ <th>已安检</th>
50
+ <th>未安检原因</th>
51
+ </tr>
52
+ </template>
53
+ <template partial='body'>
54
+ <td style="text-align: center">{{ $index + 1 }}</td>
55
+ <td style="text-align: center">{{ row.f_user_name }}</td>
56
+ <td style="text-align: center">{{ row.m1_safe }}</td>
57
+ <td style="text-align: center">{{ row.m1_remarks }}</td>
58
+ <td style="text-align: center">{{ row.m2_safe }}</td>
59
+ <td style="text-align: center">{{ row.m2_remarks }}</td>
60
+ <td style="text-align: center">{{ row.m3_safe }}</td>
61
+ <td style="text-align: center">{{ row.m3_remarks }}</td>
62
+ <td style="text-align: center">{{ row.m4_safe }}</td>
63
+ <td style="text-align: center">{{ row.m4_remarks }}</td>
64
+ </template>
65
+ </data-grid>
66
+ </criteria-paged>
67
+ </div>
68
+ </div>
69
+ </template>
70
+
71
+ <script>
72
+ import {PagedList} from "vue-client";
73
+
74
+ export default {
75
+ name: "communityTypeDetailG",
76
+ title: "工商情况明细表",
77
+ data() {
78
+ let model = new PagedList("/rs/sql/communityTypeDetailG", 20, {year: 'this.year'})
79
+ model.year = ''
80
+ return {
81
+ model: model,
82
+ resids: {},
83
+ print_model:{},
84
+ searchData: {
85
+ condition: "1=1",
86
+ year: null
87
+ },
88
+ excelHeaders: {
89
+ 'f_user_name': '用户名称',
90
+ 'm1_safe': '1季度完成安检',
91
+ 'm1_remarks': '1季度未安检原因',
92
+ 'm2_safe': '2季度完成安检',
93
+ 'm2_remarks': '2季度未安检原因',
94
+ 'm3_safe': '3季度完成安检',
95
+ 'm3_remarks': '3季度未安检原因',
96
+ 'm4_safe' : '4季度完成安检',
97
+ 'm4_remarks' : '4季度未安检原因'
98
+ },
99
+ printshow: false,
100
+ }
101
+ },
102
+ ready() {
103
+ this.$refs.paged.$refs.criteria.model.year = new Date().getFullYear()
104
+ // this.model.search('1=1')
105
+ },
106
+ methods: {
107
+ selfSearch(args) {
108
+ this.model.year = args.model.year
109
+ args.condition += ` and uf.f_user_type = '非民用' `
110
+ this.searchData.condition = args.condition
111
+ this.model.search(args.condition, args.model, args.condValue)
112
+ this.print_model.totalPage = 0
113
+ },
114
+ getRes(obj) {
115
+ //tag
116
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
117
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
118
+ },
119
+ // 打印
120
+ stamp() {
121
+ this.printshow = true
122
+ },
123
+ close() {
124
+ this.printshow = false
125
+ }
126
+ },
127
+ computed: {
128
+ getstart() {
129
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
130
+ },
131
+ }
132
+ }
133
+ </script>
134
+
135
+ <style scoped>
136
+
137
+ </style>