manage-client 3.3.73 → 3.3.74-tc

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.
Files changed (30) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +111 -111
  3. package/src/components/SellReport/BusinessClassify.vue +290 -290
  4. package/src/components/SellReport/DepartmentPrick.vue +288 -299
  5. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  6. package/src/components/SellReport/ManageSellType.vue +284 -284
  7. package/src/components/SellReport/ManageUserCount.vue +347 -347
  8. package/src/components/SellReport/MarketMonth.vue +297 -297
  9. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  10. package/src/components/SellReport/UserClassify.vue +271 -271
  11. package/src/components/sale/businessquery/AccountQuery/keyUserGasRanking.vue +1 -1
  12. package/src/components/sale/businessquery/ResidentialCardQuery.vue +1 -1
  13. package/src/components/sale/common/ResSelect.vue +155 -0
  14. package/src/components/sale/common/RightTree.vue +348 -0
  15. package/src/components/sale/config/exportConfig.js +1 -1
  16. package/src/components/webmeter/DrillData/GetNoMetereadData.vue +0 -1
  17. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +0 -1
  18. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +0 -1
  19. package/src/components/webmeter/gasAnalysis/NewWebmeterSettlementAnalysis.vue +0 -1
  20. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +0 -1
  21. package/src/components/webmeter/instruction/NewQueryInstruct.vue +2 -0
  22. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +0 -4
  23. package/src/components/webmeter/recharge/RechargeList.vue +0 -1
  24. package/src/components/webmeter/report/ReportList.vue +0 -1
  25. package/src/components/webmeter/reportdata/ReportDataQuery.vue +6 -3
  26. package/src/filiale/tongchuan/GasPrice.vue +255 -255
  27. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -251
  28. package/src/main.js +72 -70
  29. package/src/plugins/LdapHelper.js +75 -0
  30. package/src/saleManage.js +669 -663
@@ -1,281 +1,281 @@
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
- <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.startDate"
13
- :value.sync="model.startDate"
14
- :disabled-days-of-Week="[]"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="reset">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-4" >
20
- <label class="font_normal_body" for="endDate">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-4">
30
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
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='department'
36
- is-mul="false"
37
- @res-select="$parent.$parent.getdep"
38
- :parentresid="$parent.$parent.depresid"
39
- :initresid='$parent.$parent.depid'>
40
- </res-select>
41
-
42
- </div>
43
- <div class="col-sm-4">
44
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp;</label>
45
- <res-select restype='user'
46
- is-mul="false"
47
- @res-select="$parent.$parent.getuser"
48
- :parentresid="$parent.$parent.userresid"
49
- :initresid='$parent.$parent.operatorid'>
50
- </res-select>
51
- </div>
52
- <div class="col-sm-4 form-group">
53
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
54
- <v-select :value.sync="model.f_inputtor"
55
- v-model="model.f_inputtor"
56
- :options='$parent.$parent.inputtor' placeholder='请选择'
57
- multiple = "true"
58
- close-on-select></v-select>
59
- </div>
60
- <div class="col-sm-4 form-group">
61
- <label class="font_normal_body">用户类型</label>
62
- <v-select :value.sync="model.f_user_type"
63
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
64
- close-on-select></v-select>
65
- </div>
66
- </div>
67
- <div class="span" style = "float:right;">
68
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
69
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
70
- <report-excel id='gasprice'></report-excel>
71
- </div>
72
- </div>
73
- </criteria>
74
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
75
- <table class='tableprint' style="margin: 0px auto">
76
- <thead>
77
- <tr>
78
- <th colspan='8' style="font-weight: normal; text-align: left;">
79
- <h3 style="text-align: center">抄表情况汇总表</h3>
80
- </th>
81
- </tr>
82
- <tr>
83
- <th colspan='8' style="font-weight: normal; text-align: center;">
84
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
85
- 结束时间:{{ model.model.endDate }}
86
- </th>
87
- </tr>
88
- <tr>
89
- <th colspan='8' style="font-weight: normal; text-align: center;">
90
- 打印时间:{{{$parent.printTime}}}
91
- </th>
92
- </tr>
93
- <tr>
94
- <th colspan='8' style="font-weight: normal; text-align: center;">
95
- <div>
96
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
97
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
98
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
99
- </div>
100
- </th>
101
- </tr>
102
- </thead>
103
- <tr>
104
- <td colspan='12'>
105
- {{{ model.data.substring(26,model.data.length-8) }}}
106
- </td>
107
- </tr>
108
- <tfoot>
109
- <tr style="text-align: left">
110
- <th colspan='3'>财务审核:</th>
111
- <th colspan='3'>收款审核:</th>
112
- <th colspan='2'>收款员:</th>
113
- </tr>
114
- </tfoot>
115
- </table>
116
- {{{ $parent.reportStr}}}
117
- </div>
118
- </criteria-paged>
119
- <modal :show.sync="show" v-ref:modal small backdrop="false">
120
- <header slot="modal-header" class="modal-header">
121
- <h4 class="modal-title">输入文件名称</h4>
122
- </header>
123
- <article slot="modal-body" class="modal-body">
124
- <div class="form-group">
125
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
126
- </div>
127
- </article>
128
- <footer slot="modal-footer" class="modal-footer">
129
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
130
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
131
- </footer>
132
- </modal>
133
- </div>
134
- </template>
135
-
136
- <script>
137
- import { DataModel } from 'vue-client'
138
- import co from 'co'
139
- let saveFile = function * (self) {
140
- // 线验证文件是否重名
141
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
142
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
143
- {resolveMsg: null, rejectMsg: null})
144
- if (count.data.length > 0) {
145
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
146
- return
147
- }
148
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
149
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
150
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
151
- f_outlets: this.$login.f.depname})
152
- if (saveBack.data.status === 'succeed') {
153
- self.show = false
154
- self.filename = ''
155
- // 后台保存完成,通知刷新
156
- self.$dispatch('save-success', self.filename)
157
- }
158
- }
159
- export default {
160
- title: '抄表情况汇总表',
161
- props: ['data'],
162
- data () {
163
- return {
164
- printTime: this.$login.toStandardTimeString(),
165
- depresid: [],
166
- userresid: [],
167
- f_orgid: this.$login.f.orgid,
168
- f_depid: this.$login.f.depids,
169
- f_operatorid: this.$login.f.id,
170
- operatorid: [],
171
- depid: [],
172
- orgname: '',
173
- depname: '',
174
- operatorname: '',
175
- f_inputtor:[],
176
- f_user_type:'',
177
- orgCondtionStr: '1=1',
178
- model: new DataModel('rs/report/gethandinputtor', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
179
- f_orgid: 'this.model.f_orgid'}),
180
- reportStr: null,
181
- show: false
182
- }
183
- },
184
- ready () {
185
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
186
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
187
- this.$refs.paged.$refs.criteria.search()
188
- console.log(this.$login.f)
189
- },
190
- methods: {
191
- searchData () {
192
- this.$refs.paged.$refs.criteria.search()
193
- },
194
- selfSearch (args) {
195
- console.log('f_inputtor='+this.f_inputtor)
196
- this.printTime = this.$login.toStandardTimeString()
197
- let orgcondition = `h.f_orgid in (${this.f_orgid})`
198
- if (this.f_depid[0]) {
199
- orgcondition += ` and h.f_depid in (${this.f_depid})`
200
- }
201
- if(this.f_operatorid[0]) {
202
- orgcondition += ` and h.f_operatorid in (${this.f_operatorid})`
203
- }
204
- if(this.$refs.paged.$refs.criteria.model.f_user_type!=''){
205
- orgcondition += ' and h.f_user_type = ' + `'${this.$refs.paged.$refs.criteria.model.f_user_type}'`
206
- }
207
- if(this.$refs.paged.$refs.criteria.model.f_inputtor!='') {
208
- orgcondition += ' and h.f_inputtor in ('
209
- this.$refs.paged.$refs.criteria.model.f_inputtor.forEach(function (item,index) {
210
- if(index==0 &&item!=''){
211
- orgcondition +="'"+item+"'"
212
- }else if(index>0&&item!='')
213
- orgcondition +=",'"+item+"'"
214
- })
215
- orgcondition += ")"
216
- }
217
-
218
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
219
- this.$refs.paged.search(args)
220
- },
221
- getRes (obj) {
222
- this.orgname = obj.res[0]
223
- this.depresid = obj.resids
224
- this.f_orgid = obj.resids
225
- },
226
- getdep (obj, val) {
227
- // this.depname = val[0]
228
- this.userresid = obj
229
- this.f_depid = obj
230
- },
231
- getuser ( obj, val) {
232
- this.operatorname = val[0]
233
- this.f_operatorid = obj
234
- },
235
- // 根据文件路径获取储存的报表内容
236
- getFileContent (path) {
237
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
238
- this.reportStr = res.data.filecontent
239
- this.model.state = '正确'
240
- })
241
- },
242
- confirm () {
243
- if (!this.filename || this.filename === '') {
244
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
245
- }
246
- let saveGen = saveFile(this)
247
- co(saveGen)
248
- },
249
- close () {
250
- this.show = false
251
- },
252
- // 将报表保存成文件
253
- confirmReport () {
254
- this.show = true
255
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
256
- },
257
- },
258
- watch: {
259
- 'data' (val) {
260
- if (val.f_files_path) {
261
- this.getFileContent(val.f_files_path)
262
- } else {
263
- this.reportStr = null
264
- }
265
- }
266
- },
267
- computed: {
268
- usertypes() {
269
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
270
- },
271
- inputtor() {
272
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
273
- },
274
- }
275
- }
276
- </script>
277
- <style scoped>
278
- .noborder{
279
- border: none;
280
- }
281
- </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
+ <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.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-4" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-4">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
+ <manage-right-tree @re-res="$parent.$parent.getRes"></manage-right-tree>
32
+ </div>
33
+ <div class="col-sm-4">
34
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp;</label>
35
+ <manage-res-select restype='department'
36
+ is-mul="false"
37
+ @res-select="$parent.$parent.getdep"
38
+ :parentresid="$parent.$parent.depresid"
39
+ :initresid='$parent.$parent.depid'>
40
+ </manage-res-select>
41
+
42
+ </div>
43
+ <div class="col-sm-4">
44
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp;</label>
45
+ <manage-res-select restype='user'
46
+ is-mul="false"
47
+ @res-select="$parent.$parent.getuser"
48
+ :parentresid="$parent.$parent.userresid"
49
+ :initresid='$parent.$parent.operatorid'>
50
+ </manage-res-select>
51
+ </div>
52
+ <div class="col-sm-4 form-group">
53
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
54
+ <v-select :value.sync="model.f_inputtor"
55
+ v-model="model.f_inputtor"
56
+ :options='$parent.$parent.inputtor' placeholder='请选择'
57
+ multiple = "true"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div class="col-sm-4 form-group">
61
+ <label class="font_normal_body">用户类型</label>
62
+ <v-select :value.sync="model.f_user_type"
63
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
64
+ close-on-select></v-select>
65
+ </div>
66
+ </div>
67
+ <div class="span" style = "float:right;">
68
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
69
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
70
+ <report-excel id='gasprice'></report-excel>
71
+ </div>
72
+ </div>
73
+ </criteria>
74
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
75
+ <table class='tableprint' style="margin: 0px auto">
76
+ <thead>
77
+ <tr>
78
+ <th colspan='8' style="font-weight: normal; text-align: left;">
79
+ <h3 style="text-align: center">抄表情况汇总表</h3>
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th colspan='8' style="font-weight: normal; text-align: center;">
84
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
85
+ 结束时间:{{ model.model.endDate }}
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th colspan='8' style="font-weight: normal; text-align: center;">
90
+ 打印时间:{{{$parent.printTime}}}
91
+ </th>
92
+ </tr>
93
+ <tr>
94
+ <th colspan='8' style="font-weight: normal; text-align: center;">
95
+ <div>
96
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
97
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
98
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
99
+ </div>
100
+ </th>
101
+ </tr>
102
+ </thead>
103
+ <tr>
104
+ <td colspan='12'>
105
+ {{{ model.data.substring(26,model.data.length-8) }}}
106
+ </td>
107
+ </tr>
108
+ <tfoot>
109
+ <tr style="text-align: left">
110
+ <th colspan='3'>财务审核:</th>
111
+ <th colspan='3'>收款审核:</th>
112
+ <th colspan='2'>收款员:</th>
113
+ </tr>
114
+ </tfoot>
115
+ </table>
116
+ {{{ $parent.reportStr}}}
117
+ </div>
118
+ </criteria-paged>
119
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
120
+ <header slot="modal-header" class="modal-header">
121
+ <h4 class="modal-title">输入文件名称</h4>
122
+ </header>
123
+ <article slot="modal-body" class="modal-body">
124
+ <div class="form-group">
125
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
126
+ </div>
127
+ </article>
128
+ <footer slot="modal-footer" class="modal-footer">
129
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
130
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
131
+ </footer>
132
+ </modal>
133
+ </div>
134
+ </template>
135
+
136
+ <script>
137
+ import { DataModel } from 'vue-client'
138
+ import co from 'co'
139
+ let saveFile = function * (self) {
140
+ // 线验证文件是否重名
141
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
142
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
143
+ {resolveMsg: null, rejectMsg: null})
144
+ if (count.data.length > 0) {
145
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
146
+ return
147
+ }
148
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
149
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
150
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
151
+ f_outlets: this.$login.f.depname})
152
+ if (saveBack.data.status === 'succeed') {
153
+ self.show = false
154
+ self.filename = ''
155
+ // 后台保存完成,通知刷新
156
+ self.$dispatch('save-success', self.filename)
157
+ }
158
+ }
159
+ export default {
160
+ title: '抄表情况汇总表',
161
+ props: ['data'],
162
+ data () {
163
+ return {
164
+ printTime: this.$login.toStandardTimeString(),
165
+ depresid: [],
166
+ userresid: [],
167
+ f_orgid: this.$login.f.orgid,
168
+ f_depid: this.$login.f.depids,
169
+ f_operatorid: this.$login.f.id,
170
+ operatorid: [],
171
+ depid: [],
172
+ orgname: '',
173
+ depname: '',
174
+ operatorname: '',
175
+ f_inputtor:[],
176
+ f_user_type:'',
177
+ orgCondtionStr: '1=1',
178
+ model: new DataModel('rs/report/gethandinputtor', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
179
+ f_orgid: 'this.model.f_orgid'}),
180
+ reportStr: null,
181
+ show: false
182
+ }
183
+ },
184
+ ready () {
185
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
186
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
187
+ this.$refs.paged.$refs.criteria.search()
188
+ console.log(this.$login.f)
189
+ },
190
+ methods: {
191
+ searchData () {
192
+ this.$refs.paged.$refs.criteria.search()
193
+ },
194
+ selfSearch (args) {
195
+ console.log('f_inputtor='+this.f_inputtor)
196
+ this.printTime = this.$login.toStandardTimeString()
197
+ let orgcondition = `h.f_orgid in (${this.f_orgid})`
198
+ if (this.f_depid[0]) {
199
+ orgcondition += ` and h.f_depid in (${this.f_depid})`
200
+ }
201
+ if(this.f_operatorid[0]) {
202
+ orgcondition += ` and h.f_operatorid in (${this.f_operatorid})`
203
+ }
204
+ if(this.$refs.paged.$refs.criteria.model.f_user_type!=''){
205
+ orgcondition += ' and h.f_user_type = ' + `'${this.$refs.paged.$refs.criteria.model.f_user_type}'`
206
+ }
207
+ if(this.$refs.paged.$refs.criteria.model.f_inputtor!='') {
208
+ orgcondition += ' and h.f_inputtor in ('
209
+ this.$refs.paged.$refs.criteria.model.f_inputtor.forEach(function (item,index) {
210
+ if(index==0 &&item!=''){
211
+ orgcondition +="'"+item+"'"
212
+ }else if(index>0&&item!='')
213
+ orgcondition +=",'"+item+"'"
214
+ })
215
+ orgcondition += ")"
216
+ }
217
+
218
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
219
+ this.$refs.paged.search(args)
220
+ },
221
+ getRes (obj) {
222
+ this.orgname = obj.res[0]
223
+ this.depresid = obj.resids
224
+ this.f_orgid = obj.resids
225
+ },
226
+ getdep (obj, val) {
227
+ // this.depname = val[0]
228
+ this.userresid = obj
229
+ this.f_depid = obj
230
+ },
231
+ getuser ( obj, val) {
232
+ this.operatorname = val[0]
233
+ this.f_operatorid = obj
234
+ },
235
+ // 根据文件路径获取储存的报表内容
236
+ getFileContent (path) {
237
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
238
+ this.reportStr = res.data.filecontent
239
+ this.model.state = '正确'
240
+ })
241
+ },
242
+ confirm () {
243
+ if (!this.filename || this.filename === '') {
244
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
245
+ }
246
+ let saveGen = saveFile(this)
247
+ co(saveGen)
248
+ },
249
+ close () {
250
+ this.show = false
251
+ },
252
+ // 将报表保存成文件
253
+ confirmReport () {
254
+ this.show = true
255
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
256
+ },
257
+ },
258
+ watch: {
259
+ 'data' (val) {
260
+ if (val.f_files_path) {
261
+ this.getFileContent(val.f_files_path)
262
+ } else {
263
+ this.reportStr = null
264
+ }
265
+ }
266
+ },
267
+ computed: {
268
+ usertypes() {
269
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
270
+ },
271
+ inputtor() {
272
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
273
+ },
274
+ }
275
+ }
276
+ </script>
277
+ <style scoped>
278
+ .noborder{
279
+ border: none;
280
+ }
281
+ </style>