safecheck-client 3.0.30-26 → 3.0.30-28

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,237 +1,238 @@
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="form-group col-sm-4">
9
- <label class="font_normal_body">开始时间:</label>
10
- <datepicker
11
- placeholder='请选择'
12
- style="width:60%"
13
- :select-year="true"
14
- :disabled-days-of-week="[]"
15
- :format="'yyyy'"
16
- :show-rest-button="reset"
17
- :value.sync="model.start_time"
18
- v-model="model.start_time"
19
- condition="tcp.f_upload_date >= '{}-01-01 00:00:00'">
20
- </datepicker>
21
- </div>
22
- <div class="form-group col-sm-4">
23
- <label class="font_normal_body">结束时间:</label>
24
- <datepicker
25
- placeholder='请选择'
26
- :select-year="true"
27
- :disabled-days-of-week="[]"
28
- style="width:60%"
29
- :format="'yyyy'"
30
- :show-rest-button="reset"
31
- :value.sync="model.end_time"
32
- v-model="model.end_time"
33
- condition="tcp.f_upload_date <= '{}-12-31 23:59:59'">
34
- </datepicker>
35
- </div>
36
- <div class="col-sm-4 form-group">
37
- <label class="font_normal_body">小区名称:</label>
38
- <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
39
- </div>
40
- <div class="col-sm-4 form-group" style="margin: 0">
41
- <role-selector-safe
42
- role-name="安检员"
43
- :resobjprop.sync="$parent.$parent.resids"
44
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
45
- @re-res="$parent.$parent.getRes"
46
- :value.sync="model.f_checker_id"
47
- v-model="model.f_checker_id"
48
- condition="tcp.f_checker_name = '{}'">
49
- </role-selector-safe>
50
- </div>
51
- <div style="float: right">
52
- <export-excel-safe :data="$parent.$parent.searchData"
53
- :field="$parent.$parent.excelHeaders"
54
- progress="safeGetExportProgress"
55
- sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsMonth" template-name='安检报表月' :choose-col="true"></export-excel-safe>
56
- </div>
57
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
- :field="$parent.$parent.excelHeaders"
59
- :defaultfield="$parent.$parent.defaultPrint"
60
- titletable="安检报表月" :starthead="$parent.$parent.getstart"
61
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
62
- <button class="button_spacing button_search" @click="search()">查询</button>
63
- </div>
64
- </div>
65
- </criteria>
66
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
- <template partial='head'>
68
- <tr>
69
- <th>
70
- <nobr>序号</nobr>
71
- </th>
72
- <th>
73
- <nobr>小区名称</nobr>
74
- </th>
75
- <th>
76
- <nobr>1月</nobr>
77
- </th>
78
- <th>
79
- <nobr>2月</nobr>
80
- </th>
81
- <th>
82
- <nobr>3月</nobr>
83
- </th>
84
- <th>
85
- <nobr>4月</nobr>
86
- </th>
87
- <th>
88
- <nobr>5月</nobr>
89
- </th>
90
- <th>
91
- <nobr>6月</nobr>
92
- </th>
93
- <th>
94
- <nobr>7月</nobr>
95
- </th>
96
- <th>
97
- <nobr>8月</nobr>
98
- </th>
99
- <th>
100
- <nobr>9月</nobr>
101
- </th>
102
- <th>
103
- <nobr>10月</nobr>
104
- </th>
105
- <th>
106
- <nobr>11月</nobr>
107
- </th>
108
- <th>
109
- <nobr>12月</nobr>
110
- </th>
111
- <th>
112
- <nobr>小计</nobr>
113
- </th>
114
- </tr>
115
- </template>
116
- <template partial='body'>
117
-
118
- <td style="text-align: center">{{ $index + 1 }}</td>
119
- <td style="text-align: center">{{ row.f_residential_area }}</td>
120
- <td style="text-align: center">{{ row.month1 }}</td>
121
- <td style="text-align: center">{{ row.month2 }}</td>
122
- <td style="text-align: center">{{ row.month3 }}</td>
123
- <td style="text-align: center">{{ row.month4 }}</td>
124
- <td style="text-align: center">{{ row.month5 }}</td>
125
- <td style="text-align: center">{{ row.month6 }}</td>
126
- <td style="text-align: center">{{ row.month7 }}</td>
127
- <td style="text-align: center">{{ row.month8 }}</td>
128
- <td style="text-align: center">{{ row.month9 }}</td>
129
- <td style="text-align: center">{{ row.month10 }}</td>
130
- <td style="text-align: center">{{ row.month11 }}</td>
131
- <td style="text-align: center">{{ row.month12 }}</td>
132
- <td style="text-align: center">{{ row.countarea }}</td>
133
- </template>
134
- <template partial="foot">
135
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
136
- <td style="text-align: center">{{ model.sums.month1 }}</td>
137
- <td style="text-align: center">{{ model.sums.month2 }}</td>
138
- <td style="text-align: center">{{ model.sums.month3 }}</td>
139
- <td style="text-align: center">{{ model.sums.month4 }}</td>
140
- <td style="text-align: center">{{ model.sums.month5 }}</td>
141
- <td style="text-align: center">{{ model.sums.month6 }}</td>
142
- <td style="text-align: center">{{ model.sums.month7 }}</td>
143
- <td style="text-align: center">{{ model.sums.month8 }}</td>
144
- <td style="text-align: center">{{ model.sums.month9 }}</td>
145
- <td style="text-align: center">{{ model.sums.month10 }}</td>
146
- <td style="text-align: center">{{ model.sums.month11 }}</td>
147
- <td style="text-align: center">{{ model.sums.month12 }}</td>
148
- <td style="text-align: center">{{ model.sums.countarea }}</td>
149
- </template>
150
- </data-grid>
151
- </criteria-paged>
152
- </div>
153
- </div>
154
- </template>
155
-
156
- <script>
157
- import {PagedList} from "vue-client";
158
-
159
- export default {
160
- name: "safeStatisticsMonth",
161
- title: "安检报表月",
162
- data() {
163
-
164
- return {
165
- model: new PagedList("/rs/sql/safeStatisticsMonth", 999, {orgid: this.$login.f.orgid}, {
166
- month1: '',
167
- month2: '',
168
- month3: '',
169
- month4: '',
170
- month5: '',
171
- month6: '',
172
- month7: '',
173
- month8: '',
174
- month9: '',
175
- month10: '',
176
- month11: '',
177
- month12: '',
178
- countarea: ''
179
- }),
180
- resids:{},
181
- searchData:{
182
- condition: "1=1",
183
- orgid: this.$login.f.orgid
184
- },
185
- excelHeaders:{
186
- 'f_residential_area': '小区名称',
187
- 'month1': '1月',
188
- 'month2': '2月',
189
- 'month3': '3月',
190
- 'month4': '4月',
191
- 'month5': '5月',
192
- 'month6': '6月',
193
- 'month7': '7月',
194
- 'month8': '8月',
195
- 'month9': '9月',
196
- 'month10': '10月',
197
- 'month11': '11月',
198
- 'month12': '12月',
199
- },
200
- printshow: false,
201
- defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12',],
202
- sumsmodel: {},
203
- }
204
- },
205
- ready() {
206
- this.model.search('1=1')
207
- },
208
- methods: {
209
- selfSearch(args) {
210
- this.model.search(args.condition, args.model, args.condValue)
211
- this.searchData.condition = args.condition
212
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
213
- },
214
- getRes(obj) {
215
- //tag
216
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
217
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
218
- },
219
- // 打印
220
- stamp() {
221
- this.printshow = true
222
- },
223
- close() {
224
- this.printshow = false
225
- }
226
- },
227
- computed: {
228
- getstart() {
229
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
230
- },
231
- }
232
- }
233
- </script>
234
-
235
- <style scoped>
236
-
237
- </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="form-group col-sm-4">
9
+ <label class="font_normal_body">开始时间:</label>
10
+ <datepicker
11
+ placeholder='请选择'
12
+ style="width:60%"
13
+ :select-year="true"
14
+ :disabled-days-of-week="[]"
15
+ :format="'yyyy'"
16
+ :show-rest-button="reset"
17
+ :value.sync="model.start_time"
18
+ v-model="model.start_time"
19
+ condition="tcp.f_upload_date >= '{}-01-01 00:00:00'">
20
+ </datepicker>
21
+ </div>
22
+ <div class="form-group col-sm-4">
23
+ <label class="font_normal_body">结束时间:</label>
24
+ <datepicker
25
+ placeholder='请选择'
26
+ :select-year="true"
27
+ :disabled-days-of-week="[]"
28
+ style="width:60%"
29
+ :format="'yyyy'"
30
+ :show-rest-button="reset"
31
+ :value.sync="model.end_time"
32
+ v-model="model.end_time"
33
+ condition="tcp.f_upload_date <= '{}-12-31 23:59:59'">
34
+ </datepicker>
35
+ </div>
36
+ <div class="col-sm-4 form-group">
37
+ <label class="font_normal_body">小区名称:</label>
38
+ <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
39
+ </div>
40
+ <div class="col-sm-4 form-group" style="margin: 0">
41
+ <role-selector-safe
42
+ role-name="安检员"
43
+ :resobjprop.sync="$parent.$parent.resids"
44
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
45
+ @re-res="$parent.$parent.getRes"
46
+ :value.sync="model.f_checker_id"
47
+ v-model="model.f_checker_id"
48
+ condition="tcp.f_checker_name = '{}'">
49
+ </role-selector-safe>
50
+ </div>
51
+ <div style="float: right">
52
+ <export-excel-safe :data="$parent.$parent.searchData"
53
+ :field="$parent.$parent.excelHeaders"
54
+ progress="safeGetExportProgress"
55
+ sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsMonth" template-name='安检报表月' :choose-col="true"></export-excel-safe>
56
+ </div>
57
+ <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
+ :field="$parent.$parent.excelHeaders"
59
+ :defaultfield="$parent.$parent.defaultPrint"
60
+ titletable="安检报表月" :starthead="$parent.$parent.getstart"
61
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
62
+ <button class="button_spacing button_search" @click="search()">查询</button>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
+ <template partial='head'>
68
+ <tr>
69
+ <th>
70
+ <nobr>序号</nobr>
71
+ </th>
72
+ <th>
73
+ <nobr>小区名称</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>1月</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>2月</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>3月</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>4月</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>5月</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>6月</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>7月</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>8月</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>9月</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>10月</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>11月</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>12月</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>小计</nobr>
113
+ </th>
114
+ </tr>
115
+ </template>
116
+ <template partial='body'>
117
+
118
+ <td style="text-align: center">{{ $index + 1 }}</td>
119
+ <td style="text-align: center">{{ row.f_residential_area }}</td>
120
+ <td style="text-align: center">{{ row.month1 }}</td>
121
+ <td style="text-align: center">{{ row.month2 }}</td>
122
+ <td style="text-align: center">{{ row.month3 }}</td>
123
+ <td style="text-align: center">{{ row.month4 }}</td>
124
+ <td style="text-align: center">{{ row.month5 }}</td>
125
+ <td style="text-align: center">{{ row.month6 }}</td>
126
+ <td style="text-align: center">{{ row.month7 }}</td>
127
+ <td style="text-align: center">{{ row.month8 }}</td>
128
+ <td style="text-align: center">{{ row.month9 }}</td>
129
+ <td style="text-align: center">{{ row.month10 }}</td>
130
+ <td style="text-align: center">{{ row.month11 }}</td>
131
+ <td style="text-align: center">{{ row.month12 }}</td>
132
+ <td style="text-align: center">{{ row.countarea }}</td>
133
+ </template>
134
+ <template partial="foot">
135
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
136
+ <td style="text-align: center">{{ model.sums.month1 }}</td>
137
+ <td style="text-align: center">{{ model.sums.month2 }}</td>
138
+ <td style="text-align: center">{{ model.sums.month3 }}</td>
139
+ <td style="text-align: center">{{ model.sums.month4 }}</td>
140
+ <td style="text-align: center">{{ model.sums.month5 }}</td>
141
+ <td style="text-align: center">{{ model.sums.month6 }}</td>
142
+ <td style="text-align: center">{{ model.sums.month7 }}</td>
143
+ <td style="text-align: center">{{ model.sums.month8 }}</td>
144
+ <td style="text-align: center">{{ model.sums.month9 }}</td>
145
+ <td style="text-align: center">{{ model.sums.month10 }}</td>
146
+ <td style="text-align: center">{{ model.sums.month11 }}</td>
147
+ <td style="text-align: center">{{ model.sums.month12 }}</td>
148
+ <td style="text-align: center">{{ model.sums.countarea }}</td>
149
+ </template>
150
+ </data-grid>
151
+ </criteria-paged>
152
+ </div>
153
+ </div>
154
+ </template>
155
+
156
+ <script>
157
+ import {PagedList} from "vue-client";
158
+
159
+ export default {
160
+ name: "safeStatisticsMonth",
161
+ title: "安检报表月",
162
+ data() {
163
+
164
+ return {
165
+ model: new PagedList("/rs/sql/safeStatisticsMonth", 999, {orgid: this.$login.f.orgid}, {
166
+ month1: '',
167
+ month2: '',
168
+ month3: '',
169
+ month4: '',
170
+ month5: '',
171
+ month6: '',
172
+ month7: '',
173
+ month8: '',
174
+ month9: '',
175
+ month10: '',
176
+ month11: '',
177
+ month12: '',
178
+ countarea: ''
179
+ }),
180
+ resids:{},
181
+ searchData:{
182
+ condition: "1=1",
183
+ orgid: this.$login.f.orgid
184
+ },
185
+ excelHeaders:{
186
+ 'f_residential_area': '小区名称',
187
+ 'month1': '1月',
188
+ 'month2': '2月',
189
+ 'month3': '3月',
190
+ 'month4': '4月',
191
+ 'month5': '5月',
192
+ 'month6': '6月',
193
+ 'month7': '7月',
194
+ 'month8': '8月',
195
+ 'month9': '9月',
196
+ 'month10': '10月',
197
+ 'month11': '11月',
198
+ 'month12': '12月',
199
+ 'countarea':'小计'
200
+ },
201
+ printshow: false,
202
+ defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
203
+ sumsmodel: {},
204
+ }
205
+ },
206
+ ready() {
207
+ this.model.search('1=1')
208
+ },
209
+ methods: {
210
+ selfSearch(args) {
211
+ this.model.search(args.condition, args.model, args.condValue)
212
+ this.searchData.condition = args.condition
213
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
214
+ },
215
+ getRes(obj) {
216
+ //tag
217
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
218
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
219
+ },
220
+ // 打印
221
+ stamp() {
222
+ this.printshow = true
223
+ },
224
+ close() {
225
+ this.printshow = false
226
+ }
227
+ },
228
+ computed: {
229
+ getstart() {
230
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
231
+ },
232
+ }
233
+ }
234
+ </script>
235
+
236
+ <style scoped>
237
+
238
+ </style>
package/src/main.js CHANGED
@@ -1,33 +1,33 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import safecheck from './safecheck'
6
- import echarts from 'echarts'
7
- // import safecheck from './rongcheng'
8
-
9
- all()
10
- // 验证码开关赋值
11
- var Verificationfalg = false
12
- system(Verificationfalg)
13
- // system()
14
- safecheck('bayan');
15
- // safecheck('rizhao')
16
- require('./bootstrap/less/bootstrap.less')
17
- require('./expandcss.less')
18
-
19
- Vue.prototype.$echarts = echarts
20
- Vue.android = false
21
-
22
- Vue.url = '/SafeCheck/rs/'
23
- if(Vue.android)
24
- Vue.url = Vue.staticUrl
25
- Vue.interval = 1*60*1000
26
- Vue.nopic = 'file:///android_asset/nopic.png'
27
- Vue.mapSetup = false
28
-
29
- /* eslint-disable no-new */
30
- new Vue({
31
- el: 'body',
32
- components: { App }
33
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import safecheck from './safecheck'
6
+ import echarts from 'echarts'
7
+ // import safecheck from './rongcheng'
8
+
9
+ all()
10
+ // 验证码开关赋值
11
+ var Verificationfalg = false
12
+ system(Verificationfalg)
13
+ // system()
14
+ safecheck(process.env.SAFE_CHECK);
15
+ // safecheck('rizhao')
16
+ require('./bootstrap/less/bootstrap.less')
17
+ require('./expandcss.less')
18
+
19
+ Vue.prototype.$echarts = echarts
20
+ Vue.android = false
21
+
22
+ Vue.url = '/SafeCheck/rs/'
23
+ if(Vue.android)
24
+ Vue.url = Vue.staticUrl
25
+ Vue.interval = 1*60*1000
26
+ Vue.nopic = 'file:///android_asset/nopic.png'
27
+ Vue.mapSetup = false
28
+
29
+ /* eslint-disable no-new */
30
+ new Vue({
31
+ el: 'body',
32
+ components: { App }
33
+ })
package/src/safecheck.js CHANGED
@@ -869,12 +869,6 @@ export default function (filiale) {
869
869
  Vue.component('defect-deal', (resolve) => {
870
870
  require(['./components/pc/DefectDeal'], resolve)
871
871
  })
872
- Vue.component('paper-edit', (resolve) => {
873
- require(['./components/pc/PaperEdit'], resolve)
874
- })
875
- Vue.component('edit', (resolve) => {
876
- require(['./components/pc/Edit'], resolve)
877
- })
878
872
 
879
873
  if (filiale) {
880
874
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
@@ -1,50 +0,0 @@
1
- <template>
2
- <div>
3
- <input type="text" v-model="inputText" placeholder="Enter text here">
4
- <button @click="handleClick">测试</button>
5
- <iframe v-if="showSketchPage" :src="sketchPageSrc" ref="sketchIframe" id="sketchIframe"
6
- style="width: 100%; height: 500px;"></iframe>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- export default {
12
- name: 'App',
13
- data() {
14
- return {
15
- inputText: '',
16
- showSketchPage: false,
17
- sketchPageSrc: '/sketch'
18
- };
19
- },
20
- methods: {
21
- handleClick() {
22
- this.showSketchPage = true;
23
- //this.sketchPageSrc = `/sketch?data=${encodeURIComponent(this.inputText)}`;
24
-
25
- // 使用 $nextTick 确保 iframe 已经加载到 DOM
26
- this.$nextTick(() => {
27
- const sketchIframe = document.getElementById('sketchIframe').contentWindow;
28
-
29
- // 监听来自 iframe 的消息
30
- window.addEventListener('message', (event) => {
31
- if (event.origin !== window.location.origin) {
32
- return;
33
- }
34
- console.log('Message received from sketch:', event.data);
35
- });
36
-
37
- // 发送消息到 iframe
38
- sketchIframe.onload = () => {
39
- sketchIframe.postMessage(this.inputText, window.location.origin);
40
- };
41
- }); // 逻辑空着
42
- }
43
- },
44
-
45
- }
46
- </script>
47
-
48
- <style>
49
- /* 这里可以添加样式 */
50
- </style>