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,299 +1,288 @@
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-3" >
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-3" >
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-3 form-group" >
30
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%" v-ref:org></right-tree>
32
- </div>
33
- <div class="col-sm-3 form-group">
34
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
- <v-select id="dep" style="width: 60%"
36
- :multiple="true"
37
- @change="$parent.$parent.getDep"
38
- :value.sync="model.f_depid"
39
- v-model="model.f_depid"
40
- :options='$parent.$parent.depresid' placeholder='请选择'
41
- condition="f_depid in {}">
42
- </v-select>
43
-
44
- </div>
45
- <div class="col-sm-3 form-group">
46
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
47
- <v-select id="oper" style="width: 60%"
48
- :multiple="false"
49
- @change="$parent.$parent.getOpe"
50
- :value.sync="model.f_operatorid"
51
- v-model="model.f_operatorid"
52
- :options='$parent.$parent.userresid' placeholder='请选择'
53
- condition="f_operatorid in {}">
54
- </v-select>
55
- </div>
56
- <div class="col-sm-3 form-group">
57
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
58
- <v-select :value.sync="model.f_payment" multiple
59
- v-model="model.f_payment"
60
- :options='$parent.$parent.payment' placeholder='请选择'
61
- condition="f_payment in {}"
62
- close-on-select></v-select>
63
- </div>
64
- </div>
65
- <div class="span" style = "float:right;">
66
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
67
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
68
- <report-excel id='gasprice'></report-excel>
69
- </div>
70
- </div>
71
- </criteria>
72
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
- <table class='tableprint' style="margin: 0px auto">
74
- <thead>
75
- <tr>
76
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
77
- <h3 style="text-align: center">营业厅收款结账单</h3>
78
- </th>
79
- </tr>
80
- <tr>
81
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
82
- 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
83
- 打印时间:{{$parent.printTime}}
84
- </th>
85
- </tr>
86
- <tr>
87
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
88
- <div>
89
- <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
90
- <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
91
- <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
92
- </div>
93
- </th>
94
- </tr>
95
- </thead>
96
- <tr>
97
- <td :colspan='$parent.tablen' class="noborder">
98
- {{{ model.data.substring(26,model.data.length-8) }}}
99
- </td>
100
- </tr>
101
- <tfoot>
102
- <tr style="text-align: left">
103
- <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
104
- <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
105
- <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
106
- </tr>
107
- </tfoot>
108
- </table>
109
- {{{ $parent.reportStr}}}
110
- </div>
111
- </criteria-paged>
112
- <modal :show.sync="show" v-ref:modal small backdrop="false">
113
- <header slot="modal-header" class="modal-header">
114
- <h4 class="modal-title">输入文件名称</h4>
115
- </header>
116
- <article slot="modal-body" class="modal-body">
117
- <div class="form-group">
118
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
119
- </div>
120
- </article>
121
- <footer slot="modal-footer" class="modal-footer">
122
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
123
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
124
- </footer>
125
- </modal>
126
- </div>
127
- </template>
128
-
129
- <script>
130
- import {DataModel, HttpResetClass} from 'vue-client'
131
- import co from 'co'
132
- let saveFile = function * (self) {
133
- // 线验证文件是否重名
134
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
135
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
136
- {resolveMsg: null, rejectMsg: null})
137
- if (count.data.length > 0) {
138
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
139
- return
140
- }
141
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
142
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
143
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
144
- f_outlets: this.$login.f.depname})
145
- if (saveBack.data.status === 'succeed') {
146
- self.show = false
147
- self.filename = ''
148
- // 后台保存完成,通知刷新
149
- self.$dispatch('save-success', self.filename)
150
- }
151
- }
152
- let getorg = async function (self) {
153
- new HttpResetClass().load("POST",'rs/sql/singleTableParam',
154
- {
155
- data: {
156
- items: 'name label,id value',
157
- tablename: 't_department',
158
- condition: `1=1`
159
- }
160
- },
161
- {resolveMsg: null, rejectMsg: null})
162
- .then((res) => {
163
- self.depresid = res.data
164
- })
165
- new HttpResetClass().load("POST",'rs/sql/singleTableParam',
166
- {
167
- data: {
168
- items: 'name label,id value',
169
- tablename: 't_user',
170
- condition: `state = '在职' and f_department_name is not null`
171
- }
172
- },
173
- {resolveMsg: null, rejectMsg: null})
174
- .then((res) => {
175
- self.userresid = res.data
176
- })
177
- }
178
- export default {
179
- title: '营业厅收款结账单',
180
- props: ['data'],
181
- data () {
182
- return {
183
- printTime: this.$login.toStandardTimeString(),
184
- depresid: [],
185
- userresid: [],
186
- f_orgid: this.$login.f.orgid,
187
- f_depid: this.$login.f.depids,
188
- f_operatorid: this.$login.f.id,
189
- operatorid: [],
190
- depid: [],
191
- tablen:0,
192
- orgname: '',
193
- depname: '',
194
- operatorname: '',
195
- orgCondtionStr: '1=1',
196
- model: new DataModel('rs/report/DepPrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
197
- f_orgid: 'this.model.f_orgid'}),
198
- reportStr: null,
199
- show: false,
200
- }
201
- },
202
- ready () {
203
- getorg(this)
204
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
205
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
206
- console.log(this.$login.f)
207
- },
208
- methods: {
209
- searchData () {
210
- this.$refs.paged.$refs.criteria.search()
211
- },
212
- getDep(val){
213
- this.depname = this.depresid.filter(x => x.value ==val).map(x=>x.label).toString()
214
- console.log('dep',this.depname )
215
- },
216
- getOpe(val){
217
- this.operatorname = this.userresid.filter(x => x.value ==val).map(x=>x.label).toString()
218
- console.log('dep',this.operatorname )
219
- },
220
- getParamStr (array) {
221
- let stringValue = ''
222
- for (let i = 0; i < array.length; i++) {
223
- if (i === array.length - 1) {
224
- stringValue = stringValue + "'" + array[i] + "'"
225
- } else {
226
- stringValue = stringValue + "'" + array[i] + "',"
227
- }
228
- }
229
- return stringValue
230
- },
231
- selfSearch (args) {
232
- this.printTime = this.$login.toStandardTimeString()
233
- let orgcondition = '1=1'
234
- if (this.f_orgid[0]) {
235
- orgcondition += ` and f_orgid in (${this.getParamStr(this.f_orgid)})`
236
- }
237
-
238
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
239
- this.$refs.paged.search(args)
240
- },
241
- getRes (obj) {
242
- this.orgname = obj.res[0]
243
- this.f_orgid = obj.resids
244
- },
245
- // 根据文件路径获取储存的报表内容
246
- getFileContent (path) {
247
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
248
- this.reportStr = res.data.filecontent
249
- this.model.state = '正确'
250
- })
251
- },
252
- confirm () {
253
- if (!this.filename || this.filename === '') {
254
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
255
- }
256
- let saveGen = saveFile(this)
257
- co(saveGen)
258
- },
259
- close () {
260
- this.show = false
261
- },
262
- // 将报表保存成文件
263
- confirmReport () {
264
- this.show = true
265
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
266
- }
267
- },
268
- watch: {
269
- 'data' (val) {
270
- if (val.f_files_path) {
271
- this.getFileContent(val.f_files_path)
272
- } else {
273
- this.reportStr = null
274
- }
275
- },
276
- 'model.data' (val) {
277
- let len=0
278
- let a=val.split('</tr>')
279
- for(let i=0;i<a.length;i++){
280
- if(a[i].split('</td>').length-1>len){
281
- len=a[i].split('</td>').length-1
282
- }
283
- }
284
- this.tablen=len
285
- }
286
- },
287
- computed: {
288
-
289
- payment() {
290
- return [...this.$appdata.getParam('付款方式查询')]
291
- }
292
- }
293
- }
294
- </script>
295
- <style scoped>
296
- .noborder{
297
- border: none;
298
- }
299
- </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-3" >
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-3" >
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-3 form-group" >
30
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
+ <manage-right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%" v-ref:org></manage-right-tree>
32
+ </div>
33
+ <div class="col-sm-3 form-group">
34
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
+ <v-select id="dep" style="width: 60%"
36
+ :multiple="true"
37
+ @change="$parent.$parent.getDep"
38
+ :value.sync="model.f_depid"
39
+ v-model="model.f_depid"
40
+ :options='$parent.$parent.depresid' placeholder='请选择'
41
+ condition="f_depid in {}">
42
+ </v-select>
43
+
44
+ </div>
45
+ <div class="col-sm-3 form-group">
46
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
47
+ <v-select id="oper" style="width: 60%"
48
+ :multiple="false"
49
+ @change="$parent.$parent.getOpe"
50
+ :value.sync="model.f_operatorid"
51
+ v-model="model.f_operatorid"
52
+ :options='$parent.$parent.userresid' placeholder='请选择'
53
+ condition="f_operatorid in {}">
54
+ </v-select>
55
+ </div>
56
+ <div class="col-sm-3 form-group">
57
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
58
+ <v-select :value.sync="model.f_payment" multiple
59
+ v-model="model.f_payment"
60
+ :options='$parent.$parent.payment' placeholder='请选择'
61
+ condition="f_payment in {}"
62
+ close-on-select></v-select>
63
+ </div>
64
+ </div>
65
+ <div class="span" style = "float:right;">
66
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
67
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
68
+ <report-excel id='gasprice'></report-excel>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
+ <table class='tableprint' style="margin: 0px auto">
74
+ <thead>
75
+ <tr>
76
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
77
+ <h3 style="text-align: center">营业厅收款结账单</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
82
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
83
+ 打印时间:{{$parent.printTime}}
84
+ </th>
85
+ </tr>
86
+ <tr>
87
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
88
+ <div>
89
+ <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
90
+ <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
91
+ <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
92
+ </div>
93
+ </th>
94
+ </tr>
95
+ </thead>
96
+ <tr>
97
+ <td :colspan='$parent.tablen' class="noborder">
98
+ {{{ model.data.substring(26,model.data.length-8) }}}
99
+ </td>
100
+ </tr>
101
+ <tfoot>
102
+ <tr style="text-align: left">
103
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
104
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
105
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
106
+ </tr>
107
+ </tfoot>
108
+ </table>
109
+ {{{ $parent.reportStr}}}
110
+ </div>
111
+ </criteria-paged>
112
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
113
+ <header slot="modal-header" class="modal-header">
114
+ <h4 class="modal-title">输入文件名称</h4>
115
+ </header>
116
+ <article slot="modal-body" class="modal-body">
117
+ <div class="form-group">
118
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
119
+ </div>
120
+ </article>
121
+ <footer slot="modal-footer" class="modal-footer">
122
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
123
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
124
+ </footer>
125
+ </modal>
126
+ </div>
127
+ </template>
128
+
129
+ <script>
130
+ import {DataModel, HttpResetClass} from 'vue-client'
131
+ import co from 'co'
132
+ let saveFile = function * (self) {
133
+ // 线验证文件是否重名
134
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
135
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
136
+ {resolveMsg: null, rejectMsg: null})
137
+ if (count.data.length > 0) {
138
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
139
+ return
140
+ }
141
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
142
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
143
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
144
+ f_outlets: this.$login.f.depname})
145
+ if (saveBack.data.status === 'succeed') {
146
+ self.show = false
147
+ self.filename = ''
148
+ // 后台保存完成,通知刷新
149
+ self.$dispatch('save-success', self.filename)
150
+ }
151
+ }
152
+ let getorg = async function (self) {
153
+ new HttpResetClass().load("POST",'rs/sql/singleTableParam',
154
+ {
155
+ data: {
156
+ items: 'name label,id value',
157
+ tablename: 't_department',
158
+ condition: `1=1`
159
+ }
160
+ },
161
+ {resolveMsg: null, rejectMsg: null})
162
+ .then((res) => {
163
+ self.depresid = res.data
164
+ })
165
+ new HttpResetClass().load("POST",'rs/sql/singleTableParam',
166
+ {
167
+ data: {
168
+ items: 'name label,id value',
169
+ tablename: 't_user',
170
+ condition: `state = '在职' and f_department_name is not null`
171
+ }
172
+ },
173
+ {resolveMsg: null, rejectMsg: null})
174
+ .then((res) => {
175
+ self.userresid = res.data
176
+ })
177
+ }
178
+ export default {
179
+ title: '营业厅收款结账单',
180
+ props: ['data'],
181
+ data () {
182
+ return {
183
+ printTime: this.$login.toStandardTimeString(),
184
+ depresid: [],
185
+ userresid: [],
186
+ f_orgid: this.$login.f.orgid,
187
+ f_depid: this.$login.f.depids,
188
+ f_operatorid: this.$login.f.id,
189
+ operatorid: [],
190
+ depid: [],
191
+ tablen:0,
192
+ orgname: '',
193
+ depname: '',
194
+ operatorname: '',
195
+ orgCondtionStr: '1=1',
196
+ model: new DataModel('rs/report/DepPrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
197
+ f_orgid: 'this.model.f_orgid'}),
198
+ reportStr: null,
199
+ show: false,
200
+ }
201
+ },
202
+ ready () {
203
+ getorg(this)
204
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
205
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
206
+ console.log(this.$login.f)
207
+ },
208
+ methods: {
209
+ searchData () {
210
+ this.$refs.paged.$refs.criteria.search()
211
+ },
212
+ getDep(val){
213
+ this.depname = this.depresid.filter(x => x.value ==val).map(x=>x.label).toString()
214
+ console.log('dep',this.depname )
215
+ },
216
+ getOpe(val){
217
+ this.operatorname = this.userresid.filter(x => x.value ==val).map(x=>x.label).toString()
218
+ console.log('dep',this.operatorname )
219
+ },
220
+ selfSearch (args) {
221
+ this.printTime = this.$login.toStandardTimeString()
222
+ let orgcondition = '1=1'
223
+ if (this.f_orgid[0]) {
224
+ orgcondition += ` and f_orgid in (${this.f_orgid})`
225
+ }
226
+
227
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
228
+ this.$refs.paged.search(args)
229
+ },
230
+ getRes (obj) {
231
+ this.orgname = obj.res[0]
232
+ this.f_orgid = obj.resids
233
+ },
234
+ // 根据文件路径获取储存的报表内容
235
+ getFileContent (path) {
236
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
237
+ this.reportStr = res.data.filecontent
238
+ this.model.state = '正确'
239
+ })
240
+ },
241
+ confirm () {
242
+ if (!this.filename || this.filename === '') {
243
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
244
+ }
245
+ let saveGen = saveFile(this)
246
+ co(saveGen)
247
+ },
248
+ close () {
249
+ this.show = false
250
+ },
251
+ // 将报表保存成文件
252
+ confirmReport () {
253
+ this.show = true
254
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
255
+ }
256
+ },
257
+ watch: {
258
+ 'data' (val) {
259
+ if (val.f_files_path) {
260
+ this.getFileContent(val.f_files_path)
261
+ } else {
262
+ this.reportStr = null
263
+ }
264
+ },
265
+ 'model.data' (val) {
266
+ let len=0
267
+ let a=val.split('</tr>')
268
+ for(let i=0;i<a.length;i++){
269
+ if(a[i].split('</td>').length-1>len){
270
+ len=a[i].split('</td>').length-1
271
+ }
272
+ }
273
+ this.tablen=len
274
+ }
275
+ },
276
+ computed: {
277
+
278
+ payment() {
279
+ return [...this.$appdata.getParam('付款方式查询')]
280
+ }
281
+ }
282
+ }
283
+ </script>
284
+ <style scoped>
285
+ .noborder{
286
+ border: none;
287
+ }
288
+ </style>