manage-client 3.2.91 → 3.2.92-1

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