manage-client 3.3.93 → 3.3.94

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.
@@ -0,0 +1,257 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <p class="bg-info text-center" style="padding: 8px;">收费日统计报表</p>
6
+ <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-4" >
10
+ <label class="font_normal_body" for="startDate">统计日期:</label>
11
+ <datepicker id="startDate" placeholder="统计日期" style="width: 60%"
12
+ v-model="model.selectDate"
13
+ :value.sync="model.selectDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-4">
20
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
21
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
22
+ </div>
23
+ <div class="col-sm-4">
24
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
25
+ <res-select restype='department'
26
+ is-mul="false"
27
+ @res-select="$parent.$parent.getdep"
28
+ :parentresid="$parent.$parent.depresid"
29
+ :initresid='$parent.$parent.depid'>
30
+ </res-select>
31
+
32
+ </div>
33
+ <div class="col-sm-4">
34
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
35
+ <res-select restype='user'
36
+ is-mul="false"
37
+ @res-select="$parent.$parent.getuser"
38
+ :parentresid="$parent.$parent.userresid"
39
+ :initresid='$parent.$parent.operatorid'>
40
+ </res-select>
41
+ </div>
42
+ <div class="col-sm-4">
43
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
44
+ <v-select :value.sync="model.f_meter_type"
45
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
46
+ condition="f_meter_type = '{}'"
47
+ close-on-select></v-select>
48
+ </div>
49
+
50
+ <div class="col-sm-4">
51
+ <label class="font_normal_body">收费类型</label>
52
+ <v-select :value.sync="model.f_type" multiple
53
+ :options='$parent.$parent.chargetype' placeholder='请选择'
54
+ close-on-select clear-button
55
+ condition="f_type in {}"
56
+ v-model="model.f_type"></v-select>
57
+ </div>
58
+ </div>
59
+ <div class="span" style = "float:right;">
60
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
61
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
62
+ <report-excel id='gasprice'></report-excel>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
67
+ <table class='tableprint' style="margin: 0px auto;">
68
+ <thead>
69
+ <tr>
70
+ <th colspan='18' style="font-weight: normal; text-align: left;">
71
+ <h2 style="text-align: center">{{$parent.orgname}}</h2>
72
+ <h3 style="text-align: center">收费日统计报表</h3>
73
+ </th>
74
+ </tr>
75
+ <tr>
76
+ <th colspan='18' style="font-weight: normal; text-align: center;">
77
+ 统计日期:{{model.model.selectDate}}<br/>
78
+ 打印时间:{{{$parent.printTime}}}
79
+ </th>
80
+ </tr>
81
+ <tr>
82
+ <th colspan='18' style="font-weight: normal; text-align: center;">
83
+ <div>
84
+ <span v-show="$parent.depname.trim()!=''">网点:{{$parent.depname}}</span>
85
+ <span v-show="$parent.operatorname.trim()!=''">操作员:{{$parent.operatorname}}</span>
86
+ </div>
87
+ </th>
88
+ </tr>
89
+ </thead>
90
+ <tr>
91
+ <td colspan='18'>
92
+ {{{ model.data.substring(26,model.data.length-8) }}}
93
+ </td>
94
+ </tr>
95
+ <tfoot>
96
+ <th colspan='6'>财务审核:</th>
97
+ <th colspan='6'>收款审核:</th>
98
+ <th colspan='6'>收款员:</th>
99
+ </tfoot>
100
+ </table>
101
+ {{{ $parent.reportStr}}}
102
+ </div>
103
+ </criteria-paged>
104
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
105
+ <header slot="modal-header" class="modal-header">
106
+ <h4 class="modal-title">输入文件名称</h4>
107
+ </header>
108
+ <article slot="modal-body" class="modal-body">
109
+ <div class="form-group">
110
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
111
+ </div>
112
+ </article>
113
+ <footer slot="modal-footer" class="modal-footer">
114
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
115
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
116
+ </footer>
117
+ </modal>
118
+ </div>
119
+ </template>
120
+
121
+ <script>
122
+ import { DataModel } from 'vue-client'
123
+ import co from 'co'
124
+ let saveFile = function * (self) {
125
+ // 线验证文件是否重名
126
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
127
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
128
+ {resolveMsg: null, rejectMsg: null})
129
+ if (count.data.length > 0) {
130
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
131
+ return
132
+ }
133
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
134
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
135
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
136
+ f_outlets: this.$login.f.depname})
137
+ if (saveBack.data.status === 'succeed') {
138
+ self.show = false
139
+ self.filename = ''
140
+ // 后台保存完成,通知刷新
141
+ self.$dispatch('save-success', self.filename)
142
+ }
143
+ }
144
+ export default {
145
+ title: '收费日统计报表',
146
+ props: ['data'],
147
+ data () {
148
+ return {
149
+ printTime: this.$login.toStandardTimeString(),
150
+ depresid: [],
151
+
152
+ userresid: [],
153
+ f_orgid: this.$login.f.orgid,
154
+ f_depid: this.$login.f.depids,
155
+ f_operatorid: this.$login.f.id,
156
+ operatorid: [],
157
+ depid: [],
158
+ orgname: '',
159
+ depname: '',
160
+ operatorname: '',
161
+ meterbrands: [],
162
+ orgCondtionStr: '1=1',
163
+ model: new DataModel('rs/report/daySellSummary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
164
+ f_orgid: 'this.model.f_orgid'}),
165
+ reportStr: null,
166
+ show: false,
167
+ }
168
+ },
169
+ ready () {
170
+ this.$refs.paged.$refs.criteria.model.selectDate = this.$login.toStandardDateString()
171
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
172
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
173
+ console.log(this.$login.f)
174
+ },
175
+ methods: {
176
+ searchData () {
177
+ this.$refs.paged.$refs.criteria.search()
178
+ },
179
+ selfSearch (args) {
180
+ this.printTime = this.$login.toStandardTimeString()
181
+ let orgcondition = ` f_orgid in ('${this.f_orgid}')`
182
+ if (this.f_depid[0]) {
183
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
184
+ }
185
+ if(this.f_operatorid[0]) {
186
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
187
+ }
188
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
189
+ this.$refs.paged.$refs.criteria.model.startDate = args.model.selectDate + ' 00:00:00'
190
+ this.$refs.paged.$refs.criteria.model.endDate = args.model.selectDate + ' 23:59:59'
191
+ this.$refs.paged.search(args)
192
+ },
193
+ getRes (obj) {
194
+ this.orgname = obj.res[0]
195
+ this.depresid = obj.resids
196
+ this.f_orgid = obj.resids
197
+ },
198
+ getdep (obj, val) {
199
+ // this.depname = val[0]
200
+ this.userresid = obj
201
+ this.f_depid = obj
202
+ },
203
+ getuser ( obj, val) {
204
+ this.operatorname = val[0]
205
+ this.f_operatorid = obj
206
+ },
207
+
208
+ // 根据文件路径获取储存的报表内容
209
+ getFileContent (path) {
210
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
211
+ this.reportStr = res.data.filecontent
212
+ this.model.state = '正确'
213
+ })
214
+ },
215
+ confirm () {
216
+ if (!this.filename || this.filename === '') {
217
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
218
+ }
219
+ let saveGen = saveFile(this)
220
+ co(saveGen)
221
+ },
222
+ close () {
223
+ this.show = false
224
+ },
225
+ // 将报表保存成文件
226
+ confirmReport () {
227
+ this.show = true
228
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
229
+ },
230
+ },
231
+ watch: {
232
+ 'data' (val) {
233
+ if (val.f_files_path) {
234
+ this.getFileContent(val.f_files_path)
235
+ } else {
236
+ this.reportStr = null
237
+ }
238
+ }
239
+ },
240
+ computed: {
241
+ metertypes () {
242
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
243
+ },
244
+ chargetype () {
245
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
246
+ }
247
+ }
248
+ }
249
+ </script>
250
+ <style scoped>
251
+ .noborder{
252
+ border: none;
253
+ }
254
+ .fontSize{
255
+ font-size: 13px;
256
+ }
257
+ </style>
@@ -1,190 +1,190 @@
1
- <template>
2
- <div class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
- <div class="row">
7
- <div class="col-sm-2 form-group" >
8
- <label class="font_normal_body" for="startDate">开始日期:</label>
9
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
- v-model="model.startDate"
11
- :value.sync="model.startDate"
12
- :disabled-days-of-Week="[]"
13
- :format="'yyyy-MM-dd HH:mm:ss'"
14
- :show-reset-button="reset">
15
- </datepicker>
16
- </div>
17
- <div class="col-sm-2 form-group" >
18
- <label class="font_normal_body" for="endDate">结束日期:</label>
19
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
- v-model="model.endDate"
21
- :value.sync="model.endDate"
22
- :disabled-days-of-Week="[]"
23
- :format="'yyyy-MM-dd HH:mm:ss'"
24
- :show-reset-button="reset">
25
- </datepicker>
26
- </div>
27
- <div class="col-sm-2 form-group">
28
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
29
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
- <res-select restype='department'
34
- @res-select="$parent.$parent.getdep"
35
- :parentresid ="$parent.$parent.depresid"
36
- :initresid='$parent.$parent.depid'>
37
- </res-select>
38
-
39
- </div>
40
-
41
-
42
- <div style = "float:right;">
43
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
44
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
45
- <report-excel id='gasprice'></report-excel>
46
- </div>
47
- </div>
48
- </div>
49
- </criteria>
50
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
- <thead>
53
- <tr>
54
- <th colspan='3' style="font-weight: bold; text-align: left;">
55
- <h3 style="text-align: center">抄表用气性质统计报表</h3>
56
- </th>
57
- </tr>
58
- <tr>
59
- <th colspan='3' style="font-weight: normal; text-align: center;">
60
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
62
- </th>
63
- </tr>
64
- <tr>
65
- <th colspan='3' style="font-weight: normal; text-align: center;">
66
- 打印时间:{{{$parent.printTime}}}
67
- </th>
68
- </tr>
69
- <tr>
70
- <th colspan='3' style="font-weight: normal; text-align: center;">
71
- <div>
72
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
73
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
74
- </div>
75
- </th>
76
- </tr>
77
- </thead>
78
- <tr>
79
- <td colspan='3' style="font-weight: normal;" id="test">
80
- {{{ model.data.substring(26,model.data.length-8) }}}
81
- </td>
82
- </tr>
83
- </table>
84
- {{{ $parent.reportStr}}}
85
- </div>
86
- </criteria-paged>
87
- </div>
88
- </template>
89
-
90
- <script>
91
- import { DataModel } from 'vue-client'
92
- import co from 'co'
93
- export default {
94
- title: '抄表用气性质统计报表',
95
- props: ['data'],
96
- data () {
97
- return {
98
- printTime: this.$login.toStandardTimeString(),
99
- depresid: [],
100
- userresid: [],
101
- initres: {
102
- org:[this.$login.f.orgid],
103
- dep:[],
104
- user:[]
105
- },
106
- f_public_group1: '',
107
- f_orgid: this.$login.f.orgid,
108
- f_depid: this.$login.f.depids,
109
- f_operatorid: this.$login.f.id,
110
- operatorid: [],
111
- depid: [],
112
- orgname: '',
113
- depname: '',
114
- operatorname: '',
115
- orgCondtionStr: '1=1',
116
- model: new DataModel('rs/report/HandGasproperties_hd',
117
- {startDate: 'this.model.startDate',
118
- endDate: 'this.model.endDate',
119
- f_orgid: 'this.model.f_orgid'
120
- }
121
- ),
122
- reportStr: null,
123
- show: false,
124
- spans: ''
125
- }
126
- },
127
- ready () {
128
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
129
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
130
- // this.$refs.paged.$refs.criteria.search()
131
- },
132
- methods: {
133
- searchData () {
134
- this.$refs.paged.$refs.criteria.search()
135
- },
136
- selfSearch (args) {
137
- this.printTime = this.$login.toStandardTimeString()
138
- let orgcondition = '1 = 1'
139
- if (this.f_orgid[0]) {
140
- orgcondition += ` and f_orgid in ('${this.f_orgid}')`
141
- }
142
- if (this.f_depid[0]) {
143
- orgcondition += ` and f_depid in ('${this.f_depid}')`
144
- }
145
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
146
- this.$refs.paged.search(args)
147
- },
148
- getRes (obj) {
149
- this.orgname = obj.res[0]
150
- this.depresid = obj.resids
151
- this.f_orgid = obj.resids
152
- },
153
- getdep (obj, val) {
154
- this.depname = val[0]
155
- this.userresid = obj
156
- this.f_depid = obj
157
- },
158
- getuser ( obj, val) {
159
- this.operatorname = val[0]
160
- this.f_operatorid = obj
161
- }
162
- },
163
- watch: {
164
- 'data' (val) {
165
- if (val.f_files_path) {
166
- this.getFileContent(val.f_files_path)
167
- } else {
168
- this.reportStr = null
169
- }
170
- },
171
- 'model.data' (val) {
172
- let tab = document.getElementById('test').children[0]
173
- var tds = tab.getElementsByTagName('td')
174
- var num = 0
175
- for (let td of tds) {
176
- let span = td.getAttribute('colspan')
177
- num = num + ((span ? span : 1) - 0)
178
- }
179
- this.spans = num
180
- }
181
- },
182
- computed: {
183
- }
184
- }
185
- </script>
186
- <style scoped>
187
- .noborder{
188
- border: none;
189
- }
190
- </style>
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid ="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+
41
+
42
+ <div style = "float:right;">
43
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
44
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
45
+ <report-excel id='gasprice'></report-excel>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </criteria>
50
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
+ <thead>
53
+ <tr>
54
+ <th colspan='3' style="font-weight: bold; text-align: left;">
55
+ <h3 style="text-align: center">抄表用气性质统计报表</h3>
56
+ </th>
57
+ </tr>
58
+ <tr>
59
+ <th colspan='3' style="font-weight: normal; text-align: center;">
60
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
62
+ </th>
63
+ </tr>
64
+ <tr>
65
+ <th colspan='3' style="font-weight: normal; text-align: center;">
66
+ 打印时间:{{{$parent.printTime}}}
67
+ </th>
68
+ </tr>
69
+ <tr>
70
+ <th colspan='3' style="font-weight: normal; text-align: center;">
71
+ <div>
72
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
73
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
74
+ </div>
75
+ </th>
76
+ </tr>
77
+ </thead>
78
+ <tr>
79
+ <td colspan='3' style="font-weight: normal;" id="test">
80
+ {{{ model.data.substring(26,model.data.length-8) }}}
81
+ </td>
82
+ </tr>
83
+ </table>
84
+ {{{ $parent.reportStr}}}
85
+ </div>
86
+ </criteria-paged>
87
+ </div>
88
+ </template>
89
+
90
+ <script>
91
+ import { DataModel } from 'vue-client'
92
+ import co from 'co'
93
+ export default {
94
+ title: '抄表用气性质统计报表',
95
+ props: ['data'],
96
+ data () {
97
+ return {
98
+ printTime: this.$login.toStandardTimeString(),
99
+ depresid: [],
100
+ userresid: [],
101
+ initres: {
102
+ org:[this.$login.f.orgid],
103
+ dep:[],
104
+ user:[]
105
+ },
106
+ f_public_group1: '',
107
+ f_orgid: this.$login.f.orgid,
108
+ f_depid: this.$login.f.depids,
109
+ f_operatorid: this.$login.f.id,
110
+ operatorid: [],
111
+ depid: [],
112
+ orgname: '',
113
+ depname: '',
114
+ operatorname: '',
115
+ orgCondtionStr: '1=1',
116
+ model: new DataModel('rs/report/HandGasproperties_hd',
117
+ {startDate: 'this.model.startDate',
118
+ endDate: 'this.model.endDate',
119
+ f_orgid: 'this.model.f_orgid'
120
+ }
121
+ ),
122
+ reportStr: null,
123
+ show: false,
124
+ spans: ''
125
+ }
126
+ },
127
+ ready () {
128
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
129
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
130
+ // this.$refs.paged.$refs.criteria.search()
131
+ },
132
+ methods: {
133
+ searchData () {
134
+ this.$refs.paged.$refs.criteria.search()
135
+ },
136
+ selfSearch (args) {
137
+ this.printTime = this.$login.toStandardTimeString()
138
+ let orgcondition = '1 = 1'
139
+ if (this.f_orgid[0]) {
140
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
141
+ }
142
+ if (this.f_depid[0]) {
143
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
144
+ }
145
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
146
+ this.$refs.paged.search(args)
147
+ },
148
+ getRes (obj) {
149
+ this.orgname = obj.res[0]
150
+ this.depresid = obj.resids
151
+ this.f_orgid = obj.resids
152
+ },
153
+ getdep (obj, val) {
154
+ this.depname = val[0]
155
+ this.userresid = obj
156
+ this.f_depid = obj
157
+ },
158
+ getuser ( obj, val) {
159
+ this.operatorname = val[0]
160
+ this.f_operatorid = obj
161
+ }
162
+ },
163
+ watch: {
164
+ 'data' (val) {
165
+ if (val.f_files_path) {
166
+ this.getFileContent(val.f_files_path)
167
+ } else {
168
+ this.reportStr = null
169
+ }
170
+ },
171
+ 'model.data' (val) {
172
+ let tab = document.getElementById('test').children[0]
173
+ var tds = tab.getElementsByTagName('td')
174
+ var num = 0
175
+ for (let td of tds) {
176
+ let span = td.getAttribute('colspan')
177
+ num = num + ((span ? span : 1) - 0)
178
+ }
179
+ this.spans = num
180
+ }
181
+ },
182
+ computed: {
183
+ }
184
+ }
185
+ </script>
186
+ <style scoped>
187
+ .noborder{
188
+ border: none;
189
+ }
190
+ </style>